@polycore/protocol 0.2.0 → 0.3.0

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/messages.ts +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polycore/protocol",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "private": false,
5
5
  "description": "Polycore control-plane and runner wire contract: message schemas and signed-envelope helpers. Pure (zod + node:crypto), no transport.",
6
6
  "type": "module",
package/src/messages.ts CHANGED
@@ -14,8 +14,12 @@ export const connectorDescriptorSchema = z.object({
14
14
  name: z.string().min(1),
15
15
  description: z.string(),
16
16
  effect: z.string(),
17
- /** Whether this is a built-in connector or a customer-authored action. */
18
- kind: z.enum(["connector", "action"]).default("connector"),
17
+ /**
18
+ * Whether this is a built-in connector, a customer-authored action, or the
19
+ * generic delegated-workload executor (`workload.execute`), which runs
20
+ * human-approved arbitrary code in an isolated sandbox on the runner host.
21
+ */
22
+ kind: z.enum(["connector", "action", "workload"]).default("connector"),
19
23
  params: z.record(z.string(), z.unknown()),
20
24
  });
21
25