@pinecall/protocol 0.6.2 → 0.6.3

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.
@@ -85,6 +85,9 @@ export declare const AgentConfigureSchema: z.ZodObject<{
85
85
  tenant: "tenant";
86
86
  }>;
87
87
  }, z.core.$strict>>>>;
88
+ view: z.ZodOptional<z.ZodNullable<z.ZodObject<{
89
+ name: z.ZodString;
90
+ }, z.core.$strict>>>;
88
91
  events: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
89
92
  name: z.ZodString;
90
93
  from: z.ZodArray<z.ZodEnum<{
@@ -359,6 +362,9 @@ export declare const SessionConfigureSchema: z.ZodObject<{
359
362
  tenant: "tenant";
360
363
  }>;
361
364
  }, z.core.$strict>>>>;
365
+ view: z.ZodOptional<z.ZodNullable<z.ZodObject<{
366
+ name: z.ZodString;
367
+ }, z.core.$strict>>>;
362
368
  events: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
363
369
  name: z.ZodString;
364
370
  from: z.ZodArray<z.ZodEnum<{
@@ -32,9 +32,9 @@ export type Env = z.infer<typeof EnvSchema>;
32
32
  * What a console may ask of the process standing in the agent's directory, relayed by the gateway:
33
33
  * a written call to the class mounted there (chat), a simulated caller put on the class it holds,
34
34
  * its goldens and a suite of them, its knowledge folder pushed or its golden asked, its memory
35
- * goldens, a call promoted to a candidate file, the drift of the last two windows, and the
36
- * reproductions a broken run left on that disk. Everything else a console needs is a door of the
37
- * gateway.
35
+ * goldens, the panel it draws beside a conversation (view), a call promoted to a candidate file,
36
+ * the drift of the last two windows, and the reproductions a broken run left on that disk.
37
+ * Everything else a console needs is a door of the gateway.
38
38
  */
39
39
  export declare const DevVerbSchema: z.ZodEnum<{
40
40
  "chat.end": "chat.end";
@@ -55,6 +55,7 @@ export declare const DevVerbSchema: z.ZodEnum<{
55
55
  "reproductions.read": "reproductions.read";
56
56
  "reproductions.roster": "reproductions.roster";
57
57
  "simulate.start": "simulate.start";
58
+ "view.render": "view.render";
58
59
  }>;
59
60
  export type DevVerb = z.infer<typeof DevVerbSchema>;
60
61
  /**
@@ -330,6 +331,7 @@ export type MemoryOp = z.infer<typeof MemoryOpSchema>;
330
331
  /** One chunk of the knowledge base that retrieval put in front of the model for this turn. */
331
332
  export declare const DocSourceSchema: z.ZodObject<{
332
333
  id: z.ZodString;
334
+ base: z.ZodOptional<z.ZodNullable<z.ZodString>>;
333
335
  path: z.ZodString;
334
336
  heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
335
337
  score: z.ZodNumber;
@@ -442,6 +444,16 @@ export declare const StateFieldSpecSchema: z.ZodObject<{
442
444
  }>;
443
445
  }, z.core.$strict>;
444
446
  export type StateFieldSpec = z.infer<typeof StateFieldSpecSchema>;
447
+ /**
448
+ * The panel the agent draws beside a conversation: it is declared here so a console knows the
449
+ * agent has one before it asks for it, and draws its own about the contact when it has not. What
450
+ * the panel CONTAINS never comes this way — it is asked for a conversation at a time, through the
451
+ * view.render dev verb.
452
+ */
453
+ export declare const ViewSpecSchema: z.ZodObject<{
454
+ name: z.ZodString;
455
+ }, z.core.$strict>;
456
+ export type ViewSpec = z.infer<typeof ViewSpecSchema>;
445
457
  /**
446
458
  * One outside event the agent accepts, and from whom. An event nobody declared is refused before
447
459
  * it touches the log.
@@ -595,6 +607,9 @@ export declare const AgentConfigSchema: z.ZodObject<{
595
607
  tenant: "tenant";
596
608
  }>;
597
609
  }, z.core.$strict>>>>;
610
+ view: z.ZodOptional<z.ZodNullable<z.ZodObject<{
611
+ name: z.ZodString;
612
+ }, z.core.$strict>>>;
598
613
  events: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
599
614
  name: z.ZodString;
600
615
  from: z.ZodArray<z.ZodEnum<{
@@ -20,11 +20,11 @@ export const EnvSchema = z.enum(["production", "sandbox"]);
20
20
  * What a console may ask of the process standing in the agent's directory, relayed by the gateway:
21
21
  * a written call to the class mounted there (chat), a simulated caller put on the class it holds,
22
22
  * its goldens and a suite of them, its knowledge folder pushed or its golden asked, its memory
23
- * goldens, a call promoted to a candidate file, the drift of the last two windows, and the
24
- * reproductions a broken run left on that disk. Everything else a console needs is a door of the
25
- * gateway.
23
+ * goldens, the panel it draws beside a conversation (view), a call promoted to a candidate file,
24
+ * the drift of the last two windows, and the reproductions a broken run left on that disk.
25
+ * Everything else a console needs is a door of the gateway.
26
26
  */
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"]);
27
+ export const DevVerbSchema = z.enum(["chat.roster", "chat.start", "chat.say", "chat.end", "view.render", "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
@@ -184,6 +184,7 @@ export const MemoryOpSchema = z.strictObject({
184
184
  /** One chunk of the knowledge base that retrieval put in front of the model for this turn. */
185
185
  export const DocSourceSchema = z.strictObject({
186
186
  id: z.string(),
187
+ base: z.string().nullish(),
187
188
  path: z.string(),
188
189
  heading: z.string().nullish(),
189
190
  score: z.number(),
@@ -250,6 +251,15 @@ export const StateFieldSpecSchema = z.strictObject({
250
251
  name: z.string(),
251
252
  visibility: VisibilitySchema,
252
253
  });
254
+ /**
255
+ * The panel the agent draws beside a conversation: it is declared here so a console knows the
256
+ * agent has one before it asks for it, and draws its own about the contact when it has not. What
257
+ * the panel CONTAINS never comes this way — it is asked for a conversation at a time, through the
258
+ * view.render dev verb.
259
+ */
260
+ export const ViewSpecSchema = z.strictObject({
261
+ name: z.string(),
262
+ });
253
263
  /**
254
264
  * One outside event the agent accepts, and from whom. An event nobody declared is refused before
255
265
  * it touches the log.
@@ -327,5 +337,6 @@ export const AgentConfigSchema = z.strictObject({
327
337
  tools: z.array(ToolSpecSchema).nullish(),
328
338
  uses_knowledge: z.boolean().nullish(),
329
339
  state_fields: z.array(StateFieldSpecSchema).nullish(),
340
+ view: ViewSpecSchema.nullish(),
330
341
  events: z.array(EventSpecSchema).nullish(),
331
342
  });
@@ -467,6 +467,7 @@ export declare const DevRequestSchema: z.ZodObject<{
467
467
  "reproductions.read": "reproductions.read";
468
468
  "reproductions.roster": "reproductions.roster";
469
469
  "simulate.start": "simulate.start";
470
+ "view.render": "view.render";
470
471
  }>;
471
472
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
472
473
  }, z.core.$strict>;
@@ -479,6 +480,7 @@ export declare const DocsSourcesSchema: z.ZodObject<{
479
480
  query: z.ZodString;
480
481
  sources: z.ZodArray<z.ZodObject<{
481
482
  id: z.ZodString;
483
+ base: z.ZodOptional<z.ZodNullable<z.ZodString>>;
482
484
  path: z.ZodString;
483
485
  heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
484
486
  score: z.ZodNumber;
@@ -878,6 +880,7 @@ export declare const LogGapSchema: z.ZodObject<{
878
880
  }, z.core.$strict>>;
879
881
  sources: z.ZodArray<z.ZodObject<{
880
882
  id: z.ZodString;
883
+ base: z.ZodOptional<z.ZodNullable<z.ZodString>>;
881
884
  path: z.ZodString;
882
885
  heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
883
886
  score: z.ZodNumber;
@@ -354,6 +354,7 @@ export declare const EVENT_SCHEMAS: {
354
354
  "reproductions.read": "reproductions.read";
355
355
  "reproductions.roster": "reproductions.roster";
356
356
  "simulate.start": "simulate.start";
357
+ "view.render": "view.render";
357
358
  }>;
358
359
  data: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
359
360
  }, import("zod/v4/core").$strict>;
@@ -361,6 +362,7 @@ export declare const EVENT_SCHEMAS: {
361
362
  query: import("zod").ZodString;
362
363
  sources: import("zod").ZodArray<import("zod").ZodObject<{
363
364
  id: import("zod").ZodString;
365
+ base: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
364
366
  path: import("zod").ZodString;
365
367
  heading: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
366
368
  score: import("zod").ZodNumber;
@@ -747,6 +749,7 @@ export declare const EVENT_SCHEMAS: {
747
749
  }, import("zod/v4/core").$strict>>;
748
750
  sources: import("zod").ZodArray<import("zod").ZodObject<{
749
751
  id: import("zod").ZodString;
752
+ base: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
750
753
  path: import("zod").ZodString;
751
754
  heading: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
752
755
  score: import("zod").ZodNumber;
@@ -1344,6 +1347,9 @@ export declare const COMMAND_SCHEMAS: {
1344
1347
  tenant: "tenant";
1345
1348
  }>;
1346
1349
  }, import("zod/v4/core").$strict>>>>;
1350
+ view: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
1351
+ name: import("zod").ZodString;
1352
+ }, import("zod/v4/core").$strict>>>;
1347
1353
  events: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
1348
1354
  name: import("zod").ZodString;
1349
1355
  from: import("zod").ZodArray<import("zod").ZodEnum<{
@@ -1526,6 +1532,9 @@ export declare const COMMAND_SCHEMAS: {
1526
1532
  tenant: "tenant";
1527
1533
  }>;
1528
1534
  }, import("zod/v4/core").$strict>>>>;
1535
+ view: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
1536
+ name: import("zod").ZodString;
1537
+ }, import("zod/v4/core").$strict>>>;
1529
1538
  events: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
1530
1539
  name: import("zod").ZodString;
1531
1540
  from: import("zod").ZodArray<import("zod").ZodEnum<{
@@ -348,6 +348,7 @@ export declare const CallStateSchema: z.ZodObject<{
348
348
  }, z.core.$strict>>;
349
349
  sources: z.ZodArray<z.ZodObject<{
350
350
  id: z.ZodString;
351
+ base: z.ZodOptional<z.ZodNullable<z.ZodString>>;
351
352
  path: z.ZodString;
352
353
  heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
353
354
  score: z.ZodNumber;
@@ -857,7 +858,7 @@ export declare const ThreadMessageSchema: z.ZodObject<{
857
858
  whatsapp: "whatsapp";
858
859
  }>;
859
860
  duration_s: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodNumber>>>;
860
- answered: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
861
+ answered: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodBoolean>>>;
861
862
  }, z.core.$strict>;
862
863
  export type ThreadMessage = z.infer<typeof ThreadMessageSchema>;
863
864
  /** GET /v1/agents/{slug}/threads/{contact}: every call of one contact, merged, oldest first. */
@@ -879,7 +880,7 @@ export declare const ThreadSchema: z.ZodObject<{
879
880
  whatsapp: "whatsapp";
880
881
  }>;
881
882
  duration_s: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodNumber>>>;
882
- answered: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
883
+ answered: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodBoolean>>>;
883
884
  }, z.core.$strict>>;
884
885
  }, z.core.$strict>;
885
886
  export type Thread = z.infer<typeof ThreadSchema>;
@@ -1106,10 +1107,10 @@ export declare const HeldAgentSchema: z.ZodObject<{
1106
1107
  web: "web";
1107
1108
  whatsapp: "whatsapp";
1108
1109
  }>>;
1109
- holder: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1110
+ holder: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodObject<{
1110
1111
  holder: z.ZodNullable<z.ZodString>;
1111
1112
  name: z.ZodNullable<z.ZodString>;
1112
- }, z.core.$strict>>>;
1113
+ }, z.core.$strict>>>>;
1113
1114
  }, z.core.$strict>;
1114
1115
  export type HeldAgent = z.infer<typeof HeldAgentSchema>;
1115
1116
  /** GET /v1/agents: every agent this fleet is holding right now, as the front page lists them. */
@@ -1121,10 +1122,10 @@ export declare const AgentListSchema: z.ZodObject<{
1121
1122
  web: "web";
1122
1123
  whatsapp: "whatsapp";
1123
1124
  }>>;
1124
- holder: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1125
+ holder: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodObject<{
1125
1126
  holder: z.ZodNullable<z.ZodString>;
1126
1127
  name: z.ZodNullable<z.ZodString>;
1127
- }, z.core.$strict>>>;
1128
+ }, z.core.$strict>>>>;
1128
1129
  }, z.core.$strict>>;
1129
1130
  }, z.core.$strict>;
1130
1131
  export type AgentList = z.infer<typeof AgentListSchema>;
@@ -1192,10 +1193,10 @@ export declare const TheLineSchema: z.ZodObject<{
1192
1193
  sandbox: "sandbox";
1193
1194
  }>;
1194
1195
  held: z.ZodBoolean;
1195
- holding: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1196
+ holding: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodObject<{
1196
1197
  holder: z.ZodNullable<z.ZodString>;
1197
1198
  name: z.ZodNullable<z.ZodString>;
1198
- }, z.core.$strict>>>;
1199
+ }, z.core.$strict>>>>;
1199
1200
  yours: z.ZodBoolean;
1200
1201
  waiting: z.ZodArray<z.ZodObject<{
1201
1202
  holder: z.ZodNullable<z.ZodString>;
@@ -144,7 +144,7 @@ export const ThreadMessageSchema = z.strictObject({
144
144
  call: z.string(),
145
145
  channel: ChannelSchema,
146
146
  duration_s: z.number().nullable().nullish(),
147
- answered: z.boolean().nullish(),
147
+ answered: z.boolean().nullable().nullish(),
148
148
  });
149
149
  /** GET /v1/agents/{slug}/threads/{contact}: every call of one contact, merged, oldest first. */
150
150
  export const ThreadSchema = z.strictObject({
@@ -334,7 +334,7 @@ export const LineHolderSchema = z.strictObject({
334
334
  export const HeldAgentSchema = z.strictObject({
335
335
  slug: z.string(),
336
336
  channels: z.array(ChannelSchema),
337
- holder: LineHolderSchema.nullish(),
337
+ holder: LineHolderSchema.nullable().nullish(),
338
338
  });
339
339
  /** GET /v1/agents: every agent this fleet is holding right now, as the front page lists them. */
340
340
  export const AgentListSchema = z.strictObject({
@@ -377,7 +377,7 @@ export const TheLineSchema = z.strictObject({
377
377
  agent: z.string(),
378
378
  env: EnvSchema,
379
379
  held: z.boolean(),
380
- holding: LineHolderSchema.nullish(),
380
+ holding: LineHolderSchema.nullable().nullish(),
381
381
  yours: z.boolean(),
382
382
  waiting: z.array(LineHolderSchema),
383
383
  calling: z.array(z.string()),
@@ -772,6 +772,7 @@ export declare const StateSchema: z.ZodObject<{
772
772
  }, z.core.$strict>>;
773
773
  sources: z.ZodArray<z.ZodObject<{
774
774
  id: z.ZodString;
775
+ base: z.ZodOptional<z.ZodNullable<z.ZodString>>;
775
776
  path: z.ZodString;
776
777
  heading: z.ZodOptional<z.ZodNullable<z.ZodString>>;
777
778
  score: z.ZodNumber;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinecall/protocol",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "The Pinecall wire: zod schemas and types generated from the protocol schema, and the log reducer",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Pinecall <hello@pinecall.io>",