@onkeiki/agents 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/dist/Alert.d.ts +56 -0
- package/dist/Alert.d.ts.map +1 -0
- package/dist/Alert.js +8 -0
- package/dist/Alert.js.map +1 -0
- package/dist/Entity.d.ts +158 -0
- package/dist/Entity.d.ts.map +1 -0
- package/dist/Entity.js +289 -0
- package/dist/Entity.js.map +1 -0
- package/dist/Kit.d.ts +138 -0
- package/dist/Kit.d.ts.map +1 -0
- package/dist/Kit.js +517 -0
- package/dist/Kit.js.map +1 -0
- package/dist/OpenApi.d.ts +151 -0
- package/dist/OpenApi.d.ts.map +1 -0
- package/dist/OpenApi.js +222 -0
- package/dist/OpenApi.js.map +1 -0
- package/dist/Plugin.d.ts +183 -0
- package/dist/Plugin.d.ts.map +1 -0
- package/dist/Plugin.js +10 -0
- package/dist/Plugin.js.map +1 -0
- package/dist/Server.d.ts +71 -0
- package/dist/Server.d.ts.map +1 -0
- package/dist/Server.js +476 -0
- package/dist/Server.js.map +1 -0
- package/dist/Tool.d.ts +86 -0
- package/dist/Tool.d.ts.map +1 -0
- package/dist/Tool.js +27 -0
- package/dist/Tool.js.map +1 -0
- package/dist/bundle.d.ts +17 -0
- package/dist/bundle.d.ts.map +1 -0
- package/dist/bundle.js +101 -0
- package/dist/bundle.js.map +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/services/Blackboard.d.ts +18 -0
- package/dist/services/Blackboard.d.ts.map +1 -0
- package/dist/services/Blackboard.js +4 -0
- package/dist/services/Blackboard.js.map +1 -0
- package/dist/services/Observability.d.ts +102 -0
- package/dist/services/Observability.d.ts.map +1 -0
- package/dist/services/Observability.js +238 -0
- package/dist/services/Observability.js.map +1 -0
- package/dist/services/Platform.d.ts +112 -0
- package/dist/services/Platform.d.ts.map +1 -0
- package/dist/services/Platform.js +13 -0
- package/dist/services/Platform.js.map +1 -0
- package/dist/services/PluginDb.d.ts +44 -0
- package/dist/services/PluginDb.d.ts.map +1 -0
- package/dist/services/PluginDb.js +5 -0
- package/dist/services/PluginDb.js.map +1 -0
- package/dist/services/Sandbox.d.ts +68 -0
- package/dist/services/Sandbox.d.ts.map +1 -0
- package/dist/services/Sandbox.js +4 -0
- package/dist/services/Sandbox.js.map +1 -0
- package/dist/services/Steering.d.ts +46 -0
- package/dist/services/Steering.d.ts.map +1 -0
- package/dist/services/Steering.js +4 -0
- package/dist/services/Steering.js.map +1 -0
- package/dist/services/Storage.d.ts +63 -0
- package/dist/services/Storage.d.ts.map +1 -0
- package/dist/services/Storage.js +13 -0
- package/dist/services/Storage.js.map +1 -0
- package/dist/services/Transport.d.ts +19 -0
- package/dist/services/Transport.d.ts.map +1 -0
- package/dist/services/Transport.js +4 -0
- package/dist/services/Transport.js.map +1 -0
- package/dist/services/index.d.ts +9 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +9 -0
- package/dist/services/index.js.map +1 -0
- package/dist/types/config.d.ts +526 -0
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/config.js +2 -0
- package/dist/types/config.js.map +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +4 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/message.d.ts +54 -0
- package/dist/types/message.d.ts.map +1 -0
- package/dist/types/message.js +47 -0
- package/dist/types/message.js.map +1 -0
- package/dist/types/user.d.ts +16 -0
- package/dist/types/user.d.ts.map +1 -0
- package/dist/types/user.js +14 -0
- package/dist/types/user.js.map +1 -0
- package/package.json +39 -0
- package/src/Alert.ts +51 -0
- package/src/Entity.ts +543 -0
- package/src/Kit.ts +705 -0
- package/src/OpenApi.ts +343 -0
- package/src/Plugin.ts +209 -0
- package/src/Server.ts +618 -0
- package/src/Tool.ts +110 -0
- package/src/bundle.ts +114 -0
- package/src/index.ts +209 -0
- package/src/services/Blackboard.ts +19 -0
- package/src/services/Observability.ts +320 -0
- package/src/services/Platform.ts +125 -0
- package/src/services/PluginDb.ts +48 -0
- package/src/services/Sandbox.ts +74 -0
- package/src/services/Steering.ts +45 -0
- package/src/services/Storage.ts +76 -0
- package/src/services/Transport.ts +21 -0
- package/src/services/index.ts +8 -0
- package/src/types/config.ts +531 -0
- package/src/types/index.ts +3 -0
- package/src/types/message.ts +60 -0
- package/src/types/user.ts +17 -0
|
@@ -0,0 +1,526 @@
|
|
|
1
|
+
import type { Effect, Layer } from 'effect';
|
|
2
|
+
import type { UserProfile } from './user.js';
|
|
3
|
+
import type { InboundMessage, DeliveryStatus } from './message.js';
|
|
4
|
+
import type { Storage, StorageError } from '../services/Storage.js';
|
|
5
|
+
import type { AgentKitPlugin } from '../Plugin.js';
|
|
6
|
+
import type { ToolDefinition } from '../Tool.js';
|
|
7
|
+
import type { AlertDefinition } from '../Alert.js';
|
|
8
|
+
import type { TraceExporter } from '../services/Observability.js';
|
|
9
|
+
import type { PluginDbService } from '../services/PluginDb.js';
|
|
10
|
+
export type DurationInput = `${number} ${'seconds' | 'minutes' | 'hours'}` | number;
|
|
11
|
+
export type HarnessConfig = {
|
|
12
|
+
readonly type: 'flue' | 'hermes';
|
|
13
|
+
readonly dispatchUrl?: string;
|
|
14
|
+
readonly timeoutMs?: DurationInput;
|
|
15
|
+
readonly connectivity?: 'push' | 'relay';
|
|
16
|
+
};
|
|
17
|
+
export type PromptContext = {
|
|
18
|
+
readonly user: UserProfile;
|
|
19
|
+
readonly now: Date;
|
|
20
|
+
readonly phone: string;
|
|
21
|
+
readonly context: RetrievedContext;
|
|
22
|
+
/** True when this turn carries the user's first-ever message (no prior history). */
|
|
23
|
+
readonly isFirstInteraction: boolean;
|
|
24
|
+
/** Conversation history given to the model this turn, oldest first. */
|
|
25
|
+
readonly history: ReadonlyArray<{
|
|
26
|
+
readonly content: string;
|
|
27
|
+
readonly direction: 'inbound' | 'outbound';
|
|
28
|
+
}>;
|
|
29
|
+
/**
|
|
30
|
+
* True when the prompt is being rendered once for platform storage
|
|
31
|
+
* (kit.sync) rather than for a live turn. Omit time-of-day content in that
|
|
32
|
+
* case — the platform injects a fresh Current Date/Time section per turn.
|
|
33
|
+
*/
|
|
34
|
+
readonly staticSync?: boolean;
|
|
35
|
+
};
|
|
36
|
+
/** Turn-loop progress visible to {@link TurnHooks} after each step. */
|
|
37
|
+
export type TurnHookState = {
|
|
38
|
+
/** 0-based index of the step about to run (prepareStep) or just finished (stopWhen). */
|
|
39
|
+
readonly step: number;
|
|
40
|
+
/** Tool calls executed so far this turn. */
|
|
41
|
+
readonly toolCalls: number;
|
|
42
|
+
/** Name of the most recently executed tool, if any. */
|
|
43
|
+
readonly lastToolName?: string;
|
|
44
|
+
/** Error message from the most recent tool call, when it failed. */
|
|
45
|
+
readonly lastToolError?: string;
|
|
46
|
+
/** JSON-serialized input of the most recent tool call, if any. */
|
|
47
|
+
readonly lastToolInput?: string;
|
|
48
|
+
/** Consecutive identical tool failures (same tool, input, and error) ending at the most recent call. 0 when the last call succeeded. */
|
|
49
|
+
readonly identicalFailureStreak: number;
|
|
50
|
+
};
|
|
51
|
+
/** What {@link TurnHooks.reviewReply} sees when a candidate final reply is produced. */
|
|
52
|
+
export type TurnReviewState = {
|
|
53
|
+
/** Tool calls executed this turn, in order. */
|
|
54
|
+
readonly toolResults: ReadonlyArray<{
|
|
55
|
+
readonly name: string;
|
|
56
|
+
readonly input: unknown;
|
|
57
|
+
readonly output: unknown;
|
|
58
|
+
}>;
|
|
59
|
+
/** 0-based count of review retries already spent this turn. */
|
|
60
|
+
readonly attempt: number;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Developer hooks into the agent turn loop.
|
|
64
|
+
*/
|
|
65
|
+
export type TurnHooks = {
|
|
66
|
+
/** Rewrite the final reply before it is returned (sanitizers, length caps, sign-offs). */
|
|
67
|
+
readonly transformReply?: (reply: string, ctx: PromptContext) => string;
|
|
68
|
+
/** Called before each LLM step; may inject an extra system message for that step only. */
|
|
69
|
+
readonly prepareStep?: (state: TurnHookState, ctx: PromptContext) => {
|
|
70
|
+
readonly appendSystem?: string;
|
|
71
|
+
} | undefined;
|
|
72
|
+
/** Extra stop condition checked after each step's tool calls. Return true to end the turn. */
|
|
73
|
+
readonly stopWhen?: (state: TurnHookState, ctx: PromptContext) => boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Gate a candidate final reply (called on the post-`transformReply` text —
|
|
76
|
+
* what would actually be delivered). Return `{ retryWith }` to reject it:
|
|
77
|
+
* the corrective text is appended as a system message and the turn loop
|
|
78
|
+
* continues (bounded retries). A rejected reply is never delivered — if
|
|
79
|
+
* retries run out or the step budget ends on a rejected candidate, the
|
|
80
|
+
* turn returns an empty reply instead.
|
|
81
|
+
*/
|
|
82
|
+
readonly reviewReply?: (reply: string, ctx: PromptContext, state: TurnReviewState) => {
|
|
83
|
+
readonly retryWith?: string;
|
|
84
|
+
} | undefined;
|
|
85
|
+
};
|
|
86
|
+
export type RetrievedContext = {
|
|
87
|
+
readonly memorySummary: string | null;
|
|
88
|
+
readonly relevantFacts: ReadonlyArray<{
|
|
89
|
+
fact: string;
|
|
90
|
+
category: string;
|
|
91
|
+
}>;
|
|
92
|
+
};
|
|
93
|
+
export type ResolveNumberContext = {
|
|
94
|
+
readonly phone: string;
|
|
95
|
+
readonly user: UserProfile;
|
|
96
|
+
readonly direction: 'inbound' | 'outbound';
|
|
97
|
+
readonly platform: {
|
|
98
|
+
readonly getUserMeta: (phone: string, key: string) => Effect.Effect<string | null>;
|
|
99
|
+
readonly setUserMeta: (phone: string, key: string, value: string) => Effect.Effect<void>;
|
|
100
|
+
readonly acquireLine: (opts: AcquireLineOpts) => Effect.Effect<PhoneLine>;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
export type AcquireLineOpts = {
|
|
104
|
+
readonly pool: string;
|
|
105
|
+
readonly strategy: 'least-active' | 'round-robin' | 'random' | 'geo-closest';
|
|
106
|
+
readonly sticky?: boolean;
|
|
107
|
+
readonly region?: string;
|
|
108
|
+
};
|
|
109
|
+
export type PhoneLine = {
|
|
110
|
+
readonly number: string;
|
|
111
|
+
readonly pool: string;
|
|
112
|
+
readonly region: string;
|
|
113
|
+
readonly activeConversations: number;
|
|
114
|
+
};
|
|
115
|
+
export type MemoryConfig = {
|
|
116
|
+
readonly enabled: boolean;
|
|
117
|
+
readonly provider: 'supermemory';
|
|
118
|
+
readonly autoRetrieve?: boolean;
|
|
119
|
+
readonly categories?: ReadonlyArray<string>;
|
|
120
|
+
};
|
|
121
|
+
export type BrowserConfig = {
|
|
122
|
+
readonly enabled: boolean;
|
|
123
|
+
readonly handoff?: boolean;
|
|
124
|
+
readonly screenshotDelivery?: boolean;
|
|
125
|
+
};
|
|
126
|
+
export type SandboxConfig = {
|
|
127
|
+
readonly enabled: boolean;
|
|
128
|
+
readonly persistent?: boolean;
|
|
129
|
+
readonly maxExecTime?: DurationInput;
|
|
130
|
+
};
|
|
131
|
+
export type ExecutorConfig = {
|
|
132
|
+
readonly enabled: boolean;
|
|
133
|
+
readonly maxConcurrent?: number;
|
|
134
|
+
readonly timeout?: DurationInput;
|
|
135
|
+
readonly onComplete?: 'notify' | 'silent';
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Executor.sh–backed custom tool support (the `mcp()` plugin). Lets conversation
|
|
139
|
+
* users connect their own remote MCP servers and OpenAPI specs at runtime.
|
|
140
|
+
* Requires the Sandbox capability.
|
|
141
|
+
*/
|
|
142
|
+
export type McpConfig = {
|
|
143
|
+
readonly enabled: boolean;
|
|
144
|
+
/** Max sources (MCP servers + OpenAPI specs) a user can connect. */
|
|
145
|
+
readonly maxServers?: number;
|
|
146
|
+
/** Whether conversation users may add sources themselves. */
|
|
147
|
+
readonly userCanAdd?: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Developer-declared per-user connections. Each entry names an OpenAPI
|
|
150
|
+
* provider (e.g. Gmail) that every conversation user authorizes
|
|
151
|
+
* individually: the agent texts them a fresh connect link, they complete
|
|
152
|
+
* OAuth in the browser, and the resulting credential lives in that user's
|
|
153
|
+
* own Executor daemon — never shared across users or exposed to the model.
|
|
154
|
+
*/
|
|
155
|
+
readonly userConnections?: ReadonlyArray<UserConnectionDefinition>;
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* OAuth app config for a user connection. The client id/secret are named
|
|
159
|
+
* developer secrets (synced via `secrets`), resolved server-side at connect
|
|
160
|
+
* time — the values never appear in the agent config or model context.
|
|
161
|
+
*/
|
|
162
|
+
export type UserConnectionOAuth = {
|
|
163
|
+
readonly authorizationUrl: string;
|
|
164
|
+
readonly tokenUrl: string;
|
|
165
|
+
/** Developer-secret name holding the OAuth client id. */
|
|
166
|
+
readonly clientIdSecret: string;
|
|
167
|
+
/** Developer-secret name holding the OAuth client secret. */
|
|
168
|
+
readonly clientSecretSecret: string;
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* The connection's liveness probe: one read-only operation the user's daemon
|
|
172
|
+
* runs against the real provider to answer "is this credential still alive?".
|
|
173
|
+
* Without it health falls back to local credential resolution, which cannot
|
|
174
|
+
* detect a token revoked upstream — declare one for every connection.
|
|
175
|
+
*/
|
|
176
|
+
export type UserConnectionHealthCheck = {
|
|
177
|
+
/** Operation name as it appears in the spec (e.g. `users.getProfile`). */
|
|
178
|
+
readonly operation: string;
|
|
179
|
+
/** Pinned arguments the operation needs (e.g. Gmail's `{ userId: "me" }`). */
|
|
180
|
+
readonly args?: Readonly<Record<string, unknown>>;
|
|
181
|
+
/** Dot-path into the response shown as the connection's identity. */
|
|
182
|
+
readonly identityField?: string;
|
|
183
|
+
};
|
|
184
|
+
export type UserConnectionDefinition = {
|
|
185
|
+
/** Stable connection name, also the Executor source slug (e.g. "gmail"). */
|
|
186
|
+
readonly name: string;
|
|
187
|
+
/** Shown to the model so it knows when to offer connecting this provider. */
|
|
188
|
+
readonly description?: string;
|
|
189
|
+
/** Alternate names users may say for THIS connection (e.g. "gcal"). */
|
|
190
|
+
readonly aliases?: ReadonlyArray<string>;
|
|
191
|
+
/**
|
|
192
|
+
* The company behind the provider ("google", "microsoft"). Not an alias: two
|
|
193
|
+
* connections may share a vendor, and a shared vendor word is ambiguous
|
|
194
|
+
* rather than a match, so it can never silently select one of them.
|
|
195
|
+
*/
|
|
196
|
+
readonly vendor?: string;
|
|
197
|
+
/**
|
|
198
|
+
* What this connection lets the agent do, as `domain.verb` ("mail.read",
|
|
199
|
+
* "calendar.write"). Declaring these lets a caller that says a vendor word
|
|
200
|
+
* plus what it needs ("google", "calendar") resolve without being asked.
|
|
201
|
+
*/
|
|
202
|
+
readonly capabilities?: ReadonlyArray<string>;
|
|
203
|
+
/** OpenAPI spec URL registered as the Executor source. */
|
|
204
|
+
readonly spec: string;
|
|
205
|
+
/** Override for the API base URL when the spec's `servers` entry is wrong. */
|
|
206
|
+
readonly baseUrl?: string;
|
|
207
|
+
readonly oauth: UserConnectionOAuth;
|
|
208
|
+
readonly healthCheck?: UserConnectionHealthCheck;
|
|
209
|
+
};
|
|
210
|
+
export type SteeringConfig = {
|
|
211
|
+
readonly debounceWindow: DurationInput;
|
|
212
|
+
readonly midTurnStrategy: 'interrupt' | 'append' | 'queue';
|
|
213
|
+
readonly maxBatch: number;
|
|
214
|
+
readonly classify?: (pending: ReadonlyArray<InboundMessage>, incoming: InboundMessage) => Effect.Effect<'steer' | 'new-turn'>;
|
|
215
|
+
};
|
|
216
|
+
export type MediaActionConfig = {
|
|
217
|
+
readonly action: 'transcribe' | 'describe' | 'extract' | 'ignore' | 'pass-url' | 'pass-raw';
|
|
218
|
+
readonly model?: string;
|
|
219
|
+
readonly prompt?: string;
|
|
220
|
+
readonly maxSize?: string;
|
|
221
|
+
readonly format?: (content: string) => string;
|
|
222
|
+
};
|
|
223
|
+
export type MediaConfig = {
|
|
224
|
+
readonly audio: MediaActionConfig;
|
|
225
|
+
readonly image: MediaActionConfig;
|
|
226
|
+
readonly video: MediaActionConfig;
|
|
227
|
+
readonly document: MediaActionConfig;
|
|
228
|
+
readonly fallback: string;
|
|
229
|
+
};
|
|
230
|
+
export type EscalationRoute = {
|
|
231
|
+
readonly webhook?: string;
|
|
232
|
+
readonly slack?: {
|
|
233
|
+
readonly channel: string;
|
|
234
|
+
};
|
|
235
|
+
readonly email?: string;
|
|
236
|
+
};
|
|
237
|
+
export type EscalationConfig = {
|
|
238
|
+
readonly enabled: boolean;
|
|
239
|
+
readonly requireConfirmation?: boolean;
|
|
240
|
+
readonly routes: EscalationRoute;
|
|
241
|
+
};
|
|
242
|
+
export type EventHandlers = {
|
|
243
|
+
readonly onInbound?: (msg: InboundMessage) => Effect.Effect<{
|
|
244
|
+
proceed: boolean;
|
|
245
|
+
enrichment?: Record<string, unknown>;
|
|
246
|
+
}>;
|
|
247
|
+
readonly onOutbound?: (msg: {
|
|
248
|
+
phone: string;
|
|
249
|
+
text: string;
|
|
250
|
+
messageId: string;
|
|
251
|
+
}) => Effect.Effect<void>;
|
|
252
|
+
readonly onDeliveryStatus?: (status: DeliveryStatus) => Effect.Effect<void>;
|
|
253
|
+
readonly onNewUser?: (event: {
|
|
254
|
+
phone: string;
|
|
255
|
+
firstMessage: string;
|
|
256
|
+
}) => Effect.Effect<void>;
|
|
257
|
+
readonly onOptOut?: (event: {
|
|
258
|
+
phone: string;
|
|
259
|
+
}) => Effect.Effect<void>;
|
|
260
|
+
};
|
|
261
|
+
export type ObservabilityConfig = {
|
|
262
|
+
readonly enabled: boolean;
|
|
263
|
+
readonly exporters: ReadonlyArray<TraceExporter>;
|
|
264
|
+
readonly sampleRate?: number;
|
|
265
|
+
readonly redactInputs?: boolean;
|
|
266
|
+
readonly redactOutputs?: boolean;
|
|
267
|
+
};
|
|
268
|
+
/**
|
|
269
|
+
* A developer-defined loop template synced to the platform with the agent.
|
|
270
|
+
* The model creates it with `create_loop { preset: <name> }` — the prompt and
|
|
271
|
+
* schedule come from this definition, so they never travel through a tool call.
|
|
272
|
+
*/
|
|
273
|
+
export type LoopPresetDefinition = {
|
|
274
|
+
readonly name: string;
|
|
275
|
+
/** Shown to the model so it knows when to offer this loop. */
|
|
276
|
+
readonly description: string;
|
|
277
|
+
readonly prompt: string;
|
|
278
|
+
readonly scheduleType: 'once' | 'cron' | 'interval';
|
|
279
|
+
readonly scheduleExpression: string;
|
|
280
|
+
readonly timezone?: string;
|
|
281
|
+
readonly quiet?: boolean;
|
|
282
|
+
};
|
|
283
|
+
export type LoopsConfig = {
|
|
284
|
+
readonly enabled: boolean;
|
|
285
|
+
readonly presets?: ReadonlyArray<LoopPresetDefinition>;
|
|
286
|
+
};
|
|
287
|
+
/**
|
|
288
|
+
* A reference to an already-published capability, pinned to an exact version.
|
|
289
|
+
* `publisher` defaults to `official`. See docs/capabilities.md.
|
|
290
|
+
*/
|
|
291
|
+
export type CapabilityRef = {
|
|
292
|
+
readonly slug: string;
|
|
293
|
+
readonly version: string;
|
|
294
|
+
readonly publisher?: string;
|
|
295
|
+
};
|
|
296
|
+
export type CapabilityRuntime = 'render-template' | 'openapi' | 'codemode' | 'mcp' | 'builtin';
|
|
297
|
+
/** Host namespaces a capability may declare in `uses` (optionally `name@range`). */
|
|
298
|
+
export type CapabilityNamespace = 'loops' | 'entities' | 'sandbox' | 'browser' | 'mcp' | 'cards' | 'http';
|
|
299
|
+
export type CapabilitySecret = {
|
|
300
|
+
readonly name: string;
|
|
301
|
+
readonly required?: boolean;
|
|
302
|
+
readonly description?: string;
|
|
303
|
+
};
|
|
304
|
+
export type CapabilityField = {
|
|
305
|
+
readonly name: string;
|
|
306
|
+
readonly type: string;
|
|
307
|
+
readonly required?: boolean;
|
|
308
|
+
readonly description?: string;
|
|
309
|
+
};
|
|
310
|
+
/** How a tool runs; `kind` always equals the manifest `runtime`. */
|
|
311
|
+
export type CapabilityToolRun<R extends CapabilityRuntime = CapabilityRuntime> = R extends 'render-template' ? {
|
|
312
|
+
readonly kind: R;
|
|
313
|
+
/** Name of an entry in the manifest's `templates`. */
|
|
314
|
+
readonly template: string;
|
|
315
|
+
/** Tool argument sent as plain text if rendering fails (default `fallback_text`). */
|
|
316
|
+
readonly textFallbackArg?: string;
|
|
317
|
+
} : {
|
|
318
|
+
readonly kind: R;
|
|
319
|
+
};
|
|
320
|
+
/** A tool the installing agent sees; it only ever reads `description` and `inputSchema`. */
|
|
321
|
+
export type CapabilityTool<R extends CapabilityRuntime = CapabilityRuntime> = {
|
|
322
|
+
readonly name: string;
|
|
323
|
+
readonly description: string;
|
|
324
|
+
readonly inputSchema: Record<string, unknown>;
|
|
325
|
+
readonly run: CapabilityToolRun<R>;
|
|
326
|
+
};
|
|
327
|
+
export type CapabilityTemplate = {
|
|
328
|
+
readonly name: string;
|
|
329
|
+
readonly source: string;
|
|
330
|
+
readonly inputSchema?: {
|
|
331
|
+
readonly fields: ReadonlyArray<CapabilityField>;
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
/** A durable, per-user table the capability owns (requires `uses: ["entities"]`). */
|
|
335
|
+
export type CapabilityEntity = {
|
|
336
|
+
readonly name: string;
|
|
337
|
+
readonly description?: string;
|
|
338
|
+
readonly fields?: ReadonlyArray<CapabilityField>;
|
|
339
|
+
readonly maxRowsPerUser?: number;
|
|
340
|
+
};
|
|
341
|
+
/** The check the platform runs before the agent on every loop tick. */
|
|
342
|
+
export type CapabilityLoopProbe = {
|
|
343
|
+
readonly kind: 'execute';
|
|
344
|
+
readonly code: string;
|
|
345
|
+
readonly connections?: 'personal' | 'shared';
|
|
346
|
+
} | {
|
|
347
|
+
readonly kind: 'gmail.history' | 'calendar.sync' | 'calendar.upcoming' | 'outlook.delta' | 'outlook-calendar.upcoming';
|
|
348
|
+
readonly integration?: string;
|
|
349
|
+
readonly connections?: 'personal' | 'shared';
|
|
350
|
+
readonly leadMinutes?: number;
|
|
351
|
+
readonly labelId?: string | null;
|
|
352
|
+
};
|
|
353
|
+
/** When a probe's changes start the agent; anything but `always` needs a `probe`. */
|
|
354
|
+
export type CapabilityLoopTrigger = {
|
|
355
|
+
readonly kind: 'always';
|
|
356
|
+
} | {
|
|
357
|
+
readonly kind: 'any_change';
|
|
358
|
+
} | {
|
|
359
|
+
readonly kind: 'added';
|
|
360
|
+
readonly min?: number;
|
|
361
|
+
} | {
|
|
362
|
+
readonly kind: 'match';
|
|
363
|
+
readonly pattern: string;
|
|
364
|
+
readonly on?: 'added' | 'any';
|
|
365
|
+
} | {
|
|
366
|
+
readonly kind: 'model';
|
|
367
|
+
readonly question: string;
|
|
368
|
+
readonly model?: string;
|
|
369
|
+
};
|
|
370
|
+
/** A loop installed with the capability (requires `uses: ["loops"]`). */
|
|
371
|
+
export type CapabilityLoop = {
|
|
372
|
+
readonly name: string;
|
|
373
|
+
readonly description?: string;
|
|
374
|
+
readonly prompt: string;
|
|
375
|
+
readonly scheduleType: 'once' | 'cron' | 'interval';
|
|
376
|
+
readonly scheduleExpression: string;
|
|
377
|
+
readonly timezone?: string;
|
|
378
|
+
readonly quiet?: boolean;
|
|
379
|
+
readonly requiresConnections?: ReadonlyArray<string>;
|
|
380
|
+
readonly probe?: CapabilityLoopProbe;
|
|
381
|
+
readonly trigger?: CapabilityLoopTrigger;
|
|
382
|
+
};
|
|
383
|
+
/**
|
|
384
|
+
* A versioned capability manifest, published privately under the developer's
|
|
385
|
+
* organization from `agent.capabilities` at sync time. Discriminated on
|
|
386
|
+
* `runtime`, so every tool's `run.kind` must match it and `templates` only
|
|
387
|
+
* exist on `render-template`. The platform validates the same shape; see
|
|
388
|
+
* docs/capabilities.md.
|
|
389
|
+
*/
|
|
390
|
+
export type CapabilityManifest = {
|
|
391
|
+
[R in CapabilityRuntime]: {
|
|
392
|
+
/** `[a-z0-9-]`, max 64 chars, unique within the publisher. */
|
|
393
|
+
readonly slug: string;
|
|
394
|
+
/** Exact semver, e.g. `1.0.0`. */
|
|
395
|
+
readonly version: string;
|
|
396
|
+
readonly title: string;
|
|
397
|
+
readonly description: string;
|
|
398
|
+
readonly runtime: R;
|
|
399
|
+
readonly uses?: ReadonlyArray<CapabilityNamespace | `${CapabilityNamespace}@${string}`>;
|
|
400
|
+
readonly secrets?: ReadonlyArray<CapabilitySecret>;
|
|
401
|
+
readonly tools?: ReadonlyArray<CapabilityTool<R>>;
|
|
402
|
+
/** Guidance for the installing agent on when to use the tools. */
|
|
403
|
+
readonly prompt?: string;
|
|
404
|
+
readonly loops?: ReadonlyArray<CapabilityLoop>;
|
|
405
|
+
readonly entities?: ReadonlyArray<string | CapabilityEntity>;
|
|
406
|
+
/** Hosts the `http` namespace may reach, `host` (port 443) or `host:port` (required with `uses: ["http"]`). */
|
|
407
|
+
readonly http?: {
|
|
408
|
+
readonly allow: ReadonlyArray<string>;
|
|
409
|
+
};
|
|
410
|
+
} & (R extends 'render-template' ? {
|
|
411
|
+
readonly templates?: ReadonlyArray<CapabilityTemplate>;
|
|
412
|
+
} : {
|
|
413
|
+
readonly templates?: never;
|
|
414
|
+
});
|
|
415
|
+
}[CapabilityRuntime];
|
|
416
|
+
export type CapabilityInput = CapabilityRef | CapabilityManifest;
|
|
417
|
+
export type AgentConfig = {
|
|
418
|
+
readonly model: string;
|
|
419
|
+
readonly maxSteps: number;
|
|
420
|
+
readonly historyLimit: number;
|
|
421
|
+
readonly systemPrompt: (ctx: PromptContext) => string;
|
|
422
|
+
readonly tools: ReadonlyArray<ToolDefinition<any, any>>;
|
|
423
|
+
readonly alerts?: ReadonlyArray<AlertDefinition>;
|
|
424
|
+
readonly hooks?: TurnHooks;
|
|
425
|
+
readonly memory?: MemoryConfig;
|
|
426
|
+
readonly browser?: BrowserConfig;
|
|
427
|
+
readonly sandbox?: SandboxConfig;
|
|
428
|
+
readonly executor?: ExecutorConfig;
|
|
429
|
+
readonly mcp?: McpConfig;
|
|
430
|
+
readonly blackboard?: boolean;
|
|
431
|
+
readonly promptCache?: boolean;
|
|
432
|
+
readonly escalation?: EscalationConfig;
|
|
433
|
+
readonly steering?: SteeringConfig;
|
|
434
|
+
readonly media?: MediaConfig;
|
|
435
|
+
readonly observability?: ObservabilityConfig;
|
|
436
|
+
readonly loops?: LoopsConfig;
|
|
437
|
+
/** Capabilities installed on this agent: refs to published capabilities or full manifests. */
|
|
438
|
+
readonly capabilities?: ReadonlyArray<CapabilityInput>;
|
|
439
|
+
};
|
|
440
|
+
/**
|
|
441
|
+
* A storage adapter bundled with a PluginDb service.
|
|
442
|
+
* Returned by adapter factories like `PostgresStorage()`.
|
|
443
|
+
*/
|
|
444
|
+
export type StorageBundle = {
|
|
445
|
+
readonly layer: Layer.Layer<Storage, StorageError>;
|
|
446
|
+
readonly pluginDb: PluginDbService;
|
|
447
|
+
};
|
|
448
|
+
/**
|
|
449
|
+
* Channel type identifiers for multi-channel agent support.
|
|
450
|
+
*/
|
|
451
|
+
export type ChannelType = 'sms' | 'telegram' | (string & {});
|
|
452
|
+
/**
|
|
453
|
+
* Telegram channel configuration.
|
|
454
|
+
*/
|
|
455
|
+
export type TelegramChannelConfig = {
|
|
456
|
+
readonly type: 'telegram';
|
|
457
|
+
/** Telegram Bot API token. */
|
|
458
|
+
readonly botToken: string;
|
|
459
|
+
/** Optional: restrict to specific chat IDs. */
|
|
460
|
+
readonly allowedChatIds?: ReadonlyArray<number>;
|
|
461
|
+
};
|
|
462
|
+
/**
|
|
463
|
+
* SMS channel configuration (wraps the legacy resolveNumber pattern).
|
|
464
|
+
*/
|
|
465
|
+
export type SmsChannelConfig = {
|
|
466
|
+
readonly type: 'sms';
|
|
467
|
+
/** Resolve which outbound phone line to use for a given context. */
|
|
468
|
+
readonly resolveNumber: (ctx: ResolveNumberContext) => Effect.Effect<string>;
|
|
469
|
+
};
|
|
470
|
+
/**
|
|
471
|
+
* Union of supported channel configurations.
|
|
472
|
+
*/
|
|
473
|
+
export type ChannelConfig = SmsChannelConfig | TelegramChannelConfig;
|
|
474
|
+
export type AgentKitConfig = {
|
|
475
|
+
readonly apiKey: string;
|
|
476
|
+
readonly name: string;
|
|
477
|
+
/**
|
|
478
|
+
* @deprecated Use `channels` array with an SMS channel config instead.
|
|
479
|
+
* Kept for backward compatibility with SMS-only agents.
|
|
480
|
+
*/
|
|
481
|
+
readonly resolveNumber?: (ctx: ResolveNumberContext) => Effect.Effect<string>;
|
|
482
|
+
/**
|
|
483
|
+
* Channel configurations. Each channel handles its own inbound routing
|
|
484
|
+
* and outbound delivery. If omitted with a `resolveNumber`, a single
|
|
485
|
+
* SMS channel is implied.
|
|
486
|
+
*
|
|
487
|
+
* @example
|
|
488
|
+
* ```ts
|
|
489
|
+
* channels: [
|
|
490
|
+
* { type: 'sms', resolveNumber: (ctx) => Effect.succeed('+14155551234') },
|
|
491
|
+
* { type: 'telegram', botToken: process.env.TG_BOT_TOKEN! },
|
|
492
|
+
* ]
|
|
493
|
+
* ```
|
|
494
|
+
*/
|
|
495
|
+
readonly channels?: ReadonlyArray<ChannelConfig>;
|
|
496
|
+
/**
|
|
497
|
+
* Storage adapter for a self-run loop. Pass either:
|
|
498
|
+
* - A raw `Layer` (backward compat, no plugin DB support)
|
|
499
|
+
* - A `StorageBundle` from a factory like `PostgresStorage()` (includes both storage and pluginDb)
|
|
500
|
+
* Cloud agents (the default harness) need none: the platform stores history and users.
|
|
501
|
+
*/
|
|
502
|
+
readonly storage?: Layer.Layer<Storage, StorageError> | StorageBundle;
|
|
503
|
+
readonly agent: AgentConfig;
|
|
504
|
+
/** Select the turn loop implementation. Defaults to the platform Flue harness. */
|
|
505
|
+
readonly harness?: HarnessConfig;
|
|
506
|
+
readonly events?: EventHandlers;
|
|
507
|
+
/** Secrets to sync to the platform (name → value). Accessible at runtime via ctx.secrets. */
|
|
508
|
+
readonly secrets?: Readonly<Record<string, string>>;
|
|
509
|
+
/**
|
|
510
|
+
* Plugins extend the agent with tools, hooks, routes, and layers.
|
|
511
|
+
* Each plugin is self-contained and composable — capabilities that
|
|
512
|
+
* were previously part of AgentConfig (memory, browser, sandbox,
|
|
513
|
+
* steering, etc.) can now be isolated into plugins.
|
|
514
|
+
*
|
|
515
|
+
* Order matters: plugins initialize in array order, and each plugin's
|
|
516
|
+
* `init` sees the config contributions of the plugins before it — so a
|
|
517
|
+
* plugin that depends on another's config (e.g. `mcp()` requiring an
|
|
518
|
+
* enabled sandbox) must come after it.
|
|
519
|
+
*/
|
|
520
|
+
readonly plugins?: ReadonlyArray<AgentKitPlugin>;
|
|
521
|
+
};
|
|
522
|
+
/**
|
|
523
|
+
* @deprecated Use {@link AgentKitConfig} instead. Kept for backwards compatibility.
|
|
524
|
+
*/
|
|
525
|
+
export type SmsKitConfig = AgentKitConfig;
|
|
526
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAE9D,MAAM,MAAM,aAAa,GAAG,GAAG,MAAM,IAAI,SAAS,GAAG,SAAS,GAAG,OAAO,EAAE,GAAG,MAAM,CAAA;AAEnF,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAA;IAChC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,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,CAAC,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,oBAAoB,KAAK,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IAC7E;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC,CAAA;IAChD;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,YAAY,CAAC,GAAG,aAAa,CAAA;IACrE,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAA;IAC3B,kFAAkF;IAClF,QAAQ,CAAC,OAAO,CAAC,EAAE,aAAa,CAAA;IAChC,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAA;IAC/B,6FAA6F;IAC7F,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IACnD;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAA;CACjD,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
|
+
export declare const Direction: Schema.Literal<["inbound", "outbound"]>;
|
|
3
|
+
export type Direction = typeof Direction.Type;
|
|
4
|
+
export declare const InboundMessage: Schema.Struct<{
|
|
5
|
+
phone: typeof Schema.String;
|
|
6
|
+
chatId: typeof Schema.String;
|
|
7
|
+
messageId: typeof Schema.String;
|
|
8
|
+
text: typeof Schema.String;
|
|
9
|
+
mediaUrl: Schema.optional<typeof Schema.String>;
|
|
10
|
+
mediaMimeType: Schema.optional<typeof Schema.String>;
|
|
11
|
+
timestamp: typeof Schema.Date;
|
|
12
|
+
}>;
|
|
13
|
+
export type InboundMessage = typeof InboundMessage.Type;
|
|
14
|
+
export declare const OutboundMessage: Schema.Struct<{
|
|
15
|
+
phone: typeof Schema.String;
|
|
16
|
+
chatId: typeof Schema.String;
|
|
17
|
+
text: typeof Schema.String;
|
|
18
|
+
mediaUrl: Schema.optional<typeof Schema.String>;
|
|
19
|
+
externalMessageId: Schema.optional<typeof Schema.String>;
|
|
20
|
+
}>;
|
|
21
|
+
export type OutboundMessage = typeof OutboundMessage.Type;
|
|
22
|
+
export declare const StoredMessage: Schema.Struct<{
|
|
23
|
+
id: typeof Schema.String;
|
|
24
|
+
phone: typeof Schema.String;
|
|
25
|
+
chatId: typeof Schema.String;
|
|
26
|
+
direction: Schema.Literal<["inbound", "outbound"]>;
|
|
27
|
+
content: typeof Schema.String;
|
|
28
|
+
mediaUrl: Schema.optional<typeof Schema.String>;
|
|
29
|
+
mediaMimeType: Schema.optional<typeof Schema.String>;
|
|
30
|
+
externalMessageId: Schema.optional<typeof Schema.String>;
|
|
31
|
+
createdAt: typeof Schema.Date;
|
|
32
|
+
}>;
|
|
33
|
+
export type StoredMessage = typeof StoredMessage.Type;
|
|
34
|
+
export declare const MediaPayload: Schema.Struct<{
|
|
35
|
+
url: Schema.optional<typeof Schema.String>;
|
|
36
|
+
base64: Schema.optional<typeof Schema.String>;
|
|
37
|
+
mimeType: typeof Schema.String;
|
|
38
|
+
filename: Schema.optional<typeof Schema.String>;
|
|
39
|
+
}>;
|
|
40
|
+
export type MediaPayload = typeof MediaPayload.Type;
|
|
41
|
+
export declare const SendResult: Schema.Struct<{
|
|
42
|
+
chatId: typeof Schema.String;
|
|
43
|
+
messageId: typeof Schema.String;
|
|
44
|
+
}>;
|
|
45
|
+
export type SendResult = typeof SendResult.Type;
|
|
46
|
+
export declare const DeliveryStatus: Schema.Struct<{
|
|
47
|
+
messageId: typeof Schema.String;
|
|
48
|
+
phone: typeof Schema.String;
|
|
49
|
+
state: Schema.Literal<["delivered", "failed", "pending"]>;
|
|
50
|
+
error: Schema.optional<typeof Schema.String>;
|
|
51
|
+
timestamp: typeof Schema.Date;
|
|
52
|
+
}>;
|
|
53
|
+
export type DeliveryStatus = typeof DeliveryStatus.Type;
|
|
54
|
+
//# sourceMappingURL=message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/types/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE/B,eAAO,MAAM,SAAS,yCAAwC,CAAA;AAC9D,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,IAAI,CAAA;AAE7C,eAAO,MAAM,cAAc;;;;;;;;EAQzB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAA;AAEvD,eAAO,MAAM,eAAe;;;;;;EAM1B,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,IAAI,CAAA;AAEzD,eAAO,MAAM,aAAa;;;;;;;;;;EAUxB,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,IAAI,CAAA;AAErD,eAAO,MAAM,YAAY;;;;;EAKvB,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,IAAI,CAAA;AAEnD,eAAO,MAAM,UAAU;;;EAGrB,CAAA;AACF,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC,IAAI,CAAA;AAE/C,eAAO,MAAM,cAAc;;;;;;EAMzB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAA"}
|