@superdoc/cli 0.23.0-next.1 → 0.23.0-next.100

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/README.md CHANGED
@@ -1,22 +1,22 @@
1
- # @superdoc-dev/cli
1
+ # @superdoc/cli
2
2
 
3
3
  LLM-first CLI for deterministic DOCX operations through SuperDoc's Document API.
4
4
 
5
5
  ## Install
6
6
 
7
7
  ```bash
8
- npm install -g @superdoc-dev/cli
8
+ npm install -g @superdoc/cli
9
9
  ```
10
10
 
11
11
  The package automatically installs a native binary for your platform via optionalDependencies. Supported platforms:
12
12
 
13
13
  | Platform | Package |
14
14
  |----------|---------|
15
- | macOS (Apple Silicon) | `@superdoc-dev/cli-darwin-arm64` |
16
- | macOS (Intel) | `@superdoc-dev/cli-darwin-x64` |
17
- | Linux (x64) | `@superdoc-dev/cli-linux-x64` |
18
- | Linux (ARM64) | `@superdoc-dev/cli-linux-arm64` |
19
- | Windows (x64) | `@superdoc-dev/cli-windows-x64` |
15
+ | macOS (Apple Silicon) | `@superdoc/cli-darwin-arm64` |
16
+ | macOS (Intel) | `@superdoc/cli-darwin-x64` |
17
+ | Linux (x64) | `@superdoc/cli-linux-x64` |
18
+ | Linux (ARM64) | `@superdoc/cli-linux-arm64` |
19
+ | Windows (x64) | `@superdoc/cli-windows-x64` |
20
20
 
21
21
  ## Usage
22
22
 
@@ -172,7 +172,7 @@ superdoc describe command <command-name>
172
172
 
173
173
  ## v1 Breaking Changes
174
174
 
175
- This CLI replaces the previous `@superdoc-dev/cli` package surface with the v1 contract-driven command set.
175
+ This CLI replaces the previous `@superdoc/cli` package surface with the v1 contract-driven command set.
176
176
 
177
177
  | Legacy command | v1 status | Migration |
178
178
  |---------------|-----------|-----------|
package/dist/index.js CHANGED
@@ -135082,11 +135082,11 @@ var init_source = __esm(() => {
135082
135082
  {
135083
135083
  surface: "@superdoc-dev/react",
135084
135084
  defaultRuntime: "v1",
135085
- optInPath: "not exposed; use @superdoc-dev/sdk or CLI for v2 Document API automation",
135085
+ optInPath: "not exposed; use @superdoc/sdk or CLI for v2 Document API automation",
135086
135086
  notes: "The React wrapper does not expose raw v2 headless. Customers use SDK/CLI/MCP-supported hosts for v2 automation."
135087
135087
  },
135088
135088
  {
135089
- surface: "@superdoc-dev/sdk",
135089
+ surface: "@superdoc/sdk",
135090
135090
  defaultRuntime: "v1",
135091
135091
  optInPath: '`runtime: "v2"` on the client factory or per-open; forwarded to CLI `doc.open` for real CLI-owned v2 sessions',
135092
135092
  notes: "Backend SDK forwards the selected runtime to CLI `doc.open`. Default remains v1; selecting v2 opens a real CLI v2 session and dispatches every Document API call through the v2 adapter — no SDK-side bridge, no v2→v1 fallback."
@@ -247593,7 +247593,7 @@ var init_contract4 = __esm(() => {
247593
247593
  }
247594
247594
  },
247595
247595
  cli: {
247596
- package: "@superdoc-dev/cli",
247596
+ package: "@superdoc/cli",
247597
247597
  minVersion: "0.1.0"
247598
247598
  },
247599
247599
  protocol: {
@@ -513899,11 +513899,11 @@ var init_embedded_cli = __esm(() => {
513899
513899
  init_errors6();
513900
513900
  require3 = createRequire3(import.meta.url);
513901
513901
  TARGET_TO_PACKAGE = {
513902
- "darwin-arm64": "@superdoc-dev/sdk-darwin-arm64",
513903
- "darwin-x64": "@superdoc-dev/sdk-darwin-x64",
513904
- "linux-x64": "@superdoc-dev/sdk-linux-x64",
513905
- "linux-arm64": "@superdoc-dev/sdk-linux-arm64",
513906
- "windows-x64": "@superdoc-dev/sdk-windows-x64"
513902
+ "darwin-arm64": "@superdoc/sdk-darwin-arm64",
513903
+ "darwin-x64": "@superdoc/sdk-darwin-x64",
513904
+ "linux-x64": "@superdoc/sdk-linux-x64",
513905
+ "linux-arm64": "@superdoc/sdk-linux-arm64",
513906
+ "windows-x64": "@superdoc/sdk-windows-x64"
513907
513907
  };
513908
513908
  TARGET_TO_DIR = {
513909
513909
  "darwin-arm64": "sdk-darwin-arm64",
@@ -568178,7 +568178,7 @@ function parsePackageJson(rawPackageJson) {
568178
568178
  }
568179
568179
  }
568180
568180
  function isSupportedCliPackageName(name) {
568181
- return typeof name === "string" && (name === CLI_PACKAGE_NAME || name.startsWith(`${CLI_PACKAGE_NAME}-`));
568181
+ return typeof name === "string" && CLI_PACKAGE_NAMES.some((packageName) => name === packageName || name.startsWith(`${packageName}-`));
568182
568182
  }
568183
568183
  function resolveCliPackagePath(moduleUrl) {
568184
568184
  let currentDir = dirname2(fileURLToPath7(moduleUrl));
@@ -568205,16 +568205,19 @@ function parsePackageVersion(rawPackageJson) {
568205
568205
  }
568206
568206
  return null;
568207
568207
  }
568208
+ function fallbackCliPackageVersion() {
568209
+ return typeof BUILT_CLI_PACKAGE_VERSION === "string" && BUILT_CLI_PACKAGE_VERSION.length > 0 ? BUILT_CLI_PACKAGE_VERSION : FALLBACK_CLI_PACKAGE_VERSION;
568210
+ }
568208
568211
  function resolveCliPackageVersionFromModuleUrl(moduleUrl) {
568209
568212
  try {
568210
568213
  const packageJsonPath = resolveCliPackagePath(moduleUrl);
568211
568214
  if (!packageJsonPath) {
568212
- return FALLBACK_CLI_PACKAGE_VERSION;
568215
+ return fallbackCliPackageVersion();
568213
568216
  }
568214
568217
  const packageJson = readFileSync(packageJsonPath, "utf8");
568215
- return parsePackageVersion(packageJson) ?? FALLBACK_CLI_PACKAGE_VERSION;
568218
+ return parsePackageVersion(packageJson) ?? fallbackCliPackageVersion();
568216
568219
  } catch {
568217
- return FALLBACK_CLI_PACKAGE_VERSION;
568220
+ return fallbackCliPackageVersion();
568218
568221
  }
568219
568222
  }
568220
568223
  function resolveCliPackageVersion() {
@@ -568224,8 +568227,11 @@ function resolveCliPackageVersion() {
568224
568227
  cachedCliPackageVersion = resolveCliPackageVersionFromModuleUrl(import.meta.url);
568225
568228
  return cachedCliPackageVersion;
568226
568229
  }
568227
- var CLI_PACKAGE_NAME = "@superdoc-dev/cli", FALLBACK_CLI_PACKAGE_VERSION = "0.0.0", cachedCliPackageVersion = null;
568228
- var init_version = () => {};
568230
+ var CLI_PACKAGE_NAMES, FALLBACK_CLI_PACKAGE_VERSION = "0.0.0", BUILT_CLI_PACKAGE_VERSION, cachedCliPackageVersion = null;
568231
+ var init_version = __esm(() => {
568232
+ CLI_PACKAGE_NAMES = ["@superdoc/cli", "@superdoc/cli"];
568233
+ BUILT_CLI_PACKAGE_VERSION = process.env.SUPERDOC_CLI_VERSION;
568234
+ });
568229
568235
 
568230
568236
  // src/host/session-pool.ts
568231
568237
  import { createHash as createHash5 } from "node:crypto";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc/cli",
3
- "version": "0.23.0-next.1",
3
+ "version": "0.23.0-next.100",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -31,18 +31,18 @@
31
31
  "typescript": "^5.9.2",
32
32
  "y-protocols": "^1.0.6",
33
33
  "@superdoc/document-api": "0.1.0-alpha.0",
34
- "@superdoc-dev/sdk": "2.0.0-next.1",
35
- "@superdoc/docx-engine": "0.2.0-next.8"
34
+ "@superdoc/docx-engine": "0.2.0-next.8",
35
+ "@superdoc/sdk": "2.0.0-next.100"
36
36
  },
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
40
  "optionalDependencies": {
41
- "@superdoc/cli-darwin-x64": "0.23.0-next.1",
42
- "@superdoc/cli-linux-x64": "0.23.0-next.1",
43
- "@superdoc/cli-darwin-arm64": "0.23.0-next.1",
44
- "@superdoc/cli-windows-x64": "0.23.0-next.1",
45
- "@superdoc/cli-linux-arm64": "0.23.0-next.1"
41
+ "@superdoc/cli-darwin-arm64": "0.23.0-next.100",
42
+ "@superdoc/cli-linux-x64": "0.23.0-next.100",
43
+ "@superdoc/cli-darwin-x64": "0.23.0-next.100",
44
+ "@superdoc/cli-linux-arm64": "0.23.0-next.100",
45
+ "@superdoc/cli-windows-x64": "0.23.0-next.100"
46
46
  },
47
47
  "scripts": {
48
48
  "predev": "node scripts/ensure-superdoc-build.js",
@@ -69,4 +69,4 @@
69
69
  "release": "pnpx semantic-release",
70
70
  "release:dry-run": "pnpx semantic-release --dry-run"
71
71
  }
72
- }
72
+ }
package/skill/SKILL.md CHANGED
@@ -8,7 +8,7 @@ description: Edit, query, and transform Word documents with the SuperDoc CLI v1
8
8
  Use SuperDoc CLI for DOCX work. Use v1 commands (canonical operations and their helper wrappers).
9
9
  Do not default to legacy commands unless explicitly needed for v0-style bulk workflows.
10
10
 
11
- Use `superdoc` if installed, or `npx @superdoc-dev/cli@latest` as a fallback.
11
+ Use `superdoc` if installed, or `npx @superdoc/cli@latest` as a fallback.
12
12
 
13
13
  ## First Step: Discover Exact Params
14
14