@lobu/runtime-device 21.0.0 → 21.1.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 +5 -5
- package/npm-shrinkwrap.json +23 -23
- package/package.json +1 -1
- package/vendor/cli/dist/commands/_lib/apply/apply-cmd.js +0 -4
- package/vendor/cli/dist/commands/_lib/apply/client.d.ts +1 -4
- package/vendor/cli/dist/commands/_lib/apply/client.js +2 -8
- package/vendor/cli/dist/commands/_lib/apply/deployment.js +0 -1
- package/vendor/cli/dist/commands/_lib/apply/desired-state.d.ts +0 -2
- package/vendor/cli/dist/commands/_lib/apply/diff.d.ts +0 -1
- package/vendor/cli/dist/commands/_lib/apply/diff.js +0 -6
- package/vendor/cli/dist/commands/_lib/view-bundler.js +6 -2
- package/vendor/cli/dist/commands/memory/_lib/schema.d.ts +0 -1
- package/vendor/cli/dist/commands/memory/_lib/schema.js +0 -9
- package/vendor/cli/dist/commands/memory/_lib/seed-cmd.js +0 -2
- package/vendor/cli/dist/connectors/github.ts +269 -194
- package/vendor/cli/dist/connectors/google_calendar.ts +36 -132
- package/vendor/cli/dist/connectors/jira.ts +13 -4
- package/vendor/cli/dist/connectors/producthunt.ts +3 -1
- package/vendor/cli/dist/connectors/reddit.ts +34 -4
- package/vendor/cli/dist/providers.json +0 -1
- package/vendor/cli/dist/runtime-components.json +4 -4
- package/vendor/cli/package.json +1 -1
- package/vendor/connector-sdk/dist/connector-types.d.ts +0 -2
- package/vendor/connector-sdk/package.json +1 -1
- package/vendor/connector-worker/dist/daemon/client.d.ts +4 -1
- package/vendor/connector-worker/dist/daemon/client.js +3 -0
- package/vendor/connector-worker/dist/daemon/executor.js +4 -0
- package/vendor/connector-worker/dist/daemon/start.js +2 -2
- package/vendor/connector-worker/dist/executor/interface.d.ts +7 -1
- package/vendor/connector-worker/dist/executor/isolate.js +40 -0
- package/vendor/connector-worker/package.json +1 -1
- package/vendor/core/dist/contracts/tools/manage-auth-profiles.d.ts +14 -0
- package/vendor/core/dist/contracts/tools/manage-auth-profiles.js +12 -1
- package/vendor/core/dist/contracts/tools/manage-automations.d.ts +0 -10
- package/vendor/core/dist/contracts/tools/manage-automations.js +0 -33
- package/vendor/core/dist/contracts/tools/manage-classifiers.d.ts +4 -34
- package/vendor/core/dist/contracts/tools/manage-classifiers.js +13 -44
- package/vendor/core/dist/contracts/tools/manage-entity.d.ts +0 -9
- package/vendor/core/dist/contracts/tools/manage-entity.js +0 -6
- package/vendor/core/dist/contracts/tools/view-attach.d.ts +20 -0
- package/vendor/core/dist/contracts/tools/view-attach.js +45 -0
- package/vendor/core/dist/contracts/worker/protocol.d.ts +17 -0
- package/vendor/core/dist/contracts/worker/protocol.js +12 -1
- package/vendor/core/dist/index.d.ts +1 -1
- package/vendor/core/dist/provider-config-types.d.ts +0 -9
- package/vendor/core/dist/sdk-compat.d.ts +1 -1
- package/vendor/core/package.json +6 -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.1143.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.1143.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-NqcVvmeesUZ53mv1wsRi7eohqm0KKdQxfmdaCaWTjWqw4X5gYVAPfy4REVXNs7J0w0eM4I5fctSuS5MhTI14kQ=="],
|
|
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.1143.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-QXGmo86jl7xDzfRWDrs51TXoJi2449miPhrU+G05Hlq2vNqyNVR63yi5ekplyz62rwWVruDBGTJEUJ+NtVc6yA=="],
|
|
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
|
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
|
|
195
195
|
"@mongodb-js/zstd": ["@mongodb-js/zstd@7.0.0", "", { "dependencies": { "node-addon-api": "^8.5.0", "prebuild-install": "^7.1.3" } }, "sha512-mQ2s0pYYiav+tzCDR05Zptem8Ey2v8s11lri5RKGhTtL4COVCvVCk5vtyRYNT+9L8qSfyOqqefF9UtnW8mC5jA=="],
|
|
196
196
|
|
|
197
|
-
"@nodable/entities": ["@nodable/entities@3.
|
|
197
|
+
"@nodable/entities": ["@nodable/entities@3.1.0", "", {}, "sha512-LsS/DjHr+uDM647Gru/cA8+J3a3HfhttwCKLyuoyN7yXTFCxKBtSgMQBvrW9yNPa2/zDRUNuGPaH5QUFoa4arQ=="],
|
|
198
198
|
|
|
199
199
|
"@opentelemetry/api": ["@opentelemetry/api@1.9.1", "", {}, "sha512-gLyJlPHPZYdAk1JENA9LeHejZe1Ti77/pTeFm/nMXmQH/HFZlcS/O2XJB+L8fkbrNSqhdtlvjBVjxwUYanNH5Q=="],
|
|
200
200
|
|
|
@@ -456,7 +456,7 @@
|
|
|
456
456
|
|
|
457
457
|
"fast-xml-builder": ["fast-xml-builder@1.3.1", "", { "dependencies": { "path-expression-matcher": "^1.6.2", "xml-naming": "^0.3.0" } }, "sha512-pIM/1n3ntFXKYrUZwW7QCK0gAW7XY+wzj1YMIV3tLDvPj/V+zTGJK5e3/4WJfwj0qWw2ElNXiTixda/R+3YSug=="],
|
|
458
458
|
|
|
459
|
-
"fast-xml-parser": ["fast-xml-parser@5.11.
|
|
459
|
+
"fast-xml-parser": ["fast-xml-parser@5.11.2", "", { "dependencies": { "@nodable/entities": "^3.0.1", "fast-xml-builder": "^1.2.0", "is-unsafe": "^2.0.0", "path-expression-matcher": "^1.6.2", "strnum": "^2.4.2", "xml-naming": "^0.3.0" }, "bin": { "fxparser": "src/cli/cli.js" } }, "sha512-R9iDuNrQYeQut46cn2r2wHKn4HYzVDvDm5J1wW+koZewykv0yuO2HChTYeZtrULyHIDM9cj9TUXloCsueCQUog=="],
|
|
460
460
|
|
|
461
461
|
"fdir": ["fdir@6.5.0", "", { "peerDependencies": { "picomatch": "^3 || ^4" } }, "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg=="],
|
|
462
462
|
|
|
@@ -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.42.
|
|
559
|
+
"isomorphic-git": ["isomorphic-git@1.42.4", "", { "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-ls44U1EUITCziPQcDWil+xYhm4lCgiIo/pJsHz6QfSsoqh4kKNGv0idx3B+qnQrjNTTdBPSK/D/qa6RJq+tGqA=="],
|
|
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.1.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.1.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.1143.0",
|
|
54
|
+
"resolved": "https://registry.npmjs.org/@aws-sdk/client-bedrock-runtime/-/client-bedrock-runtime-3.1143.0.tgz",
|
|
55
|
+
"integrity": "sha512-NqcVvmeesUZ53mv1wsRi7eohqm0KKdQxfmdaCaWTjWqw4X5gYVAPfy4REVXNs7J0w0eM4I5fctSuS5MhTI14kQ==",
|
|
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.1143.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.1143.0",
|
|
343
|
+
"resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.1143.0.tgz",
|
|
344
|
+
"integrity": "sha512-QXGmo86jl7xDzfRWDrs51TXoJi2449miPhrU+G05Hlq2vNqyNVR63yi5ekplyz62rwWVruDBGTJEUJ+NtVc6yA==",
|
|
345
345
|
"license": "Apache-2.0",
|
|
346
346
|
"dependencies": {
|
|
347
347
|
"@aws-sdk/core": "^3.978.1",
|
|
@@ -1437,9 +1437,9 @@
|
|
|
1437
1437
|
}
|
|
1438
1438
|
},
|
|
1439
1439
|
"node_modules/@nodable/entities": {
|
|
1440
|
-
"version": "3.
|
|
1441
|
-
"resolved": "https://registry.npmjs.org/@nodable/entities/-/entities-3.
|
|
1442
|
-
"integrity": "sha512-
|
|
1440
|
+
"version": "3.1.0",
|
|
1441
|
+
"resolved": "https://registry.npmjs.org/@nodable/entities/-/entities-3.1.0.tgz",
|
|
1442
|
+
"integrity": "sha512-LsS/DjHr+uDM647Gru/cA8+J3a3HfhttwCKLyuoyN7yXTFCxKBtSgMQBvrW9yNPa2/zDRUNuGPaH5QUFoa4arQ==",
|
|
1443
1443
|
"funding": [
|
|
1444
1444
|
{
|
|
1445
1445
|
"type": "github",
|
|
@@ -3203,9 +3203,9 @@
|
|
|
3203
3203
|
}
|
|
3204
3204
|
},
|
|
3205
3205
|
"node_modules/fast-xml-parser": {
|
|
3206
|
-
"version": "5.11.
|
|
3207
|
-
"resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.11.
|
|
3208
|
-
"integrity": "sha512-
|
|
3206
|
+
"version": "5.11.2",
|
|
3207
|
+
"resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.11.2.tgz",
|
|
3208
|
+
"integrity": "sha512-R9iDuNrQYeQut46cn2r2wHKn4HYzVDvDm5J1wW+koZewykv0yuO2HChTYeZtrULyHIDM9cj9TUXloCsueCQUog==",
|
|
3209
3209
|
"funding": [
|
|
3210
3210
|
{
|
|
3211
3211
|
"type": "github",
|
|
@@ -3214,7 +3214,7 @@
|
|
|
3214
3214
|
],
|
|
3215
3215
|
"license": "MIT",
|
|
3216
3216
|
"dependencies": {
|
|
3217
|
-
"@nodable/entities": "^3.0.
|
|
3217
|
+
"@nodable/entities": "^3.0.1",
|
|
3218
3218
|
"fast-xml-builder": "^1.2.0",
|
|
3219
3219
|
"is-unsafe": "^2.0.0",
|
|
3220
3220
|
"path-expression-matcher": "^1.6.2",
|
|
@@ -3844,9 +3844,9 @@
|
|
|
3844
3844
|
}
|
|
3845
3845
|
},
|
|
3846
3846
|
"node_modules/isomorphic-git": {
|
|
3847
|
-
"version": "1.42.
|
|
3848
|
-
"resolved": "https://registry.npmjs.org/isomorphic-git/-/isomorphic-git-1.42.
|
|
3849
|
-
"integrity": "sha512-
|
|
3847
|
+
"version": "1.42.4",
|
|
3848
|
+
"resolved": "https://registry.npmjs.org/isomorphic-git/-/isomorphic-git-1.42.4.tgz",
|
|
3849
|
+
"integrity": "sha512-ls44U1EUITCziPQcDWil+xYhm4lCgiIo/pJsHz6QfSsoqh4kKNGv0idx3B+qnQrjNTTdBPSK/D/qa6RJq+tGqA==",
|
|
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.1.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.1.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.1.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.1.0",
|
|
5906
5906
|
"license": "Apache-2.0",
|
|
5907
5907
|
"dependencies": {
|
|
5908
5908
|
"@opentelemetry/api": "^1.9.0",
|
package/package.json
CHANGED
|
@@ -650,7 +650,6 @@ export async function executePlan(ctx, pendingAuth) {
|
|
|
650
650
|
? automationExecutionConfig(w.model, undefined, w.executor)
|
|
651
651
|
: undefined,
|
|
652
652
|
outputs: w.outputs,
|
|
653
|
-
classifiers: w.classifiers,
|
|
654
653
|
});
|
|
655
654
|
automationId = created.automation_id;
|
|
656
655
|
}
|
|
@@ -748,9 +747,6 @@ export async function executePlan(ctx, pendingAuth) {
|
|
|
748
747
|
...(versionBound.has("outputs")
|
|
749
748
|
? { outputs: w.outputs ?? null }
|
|
750
749
|
: {}),
|
|
751
|
-
...(versionBound.has("classifiers") && w.classifiers !== undefined
|
|
752
|
-
? { classifiers: w.classifiers }
|
|
753
|
-
: {}),
|
|
754
750
|
...(triggersWithVersionChange
|
|
755
751
|
? { triggers: w.triggers ?? [] }
|
|
756
752
|
: {}),
|
|
@@ -161,7 +161,6 @@ export interface RemoteAutomation {
|
|
|
161
161
|
name: string;
|
|
162
162
|
content: string;
|
|
163
163
|
}> | null;
|
|
164
|
-
classifiers?: unknown[] | null;
|
|
165
164
|
outputs?: Record<string, unknown> | null;
|
|
166
165
|
reactions_guidance?: string | null;
|
|
167
166
|
}
|
|
@@ -481,14 +480,13 @@ export declare class ApplyClient {
|
|
|
481
480
|
agent_kind?: string;
|
|
482
481
|
execution_config?: Record<string, unknown> | null;
|
|
483
482
|
outputs?: Record<string, unknown> | null;
|
|
484
|
-
classifiers?: unknown[];
|
|
485
483
|
}): Promise<{
|
|
486
484
|
automation_id?: string;
|
|
487
485
|
}>;
|
|
488
486
|
/**
|
|
489
487
|
* Update the **scalar** fields on the `automations` row — these don't require
|
|
490
488
|
* a new version. Version-bound fields (prompt / sources / reactions_guidance /
|
|
491
|
-
* outputs
|
|
489
|
+
* outputs) require `createAutomationVersion`
|
|
492
490
|
* instead.
|
|
493
491
|
*
|
|
494
492
|
* `null` clears nullable fields (device_worker_id, agent_kind) per the
|
|
@@ -521,7 +519,6 @@ export declare class ApplyClient {
|
|
|
521
519
|
}>;
|
|
522
520
|
sources?: AutomationSource[];
|
|
523
521
|
outputs?: Record<string, unknown> | null;
|
|
524
|
-
classifiers?: unknown[];
|
|
525
522
|
reactions_guidance?: string;
|
|
526
523
|
change_notes?: string;
|
|
527
524
|
/** When set, written atomically with the new version (set_as_current). */
|
|
@@ -595,7 +595,7 @@ export class ApplyClient {
|
|
|
595
595
|
}
|
|
596
596
|
async listAutomations() {
|
|
597
597
|
// `include_details=true` pulls the version-bound fields (prompt,
|
|
598
|
-
//
|
|
598
|
+
// outputs, reactions_guidance) too.
|
|
599
599
|
// Apply diffs against these to detect drift on prompt / sources / etc.
|
|
600
600
|
const { body } = await this.request("GET", `/api/${this.orgSlug}/automations?include_details=true`);
|
|
601
601
|
return body.automations ?? [];
|
|
@@ -637,9 +637,6 @@ export class ApplyClient {
|
|
|
637
637
|
? { execution_config: payload.execution_config }
|
|
638
638
|
: {}),
|
|
639
639
|
...(payload.outputs !== undefined ? { outputs: payload.outputs } : {}),
|
|
640
|
-
...(payload.classifiers !== undefined
|
|
641
|
-
? { classifiers: payload.classifiers }
|
|
642
|
-
: {}),
|
|
643
640
|
});
|
|
644
641
|
return {
|
|
645
642
|
...(body.automation_id ? { automation_id: body.automation_id } : {}),
|
|
@@ -648,7 +645,7 @@ export class ApplyClient {
|
|
|
648
645
|
/**
|
|
649
646
|
* Update the **scalar** fields on the `automations` row — these don't require
|
|
650
647
|
* a new version. Version-bound fields (prompt / sources / reactions_guidance /
|
|
651
|
-
* outputs
|
|
648
|
+
* outputs) require `createAutomationVersion`
|
|
652
649
|
* instead.
|
|
653
650
|
*
|
|
654
651
|
* `null` clears nullable fields (device_worker_id, agent_kind) per the
|
|
@@ -696,9 +693,6 @@ export class ApplyClient {
|
|
|
696
693
|
...(payload.skills !== undefined ? { skills: payload.skills } : {}),
|
|
697
694
|
...(payload.sources !== undefined ? { sources: payload.sources } : {}),
|
|
698
695
|
...(payload.outputs !== undefined ? { outputs: payload.outputs } : {}),
|
|
699
|
-
...(payload.classifiers !== undefined
|
|
700
|
-
? { classifiers: payload.classifiers }
|
|
701
|
-
: {}),
|
|
702
696
|
...(payload.reactions_guidance !== undefined
|
|
703
697
|
? { reactions_guidance: payload.reactions_guidance }
|
|
704
698
|
: {}),
|
|
@@ -207,7 +207,6 @@ export function buildAttributionAndOwned(state, remote, orgId, prune = false) {
|
|
|
207
207
|
// misclassified as "remote moved" blocking drift instead of an update.
|
|
208
208
|
execution_config: automationExecutionConfig(d.model, r?.execution_config, d.executor),
|
|
209
209
|
outputs: p.outputs,
|
|
210
|
-
classifiers: p.classifiers,
|
|
211
210
|
};
|
|
212
211
|
});
|
|
213
212
|
const owned = [];
|
|
@@ -123,8 +123,6 @@ export interface DesiredAutomation {
|
|
|
123
123
|
agentKind?: string;
|
|
124
124
|
/** Named durable outputs; explicit null clears existing declarations. */
|
|
125
125
|
outputs?: Record<string, unknown> | null;
|
|
126
|
-
/** Classifier definitions for extraction (server-side feature). */
|
|
127
|
-
classifiers?: unknown[];
|
|
128
126
|
}
|
|
129
127
|
/** Apply-internal trigger form; `connectionSlug` is resolved before mutation. */
|
|
130
128
|
export type DesiredAutomationEventTrigger = AutomationEventTrigger & {
|
|
@@ -299,7 +299,6 @@ interface AutomationProjection {
|
|
|
299
299
|
tags?: string[] | null;
|
|
300
300
|
agentKind?: string | null;
|
|
301
301
|
outputs?: Record<string, unknown> | null;
|
|
302
|
-
classifiers?: unknown[] | null;
|
|
303
302
|
}
|
|
304
303
|
/**
|
|
305
304
|
* Desired Automation → projection. For fields the two-way diff only compares
|
|
@@ -861,7 +861,6 @@ export const projectDesiredAutomation = (d, remote) => ({
|
|
|
861
861
|
agentKind: d.agentKind !== undefined ? d.agentKind : (remote?.agent_kind ?? null),
|
|
862
862
|
// Config is declarative for outputs: omitting means "no durable outputs".
|
|
863
863
|
outputs: d.outputs ?? null,
|
|
864
|
-
classifiers: d.classifiers !== undefined ? d.classifiers : (remote?.classifiers ?? []),
|
|
865
864
|
});
|
|
866
865
|
const projectRemoteAutomation = (w) => ({
|
|
867
866
|
executor: w.execution_config?.executor ?? null,
|
|
@@ -884,7 +883,6 @@ const projectRemoteAutomation = (w) => ({
|
|
|
884
883
|
tags: w.tags ?? [],
|
|
885
884
|
agentKind: w.agent_kind ?? null,
|
|
886
885
|
outputs: w.outputs ?? null,
|
|
887
|
-
classifiers: w.classifiers ?? [],
|
|
888
886
|
});
|
|
889
887
|
function diffAutomationWithBaseline(desired, remote, baseline) {
|
|
890
888
|
if (!remote) {
|
|
@@ -1057,10 +1055,6 @@ function diffAutomation(desired, remote) {
|
|
|
1057
1055
|
if (!deepEqual(desired.outputs ?? null, remote.outputs ?? null)) {
|
|
1058
1056
|
versionBound.push("outputs");
|
|
1059
1057
|
}
|
|
1060
|
-
if (desired.classifiers !== undefined &&
|
|
1061
|
-
!deepEqual(desired.classifiers, remote.classifiers ?? [])) {
|
|
1062
|
-
versionBound.push("classifiers");
|
|
1063
|
-
}
|
|
1064
1058
|
const changed = [...scalar, ...versionBound];
|
|
1065
1059
|
if (reactionScriptDeclared)
|
|
1066
1060
|
changed.push("reaction_script");
|
|
@@ -187,16 +187,20 @@ export async function collectViewWatchFiles(entry) {
|
|
|
187
187
|
* default; this is the backstop that fails the apply when it does not.
|
|
188
188
|
*/
|
|
189
189
|
export function assertBundlePortable(compiledCode, entry) {
|
|
190
|
+
// Decode percent escapes individually: a JavaScript bundle can also contain
|
|
191
|
+
// literal percent signs, so decoding the whole bundle as a URI would throw.
|
|
192
|
+
const decodedCode = compiledCode.replace(/%([0-9a-f]{2})/gi, (_, hex) => String.fromCharCode(Number.parseInt(hex, 16)));
|
|
190
193
|
const suspects = [entry, dirname(entry)];
|
|
191
194
|
const home = process.env.HOME ?? process.env.USERPROFILE;
|
|
192
195
|
if (home)
|
|
193
196
|
suspects.push(home);
|
|
194
197
|
for (const suspect of suspects) {
|
|
195
|
-
if (suspect &&
|
|
198
|
+
if (suspect &&
|
|
199
|
+
(compiledCode.includes(suspect) || decodedCode.includes(suspect))) {
|
|
196
200
|
throw new Error(`view bundle embeds the local path ${JSON.stringify(suspect)} — bundles must be portable`);
|
|
197
201
|
}
|
|
198
202
|
}
|
|
199
|
-
const encoded =
|
|
203
|
+
const encoded = decodedCode.match(/file:\/\/[^"'\s]*/gi) ?? [];
|
|
200
204
|
for (const url of encoded) {
|
|
201
205
|
// A browser bundle has no business with file URLs: any of them embeds a
|
|
202
206
|
// build-machine path (or its encoding), so reject the bundle outright
|
|
@@ -60,15 +60,6 @@ export function validateDataRecord(parsed, file) {
|
|
|
60
60
|
if (parsed.metadata !== undefined) {
|
|
61
61
|
requireObject(parsed, "metadata", file, errors);
|
|
62
62
|
}
|
|
63
|
-
if (parsed.enabled_classifiers !== undefined &&
|
|
64
|
-
!(Array.isArray(parsed.enabled_classifiers) &&
|
|
65
|
-
parsed.enabled_classifiers.every((value) => typeof value === "string"))) {
|
|
66
|
-
errors.push({
|
|
67
|
-
file,
|
|
68
|
-
field: "enabled_classifiers",
|
|
69
|
-
message: '"enabled_classifiers" must be an array of strings',
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
63
|
return errors;
|
|
73
64
|
}
|
|
74
65
|
requireString(parsed, "relationship_type", file, errors);
|
|
@@ -262,8 +262,6 @@ async function seedDataEntity(entity, entityMap, ctx) {
|
|
|
262
262
|
payload.content = entity.content;
|
|
263
263
|
if (entity.metadata)
|
|
264
264
|
payload.metadata = entity.metadata;
|
|
265
|
-
if (entity.enabled_classifiers)
|
|
266
|
-
payload.enabled_classifiers = entity.enabled_classifiers;
|
|
267
265
|
if (entity.parent) {
|
|
268
266
|
const parentId = resolveEntityRef(entityMap, entity.parent);
|
|
269
267
|
if (!parentId) {
|