@elizaos/plugin-workflow 2.0.0-beta.1 → 2.0.3-beta.5

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 (170) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +28 -26
  3. package/dist/actions/eval-code.d.ts +12 -0
  4. package/dist/actions/eval-code.d.ts.map +1 -0
  5. package/dist/actions/eval-code.js +59 -0
  6. package/dist/actions/eval-code.js.map +1 -0
  7. package/dist/actions/index.d.ts +1 -0
  8. package/dist/actions/index.d.ts.map +1 -1
  9. package/dist/actions/index.js +1 -0
  10. package/dist/actions/index.js.map +1 -1
  11. package/dist/actions/workflow.d.ts +7 -0
  12. package/dist/actions/workflow.d.ts.map +1 -1
  13. package/dist/actions/workflow.js +462 -10
  14. package/dist/actions/workflow.js.map +1 -1
  15. package/dist/db/schema.d.ts +196 -0
  16. package/dist/db/schema.d.ts.map +1 -1
  17. package/dist/db/schema.js +23 -0
  18. package/dist/db/schema.js.map +1 -1
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +9 -64
  21. package/dist/index.js.map +1 -1
  22. package/dist/lib/automations-builder.d.ts.map +1 -1
  23. package/dist/lib/automations-builder.js +10 -35
  24. package/dist/lib/automations-builder.js.map +1 -1
  25. package/dist/lib/automations-types.d.ts +2 -2
  26. package/dist/lib/automations-types.d.ts.map +1 -1
  27. package/dist/lib/automations-types.js.map +1 -1
  28. package/dist/lib/index.d.ts +0 -2
  29. package/dist/lib/index.d.ts.map +1 -1
  30. package/dist/lib/index.js +1 -2
  31. package/dist/lib/index.js.map +1 -1
  32. package/dist/lib/workflow-clarification.d.ts +2 -2
  33. package/dist/lib/workflow-clarification.d.ts.map +1 -1
  34. package/dist/lib/workflow-clarification.js +15 -11
  35. package/dist/lib/workflow-clarification.js.map +1 -1
  36. package/dist/plugin-routes.d.ts.map +1 -1
  37. package/dist/plugin-routes.js +6 -0
  38. package/dist/plugin-routes.js.map +1 -1
  39. package/dist/providers/activeWorkflows.js +2 -2
  40. package/dist/providers/activeWorkflows.js.map +1 -1
  41. package/dist/providers/workflowStatus.js +1 -1
  42. package/dist/providers/workflowStatus.js.map +1 -1
  43. package/dist/routes/workflow-routes.d.ts.map +1 -1
  44. package/dist/routes/workflow-routes.js +68 -2
  45. package/dist/routes/workflow-routes.js.map +1 -1
  46. package/dist/routes/workflows.d.ts.map +1 -1
  47. package/dist/routes/workflows.js +5 -1
  48. package/dist/routes/workflows.js.map +1 -1
  49. package/dist/services/embedded-workflow-service.d.ts +74 -17
  50. package/dist/services/embedded-workflow-service.d.ts.map +1 -1
  51. package/dist/services/embedded-workflow-service.js +343 -149
  52. package/dist/services/embedded-workflow-service.js.map +1 -1
  53. package/dist/services/smithers-runtime.d.ts +47 -0
  54. package/dist/services/smithers-runtime.d.ts.map +1 -0
  55. package/dist/services/smithers-runtime.js +444 -0
  56. package/dist/services/smithers-runtime.js.map +1 -0
  57. package/dist/services/workflow-credential-store.js +1 -1
  58. package/dist/services/workflow-credential-store.js.map +1 -1
  59. package/dist/services/workflow-dispatch.d.ts +31 -1
  60. package/dist/services/workflow-dispatch.d.ts.map +1 -1
  61. package/dist/services/workflow-dispatch.js +75 -10
  62. package/dist/services/workflow-dispatch.js.map +1 -1
  63. package/dist/services/workflow-service.d.ts +27 -1
  64. package/dist/services/workflow-service.d.ts.map +1 -1
  65. package/dist/services/workflow-service.js +133 -11
  66. package/dist/services/workflow-service.js.map +1 -1
  67. package/dist/trigger-routes.d.ts +2 -18
  68. package/dist/trigger-routes.d.ts.map +1 -1
  69. package/dist/trigger-routes.js +11 -39
  70. package/dist/trigger-routes.js.map +1 -1
  71. package/dist/types/index.d.ts +82 -2
  72. package/dist/types/index.d.ts.map +1 -1
  73. package/dist/types/index.js.map +1 -1
  74. package/dist/types/workflow-contracts.d.ts +118 -0
  75. package/dist/types/workflow-contracts.d.ts.map +1 -0
  76. package/dist/types/workflow-contracts.js +2 -0
  77. package/dist/types/workflow-contracts.js.map +1 -0
  78. package/dist/utils/catalog.js +2 -2
  79. package/dist/utils/catalog.js.map +1 -1
  80. package/dist/utils/clarification.d.ts +1 -1
  81. package/dist/utils/clarification.d.ts.map +1 -1
  82. package/dist/utils/clarification.js +15 -4
  83. package/dist/utils/clarification.js.map +1 -1
  84. package/dist/utils/context.js +1 -1
  85. package/dist/utils/context.js.map +1 -1
  86. package/dist/utils/evaluation-samples.d.ts +6 -0
  87. package/dist/utils/evaluation-samples.d.ts.map +1 -0
  88. package/dist/utils/evaluation-samples.js +216 -0
  89. package/dist/utils/evaluation-samples.js.map +1 -0
  90. package/dist/utils/execution-diagnostics.d.ts +26 -0
  91. package/dist/utils/execution-diagnostics.d.ts.map +1 -0
  92. package/dist/utils/execution-diagnostics.js +159 -0
  93. package/dist/utils/execution-diagnostics.js.map +1 -0
  94. package/dist/utils/generation.d.ts.map +1 -1
  95. package/dist/utils/generation.js +134 -19
  96. package/dist/utils/generation.js.map +1 -1
  97. package/dist/utils/host-capabilities.d.ts.map +1 -1
  98. package/dist/utils/host-capabilities.js +20 -5
  99. package/dist/utils/host-capabilities.js.map +1 -1
  100. package/dist/utils/inferSyntheticOutputSchema.js +3 -3
  101. package/dist/utils/inferSyntheticOutputSchema.js.map +1 -1
  102. package/dist/utils/outputSchema.js +1 -1
  103. package/dist/utils/outputSchema.js.map +1 -1
  104. package/dist/utils/validateAndRepair.js +10 -10
  105. package/dist/utils/validateAndRepair.js.map +1 -1
  106. package/dist/utils/workflow-prompts/draftIntent.d.ts +1 -1
  107. package/dist/utils/workflow-prompts/draftIntent.d.ts.map +1 -1
  108. package/dist/utils/workflow-prompts/draftIntent.js +1 -1
  109. package/dist/utils/workflow-prompts/keywordExtraction.d.ts +1 -1
  110. package/dist/utils/workflow-prompts/keywordExtraction.d.ts.map +1 -1
  111. package/dist/utils/workflow-prompts/keywordExtraction.js +1 -1
  112. package/dist/utils/workflow-prompts/workflowGeneration.d.ts +1 -1
  113. package/dist/utils/workflow-prompts/workflowGeneration.d.ts.map +1 -1
  114. package/dist/utils/workflow-prompts/workflowGeneration.js +4 -4
  115. package/dist/utils/workflow-prompts/workflowMatching.d.ts +1 -1
  116. package/dist/utils/workflow-prompts/workflowMatching.d.ts.map +1 -1
  117. package/dist/utils/workflow-prompts/workflowMatching.js +1 -1
  118. package/dist/utils/workflow.d.ts +1 -0
  119. package/dist/utils/workflow.d.ts.map +1 -1
  120. package/dist/utils/workflow.js +44 -8
  121. package/dist/utils/workflow.js.map +1 -1
  122. package/package.json +27 -8
  123. package/registry-entry.json +25 -0
  124. package/src/actions/eval-code.ts +81 -0
  125. package/src/actions/index.ts +1 -0
  126. package/src/actions/workflow.ts +518 -10
  127. package/src/db/schema.ts +31 -0
  128. package/src/index.ts +9 -82
  129. package/src/lib/automations-builder.ts +11 -35
  130. package/src/lib/automations-types.ts +1 -2
  131. package/src/lib/index.ts +0 -8
  132. package/src/lib/workflow-clarification.ts +18 -13
  133. package/src/plugin-routes.ts +6 -0
  134. package/src/providers/activeWorkflows.ts +2 -2
  135. package/src/providers/workflowStatus.ts +1 -1
  136. package/src/routes/workflow-routes.ts +100 -2
  137. package/src/routes/workflows.ts +5 -1
  138. package/src/services/embedded-workflow-service.ts +447 -172
  139. package/src/services/smithers-runtime.ts +526 -0
  140. package/src/services/workflow-credential-store.ts +1 -1
  141. package/src/services/workflow-dispatch.ts +116 -13
  142. package/src/services/workflow-service.ts +186 -10
  143. package/src/trigger-routes.ts +12 -70
  144. package/src/types/index.ts +94 -2
  145. package/src/types/workflow-contracts.ts +166 -0
  146. package/src/utils/catalog.ts +2 -2
  147. package/src/utils/clarification.ts +19 -5
  148. package/src/utils/context.ts +1 -1
  149. package/src/utils/evaluation-samples.ts +239 -0
  150. package/src/utils/execution-diagnostics.ts +192 -0
  151. package/src/utils/generation.ts +224 -32
  152. package/src/utils/host-capabilities.ts +21 -5
  153. package/src/utils/inferSyntheticOutputSchema.ts +3 -3
  154. package/src/utils/outputSchema.ts +1 -1
  155. package/src/utils/validateAndRepair.ts +10 -10
  156. package/src/utils/workflow-prompts/draftIntent.ts +1 -1
  157. package/src/utils/workflow-prompts/keywordExtraction.ts +1 -1
  158. package/src/utils/workflow-prompts/workflowGeneration.ts +4 -4
  159. package/src/utils/workflow-prompts/workflowMatching.ts +1 -1
  160. package/src/utils/workflow.ts +56 -8
  161. package/dist/lib/legacy-task-migration.d.ts +0 -20
  162. package/dist/lib/legacy-task-migration.d.ts.map +0 -1
  163. package/dist/lib/legacy-task-migration.js +0 -110
  164. package/dist/lib/legacy-task-migration.js.map +0 -1
  165. package/dist/lib/legacy-text-trigger-migration.d.ts +0 -18
  166. package/dist/lib/legacy-text-trigger-migration.d.ts.map +0 -1
  167. package/dist/lib/legacy-text-trigger-migration.js +0 -131
  168. package/dist/lib/legacy-text-trigger-migration.js.map +0 -1
  169. package/src/lib/legacy-task-migration.ts +0 -143
  170. package/src/lib/legacy-text-trigger-migration.ts +0 -178
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Shaw Walters and elizaOS Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  In-process workflow engine for elizaOS agents. Generate and deploy automation workflows from natural language using a RAG pipeline. The plugin embeds its own execution engine — workflows run in the agent process, no separate sidecar.
4
4
 
5
- Built on shared workflow type contracts from `@elizaos/workflows`. Supports the bundled node catalog used by the in-process runtime for routing decisions, with intelligent credential resolution and lifecycle management.
6
-
7
5
  ## Configuration
8
6
 
9
7
  No workflow-specific env vars are required. The plugin's `EmbeddedWorkflowService` runs CRUD + execution + scheduler + webhook handling locally inside the agent, persisted to the agent's Postgres schema.
@@ -14,13 +12,13 @@ No workflow-specific env vars are required. The plugin's `EmbeddedWorkflowServic
14
12
  |---|---|
15
13
  | `EmbeddedWorkflowService` | In-process workflow execution engine (CRUD + node runtime + scheduler + webhooks). |
16
14
  | `WorkflowService` | Public service surface used by the agent's `WORKFLOW` umbrella action. Routes to the embedded workflows engine. |
17
- | `WorkflowCredentialStore` | Stores workflow-scoped credentials (encrypted at rest). |
18
- | `workflowStatusProvider` | Exposes engine status to the planner. |
19
- | `activeWorkflowsProvider` | Lists active workflows for context. |
20
- | `pendingDraftProvider` | Surfaces an in-progress draft so the agent can clarify before persisting. |
21
- | Routes | Mounted at `/api/workflow/*` on the agent's HTTP server. |
15
+ | `WorkflowCredentialStore` | DB-backed `(userId, credType) → credential ID` mappings (service type `workflow_credential_store`). |
16
+ | `workflowStatusProvider` | `workflow_status` provider per-user workflows with last execution status. |
17
+ | `activeWorkflowsProvider` | `ACTIVE_WORKFLOWS` provider — active/inactive workflows for LLM context. |
18
+ | `pendingDraftProvider` | `PENDING_WORKFLOW_DRAFT` provider — surfaces an in-flight draft so the agent can clarify before persisting. |
19
+ | Routes | `/api/workflow/*` (rawPath) plus plugin-name-prefixed `/workflow/*` (see Routes below). |
22
20
 
23
- The `WORKFLOW` umbrella action lives in `@elizaos/agent` and dispatches op-based commands (`create`, `update`, `activate`, `run`, `delete`, ) to this plugin's services.
21
+ The `WORKFLOW` umbrella action is defined in this plugin (`src/actions/workflow.ts`) and dispatches op-based commands (`create`, `modify`, `activate`, `deactivate`, `toggle_active`, `delete`, `executions`) to this plugin's services.
24
22
 
25
23
  ## RAG Pipeline (workflow generation from natural language)
26
24
 
@@ -33,26 +31,33 @@ The `WORKFLOW` umbrella action lives in `@elizaos/agent` and dispatches op-based
33
31
 
34
32
  ## Credential Resolution
35
33
 
36
- Credentials are resolved at workflow-execution time. The plugin checks:
37
- 1. Plugin-level `workflows.credentials` config map (deterministic).
38
- 2. Cached secrets via the agent's secret service.
39
- 3. Stored credentials via `WorkflowCredentialStore`.
40
- 4. LLM-driven `request_credential` resolution (prompts the user).
34
+ Credentials are resolved per credential type at deploy/execution time. The chain (first match wins, see `src/utils/credentialResolver.ts`):
35
+ 1. Credential store DB — cached `(userId, credType) → credentialId` mappings via `WorkflowCredentialStore`.
36
+ 2. Static config `character.settings.workflows.credentials`.
37
+ 3. External provider a registered `CredentialProvider` service (e.g. cloud OAuth); newly resolved IDs are written back to the store.
38
+ 4. Otherwise the credType is reported as a missing connection for manual configuration.
41
39
 
42
40
  ## Routes
43
41
 
44
- All routes mount at `/api/workflow/`:
42
+ Two registration paths produce two URL shapes.
43
+
44
+ The `rawPath` route plugin (`src/plugin-routes.ts`, registered via `registerAppRoutePluginLoader`) mounts at `/api/workflow/*`:
45
45
 
46
46
  - `GET /api/workflow/status` — engine + plugin status
47
- - `GET /api/workflow/workflows` — list
48
- - `POST /api/workflow/workflows` — create
49
- - `GET /api/workflow/workflows/:id`
50
- - `PUT /api/workflow/workflows/:id`
51
- - `DELETE /api/workflow/workflows/:id`
52
- - `POST /api/workflow/workflows/:id/run` — trigger execution
53
- - `GET /api/workflow/executions/:id` — execution status / result
54
- - `POST /api/workflow/executions/:id/cancel`
55
- - Webhook endpoints for trigger nodes are exposed dynamically per workflow.
47
+ - `GET/POST /api/workflow/workflows` — list / create
48
+ - `POST /api/workflow/workflows/generate` — generate a draft from a prompt
49
+ - `POST /api/workflow/workflows/resolve-clarification`
50
+ - `GET/PUT/DELETE /api/workflow/workflows/:id`
51
+ - `POST /api/workflow/workflows/:id/activate` · `/deactivate`
52
+ - `GET /api/workflow/workflows/:id/executions`
53
+ - `GET /api/automations` — combined workflows + triggers + tasks + draft conversations
54
+
55
+ The standard plugin `routes` (`src/routes/index.ts`) are mounted under the plugin-name prefix `/workflow/*` by the runtime:
56
+
57
+ - `GET /workflow/executions` · `/workflow/executions/:id` — list (workflowId/status/limit/cursor) + detail
58
+ - `GET /workflow/nodes` · `/workflow/nodes/available` · `/workflow/nodes/:type`
59
+ - `POST /workflow/workflows/validate`
60
+ - `GET/POST/PUT/PATCH/DELETE /workflow/webhooks/:path` — trigger-node webhooks
56
61
 
57
62
  ## Development
58
63
 
@@ -66,6 +71,3 @@ bun run lint
66
71
 
67
72
  Lint/format is [Biome 2.x](https://biomejs.dev). TypeScript 6+. ESM only.
68
73
 
69
- ## License
70
-
71
- MIT.
@@ -0,0 +1,12 @@
1
+ /**
2
+ * EVAL_CODE — run a snippet of JavaScript in the isolated QuickJS sandbox and
3
+ * return its result (#8914).
4
+ *
5
+ * Reuses the same sandbox the workflow Code node uses (`evalQuickJsCode`): a
6
+ * throwaway QuickJS VM with a 5s deadline, a 32 MiB memory cap, and no host /
7
+ * network / filesystem access. Owner-gated (`minRole: OWNER`) since it executes
8
+ * caller-supplied code, even though that code can't escape the sandbox.
9
+ */
10
+ import type { Action } from '@elizaos/core';
11
+ export declare const evalCodeAction: Action;
12
+ //# sourceMappingURL=eval-code.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eval-code.d.ts","sourceRoot":"","sources":["../../src/actions/eval-code.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,MAAM,EAOP,MAAM,eAAe,CAAC;AAwBvB,eAAO,MAAM,cAAc,EAAE,MAsC5B,CAAC"}
@@ -0,0 +1,59 @@
1
+ /**
2
+ * EVAL_CODE — run a snippet of JavaScript in the isolated QuickJS sandbox and
3
+ * return its result (#8914).
4
+ *
5
+ * Reuses the same sandbox the workflow Code node uses (`evalQuickJsCode`): a
6
+ * throwaway QuickJS VM with a 5s deadline, a 32 MiB memory cap, and no host /
7
+ * network / filesystem access. Owner-gated (`minRole: OWNER`) since it executes
8
+ * caller-supplied code, even though that code can't escape the sandbox.
9
+ */
10
+ import { evalQuickJsCode } from '../services/embedded-workflow-service';
11
+ const EVAL_CODE_CONTEXTS = ['automation', 'tasks', 'agent_internal'];
12
+ function previewResult(value) {
13
+ try {
14
+ if (value === undefined)
15
+ return 'undefined';
16
+ const json = JSON.stringify(value);
17
+ return typeof json === 'string' ? json : String(value);
18
+ }
19
+ catch {
20
+ return String(value);
21
+ }
22
+ }
23
+ export const evalCodeAction = {
24
+ name: 'EVAL_CODE',
25
+ contexts: [...EVAL_CODE_CONTEXTS],
26
+ contextGate: { anyOf: [...EVAL_CODE_CONTEXTS] },
27
+ roleGate: { minRole: 'OWNER' },
28
+ similes: ['RUN_CODE', 'EVALUATE_CODE', 'EXEC_JS', 'RUN_JS', 'EVAL_JS'],
29
+ description: 'Run a snippet of JavaScript in an isolated QuickJS sandbox (5s deadline, ' +
30
+ '32MiB cap, no network/fs/host access) and return its result. Provide a ' +
31
+ '`jsCode` parameter; the body runs inside a function, so `return <value>` ' +
32
+ 'produces the output. Optional `inputJson` is exposed as `$json`.',
33
+ validate: async () => true,
34
+ handler: async (_runtime, _message, _state, options, callback) => {
35
+ const params = (options?.parameters ?? {});
36
+ const jsCode = (params.jsCode ?? params.code ?? '').trim();
37
+ if (!jsCode) {
38
+ const text = 'EVAL_CODE requires a `jsCode` parameter (the JavaScript to run).';
39
+ if (callback)
40
+ await callback({ text });
41
+ return { success: false, text };
42
+ }
43
+ try {
44
+ const result = await evalQuickJsCode(jsCode, params.inputJson);
45
+ const text = previewResult(result);
46
+ if (callback)
47
+ await callback({ text });
48
+ return { success: true, text };
49
+ }
50
+ catch (err) {
51
+ const message = err instanceof Error ? err.message : String(err);
52
+ const text = `EVAL_CODE failed: ${message}`;
53
+ if (callback)
54
+ await callback({ text });
55
+ return { success: false, text };
56
+ }
57
+ },
58
+ };
59
+ //# sourceMappingURL=eval-code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eval-code.js","sourceRoot":"","sources":["../../src/actions/eval-code.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAWH,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAExE,MAAM,kBAAkB,GAAG,CAAC,YAAY,EAAE,OAAO,EAAE,gBAAgB,CAAC,CAAC;AAWrE,SAAS,aAAa,CAAC,KAAc;IACnC,IAAI,CAAC;QACH,IAAI,KAAK,KAAK,SAAS;YAAE,OAAO,WAAW,CAAC;QAC5C,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACnC,OAAO,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACzD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;AACH,CAAC;AAED,MAAM,CAAC,MAAM,cAAc,GAAW;IACpC,IAAI,EAAE,WAAW;IACjB,QAAQ,EAAE,CAAC,GAAG,kBAAkB,CAAC;IACjC,WAAW,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,kBAAkB,CAAC,EAAE;IAC/C,QAAQ,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;IAC9B,OAAO,EAAE,CAAC,UAAU,EAAE,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC;IACtE,WAAW,EACT,2EAA2E;QAC3E,yEAAyE;QACzE,2EAA2E;QAC3E,kEAAkE;IACpE,QAAQ,EAAE,KAAK,IAAI,EAAE,CAAC,IAAI;IAC1B,OAAO,EAAE,KAAK,EACZ,QAAuB,EACvB,QAAgB,EAChB,MAAc,EACd,OAAwB,EACxB,QAA0B,EACH,EAAE;QACzB,MAAM,MAAM,GAAG,CAAC,OAAO,EAAE,UAAU,IAAI,EAAE,CAAuB,CAAC;QACjE,MAAM,MAAM,GAAG,CAAC,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QAC3D,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,GAAG,kEAAkE,CAAC;YAChF,IAAI,QAAQ;gBAAE,MAAM,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;YACvC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;QAClC,CAAC;QACD,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;YAC/D,MAAM,IAAI,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;YACnC,IAAI,QAAQ;gBAAE,MAAM,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;YACvC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QACjC,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,MAAM,OAAO,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YACjE,MAAM,IAAI,GAAG,qBAAqB,OAAO,EAAE,CAAC;YAC5C,IAAI,QAAQ;gBAAE,MAAM,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;YACvC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;QAClC,CAAC;IACH,CAAC;CACF,CAAC"}
@@ -1,2 +1,3 @@
1
+ export { evalCodeAction } from './eval-code';
1
2
  export { workflowAction } from './workflow';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC"}
@@ -1,2 +1,3 @@
1
+ export { evalCodeAction } from './eval-code';
1
2
  export { workflowAction } from './workflow';
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC"}
@@ -2,13 +2,20 @@
2
2
  * WORKFLOW — single umbrella action for workflow lifecycle ops.
3
3
  *
4
4
  * Action-based dispatch (provide `action` parameter):
5
+ * list — list deployed workflows for the current user
6
+ * get — fetch one deployed workflow definition by id
5
7
  * create — generate + deploy a new workflow from a seed prompt
6
8
  * modify — load a deployed workflow into the draft editor by id
7
9
  * activate — activate a workflow by id
8
10
  * deactivate — deactivate a workflow by id
9
11
  * toggle_active — explicit active=true|false (preferred when scripting)
10
12
  * delete — permanently delete a workflow by id
13
+ * run — run a workflow immediately
11
14
  * executions — fetch recent executions for a workflow id
15
+ * revisions — fetch restorable workflow versions
16
+ * restore — restore a workflow by version id
17
+ * diagnose — inspect a failed/recent workflow execution
18
+ * eval_samples — generate JSONL evaluation samples from recent executions
12
19
  *
13
20
  * All actions talk to the in-process `WorkflowService` via
14
21
  * `runtime.getService(WORKFLOW_SERVICE_TYPE)`. There is no HTTP boundary.
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/actions/workflow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EACL,KAAK,MAAM,EAQZ,MAAM,eAAe,CAAC;AAsSvB,eAAO,MAAM,cAAc,EAAE,MAyK5B,CAAC"}
1
+ {"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/actions/workflow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EACL,KAAK,MAAM,EAQZ,MAAM,eAAe,CAAC;AAwqBvB,eAAO,MAAM,cAAc,EAAE,MA4R5B,CAAC"}