openfox 2.0.0-beta.4 → 2.0.0-beta.6
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/{chat-handler-IUWEBZG7.js → chat-handler-27FY5TEH.js} +15 -29
- package/dist/{chunk-WBYS7AQN.js → chunk-3FFHHYWP.js} +178 -99
- package/dist/{chunk-HGAMIPFO.js → chunk-7FDY3EOH.js} +18 -176
- package/dist/{chunk-CEZNMLOO.js → chunk-7TTEGAO6.js} +12 -13
- package/dist/{chunk-FQLK5GL5.js → chunk-BVHFMAVN.js} +1 -1
- package/dist/{chunk-HW3U4XSZ.js → chunk-CDDMHSZF.js} +4 -4
- package/dist/{chunk-HHAJ3QF6.js → chunk-EMJGF3A7.js} +9 -24
- package/dist/{chunk-KEF4O3UM.js → chunk-FRCLNAE2.js} +2952 -3256
- package/dist/{chunk-RF2JGDSS.js → chunk-IGSZUXQP.js} +3 -3
- package/dist/{chunk-HLZV4S2I.js → chunk-NPHYEUYE.js} +127 -35
- package/dist/{chunk-NNEHZT3V.js → chunk-QUSUEN5R.js} +3 -3
- package/dist/{chunk-EYCCASW3.js → chunk-R3EK3ODJ.js} +6 -6
- package/dist/{chunk-7IKUIYFZ.js → chunk-RBJ25FIR.js} +135 -147
- package/dist/{chunk-PSJIT5LZ.js → chunk-RFNEDBVO.js} +4 -4
- package/dist/chunk-RI6GAMNP.js +13 -0
- package/dist/{chunk-26DZZZDC.js → chunk-XJEOP6XU.js} +5 -11
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/compactor-TDNRM3A7.js +9 -0
- package/dist/{config-YU7NYZYG.js → config-VBBMTXJZ.js} +5 -6
- package/dist/{events-YO52472Q.js → events-PQ3KTI5H.js} +8 -8
- package/dist/{folding-K5L6M4WK.js → folding-CXORTBAU.js} +2 -3
- package/dist/{orchestrator-F75DNQKQ.js → orchestrator-QDCVUBCL.js} +18 -23
- package/dist/package.json +1 -1
- package/dist/{processor-FTEASNGS.js → processor-K4B7QRO2.js} +8 -10
- package/dist/{protocol-K62EPEGS.js → protocol-CN24IKQN.js} +3 -5
- package/dist/{protocol-BQ12Aw5J.d.ts → protocol-De-Pzgry.d.ts} +12 -38
- package/dist/{provider-HTJEB3ON.js → provider-NRWSSO55.js} +9 -10
- package/dist/{serve-CEQ2QMM5.js → serve-J6EM3G6N.js} +25 -27
- package/dist/server/index.d.ts +1 -6
- package/dist/server/index.js +15 -17
- package/dist/{settings-VRAOAPLA.js → settings-6XX56F3F.js} +2 -2
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/{tools-OPEU2E5M.js → tools-GCANYSB7.js} +12 -15
- package/dist/web/assets/{index-bDyDeCAz.css → index-aa3jRAZ9.css} +2 -2
- package/dist/web/assets/index-ntDiC8b_.js +299 -0
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/dist/workflow-defaults/default.workflow.json +3 -3
- package/package.json +1 -1
- package/dist/auto-compaction-A3PIMGLF.js +0 -28
- package/dist/chunk-CGZHLM3K.js +0 -70
- package/dist/chunk-MCPID4EJ.js +0 -28
- package/dist/chunk-SZKEGZIB.js +0 -140
- package/dist/optimize-storage-2N6BY5KZ.js +0 -7
- package/dist/runtime-config-NPSPMRDA.js +0 -9
- package/dist/vision-fallback-3MIZZ6NQ.js +0 -22
- package/dist/web/assets/index-ZTEHxmVW.js +0 -317
- /package/dist/web/{workbox-7fc22fbe.js → workbox-8c29f6e4.js} +0 -0
package/dist/package.json
CHANGED
|
@@ -5,19 +5,17 @@ import {
|
|
|
5
5
|
generateSessionName,
|
|
6
6
|
getSessionMessageCount,
|
|
7
7
|
needsNameGenerationCheck
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CDDMHSZF.js";
|
|
9
9
|
import {
|
|
10
10
|
getEventStore
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-26DZZZDC.js";
|
|
14
|
-
import "./chunk-MCPID4EJ.js";
|
|
11
|
+
} from "./chunk-NPHYEUYE.js";
|
|
12
|
+
import "./chunk-XJEOP6XU.js";
|
|
15
13
|
import {
|
|
16
14
|
createChatMessageMessage,
|
|
17
15
|
createSessionRunningMessage
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-7TTEGAO6.js";
|
|
17
|
+
import "./chunk-FBGWG4N6.js";
|
|
18
|
+
import "./chunk-BVHFMAVN.js";
|
|
21
19
|
import {
|
|
22
20
|
logger
|
|
23
21
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -178,7 +176,7 @@ var QueueProcessor = class {
|
|
|
178
176
|
backend: provider?.backend ?? llmClient.getBackend(),
|
|
179
177
|
model: llmClient.getModel()
|
|
180
178
|
};
|
|
181
|
-
const { runChatTurn } = await import("./orchestrator-
|
|
179
|
+
const { runChatTurn } = await import("./orchestrator-QDCVUBCL.js");
|
|
182
180
|
const runChatTurnParams = buildRunChatTurnParams({
|
|
183
181
|
sessionManager,
|
|
184
182
|
sessionId,
|
|
@@ -222,4 +220,4 @@ var QueueProcessor = class {
|
|
|
222
220
|
export {
|
|
223
221
|
QueueProcessor
|
|
224
222
|
};
|
|
225
|
-
//# sourceMappingURL=processor-
|
|
223
|
+
//# sourceMappingURL=processor-K4B7QRO2.js.map
|
|
@@ -14,7 +14,6 @@ import {
|
|
|
14
14
|
createChatToolOutputMessage,
|
|
15
15
|
createChatToolPreparingMessage,
|
|
16
16
|
createChatToolResultMessage,
|
|
17
|
-
createChatVisionFallbackMessage,
|
|
18
17
|
createContextStateMessage,
|
|
19
18
|
createCriteriaUpdatedMessage,
|
|
20
19
|
createErrorMessage,
|
|
@@ -36,8 +35,8 @@ import {
|
|
|
36
35
|
parseClientMessage,
|
|
37
36
|
serializeServerMessage,
|
|
38
37
|
storedEventToServerMessage
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-7TTEGAO6.js";
|
|
39
|
+
import "./chunk-BVHFMAVN.js";
|
|
41
40
|
export {
|
|
42
41
|
createChatAskUserMessage,
|
|
43
42
|
createChatDeltaMessage,
|
|
@@ -54,7 +53,6 @@ export {
|
|
|
54
53
|
createChatToolOutputMessage,
|
|
55
54
|
createChatToolPreparingMessage,
|
|
56
55
|
createChatToolResultMessage,
|
|
57
|
-
createChatVisionFallbackMessage,
|
|
58
56
|
createContextStateMessage,
|
|
59
57
|
createCriteriaUpdatedMessage,
|
|
60
58
|
createErrorMessage,
|
|
@@ -77,4 +75,4 @@ export {
|
|
|
77
75
|
serializeServerMessage,
|
|
78
76
|
storedEventToServerMessage
|
|
79
77
|
};
|
|
80
|
-
//# sourceMappingURL=protocol-
|
|
78
|
+
//# sourceMappingURL=protocol-CN24IKQN.js.map
|
|
@@ -191,41 +191,6 @@ interface ModelSessionStats extends StatsIdentity {
|
|
|
191
191
|
dataPoints: StatsDataPoint[];
|
|
192
192
|
callDataPoints: CallStatsDataPoint[];
|
|
193
193
|
}
|
|
194
|
-
interface PromptContext {
|
|
195
|
-
systemPrompt: string;
|
|
196
|
-
injectedFiles: InjectedFile[];
|
|
197
|
-
userMessage: string;
|
|
198
|
-
messages: PromptContextMessage[];
|
|
199
|
-
tools: PromptContextTool[];
|
|
200
|
-
requestOptions: PromptRequestOptions;
|
|
201
|
-
}
|
|
202
|
-
interface PromptContextMessage {
|
|
203
|
-
role: 'user' | 'assistant' | 'tool';
|
|
204
|
-
content: string;
|
|
205
|
-
thinkingContent?: string;
|
|
206
|
-
source: 'history' | 'runtime';
|
|
207
|
-
toolCalls?: Array<{
|
|
208
|
-
id: string;
|
|
209
|
-
name: string;
|
|
210
|
-
arguments: Record<string, unknown>;
|
|
211
|
-
}>;
|
|
212
|
-
toolCallId?: string;
|
|
213
|
-
attachments?: Attachment[];
|
|
214
|
-
}
|
|
215
|
-
interface PromptContextTool {
|
|
216
|
-
name: string;
|
|
217
|
-
description: string;
|
|
218
|
-
parameters: Record<string, unknown>;
|
|
219
|
-
}
|
|
220
|
-
interface PromptRequestOptions {
|
|
221
|
-
toolChoice: 'auto' | 'none' | 'required' | {
|
|
222
|
-
type: 'function';
|
|
223
|
-
function: {
|
|
224
|
-
name: string;
|
|
225
|
-
};
|
|
226
|
-
};
|
|
227
|
-
disableThinking: boolean;
|
|
228
|
-
}
|
|
229
194
|
interface InjectedFile {
|
|
230
195
|
path: string;
|
|
231
196
|
content: string;
|
|
@@ -268,7 +233,6 @@ interface Message {
|
|
|
268
233
|
isCompactionSummary?: boolean;
|
|
269
234
|
subAgentId?: string;
|
|
270
235
|
subAgentType?: string;
|
|
271
|
-
promptContext?: PromptContext;
|
|
272
236
|
attachments?: Attachment[];
|
|
273
237
|
metadata?: {
|
|
274
238
|
type: string;
|
|
@@ -466,6 +430,8 @@ interface Config {
|
|
|
466
430
|
apiKey?: string;
|
|
467
431
|
/** Disable thinking/reasoning globally (for e2e tests) */
|
|
468
432
|
disableThinking?: boolean;
|
|
433
|
+
/** Vision model for image description fallback when primary model lacks vision support */
|
|
434
|
+
visionModel?: string;
|
|
469
435
|
};
|
|
470
436
|
context: {
|
|
471
437
|
maxTokens: number;
|
|
@@ -476,6 +442,11 @@ interface Config {
|
|
|
476
442
|
maxIterations: number;
|
|
477
443
|
maxConsecutiveFailures: number;
|
|
478
444
|
toolTimeout: number;
|
|
445
|
+
/** Auto-loop patterns: when LLM response matches, auto-inject a response */
|
|
446
|
+
autoPatterns?: Array<{
|
|
447
|
+
pattern: string;
|
|
448
|
+
response: string;
|
|
449
|
+
}>;
|
|
479
450
|
};
|
|
480
451
|
server: {
|
|
481
452
|
port: number;
|
|
@@ -621,6 +592,9 @@ interface ChatProgressPayload {
|
|
|
621
592
|
interface ChatFormatRetryPayload {
|
|
622
593
|
attempt: number;
|
|
623
594
|
maxAttempts: number;
|
|
595
|
+
pattern?: string;
|
|
596
|
+
field?: string;
|
|
597
|
+
matchedContent?: string;
|
|
624
598
|
}
|
|
625
599
|
interface ChatVisionFallbackPayload {
|
|
626
600
|
type: 'start' | 'done';
|
|
@@ -634,7 +608,7 @@ interface ChatMessagePayload {
|
|
|
634
608
|
}
|
|
635
609
|
interface ChatMessageUpdatedPayload {
|
|
636
610
|
messageId: string;
|
|
637
|
-
updates: Partial<Pick<Message, 'content' | 'thinkingContent' | 'toolCalls' | 'isStreaming' | 'stats' | '
|
|
611
|
+
updates: Partial<Pick<Message, 'content' | 'thinkingContent' | 'toolCalls' | 'isStreaming' | 'stats' | 'partial'>>;
|
|
638
612
|
}
|
|
639
613
|
interface ChatDonePayload {
|
|
640
614
|
messageId: string;
|
|
@@ -876,4 +850,4 @@ interface QueueCancelledEvent {
|
|
|
876
850
|
}
|
|
877
851
|
type QueueEvent = QueueAddedEvent | QueueDrainedEvent | QueueCancelledEvent;
|
|
878
852
|
|
|
879
|
-
export { type GitStatusPayload as $, type AgentEvent as A, type BackgroundProcess as B, type CallStatsDataPoint as C, type Config as D, type ContextCompactionEvent as E, type ContextState as F, type ContextStatePayload as G, type ContextWindow as H, type CriteriaUpdatedPayload as I, type Criterion as J, type CriterionAttempt as K, type CriterionStatus as L, type Message as M, type CriterionValidation as N, type DangerLevel as O, type DevServerOutputPayload as P, type DevServerStatePayload as Q, type Diagnostic as R, type SessionStats as S, type EditContextEdit as T, type EditContextLine as U, type EditContextRegion as V, type ElementData as W, type ErrorPayload as X, type ExecutionState as Y, type FileReadEntry as Z, type GitDiffFile as _, type AskAnswerPayload as a, type InjectedFile as a0, type LLMCallStats as a1, type LlmBackend as a2, type LogLine as a3, type LspDiagnosticsPayload as a4, type MessageRole as a5, type MessageSegment as a6, type MessageStats as a7, type MetadataEntry as a8, type MetadataUpdatedPayload as a9, type
|
|
853
|
+
export { type GitStatusPayload as $, type AgentEvent as A, type BackgroundProcess as B, type CallStatsDataPoint as C, type Config as D, type ContextCompactionEvent as E, type ContextState as F, type ContextStatePayload as G, type ContextWindow as H, type CriteriaUpdatedPayload as I, type Criterion as J, type CriterionAttempt as K, type CriterionStatus as L, type Message as M, type CriterionValidation as N, type DangerLevel as O, type DevServerOutputPayload as P, type DevServerStatePayload as Q, type Diagnostic as R, type SessionStats as S, type EditContextEdit as T, type EditContextLine as U, type EditContextRegion as V, type ElementData as W, type ErrorPayload as X, type ExecutionState as Y, type FileReadEntry as Z, type GitDiffFile as _, type AskAnswerPayload as a, type InjectedFile as a0, type LLMCallStats as a1, type LlmBackend as a2, type LogLine as a3, type LspDiagnosticsPayload as a4, type MessageRole as a5, type MessageSegment as a6, type MessageStats as a7, type MetadataEntry as a8, type MetadataUpdatedPayload as a9, type SessionListPayload as aA, type SessionLoadPayload as aB, type SessionMetadata as aC, type SessionMode as aD, type SessionNameGeneratedPayload as aE, type SessionPhase as aF, type SessionRunningPayload as aG, type SessionStatePayload as aH, type SessionSummary as aI, type StatsDataPoint as aJ, type StatsIdentity as aK, type TaskCompletedPayload as aL, type Todo as aM, type ToolCall as aN, type ToolMode as aO, type ToolName as aP, type ToolResult as aQ, type ValidationResult as aR, createClientMessage as aS, createServerMessage as aT, isClientMessage as aU, isServerMessage as aV, type ModeChangedPayload as aa, type ModelConfig as ab, type ModelSessionStats as ac, type PathConfirmPayload as ad, type PathConfirmationReason as ae, type PendingPathConfirmationPayload as af, type PhaseChangedPayload as ag, type PreparingToolCall as ah, type Project as ai, type ProjectDeletedPayload as aj, type ProjectListPayload as ak, type ProjectStatePayload as al, type Provider as am, type ProviderBackend as an, type ProviderChangedPayload as ao, type QueueAddedEvent as ap, type QueueCancelledEvent as aq, type QueueDrainedEvent as ar, type QueueEvent as as, type QueueEventType as at, type QueueStatePayload as au, type QueuedMessage as av, type RecentUserPrompt as aw, type ServerMessage as ax, type ServerMessageType as ay, type Session as az, type AskUserEvent as b, type Attachment as c, type BackgroundProcessExitedPayload as d, type BackgroundProcessOutputPayload as e, type BackgroundProcessRemovedPayload as f, type BackgroundProcessStartedPayload as g, type BackgroundProcessStatus as h, type ChatAskUserPayload as i, type ChatDeltaPayload as j, type ChatDonePayload as k, type ChatErrorPayload as l, type ChatFormatRetryPayload as m, type ChatMessagePayload as n, type ChatMessageUpdatedPayload as o, type ChatPathConfirmationPayload as p, type ChatProgressPayload as q, type ChatThinkingPayload as r, type ChatTodoPayload as s, type ChatToolCallPayload as t, type ChatToolOutputPayload as u, type ChatToolPreparingPayload as v, type ChatToolResultPayload as w, type ChatVisionFallbackPayload as x, type ClientMessage as y, type ClientMessageType as z };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fetchAvailableModelsFromBackend
|
|
3
|
+
} from "./chunk-IGSZUXQP.js";
|
|
1
4
|
import {
|
|
2
5
|
activateProvider,
|
|
3
6
|
addProvider,
|
|
@@ -5,19 +8,15 @@ import {
|
|
|
5
8
|
loadGlobalConfig,
|
|
6
9
|
removeProvider,
|
|
7
10
|
saveGlobalConfig
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import {
|
|
10
|
-
fetchAvailableModelsFromBackend
|
|
11
|
-
} from "./chunk-RF2JGDSS.js";
|
|
11
|
+
} from "./chunk-QUSUEN5R.js";
|
|
12
12
|
import {
|
|
13
13
|
detectModel
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EMJGF3A7.js";
|
|
15
15
|
import {
|
|
16
16
|
detectBackend
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-CQGTEGKL.js";
|
|
19
|
-
import "./chunk-SZKEGZIB.js";
|
|
17
|
+
} from "./chunk-7FDY3EOH.js";
|
|
20
18
|
import "./chunk-K44MW7JJ.js";
|
|
19
|
+
import "./chunk-CQGTEGKL.js";
|
|
21
20
|
|
|
22
21
|
// src/cli/provider.ts
|
|
23
22
|
import { select, text, password, spinner, log, outro, isCancel, cancel } from "@clack/prompts";
|
|
@@ -248,7 +247,7 @@ async function runProviderAdd(mode) {
|
|
|
248
247
|
isActive: makeActive
|
|
249
248
|
});
|
|
250
249
|
if (makeActive) {
|
|
251
|
-
const { setDefaultModelSelection } = await import("./config-
|
|
250
|
+
const { setDefaultModelSelection } = await import("./config-VBBMTXJZ.js");
|
|
252
251
|
newConfig = setDefaultModelSelection(
|
|
253
252
|
newConfig,
|
|
254
253
|
newConfig.providers[newConfig.providers.length - 1].id,
|
|
@@ -376,4 +375,4 @@ export {
|
|
|
376
375
|
runProviderRemove,
|
|
377
376
|
runProviderUse
|
|
378
377
|
};
|
|
379
|
-
//# sourceMappingURL=provider-
|
|
378
|
+
//# sourceMappingURL=provider-NRWSSO55.js.map
|
|
@@ -1,42 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getActiveProvider,
|
|
3
|
-
getDefaultModel,
|
|
4
|
-
loadGlobalConfig
|
|
5
|
-
} from "./chunk-NNEHZT3V.js";
|
|
6
1
|
import {
|
|
7
2
|
VERSION,
|
|
8
3
|
createServer
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-PSJIT5LZ.js";
|
|
14
|
-
import "./chunk-XAMAYRDA.js";
|
|
4
|
+
} from "./chunk-3FFHHYWP.js";
|
|
5
|
+
import "./chunk-RI6GAMNP.js";
|
|
6
|
+
import "./chunk-RBJ25FIR.js";
|
|
7
|
+
import "./chunk-FRCLNAE2.js";
|
|
15
8
|
import "./chunk-DL6ZILAF.js";
|
|
16
9
|
import "./chunk-PBGOZMVY.js";
|
|
17
10
|
import "./chunk-VRGRAQDG.js";
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
import "./chunk-
|
|
11
|
+
import {
|
|
12
|
+
loadConfig
|
|
13
|
+
} from "./chunk-NPHYEUYE.js";
|
|
14
|
+
import "./chunk-XJEOP6XU.js";
|
|
15
|
+
import "./chunk-7TTEGAO6.js";
|
|
16
|
+
import "./chunk-BJYPTN5S.js";
|
|
17
|
+
import "./chunk-RFNEDBVO.js";
|
|
18
|
+
import "./chunk-XAMAYRDA.js";
|
|
22
19
|
import "./chunk-FBGWG4N6.js";
|
|
23
|
-
import "./chunk-26DZZZDC.js";
|
|
24
|
-
import "./chunk-MCPID4EJ.js";
|
|
25
|
-
import "./chunk-CEZNMLOO.js";
|
|
26
20
|
import "./chunk-VUQCQXXJ.js";
|
|
27
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-BVHFMAVN.js";
|
|
22
|
+
import "./chunk-IGSZUXQP.js";
|
|
23
|
+
import {
|
|
24
|
+
getActiveProvider,
|
|
25
|
+
getDefaultModel,
|
|
26
|
+
loadGlobalConfig
|
|
27
|
+
} from "./chunk-QUSUEN5R.js";
|
|
28
|
+
import "./chunk-EMJGF3A7.js";
|
|
29
|
+
import "./chunk-7FDY3EOH.js";
|
|
30
|
+
import {
|
|
31
|
+
logger
|
|
32
|
+
} from "./chunk-K44MW7JJ.js";
|
|
28
33
|
import {
|
|
29
34
|
ensureDataDirExists,
|
|
30
35
|
getDatabasePath,
|
|
31
36
|
getGlobalConfigPath
|
|
32
37
|
} from "./chunk-CQGTEGKL.js";
|
|
33
|
-
import {
|
|
34
|
-
loadConfig
|
|
35
|
-
} from "./chunk-CGZHLM3K.js";
|
|
36
|
-
import "./chunk-SZKEGZIB.js";
|
|
37
|
-
import {
|
|
38
|
-
logger
|
|
39
|
-
} from "./chunk-K44MW7JJ.js";
|
|
40
38
|
|
|
41
39
|
// src/server/utils/network.ts
|
|
42
40
|
import os from "os";
|
|
@@ -191,4 +189,4 @@ async function runServe(options) {
|
|
|
191
189
|
export {
|
|
192
190
|
runServe
|
|
193
191
|
};
|
|
194
|
-
//# sourceMappingURL=serve-
|
|
192
|
+
//# sourceMappingURL=serve-J6EM3G6N.js.map
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aN as ToolCall, c as Attachment, R as Diagnostic, am as Provider, ab as ModelConfig, az as Session, aI as SessionSummary, ai as Project, aD as SessionMode, aF as SessionPhase, M as Message, J as Criterion, L as CriterionStatus, a8 as MetadataEntry, av as QueuedMessage, F as ContextState, O as DangerLevel$1, ax as ServerMessage, aK as StatsIdentity, aQ as ToolResult, D as Config } from '../protocol-De-Pzgry.js';
|
|
2
2
|
import { Server } from 'node:http';
|
|
3
3
|
|
|
4
4
|
interface LLMMessage {
|
|
@@ -39,9 +39,6 @@ interface LLMCompletionRequest {
|
|
|
39
39
|
maxTokens?: number;
|
|
40
40
|
supportsVision?: boolean;
|
|
41
41
|
};
|
|
42
|
-
disableXmlProtection?: boolean;
|
|
43
|
-
onVisionFallbackStart?: (attachmentId: string, filename?: string) => void;
|
|
44
|
-
onVisionFallbackDone?: (attachmentId: string, description: string) => void;
|
|
45
42
|
}
|
|
46
43
|
interface LLMCompletionResponse {
|
|
47
44
|
id: string;
|
|
@@ -74,8 +71,6 @@ type LLMStreamEvent = {
|
|
|
74
71
|
} | {
|
|
75
72
|
type: 'error';
|
|
76
73
|
error: string;
|
|
77
|
-
} | {
|
|
78
|
-
type: 'xml_tool_abort';
|
|
79
74
|
};
|
|
80
75
|
interface LLMClient {
|
|
81
76
|
complete(request: LLMCompletionRequest): Promise<LLMCompletionResponse>;
|
package/dist/server/index.js
CHANGED
|
@@ -1,29 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer,
|
|
3
3
|
createServerHandle
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-PSJIT5LZ.js";
|
|
9
|
-
import "../chunk-XAMAYRDA.js";
|
|
4
|
+
} from "../chunk-3FFHHYWP.js";
|
|
5
|
+
import "../chunk-RI6GAMNP.js";
|
|
6
|
+
import "../chunk-RBJ25FIR.js";
|
|
7
|
+
import "../chunk-FRCLNAE2.js";
|
|
10
8
|
import "../chunk-DL6ZILAF.js";
|
|
11
9
|
import "../chunk-PBGOZMVY.js";
|
|
12
10
|
import "../chunk-VRGRAQDG.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-NPHYEUYE.js";
|
|
12
|
+
import "../chunk-XJEOP6XU.js";
|
|
13
|
+
import "../chunk-7TTEGAO6.js";
|
|
14
|
+
import "../chunk-BJYPTN5S.js";
|
|
15
|
+
import "../chunk-RFNEDBVO.js";
|
|
16
|
+
import "../chunk-XAMAYRDA.js";
|
|
17
17
|
import "../chunk-FBGWG4N6.js";
|
|
18
|
-
import "../chunk-26DZZZDC.js";
|
|
19
|
-
import "../chunk-MCPID4EJ.js";
|
|
20
|
-
import "../chunk-CEZNMLOO.js";
|
|
21
18
|
import "../chunk-VUQCQXXJ.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-BVHFMAVN.js";
|
|
20
|
+
import "../chunk-IGSZUXQP.js";
|
|
21
|
+
import "../chunk-EMJGF3A7.js";
|
|
22
|
+
import "../chunk-7FDY3EOH.js";
|
|
26
23
|
import "../chunk-K44MW7JJ.js";
|
|
24
|
+
import "../chunk-CQGTEGKL.js";
|
|
27
25
|
export {
|
|
28
26
|
createServer,
|
|
29
27
|
createServerHandle
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getAllSettings,
|
|
6
6
|
getSetting,
|
|
7
7
|
setSetting
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RFNEDBVO.js";
|
|
9
9
|
import "./chunk-FBGWG4N6.js";
|
|
10
10
|
import "./chunk-K44MW7JJ.js";
|
|
11
11
|
export {
|
|
@@ -16,4 +16,4 @@ export {
|
|
|
16
16
|
getSetting,
|
|
17
17
|
setSetting
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=settings-
|
|
19
|
+
//# sourceMappingURL=settings-6XX56F3F.js.map
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as Message, S as SessionStats } from '../protocol-
|
|
2
|
-
export { A as AgentEvent, a as AskAnswerPayload, b as AskUserEvent, c as Attachment, B as BackgroundProcess, d as BackgroundProcessExitedPayload, e as BackgroundProcessOutputPayload, f as BackgroundProcessRemovedPayload, g as BackgroundProcessStartedPayload, h as BackgroundProcessStatus, C as CallStatsDataPoint, i as ChatAskUserPayload, j as ChatDeltaPayload, k as ChatDonePayload, l as ChatErrorPayload, m as ChatFormatRetryPayload, n as ChatMessagePayload, o as ChatMessageUpdatedPayload, p as ChatPathConfirmationPayload, q as ChatProgressPayload, r as ChatThinkingPayload, s as ChatTodoPayload, t as ChatToolCallPayload, u as ChatToolOutputPayload, v as ChatToolPreparingPayload, w as ChatToolResultPayload, x as ChatVisionFallbackPayload, y as ClientMessage, z as ClientMessageType, D as Config, E as ContextCompactionEvent, F as ContextState, G as ContextStatePayload, H as ContextWindow, I as CriteriaUpdatedPayload, J as Criterion, K as CriterionAttempt, L as CriterionStatus, N as CriterionValidation, O as DangerLevel, P as DevServerOutputPayload, Q as DevServerStatePayload, R as Diagnostic, T as EditContextEdit, U as EditContextLine, V as EditContextRegion, W as ElementData, X as ErrorPayload, Y as ExecutionState, Z as FileReadEntry, _ as GitDiffFile, $ as GitStatusPayload, a0 as InjectedFile, a1 as LLMCallStats, a2 as LlmBackend, a3 as LogLine, a4 as LspDiagnosticsPayload, a5 as MessageRole, a6 as MessageSegment, a7 as MessageStats, a8 as MetadataEntry, a9 as MetadataUpdatedPayload, aa as ModeChangedPayload, ab as ModelConfig, ac as ModelSessionStats, ad as PathConfirmPayload, ae as PathConfirmationReason, af as PendingPathConfirmationPayload, ag as PhaseChangedPayload, ah as PreparingToolCall, ai as Project, aj as ProjectDeletedPayload, ak as ProjectListPayload, al as ProjectStatePayload, am as
|
|
1
|
+
import { M as Message, S as SessionStats } from '../protocol-De-Pzgry.js';
|
|
2
|
+
export { A as AgentEvent, a as AskAnswerPayload, b as AskUserEvent, c as Attachment, B as BackgroundProcess, d as BackgroundProcessExitedPayload, e as BackgroundProcessOutputPayload, f as BackgroundProcessRemovedPayload, g as BackgroundProcessStartedPayload, h as BackgroundProcessStatus, C as CallStatsDataPoint, i as ChatAskUserPayload, j as ChatDeltaPayload, k as ChatDonePayload, l as ChatErrorPayload, m as ChatFormatRetryPayload, n as ChatMessagePayload, o as ChatMessageUpdatedPayload, p as ChatPathConfirmationPayload, q as ChatProgressPayload, r as ChatThinkingPayload, s as ChatTodoPayload, t as ChatToolCallPayload, u as ChatToolOutputPayload, v as ChatToolPreparingPayload, w as ChatToolResultPayload, x as ChatVisionFallbackPayload, y as ClientMessage, z as ClientMessageType, D as Config, E as ContextCompactionEvent, F as ContextState, G as ContextStatePayload, H as ContextWindow, I as CriteriaUpdatedPayload, J as Criterion, K as CriterionAttempt, L as CriterionStatus, N as CriterionValidation, O as DangerLevel, P as DevServerOutputPayload, Q as DevServerStatePayload, R as Diagnostic, T as EditContextEdit, U as EditContextLine, V as EditContextRegion, W as ElementData, X as ErrorPayload, Y as ExecutionState, Z as FileReadEntry, _ as GitDiffFile, $ as GitStatusPayload, a0 as InjectedFile, a1 as LLMCallStats, a2 as LlmBackend, a3 as LogLine, a4 as LspDiagnosticsPayload, a5 as MessageRole, a6 as MessageSegment, a7 as MessageStats, a8 as MetadataEntry, a9 as MetadataUpdatedPayload, aa as ModeChangedPayload, ab as ModelConfig, ac as ModelSessionStats, ad as PathConfirmPayload, ae as PathConfirmationReason, af as PendingPathConfirmationPayload, ag as PhaseChangedPayload, ah as PreparingToolCall, ai as Project, aj as ProjectDeletedPayload, ak as ProjectListPayload, al as ProjectStatePayload, am as Provider, an as ProviderBackend, ao as ProviderChangedPayload, ap as QueueAddedEvent, aq as QueueCancelledEvent, ar as QueueDrainedEvent, as as QueueEvent, at as QueueEventType, au as QueueStatePayload, av as QueuedMessage, aw as RecentUserPrompt, ax as ServerMessage, ay as ServerMessageType, az as Session, aA as SessionListPayload, aB as SessionLoadPayload, aC as SessionMetadata, aD as SessionMode, aE as SessionNameGeneratedPayload, aF as SessionPhase, aG as SessionRunningPayload, aH as SessionStatePayload, aI as SessionSummary, aJ as StatsDataPoint, aK as StatsIdentity, aL as TaskCompletedPayload, aM as Todo, aN as ToolCall, aO as ToolMode, aP as ToolName, aQ as ToolResult, aR as ValidationResult, aS as createClientMessage, aT as createServerMessage, aU as isClientMessage, aV as isServerMessage } from '../protocol-De-Pzgry.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Session stats computation - aggregates response-level MessageStats from
|
package/dist/shared/index.js
CHANGED
|
@@ -11,28 +11,25 @@ import {
|
|
|
11
11
|
requestPathAccess,
|
|
12
12
|
stepDoneTool,
|
|
13
13
|
validateToolAction
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FRCLNAE2.js";
|
|
15
|
+
import "./chunk-DL6ZILAF.js";
|
|
16
|
+
import "./chunk-PBGOZMVY.js";
|
|
17
|
+
import "./chunk-VRGRAQDG.js";
|
|
18
|
+
import "./chunk-NPHYEUYE.js";
|
|
19
|
+
import "./chunk-XJEOP6XU.js";
|
|
20
|
+
import "./chunk-7TTEGAO6.js";
|
|
15
21
|
import {
|
|
16
22
|
AskUserInterrupt,
|
|
17
23
|
cancelQuestionsForSession,
|
|
18
24
|
provideAnswer
|
|
19
25
|
} from "./chunk-BJYPTN5S.js";
|
|
20
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-RFNEDBVO.js";
|
|
21
27
|
import "./chunk-XAMAYRDA.js";
|
|
22
|
-
import "./chunk-DL6ZILAF.js";
|
|
23
|
-
import "./chunk-PBGOZMVY.js";
|
|
24
|
-
import "./chunk-VRGRAQDG.js";
|
|
25
|
-
import "./chunk-HGAMIPFO.js";
|
|
26
|
-
import "./chunk-HLZV4S2I.js";
|
|
27
28
|
import "./chunk-FBGWG4N6.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-CEZNMLOO.js";
|
|
31
|
-
import "./chunk-FQLK5GL5.js";
|
|
32
|
-
import "./chunk-CQGTEGKL.js";
|
|
33
|
-
import "./chunk-CGZHLM3K.js";
|
|
34
|
-
import "./chunk-SZKEGZIB.js";
|
|
29
|
+
import "./chunk-BVHFMAVN.js";
|
|
30
|
+
import "./chunk-7FDY3EOH.js";
|
|
35
31
|
import "./chunk-K44MW7JJ.js";
|
|
32
|
+
import "./chunk-CQGTEGKL.js";
|
|
36
33
|
export {
|
|
37
34
|
AskUserInterrupt,
|
|
38
35
|
PathAccessDeniedError,
|
|
@@ -50,4 +47,4 @@ export {
|
|
|
50
47
|
stepDoneTool,
|
|
51
48
|
validateToolAction
|
|
52
49
|
};
|
|
53
|
-
//# sourceMappingURL=tools-
|
|
50
|
+
//# sourceMappingURL=tools-GCANYSB7.js.map
|