@bpmsoftwaresolutions/ai-engine-client 1.1.6 → 1.1.8
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 +6 -0
- package/package.json +1 -1
- package/src/index.js +8 -0
package/README.md
CHANGED
|
@@ -335,6 +335,7 @@ const packet = await client.downloadExternalWorkflowRunArtifact('run-123', 'pack
|
|
|
335
335
|
|---|---|
|
|
336
336
|
| `ping()` | Health check + current workflow name/status. |
|
|
337
337
|
| `startSessionGovernance(body)` | Start a governed external session and return the `session_key` required for mutation-capable assistant turns. |
|
|
338
|
+
| `claimWorkItem(body)` | Bind an oriented, claim-locked context session to a concrete work item and return the active claim envelope. |
|
|
338
339
|
| `persistAssistantTurn(body)` | Persist an assistant turn to durable SQL through the API and return refreshed status projections. |
|
|
339
340
|
| `createExternalAudioRender({ text, voice, model, speed, file })` | Create a client-scoped external audio render using inline text or multipart upload. |
|
|
340
341
|
| `getExternalAudioRender(audioRenderRunId)` | Read external audio render status for the authenticated client. |
|
|
@@ -644,6 +645,11 @@ Engine returns the required gate and next action.
|
|
|
644
645
|
| `getSelfOptimizationBacklogPosture({ snapshotKey })` | Backlog posture. |
|
|
645
646
|
| `getSelfOptimizationPendingHandoffs({ downstreamLane })` | Pending handoffs. |
|
|
646
647
|
|
|
648
|
+
### Governance
|
|
649
|
+
| Method | Description |
|
|
650
|
+
|---|---|
|
|
651
|
+
| `getAntiPatternRules()` | SQL-backed governance anti-pattern rules. |
|
|
652
|
+
|
|
647
653
|
### Design Intelligence
|
|
648
654
|
| Method | Description |
|
|
649
655
|
|---|---|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -156,6 +156,10 @@ export class AIEngineClient {
|
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
+
async getAntiPatternRules() {
|
|
160
|
+
return this._request('/api/governance/anti-pattern-rules');
|
|
161
|
+
}
|
|
162
|
+
|
|
159
163
|
async currentCodebaseShapeStatus() {
|
|
160
164
|
return this._request('/api/operator/current-codebase-shape-status');
|
|
161
165
|
}
|
|
@@ -351,6 +355,10 @@ export class AIEngineClient {
|
|
|
351
355
|
return this._request('/api/work/start', { method: 'POST', body });
|
|
352
356
|
}
|
|
353
357
|
|
|
358
|
+
async claimWorkItem(body = {}) {
|
|
359
|
+
return this._request('/api/governance/claims/claim-work-item', { method: 'POST', body });
|
|
360
|
+
}
|
|
361
|
+
|
|
354
362
|
async completeTurn(body = {}) {
|
|
355
363
|
return this._request('/api/turns/complete', { method: 'POST', body });
|
|
356
364
|
}
|