@octonodes/sdk 0.2.6 → 0.2.8

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 (30) hide show
  1. package/dist/gen/index.d.ts +2 -2
  2. package/dist/gen/index.d.ts.map +1 -1
  3. package/dist/gen/index.js +3 -2
  4. package/dist/gen/index.js.map +1 -1
  5. package/dist/gen/sdk.gen.d.ts +9 -1
  6. package/dist/gen/sdk.gen.d.ts.map +1 -1
  7. package/dist/gen/sdk.gen.js +20 -2
  8. package/dist/gen/sdk.gen.js.map +1 -1
  9. package/dist/gen/types.gen.d.ts +67 -0
  10. package/dist/gen/types.gen.d.ts.map +1 -1
  11. package/dist/plugins/schema/plugin/execution.js +1 -1
  12. package/dist/plugins/schema/plugin/execution.js.map +1 -1
  13. package/dist/plugins/schema/plugin/plugin.d.ts +1131 -0
  14. package/dist/plugins/schema/plugin/plugin.d.ts.map +1 -0
  15. package/dist/plugins/schema/plugin/plugin.js +247 -0
  16. package/dist/plugins/schema/plugin/plugin.js.map +1 -0
  17. package/dist/plugins/schema/plugin/publishing.d.ts +1019 -0
  18. package/dist/plugins/schema/plugin/publishing.d.ts.map +1 -0
  19. package/dist/plugins/schema/plugin/publishing.js +167 -0
  20. package/dist/plugins/schema/plugin/publishing.js.map +1 -0
  21. package/dist/plugins/schema/plugin/version.d.ts +8 -0
  22. package/dist/plugins/schema/plugin/version.d.ts.map +1 -0
  23. package/dist/plugins/schema/plugin/version.js +61 -0
  24. package/dist/plugins/schema/plugin/version.js.map +1 -0
  25. package/dist/plugins/schema/plugin-publishing.d.ts +4 -4
  26. package/dist/plugins/schema/plugin-sdk/index.d.ts +3 -3
  27. package/dist/plugins/schema/plugin-sdk/index.d.ts.map +1 -1
  28. package/dist/plugins/schema/plugin-sdk/index.js +3 -3
  29. package/dist/plugins/schema/plugin-sdk/index.js.map +1 -1
  30. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0K5E,CAAC;AACL,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAC5D,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
@@ -0,0 +1,247 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PluginManifest = exports.PluginConnection = exports.PluginIntegration = exports.PluginPermission = exports.PluginNode = exports.PluginNpmDependency = exports.PluginImplementationSource = exports.NpmClientBinding = exports.PluginNodeUi = exports.PLUGIN_UI_BUNDLE_MAX_BYTES = exports.PluginUiTarget = exports.PluginScope = void 0;
4
+ // Generated from packages/schema/src/plugin/plugin.ts. Do not edit; run the Octonode SDK sync.
5
+ const zod_1 = require("zod");
6
+ const ipc_envelope_1 = require("../ipc-envelope");
7
+ const icons_1 = require("../icons");
8
+ const constants_1 = require("../constants");
9
+ /**
10
+ * A plugin's distribution scope — who may discover and install it. `user` is
11
+ * private to its publisher in the hosted marketplace; group/org/public widen
12
+ * visibility. Local folder installs do not publish and remain local.
13
+ */
14
+ exports.PluginScope = zod_1.z.enum(["user", "group", "org", "public"]);
15
+ exports.PluginUiTarget = zod_1.z.enum(["node.inspector.inputs"]);
16
+ exports.PLUGIN_UI_BUNDLE_MAX_BYTES = 512 * 1024;
17
+ const pluginUiEntry = zod_1.z
18
+ .string()
19
+ .min(1)
20
+ .max(1_024)
21
+ .refine((value) => !value.startsWith("/") &&
22
+ !value.includes("\\") &&
23
+ !value.split("/").includes("..") &&
24
+ /\.[cm]?[jt]sx?$/.test(value), "UI entries must be relative JavaScript/TypeScript module paths");
25
+ exports.PluginNodeUi = zod_1.z
26
+ .object({
27
+ apiVersion: zod_1.z.literal("1"),
28
+ renderers: zod_1.z
29
+ .record(zod_1.z.string().regex(/^[a-z0-9][a-z0-9_-]*$/i, "renderer id must be alphanumeric/dash/underscore"), zod_1.z
30
+ .object({
31
+ label: zod_1.z.string().min(1).max(240),
32
+ targets: zod_1.z.record(exports.PluginUiTarget, pluginUiEntry),
33
+ })
34
+ .strict())
35
+ .refine((renderers) => Object.keys(renderers).length > 0, "UI needs at least one renderer"),
36
+ })
37
+ .strict();
38
+ /** Build an upstream SDK client from connection fields, never from public node inputs. */
39
+ exports.NpmClientBinding = zod_1.z
40
+ .object({
41
+ module: zod_1.z
42
+ .string()
43
+ .regex(/^(@[a-z0-9~._-]+\/)?[a-z0-9~._-]+(?:\/[a-zA-Z0-9~._-]+)*$/)
44
+ .refine((value) => !value.split("/").some((part) => part === "." || part === ".."), "Unsafe npm module path"),
45
+ export: zod_1.z.string().regex(/^[$A-Z_a-z][$\w]*$/),
46
+ options: zod_1.z.record(zod_1.z.unknown()).optional(),
47
+ env: zod_1.z
48
+ .record(zod_1.z
49
+ .string()
50
+ .regex(/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*$/)
51
+ .refine((path) => !path.split(".").some((key) => ["__proto__", "prototype", "constructor"].includes(key)), "Unsafe option path"), zod_1.z.string().regex(/^[A-Z_][A-Z0-9_]*$/))
52
+ .optional(),
53
+ })
54
+ .strict();
55
+ exports.PluginImplementationSource = zod_1.z.discriminatedUnion("kind", [
56
+ zod_1.z.object({ kind: zod_1.z.literal("plugin") }).strict(),
57
+ zod_1.z
58
+ .object({
59
+ kind: zod_1.z.literal("npm"),
60
+ package: zod_1.z.string().regex(/^(@[a-z0-9~._-]+\/)?[a-z0-9~._-]+$/),
61
+ version: zod_1.z.string().regex(/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/),
62
+ })
63
+ .strict(),
64
+ ]);
65
+ exports.PluginNpmDependency = zod_1.z.object({ package: zod_1.z.string(), version: zod_1.z.string(), spec: zod_1.z.string() }).strict();
66
+ /**
67
+ * One node contributed by a plugin. Unlike a project node (whose signature is
68
+ * discovered by `octonode scan`), a plugin node declares its contract directly
69
+ * in the manifest — the plugin author owns it. `command` is resolved relative
70
+ * to the plugin folder, so a plugin is a self-contained, relocatable bundle.
71
+ */
72
+ exports.PluginNode = zod_1.z.object({
73
+ id: zod_1.z.string().regex(/^[a-z0-9][a-z0-9_-]*$/i, "node id must be alphanumeric/dash/underscore"),
74
+ /** The command the engine spawns, relative to the plugin folder. */
75
+ command: zod_1.z.string(),
76
+ language: zod_1.z.string().optional(),
77
+ label: zod_1.z.string().min(1).max(240).optional(),
78
+ symbol: zod_1.z.string().min(1).max(16).optional(),
79
+ description: zod_1.z.string().optional(),
80
+ icon: icons_1.IconName.optional(),
81
+ trigger: zod_1.z.boolean().optional(),
82
+ inputs: ipc_envelope_1.JsonSchema.optional(),
83
+ outputs: ipc_envelope_1.JsonSchema.optional(),
84
+ /** Names of environment variables / secrets this node expects to be injected. */
85
+ env: zod_1.z.array(zod_1.z.string()).optional(),
86
+ connections: zod_1.z.array(zod_1.z.string().min(1)).optional(),
87
+ defaults: zod_1.z.record(zod_1.z.unknown()).optional(),
88
+ bindings: zod_1.z.record(zod_1.z.string().regex(/^[A-Za-z_$][\w$]*$/), exports.NpmClientBinding).optional(),
89
+ ui: exports.PluginNodeUi.optional(),
90
+ source: exports.PluginImplementationSource.optional(),
91
+ /** Explicit mapping to the library export; workflow adapters keep their own argument convention. */
92
+ libraryExport: zod_1.z
93
+ .string()
94
+ .regex(/^[$A-Z_a-z][$\w]*$/)
95
+ .optional(),
96
+ /** Compiler-owned original import identity, never a presentation override. */
97
+ implementation: zod_1.z
98
+ .object({
99
+ module: zod_1.z.string(),
100
+ export: zod_1.z.string(),
101
+ parameters: zod_1.z.array(zod_1.z.string()),
102
+ })
103
+ .strict()
104
+ .optional(),
105
+ });
106
+ /**
107
+ * A coarse capability the plugin needs at runtime. Shown on the install
108
+ * consent screen and enforced before a node is handed the resource.
109
+ */
110
+ exports.PluginPermission = zod_1.z.object({
111
+ resource: zod_1.z.enum(["project_data", "secrets", "network"]),
112
+ access: zod_1.z.enum(["read", "write", "outbound"]),
113
+ });
114
+ /** Discovery/marketplace metadata (used by the Studio Marketplace in Phase 14). */
115
+ exports.PluginIntegration = zod_1.z.object({
116
+ category: zod_1.z.string().optional(),
117
+ tags: zod_1.z.array(zod_1.z.string()).default([]),
118
+ /** Secrets/env the integration needs to authenticate (e.g. ["JIRA_TOKEN"]). */
119
+ auth: zod_1.z.array(zod_1.z.string()).optional(),
120
+ /** Original npm dependency used by generated npm nodes. */
121
+ npm: exports.PluginNpmDependency.optional(),
122
+ npmDependencies: zod_1.z.array(exports.PluginNpmDependency).optional(),
123
+ });
124
+ /** Credential metadata only. Values are supplied by the installing user at runtime. */
125
+ exports.PluginConnection = zod_1.z
126
+ .object({
127
+ label: zod_1.z.string().min(1).max(240),
128
+ description: zod_1.z.string().max(4_000).optional(),
129
+ fields: zod_1.z.record(zod_1.z.string().regex(/^[A-Z_][A-Z0-9_]*$/, "credential fields must be environment variable names"), zod_1.z
130
+ .object({
131
+ label: zod_1.z.string().min(1).max(240),
132
+ description: zod_1.z.string().max(4_000).optional(),
133
+ secret: zod_1.z.boolean().default(true),
134
+ required: zod_1.z.boolean().default(true),
135
+ })
136
+ .strict()),
137
+ })
138
+ .strict();
139
+ /** The shared plugin contract used by the SDK, generators, and marketplace. */
140
+ exports.PluginManifest = zod_1.z
141
+ .object({
142
+ schemaVersion: zod_1.z.string().default(constants_1.PLUGIN_SCHEMA_VERSION),
143
+ /** Stable plugin id; namespaces its nodes as `<id>/<nodeId>`. */
144
+ id: zod_1.z.string().regex(/^[a-z0-9][a-z0-9-]*$/, "plugin id must be lowercase alphanumeric/dash"),
145
+ name: zod_1.z.string(),
146
+ version: zod_1.z.string(),
147
+ description: zod_1.z.string().optional(),
148
+ /** Implementation authority; absent on legacy artifacts. */
149
+ source: exports.PluginImplementationSource.optional(),
150
+ library: zod_1.z
151
+ .object({
152
+ format: zod_1.z.literal(1),
153
+ entry: zod_1.z.literal("library/index.js"),
154
+ types: zod_1.z.literal("library/index.d.ts"),
155
+ exports: zod_1.z.array(zod_1.z.string().regex(/^[$A-Z_a-z][$\w]*$/)).min(1),
156
+ })
157
+ .strict()
158
+ .optional(),
159
+ icon: icons_1.IconName.optional(),
160
+ author: zod_1.z.string().optional(),
161
+ contributors: zod_1.z.array(zod_1.z.string().trim().min(1).max(240)).max(100).optional(),
162
+ repository: zod_1.z
163
+ .string()
164
+ .url()
165
+ .regex(/^https:\/\/github\.com\/[^/]+\/[^/]+\/?$/)
166
+ .optional(),
167
+ homepage: zod_1.z.string().optional(),
168
+ license: zod_1.z.string().optional(),
169
+ /** Distribution tiers this plugin may be discovered/installed from. Private by default. */
170
+ scope: zod_1.z.array(exports.PluginScope).default(["user"]),
171
+ /** Coarse runtime capabilities the plugin requests; consented to at install. */
172
+ permissions: zod_1.z.array(exports.PluginPermission).default([]),
173
+ integration: exports.PluginIntegration.optional(),
174
+ connections: zod_1.z.record(zod_1.z.string().regex(/^[a-z0-9][a-z0-9-]*$/), exports.PluginConnection).optional(),
175
+ nodes: zod_1.z.array(exports.PluginNode).default([]),
176
+ })
177
+ .superRefine((manifest, ctx) => {
178
+ const npm = manifest.integration?.npm;
179
+ const dependencies = manifest.integration?.npmDependencies ?? (npm ? [npm] : []);
180
+ if (new Set(dependencies.map((item) => item.package)).size !== dependencies.length)
181
+ ctx.addIssue({
182
+ code: "custom",
183
+ path: ["integration"],
184
+ message: "npm dependencies must have unique package names",
185
+ });
186
+ if ((manifest.source?.kind === "plugin" && npm) ||
187
+ (manifest.source?.kind === "npm" &&
188
+ (npm?.package !== manifest.source.package || npm?.version !== manifest.source.version)))
189
+ ctx.addIssue({ code: "custom", path: ["source"], message: "source authority must match integration.npm" });
190
+ const ids = new Set();
191
+ manifest.nodes.forEach((node, index) => {
192
+ if (ids.has(node.id))
193
+ ctx.addIssue({ code: "custom", path: ["nodes", index, "id"], message: "node IDs must be unique" });
194
+ ids.add(node.id);
195
+ const nodeSource = node.source;
196
+ const nodeNpm = nodeSource?.kind === "npm"
197
+ ? dependencies.find((item) => item.package === nodeSource.package && item.version === nodeSource.version)
198
+ : nodeSource?.kind === "plugin"
199
+ ? undefined
200
+ : npm;
201
+ if (node.source?.kind === "npm" && !nodeNpm)
202
+ ctx.addIssue({
203
+ code: "custom",
204
+ path: ["nodes", index, "source"],
205
+ message: "npm source must match a declared dependency",
206
+ });
207
+ if (node.libraryExport &&
208
+ (node.source?.kind === "npm" || !manifest.library?.exports.includes(node.libraryExport)))
209
+ ctx.addIssue({
210
+ code: "custom",
211
+ path: ["nodes", index, "libraryExport"],
212
+ message: "custom export must exist in the plugin library",
213
+ });
214
+ for (const binding of Object.values(node.bindings ?? {})) {
215
+ if (!nodeNpm || (binding.module !== nodeNpm.package && !binding.module.startsWith(`${nodeNpm.package}/`)))
216
+ ctx.addIssue({
217
+ code: "custom",
218
+ path: ["nodes", index, "bindings"],
219
+ message: "SDK factories must belong to the original npm package",
220
+ });
221
+ const credentialFields = new Set((node.connections ?? []).flatMap((name) => Object.keys(manifest.connections?.[name]?.fields ?? {})));
222
+ for (const name of Object.values(binding.env ?? {}))
223
+ if (!credentialFields.has(name))
224
+ ctx.addIssue({
225
+ code: "custom",
226
+ path: ["nodes", index, "bindings"],
227
+ message: `SDK binding requires connection field "${name}"`,
228
+ });
229
+ }
230
+ for (const connection of node.connections ?? []) {
231
+ if (!Object.hasOwn(manifest.connections ?? {}, connection))
232
+ ctx.addIssue({
233
+ code: "custom",
234
+ path: ["nodes", index, "connections"],
235
+ message: `unknown connection "${connection}"`,
236
+ });
237
+ }
238
+ });
239
+ if (Object.keys(manifest.connections ?? {}).length &&
240
+ !manifest.permissions.some((permission) => permission.resource === "secrets" && permission.access === "read"))
241
+ ctx.addIssue({
242
+ code: "custom",
243
+ path: ["permissions"],
244
+ message: "credential connections require secrets:read permission",
245
+ });
246
+ });
247
+ //# sourceMappingURL=plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../../src/plugins/schema/plugin/plugin.ts"],"names":[],"mappings":";;;AAAA,+FAA+F;AAC/F,6BAAwB;AACxB,kDAA6C;AAC7C,oCAAoC;AACpC,4CAAqD;AAErD;;;;GAIG;AACU,QAAA,WAAW,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;AAGzD,QAAA,cAAc,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC;AAEnD,QAAA,0BAA0B,GAAG,GAAG,GAAG,IAAI,CAAC;AAErD,MAAM,aAAa,GAAG,OAAC;KACpB,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,KAAK,CAAC;KACV,MAAM,CACL,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC;IACtB,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;IACrB,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;IAChC,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,EAC/B,gEAAgE,CAC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