Repository navigation
Graduate @qduc/agent-core (turn harness) from Term2 - #4
Merged
Merged
Conversation
The harness developed in Term2 (packages/agent-harness-core) is released from here, next to wire, through the existing manual, Trusted Publisher workflow. A new `package` input picks wire (default), core or both; core always goes to the `next` dist-tag. The installed-tarball smoke runs two concurrent turns through the packed core and checks its declarations. The name previously belonged to a retired session-runtime snapshot that was never published; core-migration-scope.md now says the two differ. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JqbJBAaQKKFnHRJoDCGExb
Term2 now vendors core tarballs packed here instead of keeping its own copy. Moves the package import guard over from Term2 (Node built-ins and package-relative imports only); it parses with TypeScript 6 because TypeScript 7 has no JavaScript compiler API. README and release docs no longer describe a copy synced from Term2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JqbJBAaQKKFnHRJoDCGExb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The turn harness Term2 incubated in
packages/agent-harness-corenow lives here aspackages/coreand is published as@qduc/agent-core, next to wire. This repository owns its source. Term2 and ChatForge install tarballs packed here until the alpha is on npm.The name was previously used by the retired session-runtime snapshot. That snapshot's
0.1.0was published and then unpublished, so it cannot be reused.docs/core-migration-scope.mdnow notes that the current package is a different one.Changes
packages/core:startTurnharness with no runtime dependencies,0.2.0-alpha.1, Node 24+, shipsdist. Its README describes this repository rather than Term2.publish-agent-packages.yml:packageinput:wire(default),coreorboth. A plain wire release behaves as before.--tag next.nexttag;skipLibCheck.scripts/core-import-boundary.test.ts:typescript-apidev alias), because TypeScript 7 has no JavaScript compiler API.docs/release.mddescribe core and the vendoring flow.Verification
Run on Node 24:
pnpm build,pnpm typecheckandpnpm testall pass (13 wire + 8 repository tests).pnpm smokepasses: wire consumer, two concurrent core turns, and both sets of declarations.pnpm smoke:checkoutpasses.Mutation check: adding
import 'yaml'to core'sindex.tsmakes the import guard fail.Before publishing core
@qduc/agent-coremust point at this repository,publish-agent-packages.ymland thenpm-agent-packagesenvironment.mainwithpublishoff first, then withpackage: core.Related
ccr-c2e20a05-677q07vendor the tarball packed at 3e322ba.Generated by Claude Code