@pinecall/protocol 0.5.0 → 0.6.1
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/generated/codec.d.ts +1 -1
- package/dist/generated/codec.js +1 -1
- package/dist/generated/commands.d.ts +8 -16
- package/dist/generated/defs.d.ts +48 -55
- package/dist/generated/defs.js +9 -8
- package/dist/generated/events.d.ts +57 -58
- package/dist/generated/registry.d.ts +71 -80
- package/dist/generated/rest.d.ts +174 -78
- package/dist/generated/rest.js +77 -8
- package/dist/generated/room.d.ts +7 -7
- package/dist/generated/state.d.ts +29 -29
- package/package.json +1 -1
|
@@ -46,7 +46,7 @@ export type Snake<T> = T extends readonly (infer Item)[] ? Snake<Item>[] : T ext
|
|
|
46
46
|
} : T;
|
|
47
47
|
/** The keys whose values belong to the app (its state, a tool's arguments, a map it named): never renamed below them. */
|
|
48
48
|
export declare const OPAQUE_KEYS: Set<string>;
|
|
49
|
-
export type OpaqueKey = "app_state" | "arguments" | "attributes" | "data" | "input" | "metadata" | "output" | "parameters" | "prompt" | "result" | "state";
|
|
49
|
+
export type OpaqueKey = "app_state" | "arguments" | "attributes" | "data" | "facts" | "input" | "metadata" | "output" | "parameters" | "prompt" | "result" | "state";
|
|
50
50
|
/** Rename every key from snake_case to camelCase, deep. Values are never touched. */
|
|
51
51
|
export declare function toCamel<T>(value: T): Camel<T>;
|
|
52
52
|
/** Rename every key from camelCase to snake_case, deep. Values are never touched. */
|
package/dist/generated/codec.js
CHANGED
|
@@ -37,7 +37,7 @@ export function isCommandType(type) {
|
|
|
37
37
|
return Object.hasOwn(COMMAND_SCHEMAS, type);
|
|
38
38
|
}
|
|
39
39
|
/** The keys whose values belong to the app (its state, a tool's arguments, a map it named): never renamed below them. */
|
|
40
|
-
export const OPAQUE_KEYS = new Set(["app_state", "arguments", "attributes", "data", "input", "metadata", "output", "parameters", "prompt", "result", "state"]);
|
|
40
|
+
export const OPAQUE_KEYS = new Set(["app_state", "arguments", "attributes", "data", "facts", "input", "metadata", "output", "parameters", "prompt", "result", "state"]);
|
|
41
41
|
/** Rename every key from snake_case to camelCase, deep. Values are never touched. */
|
|
42
42
|
export function toCamel(value) {
|
|
43
43
|
return renameKeys(value, camelCase);
|
|
@@ -8,8 +8,8 @@ export declare const AgentConfigureSchema: z.ZodObject<{
|
|
|
8
8
|
prompt: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
9
9
|
name: z.ZodString;
|
|
10
10
|
region: z.ZodEnum<{
|
|
11
|
-
static: "static";
|
|
12
11
|
dynamic: "dynamic";
|
|
12
|
+
static: "static";
|
|
13
13
|
}>;
|
|
14
14
|
}, z.core.$strict>>>>;
|
|
15
15
|
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -46,10 +46,6 @@ export declare const AgentConfigureSchema: z.ZodObject<{
|
|
|
46
46
|
knowledge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
47
47
|
path: z.ZodString;
|
|
48
48
|
text: z.ZodString;
|
|
49
|
-
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
50
|
-
retrieved: "retrieved";
|
|
51
|
-
whole: "whole";
|
|
52
|
-
}>>>;
|
|
53
49
|
}, z.core.$strict>>>;
|
|
54
50
|
docs: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
55
51
|
base: z.ZodString;
|
|
@@ -72,9 +68,9 @@ export declare const AgentConfigureSchema: z.ZodObject<{
|
|
|
72
68
|
description: z.ZodString;
|
|
73
69
|
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
74
70
|
side_effect: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
71
|
+
irreversible: "irreversible";
|
|
75
72
|
read: "read";
|
|
76
73
|
write: "write";
|
|
77
|
-
irreversible: "irreversible";
|
|
78
74
|
}>>>;
|
|
79
75
|
confirm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
76
|
pii: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
@@ -84,9 +80,9 @@ export declare const AgentConfigureSchema: z.ZodObject<{
|
|
|
84
80
|
state_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
85
81
|
name: z.ZodString;
|
|
86
82
|
visibility: z.ZodEnum<{
|
|
83
|
+
pii: "pii";
|
|
87
84
|
public: "public";
|
|
88
85
|
tenant: "tenant";
|
|
89
|
-
pii: "pii";
|
|
90
86
|
}>;
|
|
91
87
|
}, z.core.$strict>>>>;
|
|
92
88
|
events: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -260,8 +256,8 @@ export type PromptSet = z.infer<typeof PromptSetSchema>;
|
|
|
260
256
|
export declare const RoomInviteSchema: z.ZodObject<{
|
|
261
257
|
to: z.ZodString;
|
|
262
258
|
kind: z.ZodEnum<{
|
|
263
|
-
sip: "sip";
|
|
264
259
|
participant: "participant";
|
|
260
|
+
sip: "sip";
|
|
265
261
|
}>;
|
|
266
262
|
}, z.core.$strict>;
|
|
267
263
|
export type RoomInvite = z.infer<typeof RoomInviteSchema>;
|
|
@@ -286,8 +282,8 @@ export declare const SessionConfigureSchema: z.ZodObject<{
|
|
|
286
282
|
prompt: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
287
283
|
name: z.ZodString;
|
|
288
284
|
region: z.ZodEnum<{
|
|
289
|
-
static: "static";
|
|
290
285
|
dynamic: "dynamic";
|
|
286
|
+
static: "static";
|
|
291
287
|
}>;
|
|
292
288
|
}, z.core.$strict>>>>;
|
|
293
289
|
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -324,10 +320,6 @@ export declare const SessionConfigureSchema: z.ZodObject<{
|
|
|
324
320
|
knowledge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
325
321
|
path: z.ZodString;
|
|
326
322
|
text: z.ZodString;
|
|
327
|
-
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
328
|
-
retrieved: "retrieved";
|
|
329
|
-
whole: "whole";
|
|
330
|
-
}>>>;
|
|
331
323
|
}, z.core.$strict>>>;
|
|
332
324
|
docs: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
333
325
|
base: z.ZodString;
|
|
@@ -350,9 +342,9 @@ export declare const SessionConfigureSchema: z.ZodObject<{
|
|
|
350
342
|
description: z.ZodString;
|
|
351
343
|
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
352
344
|
side_effect: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
345
|
+
irreversible: "irreversible";
|
|
353
346
|
read: "read";
|
|
354
347
|
write: "write";
|
|
355
|
-
irreversible: "irreversible";
|
|
356
348
|
}>>>;
|
|
357
349
|
confirm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
358
350
|
pii: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
@@ -362,9 +354,9 @@ export declare const SessionConfigureSchema: z.ZodObject<{
|
|
|
362
354
|
state_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
363
355
|
name: z.ZodString;
|
|
364
356
|
visibility: z.ZodEnum<{
|
|
357
|
+
pii: "pii";
|
|
365
358
|
public: "public";
|
|
366
359
|
tenant: "tenant";
|
|
367
|
-
pii: "pii";
|
|
368
360
|
}>;
|
|
369
361
|
}, z.core.$strict>>>>;
|
|
370
362
|
events: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -422,9 +414,9 @@ export declare const ToolsSetSchema: z.ZodObject<{
|
|
|
422
414
|
description: z.ZodString;
|
|
423
415
|
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
424
416
|
side_effect: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
417
|
+
irreversible: "irreversible";
|
|
425
418
|
read: "read";
|
|
426
419
|
write: "write";
|
|
427
|
-
irreversible: "irreversible";
|
|
428
420
|
}>>>;
|
|
429
421
|
confirm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
430
422
|
pii: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
package/dist/generated/defs.d.ts
CHANGED
|
@@ -30,32 +30,31 @@ export declare const EnvSchema: z.ZodEnum<{
|
|
|
30
30
|
export type Env = z.infer<typeof EnvSchema>;
|
|
31
31
|
/**
|
|
32
32
|
* What a console may ask of the process standing in the agent's directory, relayed by the gateway:
|
|
33
|
-
* a written call to the class mounted there (chat), a simulated caller
|
|
34
|
-
* goldens and a suite of them, its knowledge folder pushed or its golden asked, its memory
|
|
33
|
+
* a written call to the class mounted there (chat), a simulated caller put on the class it holds,
|
|
34
|
+
* its goldens and a suite of them, its knowledge folder pushed or its golden asked, its memory
|
|
35
35
|
* goldens, a call promoted to a candidate file, the drift of the last two windows, and the
|
|
36
36
|
* reproductions a broken run left on that disk. Everything else a console needs is a door of the
|
|
37
37
|
* gateway.
|
|
38
38
|
*/
|
|
39
39
|
export declare const DevVerbSchema: z.ZodEnum<{
|
|
40
|
+
"chat.end": "chat.end";
|
|
40
41
|
"chat.roster": "chat.roster";
|
|
41
|
-
"chat.start": "chat.start";
|
|
42
42
|
"chat.say": "chat.say";
|
|
43
|
-
"chat.
|
|
44
|
-
"
|
|
45
|
-
"simulate.start": "simulate.start";
|
|
43
|
+
"chat.start": "chat.start";
|
|
44
|
+
"drift.read": "drift.read";
|
|
46
45
|
"goldens.roster": "goldens.roster";
|
|
47
46
|
"goldens.run": "goldens.run";
|
|
48
|
-
"knowledge.roster": "knowledge.roster";
|
|
49
|
-
"knowledge.push": "knowledge.push";
|
|
50
47
|
"knowledge.eval": "knowledge.eval";
|
|
51
|
-
"
|
|
48
|
+
"knowledge.push": "knowledge.push";
|
|
49
|
+
"knowledge.roster": "knowledge.roster";
|
|
52
50
|
"memory.eval": "memory.eval";
|
|
53
51
|
"memory.extraction": "memory.extraction";
|
|
52
|
+
"memory.roster": "memory.roster";
|
|
54
53
|
"promote.roster": "promote.roster";
|
|
55
54
|
"promote.write": "promote.write";
|
|
56
|
-
"drift.read": "drift.read";
|
|
57
|
-
"reproductions.roster": "reproductions.roster";
|
|
58
55
|
"reproductions.read": "reproductions.read";
|
|
56
|
+
"reproductions.roster": "reproductions.roster";
|
|
57
|
+
"simulate.start": "simulate.start";
|
|
59
58
|
}>;
|
|
60
59
|
export type DevVerb = z.infer<typeof DevVerbSchema>;
|
|
61
60
|
/**
|
|
@@ -65,25 +64,25 @@ export type DevVerb = z.infer<typeof DevVerbSchema>;
|
|
|
65
64
|
* both are nobody's fault and neither is an error.
|
|
66
65
|
*/
|
|
67
66
|
export declare const EndReasonSchema: z.ZodEnum<{
|
|
68
|
-
caller_hung_up: "caller_hung_up";
|
|
69
67
|
agent_hung_up: "agent_hung_up";
|
|
70
|
-
|
|
71
|
-
transferred: "transferred";
|
|
72
|
-
no_answer: "no_answer";
|
|
68
|
+
app_detached: "app_detached";
|
|
73
69
|
busy: "busy";
|
|
70
|
+
caller_hung_up: "caller_hung_up";
|
|
74
71
|
dial_failed: "dial_failed";
|
|
75
|
-
timeout: "timeout";
|
|
76
72
|
drained: "drained";
|
|
77
|
-
app_detached: "app_detached";
|
|
78
73
|
error: "error";
|
|
74
|
+
no_answer: "no_answer";
|
|
75
|
+
supervisor_ended: "supervisor_ended";
|
|
76
|
+
timeout: "timeout";
|
|
77
|
+
transferred: "transferred";
|
|
79
78
|
}>;
|
|
80
79
|
export type EndReason = z.infer<typeof EndReasonSchema>;
|
|
81
80
|
/** Whose action ended the call. platform covers timeouts, errors and a drained worker. */
|
|
82
81
|
export declare const EndedBySchema: z.ZodEnum<{
|
|
83
82
|
agent: "agent";
|
|
84
83
|
caller: "caller";
|
|
85
|
-
supervisor: "supervisor";
|
|
86
84
|
platform: "platform";
|
|
85
|
+
supervisor: "supervisor";
|
|
87
86
|
}>;
|
|
88
87
|
export type EndedBy = z.infer<typeof EndedBySchema>;
|
|
89
88
|
/**
|
|
@@ -92,9 +91,9 @@ export type EndedBy = z.infer<typeof EndedBySchema>;
|
|
|
92
91
|
* nobody asked it — no model was reachable inside the call's judging budget.
|
|
93
92
|
*/
|
|
94
93
|
export declare const ScoreVerdictSchema: z.ZodEnum<{
|
|
95
|
-
held: "held";
|
|
96
94
|
broken: "broken";
|
|
97
95
|
deferred: "deferred";
|
|
96
|
+
held: "held";
|
|
98
97
|
skipped: "skipped";
|
|
99
98
|
}>;
|
|
100
99
|
export type ScoreVerdict = z.infer<typeof ScoreVerdictSchema>;
|
|
@@ -113,8 +112,8 @@ export type TransferMode = z.infer<typeof TransferModeSchema>;
|
|
|
113
112
|
* written by the app.
|
|
114
113
|
*/
|
|
115
114
|
export declare const PromptRegionSchema: z.ZodEnum<{
|
|
116
|
-
static: "static";
|
|
117
115
|
dynamic: "dynamic";
|
|
116
|
+
static: "static";
|
|
118
117
|
}>;
|
|
119
118
|
export type PromptRegion = z.infer<typeof PromptRegionSchema>;
|
|
120
119
|
/**
|
|
@@ -146,8 +145,8 @@ export type PlatformTool = z.infer<typeof PlatformToolSchema>;
|
|
|
146
145
|
export declare const PromptBlockSpecSchema: z.ZodObject<{
|
|
147
146
|
name: z.ZodString;
|
|
148
147
|
region: z.ZodEnum<{
|
|
149
|
-
static: "static";
|
|
150
148
|
dynamic: "dynamic";
|
|
149
|
+
static: "static";
|
|
151
150
|
}>;
|
|
152
151
|
}, z.core.$strict>;
|
|
153
152
|
export type PromptBlockSpec = z.infer<typeof PromptBlockSpecSchema>;
|
|
@@ -156,9 +155,9 @@ export type PromptBlockSpec = z.infer<typeof PromptBlockSpecSchema>;
|
|
|
156
155
|
* session's own.
|
|
157
156
|
*/
|
|
158
157
|
export declare const UserStateSchema: z.ZodEnum<{
|
|
158
|
+
away: "away";
|
|
159
159
|
listening: "listening";
|
|
160
160
|
speaking: "speaking";
|
|
161
|
-
away: "away";
|
|
162
161
|
}>;
|
|
163
162
|
export type UserState = z.infer<typeof UserStateSchema>;
|
|
164
163
|
/**
|
|
@@ -166,10 +165,10 @@ export type UserState = z.infer<typeof UserStateSchema>;
|
|
|
166
165
|
* caller, generating, or playing audio.
|
|
167
166
|
*/
|
|
168
167
|
export declare const AgentStateSchema: z.ZodEnum<{
|
|
168
|
+
idle: "idle";
|
|
169
|
+
initializing: "initializing";
|
|
169
170
|
listening: "listening";
|
|
170
171
|
speaking: "speaking";
|
|
171
|
-
initializing: "initializing";
|
|
172
|
-
idle: "idle";
|
|
173
172
|
thinking: "thinking";
|
|
174
173
|
}>;
|
|
175
174
|
export type AgentState = z.infer<typeof AgentStateSchema>;
|
|
@@ -181,25 +180,25 @@ export type AgentState = z.infer<typeof AgentStateSchema>;
|
|
|
181
180
|
export declare const ParticipantKindSchema: z.ZodEnum<{
|
|
182
181
|
agent: "agent";
|
|
183
182
|
caller: "caller";
|
|
184
|
-
supervisor: "supervisor";
|
|
185
183
|
listener: "listener";
|
|
186
184
|
sip: "sip";
|
|
185
|
+
supervisor: "supervisor";
|
|
187
186
|
}>;
|
|
188
187
|
export type ParticipantKind = z.infer<typeof ParticipantKindSchema>;
|
|
189
188
|
/** What a track carries: a microphone's audio, a camera's video, or a screen share. */
|
|
190
189
|
export declare const TrackKindSchema: z.ZodEnum<{
|
|
191
190
|
audio: "audio";
|
|
192
|
-
video: "video";
|
|
193
191
|
screen: "screen";
|
|
192
|
+
video: "video";
|
|
194
193
|
}>;
|
|
195
194
|
export type TrackKind = z.infer<typeof TrackKindSchema>;
|
|
196
195
|
/** Where a track comes from, as livekit's TrackSource names it, in lower case. */
|
|
197
196
|
export declare const TrackSourceSchema: z.ZodEnum<{
|
|
198
|
-
unknown: "unknown";
|
|
199
|
-
microphone: "microphone";
|
|
200
197
|
camera: "camera";
|
|
198
|
+
microphone: "microphone";
|
|
201
199
|
screen_share: "screen_share";
|
|
202
200
|
screen_share_audio: "screen_share_audio";
|
|
201
|
+
unknown: "unknown";
|
|
203
202
|
}>;
|
|
204
203
|
export type TrackSource = z.infer<typeof TrackSourceSchema>;
|
|
205
204
|
/**
|
|
@@ -216,9 +215,9 @@ export type EventSource = z.infer<typeof EventSourceSchema>;
|
|
|
216
215
|
* (tenant, the default for a field never declared), or nobody without masking (pii).
|
|
217
216
|
*/
|
|
218
217
|
export declare const VisibilitySchema: z.ZodEnum<{
|
|
218
|
+
pii: "pii";
|
|
219
219
|
public: "public";
|
|
220
220
|
tenant: "tenant";
|
|
221
|
-
pii: "pii";
|
|
222
221
|
}>;
|
|
223
222
|
export type Visibility = z.infer<typeof VisibilitySchema>;
|
|
224
223
|
/**
|
|
@@ -272,9 +271,9 @@ export declare const ToolSpecSchema: z.ZodObject<{
|
|
|
272
271
|
description: z.ZodString;
|
|
273
272
|
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
274
273
|
side_effect: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
274
|
+
irreversible: "irreversible";
|
|
275
275
|
read: "read";
|
|
276
276
|
write: "write";
|
|
277
|
-
irreversible: "irreversible";
|
|
278
277
|
}>>>;
|
|
279
278
|
confirm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
280
279
|
pii: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
@@ -312,9 +311,9 @@ export type MemoryFact = z.infer<typeof MemoryFactSchema>;
|
|
|
312
311
|
*/
|
|
313
312
|
export declare const MemoryOpSchema: z.ZodObject<{
|
|
314
313
|
op: z.ZodEnum<{
|
|
314
|
+
forget: "forget";
|
|
315
315
|
recall: "recall";
|
|
316
316
|
remember: "remember";
|
|
317
|
-
forget: "forget";
|
|
318
317
|
}>;
|
|
319
318
|
contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
320
319
|
query: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -349,12 +348,12 @@ export declare const CostRowSchema: z.ZodObject<{
|
|
|
349
348
|
provider: z.ZodString;
|
|
350
349
|
model: z.ZodString;
|
|
351
350
|
unit: z.ZodEnum<{
|
|
352
|
-
|
|
353
|
-
cached_input_tokens: "cached_input_tokens";
|
|
351
|
+
audio_seconds: "audio_seconds";
|
|
354
352
|
cache_creation_tokens: "cache_creation_tokens";
|
|
355
|
-
|
|
353
|
+
cached_input_tokens: "cached_input_tokens";
|
|
356
354
|
characters: "characters";
|
|
357
|
-
|
|
355
|
+
input_tokens: "input_tokens";
|
|
356
|
+
output_tokens: "output_tokens";
|
|
358
357
|
requests: "requests";
|
|
359
358
|
session_seconds: "session_seconds";
|
|
360
359
|
}>;
|
|
@@ -384,12 +383,12 @@ export declare const CostSchema: z.ZodObject<{
|
|
|
384
383
|
provider: z.ZodString;
|
|
385
384
|
model: z.ZodString;
|
|
386
385
|
unit: z.ZodEnum<{
|
|
387
|
-
|
|
388
|
-
cached_input_tokens: "cached_input_tokens";
|
|
386
|
+
audio_seconds: "audio_seconds";
|
|
389
387
|
cache_creation_tokens: "cache_creation_tokens";
|
|
390
|
-
|
|
388
|
+
cached_input_tokens: "cached_input_tokens";
|
|
391
389
|
characters: "characters";
|
|
392
|
-
|
|
390
|
+
input_tokens: "input_tokens";
|
|
391
|
+
output_tokens: "output_tokens";
|
|
393
392
|
requests: "requests";
|
|
394
393
|
session_seconds: "session_seconds";
|
|
395
394
|
}>;
|
|
@@ -437,9 +436,9 @@ export type Pronunciation = z.infer<typeof PronunciationSchema>;
|
|
|
437
436
|
export declare const StateFieldSpecSchema: z.ZodObject<{
|
|
438
437
|
name: z.ZodString;
|
|
439
438
|
visibility: z.ZodEnum<{
|
|
439
|
+
pii: "pii";
|
|
440
440
|
public: "public";
|
|
441
441
|
tenant: "tenant";
|
|
442
|
-
pii: "pii";
|
|
443
442
|
}>;
|
|
444
443
|
}, z.core.$strict>;
|
|
445
444
|
export type StateFieldSpec = z.infer<typeof StateFieldSpecSchema>;
|
|
@@ -455,14 +454,10 @@ export declare const EventSpecSchema: z.ZodObject<{
|
|
|
455
454
|
}>>;
|
|
456
455
|
}, z.core.$strict>;
|
|
457
456
|
export type EventSpec = z.infer<typeof EventSpecSchema>;
|
|
458
|
-
/** One file of
|
|
457
|
+
/** One file of a base, as a push sends it: its path as the tenant keeps it, and its text. */
|
|
459
458
|
export declare const KnowledgeFileSchema: z.ZodObject<{
|
|
460
459
|
path: z.ZodString;
|
|
461
460
|
text: z.ZodString;
|
|
462
|
-
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
463
|
-
retrieved: "retrieved";
|
|
464
|
-
whole: "whole";
|
|
465
|
-
}>>>;
|
|
466
461
|
}, z.core.$strict>;
|
|
467
462
|
export type KnowledgeFile = z.infer<typeof KnowledgeFileSchema>;
|
|
468
463
|
/**
|
|
@@ -513,16 +508,18 @@ export declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
513
508
|
}, z.core.$strict>;
|
|
514
509
|
export type MemoryConfig = z.infer<typeof MemoryConfigSchema>;
|
|
515
510
|
/**
|
|
516
|
-
* What an app declares about its agent: the
|
|
517
|
-
*
|
|
518
|
-
* thing.
|
|
511
|
+
* What an app declares about its agent: the prompt's layout, the language, the tools, whether it
|
|
512
|
+
* searches its bases itself, and who may see and send what. Every field is optional so a configure
|
|
513
|
+
* can change one thing. The environment — voice, models, greeting, hangup, turn, says, hears,
|
|
514
|
+
* knowledge, docs, memory — is the world's, set in the agent's settings, and no longer read off
|
|
515
|
+
* this declaration.
|
|
519
516
|
*/
|
|
520
517
|
export declare const AgentConfigSchema: z.ZodObject<{
|
|
521
518
|
prompt: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
522
519
|
name: z.ZodString;
|
|
523
520
|
region: z.ZodEnum<{
|
|
524
|
-
static: "static";
|
|
525
521
|
dynamic: "dynamic";
|
|
522
|
+
static: "static";
|
|
526
523
|
}>;
|
|
527
524
|
}, z.core.$strict>>>>;
|
|
528
525
|
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -559,10 +556,6 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
559
556
|
knowledge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
560
557
|
path: z.ZodString;
|
|
561
558
|
text: z.ZodString;
|
|
562
|
-
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
563
|
-
retrieved: "retrieved";
|
|
564
|
-
whole: "whole";
|
|
565
|
-
}>>>;
|
|
566
559
|
}, z.core.$strict>>>;
|
|
567
560
|
docs: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
568
561
|
base: z.ZodString;
|
|
@@ -585,9 +578,9 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
585
578
|
description: z.ZodString;
|
|
586
579
|
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
587
580
|
side_effect: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
581
|
+
irreversible: "irreversible";
|
|
588
582
|
read: "read";
|
|
589
583
|
write: "write";
|
|
590
|
-
irreversible: "irreversible";
|
|
591
584
|
}>>>;
|
|
592
585
|
confirm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
593
586
|
pii: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
@@ -597,9 +590,9 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
597
590
|
state_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
598
591
|
name: z.ZodString;
|
|
599
592
|
visibility: z.ZodEnum<{
|
|
593
|
+
pii: "pii";
|
|
600
594
|
public: "public";
|
|
601
595
|
tenant: "tenant";
|
|
602
|
-
pii: "pii";
|
|
603
596
|
}>;
|
|
604
597
|
}, z.core.$strict>>>>;
|
|
605
598
|
events: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
package/dist/generated/defs.js
CHANGED
|
@@ -18,13 +18,13 @@ export const DirectionSchema = z.enum(["inbound", "outbound"]);
|
|
|
18
18
|
export const EnvSchema = z.enum(["production", "sandbox"]);
|
|
19
19
|
/**
|
|
20
20
|
* What a console may ask of the process standing in the agent's directory, relayed by the gateway:
|
|
21
|
-
* a written call to the class mounted there (chat), a simulated caller
|
|
22
|
-
* goldens and a suite of them, its knowledge folder pushed or its golden asked, its memory
|
|
21
|
+
* a written call to the class mounted there (chat), a simulated caller put on the class it holds,
|
|
22
|
+
* its goldens and a suite of them, its knowledge folder pushed or its golden asked, its memory
|
|
23
23
|
* goldens, a call promoted to a candidate file, the drift of the last two windows, and the
|
|
24
24
|
* reproductions a broken run left on that disk. Everything else a console needs is a door of the
|
|
25
25
|
* gateway.
|
|
26
26
|
*/
|
|
27
|
-
export const DevVerbSchema = z.enum(["chat.roster", "chat.start", "chat.say", "chat.end", "simulate.
|
|
27
|
+
export const DevVerbSchema = z.enum(["chat.roster", "chat.start", "chat.say", "chat.end", "simulate.start", "goldens.roster", "goldens.run", "knowledge.roster", "knowledge.push", "knowledge.eval", "memory.roster", "memory.eval", "memory.extraction", "promote.roster", "promote.write", "drift.read", "reproductions.roster", "reproductions.read"]);
|
|
28
28
|
/**
|
|
29
29
|
* Why the call is over. Who hung up, what failed before anybody could, drained: the platform took
|
|
30
30
|
* the worker down (a deploy, a stop) with the call still on it, or app_detached: the app holding
|
|
@@ -258,11 +258,10 @@ export const EventSpecSchema = z.strictObject({
|
|
|
258
258
|
name: z.string(),
|
|
259
259
|
from: z.array(EventSourceSchema),
|
|
260
260
|
});
|
|
261
|
-
/** One file of
|
|
261
|
+
/** One file of a base, as a push sends it: its path as the tenant keeps it, and its text. */
|
|
262
262
|
export const KnowledgeFileSchema = z.strictObject({
|
|
263
263
|
path: z.string(),
|
|
264
264
|
text: z.string(),
|
|
265
|
-
mode: z.enum(["retrieved", "whole"]).nullish(),
|
|
266
265
|
});
|
|
267
266
|
/**
|
|
268
267
|
* The knowledge base the agent answers from, and how its chunks reach the model. It is named by
|
|
@@ -305,9 +304,11 @@ export const MemoryConfigSchema = z.strictObject({
|
|
|
305
304
|
forget: z.array(z.string()).nullish(),
|
|
306
305
|
});
|
|
307
306
|
/**
|
|
308
|
-
* What an app declares about its agent: the
|
|
309
|
-
*
|
|
310
|
-
* thing.
|
|
307
|
+
* What an app declares about its agent: the prompt's layout, the language, the tools, whether it
|
|
308
|
+
* searches its bases itself, and who may see and send what. Every field is optional so a configure
|
|
309
|
+
* can change one thing. The environment — voice, models, greeting, hangup, turn, says, hears,
|
|
310
|
+
* knowledge, docs, memory — is the world's, set in the agent's settings, and no longer read off
|
|
311
|
+
* this declaration.
|
|
311
312
|
*/
|
|
312
313
|
export const AgentConfigSchema = z.strictObject({
|
|
313
314
|
prompt: z.array(PromptBlockSpecSchema).nullish(),
|