@octonodes/sdk 0.2.16 → 0.2.26

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 (134) hide show
  1. package/README.md +36 -0
  2. package/dist/data-tables/table.d.ts +90 -0
  3. package/dist/data-tables/table.d.ts.map +1 -0
  4. package/dist/data-tables/table.js +44 -0
  5. package/dist/data-tables/table.js.map +1 -0
  6. package/dist/data-tables/types.d.ts +24 -0
  7. package/dist/data-tables/types.d.ts.map +1 -0
  8. package/dist/data-tables/types.js +3 -0
  9. package/dist/data-tables/types.js.map +1 -0
  10. package/dist/gen/types.gen.d.ts +120 -0
  11. package/dist/gen/types.gen.d.ts.map +1 -1
  12. package/dist/index.d.ts +1 -0
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/octonode-client.d.ts +87 -0
  15. package/dist/octonode-client.d.ts.map +1 -1
  16. package/dist/octonode-client.js +4 -0
  17. package/dist/octonode-client.js.map +1 -1
  18. package/dist/plugins/schema/app/contributions.d.ts +355 -0
  19. package/dist/plugins/schema/app/contributions.d.ts.map +1 -0
  20. package/dist/plugins/schema/app/contributions.js +179 -0
  21. package/dist/plugins/schema/app/contributions.js.map +1 -0
  22. package/dist/plugins/schema/app-contributions.d.ts +355 -0
  23. package/dist/plugins/schema/app-contributions.d.ts.map +1 -0
  24. package/dist/plugins/schema/app-contributions.js +179 -0
  25. package/dist/plugins/schema/app-contributions.js.map +1 -0
  26. package/dist/plugins/schema/app.d.ts +506 -1
  27. package/dist/plugins/schema/app.d.ts.map +1 -1
  28. package/dist/plugins/schema/app.js +59 -5
  29. package/dist/plugins/schema/app.js.map +1 -1
  30. package/dist/plugins/schema/constants.d.ts +2 -1
  31. package/dist/plugins/schema/constants.d.ts.map +1 -1
  32. package/dist/plugins/schema/constants.js +3 -1
  33. package/dist/plugins/schema/constants.js.map +1 -1
  34. package/dist/plugins/schema/icons.d.ts +4 -0
  35. package/dist/plugins/schema/icons.d.ts.map +1 -1
  36. package/dist/plugins/schema/icons.js +20 -1
  37. package/dist/plugins/schema/icons.js.map +1 -1
  38. package/dist/plugins/schema/ipc/envelope.d.ts +923 -0
  39. package/dist/plugins/schema/ipc/envelope.d.ts.map +1 -0
  40. package/dist/plugins/schema/ipc/envelope.js +210 -0
  41. package/dist/plugins/schema/ipc/envelope.js.map +1 -0
  42. package/dist/plugins/schema/ipc-envelope.d.ts +55 -55
  43. package/dist/plugins/schema/ipc-envelope.js +1 -1
  44. package/dist/plugins/schema/ipc-envelope.js.map +1 -1
  45. package/dist/plugins/schema/personal/layout.d.ts +52 -0
  46. package/dist/plugins/schema/personal/layout.d.ts.map +1 -0
  47. package/dist/plugins/schema/personal/layout.js +26 -0
  48. package/dist/plugins/schema/personal/layout.js.map +1 -0
  49. package/dist/plugins/schema/personal-layout.d.ts +52 -0
  50. package/dist/plugins/schema/personal-layout.d.ts.map +1 -0
  51. package/dist/plugins/schema/personal-layout.js +26 -0
  52. package/dist/plugins/schema/personal-layout.js.map +1 -0
  53. package/dist/plugins/schema/plugin/execution.d.ts +843 -44
  54. package/dist/plugins/schema/plugin/execution.d.ts.map +1 -1
  55. package/dist/plugins/schema/plugin/execution.js +2 -2
  56. package/dist/plugins/schema/plugin/execution.js.map +1 -1
  57. package/dist/plugins/schema/plugin/plugin.d.ts +802 -39
  58. package/dist/plugins/schema/plugin/plugin.d.ts.map +1 -1
  59. package/dist/plugins/schema/plugin/plugin.js +82 -6
  60. package/dist/plugins/schema/plugin/plugin.js.map +1 -1
  61. package/dist/plugins/schema/plugin/publishing.d.ts +121 -68
  62. package/dist/plugins/schema/plugin/publishing.d.ts.map +1 -1
  63. package/dist/plugins/schema/plugin/publishing.js +2 -0
  64. package/dist/plugins/schema/plugin/publishing.js.map +1 -1
  65. package/dist/plugins/schema/plugin-publishing.d.ts +68 -68
  66. package/dist/plugins/schema/plugin-sdk/index.d.ts +2 -1
  67. package/dist/plugins/schema/plugin-sdk/index.d.ts.map +1 -1
  68. package/dist/plugins/schema/plugin-sdk/index.js +2 -1
  69. package/dist/plugins/schema/plugin-sdk/index.js.map +1 -1
  70. package/dist/plugins/schema/plugin.d.ts +36 -36
  71. package/dist/plugins/sdk/constants.d.ts +2 -0
  72. package/dist/plugins/sdk/constants.d.ts.map +1 -0
  73. package/dist/plugins/sdk/constants.js +6 -0
  74. package/dist/plugins/sdk/constants.js.map +1 -0
  75. package/dist/plugins/sdk/define/node.d.ts +15 -0
  76. package/dist/plugins/sdk/define/node.d.ts.map +1 -0
  77. package/dist/plugins/sdk/define/node.js +58 -0
  78. package/dist/plugins/sdk/define/node.js.map +1 -0
  79. package/dist/plugins/sdk/define-node.d.ts +5 -0
  80. package/dist/plugins/sdk/define-node.d.ts.map +1 -1
  81. package/dist/plugins/sdk/define-node.js +1 -1
  82. package/dist/plugins/sdk/define-node.js.map +1 -1
  83. package/dist/plugins/sdk/definitions/clients/output.d.ts +3 -0
  84. package/dist/plugins/sdk/definitions/clients/output.d.ts.map +1 -0
  85. package/dist/plugins/sdk/definitions/clients/output.js +47 -0
  86. package/dist/plugins/sdk/definitions/clients/output.js.map +1 -0
  87. package/dist/plugins/sdk/definitions/compiler/catalog.d.ts.map +1 -1
  88. package/dist/plugins/sdk/definitions/compiler/catalog.js +9 -0
  89. package/dist/plugins/sdk/definitions/compiler/catalog.js.map +1 -1
  90. package/dist/plugins/sdk/definitions/compiler/index.d.ts.map +1 -1
  91. package/dist/plugins/sdk/definitions/compiler/index.js +59 -2
  92. package/dist/plugins/sdk/definitions/compiler/index.js.map +1 -1
  93. package/dist/plugins/sdk/definitions/npm/emit/js.d.ts.map +1 -1
  94. package/dist/plugins/sdk/definitions/npm/emit/js.js +7 -3
  95. package/dist/plugins/sdk/definitions/npm/emit/js.js.map +1 -1
  96. package/dist/plugins/sdk/definitions/npm/types.d.ts +35 -2
  97. package/dist/plugins/sdk/definitions/npm/types.d.ts.map +1 -1
  98. package/dist/plugins/sdk/definitions/types.d.ts +10 -3
  99. package/dist/plugins/sdk/definitions/types.d.ts.map +1 -1
  100. package/dist/plugins/sdk/json/schema.d.ts +13 -0
  101. package/dist/plugins/sdk/json/schema.d.ts.map +1 -0
  102. package/dist/plugins/sdk/json/schema.js +102 -0
  103. package/dist/plugins/sdk/json/schema.js.map +1 -0
  104. package/dist/plugins/sdk/json-schema.js +13 -0
  105. package/dist/plugins/sdk/json-schema.js.map +1 -1
  106. package/dist/plugins/sdk/nodes/index.d.ts +3 -1
  107. package/dist/plugins/sdk/nodes/index.d.ts.map +1 -1
  108. package/dist/plugins/sdk/nodes/index.js +5 -0
  109. package/dist/plugins/sdk/nodes/index.js.map +1 -1
  110. package/dist/plugins/sdk/plugin/index.d.ts +1 -0
  111. package/dist/plugins/sdk/plugin/index.d.ts.map +1 -1
  112. package/dist/plugins/sdk/plugin.d.ts +1 -1
  113. package/dist/plugins/sdk/plugin.d.ts.map +1 -1
  114. package/dist/plugins/sdk/plugin.js +2 -2
  115. package/dist/plugins/sdk/plugin.js.map +1 -1
  116. package/dist/plugins/sdk/plugins/define/node.d.ts +29 -0
  117. package/dist/plugins/sdk/plugins/define/node.d.ts.map +1 -0
  118. package/dist/plugins/sdk/plugins/define/node.js +16 -0
  119. package/dist/plugins/sdk/plugins/define/node.js.map +1 -0
  120. package/dist/plugins/sdk/plugins/index.d.ts +5 -4
  121. package/dist/plugins/sdk/plugins/index.d.ts.map +1 -1
  122. package/dist/plugins/sdk/plugins/index.js +21 -15
  123. package/dist/plugins/sdk/plugins/index.js.map +1 -1
  124. package/dist/plugins/sdk/plugins/types.d.ts +1 -1
  125. package/dist/plugins/sdk/plugins/types.d.ts.map +1 -1
  126. package/dist/plugins/sdk/runner.d.ts +3 -7
  127. package/dist/plugins/sdk/runner.d.ts.map +1 -1
  128. package/dist/plugins/sdk/runner.js +61 -18
  129. package/dist/plugins/sdk/runner.js.map +1 -1
  130. package/dist/plugins/sdk/types.d.ts +115 -0
  131. package/dist/plugins/sdk/types.d.ts.map +1 -0
  132. package/dist/plugins/sdk/types.js +3 -0
  133. package/dist/plugins/sdk/types.js.map +1 -0
  134. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/schema/plugin-sdk/index.ts"],"names":[],"mappings":"AACA,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,cAAc,CAAC;AAEtB,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/schema/plugin-sdk/index.ts"],"names":[],"mappings":"AACA,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,cAAc,CAAC;AAEtB,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
@@ -18,7 +18,8 @@ exports.PLUGIN_PUBLISH_MAX_BYTES = exports.PLUGIN_CONFIG_MAX_BYTES = exports.PLU
18
18
  // Generated from packages/schema/src/plugin-sdk/index.ts. Do not edit; run the Octonode SDK sync.
19
19
  __exportStar(require("../plugin/plugin"), exports);
20
20
  __exportStar(require("../app"), exports);
21
- __exportStar(require("../ipc-envelope"), exports);
21
+ __exportStar(require("../app/contributions"), exports);
22
+ __exportStar(require("../ipc/envelope"), exports);
22
23
  __exportStar(require("../icons"), exports);
23
24
  var execution_1 = require("../plugin/execution");
24
25
  Object.defineProperty(exports, "PreparedPluginRuntime", { enumerable: true, get: function () { return execution_1.PreparedPluginRuntime; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/schema/plugin-sdk/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kGAAkG;AAClG,mDAAiC;AACjC,yCAAuB;AACvB,kDAAgC;AAChC,2CAAyB;AACzB,iDAA4D;AAAnD,kHAAA,qBAAqB,OAAA;AAC9B,0CAOsB;AANpB,iHAAA,oBAAoB,OAAA;AACpB,kHAAA,qBAAqB,OAAA;AACrB,iHAAA,oBAAoB,OAAA;AACpB,oHAAA,uBAAuB,OAAA;AACvB,oHAAA,uBAAuB,OAAA;AACvB,qHAAA,wBAAwB,OAAA;AAG1B,uDAAqC;AACrC,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/schema/plugin-sdk/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kGAAkG;AAClG,mDAAiC;AACjC,yCAAuB;AACvB,uDAAqC;AACrC,kDAAgC;AAChC,2CAAyB;AACzB,iDAA4D;AAAnD,kHAAA,qBAAqB,OAAA;AAC9B,0CAOsB;AANpB,iHAAA,oBAAoB,OAAA;AACpB,kHAAA,qBAAqB,OAAA;AACrB,iHAAA,oBAAoB,OAAA;AACpB,oHAAA,uBAAuB,OAAA;AACvB,oHAAA,uBAAuB,OAAA;AACvB,qHAAA,wBAAwB,OAAA;AAG1B,uDAAqC;AACrC,oDAAkC"}
@@ -75,12 +75,12 @@ export declare const PluginImplementationSource: z.ZodDiscriminatedUnion<"kind",
75
75
  version: z.ZodString;
76
76
  }, "strict", z.ZodTypeAny, {
77
77
  package: string;
78
- kind: "npm";
79
78
  version: string;
79
+ kind: "npm";
80
80
  }, {
81
81
  package: string;
82
- kind: "npm";
83
82
  version: string;
83
+ kind: "npm";
84
84
  }>]>;
85
85
  export type PluginImplementationSource = z.infer<typeof PluginImplementationSource>;
86
86
  export declare const PluginNpmDependency: z.ZodObject<{
@@ -177,12 +177,12 @@ export declare const PluginNode: z.ZodObject<{
177
177
  version: z.ZodString;
178
178
  }, "strict", z.ZodTypeAny, {
179
179
  package: string;
180
- kind: "npm";
181
180
  version: string;
181
+ kind: "npm";
182
182
  }, {
183
183
  package: string;
184
- kind: "npm";
185
184
  version: string;
185
+ kind: "npm";
186
186
  }>]>>;
187
187
  /** Explicit mapping to the library export; workflow adapters keep their own argument convention. */
188
188
  libraryExport: z.ZodOptional<z.ZodString>;
@@ -209,8 +209,8 @@ export declare const PluginNode: z.ZodObject<{
209
209
  kind: "plugin";
210
210
  } | {
211
211
  package: string;
212
- kind: "npm";
213
212
  version: string;
213
+ kind: "npm";
214
214
  } | undefined;
215
215
  env?: string[] | undefined;
216
216
  inputs?: Record<string, unknown> | undefined;
@@ -218,7 +218,7 @@ export declare const PluginNode: z.ZodObject<{
218
218
  description?: string | undefined;
219
219
  defaults?: Record<string, unknown> | undefined;
220
220
  language?: string | undefined;
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;
221
+ icon?: "function" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "code" | "copy-x" | "database" | "dices" | "filter" | "flag" | "flask" | "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" | undefined;
222
222
  trigger?: boolean | undefined;
223
223
  connections?: string[] | undefined;
224
224
  bindings?: Record<string, {
@@ -249,8 +249,8 @@ export declare const PluginNode: z.ZodObject<{
249
249
  kind: "plugin";
250
250
  } | {
251
251
  package: string;
252
- kind: "npm";
253
252
  version: string;
253
+ kind: "npm";
254
254
  } | undefined;
255
255
  env?: string[] | undefined;
256
256
  inputs?: Record<string, unknown> | undefined;
@@ -258,7 +258,7 @@ export declare const PluginNode: z.ZodObject<{
258
258
  description?: string | undefined;
259
259
  defaults?: Record<string, unknown> | undefined;
260
260
  language?: string | undefined;
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;
261
+ icon?: "function" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "code" | "copy-x" | "database" | "dices" | "filter" | "flag" | "flask" | "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" | undefined;
262
262
  trigger?: boolean | undefined;
263
263
  connections?: string[] | undefined;
264
264
  bindings?: Record<string, {
@@ -421,12 +421,12 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
421
421
  version: z.ZodString;
422
422
  }, "strict", z.ZodTypeAny, {
423
423
  package: string;
424
- kind: "npm";
425
424
  version: string;
425
+ kind: "npm";
426
426
  }, {
427
427
  package: string;
428
- kind: "npm";
429
428
  version: string;
429
+ kind: "npm";
430
430
  }>]>>;
431
431
  library: z.ZodOptional<z.ZodObject<{
432
432
  format: z.ZodLiteral<1>;
@@ -637,12 +637,12 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
637
637
  version: z.ZodString;
638
638
  }, "strict", z.ZodTypeAny, {
639
639
  package: string;
640
- kind: "npm";
641
640
  version: string;
641
+ kind: "npm";
642
642
  }, {
643
643
  package: string;
644
- kind: "npm";
645
644
  version: string;
645
+ kind: "npm";
646
646
  }>]>>;
647
647
  /** Explicit mapping to the library export; workflow adapters keep their own argument convention. */
648
648
  libraryExport: z.ZodOptional<z.ZodString>;
@@ -669,8 +669,8 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
669
669
  kind: "plugin";
670
670
  } | {
671
671
  package: string;
672
- kind: "npm";
673
672
  version: string;
673
+ kind: "npm";
674
674
  } | undefined;
675
675
  env?: string[] | undefined;
676
676
  inputs?: Record<string, unknown> | undefined;
@@ -678,7 +678,7 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
678
678
  description?: string | undefined;
679
679
  defaults?: Record<string, unknown> | undefined;
680
680
  language?: string | undefined;
681
- 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;
681
+ icon?: "function" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "code" | "copy-x" | "database" | "dices" | "filter" | "flag" | "flask" | "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" | undefined;
682
682
  trigger?: boolean | undefined;
683
683
  connections?: string[] | undefined;
684
684
  bindings?: Record<string, {
@@ -709,8 +709,8 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
709
709
  kind: "plugin";
710
710
  } | {
711
711
  package: string;
712
- kind: "npm";
713
712
  version: string;
713
+ kind: "npm";
714
714
  } | undefined;
715
715
  env?: string[] | undefined;
716
716
  inputs?: Record<string, unknown> | undefined;
@@ -718,7 +718,7 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
718
718
  description?: string | undefined;
719
719
  defaults?: Record<string, unknown> | undefined;
720
720
  language?: string | undefined;
721
- 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;
721
+ icon?: "function" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "code" | "copy-x" | "database" | "dices" | "filter" | "flag" | "flask" | "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" | undefined;
722
722
  trigger?: boolean | undefined;
723
723
  connections?: string[] | undefined;
724
724
  bindings?: Record<string, {
@@ -752,8 +752,8 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
752
752
  kind: "plugin";
753
753
  } | {
754
754
  package: string;
755
- kind: "npm";
756
755
  version: string;
756
+ kind: "npm";
757
757
  } | undefined;
758
758
  env?: string[] | undefined;
759
759
  inputs?: Record<string, unknown> | undefined;
@@ -761,7 +761,7 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
761
761
  description?: string | undefined;
762
762
  defaults?: Record<string, unknown> | undefined;
763
763
  language?: string | undefined;
764
- 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;
764
+ icon?: "function" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "code" | "copy-x" | "database" | "dices" | "filter" | "flag" | "flask" | "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" | undefined;
765
765
  trigger?: boolean | undefined;
766
766
  connections?: string[] | undefined;
767
767
  bindings?: Record<string, {
@@ -784,9 +784,9 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
784
784
  export: string;
785
785
  } | undefined;
786
786
  }[];
787
+ version: string;
787
788
  scope: ("user" | "org" | "public" | "group")[];
788
789
  id: string;
789
- version: string;
790
790
  schemaVersion: string;
791
791
  permissions: {
792
792
  resource: "project_data" | "secrets" | "network";
@@ -797,8 +797,8 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
797
797
  kind: "plugin";
798
798
  } | {
799
799
  package: string;
800
- kind: "npm";
801
800
  version: string;
801
+ kind: "npm";
802
802
  } | undefined;
803
803
  integration?: {
804
804
  tags: string[];
@@ -816,7 +816,7 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
816
816
  }[] | undefined;
817
817
  } | undefined;
818
818
  description?: string | undefined;
819
- 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;
819
+ icon?: "function" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "code" | "copy-x" | "database" | "dices" | "filter" | "flag" | "flask" | "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" | undefined;
820
820
  connections?: Record<string, {
821
821
  label: string;
822
822
  fields: Record<string, {
@@ -839,8 +839,8 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
839
839
  license?: string | undefined;
840
840
  }, {
841
841
  name: string;
842
- id: string;
843
842
  version: string;
843
+ id: string;
844
844
  nodes?: {
845
845
  id: string;
846
846
  command: string;
@@ -850,8 +850,8 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
850
850
  kind: "plugin";
851
851
  } | {
852
852
  package: string;
853
- kind: "npm";
854
853
  version: string;
854
+ kind: "npm";
855
855
  } | undefined;
856
856
  env?: string[] | undefined;
857
857
  inputs?: Record<string, unknown> | undefined;
@@ -859,7 +859,7 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
859
859
  description?: string | undefined;
860
860
  defaults?: Record<string, unknown> | undefined;
861
861
  language?: string | undefined;
862
- 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;
862
+ icon?: "function" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "code" | "copy-x" | "database" | "dices" | "filter" | "flag" | "flask" | "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" | undefined;
863
863
  trigger?: boolean | undefined;
864
864
  connections?: string[] | undefined;
865
865
  bindings?: Record<string, {
@@ -887,8 +887,8 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
887
887
  kind: "plugin";
888
888
  } | {
889
889
  package: string;
890
- kind: "npm";
891
890
  version: string;
891
+ kind: "npm";
892
892
  } | undefined;
893
893
  integration?: {
894
894
  npm?: {
@@ -907,7 +907,7 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
907
907
  } | undefined;
908
908
  scope?: ("user" | "org" | "public" | "group")[] | undefined;
909
909
  description?: string | undefined;
910
- 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;
910
+ icon?: "function" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "code" | "copy-x" | "database" | "dices" | "filter" | "flag" | "flask" | "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" | undefined;
911
911
  connections?: Record<string, {
912
912
  label: string;
913
913
  fields: Record<string, {
@@ -944,8 +944,8 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
944
944
  kind: "plugin";
945
945
  } | {
946
946
  package: string;
947
- kind: "npm";
948
947
  version: string;
948
+ kind: "npm";
949
949
  } | undefined;
950
950
  env?: string[] | undefined;
951
951
  inputs?: Record<string, unknown> | undefined;
@@ -953,7 +953,7 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
953
953
  description?: string | undefined;
954
954
  defaults?: Record<string, unknown> | undefined;
955
955
  language?: string | undefined;
956
- 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;
956
+ icon?: "function" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "code" | "copy-x" | "database" | "dices" | "filter" | "flag" | "flask" | "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" | undefined;
957
957
  trigger?: boolean | undefined;
958
958
  connections?: string[] | undefined;
959
959
  bindings?: Record<string, {
@@ -976,9 +976,9 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
976
976
  export: string;
977
977
  } | undefined;
978
978
  }[];
979
+ version: string;
979
980
  scope: ("user" | "org" | "public" | "group")[];
980
981
  id: string;
981
- version: string;
982
982
  schemaVersion: string;
983
983
  permissions: {
984
984
  resource: "project_data" | "secrets" | "network";
@@ -989,8 +989,8 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
989
989
  kind: "plugin";
990
990
  } | {
991
991
  package: string;
992
- kind: "npm";
993
992
  version: string;
993
+ kind: "npm";
994
994
  } | undefined;
995
995
  integration?: {
996
996
  tags: string[];
@@ -1008,7 +1008,7 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
1008
1008
  }[] | undefined;
1009
1009
  } | undefined;
1010
1010
  description?: string | undefined;
1011
- 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;
1011
+ icon?: "function" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "code" | "copy-x" | "database" | "dices" | "filter" | "flag" | "flask" | "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" | undefined;
1012
1012
  connections?: Record<string, {
1013
1013
  label: string;
1014
1014
  fields: Record<string, {
@@ -1031,8 +1031,8 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
1031
1031
  license?: string | undefined;
1032
1032
  }, {
1033
1033
  name: string;
1034
- id: string;
1035
1034
  version: string;
1035
+ id: string;
1036
1036
  nodes?: {
1037
1037
  id: string;
1038
1038
  command: string;
@@ -1042,8 +1042,8 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
1042
1042
  kind: "plugin";
1043
1043
  } | {
1044
1044
  package: string;
1045
- kind: "npm";
1046
1045
  version: string;
1046
+ kind: "npm";
1047
1047
  } | undefined;
1048
1048
  env?: string[] | undefined;
1049
1049
  inputs?: Record<string, unknown> | undefined;
@@ -1051,7 +1051,7 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
1051
1051
  description?: string | undefined;
1052
1052
  defaults?: Record<string, unknown> | undefined;
1053
1053
  language?: string | undefined;
1054
- 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;
1054
+ icon?: "function" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "code" | "copy-x" | "database" | "dices" | "filter" | "flag" | "flask" | "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" | undefined;
1055
1055
  trigger?: boolean | undefined;
1056
1056
  connections?: string[] | undefined;
1057
1057
  bindings?: Record<string, {
@@ -1079,8 +1079,8 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
1079
1079
  kind: "plugin";
1080
1080
  } | {
1081
1081
  package: string;
1082
- kind: "npm";
1083
1082
  version: string;
1083
+ kind: "npm";
1084
1084
  } | undefined;
1085
1085
  integration?: {
1086
1086
  npm?: {
@@ -1099,7 +1099,7 @@ export declare const PluginManifest: z.ZodEffects<z.ZodObject<{
1099
1099
  } | undefined;
1100
1100
  scope?: ("user" | "org" | "public" | "group")[] | undefined;
1101
1101
  description?: string | undefined;
1102
- 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;
1102
+ icon?: "function" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "code" | "copy-x" | "database" | "dices" | "filter" | "flag" | "flask" | "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" | undefined;
1103
1103
  connections?: Record<string, {
1104
1104
  label: string;
1105
1105
  fields: Record<string, {
@@ -0,0 +1,2 @@
1
+ export declare const LANGUAGE = "typescript";
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/plugins/sdk/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,QAAQ,eAAe,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LANGUAGE = void 0;
4
+ // Generated from packages/plugin-runtime/src/constants.ts. Do not edit; run the Octonode SDK sync.
5
+ exports.LANGUAGE = "typescript";
6
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/plugins/sdk/constants.ts"],"names":[],"mappings":";;;AAAA,mGAAmG;AACtF,QAAA,QAAQ,GAAG,YAAY,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { DefineNodeArgs, DefineSetupArgs, DefineExplicitServiceArgs, NodeDefinition, ServiceDefinition, SetupNodeDefinition } from "../types.js";
2
+ /**
3
+ * Declare a node: package its handler, id, and the JSON Schema for its I/O. The
4
+ * schemas are both enforced at runtime (the runner validates) and reported via
5
+ * `describe` so the engine can populate `.octonode` and type-check edges.
6
+ */
7
+ export declare function defineNode<I = unknown, O = unknown>(args: DefineNodeArgs<I, O>): NodeDefinition<I, O>;
8
+ /** Declare a service. Only the explicit create/expose form turns class methods into callable nodes. */
9
+ export declare function defineService<T extends object>(args: DefineExplicitServiceArgs<T>): ServiceDefinition<T>;
10
+ export declare function defineService<I = unknown, O = unknown>(args: DefineSetupArgs<I, O>): SetupNodeDefinition<I, O>;
11
+ /** Declare a class: a class definition (constructor/config params, methods). */
12
+ export declare function defineClass<I = unknown, O = unknown>(args: DefineSetupArgs<I, O>): SetupNodeDefinition<I, O>;
13
+ /** Declare a const: a configuration constant referenced by other nodes. */
14
+ export declare function defineConst<I = unknown, O = unknown>(args: DefineSetupArgs<I, O>): SetupNodeDefinition<I, O>;
15
+ //# sourceMappingURL=node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../../src/plugins/sdk/define/node.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,yBAAyB,EACzB,cAAc,EACd,iBAAiB,EAEjB,mBAAmB,EACpB,MAAM,aAAa,CAAC;AAErB;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAgBrG;AAID,uGAAuG;AACvG,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,yBAAyB,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAC1G,wBAAgB,aAAa,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAwBhH,gFAAgF;AAChF,wBAAgB,WAAW,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,CAE5G;AAED,2EAA2E;AAC3E,wBAAgB,WAAW,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,CAE5G"}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defineNode = defineNode;
4
+ exports.defineService = defineService;
5
+ exports.defineClass = defineClass;
6
+ exports.defineConst = defineConst;
7
+ /**
8
+ * Declare a node: package its handler, id, and the JSON Schema for its I/O. The
9
+ * schemas are both enforced at runtime (the runner validates) and reported via
10
+ * `describe` so the engine can populate `.octonode` and type-check edges.
11
+ */
12
+ function defineNode(args) {
13
+ return {
14
+ id: args.id ?? "node",
15
+ ...(args.workflowId ? { workflowId: args.workflowId } : {}),
16
+ run: args.run,
17
+ label: args.label,
18
+ description: args.description,
19
+ symbol: args.symbol,
20
+ defaults: args.defaults,
21
+ inputs: args.inputs,
22
+ outputs: args.outputs,
23
+ kind: args.kind,
24
+ setup: args.setup,
25
+ icon: args.icon,
26
+ config: args.config,
27
+ };
28
+ }
29
+ const setupPassthrough = (_inputs, context) => context.config ?? {};
30
+ function defineService(args) {
31
+ if ("create" in args && "expose" in args) {
32
+ const methods = Array.isArray(args.expose)
33
+ ? Object.fromEntries(args.expose.map((name) => [String(name), {}]))
34
+ : args.expose;
35
+ return {
36
+ ...defineNode({
37
+ id: args.id,
38
+ run: setupPassthrough,
39
+ kind: "service",
40
+ setup: args.setup,
41
+ icon: args.icon,
42
+ config: args.config,
43
+ }),
44
+ kind: "service",
45
+ service: { create: args.create, dispose: args.dispose, lifecycle: args.lifecycle ?? "invocation", methods },
46
+ };
47
+ }
48
+ return defineNode({ ...args, run: args.run ?? setupPassthrough, kind: "service" });
49
+ }
50
+ /** Declare a class: a class definition (constructor/config params, methods). */
51
+ function defineClass(args) {
52
+ return defineNode({ ...args, run: args.run ?? setupPassthrough, kind: "class" });
53
+ }
54
+ /** Declare a const: a configuration constant referenced by other nodes. */
55
+ function defineConst(args) {
56
+ return defineNode({ ...args, run: args.run ?? setupPassthrough, kind: "const" });
57
+ }
58
+ //# sourceMappingURL=node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.js","sourceRoot":"","sources":["../../../../src/plugins/sdk/define/node.ts"],"names":[],"mappings":";;AAiBA,gCAgBC;AAOD,sCAqBC;AAGD,kCAEC;AAGD,kCAEC;AA3DD;;;;GAIG;AACH,SAAgB,UAAU,CAA2B,IAA0B;IAC7E,OAAO;QACL,EAAE,EAAE,IAAI,CAAC,EAAE,IAAI,MAAM;QACrB,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3D,GAAG,EAAE,IAAI,CAAC,GAAG;QACb,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,MAAM,EAAE,IAAI,CAAC,MAAM;KACpB,CAAC;AACJ,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AAgB,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;AACnH,CAAC;AAED,2EAA2E;AAC3E,SAAgB,WAAW,CAA2B,IAA2B;IAC/E,OAAO,UAAU,CAAiC,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,IAAI,gBAAgB,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;AACnH,CAAC"}
@@ -78,7 +78,11 @@ export interface ServiceMethodSpec {
78
78
  }
79
79
  export interface DefineExplicitServiceArgs<T extends object> {
80
80
  id: string;
81
+ /** Explicit class identity for container-resolved or indirect factories; never constructed by discovery. */
82
+ class?: abstract new (...args: never[]) => T;
81
83
  create: (context: InvocationContext) => T | Promise<T>;
84
+ /** Close owned resources when an invocation or service worker ends. */
85
+ dispose?: (instance: T) => void | Promise<void>;
82
86
  expose: readonly (keyof T & string)[] | Record<string, ServiceMethodSpec>;
83
87
  lifecycle?: "invocation" | "workflow-run" | "worker";
84
88
  icon?: any;
@@ -89,6 +93,7 @@ export interface ServiceDefinition<T extends object = object> extends NodeDefini
89
93
  kind: "service";
90
94
  service: {
91
95
  create: (context: InvocationContext) => T | Promise<T>;
96
+ dispose?: (instance: T) => void | Promise<void>;
92
97
  lifecycle: "invocation" | "workflow-run" | "worker";
93
98
  methods: Record<string, ServiceMethodSpec>;
94
99
  };
@@ -1 +1 @@
1
- {"version":3,"file":"define-node.d.ts","sourceRoot":"","sources":["../../../src/plugins/sdk/define-node.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAElE;;;;;GAKG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,I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a,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,yBAAyB,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAC1G,wBAAgB,aAAa,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAwBnG,gFAAgF;AAChF,wBAAgB,WAAW,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAE/F;AAED,2EAA2E;AAC3E,wBAAgB,WAAW,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAE/F"}
@@ -42,7 +42,7 @@ function defineService(args) {
42
42
  config: args.config,
43
43
  }),
44
44
  kind: "service",
45
- service: { create: args.create, lifecycle: args.lifecycle ?? "invocation", methods },
45
+ service: { create: args.create, dispose: args.dispose, lifecycle: args.lifecycle ?? "invocation", methods },
46
46
  };
47
47
  }
48
48
  return defineNode({ ...args, run: args.run ?? setupPassthrough, kind: "service" });
@@ -1 +1 @@
1
- {"version":3,"file":"define-node.js","sourceRoot":"","sources":["../../../src/plugins/sdk/define-node.ts"],"names":[],"mappings":";;AA+DA,gCAgBC;AAgDD,sCAqBC;AAGD,kCAEC;AAGD,kCAEC;AApGD;;;;GAIG;AACH,SAAgB,UAAU,CAAmB,IAA0B;IACrE,OAAO;QACL,EAAE,EAAE,IAAI,CAAC,EAAE,IAAI,MAAM;QACrB,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,IAAI,C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,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,IAAI,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;AACrF,CAAC;AAED,gFAAgF;AAChF,SAAgB,WAAW,CAAmB,IAA2B;IACvE,OAAO,UAAU,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,IAAI,gBAAgB,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;AACnF,CAAC;AAED,2EAA2E;AAC3E,SAAgB,WAAW,CAAmB,IAA2B;IACvE,OAAO,UAAU,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,IAAI,gBAAgB,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;AACnF,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Shared portable helper for both editable TypeScript wrappers and standalone adapters. */
2
+ export declare function clientOutputSource(language: "typescript" | "javascript"): string;
3
+ //# sourceMappingURL=output.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/sdk/definitions/clients/output.ts"],"names":[],"mappings":"AAGA,4FAA4F;AAC5F,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,YAAY,GAAG,YAAY,UAoCvE"}
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.clientOutputSource = clientOutputSource;
7
+ // Generated from packages/plugin/src/clients/output.ts. Do not edit; run the Octonode SDK sync.
8
+ const typescript_1 = __importDefault(require("typescript"));
9
+ /** Shared portable helper for both editable TypeScript wrappers and standalone adapters. */
10
+ function clientOutputSource(language) {
11
+ const source = `type __Collected<T> = T extends AsyncIterable<infer Item> ? Item[] : T extends object ? { [Key in keyof T]: __Collected<T[Key]> } : T;
12
+ async function __collectClientOutput<T>(value: T, paths: string[][]): Promise<__Collected<T>> {
13
+ let result: unknown = value;
14
+ for (const path of paths) {
15
+ let owner: Record<string, unknown> | undefined;
16
+ let stream: unknown = result;
17
+ if (path.length) {
18
+ if (typeof result !== "object" || result === null) throw new Error("Missing SDK stream");
19
+ result = { ...result };
20
+ owner = result as Record<string, unknown>;
21
+ for (const key of path.slice(0, -1)) {
22
+ const child = owner[key];
23
+ if (typeof child !== "object" || child === null) throw new Error("Missing SDK stream");
24
+ owner[key] = { ...child };
25
+ owner = owner[key] as Record<string, unknown>;
26
+ }
27
+ stream = owner[path[path.length - 1]];
28
+ }
29
+ if (stream === undefined || stream === null) continue;
30
+ if (typeof (stream as AsyncIterable<unknown>)[Symbol.asyncIterator] !== "function") throw new Error("Invalid SDK stream");
31
+ const items: unknown[] = [];
32
+ for await (const item of stream as AsyncIterable<unknown>) {
33
+ // ponytail: bounded collection, use incremental execution if streams exceed 10,000 events.
34
+ if (items.length >= 10_000) throw new Error("SDK stream exceeds the node output limit");
35
+ items.push(item);
36
+ }
37
+ if (owner) owner[path[path.length - 1]] = items;
38
+ else result = items;
39
+ }
40
+ return result as __Collected<T>;
41
+ }
42
+ `;
43
+ return language === "typescript"
44
+ ? source
45
+ : typescript_1.default.transpileModule(source, { compilerOptions: { target: typescript_1.default.ScriptTarget.ESNext } }).outputText;
46
+ }
47
+ //# sourceMappingURL=output.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.js","sourceRoot":"","sources":["../../../../../src/plugins/sdk/definitions/clients/output.ts"],"names":[],"mappings":";;;;;AAIA,gDAoCC;AAxCD,gGAAgG;AAChG,4DAA4B;AAE5B,4FAA4F;AAC5F,SAAgB,kBAAkB,CAAC,QAAqC;IACtE,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BhB,CAAC;IACA,OAAO,QAAQ,KAAK,YAAY;QAC9B,CAAC,CAAC,MAAM;QACR,CAAC,CAAC,oBAAE,CAAC,eAAe,CAAC,MAAM,EAAE,EAAE,eAAe,EAAE,EAAE,MAAM,EAAE,oBAAE,CAAC,YAAY,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC;AACrG,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/sdk/definitions/compiler/catalog.ts"],"names":[],"mappings":"AAOA,kFAAkF;AAClF,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,EAAE,KAAK,UAAQ,GAAG,MAAM,CAkIlG"}
1
+ {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/sdk/definitions/compiler/catalog.ts"],"names":[],"mappings":"AAOA,kFAAkF;AAClF,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,EAAE,KAAK,UAAQ,GAAG,MAAM,CAgJlG"}