@octonodes/sdk 0.1.0 → 0.1.7

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 (76) hide show
  1. package/PLUGINS.md +289 -91
  2. package/dist/constants.d.ts +1 -0
  3. package/dist/constants.d.ts.map +1 -1
  4. package/dist/constants.js +2 -1
  5. package/dist/constants.js.map +1 -1
  6. package/dist/gen/types.gen.d.ts +240 -1
  7. package/dist/gen/types.gen.d.ts.map +1 -1
  8. package/dist/index.d.ts +1 -1
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +2 -1
  11. package/dist/index.js.map +1 -1
  12. package/dist/plugins/schema/plugin.d.ts +475 -16
  13. package/dist/plugins/schema/plugin.d.ts.map +1 -1
  14. package/dist/plugins/schema/plugin.js +105 -8
  15. package/dist/plugins/schema/plugin.js.map +1 -1
  16. package/dist/plugins/sdk/definitions/compiler/catalog.d.ts +3 -0
  17. package/dist/plugins/sdk/definitions/compiler/catalog.d.ts.map +1 -0
  18. package/dist/plugins/sdk/definitions/compiler/catalog.js +166 -0
  19. package/dist/plugins/sdk/definitions/compiler/catalog.js.map +1 -0
  20. package/dist/plugins/sdk/definitions/compiler/constants.d.ts +6 -0
  21. package/dist/plugins/sdk/definitions/compiler/constants.d.ts.map +1 -0
  22. package/dist/plugins/sdk/definitions/compiler/constants.js +10 -0
  23. package/dist/plugins/sdk/definitions/compiler/constants.js.map +1 -0
  24. package/dist/plugins/sdk/definitions/compiler/index.d.ts +7 -0
  25. package/dist/plugins/sdk/definitions/compiler/index.d.ts.map +1 -0
  26. package/dist/plugins/sdk/definitions/compiler/index.js +490 -0
  27. package/dist/plugins/sdk/definitions/compiler/index.js.map +1 -0
  28. package/dist/plugins/sdk/definitions/compiler/literals.d.ts +5 -0
  29. package/dist/plugins/sdk/definitions/compiler/literals.d.ts.map +1 -0
  30. package/dist/plugins/sdk/definitions/compiler/literals.js +78 -0
  31. package/dist/plugins/sdk/definitions/compiler/literals.js.map +1 -0
  32. package/dist/plugins/sdk/definitions/compiler/schemas.d.ts +4 -0
  33. package/dist/plugins/sdk/definitions/compiler/schemas.d.ts.map +1 -0
  34. package/dist/plugins/sdk/definitions/compiler/schemas.js +95 -0
  35. package/dist/plugins/sdk/definitions/compiler/schemas.js.map +1 -0
  36. package/dist/plugins/sdk/definitions/compiler/types.d.ts +23 -0
  37. package/dist/plugins/sdk/definitions/compiler/types.d.ts.map +1 -0
  38. package/dist/plugins/sdk/definitions/compiler/types.js +3 -0
  39. package/dist/plugins/sdk/definitions/compiler/types.js.map +1 -0
  40. package/dist/plugins/sdk/definitions/index.d.ts +7 -0
  41. package/dist/plugins/sdk/definitions/index.d.ts.map +1 -0
  42. package/dist/plugins/sdk/definitions/index.js +16 -0
  43. package/dist/plugins/sdk/definitions/index.js.map +1 -0
  44. package/dist/plugins/sdk/definitions/npm/emit/js.d.ts +4 -0
  45. package/dist/plugins/sdk/definitions/npm/emit/js.d.ts.map +1 -0
  46. package/dist/plugins/sdk/definitions/npm/emit/js.js +190 -0
  47. package/dist/plugins/sdk/definitions/npm/emit/js.js.map +1 -0
  48. package/dist/plugins/sdk/definitions/npm/types.d.ts +63 -0
  49. package/dist/plugins/sdk/definitions/npm/types.d.ts.map +1 -0
  50. package/dist/plugins/sdk/definitions/npm/types.js +3 -0
  51. package/dist/plugins/sdk/definitions/npm/types.js.map +1 -0
  52. package/dist/plugins/sdk/definitions/types.d.ts +46 -0
  53. package/dist/plugins/sdk/definitions/types.d.ts.map +1 -0
  54. package/dist/plugins/sdk/definitions/types.js +3 -0
  55. package/dist/plugins/sdk/definitions/types.js.map +1 -0
  56. package/dist/plugins/sdk/nodes/index.d.ts +5 -0
  57. package/dist/plugins/sdk/nodes/index.d.ts.map +1 -0
  58. package/dist/plugins/sdk/nodes/index.js +12 -0
  59. package/dist/plugins/sdk/nodes/index.js.map +1 -0
  60. package/dist/plugins/sdk/plugin/index.d.ts +3 -0
  61. package/dist/plugins/sdk/plugin/index.d.ts.map +1 -0
  62. package/dist/plugins/sdk/plugin/index.js +8 -0
  63. package/dist/plugins/sdk/plugin/index.js.map +1 -0
  64. package/dist/plugins/sdk/plugin.js +1 -1
  65. package/dist/plugins/sdk/plugin.js.map +1 -1
  66. package/dist/plugins/sdk/plugins/define-node.js +1 -1
  67. package/dist/plugins/sdk/plugins/define-node.js.map +1 -1
  68. package/dist/plugins/sdk/plugins/index.js +1 -1
  69. package/dist/plugins/sdk/plugins/index.js.map +1 -1
  70. package/dist/plugins/sdk/project/index.d.ts +5 -0
  71. package/dist/plugins/sdk/project/index.d.ts.map +1 -0
  72. package/dist/plugins/sdk/project/index.js +10 -0
  73. package/dist/plugins/sdk/project/index.js.map +1 -0
  74. package/dist/plugins/sdk/runner.js +1 -1
  75. package/dist/plugins/sdk/runner.js.map +1 -1
  76. package/package.json +45 -1
@@ -45,6 +45,57 @@ export type PluginNodeUi = z.infer<typeof PluginNodeUi>;
45
45
  * Scopes supported by the hosted marketplace.
46
46
  */
47
47
  export type MarketplaceScope = PluginScope;
48
+ /** Build an upstream SDK client from connection fields, never from public node inputs. */
49
+ export declare const NpmClientBinding: z.ZodObject<{
50
+ module: z.ZodEffects<z.ZodString, string, string>;
51
+ export: z.ZodString;
52
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
53
+ env: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
54
+ }, "strict", z.ZodTypeAny, {
55
+ module: string;
56
+ export: string;
57
+ options?: Record<string, unknown> | undefined;
58
+ env?: Record<string, string> | undefined;
59
+ }, {
60
+ module: string;
61
+ export: string;
62
+ options?: Record<string, unknown> | undefined;
63
+ env?: Record<string, string> | undefined;
64
+ }>;
65
+ export type NpmClientBinding = z.infer<typeof NpmClientBinding>;
66
+ export declare const PluginImplementationSource: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
67
+ kind: z.ZodLiteral<"plugin">;
68
+ }, "strict", z.ZodTypeAny, {
69
+ kind: "plugin";
70
+ }, {
71
+ kind: "plugin";
72
+ }>, z.ZodObject<{
73
+ kind: z.ZodLiteral<"npm">;
74
+ package: z.ZodString;
75
+ version: z.ZodString;
76
+ }, "strict", z.ZodTypeAny, {
77
+ package: string;
78
+ kind: "npm";
79
+ version: string;
80
+ }, {
81
+ package: string;
82
+ kind: "npm";
83
+ version: string;
84
+ }>]>;
85
+ export type PluginImplementationSource = z.infer<typeof PluginImplementationSource>;
86
+ export declare const PluginNpmDependency: z.ZodObject<{
87
+ package: z.ZodString;
88
+ version: z.ZodString;
89
+ spec: z.ZodString;
90
+ }, "strict", z.ZodTypeAny, {
91
+ package: string;
92
+ version: string;
93
+ spec: string;
94
+ }, {
95
+ package: string;
96
+ version: string;
97
+ spec: string;
98
+ }>;
48
99
  /**
49
100
  * One node contributed by a plugin. Unlike a project node (whose signature is
50
101
  * discovered by `octonode scan`), a plugin node declares its contract directly
@@ -67,6 +118,22 @@ export declare const PluginNode: z.ZodObject<{
67
118
  env: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
68
119
  connections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
69
120
  defaults: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
121
+ bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
122
+ module: z.ZodEffects<z.ZodString, string, string>;
123
+ export: z.ZodString;
124
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
125
+ env: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
126
+ }, "strict", z.ZodTypeAny, {
127
+ module: string;
128
+ export: string;
129
+ options?: Record<string, unknown> | undefined;
130
+ env?: Record<string, string> | undefined;
131
+ }, {
132
+ module: string;
133
+ export: string;
134
+ options?: Record<string, unknown> | undefined;
135
+ env?: Record<string, string> | undefined;
136
+ }>>>;
70
137
  ui: z.ZodOptional<z.ZodObject<{
71
138
  apiVersion: z.ZodLiteral<"1">;
72
139
  renderers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -98,11 +165,53 @@ export declare const PluginNode: z.ZodObject<{
98
165
  targets: Partial<Record<"node.inspector.inputs", string>>;
99
166
  }>;
100
167
  }>>;
168
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
169
+ kind: z.ZodLiteral<"plugin">;
170
+ }, "strict", z.ZodTypeAny, {
171
+ kind: "plugin";
172
+ }, {
173
+ kind: "plugin";
174
+ }>, z.ZodObject<{
175
+ kind: z.ZodLiteral<"npm">;
176
+ package: z.ZodString;
177
+ version: z.ZodString;
178
+ }, "strict", z.ZodTypeAny, {
179
+ package: string;
180
+ kind: "npm";
181
+ version: string;
182
+ }, {
183
+ package: string;
184
+ kind: "npm";
185
+ version: string;
186
+ }>]>>;
187
+ /** Explicit mapping to the library export; workflow adapters keep their own argument convention. */
188
+ libraryExport: z.ZodOptional<z.ZodString>;
189
+ /** Compiler-owned original import identity, never a presentation override. */
190
+ implementation: z.ZodOptional<z.ZodObject<{
191
+ module: z.ZodString;
192
+ export: z.ZodString;
193
+ parameters: z.ZodArray<z.ZodString, "many">;
194
+ }, "strict", z.ZodTypeAny, {
195
+ module: string;
196
+ parameters: string[];
197
+ export: string;
198
+ }, {
199
+ module: string;
200
+ parameters: string[];
201
+ export: string;
202
+ }>>;
101
203
  }, "strip", z.ZodTypeAny, {
102
204
  id: string;
103
205
  command: string;
104
206
  symbol?: string | undefined;
105
207
  label?: string | undefined;
208
+ source?: {
209
+ kind: "plugin";
210
+ } | {
211
+ package: string;
212
+ kind: "npm";
213
+ version: string;
214
+ } | undefined;
106
215
  env?: string[] | undefined;
107
216
  inputs?: Record<string, unknown> | undefined;
108
217
  outputs?: Record<string, unknown> | undefined;
@@ -112,6 +221,12 @@ export declare const PluginNode: z.ZodObject<{
112
221
  icon?: "function" | "group" | "workflow" | "code" | "type" | "typescript" | "variable" | "webhook" | "filter" | "replace" | "search" | "split" | "repeat" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "copy-x" | "database" | "dices" | "flag" | "flask" | "git-branch" | "git-merge" | "hook" | "list-filter" | "merge" | "octagon-x" | "package" | "package-x" | "pencil" | "play" | "regex" | "ruler" | "scan-eye" | "scissors" | "server-cog" | "settings" | "sigma" | "terminal" | "test-tube" | "text-cursor-input" | "ticket" | "truck" | "ungroup" | "wand" | "wave" | "x" | undefined;
113
222
  trigger?: boolean | undefined;
114
223
  connections?: string[] | undefined;
224
+ bindings?: Record<string, {
225
+ module: string;
226
+ export: string;
227
+ options?: Record<string, unknown> | undefined;
228
+ env?: Record<string, string> | undefined;
229
+ }> | undefined;
115
230
  ui?: {
116
231
  apiVersion: "1";
117
232
  renderers: Record<string, {
@@ -119,11 +234,24 @@ export declare const PluginNode: z.ZodObject<{
119
234
  targets: Partial<Record<"node.inspector.inputs", string>>;
120
235
  }>;
121
236
  } | undefined;
237
+ libraryExport?: string | undefined;
238
+ implementation?: {
239
+ module: string;
240
+ parameters: string[];
241
+ export: string;
242
+ } | undefined;
122
243
  }, {
123
244
  id: string;
124
245
  command: string;
125
246
  symbol?: string | undefined;
126
247
  label?: string | undefined;
248
+ source?: {
249
+ kind: "plugin";
250
+ } | {
251
+ package: string;
252
+ kind: "npm";
253
+ version: string;
254
+ } | undefined;
127
255
  env?: string[] | undefined;
128
256
  inputs?: Record<string, unknown> | undefined;
129
257
  outputs?: Record<string, unknown> | undefined;
@@ -133,6 +261,12 @@ export declare const PluginNode: z.ZodObject<{
133
261
  icon?: "function" | "group" | "workflow" | "code" | "type" | "typescript" | "variable" | "webhook" | "filter" | "replace" | "search" | "split" | "repeat" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "copy-x" | "database" | "dices" | "flag" | "flask" | "git-branch" | "git-merge" | "hook" | "list-filter" | "merge" | "octagon-x" | "package" | "package-x" | "pencil" | "play" | "regex" | "ruler" | "scan-eye" | "scissors" | "server-cog" | "settings" | "sigma" | "terminal" | "test-tube" | "text-cursor-input" | "ticket" | "truck" | "ungroup" | "wand" | "wave" | "x" | undefined;
134
262
  trigger?: boolean | undefined;
135
263
  connections?: string[] | undefined;
264
+ bindings?: Record<string, {
265
+ module: string;
266
+ export: string;
267
+ options?: Record<string, unknown> | undefined;
268
+ env?: Record<string, string> | undefined;
269
+ }> | undefined;
136
270
  ui?: {
137
271
  apiVersion: "1";
138
272
  renderers: Record<string, {
@@ -140,6 +274,12 @@ export declare const PluginNode: z.ZodObject<{
140
274
  targets: Partial<Record<"node.inspector.inputs", string>>;
141
275
  }>;
142
276
  } | undefined;
277
+ libraryExport?: string | undefined;
278
+ implementation?: {
279
+ module: string;
280
+ parameters: string[];
281
+ export: string;
282
+ } | undefined;
143
283
  }>;
144
284
  export type PluginNode = z.infer<typeof PluginNode>;
145
285
  /**
@@ -168,7 +308,7 @@ export declare const PluginIntegration: z.ZodObject<{
168
308
  package: z.ZodString;
169
309
  version: z.ZodString;
170
310
  spec: z.ZodString;
171
- }, "strip", z.ZodTypeAny, {
311
+ }, "strict", z.ZodTypeAny, {
172
312
  package: string;
173
313
  version: string;
174
314
  spec: string;
@@ -177,24 +317,47 @@ export declare const PluginIntegration: z.ZodObject<{
177
317
  version: string;
178
318
  spec: string;
179
319
  }>>;
320
+ npmDependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
321
+ package: z.ZodString;
322
+ version: z.ZodString;
323
+ spec: z.ZodString;
324
+ }, "strict", z.ZodTypeAny, {
325
+ package: string;
326
+ version: string;
327
+ spec: string;
328
+ }, {
329
+ package: string;
330
+ version: string;
331
+ spec: string;
332
+ }>, "many">>;
180
333
  }, "strip", z.ZodTypeAny, {
181
334
  tags: string[];
335
+ npm?: {
336
+ package: string;
337
+ version: string;
338
+ spec: string;
339
+ } | undefined;
182
340
  auth?: string[] | undefined;
183
341
  category?: string | undefined;
342
+ npmDependencies?: {
343
+ package: string;
344
+ version: string;
345
+ spec: string;
346
+ }[] | undefined;
347
+ }, {
184
348
  npm?: {
185
349
  package: string;
186
350
  version: string;
187
351
  spec: string;
188
352
  } | undefined;
189
- }, {
190
353
  auth?: string[] | undefined;
191
354
  category?: string | undefined;
192
355
  tags?: string[] | undefined;
193
- npm?: {
356
+ npmDependencies?: {
194
357
  package: string;
195
358
  version: string;
196
359
  spec: string;
197
- } | undefined;
360
+ }[] | undefined;
198
361
  }>;
199
362
  export type PluginIntegration = z.infer<typeof PluginIntegration>;
200
363
  /** Credential metadata only. Values are supplied by the installing user at runtime. */
@@ -245,6 +408,42 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
245
408
  name: z.ZodString;
246
409
  version: z.ZodString;
247
410
  description: z.ZodOptional<z.ZodString>;
411
+ /** Implementation authority; absent on legacy artifacts. */
412
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
413
+ kind: z.ZodLiteral<"plugin">;
414
+ }, "strict", z.ZodTypeAny, {
415
+ kind: "plugin";
416
+ }, {
417
+ kind: "plugin";
418
+ }>, z.ZodObject<{
419
+ kind: z.ZodLiteral<"npm">;
420
+ package: z.ZodString;
421
+ version: z.ZodString;
422
+ }, "strict", z.ZodTypeAny, {
423
+ package: string;
424
+ kind: "npm";
425
+ version: string;
426
+ }, {
427
+ package: string;
428
+ kind: "npm";
429
+ version: string;
430
+ }>]>>;
431
+ library: z.ZodOptional<z.ZodObject<{
432
+ format: z.ZodLiteral<1>;
433
+ entry: z.ZodLiteral<"library/index.js">;
434
+ types: z.ZodLiteral<"library/index.d.ts">;
435
+ exports: z.ZodArray<z.ZodString, "many">;
436
+ }, "strict", z.ZodTypeAny, {
437
+ entry: "library/index.js";
438
+ format: 1;
439
+ types: "library/index.d.ts";
440
+ exports: string[];
441
+ }, {
442
+ entry: "library/index.js";
443
+ format: 1;
444
+ types: "library/index.d.ts";
445
+ exports: string[];
446
+ }>>;
248
447
  icon: z.ZodOptional<z.ZodEnum<["arrow-up-down", "binary", "bomb", "boxes", "braces", "calculator", "calendar", "camera", "clock", "code", "copy-x", "database", "dices", "filter", "flag", "flask", "function", "git-branch", "git-merge", "group", "hook", "list-filter", "merge", "octagon-x", "package", "package-x", "pencil", "play", "regex", "repeat", "replace", "ruler", "scan-eye", "scissors", "search", "server-cog", "settings", "sigma", "split", "terminal", "test-tube", "text-cursor-input", "ticket", "truck", "type", "typescript", "ungroup", "variable", "wand", "wave", "webhook", "workflow", "x"]>>;
249
448
  author: z.ZodOptional<z.ZodString>;
250
449
  homepage: z.ZodOptional<z.ZodString>;
@@ -272,7 +471,7 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
272
471
  package: z.ZodString;
273
472
  version: z.ZodString;
274
473
  spec: z.ZodString;
275
- }, "strip", z.ZodTypeAny, {
474
+ }, "strict", z.ZodTypeAny, {
276
475
  package: string;
277
476
  version: string;
278
477
  spec: string;
@@ -281,24 +480,47 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
281
480
  version: string;
282
481
  spec: string;
283
482
  }>>;
483
+ npmDependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
484
+ package: z.ZodString;
485
+ version: z.ZodString;
486
+ spec: z.ZodString;
487
+ }, "strict", z.ZodTypeAny, {
488
+ package: string;
489
+ version: string;
490
+ spec: string;
491
+ }, {
492
+ package: string;
493
+ version: string;
494
+ spec: string;
495
+ }>, "many">>;
284
496
  }, "strip", z.ZodTypeAny, {
285
497
  tags: string[];
498
+ npm?: {
499
+ package: string;
500
+ version: string;
501
+ spec: string;
502
+ } | undefined;
286
503
  auth?: string[] | undefined;
287
504
  category?: string | undefined;
505
+ npmDependencies?: {
506
+ package: string;
507
+ version: string;
508
+ spec: string;
509
+ }[] | undefined;
510
+ }, {
288
511
  npm?: {
289
512
  package: string;
290
513
  version: string;
291
514
  spec: string;
292
515
  } | undefined;
293
- }, {
294
516
  auth?: string[] | undefined;
295
517
  category?: string | undefined;
296
518
  tags?: string[] | undefined;
297
- npm?: {
519
+ npmDependencies?: {
298
520
  package: string;
299
521
  version: string;
300
522
  spec: string;
301
- } | undefined;
523
+ }[] | undefined;
302
524
  }>>;
303
525
  connections: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
304
526
  label: z.ZodString;
@@ -354,6 +576,22 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
354
576
  env: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
355
577
  connections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
356
578
  defaults: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
579
+ bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
580
+ module: z.ZodEffects<z.ZodString, string, string>;
581
+ export: z.ZodString;
582
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
583
+ env: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
584
+ }, "strict", z.ZodTypeAny, {
585
+ module: string;
586
+ export: string;
587
+ options?: Record<string, unknown> | undefined;
588
+ env?: Record<string, string> | undefined;
589
+ }, {
590
+ module: string;
591
+ export: string;
592
+ options?: Record<string, unknown> | undefined;
593
+ env?: Record<string, string> | undefined;
594
+ }>>>;
357
595
  ui: z.ZodOptional<z.ZodObject<{
358
596
  apiVersion: z.ZodLiteral<"1">;
359
597
  renderers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -385,11 +623,53 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
385
623
  targets: Partial<Record<"node.inspector.inputs", string>>;
386
624
  }>;
387
625
  }>>;
626
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
627
+ kind: z.ZodLiteral<"plugin">;
628
+ }, "strict", z.ZodTypeAny, {
629
+ kind: "plugin";
630
+ }, {
631
+ kind: "plugin";
632
+ }>, z.ZodObject<{
633
+ kind: z.ZodLiteral<"npm">;
634
+ package: z.ZodString;
635
+ version: z.ZodString;
636
+ }, "strict", z.ZodTypeAny, {
637
+ package: string;
638
+ kind: "npm";
639
+ version: string;
640
+ }, {
641
+ package: string;
642
+ kind: "npm";
643
+ version: string;
644
+ }>]>>;
645
+ /** Explicit mapping to the library export; workflow adapters keep their own argument convention. */
646
+ libraryExport: z.ZodOptional<z.ZodString>;
647
+ /** Compiler-owned original import identity, never a presentation override. */
648
+ implementation: z.ZodOptional<z.ZodObject<{
649
+ module: z.ZodString;
650
+ export: z.ZodString;
651
+ parameters: z.ZodArray<z.ZodString, "many">;
652
+ }, "strict", z.ZodTypeAny, {
653
+ module: string;
654
+ parameters: string[];
655
+ export: string;
656
+ }, {
657
+ module: string;
658
+ parameters: string[];
659
+ export: string;
660
+ }>>;
388
661
  }, "strip", z.ZodTypeAny, {
389
662
  id: string;
390
663
  command: string;
391
664
  symbol?: string | undefined;
392
665
  label?: string | undefined;
666
+ source?: {
667
+ kind: "plugin";
668
+ } | {
669
+ package: string;
670
+ kind: "npm";
671
+ version: string;
672
+ } | undefined;
393
673
  env?: string[] | undefined;
394
674
  inputs?: Record<string, unknown> | undefined;
395
675
  outputs?: Record<string, unknown> | undefined;
@@ -399,6 +679,12 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
399
679
  icon?: "function" | "group" | "workflow" | "code" | "type" | "typescript" | "variable" | "webhook" | "filter" | "replace" | "search" | "split" | "repeat" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "copy-x" | "database" | "dices" | "flag" | "flask" | "git-branch" | "git-merge" | "hook" | "list-filter" | "merge" | "octagon-x" | "package" | "package-x" | "pencil" | "play" | "regex" | "ruler" | "scan-eye" | "scissors" | "server-cog" | "settings" | "sigma" | "terminal" | "test-tube" | "text-cursor-input" | "ticket" | "truck" | "ungroup" | "wand" | "wave" | "x" | undefined;
400
680
  trigger?: boolean | undefined;
401
681
  connections?: string[] | undefined;
682
+ bindings?: Record<string, {
683
+ module: string;
684
+ export: string;
685
+ options?: Record<string, unknown> | undefined;
686
+ env?: Record<string, string> | undefined;
687
+ }> | undefined;
402
688
  ui?: {
403
689
  apiVersion: "1";
404
690
  renderers: Record<string, {
@@ -406,11 +692,24 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
406
692
  targets: Partial<Record<"node.inspector.inputs", string>>;
407
693
  }>;
408
694
  } | undefined;
695
+ libraryExport?: string | undefined;
696
+ implementation?: {
697
+ module: string;
698
+ parameters: string[];
699
+ export: string;
700
+ } | undefined;
409
701
  }, {
410
702
  id: string;
411
703
  command: string;
412
704
  symbol?: string | undefined;
413
705
  label?: string | undefined;
706
+ source?: {
707
+ kind: "plugin";
708
+ } | {
709
+ package: string;
710
+ kind: "npm";
711
+ version: string;
712
+ } | undefined;
414
713
  env?: string[] | undefined;
415
714
  inputs?: Record<string, unknown> | undefined;
416
715
  outputs?: Record<string, unknown> | undefined;
@@ -420,6 +719,12 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
420
719
  icon?: "function" | "group" | "workflow" | "code" | "type" | "typescript" | "variable" | "webhook" | "filter" | "replace" | "search" | "split" | "repeat" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "copy-x" | "database" | "dices" | "flag" | "flask" | "git-branch" | "git-merge" | "hook" | "list-filter" | "merge" | "octagon-x" | "package" | "package-x" | "pencil" | "play" | "regex" | "ruler" | "scan-eye" | "scissors" | "server-cog" | "settings" | "sigma" | "terminal" | "test-tube" | "text-cursor-input" | "ticket" | "truck" | "ungroup" | "wand" | "wave" | "x" | undefined;
421
720
  trigger?: boolean | undefined;
422
721
  connections?: string[] | undefined;
722
+ bindings?: Record<string, {
723
+ module: string;
724
+ export: string;
725
+ options?: Record<string, unknown> | undefined;
726
+ env?: Record<string, string> | undefined;
727
+ }> | undefined;
423
728
  ui?: {
424
729
  apiVersion: "1";
425
730
  renderers: Record<string, {
@@ -427,6 +732,12 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
427
732
  targets: Partial<Record<"node.inspector.inputs", string>>;
428
733
  }>;
429
734
  } | undefined;
735
+ libraryExport?: string | undefined;
736
+ implementation?: {
737
+ module: string;
738
+ parameters: string[];
739
+ export: string;
740
+ } | undefined;
430
741
  }>, "many">>;
431
742
  }, "strip", z.ZodTypeAny, {
432
743
  nodes: {
@@ -434,6 +745,13 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
434
745
  command: string;
435
746
  symbol?: string | undefined;
436
747
  label?: string | undefined;
748
+ source?: {
749
+ kind: "plugin";
750
+ } | {
751
+ package: string;
752
+ kind: "npm";
753
+ version: string;
754
+ } | undefined;
437
755
  env?: string[] | undefined;
438
756
  inputs?: Record<string, unknown> | undefined;
439
757
  outputs?: Record<string, unknown> | undefined;
@@ -443,6 +761,12 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
443
761
  icon?: "function" | "group" | "workflow" | "code" | "type" | "typescript" | "variable" | "webhook" | "filter" | "replace" | "search" | "split" | "repeat" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "copy-x" | "database" | "dices" | "flag" | "flask" | "git-branch" | "git-merge" | "hook" | "list-filter" | "merge" | "octagon-x" | "package" | "package-x" | "pencil" | "play" | "regex" | "ruler" | "scan-eye" | "scissors" | "server-cog" | "settings" | "sigma" | "terminal" | "test-tube" | "text-cursor-input" | "ticket" | "truck" | "ungroup" | "wand" | "wave" | "x" | undefined;
444
762
  trigger?: boolean | undefined;
445
763
  connections?: string[] | undefined;
764
+ bindings?: Record<string, {
765
+ module: string;
766
+ export: string;
767
+ options?: Record<string, unknown> | undefined;
768
+ env?: Record<string, string> | undefined;
769
+ }> | undefined;
446
770
  ui?: {
447
771
  apiVersion: "1";
448
772
  renderers: Record<string, {
@@ -450,6 +774,12 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
450
774
  targets: Partial<Record<"node.inspector.inputs", string>>;
451
775
  }>;
452
776
  } | undefined;
777
+ libraryExport?: string | undefined;
778
+ implementation?: {
779
+ module: string;
780
+ parameters: string[];
781
+ export: string;
782
+ } | undefined;
453
783
  }[];
454
784
  name: string;
455
785
  id: string;
@@ -460,15 +790,27 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
460
790
  resource: "project_data" | "secrets" | "network";
461
791
  access: "read" | "write" | "outbound";
462
792
  }[];
793
+ source?: {
794
+ kind: "plugin";
795
+ } | {
796
+ package: string;
797
+ kind: "npm";
798
+ version: string;
799
+ } | undefined;
463
800
  integration?: {
464
801
  tags: string[];
465
- auth?: string[] | undefined;
466
- category?: string | undefined;
467
802
  npm?: {
468
803
  package: string;
469
804
  version: string;
470
805
  spec: string;
471
806
  } | undefined;
807
+ auth?: string[] | undefined;
808
+ category?: string | undefined;
809
+ npmDependencies?: {
810
+ package: string;
811
+ version: string;
812
+ spec: string;
813
+ }[] | undefined;
472
814
  } | undefined;
473
815
  description?: string | undefined;
474
816
  icon?: "function" | "group" | "workflow" | "code" | "type" | "typescript" | "variable" | "webhook" | "filter" | "replace" | "search" | "split" | "repeat" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "copy-x" | "database" | "dices" | "flag" | "flask" | "git-branch" | "git-merge" | "hook" | "list-filter" | "merge" | "octagon-x" | "package" | "package-x" | "pencil" | "play" | "regex" | "ruler" | "scan-eye" | "scissors" | "server-cog" | "settings" | "sigma" | "terminal" | "test-tube" | "text-cursor-input" | "ticket" | "truck" | "ungroup" | "wand" | "wave" | "x" | undefined;
@@ -482,6 +824,12 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
482
824
  }>;
483
825
  description?: string | undefined;
484
826
  }> | undefined;
827
+ library?: {
828
+ entry: "library/index.js";
829
+ format: 1;
830
+ types: "library/index.d.ts";
831
+ exports: string[];
832
+ } | undefined;
485
833
  author?: string | undefined;
486
834
  homepage?: string | undefined;
487
835
  license?: string | undefined;
@@ -494,6 +842,13 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
494
842
  command: string;
495
843
  symbol?: string | undefined;
496
844
  label?: string | undefined;
845
+ source?: {
846
+ kind: "plugin";
847
+ } | {
848
+ package: string;
849
+ kind: "npm";
850
+ version: string;
851
+ } | undefined;
497
852
  env?: string[] | undefined;
498
853
  inputs?: Record<string, unknown> | undefined;
499
854
  outputs?: Record<string, unknown> | undefined;
@@ -503,6 +858,12 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
503
858
  icon?: "function" | "group" | "workflow" | "code" | "type" | "typescript" | "variable" | "webhook" | "filter" | "replace" | "search" | "split" | "repeat" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "copy-x" | "database" | "dices" | "flag" | "flask" | "git-branch" | "git-merge" | "hook" | "list-filter" | "merge" | "octagon-x" | "package" | "package-x" | "pencil" | "play" | "regex" | "ruler" | "scan-eye" | "scissors" | "server-cog" | "settings" | "sigma" | "terminal" | "test-tube" | "text-cursor-input" | "ticket" | "truck" | "ungroup" | "wand" | "wave" | "x" | undefined;
504
859
  trigger?: boolean | undefined;
505
860
  connections?: string[] | undefined;
861
+ bindings?: Record<string, {
862
+ module: string;
863
+ export: string;
864
+ options?: Record<string, unknown> | undefined;
865
+ env?: Record<string, string> | undefined;
866
+ }> | undefined;
506
867
  ui?: {
507
868
  apiVersion: "1";
508
869
  renderers: Record<string, {
@@ -510,16 +871,34 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
510
871
  targets: Partial<Record<"node.inspector.inputs", string>>;
511
872
  }>;
512
873
  } | undefined;
874
+ libraryExport?: string | undefined;
875
+ implementation?: {
876
+ module: string;
877
+ parameters: string[];
878
+ export: string;
879
+ } | undefined;
513
880
  }[] | undefined;
881
+ source?: {
882
+ kind: "plugin";
883
+ } | {
884
+ package: string;
885
+ kind: "npm";
886
+ version: string;
887
+ } | undefined;
514
888
  integration?: {
889
+ npm?: {
890
+ package: string;
891
+ version: string;
892
+ spec: string;
893
+ } | undefined;
515
894
  auth?: string[] | undefined;
516
895
  category?: string | undefined;
517
896
  tags?: string[] | undefined;
518
- npm?: {
897
+ npmDependencies?: {
519
898
  package: string;
520
899
  version: string;
521
900
  spec: string;
522
- } | undefined;
901
+ }[] | undefined;
523
902
  } | undefined;
524
903
  scope?: ("user" | "group" | "org" | "public")[] | undefined;
525
904
  description?: string | undefined;
@@ -535,6 +914,12 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
535
914
  description?: string | undefined;
536
915
  }> | undefined;
537
916
  schemaVersion?: string | undefined;
917
+ library?: {
918
+ entry: "library/index.js";
919
+ format: 1;
920
+ types: "library/index.d.ts";
921
+ exports: string[];
922
+ } | undefined;
538
923
  author?: string | undefined;
539
924
  homepage?: string | undefined;
540
925
  license?: string | undefined;
@@ -548,6 +933,13 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
548
933
  command: string;
549
934
  symbol?: string | undefined;
550
935
  label?: string | undefined;
936
+ source?: {
937
+ kind: "plugin";
938
+ } | {
939
+ package: string;
940
+ kind: "npm";
941
+ version: string;
942
+ } | undefined;
551
943
  env?: string[] | undefined;
552
944
  inputs?: Record<string, unknown> | undefined;
553
945
  outputs?: Record<string, unknown> | undefined;
@@ -557,6 +949,12 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
557
949
  icon?: "function" | "group" | "workflow" | "code" | "type" | "typescript" | "variable" | "webhook" | "filter" | "replace" | "search" | "split" | "repeat" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "copy-x" | "database" | "dices" | "flag" | "flask" | "git-branch" | "git-merge" | "hook" | "list-filter" | "merge" | "octagon-x" | "package" | "package-x" | "pencil" | "play" | "regex" | "ruler" | "scan-eye" | "scissors" | "server-cog" | "settings" | "sigma" | "terminal" | "test-tube" | "text-cursor-input" | "ticket" | "truck" | "ungroup" | "wand" | "wave" | "x" | undefined;
558
950
  trigger?: boolean | undefined;
559
951
  connections?: string[] | undefined;
952
+ bindings?: Record<string, {
953
+ module: string;
954
+ export: string;
955
+ options?: Record<string, unknown> | undefined;
956
+ env?: Record<string, string> | undefined;
957
+ }> | undefined;
560
958
  ui?: {
561
959
  apiVersion: "1";
562
960
  renderers: Record<string, {
@@ -564,6 +962,12 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
564
962
  targets: Partial<Record<"node.inspector.inputs", string>>;
565
963
  }>;
566
964
  } | undefined;
965
+ libraryExport?: string | undefined;
966
+ implementation?: {
967
+ module: string;
968
+ parameters: string[];
969
+ export: string;
970
+ } | undefined;
567
971
  }[];
568
972
  name: string;
569
973
  id: string;
@@ -574,15 +978,27 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
574
978
  resource: "project_data" | "secrets" | "network";
575
979
  access: "read" | "write" | "outbound";
576
980
  }[];
981
+ source?: {
982
+ kind: "plugin";
983
+ } | {
984
+ package: string;
985
+ kind: "npm";
986
+ version: string;
987
+ } | undefined;
577
988
  integration?: {
578
989
  tags: string[];
579
- auth?: string[] | undefined;
580
- category?: string | undefined;
581
990
  npm?: {
582
991
  package: string;
583
992
  version: string;
584
993
  spec: string;
585
994
  } | undefined;
995
+ auth?: string[] | undefined;
996
+ category?: string | undefined;
997
+ npmDependencies?: {
998
+ package: string;
999
+ version: string;
1000
+ spec: string;
1001
+ }[] | undefined;
586
1002
  } | undefined;
587
1003
  description?: string | undefined;
588
1004
  icon?: "function" | "group" | "workflow" | "code" | "type" | "typescript" | "variable" | "webhook" | "filter" | "replace" | "search" | "split" | "repeat" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "copy-x" | "database" | "dices" | "flag" | "flask" | "git-branch" | "git-merge" | "hook" | "list-filter" | "merge" | "octagon-x" | "package" | "package-x" | "pencil" | "play" | "regex" | "ruler" | "scan-eye" | "scissors" | "server-cog" | "settings" | "sigma" | "terminal" | "test-tube" | "text-cursor-input" | "ticket" | "truck" | "ungroup" | "wand" | "wave" | "x" | undefined;
@@ -596,6 +1012,12 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
596
1012
  }>;
597
1013
  description?: string | undefined;
598
1014
  }> | undefined;
1015
+ library?: {
1016
+ entry: "library/index.js";
1017
+ format: 1;
1018
+ types: "library/index.d.ts";
1019
+ exports: string[];
1020
+ } | undefined;
599
1021
  author?: string | undefined;
600
1022
  homepage?: string | undefined;
601
1023
  license?: string | undefined;
@@ -608,6 +1030,13 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
608
1030
  command: string;
609
1031
  symbol?: string | undefined;
610
1032
  label?: string | undefined;
1033
+ source?: {
1034
+ kind: "plugin";
1035
+ } | {
1036
+ package: string;
1037
+ kind: "npm";
1038
+ version: string;
1039
+ } | undefined;
611
1040
  env?: string[] | undefined;
612
1041
  inputs?: Record<string, unknown> | undefined;
613
1042
  outputs?: Record<string, unknown> | undefined;
@@ -617,6 +1046,12 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
617
1046
  icon?: "function" | "group" | "workflow" | "code" | "type" | "typescript" | "variable" | "webhook" | "filter" | "replace" | "search" | "split" | "repeat" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "copy-x" | "database" | "dices" | "flag" | "flask" | "git-branch" | "git-merge" | "hook" | "list-filter" | "merge" | "octagon-x" | "package" | "package-x" | "pencil" | "play" | "regex" | "ruler" | "scan-eye" | "scissors" | "server-cog" | "settings" | "sigma" | "terminal" | "test-tube" | "text-cursor-input" | "ticket" | "truck" | "ungroup" | "wand" | "wave" | "x" | undefined;
618
1047
  trigger?: boolean | undefined;
619
1048
  connections?: string[] | undefined;
1049
+ bindings?: Record<string, {
1050
+ module: string;
1051
+ export: string;
1052
+ options?: Record<string, unknown> | undefined;
1053
+ env?: Record<string, string> | undefined;
1054
+ }> | undefined;
620
1055
  ui?: {
621
1056
  apiVersion: "1";
622
1057
  renderers: Record<string, {
@@ -624,16 +1059,34 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
624
1059
  targets: Partial<Record<"node.inspector.inputs", string>>;
625
1060
  }>;
626
1061
  } | undefined;
1062
+ libraryExport?: string | undefined;
1063
+ implementation?: {
1064
+ module: string;
1065
+ parameters: string[];
1066
+ export: string;
1067
+ } | undefined;
627
1068
  }[] | undefined;
1069
+ source?: {
1070
+ kind: "plugin";
1071
+ } | {
1072
+ package: string;
1073
+ kind: "npm";
1074
+ version: string;
1075
+ } | undefined;
628
1076
  integration?: {
1077
+ npm?: {
1078
+ package: string;
1079
+ version: string;
1080
+ spec: string;
1081
+ } | undefined;
629
1082
  auth?: string[] | undefined;
630
1083
  category?: string | undefined;
631
1084
  tags?: string[] | undefined;
632
- npm?: {
1085
+ npmDependencies?: {
633
1086
  package: string;
634
1087
  version: string;
635
1088
  spec: string;
636
- } | undefined;
1089
+ }[] | undefined;
637
1090
  } | undefined;
638
1091
  scope?: ("user" | "group" | "org" | "public")[] | undefined;
639
1092
  description?: string | undefined;
@@ -649,6 +1102,12 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
649
1102
  description?: string | undefined;
650
1103
  }> | undefined;
651
1104
  schemaVersion?: string | undefined;
1105
+ library?: {
1106
+ entry: "library/index.js";
1107
+ format: 1;
1108
+ types: "library/index.d.ts";
1109
+ exports: string[];
1110
+ } | undefined;
652
1111
  author?: string | undefined;
653
1112
  homepage?: string | undefined;
654
1113
  license?: string | undefined;