@lobu/runtime-device 21.1.0 → 21.2.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/component.json +1 -1
- package/dist/dependencies.bun.lock +12 -12
- package/npm-shrinkwrap.json +51 -51
- package/package.json +1 -1
- package/vendor/cli/dist/commands/_lib/apply/client.js +4 -1
- package/vendor/cli/dist/commands/_lib/apply/desired-state.d.ts +1 -1
- package/vendor/cli/dist/commands/_lib/apply/diff.js +0 -1
- package/vendor/cli/dist/commands/_lib/apply/map-config.js +0 -5
- package/vendor/cli/dist/commands/_lib/init-from-org/bootstrap.js +2 -7
- package/vendor/cli/dist/commands/chat.d.ts +0 -1
- package/vendor/cli/dist/commands/chat.js +3 -65
- package/vendor/cli/dist/commands/memory/_lib/errors.d.ts +8 -0
- package/vendor/cli/dist/commands/memory/_lib/errors.js +12 -0
- package/vendor/cli/dist/commands/memory/_lib/mcp.js +3 -3
- package/vendor/cli/dist/commands/memory/_lib/seed-cmd.d.ts +8 -0
- package/vendor/cli/dist/commands/memory/_lib/seed-cmd.js +11 -3
- package/vendor/cli/dist/config/define.d.ts +0 -5
- package/vendor/cli/dist/config/define.js +27 -0
- package/vendor/cli/dist/connectors/README.md +6 -3
- package/vendor/cli/dist/connectors/github.ts +0 -6
- package/vendor/cli/dist/connectors/google_calendar.ts +0 -4
- package/vendor/cli/dist/connectors/google_drive.ts +0 -2
- package/vendor/cli/dist/connectors/google_gmail.ts +0 -6
- package/vendor/cli/dist/connectors/market_quotes.ts +0 -1
- package/vendor/cli/dist/connectors/microsoft_outlook.ts +0 -2
- package/vendor/cli/dist/connectors/postgres.ts +68 -3
- package/vendor/cli/dist/connectors/whatsapp_web.ts +2 -8
- package/vendor/cli/dist/connectors/x.ts +3 -9
- package/vendor/cli/dist/connectors/youtube.ts +0 -5
- package/vendor/cli/dist/index.js +0 -1
- package/vendor/cli/dist/runtime-components.json +4 -4
- package/vendor/cli/dist/templates/README.md.tmpl +1 -1
- package/vendor/cli/package.json +1 -1
- package/vendor/connector-sdk/dist/connector-runtime.d.ts +1 -1
- package/vendor/connector-sdk/dist/connector-runtime.js +1 -1
- package/vendor/connector-sdk/dist/connector-types.d.ts +14 -2
- package/vendor/connector-sdk/dist/define-connector.d.ts +3 -5
- package/vendor/connector-sdk/dist/define-connector.js +1 -1
- package/vendor/connector-sdk/dist/device-manifest.d.ts +0 -1
- package/vendor/connector-sdk/dist/extension-network.js +1 -2
- package/vendor/connector-sdk/package.json +1 -1
- package/vendor/connector-worker/dist/daemon/generated/headless-device-connector-manifests.json +1 -1
- package/vendor/connector-worker/dist/executor/interface.d.ts +2 -1
- package/vendor/connector-worker/dist/executor/isolate.js +4 -1
- package/vendor/connector-worker/package.json +1 -1
- package/vendor/core/dist/contracts/agent-settings.d.ts +0 -1
- package/vendor/core/dist/contracts/agent-settings.js +0 -1
- package/vendor/core/dist/contracts/tools/manage-classifiers.d.ts +6 -6
- package/vendor/core/dist/contracts/tools/manage-classifiers.js +4 -6
- package/vendor/core/dist/contracts/tools/manage-connections.d.ts +0 -1
- package/vendor/core/dist/contracts/tools/manage-connections.js +3 -4
- package/vendor/core/dist/contracts/tools/manage-entity.d.ts +2 -2
- package/vendor/core/dist/contracts/tools/manage-entity.js +4 -2
- package/vendor/core/dist/logger.js +13 -2
- package/vendor/core/dist/worker/wire.d.ts +1 -6
- package/vendor/core/dist/worker/wire.js +1 -1
- package/vendor/core/package.json +1 -1
package/dist/component.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
"@anthropic-ai/sdk": ["@anthropic-ai/sdk@0.91.1", "", { "dependencies": { "json-schema-to-ts": "^3.1.1" }, "peerDependencies": { "zod": "^3.25.0 || ^4.0.0" }, "bin": { "anthropic-ai-sdk": "bin/cli" } }, "sha512-LAmu761tSN9r66ixvmciswUj/ZC+1Q4iAfpedTfSVLeswRwnY3n2Nb6Tsk+cLPP28aLOPWeMgIuTuCcMC6W/iw=="],
|
|
24
24
|
|
|
25
|
-
"@aws-sdk/client-bedrock-runtime": ["@aws-sdk/client-bedrock-runtime@3.
|
|
25
|
+
"@aws-sdk/client-bedrock-runtime": ["@aws-sdk/client-bedrock-runtime@3.1146.0", "", { "dependencies": { "@aws-sdk/core": "^3.978.1", "@aws-sdk/credential-provider-node": "^3.972.84", "@aws-sdk/eventstream-handler-node": "^3.972.35", "@aws-sdk/middleware-eventstream": "^3.972.30", "@aws-sdk/middleware-websocket": "^3.972.54", "@aws-sdk/token-providers": "3.1146.0", "@aws-sdk/types": "^3.974.6", "@smithy/core": "^3.35.0", "@smithy/fetch-http-handler": "^5.8.0", "@smithy/node-http-handler": "^4.12.1", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-FPg7W8TtLGv6ruAjkfjhX02ks6ozhwQ12tBp0hdc9DPBx7stsJbwQunejwQhF5dfdOtShkTJuXQKNR7BqZGjlg=="],
|
|
26
26
|
|
|
27
27
|
"@aws-sdk/core": ["@aws-sdk/core@3.978.1", "", { "dependencies": { "@aws-sdk/types": "^3.974.6", "@aws-sdk/xml-builder": "^3.972.41", "@aws/lambda-invoke-store": "^0.3.0", "@smithy/core": "^3.35.0", "@smithy/signature-v4": "^5.7.3", "@smithy/types": "^4.19.0", "bowser": "^2.11.0", "tslib": "^2.6.2" } }, "sha512-LbY9aGsEiznDWmUc30Nwv3aIX/+dbwTx8KfS0yOC3NPYMO+O91e6jkT1azf34FwjOndq8/Q+RcVVZz5xnerwdg=="],
|
|
28
28
|
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
|
|
53
53
|
"@aws-sdk/signature-v4-multi-region": ["@aws-sdk/signature-v4-multi-region@3.996.47", "", { "dependencies": { "@aws-sdk/types": "^3.974.6", "@smithy/signature-v4": "^5.7.3", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-Zk08macMvQTHzQJCLJVkOlviVoqwYMrpXv4lmLN7b7sAbiMoOK7Go0NYdR5UeF+MW8LIbRmwrNy9u/5VvX1U5g=="],
|
|
54
54
|
|
|
55
|
-
"@aws-sdk/token-providers": ["@aws-sdk/token-providers@3.
|
|
55
|
+
"@aws-sdk/token-providers": ["@aws-sdk/token-providers@3.1146.0", "", { "dependencies": { "@aws-sdk/core": "^3.978.1", "@aws-sdk/nested-clients": "^3.997.46", "@aws-sdk/types": "^3.974.6", "@smithy/core": "^3.35.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-ocX29IyTSK/9y25lZ7X7E/1v04BIZ3kfu9DDDYr/c9aJxFik53kvzJao5T25lh/Uob9VkVAbgXRN776nr1EI3Q=="],
|
|
56
56
|
|
|
57
57
|
"@aws-sdk/types": ["@aws-sdk/types@3.974.6", "", { "dependencies": { "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-v/clNZzZnDxGyvpHMOGpJKVXFAExJzUNAAjaWGdcx8QAcXLGwTaOkw33p5SHAi0YAioK32xB3hWwOekRVfmfKg=="],
|
|
58
58
|
|
|
@@ -248,21 +248,21 @@
|
|
|
248
248
|
|
|
249
249
|
"@sentry/conventions": ["@sentry/conventions@0.16.0", "", {}, "sha512-fO9PLmHdVURcSPUpWCItWAtgKiMwGdJHbovoSEyLplX5sxs2ugvI4CBPTrkkgqhObnZOD0CnWBKDzSVQYBKEyQ=="],
|
|
250
250
|
|
|
251
|
-
"@sentry/core": ["@sentry/core@10.
|
|
251
|
+
"@sentry/core": ["@sentry/core@10.76.0", "", { "dependencies": { "@sentry/conventions": "^0.16.0" } }, "sha512-H9irBNXHdkgvl86EKlQrPTGYyzvI8GUZ8eoWLay9IuqqZC6pWesf0nH7z/glxKBo7BEw3PIG+unQByHugBnsCg=="],
|
|
252
252
|
|
|
253
|
-
"@sentry/node": ["@sentry/node@10.
|
|
253
|
+
"@sentry/node": ["@sentry/node@10.76.0", "", { "dependencies": { "@opentelemetry/api": "^1.9.1", "@opentelemetry/instrumentation": "^0.220.0", "@opentelemetry/sdk-trace-base": "^2.9.0", "@sentry/conventions": "^0.16.0", "@sentry/core": "10.76.0", "@sentry/node-core": "10.76.0", "@sentry/opentelemetry": "10.76.0", "@sentry/server-utils": "10.76.0", "import-in-the-middle": "^3.0.0" } }, "sha512-qWt0301wRws9HtbGsOmXapS69cIL5Ald8ZurKsGrqbQ65Ls7QqwS8ZeSS47PRLeJzpQT0xfr4+uNNm6R4hqyjQ=="],
|
|
254
254
|
|
|
255
|
-
"@sentry/node-core": ["@sentry/node-core@10.
|
|
255
|
+
"@sentry/node-core": ["@sentry/node-core@10.76.0", "", { "dependencies": { "@sentry/conventions": "^0.16.0", "@sentry/core": "10.76.0", "@sentry/opentelemetry": "10.76.0", "import-in-the-middle": "^3.0.0" }, "peerDependencies": { "@opentelemetry/api": "^1.9.0", "@opentelemetry/core": "^1.30.1 || ^2.1.0", "@opentelemetry/exporter-trace-otlp-http": ">=0.57.0 <1", "@opentelemetry/instrumentation": ">=0.57.1 <1", "@opentelemetry/sdk-trace-base": "^1.30.1 || ^2.1.0" }, "optionalPeers": ["@opentelemetry/exporter-trace-otlp-http"] }, "sha512-JCLrnn9otQV0xbj7xkgosj732LrVY2LXjYLhfE0WH6DZHRU1nLGcoxyPxWH9l0NkrQYA2KLNiAMn3FmcA98lNw=="],
|
|
256
256
|
|
|
257
|
-
"@sentry/opentelemetry": ["@sentry/opentelemetry@10.
|
|
257
|
+
"@sentry/opentelemetry": ["@sentry/opentelemetry@10.76.0", "", { "dependencies": { "@sentry/conventions": "^0.16.0", "@sentry/core": "10.76.0" }, "peerDependencies": { "@opentelemetry/api": "^1.9.0", "@opentelemetry/core": "^1.30.1 || ^2.1.0", "@opentelemetry/sdk-trace-base": "^1.30.1 || ^2.1.0" } }, "sha512-elMhLZQ56fBUbES7nnZ53tJMuchLPdx8ibQqtEIUGrhSkl4PD0yC1xKP/btQjmIi16GrzZUJlKDbcOc+0o8ZIw=="],
|
|
258
258
|
|
|
259
|
-
"@sentry/server-utils": ["@sentry/server-utils@10.
|
|
259
|
+
"@sentry/server-utils": ["@sentry/server-utils@10.76.0", "", { "dependencies": { "@sentry/conventions": "^0.16.0", "@sentry/core": "10.76.0" } }, "sha512-PJT8i3xsaSEAwVjgVrVClpFVB9+caxn4AVlUbgjt3/NwkoggKmSaoSUq5vpvzFPO11H1V+50qz9xxCw9gc9EzQ=="],
|
|
260
260
|
|
|
261
261
|
"@sinclair/typebox": ["@sinclair/typebox@0.34.52", "", {}, "sha512-XiMQh7qqVlxZzcVD+kkGMNGMzcTrDMLWI7S4x7z1MkCkbDPrekpZXEUK0eZqZFMuHQg2a2DZOcDIh9o5v3Gonw=="],
|
|
262
262
|
|
|
263
263
|
"@sindresorhus/is": ["@sindresorhus/is@4.6.0", "", {}, "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw=="],
|
|
264
264
|
|
|
265
|
-
"@smithy/core": ["@smithy/core@3.35.
|
|
265
|
+
"@smithy/core": ["@smithy/core@3.35.1", "", { "dependencies": { "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-i4YPS4B6ts7bjn7UwLnGjiZdprOvHvgGobFZsYK3GIY3E5hIqtj0rReU69BcTpGp+fvtraSNXeG1l+jtJvF55w=="],
|
|
266
266
|
|
|
267
267
|
"@smithy/credential-provider-imds": ["@smithy/credential-provider-imds@4.5.2", "", { "dependencies": { "@smithy/core": "^3.33.2", "@smithy/types": "^4.17.2", "tslib": "^2.6.2" } }, "sha512-A9uSdn72ozbRUSit0eib0TW7nXuNPlaeM0zcGkJ+nE6tFcSDbnmtwoxbTCFBukVQcszDAyvsd7+rTduPTXpygg=="],
|
|
268
268
|
|
|
@@ -282,7 +282,7 @@
|
|
|
282
282
|
|
|
283
283
|
"@tootallnate/quickjs-emscripten": ["@tootallnate/quickjs-emscripten@0.23.0", "", {}, "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA=="],
|
|
284
284
|
|
|
285
|
-
"@types/node": ["@types/node@26.6.
|
|
285
|
+
"@types/node": ["@types/node@26.6.4", "", { "dependencies": { "undici-types": "~8.9.0" } }, "sha512-ldVPDCzj7fsaGZrLB0NuHuTvJcsNasysBAqMolr/cgxrLd1xbqxIr3XJiPnHHJUCxj5sNF1vnRj9aWnrVh5Jcg=="],
|
|
286
286
|
|
|
287
287
|
"@types/retry": ["@types/retry@0.12.0", "", {}, "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA=="],
|
|
288
288
|
|
|
@@ -522,13 +522,13 @@
|
|
|
522
522
|
|
|
523
523
|
"ignore": ["ignore@5.3.2", "", {}, "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g=="],
|
|
524
524
|
|
|
525
|
-
"import-in-the-middle": ["import-in-the-middle@3.5.
|
|
525
|
+
"import-in-the-middle": ["import-in-the-middle@3.5.2", "", { "dependencies": { "cjs-module-lexer": "^2.2.0", "es-module-lexer": "^3.0.2", "module-details-from-path": "^1.0.4" } }, "sha512-WseIA/4o56+GYO3RmlOPvejYi771OFeJEeK/ejROsr9bdjW+E5NXTOD1Di8TL40Qgg3JJX9aa97Hf8iiSVIKZw=="],
|
|
526
526
|
|
|
527
527
|
"inherits": ["inherits@2.0.4", "", {}, "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="],
|
|
528
528
|
|
|
529
529
|
"ini": ["ini@6.0.0", "", {}, "sha512-IBTdIkzZNOpqm7q3dRqJvMaldXjDHWkEDfrwGEQTs5eaQMWV+djAhR+wahyNNMAa+qpbDUhBMVt4ZKNwpPm7xQ=="],
|
|
530
530
|
|
|
531
|
-
"ip-address": ["ip-address@10.7.
|
|
531
|
+
"ip-address": ["ip-address@10.7.3", "", {}, "sha512-A1kdq/tSb5QjvKvAMgIoEvDBIgL7qaqVP/jkvSwYYRZ9iEzvPpopxp2wQfu3SuZRHtpHNxMn8Fs0bS+gf5Xmwg=="],
|
|
532
532
|
|
|
533
533
|
"is-callable": ["is-callable@1.2.7", "", {}, "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA=="],
|
|
534
534
|
|
|
@@ -556,7 +556,7 @@
|
|
|
556
556
|
|
|
557
557
|
"isolated-vm-next": ["isolated-vm@7.0.1", "", { "dependencies": { "node-gyp-build": "^4.8.4" } }, "sha512-nBCQ1hXEaYKYJ79wwfhaF44ITOJC30Hw0wPEsFeNsdD3hdeKK7FW1SGMQYBUA+qasvkqdOazI+iBuq0lcbN/aw=="],
|
|
558
558
|
|
|
559
|
-
"isomorphic-git": ["isomorphic-git@1.
|
|
559
|
+
"isomorphic-git": ["isomorphic-git@1.43.0", "", { "dependencies": { "async-lock": "^1.4.1", "clean-git-ref": "^2.0.1", "crc-32": "^1.2.0", "diff3": "0.0.3", "ignore": "^5.1.4", "minimisted": "^2.0.0", "pako": "^1.0.10", "pify": "^4.0.1", "readable-stream": "^4.0.0", "sha.js": "^2.4.12", "simple-get": "^4.0.1" }, "bin": { "isogit": "cli.cjs" } }, "sha512-QhJ97lDzpcsV9++LLDs3GcSsY6JwbV7aWbB53gfxNXDDve30Uf3T9G1IzIL2TXfPCvx2rOcbrf5X31oSoPaX/w=="],
|
|
560
560
|
|
|
561
561
|
"jiti": ["jiti@2.7.0", "", { "bin": "lib/jiti-cli.mjs" }, "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ=="],
|
|
562
562
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobu/runtime-device",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.2.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@lobu/runtime-device",
|
|
9
|
-
"version": "21.
|
|
9
|
+
"version": "21.2.0",
|
|
10
10
|
"license": "BUSL-1.1",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@lobu/cli": "file:vendor/cli",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"node_modules/@aws-sdk/client-bedrock-runtime": {
|
|
53
|
-
"version": "3.
|
|
54
|
-
"resolved": "https://registry.npmjs.org/@aws-sdk/client-bedrock-runtime/-/client-bedrock-runtime-3.
|
|
55
|
-
"integrity": "sha512-
|
|
53
|
+
"version": "3.1146.0",
|
|
54
|
+
"resolved": "https://registry.npmjs.org/@aws-sdk/client-bedrock-runtime/-/client-bedrock-runtime-3.1146.0.tgz",
|
|
55
|
+
"integrity": "sha512-FPg7W8TtLGv6ruAjkfjhX02ks6ozhwQ12tBp0hdc9DPBx7stsJbwQunejwQhF5dfdOtShkTJuXQKNR7BqZGjlg==",
|
|
56
56
|
"license": "Apache-2.0",
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@aws-sdk/core": "^3.978.1",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@aws-sdk/eventstream-handler-node": "^3.972.35",
|
|
61
61
|
"@aws-sdk/middleware-eventstream": "^3.972.30",
|
|
62
62
|
"@aws-sdk/middleware-websocket": "^3.972.54",
|
|
63
|
-
"@aws-sdk/token-providers": "3.
|
|
63
|
+
"@aws-sdk/token-providers": "3.1146.0",
|
|
64
64
|
"@aws-sdk/types": "^3.974.6",
|
|
65
65
|
"@smithy/core": "^3.35.0",
|
|
66
66
|
"@smithy/fetch-http-handler": "^5.8.0",
|
|
@@ -339,9 +339,9 @@
|
|
|
339
339
|
}
|
|
340
340
|
},
|
|
341
341
|
"node_modules/@aws-sdk/token-providers": {
|
|
342
|
-
"version": "3.
|
|
343
|
-
"resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.
|
|
344
|
-
"integrity": "sha512-
|
|
342
|
+
"version": "3.1146.0",
|
|
343
|
+
"resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.1146.0.tgz",
|
|
344
|
+
"integrity": "sha512-ocX29IyTSK/9y25lZ7X7E/1v04BIZ3kfu9DDDYr/c9aJxFik53kvzJao5T25lh/Uob9VkVAbgXRN776nr1EI3Q==",
|
|
345
345
|
"license": "Apache-2.0",
|
|
346
346
|
"dependencies": {
|
|
347
347
|
"@aws-sdk/core": "^3.978.1",
|
|
@@ -1775,9 +1775,9 @@
|
|
|
1775
1775
|
}
|
|
1776
1776
|
},
|
|
1777
1777
|
"node_modules/@sentry/core": {
|
|
1778
|
-
"version": "10.
|
|
1779
|
-
"resolved": "https://registry.npmjs.org/@sentry/core/-/core-10.
|
|
1780
|
-
"integrity": "sha512-
|
|
1778
|
+
"version": "10.76.0",
|
|
1779
|
+
"resolved": "https://registry.npmjs.org/@sentry/core/-/core-10.76.0.tgz",
|
|
1780
|
+
"integrity": "sha512-H9irBNXHdkgvl86EKlQrPTGYyzvI8GUZ8eoWLay9IuqqZC6pWesf0nH7z/glxKBo7BEw3PIG+unQByHugBnsCg==",
|
|
1781
1781
|
"license": "MIT",
|
|
1782
1782
|
"dependencies": {
|
|
1783
1783
|
"@sentry/conventions": "^0.16.0"
|
|
@@ -1787,19 +1787,19 @@
|
|
|
1787
1787
|
}
|
|
1788
1788
|
},
|
|
1789
1789
|
"node_modules/@sentry/node": {
|
|
1790
|
-
"version": "10.
|
|
1791
|
-
"resolved": "https://registry.npmjs.org/@sentry/node/-/node-10.
|
|
1792
|
-
"integrity": "sha512-
|
|
1790
|
+
"version": "10.76.0",
|
|
1791
|
+
"resolved": "https://registry.npmjs.org/@sentry/node/-/node-10.76.0.tgz",
|
|
1792
|
+
"integrity": "sha512-qWt0301wRws9HtbGsOmXapS69cIL5Ald8ZurKsGrqbQ65Ls7QqwS8ZeSS47PRLeJzpQT0xfr4+uNNm6R4hqyjQ==",
|
|
1793
1793
|
"license": "MIT",
|
|
1794
1794
|
"dependencies": {
|
|
1795
1795
|
"@opentelemetry/api": "^1.9.1",
|
|
1796
1796
|
"@opentelemetry/instrumentation": "^0.220.0",
|
|
1797
1797
|
"@opentelemetry/sdk-trace-base": "^2.9.0",
|
|
1798
1798
|
"@sentry/conventions": "^0.16.0",
|
|
1799
|
-
"@sentry/core": "10.
|
|
1800
|
-
"@sentry/node-core": "10.
|
|
1801
|
-
"@sentry/opentelemetry": "10.
|
|
1802
|
-
"@sentry/server-utils": "10.
|
|
1799
|
+
"@sentry/core": "10.76.0",
|
|
1800
|
+
"@sentry/node-core": "10.76.0",
|
|
1801
|
+
"@sentry/opentelemetry": "10.76.0",
|
|
1802
|
+
"@sentry/server-utils": "10.76.0",
|
|
1803
1803
|
"import-in-the-middle": "^3.0.0"
|
|
1804
1804
|
},
|
|
1805
1805
|
"engines": {
|
|
@@ -1807,14 +1807,14 @@
|
|
|
1807
1807
|
}
|
|
1808
1808
|
},
|
|
1809
1809
|
"node_modules/@sentry/node-core": {
|
|
1810
|
-
"version": "10.
|
|
1811
|
-
"resolved": "https://registry.npmjs.org/@sentry/node-core/-/node-core-10.
|
|
1812
|
-
"integrity": "sha512-
|
|
1810
|
+
"version": "10.76.0",
|
|
1811
|
+
"resolved": "https://registry.npmjs.org/@sentry/node-core/-/node-core-10.76.0.tgz",
|
|
1812
|
+
"integrity": "sha512-JCLrnn9otQV0xbj7xkgosj732LrVY2LXjYLhfE0WH6DZHRU1nLGcoxyPxWH9l0NkrQYA2KLNiAMn3FmcA98lNw==",
|
|
1813
1813
|
"license": "MIT",
|
|
1814
1814
|
"dependencies": {
|
|
1815
1815
|
"@sentry/conventions": "^0.16.0",
|
|
1816
|
-
"@sentry/core": "10.
|
|
1817
|
-
"@sentry/opentelemetry": "10.
|
|
1816
|
+
"@sentry/core": "10.76.0",
|
|
1817
|
+
"@sentry/opentelemetry": "10.76.0",
|
|
1818
1818
|
"import-in-the-middle": "^3.0.0"
|
|
1819
1819
|
},
|
|
1820
1820
|
"engines": {
|
|
@@ -1846,13 +1846,13 @@
|
|
|
1846
1846
|
}
|
|
1847
1847
|
},
|
|
1848
1848
|
"node_modules/@sentry/opentelemetry": {
|
|
1849
|
-
"version": "10.
|
|
1850
|
-
"resolved": "https://registry.npmjs.org/@sentry/opentelemetry/-/opentelemetry-10.
|
|
1851
|
-
"integrity": "sha512-
|
|
1849
|
+
"version": "10.76.0",
|
|
1850
|
+
"resolved": "https://registry.npmjs.org/@sentry/opentelemetry/-/opentelemetry-10.76.0.tgz",
|
|
1851
|
+
"integrity": "sha512-elMhLZQ56fBUbES7nnZ53tJMuchLPdx8ibQqtEIUGrhSkl4PD0yC1xKP/btQjmIi16GrzZUJlKDbcOc+0o8ZIw==",
|
|
1852
1852
|
"license": "MIT",
|
|
1853
1853
|
"dependencies": {
|
|
1854
1854
|
"@sentry/conventions": "^0.16.0",
|
|
1855
|
-
"@sentry/core": "10.
|
|
1855
|
+
"@sentry/core": "10.76.0"
|
|
1856
1856
|
},
|
|
1857
1857
|
"engines": {
|
|
1858
1858
|
"node": ">=18"
|
|
@@ -1864,13 +1864,13 @@
|
|
|
1864
1864
|
}
|
|
1865
1865
|
},
|
|
1866
1866
|
"node_modules/@sentry/server-utils": {
|
|
1867
|
-
"version": "10.
|
|
1868
|
-
"resolved": "https://registry.npmjs.org/@sentry/server-utils/-/server-utils-10.
|
|
1869
|
-
"integrity": "sha512-
|
|
1867
|
+
"version": "10.76.0",
|
|
1868
|
+
"resolved": "https://registry.npmjs.org/@sentry/server-utils/-/server-utils-10.76.0.tgz",
|
|
1869
|
+
"integrity": "sha512-PJT8i3xsaSEAwVjgVrVClpFVB9+caxn4AVlUbgjt3/NwkoggKmSaoSUq5vpvzFPO11H1V+50qz9xxCw9gc9EzQ==",
|
|
1870
1870
|
"license": "MIT",
|
|
1871
1871
|
"dependencies": {
|
|
1872
1872
|
"@sentry/conventions": "^0.16.0",
|
|
1873
|
-
"@sentry/core": "10.
|
|
1873
|
+
"@sentry/core": "10.76.0"
|
|
1874
1874
|
},
|
|
1875
1875
|
"engines": {
|
|
1876
1876
|
"node": ">=18"
|
|
@@ -1895,9 +1895,9 @@
|
|
|
1895
1895
|
}
|
|
1896
1896
|
},
|
|
1897
1897
|
"node_modules/@smithy/core": {
|
|
1898
|
-
"version": "3.35.
|
|
1899
|
-
"resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.35.
|
|
1900
|
-
"integrity": "sha512-
|
|
1898
|
+
"version": "3.35.1",
|
|
1899
|
+
"resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.35.1.tgz",
|
|
1900
|
+
"integrity": "sha512-i4YPS4B6ts7bjn7UwLnGjiZdprOvHvgGobFZsYK3GIY3E5hIqtj0rReU69BcTpGp+fvtraSNXeG1l+jtJvF55w==",
|
|
1901
1901
|
"license": "Apache-2.0",
|
|
1902
1902
|
"dependencies": {
|
|
1903
1903
|
"@smithy/types": "^4.19.0",
|
|
@@ -2015,9 +2015,9 @@
|
|
|
2015
2015
|
"license": "MIT"
|
|
2016
2016
|
},
|
|
2017
2017
|
"node_modules/@types/node": {
|
|
2018
|
-
"version": "26.6.
|
|
2019
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.
|
|
2020
|
-
"integrity": "sha512-
|
|
2018
|
+
"version": "26.6.4",
|
|
2019
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.4.tgz",
|
|
2020
|
+
"integrity": "sha512-ldVPDCzj7fsaGZrLB0NuHuTvJcsNasysBAqMolr/cgxrLd1xbqxIr3XJiPnHHJUCxj5sNF1vnRj9aWnrVh5Jcg==",
|
|
2021
2021
|
"license": "MIT",
|
|
2022
2022
|
"dependencies": {
|
|
2023
2023
|
"undici-types": "~8.9.0"
|
|
@@ -3639,9 +3639,9 @@
|
|
|
3639
3639
|
}
|
|
3640
3640
|
},
|
|
3641
3641
|
"node_modules/import-in-the-middle": {
|
|
3642
|
-
"version": "3.5.
|
|
3643
|
-
"resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-3.5.
|
|
3644
|
-
"integrity": "sha512-
|
|
3642
|
+
"version": "3.5.2",
|
|
3643
|
+
"resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-3.5.2.tgz",
|
|
3644
|
+
"integrity": "sha512-WseIA/4o56+GYO3RmlOPvejYi771OFeJEeK/ejROsr9bdjW+E5NXTOD1Di8TL40Qgg3JJX9aa97Hf8iiSVIKZw==",
|
|
3645
3645
|
"license": "Apache-2.0",
|
|
3646
3646
|
"dependencies": {
|
|
3647
3647
|
"cjs-module-lexer": "^2.2.0",
|
|
@@ -3668,9 +3668,9 @@
|
|
|
3668
3668
|
}
|
|
3669
3669
|
},
|
|
3670
3670
|
"node_modules/ip-address": {
|
|
3671
|
-
"version": "10.7.
|
|
3672
|
-
"resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.
|
|
3673
|
-
"integrity": "sha512-
|
|
3671
|
+
"version": "10.7.3",
|
|
3672
|
+
"resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.3.tgz",
|
|
3673
|
+
"integrity": "sha512-A1kdq/tSb5QjvKvAMgIoEvDBIgL7qaqVP/jkvSwYYRZ9iEzvPpopxp2wQfu3SuZRHtpHNxMn8Fs0bS+gf5Xmwg==",
|
|
3674
3674
|
"license": "MIT",
|
|
3675
3675
|
"engines": {
|
|
3676
3676
|
"node": ">= 12"
|
|
@@ -3844,9 +3844,9 @@
|
|
|
3844
3844
|
}
|
|
3845
3845
|
},
|
|
3846
3846
|
"node_modules/isomorphic-git": {
|
|
3847
|
-
"version": "1.
|
|
3848
|
-
"resolved": "https://registry.npmjs.org/isomorphic-git/-/isomorphic-git-1.
|
|
3849
|
-
"integrity": "sha512-
|
|
3847
|
+
"version": "1.43.0",
|
|
3848
|
+
"resolved": "https://registry.npmjs.org/isomorphic-git/-/isomorphic-git-1.43.0.tgz",
|
|
3849
|
+
"integrity": "sha512-QhJ97lDzpcsV9++LLDs3GcSsY6JwbV7aWbB53gfxNXDDve30Uf3T9G1IzIL2TXfPCvx2rOcbrf5X31oSoPaX/w==",
|
|
3850
3850
|
"license": "MIT",
|
|
3851
3851
|
"dependencies": {
|
|
3852
3852
|
"async-lock": "^1.4.1",
|
|
@@ -5818,7 +5818,7 @@
|
|
|
5818
5818
|
},
|
|
5819
5819
|
"vendor/cli": {
|
|
5820
5820
|
"name": "@lobu/cli",
|
|
5821
|
-
"version": "21.
|
|
5821
|
+
"version": "21.2.0",
|
|
5822
5822
|
"license": "Apache-2.0",
|
|
5823
5823
|
"dependencies": {
|
|
5824
5824
|
"@clack/prompts": "^1.2.0",
|
|
@@ -5861,7 +5861,7 @@
|
|
|
5861
5861
|
},
|
|
5862
5862
|
"vendor/connector-sdk": {
|
|
5863
5863
|
"name": "@lobu/connector-sdk",
|
|
5864
|
-
"version": "21.
|
|
5864
|
+
"version": "21.2.0",
|
|
5865
5865
|
"license": "BUSL-1.1",
|
|
5866
5866
|
"dependencies": {
|
|
5867
5867
|
"@lobu/core": "file:../core",
|
|
@@ -5876,7 +5876,7 @@
|
|
|
5876
5876
|
},
|
|
5877
5877
|
"vendor/connector-worker": {
|
|
5878
5878
|
"name": "@lobu/connector-worker",
|
|
5879
|
-
"version": "21.
|
|
5879
|
+
"version": "21.2.0",
|
|
5880
5880
|
"license": "BUSL-1.1",
|
|
5881
5881
|
"dependencies": {
|
|
5882
5882
|
"@agentclientprotocol/sdk": "1.4.0",
|
|
@@ -5902,7 +5902,7 @@
|
|
|
5902
5902
|
},
|
|
5903
5903
|
"vendor/core": {
|
|
5904
5904
|
"name": "@lobu/core",
|
|
5905
|
-
"version": "21.
|
|
5905
|
+
"version": "21.2.0",
|
|
5906
5906
|
"license": "Apache-2.0",
|
|
5907
5907
|
"dependencies": {
|
|
5908
5908
|
"@opentelemetry/api": "^1.9.0",
|
package/package.json
CHANGED
|
@@ -432,7 +432,10 @@ export class ApplyClient {
|
|
|
432
432
|
// unrelated field never silently clears the server's schema.
|
|
433
433
|
// When the config declares a partial properties object and prune is off,
|
|
434
434
|
// merge remote-only keys so UI-authored properties survive.
|
|
435
|
-
|
|
435
|
+
// A clear only applies when the config omits the facet. A plain diff
|
|
436
|
+
// (`lobu rollback` has no baseline) names a CHANGED properties field
|
|
437
|
+
// "properties", which is not a removal: declared properties always win.
|
|
438
|
+
const pruneClearProperties = clearFacets?.has("properties") && properties === undefined;
|
|
436
439
|
const pruneClearRequired = clearFacets?.has("required");
|
|
437
440
|
const effectiveProperties = (() => {
|
|
438
441
|
if (pruneClearProperties)
|
|
@@ -252,7 +252,7 @@ export interface DesiredAgent {
|
|
|
252
252
|
/**
|
|
253
253
|
* Settings payload destined for `PATCH /:agentId/config`. Built by the mapper
|
|
254
254
|
* + agent-dir loader: networkConfig, skillsConfig,
|
|
255
|
-
*
|
|
255
|
+
* guardrails, toolsConfig, nixConfig,
|
|
256
256
|
* models (ordered `<provider>/<model>` refs),
|
|
257
257
|
* identityMd/soulMd/userMd.
|
|
258
258
|
*/
|
|
@@ -31,7 +31,6 @@ const AGENT_SETTINGS_FIELD_POLICY = {
|
|
|
31
31
|
sandboxId: "unsupported",
|
|
32
32
|
verboseLogging: "unsupported",
|
|
33
33
|
showToolCalls: "unsupported",
|
|
34
|
-
preApprovedTools: "mapped",
|
|
35
34
|
};
|
|
36
35
|
void AGENT_SETTINGS_FIELD_POLICY;
|
|
37
36
|
import { CronExpressionParser } from "cron-parser";
|
|
@@ -226,9 +225,6 @@ function mapAgent(agent, env, required) {
|
|
|
226
225
|
};
|
|
227
226
|
}
|
|
228
227
|
if (agent.tools) {
|
|
229
|
-
if (agent.tools.preApproved?.length) {
|
|
230
|
-
settings.preApprovedTools = [...new Set(agent.tools.preApproved)];
|
|
231
|
-
}
|
|
232
228
|
const toolsConfig = {};
|
|
233
229
|
if (agent.tools.allowed?.length) {
|
|
234
230
|
toolsConfig.allowedTools = [...new Set(agent.tools.allowed)];
|
|
@@ -299,7 +295,6 @@ function mapAgent(agent, env, required) {
|
|
|
299
295
|
sandboxId: settings.sandboxId,
|
|
300
296
|
verboseLogging: settings.verboseLogging,
|
|
301
297
|
showToolCalls: settings.showToolCalls,
|
|
302
|
-
preApprovedTools: settings.preApprovedTools,
|
|
303
298
|
};
|
|
304
299
|
void _exhaustive;
|
|
305
300
|
return { metadata, settings, providerKeys };
|
|
@@ -266,17 +266,12 @@ function emitAgent(agent, settings, imports, secrets, minter) {
|
|
|
266
266
|
fields.push(`network: ${objectLiteral(netFields, 1)}`);
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
// tools ← toolsConfig
|
|
269
|
+
// tools ← toolsConfig.
|
|
270
270
|
const tools = settings?.toolsConfig;
|
|
271
|
-
|
|
272
|
-
if (preApproved?.length ||
|
|
273
|
-
tools?.allowedTools?.length ||
|
|
271
|
+
if (tools?.allowedTools?.length ||
|
|
274
272
|
tools?.deniedTools?.length ||
|
|
275
273
|
tools?.strictMode !== undefined) {
|
|
276
274
|
const toolFields = [];
|
|
277
|
-
if (preApproved?.length) {
|
|
278
|
-
toolFields.push(`preApproved: ${emitValue(preApproved, 2)}`);
|
|
279
|
-
}
|
|
280
275
|
if (tools?.allowedTools?.length) {
|
|
281
276
|
toolFields.push(`allowed: ${emitValue(tools.allowedTools, 2)}`);
|
|
282
277
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { randomUUID } from "node:crypto";
|
|
2
2
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
3
3
|
import { join } from "node:path";
|
|
4
|
-
import { createInterface } from "node:readline";
|
|
5
4
|
import chalk from "chalk";
|
|
6
5
|
import { LOBU_CONFIG_DIR } from "../internal/context.js";
|
|
7
6
|
import { agentApiBase, apiBaseFromContextUrl, getActiveOrg, getAgentApiToken, getCurrentContextName, resolveContext, resolveGatewayUrl, } from "../internal/index.js";
|
|
@@ -136,7 +135,6 @@ export async function chatCommand(cwd, prompt, options) {
|
|
|
136
135
|
thread: threadId,
|
|
137
136
|
dryRun: options.dryRun,
|
|
138
137
|
forceNew: options.new && !threadId,
|
|
139
|
-
autoApprove: options.autoApprove,
|
|
140
138
|
json: options.json,
|
|
141
139
|
contextName,
|
|
142
140
|
org,
|
|
@@ -245,7 +243,6 @@ async function sendViaApi(gatewayUrl, authToken, opts) {
|
|
|
245
243
|
// an unhandled rejection. Every send outcome releases the subscription.
|
|
246
244
|
const streaming = streamResponse(sseUrl, session.token, sseController, {
|
|
247
245
|
expectedMessageId: messageId,
|
|
248
|
-
autoApprove: opts.autoApprove,
|
|
249
246
|
json: opts.json,
|
|
250
247
|
org: opts.org,
|
|
251
248
|
}).then(() => ({ error: undefined }), (error) => ({ error }));
|
|
@@ -369,8 +366,8 @@ async function streamResponse(sseUrl, token, controller, options) {
|
|
|
369
366
|
finally {
|
|
370
367
|
clearIdleTimer();
|
|
371
368
|
// Charge only the time spent inside this wait. Everything after it —
|
|
372
|
-
// rendering to stdout
|
|
373
|
-
//
|
|
369
|
+
// rendering to stdout — is this client being slow, not the agent going
|
|
370
|
+
// quiet.
|
|
374
371
|
idleBudgetMs = Math.max(0, idleBudgetMs - (Date.now() - waitStartedAt));
|
|
375
372
|
}
|
|
376
373
|
};
|
|
@@ -463,66 +460,7 @@ async function streamResponse(sseUrl, token, controller, options) {
|
|
|
463
460
|
}
|
|
464
461
|
controller.abort();
|
|
465
462
|
return;
|
|
466
|
-
case "tool-approval":
|
|
467
|
-
const args = data.args;
|
|
468
|
-
const argsText = args
|
|
469
|
-
? Object.entries(args)
|
|
470
|
-
.map(([k, v]) => ` ${k}: ${typeof v === "string" ? v : JSON.stringify(v)}`)
|
|
471
|
-
.join("\n")
|
|
472
|
-
: "";
|
|
473
|
-
await writeStderr(chalk.yellow(`\n Tool Approval Required\n ${data.mcpId} → ${data.toolName}\n${argsText}\n`));
|
|
474
|
-
let decision;
|
|
475
|
-
if (options.autoApprove) {
|
|
476
|
-
decision = "always";
|
|
477
|
-
await writeStderr(chalk.dim("\n --auto-approve: approving (always).\n"));
|
|
478
|
-
}
|
|
479
|
-
else {
|
|
480
|
-
const choices = ["1h", "24h", "always", "deny"];
|
|
481
|
-
const labels = {
|
|
482
|
-
"1h": "1h",
|
|
483
|
-
"24h": "24h",
|
|
484
|
-
always: "always",
|
|
485
|
-
deny: "deny always",
|
|
486
|
-
};
|
|
487
|
-
await writeStderr(`${choices
|
|
488
|
-
.map((o, i) => ` ${chalk.bold(`${i + 1}`)}. ${o === "deny" ? chalk.red(labels[o]) : chalk.green(labels[o])}`)
|
|
489
|
-
.join("\n")}\n`);
|
|
490
|
-
const rl = createInterface({
|
|
491
|
-
input: process.stdin,
|
|
492
|
-
output: process.stderr,
|
|
493
|
-
});
|
|
494
|
-
const answer = await new Promise((resolve) => rl.question(chalk.dim("\n Choice (1-4): "), (a) => {
|
|
495
|
-
rl.close();
|
|
496
|
-
resolve(a.trim());
|
|
497
|
-
}));
|
|
498
|
-
const idx = Number.parseInt(answer, 10) - 1;
|
|
499
|
-
decision = choices[idx] || "deny";
|
|
500
|
-
}
|
|
501
|
-
const approveUrl = sseUrl
|
|
502
|
-
.replace(/\/events$/, "")
|
|
503
|
-
.replace(/\/api\/v1\/agents\/[^/]+/, "/api/v1/agents/approve");
|
|
504
|
-
const approveRes = await fetch(approveUrl, {
|
|
505
|
-
method: "POST",
|
|
506
|
-
headers: agentApiHeaders(token, options.org, {
|
|
507
|
-
"Content-Type": "application/json",
|
|
508
|
-
}),
|
|
509
|
-
body: JSON.stringify({ requestId: data.requestId, decision }),
|
|
510
|
-
});
|
|
511
|
-
if (approveRes.ok) {
|
|
512
|
-
const result = (await approveRes.json());
|
|
513
|
-
if (result.result?.content) {
|
|
514
|
-
const text = result.result.content
|
|
515
|
-
.map((c) => c.text)
|
|
516
|
-
.join("\n");
|
|
517
|
-
await writeStdout(renderMarkdown(text));
|
|
518
|
-
}
|
|
519
|
-
await writeStderr(chalk.green(`\n Tool ${decision === "deny" ? "denied" : "approved"} (${decision})\n`));
|
|
520
|
-
}
|
|
521
|
-
else {
|
|
522
|
-
await writeStderr(chalk.red(`\n Approval failed: ${await approveRes.text()}\n`));
|
|
523
|
-
}
|
|
524
|
-
break;
|
|
525
|
-
}
|
|
463
|
+
case "tool-approval":
|
|
526
464
|
case "link-button":
|
|
527
465
|
case "question":
|
|
528
466
|
case "suggestion":
|
|
@@ -29,5 +29,13 @@ export declare function isFailedToolPayload(tool: string | undefined, result: un
|
|
|
29
29
|
* `` `in ${path}` ``.
|
|
30
30
|
*/
|
|
31
31
|
export declare function parseJsonObject(raw: string, label: string): Record<string, unknown>;
|
|
32
|
+
/**
|
|
33
|
+
* Extra guidance for a failed tool call. A 405 on `POST /api/{org}/{tool}` means
|
|
34
|
+
* the request reached a host that does not serve the tool API. The usual cause
|
|
35
|
+
* is a context with no `memoryUrl`: the CLI then falls back to the default cloud
|
|
36
|
+
* MCP host instead of the context's own `url`, and that host answers 405 with an
|
|
37
|
+
* empty body, which on its own gives no hint about the wrong host.
|
|
38
|
+
*/
|
|
39
|
+
export declare function wrongHostHint(status: number): string;
|
|
32
40
|
export {};
|
|
33
41
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -63,4 +63,16 @@ export function parseJsonObject(raw, label) {
|
|
|
63
63
|
}
|
|
64
64
|
return parsed;
|
|
65
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Extra guidance for a failed tool call. A 405 on `POST /api/{org}/{tool}` means
|
|
68
|
+
* the request reached a host that does not serve the tool API. The usual cause
|
|
69
|
+
* is a context with no `memoryUrl`: the CLI then falls back to the default cloud
|
|
70
|
+
* MCP host instead of the context's own `url`, and that host answers 405 with an
|
|
71
|
+
* empty body, which on its own gives no hint about the wrong host.
|
|
72
|
+
*/
|
|
73
|
+
export function wrongHostHint(status) {
|
|
74
|
+
if (status !== 405)
|
|
75
|
+
return "";
|
|
76
|
+
return " A 405 usually means this host does not serve the tool API. If the active context has no memoryUrl, the CLI used the default https://lobu.ai/mcp host; set memoryUrl on the context to the host that serves /api/{org}/{tool}.";
|
|
77
|
+
}
|
|
66
78
|
//# sourceMappingURL=errors.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MCP_PROTOCOL_VERSION } from "@lobu/core";
|
|
2
2
|
import { extractApiError } from "../../../internal/http.js";
|
|
3
|
-
import { ApiError } from "./errors.js";
|
|
3
|
+
import { ApiError, wrongHostHint } from "./errors.js";
|
|
4
4
|
import { getUsableToken, orgFromMcpUrl, resolveServerUrl, } from "./memory-auth.js";
|
|
5
5
|
const JSON_MCP_ACCEPT = "application/json";
|
|
6
6
|
function uniqueStrings(values) {
|
|
@@ -98,7 +98,7 @@ async function mcpFetch(mcpUrl, body, sessionId, protocolVersion, contextName) {
|
|
|
98
98
|
: " without an access token";
|
|
99
99
|
const hint = res.status === 401
|
|
100
100
|
? `${authContext}. Try --context <name> or run \`lobu context use <name>\`.`
|
|
101
|
-
: authContext
|
|
101
|
+
: `${authContext}${wrongHostHint(res.status)}`;
|
|
102
102
|
throw new ApiError(`MCP request failed via ${usedUrl}: ${res.status} ${res.statusText}${hint}`, res.status);
|
|
103
103
|
}
|
|
104
104
|
const raw = await res.text();
|
|
@@ -191,7 +191,7 @@ async function restCall(mcpUrl, path, opts, contextName) {
|
|
|
191
191
|
: " without an access token";
|
|
192
192
|
const hint = res.status === 401
|
|
193
193
|
? `${authContext}. Try --context <name> or run \`lobu context use <name>\`.`
|
|
194
|
-
: authContext
|
|
194
|
+
: `${authContext}${wrongHostHint(res.status)}`;
|
|
195
195
|
throw new ApiError(`${opts.failureLabel} failed via ${usedUrl}: ${message}${hint}`, res.status);
|
|
196
196
|
}
|
|
197
197
|
return (raw.length > 0 ? JSON.parse(raw) : {});
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
interface SeedContext {
|
|
2
|
+
apiBaseUrl: string;
|
|
3
|
+
orgSlug: string;
|
|
4
|
+
token: string;
|
|
5
|
+
dryRun: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function callTool(ctx: SeedContext, toolName: string, args: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
1
8
|
export interface SeedOptions {
|
|
2
9
|
path?: string;
|
|
3
10
|
dryRun?: boolean;
|
|
@@ -6,4 +13,5 @@ export interface SeedOptions {
|
|
|
6
13
|
context?: string;
|
|
7
14
|
}
|
|
8
15
|
export declare function seedMemoryWorkspace(opts?: SeedOptions): Promise<void>;
|
|
16
|
+
export {};
|
|
9
17
|
//# sourceMappingURL=seed-cmd.d.ts.map
|