@elizaos/plugin-workflow 2.0.0-beta.1 → 2.0.3-beta.6
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.
- package/LICENSE +21 -0
- package/README.md +28 -26
- package/dist/actions/eval-code.d.ts +12 -0
- package/dist/actions/eval-code.d.ts.map +1 -0
- package/dist/actions/eval-code.js +59 -0
- package/dist/actions/eval-code.js.map +1 -0
- package/dist/actions/index.d.ts +1 -0
- package/dist/actions/index.d.ts.map +1 -1
- package/dist/actions/index.js +1 -0
- package/dist/actions/index.js.map +1 -1
- package/dist/actions/workflow.d.ts +7 -0
- package/dist/actions/workflow.d.ts.map +1 -1
- package/dist/actions/workflow.js +462 -10
- package/dist/actions/workflow.js.map +1 -1
- package/dist/db/schema.d.ts +196 -0
- package/dist/db/schema.d.ts.map +1 -1
- package/dist/db/schema.js +23 -0
- package/dist/db/schema.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -64
- package/dist/index.js.map +1 -1
- package/dist/lib/automations-builder.d.ts.map +1 -1
- package/dist/lib/automations-builder.js +10 -35
- package/dist/lib/automations-builder.js.map +1 -1
- package/dist/lib/automations-types.d.ts +2 -2
- package/dist/lib/automations-types.d.ts.map +1 -1
- package/dist/lib/automations-types.js.map +1 -1
- package/dist/lib/index.d.ts +0 -2
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +1 -2
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/workflow-clarification.d.ts +2 -2
- package/dist/lib/workflow-clarification.d.ts.map +1 -1
- package/dist/lib/workflow-clarification.js +15 -11
- package/dist/lib/workflow-clarification.js.map +1 -1
- package/dist/plugin-routes.d.ts.map +1 -1
- package/dist/plugin-routes.js +6 -0
- package/dist/plugin-routes.js.map +1 -1
- package/dist/providers/activeWorkflows.js +2 -2
- package/dist/providers/activeWorkflows.js.map +1 -1
- package/dist/providers/workflowStatus.js +1 -1
- package/dist/providers/workflowStatus.js.map +1 -1
- package/dist/routes/workflow-routes.d.ts.map +1 -1
- package/dist/routes/workflow-routes.js +68 -2
- package/dist/routes/workflow-routes.js.map +1 -1
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/workflows.js +5 -1
- package/dist/routes/workflows.js.map +1 -1
- package/dist/services/embedded-workflow-service.d.ts +74 -17
- package/dist/services/embedded-workflow-service.d.ts.map +1 -1
- package/dist/services/embedded-workflow-service.js +343 -149
- package/dist/services/embedded-workflow-service.js.map +1 -1
- package/dist/services/smithers-runtime.d.ts +47 -0
- package/dist/services/smithers-runtime.d.ts.map +1 -0
- package/dist/services/smithers-runtime.js +444 -0
- package/dist/services/smithers-runtime.js.map +1 -0
- package/dist/services/workflow-credential-store.js +1 -1
- package/dist/services/workflow-credential-store.js.map +1 -1
- package/dist/services/workflow-dispatch.d.ts +31 -1
- package/dist/services/workflow-dispatch.d.ts.map +1 -1
- package/dist/services/workflow-dispatch.js +75 -10
- package/dist/services/workflow-dispatch.js.map +1 -1
- package/dist/services/workflow-service.d.ts +27 -1
- package/dist/services/workflow-service.d.ts.map +1 -1
- package/dist/services/workflow-service.js +133 -11
- package/dist/services/workflow-service.js.map +1 -1
- package/dist/trigger-routes.d.ts +2 -18
- package/dist/trigger-routes.d.ts.map +1 -1
- package/dist/trigger-routes.js +11 -39
- package/dist/trigger-routes.js.map +1 -1
- package/dist/types/index.d.ts +82 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/workflow-contracts.d.ts +118 -0
- package/dist/types/workflow-contracts.d.ts.map +1 -0
- package/dist/types/workflow-contracts.js +2 -0
- package/dist/types/workflow-contracts.js.map +1 -0
- package/dist/utils/catalog.js +2 -2
- package/dist/utils/catalog.js.map +1 -1
- package/dist/utils/clarification.d.ts +1 -1
- package/dist/utils/clarification.d.ts.map +1 -1
- package/dist/utils/clarification.js +15 -4
- package/dist/utils/clarification.js.map +1 -1
- package/dist/utils/context.js +1 -1
- package/dist/utils/context.js.map +1 -1
- package/dist/utils/evaluation-samples.d.ts +6 -0
- package/dist/utils/evaluation-samples.d.ts.map +1 -0
- package/dist/utils/evaluation-samples.js +216 -0
- package/dist/utils/evaluation-samples.js.map +1 -0
- package/dist/utils/execution-diagnostics.d.ts +26 -0
- package/dist/utils/execution-diagnostics.d.ts.map +1 -0
- package/dist/utils/execution-diagnostics.js +159 -0
- package/dist/utils/execution-diagnostics.js.map +1 -0
- package/dist/utils/generation.d.ts.map +1 -1
- package/dist/utils/generation.js +134 -19
- package/dist/utils/generation.js.map +1 -1
- package/dist/utils/host-capabilities.d.ts.map +1 -1
- package/dist/utils/host-capabilities.js +20 -5
- package/dist/utils/host-capabilities.js.map +1 -1
- package/dist/utils/inferSyntheticOutputSchema.js +3 -3
- package/dist/utils/inferSyntheticOutputSchema.js.map +1 -1
- package/dist/utils/outputSchema.js +1 -1
- package/dist/utils/outputSchema.js.map +1 -1
- package/dist/utils/validateAndRepair.js +10 -10
- package/dist/utils/validateAndRepair.js.map +1 -1
- package/dist/utils/workflow-prompts/draftIntent.d.ts +1 -1
- package/dist/utils/workflow-prompts/draftIntent.d.ts.map +1 -1
- package/dist/utils/workflow-prompts/draftIntent.js +1 -1
- package/dist/utils/workflow-prompts/keywordExtraction.d.ts +1 -1
- package/dist/utils/workflow-prompts/keywordExtraction.d.ts.map +1 -1
- package/dist/utils/workflow-prompts/keywordExtraction.js +1 -1
- package/dist/utils/workflow-prompts/workflowGeneration.d.ts +1 -1
- package/dist/utils/workflow-prompts/workflowGeneration.d.ts.map +1 -1
- package/dist/utils/workflow-prompts/workflowGeneration.js +4 -4
- package/dist/utils/workflow-prompts/workflowMatching.d.ts +1 -1
- package/dist/utils/workflow-prompts/workflowMatching.d.ts.map +1 -1
- package/dist/utils/workflow-prompts/workflowMatching.js +1 -1
- package/dist/utils/workflow.d.ts +1 -0
- package/dist/utils/workflow.d.ts.map +1 -1
- package/dist/utils/workflow.js +44 -8
- package/dist/utils/workflow.js.map +1 -1
- package/package.json +27 -8
- package/registry-entry.json +25 -0
- package/src/actions/eval-code.ts +81 -0
- package/src/actions/index.ts +1 -0
- package/src/actions/workflow.ts +518 -10
- package/src/db/schema.ts +31 -0
- package/src/index.ts +9 -82
- package/src/lib/automations-builder.ts +11 -35
- package/src/lib/automations-types.ts +1 -2
- package/src/lib/index.ts +0 -8
- package/src/lib/workflow-clarification.ts +18 -13
- package/src/plugin-routes.ts +6 -0
- package/src/providers/activeWorkflows.ts +2 -2
- package/src/providers/workflowStatus.ts +1 -1
- package/src/routes/workflow-routes.ts +100 -2
- package/src/routes/workflows.ts +5 -1
- package/src/services/embedded-workflow-service.ts +447 -172
- package/src/services/smithers-runtime.ts +526 -0
- package/src/services/workflow-credential-store.ts +1 -1
- package/src/services/workflow-dispatch.ts +116 -13
- package/src/services/workflow-service.ts +186 -10
- package/src/trigger-routes.ts +12 -70
- package/src/types/index.ts +94 -2
- package/src/types/workflow-contracts.ts +166 -0
- package/src/utils/catalog.ts +2 -2
- package/src/utils/clarification.ts +19 -5
- package/src/utils/context.ts +1 -1
- package/src/utils/evaluation-samples.ts +239 -0
- package/src/utils/execution-diagnostics.ts +192 -0
- package/src/utils/generation.ts +224 -32
- package/src/utils/host-capabilities.ts +21 -5
- package/src/utils/inferSyntheticOutputSchema.ts +3 -3
- package/src/utils/outputSchema.ts +1 -1
- package/src/utils/validateAndRepair.ts +10 -10
- package/src/utils/workflow-prompts/draftIntent.ts +1 -1
- package/src/utils/workflow-prompts/keywordExtraction.ts +1 -1
- package/src/utils/workflow-prompts/workflowGeneration.ts +4 -4
- package/src/utils/workflow-prompts/workflowMatching.ts +1 -1
- package/src/utils/workflow.ts +56 -8
- package/dist/lib/legacy-task-migration.d.ts +0 -20
- package/dist/lib/legacy-task-migration.d.ts.map +0 -1
- package/dist/lib/legacy-task-migration.js +0 -110
- package/dist/lib/legacy-task-migration.js.map +0 -1
- package/dist/lib/legacy-text-trigger-migration.d.ts +0 -18
- package/dist/lib/legacy-text-trigger-migration.d.ts.map +0 -1
- package/dist/lib/legacy-text-trigger-migration.js +0 -131
- package/dist/lib/legacy-text-trigger-migration.js.map +0 -1
- package/src/lib/legacy-task-migration.ts +0 -143
- 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` |
|
|
18
|
-
| `workflowStatusProvider` |
|
|
19
|
-
| `activeWorkflowsProvider` |
|
|
20
|
-
| `pendingDraftProvider` |
|
|
21
|
-
| Routes |
|
|
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
|
|
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
|
|
37
|
-
1.
|
|
38
|
-
2.
|
|
39
|
-
3.
|
|
40
|
-
4.
|
|
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
|
-
|
|
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
|
|
48
|
-
- `POST /api/workflow/workflows` —
|
|
49
|
-
- `
|
|
50
|
-
- `PUT
|
|
51
|
-
- `
|
|
52
|
-
- `
|
|
53
|
-
- `GET /api/
|
|
54
|
-
|
|
55
|
-
|
|
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"}
|
package/dist/actions/index.d.ts
CHANGED
|
@@ -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"}
|
package/dist/actions/index.js
CHANGED
|
@@ -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
|
|
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"}
|