@superdoc/cli 0.34.0-next.4 → 0.34.0-next.5

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 (2) hide show
  1. package/dist/index.js +23 -5
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -756059,7 +756059,7 @@ var init_host2 = __esm(() => {
756059
756059
  });
756060
756060
 
756061
756061
  // ../../packages/sdk/langs/node/src/runtime/sdk-version.generated.ts
756062
- var SDK_VERSION = "2.11.0-next.4";
756062
+ var SDK_VERSION = "2.11.0-next.5";
756063
756063
 
756064
756064
  // ../../packages/sdk/langs/node/src/runtime/embedded-platform.ts
756065
756065
  import { chmodSync, existsSync } from "node:fs";
@@ -802331,9 +802331,26 @@ var init_presets = __esm(() => {
802331
802331
  PRESETS = { ...BUILTIN_PRESETS };
802332
802332
  });
802333
802333
 
802334
+ // ../../packages/sdk/langs/node/src/actions/define.ts
802335
+ var BUILTIN_ACTION_NAMES, RESERVED_TOOL_NAMES, IMPLICIT_ACTION_ARGS, METADATA_SCHEMA_KEYS;
802336
+ var init_define = __esm(() => {
802337
+ init_errors6();
802338
+ init_presets();
802339
+ init_actions();
802340
+ init_catalog4();
802341
+ BUILTIN_ACTION_NAMES = new Set(ACTION_NAMES_LIST);
802342
+ RESERVED_TOOL_NAMES = new Set(AGENT_TOOL_NAMES);
802343
+ IMPLICIT_ACTION_ARGS = new Set(["changeMode", "rationale"]);
802344
+ METADATA_SCHEMA_KEYS = new Set(["description", "title", "examples", "$comment"]);
802345
+ });
802346
+
802334
802347
  // ../../packages/sdk/langs/node/src/tools.ts
802348
+ var TOOL_PROVIDERS;
802335
802349
  var init_tools = __esm(() => {
802350
+ init_errors6();
802336
802351
  init_presets();
802352
+ init_define();
802353
+ TOOL_PROVIDERS = new Set(["openai", "anthropic", "vercel", "generic"]);
802337
802354
  });
802338
802355
 
802339
802356
  // ../../packages/sdk/langs/node/src/agent/v2-preset-compat.ts
@@ -802558,6 +802575,7 @@ var init_src7 = __esm(() => {
802558
802575
  init_tools();
802559
802576
  init_v2_preset_compat();
802560
802577
  init_tools();
802578
+ init_define();
802561
802579
  init_errors6();
802562
802580
  SuperDocDocument = SuperDocDocumentCore;
802563
802581
  });
@@ -802693,7 +802711,7 @@ function parseCsvOption(parsed, name) {
802693
802711
  return entries2.length > 0 ? entries2 : undefined;
802694
802712
  }
802695
802713
  function isToolProvider(value) {
802696
- return typeof value === "string" && TOOL_PROVIDERS.includes(value);
802714
+ return typeof value === "string" && TOOL_PROVIDERS2.includes(value);
802697
802715
  }
802698
802716
  function presetFromArg(parsed) {
802699
802717
  const raw = getStringOption(parsed, "preset");
@@ -802754,7 +802772,7 @@ async function runPresetGetToolsCommand(tokens, _context) {
802754
802772
  }
802755
802773
  const provider = getStringOption(parsed, "provider");
802756
802774
  if (!isToolProvider(provider)) {
802757
- throw new CliError("INVALID_ARGUMENT", `preset get-tools: --provider must be one of ${TOOL_PROVIDERS.join(", ")}; got ${provider ?? "<missing>"}`);
802775
+ throw new CliError("INVALID_ARGUMENT", `preset get-tools: --provider must be one of ${TOOL_PROVIDERS2.join(", ")}; got ${provider ?? "<missing>"}`);
802758
802776
  }
802759
802777
  const cache = getBooleanOption(parsed, "cache");
802760
802778
  const excludeActions = parseCsvOption(parsed, "excludeActions");
@@ -802918,7 +802936,7 @@ async function runPresetDispatchCommand(tokens, context) {
802918
802936
  }
802919
802937
  }, context.sessionId, context.executionMode);
802920
802938
  }
802921
- var TOOL_PROVIDERS;
802939
+ var TOOL_PROVIDERS2;
802922
802940
  var init_preset = __esm(() => {
802923
802941
  init_args();
802924
802942
  init_context2();
@@ -802927,7 +802945,7 @@ var init_preset = __esm(() => {
802927
802945
  init_errors();
802928
802946
  init_operation_args();
802929
802947
  init_session_collab();
802930
- TOOL_PROVIDERS = ["openai", "anthropic", "vercel", "generic"];
802948
+ TOOL_PROVIDERS2 = ["openai", "anthropic", "vercel", "generic"];
802931
802949
  });
802932
802950
 
802933
802951
  // src/commands/save.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc/cli",
3
- "version": "0.34.0-next.4",
3
+ "version": "0.34.0-next.5",
4
4
  "description": "Command-line interface for SuperDoc: inspect, convert, and edit .docx files from a terminal or a script.",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@hocuspocus/server": "^2.13.6",
38
- "@superdoc/sdk": "2.11.0-next.4",
38
+ "@superdoc/sdk": "2.11.0-next.5",
39
39
  "@superdoc/document-api": "0.1.0-alpha.0",
40
40
  "@superdoc/docx-engine": "0.13.0-next.3",
41
41
  "@types/bun": "^1.3.8",
@@ -51,11 +51,11 @@
51
51
  "access": "public"
52
52
  },
53
53
  "optionalDependencies": {
54
- "@superdoc/cli-darwin-arm64": "0.34.0-next.4",
55
- "@superdoc/cli-darwin-x64": "0.34.0-next.4",
56
- "@superdoc/cli-linux-x64": "0.34.0-next.4",
57
- "@superdoc/cli-linux-arm64": "0.34.0-next.4",
58
- "@superdoc/cli-windows-x64": "0.34.0-next.4"
54
+ "@superdoc/cli-darwin-arm64": "0.34.0-next.5",
55
+ "@superdoc/cli-darwin-x64": "0.34.0-next.5",
56
+ "@superdoc/cli-linux-x64": "0.34.0-next.5",
57
+ "@superdoc/cli-linux-arm64": "0.34.0-next.5",
58
+ "@superdoc/cli-windows-x64": "0.34.0-next.5"
59
59
  },
60
60
  "scripts": {
61
61
  "predev": "node scripts/ensure-superdoc-build.js",