Skip to content

Release AgentFlow for CodeSignal sessions - #21

Merged
matheusgalvao1 merged 2 commits into
mainfrom
feat/release-packaging
Dec 4, 2026
Merged

matheusgalvao1 merged 2 commits into
mainfrom
feat/release-packaging

Conversation

@matheusgalvao1

Copy link
Copy Markdown
Collaborator

Purpose

Package AgentFlow so a CodeSignal session can download and run it, with the models set by the base task or the task.

Changes

  • npm run pack builds release.tar.gz (1.8 MB): the server and the report bundled with esbuild (apps/server/dist/index.cjs, report.cjs), the built editor, a package.json with start:prod and report. No node_modules, no .config/, so unpacking never overwrites the session's models.
  • npm run verify:release boots the tarball in an empty directory without API keys and checks the editor page, GET /api/config, saving the canvas, a Start → Approval run (needs no model) and the report. npm run release:local runs build, pack and verify.
  • .github/workflows/release.yml: on every merge to main, lint, typecheck, test, build, pack, verify, publish pre-release vN, move the floating prerelease release. Production (latest) changes only when a tested build is promoted by hand.
  • .codesignal/ mirrors the base task's scripts:
    • setup.sh downloads the release into agentflow/ (prerelease on staging, latest otherwise), copies .codesignal/agentflow/config.json (required) and default-workflow.json (optional) into agentflow/.config/, and serves on port 3000. A task overrides either file by shipping its own at the same path.
    • run_solution.sh prints the report for the grader once setup has unpacked the release.
  • Docs: new docs/releases.md; README, AGENTS.md and CLAUDE.md point to it.

Risk

  • Adds a workflow that creates tags and releases on every merge to main; nothing reaches latest without a manual promotion.

Validation

  • npm run lint and npm run release:local pass locally (bundle, unpack, boot, run, report).
  • The session scripts are checked in a staging session once the base task exists.

- npm run pack builds release.tar.gz: the server and report bundled with
  esbuild, the built editor, no node_modules and no .config/.
- npm run verify:release boots the tarball like a session: editor page,
  model configuration, saved canvas, a Start -> Approval run and the report.
- release.yml publishes every merge to main as pre-release vN and moves the
  floating prerelease channel; promotion to latest stays manual.
- .codesignal/ mirrors the base task's setup.sh and run_solution.sh: download
  the release, copy the models and starting workflow from
  .codesignal/agentflow/, serve on port 3000, print the report on Run.
@matheusgalvao1
matheusgalvao1 merged commit 7fa9300 into main Dec 4, 2026
2 checks passed
@matheusgalvao1
matheusgalvao1 deleted the feat/release-packaging branch December 4, 2026 13:42
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