@lobu/runtime-device 24.9.0 → 24.11.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 +19 -17
- package/npm-shrinkwrap.json +81 -64
- package/package.json +1 -1
- package/vendor/cli/dist/bundled-skills/lobu/SKILL.md +3 -0
- package/vendor/cli/dist/commands/_lib/apply/apply-cmd.js +4 -4
- package/vendor/cli/dist/commands/_lib/apply/client.d.ts +21 -17
- package/vendor/cli/dist/commands/_lib/apply/client.js +32 -34
- package/vendor/cli/dist/commands/dev.js +2 -0
- package/vendor/cli/dist/connectors/linkedin-inbox-adapter.js +13 -3
- package/vendor/cli/dist/connectors/postgres.ts +39 -24
- package/vendor/cli/dist/connectors/whatsapp-web-adapter.js +54 -22
- package/vendor/cli/dist/connectors/whatsapp-web-helpers.ts +48 -2
- package/vendor/cli/dist/connectors/whatsapp_web.ts +23 -7
- package/vendor/cli/dist/connectors/x-dm-adapter.js +17 -3
- package/vendor/cli/dist/internal/context.d.ts +5 -0
- package/vendor/cli/dist/internal/context.js +23 -9
- 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 +6 -0
- package/vendor/connector-sdk/dist/index.d.ts +1 -0
- package/vendor/connector-sdk/dist/index.js +1 -0
- package/vendor/connector-sdk/dist/ip-reachability.d.ts +1 -1
- package/vendor/connector-sdk/dist/ip-reachability.js +1 -1
- package/vendor/connector-sdk/dist/logger.d.ts +1 -1
- package/vendor/connector-sdk/dist/logger.js +1 -1
- package/vendor/connector-sdk/dist/reaction-client-types.d.ts +3 -1
- package/vendor/connector-sdk/dist/retry.d.ts +1 -1
- package/vendor/connector-sdk/dist/retry.js +1 -1
- package/vendor/connector-sdk/dist/source-withheld-error.d.ts +16 -0
- package/vendor/connector-sdk/dist/source-withheld-error.js +19 -0
- package/vendor/connector-sdk/package.json +1 -1
- package/vendor/connector-worker/dist/agent-turn/guest.bundle.js +1 -1
- package/vendor/connector-worker/dist/daemon/index.d.ts +1 -0
- package/vendor/connector-worker/dist/daemon/index.js +1 -0
- package/vendor/connector-worker/dist/daemon/terminal-delivery.d.ts +12 -2
- package/vendor/connector-worker/dist/daemon/terminal-delivery.js +19 -12
- package/vendor/connector-worker/dist/executor/interface.d.ts +10 -0
- package/vendor/connector-worker/dist/executor/interface.js +6 -0
- package/vendor/connector-worker/dist/executor/isolate.d.ts +1 -0
- package/vendor/connector-worker/dist/executor/isolate.js +85 -24
- package/vendor/connector-worker/dist/isolate/prelude.js +5 -0
- package/vendor/connector-worker/package.json +1 -1
- package/vendor/core/dist/classify-error.d.ts +1 -1
- package/vendor/core/dist/classify-error.js +2 -2
- package/vendor/core/dist/contracts/tools/manage-automations.d.ts +28 -3
- package/vendor/core/dist/contracts/tools/manage-automations.js +27 -8
- package/vendor/core/dist/contracts/tools/manage-entity.d.ts +8 -0
- package/vendor/core/dist/contracts/tools/manage-entity.js +11 -3
- package/vendor/core/dist/contracts/tools/save-memory.d.ts +11 -1
- package/vendor/core/dist/contracts/tools/save-memory.js +25 -3
- package/vendor/core/dist/contracts/tools/search-memory.js +1 -1
- package/vendor/core/dist/credentials.d.ts +12 -0
- package/vendor/core/dist/credentials.js +1 -0
- package/vendor/core/dist/errors.js +2 -2
- package/vendor/core/dist/worker/auth.d.ts +5 -0
- package/vendor/core/dist/worker/auth.js +15 -4
- package/vendor/core/package.json +1 -1
- package/vendor/postgres/cf/src/connection.js +7 -2
- package/vendor/postgres/cjs/src/connection.js +7 -2
- package/vendor/postgres/src/connection.js +7 -2
- package/vendor/views/dist/native.d.ts +33 -1
- package/vendor/views/dist/native.js +3 -0
- package/vendor/views/package.json +1 -1
- /package/vendor/postgres/{.bun-tag-c81dacd34e959a7a → .bun-tag-652f2580b8090d71} +0 -0
package/vendor/core/package.json
CHANGED
|
@@ -180,11 +180,16 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
|
|
|
180
180
|
: (query = q, query.active = true)
|
|
181
181
|
|
|
182
182
|
build(q)
|
|
183
|
-
|
|
183
|
+
const written = write(toBuffer(q))
|
|
184
|
+
// BEGIN must reserve its connection even when this write fills the
|
|
185
|
+
// pipeline or reports backpressure. The hook's result still controls
|
|
186
|
+
// whether the pool may schedule another query on this connection.
|
|
187
|
+
const executed = !q.options.onexecute || q.options.onexecute(connection)
|
|
188
|
+
return written
|
|
184
189
|
&& !q.describeFirst
|
|
185
190
|
&& !q.cursorFn
|
|
186
191
|
&& sent.length < max_pipeline
|
|
187
|
-
&&
|
|
192
|
+
&& executed
|
|
188
193
|
} catch (error) {
|
|
189
194
|
sent.length === 0 && write(Sync)
|
|
190
195
|
errored(error)
|
|
@@ -178,11 +178,16 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
|
|
|
178
178
|
: (query = q, query.active = true)
|
|
179
179
|
|
|
180
180
|
build(q)
|
|
181
|
-
|
|
181
|
+
const written = write(toBuffer(q))
|
|
182
|
+
// BEGIN must reserve its connection even when this write fills the
|
|
183
|
+
// pipeline or reports backpressure. The hook's result still controls
|
|
184
|
+
// whether the pool may schedule another query on this connection.
|
|
185
|
+
const executed = !q.options.onexecute || q.options.onexecute(connection)
|
|
186
|
+
return written
|
|
182
187
|
&& !q.describeFirst
|
|
183
188
|
&& !q.cursorFn
|
|
184
189
|
&& sent.length < max_pipeline
|
|
185
|
-
&&
|
|
190
|
+
&& executed
|
|
186
191
|
} catch (error) {
|
|
187
192
|
sent.length === 0 && write(Sync)
|
|
188
193
|
errored(error)
|
|
@@ -178,11 +178,16 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
|
|
|
178
178
|
: (query = q, query.active = true)
|
|
179
179
|
|
|
180
180
|
build(q)
|
|
181
|
-
|
|
181
|
+
const written = write(toBuffer(q))
|
|
182
|
+
// BEGIN must reserve its connection even when this write fills the
|
|
183
|
+
// pipeline or reports backpressure. The hook's result still controls
|
|
184
|
+
// whether the pool may schedule another query on this connection.
|
|
185
|
+
const executed = !q.options.onexecute || q.options.onexecute(connection)
|
|
186
|
+
return written
|
|
182
187
|
&& !q.describeFirst
|
|
183
188
|
&& !q.cursorFn
|
|
184
189
|
&& sent.length < max_pipeline
|
|
185
|
-
&&
|
|
190
|
+
&& executed
|
|
186
191
|
} catch (error) {
|
|
187
192
|
sent.length === 0 && write(Sync)
|
|
188
193
|
errored(error)
|
|
@@ -188,12 +188,42 @@ export interface JsonDiffProps {
|
|
|
188
188
|
before: Record<string, unknown> | null;
|
|
189
189
|
after: Record<string, unknown> | null;
|
|
190
190
|
}
|
|
191
|
+
/** Schema declarations use the entitySchema SDK's field names. List responses
|
|
192
|
+
* supply entity_types / relationship_types; compose rules from listRules.
|
|
193
|
+
* Rendering never applies a declaration. createType/createRelType require a
|
|
194
|
+
* name; the graph alone permits omission and displays the slug. */
|
|
195
|
+
export interface SchemaSpec {
|
|
196
|
+
entityTypes: Array<{
|
|
197
|
+
slug: string;
|
|
198
|
+
name?: string;
|
|
199
|
+
description?: string;
|
|
200
|
+
metadata_schema?: object;
|
|
201
|
+
event_kinds?: object;
|
|
202
|
+
}>;
|
|
203
|
+
relationshipTypes: Array<{
|
|
204
|
+
slug: string;
|
|
205
|
+
name?: string;
|
|
206
|
+
metadata_schema?: object;
|
|
207
|
+
rules: Array<{
|
|
208
|
+
source_entity_type_slug: string;
|
|
209
|
+
target_entity_type_slug: string;
|
|
210
|
+
}>;
|
|
211
|
+
}>;
|
|
212
|
+
}
|
|
213
|
+
export type SchemaGraphProps = {
|
|
214
|
+
schema?: undefined;
|
|
215
|
+
base?: never;
|
|
216
|
+
} | {
|
|
217
|
+
schema: SchemaSpec;
|
|
218
|
+
base?: "workspace" | SchemaSpec;
|
|
219
|
+
};
|
|
191
220
|
/** Read-only native definition body. Pass a saved object or an authored snapshot.
|
|
192
221
|
* No fetching, code execution, saving or approval is performed by the body. */
|
|
193
222
|
export interface DefinitionProps {
|
|
194
223
|
value: Record<string, unknown>;
|
|
195
224
|
}
|
|
196
225
|
export interface NativeComponentProps {
|
|
226
|
+
SchemaGraph: SchemaGraphProps;
|
|
197
227
|
AutomationDefinition: DefinitionProps;
|
|
198
228
|
AgentDefinition: DefinitionProps;
|
|
199
229
|
ConnectorDefinition: DefinitionProps;
|
|
@@ -258,9 +288,11 @@ export interface NativeComponentProps {
|
|
|
258
288
|
export type NativeComponents = {
|
|
259
289
|
[K in keyof NativeComponentProps]: ComponentType<NativeComponentProps[K]>;
|
|
260
290
|
};
|
|
261
|
-
export declare const NATIVE_COMPONENT_NAMES: readonly ["AutomationDefinition", "AgentDefinition", "ConnectorDefinition", "AutomationReference", "AgentReference", "ConnectorReference", "JsonDiff", "EntityListPage", "EntityRecordPage", "EntityTableView", "RecordSpecSheet", "SchemaValue", "EntityAvatar", "Button", "Badge", "Tabs", "TabsList", "TabsTrigger", "TabsContent"];
|
|
291
|
+
export declare const NATIVE_COMPONENT_NAMES: readonly ["SchemaGraph", "AutomationDefinition", "AgentDefinition", "ConnectorDefinition", "AutomationReference", "AgentReference", "ConnectorReference", "JsonDiff", "EntityListPage", "EntityRecordPage", "EntityTableView", "RecordSpecSheet", "SchemaValue", "EntityAvatar", "Button", "Badge", "Tabs", "TabsList", "TabsTrigger", "TabsContent"];
|
|
262
292
|
export declare const NATIVE_COMPONENT_GLOBAL = "__lobuViewNative";
|
|
263
293
|
export declare const EntityListPage: ComponentType<EntityListPageProps>;
|
|
294
|
+
/** Read-only workspace schema, snapshot, or semantic schema comparison. */
|
|
295
|
+
export declare const SchemaGraph: ComponentType<SchemaGraphProps>;
|
|
264
296
|
export declare const EntityRecordPage: ComponentType<EntityRecordPageProps>;
|
|
265
297
|
export declare const EntityTableView: ComponentType<EntityTableViewProps>;
|
|
266
298
|
export declare const RecordSpecSheet: ComponentType<{
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Implementations are supplied by the host artifact, using the shell's React. */
|
|
3
3
|
import { createElement, } from "react";
|
|
4
4
|
export const NATIVE_COMPONENT_NAMES = [
|
|
5
|
+
"SchemaGraph",
|
|
5
6
|
"AutomationDefinition",
|
|
6
7
|
"AgentDefinition",
|
|
7
8
|
"ConnectorDefinition",
|
|
@@ -33,6 +34,8 @@ function native(name) {
|
|
|
33
34
|
};
|
|
34
35
|
}
|
|
35
36
|
export const EntityListPage = native("EntityListPage");
|
|
37
|
+
/** Read-only workspace schema, snapshot, or semantic schema comparison. */
|
|
38
|
+
export const SchemaGraph = native("SchemaGraph");
|
|
36
39
|
export const EntityRecordPage = native("EntityRecordPage");
|
|
37
40
|
export const EntityTableView = native("EntityTableView");
|
|
38
41
|
export const RecordSpecSheet = native("RecordSpecSheet");
|
|
File without changes
|