@agent-link/agent 0.1.334 → 0.1.336
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/backends/types.d.ts +0 -11
- package/dist/backends/types.js +5 -12
- package/dist/backends/types.js.map +1 -1
- package/dist/connection.js +18 -150
- package/dist/connection.js.map +1 -1
- package/dist/copilot.d.ts +8 -47
- package/dist/copilot.js +49 -748
- package/dist/copilot.js.map +1 -1
- package/dist/history.d.ts +5 -1
- package/dist/history.js +12 -3
- package/dist/history.js.map +1 -1
- package/dist/provider-command-discovery.d.ts +0 -5
- package/dist/provider-command-discovery.js +1 -41
- package/dist/provider-command-discovery.js.map +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/dist/runtime.js.map +1 -1
- package/dist/search-sessions.d.ts +9 -9
- package/dist/search-sessions.js +105 -160
- package/dist/search-sessions.js.map +1 -1
- package/dist/session-search-handler.d.ts +21 -0
- package/dist/session-search-handler.js +77 -0
- package/dist/session-search-handler.js.map +1 -0
- package/package.json +1 -3
- package/dist/copilot-command-bridge.d.ts +0 -102
- package/dist/copilot-command-bridge.js +0 -654
- package/dist/copilot-command-bridge.js.map +0 -1
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
|
|
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;
|
|
@@ -143,13 +100,17 @@ interface CopilotGlobalSessionPage {
|
|
|
143
100
|
nextCursor?: string;
|
|
144
101
|
indexState: 'ready';
|
|
145
102
|
}
|
|
146
|
-
export declare function listCopilotSessions(workDir: string
|
|
103
|
+
export declare function listCopilotSessions(workDir: string, options?: {
|
|
104
|
+
strictReadErrors?: boolean;
|
|
105
|
+
}): SessionInfo[];
|
|
147
106
|
export declare function listCopilotSessionsPage(workDir: string, options?: {
|
|
148
107
|
limit?: number;
|
|
149
108
|
cursor?: string;
|
|
109
|
+
strictReadErrors?: boolean;
|
|
150
110
|
}): CopilotSessionPage;
|
|
151
|
-
export declare function readCopilotSessionMessages(_workDir: string, sessionId: string
|
|
152
|
-
|
|
111
|
+
export declare function readCopilotSessionMessages(_workDir: string, sessionId: string, options?: {
|
|
112
|
+
strictReadErrors?: boolean;
|
|
113
|
+
}): HistoryMessage[];
|
|
153
114
|
export declare function getCopilotSessionWorkDir(sessionId: string): string | undefined;
|
|
154
115
|
export declare function listAllCopilotSessions(limit?: number): Array<{
|
|
155
116
|
sessionId: string;
|