@wheatley-ai/cli 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +15 -0
- package/bin/wheatley.js +2 -0
- package/dist/approvals/gate.js +278 -0
- package/dist/approvals/module.js +21 -0
- package/dist/approvals/policy.js +30 -0
- package/dist/approvals/preview.js +17 -0
- package/dist/approvals/prompt.js +98 -0
- package/dist/approvals/rpc.js +16 -0
- package/dist/approvals/store.js +159 -0
- package/dist/cli/ask.js +94 -0
- package/dist/cli/chat.js +178 -0
- package/dist/cli/client.js +104 -0
- package/dist/cli/daemon.js +35 -0
- package/dist/cli/init.js +72 -0
- package/dist/cli/io.js +45 -0
- package/dist/cli/main.js +206 -0
- package/dist/cli/session.js +86 -0
- package/dist/cli/status.js +46 -0
- package/dist/contracts/approval-gate.js +1 -0
- package/dist/contracts/config-store.js +1 -0
- package/dist/contracts/delivery-outbox.js +1 -0
- package/dist/contracts/errors.js +28 -0
- package/dist/contracts/extension-catalog.js +1 -0
- package/dist/contracts/maintenance-runner.js +1 -0
- package/dist/contracts/memory-store.js +1 -0
- package/dist/contracts/module.js +7 -0
- package/dist/contracts/tool-names.js +43 -0
- package/dist/contracts/trigger-runtime.js +1 -0
- package/dist/contracts/webhook-ingress.js +2 -0
- package/dist/core/agent/agent-store.js +300 -0
- package/dist/core/agent/agent.js +1033 -0
- package/dist/core/agent/gated-models.js +89 -0
- package/dist/core/agent/pi-adapter.js +401 -0
- package/dist/core/agent/policy-gate.js +44 -0
- package/dist/core/builtin-catalog.js +20 -0
- package/dist/core/concurrency-gate.js +87 -0
- package/dist/core/config/atomic-file.js +72 -0
- package/dist/core/config/config-store.js +138 -0
- package/dist/core/config/pending-restart.js +53 -0
- package/dist/core/config/secret-references.js +69 -0
- package/dist/core/config/secret-store.js +147 -0
- package/dist/core/config/validate.js +55 -0
- package/dist/core/config/yaml-patch.js +57 -0
- package/dist/core/daemon-socket.js +96 -0
- package/dist/core/daemon.js +97 -0
- package/dist/core/deployment.js +379 -0
- package/dist/core/error-message.js +4 -0
- package/dist/core/events.js +25 -0
- package/dist/core/logger.js +81 -0
- package/dist/core/models.js +27 -0
- package/dist/core/module.js +42 -0
- package/dist/core/rpc/agent-handlers.js +82 -0
- package/dist/core/rpc/deployment-handlers.js +63 -0
- package/dist/core/rpc/router.js +96 -0
- package/dist/core/server/connection.js +170 -0
- package/dist/core/server/control-server.js +152 -0
- package/dist/core/server/static-files.js +79 -0
- package/dist/core/supervisor.js +215 -0
- package/dist/core/tool-routing.js +41 -0
- package/dist/dashboard/assets/index-C9Rul5vE.css +2 -0
- package/dist/dashboard/assets/index-DXzGGAxQ.js +11 -0
- package/dist/dashboard/assets/sheet-presentation-DMljN0LW.js +1 -0
- package/dist/dashboard/index.html +18 -0
- package/dist/db/database.js +16 -0
- package/dist/db/migrations.js +184 -0
- package/dist/frontends/discord/approvals.js +199 -0
- package/dist/frontends/discord/attachments.js +115 -0
- package/dist/frontends/discord/binding.js +489 -0
- package/dist/frontends/discord/config.js +107 -0
- package/dist/frontends/discord/discord-runtime.js +52 -0
- package/dist/frontends/discord/errors.js +61 -0
- package/dist/frontends/discord/live-runs.js +189 -0
- package/dist/frontends/discord/module.js +39 -0
- package/dist/frontends/discord/recent-ids.js +20 -0
- package/dist/frontends/slack/approval-blocks.js +98 -0
- package/dist/frontends/slack/attachments.js +102 -0
- package/dist/frontends/slack/background-tasks.js +20 -0
- package/dist/frontends/slack/binding.js +405 -0
- package/dist/frontends/slack/bounded.js +9 -0
- package/dist/frontends/slack/chat-id.js +17 -0
- package/dist/frontends/slack/config.js +80 -0
- package/dist/frontends/slack/delivery-errors.js +81 -0
- package/dist/frontends/slack/inbound.js +76 -0
- package/dist/frontends/slack/live-progress.js +190 -0
- package/dist/frontends/slack/manifest.js +66 -0
- package/dist/frontends/slack/outbound.js +160 -0
- package/dist/frontends/slack/schemas.js +99 -0
- package/dist/frontends/slack/signature.js +30 -0
- package/dist/frontends/slack/slack-client.js +60 -0
- package/dist/frontends/slack/slack-frontend.js +38 -0
- package/dist/frontends/slack/state-store.js +112 -0
- package/dist/frontends/telegram/approvals.js +134 -0
- package/dist/frontends/telegram/attachments.js +126 -0
- package/dist/frontends/telegram/binding.js +144 -0
- package/dist/frontends/telegram/chat-key.js +43 -0
- package/dist/frontends/telegram/client.js +88 -0
- package/dist/frontends/telegram/config.js +93 -0
- package/dist/frontends/telegram/delivery.js +215 -0
- package/dist/frontends/telegram/frontend.js +42 -0
- package/dist/frontends/telegram/grammy-client.js +122 -0
- package/dist/frontends/telegram/http-status.js +6 -0
- package/dist/frontends/telegram/inbound.js +149 -0
- package/dist/frontends/telegram/live.js +182 -0
- package/dist/frontends/telegram/markdown.js +103 -0
- package/dist/frontends/telegram/recent-set.js +18 -0
- package/dist/frontends/telegram/serial-queue.js +23 -0
- package/dist/index.js +7 -0
- package/dist/mcp/content.js +61 -0
- package/dist/mcp/mcp-module.js +35 -0
- package/dist/mcp/mcp-tool-provider.js +93 -0
- package/dist/mcp/server-connection.js +297 -0
- package/dist/memory/consolidation.js +260 -0
- package/dist/memory/format.js +5 -0
- package/dist/memory/migrations.js +76 -0
- package/dist/memory/module.js +69 -0
- package/dist/memory/names.js +20 -0
- package/dist/memory/rows.js +22 -0
- package/dist/memory/rpc.js +49 -0
- package/dist/memory/snapshots.js +12 -0
- package/dist/memory/store.js +281 -0
- package/dist/memory/tools.js +158 -0
- package/dist/node_modules/@wheatley-ai/protocol/dist/config.d.ts +262 -0
- package/dist/node_modules/@wheatley-ai/protocol/dist/config.js +120 -0
- package/dist/node_modules/@wheatley-ai/protocol/dist/domain.d.ts +512 -0
- package/dist/node_modules/@wheatley-ai/protocol/dist/domain.js +441 -0
- package/dist/node_modules/@wheatley-ai/protocol/dist/duration.d.ts +8 -0
- package/dist/node_modules/@wheatley-ai/protocol/dist/duration.js +28 -0
- package/dist/node_modules/@wheatley-ai/protocol/dist/events.d.ts +234 -0
- package/dist/node_modules/@wheatley-ai/protocol/dist/events.js +124 -0
- package/dist/node_modules/@wheatley-ai/protocol/dist/index.d.ts +11 -0
- package/dist/node_modules/@wheatley-ai/protocol/dist/index.js +11 -0
- package/dist/node_modules/@wheatley-ai/protocol/dist/json-rpc.d.ts +81 -0
- package/dist/node_modules/@wheatley-ai/protocol/dist/json-rpc.js +157 -0
- package/dist/node_modules/@wheatley-ai/protocol/dist/json.d.ts +14 -0
- package/dist/node_modules/@wheatley-ai/protocol/dist/json.js +23 -0
- package/dist/node_modules/@wheatley-ai/protocol/dist/limits.d.ts +17 -0
- package/dist/node_modules/@wheatley-ai/protocol/dist/limits.js +17 -0
- package/dist/node_modules/@wheatley-ai/protocol/dist/methods.d.ts +1107 -0
- package/dist/node_modules/@wheatley-ai/protocol/dist/methods.js +201 -0
- package/dist/node_modules/@wheatley-ai/protocol/dist/rpc-error.d.ts +45 -0
- package/dist/node_modules/@wheatley-ai/protocol/dist/rpc-error.js +44 -0
- package/dist/node_modules/@wheatley-ai/protocol/dist/validation.d.ts +20 -0
- package/dist/node_modules/@wheatley-ai/protocol/dist/validation.js +11 -0
- package/dist/node_modules/@wheatley-ai/protocol/package.json +14 -0
- package/dist/node_modules/@wheatley-ai/sdk/dist/chunk.d.ts +11 -0
- package/dist/node_modules/@wheatley-ai/sdk/dist/chunk.js +162 -0
- package/dist/node_modules/@wheatley-ai/sdk/dist/commands.d.ts +48 -0
- package/dist/node_modules/@wheatley-ai/sdk/dist/commands.js +39 -0
- package/dist/node_modules/@wheatley-ai/sdk/dist/delivery-error.d.ts +29 -0
- package/dist/node_modules/@wheatley-ai/sdk/dist/delivery-error.js +27 -0
- package/dist/node_modules/@wheatley-ai/sdk/dist/frontend.d.ts +236 -0
- package/dist/node_modules/@wheatley-ai/sdk/dist/frontend.js +2 -0
- package/dist/node_modules/@wheatley-ai/sdk/dist/index.d.ts +10 -0
- package/dist/node_modules/@wheatley-ai/sdk/dist/index.js +7 -0
- package/dist/node_modules/@wheatley-ai/sdk/dist/json.d.ts +9 -0
- package/dist/node_modules/@wheatley-ai/sdk/dist/json.js +2 -0
- package/dist/node_modules/@wheatley-ai/sdk/dist/logger.d.ts +18 -0
- package/dist/node_modules/@wheatley-ai/sdk/dist/logger.js +2 -0
- package/dist/node_modules/@wheatley-ai/sdk/dist/plugin.d.ts +48 -0
- package/dist/node_modules/@wheatley-ai/sdk/dist/plugin.js +5 -0
- package/dist/node_modules/@wheatley-ai/sdk/dist/schema.d.ts +69 -0
- package/dist/node_modules/@wheatley-ai/sdk/dist/schema.js +3 -0
- package/dist/node_modules/@wheatley-ai/sdk/dist/tool.d.ts +69 -0
- package/dist/node_modules/@wheatley-ai/sdk/dist/tool.js +3 -0
- package/dist/node_modules/@wheatley-ai/sdk/package.json +11 -0
- package/dist/ops/backup.js +185 -0
- package/dist/ops/cli.js +194 -0
- package/dist/ops/command-runner.js +34 -0
- package/dist/ops/dashboard-assets.js +37 -0
- package/dist/ops/migrate.js +63 -0
- package/dist/ops/module.js +47 -0
- package/dist/ops/paths.js +55 -0
- package/dist/ops/service.js +376 -0
- package/dist/ops/update.js +145 -0
- package/dist/plugins/contributions.js +89 -0
- package/dist/plugins/guards.js +111 -0
- package/dist/plugins/load.js +76 -0
- package/dist/plugins/module.js +31 -0
- package/dist/plugins/provider.js +349 -0
- package/dist/plugins/schema.js +69 -0
- package/dist/skills/disclosure.js +142 -0
- package/dist/skills/discovery.js +120 -0
- package/dist/skills/fs-errors.js +8 -0
- package/dist/skills/read-skill-tool.js +3 -0
- package/dist/skills/skill-file.js +90 -0
- package/dist/skills/skills.js +140 -0
- package/dist/tools/builtin-tools.js +61 -0
- package/dist/tools/input.js +45 -0
- package/dist/tools/paths.js +6 -0
- package/dist/tools/read-file.js +65 -0
- package/dist/tools/shell.js +156 -0
- package/dist/tools/write-file.js +58 -0
- package/dist/triggers/delivery-codec.js +99 -0
- package/dist/triggers/delivery-outbox.js +313 -0
- package/dist/triggers/due-timer.js +14 -0
- package/dist/triggers/errors.js +2 -0
- package/dist/triggers/migrations.js +91 -0
- package/dist/triggers/module.js +106 -0
- package/dist/triggers/rpc.js +35 -0
- package/dist/triggers/schedule.js +52 -0
- package/dist/triggers/sql-row.js +59 -0
- package/dist/triggers/trigger-runtime.js +445 -0
- package/dist/triggers/trigger-tools.js +210 -0
- package/dist/triggers/webhook-ingress.js +212 -0
- package/dist/wiring/agent-services.js +151 -0
- package/dist/wiring/catalog.js +81 -0
- package/dist/wiring/daemon.js +83 -0
- package/dist/wiring/frontend-host.js +268 -0
- package/package.json +50 -3
- package/README.md +0 -3
|
@@ -0,0 +1,512 @@
|
|
|
1
|
+
import { Type } from "typebox";
|
|
2
|
+
import type { Static } from "typebox";
|
|
3
|
+
/** An Agent name. It is the permanent Agent ID and its folder name under `agents/`. */
|
|
4
|
+
export declare const AgentNameSchema: Type.TString;
|
|
5
|
+
export type AgentName = Static<typeof AgentNameSchema>;
|
|
6
|
+
/** A non-empty opaque ID. */
|
|
7
|
+
export declare const IdSchema: Type.TString;
|
|
8
|
+
export type Id = Static<typeof IdSchema>;
|
|
9
|
+
/** An ISO 8601 UTC timestamp, for example `2026-11-26T09:30:00.000Z`. */
|
|
10
|
+
export declare const TimestampSchema: Type.TString;
|
|
11
|
+
export type Timestamp = Static<typeof TimestampSchema>;
|
|
12
|
+
/** A duration such as `500ms`, `30s`, `15m`, `2h`, or `1d`. */
|
|
13
|
+
export declare const DurationSchema: Type.TString;
|
|
14
|
+
export type Duration = Static<typeof DurationSchema>;
|
|
15
|
+
/** A count of zero or more. */
|
|
16
|
+
export declare const Count: Type.TInteger;
|
|
17
|
+
/** A secret name in `secrets.yaml` or the environment, never its value. */
|
|
18
|
+
export declare const SecretNameSchema: Type.TString;
|
|
19
|
+
export type SecretName = Static<typeof SecretNameSchema>;
|
|
20
|
+
/** The Supervisor state of an Agent. */
|
|
21
|
+
export declare const AgentStateSchema: Type.TUnion<[Type.TLiteral<"starting">, Type.TLiteral<"running">, Type.TLiteral<"degraded">, Type.TLiteral<"stopped">]>;
|
|
22
|
+
export type AgentState = Static<typeof AgentStateSchema>;
|
|
23
|
+
/** One Chat: a Frontend Binding and the platform Chat ID inside it. */
|
|
24
|
+
export declare const ChatKeySchema: Type.TObject<{
|
|
25
|
+
bindingId: Type.TString;
|
|
26
|
+
chatId: Type.TString;
|
|
27
|
+
}>;
|
|
28
|
+
export type ChatKey = Static<typeof ChatKeySchema>;
|
|
29
|
+
/** The state of a Plugin, MCP Server, or Frontend Binding inside an Agent. */
|
|
30
|
+
export declare const ExtensionStateSchema: Type.TUnion<[Type.TLiteral<"starting">, Type.TLiteral<"ready">, Type.TLiteral<"failed">, Type.TLiteral<"disabled">, Type.TLiteral<"stopped">]>;
|
|
31
|
+
export type ExtensionState = Static<typeof ExtensionStateSchema>;
|
|
32
|
+
/** Load or connection status of one extension. */
|
|
33
|
+
export declare const ExtensionStatusSchema: Type.TObject<{
|
|
34
|
+
error: Type.TOptional<Type.TString>;
|
|
35
|
+
name: Type.TString;
|
|
36
|
+
state: Type.TUnion<[Type.TLiteral<"starting">, Type.TLiteral<"ready">, Type.TLiteral<"failed">, Type.TLiteral<"disabled">, Type.TLiteral<"stopped">]>;
|
|
37
|
+
}>;
|
|
38
|
+
export type ExtensionStatus = Static<typeof ExtensionStatusSchema>;
|
|
39
|
+
/** Status of one Frontend Binding. */
|
|
40
|
+
export declare const BindingStatusSchema: Type.TObject<{
|
|
41
|
+
error: Type.TOptional<Type.TString>;
|
|
42
|
+
id: Type.TString;
|
|
43
|
+
state: Type.TUnion<[Type.TLiteral<"starting">, Type.TLiteral<"ready">, Type.TLiteral<"failed">, Type.TLiteral<"disabled">, Type.TLiteral<"stopped">]>;
|
|
44
|
+
type: Type.TString;
|
|
45
|
+
}>;
|
|
46
|
+
export type BindingStatus = Static<typeof BindingStatusSchema>;
|
|
47
|
+
/** Health of one Agent, as the Overview view shows it. */
|
|
48
|
+
export declare const AgentHealthSchema: Type.TObject<{
|
|
49
|
+
activeRuns: Type.TInteger;
|
|
50
|
+
frontends: Type.TArray<Type.TObject<{
|
|
51
|
+
error: Type.TOptional<Type.TString>;
|
|
52
|
+
id: Type.TString;
|
|
53
|
+
state: Type.TUnion<[Type.TLiteral<"starting">, Type.TLiteral<"ready">, Type.TLiteral<"failed">, Type.TLiteral<"disabled">, Type.TLiteral<"stopped">]>;
|
|
54
|
+
type: Type.TString;
|
|
55
|
+
}>>;
|
|
56
|
+
lastError: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
57
|
+
mcpServers: Type.TArray<Type.TObject<{
|
|
58
|
+
error: Type.TOptional<Type.TString>;
|
|
59
|
+
name: Type.TString;
|
|
60
|
+
state: Type.TUnion<[Type.TLiteral<"starting">, Type.TLiteral<"ready">, Type.TLiteral<"failed">, Type.TLiteral<"disabled">, Type.TLiteral<"stopped">]>;
|
|
61
|
+
}>>;
|
|
62
|
+
name: Type.TString;
|
|
63
|
+
pendingRestart: Type.TBoolean;
|
|
64
|
+
plugins: Type.TArray<Type.TObject<{
|
|
65
|
+
error: Type.TOptional<Type.TString>;
|
|
66
|
+
name: Type.TString;
|
|
67
|
+
state: Type.TUnion<[Type.TLiteral<"starting">, Type.TLiteral<"ready">, Type.TLiteral<"failed">, Type.TLiteral<"disabled">, Type.TLiteral<"stopped">]>;
|
|
68
|
+
}>>;
|
|
69
|
+
/** Milliseconds until the next restart attempt, or `null` if no restart waits. */
|
|
70
|
+
restartBackoffMs: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
71
|
+
skillWarnings: Type.TArray<Type.TString>;
|
|
72
|
+
state: Type.TUnion<[Type.TLiteral<"starting">, Type.TLiteral<"running">, Type.TLiteral<"degraded">, Type.TLiteral<"stopped">]>;
|
|
73
|
+
}>;
|
|
74
|
+
export type AgentHealth = Static<typeof AgentHealthSchema>;
|
|
75
|
+
/** Use of one Concurrency Gate key, which is one provider credential. */
|
|
76
|
+
export declare const GatePressureSchema: Type.TObject<{
|
|
77
|
+
credential: Type.TString;
|
|
78
|
+
inUse: Type.TInteger;
|
|
79
|
+
limit: Type.TInteger;
|
|
80
|
+
waiting: Type.TInteger;
|
|
81
|
+
}>;
|
|
82
|
+
export type GatePressure = Static<typeof GatePressureSchema>;
|
|
83
|
+
/** Deployment health for the Overview view and `wheatley status`. */
|
|
84
|
+
export declare const DaemonStatusSchema: Type.TObject<{
|
|
85
|
+
agents: Type.TArray<Type.TObject<{
|
|
86
|
+
activeRuns: Type.TInteger;
|
|
87
|
+
frontends: Type.TArray<Type.TObject<{
|
|
88
|
+
error: Type.TOptional<Type.TString>;
|
|
89
|
+
id: Type.TString;
|
|
90
|
+
state: Type.TUnion<[Type.TLiteral<"starting">, Type.TLiteral<"ready">, Type.TLiteral<"failed">, Type.TLiteral<"disabled">, Type.TLiteral<"stopped">]>;
|
|
91
|
+
type: Type.TString;
|
|
92
|
+
}>>;
|
|
93
|
+
lastError: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
94
|
+
mcpServers: Type.TArray<Type.TObject<{
|
|
95
|
+
error: Type.TOptional<Type.TString>;
|
|
96
|
+
name: Type.TString;
|
|
97
|
+
state: Type.TUnion<[Type.TLiteral<"starting">, Type.TLiteral<"ready">, Type.TLiteral<"failed">, Type.TLiteral<"disabled">, Type.TLiteral<"stopped">]>;
|
|
98
|
+
}>>;
|
|
99
|
+
name: Type.TString;
|
|
100
|
+
pendingRestart: Type.TBoolean;
|
|
101
|
+
plugins: Type.TArray<Type.TObject<{
|
|
102
|
+
error: Type.TOptional<Type.TString>;
|
|
103
|
+
name: Type.TString;
|
|
104
|
+
state: Type.TUnion<[Type.TLiteral<"starting">, Type.TLiteral<"ready">, Type.TLiteral<"failed">, Type.TLiteral<"disabled">, Type.TLiteral<"stopped">]>;
|
|
105
|
+
}>>;
|
|
106
|
+
/** Milliseconds until the next restart attempt, or `null` if no restart waits. */
|
|
107
|
+
restartBackoffMs: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
108
|
+
skillWarnings: Type.TArray<Type.TString>;
|
|
109
|
+
state: Type.TUnion<[Type.TLiteral<"starting">, Type.TLiteral<"running">, Type.TLiteral<"degraded">, Type.TLiteral<"stopped">]>;
|
|
110
|
+
}>>;
|
|
111
|
+
concurrency: Type.TArray<Type.TObject<{
|
|
112
|
+
credential: Type.TString;
|
|
113
|
+
inUse: Type.TInteger;
|
|
114
|
+
limit: Type.TInteger;
|
|
115
|
+
waiting: Type.TInteger;
|
|
116
|
+
}>>;
|
|
117
|
+
protocolVersion: Type.TInteger;
|
|
118
|
+
startedAt: Type.TString;
|
|
119
|
+
uptimeMs: Type.TInteger;
|
|
120
|
+
version: Type.TString;
|
|
121
|
+
}>;
|
|
122
|
+
export type DaemonStatus = Static<typeof DaemonStatusSchema>;
|
|
123
|
+
/** A Permission Policy action. */
|
|
124
|
+
export declare const PermissionActionSchema: Type.TUnion<[Type.TLiteral<"allow">, Type.TLiteral<"ask">, Type.TLiteral<"deny">]>;
|
|
125
|
+
export type PermissionAction = Static<typeof PermissionActionSchema>;
|
|
126
|
+
/**
|
|
127
|
+
* One Permission Policy rule. `tool` is a canonical Tool name with optional `*` wildcards, for example `shell`,
|
|
128
|
+
* `notes:*`, `mcp:github:*`, or `mcp:context7:resolve-library-id`. Matching is case-sensitive, because MCP Tool names
|
|
129
|
+
* can contain uppercase letters.
|
|
130
|
+
*/
|
|
131
|
+
export declare const PermissionRuleSchema: Type.TObject<{
|
|
132
|
+
action: Type.TUnion<[Type.TLiteral<"allow">, Type.TLiteral<"ask">, Type.TLiteral<"deny">]>;
|
|
133
|
+
tool: Type.TString;
|
|
134
|
+
}>;
|
|
135
|
+
export type PermissionRule = Static<typeof PermissionRuleSchema>;
|
|
136
|
+
/** A Sender or Operator decision on an Approval. */
|
|
137
|
+
export declare const ApprovalDecisionSchema: Type.TUnion<[Type.TLiteral<"allow_once">, Type.TLiteral<"allow_conversation">, Type.TLiteral<"allow_always">, Type.TLiteral<"deny">]>;
|
|
138
|
+
export type ApprovalDecision = Static<typeof ApprovalDecisionSchema>;
|
|
139
|
+
/** How an Approval ended. */
|
|
140
|
+
export declare const ApprovalOutcomeSchema: Type.TUnion<[Type.TUnion<[Type.TLiteral<"allow_once">, Type.TLiteral<"allow_conversation">, Type.TLiteral<"allow_always">, Type.TLiteral<"deny">]>, Type.TLiteral<"timeout">, Type.TLiteral<"cancelled">]>;
|
|
141
|
+
export type ApprovalOutcome = Static<typeof ApprovalOutcomeSchema>;
|
|
142
|
+
/** A decision with optional attribution and reason. */
|
|
143
|
+
export declare const ApprovalResolutionSchema: Type.TObject<{
|
|
144
|
+
decision: Type.TUnion<[Type.TLiteral<"allow_once">, Type.TLiteral<"allow_conversation">, Type.TLiteral<"allow_always">, Type.TLiteral<"deny">]>;
|
|
145
|
+
reason: Type.TOptional<Type.TString>;
|
|
146
|
+
resolvedBy: Type.TOptional<Type.TString>;
|
|
147
|
+
}>;
|
|
148
|
+
export type ApprovalResolution = Static<typeof ApprovalResolutionSchema>;
|
|
149
|
+
/** An Approval that waits for a decision. */
|
|
150
|
+
export declare const PendingApprovalSchema: Type.TObject<{
|
|
151
|
+
agent: Type.TString;
|
|
152
|
+
approvalId: Type.TString;
|
|
153
|
+
/** The originating Chat, or `null` for a Run without a Chat. */
|
|
154
|
+
chat: Type.TUnion<[Type.TObject<{
|
|
155
|
+
bindingId: Type.TString;
|
|
156
|
+
chatId: Type.TString;
|
|
157
|
+
}>, Type.TNull]>;
|
|
158
|
+
conversationId: Type.TString;
|
|
159
|
+
createdAt: Type.TString;
|
|
160
|
+
expiresAt: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
161
|
+
/** Formatted Tool input, at most 500 characters, with secret values redacted. */
|
|
162
|
+
inputPreview: Type.TString;
|
|
163
|
+
runId: Type.TString;
|
|
164
|
+
toolName: Type.TString;
|
|
165
|
+
}>;
|
|
166
|
+
export type PendingApproval = Static<typeof PendingApprovalSchema>;
|
|
167
|
+
/** What started a Run. */
|
|
168
|
+
export declare const RunOriginSchema: Type.TUnion<[Type.TObject<{
|
|
169
|
+
bindingId: Type.TString;
|
|
170
|
+
chatId: Type.TString;
|
|
171
|
+
kind: Type.TLiteral<"chat">;
|
|
172
|
+
}>, Type.TObject<{
|
|
173
|
+
kind: Type.TLiteral<"trigger">;
|
|
174
|
+
triggerId: Type.TString;
|
|
175
|
+
}>, Type.TObject<{
|
|
176
|
+
job: Type.TString;
|
|
177
|
+
kind: Type.TLiteral<"maintenance">;
|
|
178
|
+
}>]>;
|
|
179
|
+
export type RunOrigin = Static<typeof RunOriginSchema>;
|
|
180
|
+
/** The state of a Run. */
|
|
181
|
+
export declare const RunStatusSchema: Type.TUnion<[Type.TLiteral<"running">, Type.TLiteral<"waiting_approval">, Type.TLiteral<"completed">, Type.TLiteral<"failed">, Type.TLiteral<"stopped">]>;
|
|
182
|
+
export type RunStatus = Static<typeof RunStatusSchema>;
|
|
183
|
+
/** Token use and cost of a Run. */
|
|
184
|
+
export declare const RunUsageSchema: Type.TObject<{
|
|
185
|
+
costUsd: Type.TOptional<Type.TNumber>;
|
|
186
|
+
inputTokens: Type.TInteger;
|
|
187
|
+
outputTokens: Type.TInteger;
|
|
188
|
+
}>;
|
|
189
|
+
export type RunUsage = Static<typeof RunUsageSchema>;
|
|
190
|
+
/** One Run. */
|
|
191
|
+
export declare const RunSummarySchema: Type.TObject<{
|
|
192
|
+
agent: Type.TString;
|
|
193
|
+
conversationId: Type.TString;
|
|
194
|
+
endedAt: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
195
|
+
error: Type.TOptional<Type.TString>;
|
|
196
|
+
model: Type.TOptional<Type.TString>;
|
|
197
|
+
origin: Type.TUnion<[Type.TObject<{
|
|
198
|
+
bindingId: Type.TString;
|
|
199
|
+
chatId: Type.TString;
|
|
200
|
+
kind: Type.TLiteral<"chat">;
|
|
201
|
+
}>, Type.TObject<{
|
|
202
|
+
kind: Type.TLiteral<"trigger">;
|
|
203
|
+
triggerId: Type.TString;
|
|
204
|
+
}>, Type.TObject<{
|
|
205
|
+
job: Type.TString;
|
|
206
|
+
kind: Type.TLiteral<"maintenance">;
|
|
207
|
+
}>]>;
|
|
208
|
+
runId: Type.TString;
|
|
209
|
+
startedAt: Type.TString;
|
|
210
|
+
status: Type.TUnion<[Type.TLiteral<"running">, Type.TLiteral<"waiting_approval">, Type.TLiteral<"completed">, Type.TLiteral<"failed">, Type.TLiteral<"stopped">]>;
|
|
211
|
+
usage: Type.TOptional<Type.TObject<{
|
|
212
|
+
costUsd: Type.TOptional<Type.TNumber>;
|
|
213
|
+
inputTokens: Type.TInteger;
|
|
214
|
+
outputTokens: Type.TInteger;
|
|
215
|
+
}>>;
|
|
216
|
+
}>;
|
|
217
|
+
export type RunSummary = Static<typeof RunSummarySchema>;
|
|
218
|
+
/** One item of a Run timeline. */
|
|
219
|
+
export declare const RunTimelineItemSchema: Type.TUnion<[Type.TObject<{
|
|
220
|
+
at: Type.TString;
|
|
221
|
+
kind: Type.TLiteral<"user_message">;
|
|
222
|
+
senderDisplayName: Type.TOptional<Type.TString>;
|
|
223
|
+
text: Type.TString;
|
|
224
|
+
}>, Type.TObject<{
|
|
225
|
+
at: Type.TString;
|
|
226
|
+
kind: Type.TLiteral<"assistant_text">;
|
|
227
|
+
text: Type.TString;
|
|
228
|
+
}>, Type.TObject<{
|
|
229
|
+
endedAt: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
230
|
+
inputPreview: Type.TString;
|
|
231
|
+
isError: Type.TOptional<Type.TBoolean>;
|
|
232
|
+
kind: Type.TLiteral<"tool_call">;
|
|
233
|
+
outputPreview: Type.TOptional<Type.TString>;
|
|
234
|
+
startedAt: Type.TString;
|
|
235
|
+
toolCallId: Type.TString;
|
|
236
|
+
toolName: Type.TString;
|
|
237
|
+
}>, Type.TObject<{
|
|
238
|
+
approvalId: Type.TString;
|
|
239
|
+
at: Type.TString;
|
|
240
|
+
decision: Type.TOptional<Type.TUnion<[Type.TUnion<[Type.TLiteral<"allow_once">, Type.TLiteral<"allow_conversation">, Type.TLiteral<"allow_always">, Type.TLiteral<"deny">]>, Type.TLiteral<"timeout">, Type.TLiteral<"cancelled">]>>;
|
|
241
|
+
kind: Type.TLiteral<"approval">;
|
|
242
|
+
toolName: Type.TString;
|
|
243
|
+
}>]>;
|
|
244
|
+
export type RunTimelineItem = Static<typeof RunTimelineItemSchema>;
|
|
245
|
+
/** File metadata of an attachment. */
|
|
246
|
+
export declare const AttachmentInfoSchema: Type.TObject<{
|
|
247
|
+
filename: Type.TString;
|
|
248
|
+
mimeType: Type.TString;
|
|
249
|
+
sizeBytes: Type.TInteger;
|
|
250
|
+
}>;
|
|
251
|
+
export type AttachmentInfo = Static<typeof AttachmentInfoSchema>;
|
|
252
|
+
/** A file that a client uploads with `chat.send` or `chat.ask`. `data` is base64. */
|
|
253
|
+
export declare const AttachmentUploadSchema: Type.TObject<{
|
|
254
|
+
data: Type.TString;
|
|
255
|
+
filename: Type.TString;
|
|
256
|
+
mimeType: Type.TString;
|
|
257
|
+
}>;
|
|
258
|
+
export type AttachmentUpload = Static<typeof AttachmentUploadSchema>;
|
|
259
|
+
/** One message in the CLI and dashboard Chat. */
|
|
260
|
+
export declare const ChatMessageSchema: Type.TObject<{
|
|
261
|
+
at: Type.TString;
|
|
262
|
+
attachments: Type.TOptional<Type.TArray<Type.TObject<{
|
|
263
|
+
filename: Type.TString;
|
|
264
|
+
mimeType: Type.TString;
|
|
265
|
+
sizeBytes: Type.TInteger;
|
|
266
|
+
}>>>;
|
|
267
|
+
messageId: Type.TString;
|
|
268
|
+
role: Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"assistant">]>;
|
|
269
|
+
runId: Type.TOptional<Type.TString>;
|
|
270
|
+
senderDisplayName: Type.TOptional<Type.TString>;
|
|
271
|
+
source: Type.TOptional<Type.TUnion<[Type.TLiteral<"reply">, Type.TLiteral<"command">, Type.TLiteral<"trigger">]>>;
|
|
272
|
+
text: Type.TString;
|
|
273
|
+
}>;
|
|
274
|
+
export type ChatMessage = Static<typeof ChatMessageSchema>;
|
|
275
|
+
/** The built-in Chat commands, without the leading slash. */
|
|
276
|
+
export declare const CommandNameSchema: Type.TUnion<[Type.TLiteral<"new">, Type.TLiteral<"model">, Type.TLiteral<"compact">, Type.TLiteral<"stop">, Type.TLiteral<"goal">, Type.TLiteral<"status">, Type.TLiteral<"restart">]>;
|
|
277
|
+
export type CommandName = Static<typeof CommandNameSchema>;
|
|
278
|
+
/** How a TriggerSchema maps firings to Conversations. */
|
|
279
|
+
export declare const ConversationModeSchema: Type.TUnion<[Type.TLiteral<"per_firing">, Type.TLiteral<"shared">]>;
|
|
280
|
+
export type ConversationMode = Static<typeof ConversationModeSchema>;
|
|
281
|
+
/** The schedule part of a TriggerSchema. */
|
|
282
|
+
export declare const TriggerScheduleSchema: Type.TUnion<[Type.TObject<{
|
|
283
|
+
kind: Type.TLiteral<"cron">;
|
|
284
|
+
/** A 5-field cron expression. */
|
|
285
|
+
schedule: Type.TString;
|
|
286
|
+
/** An IANA time zone, for example `Europe/Berlin`. */
|
|
287
|
+
timezone: Type.TString;
|
|
288
|
+
}>, Type.TObject<{
|
|
289
|
+
at: Type.TString;
|
|
290
|
+
kind: Type.TLiteral<"once">;
|
|
291
|
+
}>, Type.TObject<{
|
|
292
|
+
kind: Type.TLiteral<"webhook">;
|
|
293
|
+
/** The name of the Bearer token secret in `secrets.yaml`. */
|
|
294
|
+
tokenSecret: Type.TString;
|
|
295
|
+
}>]>;
|
|
296
|
+
export type TriggerSchedule = Static<typeof TriggerScheduleSchema>;
|
|
297
|
+
/** Fields of a new TriggerSchema. */
|
|
298
|
+
export declare const TriggerInputSchema: Type.TObject<{
|
|
299
|
+
conversationMode: Type.TOptional<Type.TUnion<[Type.TLiteral<"per_firing">, Type.TLiteral<"shared">]>>;
|
|
300
|
+
name: Type.TString;
|
|
301
|
+
paused: Type.TOptional<Type.TBoolean>;
|
|
302
|
+
/** The instruction for each firing. A webhook firing appends the request body. */
|
|
303
|
+
prompt: Type.TString;
|
|
304
|
+
schedule: Type.TUnion<[Type.TObject<{
|
|
305
|
+
kind: Type.TLiteral<"cron">;
|
|
306
|
+
/** A 5-field cron expression. */
|
|
307
|
+
schedule: Type.TString;
|
|
308
|
+
/** An IANA time zone, for example `Europe/Berlin`. */
|
|
309
|
+
timezone: Type.TString;
|
|
310
|
+
}>, Type.TObject<{
|
|
311
|
+
at: Type.TString;
|
|
312
|
+
kind: Type.TLiteral<"once">;
|
|
313
|
+
}>, Type.TObject<{
|
|
314
|
+
kind: Type.TLiteral<"webhook">;
|
|
315
|
+
/** The name of the Bearer token secret in `secrets.yaml`. */
|
|
316
|
+
tokenSecret: Type.TString;
|
|
317
|
+
}>]>;
|
|
318
|
+
target: Type.TObject<{
|
|
319
|
+
bindingId: Type.TString;
|
|
320
|
+
chatId: Type.TString;
|
|
321
|
+
}>;
|
|
322
|
+
}>;
|
|
323
|
+
export type TriggerInput = Static<typeof TriggerInputSchema>;
|
|
324
|
+
/** Fields to change on a TriggerSchema. Absent fields stay the same. */
|
|
325
|
+
export declare const TriggerPatchSchema: Type.TObject<{
|
|
326
|
+
conversationMode: Type.TOptional<Type.TUnion<[Type.TLiteral<"per_firing">, Type.TLiteral<"shared">]>>;
|
|
327
|
+
name: Type.TOptional<Type.TString>;
|
|
328
|
+
paused: Type.TOptional<Type.TBoolean>;
|
|
329
|
+
prompt: Type.TOptional<Type.TString>;
|
|
330
|
+
schedule: Type.TOptional<Type.TUnion<[Type.TObject<{
|
|
331
|
+
kind: Type.TLiteral<"cron">;
|
|
332
|
+
/** A 5-field cron expression. */
|
|
333
|
+
schedule: Type.TString;
|
|
334
|
+
/** An IANA time zone, for example `Europe/Berlin`. */
|
|
335
|
+
timezone: Type.TString;
|
|
336
|
+
}>, Type.TObject<{
|
|
337
|
+
at: Type.TString;
|
|
338
|
+
kind: Type.TLiteral<"once">;
|
|
339
|
+
}>, Type.TObject<{
|
|
340
|
+
kind: Type.TLiteral<"webhook">;
|
|
341
|
+
/** The name of the Bearer token secret in `secrets.yaml`. */
|
|
342
|
+
tokenSecret: Type.TString;
|
|
343
|
+
}>]>>;
|
|
344
|
+
target: Type.TOptional<Type.TObject<{
|
|
345
|
+
bindingId: Type.TString;
|
|
346
|
+
chatId: Type.TString;
|
|
347
|
+
}>>;
|
|
348
|
+
}>;
|
|
349
|
+
export type TriggerPatch = Static<typeof TriggerPatchSchema>;
|
|
350
|
+
/** A stored TriggerSchema. */
|
|
351
|
+
export declare const TriggerSchema: Type.TObject<{
|
|
352
|
+
conversationMode: Type.TUnion<[Type.TLiteral<"per_firing">, Type.TLiteral<"shared">]>;
|
|
353
|
+
createdAt: Type.TString;
|
|
354
|
+
/** Agents create `cron` and `once` Triggers through Tools. Only the Operator creates `webhook` Triggers. */
|
|
355
|
+
createdBy: Type.TUnion<[Type.TLiteral<"agent">, Type.TLiteral<"operator">]>;
|
|
356
|
+
id: Type.TString;
|
|
357
|
+
lastFiredAt: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
358
|
+
name: Type.TString;
|
|
359
|
+
nextFireAt: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
360
|
+
paused: Type.TBoolean;
|
|
361
|
+
prompt: Type.TString;
|
|
362
|
+
schedule: Type.TUnion<[Type.TObject<{
|
|
363
|
+
kind: Type.TLiteral<"cron">;
|
|
364
|
+
/** A 5-field cron expression. */
|
|
365
|
+
schedule: Type.TString;
|
|
366
|
+
/** An IANA time zone, for example `Europe/Berlin`. */
|
|
367
|
+
timezone: Type.TString;
|
|
368
|
+
}>, Type.TObject<{
|
|
369
|
+
at: Type.TString;
|
|
370
|
+
kind: Type.TLiteral<"once">;
|
|
371
|
+
}>, Type.TObject<{
|
|
372
|
+
kind: Type.TLiteral<"webhook">;
|
|
373
|
+
/** The name of the Bearer token secret in `secrets.yaml`. */
|
|
374
|
+
tokenSecret: Type.TString;
|
|
375
|
+
}>]>;
|
|
376
|
+
target: Type.TObject<{
|
|
377
|
+
bindingId: Type.TString;
|
|
378
|
+
chatId: Type.TString;
|
|
379
|
+
}>;
|
|
380
|
+
}>;
|
|
381
|
+
export type Trigger = Static<typeof TriggerSchema>;
|
|
382
|
+
/** The kinds of Frontend delivery. */
|
|
383
|
+
export declare const DeliveryKindSchema: Type.TUnion<[Type.TLiteral<"message">, Type.TLiteral<"approval_requested">, Type.TLiteral<"approval_resolved">]>;
|
|
384
|
+
export type DeliveryKind = Static<typeof DeliveryKindSchema>;
|
|
385
|
+
/** An outbox entry that failed. */
|
|
386
|
+
export declare const FailedDeliverySchema: Type.TObject<{
|
|
387
|
+
agent: Type.TString;
|
|
388
|
+
attempts: Type.TInteger;
|
|
389
|
+
bindingId: Type.TString;
|
|
390
|
+
chatId: Type.TString;
|
|
391
|
+
createdAt: Type.TString;
|
|
392
|
+
deliveryId: Type.TString;
|
|
393
|
+
failedAt: Type.TString;
|
|
394
|
+
kind: Type.TUnion<[Type.TLiteral<"message">, Type.TLiteral<"approval_requested">, Type.TLiteral<"approval_resolved">]>;
|
|
395
|
+
lastError: Type.TString;
|
|
396
|
+
permanent: Type.TBoolean;
|
|
397
|
+
preview: Type.TString;
|
|
398
|
+
}>;
|
|
399
|
+
export type FailedDelivery = Static<typeof FailedDeliverySchema>;
|
|
400
|
+
/** A Memory file name: `MEMORY` for `MEMORY.md`, otherwise the slug of `<slug>.md`. */
|
|
401
|
+
export declare const MemoryNameSchema: Type.TString;
|
|
402
|
+
export type MemoryName = Static<typeof MemoryNameSchema>;
|
|
403
|
+
/** Metadata of one Memory file. */
|
|
404
|
+
export declare const MemoryFileSchema: Type.TObject<{
|
|
405
|
+
chars: Type.TInteger;
|
|
406
|
+
name: Type.TString;
|
|
407
|
+
updatedAt: Type.TString;
|
|
408
|
+
}>;
|
|
409
|
+
export type MemoryFile = Static<typeof MemoryFileSchema>;
|
|
410
|
+
/** The `MEMORY.md` character budget. */
|
|
411
|
+
export declare const MemoryBudgetSchema: Type.TObject<{
|
|
412
|
+
maxChars: Type.TInteger;
|
|
413
|
+
usedChars: Type.TInteger;
|
|
414
|
+
}>;
|
|
415
|
+
export type MemoryBudget = Static<typeof MemoryBudgetSchema>;
|
|
416
|
+
/** Where a Memory search looks. */
|
|
417
|
+
export declare const MemorySearchScopeSchema: Type.TUnion<[Type.TLiteral<"memory">, Type.TLiteral<"conversations">, Type.TLiteral<"all">]>;
|
|
418
|
+
export type MemorySearchScope = Static<typeof MemorySearchScopeSchema>;
|
|
419
|
+
/** One Memory search result. */
|
|
420
|
+
export declare const MemorySearchHitSchema: Type.TUnion<[Type.TObject<{
|
|
421
|
+
kind: Type.TLiteral<"memory">;
|
|
422
|
+
name: Type.TString;
|
|
423
|
+
score: Type.TNumber;
|
|
424
|
+
snippet: Type.TString;
|
|
425
|
+
}>, Type.TObject<{
|
|
426
|
+
at: Type.TString;
|
|
427
|
+
conversationId: Type.TString;
|
|
428
|
+
kind: Type.TLiteral<"conversation">;
|
|
429
|
+
role: Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"assistant">]>;
|
|
430
|
+
score: Type.TNumber;
|
|
431
|
+
snippet: Type.TString;
|
|
432
|
+
}>]>;
|
|
433
|
+
export type MemorySearchHit = Static<typeof MemorySearchHitSchema>;
|
|
434
|
+
/** One run of the Memory consolidation job. */
|
|
435
|
+
export declare const ConsolidationLogEntrySchema: Type.TObject<{
|
|
436
|
+
endedAt: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
437
|
+
error: Type.TOptional<Type.TString>;
|
|
438
|
+
id: Type.TString;
|
|
439
|
+
runId: Type.TOptional<Type.TString>;
|
|
440
|
+
startedAt: Type.TString;
|
|
441
|
+
status: Type.TUnion<[Type.TLiteral<"running">, Type.TLiteral<"completed">, Type.TLiteral<"failed">]>;
|
|
442
|
+
summary: Type.TOptional<Type.TString>;
|
|
443
|
+
}>;
|
|
444
|
+
export type ConsolidationLogEntry = Static<typeof ConsolidationLogEntrySchema>;
|
|
445
|
+
/** Where a secret value comes from. */
|
|
446
|
+
export declare const SecretSourceSchema: Type.TUnion<[Type.TLiteral<"file">, Type.TLiteral<"env">, Type.TLiteral<"both">]>;
|
|
447
|
+
export type SecretSource = Static<typeof SecretSourceSchema>;
|
|
448
|
+
/** A secret and the config entries that refer to it. */
|
|
449
|
+
export declare const SecretInfoSchema: Type.TObject<{
|
|
450
|
+
name: Type.TString;
|
|
451
|
+
references: Type.TArray<Type.TObject<{
|
|
452
|
+
agent: Type.TOptional<Type.TString>;
|
|
453
|
+
id: Type.TString;
|
|
454
|
+
kind: Type.TUnion<[Type.TLiteral<"provider">, Type.TLiteral<"frontend">, Type.TLiteral<"mcp">, Type.TLiteral<"plugin">, Type.TLiteral<"trigger">]>;
|
|
455
|
+
}>>;
|
|
456
|
+
source: Type.TUnion<[Type.TLiteral<"file">, Type.TLiteral<"env">, Type.TLiteral<"both">]>;
|
|
457
|
+
}>;
|
|
458
|
+
export type SecretInfo = Static<typeof SecretInfoSchema>;
|
|
459
|
+
/** A diagnostic log level. */
|
|
460
|
+
export declare const LogLevelSchema: Type.TUnion<[Type.TLiteral<"debug">, Type.TLiteral<"info">, Type.TLiteral<"warn">, Type.TLiteral<"error">]>;
|
|
461
|
+
export type LogLevel = Static<typeof LogLevelSchema>;
|
|
462
|
+
/** One diagnostic log record. Records never contain secret values. */
|
|
463
|
+
export declare const LogRecordSchema: Type.TObject<{
|
|
464
|
+
agent: Type.TOptional<Type.TString>;
|
|
465
|
+
at: Type.TString;
|
|
466
|
+
fields: Type.TOptional<Type.TRecord<"^.*$", Type.TUnknown>>;
|
|
467
|
+
level: Type.TUnion<[Type.TLiteral<"debug">, Type.TLiteral<"info">, Type.TLiteral<"warn">, Type.TLiteral<"error">]>;
|
|
468
|
+
message: Type.TString;
|
|
469
|
+
module: Type.TString;
|
|
470
|
+
/** Increases by one for each record in a daemon process. */
|
|
471
|
+
seq: Type.TInteger;
|
|
472
|
+
}>;
|
|
473
|
+
export type LogRecord = Static<typeof LogRecordSchema>;
|
|
474
|
+
/** A config change that waits for a restart to take effect. */
|
|
475
|
+
export declare const PendingRestartSchema: Type.TUnion<[Type.TObject<{
|
|
476
|
+
agent: Type.TString;
|
|
477
|
+
kind: Type.TLiteral<"agent">;
|
|
478
|
+
}>, Type.TObject<{
|
|
479
|
+
agent: Type.TString;
|
|
480
|
+
bindingId: Type.TString;
|
|
481
|
+
kind: Type.TLiteral<"binding">;
|
|
482
|
+
}>, Type.TObject<{
|
|
483
|
+
kind: Type.TLiteral<"daemon">;
|
|
484
|
+
reason: Type.TString;
|
|
485
|
+
}>]>;
|
|
486
|
+
export type PendingRestart = Static<typeof PendingRestartSchema>;
|
|
487
|
+
/** One problem in a config file. `path` is a JSON Pointer, for example `/agents/home/model`. */
|
|
488
|
+
export declare const ConfigIssueSchema: Type.TObject<{
|
|
489
|
+
message: Type.TString;
|
|
490
|
+
path: Type.TString;
|
|
491
|
+
}>;
|
|
492
|
+
export type ConfigIssue = Static<typeof ConfigIssueSchema>;
|
|
493
|
+
/** Where a Tool comes from. */
|
|
494
|
+
export declare const ToolSourceSchema: Type.TUnion<[Type.TLiteral<"builtin">, Type.TLiteral<"plugin">, Type.TLiteral<"mcp">]>;
|
|
495
|
+
export type ToolSource = Static<typeof ToolSourceSchema>;
|
|
496
|
+
/** A Tool that an Agent offers, with its effective Permission Policy action. */
|
|
497
|
+
export declare const ToolInfoSchema: Type.TObject<{
|
|
498
|
+
action: Type.TUnion<[Type.TLiteral<"allow">, Type.TLiteral<"ask">, Type.TLiteral<"deny">]>;
|
|
499
|
+
description: Type.TString;
|
|
500
|
+
name: Type.TString;
|
|
501
|
+
source: Type.TUnion<[Type.TLiteral<"builtin">, Type.TLiteral<"plugin">, Type.TLiteral<"mcp">]>;
|
|
502
|
+
}>;
|
|
503
|
+
export type ToolInfo = Static<typeof ToolInfoSchema>;
|
|
504
|
+
/** A discovered Skill. */
|
|
505
|
+
export declare const SkillInfoSchema: Type.TObject<{
|
|
506
|
+
description: Type.TString;
|
|
507
|
+
name: Type.TString;
|
|
508
|
+
origin: Type.TUnion<[Type.TLiteral<"shared">, Type.TLiteral<"agent">]>;
|
|
509
|
+
path: Type.TString;
|
|
510
|
+
}>;
|
|
511
|
+
export type SkillInfo = Static<typeof SkillInfoSchema>;
|
|
512
|
+
//# sourceMappingURL=domain.d.ts.map
|