orchestrator-client 5.9.2 → 5.11.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 +42 -114
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -46
- package/dist/index.d.ts +32 -46
- package/dist/index.js +42 -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() {
|
|
@@ -1288,6 +1210,37 @@ var OrchestratorAsync = class {
|
|
|
1288
1210
|
}
|
|
1289
1211
|
return this._post("/configuration/system/settings", body);
|
|
1290
1212
|
}
|
|
1213
|
+
async getPromptMetadata() {
|
|
1214
|
+
return this._get("/configuration/prompt-metadata");
|
|
1215
|
+
}
|
|
1216
|
+
async updatePromptMetadata(patch) {
|
|
1217
|
+
const body = {};
|
|
1218
|
+
if (patch.companyName !== void 0) {
|
|
1219
|
+
body.company_name = patch.companyName;
|
|
1220
|
+
}
|
|
1221
|
+
if (patch.companyDescription !== void 0) {
|
|
1222
|
+
body.company_description = patch.companyDescription;
|
|
1223
|
+
}
|
|
1224
|
+
if (patch.agentName !== void 0) {
|
|
1225
|
+
body.agent_name = patch.agentName;
|
|
1226
|
+
}
|
|
1227
|
+
if (patch.personalityTraits !== void 0) {
|
|
1228
|
+
body.personality_traits = patch.personalityTraits;
|
|
1229
|
+
}
|
|
1230
|
+
if (patch.environmentInfo !== void 0) {
|
|
1231
|
+
body.environment_info = patch.environmentInfo;
|
|
1232
|
+
}
|
|
1233
|
+
if (patch.productName !== void 0) {
|
|
1234
|
+
body.product_name = patch.productName;
|
|
1235
|
+
}
|
|
1236
|
+
if (patch.contactChannels !== void 0) {
|
|
1237
|
+
body.contact_channels = patch.contactChannels;
|
|
1238
|
+
}
|
|
1239
|
+
return this._post(
|
|
1240
|
+
"/configuration/prompt-metadata",
|
|
1241
|
+
body
|
|
1242
|
+
);
|
|
1243
|
+
}
|
|
1291
1244
|
async getConfigurationStatus() {
|
|
1292
1245
|
return this._get("/configuration/status");
|
|
1293
1246
|
}
|
|
@@ -1619,44 +1572,13 @@ var Orchestrator = class {
|
|
|
1619
1572
|
listVSATasks(userId, params) {
|
|
1620
1573
|
return runSync(this._async.listVSATasks(userId, params));
|
|
1621
1574
|
}
|
|
1622
|
-
searchVSATasks(userId, query, limit) {
|
|
1623
|
-
return runSync(this._async.searchVSATasks(userId, query, limit));
|
|
1575
|
+
searchVSATasks(userId, query, limit, offset) {
|
|
1576
|
+
return runSync(this._async.searchVSATasks(userId, query, limit, offset));
|
|
1624
1577
|
}
|
|
1625
1578
|
deleteVSATasksBulk(taskIds) {
|
|
1626
1579
|
return runSync(this._async.deleteVSATasksBulk(taskIds));
|
|
1627
1580
|
}
|
|
1628
1581
|
// ------------------------------------------------------------------
|
|
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
1582
|
// ------------------------------------------------------------------
|
|
1661
1583
|
listTools() {
|
|
1662
1584
|
return runSync(this._async.listTools());
|
|
@@ -1771,6 +1693,12 @@ var Orchestrator = class {
|
|
|
1771
1693
|
updateSettings(settings) {
|
|
1772
1694
|
return runSync(this._async.updateSettings(settings));
|
|
1773
1695
|
}
|
|
1696
|
+
getPromptMetadata() {
|
|
1697
|
+
return runSync(this._async.getPromptMetadata());
|
|
1698
|
+
}
|
|
1699
|
+
updatePromptMetadata(patch) {
|
|
1700
|
+
return runSync(this._async.updatePromptMetadata(patch));
|
|
1701
|
+
}
|
|
1774
1702
|
getConfigurationStatus() {
|
|
1775
1703
|
return runSync(this._async.getConfigurationStatus());
|
|
1776
1704
|
}
|