@lobu/runtime-device 23.0.0 → 24.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 +30 -27
- package/npm-shrinkwrap.json +131 -115
- package/package.json +2 -1
- package/vendor/cli/dist/bundled-skills/lobu/SKILL.md +73 -0
- package/vendor/cli/dist/commands/_lib/apply/apply-cmd.js +9 -11
- package/vendor/cli/dist/commands/_lib/apply/client.d.ts +3 -11
- package/vendor/cli/dist/commands/_lib/apply/client.js +3 -3
- package/vendor/cli/dist/commands/_lib/apply/desired-state.d.ts +0 -6
- package/vendor/cli/dist/commands/_lib/apply/desired-state.js +6 -15
- package/vendor/cli/dist/commands/_lib/apply/diff.js +1 -0
- package/vendor/cli/dist/commands/_lib/apply/map-config.js +8 -0
- package/vendor/cli/dist/commands/_lib/view-bundler.d.ts +2 -9
- package/vendor/cli/dist/commands/_lib/view-bundler.js +36 -119
- package/vendor/cli/dist/config/define.d.ts +8 -0
- package/vendor/cli/dist/connectors/README.md +1 -1
- package/vendor/cli/dist/connectors/linkedin-inbox-adapter.js +4 -7
- package/vendor/cli/dist/connectors/linkedin.ts +53 -34
- package/vendor/cli/dist/connectors/reddit.ts +92 -20
- package/vendor/cli/dist/connectors/slack.ts +1 -0
- package/vendor/cli/dist/connectors/whatsapp-web-adapter.js +41 -11
- package/vendor/cli/dist/connectors/whatsapp-web-helpers.ts +1 -1
- package/vendor/cli/dist/connectors/whatsapp_web.ts +2 -2
- package/vendor/cli/dist/connectors/x-dm-adapter.js +65 -30
- package/vendor/cli/dist/connectors/x-identity.ts +5 -3
- package/vendor/cli/dist/runtime-components.json +4 -4
- package/vendor/cli/dist/templates/AGENTS.md.tmpl +10 -3
- package/vendor/cli/package.json +1 -1
- package/vendor/connector-sdk/package.json +1 -1
- package/vendor/connector-worker/dist/agent-turn/gateway-tools.d.ts +2 -2
- package/vendor/connector-worker/dist/agent-turn/gateway-tools.js +2 -2
- package/vendor/connector-worker/dist/agent-turn/guest-entry.js +34 -2
- package/vendor/connector-worker/dist/agent-turn/guest.bundle.js +362 -300
- package/vendor/connector-worker/dist/agent-turn/native-session.d.ts +12 -0
- package/vendor/connector-worker/dist/agent-turn/native-session.js +32 -6
- package/vendor/connector-worker/dist/agent-turn/types.d.ts +24 -3
- package/vendor/connector-worker/dist/daemon/agent-turn.js +5 -1
- package/vendor/connector-worker/dist/daemon/automation-acp.js +23 -11
- package/vendor/connector-worker/dist/daemon/automation.js +20 -15
- package/vendor/connector-worker/dist/isolate/prelude.js +93 -44
- package/vendor/connector-worker/package.json +1 -1
- package/vendor/core/dist/agent-policy.js +0 -3
- package/vendor/core/dist/agent-tooling.d.ts +1 -1
- package/vendor/core/dist/agent-tooling.js +3 -1
- package/vendor/core/dist/contracts/agent-settings.d.ts +6 -2
- package/vendor/core/dist/contracts/agent-settings.js +12 -1
- package/vendor/core/dist/contracts/tools/manage-views.d.ts +53 -234
- package/vendor/core/dist/contracts/tools/manage-views.js +50 -76
- package/vendor/core/dist/contracts/tools/view-attach.d.ts +5 -8
- package/vendor/core/dist/contracts/tools/view-attach.js +14 -31
- package/vendor/core/dist/contracts/tools/view-definition.d.ts +21 -0
- package/vendor/core/dist/contracts/tools/view-definition.js +165 -0
- package/vendor/core/dist/contracts/tools/view-runtime.d.ts +74 -0
- package/vendor/core/dist/contracts/tools/view-runtime.js +86 -0
- package/vendor/core/dist/contracts/worker/protocol.d.ts +39 -2
- package/vendor/core/dist/contracts/worker/protocol.js +24 -1
- package/vendor/core/dist/index.d.ts +1 -1
- package/vendor/core/dist/index.js +2 -1
- package/vendor/core/dist/suggestions.d.ts +15 -2
- package/vendor/core/dist/suggestions.js +48 -3
- package/vendor/core/dist/types.d.ts +26 -0
- package/vendor/core/dist/types.js +5 -0
- package/vendor/core/package.json +16 -5
- package/vendor/postgres/cf/src/connection.js +18 -0
- package/vendor/postgres/cjs/src/connection.js +18 -0
- package/vendor/postgres/src/connection.js +18 -0
- /package/vendor/postgres/{.bun-tag-f39dafdb2305d504 → .bun-tag-2f292c6554a8475e} +0 -0
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobu/runtime-device",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "24.1.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@lobu/runtime-device",
|
|
9
|
-
"version": "
|
|
9
|
+
"version": "24.1.0",
|
|
10
10
|
"license": "BUSL-1.1",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@lobu/cli": "file:vendor/cli",
|
|
13
13
|
"@lobu/connector-sdk": "file:vendor/connector-sdk",
|
|
14
14
|
"@lobu/connector-worker": "file:vendor/connector-worker",
|
|
15
15
|
"@lobu/core": "file:vendor/core",
|
|
16
|
+
"ajv-formats": "^3.0.1",
|
|
16
17
|
"chalk": "^5.3.0",
|
|
17
18
|
"cli-cursor": "^5.0.0",
|
|
18
19
|
"cli-spinners": "^2.9.2",
|
|
@@ -60,19 +61,19 @@
|
|
|
60
61
|
}
|
|
61
62
|
},
|
|
62
63
|
"node_modules/@aws-sdk/client-bedrock-runtime": {
|
|
63
|
-
"version": "3.
|
|
64
|
-
"resolved": "https://registry.npmjs.org/@aws-sdk/client-bedrock-runtime/-/client-bedrock-runtime-3.
|
|
65
|
-
"integrity": "sha512-
|
|
64
|
+
"version": "3.1154.0",
|
|
65
|
+
"resolved": "https://registry.npmjs.org/@aws-sdk/client-bedrock-runtime/-/client-bedrock-runtime-3.1154.0.tgz",
|
|
66
|
+
"integrity": "sha512-uBGVl8B0f663+zE9pzly6lJqRMFPOnW+/QfbcWolHnzXeQLX5zRMA4Nuu8dT0I3geBW5XlkA4Y1tLIyRoI7NVg==",
|
|
66
67
|
"license": "Apache-2.0",
|
|
67
68
|
"dependencies": {
|
|
68
|
-
"@aws-sdk/core": "^3.978.
|
|
69
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
70
|
-
"@aws-sdk/eventstream-handler-node": "^3.972.
|
|
71
|
-
"@aws-sdk/middleware-eventstream": "^3.972.
|
|
72
|
-
"@aws-sdk/middleware-websocket": "^3.972.
|
|
73
|
-
"@aws-sdk/token-providers": "3.
|
|
69
|
+
"@aws-sdk/core": "^3.978.4",
|
|
70
|
+
"@aws-sdk/credential-provider-node": "^3.972.87",
|
|
71
|
+
"@aws-sdk/eventstream-handler-node": "^3.972.37",
|
|
72
|
+
"@aws-sdk/middleware-eventstream": "^3.972.32",
|
|
73
|
+
"@aws-sdk/middleware-websocket": "^3.972.57",
|
|
74
|
+
"@aws-sdk/token-providers": "3.1154.0",
|
|
74
75
|
"@aws-sdk/types": "^3.974.6",
|
|
75
|
-
"@smithy/core": "^3.
|
|
76
|
+
"@smithy/core": "^3.36.0",
|
|
76
77
|
"@smithy/fetch-http-handler": "^5.8.0",
|
|
77
78
|
"@smithy/node-http-handler": "^4.12.1",
|
|
78
79
|
"@smithy/types": "^4.19.0",
|
|
@@ -83,15 +84,15 @@
|
|
|
83
84
|
}
|
|
84
85
|
},
|
|
85
86
|
"node_modules/@aws-sdk/core": {
|
|
86
|
-
"version": "3.978.
|
|
87
|
-
"resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.978.
|
|
88
|
-
"integrity": "sha512-
|
|
87
|
+
"version": "3.978.4",
|
|
88
|
+
"resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.978.4.tgz",
|
|
89
|
+
"integrity": "sha512-JvGp6y9sPX8FSs2K/EmFMZcUfdkHxqGE45+oxwGC75OIh50j2e4cbx7zcR3BwNs2DSGqJdBja5h6Vy89iIDmRQ==",
|
|
89
90
|
"license": "Apache-2.0",
|
|
90
91
|
"dependencies": {
|
|
91
92
|
"@aws-sdk/types": "^3.974.6",
|
|
92
93
|
"@aws-sdk/xml-builder": "^3.972.41",
|
|
93
94
|
"@aws/lambda-invoke-store": "^0.3.0",
|
|
94
|
-
"@smithy/core": "^3.
|
|
95
|
+
"@smithy/core": "^3.36.0",
|
|
95
96
|
"@smithy/signature-v4": "^5.7.4",
|
|
96
97
|
"@smithy/types": "^4.19.0",
|
|
97
98
|
"bowser": "^2.11.0",
|
|
@@ -102,14 +103,14 @@
|
|
|
102
103
|
}
|
|
103
104
|
},
|
|
104
105
|
"node_modules/@aws-sdk/credential-provider-env": {
|
|
105
|
-
"version": "3.972.
|
|
106
|
-
"resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.972.
|
|
107
|
-
"integrity": "sha512-
|
|
106
|
+
"version": "3.972.75",
|
|
107
|
+
"resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.972.75.tgz",
|
|
108
|
+
"integrity": "sha512-nc8Epg98PcYoKNx0VFlwtmZSCP+tuJ1FLWqpslET/gp4h/WYuULSJqtxppM6ywKKDdzNJPvLD7ceRfmxm3Qdxw==",
|
|
108
109
|
"license": "Apache-2.0",
|
|
109
110
|
"dependencies": {
|
|
110
|
-
"@aws-sdk/core": "^3.978.
|
|
111
|
+
"@aws-sdk/core": "^3.978.4",
|
|
111
112
|
"@aws-sdk/types": "^3.974.6",
|
|
112
|
-
"@smithy/core": "^3.
|
|
113
|
+
"@smithy/core": "^3.36.0",
|
|
113
114
|
"@smithy/types": "^4.19.0",
|
|
114
115
|
"tslib": "^2.6.2"
|
|
115
116
|
},
|
|
@@ -118,14 +119,14 @@
|
|
|
118
119
|
}
|
|
119
120
|
},
|
|
120
121
|
"node_modules/@aws-sdk/credential-provider-http": {
|
|
121
|
-
"version": "3.972.
|
|
122
|
-
"resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.972.
|
|
123
|
-
"integrity": "sha512-
|
|
122
|
+
"version": "3.972.77",
|
|
123
|
+
"resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.972.77.tgz",
|
|
124
|
+
"integrity": "sha512-KkYFdIQwuw9IOHfEzK78slxmVWuhcm1w6YgE3V3WVxAeRRj9q5J9jlwzpY/oszWxd4SD96FTFkDdRGBdMFF2Mw==",
|
|
124
125
|
"license": "Apache-2.0",
|
|
125
126
|
"dependencies": {
|
|
126
|
-
"@aws-sdk/core": "^3.978.
|
|
127
|
+
"@aws-sdk/core": "^3.978.4",
|
|
127
128
|
"@aws-sdk/types": "^3.974.6",
|
|
128
|
-
"@smithy/core": "^3.
|
|
129
|
+
"@smithy/core": "^3.36.0",
|
|
129
130
|
"@smithy/fetch-http-handler": "^5.8.0",
|
|
130
131
|
"@smithy/node-http-handler": "^4.12.1",
|
|
131
132
|
"@smithy/types": "^4.19.0",
|
|
@@ -136,21 +137,21 @@
|
|
|
136
137
|
}
|
|
137
138
|
},
|
|
138
139
|
"node_modules/@aws-sdk/credential-provider-ini": {
|
|
139
|
-
"version": "3.973.
|
|
140
|
-
"resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.973.
|
|
141
|
-
"integrity": "sha512-
|
|
140
|
+
"version": "3.973.20",
|
|
141
|
+
"resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.973.20.tgz",
|
|
142
|
+
"integrity": "sha512-OSl2R/0zLkoeKEIy6oP2tu/bsSdY+DGgro2eOffMD2CcP8POv7rS14FY5Jzc5bjnqB1G9wv/aM1akHC2mdlhZw==",
|
|
142
143
|
"license": "Apache-2.0",
|
|
143
144
|
"dependencies": {
|
|
144
|
-
"@aws-sdk/core": "^3.978.
|
|
145
|
-
"@aws-sdk/credential-provider-env": "^3.972.
|
|
146
|
-
"@aws-sdk/credential-provider-http": "^3.972.
|
|
147
|
-
"@aws-sdk/credential-provider-login": "^3.972.
|
|
148
|
-
"@aws-sdk/credential-provider-process": "^3.972.
|
|
149
|
-
"@aws-sdk/credential-provider-sso": "^3.973.
|
|
150
|
-
"@aws-sdk/credential-provider-web-identity": "^3.972.
|
|
151
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
145
|
+
"@aws-sdk/core": "^3.978.4",
|
|
146
|
+
"@aws-sdk/credential-provider-env": "^3.972.75",
|
|
147
|
+
"@aws-sdk/credential-provider-http": "^3.972.77",
|
|
148
|
+
"@aws-sdk/credential-provider-login": "^3.972.82",
|
|
149
|
+
"@aws-sdk/credential-provider-process": "^3.972.75",
|
|
150
|
+
"@aws-sdk/credential-provider-sso": "^3.973.19",
|
|
151
|
+
"@aws-sdk/credential-provider-web-identity": "^3.972.81",
|
|
152
|
+
"@aws-sdk/nested-clients": "^3.997.49",
|
|
152
153
|
"@aws-sdk/types": "^3.974.6",
|
|
153
|
-
"@smithy/core": "^3.
|
|
154
|
+
"@smithy/core": "^3.36.0",
|
|
154
155
|
"@smithy/credential-provider-imds": "^4.5.2",
|
|
155
156
|
"@smithy/types": "^4.19.0",
|
|
156
157
|
"tslib": "^2.6.2"
|
|
@@ -160,15 +161,15 @@
|
|
|
160
161
|
}
|
|
161
162
|
},
|
|
162
163
|
"node_modules/@aws-sdk/credential-provider-login": {
|
|
163
|
-
"version": "3.972.
|
|
164
|
-
"resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-login/-/credential-provider-login-3.972.
|
|
165
|
-
"integrity": "sha512-
|
|
164
|
+
"version": "3.972.82",
|
|
165
|
+
"resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-login/-/credential-provider-login-3.972.82.tgz",
|
|
166
|
+
"integrity": "sha512-8jyDPtf1WPxeQ/5xlNpyxAD6P7YKwkYeNk8B2vFEDwkPWDvb7c3tQJG5/jbNWbF2yTMIH9tDTueBkdfovYIAPw==",
|
|
166
167
|
"license": "Apache-2.0",
|
|
167
168
|
"dependencies": {
|
|
168
|
-
"@aws-sdk/core": "^3.978.
|
|
169
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
169
|
+
"@aws-sdk/core": "^3.978.4",
|
|
170
|
+
"@aws-sdk/nested-clients": "^3.997.49",
|
|
170
171
|
"@aws-sdk/types": "^3.974.6",
|
|
171
|
-
"@smithy/core": "^3.
|
|
172
|
+
"@smithy/core": "^3.36.0",
|
|
172
173
|
"@smithy/types": "^4.19.0",
|
|
173
174
|
"tslib": "^2.6.2"
|
|
174
175
|
},
|
|
@@ -177,19 +178,19 @@
|
|
|
177
178
|
}
|
|
178
179
|
},
|
|
179
180
|
"node_modules/@aws-sdk/credential-provider-node": {
|
|
180
|
-
"version": "3.972.
|
|
181
|
-
"resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.972.
|
|
182
|
-
"integrity": "sha512-
|
|
181
|
+
"version": "3.972.87",
|
|
182
|
+
"resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.972.87.tgz",
|
|
183
|
+
"integrity": "sha512-TKj2C0x4IMPSSOAlmeryX8fCPvvPS2pFJz2ikV9IGqyh6Ehsg4leMalCTVfV2rvMTrlGAe7X7nK0HZ3P0KZR9g==",
|
|
183
184
|
"license": "Apache-2.0",
|
|
184
185
|
"dependencies": {
|
|
185
|
-
"@aws-sdk/credential-provider-env": "^3.972.
|
|
186
|
-
"@aws-sdk/credential-provider-http": "^3.972.
|
|
187
|
-
"@aws-sdk/credential-provider-ini": "^3.973.
|
|
188
|
-
"@aws-sdk/credential-provider-process": "^3.972.
|
|
189
|
-
"@aws-sdk/credential-provider-sso": "^3.973.
|
|
190
|
-
"@aws-sdk/credential-provider-web-identity": "^3.972.
|
|
186
|
+
"@aws-sdk/credential-provider-env": "^3.972.75",
|
|
187
|
+
"@aws-sdk/credential-provider-http": "^3.972.77",
|
|
188
|
+
"@aws-sdk/credential-provider-ini": "^3.973.20",
|
|
189
|
+
"@aws-sdk/credential-provider-process": "^3.972.75",
|
|
190
|
+
"@aws-sdk/credential-provider-sso": "^3.973.19",
|
|
191
|
+
"@aws-sdk/credential-provider-web-identity": "^3.972.81",
|
|
191
192
|
"@aws-sdk/types": "^3.974.6",
|
|
192
|
-
"@smithy/core": "^3.
|
|
193
|
+
"@smithy/core": "^3.36.0",
|
|
193
194
|
"@smithy/credential-provider-imds": "^4.5.2",
|
|
194
195
|
"@smithy/types": "^4.19.0",
|
|
195
196
|
"tslib": "^2.6.2"
|
|
@@ -199,14 +200,14 @@
|
|
|
199
200
|
}
|
|
200
201
|
},
|
|
201
202
|
"node_modules/@aws-sdk/credential-provider-process": {
|
|
202
|
-
"version": "3.972.
|
|
203
|
-
"resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.972.
|
|
204
|
-
"integrity": "sha512-
|
|
203
|
+
"version": "3.972.75",
|
|
204
|
+
"resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.972.75.tgz",
|
|
205
|
+
"integrity": "sha512-ZNm8T/HJNhpS8MikDVAsym8QyUSUuOUGiCkmI3TTya7G6xhOgfRLd2iK91HhQQyvRM36eo6Xm845hHVyfToA2w==",
|
|
205
206
|
"license": "Apache-2.0",
|
|
206
207
|
"dependencies": {
|
|
207
|
-
"@aws-sdk/core": "^3.978.
|
|
208
|
+
"@aws-sdk/core": "^3.978.4",
|
|
208
209
|
"@aws-sdk/types": "^3.974.6",
|
|
209
|
-
"@smithy/core": "^3.
|
|
210
|
+
"@smithy/core": "^3.36.0",
|
|
210
211
|
"@smithy/types": "^4.19.0",
|
|
211
212
|
"tslib": "^2.6.2"
|
|
212
213
|
},
|
|
@@ -215,16 +216,16 @@
|
|
|
215
216
|
}
|
|
216
217
|
},
|
|
217
218
|
"node_modules/@aws-sdk/credential-provider-sso": {
|
|
218
|
-
"version": "3.973.
|
|
219
|
-
"resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.973.
|
|
220
|
-
"integrity": "sha512-
|
|
219
|
+
"version": "3.973.19",
|
|
220
|
+
"resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.973.19.tgz",
|
|
221
|
+
"integrity": "sha512-qHGDAGesyWtRw3BapyFkYSUzVNrC1CWPS6+S2lf/MLMEkWB2gR3Bl6imVHy1nhImXKS+gcuUDzbu39BnsHJc1Q==",
|
|
221
222
|
"license": "Apache-2.0",
|
|
222
223
|
"dependencies": {
|
|
223
|
-
"@aws-sdk/core": "^3.978.
|
|
224
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
225
|
-
"@aws-sdk/token-providers": "3.
|
|
224
|
+
"@aws-sdk/core": "^3.978.4",
|
|
225
|
+
"@aws-sdk/nested-clients": "^3.997.49",
|
|
226
|
+
"@aws-sdk/token-providers": "3.1153.0",
|
|
226
227
|
"@aws-sdk/types": "^3.974.6",
|
|
227
|
-
"@smithy/core": "^3.
|
|
228
|
+
"@smithy/core": "^3.36.0",
|
|
228
229
|
"@smithy/types": "^4.19.0",
|
|
229
230
|
"tslib": "^2.6.2"
|
|
230
231
|
},
|
|
@@ -233,15 +234,15 @@
|
|
|
233
234
|
}
|
|
234
235
|
},
|
|
235
236
|
"node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers": {
|
|
236
|
-
"version": "3.
|
|
237
|
-
"resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.
|
|
238
|
-
"integrity": "sha512-
|
|
237
|
+
"version": "3.1153.0",
|
|
238
|
+
"resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.1153.0.tgz",
|
|
239
|
+
"integrity": "sha512-6bKJ2OfLboxhzeJ3hBDeB8L6emCYf9DfdrjBAharLrY42J1RV/6jA6G8jvfNghzID8Yb40BdSY7jQMtWx9Ot0Q==",
|
|
239
240
|
"license": "Apache-2.0",
|
|
240
241
|
"dependencies": {
|
|
241
|
-
"@aws-sdk/core": "^3.978.
|
|
242
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
242
|
+
"@aws-sdk/core": "^3.978.4",
|
|
243
|
+
"@aws-sdk/nested-clients": "^3.997.49",
|
|
243
244
|
"@aws-sdk/types": "^3.974.6",
|
|
244
|
-
"@smithy/core": "^3.
|
|
245
|
+
"@smithy/core": "^3.36.0",
|
|
245
246
|
"@smithy/types": "^4.19.0",
|
|
246
247
|
"tslib": "^2.6.2"
|
|
247
248
|
},
|
|
@@ -250,15 +251,15 @@
|
|
|
250
251
|
}
|
|
251
252
|
},
|
|
252
253
|
"node_modules/@aws-sdk/credential-provider-web-identity": {
|
|
253
|
-
"version": "3.972.
|
|
254
|
-
"resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.972.
|
|
255
|
-
"integrity": "sha512-
|
|
254
|
+
"version": "3.972.81",
|
|
255
|
+
"resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.972.81.tgz",
|
|
256
|
+
"integrity": "sha512-nHkgkMIC6NHgqfI6UAQq5cCS4bUkNxkT+r9fXCq/X4IKfX/DHGZ8UM3T4b78OXpWK5OlzEzN4kxwyax0W/MUCA==",
|
|
256
257
|
"license": "Apache-2.0",
|
|
257
258
|
"dependencies": {
|
|
258
|
-
"@aws-sdk/core": "^3.978.
|
|
259
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
259
|
+
"@aws-sdk/core": "^3.978.4",
|
|
260
|
+
"@aws-sdk/nested-clients": "^3.997.49",
|
|
260
261
|
"@aws-sdk/types": "^3.974.6",
|
|
261
|
-
"@smithy/core": "^3.
|
|
262
|
+
"@smithy/core": "^3.36.0",
|
|
262
263
|
"@smithy/types": "^4.19.0",
|
|
263
264
|
"tslib": "^2.6.2"
|
|
264
265
|
},
|
|
@@ -267,13 +268,13 @@
|
|
|
267
268
|
}
|
|
268
269
|
},
|
|
269
270
|
"node_modules/@aws-sdk/eventstream-handler-node": {
|
|
270
|
-
"version": "3.972.
|
|
271
|
-
"resolved": "https://registry.npmjs.org/@aws-sdk/eventstream-handler-node/-/eventstream-handler-node-3.972.
|
|
272
|
-
"integrity": "sha512-
|
|
271
|
+
"version": "3.972.37",
|
|
272
|
+
"resolved": "https://registry.npmjs.org/@aws-sdk/eventstream-handler-node/-/eventstream-handler-node-3.972.37.tgz",
|
|
273
|
+
"integrity": "sha512-vU0v4d6anhLqBCpPq7Q7hD2Av3/5qOR5O30Ze8ALLysgB3iMQTPHQ/P2aTgfrY2ZjnVJUCi7NiTSNqa1mDF+5w==",
|
|
273
274
|
"license": "Apache-2.0",
|
|
274
275
|
"dependencies": {
|
|
275
276
|
"@aws-sdk/types": "^3.974.6",
|
|
276
|
-
"@smithy/core": "^3.
|
|
277
|
+
"@smithy/core": "^3.36.0",
|
|
277
278
|
"@smithy/types": "^4.19.0",
|
|
278
279
|
"tslib": "^2.6.2"
|
|
279
280
|
},
|
|
@@ -282,13 +283,13 @@
|
|
|
282
283
|
}
|
|
283
284
|
},
|
|
284
285
|
"node_modules/@aws-sdk/middleware-eventstream": {
|
|
285
|
-
"version": "3.972.
|
|
286
|
-
"resolved": "https://registry.npmjs.org/@aws-sdk/middleware-eventstream/-/middleware-eventstream-3.972.
|
|
287
|
-
"integrity": "sha512-
|
|
286
|
+
"version": "3.972.32",
|
|
287
|
+
"resolved": "https://registry.npmjs.org/@aws-sdk/middleware-eventstream/-/middleware-eventstream-3.972.32.tgz",
|
|
288
|
+
"integrity": "sha512-D3ayeW/K2lTQI8+SyzDvAKfM3N4SFJjfgqeHbS3DOZmmQebZyve6WUyJiqOKqeOxmIcFxTzpSdsijnRF035J3g==",
|
|
288
289
|
"license": "Apache-2.0",
|
|
289
290
|
"dependencies": {
|
|
290
291
|
"@aws-sdk/types": "^3.974.6",
|
|
291
|
-
"@smithy/core": "^3.
|
|
292
|
+
"@smithy/core": "^3.36.0",
|
|
292
293
|
"@smithy/types": "^4.19.0",
|
|
293
294
|
"tslib": "^2.6.2"
|
|
294
295
|
},
|
|
@@ -297,14 +298,14 @@
|
|
|
297
298
|
}
|
|
298
299
|
},
|
|
299
300
|
"node_modules/@aws-sdk/middleware-websocket": {
|
|
300
|
-
"version": "3.972.
|
|
301
|
-
"resolved": "https://registry.npmjs.org/@aws-sdk/middleware-websocket/-/middleware-websocket-3.972.
|
|
302
|
-
"integrity": "sha512-
|
|
301
|
+
"version": "3.972.57",
|
|
302
|
+
"resolved": "https://registry.npmjs.org/@aws-sdk/middleware-websocket/-/middleware-websocket-3.972.57.tgz",
|
|
303
|
+
"integrity": "sha512-mPNUOedufUwZXISOEySSP7l7owyY0Ypp1ajsd1GsB4E5Vpaf8NtfmmNygyPPeGPsRZ1sOcS90aAhQ03yPy/pFg==",
|
|
303
304
|
"license": "Apache-2.0",
|
|
304
305
|
"dependencies": {
|
|
305
|
-
"@aws-sdk/core": "^3.978.
|
|
306
|
+
"@aws-sdk/core": "^3.978.4",
|
|
306
307
|
"@aws-sdk/types": "^3.974.6",
|
|
307
|
-
"@smithy/core": "^3.
|
|
308
|
+
"@smithy/core": "^3.36.0",
|
|
308
309
|
"@smithy/fetch-http-handler": "^5.8.0",
|
|
309
310
|
"@smithy/signature-v4": "^5.7.4",
|
|
310
311
|
"@smithy/types": "^4.19.0",
|
|
@@ -315,15 +316,15 @@
|
|
|
315
316
|
}
|
|
316
317
|
},
|
|
317
318
|
"node_modules/@aws-sdk/nested-clients": {
|
|
318
|
-
"version": "3.997.
|
|
319
|
-
"resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.997.
|
|
320
|
-
"integrity": "sha512-
|
|
319
|
+
"version": "3.997.49",
|
|
320
|
+
"resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.997.49.tgz",
|
|
321
|
+
"integrity": "sha512-zjqIqzTYLRKhT7TPJDUreK9vG9PjhmnfLCaTaqArkRT7j+Ogl0tuXB7MpSd8rlRfRT+xTOeyNFWaOfyNcf51hg==",
|
|
321
322
|
"license": "Apache-2.0",
|
|
322
323
|
"dependencies": {
|
|
323
|
-
"@aws-sdk/core": "^3.978.
|
|
324
|
+
"@aws-sdk/core": "^3.978.4",
|
|
324
325
|
"@aws-sdk/signature-v4-multi-region": "^3.996.48",
|
|
325
326
|
"@aws-sdk/types": "^3.974.6",
|
|
326
|
-
"@smithy/core": "^3.
|
|
327
|
+
"@smithy/core": "^3.36.0",
|
|
327
328
|
"@smithy/fetch-http-handler": "^5.8.0",
|
|
328
329
|
"@smithy/node-http-handler": "^4.12.1",
|
|
329
330
|
"@smithy/types": "^4.19.0",
|
|
@@ -349,15 +350,15 @@
|
|
|
349
350
|
}
|
|
350
351
|
},
|
|
351
352
|
"node_modules/@aws-sdk/token-providers": {
|
|
352
|
-
"version": "3.
|
|
353
|
-
"resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.
|
|
354
|
-
"integrity": "sha512-
|
|
353
|
+
"version": "3.1154.0",
|
|
354
|
+
"resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.1154.0.tgz",
|
|
355
|
+
"integrity": "sha512-CRBQnjqaIq79A3L/D6iGdHAsnhpVQmyU4T0wbGo24aePEQpUYeljEKfDmTlY/M2J4OqKX7sHj0YBZFA4hZUo3A==",
|
|
355
356
|
"license": "Apache-2.0",
|
|
356
357
|
"dependencies": {
|
|
357
|
-
"@aws-sdk/core": "^3.978.
|
|
358
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
358
|
+
"@aws-sdk/core": "^3.978.4",
|
|
359
|
+
"@aws-sdk/nested-clients": "^3.997.49",
|
|
359
360
|
"@aws-sdk/types": "^3.974.6",
|
|
360
|
-
"@smithy/core": "^3.
|
|
361
|
+
"@smithy/core": "^3.36.0",
|
|
361
362
|
"@smithy/types": "^4.19.0",
|
|
362
363
|
"tslib": "^2.6.2"
|
|
363
364
|
},
|
|
@@ -1712,6 +1713,7 @@
|
|
|
1712
1713
|
"version": "2.12.0",
|
|
1713
1714
|
"resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-2.12.0.tgz",
|
|
1714
1715
|
"integrity": "sha512-JOERgZCxRM06FEJ5kEWxlSRChah6MmXDx3KwCruqEv/iEyLkTokCSemf2y1w8oIHtfrr8EVTpzebq/31vn2Cpg==",
|
|
1716
|
+
"deprecated": "Use @opentelemetry/sdk-trace package",
|
|
1715
1717
|
"license": "Apache-2.0",
|
|
1716
1718
|
"dependencies": {
|
|
1717
1719
|
"@opentelemetry/core": "2.12.0",
|
|
@@ -1762,6 +1764,7 @@
|
|
|
1762
1764
|
"version": "2.12.0",
|
|
1763
1765
|
"resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-node/-/sdk-trace-node-2.12.0.tgz",
|
|
1764
1766
|
"integrity": "sha512-9DufH1IlmQMoKAfot5y/FhTP1RnmhLb5K6eKmJO/bvzPjYwPAazoiAUbTZFdPbqxOXN0FEbhZx/e6SB1Og4jmg==",
|
|
1767
|
+
"deprecated": "Use @opentelemetry/sdk-trace package",
|
|
1765
1768
|
"license": "Apache-2.0",
|
|
1766
1769
|
"dependencies": {
|
|
1767
1770
|
"@opentelemetry/context-async-hooks": "2.12.0",
|
|
@@ -1891,9 +1894,9 @@
|
|
|
1891
1894
|
}
|
|
1892
1895
|
},
|
|
1893
1896
|
"node_modules/@smithy/core": {
|
|
1894
|
-
"version": "3.36.
|
|
1895
|
-
"resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.36.
|
|
1896
|
-
"integrity": "sha512-
|
|
1897
|
+
"version": "3.36.1",
|
|
1898
|
+
"resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.36.1.tgz",
|
|
1899
|
+
"integrity": "sha512-WC5W1Jrsfxu1y6LeqXMie7N14qmcdafij/Haye4feVlyMMXLGpYxBeOX6Ee1iRJbDzGG5LVman8U1rrt9MYFHA==",
|
|
1897
1900
|
"license": "Apache-2.0",
|
|
1898
1901
|
"dependencies": {
|
|
1899
1902
|
"@smithy/types": "^4.19.0",
|
|
@@ -2043,6 +2046,18 @@
|
|
|
2043
2046
|
"node": ">=6.5"
|
|
2044
2047
|
}
|
|
2045
2048
|
},
|
|
2049
|
+
"node_modules/acorn": {
|
|
2050
|
+
"version": "8.19.0",
|
|
2051
|
+
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.19.0.tgz",
|
|
2052
|
+
"integrity": "sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==",
|
|
2053
|
+
"license": "MIT",
|
|
2054
|
+
"bin": {
|
|
2055
|
+
"acorn": "bin/acorn"
|
|
2056
|
+
},
|
|
2057
|
+
"engines": {
|
|
2058
|
+
"node": ">=0.4.0"
|
|
2059
|
+
}
|
|
2060
|
+
},
|
|
2046
2061
|
"node_modules/agent-base": {
|
|
2047
2062
|
"version": "7.1.4",
|
|
2048
2063
|
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",
|
|
@@ -3227,9 +3242,9 @@
|
|
|
3227
3242
|
}
|
|
3228
3243
|
},
|
|
3229
3244
|
"node_modules/fast-uri": {
|
|
3230
|
-
"version": "3.1.
|
|
3231
|
-
"resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.
|
|
3232
|
-
"integrity": "sha512-
|
|
3245
|
+
"version": "3.1.9",
|
|
3246
|
+
"resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.9.tgz",
|
|
3247
|
+
"integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==",
|
|
3233
3248
|
"funding": [
|
|
3234
3249
|
{
|
|
3235
3250
|
"type": "github",
|
|
@@ -5119,9 +5134,9 @@
|
|
|
5119
5134
|
"license": "BSD-3-Clause"
|
|
5120
5135
|
},
|
|
5121
5136
|
"node_modules/sql.js": {
|
|
5122
|
-
"version": "1.15.
|
|
5123
|
-
"resolved": "https://registry.npmjs.org/sql.js/-/sql.js-1.15.
|
|
5124
|
-
"integrity": "sha512-
|
|
5137
|
+
"version": "1.15.1",
|
|
5138
|
+
"resolved": "https://registry.npmjs.org/sql.js/-/sql.js-1.15.1.tgz",
|
|
5139
|
+
"integrity": "sha512-i0M/6s+lcl67Flm/1m8/AeVU5caDramlILXU/udUwpTQym2qKMSe2sJiXB5d5WXFB272aj4B2v1JbtQ93ID3Pg==",
|
|
5125
5140
|
"license": "MIT"
|
|
5126
5141
|
},
|
|
5127
5142
|
"node_modules/stack-trace": {
|
|
@@ -5851,7 +5866,7 @@
|
|
|
5851
5866
|
},
|
|
5852
5867
|
"vendor/cli": {
|
|
5853
5868
|
"name": "@lobu/cli",
|
|
5854
|
-
"version": "
|
|
5869
|
+
"version": "24.1.0",
|
|
5855
5870
|
"license": "Apache-2.0",
|
|
5856
5871
|
"dependencies": {
|
|
5857
5872
|
"@clack/prompts": "^1.2.0",
|
|
@@ -5894,7 +5909,7 @@
|
|
|
5894
5909
|
},
|
|
5895
5910
|
"vendor/connector-sdk": {
|
|
5896
5911
|
"name": "@lobu/connector-sdk",
|
|
5897
|
-
"version": "
|
|
5912
|
+
"version": "24.1.0",
|
|
5898
5913
|
"license": "BUSL-1.1",
|
|
5899
5914
|
"dependencies": {
|
|
5900
5915
|
"@lobu/core": "file:../core",
|
|
@@ -5909,7 +5924,7 @@
|
|
|
5909
5924
|
},
|
|
5910
5925
|
"vendor/connector-worker": {
|
|
5911
5926
|
"name": "@lobu/connector-worker",
|
|
5912
|
-
"version": "
|
|
5927
|
+
"version": "24.1.0",
|
|
5913
5928
|
"license": "BUSL-1.1",
|
|
5914
5929
|
"dependencies": {
|
|
5915
5930
|
"@agentclientprotocol/sdk": "1.4.0",
|
|
@@ -5935,7 +5950,7 @@
|
|
|
5935
5950
|
},
|
|
5936
5951
|
"vendor/core": {
|
|
5937
5952
|
"name": "@lobu/core",
|
|
5938
|
-
"version": "
|
|
5953
|
+
"version": "24.1.0",
|
|
5939
5954
|
"license": "Apache-2.0",
|
|
5940
5955
|
"dependencies": {
|
|
5941
5956
|
"@opentelemetry/api": "^1.9.0",
|
|
@@ -5944,6 +5959,7 @@
|
|
|
5944
5959
|
"@opentelemetry/sdk-trace-node": "^2.11.0",
|
|
5945
5960
|
"@opentelemetry/semantic-conventions": "^1.28.0",
|
|
5946
5961
|
"@sinclair/typebox": "^0.34.41",
|
|
5962
|
+
"acorn": "^8.16.0",
|
|
5947
5963
|
"ajv": "^8.17.1",
|
|
5948
5964
|
"ajv-formats": "^3.0.1",
|
|
5949
5965
|
"winston": "^3.17.0"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobu/runtime-device",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "24.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"repository": {
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"string-width": "^7.2.0",
|
|
31
31
|
"strip-ansi": "^7.1.0",
|
|
32
32
|
"@lobu/connector-sdk": "file:vendor/connector-sdk",
|
|
33
|
+
"ajv-formats": "^3.0.1",
|
|
33
34
|
"postgres": "file:vendor/postgres",
|
|
34
35
|
"turndown": "7.2.2",
|
|
35
36
|
"@lobu/cli": "file:vendor/cli",
|
|
@@ -150,6 +150,7 @@ const ticket = defineEntityType({
|
|
|
150
150
|
properties: {
|
|
151
151
|
subject: {
|
|
152
152
|
type: "string",
|
|
153
|
+
title: "Subject",
|
|
153
154
|
"x-table-label": "Subject",
|
|
154
155
|
"x-table-column": true,
|
|
155
156
|
},
|
|
@@ -164,6 +165,8 @@ export default defineConfig({
|
|
|
164
165
|
});
|
|
165
166
|
```
|
|
166
167
|
|
|
168
|
+
The entity schema also renders the record page form. Give every array `items` and every object `properties` (bare ones render as raw JSON), put the label in `title` and help text in `description`, mark derived fields `readOnly: true`, and declare every field an Automation writes.
|
|
169
|
+
|
|
167
170
|
Seed data records still live as YAML under `./data`. Then seed or operate the memory workspace with:
|
|
168
171
|
|
|
169
172
|
```bash
|
|
@@ -222,6 +225,76 @@ The normal MCP surface is intentionally small. Flat administrative tools are not
|
|
|
222
225
|
|
|
223
226
|
Search before create to avoid duplicates. Prefer a read or dry run before mutations, never fabricate returned URLs or identifiers, and never delete from `events`; supersede or tombstone instead.
|
|
224
227
|
|
|
228
|
+
## Custom Views
|
|
229
|
+
|
|
230
|
+
Views are custom React panels attached to entity types, records, events, or the workspace Data hub. They render in the web app and MCP hosts (Claude and other MCP Apps hosts); chat channels get links to views, not the views themselves. Author them in `views/<type>/<key>.tsx` and ship with `lobu apply` (list them via `viewFromFile` in `defineConfig`), or set single-file sources over MCP with `manage_views` (owner/admin only).
|
|
231
|
+
|
|
232
|
+
Module shape (the server resolves React, React DOM, `@lobu/views` and `@lobu/views/components`; other dependencies need the CLI path with `node_modules` present):
|
|
233
|
+
|
|
234
|
+
```tsx
|
|
235
|
+
import { defineView, sql, useAction, useParams, useQuery } from "@lobu/views";
|
|
236
|
+
import {
|
|
237
|
+
Card,
|
|
238
|
+
DataTable,
|
|
239
|
+
EmptyState,
|
|
240
|
+
ErrorState,
|
|
241
|
+
FilterBar,
|
|
242
|
+
LoadingState,
|
|
243
|
+
SearchField,
|
|
244
|
+
TruncatedNotice,
|
|
245
|
+
} from "@lobu/views/components";
|
|
246
|
+
|
|
247
|
+
export const view = defineView({
|
|
248
|
+
key: "pipeline",
|
|
249
|
+
attach: [{ collection: "deal" }],
|
|
250
|
+
params: { stage: { type: "string", default: "open" } },
|
|
251
|
+
actions: { markWon: { emits: "deal.won" } },
|
|
252
|
+
});
|
|
253
|
+
|
|
254
|
+
export default function Pipeline() {
|
|
255
|
+
const [params, setParams] = useParams();
|
|
256
|
+
const deals = useQuery<Array<{ id: string; title: string }>>(
|
|
257
|
+
sql`SELECT id, title FROM deal WHERE stage = ${params.stage} LIMIT 100`
|
|
258
|
+
);
|
|
259
|
+
const markWon = useAction("markWon");
|
|
260
|
+
const rows = deals.data ?? [];
|
|
261
|
+
// Keep the filter mounted across query states: an early return on
|
|
262
|
+
// loading/error would unmount the focused input on every keystroke
|
|
263
|
+
// (each keystroke re-queries). Render states inline instead.
|
|
264
|
+
return (
|
|
265
|
+
<Card
|
|
266
|
+
title="Pipeline"
|
|
267
|
+
actions={<button type="button" onClick={() => markWon({})}>Mark won</button>}
|
|
268
|
+
>
|
|
269
|
+
<FilterBar><SearchField label="Stage" value={String(params.stage)} onChange={(v) => setParams({ stage: v })} /></FilterBar>
|
|
270
|
+
{deals.loading && <LoadingState text="Loading deals…" />}
|
|
271
|
+
{deals.error && <ErrorState message={deals.error} errorCode={deals.errorCode} />}
|
|
272
|
+
{!deals.loading && !deals.error && rows.length === 0 && (
|
|
273
|
+
<EmptyState title="No deals in this stage." />
|
|
274
|
+
)}
|
|
275
|
+
{!deals.loading && !deals.error && rows.length > 0 && (
|
|
276
|
+
<DataTable columns={[{ key: "title", header: "Title" }]} rows={rows} keyOf={(r) => r.id} />
|
|
277
|
+
)}
|
|
278
|
+
{deals.truncated && <TruncatedNotice shown={rows.length} />}
|
|
279
|
+
</Card>
|
|
280
|
+
);
|
|
281
|
+
}
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
`defineView` is the view's only declaration: `key`, optional `name` (defaults to the key) and `description`, `attach`, `params` and `actions` are read from it, never passed separately, so `manage_views` `set` takes just the source. Write it out as a literal (no variables, spreads or `${}` templates): the server reads it without running the module.
|
|
285
|
+
|
|
286
|
+
`attach` lists the pages a view appears on, one per entry: `{ record: "deal" }` is a card on every deal's page above its activity (`{ record: "deal", id: 7 }` pins one record), `{ collection: "deal", when? }` a tab on the deal list page, `{ workspace: true }` a Data hub tab, `{ event: "deal.won", type? }` one event's page. One view can list several pages and branch on `useScope()` when it answers the same question at each scale. A record card renders with `useHost().displayMode === "inline"` inside `container.maxHeight` (the host clips past it): render a summary there with a "See all" that calls `requestDisplayMode("fullscreen")`, and the full view when `displayMode` is `"fullscreen"` (the peek, a full page, a tab).
|
|
287
|
+
|
|
288
|
+
Rules that are load-bearing, not style:
|
|
289
|
+
|
|
290
|
+
- Reads go through `useQuery` (`sql`, a `query_sdk` script string, or a read-only `tool()`). `query_sql` allows 500 rows max with a 5 second timeout — branch on the typed `errorCode` (e.g. `UPSTREAM_TIMEOUT`), never on message text, and render `truncated` honestly instead of passing partial data off as complete. Each `query_sql` cell is bounded too: strings keep their first 4,000 Unicode code points plus "… [truncated]"; JSON values over 16 KiB become `{ _truncated: true, bytes }` (attachments become null with `attachments_truncated`). `truncatedColumns` names the affected columns. Select smaller elements or fields, for example one array element per row with `jsonb_array_elements(...)`, and paginate as needed; each returned cell is still subject to these limits.
|
|
291
|
+
- Never aggregate history in a view: no `GROUP BY`, `DISTINCT ON`, per-row regexp, or leading-wildcard `LIKE` over `events` or other growing tables. For "latest state" views, have an Automation maintain keyed event outputs (each run supersedes the previous event with the same key) and read the current head with `read_knowledge`.
|
|
292
|
+
- Writes go only through declared view actions (`useAction` → `invoke_view_action`), which emit the declared event kind and can activate workspace-triggered Automations. Action `value` payloads are capped at 4000 JSON chars — save content first, then pass the id. A subject shown from a superseded event rejects with 409; refetch and ask the user to re-confirm rather than retrying blindly.
|
|
293
|
+
- Link with `Link` from `@lobu/views/components` (or `useHost().openLink`): `href="<type>/<slug>"` opens that record in the workspace, a full URL opens a new tab. A plain `<a href>` goes nowhere inside the sandboxed frame.
|
|
294
|
+
- Views run in a sandboxed frame with no direct network: no fetch, no third-party calls at runtime. Bundle shared code via the CLI path; the MCP `manage_views` path compiles `react` + `@lobu/views` (+components) only.
|
|
295
|
+
- Never early-return the whole view on loading/error: each filter keystroke re-queries, so an early return unmounts the focused input mid-typing. Keep filters mounted and render query states inline in the results area.
|
|
296
|
+
- Params sync to the URL on Lobu hosts only; elsewhere they stay frame-local. `refetch()` re-reads on demand; only Lobu hosts push live data-changed refreshes.
|
|
297
|
+
|
|
225
298
|
## Connectors, Feeds, and Operations
|
|
226
299
|
|
|
227
300
|
Connectors are the primary integration path for third-party services. The
|