@nodetool-ai/protocol 0.8.3 → 0.8.4-a13.1

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 (141) hide show
  1. package/dist/.nodetool-build-stamp +1 -1
  2. package/dist/api-schemas/applications.d.ts +4 -0
  3. package/dist/api-schemas/applications.d.ts.map +1 -1
  4. package/dist/api-schemas/applications.js +4 -1
  5. package/dist/api-schemas/applications.js.map +1 -1
  6. package/dist/api-schemas/nodes.d.ts +2 -0
  7. package/dist/api-schemas/nodes.d.ts.map +1 -1
  8. package/dist/api-schemas/nodes.js +2 -1
  9. package/dist/api-schemas/nodes.js.map +1 -1
  10. package/dist/api-schemas/recipes.d.ts +8 -0
  11. package/dist/api-schemas/recipes.d.ts.map +1 -1
  12. package/dist/api-schemas/sdk-execution-v1.d.ts +81 -0
  13. package/dist/api-schemas/sdk-execution-v1.d.ts.map +1 -1
  14. package/dist/api-schemas/sdk-v1-http-operations.d.ts +2 -0
  15. package/dist/api-schemas/sdk-v1-http-operations.d.ts.map +1 -1
  16. package/dist/api-schemas/timeline-tool-contracts.d.ts +56 -0
  17. package/dist/api-schemas/timeline-tool-contracts.d.ts.map +1 -1
  18. package/dist/api-schemas/timeline-tool-contracts.js +4 -2
  19. package/dist/api-schemas/timeline-tool-contracts.js.map +1 -1
  20. package/dist/api-schemas/timeline.d.ts +478 -0
  21. package/dist/api-schemas/timeline.d.ts.map +1 -1
  22. package/dist/api-schemas/timeline.js +40 -0
  23. package/dist/api-schemas/timeline.js.map +1 -1
  24. package/dist/api-schemas/workflows.d.ts +24 -0
  25. package/dist/api-schemas/workflows.d.ts.map +1 -1
  26. package/dist/api-schemas/workflows.js +3 -0
  27. package/dist/api-schemas/workflows.js.map +1 -1
  28. package/dist/api-types.d.ts +8 -1
  29. package/dist/api-types.d.ts.map +1 -1
  30. package/dist/api-types.js +9 -1
  31. package/dist/api-types.js.map +1 -1
  32. package/dist/cloud-profile.d.ts.map +1 -1
  33. package/dist/cloud-profile.js +3 -0
  34. package/dist/cloud-profile.js.map +1 -1
  35. package/dist/custom-providers.js +1 -1
  36. package/dist/custom-providers.js.map +1 -1
  37. package/dist/example-needs.d.ts +24 -0
  38. package/dist/example-needs.d.ts.map +1 -0
  39. package/dist/example-needs.js +64 -0
  40. package/dist/example-needs.js.map +1 -0
  41. package/dist/game-particles.d.ts +74 -0
  42. package/dist/game-particles.d.ts.map +1 -1
  43. package/dist/game-particles.js +40 -1
  44. package/dist/game-particles.js.map +1 -1
  45. package/dist/game-saves.d.ts +73 -0
  46. package/dist/game-saves.d.ts.map +1 -0
  47. package/dist/game-saves.js +87 -0
  48. package/dist/game-saves.js.map +1 -0
  49. package/dist/game-screens.d.ts +2031 -0
  50. package/dist/game-screens.d.ts.map +1 -0
  51. package/dist/game-screens.js +89 -0
  52. package/dist/game-screens.js.map +1 -0
  53. package/dist/game2d/components/entity-components.d.ts +20 -0
  54. package/dist/game2d/components/entity-components.d.ts.map +1 -1
  55. package/dist/game2d/components/music.d.ts +4 -0
  56. package/dist/game2d/components/music.d.ts.map +1 -1
  57. package/dist/game2d/components/music.js +12 -1
  58. package/dist/game2d/components/music.js.map +1 -1
  59. package/dist/game2d/index.d.ts +1099 -0
  60. package/dist/game2d/index.d.ts.map +1 -1
  61. package/dist/game2d/index.js +7 -1
  62. package/dist/game2d/index.js.map +1 -1
  63. package/dist/game3d/components/animation-graph.d.ts +1 -0
  64. package/dist/game3d/components/animation-graph.d.ts.map +1 -1
  65. package/dist/game3d/components/animation-graph.js +1 -1
  66. package/dist/game3d/components/animation-graph.js.map +1 -1
  67. package/dist/game3d/components/assets.d.ts +30 -0
  68. package/dist/game3d/components/assets.d.ts.map +1 -1
  69. package/dist/game3d/components/assets.js +4 -1
  70. package/dist/game3d/components/assets.js.map +1 -1
  71. package/dist/game3d/components/collider.d.ts +65 -0
  72. package/dist/game3d/components/collider.d.ts.map +1 -1
  73. package/dist/game3d/components/collider.js +6 -1
  74. package/dist/game3d/components/collider.js.map +1 -1
  75. package/dist/game3d/components/force-command.d.ts +30 -0
  76. package/dist/game3d/components/force-command.d.ts.map +1 -0
  77. package/dist/game3d/components/force-command.js +10 -0
  78. package/dist/game3d/components/force-command.js.map +1 -0
  79. package/dist/game3d/components/material.d.ts +66 -0
  80. package/dist/game3d/components/material.d.ts.map +1 -1
  81. package/dist/game3d/components/material.js +13 -2
  82. package/dist/game3d/components/material.js.map +1 -1
  83. package/dist/game3d/components/model.d.ts +54 -0
  84. package/dist/game3d/components/model.d.ts.map +1 -1
  85. package/dist/game3d/components/model.js +1 -0
  86. package/dist/game3d/components/model.js.map +1 -1
  87. package/dist/game3d/components/performance.js +1 -1
  88. package/dist/game3d/components/performance.js.map +1 -1
  89. package/dist/game3d/components/physics-material.d.ts +50 -0
  90. package/dist/game3d/components/physics-material.d.ts.map +1 -0
  91. package/dist/game3d/components/physics-material.js +20 -0
  92. package/dist/game3d/components/physics-material.js.map +1 -0
  93. package/dist/game3d/components/primitive.d.ts +54 -0
  94. package/dist/game3d/components/primitive.d.ts.map +1 -1
  95. package/dist/game3d/components/primitive.js +2 -1
  96. package/dist/game3d/components/primitive.js.map +1 -1
  97. package/dist/game3d/index.d.ts +9827 -3715
  98. package/dist/game3d/index.d.ts.map +1 -1
  99. package/dist/game3d/index.js +29 -8
  100. package/dist/game3d/index.js.map +1 -1
  101. package/dist/index.d.ts +5 -0
  102. package/dist/index.d.ts.map +1 -1
  103. package/dist/index.js +4 -0
  104. package/dist/index.js.map +1 -1
  105. package/dist/messages.d.ts +302 -0
  106. package/dist/messages.d.ts.map +1 -1
  107. package/dist/messages.js +7 -1
  108. package/dist/messages.js.map +1 -1
  109. package/dist/missing-pack.d.ts +45 -0
  110. package/dist/missing-pack.d.ts.map +1 -0
  111. package/dist/missing-pack.js +53 -0
  112. package/dist/missing-pack.js.map +1 -0
  113. package/dist/missing-runtime-package.d.ts +56 -2
  114. package/dist/missing-runtime-package.d.ts.map +1 -1
  115. package/dist/missing-runtime-package.js +141 -6
  116. package/dist/missing-runtime-package.js.map +1 -1
  117. package/dist/processing-messages.schema.json +357 -0
  118. package/dist/python-packs.d.ts +2 -0
  119. package/dist/python-packs.d.ts.map +1 -1
  120. package/dist/python-packs.js +5 -0
  121. package/dist/python-packs.js.map +1 -1
  122. package/dist/resource-id.d.ts +10 -0
  123. package/dist/resource-id.d.ts.map +1 -1
  124. package/dist/resource-id.js +21 -0
  125. package/dist/resource-id.js.map +1 -1
  126. package/dist/runtime-npm-packages.d.ts +101 -0
  127. package/dist/runtime-npm-packages.d.ts.map +1 -0
  128. package/dist/runtime-npm-packages.js +124 -0
  129. package/dist/runtime-npm-packages.js.map +1 -0
  130. package/dist/screenplay-authoring.js +1 -1
  131. package/dist/screenplay-authoring.js.map +1 -1
  132. package/dist/token-providers.d.ts.map +1 -1
  133. package/dist/token-providers.js +3 -1
  134. package/dist/token-providers.js.map +1 -1
  135. package/dist/workflow-plan.d.ts.map +1 -1
  136. package/dist/workflow-plan.js +39 -40
  137. package/dist/workflow-plan.js.map +1 -1
  138. package/package.json +8 -1
  139. package/schema/sdk-v1.discovery.schema.json +4 -2
  140. package/schema/sdk-v1.execution.schema.json +714 -0
  141. package/schema/sdk-v1.manifest.json +2 -2
@@ -147,6 +147,139 @@
147
147
  "type": "null"
148
148
  }
149
149
  ]
150
+ },
151
+ "missing_pack": {
152
+ "anyOf": [
153
+ {
154
+ "type": "object",
155
+ "properties": {
156
+ "error": {
157
+ "type": "string",
158
+ "const": "missing_pack"
159
+ },
160
+ "packs": {
161
+ "readOnly": true,
162
+ "type": "array",
163
+ "items": {
164
+ "readOnly": true,
165
+ "type": "object",
166
+ "properties": {
167
+ "id": {
168
+ "type": "string"
169
+ },
170
+ "npm": {
171
+ "type": "string"
172
+ },
173
+ "version": {
174
+ "type": "string"
175
+ },
176
+ "installBytes": {
177
+ "type": "number",
178
+ "minimum": 0
179
+ },
180
+ "requires": {
181
+ "readOnly": true,
182
+ "type": "array",
183
+ "items": {
184
+ "type": "string"
185
+ }
186
+ }
187
+ },
188
+ "required": [
189
+ "id",
190
+ "npm",
191
+ "version",
192
+ "installBytes",
193
+ "requires"
194
+ ],
195
+ "additionalProperties": false
196
+ }
197
+ },
198
+ "runtimeLibraries": {
199
+ "readOnly": true,
200
+ "type": "array",
201
+ "items": {
202
+ "type": "string"
203
+ }
204
+ },
205
+ "nodeTypes": {
206
+ "readOnly": true,
207
+ "type": "array",
208
+ "items": {
209
+ "type": "string"
210
+ }
211
+ },
212
+ "install": {
213
+ "oneOf": [
214
+ {
215
+ "type": "object",
216
+ "properties": {
217
+ "supported": {
218
+ "type": "boolean",
219
+ "const": true
220
+ },
221
+ "reason": {
222
+ "type": "null"
223
+ },
224
+ "command": {
225
+ "anyOf": [
226
+ {
227
+ "type": "string"
228
+ },
229
+ {
230
+ "type": "null"
231
+ }
232
+ ]
233
+ }
234
+ },
235
+ "required": [
236
+ "supported",
237
+ "reason",
238
+ "command"
239
+ ],
240
+ "additionalProperties": false
241
+ },
242
+ {
243
+ "type": "object",
244
+ "properties": {
245
+ "supported": {
246
+ "type": "boolean",
247
+ "const": false
248
+ },
249
+ "reason": {
250
+ "type": "string"
251
+ },
252
+ "command": {
253
+ "type": "null"
254
+ }
255
+ },
256
+ "required": [
257
+ "supported",
258
+ "reason",
259
+ "command"
260
+ ],
261
+ "additionalProperties": false
262
+ }
263
+ ]
264
+ },
265
+ "restartRequired": {
266
+ "type": "boolean"
267
+ }
268
+ },
269
+ "required": [
270
+ "error",
271
+ "packs",
272
+ "runtimeLibraries",
273
+ "nodeTypes",
274
+ "install",
275
+ "restartRequired"
276
+ ],
277
+ "additionalProperties": false
278
+ },
279
+ {
280
+ "type": "null"
281
+ }
282
+ ]
150
283
  }
151
284
  },
152
285
  "required": [
@@ -202,6 +335,230 @@
202
335
  }
203
336
  ]
204
337
  },
338
+ "missing_runtime": {
339
+ "anyOf": [
340
+ {
341
+ "type": "object",
342
+ "properties": {
343
+ "runtimePackage": {
344
+ "type": "string",
345
+ "enum": [
346
+ "python",
347
+ "nodejs",
348
+ "ffmpeg",
349
+ "pandoc",
350
+ "pdftotext",
351
+ "yt-dlp",
352
+ "rust",
353
+ "manimgx",
354
+ "transformers-js",
355
+ "tensorflow-js",
356
+ "node-llama-cpp",
357
+ "whisper-cpp",
358
+ "playwright",
359
+ "pdf-js",
360
+ "office-documents",
361
+ "tesseract-ocr",
362
+ "fabric",
363
+ "email-imap",
364
+ "tokenizer",
365
+ "imaging",
366
+ "typescript",
367
+ "tracing",
368
+ "rapier",
369
+ "esbuild"
370
+ ]
371
+ },
372
+ "missing": {
373
+ "type": "string"
374
+ },
375
+ "reason": {
376
+ "type": "string",
377
+ "enum": [
378
+ "missing",
379
+ "incompatible",
380
+ "broken"
381
+ ]
382
+ },
383
+ "managed": {
384
+ "anyOf": [
385
+ {
386
+ "type": "string"
387
+ },
388
+ {
389
+ "type": "null"
390
+ }
391
+ ]
392
+ },
393
+ "bringYourOwn": {
394
+ "anyOf": [
395
+ {
396
+ "type": "string"
397
+ },
398
+ {
399
+ "type": "null"
400
+ }
401
+ ]
402
+ },
403
+ "restart": {
404
+ "anyOf": [
405
+ {
406
+ "type": "string"
407
+ },
408
+ {
409
+ "type": "null"
410
+ }
411
+ ]
412
+ }
413
+ },
414
+ "required": [
415
+ "runtimePackage",
416
+ "missing",
417
+ "reason",
418
+ "managed",
419
+ "bringYourOwn",
420
+ "restart"
421
+ ],
422
+ "additionalProperties": false
423
+ },
424
+ {
425
+ "type": "null"
426
+ }
427
+ ]
428
+ },
429
+ "missing_pack": {
430
+ "anyOf": [
431
+ {
432
+ "type": "object",
433
+ "properties": {
434
+ "error": {
435
+ "type": "string",
436
+ "const": "missing_pack"
437
+ },
438
+ "packs": {
439
+ "readOnly": true,
440
+ "type": "array",
441
+ "items": {
442
+ "readOnly": true,
443
+ "type": "object",
444
+ "properties": {
445
+ "id": {
446
+ "type": "string"
447
+ },
448
+ "npm": {
449
+ "type": "string"
450
+ },
451
+ "version": {
452
+ "type": "string"
453
+ },
454
+ "installBytes": {
455
+ "type": "number",
456
+ "minimum": 0
457
+ },
458
+ "requires": {
459
+ "readOnly": true,
460
+ "type": "array",
461
+ "items": {
462
+ "type": "string"
463
+ }
464
+ }
465
+ },
466
+ "required": [
467
+ "id",
468
+ "npm",
469
+ "version",
470
+ "installBytes",
471
+ "requires"
472
+ ],
473
+ "additionalProperties": false
474
+ }
475
+ },
476
+ "runtimeLibraries": {
477
+ "readOnly": true,
478
+ "type": "array",
479
+ "items": {
480
+ "type": "string"
481
+ }
482
+ },
483
+ "nodeTypes": {
484
+ "readOnly": true,
485
+ "type": "array",
486
+ "items": {
487
+ "type": "string"
488
+ }
489
+ },
490
+ "install": {
491
+ "oneOf": [
492
+ {
493
+ "type": "object",
494
+ "properties": {
495
+ "supported": {
496
+ "type": "boolean",
497
+ "const": true
498
+ },
499
+ "reason": {
500
+ "type": "null"
501
+ },
502
+ "command": {
503
+ "anyOf": [
504
+ {
505
+ "type": "string"
506
+ },
507
+ {
508
+ "type": "null"
509
+ }
510
+ ]
511
+ }
512
+ },
513
+ "required": [
514
+ "supported",
515
+ "reason",
516
+ "command"
517
+ ],
518
+ "additionalProperties": false
519
+ },
520
+ {
521
+ "type": "object",
522
+ "properties": {
523
+ "supported": {
524
+ "type": "boolean",
525
+ "const": false
526
+ },
527
+ "reason": {
528
+ "type": "string"
529
+ },
530
+ "command": {
531
+ "type": "null"
532
+ }
533
+ },
534
+ "required": [
535
+ "supported",
536
+ "reason",
537
+ "command"
538
+ ],
539
+ "additionalProperties": false
540
+ }
541
+ ]
542
+ },
543
+ "restartRequired": {
544
+ "type": "boolean"
545
+ }
546
+ },
547
+ "required": [
548
+ "error",
549
+ "packs",
550
+ "runtimeLibraries",
551
+ "nodeTypes",
552
+ "install",
553
+ "restartRequired"
554
+ ],
555
+ "additionalProperties": false
556
+ },
557
+ {
558
+ "type": "null"
559
+ }
560
+ ]
561
+ },
205
562
  "provider": {
206
563
  "anyOf": [
207
564
  {
@@ -34,6 +34,8 @@ export interface PythonNodePack {
34
34
  /** What the pack needs, named in the refusal on an unsupported platform. */
35
35
  platformRequirement?: string;
36
36
  }
37
+ /** A declared Python-pack namespace, including its node type suffix. */
38
+ export declare function isPythonNodeType(nodeType: string): boolean;
37
39
  export declare const PYTHON_NODE_PACKS: readonly PythonNodePack[];
38
40
  /** The catalog pack with this GitHub `owner/repo` id, if any. */
39
41
  export declare function findPythonNodePack(repoId: string): PythonNodePack | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"python-packs.d.ts","sourceRoot":"","sources":["../src/python-packs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,uEAAuE;AACvE,MAAM,MAAM,kBAAkB,GAAG,GAAG,MAAM,IAAI,MAAM,EAAE,CAAC;AAEvD,MAAM,WAAW,cAAc;IAC7B,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,OAAO,EAAE,MAAM,CAAC;IAChB,+DAA+D;IAC/D,WAAW,EAAE,MAAM,CAAC;IACpB,oEAAoE;IACpE,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAC1C;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,4EAA4E;IAC5E,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,iBAAiB,EAAE,SAAS,cAAc,EA4CtD,CAAC;AAEF,iEAAiE;AACjE,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,GACb,cAAc,GAAG,SAAS,CAG5B;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,cAAc,EACpB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAWT"}
1
+ {"version":3,"file":"python-packs.d.ts","sourceRoot":"","sources":["../src/python-packs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,uEAAuE;AACvE,MAAM,MAAM,kBAAkB,GAAG,GAAG,MAAM,IAAI,MAAM,EAAE,CAAC;AAEvD,MAAM,WAAW,cAAc;IAC7B,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,OAAO,EAAE,MAAM,CAAC;IAChB,+DAA+D;IAC/D,WAAW,EAAE,MAAM,CAAC;IACpB,oEAAoE;IACpE,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAC1C;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,4EAA4E;IAC5E,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,wEAAwE;AACxE,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAK1D;AAED,eAAO,MAAM,iBAAiB,EAAE,SAAS,cAAc,EA4CtD,CAAC;AAEF,iEAAiE;AACjE,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,GACb,cAAc,GAAG,SAAS,CAG5B;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,cAAc,EACpB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAWT"}
@@ -9,6 +9,11 @@
9
9
  * version. Compatibility with the app is the bridge protocol floor
10
10
  * (`MIN_NODETOOL_CORE_VERSION`), which applies to `nodetool-core` only.
11
11
  */
12
+ /** A declared Python-pack namespace, including its node type suffix. */
13
+ export function isPythonNodeType(nodeType) {
14
+ const qualified = nodeType.startsWith("nodetool.nodes.") ? nodeType : `nodetool.nodes.${nodeType}`;
15
+ return PYTHON_NODE_PACKS.some((pack) => pack.namespaces.some((namespace) => qualified === namespace || qualified.startsWith(`${namespace}.`)));
16
+ }
12
17
  export const PYTHON_NODE_PACKS = [
13
18
  {
14
19
  name: "Core",
@@ -1 +1 @@
1
- {"version":3,"file":"python-packs.js","sourceRoot":"","sources":["../src/python-packs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AA6BH,MAAM,CAAC,MAAM,iBAAiB,GAA8B;IAC1D;QACE,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,2BAA2B;QACpC,WAAW,EACT,kHAAkH;QACpH,UAAU,EAAE,EAAE;KACf;IACD;QACE,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,0BAA0B;QACnC,WAAW,EAAE,uCAAuC;QACpD,UAAU,EAAE,CAAC,oBAAoB,CAAC;QAClC,SAAS,EAAE,CAAC,cAAc,CAAC;QAC3B,mCAAmC;QACnC,eAAe,EAAE,EAAE;QACnB,mBAAmB,EAAE,gDAAgD;KACtE;IACD;QACE,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,kCAAkC;QAC3C,WAAW,EACT,qHAAqH;QACvH,UAAU,EAAE,CAAC,4BAA4B,CAAC;QAC1C,0EAA0E;QAC1E,sCAAsC;QACtC,SAAS,EAAE;YACT,cAAc;YACd,WAAW;YACX,aAAa;YACb,WAAW;YACX,aAAa;SACd;QACD,eAAe,EAAE,EAAE;QACnB,mBAAmB,EACjB,8HAA8H;KACjI;IACD;QACE,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,6BAA6B;QACtC,WAAW,EACT,sHAAsH;QACxH,UAAU,EAAE,CAAC,uBAAuB,CAAC;KACtC;CACF,CAAC;AAEF,iEAAiE;AACjE,MAAM,UAAU,kBAAkB,CAChC,MAAc;IAEd,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC;IACpC,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC,CAAC;AACjF,CAAC;AAED;;;;GAIG;A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Ae,KAAK,SAAS,IAAI,SAAS,EAAE,CAAC;QAC7E,MAAM,KAAK,GAAG,MAAM,CAAC,QAAQ,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;QAC7C,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;YAC3D,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -19,4 +19,14 @@ export declare function isFullResourceId(value: string): boolean;
19
19
  export declare function isShortResourceId(value: string): boolean;
20
20
  /** The short form of a full id; anything else comes back unchanged. */
21
21
  export declare function shortResourceId(value: string): string;
22
+ /**
23
+ * The bare asset id an asset reference names, for every form an agent or a
24
+ * shipped document hands over: `asset://<id>.<ext>`, `asset://<id>`, a bare
25
+ * id, or a bare hex id with an extension. The id may still be a 12-character
26
+ * prefix; resolving it to the full id needs the caller's asset table.
27
+ *
28
+ * Any other scheme (`package://`, `http(s)://`, `data:`) is a locator, not an
29
+ * id, and comes back unchanged.
30
+ */
31
+ export declare function assetIdFromRef(ref: string): string;
22
32
  //# sourceMappingURL=resource-id.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resource-id.d.ts","sourceRoot":"","sources":["../src/resource-id.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAK3C,mDAAmD;AACnD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED,8EAA8E;AAC9E,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAExD;AAED,uEAAuE;AACvE,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIrD"}
1
+ {"version":3,"file":"resource-id.d.ts","sourceRoot":"","sources":["../src/resource-id.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAK3C,mDAAmD;AACnD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED,8EAA8E;AAC9E,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAExD;AAED,uEAAuE;AACvE,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIrD;AAKD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CASlD"}
@@ -29,4 +29,25 @@ export function shortResourceId(value) {
29
29
  ? value.slice(0, SHORT_RESOURCE_ID_LENGTH)
30
30
  : value;
31
31
  }
32
+ const ASSET_SCHEME = "asset://";
33
+ const HEX_ID_WITH_EXTENSION = /^([0-9a-f]{12,32})\.[A-Za-z0-9]{1,8}$/;
34
+ /**
35
+ * The bare asset id an asset reference names, for every form an agent or a
36
+ * shipped document hands over: `asset://<id>.<ext>`, `asset://<id>`, a bare
37
+ * id, or a bare hex id with an extension. The id may still be a 12-character
38
+ * prefix; resolving it to the full id needs the caller's asset table.
39
+ *
40
+ * Any other scheme (`package://`, `http(s)://`, `data:`) is a locator, not an
41
+ * id, and comes back unchanged.
42
+ */
43
+ export function assetIdFromRef(ref) {
44
+ const trimmed = ref.trim();
45
+ if (trimmed.startsWith(ASSET_SCHEME)) {
46
+ const rest = trimmed.slice(ASSET_SCHEME.length).split(/[?#]/)[0];
47
+ const withoutExt = rest.replace(/\.[A-Za-z0-9]{1,8}$/, "");
48
+ return withoutExt || rest;
49
+ }
50
+ const hexWithExt = HEX_ID_WITH_EXTENSION.exec(trimmed);
51
+ return hexWithExt ? hexWithExt[1] : trimmed;
52
+ }
32
53
  //# sourceMappingURL=resource-id.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resource-id.js","sourceRoot":"","sources":["../src/resource-id.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;A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AK,CAAC,KAAK,CAAC,CAAC,EAAE,wBAAwB,CAAC;QAC1C,CAAC,CAAC,KAAK,CAAC;AACZ,CAAC;AAED,MAAM,YAAY,GAAG,UAAU,CAAC;AAChC,MAAM,qBAAqB,GAAG,uCAAuC,CAAC;AAEtE;;;;;;;;GAQG;AACH,MAAM,UAAU,cAAc,CAAC,GAAW;IACxC,MAAM,OAAO,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;IAC3B,IAAI,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;QACrC,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACjE,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,qBAAqB,EAAE,EAAE,CAAC,CAAC;QAC3D,OAAO,UAAU,IAAI,IAAI,CAAC;IAC5B,CAAC;IACD,MAAM,UAAU,GAAG,qBAAqB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACvD,OAAO,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;AAC9C,CAAC"}
@@ -0,0 +1,101 @@
1
+ export interface RuntimeNpmPackage {
2
+ /** Hosts that include these libraries in their bundled backend. */
3
+ readonly bundledHosts?: readonly ("desktop" | "docker")[];
4
+ /** Full npm install specs with exact versions. */
5
+ readonly npmPackages: readonly string[];
6
+ /** Bare package names, for status checks and uninstall. */
7
+ readonly packageNames: readonly string[];
8
+ /** What the package enables, in one sentence. */
9
+ readonly description: string;
10
+ }
11
+ export declare const RUNTIME_NPM_PACKAGES: {
12
+ readonly imaging: {
13
+ readonly npmPackages: readonly ["sharp@0.35.5", "@napi-rs/canvas@0.1.100"];
14
+ readonly packageNames: readonly ["sharp", "@napi-rs/canvas"];
15
+ readonly description: "Image codecs and canvas rendering.";
16
+ readonly bundledHosts: readonly ["desktop", "docker"];
17
+ };
18
+ readonly typescript: {
19
+ readonly npmPackages: readonly ["typescript@npm:@typescript/typescript6@6.0.2"];
20
+ readonly packageNames: readonly ["typescript"];
21
+ readonly description: "TypeScript compiler and language-service APIs.";
22
+ readonly bundledHosts: readonly ["desktop", "docker"];
23
+ };
24
+ readonly tracing: {
25
+ readonly npmPackages: readonly ["@opentelemetry/core@2.12.0", "@opentelemetry/resources@2.12.0", "@opentelemetry/sdk-trace-base@2.12.0"];
26
+ readonly packageNames: readonly ["@opentelemetry/core", "@opentelemetry/resources", "@opentelemetry/sdk-trace-base"];
27
+ readonly description: "Workflow and agent execution traces.";
28
+ readonly bundledHosts: readonly ["desktop", "docker"];
29
+ };
30
+ readonly esbuild: {
31
+ readonly npmPackages: readonly ["esbuild@0.28.1"];
32
+ readonly packageNames: readonly ["esbuild"];
33
+ readonly description: "JavaScript and TypeScript sandbox dependency builds.";
34
+ readonly bundledHosts: readonly ["desktop", "docker"];
35
+ };
36
+ readonly rapier: {
37
+ readonly npmPackages: readonly ["@dimforge/rapier3d-compat@0.19.3"];
38
+ readonly packageNames: readonly ["@dimforge/rapier3d-compat"];
39
+ readonly description: "Physics simulation for 3D games.";
40
+ readonly bundledHosts: readonly ["desktop", "docker"];
41
+ };
42
+ readonly "transformers-js": {
43
+ readonly npmPackages: readonly ["@huggingface/transformers@3.8.1", "kokoro-js@1.2.1"];
44
+ readonly packageNames: readonly ["@huggingface/transformers", "kokoro-js"];
45
+ readonly description: "Local Transformers.js models, including the ONNX Runtime.";
46
+ };
47
+ readonly "tensorflow-js": {
48
+ readonly npmPackages: readonly ["@tensorflow/tfjs@4.22.0", "@tensorflow-models/mobilenet@2.1.1", "@tensorflow-models/coco-ssd@2.2.3", "@tensorflow-models/qna@1.0.2"];
49
+ readonly packageNames: readonly ["@tensorflow/tfjs", "@tensorflow-models/mobilenet", "@tensorflow-models/coco-ssd", "@tensorflow-models/qna"];
50
+ readonly description: "TensorFlow.js image classification, detection and Q&A nodes.";
51
+ };
52
+ readonly "node-llama-cpp": {
53
+ readonly npmPackages: readonly ["node-llama-cpp@3.19.1"];
54
+ readonly packageNames: readonly ["node-llama-cpp"];
55
+ readonly description: "GGUF models in process, without a separate llama.cpp server.";
56
+ };
57
+ readonly "whisper-cpp": {
58
+ readonly npmPackages: readonly ["@fugood/whisper.node@1.1.3"];
59
+ readonly packageNames: readonly ["@fugood/whisper.node"];
60
+ readonly description: "Local speech-to-text with whisper.cpp.";
61
+ };
62
+ readonly playwright: {
63
+ readonly npmPackages: readonly ["playwright@1.60.0"];
64
+ readonly packageNames: readonly ["playwright"];
65
+ readonly description: "Frame capture for 3D games through a headless browser.";
66
+ };
67
+ readonly "pdf-js": {
68
+ readonly npmPackages: readonly ["@llamaindex/liteparse@1.5.3", "pdf-parse@2.4.5", "pdf-lib@1.17.1"];
69
+ readonly packageNames: readonly ["@llamaindex/liteparse", "pdf-parse", "pdf-lib"];
70
+ readonly description: "PDF reading, extraction and editing.";
71
+ };
72
+ readonly "office-documents": {
73
+ readonly npmPackages: readonly ["exceljs@4.4.0", "docx@9.7.1", "mammoth@1.12.1", "pptxgenjs@4.0.1", "office-text-extractor@4.0.0", "epub2@3.0.2"];
74
+ readonly packageNames: readonly ["exceljs", "docx", "mammoth", "pptxgenjs", "office-text-extractor", "epub2"];
75
+ readonly description: "Excel, Word, PowerPoint and EPUB files.";
76
+ };
77
+ readonly "tesseract-ocr": {
78
+ readonly npmPackages: readonly ["tesseract.js@7.0.0"];
79
+ readonly packageNames: readonly ["tesseract.js"];
80
+ readonly description: "Text recognition in images.";
81
+ };
82
+ readonly fabric: {
83
+ readonly npmPackages: readonly ["fabric@7.4.0"];
84
+ readonly packageNames: readonly ["fabric"];
85
+ readonly description: "Fabric.js scene rendering.";
86
+ };
87
+ readonly "email-imap": {
88
+ readonly npmPackages: readonly ["imapflow@1.7.1", "mailparser@3.9.15"];
89
+ readonly packageNames: readonly ["imapflow", "mailparser"];
90
+ readonly description: "Gmail search, archive and labels over IMAP.";
91
+ };
92
+ readonly tokenizer: {
93
+ readonly npmPackages: readonly ["js-tiktoken@1.0.21"];
94
+ readonly packageNames: readonly ["js-tiktoken"];
95
+ readonly description: "Exact LLM token counting, encoding and decoding.";
96
+ };
97
+ };
98
+ export type RuntimeNpmPackageId = keyof typeof RUNTIME_NPM_PACKAGES;
99
+ /** Whether an id names a runtime package that installs from npm. */
100
+ export declare function isRuntimeNpmPackageId(id: string): id is RuntimeNpmPackageId;
101
+ //# sourceMappingURL=runtime-npm-packages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-npm-packages.d.ts","sourceRoot":"","sources":["../src/runtime-npm-packages.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,iBAAiB;IAChC,mEAAmE;IACnE,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,GAAG,QAAQ,CAAC,EAAE,CAAC;IAC1D,kDAAkD;IAClD,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IACxC,2DAA2D;IAC3D,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IACzC,iDAAiD;IACjD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,oBAAoB;;iBAE7B,WAAW;iBACX,YAAY;iBACZ,WAAW,EAAE,oCAAoC;iBACjD,YAAY;;;iBAGZ,WAAW;iBACX,YAAY;iBACZ,WAAW,EAAE,gDAAgD;iBAC7D,YAAY;;;iBAGZ,WAAW;iBACX,YAAY;iBACZ,WAAW,EAAE,sCAAsC;iBACnD,YAAY;;;iBAGZ,WAAW;iBACX,YAAY;iBACZ,WAAW,EAAE,sDAAsD;iBACnE,YAAY;;;iBAGZ,WAAW;iBACX,YAAY;iBACZ,WAAW,EAAE,kCAAkC;iBAC/C,YAAY;;;iBAOZ,WAAW;iBACX,YAAY;iBACZ,WAAW,EAAE,2DAA2D;;;iBAGxE,WAAW;iBAMX,YAAY;iBAMZ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