@getsupervisor/agents-studio-sdk 1.18.0 → 1.19.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 +21 -0
- package/dist/index.cjs +34 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -7
- package/dist/index.d.ts +20 -7
- package/dist/index.js +34 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## v1.18.0
|
|
2
|
+
|
|
3
|
+
## [1.18.0](https://github.com/julio-supervisor/agents-studio-be/compare/v1.17.0...v1.18.0) (2025-10-23)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add webhooks management API ([bb1a1fb](https://github.com/julio-supervisor/agents-studio-be/commit/bb1a1fb17f48a7a52e82c07d12d32f57240c8604))
|
|
8
|
+
* **docs:** add webhook terminology and definitions for agent association and URL reuse ([82985e8](https://github.com/julio-supervisor/agents-studio-be/commit/82985e8bbbc7e7cd2d0e15f0e77e0adc859d01a2))
|
|
9
|
+
* **openapi:** enhance webhook descriptions with optional agent association and URL reuse details ([fc9b2d9](https://github.com/julio-supervisor/agents-studio-be/commit/fc9b2d9099116541d841548adf935f9c0f4a0c99))
|
|
10
|
+
* **tests:** add WebhookEventKey setup and teardown for EventSubscriptionTypeormRepository tests ([b7c28c5](https://github.com/julio-supervisor/agents-studio-be/commit/b7c28c51bc86cf4bc08d83e511429a9cb8fab066))
|
|
11
|
+
* **tests:** enhance WebhookEventKey setup and teardown in event subscription tests ([b717c89](https://github.com/julio-supervisor/agents-studio-be/commit/b717c8916c0147b467044387d9e73988454cf74f))
|
|
12
|
+
* **webhooks:** add agent association to webhooks ([d2d5eb1](https://github.com/julio-supervisor/agents-studio-be/commit/d2d5eb175dc5c43c405a93f961ca70f2426f8d3f))
|
|
13
|
+
* **webhooks:** add webhook event catalog and related migrations ([91ceec2](https://github.com/julio-supervisor/agents-studio-be/commit/91ceec203706bc79ce775063f9a9a9ba9eb698ca))
|
|
14
|
+
* **webhooks:** implement event subscription and webhook entities, specifications, and factories ([7ba841e](https://github.com/julio-supervisor/agents-studio-be/commit/7ba841e21697ab2f38dedd8b5243091e250cff98))
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* update EventSubscription references to use EventSubscriptionDetail ([a1ff2f6](https://github.com/julio-supervisor/agents-studio-be/commit/a1ff2f611748783c87dfe43c8597de0a2ee89ae4))
|
|
19
|
+
* update reference in EventSubscriptionListResponse from EventSubscriptionSummary to EventSubscriptionDetail ([9bc602f](https://github.com/julio-supervisor/agents-studio-be/commit/9bc602f14b36612ba993888e9c0354f6431b824e))
|
|
20
|
+
|
|
21
|
+
|
|
1
22
|
## v1.17.0
|
|
2
23
|
|
|
3
24
|
## [1.17.0](https://github.com/julio-supervisor/agents-studio-be/compare/v1.16.0...v1.17.0) (2025-10-22)
|
package/dist/index.cjs
CHANGED
|
@@ -1144,6 +1144,27 @@ function createCatalogsApi(cfg) {
|
|
|
1144
1144
|
}
|
|
1145
1145
|
|
|
1146
1146
|
// src/api/tools.ts
|
|
1147
|
+
var IDEMPOTENCY_HEADER = "Idempotency-Key";
|
|
1148
|
+
var generateIdempotencyKey = (explicit) => {
|
|
1149
|
+
if (explicit && explicit.length > 0) {
|
|
1150
|
+
return explicit;
|
|
1151
|
+
}
|
|
1152
|
+
const globalRef = globalThis;
|
|
1153
|
+
const cryptoRef = globalRef?.crypto;
|
|
1154
|
+
if (cryptoRef?.randomUUID) {
|
|
1155
|
+
return cryptoRef.randomUUID();
|
|
1156
|
+
}
|
|
1157
|
+
if (cryptoRef?.getRandomValues) {
|
|
1158
|
+
const buffer = new Uint8Array(16);
|
|
1159
|
+
cryptoRef.getRandomValues(buffer);
|
|
1160
|
+
return Array.from(
|
|
1161
|
+
buffer,
|
|
1162
|
+
(byte) => byte.toString(16).padStart(2, "0")
|
|
1163
|
+
).join("");
|
|
1164
|
+
}
|
|
1165
|
+
const randomChunk = () => Math.random().toString(36).slice(2, 10);
|
|
1166
|
+
return `idemp_${Date.now().toString(36)}_${randomChunk()}${randomChunk()}`;
|
|
1167
|
+
};
|
|
1147
1168
|
var isFormData = (value) => {
|
|
1148
1169
|
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
1149
1170
|
};
|
|
@@ -1226,18 +1247,26 @@ function createToolsApi(cfg) {
|
|
|
1226
1247
|
);
|
|
1227
1248
|
return res.json();
|
|
1228
1249
|
},
|
|
1229
|
-
async execute(toolId, payload) {
|
|
1250
|
+
async execute(toolId, payload, options = {}) {
|
|
1251
|
+
const idempotencyKey = generateIdempotencyKey(options.idempotencyKey);
|
|
1230
1252
|
const res = await doFetch(`${base}/v1/tools/${toolId}/execute`, {
|
|
1231
1253
|
method: "POST",
|
|
1232
|
-
headers:
|
|
1254
|
+
headers: {
|
|
1255
|
+
...jsonHeaders,
|
|
1256
|
+
[IDEMPOTENCY_HEADER]: idempotencyKey
|
|
1257
|
+
},
|
|
1233
1258
|
body: JSON.stringify(payload)
|
|
1234
1259
|
});
|
|
1235
1260
|
return res.json();
|
|
1236
1261
|
},
|
|
1237
|
-
async connect(toolId, payload) {
|
|
1238
|
-
const
|
|
1262
|
+
async connect(toolId, payload, options = {}) {
|
|
1263
|
+
const idempotencyKey = generateIdempotencyKey(options.idempotencyKey);
|
|
1264
|
+
const res = await doFetch(`${base}/v1/tools/${toolId}/connections`, {
|
|
1239
1265
|
method: "POST",
|
|
1240
|
-
headers:
|
|
1266
|
+
headers: {
|
|
1267
|
+
...jsonHeaders,
|
|
1268
|
+
[IDEMPOTENCY_HEADER]: idempotencyKey
|
|
1269
|
+
},
|
|
1241
1270
|
body: JSON.stringify(payload)
|
|
1242
1271
|
});
|
|
1243
1272
|
return res.json();
|