@bpmsoftwaresolutions/ai-engine-client 1.0.0-beta.2 → 1.0.0-beta.4
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 +3 -0
- package/package.json +1 -1
- package/src/index.js +23 -0
package/README.md
CHANGED
|
@@ -180,6 +180,7 @@ const client = AIEngineClient.fromEnv();
|
|
|
180
180
|
| `getProjectRoadmap(projectId)` | Get full roadmap for a project. |
|
|
181
181
|
| `getProjectRoadmapSummary(projectId)` | Roadmap summary. |
|
|
182
182
|
| `getProjectRoadmapActiveItem(projectId)` | Current active roadmap item. |
|
|
183
|
+
| `ensureProjectRoadmapTaskSurface(projectId, { requestedBy, assignedTo, createAcceptanceSubtasks })` | Materialize the active roadmap item's parent task and acceptance subtasks. |
|
|
183
184
|
| `listProjectOpenTasks(projectId)` | Open tasks for a project. |
|
|
184
185
|
| `getProjectPerformanceMetrics(projectId, { workflowId, workflowRunId, sinceUtc })` | Performance metrics. |
|
|
185
186
|
|
|
@@ -187,6 +188,8 @@ const client = AIEngineClient.fromEnv();
|
|
|
187
188
|
| Method | Description |
|
|
188
189
|
|---|---|
|
|
189
190
|
| `createImplementationTask(implementationItemId, { title, implementationPacketId, ... })` | Create a task on a roadmap item. |
|
|
191
|
+
|
|
192
|
+
`createProjectCharter()` now also accepts `linkedWorkflowSlug`, `ensureTaskSurface`, `assignedTo`, and `createAcceptanceSubtasks` so new API-chartered projects can immediately surface an attachable implementation item and durable task tree.
|
|
190
193
|
| `listImplementationTasks(implementationItemId)` | List tasks. |
|
|
191
194
|
| `listImplementationSubtasks(taskId)` | List subtasks. |
|
|
192
195
|
| `updateImplementationTask(taskId, updates)` | Update a task. |
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -425,9 +425,13 @@ export class AIEngineClient {
|
|
|
425
425
|
outOfScope = [],
|
|
426
426
|
assumptions = [],
|
|
427
427
|
linkedWorkflows = [],
|
|
428
|
+
linkedWorkflowSlug,
|
|
428
429
|
testingStrategy = {},
|
|
429
430
|
initialContext = {},
|
|
430
431
|
requestedBy,
|
|
432
|
+
ensureTaskSurface = true,
|
|
433
|
+
assignedTo,
|
|
434
|
+
createAcceptanceSubtasks = true,
|
|
431
435
|
} = {}) {
|
|
432
436
|
return this._request('/api/projects/charter', {
|
|
433
437
|
method: 'POST',
|
|
@@ -442,9 +446,13 @@ export class AIEngineClient {
|
|
|
442
446
|
out_of_scope: outOfScope,
|
|
443
447
|
assumptions,
|
|
444
448
|
linked_workflows: linkedWorkflows,
|
|
449
|
+
linked_workflow_slug: linkedWorkflowSlug,
|
|
445
450
|
testing_strategy: testingStrategy,
|
|
446
451
|
initial_context: initialContext,
|
|
447
452
|
requested_by: requestedBy,
|
|
453
|
+
ensure_task_surface: ensureTaskSurface,
|
|
454
|
+
assigned_to: assignedTo,
|
|
455
|
+
create_acceptance_subtasks: createAcceptanceSubtasks,
|
|
448
456
|
},
|
|
449
457
|
});
|
|
450
458
|
}
|
|
@@ -484,6 +492,21 @@ export class AIEngineClient {
|
|
|
484
492
|
return this._request(`/api/operator/projects/${projectId}/implementation-roadmap/active-item`);
|
|
485
493
|
}
|
|
486
494
|
|
|
495
|
+
async ensureProjectRoadmapTaskSurface(projectId, {
|
|
496
|
+
requestedBy,
|
|
497
|
+
assignedTo,
|
|
498
|
+
createAcceptanceSubtasks = true,
|
|
499
|
+
} = {}) {
|
|
500
|
+
return this._request(`/api/operator/projects/${projectId}/implementation-roadmap/task-surface`, {
|
|
501
|
+
method: 'POST',
|
|
502
|
+
body: {
|
|
503
|
+
requested_by: requestedBy,
|
|
504
|
+
assigned_to: assignedTo,
|
|
505
|
+
create_acceptance_subtasks: createAcceptanceSubtasks,
|
|
506
|
+
},
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
|
|
487
510
|
async listProjectOpenTasks(projectId) {
|
|
488
511
|
return this._request(`/api/operator/projects/${projectId}/open-tasks`);
|
|
489
512
|
}
|