orchestrator-client 5.9.2 → 5.11.7
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 +45 -114
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -46
- package/dist/index.d.ts +34 -46
- package/dist/index.js +45 -114
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -875,11 +875,12 @@ var OrchestratorAsync = class {
|
|
|
875
875
|
});
|
|
876
876
|
return buildVsaTaskList(data);
|
|
877
877
|
}
|
|
878
|
-
async searchVSATasks(userId, query, limit) {
|
|
878
|
+
async searchVSATasks(userId, query, limit, offset) {
|
|
879
879
|
const data = await this._get("/task/vsa/search", {
|
|
880
880
|
user_id: userId,
|
|
881
881
|
query,
|
|
882
|
-
limit
|
|
882
|
+
limit,
|
|
883
|
+
offset
|
|
883
884
|
});
|
|
884
885
|
return buildVsaTaskList(data);
|
|
885
886
|
}
|
|
@@ -896,85 +897,6 @@ var OrchestratorAsync = class {
|
|
|
896
897
|
};
|
|
897
898
|
}
|
|
898
899
|
// ------------------------------------------------------------------
|
|
899
|
-
// MIO (self_managed) workflow
|
|
900
|
-
// ------------------------------------------------------------------
|
|
901
|
-
async sendMioMessage(taskId, message, attachmentIds) {
|
|
902
|
-
const data = await this._post(
|
|
903
|
-
"/task/self_managed/message",
|
|
904
|
-
{ task_id: taskId, message, attachment_ids: attachmentIds }
|
|
905
|
-
);
|
|
906
|
-
return { message: data.message ?? "" };
|
|
907
|
-
}
|
|
908
|
-
async approveMioAction(taskId, approved = true, feedback) {
|
|
909
|
-
const data = await this._post(
|
|
910
|
-
"/task/self_managed/action",
|
|
911
|
-
{ task_id: taskId, approved, feedback }
|
|
912
|
-
);
|
|
913
|
-
return { message: data.message ?? "" };
|
|
914
|
-
}
|
|
915
|
-
async wakeMio(taskId) {
|
|
916
|
-
const data = await this._post(
|
|
917
|
-
"/task/self_managed/wake",
|
|
918
|
-
{ task_id: taskId }
|
|
919
|
-
);
|
|
920
|
-
return { message: data.message ?? "" };
|
|
921
|
-
}
|
|
922
|
-
async sendMioUserAway(taskId) {
|
|
923
|
-
const data = await this._post(
|
|
924
|
-
"/task/self_managed/user_away",
|
|
925
|
-
{ task_id: taskId }
|
|
926
|
-
);
|
|
927
|
-
return { message: data.message ?? "" };
|
|
928
|
-
}
|
|
929
|
-
async markMioComplete(taskId) {
|
|
930
|
-
const data = await this._post(
|
|
931
|
-
"/task/self_managed/mark_complete",
|
|
932
|
-
{ task_id: taskId }
|
|
933
|
-
);
|
|
934
|
-
return { message: data.message ?? "" };
|
|
935
|
-
}
|
|
936
|
-
async markMioFailed(taskId) {
|
|
937
|
-
const data = await this._post(
|
|
938
|
-
"/task/self_managed/mark_failed",
|
|
939
|
-
{ task_id: taskId }
|
|
940
|
-
);
|
|
941
|
-
return { message: data.message ?? "" };
|
|
942
|
-
}
|
|
943
|
-
async archiveMio(taskId) {
|
|
944
|
-
const data = await this._post(
|
|
945
|
-
"/task/self_managed/archive",
|
|
946
|
-
{ task_id: taskId }
|
|
947
|
-
);
|
|
948
|
-
return { message: data.message ?? "" };
|
|
949
|
-
}
|
|
950
|
-
async getMioContext(taskId) {
|
|
951
|
-
const data = await this._get(
|
|
952
|
-
"/task/self_managed/context",
|
|
953
|
-
{ task_id: taskId }
|
|
954
|
-
);
|
|
955
|
-
return {
|
|
956
|
-
taskId: data.taskId ?? data.task_id ?? taskId,
|
|
957
|
-
modelId: data.modelId ?? data.model_id ?? "",
|
|
958
|
-
currentTokens: data.currentTokens ?? data.current_tokens ?? 0,
|
|
959
|
-
contextLimit: data.contextLimit ?? data.context_limit ?? 0,
|
|
960
|
-
usagePercentage: data.usagePercentage ?? data.usage_percentage ?? 0,
|
|
961
|
-
totalMessages: data.totalMessages ?? data.total_messages ?? 0,
|
|
962
|
-
activeMessages: data.activeMessages ?? data.active_messages ?? 0,
|
|
963
|
-
archivedMessages: data.archivedMessages ?? data.archived_messages ?? 0,
|
|
964
|
-
messagesWithoutTokenCount: data.messagesWithoutTokenCount ?? data.messages_without_token_count ?? 0
|
|
965
|
-
};
|
|
966
|
-
}
|
|
967
|
-
async getMioMemories(taskId, includeCommon) {
|
|
968
|
-
const data = await this._get(
|
|
969
|
-
"/task/self_managed/memories",
|
|
970
|
-
{ task_id: taskId, include_common: includeCommon }
|
|
971
|
-
);
|
|
972
|
-
return {
|
|
973
|
-
memories: data.memories ?? [],
|
|
974
|
-
total: data.total ?? 0
|
|
975
|
-
};
|
|
976
|
-
}
|
|
977
|
-
// ------------------------------------------------------------------
|
|
978
900
|
// Tools
|
|
979
901
|
// ------------------------------------------------------------------
|
|
980
902
|
async listTools() {
|
|
@@ -1283,11 +1205,45 @@ var OrchestratorAsync = class {
|
|
|
1283
1205
|
if (settings.subagentsEnabled !== void 0) {
|
|
1284
1206
|
body.subagents_enabled = settings.subagentsEnabled;
|
|
1285
1207
|
}
|
|
1208
|
+
if (settings.agentReasoningEffort !== void 0) {
|
|
1209
|
+
body.agent_reasoning_effort = settings.agentReasoningEffort;
|
|
1210
|
+
}
|
|
1286
1211
|
if (settings.localizationTargets !== void 0) {
|
|
1287
1212
|
body.localization_targets = settings.localizationTargets;
|
|
1288
1213
|
}
|
|
1289
1214
|
return this._post("/configuration/system/settings", body);
|
|
1290
1215
|
}
|
|
1216
|
+
async getPromptMetadata() {
|
|
1217
|
+
return this._get("/configuration/prompt-metadata");
|
|
1218
|
+
}
|
|
1219
|
+
async updatePromptMetadata(patch) {
|
|
1220
|
+
const body = {};
|
|
1221
|
+
if (patch.companyName !== void 0) {
|
|
1222
|
+
body.company_name = patch.companyName;
|
|
1223
|
+
}
|
|
1224
|
+
if (patch.companyDescription !== void 0) {
|
|
1225
|
+
body.company_description = patch.companyDescription;
|
|
1226
|
+
}
|
|
1227
|
+
if (patch.agentName !== void 0) {
|
|
1228
|
+
body.agent_name = patch.agentName;
|
|
1229
|
+
}
|
|
1230
|
+
if (patch.personalityTraits !== void 0) {
|
|
1231
|
+
body.personality_traits = patch.personalityTraits;
|
|
1232
|
+
}
|
|
1233
|
+
if (patch.environmentInfo !== void 0) {
|
|
1234
|
+
body.environment_info = patch.environmentInfo;
|
|
1235
|
+
}
|
|
1236
|
+
if (patch.productName !== void 0) {
|
|
1237
|
+
body.product_name = patch.productName;
|
|
1238
|
+
}
|
|
1239
|
+
if (patch.contactChannels !== void 0) {
|
|
1240
|
+
body.contact_channels = patch.contactChannels;
|
|
1241
|
+
}
|
|
1242
|
+
return this._post(
|
|
1243
|
+
"/configuration/prompt-metadata",
|
|
1244
|
+
body
|
|
1245
|
+
);
|
|
1246
|
+
}
|
|
1291
1247
|
async getConfigurationStatus() {
|
|
1292
1248
|
return this._get("/configuration/status");
|
|
1293
1249
|
}
|
|
@@ -1619,44 +1575,13 @@ var Orchestrator = class {
|
|
|
1619
1575
|
listVSATasks(userId, params) {
|
|
1620
1576
|
return runSync(this._async.listVSATasks(userId, params));
|
|
1621
1577
|
}
|
|
1622
|
-
searchVSATasks(userId, query, limit) {
|
|
1623
|
-
return runSync(this._async.searchVSATasks(userId, query, limit));
|
|
1578
|
+
searchVSATasks(userId, query, limit, offset) {
|
|
1579
|
+
return runSync(this._async.searchVSATasks(userId, query, limit, offset));
|
|
1624
1580
|
}
|
|
1625
1581
|
deleteVSATasksBulk(taskIds) {
|
|
1626
1582
|
return runSync(this._async.deleteVSATasksBulk(taskIds));
|
|
1627
1583
|
}
|
|
1628
1584
|
// ------------------------------------------------------------------
|
|
1629
|
-
// MIO (self_managed) workflow
|
|
1630
|
-
// ------------------------------------------------------------------
|
|
1631
|
-
sendMioMessage(taskId, message, attachmentIds) {
|
|
1632
|
-
return runSync(this._async.sendMioMessage(taskId, message, attachmentIds));
|
|
1633
|
-
}
|
|
1634
|
-
approveMioAction(taskId, approved = true, feedback) {
|
|
1635
|
-
return runSync(this._async.approveMioAction(taskId, approved, feedback));
|
|
1636
|
-
}
|
|
1637
|
-
wakeMio(taskId) {
|
|
1638
|
-
return runSync(this._async.wakeMio(taskId));
|
|
1639
|
-
}
|
|
1640
|
-
sendMioUserAway(taskId) {
|
|
1641
|
-
return runSync(this._async.sendMioUserAway(taskId));
|
|
1642
|
-
}
|
|
1643
|
-
markMioComplete(taskId) {
|
|
1644
|
-
return runSync(this._async.markMioComplete(taskId));
|
|
1645
|
-
}
|
|
1646
|
-
markMioFailed(taskId) {
|
|
1647
|
-
return runSync(this._async.markMioFailed(taskId));
|
|
1648
|
-
}
|
|
1649
|
-
archiveMio(taskId) {
|
|
1650
|
-
return runSync(this._async.archiveMio(taskId));
|
|
1651
|
-
}
|
|
1652
|
-
getMioContext(taskId) {
|
|
1653
|
-
return runSync(this._async.getMioContext(taskId));
|
|
1654
|
-
}
|
|
1655
|
-
getMioMemories(taskId, includeCommon) {
|
|
1656
|
-
return runSync(this._async.getMioMemories(taskId, includeCommon));
|
|
1657
|
-
}
|
|
1658
|
-
// ------------------------------------------------------------------
|
|
1659
|
-
// Tools
|
|
1660
1585
|
// ------------------------------------------------------------------
|
|
1661
1586
|
listTools() {
|
|
1662
1587
|
return runSync(this._async.listTools());
|
|
@@ -1771,6 +1696,12 @@ var Orchestrator = class {
|
|
|
1771
1696
|
updateSettings(settings) {
|
|
1772
1697
|
return runSync(this._async.updateSettings(settings));
|
|
1773
1698
|
}
|
|
1699
|
+
getPromptMetadata() {
|
|
1700
|
+
return runSync(this._async.getPromptMetadata());
|
|
1701
|
+
}
|
|
1702
|
+
updatePromptMetadata(patch) {
|
|
1703
|
+
return runSync(this._async.updatePromptMetadata(patch));
|
|
1704
|
+
}
|
|
1774
1705
|
getConfigurationStatus() {
|
|
1775
1706
|
return runSync(this._async.getConfigurationStatus());
|
|
1776
1707
|
}
|