@tencent-ai/codebuddy-code 2.137.1-dev.06080a1.202608181343 → 2.137.1-dev.1e21641.202608191518

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.
Files changed (43) hide show
  1. package/dist/codebuddy-headless.js +80 -80
  2. package/dist/codebuddy.js +81 -81
  3. package/dist/web-ui/assets/{CanvasPaneStandaloneView-zfXxWldi.js → CanvasPaneStandaloneView-D-16hIRq.js} +1 -1
  4. package/dist/web-ui/assets/{CanvasView-C1zt0xeq.js → CanvasView-Cmy_OwhG.js} +1 -1
  5. package/dist/web-ui/assets/{DocsView-BY-czkuI.js → DocsView-D7ltd1Cn.js} +1 -1
  6. package/dist/web-ui/assets/{EditorView-DYhVx-By.js → EditorView-DabwBpf2.js} +4 -4
  7. package/dist/web-ui/assets/{KeybindingsView-CmZBQZ08.js → KeybindingsView-DyEXBinT.js} +1 -1
  8. package/dist/web-ui/assets/{LogsView-CEkiw-ej.js → LogsView-DIUDc9aM.js} +1 -1
  9. package/dist/web-ui/assets/{MetricsView-BAiZLSTx.js → MetricsView-Bsob5-BK.js} +1 -1
  10. package/dist/web-ui/assets/{RemoteControlView-CkEGw9Rf.js → RemoteControlView-Bxl8WsqR.js} +1 -1
  11. package/dist/web-ui/assets/{StatsView-WoO5FWv8.js → StatsView-DvKDHaY1.js} +1 -1
  12. package/dist/web-ui/assets/{TracesView-fTXf2HNv.js → TracesView-RT1cgwUv.js} +1 -1
  13. package/dist/web-ui/assets/{WorkersView-B4GA22wu.js → WorkersView-Cv62Qqhl.js} +1 -1
  14. package/dist/web-ui/assets/{canvas-store-CHBKvXUv.js → canvas-store-CU9idWxO.js} +1 -1
  15. package/dist/web-ui/assets/{cssMode-t95y0VvC.js → cssMode-C1Xy-pGH.js} +1 -1
  16. package/dist/web-ui/assets/{editor.main-BuKvQHbu.js → editor.main-ClnGNr0F.js} +3 -3
  17. package/dist/web-ui/assets/{freemarker2-B5nIbzcO.js → freemarker2-CEuj96J6.js} +1 -1
  18. package/dist/web-ui/assets/{handlebars-CJ1X0Wkb.js → handlebars-CCtral8C.js} +1 -1
  19. package/dist/web-ui/assets/{html-C5ysU8Zs.js → html-C_tyZ8wA.js} +1 -1
  20. package/dist/web-ui/assets/{htmlMode-hdvHdMIV.js → htmlMode-C1H7A14A.js} +1 -1
  21. package/dist/web-ui/assets/{index-cl1GS6Hx.js → index-13j4cK6E.js} +4 -4
  22. package/dist/web-ui/assets/{javascript-DHVWRK-u.js → javascript-DH2SY8bg.js} +1 -1
  23. package/dist/web-ui/assets/{jsonMode-BezIdJsH.js → jsonMode-DRzudXvG.js} +1 -1
  24. package/dist/web-ui/assets/{liquid-DvJFXfRS.js → liquid-3eKUnGqD.js} +1 -1
  25. package/dist/web-ui/assets/{lspLanguageFeatures-BN1JiD5D.js → lspLanguageFeatures-Byww3fZ1.js} +1 -1
  26. package/dist/web-ui/assets/{mdx-DnStEace.js → mdx-vvilG4uu.js} +1 -1
  27. package/dist/web-ui/assets/{minus-BaRykPkI.js → minus-B4FdYLU4.js} +1 -1
  28. package/dist/web-ui/assets/{python-BOBIG9Di.js → python-Bk1QBpLK.js} +1 -1
  29. package/dist/web-ui/assets/{razor-BZQcVgfK.js → razor-i0Iz7o4r.js} +1 -1
  30. package/dist/web-ui/assets/{server-CZfmU7si.js → server-BDf20Hy5.js} +1 -1
  31. package/dist/web-ui/assets/{tsMode-BwUuVJUe.js → tsMode-DTDeYfse.js} +1 -1
  32. package/dist/web-ui/assets/{typescript-B9TczXLg.js → typescript-2HSmcnEt.js} +1 -1
  33. package/dist/web-ui/assets/{worker-store-BigbFW9j.js → worker-store-B3vmTQZb.js} +1 -1
  34. package/dist/web-ui/assets/{xml-BEXHIq5N.js → xml-CsH6BKZL.js} +1 -1
  35. package/dist/web-ui/assets/{yaml-CQQPLZO4.js → yaml-BICoCEJ7.js} +1 -1
  36. package/dist/web-ui/index.html +1 -1
  37. package/dist/web-ui/sw.js +1 -1
  38. package/package.json +1 -1
  39. package/product.cloudhosted.json +2 -2
  40. package/product.internal.json +2 -2
  41. package/product.ioa.json +2 -2
  42. package/product.json +3 -3
  43. package/product.selfhosted.json +2 -2
@@ -817,6 +817,6 @@
817
817
  "SelectImage": true,
818
818
  "SkipToolCallSupportCheck": true
819
819
  },
820
- "commit": "06080a1aaf879702ba2e7077b2bfbe5a39100517",
821
- "date": "2026-08-18T05:42:29.487Z"
820
+ "commit": "1e2164127ddfe60932477a4805c278695323e8ce",
821
+ "date": "2026-08-19T07:17:17.830Z"
822
822
  }
@@ -824,6 +824,6 @@
824
824
  }
825
825
  }
826
826
  },
827
- "commit": "06080a1aaf879702ba2e7077b2bfbe5a39100517",
828
- "date": "2026-08-18T05:42:29.482Z"
827
+ "commit": "1e2164127ddfe60932477a4805c278695323e8ce",
828
+ "date": "2026-08-19T07:17:17.832Z"
829
829
  }
package/product.ioa.json CHANGED
@@ -1320,6 +1320,6 @@
1320
1320
  }
1321
1321
  }
1322
1322
  },
1323
- "commit": "06080a1aaf879702ba2e7077b2bfbe5a39100517",
1324
- "date": "2026-08-18T05:42:29.427Z"
1323
+ "commit": "1e2164127ddfe60932477a4805c278695323e8ce",
1324
+ "date": "2026-08-19T07:17:17.879Z"
1325
1325
  }
package/product.json CHANGED
@@ -923,7 +923,7 @@
923
923
  },
924
924
  {
925
925
  "name": "tool-repl-description",
926
- "template": "Execute JavaScript to orchestrate a task in one turn. Session tools are preloaded as async globals — call them directly, no import needed. Supports top-level await. Variables persist across calls within the session — like a notebook kernel.\n\n## When to use this instead of calling tools one by one\n\nUse the REPL when a task takes **more than two tool calls** and those calls are related — that is the single most useful signal. Concretely:\n\n- **Same operation over many items** — read/grep/edit N files, query N records, check N URLs. One loop replaces N round-trips.\n- **A later call depends on an earlier result** — glob then read each hit; list issues then update the matching ones; run a command then branch on its output.\n- **You only need a summary of a large result** — filter/count/aggregate inside the sandbox and return just the conclusion, instead of pulling every intermediate result into the conversation.\n- **Control flow** — conditionals, retry, early exit, `Promise.all` for independent calls.\n\nWorked example — \"read the first line of every spec file\". One REPL call, not 1 + N:\n\n```js\nconst files = await Glob({ pattern: \"src/**/*.spec.ts\" });\nconst heads = [];\nfor (const f of files) {\n heads.push({ file: f.split(\"/\").pop(), head: await Read({ file_path: f, limit: 1 }) });\n}\nreturn heads; // only the summary reaches the conversation\n```\n\nCall a tool directly (not via REPL) for a genuine one-off action: a single `Read`, a single `Bash`, one MCP call. Wrapping one call in JavaScript only adds noise.\n\n## Tools are preloaded (no import)\n\nBuilt-in tools (`Bash`, `Read`, `Write`, `Edit`, `Grep`, `Glob`, `WebSearch`, …) and connected MCP tools are already global functions. MCP tools live on a `mcp_<server>` object (single underscore):\n\n```js\nawait Bash({ command: \"git status --short\" });\nawait Read({ file_path: \"src/a.ts\", limit: 30 });\nawait mcp_github.list_pull_requests({ owner: \"alice\", repo: \"hello-world\" });\n```\n\nThe catalog in the `code` parameter description lists every tool available this session, with its parameter shape. Built-in tool names and `REPL` are reserved — do not shadow them with your own variables. MCP servers always use the `mcp_` prefix so they never collide with builtins; the catalog shows the exact callable name.\n\n## Discovering tools and parameters\n\nThe catalog already lists everything, so you rarely need these — reach for them only when it is not enough:\n\n- `await REPL.searchTools(\"pull request\", { server: \"github\" })` — when the catalog shows a server as an index line without its tools, or you cannot find a tool by name. Pass an array to widen recall (`[\"issue\", \"议题\"]`); mixing English and the user's language helps.\n- `await REPL.describeTool(\"github.search_issues\")` — full JSON Schema. Needed when the catalog shows a parameter as `object` (nested shapes are collapsed there) or when a call was rejected for a bad argument. Returns `null` for an unknown name — then use `searchTools` rather than guessing.\n- `await REPL.describeTools([...])` — same, for up to 10 named tools at once.\n\nDiscovery results are for your code to branch on. Do not `return` or log them wholesale — both the return value and stdout enter the conversation. Return a conclusion instead.\n\n## Tool results are raw, human-formatted output\n\nA tool call returns exactly what that tool produces for a human reader — not a normalized\nstruct. Three consequences worth knowing before you parse anything:\n\n- **MCP tools return a *string*, never a parsed object.** Whether that string holds JSON or\n plain text is up to each server — MCP only guarantees text. Even one server mixes both:\n `directory_tree` returns JSON, while `list_directory` returns `[FILE] a.ts` lines and\n `read_text_file` returns the file verbatim. So **try-parse instead of assuming**, and don't\n burn a round trip probing the shape:\n\n ```js\n const parse = r => { try { return JSON.parse(r); } catch { return String(r); } };\n const tree = parse(await fs.directory_tree({ path })); // → array\n const list = parse(await fs.list_directory({ path })); // → still a string, fine\n ```\n\n- **`Read` prefixes every line** with ` 1→`. Strip it with `.replace(/^\\s*\\d+→/gm, \"\")`\n — the `m` flag is required; without it only the first line loses its prefix.\n- When you only need matching lines, **prefer `Grep`** over reading whole files and\n filtering in JS: less text to clean up, and far less of it flows through the sandbox.\n\nTwo different failure shapes, don't confuse them: a **permission denial** arrives as a real\nobject with an `error` field (`r.error`), whereas a tool's own business error is text inside\nits normal string result (e.g. `'{\"error\":\"not found\"}'`, or a plain `Error: ENOENT ...`) —\ncheck `r.error` first, then inspect the string.\n\n## Handle permission denials\n\nA tool call returns `{ error: \"...\" }` instead of throwing when permission is denied, so one refused call does not kill the script. Check `error` before using a result:\n\n```js\nconst r = await Bash({ command: \"rm -rf /tmp/build\" });\nif (r.error) { /* denied → change approach, skip, or report it back */ }\n```\n\nEvery call goes through the same permission checks as calling the tool directly.\n\n## Sandbox limits\n\nOnly the preloaded session tools plus host-provided capability bridges are available. `import()` is reserved for those bridges: call `REPL.listBridges()` to see which specifiers this session actually offers (often none — then any import fails), and `<bridge>.documentation()` for a bridge's API. Nothing else is importable — `node:fs` and npm packages always fail.\n\n## Surfacing results\n\nReturn a value (`return x`) or leave it as the last expression — that becomes the tool result. To show an image, return `{ $media: \"image/png\", data: <base64-or-data-url> }`, or an array mixing text and images (`return [summary, screenshot]`). Use `nodeRepl.write(text)` for extra text output.\n\nKeep scripts focused; execution is bounded by `timeout` (default 30s, max 600s). Do not write long blocking polling loops inside REPL; if you launched a background agent, return its task id and check later with `TaskOutput({ task_id, block: false })` — the default `block: true` waits up to 60s.\n"
926
+ "template": "Execute JavaScript to orchestrate a task in one turn. Session tools are preloaded as async globals — call them directly, no import needed. Supports top-level await. Variables persist across calls within the session — like a notebook kernel.\n\n## When to use this instead of calling tools one by one\n\nUse the REPL when a task takes **more than two tool calls** and those calls are related — that is the single most useful signal. Concretely:\n\n- **Same operation over many items** — read/grep/edit N files, query N records, check N URLs. One loop replaces N round-trips.\n- **A later call depends on an earlier result** — glob then read each hit; list issues then update the matching ones; run a command then branch on its output.\n- **You only need a summary of a large result** — filter/count/aggregate inside the sandbox and return just the conclusion, instead of pulling every intermediate result into the conversation.\n- **Control flow** — conditionals, retry, early exit, `Promise.all` for independent calls.\n\nWorked example — \"read the first line of every spec file\". One REPL call, not 1 + N:\n\n```js\nconst files = await Glob({ pattern: \"src/**/*.spec.ts\" });\nconst heads = [];\nfor (const f of files) {\n heads.push({ file: f.split(\"/\").pop(), head: await Read({ file_path: f, limit: 1 }) });\n}\nreturn heads; // only the summary reaches the conversation\n```\n\nCall a tool directly (not via REPL) for a genuine one-off action: a single `Read`, a single `Bash`, one MCP call. Wrapping one call in JavaScript only adds noise.\n\n## Tools are preloaded (no import)\n\nBuilt-in tools and connected MCP tools are already global functions — call them directly, no import. MCP tools live on a `mcp_<server>` object (single underscore):\n\n```js\nawait Bash({ command: \"git status --short\" });\nawait mcp_someServer.list_pull_requests({ owner: \"alice\", repo: \"hello-world\" });\n```\n\n**The catalog in the `code` parameter description is the authoritative, complete list of what is callable this session — each tool with its parameter shape.** A tool not shown in the catalog is **not available here**, even a familiar built-in name: it may be disabled for this session (e.g. via `--tools`) or its MCP server may not be exposed to the sandbox. Do not call a tool from memory — if it is not in the catalog, calling it throws `X is not defined`. When a tool you expected is missing, pick a listed alternative (e.g. `Grep` or `Bash` for file work) and **keep using the REPL** — do not abandon it and fall back to one-by-one tool calls. The catalog names are reserved; do not shadow them with your own variables. MCP servers always use the `mcp_` prefix so they never collide with builtins; the catalog shows the exact callable name.\n\n## Discovering tools and parameters\n\nThe catalog already lists everything, so you rarely need these — reach for them only when it is not enough:\n\n- `await REPL.searchTools(\"pull request\", { server: \"github\" })` — when the catalog shows a server as an index line without its tools, or you cannot find a tool by name. Pass an array to widen recall (`[\"issue\", \"议题\"]`); mixing English and the user's language helps.\n- `await REPL.describeTool(\"github.search_issues\")` — full JSON Schema. Needed when the catalog shows a parameter as `object` (nested shapes are collapsed there) or when a call was rejected for a bad argument. Returns `null` for an unknown name — then use `searchTools` rather than guessing.\n- `await REPL.describeTools([...])` — same, for up to 10 named tools at once.\n\nDiscovery results are for your code to branch on. Do not `return` or log them wholesale — both the return value and stdout enter the conversation. Return a conclusion instead.\n\n## Tool results are raw, human-formatted output\n\nA tool call returns exactly what that tool produces for a human reader — not a normalized\nstruct. Three consequences worth knowing before you parse anything:\n\n- **MCP tools return a *string*, never a parsed object.** Whether that string holds JSON or\n plain text is up to each server — MCP only guarantees text. Even one server mixes both:\n `directory_tree` returns JSON, while `list_directory` returns `[FILE] a.ts` lines and\n `read_text_file` returns the file verbatim. So **try-parse instead of assuming**, and don't\n burn a round trip probing the shape:\n\n ```js\n const parse = r => { try { return JSON.parse(r); } catch { return String(r); } };\n const tree = parse(await fs.directory_tree({ path })); // → array\n const list = parse(await fs.list_directory({ path })); // → still a string, fine\n ```\n\n- **`Read` prefixes every line** with ` 1→`. Strip it with `.replace(/^\\s*\\d+→/gm, \"\")`\n — the `m` flag is required; without it only the first line loses its prefix.\n- When you only need matching lines, **prefer `Grep`** over reading whole files and\n filtering in JS: less text to clean up, and far less of it flows through the sandbox.\n\nTwo different failure shapes, don't confuse them: a **permission denial** arrives as a real\nobject with an `error` field (`r.error`), whereas a tool's own business error is text inside\nits normal string result (e.g. `'{\"error\":\"not found\"}'`, or a plain `Error: ENOENT ...`) —\ncheck `r.error` first, then inspect the string.\n\n## Handle permission denials\n\nA tool call returns `{ error: \"...\" }` instead of throwing when permission is denied, so one refused call does not kill the script. Check `error` before using a result:\n\n```js\nconst r = await Bash({ command: \"rm -rf /tmp/build\" });\nif (r.error) { /* denied → change approach, skip, or report it back */ }\n```\n\nEvery call goes through the same permission checks as calling the tool directly.\n\n## Sandbox limits\n\nOnly the preloaded session tools plus host-provided capability bridges are available. `import()` is reserved for those bridges: call `REPL.listBridges()` to see which specifiers this session actually offers (often none — then any import fails), and `<bridge>.documentation()` for a bridge's API. Nothing else is importable — `node:fs` and npm packages always fail.\n\n## Surfacing results\n\nReturn a value (`return x`) or leave it as the last expression — that becomes the tool result. To show an image, return `{ $media: \"image/png\", data: <base64-or-data-url> }`, or an array mixing text and images (`return [summary, screenshot]`). Use `nodeRepl.write(text)` for extra text output.\n\nKeep scripts focused; execution is bounded by `timeout` (default 30s, max 600s). Do not write long blocking polling loops inside REPL; if you launched a background agent, return its task id and check later with `TaskOutput({ task_id, block: false })` — the default `block: true` waits up to 60s.\n"
927
927
  },
928
928
  {
929
929
  "name": "workflow-subagent-system-preamble",
@@ -1825,6 +1825,6 @@
1825
1825
  "description": "tool-repl-description"
1826
1826
  }
1827
1827
  ],
1828
- "commit": "06080a1aaf879702ba2e7077b2bfbe5a39100517",
1829
- "date": "2026-08-18T05:42:29.430Z"
1828
+ "commit": "1e2164127ddfe60932477a4805c278695323e8ce",
1829
+ "date": "2026-08-19T07:17:17.867Z"
1830
1830
  }
@@ -354,6 +354,6 @@
354
354
  "ScheduledTasks": true,
355
355
  "SkipToolCallSupportCheck": true
356
356
  },
357
- "commit": "06080a1aaf879702ba2e7077b2bfbe5a39100517",
358
- "date": "2026-08-18T05:42:29.471Z"
357
+ "commit": "1e2164127ddfe60932477a4805c278695323e8ce",
358
+ "date": "2026-08-19T07:17:17.896Z"
359
359
  }