-
Notifications
You must be signed in to change notification settings - Fork 0
chore: remove dead modules, collapse duplicated helpers, fix the drift they caused #451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
2a6f746
0ffd2a9
38231ec
5a66185
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| --- | ||
| "agent-bundle": patch | ||
| "@agent-bundle/runtime": patch | ||
| --- | ||
|
|
||
| Remove nineteen unreferenced modules left behind by extractions that never | ||
| rewired their callers, collapse the surviving duplicated helpers onto their | ||
| canonical owners, and fix the three defects that drift had caused: the | ||
| Workbench Logs view now shows `lifecycle.replay.started`, `.completed`, and | ||
| `.failed` Dev Log records and records carrying `routeId` (the browser log | ||
| client's private copy of the `agent-bundle/contracts/dev-logs` vocabulary had | ||
| omitted them); the Workbench now subscribes to `dev.host.sync` project events, | ||
| which `project-client` had left out of its SSE listener list; and the | ||
|
Comment on lines
+9
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
These lines announce user-visible changes to the Workbench Logs view and live AGENTS.md reference: AGENTS.md:L71-L77 Useful? React with 👍 / 👎.
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No docs change is needed here: both fixes restore behavior the site already documents rather than adding new behavior. |
||
| Playground trace store redacts with the shared `core/credentials` classifier, | ||
| which adds the provider environment-variable patterns its local copy lacked. | ||
| `@agent-bundle/runtime` drops the internal, never-exported | ||
| `expectCanonicalPayload` helper from `state/contract`. No public export, route, | ||
| diagnostic code, or runtime behavior changes otherwise. (#451) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| Repository guidance for this project lives in [AGENTS.md](./AGENTS.md) — read it | ||
| first. It is the single source for code hygiene, Workbench scope, public | ||
| examples, the docsite, changesets, pull requests, and vendored `repos/`. | ||
|
|
||
| Keep it that way: add project rules to `AGENTS.md`, never here. A second copy | ||
| of the guidance is the same duplication the hygiene section exists to prevent. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| import { existsSync, statSync } from 'node:fs'; | ||
| import { resolve } from 'node:path'; | ||
|
|
||
| const conventionalEntryExtensions = ['.ts', '.tsx'] as const; | ||
|
|
||
| /** | ||
| * Probe for a conventional entry source file. A leaf module so both | ||
| * config/normalize.ts and routes/graph.ts can share one rule without closing | ||
| * the discover.ts -> routes/graph.ts -> normalize.ts -> discover.ts cycle. | ||
| */ | ||
| export const conventionalEntryAt = (root: string, ...segments: string[]): string | undefined => { | ||
| const stem = resolve(root, ...segments); | ||
| for (const extension of conventionalEntryExtensions) { | ||
| const candidate = `${stem}${extension}`; | ||
| try { | ||
| if (existsSync(candidate) && statSync(candidate).isFile()) return candidate; | ||
| } catch { | ||
| // A racing deletion means the convention does not apply. | ||
| } | ||
| } | ||
| return undefined; | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit adds three changeset files for one PR even though the repository requires exactly one, and all three list only
agent-bundledespite the change topackages/rsc-runtime/src/state/contract.ts. Consolidate the entries into one changeset that also includes@agent-bundle/runtime, and rewrite its summary to use the required user-facing(#PR)format; otherwise the release metadata will contain three separateagent-bundleentries while omitting the changed runtime package.AGENTS.md reference: AGENTS.md:L97-L105
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 5a66185: the three changesets are consolidated into one
.changeset/deslop-dead-modules.mdthat lists bothagent-bundleand@agent-bundle/runtime(patch), with a user-facing summary ending in(#451). NoteexpectCanonicalPayloadwas never re-exported fromstate/index.ts, so the runtime entry is a patch, not a breaking bump.