Skip to content

chore(toolcraft): prepare help renderer release - #279

Closed
kamilio wants to merge 111 commits into
mainfrom
release/toolcraft-help-renderer-fixes
Closed

kamilio wants to merge 111 commits into
mainfrom
release/toolcraft-help-renderer-fixes

Conversation

@kamilio

@kamilio kamilio commented May 4, 2026

Copy link
Copy Markdown
Member

Summary

  • bump @poe-code/design-system package metadata to 0.0.2
  • bump toolcraft package metadata to 0.0.4 and align workspace consumer ranges
  • keep release flow on GitHub trusted publishing; no local npm publish

Validation

  • npm run build -w @poe-code/design-system
  • npm run build -w toolcraft
  • npm run test -w @poe-code/design-system
  • npm run test -w toolcraft
  • npm run screenshot-poe-code -- --help
  • pre-push hook ran npm test successfully

Release note

npm currently reports toolcraft latest as 0.0.11. The trusted-publishing workflow computes the next publish version from npm, so the actual next publish will need to be above 0.0.11 even though this branch contains the requested package metadata bump.

kamilio added 30 commits May 3, 2026 07:58
Adds opt-in priority order to both backends with `move`, `reorder`, and
`all({ order })` plus `TaskList.moveBetweenLists`. Markdown-dir encodes
order via a numeric filename prefix; yaml-file relies on insertion order
in the YAML map. Records `created` for `order: 'created'`.
Restates the chat-vs-document split: per-level summaries, numbered
decisions, open questions, confirmation asks all belong in chat. Drops
the inline `- Open question:` convention and the "Open questions"
sub-bullet from level 3.
Switches the plan to the ralph schema and seeds the harness status block
so the document is runnable as a ralph harness pair.
- agent-harness: generic runner for agent-script harness pairs.
- braintrust-integration: pipeline plan for tracing via Braintrust.
- e2b-integration: pipeline plan for sandboxed execution via e2b.
Add e2bAuthScope to runner-e2b and resolve the API key from the
merged ~/.poe-code/config.json + project config (env var still wins).
Drops the dead auth.providers.e2b branch and the unused
runtime.api_key_env field.
… CLI

The CLI's runtime build command dynamically imports
buildE2bRuntimeTemplate from @poe-code/runner-e2b but the package
only exposed the older buildOrResolveTemplate, so e2b builds failed
with "package does not export buildE2bRuntimeTemplate".

Renames buildOrResolveTemplate to buildE2bRuntimeTemplate, mirrors
the docker variant's return shape (backend/hash/templateId/cached),
adds force, and exports it. The CLI now also pulls resolveE2bApiKey
from the same package so it does not need to know about auth.
The CLI is published as the unscoped poe-code on npm; the runtime
init Dockerfile referenced @poe-code/cli, which 404s and broke
e2b template builds at the npm install step.
runtime init wrote .poe-code/Dockerfile and runtime.type=e2b in
.poe-code/config.json. build_context is narrowed to .poe-code so the
template hash does not walk the whole monorepo.
Runtime init scaffolds a starter image. Bundling claude-code by
default ties new projects to one specific agent; users who want it
can add the install line. The default keeps poe-code plus git +
ca-certificates so the sandbox can fetch repos.
The poe-code project's e2b sandbox is the place where every agent
needs to be exercisable end-to-end. Adds claude-code, codex,
opencode (npm), kimi-cli (uv), and goose (curl installer) on top of
poe-code itself. Skips claude-desktop (GUI) and poe-agent (bundled
in poe-code).
Each provider already declares its install steps; calling poe-code
install <agent> keeps the Dockerfile aligned with the provider
definition rather than duplicating npm / curl / uv invocations that
would drift when a provider's install changes.
Spawn already pre-flighted credentials by calling getPoeApiKey but
discarded the value. Anyone who logged in with poe-code login (key
stored in the encrypted auth-store, not in env) had nothing to
propagate to a sandboxed runtime, since agent-spawn forwards
process.env into the e2b sandbox env.

Now the resolved key is written back into process.env when it is
not already exported, so login-only users get the same automatic
sandbox auth that env-var users already had. Existing exports are
untouched.
The repo defaults back to the host runtime; e2b is selected
explicitly with --runtime e2b on the spawn / runtime commands.
kamilio added 29 commits May 4, 2026 04:39
Lets callers scan a directory containing free-form markdown alongside
tasks without aborting on the first file that fails frontmatter
validation. get() still surfaces MalformedTaskError so per-id reads
remain strict.
discoverPlans now opens the plan list with ignoreMalformed: true so
free-form markdown sitting next to plan files no longer breaks
discovery for the surrounding harnesses.
Drops the "<agent> is not configured via poe. Do you want to proceed?"
prompt from spawn (interactive and non-interactive paths) along with the
supporting helper, imports, and tests.
Adds a SpawnProgressEvent contract on OpenSpec so providers can emit
structured lifecycle events. The e2b factory and opened-env fire events
around template build, sandbox connect, workspace upload/download. The
spawn CLI translates these into a design-system spinner so silent boot
phases no longer look frozen.
npm ci does not support workspace: protocol; align with sibling deps.
Dynamic imports of optional peer deps (e.g. braintrust, loaded via
`await import()` with a friendly catch) must not fail the bundle's
declared-dependency audit. The previous `if`/`else-if` both added to
the set, defeating the kind check.
@kamilio kamilio closed this May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant