@lobu/runtime-device 24.3.0 → 24.5.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 +66 -68
- package/dist/verify.mjs +1 -1
- package/npm-shrinkwrap.json +165 -181
- package/package.json +2 -2
- package/vendor/cli/dist/bundled-skills/lobu/SKILL.md +23 -5
- package/vendor/cli/dist/bundled-skills/lobu-connect/SKILL.md +6 -0
- package/vendor/cli/dist/commands/_lib/apply/apply-cmd.js +20 -13
- package/vendor/cli/dist/commands/_lib/apply/client.d.ts +48 -100
- package/vendor/cli/dist/commands/_lib/apply/client.js +76 -27
- package/vendor/cli/dist/commands/_lib/apply/deployment.js +1 -1
- package/vendor/cli/dist/commands/_lib/apply/desired-state.d.ts +7 -11
- package/vendor/cli/dist/commands/_lib/apply/desired-state.js +9 -40
- package/vendor/cli/dist/commands/_lib/apply/diff.d.ts +4 -4
- package/vendor/cli/dist/commands/_lib/apply/diff.js +37 -33
- package/vendor/cli/dist/commands/_lib/apply/map-config.d.ts +1 -1
- package/vendor/cli/dist/commands/_lib/apply/map-config.js +79 -92
- package/vendor/cli/dist/commands/_lib/apply/shared.d.ts +3 -6
- package/vendor/cli/dist/commands/_lib/apply/shared.js +8 -19
- package/vendor/cli/dist/commands/dev.js +21 -7
- package/vendor/cli/dist/commands/doctor.js +1 -8
- package/vendor/cli/dist/commands/init.js +4 -5
- package/vendor/cli/dist/config/define.d.ts +27 -28
- package/vendor/cli/dist/config/define.js +4 -5
- package/vendor/cli/dist/connectors/postgres.ts +77 -48
- package/vendor/cli/dist/internal/api-client.d.ts +2 -0
- package/vendor/cli/dist/internal/api-client.js +6 -1
- package/vendor/cli/dist/internal/node-binary.d.ts +22 -0
- package/vendor/cli/dist/internal/node-binary.js +73 -0
- package/vendor/cli/dist/internal/node-version.d.ts +7 -12
- package/vendor/cli/dist/internal/node-version.js +16 -20
- package/vendor/cli/dist/runtime-components.json +4 -4
- package/vendor/cli/dist/templates/AGENTS.md.tmpl +2 -2
- package/vendor/cli/package.json +2 -2
- package/vendor/connector-sdk/dist/reaction-client-types.d.ts +8 -2
- package/vendor/connector-sdk/dist/reaction-sdk.d.ts +5 -1
- package/vendor/connector-sdk/package.json +1 -1
- package/vendor/connector-worker/dist/daemon/acp-adapters/claude.js +1 -1
- package/vendor/connector-worker/dist/daemon/agent-turn.js +69 -3
- package/vendor/connector-worker/dist/daemon/client.d.ts +25 -8
- package/vendor/connector-worker/dist/daemon/client.js +32 -4
- package/vendor/connector-worker/dist/daemon/log.js +2 -1
- package/vendor/connector-worker/dist/daemon/mac-device-daemon.js +7 -1
- package/vendor/connector-worker/dist/daemon/poll-loop.d.ts +17 -0
- package/vendor/connector-worker/dist/daemon/poll-loop.js +101 -13
- package/vendor/connector-worker/dist/daemon/resource-admission.d.ts +19 -0
- package/vendor/connector-worker/dist/daemon/resource-admission.js +59 -0
- package/vendor/connector-worker/dist/daemon/resources.d.ts +20 -0
- package/vendor/connector-worker/dist/daemon/resources.js +163 -0
- package/vendor/connector-worker/dist/daemon/start.js +29 -4
- package/vendor/connector-worker/dist/daemon/worker.d.ts +2 -0
- package/vendor/connector-worker/dist/daemon/worker.js +4 -0
- package/vendor/connector-worker/dist/executor/select.d.ts +1 -1
- package/vendor/connector-worker/dist/executor/select.js +1 -1
- package/vendor/connector-worker/dist/isolate/ivm-types.d.ts +1 -2
- package/vendor/connector-worker/dist/isolate/ivm-types.js +1 -2
- package/vendor/connector-worker/dist/isolate/load.d.ts +10 -12
- package/vendor/connector-worker/dist/isolate/load.js +23 -27
- package/vendor/connector-worker/dist/self-check/index.d.ts +2 -2
- package/vendor/connector-worker/dist/self-check/index.js +2 -2
- package/vendor/connector-worker/package.json +3 -4
- package/vendor/core/dist/contracts/agent-settings.d.ts +61 -6
- package/vendor/core/dist/contracts/agent-settings.js +10 -7
- package/vendor/core/dist/contracts/tools/manage-agents.d.ts +473 -98
- package/vendor/core/dist/contracts/tools/manage-agents.js +111 -2
- package/vendor/core/dist/contracts/tools/manage-automations.d.ts +21 -18
- package/vendor/core/dist/contracts/tools/manage-automations.js +15 -15
- package/vendor/core/dist/contracts/tools/manage-entity-schema.js +2 -2
- package/vendor/core/dist/contracts/tools/manage-entity.d.ts +45 -20
- package/vendor/core/dist/contracts/tools/manage-entity.js +17 -5
- package/vendor/core/dist/contracts/tools/manage-inference-providers.d.ts +445 -0
- package/vendor/core/dist/contracts/tools/manage-inference-providers.js +133 -0
- package/vendor/core/dist/contracts/tools/manage-views.d.ts +4 -4
- package/vendor/core/dist/contracts/tools/manage-views.js +5 -3
- package/vendor/core/dist/contracts/worker/device-automation.js +4 -2
- package/vendor/core/dist/error-report.d.ts +73 -0
- package/vendor/core/dist/error-report.js +346 -0
- package/vendor/core/dist/index.d.ts +4 -1
- package/vendor/core/dist/index.js +7 -1
- package/vendor/core/dist/logger.js +15 -6
- package/vendor/core/dist/otel-fetch.d.ts +19 -0
- package/vendor/core/dist/otel-fetch.js +96 -0
- package/vendor/core/dist/otel.d.ts +22 -2
- package/vendor/core/dist/otel.js +95 -48
- package/vendor/core/dist/reserved.d.ts +1 -1
- package/vendor/core/dist/reserved.js +6 -4
- package/vendor/core/dist/tool-result.d.ts +8 -0
- package/vendor/core/dist/tool-result.js +61 -0
- package/vendor/core/dist/trace-context.d.ts +12 -0
- package/vendor/core/dist/trace-context.js +50 -0
- package/vendor/core/dist/utils/diagnostic-scrubber.js +1 -1
- package/vendor/core/dist/worker/auth.js +4 -0
- package/vendor/core/package.json +6 -1
- /package/vendor/cli/dist/vendor/ora/{.bun-tag-fde20e9a6df212fa → .bun-tag-77bb9b258a474a18} +0 -0
- /package/vendor/ora/{.bun-tag-fde20e9a6df212fa → .bun-tag-77bb9b258a474a18} +0 -0
- /package/vendor/postgres/{.bun-tag-22d644c2873790db → .bun-tag-c81dacd34e959a7a} +0 -0
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ManageAgentsSchema = exports.DeleteAgentAction = exports.UpdateAgentAction = exports.CreateAgentAction = exports.GetAgentAction = exports.ListAgentsAction = void 0;
|
|
3
|
+
exports.ManageAgentsResultSchema = exports.ManageAgentsProposalSchema = exports.AgentModelInfoSchema = exports.AgentRecordSchema = exports.ManageAgentsSchema = exports.DeleteAgentAction = exports.UpdateAgentAction = exports.AgentConfigRevisionSchema = exports.CreateAgentAction = exports.GetAgentAction = exports.ListAgentsAction = void 0;
|
|
4
4
|
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
+
const agent_settings_1 = require("../agent-settings");
|
|
6
|
+
// Identity keeps its existing identity_md write spelling. updatedAt is store-owned.
|
|
7
|
+
const AgentSettingsUpdateSchema = typebox_1.Type.Omit(agent_settings_1.AgentSettingsPatchSchema, ["identityMd"], {
|
|
8
|
+
additionalProperties: false,
|
|
9
|
+
description: "Canonical agent settings patch. Omitted keys preserve stored values; supplied settings replace that top-level value. Empty strings/arrays/objects clear where allowed. Identity is written through identity_md.",
|
|
10
|
+
});
|
|
5
11
|
// ============================================
|
|
6
12
|
// Typebox Schema (union of per-action variants)
|
|
7
13
|
// ============================================
|
|
@@ -32,7 +38,7 @@ const AgentFields = {
|
|
|
32
38
|
"x-lobu-field": { store: "column" },
|
|
33
39
|
}),
|
|
34
40
|
default_model: typebox_1.Type.String({
|
|
35
|
-
description: '[create/update] Default model as an explicit "<provider>/<model>" ref (e.g. "anthropic/claude-sonnet-5"). Validated against the org\'s connected providers. Without it the agent inherits the org default model; if the org has none the agent is not runnable. Pass an empty string to clear it and fall back to the org default.',
|
|
41
|
+
description: '[create/update] Default model (updates preserve the existing fallback entries) as an explicit "<provider>/<model>" ref (e.g. "anthropic/claude-sonnet-5"). Validated against the org\'s connected providers. Without it the agent inherits the org default model; if the org has none the agent is not runnable. Pass an empty string to clear it and fall back to the org default.',
|
|
36
42
|
"x-lobu-field": { store: "model", emptyClears: true },
|
|
37
43
|
}),
|
|
38
44
|
};
|
|
@@ -53,6 +59,10 @@ exports.CreateAgentAction = typebox_1.Type.Object({
|
|
|
53
59
|
identity_md: typebox_1.Type.Optional(AgentFields.identity_md),
|
|
54
60
|
default_model: typebox_1.Type.Optional(AgentFields.default_model),
|
|
55
61
|
});
|
|
62
|
+
exports.AgentConfigRevisionSchema = typebox_1.Type.String({
|
|
63
|
+
pattern: "^[a-f0-9]{64}$",
|
|
64
|
+
description: "Opaque agent configuration revision returned by agents.get. A stale expected_revision rejects the entire update with 409 before any write or approval is queued. Omit for an unconditional update.",
|
|
65
|
+
});
|
|
56
66
|
exports.UpdateAgentAction = typebox_1.Type.Object({
|
|
57
67
|
action: typebox_1.Type.Literal("update", {
|
|
58
68
|
description: "Patch agent fields (queued for approval).",
|
|
@@ -62,6 +72,8 @@ exports.UpdateAgentAction = typebox_1.Type.Object({
|
|
|
62
72
|
description: typebox_1.Type.Optional(AgentFields.description),
|
|
63
73
|
identity_md: typebox_1.Type.Optional(AgentFields.identity_md),
|
|
64
74
|
default_model: typebox_1.Type.Optional(AgentFields.default_model),
|
|
75
|
+
settings: typebox_1.Type.Optional(AgentSettingsUpdateSchema),
|
|
76
|
+
expected_revision: typebox_1.Type.Optional(exports.AgentConfigRevisionSchema),
|
|
65
77
|
});
|
|
66
78
|
exports.DeleteAgentAction = typebox_1.Type.Object({
|
|
67
79
|
action: typebox_1.Type.Literal("delete", {
|
|
@@ -76,4 +88,101 @@ exports.ManageAgentsSchema = typebox_1.Type.Union([
|
|
|
76
88
|
exports.UpdateAgentAction,
|
|
77
89
|
exports.DeleteAgentAction,
|
|
78
90
|
]);
|
|
91
|
+
exports.AgentRecordSchema = typebox_1.Type.Object({
|
|
92
|
+
id: typebox_1.Type.String(),
|
|
93
|
+
name: typebox_1.Type.String(),
|
|
94
|
+
description: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()]),
|
|
95
|
+
owner_platform: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()]),
|
|
96
|
+
owner_user_id: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()]),
|
|
97
|
+
created_at: typebox_1.Type.String(),
|
|
98
|
+
last_used_at: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()]),
|
|
99
|
+
});
|
|
100
|
+
exports.AgentModelInfoSchema = typebox_1.Type.Object({
|
|
101
|
+
effective_model: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()], {
|
|
102
|
+
description: "Configured model ref before provider fallback, or null when none resolves.",
|
|
103
|
+
}),
|
|
104
|
+
source: typebox_1.Type.Union([
|
|
105
|
+
typebox_1.Type.Literal("agent"),
|
|
106
|
+
typebox_1.Type.Literal("org_default"),
|
|
107
|
+
typebox_1.Type.Literal("none"),
|
|
108
|
+
]),
|
|
109
|
+
not_runnable: typebox_1.Type.Boolean({
|
|
110
|
+
description: "No model resolves or provider preflight rejects every candidate. False does not guarantee a successful run or describe device-local execution.",
|
|
111
|
+
}),
|
|
112
|
+
});
|
|
113
|
+
const SettingsPreimageSchema = typebox_1.Type.Mapped(typebox_1.Type.KeyOf(AgentSettingsUpdateSchema), (key) => typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Index(AgentSettingsUpdateSchema, key), typebox_1.Type.Null()])));
|
|
114
|
+
const AgentPreimageSchema = typebox_1.Type.Partial(typebox_1.Type.Object({
|
|
115
|
+
name: typebox_1.Type.Union([AgentFields.name, typebox_1.Type.Null()]),
|
|
116
|
+
description: typebox_1.Type.Union([AgentFields.description, typebox_1.Type.Null()]),
|
|
117
|
+
identity_md: typebox_1.Type.Union([AgentFields.identity_md, typebox_1.Type.Null()]),
|
|
118
|
+
default_model: typebox_1.Type.Union([AgentFields.default_model, typebox_1.Type.Null()]),
|
|
119
|
+
settings: SettingsPreimageSchema,
|
|
120
|
+
}));
|
|
121
|
+
/** Proposed mutation held on an approval run. Only touched keys have pre-images. */
|
|
122
|
+
exports.ManageAgentsProposalSchema = typebox_1.Type.Composite([
|
|
123
|
+
typebox_1.Type.Omit(exports.UpdateAgentAction, ["action", "expected_revision"]),
|
|
124
|
+
typebox_1.Type.Object({
|
|
125
|
+
action: typebox_1.Type.Union([
|
|
126
|
+
typebox_1.Type.Literal("create"),
|
|
127
|
+
typebox_1.Type.Literal("update"),
|
|
128
|
+
typebox_1.Type.Literal("delete"),
|
|
129
|
+
]),
|
|
130
|
+
base: typebox_1.Type.Optional(AgentPreimageSchema),
|
|
131
|
+
}),
|
|
132
|
+
]);
|
|
133
|
+
exports.ManageAgentsResultSchema = typebox_1.Type.Union([
|
|
134
|
+
typebox_1.Type.Object({
|
|
135
|
+
action: typebox_1.Type.Literal("list"),
|
|
136
|
+
agents: typebox_1.Type.Array(exports.AgentRecordSchema),
|
|
137
|
+
}),
|
|
138
|
+
typebox_1.Type.Object({
|
|
139
|
+
action: typebox_1.Type.Literal("get"),
|
|
140
|
+
agent: exports.AgentRecordSchema,
|
|
141
|
+
model: exports.AgentModelInfoSchema,
|
|
142
|
+
settings: agent_settings_1.AgentSettingsStoredSchema,
|
|
143
|
+
revision: exports.AgentConfigRevisionSchema,
|
|
144
|
+
}),
|
|
145
|
+
typebox_1.Type.Object({
|
|
146
|
+
action: typebox_1.Type.Literal("create"),
|
|
147
|
+
agent_id: AgentId,
|
|
148
|
+
created: typebox_1.Type.Boolean(),
|
|
149
|
+
model: exports.AgentModelInfoSchema,
|
|
150
|
+
}),
|
|
151
|
+
typebox_1.Type.Object({
|
|
152
|
+
action: typebox_1.Type.Literal("update"),
|
|
153
|
+
agent_id: AgentId,
|
|
154
|
+
updated_fields: typebox_1.Type.Array(typebox_1.Type.String()),
|
|
155
|
+
skipped_fields: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.String(), {
|
|
156
|
+
description: "Fields skipped because they changed since approval was requested.",
|
|
157
|
+
})),
|
|
158
|
+
model: typebox_1.Type.Optional(exports.AgentModelInfoSchema),
|
|
159
|
+
}),
|
|
160
|
+
typebox_1.Type.Object({
|
|
161
|
+
action: typebox_1.Type.Literal("delete"),
|
|
162
|
+
agent_id: AgentId,
|
|
163
|
+
deleted: typebox_1.Type.Boolean(),
|
|
164
|
+
}),
|
|
165
|
+
typebox_1.Type.Object({
|
|
166
|
+
action: typebox_1.Type.Union([
|
|
167
|
+
typebox_1.Type.Literal("create"),
|
|
168
|
+
typebox_1.Type.Literal("update"),
|
|
169
|
+
typebox_1.Type.Literal("delete"),
|
|
170
|
+
]),
|
|
171
|
+
run_id: typebox_1.Type.Number(),
|
|
172
|
+
event_id: typebox_1.Type.Optional(typebox_1.Type.Number()),
|
|
173
|
+
status: typebox_1.Type.Literal("pending_approval"),
|
|
174
|
+
message: typebox_1.Type.String(),
|
|
175
|
+
proposal: exports.ManageAgentsProposalSchema,
|
|
176
|
+
current: typebox_1.Type.Union([
|
|
177
|
+
typebox_1.Type.Partial(typebox_1.Type.Composite([
|
|
178
|
+
exports.AgentRecordSchema,
|
|
179
|
+
typebox_1.Type.Object({
|
|
180
|
+
identity_md: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()]),
|
|
181
|
+
settings: SettingsPreimageSchema,
|
|
182
|
+
}),
|
|
183
|
+
])),
|
|
184
|
+
typebox_1.Type.Null(),
|
|
185
|
+
]),
|
|
186
|
+
}),
|
|
187
|
+
]);
|
|
79
188
|
//# sourceMappingURL=manage-agents.js.map
|
|
@@ -144,17 +144,27 @@ export declare const AutomationOutputSchema: import("@sinclair/typebox").TUnion<
|
|
|
144
144
|
export type AutomationOutput = Static<typeof AutomationOutputSchema>;
|
|
145
145
|
export declare const AutomationOutputsSchema: import("@sinclair/typebox").TObject<{}>;
|
|
146
146
|
export type AutomationOutputs = Record<string, AutomationOutput>;
|
|
147
|
-
export declare const
|
|
147
|
+
export declare const LegacyAutomationScriptExecutorSchema: import("@sinclair/typebox").TObject<{
|
|
148
148
|
kind: import("@sinclair/typebox").TLiteral<"script">;
|
|
149
149
|
source: import("@sinclair/typebox").TString;
|
|
150
150
|
params: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
151
151
|
}>;
|
|
152
|
-
export type
|
|
153
|
-
export declare const
|
|
152
|
+
export type LegacyAutomationScriptExecutor = Static<typeof LegacyAutomationScriptExecutorSchema>;
|
|
153
|
+
export declare const LegacyAutomationExternalExecutorSchema: import("@sinclair/typebox").TObject<{
|
|
154
154
|
kind: import("@sinclair/typebox").TLiteral<"external">;
|
|
155
155
|
}>;
|
|
156
|
-
export type
|
|
156
|
+
export type LegacyAutomationExecutor = LegacyAutomationScriptExecutor | Static<typeof LegacyAutomationExternalExecutorSchema>;
|
|
157
157
|
export declare const AutomationExecutionConfigSchema: import("@sinclair/typebox").TObject<{
|
|
158
|
+
timeout_seconds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
159
|
+
max_budget_usd: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
160
|
+
model: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
161
|
+
permission_mode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"acceptEdits">, import("@sinclair/typebox").TLiteral<"auto">, import("@sinclair/typebox").TLiteral<"bypassPermissions">, import("@sinclair/typebox").TLiteral<"default">, import("@sinclair/typebox").TLiteral<"dontAsk">, import("@sinclair/typebox").TLiteral<"plan">]>>;
|
|
162
|
+
effort: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
163
|
+
finalize_nudges: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
164
|
+
}>;
|
|
165
|
+
export type AutomationExecutionConfig = Static<typeof AutomationExecutionConfigSchema>;
|
|
166
|
+
/** Read-only compatibility shape for installed definitions and frozen runs. */
|
|
167
|
+
export declare const LegacyAutomationExecutionConfigSchema: import("@sinclair/typebox").TObject<{
|
|
158
168
|
executor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
159
169
|
kind: import("@sinclair/typebox").TLiteral<"script">;
|
|
160
170
|
source: import("@sinclair/typebox").TString;
|
|
@@ -169,7 +179,7 @@ export declare const AutomationExecutionConfigSchema: import("@sinclair/typebox"
|
|
|
169
179
|
effort: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
170
180
|
finalize_nudges: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
171
181
|
}>;
|
|
172
|
-
export type
|
|
182
|
+
export type LegacyAutomationExecutionConfig = Static<typeof LegacyAutomationExecutionConfigSchema>;
|
|
173
183
|
export declare const AutomationDeliveryTargetSchema: import("@sinclair/typebox").TObject<{
|
|
174
184
|
connection_id: import("@sinclair/typebox").TInteger;
|
|
175
185
|
channel_id: import("@sinclair/typebox").TString;
|
|
@@ -263,15 +273,7 @@ export declare const ManageAutomationsSchema: import("@sinclair/typebox").TObjec
|
|
|
263
273
|
channel_id: import("@sinclair/typebox").TString;
|
|
264
274
|
}>]>>;
|
|
265
275
|
min_cooldown_seconds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
266
|
-
model_config: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
267
276
|
execution_config: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNull, import("@sinclair/typebox").TObject<{
|
|
268
|
-
executor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
269
|
-
kind: import("@sinclair/typebox").TLiteral<"script">;
|
|
270
|
-
source: import("@sinclair/typebox").TString;
|
|
271
|
-
params: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
272
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
273
|
-
kind: import("@sinclair/typebox").TLiteral<"external">;
|
|
274
|
-
}>]>>;
|
|
275
277
|
timeout_seconds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
276
278
|
max_budget_usd: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
277
279
|
model: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -314,7 +316,7 @@ export type ManageAutomationsArgs = Static<typeof ManageAutomationsSchema>;
|
|
|
314
316
|
* (action/automation_id/entity_id/version_id). `next_run_at` is omitted too — a
|
|
315
317
|
* DERIVED column, not a proposable field.
|
|
316
318
|
*/
|
|
317
|
-
export type AutomationUpdatePatch = Pick<ManageAutomationsArgs, "
|
|
319
|
+
export type AutomationUpdatePatch = Pick<ManageAutomationsArgs, "execution_config" | "triggers" | "managed_agent_id" | "tags" | "device_worker_id" | "agent_kind" | "delivery_target" | "min_cooldown_seconds">;
|
|
318
320
|
/**
|
|
319
321
|
* Canonical tag normalization for an automation write — trim, drop empties, dedupe,
|
|
320
322
|
* preserving first-seen order. The SINGLE source for how tags are STORED: the
|
|
@@ -333,7 +335,6 @@ export declare function normalizeAutomationTags(values: unknown): string[];
|
|
|
333
335
|
* A `manage_automations` update is a PATCH — only keys PRESENT in `args` are
|
|
334
336
|
* returned (absent keys keep their current values). Coercions mirror the stored
|
|
335
337
|
* shape EXACTLY, incl. the ones that used to live only in the SQL params:
|
|
336
|
-
* - model_config ?? {}
|
|
337
338
|
* - tags → normalizeAutomationTags (trim/drop-empty/dedupe)
|
|
338
339
|
* - min_cooldown_seconds ?? 0
|
|
339
340
|
* - null-clearable fields (managed_agent_id/device_worker_id/agent_kind,
|
|
@@ -739,11 +740,13 @@ export type ManageAutomationsResult = Static<typeof ManageAutomationsResultSchem
|
|
|
739
740
|
* human approver). Without this, a group reassigned between queue and approve
|
|
740
741
|
* would let A's pending mutation land on B-owned automation.
|
|
741
742
|
*
|
|
742
|
-
*
|
|
743
|
-
*
|
|
744
|
-
*
|
|
743
|
+
* Existing-target writes also pin configuration revisions; runtime execution
|
|
744
|
+
* bookkeeping does not invalidate them. These are internal approval metadata,
|
|
745
|
+
* never caller-supplied mutation fields.
|
|
745
746
|
*/
|
|
746
747
|
export interface ManageAutomationsProposal {
|
|
748
|
+
/** Target configuration revisions; absent only on legacy proposals and creates. */
|
|
749
|
+
base?: Record<string, string>;
|
|
747
750
|
args: ManageAutomationsArgs;
|
|
748
751
|
/** Resolved `actor.ownerAgentId ?? actor.id` at queue time; null for humans. */
|
|
749
752
|
actingAgentId: string | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListAutomationsResultSchema = exports.ListAutomationsSchema = exports.ManageAutomationsResultSchema = exports.AutomationTriggerResultSchema = exports.AutomationTriggerExecutionSchema = exports.AutomationClaimNextWindowResultSchema = exports.AutomationClaimNextWindowContextSchema = exports.ManageAutomationsPromotedEntitySchema = exports.ManageAutomationsFeedbackItemSchema = exports.ManageAutomationsDeleteResultSchema = exports.ManageAutomationsSchema = exports.AutomationSkillSchema = exports.SourceSchema = exports.AutomationDeliveryTargetSchema = exports.AutomationExecutionConfigSchema = exports.
|
|
3
|
+
exports.ListAutomationsResultSchema = exports.ListAutomationsSchema = exports.ManageAutomationsResultSchema = exports.AutomationTriggerResultSchema = exports.AutomationTriggerExecutionSchema = exports.AutomationClaimNextWindowResultSchema = exports.AutomationClaimNextWindowContextSchema = exports.ManageAutomationsPromotedEntitySchema = exports.ManageAutomationsFeedbackItemSchema = exports.ManageAutomationsDeleteResultSchema = exports.ManageAutomationsSchema = exports.AutomationSkillSchema = exports.SourceSchema = exports.AutomationDeliveryTargetSchema = exports.LegacyAutomationExecutionConfigSchema = exports.AutomationExecutionConfigSchema = exports.LegacyAutomationExternalExecutorSchema = exports.LegacyAutomationScriptExecutorSchema = exports.AutomationOutputsSchema = exports.AutomationOutputSchema = exports.AutomationEventOutputSchema = exports.AutomationEntityOutputSchema = exports.AutomationSourceSchema = exports.AutomationTriggerSchema = exports.AutomationScheduleTriggerSchema = exports.AutomationWorkspaceEventTriggerSchema = exports.AutomationEventTriggerSchema = void 0;
|
|
4
4
|
exports.resolvedEventExecution = resolvedEventExecution;
|
|
5
5
|
exports.normalizeWorkspaceEventTrigger = normalizeWorkspaceEventTrigger;
|
|
6
6
|
exports.normalizeAutomationTags = normalizeAutomationTags;
|
|
@@ -215,7 +215,7 @@ exports.AutomationOutputsSchema = typebox_1.Type.Object({}, {
|
|
|
215
215
|
maxProperties: 20,
|
|
216
216
|
description: "Named top-level arrays persisted after a completed window. Entity outputs are validated against their entity type; event rows require content and may include title, metadata, author, source_url, occurred_at, parent_event_id, payload_type, idempotency_key, and entity_ids. entity_ids on a row replace the bound entities of the Automation for that row (omit to keep them); each id must be an entity in the same workspace the run may write, or the completion fails.",
|
|
217
217
|
});
|
|
218
|
-
exports.
|
|
218
|
+
exports.LegacyAutomationScriptExecutorSchema = typebox_1.Type.Object({
|
|
219
219
|
kind: typebox_1.Type.Literal("script"),
|
|
220
220
|
source: typebox_1.Type.String({ minLength: 1, maxLength: 131072 }),
|
|
221
221
|
params: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown())),
|
|
@@ -223,15 +223,11 @@ exports.AutomationScriptExecutorSchema = typebox_1.Type.Object({
|
|
|
223
223
|
additionalProperties: false,
|
|
224
224
|
description: "Run this TypeScript module directly in the Automation sandbox. Export default async (ctx, client). The runtime pins the script and window at activation and completes the run only after success. SDK writes retain the owning agent's permissions. Use ctx.window.run_id for retry idempotency.",
|
|
225
225
|
});
|
|
226
|
-
exports.
|
|
226
|
+
exports.LegacyAutomationExternalExecutorSchema = typebox_1.Type.Object({ kind: typebox_1.Type.Literal("external") }, {
|
|
227
227
|
additionalProperties: false,
|
|
228
228
|
description: "An authorized external MCP client claims and completes this Automation. Manual and schedule window activations only. The schedule remains authoritative; Lobu does not start a hosted agent or device CLI. managed_agent_id may retain the owning delivery principal.",
|
|
229
229
|
});
|
|
230
230
|
exports.AutomationExecutionConfigSchema = typebox_1.Type.Object({
|
|
231
|
-
executor: typebox_1.Type.Optional(typebox_1.Type.Union([
|
|
232
|
-
exports.AutomationScriptExecutorSchema,
|
|
233
|
-
exports.AutomationExternalExecutorSchema,
|
|
234
|
-
])),
|
|
235
231
|
timeout_seconds: typebox_1.Type.Optional(typebox_1.Type.Integer({
|
|
236
232
|
minimum: 1,
|
|
237
233
|
maximum: 86400,
|
|
@@ -264,8 +260,16 @@ exports.AutomationExecutionConfigSchema = typebox_1.Type.Object({
|
|
|
264
260
|
})),
|
|
265
261
|
}, {
|
|
266
262
|
additionalProperties: false,
|
|
267
|
-
description: "[create/update] Per-Automation execution settings
|
|
263
|
+
description: "[create/update] Per-Automation agent execution settings. Code-only modules use sandbox limits and do not accept these options. Omitted fields fall back to dispatcher/CLI/global defaults; pass null to clear.",
|
|
268
264
|
});
|
|
265
|
+
/** Read-only compatibility shape for installed definitions and frozen runs. */
|
|
266
|
+
exports.LegacyAutomationExecutionConfigSchema = typebox_1.Type.Object({
|
|
267
|
+
...exports.AutomationExecutionConfigSchema.properties,
|
|
268
|
+
executor: typebox_1.Type.Optional(typebox_1.Type.Union([
|
|
269
|
+
exports.LegacyAutomationScriptExecutorSchema,
|
|
270
|
+
exports.LegacyAutomationExternalExecutorSchema,
|
|
271
|
+
])),
|
|
272
|
+
}, { additionalProperties: false });
|
|
269
273
|
exports.AutomationDeliveryTargetSchema = typebox_1.Type.Object({
|
|
270
274
|
connection_id: typebox_1.Type.Integer({
|
|
271
275
|
minimum: 1,
|
|
@@ -428,7 +432,7 @@ exports.ManageAutomationsSchema = typebox_1.Type.Object({
|
|
|
428
432
|
})),
|
|
429
433
|
// Automation config fields (create/create_version/update)
|
|
430
434
|
prompt: typebox_1.Type.Optional(typebox_1.Type.String({
|
|
431
|
-
description: "[create/create_version] Literal LLM instruction text for the Automation — the task statement, frozen into the version. No template expansion happens: the text is delivered to the agent verbatim, and the window's data (content, sources, entities, extraction_schema) arrives alongside it in the knowledge-read payload. Reusable know-how belongs in `skills` instead, which is delivered as readable files rather than pasted in here. A schedule trigger, an event trigger with execution 'window', and an Automation with no triggers each need an instruction source — supply `prompt`, `skills`,
|
|
435
|
+
description: "[create/create_version] Literal LLM instruction text for the Automation — the task statement, frozen into the version. No template expansion happens: the text is delivered to the agent verbatim, and the window's data (content, sources, entities, extraction_schema) arrives alongside it in the knowledge-read payload. Reusable know-how belongs in `skills` instead, which is delivered as readable files rather than pasted in here. A schedule trigger, an event trigger with execution 'window', and an Automation with no triggers each need an instruction source — supply `prompt`, `skills`, or a code module; an event trigger with execution 'turn' may omit all instruction sources and use the built-in default.",
|
|
432
436
|
})),
|
|
433
437
|
skills: typebox_1.Type.Optional(typebox_1.Type.Array(exports.AutomationSkillSchema, {
|
|
434
438
|
maxItems: 5,
|
|
@@ -452,7 +456,7 @@ exports.ManageAutomationsSchema = typebox_1.Type.Object({
|
|
|
452
456
|
description: "[create/update/create_version] Canonical Automation activations. Use a schedule trigger for cadence and timezone.",
|
|
453
457
|
})),
|
|
454
458
|
managed_agent_id: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String({ minLength: 1 }), typebox_1.Type.Null()], {
|
|
455
|
-
description: "[create/update] Optional managed agent
|
|
459
|
+
description: "[create/update] Optional managed agent identity and SDK permission ancestor. A device pin places its execution on that device. Prompt, skills, input schema or outputs invoke analysis; a module alone runs code with owning-agent permissions. Null clears the assignment. Analysis without an agent or device is claimed by authorized external clients on manual/scheduled windows; clients own their wakeups. [list] Optional owner filter.",
|
|
456
460
|
})),
|
|
457
461
|
status: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Literal("active"), typebox_1.Type.Literal("archived")], {
|
|
458
462
|
description: "[list] Optional status filter. Omit to include active Automations only.",
|
|
@@ -488,7 +492,6 @@ exports.ManageAutomationsSchema = typebox_1.Type.Object({
|
|
|
488
492
|
description: "[create/update] Minimum seconds between two firings of this Automation (0 = no cooldown).",
|
|
489
493
|
minimum: 0,
|
|
490
494
|
})),
|
|
491
|
-
model_config: typebox_1.Type.Optional(typebox_1.Type.Any({ description: "[create/update] AI model configuration" })),
|
|
492
495
|
// Union with Null so `update` can clear a previously-saved config back to
|
|
493
496
|
// NULL/defaults — omitted = unchanged, null = clear, object = replace. The
|
|
494
497
|
// object shape lives in AutomationExecutionConfigSchema; the role-policy gate
|
|
@@ -536,7 +539,7 @@ exports.ManageAutomationsSchema = typebox_1.Type.Object({
|
|
|
536
539
|
})),
|
|
537
540
|
// Fields for action="create" / "set_reaction_script"
|
|
538
541
|
reaction_script: typebox_1.Type.Optional(typebox_1.Type.String({
|
|
539
|
-
description: "[create/set_reaction_script] TypeScript
|
|
542
|
+
description: "[create/set_reaction_script] TypeScript lifecycle module. Without prompt, skills, exported input or declared outputs, runs code without an LLM: prepare then default when present. With analysis inputs, prepare runs before the native agent and default follows completion. prepare returns named arrays of records (32 names, 16384 JSON bytes maximum), saved per run and read through knowledge.read(...).sources. Preparation requires native windows; legacy executors and reply turns are unsupported. Compiled and validated before saving; an empty string removes the module.",
|
|
540
543
|
})),
|
|
541
544
|
// Fields for action="submit_feedback" / "get_feedback"
|
|
542
545
|
run_id: typebox_1.Type.Optional(typebox_1.Type.Number({
|
|
@@ -597,7 +600,6 @@ function normalizeAutomationTags(values) {
|
|
|
597
600
|
* A `manage_automations` update is a PATCH — only keys PRESENT in `args` are
|
|
598
601
|
* returned (absent keys keep their current values). Coercions mirror the stored
|
|
599
602
|
* shape EXACTLY, incl. the ones that used to live only in the SQL params:
|
|
600
|
-
* - model_config ?? {}
|
|
601
603
|
* - tags → normalizeAutomationTags (trim/drop-empty/dedupe)
|
|
602
604
|
* - min_cooldown_seconds ?? 0
|
|
603
605
|
* - null-clearable fields (managed_agent_id/device_worker_id/agent_kind,
|
|
@@ -606,8 +608,6 @@ function normalizeAutomationTags(values) {
|
|
|
606
608
|
*/
|
|
607
609
|
function normalizeAutomationUpdatePatch(args) {
|
|
608
610
|
const patch = {};
|
|
609
|
-
if (args.model_config !== undefined)
|
|
610
|
-
patch.model_config = args.model_config ?? {};
|
|
611
611
|
// null is a REAL clear the write stores (toJsonParam(null) → SQL null); keep it
|
|
612
612
|
// so the review shows the clear rather than hiding it (serializing away).
|
|
613
613
|
if (args.execution_config !== undefined)
|
|
@@ -83,12 +83,12 @@ exports.ManageEntitySchemaSchema = typebox_1.Type.Object({
|
|
|
83
83
|
description: "Soft-delete a rule (relationship_type only), governed as update_relationship_type.",
|
|
84
84
|
}),
|
|
85
85
|
typebox_1.Type.Literal("list_rules", {
|
|
86
|
-
description: "List allowed type rules (relationship_type only).",
|
|
86
|
+
description: "List allowed type rules (relationship_type only). Omit `slug` to read every rule in one call — the Data hub's schema map needs them all, and one read per relationship type made a public visitor's page load cost dozens of metered requests.",
|
|
87
87
|
}),
|
|
88
88
|
], { description: "Action to perform" }),
|
|
89
89
|
// Identification
|
|
90
90
|
slug: typebox_1.Type.Optional(typebox_1.Type.String({
|
|
91
|
-
description: "[get/create/update/delete/audit/add_rule/remove_rule/list_rules] Type slug",
|
|
91
|
+
description: "[get/create/update/delete/audit/add_rule/remove_rule/list_rules] Type slug. `list_rules` also accepts none, which returns every rule the caller can see.",
|
|
92
92
|
minLength: 1,
|
|
93
93
|
})),
|
|
94
94
|
// Shared create/update fields
|
|
@@ -57,7 +57,7 @@ export declare const ListEntitiesAction: import("@sinclair/typebox").TObject<{
|
|
|
57
57
|
export declare const GetEntityAction: import("@sinclair/typebox").TObject<{
|
|
58
58
|
action: import("@sinclair/typebox").TLiteral<"get">;
|
|
59
59
|
entity_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TString]>;
|
|
60
|
-
entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString
|
|
60
|
+
entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TInteger]>>;
|
|
61
61
|
include_deleted: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
62
62
|
}>;
|
|
63
63
|
export declare const DeleteEntityAction: import("@sinclair/typebox").TObject<{
|
|
@@ -76,8 +76,8 @@ export declare const LinkEntitiesAction: import("@sinclair/typebox").TObject<{
|
|
|
76
76
|
action: import("@sinclair/typebox").TLiteral<"link">;
|
|
77
77
|
from_entity_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TString]>;
|
|
78
78
|
to_entity_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TString]>;
|
|
79
|
-
from_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString
|
|
80
|
-
to_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString
|
|
79
|
+
from_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TInteger]>>;
|
|
80
|
+
to_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TInteger]>>;
|
|
81
81
|
relationship_type_slug: import("@sinclair/typebox").TString;
|
|
82
82
|
confidence: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
83
83
|
source: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ui">, import("@sinclair/typebox").TLiteral<"llm">, import("@sinclair/typebox").TLiteral<"feed">, import("@sinclair/typebox").TLiteral<"api">]>>;
|
|
@@ -97,8 +97,8 @@ export declare const UnlinkEntitiesAction: import("@sinclair/typebox").TObject<{
|
|
|
97
97
|
relationship_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
98
98
|
from_entity_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TString]>>;
|
|
99
99
|
to_entity_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TString]>>;
|
|
100
|
-
from_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString
|
|
101
|
-
to_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString
|
|
100
|
+
from_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TInteger]>>;
|
|
101
|
+
to_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TInteger]>>;
|
|
102
102
|
relationship_type_slug: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
103
103
|
}>;
|
|
104
104
|
export declare const UpdateLinkAction: import("@sinclair/typebox").TObject<{
|
|
@@ -106,8 +106,8 @@ export declare const UpdateLinkAction: import("@sinclair/typebox").TObject<{
|
|
|
106
106
|
relationship_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
107
107
|
from_entity_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TString]>>;
|
|
108
108
|
to_entity_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TString]>>;
|
|
109
|
-
from_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString
|
|
110
|
-
to_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString
|
|
109
|
+
from_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TInteger]>>;
|
|
110
|
+
to_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TInteger]>>;
|
|
111
111
|
relationship_type_slug: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
112
112
|
confidence: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
113
113
|
source: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ui">, import("@sinclair/typebox").TLiteral<"llm">, import("@sinclair/typebox").TLiteral<"feed">, import("@sinclair/typebox").TLiteral<"api">]>>;
|
|
@@ -123,7 +123,7 @@ export declare const ListLinksAction: import("@sinclair/typebox").TObject<{
|
|
|
123
123
|
offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
124
124
|
action: import("@sinclair/typebox").TLiteral<"list_links">;
|
|
125
125
|
entity_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TString]>>;
|
|
126
|
-
entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString
|
|
126
|
+
entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TInteger]>>;
|
|
127
127
|
record: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
128
128
|
type: import("@sinclair/typebox").TString;
|
|
129
129
|
key: import("@sinclair/typebox").TString;
|
|
@@ -141,6 +141,11 @@ export declare const DiscoverDuplicatesAction: import("@sinclair/typebox").TObje
|
|
|
141
141
|
cursor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
142
142
|
}>;
|
|
143
143
|
export declare const ManageEntitySchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
144
|
+
action: import("@sinclair/typebox").TLiteral<"get">;
|
|
145
|
+
entity_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TString]>;
|
|
146
|
+
entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TInteger]>>;
|
|
147
|
+
include_deleted: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
148
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
144
149
|
action: import("@sinclair/typebox").TLiteral<"create">;
|
|
145
150
|
entity_type: import("@sinclair/typebox").TString;
|
|
146
151
|
name: import("@sinclair/typebox").TString;
|
|
@@ -191,11 +196,6 @@ export declare const ManageEntitySchema: import("@sinclair/typebox").TUnion<[imp
|
|
|
191
196
|
parent_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
|
|
192
197
|
search: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
193
198
|
segment: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
194
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
195
|
-
action: import("@sinclair/typebox").TLiteral<"get">;
|
|
196
|
-
entity_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TString]>;
|
|
197
|
-
entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
198
|
-
include_deleted: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
199
199
|
}>, import("@sinclair/typebox").TObject<{
|
|
200
200
|
action: import("@sinclair/typebox").TLiteral<"delete">;
|
|
201
201
|
entity_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TString]>;
|
|
@@ -211,8 +211,8 @@ export declare const ManageEntitySchema: import("@sinclair/typebox").TUnion<[imp
|
|
|
211
211
|
action: import("@sinclair/typebox").TLiteral<"link">;
|
|
212
212
|
from_entity_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TString]>;
|
|
213
213
|
to_entity_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TString]>;
|
|
214
|
-
from_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString
|
|
215
|
-
to_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString
|
|
214
|
+
from_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TInteger]>>;
|
|
215
|
+
to_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TInteger]>>;
|
|
216
216
|
relationship_type_slug: import("@sinclair/typebox").TString;
|
|
217
217
|
confidence: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
218
218
|
source: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ui">, import("@sinclair/typebox").TLiteral<"llm">, import("@sinclair/typebox").TLiteral<"feed">, import("@sinclair/typebox").TLiteral<"api">]>>;
|
|
@@ -231,16 +231,16 @@ export declare const ManageEntitySchema: import("@sinclair/typebox").TUnion<[imp
|
|
|
231
231
|
relationship_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
232
232
|
from_entity_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TString]>>;
|
|
233
233
|
to_entity_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TString]>>;
|
|
234
|
-
from_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString
|
|
235
|
-
to_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString
|
|
234
|
+
from_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TInteger]>>;
|
|
235
|
+
to_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TInteger]>>;
|
|
236
236
|
relationship_type_slug: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
237
237
|
}>, import("@sinclair/typebox").TObject<{
|
|
238
238
|
action: import("@sinclair/typebox").TLiteral<"update_link">;
|
|
239
239
|
relationship_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
240
240
|
from_entity_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TString]>>;
|
|
241
241
|
to_entity_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TString]>>;
|
|
242
|
-
from_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString
|
|
243
|
-
to_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString
|
|
242
|
+
from_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TInteger]>>;
|
|
243
|
+
to_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TInteger]>>;
|
|
244
244
|
relationship_type_slug: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
245
245
|
confidence: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
246
246
|
source: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ui">, import("@sinclair/typebox").TLiteral<"llm">, import("@sinclair/typebox").TLiteral<"feed">, import("@sinclair/typebox").TLiteral<"api">]>>;
|
|
@@ -255,7 +255,7 @@ export declare const ManageEntitySchema: import("@sinclair/typebox").TUnion<[imp
|
|
|
255
255
|
offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
256
256
|
action: import("@sinclair/typebox").TLiteral<"list_links">;
|
|
257
257
|
entity_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TString]>>;
|
|
258
|
-
entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString
|
|
258
|
+
entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TInteger]>>;
|
|
259
259
|
record: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
260
260
|
type: import("@sinclair/typebox").TString;
|
|
261
261
|
key: import("@sinclair/typebox").TString;
|
|
@@ -292,6 +292,10 @@ export declare const RelationshipRowSchema: import("@sinclair/typebox").TObject<
|
|
|
292
292
|
relationship_type_name: import("@sinclair/typebox").TString;
|
|
293
293
|
is_symmetric: import("@sinclair/typebox").TBoolean;
|
|
294
294
|
acl_managed: import("@sinclair/typebox").TBoolean;
|
|
295
|
+
from_entity_type_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
296
|
+
to_entity_type_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
297
|
+
from_entity_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
298
|
+
to_entity_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
295
299
|
from_entity_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
296
300
|
from_entity_slug: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
297
301
|
from_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -332,6 +336,7 @@ export declare const ManageEntityItemSchema: import("@sinclair/typebox").TObject
|
|
|
332
336
|
root_id: import("@sinclair/typebox").TInteger;
|
|
333
337
|
member_ids: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TInteger>;
|
|
334
338
|
}>>;
|
|
339
|
+
entity_type_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
335
340
|
entity_type: import("@sinclair/typebox").TString;
|
|
336
341
|
name: import("@sinclair/typebox").TString;
|
|
337
342
|
slug: import("@sinclair/typebox").TString;
|
|
@@ -366,6 +371,7 @@ export declare const ManageEntityResultSchema: import("@sinclair/typebox").TUnio
|
|
|
366
371
|
root_id: import("@sinclair/typebox").TInteger;
|
|
367
372
|
member_ids: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TInteger>;
|
|
368
373
|
}>>;
|
|
374
|
+
entity_type_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
369
375
|
entity_type: import("@sinclair/typebox").TString;
|
|
370
376
|
name: import("@sinclair/typebox").TString;
|
|
371
377
|
slug: import("@sinclair/typebox").TString;
|
|
@@ -399,6 +405,7 @@ export declare const ManageEntityResultSchema: import("@sinclair/typebox").TUnio
|
|
|
399
405
|
root_id: import("@sinclair/typebox").TInteger;
|
|
400
406
|
member_ids: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TInteger>;
|
|
401
407
|
}>>;
|
|
408
|
+
entity_type_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
402
409
|
entity_type: import("@sinclair/typebox").TString;
|
|
403
410
|
name: import("@sinclair/typebox").TString;
|
|
404
411
|
slug: import("@sinclair/typebox").TString;
|
|
@@ -442,6 +449,7 @@ export declare const ManageEntityResultSchema: import("@sinclair/typebox").TUnio
|
|
|
442
449
|
root_id: import("@sinclair/typebox").TInteger;
|
|
443
450
|
member_ids: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TInteger>;
|
|
444
451
|
}>>;
|
|
452
|
+
entity_type_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
445
453
|
entity_type: import("@sinclair/typebox").TString;
|
|
446
454
|
name: import("@sinclair/typebox").TString;
|
|
447
455
|
slug: import("@sinclair/typebox").TString;
|
|
@@ -481,6 +489,7 @@ export declare const ManageEntityResultSchema: import("@sinclair/typebox").TUnio
|
|
|
481
489
|
root_id: import("@sinclair/typebox").TInteger;
|
|
482
490
|
member_ids: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TInteger>;
|
|
483
491
|
}>>;
|
|
492
|
+
entity_type_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
484
493
|
entity_type: import("@sinclair/typebox").TString;
|
|
485
494
|
name: import("@sinclair/typebox").TString;
|
|
486
495
|
slug: import("@sinclair/typebox").TString;
|
|
@@ -547,6 +556,10 @@ export declare const ManageEntityResultSchema: import("@sinclair/typebox").TUnio
|
|
|
547
556
|
relationship_type_name: import("@sinclair/typebox").TString;
|
|
548
557
|
is_symmetric: import("@sinclair/typebox").TBoolean;
|
|
549
558
|
acl_managed: import("@sinclair/typebox").TBoolean;
|
|
559
|
+
from_entity_type_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
560
|
+
to_entity_type_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
561
|
+
from_entity_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
562
|
+
to_entity_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
550
563
|
from_entity_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
551
564
|
from_entity_slug: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
552
565
|
from_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -574,6 +587,10 @@ export declare const ManageEntityResultSchema: import("@sinclair/typebox").TUnio
|
|
|
574
587
|
relationship_type_name: import("@sinclair/typebox").TString;
|
|
575
588
|
is_symmetric: import("@sinclair/typebox").TBoolean;
|
|
576
589
|
acl_managed: import("@sinclair/typebox").TBoolean;
|
|
590
|
+
from_entity_type_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
591
|
+
to_entity_type_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
592
|
+
from_entity_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
593
|
+
to_entity_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
577
594
|
from_entity_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
578
595
|
from_entity_slug: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
579
596
|
from_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -621,6 +638,10 @@ export declare const ManageEntityResultSchema: import("@sinclair/typebox").TUnio
|
|
|
621
638
|
relationship_type_name: import("@sinclair/typebox").TString;
|
|
622
639
|
is_symmetric: import("@sinclair/typebox").TBoolean;
|
|
623
640
|
acl_managed: import("@sinclair/typebox").TBoolean;
|
|
641
|
+
from_entity_type_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
642
|
+
to_entity_type_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
643
|
+
from_entity_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
644
|
+
to_entity_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
624
645
|
from_entity_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
625
646
|
from_entity_slug: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
626
647
|
from_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -677,6 +698,10 @@ export declare const ManageEntityResultSchema: import("@sinclair/typebox").TUnio
|
|
|
677
698
|
relationship_type_name: import("@sinclair/typebox").TString;
|
|
678
699
|
is_symmetric: import("@sinclair/typebox").TBoolean;
|
|
679
700
|
acl_managed: import("@sinclair/typebox").TBoolean;
|
|
701
|
+
from_entity_type_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
702
|
+
to_entity_type_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
703
|
+
from_entity_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
704
|
+
to_entity_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
680
705
|
from_entity_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
681
706
|
from_entity_slug: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
682
707
|
from_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|