Repository navigation
Release AgentFlow for CodeSignal sessions - #21
Merged
Merged
Conversation
- 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.
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.
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 packbuildsrelease.tar.gz(1.8 MB): the server and the report bundled with esbuild (apps/server/dist/index.cjs,report.cjs), the built editor, apackage.jsonwithstart:prodandreport. Nonode_modules, no.config/, so unpacking never overwrites the session's models.npm run verify:releaseboots 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:localruns build, pack and verify..github/workflows/release.yml: on every merge tomain, lint, typecheck, test, build, pack, verify, publish pre-releasevN, move the floatingprereleaserelease. Production (latest) changes only when a tested build is promoted by hand..codesignal/mirrors the base task's scripts:setup.shdownloads the release intoagentflow/(prereleaseon staging,latestotherwise), copies.codesignal/agentflow/config.json(required) anddefault-workflow.json(optional) intoagentflow/.config/, and serves on port 3000. A task overrides either file by shipping its own at the same path.run_solution.shprints the report for the grader once setup has unpacked the release.docs/releases.md; README, AGENTS.md and CLAUDE.md point to it.Risk
main; nothing reacheslatestwithout a manual promotion.Validation
npm run lintandnpm run release:localpass locally (bundle, unpack, boot, run, report).