Skip to content

Releases

v0.48.0 — stop and follow a run, shape how commands start, binaries

Choose a tag to compare

@github-actions github-actions released this 28 Nov 17:18

New Features

  • Stop a run: execute(code, { signal }) settles the run with an error when the signal aborts, fires ctx.signal for 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.run and powershell.run are followed with no change to those packages. See Follow a run. (#112)
  • Shape how commands start: a host passes spawnHook(command, call) to Codemode.create() or fromProject() 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.json under codemode.binaries, with a download and a checksum per platform. The host installs them with codemode binaries install, and an action runs one with runBinary(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, ExecResult and OutputParser are removed from @shiftlabs/codemode/utils/cli. Use runProgram(ctx, program, args, options). See Run a program. (#111)
  • The bundled docker plugin no longer passes the whole host environment to docker. It passes PATH, HOME, the proxy and certificate variables, and every DOCKER_* variable. (#111)
  • commandPath(name) reads PATH itself and starts no program. It answers undefined for a name with a slash in it, skips empty PATH entries, 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)
  • runProgram and runBinary in @shiftlabs/codemode/utils/cli, which run a program with an argument list and answer stdout, stderr and exitCode. 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, remove and entry, and BinaryManager for a host that installs them itself. (#108, #110)
  • env on 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

Choose a tag to compare

@github-actions github-actions released this 23 Nov 22:23

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 with codemode 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, imagegen and decision. 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 outputDir and the text is cut with a line naming the file. Set outputLimit on Codemode.create(), execute() or in config.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, or codemode exec --no-limit when piping a large result. maxResultBytes is removed; use outputLimit. (#100)
  • The bundled node plugin and its 36 node.* actions are removed. Install @shiftlabs/codemode-node and call node.run({ command }). See Install the node plugin. (#99)
  • The bundled parallel plugin is removed. Install @shiftlabs/codemode-websearch and replace parallel.search with websearch.query. See Install web search. (#102)
  • The twake plugin is removed; its endpoint has answered 404 since the n8n integration it used was withdrawn. (#92)
  • openai.image.create no longer takes style, and the DALL-E and gpt-image-1 models are no longer offered. (#106)
  • The image plugins (openai, together, xai, recraft, googleImage, replicate, fal) refuse an imagePath whose bytes are not a PNG, JPEG, WebP or GIF image, whatever the file is named. recraft also 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 next tag; every release tag publishes to latest. (#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)
  • outputDir on Codemode.create(), execute() and in config.json, the directory actions write output files into. (#95)
  • maxActionOutputBytes (8 MiB by default), what one action holds in memory; actions read it as ctx.maxOutputBytes. (#100)
  • ctx.signal for actions, a plugin description, and action hints and outputSchema. (#93)
  • routerCredential and its companions, for a plugin that holds one optional key per provider. See A key per provider. (#105)
  • readLocalFile, readLocalImage, imageFacts, imageDataUrl and imageBase64, for a plugin that reads a file an action input names. (#103, #105)
  • actions.describe shows the value shape of a record input. (#105)

Changed

  • Default image models follow the providers' current ones: openai gpt-image-2.6-flare, together black-forest-labs/FLUX.2-dev, xai grok-imagine-image-2.0, recraft recraftv4_1, googleImage gemini-nano-banana-2.1. (#106)
  • together calls api.together.ai and sends steps only when a call sets it. (#106)
  • A generated image is saved with the extension its bytes call for. (#106)

Fixed

  • codemode mcp refresh and codemode update carry on past a server or package that fails, report each failure, and exit with status 1. (#94)
  • codemode mcp list counts the tools an entry's tools filter loads, not every tool the server offers. (#94)

codemode-websearch@0.1.0

Choose a tag to compare

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

Choose a tag to compare

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

Choose a tag to compare

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

Choose a tag to compare

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

Choose a tag to compare

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

Choose a tag to compare

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

Choose a tag to compare

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

Choose a tag to compare

@github-actions github-actions released this 21 Nov 08:52
9668392

New Features

  • Runline is now codemode: the package is @shiftlabs/codemode, the command is codemode, and projects live in .codemode folders. 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 the runline dependency and import from @shiftlabs/codemode. Until 0.48.0 the runline package forwards to it under the old export names (#90)
  • The command is codemode. Until 0.48.0 the runline package keeps a runline command that prints a notice and runs it (#90)
  • Project and user folders are .codemode and ~/.codemode. Rename .runline and ~/.runline; until 0.48.0 a .runline folder is used where no .codemode sits beside it, and trust given to it carries over (#90)
  • Runline, RunlineOptions, RunlineExecuteOptions, RunlineConfig and RunlinePluginAPI are Codemode, CodemodeOptions, CodemodeExecuteOptions, CodemodeConfig and CodemodePluginAPI. PackageManager.forRunlineFolders() is forCodemodeFolders(). The old names stay available until 0.48.0 (#90)
  • Plugins import @shiftlabs/codemode and declare it as their peer dependency. Until 0.48.0 an import of runline resolves to codemode (#90)
  • A package names its plugins under the codemode key in package.json and is found by the codemode-plugin keyword. Until 0.48.0 the runline key and the runline-plugin keyword are read too (#90)
  • RUNLINE_PACKAGE_MANAGER, RUNLINE_OFFLINE and RUNLINE_OAUTH_CALLBACK_PORT are CODEMODE_*. 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 codemode by default. Set roleSessionName: "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-runline moved to its own repository, Michaelliv/pi-runline, and is no longer released from this one (#90)
  • codemode init in a folder that still has a .runline folder reports the existing project instead of creating a second one (#90)