@getsupervisor/agents-studio-sdk 1.27.0 → 1.30.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/CHANGELOG.md +22 -0
- package/dist/index.cjs +50 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +52 -2
- package/dist/index.d.ts +52 -2
- package/dist/index.js +49 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## v1.27.0
|
|
2
|
+
|
|
3
|
+
## [1.27.0](https://github.com/julio-supervisor/agents-studio-be/compare/v1.26.1...v1.27.0) (2025-11-08)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add migration to include 'order' column in blueprint_stages table ([79e7cd8](https://github.com/julio-supervisor/agents-studio-be/commit/79e7cd80a046f6049abd8df5fec1333de7dc2851))
|
|
8
|
+
* add order property to blueprint stages and update related logic ([b7dc672](https://github.com/julio-supervisor/agents-studio-be/commit/b7dc6727e8543f39d665b1e904bc08449ccb386d))
|
|
9
|
+
* add orderByOrderAsc method and related tests for blueprint stages ([ab46a4f](https://github.com/julio-supervisor/agents-studio-be/commit/ab46a4f4b6ff50409e0f878228579dad152b147f))
|
|
10
|
+
* add startSpeaker property to agent blueprints and related components ([b1ea8ef](https://github.com/julio-supervisor/agents-studio-be/commit/b1ea8ef76d200484f40cee10ec7c0a6159ff9032))
|
|
11
|
+
* add tests for BlueprintStageTriggerCondition and enhance validation for rule type values ([42cde2a](https://github.com/julio-supervisor/agents-studio-be/commit/42cde2a5e5e2b49df2cf9f51097dbca2b914bde7))
|
|
12
|
+
* add versioning details to AgentBlueprint and AgentVersion in tests ([d655d88](https://github.com/julio-supervisor/agents-studio-be/commit/d655d8836fd17d4bdeaf919f74c2fd72f87c3ea1))
|
|
13
|
+
* enhance stage result handling with agentId context and normalize stage order input ([8238b5d](https://github.com/julio-supervisor/agents-studio-be/commit/8238b5da1993d89a1def73d2821b3fc46ffabea2))
|
|
14
|
+
* enhance toStageTriggerResult mapping to include blueprintId and improve header normalization in PublicApiToolBase ([27298c8](https://github.com/julio-supervisor/agents-studio-be/commit/27298c8bc040190a97996cacfbad36a6aa919d9d))
|
|
15
|
+
* enhance toStageTriggerResult to accept blueprintId from context and update related methods ([f6f8598](https://github.com/julio-supervisor/agents-studio-be/commit/f6f8598e41ca7ff559b192cef3ccd86a28377dda))
|
|
16
|
+
* include blueprint in payload mapping for voice blueprint sync ([ce3ebd1](https://github.com/julio-supervisor/agents-studio-be/commit/ce3ebd11ec57e81ab49626b6996ac55e4a4fc3f0))
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* remove tsconfig-paths/register from Docker entrypoint and CMD ([054ceeb](https://github.com/julio-supervisor/agents-studio-be/commit/054ceeb8ad53f6b4bfce38fa0effe00128e2c77e))
|
|
21
|
+
|
|
22
|
+
|
|
1
23
|
## v1.26.0
|
|
2
24
|
|
|
3
25
|
## [1.26.0](https://github.com/julio-supervisor/agents-studio-be/compare/v1.25.1...v1.26.0) (2025-11-06)
|
package/dist/index.cjs
CHANGED
|
@@ -43,6 +43,7 @@ __export(index_exports, {
|
|
|
43
43
|
createAgentVersionsApi: () => createAgentVersionsApi,
|
|
44
44
|
createAgentsApi: () => createAgentsApi,
|
|
45
45
|
createApiKeysApi: () => createApiKeysApi,
|
|
46
|
+
createCatalogTemplatesApi: () => createCatalogTemplatesApi,
|
|
46
47
|
createCatalogsApi: () => createCatalogsApi,
|
|
47
48
|
createClient: () => createClient,
|
|
48
49
|
createHttp: () => createHttp,
|
|
@@ -1213,6 +1214,14 @@ function createAgentsApi(cfg, relatedApis) {
|
|
|
1213
1214
|
});
|
|
1214
1215
|
return res.json();
|
|
1215
1216
|
};
|
|
1217
|
+
const forkAgentFromTemplate = async (payload) => {
|
|
1218
|
+
const res = await doFetch(`${base}/agents:from-template`, {
|
|
1219
|
+
method: "POST",
|
|
1220
|
+
body: JSON.stringify(payload),
|
|
1221
|
+
headers: jsonHeaders
|
|
1222
|
+
});
|
|
1223
|
+
return res.json();
|
|
1224
|
+
};
|
|
1216
1225
|
const updateAgent = async (agentId, payload) => {
|
|
1217
1226
|
const res = await doFetch(`${base}/agents/${agentId}`, {
|
|
1218
1227
|
method: "PATCH",
|
|
@@ -1234,6 +1243,7 @@ function createAgentsApi(cfg, relatedApis) {
|
|
|
1234
1243
|
list: listAgents,
|
|
1235
1244
|
get: getAgentDetail,
|
|
1236
1245
|
create: createAgent,
|
|
1246
|
+
forkFromTemplate: forkAgentFromTemplate,
|
|
1237
1247
|
update: updateAgent,
|
|
1238
1248
|
delete: deleteAgent
|
|
1239
1249
|
};
|
|
@@ -1285,6 +1295,10 @@ function createAgentsApi(cfg, relatedApis) {
|
|
|
1285
1295
|
const detail = await createAgent(payload);
|
|
1286
1296
|
return wrapAgent(detail);
|
|
1287
1297
|
},
|
|
1298
|
+
async forkFromTemplate(payload) {
|
|
1299
|
+
const detail = await forkAgentFromTemplate(payload);
|
|
1300
|
+
return wrapAgent(detail);
|
|
1301
|
+
},
|
|
1288
1302
|
async update(agentId, payload) {
|
|
1289
1303
|
const detail = await updateAgent(agentId, payload);
|
|
1290
1304
|
return wrapAgent(detail);
|
|
@@ -1323,6 +1337,36 @@ function createApiKeysApi(cfg) {
|
|
|
1323
1337
|
};
|
|
1324
1338
|
}
|
|
1325
1339
|
|
|
1340
|
+
// src/api/catalog-templates.ts
|
|
1341
|
+
function createCatalogTemplatesApi(cfg) {
|
|
1342
|
+
const { base, doFetch } = createHttp(cfg);
|
|
1343
|
+
const buildListQuery = (options) => {
|
|
1344
|
+
const query = {};
|
|
1345
|
+
if (options.visibility) {
|
|
1346
|
+
query.visibility = options.visibility;
|
|
1347
|
+
}
|
|
1348
|
+
if (options.tags && options.tags.length > 0) {
|
|
1349
|
+
query.tags = options.tags;
|
|
1350
|
+
}
|
|
1351
|
+
return query;
|
|
1352
|
+
};
|
|
1353
|
+
return {
|
|
1354
|
+
async list(options = {}) {
|
|
1355
|
+
const res = await doFetch(`${base}/catalogs/templates`, {
|
|
1356
|
+
method: "GET",
|
|
1357
|
+
query: buildListQuery(options)
|
|
1358
|
+
});
|
|
1359
|
+
return res.json();
|
|
1360
|
+
},
|
|
1361
|
+
async get(templateId) {
|
|
1362
|
+
const res = await doFetch(`${base}/catalogs/templates/${templateId}`, {
|
|
1363
|
+
method: "GET"
|
|
1364
|
+
});
|
|
1365
|
+
return res.json();
|
|
1366
|
+
}
|
|
1367
|
+
};
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1326
1370
|
// src/api/catalogs.ts
|
|
1327
1371
|
function createCatalogsApi(cfg) {
|
|
1328
1372
|
const { base, doFetch } = createHttp(cfg);
|
|
@@ -1883,6 +1927,7 @@ function createClient(initialCfg) {
|
|
|
1883
1927
|
const voicesApi = createVoicesApi(runtimeCfg);
|
|
1884
1928
|
const apiKeysApi = createApiKeysApi(runtimeCfg);
|
|
1885
1929
|
const catalogsApi = createCatalogsApi(runtimeCfg);
|
|
1930
|
+
const catalogTemplatesApi = createCatalogTemplatesApi(runtimeCfg);
|
|
1886
1931
|
const webhooksApi = createWebhooksApi(runtimeCfg);
|
|
1887
1932
|
const agentsApi = createAgentsApi(runtimeCfg, {
|
|
1888
1933
|
instructionsApi,
|
|
@@ -1950,7 +1995,10 @@ function createClient(initialCfg) {
|
|
|
1950
1995
|
},
|
|
1951
1996
|
workspaces: createWorkspacesApi(runtimeCfg),
|
|
1952
1997
|
tools: createToolsApi(runtimeCfg),
|
|
1953
|
-
catalogs:
|
|
1998
|
+
catalogs: {
|
|
1999
|
+
...catalogsApi,
|
|
2000
|
+
templates: catalogTemplatesApi
|
|
2001
|
+
},
|
|
1954
2002
|
voices: voicesApi,
|
|
1955
2003
|
apiKeys: apiKeysApi,
|
|
1956
2004
|
webhooks: webhooksApi
|
|
@@ -2036,6 +2084,7 @@ function createClient(initialCfg) {
|
|
|
2036
2084
|
createAgentVersionsApi,
|
|
2037
2085
|
createAgentsApi,
|
|
2038
2086
|
createApiKeysApi,
|
|
2087
|
+
createCatalogTemplatesApi,
|
|
2039
2088
|
createCatalogsApi,
|
|
2040
2089
|
createClient,
|
|
2041
2090
|
createHttp,
|