orchestrator-client 5.12.3 → 5.13.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 +52 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -5
- package/dist/index.d.ts +32 -5
- package/dist/index.js +52 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -162,13 +162,22 @@ function buildSkillMapping(m) {
|
|
|
162
162
|
requiredTool: m.requiredTool ?? m.required_tool ?? null
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
|
+
function buildProfileUserSummary(u) {
|
|
166
|
+
return {
|
|
167
|
+
userId: u.userId ?? u.user_id ?? "",
|
|
168
|
+
taskCount: u.taskCount ?? u.task_count ?? 0,
|
|
169
|
+
lastTaskTitle: u.lastTaskTitle ?? u.last_task_title ?? null,
|
|
170
|
+
lastTaskUpdatedAt: u.lastTaskUpdatedAt ?? u.last_task_updated_at ?? null
|
|
171
|
+
};
|
|
172
|
+
}
|
|
165
173
|
function buildProfileEntry(e) {
|
|
166
174
|
return {
|
|
167
175
|
id: e.id ?? 0,
|
|
168
176
|
docType: e.docType ?? e.doc_type ?? "memory",
|
|
169
177
|
content: e.content ?? "",
|
|
170
178
|
createdAt: e.createdAt ?? e.created_at ?? "",
|
|
171
|
-
updatedAt: e.updatedAt ?? e.updated_at ?? ""
|
|
179
|
+
updatedAt: e.updatedAt ?? e.updated_at ?? "",
|
|
180
|
+
sourceTaskId: e.sourceTaskId ?? e.source_task_id ?? null
|
|
172
181
|
};
|
|
173
182
|
}
|
|
174
183
|
function buildSkill(s) {
|
|
@@ -470,7 +479,8 @@ var OrchestratorAsync = class {
|
|
|
470
479
|
limit: params?.limit,
|
|
471
480
|
order_by: params?.orderBy ? camelToSnake(params.orderBy) : void 0,
|
|
472
481
|
order_direction: params?.orderDirection,
|
|
473
|
-
workflow_id: params?.workflowId
|
|
482
|
+
workflow_id: params?.workflowId,
|
|
483
|
+
created_after: params?.createdAfter
|
|
474
484
|
},
|
|
475
485
|
headers
|
|
476
486
|
});
|
|
@@ -1052,12 +1062,15 @@ var OrchestratorAsync = class {
|
|
|
1052
1062
|
// Profile/memory entries (#788)
|
|
1053
1063
|
// ------------------------------------------------------------------
|
|
1054
1064
|
async listProfileUsers(params) {
|
|
1055
|
-
const data = await this._get(
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1065
|
+
const data = await this._get(
|
|
1066
|
+
"/profiles/users",
|
|
1067
|
+
{
|
|
1068
|
+
query: params?.query,
|
|
1069
|
+
limit: params?.limit,
|
|
1070
|
+
offset: params?.offset
|
|
1071
|
+
}
|
|
1072
|
+
);
|
|
1073
|
+
return (data ?? []).map((u) => buildProfileUserSummary(u));
|
|
1061
1074
|
}
|
|
1062
1075
|
async listProfileEntries(userId, docType) {
|
|
1063
1076
|
const data = await this._get(
|
|
@@ -1283,9 +1296,10 @@ var OrchestratorAsync = class {
|
|
|
1283
1296
|
async healthLeader() {
|
|
1284
1297
|
return this._get("/health/leader");
|
|
1285
1298
|
}
|
|
1286
|
-
async getMetrics(types) {
|
|
1299
|
+
async getMetrics(types, interval) {
|
|
1287
1300
|
const params = {};
|
|
1288
|
-
if (types) params.
|
|
1301
|
+
if (types) params.type = types;
|
|
1302
|
+
if (interval) params.interval = interval;
|
|
1289
1303
|
return this._get("/metrics", params);
|
|
1290
1304
|
}
|
|
1291
1305
|
// ------------------------------------------------------------------
|
|
@@ -1326,6 +1340,18 @@ var OrchestratorAsync = class {
|
|
|
1326
1340
|
if (settings.localizationTargets !== void 0) {
|
|
1327
1341
|
body.localization_targets = settings.localizationTargets;
|
|
1328
1342
|
}
|
|
1343
|
+
if (settings.skillDescriptionMaxChars !== void 0) {
|
|
1344
|
+
body.skill_description_max_chars = settings.skillDescriptionMaxChars;
|
|
1345
|
+
}
|
|
1346
|
+
if (settings.vsaProfileMaxChars !== void 0) {
|
|
1347
|
+
body.vsa_profile_max_chars = settings.vsaProfileMaxChars;
|
|
1348
|
+
}
|
|
1349
|
+
if (settings.vsaMemoryMaxChars !== void 0) {
|
|
1350
|
+
body.vsa_memory_max_chars = settings.vsaMemoryMaxChars;
|
|
1351
|
+
}
|
|
1352
|
+
if (settings.vsaProfileEntryMaxChars !== void 0) {
|
|
1353
|
+
body.vsa_profile_entry_max_chars = settings.vsaProfileEntryMaxChars;
|
|
1354
|
+
}
|
|
1329
1355
|
return this._post("/configuration/system/settings", body);
|
|
1330
1356
|
}
|
|
1331
1357
|
async getPromptMetadata() {
|
|
@@ -1451,6 +1477,14 @@ var OrchestratorAsync = class {
|
|
|
1451
1477
|
async getSlotsStatus() {
|
|
1452
1478
|
return this._get("/configuration/slots/status");
|
|
1453
1479
|
}
|
|
1480
|
+
async releaseSlot(slotId) {
|
|
1481
|
+
return this._post(
|
|
1482
|
+
`/configuration/slots/${encodeURIComponent(slotId)}/release`
|
|
1483
|
+
);
|
|
1484
|
+
}
|
|
1485
|
+
async releaseAllSlots() {
|
|
1486
|
+
return this._post("/configuration/slots/release-all");
|
|
1487
|
+
}
|
|
1454
1488
|
async getSubagentsStatus() {
|
|
1455
1489
|
return this._get("/configuration/subagents/status");
|
|
1456
1490
|
}
|
|
@@ -1829,8 +1863,8 @@ var Orchestrator = class {
|
|
|
1829
1863
|
healthLeader() {
|
|
1830
1864
|
return runSync(this._async.healthLeader());
|
|
1831
1865
|
}
|
|
1832
|
-
getMetrics(types) {
|
|
1833
|
-
return runSync(this._async.getMetrics(types));
|
|
1866
|
+
getMetrics(types, interval) {
|
|
1867
|
+
return runSync(this._async.getMetrics(types, interval));
|
|
1834
1868
|
}
|
|
1835
1869
|
// ------------------------------------------------------------------
|
|
1836
1870
|
// Configuration
|
|
@@ -1898,6 +1932,12 @@ var Orchestrator = class {
|
|
|
1898
1932
|
getSlotsStatus() {
|
|
1899
1933
|
return runSync(this._async.getSlotsStatus());
|
|
1900
1934
|
}
|
|
1935
|
+
releaseSlot(slotId) {
|
|
1936
|
+
return runSync(this._async.releaseSlot(slotId));
|
|
1937
|
+
}
|
|
1938
|
+
releaseAllSlots() {
|
|
1939
|
+
return runSync(this._async.releaseAllSlots());
|
|
1940
|
+
}
|
|
1901
1941
|
getSubagentsStatus() {
|
|
1902
1942
|
return runSync(this._async.getSubagentsStatus());
|
|
1903
1943
|
}
|