@bpmsoftwaresolutions/ai-engine-client 1.1.8 → 1.1.9
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 +2 -0
- package/package.json +1 -1
- package/src/index.js +14 -0
package/README.md
CHANGED
|
@@ -385,6 +385,8 @@ Low-level compatibility methods:
|
|
|
385
385
|
| `submitUxGateRemediation(body)` / `client.loga.submitUxGateRemediation(body)` | `POST /api/loga/ux-gate-remediations` | Create a governed SQL-backed remediation ticket for a UX gate failure. |
|
|
386
386
|
| `listUxGateRemediations({ projectionType, status })` / `client.loga.listUxGateRemediations(...)` | `GET /api/loga/ux-gate-remediations` | List governed UX gate remediation tickets. |
|
|
387
387
|
| `getUxGateRemediation(remediationId)` / `client.loga.getUxGateRemediation(...)` | `GET /api/loga/ux-gate-remediations/:remediationId` | Read one governed UX gate remediation ticket. |
|
|
388
|
+
| `promoteUxGateRemediationImplementationCandidate(remediationId, { promotedBy })` / `client.loga.promoteUxGateRemediationImplementationCandidate(...)` | `POST /api/loga/ux-gate-remediations/:remediationId/implementation-candidate` | Promote a governed UX remediation ticket into a durable implementation packet candidate. |
|
|
389
|
+
| `getLogaUxGateRemediationProjection(remediationId)` / `client.loga.getUxGateRemediationProjection(...)` | `GET /api/operator/projections/ux-gate-remediations/:remediationId` | Review a governed UX remediation ticket and its linked implementation candidate as a LOGA runtime document. |
|
|
388
390
|
|
|
389
391
|
These methods return markdown as `text` and expose projection headers as top-level fields plus `provenance`. LOGA should render the markdown emitted by AI Engine and use these metadata fields for contract validation, refresh behavior, evidence display, and action choreography.
|
|
390
392
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -111,6 +111,9 @@ export class AIEngineClient {
|
|
|
111
111
|
submitUxGateRemediation: (payload) => this.submitUxGateRemediation(payload),
|
|
112
112
|
listUxGateRemediations: (query) => this.listUxGateRemediations(query),
|
|
113
113
|
getUxGateRemediation: (remediationId) => this.getUxGateRemediation(remediationId),
|
|
114
|
+
promoteUxGateRemediationImplementationCandidate: (remediationId, payload) =>
|
|
115
|
+
this.promoteUxGateRemediationImplementationCandidate(remediationId, payload),
|
|
116
|
+
getUxGateRemediationProjection: (remediationId) => this.getLogaUxGateRemediationProjection(remediationId),
|
|
114
117
|
};
|
|
115
118
|
}
|
|
116
119
|
|
|
@@ -908,6 +911,17 @@ export class AIEngineClient {
|
|
|
908
911
|
return this._request(`/api/loga/ux-gate-remediations/${remediationId}`);
|
|
909
912
|
}
|
|
910
913
|
|
|
914
|
+
async promoteUxGateRemediationImplementationCandidate(remediationId, { promotedBy } = {}) {
|
|
915
|
+
return this._request(`/api/loga/ux-gate-remediations/${remediationId}/implementation-candidate`, {
|
|
916
|
+
method: 'POST',
|
|
917
|
+
body: { promotedBy },
|
|
918
|
+
});
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
async getLogaUxGateRemediationProjection(remediationId) {
|
|
922
|
+
return this._requestLogaProjection(`/api/operator/projections/ux-gate-remediations/${remediationId}`);
|
|
923
|
+
}
|
|
924
|
+
|
|
911
925
|
// ─── Roadmaps ──────────────────────────────────────────────────────────────
|
|
912
926
|
|
|
913
927
|
async listProjectRoadmaps({ includeInactive } = {}) {
|