@flexkit/agent-protocol 0.3.6 → 0.3.8

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/index.d.ts CHANGED
@@ -8,6 +8,21 @@ import { z } from 'zod';
8
8
  declare const errorSchema: z.ZodObject<{
9
9
  message: z.ZodString;
10
10
  }, z.core.$strip>;
11
+ /** One multiple-choice question the chat agent asks with Ask User Question. */
12
+ declare const userQuestionSchema: z.ZodObject<{
13
+ header: z.ZodString;
14
+ multiSelect: z.ZodBoolean;
15
+ options: z.ZodArray<z.ZodObject<{
16
+ description: z.ZodString;
17
+ label: z.ZodString;
18
+ }, z.core.$strip>>;
19
+ question: z.ZodString;
20
+ }, z.core.$strip>;
21
+ /** The user's answer to one question, by position: chosen option labels plus optional own words. */
22
+ declare const userQuestionAnswerSchema: z.ZodObject<{
23
+ other: z.ZodOptional<z.ZodString>;
24
+ selected: z.ZodArray<z.ZodString>;
25
+ }, z.core.$strip>;
11
26
  declare const dataPartSchema: z.ZodObject<{
12
27
  'plugin-connection': z.ZodObject<{
13
28
  pluginId: z.ZodString;
@@ -105,6 +120,8 @@ declare const dataPartSchema: z.ZodObject<{
105
120
  kind: z.ZodOptional<z.ZodEnum<{
106
121
  html: "html";
107
122
  pdf: "pdf";
123
+ csv: "csv";
124
+ json: "json";
108
125
  }>>;
109
126
  sizeBytes: z.ZodOptional<z.ZodNumber>;
110
127
  status: z.ZodEnum<{
@@ -195,6 +212,22 @@ declare const dataPartSchema: z.ZodObject<{
195
212
  message: z.ZodString;
196
213
  }, z.core.$strip>>;
197
214
  }, z.core.$strip>;
215
+ 'export-records': z.ZodObject<{
216
+ error: z.ZodOptional<z.ZodObject<{
217
+ message: z.ZodString;
218
+ }, z.core.$strip>>;
219
+ filename: z.ZodString;
220
+ format: z.ZodEnum<{
221
+ csv: "csv";
222
+ json: "json";
223
+ }>;
224
+ rowCount: z.ZodNumber;
225
+ status: z.ZodEnum<{
226
+ loading: "loading";
227
+ done: "done";
228
+ error: "error";
229
+ }>;
230
+ }, z.core.$strip>;
198
231
  'mutation-approval': z.ZodObject<{
199
232
  approvalId: z.ZodString;
200
233
  affectedCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -290,6 +323,30 @@ declare const dataPartSchema: z.ZodObject<{
290
323
  }, z.core.$strip>>;
291
324
  text: z.ZodString;
292
325
  }, z.core.$strip>;
326
+ 'user-question': z.ZodObject<{
327
+ answers: z.ZodOptional<z.ZodArray<z.ZodObject<{
328
+ other: z.ZodOptional<z.ZodString>;
329
+ selected: z.ZodArray<z.ZodString>;
330
+ }, z.core.$strip>>>;
331
+ message: z.ZodOptional<z.ZodString>;
332
+ questionId: z.ZodString;
333
+ questions: z.ZodArray<z.ZodObject<{
334
+ header: z.ZodString;
335
+ multiSelect: z.ZodBoolean;
336
+ options: z.ZodArray<z.ZodObject<{
337
+ description: z.ZodString;
338
+ label: z.ZodString;
339
+ }, z.core.$strip>>;
340
+ question: z.ZodString;
341
+ }, z.core.$strip>>;
342
+ status: z.ZodEnum<{
343
+ pending: "pending";
344
+ expired: "expired";
345
+ cancelled: "cancelled";
346
+ answered: "answered";
347
+ dismissed: "dismissed";
348
+ }>;
349
+ }, z.core.$strip>;
293
350
  'monitor-event': z.ZodObject<{
294
351
  description: z.ZodString;
295
352
  events: z.ZodArray<z.ZodObject<{
@@ -312,11 +369,12 @@ type DataPartMessageType = `data-${DataPartType}`;
312
369
  * `approval_request`: a proposal waits on the recipient. `automation_result`: an
313
370
  * automation run finished and its notify rule asked for it. `automation_failure`:
314
371
  * an automation run failed. `monitor_event`: a chat monitor woke the chat, or paused.
372
+ * `question`: the chat agent asked the recipient a question and waits for the answer.
315
373
  */
316
- type ActivityItemKind = 'approval_request' | 'automation_result' | 'automation_failure' | 'monitor_event';
374
+ type ActivityItemKind = 'approval_request' | 'automation_result' | 'automation_failure' | 'monitor_event' | 'question';
317
375
  /** `done` = resolved by the system (e.g. the approval was decided); `dismissed` = hidden by the recipient. */
318
376
  type ActivityItemState = 'unread' | 'read' | 'done' | 'dismissed';
319
- type ActivityItemResolution = 'approved' | 'rejected' | 'expired' | 'cancelled';
377
+ type ActivityItemResolution = 'approved' | 'rejected' | 'expired' | 'cancelled' | 'answered' | 'dismissed';
320
378
  /** One entry in a user's Studio Activity inbox. */
321
379
  interface ActivityItem {
322
380
  approvalId: string | null;
@@ -329,7 +387,7 @@ interface ActivityItem {
329
387
  id: string;
330
388
  kind: ActivityItemKind;
331
389
  readAt: string | null;
332
- /** True when the item waits on the recipient (an approval request). */
390
+ /** True when the item waits on the recipient (an approval request or a question). */
333
391
  requiresAction: boolean;
334
392
  resolution: ActivityItemResolution | null;
335
393
  resolvedAt: string | null;
@@ -590,11 +648,41 @@ interface AgentChatFollowUp {
590
648
  /** The stored user message, with status `steering` or `queued`. */
591
649
  message: AgentChatMessage;
592
650
  }
593
- /** A follow-up either joined the running turn or, when that turn had already ended, started the next one. */
651
+ /**
652
+ * A follow-up either joined the running turn, answered the question that turn
653
+ * waits on, or, when that turn had already ended, started the next one.
654
+ */
594
655
  type AgentChatFollowUpResult = {
595
656
  followUp: AgentChatFollowUp;
657
+ } | {
658
+ question: AgentChatQuestion;
596
659
  } | {
597
660
  turn: AgentChatTurn;
598
661
  };
662
+ type AgentChatQuestionItem = z.infer<typeof userQuestionSchema>;
663
+ type AgentChatQuestionAnswer = z.infer<typeof userQuestionAnswerSchema>;
664
+ /** `answered` also covers an answer typed in the composer, which is kept in `message`. */
665
+ type AgentChatQuestionStatus = 'pending' | 'answered' | 'dismissed' | 'expired' | 'cancelled';
666
+ /** Multiple-choice questions the chat agent asked; its turn waits until they are answered. */
667
+ interface AgentChatQuestion {
668
+ answeredAt: string | null;
669
+ /** By position, one per question. */
670
+ answers: AgentChatQuestionAnswer[] | null;
671
+ chatId: string;
672
+ chatMessageId: string;
673
+ expiresAt: string;
674
+ id: string;
675
+ message: string | null;
676
+ questions: AgentChatQuestionItem[];
677
+ requestedAt: string;
678
+ status: AgentChatQuestionStatus;
679
+ }
680
+ /** Body of `POST .../chats/:chatId/questions/:questionId/answer`. */
681
+ type AgentChatQuestionResponse = {
682
+ action: 'answer';
683
+ answers: AgentChatQuestionAnswer[];
684
+ } | {
685
+ action: 'dismiss';
686
+ };
599
687
 
600
- export { type ActivityItem, type ActivityItemKind, type ActivityItemResolution, type ActivityItemState, type ActivityItemsPage, type ActivitySummary, type AgentChat, type AgentChatAttachment, type AgentChatFollowUp, type AgentChatFollowUpDelivery, type AgentChatFollowUpResult, type AgentChatMessage, type AgentChatMessageKind, type AgentChatMessageRole, type AgentChatMessageStatus, type AgentChatMonitor, type AgentChatPart, type AgentChatTurn, type AgentMonitorSourceType, type AgentMonitorStatus, type AutomationApproval, type AutomationApprovalKind, type AutomationApprovalOperation, type AutomationApprovalPreview, type AutomationApprovalPreviewKind, type AutomationApprovalPreviewOperation, type AutomationApprovalPreviewRow, type AutomationApprovalStatus, type AutomationChangeField, type AutomationChangePreview, type AutomationMutationPolicy, type AutomationNotifyRule, type AutomationProposalPlugin, type AutomationProposalPreview, type AutomationRun, type AutomationRunStatus, type AutomationToolAllowRule, type AutomationTriggerType, type AutomationVisibility, type CreatedAutomationResult, DATA_PART_TYPES, type DataPart, type DataPartMessageType, type DataPartType, type SchemaChangePreviewSummary, dataPartSchema, errorSchema, isDataPartType };
688
+ export { type ActivityItem, type ActivityItemKind, type ActivityItemResolution, type ActivityItemState, type ActivityItemsPage, type ActivitySummary, type AgentChat, type AgentChatAttachment, type AgentChatFollowUp, type AgentChatFollowUpDelivery, type AgentChatFollowUpResult, type AgentChatMessage, type AgentChatMessageKind, type AgentChatMessageRole, type AgentChatMessageStatus, type AgentChatMonitor, type AgentChatPart, type AgentChatQuestion, type AgentChatQuestionAnswer, type AgentChatQuestionItem, type AgentChatQuestionResponse, type AgentChatQuestionStatus, type AgentChatTurn, type AgentMonitorSourceType, type AgentMonitorStatus, type AutomationApproval, type AutomationApprovalKind, type AutomationApprovalOperation, type AutomationApprovalPreview, type AutomationApprovalPreviewKind, type AutomationApprovalPreviewOperation, type AutomationApprovalPreviewRow, type AutomationApprovalStatus, type AutomationChangeField, type AutomationChangePreview, type AutomationMutationPolicy, type AutomationNotifyRule, type AutomationProposalPlugin, type AutomationProposalPreview, type AutomationRun, type AutomationRunStatus, type AutomationToolAllowRule, type AutomationTriggerType, type AutomationVisibility, type CreatedAutomationResult, DATA_PART_TYPES, type DataPart, type DataPartMessageType, type DataPartType, type SchemaChangePreviewSummary, dataPartSchema, errorSchema, isDataPartType, userQuestionAnswerSchema, userQuestionSchema };
package/dist/index.js CHANGED
@@ -10,6 +10,17 @@ var monitorEventSchema = z.object({
10
10
  /** Events this message carries, including any beyond the listed ones. */
11
11
  total: z.number()
12
12
  });
13
+ var userQuestionSchema = z.object({
14
+ /** Short chip label, at most 12 characters. */
15
+ header: z.string(),
16
+ multiSelect: z.boolean(),
17
+ options: z.array(z.object({ description: z.string(), label: z.string() })),
18
+ question: z.string()
19
+ });
20
+ var userQuestionAnswerSchema = z.object({
21
+ other: z.string().optional(),
22
+ selected: z.array(z.string())
23
+ });
13
24
  var dataPartSchema = z.object({
14
25
  "plugin-connection": z.object({ pluginId: z.string(), connectionId: z.string().optional() }),
15
26
  /** Lifecycle of one plugin tool call, so the UI can name the in-flight call in its status line. */
@@ -75,7 +86,7 @@ var dataPartSchema = z.object({
75
86
  contentType: z.string().optional(),
76
87
  error: errorSchema.optional(),
77
88
  filename: z.string(),
78
- kind: z.enum(["html", "pdf"]).optional(),
89
+ kind: z.enum(["html", "pdf", "csv", "json"]).optional(),
79
90
  sizeBytes: z.number().optional(),
80
91
  status: z.enum(["uploading", "done", "error"]),
81
92
  /** Persistent public URL of the stored artifact. */
@@ -117,6 +128,15 @@ var dataPartSchema = z.object({
117
128
  status: z.enum(["loading", "done", "error"]),
118
129
  error: errorSchema.optional()
119
130
  }),
131
+ /** A data export the server pages through; the file arrives as a `run-artifact` part. */
132
+ "export-records": z.object({
133
+ error: errorSchema.optional(),
134
+ filename: z.string(),
135
+ format: z.enum(["csv", "json"]),
136
+ /** Rows written so far, then in total. */
137
+ rowCount: z.number(),
138
+ status: z.enum(["loading", "done", "error"])
139
+ }),
120
140
  /** Emitted for proposals; the UI fetches the full proposal from the approvals API by id. */
121
141
  "mutation-approval": z.object({
122
142
  approvalId: z.string(),
@@ -179,6 +199,18 @@ var dataPartSchema = z.object({
179
199
  monitorEvent: monitorEventSchema.optional(),
180
200
  text: z.string()
181
201
  }),
202
+ /**
203
+ * Questions the chat agent asked; the turn waits until the user answers.
204
+ * `answers` follow `questions` by position. `message` is set instead when
205
+ * the user answered by typing in the composer.
206
+ */
207
+ "user-question": z.object({
208
+ answers: z.array(userQuestionAnswerSchema).optional(),
209
+ message: z.string().optional(),
210
+ questionId: z.string(),
211
+ questions: z.array(userQuestionSchema),
212
+ status: z.enum(["pending", "answered", "dismissed", "expired", "cancelled"])
213
+ }),
182
214
  /** Events a chat monitor delivered, on the `monitor_event` message that carries them. */
183
215
  "monitor-event": monitorEventSchema
184
216
  });
@@ -190,6 +222,8 @@ export {
190
222
  DATA_PART_TYPES,
191
223
  dataPartSchema,
192
224
  errorSchema,
193
- isDataPartType
225
+ isDataPartType,
226
+ userQuestionAnswerSchema,
227
+ userQuestionSchema
194
228
  };
195
229
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/data-parts.ts"],"sourcesContent":["import { z } from 'zod';\n\n/**\n * Custom `data-*` parts streamed by the Flexkit agent platform and rendered by\n * Studio. The server validates what it writes against these schemas and the\n * UI derives its part types from them, so the two can never drift.\n */\nexport const errorSchema = z.object({\n message: z.string(),\n});\n\n/** A batch of one monitor's events as the chat card shows it; the model reads a text summary. */\nconst monitorEventSchema = z.object({\n description: z.string(),\n events: z.array(z.object({ createdAt: z.string(), id: z.string(), summary: z.string() })),\n monitorId: z.string(),\n /** Events this message carries, including any beyond the listed ones. */\n total: z.number(),\n});\n\nexport const dataPartSchema = z.object({\n 'plugin-connection': z.object({ pluginId: z.string(), connectionId: z.string().optional() }),\n /** Lifecycle of one plugin tool call, so the UI can name the in-flight call in its status line. */\n 'plugin-call': z.object({\n pluginId: z.string(),\n tool: z.string(),\n status: z.enum(['loading', 'done', 'error']),\n error: errorSchema.optional(),\n }),\n /** Written when the chat history was summarized before or during a turn. */\n 'context-compaction': z.object({\n reason: z.enum(['threshold', 'context_length_error']),\n status: z.enum(['done']),\n summarizedMessageCount: z.number(),\n }),\n /** The agent's working plan; replaced in place as steps complete. */\n plan: z.object({\n explanation: z.string().optional(),\n steps: z.array(\n z.object({\n status: z.enum(['pending', 'in_progress', 'completed']),\n step: z.string(),\n })\n ),\n updatedAt: z.string(),\n }),\n /** A delegated subtask of an automation run. */\n subtask: z.object({\n error: errorSchema.optional(),\n resultPreview: z.string().optional(),\n status: z.enum(['running', 'done', 'error']),\n stepsUsed: z.number().optional(),\n subtaskId: z.string(),\n title: z.string(),\n }),\n /** json-render patch lines, extracted from the assistant text by the stream pipeline. */\n spec: z.union([\n z.object({\n type: z.literal('patch'),\n patch: z.unknown(),\n }),\n z.object({\n type: z.literal('flat'),\n spec: z.unknown(),\n }),\n z.object({\n type: z.literal('nested'),\n spec: z.unknown(),\n }),\n ]),\n 'create-sandbox': z.object({\n sandboxId: z.string().optional(),\n status: z.enum(['loading', 'done', 'error']),\n error: errorSchema.optional(),\n }),\n 'generating-files': z.object({\n paths: z.array(z.string()),\n status: z.enum(['generating', 'uploading', 'uploaded', 'done', 'error']),\n error: errorSchema.optional(),\n }),\n 'run-artifact': z.object({\n artifactId: z.string().optional(),\n contentType: z.string().optional(),\n error: errorSchema.optional(),\n filename: z.string(),\n kind: z.enum(['html', 'pdf']).optional(),\n sizeBytes: z.number().optional(),\n status: z.enum(['uploading', 'done', 'error']),\n /** Persistent public URL of the stored artifact. */\n url: z.string().optional(),\n }),\n 'run-command': z.object({\n sandboxId: z.string(),\n commandId: z.string().optional(),\n command: z.string(),\n args: z.array(z.string()),\n status: z.enum(['executing', 'running', 'waiting', 'done', 'error']),\n exitCode: z.number().optional(),\n error: errorSchema.optional(),\n }),\n 'search-schema': z.object({\n query: z.string().optional(),\n status: z.enum(['loading', 'done', 'error']),\n error: errorSchema.optional(),\n }),\n 'web-search': z.object({\n query: z.string(),\n status: z.enum(['loading', 'done', 'error']),\n error: errorSchema.optional(),\n }),\n 'tool-delivery': z.object({\n channelId: z.string(),\n channelName: z.string(),\n provider: z.enum(['slack', 'teams']),\n status: z.enum(['loading', 'done', 'error']),\n error: errorSchema.optional(),\n }),\n 'validate-graphql': z.object({\n status: z.enum(['loading', 'valid', 'invalid', 'error']),\n errorCount: z.number().optional(),\n error: errorSchema.optional(),\n }),\n 'execute-graphql': z.object({\n operationType: z.enum(['query', 'mutation']).optional(),\n status: z.enum(['loading', 'done', 'error']),\n error: errorSchema.optional(),\n }),\n /** Emitted for proposals; the UI fetches the full proposal from the approvals API by id. */\n 'mutation-approval': z.object({\n approvalId: z.string(),\n affectedCount: z.number().nullable().optional(),\n decidedBy: z.string().optional(),\n operationsSummary: z.string(),\n reason: z.string().optional(),\n status: z.enum(['pending', 'approved', 'rejected', 'expired', 'cancelled', 'executed', 'error']),\n error: errorSchema.optional(),\n }),\n 'bulk-graphql-action': z.object({\n changedItems: z.number().optional(),\n failedItems: z.number().optional(),\n jobId: z.string().optional(),\n operationName: z.string(),\n processedItems: z.number().optional(),\n status: z.enum(['loading', 'running', 'done', 'error']),\n totalItems: z.number().optional(),\n error: errorSchema.optional(),\n }),\n 'update-memory': z.object({\n status: z.enum(['loading', 'done', 'error']),\n error: errorSchema.optional(),\n }),\n 'load-skill': z.object({\n /** True for skills attached to the automation, injected at run start rather than loaded on demand. */\n attached: z.boolean().optional(),\n skillName: z.string().optional(),\n status: z.enum(['loading', 'done', 'error']),\n error: errorSchema.optional(),\n }),\n /** Marker written by the run workflow for the trigger event so a run replays as a conversation. */\n 'user-message': z.object({\n parts: z.array(z.unknown()),\n }),\n /** Final report written by the run workflow when the agent finishes. */\n 'run-summary': z.object({\n status: z.enum(['success', 'skipped', 'failed']),\n summary: z.string(),\n }),\n /** A chat turn that ended with an error. */\n 'turn-error': z.object({\n message: z.string(),\n }),\n /** One follow-up instruction offered under a finished chat reply; clicking it fills the composer. */\n 'suggested-prompt': z.object({\n prompt: z.string(),\n }),\n /**\n * A message the user sent while the turn was running, at the point in the\n * reply where the agent received it. The UI shows it there, in place of the\n * stored user message it refers to. `monitorEvent` is set when a monitor,\n * not the user, sent it.\n */\n 'mid-turn-message': z.object({\n attachments: z.array(\n z.object({ filename: z.string(), mediaType: z.string(), sizeBytes: z.number(), url: z.string() })\n ),\n messageId: z.string(),\n monitorEvent: monitorEventSchema.optional(),\n text: z.string(),\n }),\n /** Events a chat monitor delivered, on the `monitor_event` message that carries them. */\n 'monitor-event': monitorEventSchema,\n});\n\nexport type DataPart = z.infer<typeof dataPartSchema>;\nexport type DataPartType = keyof DataPart;\n\nexport const DATA_PART_TYPES = Object.keys(dataPartSchema.shape) as DataPartType[];\n\nexport function isDataPartType(type: string): type is DataPartType {\n return (DATA_PART_TYPES as string[]).includes(type);\n}\n\n/** The `type` of a UI message part carrying this data part. */\nexport type DataPartMessageType = `data-${DataPartType}`;\n"],"mappings":";AAAA,SAAS,SAAS;AAOX,IAAM,cAAc,EAAE,OAAO;AAAA,EAClC,SAAS,EAAE,OAAO;AACpB,CAAC;AAGD,IAAM,qBAAqB,EAAE,OAAO;AAAA,EAClC,aAAa,EAAE,OAAO;AAAA,EACtB,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,GAAG,IAAI,EAAE,OAAO,GAAG,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC;AAAA,EACxF,WAAW,EAAE,OAAO;AAAA;AAAA,EAEpB,OAAO,EAAE,OAAO;AAClB,CAAC;AAEM,IAAM,iBAAiB,EAAE,OAAO;AAAA,EACrC,qBAAqB,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,GAA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AW,WAAW,QAAQ,CAAC;AAAA,IAC/C,SAAS,EAAE,OAAO;AAAA,EACpB,CAAC;AAAA;AAAA,EAED,cAAc,EAAE,OAAO;AAAA,IACrB,SAAS,EAAE,OAAO;AAAA,EACpB,CAAC;AAAA;AAAA,EAED,oBAAoB,EAAE,OAAO;AAAA,IAC3B,QAAQ,EAAE,OAAO;AAAA,EACnB,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOD,oBAAoB,EAAE,OAAO;AAAA,IAC3B,aAAa,EAAE;AAAA,MACb,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,GAAG,WAAW,EAAE,OAAO,GAAG,WAAW,EAAE,OAAO,GAAG,KAAK,EAAE,OAAO,EAAE,CAAC;AAAA,IAClG;AAAA,IACA,WAAW,EAAE,OAAO;AAAA,IACpB,cAAc,mBAAmB,SAAS;AAAA,IAC1C,MAAM,EAAE,OAAO;AAAA,EACjB,CAAC;AAAA;AAAA,EAED,iBAAiB;AACnB,CAAC;AAKM,IAAM,kBAAkB,OAAO,KAAK,eAAe,KAAK;AAExD,SAAS,eAAe,MAAoC;AACjE,SAAQ,gBAA6B,SAAS,IAAI;AACpD;","names":[]}
1
+ {"version":3,"sources":["../src/data-parts.ts"],"sourcesContent":["import { z } from 'zod';\n\n/**\n * Custom `data-*` parts streamed by the Flexkit agent platform and rendered by\n * Studio. The server validates what it writes against these schemas and the\n * UI derives its part types from them, so the two can never drift.\n */\nexport const errorSchema = z.object({\n message: z.string(),\n});\n\n/** A batch of one monitor's events as the chat card shows it; the model reads a text summary. */\nconst monitorEventSchema = z.object({\n description: z.string(),\n events: z.array(z.object({ createdAt: z.string(), id: z.string(), summary: z.string() })),\n monitorId: z.string(),\n /** Events this message carries, including any beyond the listed ones. */\n total: z.number(),\n});\n\n/** One multiple-choice question the chat agent asks with Ask User Question. */\nexport const userQuestionSchema = z.object({\n /** Short chip label, at most 12 characters. */\n header: z.string(),\n multiSelect: z.boolean(),\n options: z.array(z.object({ description: z.string(), label: z.string() })),\n question: z.string(),\n});\n\n/** The user's answer to one question, by position: chosen option labels plus optional own words. */\nexport const userQuestionAnswerSchema = z.object({\n other: z.string().optional(),\n selected: z.array(z.string()),\n});\n\nexport const dataPartSchema = z.object({\n 'plugin-connection': z.object({ pluginId: z.string(), connectionId: z.string().optional() }),\n /** Lifecycle of one plugin tool call, so the UI can name the in-flight call in its status line. */\n 'plugin-call': z.object({\n pluginId: z.string(),\n tool: z.string(),\n status: z.enum(['loading', 'done', 'error']),\n error: errorSchema.optional(),\n }),\n /** Written when the chat history was summarized before or during a turn. */\n 'context-compaction': z.object({\n reason: z.enum(['threshold', 'context_length_error']),\n status: z.enum(['done']),\n summarizedMessageCount: z.number(),\n }),\n /** The agent's working plan; replaced in place as steps complete. */\n plan: z.object({\n explanation: z.string().optional(),\n steps: z.array(\n z.object({\n status: z.enum(['pending', 'in_progress', 'completed']),\n step: z.string(),\n })\n ),\n updatedAt: z.string(),\n }),\n /** A delegated subtask of an automation run. */\n subtask: z.object({\n error: errorSchema.optional(),\n resultPreview: z.string().optional(),\n status: z.enum(['running', 'done', 'error']),\n stepsUsed: z.number().optional(),\n subtaskId: z.string(),\n title: z.string(),\n }),\n /** json-render patch lines, extracted from the assistant text by the stream pipeline. */\n spec: z.union([\n z.object({\n type: z.literal('patch'),\n patch: z.unknown(),\n }),\n z.object({\n type: z.literal('flat'),\n spec: z.unknown(),\n }),\n z.object({\n type: z.literal('nested'),\n spec: z.unknown(),\n }),\n ]),\n 'create-sandbox': z.object({\n sandboxId: z.string().optional(),\n status: z.enum(['loading', 'done', 'error']),\n error: errorSchema.optional(),\n }),\n 'generating-files': z.object({\n paths: z.array(z.string()),\n status: z.enum(['generating', 'uploading', 'uploaded', 'done', 'error']),\n error: errorSchema.optional(),\n }),\n 'run-artifact': z.object({\n artifactId: z.string().optional(),\n contentType: z.string().optional(),\n error: errorSchema.optional(),\n filename: z.string(),\n kind: z.enum(['html', 'pdf', 'csv', 'json']).optional(),\n sizeBytes: z.number().optional(),\n status: z.enum(['uploading', 'done', 'error']),\n /** Persistent public URL of the stored artifact. */\n url: z.string().optional(),\n }),\n 'run-command': z.object({\n sandboxId: z.string(),\n commandId: z.string().optional(),\n command: z.string(),\n args: z.array(z.string()),\n status: z.enum(['executing', 'running', 'waiting', 'done', 'error']),\n exitCode: z.number().optional(),\n error: errorSchema.optional(),\n }),\n 'search-schema': z.object({\n query: z.string().optional(),\n status: z.enum(['loading', 'done', 'error']),\n error: errorSchema.optional(),\n }),\n 'web-search': z.object({\n query: z.string(),\n status: z.enum(['loading', 'done', 'error']),\n error: errorSchema.optional(),\n }),\n 'tool-delivery': z.object({\n channelId: z.string(),\n channelName: z.string(),\n provider: z.enum(['slack', 'teams']),\n status: z.enum(['loading', 'done', 'error']),\n error: errorSchema.optional(),\n }),\n 'validate-graphql': z.object({\n status: z.enum(['loading', 'valid', 'invalid', 'error']),\n errorCount: z.number().optional(),\n error: errorSchema.optional(),\n }),\n 'execute-graphql': z.object({\n operationType: z.enum(['query', 'mutation']).optional(),\n status: z.enum(['loading', 'done', 'error']),\n error: errorSchema.optional(),\n }),\n /** A data export the server pages through; the file arrives as a `run-artifact` part. */\n 'export-records': z.object({\n error: errorSchema.optional(),\n filename: z.string(),\n format: z.enum(['csv', 'json']),\n /** Rows written so far, then in total. */\n rowCount: z.number(),\n status: z.enum(['loading', 'done', 'error']),\n }),\n /** Emitted for proposals; the UI fetches the full proposal from the approvals API by id. */\n 'mutation-approval': z.object({\n approvalId: z.string(),\n affectedCount: z.number().nullable().optional(),\n decidedBy: z.string().optional(),\n operationsSummary: z.string(),\n reason: z.string().optional(),\n status: z.enum(['pending', 'approved', 'rejected', 'expired', 'cancelled', 'executed', 'error']),\n error: errorSchema.optional(),\n }),\n 'bulk-graphql-action': z.object({\n changedItems: z.number().optional(),\n failedItems: z.number().optional(),\n jobId: z.string().optional(),\n operationName: z.string(),\n processedItems: z.number().optional(),\n status: z.enum(['loading', 'running', 'done', 'error']),\n totalItems: z.number().optional(),\n error: errorSchema.optional(),\n }),\n 'update-memory': z.object({\n status: z.enum(['loading', 'done', 'error']),\n error: errorSchema.optional(),\n }),\n 'load-skill': z.object({\n /** True for skills attached to the automation, injected at run start rather than loaded on demand. */\n attached: z.boolean().optional(),\n skillName: z.string().optional(),\n status: z.enum(['loading', 'done', 'error']),\n error: errorSchema.optional(),\n }),\n /** Marker written by the run workflow for the trigger event so a run replays as a conversation. */\n 'user-message': z.object({\n parts: z.array(z.unknown()),\n }),\n /** Final report written by the run workflow when the agent finishes. */\n 'run-summary': z.object({\n status: z.enum(['success', 'skipped', 'failed']),\n summary: z.string(),\n }),\n /** A chat turn that ended with an error. */\n 'turn-error': z.object({\n message: z.string(),\n }),\n /** One follow-up instruction offered under a finished chat reply; clicking it fills the composer. */\n 'suggested-prompt': z.object({\n prompt: z.string(),\n }),\n /**\n * A message the user sent while the turn was running, at the point in the\n * reply where the agent received it. The UI shows it there, in place of the\n * stored user message it refers to. `monitorEvent` is set when a monitor,\n * not the user, sent it.\n */\n 'mid-turn-message': z.object({\n attachments: z.array(\n z.object({ filename: z.string(), mediaType: z.string(), sizeBytes: z.number(), url: z.string() })\n ),\n messageId: z.string(),\n monitorEvent: monitorEventSchema.optional(),\n text: z.string(),\n }),\n /**\n * Questions the chat agent asked; the turn waits until the user answers.\n * `answers` follow `questions` by position. `message` is set instead when\n * the user answered by typing in the composer.\n */\n 'user-question': z.object({\n answers: z.array(userQuestionAnswerSchema).optional(),\n message: z.string().optional(),\n questionId: z.string(),\n questions: z.array(userQuestionSchema),\n status: z.enum(['pending', 'answered', 'dismissed', 'expired', 'cancelled']),\n }),\n /** Events a chat monitor delivered, on the `monitor_event` message that carries them. */\n 'monitor-event': monitorEventSchema,\n});\n\nexport type DataPart = z.infer<typeof dataPartSchema>;\nexport type DataPartType = keyof DataPart;\n\nexport const DATA_PART_TYPES = Object.keys(dataPartSchema.shape) as DataPartType[];\n\nexport function isDataPartType(type: string): type is DataPartType {\n return (DATA_PART_TYPES as string[]).includes(type);\n}\n\n/** The `type` of a UI message part carrying this data part. */\nexport type DataPartMessageType = `data-${DataPartType}`;\n"],"mappings":";AAAA,SAAS,SAAS;AAOX,IAAM,cAAc,EAAE,OAAO;AAAA,EAClC,SAAS,EAAE,OAAO;AACpB,CAAC;AAGD,IAAM,qBAAqB,EAAE,OAAO;AAAA,EAClC,aAAa,EAAE,OAAO;AAAA,EACtB,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,GAAG,IAAI,EAAE,OAAO,GAAG,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC;AAAA,EACxF,WAAW,EAAE,OAAO;AAAA;AAAA,EAEpB,OAAO,EAAE,OAAO;AAClB,CAAC;AAGM,IAAM,qBAAqB,EAAE,OAAO;AAAA;AAAA,EAEzC,QAAQ,EAAE,OAAO;AAAA,EACjB,aAAa,EAAE,QAAQ;AAAA,EACvB,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,GAAG,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;AAAA,EACzE,UAAU,EAAE,OAAO;AACrB,CAAC;AAGM,IAAM,2BAA2B,EAAE,OAAO;AAAA,EAC/C,OAAO,EAAE,OAAO,EAAE,SAAS;AAAA,EAC3B,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC;AAC9B,CAAC;AAEM,IAAM,iBAAiB,EAAE,OAAO;AAAA,EACrC,qBAAqB,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,GAAG,cAAc,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;AAAA;AAAA,EAE3F,eAAe,EAAE,OAAO;AAAA,IACtB,UAAU,EAAE,OAAO;AAAA,IACnB,MAAM,EAAE,OAAO;AAAA,IACf,QAAQ,EAAE,KAAK,CAAC,WAAW,QAAQ,OAAO,CAAC;AAAA,IAC3C,OAAO,YAAY,SAAS;AAAA,EAC9B,CAAC;AAAA;AAAA,EAED,sBAAsB,EAA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WAAW,WAAW,QAAQ,CAAC;AAAA,IAC/C,SAAS,EAAE,OAAO;AAAA,EACpB,CAAC;AAAA;AAAA,EAED,cAAc,EAAE,OAAO;AAAA,IACrB,SAAS,EAAE,OAAO;AAAA,EACpB,CAAC;AAAA;AAAA,EAED,oBAAoB,EAAE,OAAO;AAAA,IAC3B,QAAQ,EAAE,OAAO;AAAA,EACnB,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOD,oBAAoB,EAAE,OAAO;AAAA,IAC3B,aAAa,EAAE;AAAA,MACb,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,GAAG,WAAW,EAAE,OAAO,GAAG,WAAW,EAAE,OAAO,GAAG,KAAK,EAAE,OAAO,EAAE,CAAC;AAAA,IAClG;AAAA,IACA,WAAW,EAAE,OAAO;AAAA,IACpB,cAAc,mBAAmB,SAAS;AAAA,IAC1C,MAAM,EAAE,OAAO;AAAA,EACjB,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMD,iBAAiB,EAAE,OAAO;AAAA,IACxB,SAAS,EAAE,MAAM,wBAAwB,EAAE,SAAS;AAAA,IACpD,SAAS,EAAE,OAAO,EAAE,SAAS;AAAA,IAC7B,YAAY,EAAE,OAAO;AAAA,IACrB,WAAW,EAAE,MAAM,kBAAkB;AAAA,IACrC,QAAQ,EAAE,KAAK,CAAC,WAAW,YAAY,aAAa,WAAW,WAAW,CAAC;AAAA,EAC7E,CAAC;AAAA;AAAA,EAED,iBAAiB;AACnB,CAAC;AAKM,IAAM,kBAAkB,OAAO,KAAK,eAAe,KAAK;AAExD,SAAS,eAAe,MAAoC;AACjE,SAAQ,gBAA6B,SAAS,IAAI;AACpD;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flexkit/agent-protocol",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "description": "Schemas and types shared between the Flexkit agent platform and its Studio UI: streamed data parts, run, approval and chat DTOs.",
5
5
  "keywords": [
6
6
  "flexkit",