@lobu/runtime-device 21.2.1 → 22.0.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 +91 -83
- package/npm-shrinkwrap.json +492 -438
- package/package.json +12 -2
- package/vendor/cli/dist/commands/_lib/apply/apply-cmd.js +5 -6
- package/vendor/cli/dist/commands/_lib/apply/client.d.ts +1 -0
- package/vendor/cli/dist/commands/_lib/apply/client.js +26 -7
- package/vendor/cli/dist/commands/_lib/apply/desired-state.d.ts +9 -1
- package/vendor/cli/dist/commands/_lib/apply/diff.d.ts +1 -0
- package/vendor/cli/dist/commands/_lib/apply/diff.js +46 -4
- package/vendor/cli/dist/commands/_lib/apply/map-config.js +18 -38
- package/vendor/cli/dist/commands/_lib/init-from-org/bootstrap.js +5 -17
- package/vendor/cli/dist/commands/init.d.ts +0 -2
- package/vendor/cli/dist/commands/init.js +0 -27
- package/vendor/cli/dist/commands/login.d.ts +17 -0
- package/vendor/cli/dist/commands/login.js +43 -17
- package/vendor/cli/dist/commands/memory/_lib/errors.d.ts +0 -8
- package/vendor/cli/dist/commands/memory/_lib/errors.js +0 -12
- package/vendor/cli/dist/commands/memory/_lib/mcp.js +6 -6
- package/vendor/cli/dist/commands/memory/_lib/seed-cmd.js +4 -10
- package/vendor/cli/dist/config/define.d.ts +21 -15
- package/vendor/cli/dist/config/define.js +2 -2
- package/vendor/cli/dist/connectors/README.md +7 -5
- package/vendor/cli/dist/connectors/_google/actions.ts +270 -0
- package/vendor/cli/dist/connectors/_google/discovery/calendar_v3.json +1 -0
- package/vendor/cli/dist/connectors/_google/discovery/chat_v1.json +1 -0
- package/vendor/cli/dist/connectors/_google/discovery/docs_v1.json +1 -0
- package/vendor/cli/dist/connectors/_google/discovery/drive_v3.json +1 -0
- package/vendor/cli/dist/connectors/_google/discovery/gmail_v1.json +1 -0
- package/vendor/cli/dist/connectors/_google/discovery/people_v1.json +1 -0
- package/vendor/cli/dist/connectors/_google/discovery/sheets_v4.json +1 -0
- package/vendor/cli/dist/connectors/_google/discovery/tasks_v1.json +1 -0
- package/vendor/cli/dist/connectors/_google/discovery/youtube_v3.json +1 -0
- package/vendor/cli/dist/connectors/_google/discovery.ts +442 -0
- package/vendor/cli/dist/connectors/_google/errors.ts +91 -0
- package/vendor/cli/dist/connectors/_google/list-feed.ts +223 -0
- package/vendor/cli/dist/connectors/_google/policies.ts +127 -0
- package/vendor/cli/dist/connectors/agentid.ts +43 -0
- package/vendor/cli/dist/connectors/chat-user-identity.ts +2 -1
- package/vendor/cli/dist/connectors/github-automation-events.ts +9 -0
- package/vendor/cli/dist/connectors/github-identity.ts +28 -3
- package/vendor/cli/dist/connectors/github.ts +101 -59
- package/vendor/cli/dist/connectors/google_calendar.ts +207 -719
- package/vendor/cli/dist/connectors/google_drive.ts +16 -2
- package/vendor/cli/dist/connectors/google_gmail.ts +51 -33
- package/vendor/cli/dist/connectors/herdr.ts +406 -0
- package/vendor/cli/dist/connectors/jira.ts +6 -6
- package/vendor/cli/dist/connectors/linear.ts +7 -4
- package/vendor/cli/dist/connectors/postgres.ts +27 -2
- package/vendor/cli/dist/connectors/tiktok-inbox-page.js +230 -0
- package/vendor/cli/dist/connectors/tiktok-web-page.js +211 -0
- package/vendor/cli/dist/connectors/tiktok_web.ts +286 -0
- package/vendor/cli/dist/connectors/whatsapp-web-adapter.js +228 -10
- package/vendor/cli/dist/connectors/whatsapp-web-helpers.ts +47 -14
- package/vendor/cli/dist/connectors/whatsapp-web-identity.ts +121 -0
- package/vendor/cli/dist/connectors/whatsapp_web.ts +170 -29
- package/vendor/cli/dist/connectors/x.ts +276 -136
- package/vendor/cli/dist/index.js +1 -37
- package/vendor/cli/dist/internal/context.d.ts +10 -0
- package/vendor/cli/dist/internal/context.js +26 -16
- package/vendor/cli/dist/internal/node-version.d.ts +1 -1
- package/vendor/cli/dist/internal/node-version.js +1 -1
- package/vendor/cli/dist/internal/oauth.d.ts +3 -1
- package/vendor/cli/dist/internal/oauth.js +4 -3
- package/vendor/cli/dist/internal/runtime-components.d.ts +9 -0
- package/vendor/cli/dist/internal/runtime-components.js +67 -2
- package/vendor/cli/dist/mac-auth.js +17 -1
- package/vendor/cli/dist/providers.json +1 -1
- package/vendor/cli/dist/runtime-components.json +4 -4
- package/vendor/cli/dist/templates/AGENTS.md.tmpl +11 -4
- package/vendor/cli/dist/templates/README.md.tmpl +1 -1
- package/vendor/cli/dist/vendor/ora/.bun-tag-fde20e9a6df212fa +0 -0
- package/vendor/cli/dist/vendor/ora/index.d.ts +332 -0
- package/vendor/cli/dist/vendor/ora/index.js +424 -0
- package/vendor/cli/dist/vendor/ora/license +9 -0
- package/vendor/cli/dist/vendor/ora/package.json +64 -0
- package/vendor/cli/dist/vendor/ora/readme.md +329 -0
- package/vendor/cli/package.json +2 -2
- package/vendor/connector-sdk/dist/browser-requirement.d.ts +36 -0
- package/vendor/connector-sdk/dist/browser-requirement.js +60 -0
- package/vendor/connector-sdk/dist/connector-runtime.d.ts +3 -1
- package/vendor/connector-sdk/dist/connector-runtime.js +10 -0
- package/vendor/connector-sdk/dist/connector-types.d.ts +159 -45
- package/vendor/connector-sdk/dist/define-connector.d.ts +4 -2
- package/vendor/connector-sdk/dist/define-connector.js +3 -0
- package/vendor/connector-sdk/dist/index.d.ts +5 -2
- package/vendor/connector-sdk/dist/index.js +1 -0
- package/vendor/connector-sdk/dist/reaction-client-types.d.ts +16 -21
- package/vendor/connector-sdk/dist/reaction-client-types.typecheck.d.ts +5 -0
- package/vendor/connector-sdk/package.json +5 -1
- package/vendor/connector-worker/dist/agent-turn/guest-entry.js +31 -27
- package/vendor/connector-worker/dist/agent-turn/guest.bundle.js +131 -185
- package/vendor/connector-worker/dist/agent-turn/memory.d.ts +3 -2
- package/vendor/connector-worker/dist/agent-turn/memory.js +3 -20
- package/vendor/connector-worker/dist/agent-turn/types.d.ts +3 -15
- package/vendor/connector-worker/dist/agent-turn/workspace.d.ts +2 -2
- package/vendor/connector-worker/dist/agent-turn/workspace.js +2 -4
- package/vendor/connector-worker/dist/daemon/action-monitor.d.ts +12 -0
- package/vendor/connector-worker/dist/daemon/action-monitor.js +25 -0
- package/vendor/connector-worker/dist/daemon/agent-turn.js +0 -9
- package/vendor/connector-worker/dist/daemon/builtins/index.d.ts +12 -0
- package/vendor/connector-worker/dist/daemon/builtins/index.js +61 -1
- package/vendor/connector-worker/dist/daemon/builtins/os-shell.d.ts +2 -1
- package/vendor/connector-worker/dist/daemon/builtins/os-shell.js +40 -27
- package/vendor/connector-worker/dist/daemon/client.d.ts +5 -1
- package/vendor/connector-worker/dist/daemon/client.js +3 -0
- package/vendor/connector-worker/dist/daemon/device-concurrency.d.ts +8 -0
- package/vendor/connector-worker/dist/daemon/device-concurrency.js +13 -0
- package/vendor/connector-worker/dist/daemon/executor.d.ts +1 -1
- package/vendor/connector-worker/dist/daemon/executor.js +48 -117
- package/vendor/connector-worker/dist/daemon/log.d.ts +2 -0
- package/vendor/connector-worker/dist/daemon/log.js +23 -2
- package/vendor/connector-worker/dist/daemon/mac-device-daemon.d.ts +20 -4
- package/vendor/connector-worker/dist/daemon/mac-device-daemon.js +53 -13
- package/vendor/connector-worker/dist/daemon/native-bridge/client.d.ts +6 -0
- package/vendor/connector-worker/dist/daemon/native-bridge/client.js +15 -0
- package/vendor/connector-worker/dist/daemon/native-bridge/executor.js +2 -0
- package/vendor/connector-worker/dist/daemon/native-bridge/protocol.d.ts +1 -1
- package/vendor/connector-worker/dist/daemon/native-bridge/protocol.js +1 -0
- package/vendor/connector-worker/dist/daemon/poll-loop.d.ts +3 -0
- package/vendor/connector-worker/dist/daemon/poll-loop.js +5 -1
- package/vendor/connector-worker/dist/daemon/start.d.ts +1 -0
- package/vendor/connector-worker/dist/daemon/start.js +12 -5
- package/vendor/connector-worker/dist/executor/interface.d.ts +34 -2
- package/vendor/connector-worker/dist/executor/isolate.js +66 -15
- package/vendor/connector-worker/dist/executor/redact.d.ts +1 -0
- package/vendor/connector-worker/dist/executor/redact.js +97 -26
- package/vendor/connector-worker/dist/executor/runtime.d.ts +7 -0
- package/vendor/connector-worker/dist/executor/runtime.js +26 -0
- package/vendor/connector-worker/dist/isolate/bridge.js +3 -1
- package/vendor/connector-worker/dist/mac-device-daemon.js +10 -3
- package/vendor/connector-worker/package.json +2 -2
- package/vendor/core/dist/agent-policy.js +1 -1
- package/vendor/core/dist/agent-store.d.ts +2 -0
- package/vendor/core/dist/agent-tooling.d.ts +1 -1
- package/vendor/core/dist/agent-tooling.js +1 -1
- package/vendor/core/dist/capabilities.js +2 -0
- package/vendor/core/dist/contracts/agent-settings.d.ts +0 -11
- package/vendor/core/dist/contracts/agent-settings.js +1 -7
- package/vendor/core/dist/contracts/tools/collection-presentation.d.ts +93 -0
- package/vendor/core/dist/contracts/tools/collection-presentation.js +88 -0
- package/vendor/core/dist/contracts/tools/collection-selection.d.ts +47 -0
- package/vendor/core/dist/contracts/tools/collection-selection.js +74 -0
- package/vendor/core/dist/contracts/tools/manage-agents.d.ts +10 -4
- package/vendor/core/dist/contracts/tools/manage-auth-profiles.d.ts +1 -1
- package/vendor/core/dist/contracts/tools/manage-auth-profiles.js +5 -1
- package/vendor/core/dist/contracts/tools/manage-automations.d.ts +19 -4
- package/vendor/core/dist/contracts/tools/manage-automations.js +25 -8
- package/vendor/core/dist/contracts/tools/manage-connections.d.ts +1 -0
- package/vendor/core/dist/contracts/tools/manage-connections.js +3 -0
- package/vendor/core/dist/contracts/tools/manage-entity-schema.d.ts +11 -0
- package/vendor/core/dist/contracts/tools/manage-entity-schema.js +42 -3
- package/vendor/core/dist/contracts/tools/manage-entity.d.ts +181 -152
- package/vendor/core/dist/contracts/tools/manage-entity.js +118 -162
- package/vendor/core/dist/contracts/tools/manage-operations.d.ts +41 -3
- package/vendor/core/dist/contracts/tools/manage-operations.js +40 -2
- package/vendor/core/dist/contracts/tools/manage-views.d.ts +182 -7
- package/vendor/core/dist/contracts/tools/manage-views.js +49 -13
- package/vendor/core/dist/contracts/tools/read-knowledge.d.ts +11 -2
- package/vendor/core/dist/contracts/tools/read-knowledge.js +23 -3
- package/vendor/core/dist/contracts/tools/save-memory.d.ts +3 -6
- package/vendor/core/dist/contracts/tools/save-memory.js +2 -6
- package/vendor/core/dist/contracts/tools/view-attach.d.ts +2 -1
- package/vendor/core/dist/contracts/tools/view-attach.js +7 -2
- package/vendor/core/dist/contracts/worker/protocol.d.ts +122 -28
- package/vendor/core/dist/contracts/worker/protocol.js +81 -17
- package/vendor/core/dist/index.d.ts +3 -4
- package/vendor/core/dist/index.js +3 -6
- package/vendor/core/dist/json-template.d.ts +6 -10
- package/vendor/core/dist/json-template.js +5 -9
- package/vendor/core/dist/logger.js +11 -5
- package/vendor/core/dist/shell-safety.d.ts +9 -0
- package/vendor/core/dist/shell-safety.js +154 -0
- package/vendor/core/dist/suggestions.d.ts +1 -1
- package/vendor/core/dist/suggestions.js +1 -1
- package/vendor/core/dist/tool-trace-summary.d.ts +1 -1
- package/vendor/core/dist/tool-trace-summary.js +1 -1
- package/vendor/core/dist/types.d.ts +1 -3
- package/vendor/core/dist/utils/diagnostic-scrubber.d.ts +7 -0
- package/vendor/core/dist/utils/{sentry-scrubber.js → diagnostic-scrubber.js} +25 -53
- package/vendor/core/dist/worker/auth.d.ts +44 -6
- package/vendor/core/dist/worker/auth.js +44 -11
- package/vendor/core/package.json +15 -6
- package/vendor/ora/.bun-tag-fde20e9a6df212fa +0 -0
- package/vendor/ora/index.d.ts +332 -0
- package/vendor/ora/index.js +424 -0
- package/vendor/ora/license +9 -0
- package/vendor/ora/package.json +53 -0
- package/vendor/ora/readme.md +329 -0
- package/vendor/cli/dist/commands/telemetry.d.ts +0 -10
- package/vendor/cli/dist/commands/telemetry.js +0 -66
- package/vendor/core/dist/sentry.d.ts +0 -26
- package/vendor/core/dist/sentry.js +0 -133
- package/vendor/core/dist/tool-policy.d.ts +0 -74
- package/vendor/core/dist/tool-policy.js +0 -305
- package/vendor/core/dist/utils/sentry-scrubber.d.ts +0 -29
|
@@ -17,9 +17,8 @@ export declare const SaveContentSchema: import("@sinclair/typebox").TObject<{
|
|
|
17
17
|
title: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
18
18
|
author: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
19
19
|
semantic_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
20
|
-
payload_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"text">, import("@sinclair/typebox").TLiteral<"markdown">, import("@sinclair/typebox").TLiteral<"
|
|
20
|
+
payload_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"text">, import("@sinclair/typebox").TLiteral<"markdown">, import("@sinclair/typebox").TLiteral<"media">, import("@sinclair/typebox").TLiteral<"empty">]>>;
|
|
21
21
|
payload_data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>>;
|
|
22
|
-
payload_template: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>>;
|
|
23
22
|
attachments: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>>>;
|
|
24
23
|
source_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
25
24
|
parent_event_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
@@ -36,14 +35,12 @@ export type SaveContentArgs = Static<typeof SaveContentSchema>;
|
|
|
36
35
|
/**
|
|
37
36
|
* `client.knowledge.save` input. The schema leaves every field optional
|
|
38
37
|
* because `saveContent` resolves the requirement per `payload_type`:
|
|
39
|
-
* `semantic_type` always, `content` for text/markdown
|
|
40
|
-
*
|
|
38
|
+
* `semantic_type` always, `content` for text/markdown.
|
|
39
|
+
* Stated here once, over the contract's own fields.
|
|
41
40
|
*/
|
|
42
41
|
type Save<R extends keyof SaveContentArgs = never> = FlatActionInput<SaveContentArgs, keyof SaveContentArgs, "semantic_type" | R>;
|
|
43
42
|
export type SaveContentInput = (Save<"content"> & {
|
|
44
43
|
payload_type?: "text" | "markdown";
|
|
45
|
-
}) | (Save<"payload_template"> & {
|
|
46
|
-
payload_type: "json_template";
|
|
47
44
|
}) | (Save & {
|
|
48
45
|
payload_type: "media" | "empty";
|
|
49
46
|
});
|
|
@@ -28,17 +28,13 @@ exports.SaveContentSchema = typebox_1.Type.Object({
|
|
|
28
28
|
payload_type: typebox_1.Type.Optional(typebox_1.Type.Union([
|
|
29
29
|
typebox_1.Type.Literal("text"),
|
|
30
30
|
typebox_1.Type.Literal("markdown"),
|
|
31
|
-
typebox_1.Type.Literal("json_template"),
|
|
32
31
|
typebox_1.Type.Literal("media"),
|
|
33
32
|
typebox_1.Type.Literal("empty"),
|
|
34
33
|
], {
|
|
35
|
-
description: "Content format. 'text' (default): plain text. 'markdown': rendered as rich text. '
|
|
34
|
+
description: "Content format. 'text' (default): plain text. 'markdown': rendered as rich text. 'media': media-focused display. 'empty': metadata only.",
|
|
36
35
|
})),
|
|
37
36
|
payload_data: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Any(), {
|
|
38
|
-
description: "Structured
|
|
39
|
-
})),
|
|
40
|
-
payload_template: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Any(), {
|
|
41
|
-
description: "JSON template for rendering. Required when payload_type is json_template. Must have a { root: ... } structure.",
|
|
37
|
+
description: "Structured event data, preserved alongside content and media.",
|
|
42
38
|
})),
|
|
43
39
|
attachments: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Any()), {
|
|
44
40
|
description: "Array of attachment objects (e.g. files, images).",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type CollectionSelection } from "./collection-selection";
|
|
1
2
|
import type { ViewAttachment } from "./manage-views";
|
|
2
3
|
type EventAttachment = Extract<ViewAttachment, {
|
|
3
4
|
event_kind: string;
|
|
@@ -6,7 +7,7 @@ type ViewPlacement = "tab" | "overview";
|
|
|
6
7
|
/** An event's type qualifies its linked entities; it never names a page tab. */
|
|
7
8
|
export declare function isEventAttachment(attachment: ViewAttachment): attachment is EventAttachment;
|
|
8
9
|
export declare function isTabAttachment(attachment: ViewAttachment): boolean;
|
|
9
|
-
export declare function matchesType(attachment: ViewAttachment, typeSlug: string, placement: ViewPlacement): boolean;
|
|
10
|
+
export declare function matchesType(attachment: ViewAttachment, typeSlug: string, placement: ViewPlacement, selection?: CollectionSelection): boolean;
|
|
10
11
|
export declare function matchesRecord(attachment: ViewAttachment, record: {
|
|
11
12
|
type: string;
|
|
12
13
|
id: number;
|
|
@@ -6,6 +6,7 @@ exports.matchesType = matchesType;
|
|
|
6
6
|
exports.matchesRecord = matchesRecord;
|
|
7
7
|
exports.hasWorkspaceAttachment = hasWorkspaceAttachment;
|
|
8
8
|
exports.eventAttachmentsFor = eventAttachmentsFor;
|
|
9
|
+
const collection_selection_1 = require("./collection-selection");
|
|
9
10
|
/** An event's type qualifies its linked entities; it never names a page tab. */
|
|
10
11
|
function isEventAttachment(attachment) {
|
|
11
12
|
return ("event_kind" in attachment && typeof attachment.event_kind === "string");
|
|
@@ -13,10 +14,12 @@ function isEventAttachment(attachment) {
|
|
|
13
14
|
function isTabAttachment(attachment) {
|
|
14
15
|
return (!isEventAttachment(attachment) && (attachment.placement ?? "tab") === "tab");
|
|
15
16
|
}
|
|
16
|
-
function matchesType(attachment, typeSlug, placement) {
|
|
17
|
+
function matchesType(attachment, typeSlug, placement, selection = {}) {
|
|
17
18
|
return (!isEventAttachment(attachment) &&
|
|
18
19
|
"type" in attachment &&
|
|
19
20
|
attachment.type === typeSlug &&
|
|
21
|
+
attachment.surface !== "record" &&
|
|
22
|
+
(!attachment.when || (0, collection_selection_1.selectionImplies)(selection, attachment.when)) &&
|
|
20
23
|
(attachment.placement ?? "tab") === placement);
|
|
21
24
|
}
|
|
22
25
|
function matchesRecord(attachment, record, placement) {
|
|
@@ -29,7 +32,9 @@ function matchesRecord(attachment, record, placement) {
|
|
|
29
32
|
? attachment.entity === record.id
|
|
30
33
|
: record.parentId === null && attachment.entity === record.slug;
|
|
31
34
|
}
|
|
32
|
-
return
|
|
35
|
+
return ("type" in attachment &&
|
|
36
|
+
attachment.type === record.type &&
|
|
37
|
+
attachment.surface !== "collection");
|
|
33
38
|
}
|
|
34
39
|
function hasWorkspaceAttachment(attach) {
|
|
35
40
|
return attach.some((attachment) => !isEventAttachment(attachment) &&
|
|
@@ -27,6 +27,25 @@
|
|
|
27
27
|
import { type Static } from "@sinclair/typebox";
|
|
28
28
|
export declare const CONNECTOR_HTTP_AUTH_CAPABILITY = "http_auth";
|
|
29
29
|
export declare const CONNECTOR_HTTP_MAX_BYTES: number;
|
|
30
|
+
/** Source identity for device controls, named like the operations activity feed fields. */
|
|
31
|
+
export declare const SourceAttributionSchema: import("@sinclair/typebox").TObject<{
|
|
32
|
+
platform: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
33
|
+
connection_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
34
|
+
connection_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
35
|
+
feed_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
36
|
+
feed_key: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
37
|
+
feed_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
38
|
+
automation_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
39
|
+
automation_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
40
|
+
agent_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
41
|
+
agent_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
42
|
+
client_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
43
|
+
client_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
44
|
+
device_worker_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
45
|
+
device_label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
46
|
+
device_platform: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
47
|
+
}>;
|
|
48
|
+
export type SourceAttribution = Static<typeof SourceAttributionSchema>;
|
|
30
49
|
export declare const ConnectorHttpRequestSchema: import("@sinclair/typebox").TObject<{
|
|
31
50
|
url: import("@sinclair/typebox").TString;
|
|
32
51
|
method: import("@sinclair/typebox").TString;
|
|
@@ -90,13 +109,37 @@ export declare const EXECUTION_BACKENDS: {
|
|
|
90
109
|
* native connectors and be recovered through one.
|
|
91
110
|
*/
|
|
92
111
|
export declare function defaultBackendCapacity(): Record<string, number>;
|
|
93
|
-
/** Bounded source
|
|
112
|
+
/** Bounded source activity and optional reference deliveries included in a worker poll. */
|
|
94
113
|
export declare const FeedNotificationSchema: import("@sinclair/typebox").TObject<{
|
|
95
114
|
feed_id: import("@sinclair/typebox").TInteger;
|
|
96
115
|
connection_id: import("@sinclair/typebox").TInteger;
|
|
97
116
|
feed_key: import("@sinclair/typebox").TString;
|
|
98
117
|
notification_id: import("@sinclair/typebox").TString;
|
|
99
118
|
changed: import("@sinclair/typebox").TBoolean;
|
|
119
|
+
subscription: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
120
|
+
scope_key: import("@sinclair/typebox").TString;
|
|
121
|
+
binding_id: import("@sinclair/typebox").TString;
|
|
122
|
+
epoch: import("@sinclair/typebox").TString;
|
|
123
|
+
needs_rebind: import("@sinclair/typebox").TBoolean;
|
|
124
|
+
records: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
125
|
+
revision: import("@sinclair/typebox").TInteger;
|
|
126
|
+
payload: import("@sinclair/typebox").TObject<{
|
|
127
|
+
id: import("@sinclair/typebox").TString;
|
|
128
|
+
events: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
129
|
+
id: import("@sinclair/typebox").TString;
|
|
130
|
+
event_type: import("@sinclair/typebox").TString;
|
|
131
|
+
resource_ref: import("@sinclair/typebox").TString;
|
|
132
|
+
resource_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
133
|
+
occurred_at: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
134
|
+
}>>;
|
|
135
|
+
checkpoint: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
136
|
+
previous: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TNull]>;
|
|
137
|
+
next: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
|
|
138
|
+
}>>;
|
|
139
|
+
more: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
140
|
+
}>;
|
|
141
|
+
}>>;
|
|
142
|
+
}>>;
|
|
100
143
|
}>;
|
|
101
144
|
/**
|
|
102
145
|
* Ceiling on how long the gateway holds an empty claim request. A client that
|
|
@@ -124,13 +167,37 @@ export declare const PollRequestSchema: import("@sinclair/typebox").TObject<{
|
|
|
124
167
|
*/
|
|
125
168
|
label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
126
169
|
connector_manifests: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnknown>;
|
|
127
|
-
/** Connector feed wake hints
|
|
170
|
+
/** Connector feed wake hints, plus source-reference deliveries for subscribed read-only feeds. */
|
|
128
171
|
feed_notifications: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
129
172
|
feed_id: import("@sinclair/typebox").TInteger;
|
|
130
173
|
connection_id: import("@sinclair/typebox").TInteger;
|
|
131
174
|
feed_key: import("@sinclair/typebox").TString;
|
|
132
175
|
notification_id: import("@sinclair/typebox").TString;
|
|
133
176
|
changed: import("@sinclair/typebox").TBoolean;
|
|
177
|
+
subscription: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
178
|
+
scope_key: import("@sinclair/typebox").TString;
|
|
179
|
+
binding_id: import("@sinclair/typebox").TString;
|
|
180
|
+
epoch: import("@sinclair/typebox").TString;
|
|
181
|
+
needs_rebind: import("@sinclair/typebox").TBoolean;
|
|
182
|
+
records: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
183
|
+
revision: import("@sinclair/typebox").TInteger;
|
|
184
|
+
payload: import("@sinclair/typebox").TObject<{
|
|
185
|
+
id: import("@sinclair/typebox").TString;
|
|
186
|
+
events: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
187
|
+
id: import("@sinclair/typebox").TString;
|
|
188
|
+
event_type: import("@sinclair/typebox").TString;
|
|
189
|
+
resource_ref: import("@sinclair/typebox").TString;
|
|
190
|
+
resource_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
191
|
+
occurred_at: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
192
|
+
}>>;
|
|
193
|
+
checkpoint: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
194
|
+
previous: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TNull]>;
|
|
195
|
+
next: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
|
|
196
|
+
}>>;
|
|
197
|
+
more: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
198
|
+
}>;
|
|
199
|
+
}>>;
|
|
200
|
+
}>>;
|
|
134
201
|
}>>>;
|
|
135
202
|
/**
|
|
136
203
|
* Agent kinds this device can run for Automations (e.g. `["claude-code"]`).
|
|
@@ -464,7 +531,7 @@ export declare const AgentTurnPollPayloadSchema: import("@sinclair/typebox").TOb
|
|
|
464
531
|
input_schema: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
|
|
465
532
|
}>>;
|
|
466
533
|
/**
|
|
467
|
-
* The workspace tools
|
|
534
|
+
* The workspace tools available for this turn. They run against
|
|
468
535
|
* a per-turn in-memory filesystem inside the isolate: local `bash` is
|
|
469
536
|
* just-bash, the rest are pi's file tools over the same filesystem.
|
|
470
537
|
* Absent or empty → no workspace tools.
|
|
@@ -480,14 +547,8 @@ export declare const AgentTurnPollPayloadSchema: import("@sinclair/typebox").TOb
|
|
|
480
547
|
remote_runtime: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
481
548
|
provider_id: import("@sinclair/typebox").TString;
|
|
482
549
|
}>>;
|
|
483
|
-
/** The agent's bash prefix policy, enforced before a command runs. */
|
|
484
|
-
bash_policy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
485
|
-
allow_all: import("@sinclair/typebox").TBoolean;
|
|
486
|
-
allow_prefixes: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
487
|
-
deny_prefixes: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
488
|
-
}>>;
|
|
489
550
|
/**
|
|
490
|
-
* The gateway tools
|
|
551
|
+
* The gateway tools available for this turn, by NAME only —
|
|
491
552
|
* `ask_user`, `send_message`, `suggest_actions` and the rest of
|
|
492
553
|
* `@lobu/plugin-conversations`. The guest runs that package's own
|
|
493
554
|
* implementation, so the route, the request body and the schema live
|
|
@@ -499,7 +560,7 @@ export declare const AgentTurnPollPayloadSchema: import("@sinclair/typebox").TOb
|
|
|
499
560
|
*/
|
|
500
561
|
gateway: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
501
562
|
/**
|
|
502
|
-
* The media tools
|
|
563
|
+
* The media tools available for this turn, by NAME only —
|
|
503
564
|
* `upload_file`, `generate_image`, `generate_audio` from
|
|
504
565
|
* `@lobu/plugin-media`. Same contract as `gateway` above: the guest
|
|
505
566
|
* runs that package's own implementation, so the routes and schemas
|
|
@@ -578,6 +639,26 @@ export declare const FeedSourceAckSchema: import("@sinclair/typebox").TObject<{
|
|
|
578
639
|
export type FeedSourceAck = Static<typeof FeedSourceAckSchema>;
|
|
579
640
|
/** `POST /api/workers/poll` response body (a claimed run, or a poll-again). */
|
|
580
641
|
export declare const PollResponseSchema: import("@sinclair/typebox").TObject<{
|
|
642
|
+
/** Server-owned display identity. Never sourced from action_input. */
|
|
643
|
+
source_attribution: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
644
|
+
platform: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
645
|
+
connection_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
646
|
+
connection_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
647
|
+
feed_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
648
|
+
feed_key: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
649
|
+
feed_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
650
|
+
automation_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
651
|
+
automation_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
652
|
+
agent_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
653
|
+
agent_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
654
|
+
client_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
655
|
+
client_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
656
|
+
device_worker_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
657
|
+
device_label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
658
|
+
device_platform: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
659
|
+
}>>;
|
|
660
|
+
/** Existing run permalink, built by the server for this admitted operation. */
|
|
661
|
+
source_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
581
662
|
next_poll_seconds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
582
663
|
feed_notification_receipts: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
583
664
|
feed_id: import("@sinclair/typebox").TInteger;
|
|
@@ -609,6 +690,10 @@ export declare const PollResponseSchema: import("@sinclair/typebox").TObject<{
|
|
|
609
690
|
revision: import("@sinclair/typebox").TInteger;
|
|
610
691
|
}>>;
|
|
611
692
|
}>, import("@sinclair/typebox").TNull]>;
|
|
693
|
+
subscription: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
694
|
+
scope_key: import("@sinclair/typebox").TString;
|
|
695
|
+
event_types: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
696
|
+
}>>;
|
|
612
697
|
}>>;
|
|
613
698
|
page_activations: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
614
699
|
run_id: import("@sinclair/typebox").TInteger;
|
|
@@ -649,6 +734,7 @@ export declare const PollResponseSchema: import("@sinclair/typebox").TObject<{
|
|
|
649
734
|
feed_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
650
735
|
compiled_code: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
651
736
|
session_state: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
737
|
+
browser_grant: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
652
738
|
connector_version: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
653
739
|
action_key: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
654
740
|
/** Native device operation key; public connector operations use action_key. */
|
|
@@ -898,7 +984,7 @@ export declare const PollResponseSchema: import("@sinclair/typebox").TObject<{
|
|
|
898
984
|
input_schema: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
|
|
899
985
|
}>>;
|
|
900
986
|
/**
|
|
901
|
-
* The workspace tools
|
|
987
|
+
* The workspace tools available for this turn. They run against
|
|
902
988
|
* a per-turn in-memory filesystem inside the isolate: local `bash` is
|
|
903
989
|
* just-bash, the rest are pi's file tools over the same filesystem.
|
|
904
990
|
* Absent or empty → no workspace tools.
|
|
@@ -914,14 +1000,8 @@ export declare const PollResponseSchema: import("@sinclair/typebox").TObject<{
|
|
|
914
1000
|
remote_runtime: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
915
1001
|
provider_id: import("@sinclair/typebox").TString;
|
|
916
1002
|
}>>;
|
|
917
|
-
/** The agent's bash prefix policy, enforced before a command runs. */
|
|
918
|
-
bash_policy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
919
|
-
allow_all: import("@sinclair/typebox").TBoolean;
|
|
920
|
-
allow_prefixes: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
921
|
-
deny_prefixes: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
922
|
-
}>>;
|
|
923
1003
|
/**
|
|
924
|
-
* The gateway tools
|
|
1004
|
+
* The gateway tools available for this turn, by NAME only —
|
|
925
1005
|
* `ask_user`, `send_message`, `suggest_actions` and the rest of
|
|
926
1006
|
* `@lobu/plugin-conversations`. The guest runs that package's own
|
|
927
1007
|
* implementation, so the route, the request body and the schema live
|
|
@@ -933,7 +1013,7 @@ export declare const PollResponseSchema: import("@sinclair/typebox").TObject<{
|
|
|
933
1013
|
*/
|
|
934
1014
|
gateway: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
935
1015
|
/**
|
|
936
|
-
* The media tools
|
|
1016
|
+
* The media tools available for this turn, by NAME only —
|
|
937
1017
|
* `upload_file`, `generate_image`, `generate_audio` from
|
|
938
1018
|
* `@lobu/plugin-media`. Same contract as `gateway` above: the guest
|
|
939
1019
|
* runs that package's own implementation, so the routes and schemas
|
|
@@ -1014,17 +1094,16 @@ export declare const ActivatePageResponseSchema: import("@sinclair/typebox").TOb
|
|
|
1014
1094
|
* One collected item in a `/stream` batch. This is the SERVER-accepted superset:
|
|
1015
1095
|
* the connector-worker's `ContentItem` sends the plain-content subset (id,
|
|
1016
1096
|
* payload_text, author/source/score/embedding…), while richer producers (the
|
|
1017
|
-
* chrome extension
|
|
1018
|
-
* `payload_data
|
|
1097
|
+
* chrome extension and media feeds) also send `payload_type` with
|
|
1098
|
+
* structured `payload_data` and `attachments`. All are optional
|
|
1019
1099
|
* so a bare content item still validates.
|
|
1020
1100
|
*/
|
|
1021
1101
|
export declare const ContentItemSchema: import("@sinclair/typebox").TObject<{
|
|
1022
1102
|
id: import("@sinclair/typebox").TString;
|
|
1023
1103
|
title: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1024
|
-
payload_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"text">, import("@sinclair/typebox").TLiteral<"markdown">, import("@sinclair/typebox").TLiteral<"
|
|
1104
|
+
payload_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"text">, import("@sinclair/typebox").TLiteral<"markdown">, import("@sinclair/typebox").TLiteral<"media">, import("@sinclair/typebox").TLiteral<"empty">]>>;
|
|
1025
1105
|
payload_text: import("@sinclair/typebox").TString;
|
|
1026
1106
|
payload_data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
1027
|
-
payload_template: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TNull]>>;
|
|
1028
1107
|
attachments: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
|
|
1029
1108
|
author_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1030
1109
|
occurred_at: import("@sinclair/typebox").TString;
|
|
@@ -1060,10 +1139,9 @@ export declare const StreamBatchSchema: import("@sinclair/typebox").TObject<{
|
|
|
1060
1139
|
items: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
1061
1140
|
id: import("@sinclair/typebox").TString;
|
|
1062
1141
|
title: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1063
|
-
payload_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"text">, import("@sinclair/typebox").TLiteral<"markdown">, import("@sinclair/typebox").TLiteral<"
|
|
1142
|
+
payload_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"text">, import("@sinclair/typebox").TLiteral<"markdown">, import("@sinclair/typebox").TLiteral<"media">, import("@sinclair/typebox").TLiteral<"empty">]>>;
|
|
1064
1143
|
payload_text: import("@sinclair/typebox").TString;
|
|
1065
1144
|
payload_data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
1066
|
-
payload_template: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TNull]>>;
|
|
1067
1145
|
attachments: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
|
|
1068
1146
|
author_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1069
1147
|
occurred_at: import("@sinclair/typebox").TString;
|
|
@@ -1094,10 +1172,10 @@ export declare const CompleteRequestSchema: import("@sinclair/typebox").TObject<
|
|
|
1094
1172
|
error_message: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1095
1173
|
status: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"success">, import("@sinclair/typebox").TLiteral<"failed">]>;
|
|
1096
1174
|
run_id: import("@sinclair/typebox").TInteger;
|
|
1097
|
-
worker_id: import("@sinclair/typebox").TString;
|
|
1098
1175
|
checkpoint: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
1099
|
-
items_collected: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
1100
1176
|
more: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
1177
|
+
worker_id: import("@sinclair/typebox").TString;
|
|
1178
|
+
items_collected: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
1101
1179
|
auth_update: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
1102
1180
|
output_tail: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1103
1181
|
exit_code: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
@@ -1517,6 +1595,22 @@ export declare const HeartbeatRequestSchema: import("@sinclair/typebox").TObject
|
|
|
1517
1595
|
}>>;
|
|
1518
1596
|
}>>>;
|
|
1519
1597
|
}>;
|
|
1598
|
+
/**
|
|
1599
|
+
* Request the gateway delegate a native device operation on behalf of a
|
|
1600
|
+
* running connector action. Scoped to the parent run's live claim.
|
|
1601
|
+
*/
|
|
1602
|
+
export declare const ExecuteConnectorOperationRequestSchema: import("@sinclair/typebox").TObject<{
|
|
1603
|
+
parent_run_id: import("@sinclair/typebox").TInteger;
|
|
1604
|
+
worker_id: import("@sinclair/typebox").TString;
|
|
1605
|
+
request: import("@sinclair/typebox").TObject<{
|
|
1606
|
+
connection_id: import("@sinclair/typebox").TInteger;
|
|
1607
|
+
idempotency_key: import("@sinclair/typebox").TString;
|
|
1608
|
+
input: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>>;
|
|
1609
|
+
operation_key: import("@sinclair/typebox").TString;
|
|
1610
|
+
background: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
1611
|
+
}>;
|
|
1612
|
+
}>;
|
|
1613
|
+
export type ExecuteConnectorOperationRequest = Static<typeof ExecuteConnectorOperationRequestSchema>;
|
|
1520
1614
|
/**
|
|
1521
1615
|
* Request the gateway dispatch a chrome connector action on behalf of a
|
|
1522
1616
|
* running sync. Scoped to the parent run's org.
|
|
@@ -26,12 +26,31 @@
|
|
|
26
26
|
* not change that boundary, it only types what already crosses it.
|
|
27
27
|
*/
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
30
|
-
exports.HeartbeatResponseSchema = void 0;
|
|
29
|
+
exports.ExecuteConnectorOperationRequestSchema = exports.HeartbeatRequestSchema = exports.AGENT_TURN_BRIDGE_BYTES = exports.TURN_DELTA_MAX_CHARS = exports.PollAuthSignalResponseSchema = exports.PollAuthSignalRequestSchema = exports.EmitAuthArtifactRequestSchema = exports.CompleteAgentTurnResponseSchema = exports.CompleteAgentTurnRequestSchema = exports.AGENT_TURN_INPUT_MAX = exports.TURN_TOOL_EVENT_QUEUE_MAX = exports.TurnToolEventSchema = exports.TURN_TOOL_OUTPUT_MAX_CHARS = exports.CompleteDeviceChatResponseSchema = exports.CompleteDeviceChatRequestSchema = exports.CompleteAutomationResponseSchema = exports.CompleteAutomationRequestSchema = exports.CompleteAuthRequestSchema = exports.CompleteEmbeddingsRequestSchema = exports.EmbeddingEntrySchema = exports.EmbedEventSchema = exports.CompleteActionRequestSchema = exports.CompleteRequestSchema = exports.StreamBatchSchema = exports.ContentItemSchema = exports.ActivatePageResponseSchema = exports.ActivatePageRequestSchema = exports.PollResponseSchema = exports.FeedSourceAckSchema = exports.AgentTurnPollPayloadSchema = exports.DeviceChatPollPayloadSchema = exports.DEVICE_CHAT_MAX_CONTEXT_LENGTH = exports.DeviceChatHistoryMessageSchema = exports.AutomationPollPayloadSchema = exports.AutomationPollContextSchema = exports.AutomationPollEventSchema = exports.AutomationPollMetaSchema = exports.AutomationExecutionConfigSchema = exports.PollRequestSchema = exports.WORKER_POLL_MAX_WAIT_SECONDS = exports.FeedNotificationSchema = exports.EXECUTION_BACKENDS = exports.OAuthCredentialsSchema = exports.WorkerExitDiagnosticsSchema = exports.WorkerExitReasonSchema = exports.RunTypeSchema = exports.ConnectorHttpRequestSchema = exports.SourceAttributionSchema = exports.CONNECTOR_HTTP_MAX_BYTES = exports.CONNECTOR_HTTP_AUTH_CAPABILITY = void 0;
|
|
30
|
+
exports.HeartbeatResponseSchema = exports.DispatchChromeActionResponseSchema = exports.DispatchChromeActionRequestSchema = void 0;
|
|
31
31
|
exports.defaultBackendCapacity = defaultBackendCapacity;
|
|
32
32
|
const typebox_1 = require("@sinclair/typebox");
|
|
33
|
+
const manage_operations_1 = require("../tools/manage-operations");
|
|
33
34
|
exports.CONNECTOR_HTTP_AUTH_CAPABILITY = "http_auth";
|
|
34
35
|
exports.CONNECTOR_HTTP_MAX_BYTES = 4 * 1024 * 1024;
|
|
36
|
+
/** Source identity for device controls, named like the operations activity feed fields. */
|
|
37
|
+
exports.SourceAttributionSchema = typebox_1.Type.Object({
|
|
38
|
+
platform: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
|
|
39
|
+
connection_id: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Integer(), typebox_1.Type.Null()])),
|
|
40
|
+
connection_name: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
|
|
41
|
+
feed_id: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Integer(), typebox_1.Type.Null()])),
|
|
42
|
+
feed_key: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
|
|
43
|
+
feed_name: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
|
|
44
|
+
automation_id: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Integer(), typebox_1.Type.Null()])),
|
|
45
|
+
automation_name: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
|
|
46
|
+
agent_id: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
|
|
47
|
+
agent_name: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
|
|
48
|
+
client_id: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
|
|
49
|
+
client_name: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
|
|
50
|
+
device_worker_id: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
|
|
51
|
+
device_label: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
|
|
52
|
+
device_platform: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
|
|
53
|
+
}, { additionalProperties: false });
|
|
35
54
|
exports.ConnectorHttpRequestSchema = typebox_1.Type.Object({
|
|
36
55
|
url: typebox_1.Type.String({ maxLength: 16384 }),
|
|
37
56
|
method: typebox_1.Type.String({ maxLength: 32 }),
|
|
@@ -133,13 +152,48 @@ exports.EXECUTION_BACKENDS = {
|
|
|
133
152
|
function defaultBackendCapacity() {
|
|
134
153
|
return { [exports.EXECUTION_BACKENDS.compiledConnector]: 1 };
|
|
135
154
|
}
|
|
136
|
-
/**
|
|
155
|
+
/** Source references only. Message bodies and arbitrary attributes never enter this transport. */
|
|
156
|
+
const FeedReferenceEventSchema = typebox_1.Type.Object({
|
|
157
|
+
id: typebox_1.Type.String({ minLength: 1, maxLength: 1024 }),
|
|
158
|
+
event_type: typebox_1.Type.String({ minLength: 1, maxLength: 100 }),
|
|
159
|
+
resource_ref: typebox_1.Type.String({ minLength: 1, maxLength: 1024 }),
|
|
160
|
+
resource_type: typebox_1.Type.Optional(typebox_1.Type.String({ minLength: 1, maxLength: 100 })),
|
|
161
|
+
occurred_at: typebox_1.Type.Optional(typebox_1.Type.String({ maxLength: 64 })),
|
|
162
|
+
}, { additionalProperties: false });
|
|
163
|
+
/** Each reference batch is atomic in the existing browser buffer and delivery transaction. */
|
|
164
|
+
const FeedReferenceBatchSchema = typebox_1.Type.Object({
|
|
165
|
+
id: typebox_1.Type.String({ minLength: 1, maxLength: 1024 }),
|
|
166
|
+
events: typebox_1.Type.Array(FeedReferenceEventSchema, { maxItems: 500 }),
|
|
167
|
+
checkpoint: typebox_1.Type.Optional(typebox_1.Type.Object({
|
|
168
|
+
previous: typebox_1.Type.Union([
|
|
169
|
+
typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown()),
|
|
170
|
+
typebox_1.Type.Null(),
|
|
171
|
+
]),
|
|
172
|
+
next: typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown()),
|
|
173
|
+
}, { additionalProperties: false })),
|
|
174
|
+
more: typebox_1.Type.Optional(typebox_1.Type.Boolean()),
|
|
175
|
+
}, { additionalProperties: false });
|
|
176
|
+
const FeedSubscriptionNotificationSchema = typebox_1.Type.Object({
|
|
177
|
+
scope_key: typebox_1.Type.String({ minLength: 1, maxLength: 100 }),
|
|
178
|
+
binding_id: typebox_1.Type.String({ minLength: 1, maxLength: 200 }),
|
|
179
|
+
epoch: typebox_1.Type.String({ minLength: 1, maxLength: 200 }),
|
|
180
|
+
needs_rebind: typebox_1.Type.Boolean(),
|
|
181
|
+
records: typebox_1.Type.Array(typebox_1.Type.Object({
|
|
182
|
+
revision: typebox_1.Type.Integer({
|
|
183
|
+
minimum: 1,
|
|
184
|
+
maximum: Number.MAX_SAFE_INTEGER,
|
|
185
|
+
}),
|
|
186
|
+
payload: FeedReferenceBatchSchema,
|
|
187
|
+
}, { additionalProperties: false }), { maxItems: 25 }),
|
|
188
|
+
}, { additionalProperties: false });
|
|
189
|
+
/** Bounded source activity and optional reference deliveries included in a worker poll. */
|
|
137
190
|
exports.FeedNotificationSchema = typebox_1.Type.Object({
|
|
138
191
|
feed_id: typebox_1.Type.Integer({ minimum: 1 }),
|
|
139
192
|
connection_id: typebox_1.Type.Integer({ minimum: 1 }),
|
|
140
193
|
feed_key: typebox_1.Type.String({ minLength: 1, maxLength: 200 }),
|
|
141
194
|
notification_id: typebox_1.Type.String({ minLength: 1, maxLength: 200 }),
|
|
142
195
|
changed: typebox_1.Type.Boolean(),
|
|
196
|
+
subscription: typebox_1.Type.Optional(FeedSubscriptionNotificationSchema),
|
|
143
197
|
});
|
|
144
198
|
/**
|
|
145
199
|
* Ceiling on how long the gateway holds an empty claim request. A client that
|
|
@@ -167,7 +221,7 @@ exports.PollRequestSchema = typebox_1.Type.Object({
|
|
|
167
221
|
*/
|
|
168
222
|
label: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
169
223
|
connector_manifests: typebox_1.Type.Optional(typebox_1.Type.Unknown()),
|
|
170
|
-
/** Connector feed wake hints
|
|
224
|
+
/** Connector feed wake hints, plus source-reference deliveries for subscribed read-only feeds. */
|
|
171
225
|
feed_notifications: typebox_1.Type.Optional(typebox_1.Type.Array(exports.FeedNotificationSchema, { maxItems: 64 })),
|
|
172
226
|
/**
|
|
173
227
|
* Agent kinds this device can run for Automations (e.g. `["claude-code"]`).
|
|
@@ -482,7 +536,7 @@ exports.AgentTurnPollPayloadSchema = typebox_1.Type.Object({
|
|
|
482
536
|
input_schema: typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown()),
|
|
483
537
|
})),
|
|
484
538
|
/**
|
|
485
|
-
* The workspace tools
|
|
539
|
+
* The workspace tools available for this turn. They run against
|
|
486
540
|
* a per-turn in-memory filesystem inside the isolate: local `bash` is
|
|
487
541
|
* just-bash, the rest are pi's file tools over the same filesystem.
|
|
488
542
|
* Absent or empty → no workspace tools.
|
|
@@ -504,14 +558,8 @@ exports.AgentTurnPollPayloadSchema = typebox_1.Type.Object({
|
|
|
504
558
|
* remain in the in-memory workspace.
|
|
505
559
|
*/
|
|
506
560
|
remote_runtime: typebox_1.Type.Optional(typebox_1.Type.Object({ provider_id: typebox_1.Type.String({ minLength: 1 }) })),
|
|
507
|
-
/** The agent's bash prefix policy, enforced before a command runs. */
|
|
508
|
-
bash_policy: typebox_1.Type.Optional(typebox_1.Type.Object({
|
|
509
|
-
allow_all: typebox_1.Type.Boolean(),
|
|
510
|
-
allow_prefixes: typebox_1.Type.Array(typebox_1.Type.String()),
|
|
511
|
-
deny_prefixes: typebox_1.Type.Array(typebox_1.Type.String()),
|
|
512
|
-
})),
|
|
513
561
|
/**
|
|
514
|
-
* The gateway tools
|
|
562
|
+
* The gateway tools available for this turn, by NAME only —
|
|
515
563
|
* `ask_user`, `send_message`, `suggest_actions` and the rest of
|
|
516
564
|
* `@lobu/plugin-conversations`. The guest runs that package's own
|
|
517
565
|
* implementation, so the route, the request body and the schema live
|
|
@@ -523,7 +571,7 @@ exports.AgentTurnPollPayloadSchema = typebox_1.Type.Object({
|
|
|
523
571
|
*/
|
|
524
572
|
gateway: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.String({ minLength: 1 }))),
|
|
525
573
|
/**
|
|
526
|
-
* The media tools
|
|
574
|
+
* The media tools available for this turn, by NAME only —
|
|
527
575
|
* `upload_file`, `generate_image`, `generate_audio` from
|
|
528
576
|
* `@lobu/plugin-media`. Same contract as `gateway` above: the guest
|
|
529
577
|
* runs that package's own implementation, so the routes and schemas
|
|
@@ -601,6 +649,10 @@ exports.FeedSourceAckSchema = typebox_1.Type.Object({
|
|
|
601
649
|
});
|
|
602
650
|
/** `POST /api/workers/poll` response body (a claimed run, or a poll-again). */
|
|
603
651
|
exports.PollResponseSchema = typebox_1.Type.Object({
|
|
652
|
+
/** Server-owned display identity. Never sourced from action_input. */
|
|
653
|
+
source_attribution: typebox_1.Type.Optional(exports.SourceAttributionSchema),
|
|
654
|
+
/** Existing run permalink, built by the server for this admitted operation. */
|
|
655
|
+
source_url: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
604
656
|
next_poll_seconds: typebox_1.Type.Optional(typebox_1.Type.Number()),
|
|
605
657
|
feed_notification_receipts: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.Object({
|
|
606
658
|
feed_id: typebox_1.Type.Integer(),
|
|
@@ -618,6 +670,10 @@ exports.PollResponseSchema = typebox_1.Type.Object({
|
|
|
618
670
|
feed_key: typebox_1.Type.String(),
|
|
619
671
|
device_worker_id: typebox_1.Type.String(),
|
|
620
672
|
ack: typebox_1.Type.Union([exports.FeedSourceAckSchema, typebox_1.Type.Null()]),
|
|
673
|
+
subscription: typebox_1.Type.Optional(typebox_1.Type.Object({
|
|
674
|
+
scope_key: typebox_1.Type.String(),
|
|
675
|
+
event_types: typebox_1.Type.Array(typebox_1.Type.String()),
|
|
676
|
+
})),
|
|
621
677
|
})),
|
|
622
678
|
page_activations: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.Object({
|
|
623
679
|
run_id: typebox_1.Type.Integer(),
|
|
@@ -653,6 +709,7 @@ exports.PollResponseSchema = typebox_1.Type.Object({
|
|
|
653
709
|
feed_id: typebox_1.Type.Optional(typebox_1.Type.Integer()),
|
|
654
710
|
compiled_code: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
655
711
|
session_state: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown())),
|
|
712
|
+
browser_grant: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown())),
|
|
656
713
|
connector_version: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
657
714
|
action_key: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
658
715
|
/** Native device operation key; public connector operations use action_key. */
|
|
@@ -691,8 +748,8 @@ exports.ActivatePageResponseSchema = typebox_1.Type.Object({
|
|
|
691
748
|
* One collected item in a `/stream` batch. This is the SERVER-accepted superset:
|
|
692
749
|
* the connector-worker's `ContentItem` sends the plain-content subset (id,
|
|
693
750
|
* payload_text, author/source/score/embedding…), while richer producers (the
|
|
694
|
-
* chrome extension
|
|
695
|
-
* `payload_data
|
|
751
|
+
* chrome extension and media feeds) also send `payload_type` with
|
|
752
|
+
* structured `payload_data` and `attachments`. All are optional
|
|
696
753
|
* so a bare content item still validates.
|
|
697
754
|
*/
|
|
698
755
|
exports.ContentItemSchema = typebox_1.Type.Object({
|
|
@@ -701,13 +758,11 @@ exports.ContentItemSchema = typebox_1.Type.Object({
|
|
|
701
758
|
payload_type: typebox_1.Type.Optional(typebox_1.Type.Union([
|
|
702
759
|
typebox_1.Type.Literal("text"),
|
|
703
760
|
typebox_1.Type.Literal("markdown"),
|
|
704
|
-
typebox_1.Type.Literal("json_template"),
|
|
705
761
|
typebox_1.Type.Literal("media"),
|
|
706
762
|
typebox_1.Type.Literal("empty"),
|
|
707
763
|
])),
|
|
708
764
|
payload_text: typebox_1.Type.String(),
|
|
709
765
|
payload_data: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown())),
|
|
710
|
-
payload_template: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown()), typebox_1.Type.Null()])),
|
|
711
766
|
attachments: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.Unknown())),
|
|
712
767
|
author_name: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
713
768
|
occurred_at: typebox_1.Type.String(),
|
|
@@ -1102,6 +1157,15 @@ exports.HeartbeatRequestSchema = typebox_1.Type.Object({
|
|
|
1102
1157
|
*/
|
|
1103
1158
|
turn_tool_events: typebox_1.Type.Optional(typebox_1.Type.Array(exports.TurnToolEventSchema, { maxItems: exports.TURN_TOOL_EVENT_QUEUE_MAX })),
|
|
1104
1159
|
});
|
|
1160
|
+
/**
|
|
1161
|
+
* Request the gateway delegate a native device operation on behalf of a
|
|
1162
|
+
* running connector action. Scoped to the parent run's live claim.
|
|
1163
|
+
*/
|
|
1164
|
+
exports.ExecuteConnectorOperationRequestSchema = typebox_1.Type.Object({
|
|
1165
|
+
parent_run_id: typebox_1.Type.Integer({ minimum: 1 }),
|
|
1166
|
+
worker_id: typebox_1.Type.String({ minLength: 1 }),
|
|
1167
|
+
request: manage_operations_1.ConnectorOperationRequestSchema,
|
|
1168
|
+
}, { additionalProperties: false });
|
|
1105
1169
|
/**
|
|
1106
1170
|
* Request the gateway dispatch a chrome connector action on behalf of a
|
|
1107
1171
|
* running sync. Scoped to the parent run's org.
|