dominus-sdk-nodejs 1.28.0 → 1.28.3
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/README.md +33 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/namespaces/ai.d.ts +36 -15
- package/dist/namespaces/ai.d.ts.map +1 -1
- package/dist/namespaces/ai.js +39 -42
- package/dist/namespaces/ai.js.map +1 -1
- package/dist/namespaces/artifacts.d.ts +15 -0
- package/dist/namespaces/artifacts.d.ts.map +1 -1
- package/dist/namespaces/artifacts.js +49 -0
- package/dist/namespaces/artifacts.js.map +1 -1
- package/dist/namespaces/redis.d.ts +1 -1
- package/dist/namespaces/redis.js +15 -15
- package/dist/namespaces/redis.js.map +1 -1
- package/dist/namespaces/workflow.d.ts +309 -61
- package/dist/namespaces/workflow.d.ts.map +1 -1
- package/dist/namespaces/workflow.js +330 -67
- package/dist/namespaces/workflow.js.map +1 -1
- package/docs/routes-services.md +3 -3
- package/docs/usage-reference.md +30 -21
- package/docs/workflow-hard-cut-release.md +23 -0
- package/package.json +2 -2
package/docs/usage-reference.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Generated from `src/namespaces/**/*.ts` method signatures and JSDoc comments.
|
|
4
4
|
|
|
5
|
-
Total namespaced commands: **
|
|
5
|
+
Total namespaced commands: **379**.
|
|
6
6
|
|
|
7
7
|
Columns: `Command` is the method path on the singleton, `Params` is the expected parameter signature, `Returns` is the declared TypeScript return type, `Route` is the backend endpoint (or local behavior), and `What it does` is the method summary.
|
|
8
8
|
|
|
@@ -54,20 +54,20 @@ Source: `src/namespaces/redis.ts` (RedisNamespace)
|
|
|
54
54
|
|
|
55
55
|
| Command | Params | Returns | Route | What it does |
|
|
56
56
|
|---|---|---|---|---|
|
|
57
|
-
| `dominus.redis.set` | `key: string, value: unknown, ttl?: number, category?: string` | `Promise<SetResult>` | `POST /api/
|
|
58
|
-
| `dominus.redis.get` | `key: string, options?: { category?: string; nudge?: boolean; ttl?: number }` | `Promise<GetResult>` | `POST /api/
|
|
59
|
-
| `dominus.redis.delete` | `key: string, category?: string` | `Promise<{ deleted: boolean }>` | `POST /api/
|
|
60
|
-
| `dominus.redis.list` | `options?: { prefix?: string; category?: string; limit?: number; cursor?: string; }` | `Promise<ListResult>` | `POST /api/
|
|
61
|
-
| `dominus.redis.mget` | `keys: Array<{ logical_path: string; category?: string }>` | `Promise<{ results: Array<GetResult> }>` | `POST /api/
|
|
62
|
-
| `dominus.redis.setnx` | `key: string, value: unknown, ttl?: number, category?: string` | `Promise<SetnxResult>` | `POST /api/
|
|
63
|
-
| `dominus.redis.incr` | `key: string, delta?: number, ttl?: number, category?: string` | `Promise<IncrResult>` | `POST /api/
|
|
64
|
-
| `dominus.redis.hset` | `key: string, field: string, value: unknown, ttl?: number, category?: string` | `Promise<HsetResult>` | `POST /api/
|
|
65
|
-
| `dominus.redis.hget` | `key: string, field: string, category?: string` | `Promise<GetResult>` | `POST /api/
|
|
66
|
-
| `dominus.redis.hgetall` | `key: string, category?: string` | `Promise<HgetallResult>` | `POST /api/
|
|
67
|
-
| `dominus.redis.hdel` | `key: string, field: string, category?: string` | `Promise<{ deleted: boolean }>` | `POST /api/
|
|
68
|
-
| `dominus.redis.type` | `key: string, category?: string` | `Promise<TypeResult>` | `POST /api/
|
|
69
|
-
| `dominus.redis.smembers` | `key: string, category?: string` | `Promise<SmembersResult>` | `POST /api/
|
|
70
|
-
| `dominus.redis.lrange` | `key: string, options?: { start?: number; stop?: number; category?: string }` | `Promise<LrangeResult>` | `POST /api/
|
|
57
|
+
| `dominus.redis.set` | `key: string, value: unknown, ttl?: number, category?: string` | `Promise<SetResult>` | `POST /api/redis/set` | Set a value with TTL. |
|
|
58
|
+
| `dominus.redis.get` | `key: string, options?: { category?: string; nudge?: boolean; ttl?: number }` | `Promise<GetResult>` | `POST /api/redis/get` | Get a value, optionally refreshing TTL. |
|
|
59
|
+
| `dominus.redis.delete` | `key: string, category?: string` | `Promise<{ deleted: boolean }>` | `POST /api/redis/delete` | Delete a key. |
|
|
60
|
+
| `dominus.redis.list` | `options?: { prefix?: string; category?: string; limit?: number; cursor?: string; }` | `Promise<ListResult>` | `POST /api/redis/list` | List keys by prefix with pagination. |
|
|
61
|
+
| `dominus.redis.mget` | `keys: Array<{ logical_path: string; category?: string }>` | `Promise<{ results: Array<GetResult> }>` | `POST /api/redis/mget` | Get multiple keys at once. |
|
|
62
|
+
| `dominus.redis.setnx` | `key: string, value: unknown, ttl?: number, category?: string` | `Promise<SetnxResult>` | `POST /api/redis/setnx` | Set if not exists (for distributed locks). |
|
|
63
|
+
| `dominus.redis.incr` | `key: string, delta?: number, ttl?: number, category?: string` | `Promise<IncrResult>` | `POST /api/redis/incr` | Increment counter (creates if not exists). |
|
|
64
|
+
| `dominus.redis.hset` | `key: string, field: string, value: unknown, ttl?: number, category?: string` | `Promise<HsetResult>` | `POST /api/redis/hset` | Set a hash field. |
|
|
65
|
+
| `dominus.redis.hget` | `key: string, field: string, category?: string` | `Promise<GetResult>` | `POST /api/redis/hget` | Get a hash field. |
|
|
66
|
+
| `dominus.redis.hgetall` | `key: string, category?: string` | `Promise<HgetallResult>` | `POST /api/redis/hgetall` | Get all fields from a hash. |
|
|
67
|
+
| `dominus.redis.hdel` | `key: string, field: string, category?: string` | `Promise<{ deleted: boolean }>` | `POST /api/redis/hdel` | Delete a hash field. |
|
|
68
|
+
| `dominus.redis.type` | `key: string, category?: string` | `Promise<TypeResult>` | `POST /api/redis/type` | Get the Redis data type of a key. |
|
|
69
|
+
| `dominus.redis.smembers` | `key: string, category?: string` | `Promise<SmembersResult>` | `POST /api/redis/smembers` | Get all members of a Redis set. |
|
|
70
|
+
| `dominus.redis.lrange` | `key: string, options?: { start?: number; stop?: number; category?: string }` | `Promise<LrangeResult>` | `POST /api/redis/lrange` | Get a range of items from a Redis list. |
|
|
71
71
|
|
|
72
72
|
## dominus.files
|
|
73
73
|
|
|
@@ -472,15 +472,15 @@ Source: `src/namespaces/ai.ts` (WorkflowSubNamespace)
|
|
|
472
472
|
|
|
473
473
|
| Command | Params | Returns | Route | What it does |
|
|
474
474
|
|---|---|---|---|---|
|
|
475
|
-
| `dominus.ai.workflow.execute` | `options: WorkflowExecuteOptions` | `Promise<WorkflowResult>` | `POST /api/orchestration/execute` | Execute a multi-agent workflow. |
|
|
476
|
-
| `dominus.ai.workflow.streamExecute` | `options: Omit<WorkflowExecuteOptions, 'mode'>` | `AsyncGenerator<Record<string, unknown>, void, unknown>` | `POST /api/orchestration/execute` | Execute a workflow with SSE streaming. |
|
|
475
|
+
| `dominus.ai.workflow.execute` | `options: WorkflowExecuteOptions` | `Promise<WorkflowResult>` | `POST /api/orchestration/execute` | Execute a raw inline multi-agent workflow definition. |
|
|
476
|
+
| `dominus.ai.workflow.streamExecute` | `options: Omit<WorkflowExecuteOptions, 'mode'>` | `AsyncGenerator<Record<string, unknown>, void, unknown>` | `POST /api/orchestration/execute` | Execute a raw inline workflow definition with SSE streaming. |
|
|
477
477
|
| `dominus.ai.workflow.validate` | `workflowDefinition: WorkflowDefinition \| Record<string, unknown>` | `Promise<WorkflowValidationResult>` | `POST /api/orchestration/validate` | Validate a workflow definition without executing. |
|
|
478
478
|
| `dominus.ai.workflow.messages` | `executionId: string, options?: { count?: number }` | `Promise<Message[]>` | `GET /api/orchestration/messages/${executionId}?count=${count}` | Get agent messages from an execution. |
|
|
479
479
|
| `dominus.ai.workflow.events` | `executionId: string, fromId?: string` | `Promise<Record<string, unknown>[]>` | `GET /api/orchestration/events/${executionId}[?from_id=...]` | Replay events from an execution (for reconnection). |
|
|
480
480
|
| `dominus.ai.workflow.status` | `executionId: string` | `Promise<WorkflowExecutionStatus>` | `GET /api/orchestration/status/${executionId}` | Get async execution status (for polling). |
|
|
481
481
|
| `dominus.ai.workflow.output` | `executionId: string` | `Promise<WorkflowExecutionOutput>` | `GET /api/orchestration/output/${executionId}` | Get final execution output (for async mode). |
|
|
482
482
|
| `dominus.ai.workflow.cancel` | `executionId: string` | `Promise<WorkflowCancelResult>` | `POST /api/orchestration/cancel/${executionId}` | Cancel a running workflow execution. |
|
|
483
|
-
| `dominus.ai.workflow.createRun` | `options: CreateRunOptions` | `Promise<WorkflowRun>` | `POST /api/orchestration/runs` | Phase 1: Create a workflow run and get the run_id. |
|
|
483
|
+
| `dominus.ai.workflow.createRun` | `options: CreateRunOptions` | `Promise<WorkflowRun>` | `POST /api/orchestration/runs` | Phase 1: Create a raw inline workflow run and get the run_id. |
|
|
484
484
|
| `dominus.ai.workflow.startRun` | `runId: string, options?: StartRunOptions` | `Promise<WorkflowResult>` | `POST /api/orchestration/runs/${runId}/start` | Phase 2: Start a workflow run after artifacts are uploaded. |
|
|
485
485
|
| `dominus.ai.workflow.getRun` | `runId: string` | `Promise<WorkflowRun>` | `GET /api/orchestration/runs/${runId}` | Get the run status and details. |
|
|
486
486
|
| `dominus.ai.workflow.getManifest` | `runId: string` | `Promise<RunManifest>` | `GET /api/orchestration/runs/${runId}/manifest` | Get the initialization manifest for a run. |
|
|
@@ -508,9 +508,18 @@ Source: `src/namespaces/workflow.ts` (WorkflowNamespace)
|
|
|
508
508
|
| `dominus.workflow.listTemplates` | `none` | `Promise<WorkflowMetadata[]>` | `GET /api/workflow/templates` | List available templates. |
|
|
509
509
|
| `dominus.workflow.getTemplate` | `templateId: string, options?: { includeContent?: boolean }` | `Promise<WorkflowWithContent>` | `GET /api/workflow/templates/${templateId}[?include_content=true]` | Get a template by ID. |
|
|
510
510
|
| `dominus.workflow.copyTemplate` | `templateId: string, options?: { name?: string; tenantSlug?: string }` | `Promise<WorkflowMetadata>` | `POST /api/workflow/templates/${templateId}/copy` | Copy a template to create a new workflow. |
|
|
511
|
-
| `dominus.workflow.
|
|
512
|
-
| `dominus.workflow.
|
|
513
|
-
| `dominus.workflow.
|
|
511
|
+
| `dominus.workflow.createRun` | `options: CreateWorkflowRunOptions` | `Promise<WorkflowRunRecord>` | `POST /api/workflow/runs` | Create a saved-workflow run through the workflow-manager facade. |
|
|
512
|
+
| `dominus.workflow.getRun` | `runId: string` | `Promise<WorkflowRunRecord>` | `GET /api/workflow/runs/${runId}` | Get saved-workflow run state. |
|
|
513
|
+
| `dominus.workflow.getManifest` | `runId: string` | `Promise<WorkflowRunManifest>` | `GET /api/workflow/runs/${runId}/manifest` | Get the artifact manifest for a saved-workflow run. |
|
|
514
|
+
| `dominus.workflow.registerArtifact` | `runId: string, options: RegisterWorkflowArtifactOptions` | `Promise<WorkflowRunRecord>` | `POST /api/workflow/runs/${runId}/artifacts` | Register a source artifact with a saved-workflow run. |
|
|
515
|
+
| `dominus.workflow.validateRun` | `runId: string` | `Promise<WorkflowRunValidationResult>` | `POST /api/workflow/runs/${runId}/validate` | Validate that a saved-workflow run is ready to start. |
|
|
516
|
+
| `dominus.workflow.startRun` | `runId: string, options?: StartWorkflowRunOptions` | `Promise<WorkflowRunStartResult>` | `POST /api/workflow/runs/${runId}/start` | Start a saved-workflow run. |
|
|
517
|
+
| `dominus.workflow.streamStartRun` | `runId: string, options?: Omit<StartWorkflowRunOptions, 'mode'>` | `AsyncGenerator<Record<string, unknown>, void, unknown>` | `POST /api/workflow/runs/${runId}/start` | Start a saved-workflow run with SSE streaming. |
|
|
518
|
+
| `dominus.workflow.status` | `executionId: string` | `Promise<WorkflowExecutionStatusResult>` | `GET /api/workflow/executions/${executionId}/status` | Get execution status for a started saved-workflow run. |
|
|
519
|
+
| `dominus.workflow.output` | `executionId: string` | `Promise<WorkflowExecutionOutputResult>` | `GET /api/workflow/executions/${executionId}/output` | Get final execution output for a started saved-workflow run. |
|
|
520
|
+
| `dominus.workflow.messages` | `executionId: string, options?: { count?: number }` | `Promise<Message[]>` | `GET /api/workflow/executions/${executionId}/messages?count=${count}` | Get execution messages for a started saved-workflow run. |
|
|
521
|
+
| `dominus.workflow.events` | `executionId: string, options?: { fromId?: string; count?: number }` | `Promise<Record<string, unknown>[]>` | `GET /api/workflow/executions/${executionId}/events[?from_id=...&count=...]` | Replay execution events for a started saved-workflow run. |
|
|
522
|
+
| `dominus.workflow.cancel` | `executionId: string` | `Promise<CancelWorkflowExecutionResult>` | `POST /api/workflow/executions/${executionId}/cancel` | Cancel a started saved-workflow execution. |
|
|
514
523
|
| `dominus.workflow.seed` | `options?: SeedOptions` | `Promise<SeedResult>` | `POST /api/workflow/admin/seed` | Seed workflow storage with base templates and builtin tools. |
|
|
515
524
|
| `dominus.workflow.factoryReset` | `options: FactoryResetOptions` | `Promise<FactoryResetResult>` | `POST /api/workflow/admin/factory-reset` | Factory reset all workflow data - deletes workflows, tools, and B2 objects. |
|
|
516
525
|
| `dominus.workflow.listTools` | `options?: ListToolsOptions` | `Promise<Tool[]>` | `GET /api/workflow/tools?{filters}` | List tools in the registry. |
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Workflow Hard-Cut Release Notes
|
|
2
|
+
|
|
3
|
+
## Release Scope
|
|
4
|
+
|
|
5
|
+
This SDK release aligns the public guidance with the saved-workflow facade, the structured deterministic orchestration cutover, and the native pipeline runner.
|
|
6
|
+
|
|
7
|
+
Keep describing the workflow surfaces this way:
|
|
8
|
+
|
|
9
|
+
- `dominus.workflow.*` is the saved-workflow facade
|
|
10
|
+
- `dominus.ai.workflow.*` is raw inline orchestration only
|
|
11
|
+
- `dominus.workflow.executePipeline()` is the supported ordered-pipeline surface
|
|
12
|
+
|
|
13
|
+
## Release Checklist
|
|
14
|
+
|
|
15
|
+
1. Build and test the SDK
|
|
16
|
+
2. Verify lifecycle examples still use `createRun -> registerArtifact -> validateRun -> startRun`
|
|
17
|
+
3. Publish release notes that describe the hard cutover and the native pipeline runner surface
|
|
18
|
+
4. Confirm examples use the saved-workflow run lifecycle and `executePipeline()`
|
|
19
|
+
|
|
20
|
+
## Rollback
|
|
21
|
+
|
|
22
|
+
- Downgrade target: the previously published production SDK version
|
|
23
|
+
- Rollback trigger: customer reports that saved-workflow runs or native pipelines cannot start
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dominus-sdk-nodejs",
|
|
3
|
-
"version": "1.28.
|
|
3
|
+
"version": "1.28.3",
|
|
4
4
|
"description": "Node.js SDK for the Dominus Orchestrator Platform",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dev": "tsc --watch",
|
|
21
21
|
"clean": "rm -rf dist",
|
|
22
22
|
"prepublishOnly": "npm run build",
|
|
23
|
-
"test": "node --test",
|
|
23
|
+
"test": "npm run build && node --test tests/workflow-lifecycle.test.js",
|
|
24
24
|
"lint": "tsc --noEmit"
|
|
25
25
|
},
|
|
26
26
|
"keywords": [
|