@openacp/cli 2026.413.1 → 2026.414.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.
@@ -56,6 +56,14 @@ interface TurnContext {
56
56
  sourceAdapterId: string;
57
57
  /** Where to send the response: null = silent (suppress), undefined = same as source, string = explicit target. */
58
58
  responseAdapterId?: string | null;
59
+ /** The raw user prompt before any middleware modifications. */
60
+ userPrompt: string;
61
+ /** The final prompt text sent to the agent after all middleware transformations. */
62
+ finalPrompt: string;
63
+ /** File or media attachments included with the prompt. */
64
+ attachments?: Attachment[];
65
+ /** Caller-supplied metadata for this turn (e.g., identity, source info). */
66
+ meta?: TurnMeta;
59
67
  }
60
68
  /**
61
69
  * Routing hints attached to an incoming prompt — carried through the queue
@@ -65,11 +73,13 @@ interface TurnRouting {
65
73
  sourceAdapterId: string;
66
74
  responseAdapterId?: string | null;
67
75
  }
68
- /**
69
- * Create a new TurnContext. Called when a prompt is dequeued from the queue.
70
- * If a pre-generated turnId is provided (from enqueuePrompt), it is used; otherwise a new one is generated.
71
- */
72
- declare function createTurnContext(sourceAdapterId: string, responseAdapterId?: string | null, turnId?: string): TurnContext;
76
+ /** Identity and display info for the user who sent the turn. */
77
+ interface TurnSender {
78
+ userId: string;
79
+ identityId: string;
80
+ displayName?: string;
81
+ username?: string;
82
+ }
73
83
  /**
74
84
  * Get the effective response adapter for a turn.
75
85
  * - null → silent (no adapter renders)
@@ -77,6 +87,11 @@ declare function createTurnContext(sourceAdapterId: string, responseAdapterId?:
77
87
  * - string → explicit target
78
88
  */
79
89
  declare function getEffectiveTarget(ctx: TurnContext): string | null;
90
+ /**
91
+ * Create a new TurnContext. Called when a prompt is dequeued from the queue.
92
+ * If a pre-generated turnId is provided (from enqueuePrompt), it is used; otherwise a new one is generated.
93
+ */
94
+ declare function createTurnContext(sourceAdapterId: string, responseAdapterId: string | null | undefined, turnId: string | undefined, userPrompt: string, finalPrompt: string, attachments?: Attachment[], meta?: TurnMeta): TurnContext;
80
95
  declare function isSystemEvent(event: AgentEvent): boolean;
81
96
 
82
97
  /**
@@ -794,4 +809,4 @@ declare abstract class ChannelAdapter<TCore = unknown> implements IChannelAdapte
794
809
  sendUserNotification(_platformId: string, _message: NotificationMessage, _options?: any): Promise<void>;
795
810
  }
796
811
 
797
- export { type SessionModeState as $, type Attachment as A, type ConfigSelectChoice as B, type ConfigOption as C, type DisplayVerbosity as D, type ConfigSelectGroup as E, type ContentBlock as F, type ModelInfo as G, type NewSessionResponse as H, type IChannelAdapter as I, type PermissionOption as J, KIND_ICONS as K, type PromptResponse as L, type McpServerConfig as M, type NotificationMessage as N, type OutgoingMessage as O, type PermissionRequest as P, type RegistryBinaryTarget as Q, type RegistryAgent as R, type StopReason as S, type TurnMeta as T, type UsageRecord as U, type ViewerLinks as V, type RegistryDistribution as W, STATUS_ICONS as X, type SessionListItem as Y, type SessionListResponse as Z, type SessionMode as _, type AgentEvent as a, type SessionModelState as a0, type TelegramPlatformData as a1, type ToolUpdateMeta as a2, createTurnContext as a3, getEffectiveTarget as a4, isSystemEvent as a5, type SessionStatus as b, type AgentCapabilities as c, type AgentDefinition as d, type SetConfigOptionValue as e, type InstalledAgent as f, type AgentListItem as g, type AvailabilityResult as h, type InstallProgress as i, type InstallResult as j, type TurnContext as k, type AgentSwitchEntry as l, type AgentCommand as m, type TurnRouting as n, type SessionRecord as o, type UsageRecordEvent as p, type IncomingMessage as q, type ChannelConfig as r, type AdapterCapabilities as s, type ToolCallMeta as t, type OutputMode as u, type PlanEntry as v, type AgentDistribution as w, type AuthMethod as x, type AuthenticateRequest as y, ChannelAdapter as z };
812
+ export { type SessionMode as $, type Attachment as A, ChannelAdapter as B, type ConfigOption as C, type DisplayVerbosity as D, type ConfigSelectChoice as E, type ConfigSelectGroup as F, type ContentBlock as G, type ModelInfo as H, type IChannelAdapter as I, type NewSessionResponse as J, KIND_ICONS as K, type PermissionOption as L, type McpServerConfig as M, type NotificationMessage as N, type OutgoingMessage as O, type PermissionRequest as P, type PromptResponse as Q, type RegistryAgent as R, type StopReason as S, type TurnMeta as T, type UsageRecord as U, type ViewerLinks as V, type RegistryBinaryTarget as W, type RegistryDistribution as X, STATUS_ICONS as Y, type SessionListItem as Z, type SessionListResponse as _, type AgentEvent as a, type SessionModeState as a0, type SessionModelState as a1, type TelegramPlatformData as a2, type ToolUpdateMeta as a3, createTurnContext as a4, getEffectiveTarget as a5, isSystemEvent as a6, type SessionStatus as b, type AgentCapabilities as c, type AgentDefinition as d, type SetConfigOptionValue as e, type InstalledAgent as f, type AgentListItem as g, type AvailabilityResult as h, type InstallProgress as i, type InstallResult as j, type TurnContext as k, type AgentSwitchEntry as l, type AgentCommand as m, type TurnRouting as n, type SessionRecord as o, type UsageRecordEvent as p, type TurnSender as q, type IncomingMessage as r, type ChannelConfig as s, type AdapterCapabilities as t, type ToolCallMeta as u, type OutputMode as v, type PlanEntry as w, type AgentDistribution as x, type AuthMethod as y, type AuthenticateRequest as z };