Skip to content

v0.47.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 22:23
· 11 commits to main since this release

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)