@superdoc/sdk 2.24.0-next.2 → 2.24.0-next.3

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.
@@ -94,11 +94,6 @@ function resolveEmbeddedPlatformBinary(target, binaryName) {
94
94
  function ensureEmbeddedExecutable(binaryPath) {
95
95
  if (process.platform === 'win32')
96
96
  return;
97
- // AIDEV-NOTE: Never chmod a binary this process can already execute. Every
98
- // client construction lands here, and on overlayfs any metadata write to a
99
- // file in a read-only image layer copies the whole binary (over 100 MB) into
100
- // the container layer, synchronously. Frequent signals during that copy, as
101
- // a sampling profiler sends, can keep the chmod from ever completing.
102
97
  try {
103
98
  node_fs.accessSync(binaryPath, node_fs.constants.X_OK);
104
99
  return;
@@ -90,11 +90,6 @@ export function resolveEmbeddedPlatformBinary(target, binaryName) {
90
90
  export function ensureEmbeddedExecutable(binaryPath) {
91
91
  if (process.platform === 'win32')
92
92
  return;
93
- // AIDEV-NOTE: Never chmod a binary this process can already execute. Every
94
- // client construction lands here, and on overlayfs any metadata write to a
95
- // file in a read-only image layer copies the whole binary (over 100 MB) into
96
- // the container layer, synchronously. Frequent signals during that copy, as
97
- // a sampling profiler sends, can keep the chmod from ever completing.
98
93
  try {
99
94
  accessSync(binaryPath, constants.X_OK);
100
95
  return;
@@ -3,6 +3,6 @@
3
3
  // AUTO-GENERATED by scripts/embed-version.mjs — DO NOT EDIT.
4
4
  // Source of truth: package.json. Regenerated on every SDK build so the
5
5
  // SDK retains its own version identity when bundled into another package.
6
- const SDK_VERSION = '2.24.0-next.2';
6
+ const SDK_VERSION = '2.24.0-next.3';
7
7
 
8
8
  exports.SDK_VERSION = SDK_VERSION;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.24.0-next.2";
1
+ export declare const SDK_VERSION = "2.24.0-next.3";
@@ -1,4 +1,4 @@
1
1
  // AUTO-GENERATED by scripts/embed-version.mjs — DO NOT EDIT.
2
2
  // Source of truth: package.json. Regenerated on every SDK build so the
3
3
  // SDK retains its own version identity when bundled into another package.
4
- export const SDK_VERSION = '2.24.0-next.2';
4
+ export const SDK_VERSION = '2.24.0-next.3';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc/sdk",
3
- "version": "2.24.0-next.2",
3
+ "version": "2.24.0-next.3",
4
4
  "description": "Node SDK for SuperDoc, wrapping the SuperDoc CLI to read and edit .docx files from JavaScript and TypeScript.",
5
5
  "private": false,
6
6
  "license": "AGPL-3.0",
@@ -38,11 +38,11 @@
38
38
  "typescript": "^5.9.2"
39
39
  },
40
40
  "optionalDependencies": {
41
- "@superdoc/sdk-darwin-arm64": "2.24.0-next.2",
42
- "@superdoc/sdk-darwin-x64": "2.24.0-next.2",
43
- "@superdoc/sdk-linux-x64": "2.24.0-next.2",
44
- "@superdoc/sdk-linux-arm64": "2.24.0-next.2",
45
- "@superdoc/sdk-windows-x64": "2.24.0-next.2"
41
+ "@superdoc/sdk-darwin-arm64": "2.24.0-next.3",
42
+ "@superdoc/sdk-darwin-x64": "2.24.0-next.3",
43
+ "@superdoc/sdk-linux-x64": "2.24.0-next.3",
44
+ "@superdoc/sdk-linux-arm64": "2.24.0-next.3",
45
+ "@superdoc/sdk-windows-x64": "2.24.0-next.3"
46
46
  },
47
47
  "publishConfig": {
48
48
  "access": "public"
@@ -4807,6 +4807,16 @@
4807
4807
  "numFmt": {
4808
4808
  "type": "string"
4809
4809
  },
4810
+ "customFormat": {
4811
+ "type": "string",
4812
+ "minLength": 1,
4813
+ "examples": [
4814
+ "01, 02, 03, ...",
4815
+ "001, 002, 003, ...",
4816
+ "0001, 0002, 0003, ..."
4817
+ ],
4818
+ "description": "New formats use 2–4 digit zero-padded samples; other values must already exist in the document."
4819
+ },
4810
4820
  "lvlText": {
4811
4821
  "type": "string"
4812
4822
  },
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "formatVersion": 1,
3
- "contractHash": "32dbab4c9dbd876ba853d0651199b963871ac514f441674adf937e71091686e6",
4
- "documentApiSourceHash": "10dd2593185780e2adc4aa61c0f1949dcba48eb9369bd0d560e21363d8f26803",
5
- "generatorHash": "c8bc42a8f8d7c9301efaab2f7b0e765666155cdaad9b40a039432dde8e927745",
3
+ "contractHash": "482ad2735cf7147234948273e705ca6952cc7f6e83f4f2e77f946d51804475fc",
4
+ "documentApiSourceHash": "cb1e3f0a9b98ac6a3f33d55bec2fdb4d3e0dcf8b7e6d31c9dfc0230d6253af83",
5
+ "generatorHash": "bbf75222d62d4244c8986757caf94d3c340f5536e85b83b9791f64d2d7870b29",
6
6
  "inputs": {
7
7
  "apps/cli/src/host/sdk-policy.ts": "8820bc2cb4694bd665cbfacbb55c262a5df5cde4ed2a1a8d0735c09c6a5e6dd8",
8
8
  "packages/sdk/codegen/src/artifacts.mjs": "aecab7eca4694cbcf2366ddd9cabc033abddad2ff8fb0960d505580dbaf4d8b7",
@@ -15,7 +15,7 @@
15
15
  "packages/sdk/codegen/src/model/schema.mjs": "29cb1167413280907ad324d8a1fcb54dc70cce829df00c1a755f43040d01cf3b",
16
16
  "packages/sdk/codegen/src/shared.mjs": "a411e7ea4fab43b5b08b00294c746ff7063ceddbae66ece8d8c5990f131e0f7c",
17
17
  "packages/sdk/codegen/src/targets.mjs": "62c5ae3e3813e07b37e62487d973bac60ef6bea558a01f3ace2e0c6e8374e147",
18
- "packages/sdk/langs/node/package.json": "3d005255cceda1bbe4f1c367a44186e3c502df233db36fd27ae4747ed1d96419",
18
+ "packages/sdk/langs/node/package.json": "36b031c027ce8ed062b1bdcfa45ec2d71317a3a44787f9c2bc17000e57284a2e",
19
19
  "packages/sdk/langs/node/scripts/embed-prompts.mjs": "1b1641bf89cad962a4ff11d93f301fe5a4e32fe856cd3c9586106d8aaab4ad80",
20
20
  "packages/sdk/langs/node/scripts/embed-tools.mjs": "4cd8b0605b088421ea1fdf8e4e19c70f571f4e3352309a1480491600122e7bb3",
21
21
  "packages/sdk/langs/node/scripts/embed-version.mjs": "95e2ff3a7c15cb38130e12f04c8a96c901a5e55d9960610ebefa37178fd19cde",
@@ -32,14 +32,14 @@
32
32
  "outputs": {
33
33
  "packages/sdk/langs/node/src/generated/contract.ts": {
34
34
  "id": "node-contract",
35
- "sha256": "fd3a7a4536ee8b0bb85b55ff4f3bb6e0a68c9fead3a75f549ee6b5bf98c8a6ca",
35
+ "sha256": "334a561cc0567d9e0594b5490903da9c87c773f37d2b31f360308ea294432945",
36
36
  "consumers": [
37
37
  "node"
38
38
  ]
39
39
  },
40
40
  "packages/sdk/langs/node/src/generated/client.ts": {
41
41
  "id": "node-client",
42
- "sha256": "a05cb2fbdd4ef253fdb23526820a949a699fadf89b8b2fd387b744650dd2f10f",
42
+ "sha256": "24cdcc5d4471759ccd512c35cb6b15debfc4106647f1f3299ad4cee9de21916d",
43
43
  "consumers": [
44
44
  "node"
45
45
  ]
@@ -53,14 +53,14 @@
53
53
  },
54
54
  "packages/sdk/langs/python/superdoc/generated/contract.py": {
55
55
  "id": "python-contract",
56
- "sha256": "977efd304ec4bbedbd7a3dcb28b8b5a0adc9b4b756114e1b70907006d7bc7027",
56
+ "sha256": "55bf8dfc24592476cb951a21887844a1ef7bc9df702bf0c2483ef41a8f206731",
57
57
  "consumers": [
58
58
  "python"
59
59
  ]
60
60
  },
61
61
  "packages/sdk/langs/python/superdoc/generated/client.py": {
62
62
  "id": "python-client",
63
- "sha256": "fc810d54b24e30baff720730fd97f6bcd2719f1095a75544723eb93a92643155",
63
+ "sha256": "73351ed22209f0c580398a0535ad89438c35c35e20980a549c15effdf7465089",
64
64
  "consumers": [
65
65
  "python"
66
66
  ]
@@ -95,7 +95,7 @@
95
95
  },
96
96
  "packages/sdk/tools/catalog.json": {
97
97
  "id": "tool-catalog",
98
- "sha256": "3ca76b8c9bac9a2908b68aeb146eb7953f6e35cfa0c3543bc57df1ba37eb686d",
98
+ "sha256": "ba5c70bc8b8fe72a82f73bf4713536b2d202a2baffb36cfd4b08ecf0d14c7a1c",
99
99
  "consumers": [
100
100
  "node",
101
101
  "python",
@@ -104,7 +104,7 @@
104
104
  },
105
105
  "packages/sdk/tools/tools-policy.json": {
106
106
  "id": "tool-policy",
107
- "sha256": "730298670a730973228ac207a76c66c90de3f7d9a38756dbbdb732ccaafcc348",
107
+ "sha256": "f82d66ba4f76b2e851ebaf17ba587bf999629b06c8f65c3384f5b2a65e1cb7c6",
108
108
  "consumers": [
109
109
  "node",
110
110
  "python"
@@ -112,7 +112,7 @@
112
112
  },
113
113
  "packages/sdk/tools/tools.openai.json": {
114
114
  "id": "tools-openai",
115
- "sha256": "bd99a0510e50a3482b389f6f6be7f1dbc160a9570c12a3e7be3298585df957de",
115
+ "sha256": "95e07d8fb8e0173c1372d896be8ad5386bb8fecb7abc05605eb722086ca1c786",
116
116
  "consumers": [
117
117
  "node",
118
118
  "python",
@@ -121,7 +121,7 @@
121
121
  },
122
122
  "packages/sdk/tools/tools.anthropic.json": {
123
123
  "id": "tools-anthropic",
124
- "sha256": "5b9defbc04492e901e555661f4e1d7536ac0f5ad9358dfdfffc9b22103022bdf",
124
+ "sha256": "c3844d298975a858794b9ca64976a072af93e1fd0bd931743bcda2e5858f20e8",
125
125
  "consumers": [
126
126
  "node",
127
127
  "python",
@@ -130,7 +130,7 @@
130
130
  },
131
131
  "packages/sdk/tools/tools.vercel.json": {
132
132
  "id": "tools-vercel",
133
- "sha256": "bd99a0510e50a3482b389f6f6be7f1dbc160a9570c12a3e7be3298585df957de",
133
+ "sha256": "95e07d8fb8e0173c1372d896be8ad5386bb8fecb7abc05605eb722086ca1c786",
134
134
  "consumers": [
135
135
  "node",
136
136
  "python",
@@ -139,7 +139,7 @@
139
139
  },
140
140
  "packages/sdk/tools/tools.generic.json": {
141
141
  "id": "tools-generic",
142
- "sha256": "604e62b4227958b18c54832d6a63b30e02d559b76062978488c8d523e86d2530",
142
+ "sha256": "dcae9520ad1946900265724a95bb7080d26fe1b133818f45951fc1cdb1ed6e29",
143
143
  "consumers": [
144
144
  "node",
145
145
  "python",
@@ -179,14 +179,14 @@
179
179
  },
180
180
  "packages/sdk/langs/node/src/embedded-tools.generated.ts": {
181
181
  "id": "node-embedded-tools",
182
- "sha256": "ee3db5082ad8cc2384d79f1b990c5f08e588fa50ac001541cbc1328f6309d4c4",
182
+ "sha256": "f85a6a0803219006781dc0c83cc8fd362ecb27a5df3eaa9d0ade60276dc19ef0",
183
183
  "consumers": [
184
184
  "node"
185
185
  ]
186
186
  },
187
187
  "packages/sdk/langs/node/src/runtime/sdk-version.generated.ts": {
188
188
  "id": "node-sdk-version",
189
- "sha256": "89ffe20f4bf0d15aa2383fceb6d1dd4646fb2473a0d52d0bdbc95333d51f2c4c",
189
+ "sha256": "de8cead8f819817fbbba01ce268a14d2381989fbd170b1459cd9d7606f1a6304",
190
190
  "consumers": [
191
191
  "node"
192
192
  ]
@@ -43,5 +43,5 @@
43
43
  "mutates": true
44
44
  }
45
45
  ],
46
- "contractHash": "32dbab4c9dbd876ba853d0651199b963871ac514f441674adf937e71091686e6"
46
+ "contractHash": "482ad2735cf7147234948273e705ca6952cc7f6e83f4f2e77f946d51804475fc"
47
47
  }
@@ -4516,6 +4516,16 @@
4516
4516
  "numFmt": {
4517
4517
  "type": "string"
4518
4518
  },
4519
+ "customFormat": {
4520
+ "type": "string",
4521
+ "minLength": 1,
4522
+ "examples": [
4523
+ "01, 02, 03, ...",
4524
+ "001, 002, 003, ...",
4525
+ "0001, 0002, 0003, ..."
4526
+ ],
4527
+ "description": "New formats use 2–4 digit zero-padded samples; other values must already exist in the document."
4528
+ },
4519
4529
  "lvlText": {
4520
4530
  "type": "string"
4521
4531
  },
@@ -4603,6 +4603,16 @@
4603
4603
  "numFmt": {
4604
4604
  "type": "string"
4605
4605
  },
4606
+ "customFormat": {
4607
+ "type": "string",
4608
+ "minLength": 1,
4609
+ "examples": [
4610
+ "01, 02, 03, ...",
4611
+ "001, 002, 003, ...",
4612
+ "0001, 0002, 0003, ..."
4613
+ ],
4614
+ "description": "New formats use 2–4 digit zero-padded samples; other values must already exist in the document."
4615
+ },
4606
4616
  "lvlText": {
4607
4617
  "type": "string"
4608
4618
  },
@@ -4530,6 +4530,16 @@
4530
4530
  "numFmt": {
4531
4531
  "type": "string"
4532
4532
  },
4533
+ "customFormat": {
4534
+ "type": "string",
4535
+ "minLength": 1,
4536
+ "examples": [
4537
+ "01, 02, 03, ...",
4538
+ "001, 002, 003, ...",
4539
+ "0001, 0002, 0003, ..."
4540
+ ],
4541
+ "description": "New formats use 2–4 digit zero-padded samples; other values must already exist in the document."
4542
+ },
4533
4543
  "lvlText": {
4534
4544
  "type": "string"
4535
4545
  },
@@ -4530,6 +4530,16 @@
4530
4530
  "numFmt": {
4531
4531
  "type": "string"
4532
4532
  },
4533
+ "customFormat": {
4534
+ "type": "string",
4535
+ "minLength": 1,
4536
+ "examples": [
4537
+ "01, 02, 03, ...",
4538
+ "001, 002, 003, ...",
4539
+ "0001, 0002, 0003, ..."
4540
+ ],
4541
+ "description": "New formats use 2–4 digit zero-padded samples; other values must already exist in the document."
4542
+ },
4533
4543
  "lvlText": {
4534
4544
  "type": "string"
4535
4545
  },