Repository navigation
Releases
Releases · shift-labs-ai/codemode
v0.48.0 — stop and follow a run, shape how commands start, binaries
New Features
- Stop a run:
execute(code, { signal })settles the run with an error when the signal aborts, firesctx.signalfor every action still running, and ends their commands. See Stop a run. (#112) - Follow a run:
execute(code, { onOutput })receives what actions write while they run, as{ plugin, action, path, text }. A promise it returns holds the command's output back until it settles.bash.run,node.runandpowershell.runare followed with no change to those packages. See Follow a run. (#112) - Shape how commands start: a host passes
spawnHook(command, call)toCodemode.create()orfromProject()and changes the program, arguments, working directory and environment of every command an action starts, or refuses it. See Shape how commands start. (#110) - Binaries: a package declares the programs it needs in
package.jsonundercodemode.binaries, with a download and a checksum per platform. The host installs them withcodemode binaries install, and an action runs one withrunBinary(ctx, name, args). See Binaries. (#108, #110) - A command is asked to end before it is killed: on timeout, abort and a signal to the host, a command's process group and every process it started get SIGTERM, then SIGKILL 5 seconds later. A process that left the group with
setsid()is reached too. (#113)
Breaking Changes
syncExec,ExecOptions,ExecResultandOutputParserare removed from@shiftlabs/codemode/utils/cli. UserunProgram(ctx, program, args, options). See Run a program. (#111)- The bundled
dockerplugin no longer passes the whole host environment todocker. It passesPATH,HOME, the proxy and certificate variables, and everyDOCKER_*variable. (#111) commandPath(name)readsPATHitself and starts no program. It answersundefinedfor a name with a slash in it, skips emptyPATHentries, and never searches the working directory. (#111)- A call that is aborted or times out settles once its command's processes are gone, which can take up to 5 seconds longer for a command that does not end on SIGTERM. (#113)
- A background process left by a shell that has already exited is no longer killed when the call's timeout passes. It keeps running, as it does after a command that returns. (#113)
- The runline names keep working in this release and stop in 0.49.0, one release later than 0.47.0 announced. See Migrating from runline. (#114)
Added
ctx.output(text), for an action that hands the host output while it runs. (#112)runProgramandrunBinaryin@shiftlabs/codemode/utils/cli, which run a program with an argument list and answerstdout,stderrandexitCode. The program gets a short list of the host's environment and the variables the call names. (#111)ctx.binary(name), the path of a binary the plugin declares. (#108, #110)codemode binaries list,install,removeandentry, andBinaryManagerfor a host that installs them itself. (#108, #110)envon a shell plugin's connection, variables added to every command it runs. (#110)
Changed
- Local MCP servers inherit the proxy and certificate variables of the host. (#110)
- A host process that is interrupted asks its commands to end and waits for them. A second interrupt kills them at once. (#113)
Fixed
- A package or binary install command that outlives its timeout is reported as failed, including one that exits cleanly when asked to end. (#113)
v0.47.0
New Features
- MCP servers as plugins: codemode loads a Model Context Protocol server as a plugin and each of its tools as an action. Add one with
codemode mcp add, sign in withcodemode auth <server>, and call its tools from a run like any other action. See MCP. (#93) - Packages published beside codemode: seven plugins are packages with versions of their own, installed with
codemode install npm:@shiftlabs/codemode-<name>:bash,powershell,node,duckdb,websearch,imagegenanddecision. Each needs codemode 0.47.0 and is released by its own tag. See Packages. (#96, #97, #98, #99, #102, #103, #105, #107) - One output limit for every run: a run's result, error and logs are each held to 2,000 lines and 50 KB. Past that, the whole is written to a file in
outputDirand the text is cut with a line naming the file. SetoutputLimitonCodemode.create(),execute()or inconfig.json. (#100)
Breaking Changes
- The output limit is on by default. A run that returned more than 2,000 lines or 50 KB now returns cut text and a file path. Pass
outputLimit: false, orcodemode exec --no-limitwhen piping a large result.maxResultBytesis removed; useoutputLimit. (#100) - The bundled
nodeplugin and its 36node.*actions are removed. Install@shiftlabs/codemode-nodeand callnode.run({ command }). See Install the node plugin. (#99) - The bundled
parallelplugin is removed. Install@shiftlabs/codemode-websearchand replaceparallel.searchwithwebsearch.query. See Install web search. (#102) - The
twakeplugin is removed; its endpoint has answered 404 since the n8n integration it used was withdrawn. (#92) openai.image.createno longer takesstyle, and the DALL-E andgpt-image-1models are no longer offered. (#106)- The image plugins (
openai,together,xai,recraft,googleImage,replicate,fal) refuse animagePathwhose bytes are not a PNG, JPEG, WebP or GIF image, whatever the file is named.recraftalso takes SVG. (#106) - Bitwarden and Gett identify as
codemode, so an existing login looks like a new device to the provider. (#92) - A prerelease tag is no longer published under npm's
nexttag; every release tag publishes tolatest. (#107)
Added
runShell(shell, script, options)in@shiftlabs/codemode/utils/cli, a shell runner for plugins that kills the whole process group on timeout and abort. (#95)outputDironCodemode.create(),execute()and inconfig.json, the directory actions write output files into. (#95)maxActionOutputBytes(8 MiB by default), what one action holds in memory; actions read it asctx.maxOutputBytes. (#100)ctx.signalfor actions, a plugindescription, and actionhintsandoutputSchema. (#93)routerCredentialand its companions, for a plugin that holds one optional key per provider. See A key per provider. (#105)readLocalFile,readLocalImage,imageFacts,imageDataUrlandimageBase64, for a plugin that reads a file an action input names. (#103, #105)actions.describeshows the value shape of a record input. (#105)
Changed
- Default image models follow the providers' current ones:
openaigpt-image-2.6-flare,togetherblack-forest-labs/FLUX.2-dev,xaigrok-imagine-image-2.0,recraftrecraftv4_1,googleImagegemini-nano-banana-2.1. (#106) togethercallsapi.together.aiand sendsstepsonly when a call sets it. (#106)- A generated image is saved with the extension its bytes call for. (#106)
Fixed
codemode-websearch@0.1.0
What's Changed
- Publish runline only once the codemode it forwards to is served (SHFT-2950) by @Michaelliv in #91
- Bitwarden and Gett identify as codemode; remove the twake plugin (SHFT-2950) by @Michaelliv in #92
- feat: MCP servers as plugins, their tools as actions (SHFT-2951) by @Michaelliv in #93
- fix: carry on past a failing MCP server or package, and count the tools an entry loads (SHFT-2953) by @Michaelliv in #94
- feat: a shell runner for plugins, and output files in a directory the host names (SHFT-2960) by @Michaelliv in #95
- feat: codemode-bash, a package with one action that runs a bash command (SHFT-2961) by @Michaelliv in #96
- feat: codemode-powershell package (SHFT-2962) by @Michaelliv in #97
- feat: codemode-duckdb package (SHFT-2958) by @Michaelliv in #98
- feat!: node becomes the codemode-node package with one action, node.run (SHFT-2963) by @Michaelliv in #99
- feat!: one output limit for every run, held by the engine (SHFT-2973) by @Michaelliv in #100
- feat!: codemode-websearch package, one websearch.query across twelve providers (SHFT-2967) by @Michaelliv in #102
- feat: codemode-imagegen package, create, edit and models across seven providers (SHFT-2966) by @Michaelliv in #103
- feat: codemode-decision package, decision.ask across OpenAI and TypeSafe (SHFT-2968) by @Michaelliv in #105
- fix: bundled image plugins use current models, and images are told by their bytes (SHFT-2983) by @Michaelliv in #106
- feat: each package beside codemode is released by a tag of its own (SHFT-2964) by @Michaelliv in #107
Full Changelog: https://github.com/shift-labs-ai/codemode/compare/v0.46.0...codemode-websearch@0.1.0
codemode-powershell@0.1.0
What's Changed
- Publish runline only once the codemode it forwards to is served (SHFT-2950) by @Michaelliv in #91
- Bitwarden and Gett identify as codemode; remove the twake plugin (SHFT-2950) by @Michaelliv in #92
- feat: MCP servers as plugins, their tools as actions (SHFT-2951) by @Michaelliv in #93
- fix: carry on past a failing MCP server or package, and count the tools an entry loads (SHFT-2953) by @Michaelliv in #94
- feat: a shell runner for plugins, and output files in a directory the host names (SHFT-2960) by @Michaelliv in #95
- feat: codemode-bash, a package with one action that runs a bash command (SHFT-2961) by @Michaelliv in #96
- feat: codemode-powershell package (SHFT-2962) by @Michaelliv in #97
- feat: codemode-duckdb package (SHFT-2958) by @Michaelliv in #98
- feat!: node becomes the codemode-node package with one action, node.run (SHFT-2963) by @Michaelliv in #99
- feat!: one output limit for every run, held by the engine (SHFT-2973) by @Michaelliv in #100
- feat!: codemode-websearch package, one websearch.query across twelve providers (SHFT-2967) by @Michaelliv in #102
- feat: codemode-imagegen package, create, edit and models across seven providers (SHFT-2966) by @Michaelliv in #103
- feat: codemode-decision package, decision.ask across OpenAI and TypeSafe (SHFT-2968) by @Michaelliv in #105
- fix: bundled image plugins use current models, and images are told by their bytes (SHFT-2983) by @Michaelliv in #106
- feat: each package beside codemode is released by a tag of its own (SHFT-2964) by @Michaelliv in #107
Full Changelog: https://github.com/shift-labs-ai/codemode/compare/v0.46.0...codemode-powershell@0.1.0
codemode-node@0.1.0
What's Changed
- Publish runline only once the codemode it forwards to is served (SHFT-2950) by @Michaelliv in #91
- Bitwarden and Gett identify as codemode; remove the twake plugin (SHFT-2950) by @Michaelliv in #92
- feat: MCP servers as plugins, their tools as actions (SHFT-2951) by @Michaelliv in #93
- fix: carry on past a failing MCP server or package, and count the tools an entry loads (SHFT-2953) by @Michaelliv in #94
- feat: a shell runner for plugins, and output files in a directory the host names (SHFT-2960) by @Michaelliv in #95
- feat: codemode-bash, a package with one action that runs a bash command (SHFT-2961) by @Michaelliv in #96
- feat: codemode-powershell package (SHFT-2962) by @Michaelliv in #97
- feat: codemode-duckdb package (SHFT-2958) by @Michaelliv in #98
- feat!: node becomes the codemode-node package with one action, node.run (SHFT-2963) by @Michaelliv in #99
- feat!: one output limit for every run, held by the engine (SHFT-2973) by @Michaelliv in #100
- feat!: codemode-websearch package, one websearch.query across twelve providers (SHFT-2967) by @Michaelliv in #102
- feat: codemode-imagegen package, create, edit and models across seven providers (SHFT-2966) by @Michaelliv in #103
- feat: codemode-decision package, decision.ask across OpenAI and TypeSafe (SHFT-2968) by @Michaelliv in #105
- fix: bundled image plugins use current models, and images are told by their bytes (SHFT-2983) by @Michaelliv in #106
- feat: each package beside codemode is released by a tag of its own (SHFT-2964) by @Michaelliv in #107
Full Changelog: https://github.com/shift-labs-ai/codemode/compare/v0.46.0...codemode-node@0.1.0
codemode-imagegen@0.1.0
What's Changed
- Publish runline only once the codemode it forwards to is served (SHFT-2950) by @Michaelliv in #91
- Bitwarden and Gett identify as codemode; remove the twake plugin (SHFT-2950) by @Michaelliv in #92
- feat: MCP servers as plugins, their tools as actions (SHFT-2951) by @Michaelliv in #93
- fix: carry on past a failing MCP server or package, and count the tools an entry loads (SHFT-2953) by @Michaelliv in #94
- feat: a shell runner for plugins, and output files in a directory the host names (SHFT-2960) by @Michaelliv in #95
- feat: codemode-bash, a package with one action that runs a bash command (SHFT-2961) by @Michaelliv in #96
- feat: codemode-powershell package (SHFT-2962) by @Michaelliv in #97
- feat: codemode-duckdb package (SHFT-2958) by @Michaelliv in #98
- feat!: node becomes the codemode-node package with one action, node.run (SHFT-2963) by @Michaelliv in #99
- feat!: one output limit for every run, held by the engine (SHFT-2973) by @Michaelliv in #100
- feat!: codemode-websearch package, one websearch.query across twelve providers (SHFT-2967) by @Michaelliv in #102
- feat: codemode-imagegen package, create, edit and models across seven providers (SHFT-2966) by @Michaelliv in #103
- feat: codemode-decision package, decision.ask across OpenAI and TypeSafe (SHFT-2968) by @Michaelliv in #105
- fix: bundled image plugins use current models, and images are told by their bytes (SHFT-2983) by @Michaelliv in #106
- feat: each package beside codemode is released by a tag of its own (SHFT-2964) by @Michaelliv in #107
Full Changelog: https://github.com/shift-labs-ai/codemode/compare/v0.46.0...codemode-imagegen@0.1.0
codemode-duckdb@0.1.0
What's Changed
- Publish runline only once the codemode it forwards to is served (SHFT-2950) by @Michaelliv in #91
- Bitwarden and Gett identify as codemode; remove the twake plugin (SHFT-2950) by @Michaelliv in #92
- feat: MCP servers as plugins, their tools as actions (SHFT-2951) by @Michaelliv in #93
- fix: carry on past a failing MCP server or package, and count the tools an entry loads (SHFT-2953) by @Michaelliv in #94
- feat: a shell runner for plugins, and output files in a directory the host names (SHFT-2960) by @Michaelliv in #95
- feat: codemode-bash, a package with one action that runs a bash command (SHFT-2961) by @Michaelliv in #96
- feat: codemode-powershell package (SHFT-2962) by @Michaelliv in #97
- feat: codemode-duckdb package (SHFT-2958) by @Michaelliv in #98
- feat!: node becomes the codemode-node package with one action, node.run (SHFT-2963) by @Michaelliv in #99
- feat!: one output limit for every run, held by the engine (SHFT-2973) by @Michaelliv in #100
- feat!: codemode-websearch package, one websearch.query across twelve providers (SHFT-2967) by @Michaelliv in #102
- feat: codemode-imagegen package, create, edit and models across seven providers (SHFT-2966) by @Michaelliv in #103
- feat: codemode-decision package, decision.ask across OpenAI and TypeSafe (SHFT-2968) by @Michaelliv in #105
- fix: bundled image plugins use current models, and images are told by their bytes (SHFT-2983) by @Michaelliv in #106
- feat: each package beside codemode is released by a tag of its own (SHFT-2964) by @Michaelliv in #107
Full Changelog: https://github.com/shift-labs-ai/codemode/compare/v0.46.0...codemode-duckdb@0.1.0
codemode-decision@0.1.0
What's Changed
- Publish runline only once the codemode it forwards to is served (SHFT-2950) by @Michaelliv in #91
- Bitwarden and Gett identify as codemode; remove the twake plugin (SHFT-2950) by @Michaelliv in #92
- feat: MCP servers as plugins, their tools as actions (SHFT-2951) by @Michaelliv in #93
- fix: carry on past a failing MCP server or package, and count the tools an entry loads (SHFT-2953) by @Michaelliv in #94
- feat: a shell runner for plugins, and output files in a directory the host names (SHFT-2960) by @Michaelliv in #95
- feat: codemode-bash, a package with one action that runs a bash command (SHFT-2961) by @Michaelliv in #96
- feat: codemode-powershell package (SHFT-2962) by @Michaelliv in #97
- feat: codemode-duckdb package (SHFT-2958) by @Michaelliv in #98
- feat!: node becomes the codemode-node package with one action, node.run (SHFT-2963) by @Michaelliv in #99
- feat!: one output limit for every run, held by the engine (SHFT-2973) by @Michaelliv in #100
- feat!: codemode-websearch package, one websearch.query across twelve providers (SHFT-2967) by @Michaelliv in #102
- feat: codemode-imagegen package, create, edit and models across seven providers (SHFT-2966) by @Michaelliv in #103
- feat: codemode-decision package, decision.ask across OpenAI and TypeSafe (SHFT-2968) by @Michaelliv in #105
- fix: bundled image plugins use current models, and images are told by their bytes (SHFT-2983) by @Michaelliv in #106
- feat: each package beside codemode is released by a tag of its own (SHFT-2964) by @Michaelliv in #107
Full Changelog: https://github.com/shift-labs-ai/codemode/compare/v0.46.0...codemode-decision@0.1.0
codemode-bash@0.1.0
What's Changed
- Publish runline only once the codemode it forwards to is served (SHFT-2950) by @Michaelliv in #91
- Bitwarden and Gett identify as codemode; remove the twake plugin (SHFT-2950) by @Michaelliv in #92
- feat: MCP servers as plugins, their tools as actions (SHFT-2951) by @Michaelliv in #93
- fix: carry on past a failing MCP server or package, and count the tools an entry loads (SHFT-2953) by @Michaelliv in #94
- feat: a shell runner for plugins, and output files in a directory the host names (SHFT-2960) by @Michaelliv in #95
- feat: codemode-bash, a package with one action that runs a bash command (SHFT-2961) by @Michaelliv in #96
- feat: codemode-powershell package (SHFT-2962) by @Michaelliv in #97
- feat: codemode-duckdb package (SHFT-2958) by @Michaelliv in #98
- feat!: node becomes the codemode-node package with one action, node.run (SHFT-2963) by @Michaelliv in #99
- feat!: one output limit for every run, held by the engine (SHFT-2973) by @Michaelliv in #100
- feat!: codemode-websearch package, one websearch.query across twelve providers (SHFT-2967) by @Michaelliv in #102
- feat: codemode-imagegen package, create, edit and models across seven providers (SHFT-2966) by @Michaelliv in #103
- feat: codemode-decision package, decision.ask across OpenAI and TypeSafe (SHFT-2968) by @Michaelliv in #105
- fix: bundled image plugins use current models, and images are told by their bytes (SHFT-2983) by @Michaelliv in #106
- feat: each package beside codemode is released by a tag of its own (SHFT-2964) by @Michaelliv in #107
Full Changelog: https://github.com/shift-labs-ai/codemode/compare/v0.46.0...codemode-bash@0.1.0
v0.46.0
New Features
- Runline is now codemode: the package is
@shiftlabs/codemode, the command iscodemode, and projects live in.codemodefolders. The runline names keep working until 0.48.0, each with a notice that says what replaces it. See Migrate from runline.
Breaking Changes
- The npm package is
@shiftlabs/codemode. Replace therunlinedependency and import from@shiftlabs/codemode. Until 0.48.0 therunlinepackage forwards to it under the old export names (#90) - The command is
codemode. Until 0.48.0 therunlinepackage keeps arunlinecommand that prints a notice and runs it (#90) - Project and user folders are
.codemodeand~/.codemode. Rename.runlineand~/.runline; until 0.48.0 a.runlinefolder is used where no.codemodesits beside it, and trust given to it carries over (#90) Runline,RunlineOptions,RunlineExecuteOptions,RunlineConfigandRunlinePluginAPIareCodemode,CodemodeOptions,CodemodeExecuteOptions,CodemodeConfigandCodemodePluginAPI.PackageManager.forRunlineFolders()isforCodemodeFolders(). The old names stay available until 0.48.0 (#90)- Plugins import
@shiftlabs/codemodeand declare it as their peer dependency. Until 0.48.0 an import ofrunlineresolves to codemode (#90) - A package names its plugins under the
codemodekey inpackage.jsonand is found by thecodemode-pluginkeyword. Until 0.48.0 therunlinekey and therunline-pluginkeyword are read too (#90) RUNLINE_PACKAGE_MANAGER,RUNLINE_OFFLINEandRUNLINE_OAUTH_CALLBACK_PORTareCODEMODE_*. Until 0.48.0 the old variables are read when the new ones are unset (#90)- Lines written to stderr start with
[codemode]instead of[runline]. Update anything that matches on the prefix (#90) - An AWS role that codemode assumes gets the session name
codemodeby default. SetroleSessionName: "runline"in the connection to keep the old one (#90)
Changed
- The repository moved to
shift-labs-ai/codemode. The old address redirects (#90) pi-runlinemoved to its own repository, Michaelliv/pi-runline, and is no longer released from this one (#90)codemode initin a folder that still has a.runlinefolder reports the existing project instead of creating a second one (#90)