@agent-link/agent 0.1.334 → 0.1.335

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/copilot.d.ts CHANGED
@@ -12,8 +12,7 @@ import { type ChildProcess } from 'child_process';
12
12
  import type { SendFn } from './claude.js';
13
13
  import type { SessionInfo } from './history.js';
14
14
  import { type HistoryMessage } from './history-message-transform.js';
15
- import { copilotCapabilities, type UsageInfo } from './backends/types.js';
16
- import { CopilotCommandRuntime } from './copilot-command-bridge.js';
15
+ import { copilotCapabilities } from './backends/types.js';
17
16
  export interface CopilotConversationState {
18
17
  conversationId: string;
19
18
  child: ChildProcess | null;
@@ -31,17 +30,9 @@ export interface CopilotConversationState {
31
30
  heartbeatTimer: ReturnType<typeof setInterval> | null;
32
31
  /** True once we've sent session_started for sidebar refresh */
33
32
  sessionNotified: boolean;
34
- copilotMode: CopilotSessionMode;
35
- planMode: boolean;
36
- planModePending: boolean;
37
- isCompacting: boolean;
38
- commandRuntime: CopilotCommandRuntime | null;
39
- commandSessionId: string | null;
40
- deferredCommandUsage: UsageInfo | null;
41
33
  }
42
34
  export type CopilotContextTier = 'default' | 'long_context';
43
35
  export type CopilotReasoningEffort = 'none' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';
44
- export type CopilotSessionMode = 'interactive' | 'plan' | 'autopilot';
45
36
  export interface CopilotRunOptions {
46
37
  model?: string;
47
38
  context?: string;
@@ -57,37 +48,7 @@ interface CopilotChatFile {
57
48
  mimeType: string;
58
49
  data: string;
59
50
  }
60
- interface CopilotDecisionRequestPayload {
61
- questions: Array<{
62
- question: string;
63
- header?: string;
64
- options: Array<{
65
- label: string;
66
- value?: string;
67
- description?: string;
68
- }>;
69
- multiSelect?: boolean;
70
- }>;
71
- source: 'tool_request_user_input';
72
- presentation: 'inline';
73
- kind: 'plan_input';
74
- allowFreeform: boolean;
75
- expiresAt?: number;
76
- timeoutAction: 'first_option' | 'continue_plan';
77
- }
78
- export interface PendingCopilotDecisionSnapshot {
79
- requestId: string;
80
- conversationId: string;
81
- providerId: string;
82
- sessionId: string;
83
- request: CopilotDecisionRequestPayload;
84
- }
85
51
  export declare function addCopilotSendFn(fn: SendFn): () => void;
86
- export declare function getPendingCopilotDecisions(conversationId: string): PendingCopilotDecisionSnapshot[];
87
- export declare function handleCopilotUserAnswer(requestId: string, answers: Record<string, unknown>, scope?: {
88
- conversationId?: string;
89
- providerId?: string;
90
- }): boolean;
91
52
  export declare function getCopilotConversation(conversationId: string): CopilotConversationState | undefined;
92
53
  export declare function getCopilotConversations(): Map<string, CopilotConversationState>;
93
54
  /**
@@ -102,15 +63,11 @@ export declare function createCopilotPlaceholder(conversationId: string, opts?:
102
63
  export declare function restartCopilotConversation(conversationId: string, opts?: {
103
64
  providerId?: string;
104
65
  model?: string;
105
- preserveSession?: boolean;
106
66
  }): {
107
67
  wasTurnActive: boolean;
108
68
  copilotSessionId: string | null;
109
69
  };
110
70
  export declare function setModel(conversationId: string | undefined, model: string): void;
111
- export type CopilotNativeCommand = 'compact' | 'plan' | 'goal';
112
- export declare function executeCopilotCommand(conversationId: string, command: CopilotNativeCommand, input: string, workDir: string, options?: CopilotChatOptions): Promise<void>;
113
- export declare function setCopilotPlanMode(conversationId: string, enabled: boolean, workDir: string, providerId?: string): Promise<void>;
114
71
  export interface CopilotChatOptions {
115
72
  resumeSessionId?: string;
116
73
  providerId?: string;
@@ -149,7 +106,6 @@ export declare function listCopilotSessionsPage(workDir: string, options?: {
149
106
  cursor?: string;
150
107
  }): CopilotSessionPage;
151
108
  export declare function readCopilotSessionMessages(_workDir: string, sessionId: string): HistoryMessage[];
152
- export declare function readCopilotSessionMode(sessionId: string): CopilotSessionMode;
153
109
  export declare function getCopilotSessionWorkDir(sessionId: string): string | undefined;
154
110
  export declare function listAllCopilotSessions(limit?: number): Array<{
155
111
  sessionId: string;