@openacp/cli 2026.403.7 → 2026.404.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/{channel-BL33p1ZP.d.ts → channel-CmTWKnpK.d.ts} +28 -1
- package/dist/cli.js +638 -148
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +67 -11
- package/dist/index.js +537 -82
- package/dist/index.js.map +1 -1
- package/dist/testing.d.ts +1 -1
- package/package.json +1 -1
|
@@ -24,6 +24,28 @@ interface ToolUpdateMeta extends ToolCallMeta {
|
|
|
24
24
|
status: string;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
interface TurnContext {
|
|
28
|
+
turnId: string;
|
|
29
|
+
sourceAdapterId: string;
|
|
30
|
+
responseAdapterId?: string | null;
|
|
31
|
+
}
|
|
32
|
+
interface TurnRouting {
|
|
33
|
+
sourceAdapterId: string;
|
|
34
|
+
responseAdapterId?: string | null;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Create a new TurnContext. Called when a prompt is dequeued from the queue.
|
|
38
|
+
*/
|
|
39
|
+
declare function createTurnContext(sourceAdapterId: string, responseAdapterId?: string | null): TurnContext;
|
|
40
|
+
/**
|
|
41
|
+
* Get the effective response adapter for a turn.
|
|
42
|
+
* - null → silent (no adapter renders)
|
|
43
|
+
* - undefined → fallback to sourceAdapterId
|
|
44
|
+
* - string → explicit target
|
|
45
|
+
*/
|
|
46
|
+
declare function getEffectiveTarget(ctx: TurnContext): string | null;
|
|
47
|
+
declare function isSystemEvent(event: AgentEvent): boolean;
|
|
48
|
+
|
|
27
49
|
interface Attachment {
|
|
28
50
|
type: 'image' | 'audio' | 'file';
|
|
29
51
|
filePath: string;
|
|
@@ -38,6 +60,7 @@ interface IncomingMessage {
|
|
|
38
60
|
userId: string;
|
|
39
61
|
text: string;
|
|
40
62
|
attachments?: Attachment[];
|
|
63
|
+
routing?: TurnRouting;
|
|
41
64
|
}
|
|
42
65
|
interface OutgoingMessage {
|
|
43
66
|
type: "text" | "thought" | "tool_call" | "tool_update" | "plan" | "usage" | "session_end" | "error" | "attachment" | "system_message" | "mode_change" | "config_update" | "model_update" | "user_replay" | "resource" | "resource_link";
|
|
@@ -268,6 +291,10 @@ interface SessionRecord<P = Record<string, unknown>> {
|
|
|
268
291
|
};
|
|
269
292
|
outputMode?: OutputMode;
|
|
270
293
|
platform: P;
|
|
294
|
+
/** Per-adapter platform data. Key = adapterId, value = adapter-specific data. */
|
|
295
|
+
platforms?: Record<string, Record<string, unknown>>;
|
|
296
|
+
/** Adapters currently attached to this session. Defaults to [channelId] for old records. */
|
|
297
|
+
attachedAdapters?: string[];
|
|
271
298
|
firstAgent?: string;
|
|
272
299
|
currentPromptCount?: number;
|
|
273
300
|
agentSwitchHistory?: AgentSwitchEntry[];
|
|
@@ -519,4 +546,4 @@ declare abstract class ChannelAdapter<TCore = unknown> implements IChannelAdapte
|
|
|
519
546
|
archiveSessionTopic(_sessionId: string): Promise<void>;
|
|
520
547
|
}
|
|
521
548
|
|
|
522
|
-
export { type
|
|
549
|
+
export { type SessionModelState as $, type Attachment as A, type ConfigSelectGroup as B, type ConfigOption as C, type DisplayVerbosity as D, type ContentBlock as E, type ModelInfo as F, type NewSessionResponse as G, type PermissionOption as H, type IChannelAdapter as I, type PromptResponse as J, KIND_ICONS as K, type RegistryBinaryTarget as L, type McpServerConfig as M, type NotificationMessage as N, type OutgoingMessage as O, type PermissionRequest as P, type RegistryDistribution as Q, type RegistryAgent as R, type StopReason as S, type TurnContext as T, type UsageRecord as U, type ViewerLinks as V, STATUS_ICONS as W, type SessionListItem as X, type SessionListResponse as Y, type SessionMode as Z, type SessionModeState as _, type AgentEvent as a, type TelegramPlatformData as a0, type ToolUpdateMeta as a1, createTurnContext as a2, getEffectiveTarget as a3, isSystemEvent as a4, type AgentCapabilities as b, type AgentDefinition as c, type SetConfigOptionValue as d, type InstalledAgent as e, type AgentListItem as f, type AvailabilityResult as g, type InstallProgress as h, type InstallResult as i, type SessionStatus as j, type AgentSwitchEntry as k, type AgentCommand as l, type TurnRouting as m, type SessionRecord as n, type UsageRecordEvent as o, type IncomingMessage as p, type ChannelConfig as q, type AdapterCapabilities as r, type ToolCallMeta as s, type OutputMode as t, type PlanEntry as u, type AgentDistribution as v, type AuthMethod as w, type AuthenticateRequest as x, ChannelAdapter as y, type ConfigSelectChoice as z };
|