@flexkit/agent-protocol 0.3.4 → 0.3.5

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +26 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -416,6 +416,8 @@ interface AutomationProposalPreview {
416
416
  notifyCreator: boolean;
417
417
  notifyRule: AutomationNotifyRule;
418
418
  plugins: AutomationProposalPlugin[];
419
+ /** The description of the chat monitor this automation replaces; the monitor stops once it exists. */
420
+ replacesMonitor?: string;
419
421
  /** Run the automation once right after it is created (the approver can also choose this). */
420
422
  runOnceAfterCreate: boolean;
421
423
  skills: string[];
@@ -426,8 +428,27 @@ interface AutomationProposalPreview {
426
428
  triggers: string[];
427
429
  visibility: AutomationVisibility;
428
430
  }
431
+ /** One changed setting of an automation, in plain words. */
432
+ interface AutomationChangeField {
433
+ after: string;
434
+ before: string;
435
+ /** `name`, `instructions`, `triggers`, `enabled`, `notifyRule` or `mutationPolicy`. */
436
+ field: string;
437
+ label: string;
438
+ }
439
+ /**
440
+ * Extra context carried by `kind: 'automation'` approvals that change an
441
+ * existing automation: only the settings that change, before and after.
442
+ */
443
+ interface AutomationChangePreview {
444
+ automationId: string;
445
+ changes: AutomationChangeField[];
446
+ /** The automation's current name. */
447
+ name: string;
448
+ }
429
449
  interface AutomationApprovalPreview {
430
450
  automation?: AutomationProposalPreview;
451
+ automationChange?: AutomationChangePreview;
431
452
  operations: AutomationApprovalPreviewOperation[];
432
453
  schema?: SchemaChangePreviewSummary;
433
454
  }
@@ -544,6 +565,8 @@ interface AgentChatMessage {
544
565
  workflowRunId: string | null;
545
566
  }
546
567
  type AgentMonitorStatus = 'active' | 'stopped' | 'expired' | 'completed' | 'paused_budget';
568
+ /** What a monitor watches: a long job, content changes, a polled query or a webhook. */
569
+ type AgentMonitorSourceType = 'job' | 'entity' | 'poll' | 'webhook';
547
570
  /** A watcher the chat agent started; it wakes the chat when its job finishes. */
548
571
  interface AgentChatMonitor {
549
572
  createdAt: string;
@@ -551,6 +574,8 @@ interface AgentChatMonitor {
551
574
  eventCount: number;
552
575
  expiresAt: string;
553
576
  id: string;
577
+ /** Absent from platforms that predate monitor sources. */
578
+ sourceType?: AgentMonitorSourceType;
554
579
  status: AgentMonitorStatus;
555
580
  }
556
581
  interface AgentChatTurn {
@@ -572,4 +597,4 @@ type AgentChatFollowUpResult = {
572
597
  turn: AgentChatTurn;
573
598
  };
574
599
 
575
- 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 AgentMonitorStatus, type AutomationApproval, type AutomationApprovalKind, type AutomationApprovalOperation, type AutomationApprovalPreview, type AutomationApprovalPreviewKind, type AutomationApprovalPreviewOperation, type AutomationApprovalPreviewRow, type AutomationApprovalStatus, 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 };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flexkit/agent-protocol",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
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",