@superdoc/sdk 2.0.0-next.1 → 2.0.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/sdk
1
+ # @superdoc/sdk
2
2
 
3
3
  Programmatic SDK for deterministic DOCX operations through SuperDoc's Document API.
4
4
 
5
5
  ## Install
6
6
 
7
7
  ```bash
8
- npm install @superdoc-dev/sdk
8
+ npm install @superdoc/sdk
9
9
  ```
10
10
 
11
11
  The package automatically installs a native CLI binary for your platform via optionalDependencies. Supported platforms:
12
12
 
13
13
  | Platform | Package |
14
14
  |----------|---------|
15
- | macOS (Apple Silicon) | `@superdoc-dev/sdk-darwin-arm64` |
16
- | macOS (Intel) | `@superdoc-dev/sdk-darwin-x64` |
17
- | Linux (x64) | `@superdoc-dev/sdk-linux-x64` |
18
- | Linux (ARM64) | `@superdoc-dev/sdk-linux-arm64` |
19
- | Windows (x64) | `@superdoc-dev/sdk-windows-x64` |
15
+ | macOS (Apple Silicon) | `@superdoc/sdk-darwin-arm64` |
16
+ | macOS (Intel) | `@superdoc/sdk-darwin-x64` |
17
+ | Linux (x64) | `@superdoc/sdk-linux-x64` |
18
+ | Linux (ARM64) | `@superdoc/sdk-linux-arm64` |
19
+ | Windows (x64) | `@superdoc/sdk-windows-x64` |
20
20
 
21
21
  ## Quick Start
22
22
 
@@ -24,14 +24,14 @@ Both ESM and CommonJS are supported.
24
24
 
25
25
  ```ts
26
26
  // ESM
27
- import { createSuperDocClient } from '@superdoc-dev/sdk';
27
+ import { createSuperDocClient } from '@superdoc/sdk';
28
28
 
29
29
  // CJS
30
- const { createSuperDocClient } = require('@superdoc-dev/sdk');
30
+ const { createSuperDocClient } = require('@superdoc/sdk');
31
31
  ```
32
32
 
33
33
  ```ts
34
- import { createSuperDocClient } from '@superdoc-dev/sdk';
34
+ import { createSuperDocClient } from '@superdoc/sdk';
35
35
 
36
36
  const client = createSuperDocClient();
37
37
  await client.connect();
@@ -74,7 +74,7 @@ The password is forwarded only for the initial open and is not persisted. If the
74
74
  ### Client
75
75
 
76
76
  ```ts
77
- import { SuperDocClient, createSuperDocClient } from '@superdoc-dev/sdk';
77
+ import { SuperDocClient, createSuperDocClient } from '@superdoc/sdk';
78
78
 
79
79
  const client = createSuperDocClient(options?);
80
80
  await client.connect(); // start the host process
@@ -118,7 +118,7 @@ import {
118
118
  chooseTools,
119
119
  dispatchSuperDocTool,
120
120
  getToolCatalog,
121
- } from '@superdoc-dev/sdk';
121
+ } from '@superdoc/sdk';
122
122
 
123
123
  // Get the full grouped tool set for your AI provider
124
124
  const { tools, meta } = await chooseTools({
@@ -1472,7 +1472,7 @@ export const CONTRACT = {
1472
1472
  }
1473
1473
  },
1474
1474
  "cli": {
1475
- "package": "@superdoc-dev/cli",
1475
+ "package": "@superdoc/cli",
1476
1476
  "minVersion": "0.1.0"
1477
1477
  },
1478
1478
  "protocol": {
@@ -9,11 +9,11 @@ var errors = require('./errors.cjs');
9
9
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
10
10
  const require$1 = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('runtime/embedded-cli.cjs', document.baseURI).href)));
11
11
  const TARGET_TO_PACKAGE = {
12
- 'darwin-arm64': '@superdoc-dev/sdk-darwin-arm64',
13
- 'darwin-x64': '@superdoc-dev/sdk-darwin-x64',
14
- 'linux-x64': '@superdoc-dev/sdk-linux-x64',
15
- 'linux-arm64': '@superdoc-dev/sdk-linux-arm64',
16
- 'windows-x64': '@superdoc-dev/sdk-windows-x64',
12
+ 'darwin-arm64': '@superdoc/sdk-darwin-arm64',
13
+ 'darwin-x64': '@superdoc/sdk-darwin-x64',
14
+ 'linux-x64': '@superdoc/sdk-linux-x64',
15
+ 'linux-arm64': '@superdoc/sdk-linux-arm64',
16
+ 'windows-x64': '@superdoc/sdk-windows-x64',
17
17
  };
18
18
  const TARGET_TO_DIR = {
19
19
  'darwin-arm64': 'sdk-darwin-arm64',
@@ -5,11 +5,11 @@ import { fileURLToPath } from 'node:url';
5
5
  import { SuperDocCliError } from './errors.js';
6
6
  const require = createRequire(import.meta.url);
7
7
  const TARGET_TO_PACKAGE = {
8
- 'darwin-arm64': '@superdoc-dev/sdk-darwin-arm64',
9
- 'darwin-x64': '@superdoc-dev/sdk-darwin-x64',
10
- 'linux-x64': '@superdoc-dev/sdk-linux-x64',
11
- 'linux-arm64': '@superdoc-dev/sdk-linux-arm64',
12
- 'windows-x64': '@superdoc-dev/sdk-windows-x64',
8
+ 'darwin-arm64': '@superdoc/sdk-darwin-arm64',
9
+ 'darwin-x64': '@superdoc/sdk-darwin-x64',
10
+ 'linux-x64': '@superdoc/sdk-linux-x64',
11
+ 'linux-arm64': '@superdoc/sdk-linux-arm64',
12
+ 'windows-x64': '@superdoc/sdk-windows-x64',
13
13
  };
14
14
  const TARGET_TO_DIR = {
15
15
  'darwin-arm64': 'sdk-darwin-arm64',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc/sdk",
3
- "version": "2.0.0-next.1",
3
+ "version": "2.0.0-next.100",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -26,11 +26,11 @@
26
26
  "typescript": "^5.9.2"
27
27
  },
28
28
  "optionalDependencies": {
29
- "@superdoc/sdk-darwin-arm64": "2.0.0-next.1",
30
- "@superdoc/sdk-windows-x64": "2.0.0-next.1",
31
- "@superdoc/sdk-darwin-x64": "2.0.0-next.1",
32
- "@superdoc/sdk-linux-arm64": "2.0.0-next.1",
33
- "@superdoc/sdk-linux-x64": "2.0.0-next.1"
29
+ "@superdoc/sdk-darwin-arm64": "2.0.0-next.100",
30
+ "@superdoc/sdk-darwin-x64": "2.0.0-next.100",
31
+ "@superdoc/sdk-linux-arm64": "2.0.0-next.100",
32
+ "@superdoc/sdk-windows-x64": "2.0.0-next.100",
33
+ "@superdoc/sdk-linux-x64": "2.0.0-next.100"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"
@@ -41,4 +41,4 @@
41
41
  "typecheck": "tsc --noEmit",
42
42
  "smoke:product-action": "node scripts/product-action-smoke.mjs"
43
43
  }
44
- }
44
+ }