@bpmsoftwaresolutions/ai-engine-client 1.0.0-beta.12 → 1.0.0-beta.13

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 CHANGED
@@ -112,6 +112,10 @@ console.log(logaRoadmap.projectionType, logaRoadmap.projectionVersion);
112
112
  console.log(logaRoadmap.provenance.sourceTruth, logaRoadmap.correlationId);
113
113
  console.log(logaRoadmap.text);
114
114
 
115
+ const logaRoadmapItem = await client.getLogaRoadmapItemProjection(projectId, 'execute-scope-1');
116
+ console.log(logaRoadmapItem.projectionType, logaRoadmapItem.provenance.sourceVersion);
117
+ console.log(logaRoadmapItem.text);
118
+
115
119
  const audio = await client.downloadExternalAudioRender(audioRenderRunId);
116
120
  await fs.promises.writeFile('render.mp3', Buffer.from(audio.arrayBuffer));
117
121
  ```
@@ -374,6 +378,7 @@ Low-level compatibility methods:
374
378
  | `getLogaOperatorHomeProjection()` | `GET /api/operator/projections/home` | Governed operator home runtime markdown document. |
375
379
  | `getLogaProjectCatalogProjection()` | `GET /api/operator/projections/project-catalog` | Governed project catalog runtime markdown document. |
376
380
  | `getLogaProjectRoadmapProjection(projectId)` | `GET /api/operator/projections/projects/:projectId/roadmap.md` | Governed project roadmap runtime markdown document. |
381
+ | `getLogaRoadmapItemProjection(projectId, itemKey)` | `GET /api/operator/projections/projects/:projectId/roadmap/items/:itemKey` | Governed roadmap item runtime markdown document with item-level navigation, related documents, actions, and evidence. |
377
382
  | `getLogaWorkflowRunProjection(workflowRunId)` | `GET /api/operator/projections/workflow-runs/:workflowRunId` | Governed workflow run runtime markdown document. |
378
383
  | `getLogaEvidencePacketProjection(packetKey)` | `GET /api/operator/projections/evidence-packets/:packetKey` | Governed evidence packet runtime markdown document. |
379
384
 
@@ -506,6 +511,9 @@ These methods return markdown as `text` and expose projection headers as top-lev
506
511
  | `completeImplementationTask(taskId, { completedBy })` | Mark complete. |
507
512
 
508
513
  ### Governed Implementation
514
+
515
+ Current package version: `1.0.0-beta.13`.
516
+
509
517
  | Method | Description |
510
518
  |---|---|
511
519
  | `importImplementationPacket(body)` | Import an implementation packet. |
@@ -521,6 +529,26 @@ These methods return markdown as `text` and expose projection headers as top-lev
521
529
  | `getWorkflowImplementationRoadmap(workflowId)` | Workflow-linked roadmap. |
522
530
  | `getWorkflowResumeContext(workflowId)` | Resume context. |
523
531
 
532
+ Governed roadmap item mutations must carry claim context. Include the active
533
+ claim in the request body:
534
+
535
+ ```js
536
+ await client.updateImplementationItemStatus(itemId, {
537
+ status: 'done',
538
+ status_reason: 'Evidence attached and gates passed.',
539
+ updated_by: 'operator:loga',
540
+ claimed_item_id: itemId,
541
+ agent_session_id: 'agent-session-id',
542
+ claim_workflow_run_id: 'workflow-run-id',
543
+ });
544
+ ```
545
+
546
+ The same claim envelope applies to `addImplementationItemEvidence()`,
547
+ `addImplementationItemActivity()`, and `updateAcceptanceCheckStatus()`. If the
548
+ claim is missing, AI Engine returns `409` with `error:
549
+ missing_governed_claim`. If the claim exists but unresolved gates remain, AI
550
+ Engine returns the required gate and next action.
551
+
524
552
  ### Skills
525
553
  | Method | Description |
526
554
  |---|---|
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmsoftwaresolutions/ai-engine-client",
3
- "version": "1.0.0-beta.12",
3
+ "version": "1.0.0-beta.13",
4
4
  "description": "Thin npm client for the AI Engine operator and retrieval APIs",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
package/src/index.js CHANGED
@@ -765,6 +765,10 @@ export class AIEngineClient {
765
765
  return this._requestLogaProjection(`/api/operator/projections/projects/${projectId}/roadmap.md`);
766
766
  }
767
767
 
768
+ async getLogaRoadmapItemProjection(projectId, itemKey) {
769
+ return this._requestLogaProjection(`/api/operator/projections/projects/${projectId}/roadmap/items/${itemKey}`);
770
+ }
771
+
768
772
  async getLogaWorkflowRunProjection(workflowRunId) {
769
773
  return this._requestLogaProjection(`/api/operator/projections/workflow-runs/${workflowRunId}`);
770
774
  }