zcode-app-cli 3.14.5-34 → 3.15.3-35

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 (75) hide show
  1. package/README.md +13 -2
  2. package/bin/zcode.js +4 -0
  3. package/docs/CONFIGURATION.md +36 -5
  4. package/docs/CONFIGURATION.zh-CN.md +29 -3
  5. package/docs/PROVIDER_CONFIG.md +25 -0
  6. package/docs/PROVIDER_CONFIG.zh-CN.md +20 -0
  7. package/package.json +4 -2
  8. package/vendor/cli-config.cjs +88 -0
  9. package/vendor/extraction.json +24 -6
  10. package/vendor/node_modules/@zcode/tui/dist/index.js +457 -85
  11. package/vendor/packages/browser-use-plugin/README.md +1 -1
  12. package/vendor/packages/browser-use-plugin/docs/api.json +1 -1
  13. package/vendor/packages/browser-use-plugin/docs/overview.md +6 -6
  14. package/vendor/packages/browser-use-plugin/docs/playwright.md +3 -3
  15. package/vendor/packages/browser-use-plugin/docs/workflow.md +2 -2
  16. package/vendor/packages/browser-use-plugin/scripts/browser-client.mjs +5 -7
  17. package/vendor/packages/browser-use-plugin/scripts/build.mjs +0 -1
  18. package/vendor/packages/browser-use-plugin/skills/control-browser/SKILL.md +9 -9
  19. package/vendor/packages/bundled-skills/skills/dynamic-workflows/SKILL.md +760 -687
  20. package/vendor/packages/bundled-skills/skills/dynamic-workflows/examples.md +310 -1
  21. package/vendor/packages/bundled-skills/skills/dynamic-workflows/patterns.md +336 -4
  22. package/vendor/packages/documents-plugin/.zcode-plugin/plugin.json +2 -2
  23. package/vendor/packages/documents-plugin/package.json +2 -2
  24. package/vendor/packages/documents-plugin/skills/docx/LICENSE.txt +10 -10
  25. package/vendor/packages/node-repl-host/.zcode-plugin/plugin.json +1 -1
  26. package/vendor/packages/node-repl-host/dist/mcp/server.js +116 -48
  27. package/vendor/packages/node-repl-host/package.json +1 -1
  28. package/vendor/packages/node-repl-host/scripts/build.mjs +4 -4
  29. package/vendor/packages/pdf-plugin/.zcode-plugin/plugin.json +2 -2
  30. package/vendor/packages/pdf-plugin/package.json +2 -2
  31. package/vendor/packages/pdf-plugin/skills/pdf/LICENSE.txt +10 -10
  32. package/vendor/packages/pdf-plugin/skills/pdf/references/resume-altacv.tex +1 -1
  33. package/vendor/packages/plugin-creator-plugin/skills/plugin-creator/SKILL.md +1 -1
  34. package/vendor/packages/plugin-creator-plugin/skills/plugin-creator/references/plugin-json-spec.md +1 -1
  35. package/vendor/packages/presentations-plugin/.zcode-plugin/plugin.json +2 -2
  36. package/vendor/packages/presentations-plugin/package.json +2 -2
  37. package/vendor/packages/presentations-plugin/skills/pptx/LICENSE.txt +10 -10
  38. package/vendor/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions/SKILL.md +1 -1
  39. package/vendor/packages/spreadsheets-plugin/.zcode-plugin/plugin.json +2 -2
  40. package/vendor/packages/spreadsheets-plugin/package.json +2 -2
  41. package/vendor/packages/spreadsheets-plugin/skills/xlsx/LICENSE.txt +10 -10
  42. package/vendor/packages/visualize-plugin/.zcode-plugin/plugin.json +10 -0
  43. package/vendor/packages/visualize-plugin/package.json +8 -0
  44. package/vendor/packages/visualize-plugin/skills/visualize/LICENSE.md +5 -0
  45. package/vendor/packages/visualize-plugin/skills/visualize/SKILL.md +277 -0
  46. package/vendor/packages/visualize-plugin/skills/visualize/assets/calendar.js +273 -0
  47. package/vendor/packages/visualize-plugin/skills/visualize/assets/runtime-manifest.json +16 -0
  48. package/vendor/packages/visualize-plugin/skills/visualize/assets/standalone-host-bridge.js +256 -0
  49. package/vendor/packages/visualize-plugin/skills/visualize/assets/standalone-shell.js +183 -0
  50. package/vendor/packages/visualize-plugin/skills/visualize/assets/vendor/d3-7.9.0.min.js +2 -0
  51. package/vendor/packages/visualize-plugin/skills/visualize/assets/vendor/d3-7.9.0.min.js.LICENSE +13 -0
  52. package/vendor/packages/visualize-plugin/skills/visualize/assets/vendor/floating-ui-core-1.7.3.min.js +1 -0
  53. package/vendor/packages/visualize-plugin/skills/visualize/assets/vendor/floating-ui-core-1.7.3.min.js.LICENSE +20 -0
  54. package/vendor/packages/visualize-plugin/skills/visualize/assets/vendor/floating-ui-dom-1.7.4.min.js +1 -0
  55. package/vendor/packages/visualize-plugin/skills/visualize/assets/vendor/floating-ui-dom-1.7.4.min.js.LICENSE +20 -0
  56. package/vendor/packages/visualize-plugin/skills/visualize/assets/vendor/lucide-1.17.0.js +19521 -0
  57. package/vendor/packages/visualize-plugin/skills/visualize/assets/vendor/lucide-1.17.0.js.LICENSE +43 -0
  58. package/vendor/packages/visualize-plugin/skills/visualize/assets/vendor/manifest.json +57 -0
  59. package/vendor/packages/visualize-plugin/skills/visualize/assets/visualize.css +1222 -0
  60. package/vendor/packages/visualize-plugin/skills/visualize/assets/visualize.html +517 -0
  61. package/vendor/packages/visualize-plugin/skills/visualize/examples/calendar.html +10 -0
  62. package/vendor/packages/visualize-plugin/skills/visualize/references/api.md +128 -0
  63. package/vendor/packages/visualize-plugin/skills/visualize/references/styles.md +3 -0
  64. package/vendor/packages/visualize-plugin/skills/visualize/scripts/render.py +248 -0
  65. package/vendor/packages/visualize-plugin/skills/visualize/scripts/vendor.py +56 -0
  66. package/vendor/packages/visualize-plugin/skills/visualize/tweak.md +62 -0
  67. package/vendor/packages/visualize-plugin/skills/visualize/widgets/calendar.md +90 -0
  68. package/vendor/packages/zcode-cua-plugin/.zcode-plugin/plugin.json +1 -1
  69. package/vendor/packages/zcode-cua-plugin/docs/computer-use.md +1 -1
  70. package/vendor/packages/zcode-cua-plugin/package.json +1 -1
  71. package/vendor/packages/zcode-cua-plugin/scripts/computer-use-client.mjs +35 -41
  72. package/vendor/packages/zcode-guide-plugin/skills/zcode-configuration-guide/SKILL.md +2 -2
  73. package/vendor/provider/zcode-builtin.json +96 -1
  74. package/vendor/zcode.cjs +1622 -1425
  75. package/zcode-runtime.lock.json +3 -3
@@ -71069,10 +71069,10 @@ function isRecord(value) {
71069
71069
 
71070
71070
  // ../contracts/dist/tools/node-repl.js
71071
71071
  var JsInputBaseShape = {
71072
- // 修复原因:同一模型 schema 同时服务 persistent core REPL 与 fresh-kernel Browser Use MCP;
71072
+ // 同一模型 schema 同时服务 persistent core REPL 与 fresh-kernel Browser Use MCP;
71073
71073
  // 字段文案不能替任一执行边界承诺跨调用状态,生命周期由各自 tool description 说明。
71074
71074
  code: external_exports2.string().describe("JavaScript code to execute in the Node REPL session"),
71075
- // 修复原因:只写 optional 无法让模型判断何时覆盖默认值,长等待容易在副作用完成后超时。
71075
+ // 只写 optional 无法让模型判断何时覆盖默认值,长等待容易在副作用完成后超时。
71076
71076
  timeout_ms: external_exports2.number().int().positive().max(12e4).optional().describe("Per-call timeout in milliseconds. You MUST provide this when the code is expected to run longer than 30000 ms, including all awaited operations. Set it to at least the estimated total runtime plus 15000 ms. If that exceeds the 120000 ms maximum, split the work into multiple calls.")
71077
71077
  };
71078
71078
  var JsUserTitleSchema = external_exports2.string().min(1).max(120).describe("Required short user-facing title in the user's language that describes the intended action without implementation terms such as js, JavaScript, or node_repl");
@@ -80316,7 +80316,7 @@ var NodeReplSession = class {
80316
80316
  importModule: (specifier) => this.importModule(specifier),
80317
80317
  nodeRepl: nodeReplApi,
80318
80318
  // 每次 kernel reset 都重建 browser-client facade;旧 context 中的 browser/tab binding
80319
- // 不能跨 reset 漂移到新 generation,和 Codex fresh Node session 的 bootstrap 边界一致。
80319
+ // 不能跨 reset 漂移到新 generation,保持新会话 bootstrap 边界一致。
80320
80320
  ...this.createInjectedGlobals()
80321
80321
  };
80322
80322
  const context = createContext(sandbox);
@@ -80393,12 +80393,12 @@ var NodeReplSession = class {
80393
80393
  mergeResponseMeta(meta4) {
80394
80394
  if (!this.currentSink)
80395
80395
  return;
80396
- const currentSurface = this.currentSink.responseMeta["codex/toolSurface"];
80397
- const nextSurface = meta4["codex/toolSurface"];
80396
+ const currentSurface = this.currentSink.responseMeta["zcode/toolSurface"];
80397
+ const nextSurface = meta4["zcode/toolSurface"];
80398
80398
  if (currentSurface && typeof currentSurface === "object" && !Array.isArray(currentSurface) && nextSurface && typeof nextSurface === "object" && !Array.isArray(nextSurface)) {
80399
80399
  this.setResponseMeta({
80400
80400
  ...meta4,
80401
- "codex/toolSurface": {
80401
+ "zcode/toolSurface": {
80402
80402
  ...currentSurface,
80403
80403
  ...nextSurface
80404
80404
  }
@@ -87423,6 +87423,8 @@ var HELPER_GHOST_CURSOR_OVERLAY_ARG;
87423
87423
  var HELPER_BACKGROUND_MODE_ARG;
87424
87424
  var HELPER_PIP_MODE_ARG;
87425
87425
  var HELPER_PIP_LIVE_PROBE_ARG;
87426
+ var HELPER_ADDON_ENV;
87427
+ var ZCODE_CUA_WIN_HELPER_RECIPE_ENV;
87426
87428
  var HELPER_GHOST_CURSOR_CAPTURE_ARG;
87427
87429
  var init_helperConstants = __esm({
87428
87430
  "src/broker/helperConstants.ts"() {
@@ -87448,6 +87450,8 @@ var init_helperConstants = __esm({
87448
87450
  HELPER_BACKGROUND_MODE_ARG = "--background-mode";
87449
87451
  HELPER_PIP_MODE_ARG = "--pip-mode";
87450
87452
  HELPER_PIP_LIVE_PROBE_ARG = "--pip-live-probe";
87453
+ HELPER_ADDON_ENV = "ZCODE_CUA_HELPER_ADDON";
87454
+ ZCODE_CUA_WIN_HELPER_RECIPE_ENV = "ZCODE_CUA_WIN_HELPER_RECIPE";
87451
87455
  HELPER_GHOST_CURSOR_CAPTURE_ARG = "--ghost-cursor-capture";
87452
87456
  }
87453
87457
  });
@@ -87460,7 +87464,7 @@ var ZCODE_CUA_HELPER_BUILD_ID;
87460
87464
  var init_cua_version = __esm({
87461
87465
  "src/broker/shared/cua-version.ts"() {
87462
87466
  "use strict";
87463
- ZCODE_CUA_HELPER_BUILD_ID = true ? "pipeline-299589-639500b6" : "";
87467
+ ZCODE_CUA_HELPER_BUILD_ID = true ? "pipeline-307162-d7ca8bee" : "";
87464
87468
  }
87465
87469
  });
87466
87470
  var init_shared = __esm({
@@ -108943,7 +108947,7 @@ var NOOP_PEER_CHECKER = Object.freeze({
108943
108947
  verifySocketPeer(_socketPath, _socket) {
108944
108948
  }
108945
108949
  });
108946
- var CUA_BROKER_IPC_VERSION = 2;
108950
+ var CUA_BROKER_IPC_VERSION = 3;
108947
108951
  var cancelContext = new AsyncLocalStorage();
108948
108952
  function brokerCancelSignalFromAbortSignal(signal) {
108949
108953
  return {
@@ -114062,7 +114066,7 @@ var leftClickTool = clickToolDef({
114062
114066
  var scrollTool = {
114063
114067
  name: "scroll",
114064
114068
  title: "Scroll",
114065
- description: 'Scroll at a target. scroll_amount is clamped to 0..100. Scroll has NO accessibility actuation: it is always a raw event, so under strategy=auto or a11y an element target fails closed. On macOS strategy=event is background/window-scoped; Linux/Windows retain their foreground raw route. A coordinate is bound to the current raster inside CUA. Example: scroll(target={"type":"coordinate","x":200,"y":300}, scroll_direction="down", scroll_amount=10, strategy="event"). ' + SKILL_REF,
114069
+ description: `Scroll at a target. scroll_amount is clamped to 0..100. An element target scrolls through accessibility when available (Windows UIA Scroll pattern on the element's scroll container \u2014 background-safe, no focus move): amount maps to ~10% of the scroll range per unit (10 \u2248 full range, 100 = end), and a call already at the range end is a successful no-op \u2014 re-observe to confirm position. strategy=a11y requires an element target and fails closed when a11y scroll is unavailable; strategy=auto tries a11y first and falls back to the raw coordinate scroll only when a11y scroll is proven unavailable (the Windows raw route requires the target app frontmost); strategy=event is always raw. A coordinate target is always raw (macOS background/window-scoped; Linux/Windows foreground-gated). A coordinate is bound to the current raster inside CUA. Example: scroll(target={"type":"element","index":4}, scroll_direction="down", scroll_amount=10). ` + SKILL_REF,
114066
114070
  inputSchema: scrollSchema,
114067
114071
  buildHandler: (deps) => async (input2) => {
114068
114072
  const args = input2;
@@ -114086,6 +114090,7 @@ var scrollTool = {
114086
114090
  let point;
114087
114091
  let targetAppRef;
114088
114092
  let targetIsElement = false;
114093
+ let targetNative;
114089
114094
  try {
114090
114095
  const resolved = resolveTarget(target, {
114091
114096
  session: toolSession(deps),
@@ -114099,14 +114104,48 @@ var scrollTool = {
114099
114104
  point = resolved.point;
114100
114105
  targetAppRef = resolved.app_ref;
114101
114106
  targetIsElement = resolved.isElement;
114102
- if (strategy === "a11y") {
114107
+ targetNative = resolved.native;
114108
+ if (strategy === "a11y" && !targetNative) {
114103
114109
  return toolError2(
114104
- "scroll has no accessibility actuation; strategy=a11y requires an accessibility operation (AX/UIA/AT-SPI), but scrolling is implemented as raw pointer input. Use strategy=event (background/window-scoped on macOS) or keyboard navigation against a focused element."
114110
+ "strategy=a11y scroll requires an element target: accessibility scrolling actuates the element's scroll container (Windows UIA). A coordinate target is raw-only \u2014 use strategy=event, or target an element (e.g. a list item) to scroll its container."
114105
114111
  );
114106
114112
  }
114107
114113
  } catch (e) {
114108
114114
  return pointerResolveError(e);
114109
114115
  }
114116
+ if (targetNative && strategy !== "event") {
114117
+ const native = targetNative;
114118
+ try {
114119
+ await callPointerAction(
114120
+ deps,
114121
+ "element_scroll",
114122
+ {
114123
+ native,
114124
+ direction: args.scroll_direction,
114125
+ amount: applied
114126
+ },
114127
+ [target]
114128
+ );
114129
+ return postActionObserve(deps, {
114130
+ note: scrollNote(applied, requested) + " (scrolled via accessibility on the element's scroll container; re-observe to confirm position.)",
114131
+ app_ref: targetAppRef,
114132
+ return_state: args.return_state
114133
+ });
114134
+ } catch (e) {
114135
+ const code = e?.code;
114136
+ const details = e?.details;
114137
+ const actionProvenUnsent = details !== null && typeof details === "object" && !Array.isArray(details) && details.action_sent === false;
114138
+ const capabilityMiss = code === "action_unavailable" && actionProvenUnsent || code === "method_not_found";
114139
+ if (strategy === "a11y" || !capabilityMiss) {
114140
+ return pointerDispatchErrorResult(deps, e, {
114141
+ method: "element_scroll",
114142
+ note: "Scroll may already have reached the target container.",
114143
+ appRef: args.app_ref ?? targetAppRef,
114144
+ returnState: args.return_state ?? "none"
114145
+ });
114146
+ }
114147
+ }
114148
+ }
114110
114149
  try {
114111
114150
  const scopedAppRef = frameScopedAppRef(deps, args.app_ref ?? targetAppRef, target);
114112
114151
  const expectedPid = await resolveExpectedPid(
@@ -114547,7 +114586,7 @@ async function coordinateHitTestPreflight(deps, target, resolved) {
114547
114586
  var typeTool = {
114548
114587
  name: "type",
114549
114588
  title: "Type",
114550
- description: 'Type text into an editable element, a target app, or the current focus.\n\nPrefer element targets: `target` is an element target ({"type":"element","index":4}); a coordinate target is accepted and first hit-tested through accessibility to the element owning that point (an empty or non-actuable point is refused with action_sent=false). With an editable element the default (strategy=auto/a11y) sets the field\'s value via accessibility -- no focus move, no global keystrokes -- so it works on a background/non-frontmost app and never steals focus; it REPLACES the field\'s contents (select_text first, or strategy=event, to insert). With `app_ref` and no element, this is app-scoped input: macOS posts to the target window through a synthetic-focus SkyLight session -- it works on a background app and never steals focus, but a web-content editor (Electron/Chromium) may not consume these keys: the dispatch succeeds while the field stays unchanged, so prefer setValue on the editable element, or re-read the value to confirm the text landed; app_ref.window_id is preserved and verified immediately before dispatch. On Linux and Windows (neither has pid-targeted keyboard) the app MUST be frontmost or the call is refused -- prefer an editable element target when not frontmost. On macOS strategy=event requires the app and exact app_ref.window_id already frontmost and focused; it never activates implicitly. After Cmd+Shift+G, observe by pid/bundle without the old panel window_id, then type against the fresh attached_dialog actual_window_id. Without target/app_ref, a11y backends refuse because raw foreground text can hit the user\'s current-focus app; only non-a11y fallback backends use targetless current-focus typing.\nExample: type(text="hello", target={"type":"element","index":1}).\n' + SKILL_REF2,
114589
+ description: 'Type text into an editable element, a target app, or the current focus.\n\nPrefer element targets: `target` is an element target ({"type":"element","index":4}); a coordinate target is accepted and first hit-tested through accessibility to the element owning that point (an empty or non-actuable point is refused with action_sent=false). With an editable element the default (strategy=auto/a11y) sets the field\'s value via accessibility -- no focus move, no global keystrokes -- so it works on a background/non-frontmost app and never steals focus; it REPLACES the field\'s contents (select_text first, or strategy=event, to insert). With `app_ref` and no element, this is app-scoped input: macOS posts to the target window through a synthetic-focus SkyLight session -- it works on a background app and never steals focus, but a web-content editor (Electron/Chromium) may not consume these keys: the dispatch succeeds while the field stays unchanged, so prefer setValue on the editable element, or re-read the value to confirm the text landed; app_ref.window_id is preserved and verified immediately before dispatch. On Linux (no pid-targeted keyboard) the app MUST be frontmost or the call is refused. On Windows the call brings the verified target app/window to the foreground first (skipped when already frontmost; nothing is sent if activation cannot be verified) -- this steals focus once; prefer an editable element target to type into a background app without focus changes. On macOS strategy=event requires the app and exact app_ref.window_id already frontmost and focused; it never activates implicitly. After Cmd+Shift+G, observe by pid/bundle without the old panel window_id, then type against the fresh attached_dialog actual_window_id. Without target/app_ref, a11y backends refuse because raw foreground text can hit the user\'s current-focus app; only non-a11y fallback backends use targetless current-focus typing.\nExample: type(text="hello", target={"type":"element","index":1}).\n' + SKILL_REF2,
114551
114590
  inputSchema: typeSchema,
114552
114591
  buildHandler: (deps) => async (input2) => {
114553
114592
  const args = input2;
@@ -114965,7 +115004,7 @@ async function runKeyHold(deps, input2) {
114965
115004
  var keyTool = {
114966
115005
  name: "key",
114967
115006
  title: "Key",
114968
- description: 'Press a non-text key or explicit chord (Return, Escape, Tab, cmd+a, arrows). Not for typing ordinary text -- use type(app_ref=..., text=...) for that. Negative repeat is refused, repeat=0 is a no-op, and positive values are clamped to 1..100. With `app_ref`, sends an app-scoped chord (macOS binds it to the verified CGWindowID through synthetic focus); on Linux and Windows (neither has pid-targeted keyboard) the app MUST be frontmost or the call is refused -- prefer an element target / perform_action when the app is not frontmost. Without `app_ref` this is a FOREGROUND-ONLY raw fallback: a11y backends refuse it because a GLOBAL key would reach the user\'s frontmost app; only non-a11y fallback backends use targetless current-focus keys. Modifiers are OS-specific: macOS cmd/shift/ctrl/alt; Linux ctrl/shift/alt/super; Windows ctrl/shift/alt/win. Use ctrl (not cmd) for shortcuts on Linux/Windows.\nOn macOS strategy="event" requires an already-frontmost, freshly verified app_ref.window_id; it never activates implicitly. For file panels, after Cmd+Shift+G omit the old panel window_id once to discover and pin the focused attached_dialog. auto keeps the synthetic-focus background route. A focused submit button + Enter is auto-routed through the element action path, no strategy needed.\nExample: key(text="return", app_ref={"pid":1}).\n' + SKILL_REF2,
115007
+ description: 'Press a non-text key or explicit chord (Return, Escape, Tab, cmd+a, arrows). Not for typing ordinary text -- use type(app_ref=..., text=...) for that. Negative repeat is refused, repeat=0 is a no-op, and positive values are clamped to 1..100. With `app_ref`, sends an app-scoped chord (macOS binds it to the verified CGWindowID through synthetic focus); on Linux (no pid-targeted keyboard) the app MUST be frontmost or the call is refused; on Windows the call brings the verified target app/window to the foreground first (skipped when already frontmost; nothing is sent if activation cannot be verified) -- this steals focus once -- prefer an element target / perform_action when the app must stay in the background. Without `app_ref` this is a FOREGROUND-ONLY raw fallback: a11y backends refuse it because a GLOBAL key would reach the user\'s frontmost app; only non-a11y fallback backends use targetless current-focus keys. Modifiers are OS-specific: macOS cmd/shift/ctrl/alt; Linux ctrl/shift/alt/super; Windows ctrl/shift/alt/win. Use ctrl (not cmd) for shortcuts on Linux/Windows.\nOn macOS strategy="event" requires an already-frontmost, freshly verified app_ref.window_id; it never activates implicitly. For file panels, after Cmd+Shift+G omit the old panel window_id once to discover and pin the focused attached_dialog. auto keeps the synthetic-focus background route. A focused submit button + Enter is auto-routed through the element action path, no strategy needed.\nExample: key(text="return", app_ref={"pid":1}).\n' + SKILL_REF2,
114969
115008
  inputSchema: keySchema,
114970
115009
  buildHandler: (deps) => async (input2) => {
114971
115010
  const args = input2;
@@ -115303,8 +115342,8 @@ var TOOL_DEF_BY_NAME = new Map([
115303
115342
  ...keyboardRuntimeTools.map((t) => [t.name, t])
115304
115343
  ]);
115305
115344
  var SERVER_VERSION = (() => {
115306
- if ("0.6.3".trim().length > 0) {
115307
- return "0.6.3";
115345
+ if ("0.6.4".trim().length > 0) {
115346
+ return "0.6.4";
115308
115347
  }
115309
115348
  try {
115310
115349
  const require2 = createRequire2(import.meta.url);
@@ -115581,6 +115620,7 @@ var BROKER_METHODS = [
115581
115620
  "element_set_value",
115582
115621
  "element_perform_action",
115583
115622
  "element_select_text",
115623
+ "element_scroll",
115584
115624
  // 原生粘贴:Helper 内部完成「保存剪贴板 → 写入 → 发粘贴键 → 还原」,
115585
115625
  // 取代 host 侧用 read_clipboard/write_clipboard 拼装的四步(后者已删除)。
115586
115626
  // 原子化顺带消掉还原竞态:四步之间用户或别的进程改写剪贴板会被覆盖。
@@ -116061,7 +116101,11 @@ function createComputerUseRuntime(options) {
116061
116101
  }
116062
116102
  };
116063
116103
  }
116064
- async function ensureStandaloneHelperLaunched(socketPath, env) {
116104
+ async function ensureStandaloneHelperLaunched(socketPath, env, options = {}) {
116105
+ if (process.platform === "win32") {
116106
+ await ensureWindowsHelperForked(socketPath, env, options.spawn);
116107
+ return;
116108
+ }
116065
116109
  if (process.platform !== "darwin") return;
116066
116110
  const { existsSync: existsSync5 } = await import("node:fs");
116067
116111
  const bundledDevAppPath = env.ZCODE_CUA_BUNDLED_HELPER_APP_PATH?.trim();
@@ -116109,6 +116153,43 @@ async function launchHelperApp(appPath, socketPath, env) {
116109
116153
  await promisify(execFile2)("/usr/bin/open", args, { timeout: 5e3 }).catch(() => {
116110
116154
  });
116111
116155
  }
116156
+ async function ensureWindowsHelperForked(socketPath, env, spawnImpl) {
116157
+ const raw = env[ZCODE_CUA_WIN_HELPER_RECIPE_ENV]?.trim();
116158
+ if (!raw) return;
116159
+ let recipe;
116160
+ try {
116161
+ recipe = JSON.parse(raw);
116162
+ } catch {
116163
+ return;
116164
+ }
116165
+ if (!recipe || typeof recipe !== "object") return;
116166
+ if (typeof recipe.command !== "string" || !recipe.command || typeof recipe.entryPath !== "string" || !recipe.entryPath || typeof recipe.root !== "string" || !recipe.root || typeof recipe.addonPath !== "string" || !recipe.addonPath || !recipe.commandEnv || typeof recipe.commandEnv !== "object" || !Number.isInteger(recipe.hostPid) || recipe.hostPid <= 0) {
116167
+ return;
116168
+ }
116169
+ const { spawn } = await import("node:child_process");
116170
+ const run = spawnImpl ?? spawn;
116171
+ try {
116172
+ const child = run(
116173
+ recipe.command,
116174
+ [recipe.entryPath, "--socket", socketPath, "--parent-pid", String(recipe.hostPid)],
116175
+ {
116176
+ cwd: recipe.root,
116177
+ detached: true,
116178
+ stdio: "ignore",
116179
+ env: {
116180
+ ...process.env,
116181
+ ...recipe.commandEnv,
116182
+ [HELPER_ADDON_ENV]: recipe.addonPath,
116183
+ ELECTRON_RUN_AS_NODE: "1"
116184
+ }
116185
+ }
116186
+ );
116187
+ child.once("error", () => {
116188
+ });
116189
+ child.unref();
116190
+ } catch {
116191
+ }
116192
+ }
116112
116193
 
116113
116194
  // src/browser-bridge.ts
116114
116195
  import { randomUUID as randomUUID2 } from "node:crypto";
@@ -116471,7 +116552,7 @@ var browserCommandSchema = external_exports.discriminatedUnion("method", [
116471
116552
  modifiers: external_exports.array(browserKeyModifierSchema).optional(),
116472
116553
  tabId: external_exports.string().optional()
116473
116554
  }).strict(),
116474
- // Codex CUA keypress:keys 是一个组合键,必须保留逐键 down/up 顺序,不能压成末键 + bitmask。
116555
+ // CUA 组合键输入:keys 是一个组合键,必须保留逐键 down/up 顺序,不能压成末键 + bitmask。
116475
116556
  external_exports.object({
116476
116557
  method: external_exports.literal("cuaKeypress"),
116477
116558
  keys: external_exports.array(external_exports.string().min(1)).min(1),
@@ -116484,7 +116565,7 @@ var browserCommandSchema = external_exports.discriminatedUnion("method", [
116484
116565
  y: external_exports.number().optional(),
116485
116566
  tabId: external_exports.string().optional()
116486
116567
  }).strict(),
116487
- // Codex CUA scroll:视口锚点与滚动 delta 是两组不同坐标,且可携带 modifier。
116568
+ // CUA 滚动输入:视口锚点与滚动 delta 是两组不同坐标,且可携带 modifier。
116488
116569
  external_exports.object({
116489
116570
  method: external_exports.literal("cuaScroll"),
116490
116571
  x: external_exports.number(),
@@ -116494,7 +116575,7 @@ var browserCommandSchema = external_exports.discriminatedUnion("method", [
116494
116575
  modifiers: external_exports.array(browserKeyModifierSchema).optional(),
116495
116576
  tabId: external_exports.string().optional()
116496
116577
  }).strict(),
116497
- // Codex DOM CUA scroll:nodeId 缺省时从视口中心滚动;存在时从该节点中心滚动。
116578
+ // DOM CUA 滚动输入:nodeId 缺省时从视口中心滚动;存在时从该节点中心滚动。
116498
116579
  external_exports.object({
116499
116580
  method: external_exports.literal("domCuaScroll"),
116500
116581
  nodeId: external_exports.string().min(1).optional(),
@@ -116549,7 +116630,7 @@ var browserCommandSchema = external_exports.discriminatedUnion("method", [
116549
116630
  modifiers: external_exports.array(browserKeyModifierSchema).optional(),
116550
116631
  tabId: external_exports.string().optional()
116551
116632
  }).strict(),
116552
- // Codex CUA drag:完整 path 是公共合同,backend 必须逐点发送而不是只取首尾。
116633
+ // CUA drag 输入:完整 path 是公共合同,backend 必须逐点发送而不是只取首尾。
116553
116634
  external_exports.object({
116554
116635
  method: external_exports.literal("cuaDrag"),
116555
116636
  path: external_exports.array(browserPointSchema).min(1),
@@ -116586,7 +116667,7 @@ var browserCommandSchema = external_exports.discriminatedUnion("method", [
116586
116667
  timeoutMs: external_exports.number().int().positive().optional(),
116587
116668
  tabId: external_exports.string().optional()
116588
116669
  }).strict(),
116589
- // Codex PlaywrightAPI.waitForTimeout:固定等待只接受非负整数,0 表示让出一次 timer tick。
116670
+ // PlaywrightAPI.waitForTimeout:固定等待只接受非负整数,0 表示让出一次 timer tick。
116590
116671
  external_exports.object({
116591
116672
  method: external_exports.literal("playwrightWaitForTimeout"),
116592
116673
  timeoutMs: external_exports.number().int().nonnegative(),
@@ -116641,7 +116722,9 @@ var browserCommandSchema = external_exports.discriminatedUnion("method", [
116641
116722
  deliverable: external_exports.boolean().optional()
116642
116723
  }).strict(),
116643
116724
  external_exports.object({ method: external_exports.literal("turnEnded"), turnId: external_exports.string().min(1).optional() }).strict(),
116644
- external_exports.object({ method: external_exports.literal("closeSession") }).strict(),
116725
+ // closeTabs:连同该 session 名下的 tab 一起关(含已释放回该 session 的)。只给永不回来认领的
116726
+ // session 用——dwf 子代理(docs/browser-use/2026-07-14-browser-tab-conversation-isolation-spec.md §2.3)。
116727
+ external_exports.object({ method: external_exports.literal("closeSession"), closeTabs: external_exports.boolean().optional() }).strict(),
116645
116728
  external_exports.object({ method: external_exports.literal("cancelRequest"), requestId: external_exports.string().min(1) }).strict(),
116646
116729
  // close:关闭指定受控 tab(tabId 缺省=当前 tab)。manager 层处理:detach + 通知 renderer 卸载 webview。
116647
116730
  external_exports.object({ method: external_exports.literal("close"), tabId: external_exports.string().optional() }).strict(),
@@ -116864,7 +116947,6 @@ var nodeReplBrowserBrokerResponseSchema = external_exports.discriminatedUnion("o
116864
116947
 
116865
116948
  // src/runtime-bridge.ts
116866
116949
  var NODE_REPL_BROWSER_BRIDGE_SYMBOL = Symbol.for("zcode.node-repl.browser-control-bridge");
116867
- var BROWSER_UNAVAILABLE_IN_SUBAGENT_MESSAGE = "Browser is not available in subagent";
116868
116950
 
116869
116951
  // src/browser-bridge.ts
116870
116952
  var MAX_RESPONSE_BYTES = 32 * 1024 * 1024;
@@ -116876,16 +116958,9 @@ function createBrowserBridgeGlobals(input2) {
116876
116958
  }
116877
116959
  return active;
116878
116960
  };
116879
- const assertAvailable = () => {
116880
- const active = assertActive();
116881
- if (active.requestMeta.runtime_scope === "subagent") {
116882
- throw new Error(BROWSER_UNAVAILABLE_IN_SUBAGENT_MESSAGE);
116883
- }
116884
- return active;
116885
- };
116886
116961
  const transport = {
116887
116962
  list: async () => {
116888
- const active = assertAvailable();
116963
+ const active = assertActive();
116889
116964
  const response = await sendBrokerRequest(
116890
116965
  { op: "list", ...requestContext(active.requestMeta) },
116891
116966
  active.signal
@@ -116894,7 +116969,7 @@ function createBrowserBridgeGlobals(input2) {
116894
116969
  return response.browsers ?? [];
116895
116970
  },
116896
116971
  execute: async (browserId, browserGeneration, command) => {
116897
- const active = assertAvailable();
116972
+ const active = assertActive();
116898
116973
  const response = await sendBrokerRequest(
116899
116974
  {
116900
116975
  op: "execute",
@@ -116915,7 +116990,7 @@ function createBrowserBridgeGlobals(input2) {
116915
116990
  [NODE_REPL_BROWSER_BRIDGE_SYMBOL]: {
116916
116991
  ...transport,
116917
116992
  documentationRoot: input2.documentationRoot,
116918
- assertAvailable
116993
+ assertAvailable: assertActive
116919
116994
  }
116920
116995
  };
116921
116996
  }
@@ -117000,8 +117075,8 @@ function mergeBrowserResponseMeta(session, command, result) {
117000
117075
  const finalized = result.ok && command.method === "finalizeTabs";
117001
117076
  const includeOpenTabs = result.ok && isBrowserSurfaceSideEffect(command);
117002
117077
  session.mergeResponseMeta({
117003
- "codex/browserUse": true,
117004
- "codex/toolSurface": {
117078
+ "zcode/browserUse": true,
117079
+ "zcode/toolSurface": {
117005
117080
  kind: "browserUse",
117006
117081
  backend: meta4.backendType,
117007
117082
  browserId: meta4.browserId,
@@ -117425,6 +117500,7 @@ async function isDirectMcpEntrypoint(importMetaUrl, argvPath) {
117425
117500
  // ../contracts/dist/interfaces/mcp.port.js
117426
117501
  var ZCODE_MCP_BROWSER_SCREENSHOT_CONTENT_INDICES_META_KEY = "zcode/browserScreenshotContentIndices";
117427
117502
  var ZCODE_MCP_NODE_REPL_CUA_APP_META_KEY = "zcode/nodeReplCuaApp";
117503
+ var MCP_TOOL_META_TIMEOUT_MAX_MS = 30 * 60 * 1e3;
117428
117504
 
117429
117505
  // ../../../../node_modules/@zcode/zcode-cua/dist/frame-contract/constants.js
117430
117506
  var OFFICIAL_CUA_IMAGE_INLINE_BASE64_BYTES = 200 * 1024;
@@ -117535,16 +117611,8 @@ function toMcpRunResult(run) {
117535
117611
  mimeType: image.mimeType
117536
117612
  })),
117537
117613
  ...structuredResults.length > 0 ? (
117538
- // 对齐 codex 的失败行为(2026-09-11 真机):codex 的 SDK 用的就是模型同一个
117539
- // `nodeRepl.emitImage`,所以那边写
117540
- // const shot = await app.getScreenshot(); nodeRepl.emitImage(shot);
117541
- // 只是把同一张图显示两遍,无害。ZCode 的观察经 emitStructuredResult 携带
117542
- // 「图 + 权威」投递,模型再手动发一次就成了两张图,被 exact-raster 门整条否决
117543
- // —— 同样的写法在这边从"冗余"变成"整帧丢失"。
117544
- //
117545
- // 门本身不能放宽(frame_id 绑定像素坐标,是 spec 第 7 条的安全属性,codex 没有
117546
- // 这层保证)。能对齐的是代价:逐字节相同的那一份是纯冗余,丢掉它既保住"每个结果
117547
- // 只有一张 raster",也保住存活那张的字节原样。字节不同则不是冗余,仍旧交给门去拒。
117614
+ // 结构化观察已携带截图;模型再次 emitImage 同一张图时,只保留结构化结果中的副本。
117615
+ // 去重必须逐字节相等:保留截图原始像素及其 frame_id 绑定,不同图片仍交由帧校验拒绝。
117548
117616
  (run.images ?? []).filter(
117549
117617
  (image) => !structuredContent.some(
117550
117618
  (block) => block.type === "image" && block.data === image.base64
@@ -117576,7 +117644,7 @@ function toMcpRunResult(run) {
117576
117644
 
117577
117645
  // src/tool-contract.ts
117578
117646
  var NODE_REPL_DEFAULT_TIMEOUT_MS = 6e4;
117579
- var NODE_REPL_SERVER_VERSION = "0.6.0";
117647
+ var NODE_REPL_SERVER_VERSION = "0.6.1";
117580
117648
  var NODE_REPL_SERVER_INSTRUCTIONS = `Browser Use and Computer Use only. Use \`js\` to run JavaScript in a fresh Node-backed kernel only when the corresponding official skill instructs you to control a browser or computer. Do not use this server for unrelated tasks, including general-purpose JavaScript, filesystem, shell, package inspection, or data processing. Calls default to a ${NODE_REPL_DEFAULT_TIMEOUT_MS} ms timeout. Always provide \`title\` as a short user-facing description in the user's language. Every \`js\` call starts fresh; reconstruct browser wrappers and recover persistent tabs from current BrowserControl facts.`;
117581
117649
  var JS_TOOL_DESCRIPTION = `Browser Use and Computer Use only. Run JavaScript in a fresh Node-backed kernel with top-level await only as instructed by the corresponding official skill to control a browser or computer. Do not use it as a general-purpose JavaScript runtime or for filesystem, shell, package inspection, data processing, or other non-browser work. Always provide the required \`title\` as a short user-facing description in the user's language without implementation terms. If \`timeout_ms\` is omitted, execution times out after ${NODE_REPL_DEFAULT_TIMEOUT_MS} ms. If the code may take more than 30000 ms including all awaited operations, you MUST set \`timeout_ms\` to at least the estimated total runtime plus 15000 ms; split the work into multiple calls if that exceeds the 120000 ms maximum. Use \`nodeRepl.cwd\`, \`nodeRepl.homeDir\`, \`nodeRepl.tmpDir\`, \`nodeRepl.requestMeta\`, \`nodeRepl.setResponseMeta(meta)\`, \`nodeRepl.write(value)\`, and \`await nodeRepl.emitImage(imageLike)\`. Global bindings and module cache do not persist across calls. For Computer Use SDK results, do not console.log/JSON.stringify the complete result or call nodeRepl.emitImage yourself; the SDK submits the structured image/state result and you should use nodeRepl.write for short text-only status. \`get_app_state\` is an explicit observation: assign it to \`const state\`, always call \`nodeRepl.write(state.text)\`, and use \`state.state_id\` plus \`state.elements[*].index\` for element targets; do not leave get_app_state as the final expression or regex state_id from its text. Metadata methods such as list_apps and list_windows may not return action_sent; a missing field is not a failure, so inspect text or structuredContent. Never use screenshot_display.bounds or app/window bounds as raster pixel coordinates; x/y must be integer pixels inside the width/height of the returned raster. Every Computer Use JavaScript call must start with the complete SDK bootstrap in the same cell before agent.computerUse; never split bootstrap and action across calls. Never rely on agent, runtime, browser, or imported bindings from an earlier call. Import only \`node:*\` builtins and absolute \`file://\` URLs built from the official skill root, for example \`await import(pathToFileURL(join(root, "scripts", "client.mjs")).href)\`; bare package specifiers do not resolve. Bootstrap the requested official capability in every call.`;
117582
117650
 
@@ -117594,7 +117662,7 @@ var cuaDocumentationRoot = resolve4(
117594
117662
  var jsInputSchema = external_exports.object({
117595
117663
  code: external_exports.string(),
117596
117664
  timeout_ms: external_exports.number().int().min(1).max(MAX_SYNC_TIMEOUT_MS).optional(),
117597
- // 修复原因:tools/list 对新调用强制 title,但执行层必须继续接受旧 provider 和历史回放的 code-only 输入。
117665
+ // tools/list 对新调用强制 title,但执行层必须继续接受旧 provider 和历史回放的 code-only 输入。
117598
117666
  title: external_exports.string().min(1).max(120).optional()
117599
117667
  }).strict();
117600
117668
  var requestContextSchema = external_exports.object({
@@ -117615,7 +117683,7 @@ var tools = [
117615
117683
  {
117616
117684
  name: "js",
117617
117685
  description: JS_TOOL_DESCRIPTION,
117618
- // 修复原因:host MCP 曾手写出 title optional 的模型合同,和 built-in 合同分叉后 UI 只能显示固定完成文案。
117686
+ // host MCP 曾手写出 title optional 的模型合同,和 built-in 合同分叉后 UI 只能显示固定完成文案。
117619
117687
  inputSchema: JsInputJsonSchema
117620
117688
  }
117621
117689
  ];
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zcode/node-repl-host",
3
3
  "private": true,
4
- "version": "0.6.0",
4
+ "version": "0.6.1",
5
5
  "description": "Shared node_repl MCP host. Owns the JS execution surface and the domain bridges (Browser Use, Computer Use) that ride on it; the official plugins contribute only their own skills, docs and runtime assets.",
6
6
  "type": "module",
7
7
  "exports": {
@@ -5,18 +5,18 @@ import { build } from "esbuild";
5
5
 
6
6
  const packageRoot = resolve(import.meta.dirname, "..");
7
7
 
8
- // 见 browser-use-plugin/scripts/build.mjs 的同名修复(2026-07-27):esbuild 的 esm 产物里
8
+ // 见 browser-use-plugin/scripts/build.mjs 的同名修复:esbuild 的 esm 产物里
9
9
  // __require shim 在 ESM 作用域没有 require 可用,@zcode/core 拖进来的 CJS 依赖(yaml →
10
10
  // require("process"))会在**模块求值阶段**抛错,plugin host 的 await import() 直接失败,
11
11
  // 表现为注册 0 个工具、模型侧完全看不到 mcp__node_repl__js。注入真实 createRequire。
12
12
  const nodeRequireBanner = `import { createRequire as __zcodeCreateRequire } from "node:module";
13
13
  const require = __zcodeCreateRequire(import.meta.url);`;
14
14
 
15
- // Bug 原因(2026-09-14 真机,正式包 pipeline-285829-411d997a):正式包上 Computer Use 完全
15
+ // 正式包上 Computer Use 曾完全
16
16
  // 不可用 —— 每个 CUA 调用要么等到 MCP 客户端超时(实测 60/110/120s),要么等满 ~64s 后返回
17
17
  // 「permission broker socket is not accepting connections yet」。
18
18
  //
19
- // 链路:M7 懒启动(services/src/node.ts 的 `M7 懒启动` 注释处)把 darwin 上 Helper 的
19
+ // 链路:懒启动(services/src/node.ts 的 `懒启动` 注释处)把 darwin 上 Helper 的
20
20
  // 安装/拉起从宿主搬到了「SDK 首次 CUA 调用时自拉」,而那条路径跑在**本包**里 ——
21
21
  // `helperInstaller` 因此随本 bundle 进入正式包。但 `__ZCODE_CUA_HELPER_BUILD_ID__` 此前
22
22
  // **只有** packages/desktop/tsup.config.ts 注入(Electron main / app.asar),本文件的
@@ -71,7 +71,7 @@ export const buildNodeReplHostBundle = async ({
71
71
  return { outfile, cuaHelperBuildId };
72
72
  };
73
73
 
74
- // Bug 原因(2026-09-12,CI build:windows:x64):这里原先写成 `file://${process.argv[1]}`。
74
+ // 这里原先写成 `file://${process.argv[1]}`。
75
75
  // Windows 上 argv[1] 是 `C:\...\build.mjs`,而 import.meta.url 是 `file:///C:/.../build.mjs`,
76
76
  // 两者永远不相等 —— 脚本被当成纯模块导入,什么都不做就退出:构建"成功"却没有产物,
77
77
  // 直到 dev 守卫报「build succeeded without required MCP runtime」才暴露。
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pdf",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "PDF document production skills, published as an official ZCode plugin.",
5
5
  "description_i18n": {
6
6
  "en": "PDF production skills: typeset and render reports, resumes, posters, and covers to PDF.",
@@ -9,7 +9,7 @@
9
9
  "author": {
10
10
  "name": "Z.ai"
11
11
  },
12
- "license": "SEE LICENSE IN skills/pdf/LICENSE.txt",
12
+ "license": "Apache-2.0",
13
13
  "skills": "skills",
14
14
  "agents": "agents"
15
15
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@zcode/pdf-plugin",
4
- "version": "0.1.7",
4
+ "version": "0.1.8",
5
5
  "private": true,
6
- "license": "SEE LICENSE IN skills/pdf/LICENSE.txt",
6
+ "license": "Apache-2.0",
7
7
  "description": "PDF document production skills, published as an official ZCode plugin."
8
8
  }
@@ -1,13 +1,13 @@
1
- Copyright (c) 2026 Z.ai All rights reserved.
1
+ Copyright (c) 2026 Z.ai
2
2
 
3
- Permission is granted for personal, educational, and non-commercial use only.
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
4
6
 
5
- Commercial use is strictly prohibited without prior written permission from the author.
7
+ http://www.apache.org/licenses/LICENSE-2.0
6
8
 
7
- Unauthorized copying, modification, or distribution of the software for commercial purposes is prohibited.
8
-
9
- The author reserves the right to make the final determination of what constitutes "commercial use".
10
-
11
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
12
-
13
- IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM THE USE OF THE SOFTWARE.
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
@@ -117,7 +117,7 @@
117
117
 
118
118
  \divider
119
119
 
120
- \cvevent{Software Engineer}{ByteDance}{Jul 2019 -- Dec 2021}{Beijing}
120
+ \cvevent{Software Engineer}{Acme Tech}{Jul 2019 -- Dec 2021}{Beijing}
121
121
  \begin{itemize}
122
122
  \item Built recommendation engine (collaborative filtering + deep learning) improving CTR by 25\%
123
123
  \item Implemented distributed training pipeline on 64-GPU cluster, reducing training time by 60\%
@@ -5,7 +5,7 @@ description: Create or update ZCode plugin source and a local test marketplace,
5
5
 
6
6
  # Plugin Creator
7
7
 
8
- Deliver implemented plugin source, a local dev marketplace catalog, and precise UI instructions for the user to add the market, install/update the plugin and try it. Use ZCode manifests; the authoring workflow is adapted from Codex's plugin-creator.
8
+ Deliver implemented plugin source, a local dev marketplace catalog, and precise UI instructions for the user to add the market, install/update the plugin and try it. Use ZCode manifests.
9
9
 
10
10
  The current handoff is manual. Do not register markets, install/update/enable plugins, or publish as part of this skill. Ordinary Desktop users are not expected to have a global `zcode` CLI or `node` command. Use existing file tools when helper runtimes are unavailable; do not ask users to install development tooling to complete the UI steps. A skill reference alone has no plugin requirements: ask what the plugin should do before generating files.
11
11
 
@@ -65,4 +65,4 @@ Scaffold components are selected with `--with-skills`, `--with-mcp`, `--with-hoo
65
65
 
66
66
  These helpers prepare files only. Their use does not authorize registration or installation. If Node is unavailable, use file tools and the manifest/catalog examples above; asking the user to install Node is not part of this handoff.
67
67
 
68
- Codex's `interface`, availability/authentication `policy`, `.app.json`, implicit `~/.agents/plugins/marketplace.json` discovery and `codex://` handoff links are not this workflow's contract. Use ZCode's format, and distinguish source inspection from any schema/runtime validation actually performed.
68
+ Fields and conventions from other plugin formats, such as `interface`, availability/authentication `policy`, `.app.json`, implicit `~/.agents/plugins/marketplace.json` discovery and custom-scheme handoff links, are not this workflow's contract. Use ZCode's format, and distinguish source inspection from any schema/runtime validation actually performed.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "presentations",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "PPTX presentation production skills, published as an official ZCode plugin.",
5
5
  "description_i18n": {
6
6
  "en": "Presentation production skills for PPTX, with a visual acceptance reviewer agent.",
@@ -9,7 +9,7 @@
9
9
  "author": {
10
10
  "name": "Z.ai"
11
11
  },
12
- "license": "SEE LICENSE IN skills/pptx/LICENSE.txt",
12
+ "license": "Apache-2.0",
13
13
  "skills": "skills",
14
14
  "agents": "agents"
15
15
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@zcode/presentations-plugin",
4
- "version": "0.1.7",
4
+ "version": "0.1.8",
5
5
  "private": true,
6
- "license": "SEE LICENSE IN skills/pptx/LICENSE.txt",
6
+ "license": "Apache-2.0",
7
7
  "description": "PPTX presentation production skills, published as an official ZCode plugin."
8
8
  }
@@ -1,13 +1,13 @@
1
- Copyright (c) 2026 Z.ai All rights reserved.
1
+ Copyright (c) 2026 Z.ai
2
2
 
3
- Permission is granted for personal, educational, and non-commercial use only.
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
4
6
 
5
- Commercial use is strictly prohibited without prior written permission from the author.
7
+ http://www.apache.org/licenses/LICENSE-2.0
6
8
 
7
- Unauthorized copying, modification, or distribution of the software for commercial purposes is prohibited.
8
-
9
- The author reserves the right to make the final determination of what constitutes "commercial use".
10
-
11
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
12
-
13
- IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM THE USE OF THE SOFTWARE.
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
@@ -40,7 +40,7 @@ node scripts/scan-legacy-sessions.mjs workspaces --agent glm
40
40
  After the user chooses a workspace, list conversations:
41
41
 
42
42
  ```bash
43
- node scripts/scan-legacy-sessions.mjs conversations --agent glm --workspace /Users/mbear/test/z-m
43
+ node scripts/scan-legacy-sessions.mjs conversations --agent glm --workspace /Users/dev/test/z-m
44
44
  ```
45
45
 
46
46
  Use `--query <text>` to narrow conversations by title, message content, task id, or session id. Use `--json` when feeding the result into `jq` or another script.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spreadsheets",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "XLSX spreadsheet production skills, published as an official ZCode plugin.",
5
5
  "description_i18n": {
6
6
  "en": "Spreadsheet skills for XLSX: create, edit, analyze, chart, and convert workbooks.",
@@ -9,7 +9,7 @@
9
9
  "author": {
10
10
  "name": "Z.ai"
11
11
  },
12
- "license": "SEE LICENSE IN skills/xlsx/LICENSE.txt",
12
+ "license": "Apache-2.0",
13
13
  "skills": "skills",
14
14
  "agents": "agents"
15
15
  }