@topolo/sdk 0.9.4 → 0.9.6
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 +11 -5
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +11 -5
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -363,7 +363,9 @@ var APPLICATIONS = {
|
|
|
363
363
|
"domains": [
|
|
364
364
|
"bugfix.topolo.app"
|
|
365
365
|
],
|
|
366
|
-
"routes": [
|
|
366
|
+
"routes": [
|
|
367
|
+
"bugfix.topolo.app"
|
|
368
|
+
],
|
|
367
369
|
"appId": "bugfix"
|
|
368
370
|
}
|
|
369
371
|
]
|
|
@@ -479,7 +481,9 @@ var APPLICATIONS = {
|
|
|
479
481
|
"domains": [
|
|
480
482
|
"capacity.topolo.app"
|
|
481
483
|
],
|
|
482
|
-
"routes": [
|
|
484
|
+
"routes": [
|
|
485
|
+
"capacity.topolo.app"
|
|
486
|
+
],
|
|
483
487
|
"appId": "capacity"
|
|
484
488
|
}
|
|
485
489
|
]
|
|
@@ -1221,7 +1225,9 @@ var APPLICATIONS = {
|
|
|
1221
1225
|
"domains": [
|
|
1222
1226
|
"observability-watch.topolo.app"
|
|
1223
1227
|
],
|
|
1224
|
-
"routes": [
|
|
1228
|
+
"routes": [
|
|
1229
|
+
"observability-watch.topolo.app"
|
|
1230
|
+
],
|
|
1225
1231
|
"appId": "observability_watch"
|
|
1226
1232
|
}
|
|
1227
1233
|
]
|
|
@@ -3489,7 +3495,7 @@ async function digestTopoloActionCatalog(actions, appId) {
|
|
|
3489
3495
|
return {
|
|
3490
3496
|
actionId: action.actionId || `${appId}.${action.name}`,
|
|
3491
3497
|
authorizationMode,
|
|
3492
|
-
allowedServices: authorizationMode === "service" ? allowedServices : [],
|
|
3498
|
+
allowedServices: authorizationMode === "service" || authorizationMode === "runtime" ? allowedServices : [],
|
|
3493
3499
|
inputSchema: action.inputSchema,
|
|
3494
3500
|
agentContract: action.agentContract ?? {},
|
|
3495
3501
|
method: action.method,
|
|
@@ -3751,7 +3757,7 @@ function enrichActionContract(manifest, action, allActions = manifest.actions ||
|
|
|
3751
3757
|
const rollbackActionId = typeof existing.rollbackActionId === "string" && existing.rollbackActionId.trim() ? existing.rollbackActionId.trim() : recovery.mode === "compensating_action" ? recovery.actionId : void 0;
|
|
3752
3758
|
const inputExample = sampleForSchema(action.inputSchema);
|
|
3753
3759
|
const examples = Array.isArray(existing.examples) && existing.examples.length > 0 ? existing.examples : [{ input: inputExample ?? {}, expected: `A response matching the published outputSchema for ${action.name}.` }];
|
|
3754
|
-
const docsUrl = `https://docs.topolo.app/reference/actions
|
|
3760
|
+
const docsUrl = `https://docs.topolo.app/reference/actions?service=${encodeURIComponent(service)}&action=${encodeURIComponent(action.name)}`;
|
|
3755
3761
|
const existingDocsUrl = typeof existing.docsUrl === "string" && existing.docsUrl.trim() ? existing.docsUrl.trim() : void 0;
|
|
3756
3762
|
return {
|
|
3757
3763
|
outputSchema,
|
package/dist/index.d.cts
CHANGED
|
@@ -662,7 +662,7 @@ declare const APPLICATIONS: {
|
|
|
662
662
|
readonly kind: "worker";
|
|
663
663
|
readonly apiUrl: "https://bugfix.topolo.app";
|
|
664
664
|
readonly domains: readonly ["bugfix.topolo.app"];
|
|
665
|
-
readonly routes: readonly [];
|
|
665
|
+
readonly routes: readonly ["bugfix.topolo.app"];
|
|
666
666
|
readonly appId: "bugfix";
|
|
667
667
|
}];
|
|
668
668
|
};
|
|
@@ -747,7 +747,7 @@ declare const APPLICATIONS: {
|
|
|
747
747
|
readonly kind: "worker";
|
|
748
748
|
readonly apiUrl: "https://capacity.topolo.app";
|
|
749
749
|
readonly domains: readonly ["capacity.topolo.app"];
|
|
750
|
-
readonly routes: readonly [];
|
|
750
|
+
readonly routes: readonly ["capacity.topolo.app"];
|
|
751
751
|
readonly appId: "capacity";
|
|
752
752
|
}];
|
|
753
753
|
};
|
|
@@ -1290,7 +1290,7 @@ declare const APPLICATIONS: {
|
|
|
1290
1290
|
readonly kind: "worker";
|
|
1291
1291
|
readonly apiUrl: "https://observability-watch.topolo.app";
|
|
1292
1292
|
readonly domains: readonly ["observability-watch.topolo.app"];
|
|
1293
|
-
readonly routes: readonly [];
|
|
1293
|
+
readonly routes: readonly ["observability-watch.topolo.app"];
|
|
1294
1294
|
readonly appId: "observability_watch";
|
|
1295
1295
|
}];
|
|
1296
1296
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -662,7 +662,7 @@ declare const APPLICATIONS: {
|
|
|
662
662
|
readonly kind: "worker";
|
|
663
663
|
readonly apiUrl: "https://bugfix.topolo.app";
|
|
664
664
|
readonly domains: readonly ["bugfix.topolo.app"];
|
|
665
|
-
readonly routes: readonly [];
|
|
665
|
+
readonly routes: readonly ["bugfix.topolo.app"];
|
|
666
666
|
readonly appId: "bugfix";
|
|
667
667
|
}];
|
|
668
668
|
};
|
|
@@ -747,7 +747,7 @@ declare const APPLICATIONS: {
|
|
|
747
747
|
readonly kind: "worker";
|
|
748
748
|
readonly apiUrl: "https://capacity.topolo.app";
|
|
749
749
|
readonly domains: readonly ["capacity.topolo.app"];
|
|
750
|
-
readonly routes: readonly [];
|
|
750
|
+
readonly routes: readonly ["capacity.topolo.app"];
|
|
751
751
|
readonly appId: "capacity";
|
|
752
752
|
}];
|
|
753
753
|
};
|
|
@@ -1290,7 +1290,7 @@ declare const APPLICATIONS: {
|
|
|
1290
1290
|
readonly kind: "worker";
|
|
1291
1291
|
readonly apiUrl: "https://observability-watch.topolo.app";
|
|
1292
1292
|
readonly domains: readonly ["observability-watch.topolo.app"];
|
|
1293
|
-
readonly routes: readonly [];
|
|
1293
|
+
readonly routes: readonly ["observability-watch.topolo.app"];
|
|
1294
1294
|
readonly appId: "observability_watch";
|
|
1295
1295
|
}];
|
|
1296
1296
|
};
|
package/dist/index.js
CHANGED
|
@@ -302,7 +302,9 @@ var APPLICATIONS = {
|
|
|
302
302
|
"domains": [
|
|
303
303
|
"bugfix.topolo.app"
|
|
304
304
|
],
|
|
305
|
-
"routes": [
|
|
305
|
+
"routes": [
|
|
306
|
+
"bugfix.topolo.app"
|
|
307
|
+
],
|
|
306
308
|
"appId": "bugfix"
|
|
307
309
|
}
|
|
308
310
|
]
|
|
@@ -418,7 +420,9 @@ var APPLICATIONS = {
|
|
|
418
420
|
"domains": [
|
|
419
421
|
"capacity.topolo.app"
|
|
420
422
|
],
|
|
421
|
-
"routes": [
|
|
423
|
+
"routes": [
|
|
424
|
+
"capacity.topolo.app"
|
|
425
|
+
],
|
|
422
426
|
"appId": "capacity"
|
|
423
427
|
}
|
|
424
428
|
]
|
|
@@ -1160,7 +1164,9 @@ var APPLICATIONS = {
|
|
|
1160
1164
|
"domains": [
|
|
1161
1165
|
"observability-watch.topolo.app"
|
|
1162
1166
|
],
|
|
1163
|
-
"routes": [
|
|
1167
|
+
"routes": [
|
|
1168
|
+
"observability-watch.topolo.app"
|
|
1169
|
+
],
|
|
1164
1170
|
"appId": "observability_watch"
|
|
1165
1171
|
}
|
|
1166
1172
|
]
|
|
@@ -3428,7 +3434,7 @@ async function digestTopoloActionCatalog(actions, appId) {
|
|
|
3428
3434
|
return {
|
|
3429
3435
|
actionId: action.actionId || `${appId}.${action.name}`,
|
|
3430
3436
|
authorizationMode,
|
|
3431
|
-
allowedServices: authorizationMode === "service" ? allowedServices : [],
|
|
3437
|
+
allowedServices: authorizationMode === "service" || authorizationMode === "runtime" ? allowedServices : [],
|
|
3432
3438
|
inputSchema: action.inputSchema,
|
|
3433
3439
|
agentContract: action.agentContract ?? {},
|
|
3434
3440
|
method: action.method,
|
|
@@ -3690,7 +3696,7 @@ function enrichActionContract(manifest, action, allActions = manifest.actions ||
|
|
|
3690
3696
|
const rollbackActionId = typeof existing.rollbackActionId === "string" && existing.rollbackActionId.trim() ? existing.rollbackActionId.trim() : recovery.mode === "compensating_action" ? recovery.actionId : void 0;
|
|
3691
3697
|
const inputExample = sampleForSchema(action.inputSchema);
|
|
3692
3698
|
const examples = Array.isArray(existing.examples) && existing.examples.length > 0 ? existing.examples : [{ input: inputExample ?? {}, expected: `A response matching the published outputSchema for ${action.name}.` }];
|
|
3693
|
-
const docsUrl = `https://docs.topolo.app/reference/actions
|
|
3699
|
+
const docsUrl = `https://docs.topolo.app/reference/actions?service=${encodeURIComponent(service)}&action=${encodeURIComponent(action.name)}`;
|
|
3694
3700
|
const existingDocsUrl = typeof existing.docsUrl === "string" && existing.docsUrl.trim() ? existing.docsUrl.trim() : void 0;
|
|
3695
3701
|
return {
|
|
3696
3702
|
outputSchema,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topolo/sdk",
|
|
3
|
-
"version": "0.9.
|
|
4
|
-
"topoloPublishedVersion": "0.9.
|
|
3
|
+
"version": "0.9.6",
|
|
4
|
+
"topoloPublishedVersion": "0.9.6",
|
|
5
5
|
"description": "Typed client SDK for the Topolo platform. Used by TopoloCli, TopoloMCP, and third-party agents.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.js",
|