Clean up raw imports hack #17

Closed
opened 2026-05-14 15:17:16 +00:00 by erik · 3 comments
Owner

Once raw imports stabilizes, undo the inlining in usage.ts and the prompt generation hack. Looks like this landed in v2.8.0

Once raw imports stabilizes, undo the inlining in usage.ts and the prompt generation hack. Looks like this landed [in v2.8.0](https://github.com/denoland/deno/pull/34238)
erik self-assigned this 2026-05-14 15:17:16 +00:00
erik referenced this issue from a commit 2026-05-14 15:18:14 +00:00
Member

Brief — Developer

Phase: simple. Run fjx dev prompt simple for the cycle protocol.

<!-- pm:brief:dev --> # Brief — Developer **Phase:** simple. Run `fjx dev prompt simple` for the cycle protocol.
Member

Ledger for: agent-pm

Status: closed @ 2026-05-26T01:12:02.435Z
Briefs:

  • dev
  • qa: absent
  • build: absent

Activity

  1. i17/closed : applied

(PM manages this ledger; agent section unused)

<!-- agent-pm:ledger --> ## Ledger for: agent-pm Status: closed @ 2026-05-26T01:12:02.435Z Briefs: - [dev](#issuecomment-2119) - qa: absent - build: absent ### Activity 1. i17/closed : applied --- _(PM manages this ledger; agent section unused)_
Member

Ledger for: agent-dev

Status: review @ 2026-05-26T01:02:55.926Z


Tasks

  • Replace src/prompts/registry.ts with stable with { type: "text" } raw imports for every dev/pm/qa prompt.
  • Delete src/prompts/registry.gen.ts and scripts/gen-prompts.ts.
  • Remove gen-prompts recipe and the just gen-prompts calls in publish / publish-check from the Justfile.
  • Trim the registry.gen.ts drift check out of test::gen-drift (cli-reference docs check kept).
  • Stop excluding src/prompts/*.md from the JSR publish so raw imports resolve for downstream consumers.
  • just validate clean (format, lint, types, gen-drift, coverage 103/103 tests, audit, secrets, sast).
  • Smoke-test runtime: deno run -A src/main.ts dev prompt simple prints the expected prompt.

Notes

  • Deno 2.8.0 is installed locally; raw imports work without the unstable: ["raw-imports"] flag, so no flag was re-added.
  • Branch reuses the worktree at ../worktrees/fjx-17. PR #26 opens against main.

Status

Status: review

<!-- agent-dev:ledger --> ## Ledger for: agent-dev Status: review @ 2026-05-26T01:02:55.926Z --- ## Tasks - [x] Replace `src/prompts/registry.ts` with stable `with { type: "text" }` raw imports for every dev/pm/qa prompt. - [x] Delete `src/prompts/registry.gen.ts` and `scripts/gen-prompts.ts`. - [x] Remove `gen-prompts` recipe and the `just gen-prompts` calls in `publish` / `publish-check` from the Justfile. - [x] Trim the `registry.gen.ts` drift check out of `test::gen-drift` (cli-reference docs check kept). - [x] Stop excluding `src/prompts/*.md` from the JSR publish so raw imports resolve for downstream consumers. - [x] `just validate` clean (format, lint, types, gen-drift, coverage 103/103 tests, audit, secrets, sast). - [x] Smoke-test runtime: `deno run -A src/main.ts dev prompt simple` prints the expected prompt. ## Notes - Deno 2.8.0 is installed locally; raw imports work without the `unstable: ["raw-imports"]` flag, so no flag was re-added. - Branch reuses the worktree at `../worktrees/fjx-17`. PR #26 opens against `main`. ## Status Status: review
agent-dev removed their assignment 2026-05-26 01:03:05 +00:00
Sign in to join this conversation.
No description provided.