@lobu/runtime-device 22.0.0 → 24.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 +33 -30
- package/npm-shrinkwrap.json +140 -124
- package/package.json +2 -1
- package/vendor/cli/dist/bundled-skills/lobu/SKILL.md +74 -1
- 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 +25 -97
- package/vendor/cli/dist/config/define.d.ts +8 -0
- package/vendor/cli/dist/connectors/README.md +15 -2
- package/vendor/cli/dist/connectors/google_gmail.ts +1 -0
- package/vendor/cli/dist/connectors/jira-helpers.ts +313 -0
- package/vendor/cli/dist/connectors/jira.ts +29 -221
- package/vendor/cli/dist/connectors/linkedin-browser-script.ts +13 -0
- package/vendor/cli/dist/connectors/linkedin-draft-page.js +104 -0
- package/vendor/cli/dist/connectors/linkedin-drafts.ts +73 -0
- package/vendor/cli/dist/connectors/linkedin-identity.ts +32 -0
- package/vendor/cli/dist/connectors/linkedin-inbox-adapter.js +1182 -0
- package/vendor/cli/dist/connectors/linkedin-inbox.ts +156 -0
- package/vendor/cli/dist/connectors/linkedin-like.ts +114 -0
- package/vendor/cli/dist/connectors/linkedin-takeout.ts +577 -0
- package/vendor/cli/dist/connectors/linkedin.ts +4017 -0
- package/vendor/cli/dist/connectors/reddit.ts +92 -20
- package/vendor/cli/dist/connectors/slack.ts +1 -0
- package/vendor/cli/dist/connectors/takeout-utils.ts +240 -0
- package/vendor/cli/dist/connectors/tiktok-inbox-page.js +9 -9
- package/vendor/cli/dist/connectors/tiktok-web-page.js +21 -15
- package/vendor/cli/dist/connectors/tiktok_web.ts +63 -30
- package/vendor/cli/dist/connectors/whatsapp-web-adapter.js +104 -574
- package/vendor/cli/dist/connectors/whatsapp-web-helpers.ts +30 -444
- package/vendor/cli/dist/connectors/whatsapp-web-identity.ts +20 -6
- package/vendor/cli/dist/connectors/whatsapp_web.ts +46 -646
- package/vendor/cli/dist/connectors/x-dm-adapter.js +556 -0
- package/vendor/cli/dist/connectors/x-identity.ts +33 -2
- package/vendor/cli/dist/connectors/x.ts +266 -120
- package/vendor/cli/dist/runtime-components.json +4 -4
- package/vendor/cli/dist/templates/AGENTS.md.tmpl +12 -5
- package/vendor/cli/package.json +1 -1
- package/vendor/connector-sdk/dist/browser-handoff-banner.d.ts +39 -0
- package/vendor/connector-sdk/dist/browser-handoff-banner.js +175 -0
- package/vendor/connector-sdk/dist/browser-source-read.d.ts +52 -0
- package/vendor/connector-sdk/dist/browser-source-read.js +107 -0
- package/vendor/connector-sdk/dist/connector-types.d.ts +10 -0
- package/vendor/connector-sdk/dist/index.d.ts +3 -0
- package/vendor/connector-sdk/dist/index.js +2 -0
- package/vendor/connector-sdk/package.json +9 -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 +49 -8
- package/vendor/connector-worker/dist/agent-turn/guest.bundle.js +650 -448
- 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.d.ts +4 -11
- package/vendor/connector-worker/dist/daemon/automation.js +26 -21
- package/vendor/connector-worker/dist/daemon/client.d.ts +2 -4
- package/vendor/connector-worker/dist/daemon/client.js +0 -3
- package/vendor/connector-worker/dist/daemon/executor.js +0 -3
- package/vendor/connector-worker/dist/daemon/mac-device-daemon.d.ts +4 -3
- package/vendor/connector-worker/dist/daemon/mac-device-daemon.js +4 -10
- package/vendor/connector-worker/dist/daemon/native-bridge/executor.js +27 -25
- package/vendor/connector-worker/dist/daemon/start.js +3 -15
- package/vendor/connector-worker/dist/daemon/terminal-failure.js +0 -11
- package/vendor/connector-worker/dist/daemon/worker-id.d.ts +17 -0
- package/vendor/connector-worker/dist/daemon/worker-id.js +22 -0
- package/vendor/connector-worker/dist/isolate/prelude.js +93 -44
- package/vendor/connector-worker/dist/mac-device-daemon.js +14 -26
- 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/capabilities.d.ts +1 -1
- package/vendor/core/dist/capabilities.js +0 -1
- package/vendor/core/dist/connector-query-errors.d.ts +32 -0
- package/vendor/core/dist/connector-query-errors.js +41 -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-conversations.js +2 -2
- package/vendor/core/dist/contracts/tools/manage-feeds.d.ts +14 -0
- package/vendor/core/dist/contracts/tools/manage-feeds.js +17 -0
- 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/worker/protocol.d.ts +47 -133
- package/vendor/core/dist/contracts/worker/protocol.js +33 -62
- package/vendor/core/dist/device-pin-tombstones.d.ts +44 -0
- package/vendor/core/dist/device-pin-tombstones.js +57 -0
- package/vendor/core/dist/index.d.ts +3 -2
- package/vendor/core/dist/index.js +3 -1
- package/vendor/core/dist/logger.js +10 -25
- 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/dist/utils/diagnostic-scrubber.js +258 -21
- package/vendor/core/dist/worker/wire.d.ts +0 -10
- package/vendor/core/package.json +16 -10
- 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/connector-worker/dist/daemon/device-chat.d.ts +0 -9
- package/vendor/connector-worker/dist/daemon/device-chat.js +0 -61
- package/vendor/core/dist/contracts/worker/device-chat.d.ts +0 -4
- package/vendor/core/dist/contracts/worker/device-chat.js +0 -26
- /package/vendor/postgres/{.bun-tag-f39dafdb2305d504 → .bun-tag-2f292c6554a8475e} +0 -0
|
@@ -1,50 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isEventAttachment = isEventAttachment;
|
|
4
|
-
exports.
|
|
5
|
-
exports.matchesType = matchesType;
|
|
4
|
+
exports.matchesCollection = matchesCollection;
|
|
6
5
|
exports.matchesRecord = matchesRecord;
|
|
7
6
|
exports.hasWorkspaceAttachment = hasWorkspaceAttachment;
|
|
8
7
|
exports.eventAttachmentsFor = eventAttachmentsFor;
|
|
9
8
|
const collection_selection_1 = require("./collection-selection");
|
|
10
|
-
/** An event's type qualifies its linked entities; it never names a page tab. */
|
|
11
9
|
function isEventAttachment(attachment) {
|
|
12
|
-
return
|
|
10
|
+
return "event" in attachment;
|
|
13
11
|
}
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
/** A tab on the type's list page, when the list's selection implies `when`. */
|
|
13
|
+
function matchesCollection(attachment, typeSlug, selection = {}) {
|
|
14
|
+
return ("collection" in attachment &&
|
|
15
|
+
attachment.collection === typeSlug &&
|
|
16
|
+
(!attachment.when || (0, collection_selection_1.selectionImplies)(selection, attachment.when)));
|
|
16
17
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
attachment.
|
|
21
|
-
attachment.
|
|
22
|
-
(!attachment.when || (0, collection_selection_1.selectionImplies)(selection, attachment.when)) &&
|
|
23
|
-
(attachment.placement ?? "tab") === placement);
|
|
24
|
-
}
|
|
25
|
-
function matchesRecord(attachment, record, placement) {
|
|
26
|
-
if (isEventAttachment(attachment))
|
|
27
|
-
return false;
|
|
28
|
-
if ((attachment.placement ?? "tab") !== placement)
|
|
29
|
-
return false;
|
|
30
|
-
if ("entity" in attachment) {
|
|
31
|
-
return typeof attachment.entity === "number"
|
|
32
|
-
? attachment.entity === record.id
|
|
33
|
-
: record.parentId === null && attachment.entity === record.slug;
|
|
34
|
-
}
|
|
35
|
-
return ("type" in attachment &&
|
|
36
|
-
attachment.type === record.type &&
|
|
37
|
-
attachment.surface !== "collection");
|
|
18
|
+
/** A card on the record's page: every record of the type, or one pinned id. */
|
|
19
|
+
function matchesRecord(attachment, record) {
|
|
20
|
+
return ("record" in attachment &&
|
|
21
|
+
attachment.record === record.type &&
|
|
22
|
+
(attachment.id === undefined || attachment.id === record.id));
|
|
38
23
|
}
|
|
39
24
|
function hasWorkspaceAttachment(attach) {
|
|
40
|
-
return attach.some((attachment) =>
|
|
41
|
-
"workspace" in attachment &&
|
|
42
|
-
attachment.workspace === true);
|
|
25
|
+
return attach.some((attachment) => "workspace" in attachment);
|
|
43
26
|
}
|
|
44
27
|
/** Without a kind, the web host considers every event attachment a candidate. */
|
|
45
28
|
function eventAttachmentsFor(attach, semanticType) {
|
|
46
29
|
return attach
|
|
47
30
|
.filter(isEventAttachment)
|
|
48
|
-
.filter((attachment) => semanticType === undefined || attachment.
|
|
31
|
+
.filter((attachment) => semanticType === undefined || attachment.event === semanticType);
|
|
49
32
|
}
|
|
50
33
|
//# sourceMappingURL=view-attach.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ViewActionDecl, type ViewAttachment, type ViewParamDecl } from "./manage-views";
|
|
2
|
+
/** A view's declaration with its defaults applied: what the server stores and
|
|
3
|
+
* what the CLI hashes, so both derive it from the same function. */
|
|
4
|
+
export interface ViewDefinitionRecord {
|
|
5
|
+
key: string;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
attach: ViewAttachment[];
|
|
9
|
+
params: Record<string, ViewParamDecl>;
|
|
10
|
+
actions: Record<string, ViewActionDecl>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Read `export const view = defineView({...})` out of a view module, without
|
|
14
|
+
* running it. `js` is the module with TypeScript and JSX already stripped
|
|
15
|
+
* (esbuild `transform`); the argument must be a plain literal (objects,
|
|
16
|
+
* arrays, strings, numbers, booleans, null), so a declaration is data the
|
|
17
|
+
* server can read safely from any author's source. Throws an Error whose
|
|
18
|
+
* message names what to fix.
|
|
19
|
+
*/
|
|
20
|
+
export declare function readViewDefinition(js: string): ViewDefinitionRecord;
|
|
21
|
+
//# sourceMappingURL=view-definition.d.ts.map
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.readViewDefinition = readViewDefinition;
|
|
4
|
+
const value_1 = require("@sinclair/typebox/value");
|
|
5
|
+
const acorn_1 = require("acorn");
|
|
6
|
+
const manage_views_1 = require("./manage-views");
|
|
7
|
+
const VIEWS_PACKAGE = "@lobu/views";
|
|
8
|
+
/**
|
|
9
|
+
* Read `export const view = defineView({...})` out of a view module, without
|
|
10
|
+
* running it. `js` is the module with TypeScript and JSX already stripped
|
|
11
|
+
* (esbuild `transform`); the argument must be a plain literal (objects,
|
|
12
|
+
* arrays, strings, numbers, booleans, null), so a declaration is data the
|
|
13
|
+
* server can read safely from any author's source. Throws an Error whose
|
|
14
|
+
* message names what to fix.
|
|
15
|
+
*/
|
|
16
|
+
function readViewDefinition(js) {
|
|
17
|
+
let program;
|
|
18
|
+
try {
|
|
19
|
+
program = (0, acorn_1.parse)(js, {
|
|
20
|
+
ecmaVersion: "latest",
|
|
21
|
+
sourceType: "module",
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
catch (error) {
|
|
25
|
+
throw new Error(`view module does not parse: ${error.message}`);
|
|
26
|
+
}
|
|
27
|
+
const callee = defineViewLocalName(program.body);
|
|
28
|
+
const argument = callee ? viewExportArgument(program.body, callee) : null;
|
|
29
|
+
if (!argument) {
|
|
30
|
+
throw new Error(`the module must export const view = defineView({ key, attach, ... }) with defineView imported from "${VIEWS_PACKAGE}"`);
|
|
31
|
+
}
|
|
32
|
+
if (!hasDefaultExport(program.body)) {
|
|
33
|
+
throw new Error("the module must have a default-export component");
|
|
34
|
+
}
|
|
35
|
+
const raw = literalValue(argument, "defineView");
|
|
36
|
+
if (!value_1.Value.Check(manage_views_1.ViewDefinitionSchema, raw)) {
|
|
37
|
+
const first = value_1.Value.Errors(manage_views_1.ViewDefinitionSchema, raw).First();
|
|
38
|
+
const at = first?.path
|
|
39
|
+
? `defineView${first.path.split("/").join(".")}`
|
|
40
|
+
: "defineView";
|
|
41
|
+
// A union (an attach entry) names the shapes it accepts, not "Expected
|
|
42
|
+
// union value".
|
|
43
|
+
const schema = first?.schema;
|
|
44
|
+
const message = schema?.anyOf && schema.description
|
|
45
|
+
? `Expected ${schema.description}`
|
|
46
|
+
: (first?.message ?? "invalid view definition");
|
|
47
|
+
throw new Error(`${at}: ${message}`);
|
|
48
|
+
}
|
|
49
|
+
const def = raw;
|
|
50
|
+
return {
|
|
51
|
+
key: def.key,
|
|
52
|
+
name: def.name?.trim() ? def.name : def.key,
|
|
53
|
+
description: def.description ?? "",
|
|
54
|
+
attach: def.attach,
|
|
55
|
+
params: def.params ?? {},
|
|
56
|
+
actions: def.actions ?? {},
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function defineViewLocalName(body) {
|
|
60
|
+
for (const statement of body) {
|
|
61
|
+
if (statement.type !== "ImportDeclaration")
|
|
62
|
+
continue;
|
|
63
|
+
if (statement.source.value !== VIEWS_PACKAGE)
|
|
64
|
+
continue;
|
|
65
|
+
for (const spec of statement.specifiers) {
|
|
66
|
+
if (spec.type !== "ImportSpecifier")
|
|
67
|
+
continue;
|
|
68
|
+
const imported = spec.imported;
|
|
69
|
+
if (imported.name === "defineView" || imported.value === "defineView") {
|
|
70
|
+
return spec.local.name;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
function hasDefaultExport(body) {
|
|
77
|
+
return body.some((statement) => statement.type === "ExportDefaultDeclaration" ||
|
|
78
|
+
(statement.type === "ExportNamedDeclaration" &&
|
|
79
|
+
(statement.specifiers ?? []).some((spec) => spec.exported.name === "default")));
|
|
80
|
+
}
|
|
81
|
+
function viewExportArgument(body, callee) {
|
|
82
|
+
for (const statement of body) {
|
|
83
|
+
if (statement.type !== "ExportNamedDeclaration")
|
|
84
|
+
continue;
|
|
85
|
+
const declaration = statement.declaration;
|
|
86
|
+
if (declaration?.type !== "VariableDeclaration")
|
|
87
|
+
continue;
|
|
88
|
+
for (const declarator of declaration.declarations) {
|
|
89
|
+
if (declarator.id.name !== "view")
|
|
90
|
+
continue;
|
|
91
|
+
const init = declarator.init;
|
|
92
|
+
const args = init?.arguments;
|
|
93
|
+
if (init?.type === "CallExpression" &&
|
|
94
|
+
init.callee.type === "Identifier" &&
|
|
95
|
+
init.callee.name === callee &&
|
|
96
|
+
args?.length === 1) {
|
|
97
|
+
return args[0] ?? null;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
return null;
|
|
102
|
+
}
|
|
103
|
+
function literalValue(node, path) {
|
|
104
|
+
switch (node.type) {
|
|
105
|
+
case "ObjectExpression": {
|
|
106
|
+
const out = {};
|
|
107
|
+
for (const prop of node.properties) {
|
|
108
|
+
if (prop.type !== "Property" ||
|
|
109
|
+
prop.kind !== "init" ||
|
|
110
|
+
prop.computed ||
|
|
111
|
+
prop.method ||
|
|
112
|
+
prop.shorthand) {
|
|
113
|
+
throw notLiteral(path, "a spread, shorthand, method or computed key");
|
|
114
|
+
}
|
|
115
|
+
const keyNode = prop.key;
|
|
116
|
+
const key = keyNode.type === "Identifier"
|
|
117
|
+
? keyNode.name
|
|
118
|
+
: typeof keyNode.value === "string" ||
|
|
119
|
+
typeof keyNode.value === "number"
|
|
120
|
+
? String(keyNode.value)
|
|
121
|
+
: null;
|
|
122
|
+
if (key === null || key === "__proto__") {
|
|
123
|
+
throw notLiteral(path, "an unsupported key");
|
|
124
|
+
}
|
|
125
|
+
out[key] = literalValue(prop.value, `${path}.${key}`);
|
|
126
|
+
}
|
|
127
|
+
return out;
|
|
128
|
+
}
|
|
129
|
+
case "ArrayExpression":
|
|
130
|
+
return node.elements.map((element, index) => {
|
|
131
|
+
if (!element || element.type === "SpreadElement") {
|
|
132
|
+
throw notLiteral(`${path}[${index}]`, "a hole or spread");
|
|
133
|
+
}
|
|
134
|
+
return literalValue(element, `${path}[${index}]`);
|
|
135
|
+
});
|
|
136
|
+
case "Literal":
|
|
137
|
+
if (node.regex || node.bigint !== undefined) {
|
|
138
|
+
throw notLiteral(path, "a regular expression or bigint");
|
|
139
|
+
}
|
|
140
|
+
return node.value;
|
|
141
|
+
case "UnaryExpression": {
|
|
142
|
+
const argument = node.argument;
|
|
143
|
+
if (node.operator === "-" &&
|
|
144
|
+
argument.type === "Literal" &&
|
|
145
|
+
typeof argument.value === "number") {
|
|
146
|
+
return -argument.value;
|
|
147
|
+
}
|
|
148
|
+
throw notLiteral(path, `the expression \`${node.operator}…\``);
|
|
149
|
+
}
|
|
150
|
+
case "TemplateLiteral":
|
|
151
|
+
if (node.expressions.length === 0) {
|
|
152
|
+
return (node.quasis[0]?.value)
|
|
153
|
+
.cooked;
|
|
154
|
+
}
|
|
155
|
+
throw notLiteral(path, "a template with ${…}");
|
|
156
|
+
default:
|
|
157
|
+
throw notLiteral(path, node.type === "Identifier"
|
|
158
|
+
? `the variable \`${node.name}\``
|
|
159
|
+
: `a ${node.type}`);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
function notLiteral(path, found) {
|
|
163
|
+
return new Error(`${path} must be written out as a literal (objects, arrays, strings, numbers, booleans, null); found ${found}`);
|
|
164
|
+
}
|
|
165
|
+
//# sourceMappingURL=view-definition.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Single source of truth for the device/connector-worker job protocol:
|
|
5
5
|
* `POST /api/workers/poll`, `/api/workers/complete`, `/complete-action`,
|
|
6
|
-
* `/complete-embeddings`, `/complete-automation`, `/complete-
|
|
6
|
+
* `/complete-embeddings`, `/complete-automation`, `/complete-agent-turn`,
|
|
7
7
|
* `/emit-auth-artifact`, `/poll-auth-signal`, `/stream`, and the chrome-action
|
|
8
8
|
* dispatch.
|
|
9
9
|
*
|
|
@@ -60,7 +60,7 @@ export interface ConnectorHttpResponse {
|
|
|
60
60
|
body: string;
|
|
61
61
|
}
|
|
62
62
|
/** Run kinds the poller can hand back. */
|
|
63
|
-
export declare const RunTypeSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"sync">, import("@sinclair/typebox").TLiteral<"action">, import("@sinclair/typebox").TLiteral<"automation">, import("@sinclair/typebox").TLiteral<"
|
|
63
|
+
export declare const RunTypeSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"sync">, import("@sinclair/typebox").TLiteral<"action">, import("@sinclair/typebox").TLiteral<"automation">, import("@sinclair/typebox").TLiteral<"embed_backfill">, import("@sinclair/typebox").TLiteral<"auth">, import("@sinclair/typebox").TLiteral<"agent_turn">]>;
|
|
64
64
|
/** Categorized run exit reason on the failed-run path. */
|
|
65
65
|
export declare const WorkerExitReasonSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ok">, import("@sinclair/typebox").TLiteral<"cancelled">, import("@sinclair/typebox").TLiteral<"error_message">, import("@sinclair/typebox").TLiteral<"timeout">, import("@sinclair/typebox").TLiteral<"oom">, import("@sinclair/typebox").TLiteral<"crash">]>;
|
|
66
66
|
/**
|
|
@@ -261,7 +261,7 @@ export declare const AutomationPollEventSchema: import("@sinclair/typebox").TObj
|
|
|
261
261
|
fired_at: import("@sinclair/typebox").TString;
|
|
262
262
|
payload: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
263
263
|
}>;
|
|
264
|
-
/** Identity context for a device-local CLI run
|
|
264
|
+
/** Identity context for a device-local Automation CLI run. */
|
|
265
265
|
export declare const AutomationPollContextSchema: import("@sinclair/typebox").TObject<{
|
|
266
266
|
device: import("@sinclair/typebox").TObject<{
|
|
267
267
|
worker_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -327,66 +327,6 @@ export declare const AutomationPollPayloadSchema: import("@sinclair/typebox").TO
|
|
|
327
327
|
}>>;
|
|
328
328
|
}>;
|
|
329
329
|
}>;
|
|
330
|
-
/** One bounded prior turn shipped to a stateless device CLI. */
|
|
331
|
-
export declare const DeviceChatHistoryMessageSchema: import("@sinclair/typebox").TObject<{
|
|
332
|
-
role: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"user">, import("@sinclair/typebox").TLiteral<"assistant">]>;
|
|
333
|
-
content: import("@sinclair/typebox").TString;
|
|
334
|
-
}>;
|
|
335
|
-
/**
|
|
336
|
-
* Cap on the device chat envelope's `ephemeral_context`. Exported because the
|
|
337
|
-
* producer must agree with it BEFORE enqueueing: the server-side planner keeps
|
|
338
|
-
* an Automation whose composed instructions exceed this bound on the durable
|
|
339
|
-
* background lane rather than shipping a device turn the poll route would
|
|
340
|
-
* silently truncate.
|
|
341
|
-
*/
|
|
342
|
-
export declare const DEVICE_CHAT_MAX_CONTEXT_LENGTH = 2048;
|
|
343
|
-
/** Device-local chat execution metadata. Conversation ownership stays with `agent.id`. */
|
|
344
|
-
export declare const DeviceChatPollPayloadSchema: import("@sinclair/typebox").TObject<{
|
|
345
|
-
chat: import("@sinclair/typebox").TObject<{
|
|
346
|
-
agent_kind: import("@sinclair/typebox").TString;
|
|
347
|
-
execution_config: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
348
|
-
/** Wall-clock cap in seconds; the dispatcher enforces it by SIGTERM. */
|
|
349
|
-
timeout_seconds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
350
|
-
/** Per-run dollar ceiling (claude-only today). */
|
|
351
|
-
max_budget_usd: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
352
|
-
/** Model alias/id (`--model` / `-m`). */
|
|
353
|
-
model: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
354
|
-
/** Tool permission mode (`--permission-mode`). */
|
|
355
|
-
permission_mode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
356
|
-
/** Reasoning effort accepted by the selected CLI and model. */
|
|
357
|
-
effort: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
358
|
-
}>>;
|
|
359
|
-
message: import("@sinclair/typebox").TString;
|
|
360
|
-
ephemeral_context: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
361
|
-
history: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
362
|
-
role: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"user">, import("@sinclair/typebox").TLiteral<"assistant">]>;
|
|
363
|
-
content: import("@sinclair/typebox").TString;
|
|
364
|
-
}>>;
|
|
365
|
-
agent: import("@sinclair/typebox").TObject<{
|
|
366
|
-
id: import("@sinclair/typebox").TString;
|
|
367
|
-
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
368
|
-
identity_md: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
369
|
-
soul_md: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
370
|
-
user_md: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
371
|
-
}>;
|
|
372
|
-
}>;
|
|
373
|
-
context: import("@sinclair/typebox").TObject<{
|
|
374
|
-
device: import("@sinclair/typebox").TObject<{
|
|
375
|
-
worker_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
376
|
-
}>;
|
|
377
|
-
user: import("@sinclair/typebox").TObject<{
|
|
378
|
-
user_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
379
|
-
}>;
|
|
380
|
-
agent_session: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
381
|
-
conversation_id: import("@sinclair/typebox").TString;
|
|
382
|
-
mcp_url: import("@sinclair/typebox").TString;
|
|
383
|
-
token: import("@sinclair/typebox").TString;
|
|
384
|
-
expires_at: import("@sinclair/typebox").TNumber;
|
|
385
|
-
/** Exact same-device ACP session to continue; never discovered by listing sessions. */
|
|
386
|
-
resume_session_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
387
|
-
}>>;
|
|
388
|
-
}>;
|
|
389
|
-
}>;
|
|
390
330
|
export declare const AgentTurnPollPayloadSchema: import("@sinclair/typebox").TObject<{
|
|
391
331
|
turn: import("@sinclair/typebox").TObject<{
|
|
392
332
|
agent_id: import("@sinclair/typebox").TString;
|
|
@@ -502,6 +442,14 @@ export declare const AgentTurnPollPayloadSchema: import("@sinclair/typebox").TOb
|
|
|
502
442
|
* stays off unless the caller explicitly requests an effort level.
|
|
503
443
|
*/
|
|
504
444
|
reasoning: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
445
|
+
/**
|
|
446
|
+
* pi-ai's `Model.thinkingLevelMap`: the provider's name for each
|
|
447
|
+
* thinking level, `null` where the model does not serve that level.
|
|
448
|
+
* gpt-5-mini maps `off` to `null` because it cannot turn reasoning off;
|
|
449
|
+
* without the map pi-ai sends `effort: "none"` and OpenAI rejects it.
|
|
450
|
+
* Absent → pi-ai's own defaults.
|
|
451
|
+
*/
|
|
452
|
+
thinking_level_map: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>>;
|
|
505
453
|
/**
|
|
506
454
|
* The modalities this model accepts, in pi-ai's own `Model.input`
|
|
507
455
|
* vocabulary and resolved from pi-ai's model registry — NOT guessed
|
|
@@ -549,7 +497,7 @@ export declare const AgentTurnPollPayloadSchema: import("@sinclair/typebox").TOb
|
|
|
549
497
|
}>>;
|
|
550
498
|
/**
|
|
551
499
|
* The gateway tools available for this turn, by NAME only —
|
|
552
|
-
* `ask_user`, `send_message
|
|
500
|
+
* `ask_user`, `send_message` and the rest of
|
|
553
501
|
* `@lobu/plugin-conversations`. The guest runs that package's own
|
|
554
502
|
* implementation, so the route, the request body and the schema live
|
|
555
503
|
* there and never on this wire; sending a name the package does not
|
|
@@ -581,6 +529,12 @@ export declare const AgentTurnPollPayloadSchema: import("@sinclair/typebox").TOb
|
|
|
581
529
|
conversation_id: import("@sinclair/typebox").TString;
|
|
582
530
|
platform: import("@sinclair/typebox").TString;
|
|
583
531
|
}>>;
|
|
532
|
+
/**
|
|
533
|
+
* Ask the turn's own model for follow-up chips after it answers and
|
|
534
|
+
* return them with the completion. Set by the gateway only for a
|
|
535
|
+
* human-facing turn; absent → no chips.
|
|
536
|
+
*/
|
|
537
|
+
follow_ups: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<true>>;
|
|
584
538
|
}>>;
|
|
585
539
|
/**
|
|
586
540
|
* Long-term memory for this turn: `@lobu/plugin-memory`'s recall hook
|
|
@@ -700,7 +654,7 @@ export declare const PollResponseSchema: import("@sinclair/typebox").TObject<{
|
|
|
700
654
|
urls: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
701
655
|
}>>>;
|
|
702
656
|
run_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
703
|
-
run_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"sync">, import("@sinclair/typebox").TLiteral<"action">, import("@sinclair/typebox").TLiteral<"automation">, import("@sinclair/typebox").TLiteral<"
|
|
657
|
+
run_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"sync">, import("@sinclair/typebox").TLiteral<"action">, import("@sinclair/typebox").TLiteral<"automation">, import("@sinclair/typebox").TLiteral<"embed_backfill">, import("@sinclair/typebox").TLiteral<"auth">, import("@sinclair/typebox").TLiteral<"agent_turn">]>>;
|
|
704
658
|
auth_profile_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
705
659
|
previous_credentials: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TNull]>>;
|
|
706
660
|
connector_key: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -749,9 +703,9 @@ export declare const PollResponseSchema: import("@sinclair/typebox").TObject<{
|
|
|
749
703
|
/** Owning org of a claimed device-local CLI run. */
|
|
750
704
|
organization_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
751
705
|
/**
|
|
752
|
-
*
|
|
753
|
-
* gateway composes the prompt context and the
|
|
754
|
-
* matching completion endpoint. No connector code
|
|
706
|
+
* Envelope for an `automation` run (a device-local CLI) or an `agent_turn`
|
|
707
|
+
* run. The gateway composes the prompt context and the worker reports
|
|
708
|
+
* through the matching completion endpoint. No connector code is shipped.
|
|
755
709
|
*/
|
|
756
710
|
payload: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
757
711
|
automation: import("@sinclair/typebox").TObject<{
|
|
@@ -795,51 +749,6 @@ export declare const PollResponseSchema: import("@sinclair/typebox").TObject<{
|
|
|
795
749
|
resume_session_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
796
750
|
}>>;
|
|
797
751
|
}>;
|
|
798
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
799
|
-
chat: import("@sinclair/typebox").TObject<{
|
|
800
|
-
agent_kind: import("@sinclair/typebox").TString;
|
|
801
|
-
execution_config: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
802
|
-
/** Wall-clock cap in seconds; the dispatcher enforces it by SIGTERM. */
|
|
803
|
-
timeout_seconds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
804
|
-
/** Per-run dollar ceiling (claude-only today). */
|
|
805
|
-
max_budget_usd: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
806
|
-
/** Model alias/id (`--model` / `-m`). */
|
|
807
|
-
model: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
808
|
-
/** Tool permission mode (`--permission-mode`). */
|
|
809
|
-
permission_mode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
810
|
-
/** Reasoning effort accepted by the selected CLI and model. */
|
|
811
|
-
effort: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
812
|
-
}>>;
|
|
813
|
-
message: import("@sinclair/typebox").TString;
|
|
814
|
-
ephemeral_context: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
815
|
-
history: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
816
|
-
role: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"user">, import("@sinclair/typebox").TLiteral<"assistant">]>;
|
|
817
|
-
content: import("@sinclair/typebox").TString;
|
|
818
|
-
}>>;
|
|
819
|
-
agent: import("@sinclair/typebox").TObject<{
|
|
820
|
-
id: import("@sinclair/typebox").TString;
|
|
821
|
-
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
822
|
-
identity_md: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
823
|
-
soul_md: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
824
|
-
user_md: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
825
|
-
}>;
|
|
826
|
-
}>;
|
|
827
|
-
context: import("@sinclair/typebox").TObject<{
|
|
828
|
-
device: import("@sinclair/typebox").TObject<{
|
|
829
|
-
worker_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
830
|
-
}>;
|
|
831
|
-
user: import("@sinclair/typebox").TObject<{
|
|
832
|
-
user_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
833
|
-
}>;
|
|
834
|
-
agent_session: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
835
|
-
conversation_id: import("@sinclair/typebox").TString;
|
|
836
|
-
mcp_url: import("@sinclair/typebox").TString;
|
|
837
|
-
token: import("@sinclair/typebox").TString;
|
|
838
|
-
expires_at: import("@sinclair/typebox").TNumber;
|
|
839
|
-
/** Exact same-device ACP session to continue; never discovered by listing sessions. */
|
|
840
|
-
resume_session_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
841
|
-
}>>;
|
|
842
|
-
}>;
|
|
843
752
|
}>, import("@sinclair/typebox").TObject<{
|
|
844
753
|
turn: import("@sinclair/typebox").TObject<{
|
|
845
754
|
agent_id: import("@sinclair/typebox").TString;
|
|
@@ -955,6 +864,14 @@ export declare const PollResponseSchema: import("@sinclair/typebox").TObject<{
|
|
|
955
864
|
* stays off unless the caller explicitly requests an effort level.
|
|
956
865
|
*/
|
|
957
866
|
reasoning: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
867
|
+
/**
|
|
868
|
+
* pi-ai's `Model.thinkingLevelMap`: the provider's name for each
|
|
869
|
+
* thinking level, `null` where the model does not serve that level.
|
|
870
|
+
* gpt-5-mini maps `off` to `null` because it cannot turn reasoning off;
|
|
871
|
+
* without the map pi-ai sends `effort: "none"` and OpenAI rejects it.
|
|
872
|
+
* Absent → pi-ai's own defaults.
|
|
873
|
+
*/
|
|
874
|
+
thinking_level_map: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>>;
|
|
958
875
|
/**
|
|
959
876
|
* The modalities this model accepts, in pi-ai's own `Model.input`
|
|
960
877
|
* vocabulary and resolved from pi-ai's model registry — NOT guessed
|
|
@@ -1002,7 +919,7 @@ export declare const PollResponseSchema: import("@sinclair/typebox").TObject<{
|
|
|
1002
919
|
}>>;
|
|
1003
920
|
/**
|
|
1004
921
|
* The gateway tools available for this turn, by NAME only —
|
|
1005
|
-
* `ask_user`, `send_message
|
|
922
|
+
* `ask_user`, `send_message` and the rest of
|
|
1006
923
|
* `@lobu/plugin-conversations`. The guest runs that package's own
|
|
1007
924
|
* implementation, so the route, the request body and the schema live
|
|
1008
925
|
* there and never on this wire; sending a name the package does not
|
|
@@ -1034,6 +951,12 @@ export declare const PollResponseSchema: import("@sinclair/typebox").TObject<{
|
|
|
1034
951
|
conversation_id: import("@sinclair/typebox").TString;
|
|
1035
952
|
platform: import("@sinclair/typebox").TString;
|
|
1036
953
|
}>>;
|
|
954
|
+
/**
|
|
955
|
+
* Ask the turn's own model for follow-up chips after it answers and
|
|
956
|
+
* return them with the completion. Set by the gateway only for a
|
|
957
|
+
* human-facing turn; absent → no chips.
|
|
958
|
+
*/
|
|
959
|
+
follow_ups: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<true>>;
|
|
1037
960
|
}>>;
|
|
1038
961
|
/**
|
|
1039
962
|
* Long-term memory for this turn: `@lobu/plugin-memory`'s recall hook
|
|
@@ -1224,8 +1147,8 @@ export declare const CompleteAuthRequestSchema: import("@sinclair/typebox").TObj
|
|
|
1224
1147
|
status: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"success">, import("@sinclair/typebox").TLiteral<"failed">]>;
|
|
1225
1148
|
run_id: import("@sinclair/typebox").TInteger;
|
|
1226
1149
|
worker_id: import("@sinclair/typebox").TString;
|
|
1227
|
-
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
1228
1150
|
credentials: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
1151
|
+
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
1229
1152
|
output_tail: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1230
1153
|
exit_code: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
1231
1154
|
exit_signal: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
@@ -1264,20 +1187,6 @@ export declare const CompleteAutomationResponseSchema: import("@sinclair/typebox
|
|
|
1264
1187
|
run_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
1265
1188
|
idempotent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TNull]>>;
|
|
1266
1189
|
}>;
|
|
1267
|
-
/** `POST .../complete-chat` terminal report for a `chat_message` turn. */
|
|
1268
|
-
export declare const CompleteDeviceChatRequestSchema: import("@sinclair/typebox").TObject<{
|
|
1269
|
-
worker_id: import("@sinclair/typebox").TString;
|
|
1270
|
-
output: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1271
|
-
error: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
1272
|
-
exit_code: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
1273
|
-
exit_signal: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
1274
|
-
exit_reason: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ok">, import("@sinclair/typebox").TLiteral<"cancelled">, import("@sinclair/typebox").TLiteral<"error_message">, import("@sinclair/typebox").TLiteral<"timeout">, import("@sinclair/typebox").TLiteral<"oom">, import("@sinclair/typebox").TLiteral<"crash">]>>;
|
|
1275
|
-
}>;
|
|
1276
|
-
export declare const CompleteDeviceChatResponseSchema: import("@sinclair/typebox").TObject<{
|
|
1277
|
-
ok: import("@sinclair/typebox").TBoolean;
|
|
1278
|
-
status: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"completed">, import("@sinclair/typebox").TLiteral<"failed">]>;
|
|
1279
|
-
idempotent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
1280
|
-
}>;
|
|
1281
1190
|
/**
|
|
1282
1191
|
* `POST /api/workers/complete-agent-turn`.
|
|
1283
1192
|
*
|
|
@@ -1406,6 +1315,15 @@ export declare const CompleteAgentTurnRequestSchema: import("@sinclair/typebox")
|
|
|
1406
1315
|
* (`chat-response-bridge`) already acts on it.
|
|
1407
1316
|
*/
|
|
1408
1317
|
replied_in_band: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
1318
|
+
/**
|
|
1319
|
+
* Follow-up chips for the owner's answer, proposed by the same model after it
|
|
1320
|
+
* answered (`tools.follow_ups`). The worker is untrusted, so the completion
|
|
1321
|
+
* route re-sanitizes them; the gateway delivers them with the reply.
|
|
1322
|
+
*/
|
|
1323
|
+
suggestions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
1324
|
+
title: import("@sinclair/typebox").TString;
|
|
1325
|
+
message: import("@sinclair/typebox").TString;
|
|
1326
|
+
}>>>;
|
|
1409
1327
|
/**
|
|
1410
1328
|
* Tool traces that finished too late to ride a heartbeat, oldest first.
|
|
1411
1329
|
*
|
|
@@ -1638,12 +1556,8 @@ export type AutomationPollMeta = Static<typeof AutomationPollMetaSchema>;
|
|
|
1638
1556
|
export type AutomationPollEvent = Static<typeof AutomationPollEventSchema>;
|
|
1639
1557
|
export type AutomationPollContext = Static<typeof AutomationPollContextSchema>;
|
|
1640
1558
|
export type AutomationPollPayload = Static<typeof AutomationPollPayloadSchema>;
|
|
1641
|
-
export type DeviceChatHistoryMessage = Static<typeof DeviceChatHistoryMessageSchema>;
|
|
1642
|
-
export type DeviceChatPollPayload = Static<typeof DeviceChatPollPayloadSchema>;
|
|
1643
1559
|
export type CompleteAutomationRequest = Static<typeof CompleteAutomationRequestSchema>;
|
|
1644
1560
|
export type CompleteAutomationResponse = Static<typeof CompleteAutomationResponseSchema>;
|
|
1645
|
-
export type CompleteDeviceChatRequest = Static<typeof CompleteDeviceChatRequestSchema>;
|
|
1646
|
-
export type CompleteDeviceChatResponse = Static<typeof CompleteDeviceChatResponseSchema>;
|
|
1647
1561
|
export type AgentTurnPollPayload = Static<typeof AgentTurnPollPayloadSchema>;
|
|
1648
1562
|
export type CompleteAgentTurnRequest = Static<typeof CompleteAgentTurnRequestSchema>;
|
|
1649
1563
|
export type CompleteAgentTurnResponse = Static<typeof CompleteAgentTurnResponseSchema>;
|