@bpmsoftwaresolutions/ai-engine-client 1.1.4 → 1.1.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +29 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmsoftwaresolutions/ai-engine-client",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
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
@@ -313,6 +313,35 @@ export class AIEngineClient {
313
313
  });
314
314
  }
315
315
 
316
+ async startReviewGovernance({
317
+ intent,
318
+ objective,
319
+ readScope,
320
+ requiredToolKeys,
321
+ sessionKey,
322
+ workflowRunId,
323
+ workflowId,
324
+ workflowSlug,
325
+ turnPersisted,
326
+ ...rest
327
+ } = {}) {
328
+ return this._request('/api/v1/session-governance/review/startup', {
329
+ method: 'POST',
330
+ body: {
331
+ ...rest,
332
+ intent: intent ?? 'review code',
333
+ objective: objective ?? intent,
334
+ read_scope: readScope,
335
+ required_tool_keys: requiredToolKeys,
336
+ session_key: sessionKey,
337
+ workflow_run_id: workflowRunId,
338
+ workflow_id: workflowId,
339
+ workflow_slug: workflowSlug ?? 'code-review/read-only',
340
+ turn_persisted: turnPersisted,
341
+ },
342
+ });
343
+ }
344
+
316
345
  async startWork(body = {}) {
317
346
  return this._request('/api/work/start', { method: 'POST', body });
318
347
  }