@openacp/cli 2026.41.1 → 2026.41.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.
package/dist/index.d.ts CHANGED
@@ -139,15 +139,9 @@ type AgentEvent = {
139
139
  title?: string;
140
140
  updatedAt?: string;
141
141
  _meta?: Record<string, unknown>;
142
- } | {
143
- type: "current_mode_update";
144
- modeId: string;
145
142
  } | {
146
143
  type: "config_option_update";
147
144
  options: ConfigOption[];
148
- } | {
149
- type: "model_update";
150
- modelId: string;
151
145
  } | {
152
146
  type: "user_message_chunk";
153
147
  content: string;
@@ -277,18 +271,21 @@ interface SessionRecord<P = Record<string, unknown>> {
277
271
  lastActiveAt: string;
278
272
  name?: string;
279
273
  dangerousMode?: boolean;
274
+ clientOverrides?: {
275
+ bypassPermissions?: boolean;
276
+ };
280
277
  outputMode?: OutputMode;
281
278
  platform: P;
282
279
  firstAgent?: string;
283
280
  currentPromptCount?: number;
284
281
  agentSwitchHistory?: AgentSwitchEntry[];
285
282
  acpState?: {
283
+ configOptions?: ConfigOption[];
284
+ agentCapabilities?: AgentCapabilities;
286
285
  currentMode?: string;
287
286
  availableModes?: SessionMode[];
288
- configOptions?: ConfigOption[];
289
287
  currentModel?: string;
290
288
  availableModels?: ModelInfo[];
291
- agentCapabilities?: AgentCapabilities;
292
289
  };
293
290
  }
294
291
  interface TelegramPlatformData {
@@ -329,7 +326,7 @@ interface SessionModeState {
329
326
  }
330
327
  interface ConfigSelectChoice {
331
328
  value: string;
332
- label: string;
329
+ name: string;
333
330
  description?: string;
334
331
  }
335
332
  interface ConfigSelectGroup {
@@ -1227,9 +1224,7 @@ declare class AgentInstance extends TypedEmitter<AgentInstanceEvents> {
1227
1224
  static spawn(agentDef: AgentDefinition, workingDirectory: string, mcpServers?: McpServerConfig[]): Promise<AgentInstance>;
1228
1225
  static resume(agentDef: AgentDefinition, workingDirectory: string, agentSessionId: string, mcpServers?: McpServerConfig[]): Promise<AgentInstance>;
1229
1226
  private createClient;
1230
- setMode(modeId: string): Promise<void>;
1231
1227
  setConfigOption(configId: string, value: SetConfigOptionValue): Promise<SetSessionConfigOptionResponse>;
1232
- setModel(modelId: string): Promise<void>;
1233
1228
  listSessions(cwd?: string, cursor?: string): Promise<ListSessionsResponse>;
1234
1229
  loadSession(sessionId: string, cwd: string, mcpServers?: McpServerConfig[]): Promise<LoadSessionResponse>;
1235
1230
  authenticate(methodId: string): Promise<void>;
@@ -1413,12 +1408,10 @@ declare class Session extends TypedEmitter<SessionEvents> {
1413
1408
  name?: string;
1414
1409
  createdAt: Date;
1415
1410
  voiceMode: "off" | "next" | "on";
1416
- dangerousMode: boolean;
1417
- currentMode?: string;
1418
- availableModes: SessionMode[];
1419
1411
  configOptions: ConfigOption[];
1420
- currentModel?: string;
1421
- availableModels: ModelInfo[];
1412
+ clientOverrides: {
1413
+ bypassPermissions?: boolean;
1414
+ };
1422
1415
  agentCapabilities?: AgentCapabilities;
1423
1416
  archiving: boolean;
1424
1417
  promptCount: number;
@@ -1461,17 +1454,14 @@ declare class Session extends TypedEmitter<SessionEvents> {
1461
1454
  /** Fire-and-forget warm-up: primes model cache while user types their first message */
1462
1455
  warmup(): Promise<void>;
1463
1456
  private runWarmup;
1464
- setInitialAcpState(state: {
1465
- modes?: SessionModeState | null;
1466
- configOptions?: ConfigOption[] | null;
1467
- models?: SessionModelState | null;
1468
- agentCapabilities?: AgentCapabilities | null;
1469
- }): void;
1457
+ setInitialConfigOptions(options: ConfigOption[]): void;
1458
+ setAgentCapabilities(caps: AgentCapabilities | undefined): void;
1459
+ getConfigOption(id: string): ConfigOption | undefined;
1460
+ getConfigByCategory(category: string): ConfigOption | undefined;
1461
+ getConfigValue(id: string): string | undefined;
1470
1462
  /** Set session name explicitly and emit 'named' event */
1471
1463
  setName(name: string): void;
1472
- updateMode(modeId: string): Promise<void>;
1473
1464
  updateConfigOptions(options: ConfigOption[]): Promise<void>;
1474
- updateModel(modelId: string): Promise<void>;
1475
1465
  /** Snapshot of current ACP state for persistence */
1476
1466
  toAcpStateSnapshot(): NonNullable<SessionRecord["acpState"]>;
1477
1467
  /** Check if the agent supports a specific session capability */
@@ -1825,22 +1815,12 @@ interface MiddlewarePayloadMap {
1825
1815
  durationMs: number;
1826
1816
  promptCount: number;
1827
1817
  };
1828
- 'mode:beforeChange': {
1829
- sessionId: string;
1830
- fromMode: string | undefined;
1831
- toMode: string;
1832
- };
1833
1818
  'config:beforeChange': {
1834
1819
  sessionId: string;
1835
1820
  configId: string;
1836
1821
  oldValue: unknown;
1837
1822
  newValue: unknown;
1838
1823
  };
1839
- 'model:beforeChange': {
1840
- sessionId: string;
1841
- fromModel: string | undefined;
1842
- toModel: string;
1843
- };
1844
1824
  'agent:beforeCancel': {
1845
1825
  sessionId: string;
1846
1826
  reason?: string;
@@ -1981,7 +1961,9 @@ interface EventBusEvents {
1981
1961
  sessionId: string;
1982
1962
  status?: SessionStatus;
1983
1963
  name?: string;
1984
- dangerousMode?: boolean;
1964
+ clientOverrides?: {
1965
+ bypassPermissions?: boolean;
1966
+ };
1985
1967
  }) => void;
1986
1968
  "session:deleted": (data: {
1987
1969
  sessionId: string;
@@ -2117,7 +2099,7 @@ declare class SessionBridge {
2117
2099
  private wireAgentToSession;
2118
2100
  private wireSessionToAdapter;
2119
2101
  private handleAgentEvent;
2120
- /** Persist current ACP state (mode, config, model) to session store as cache */
2102
+ /** Persist current ACP state (configOptions, agentCapabilities) to session store as cache */
2121
2103
  private persistAcpState;
2122
2104
  private wirePermissions;
2123
2105
  private wireLifecycle;