picocode-core 0.9.230 → 0.9.231

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "picocode-core",
3
- "version": "0.9.230",
3
+ "version": "0.9.231",
4
4
  "description": "The agent runtime behind pico: sessions, tools, subagents, MCP, memory, and model access",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -210,7 +210,8 @@ export function createClaudeCodeEngine({ command = claudeCommand(), idleMs = IDL
210
210
  // call through the bridge lands on the tool_use Claude announced for
211
211
  // it (same name, same arguments, oldest first), once every message
212
212
  // before it has been handled, since it reaches pico by another channel
213
- entry.bridge.setTurn(tools.filter((tool) => !COVERED_TOOLS.has(tool.name)), async (name, args) => {
213
+ const covered = host.ownTools ? new Set(host.ownTools) : COVERED_TOOLS
214
+ entry.bridge.setTurn(tools.filter((tool) => !covered.has(tool.name)), async (name, args) => {
214
215
  await chain
215
216
  const at = unclaimed.findIndex((use) => use.name === name && JSON.stringify(use.args) === JSON.stringify(args ?? {}))
216
217
  const use = at >= 0 ? unclaimed.splice(at, 1)[0] : null
@@ -18,10 +18,12 @@ const BRIDGE_PREFIX = `mcp__${BRIDGE_SERVER}__`
18
18
  // pico tools Claude Code already has its own version of; offering both
19
19
  // would only make the model choose between equivalent tools. Memory is
20
20
  // not among them: Claude Code's own is switched off, so every model in a
21
- // project keeps one store, pico's
21
+ // project keeps one store, pico's. Deliberation is not either: Claude
22
+ // Code has nothing like it. A host that decides this itself passes its
23
+ // own list (boot.engineOwnTools)
22
24
  export const COVERED_TOOLS = new Set([
23
25
  'read', 'write', 'edit', 'bash', 'glob', 'grep', 'view', 'shell_output', 'shell_kill', 'tool_result',
24
- 'agent_start', 'agent_list', 'agent_collect', 'agent_cancel', 'deliberate',
26
+ 'agent_start', 'agent_list', 'agent_collect', 'agent_cancel',
25
27
  'skill',
26
28
  ])
27
29
 
package/src/controller.js CHANGED
@@ -799,6 +799,8 @@ export function createController({ boot, run = runTurn, compactRun = compactHist
799
799
  env: boot.env,
800
800
  contextFiles: boot.startupContext?.files ?? [],
801
801
  engineState: savedEngineState(engine),
802
+ // the pico tools this engine's model is not offered, when the host decides that in place of the engine
803
+ ownTools: boot.engineOwnTools?.[engine.name] ?? null,
802
804
  // subagents the engine runs itself, shown in the activity list
803
805
  subagents: { start: (options) => agents.track({ ...options, sessionId: state.session?.id, sessionFile: state.session?.file }) },
804
806
  }