orchestrator-client 5.14.0 → 5.15.0
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/dist/index.cjs +20 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -887,6 +887,13 @@ var OrchestratorAsync = class {
|
|
|
887
887
|
});
|
|
888
888
|
return { message: data.message ?? "" };
|
|
889
889
|
}
|
|
890
|
+
async approveVSAAction(taskId, approved = true) {
|
|
891
|
+
const data = await this._post("/task/vsa/action", {
|
|
892
|
+
task_id: taskId,
|
|
893
|
+
approved
|
|
894
|
+
});
|
|
895
|
+
return { message: data.message ?? "" };
|
|
896
|
+
}
|
|
890
897
|
async deleteVSA(taskId) {
|
|
891
898
|
const data = await this._post("/task/vsa/delete", {
|
|
892
899
|
task_id: taskId
|
|
@@ -1340,6 +1347,16 @@ var OrchestratorAsync = class {
|
|
|
1340
1347
|
if (settings.localizationTargets !== void 0) {
|
|
1341
1348
|
body.localization_targets = settings.localizationTargets;
|
|
1342
1349
|
}
|
|
1350
|
+
if (settings.workflowModelOverrides != null) {
|
|
1351
|
+
body.workflow_model_overrides = settings.workflowModelOverrides.map(
|
|
1352
|
+
(rule) => ({
|
|
1353
|
+
workflow_id: rule.workflowId,
|
|
1354
|
+
variant: rule.variant ?? null,
|
|
1355
|
+
agent_model_id: rule.agentModelId,
|
|
1356
|
+
orchestrator_model_id: rule.orchestratorModelId
|
|
1357
|
+
})
|
|
1358
|
+
);
|
|
1359
|
+
}
|
|
1343
1360
|
if (settings.skillDescriptionMaxChars !== void 0) {
|
|
1344
1361
|
body.skill_description_max_chars = settings.skillDescriptionMaxChars;
|
|
1345
1362
|
}
|
|
@@ -1718,6 +1735,9 @@ var Orchestrator = class {
|
|
|
1718
1735
|
stopVSA(taskId) {
|
|
1719
1736
|
return runSync(this._async.stopVSA(taskId));
|
|
1720
1737
|
}
|
|
1738
|
+
approveVSAAction(taskId, approved = true) {
|
|
1739
|
+
return runSync(this._async.approveVSAAction(taskId, approved));
|
|
1740
|
+
}
|
|
1721
1741
|
deleteVSA(taskId) {
|
|
1722
1742
|
return runSync(this._async.deleteVSA(taskId));
|
|
1723
1743
|
}
|