openfox 2.0.0-beta.1 → 2.0.0-beta.11
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/agent-defaults/code-reviewer.agent.md +2 -1
- package/dist/{chat-handler-IVIWOR3D.js → chat-handler-NMJCOCCB.js} +14 -27
- package/dist/{chunk-ZLUBZ4K4.js → chunk-4RLDN2LL.js} +222 -106
- package/dist/{chunk-CEZNMLOO.js → chunk-7TTEGAO6.js} +12 -13
- package/dist/chunk-BU56QFHW.js +315 -0
- package/dist/{chunk-FQLK5GL5.js → chunk-BVHFMAVN.js} +1 -1
- package/dist/{chunk-RF2JGDSS.js → chunk-DMH6JVPF.js} +13 -10
- package/dist/{chunk-ALH4KM2Y.js → chunk-EQQDA4D3.js} +2967 -3248
- package/dist/{chunk-QFSSKIQ3.js → chunk-EXYMWI7A.js} +4 -4
- package/dist/{chunk-NNEHZT3V.js → chunk-EZUR7OEP.js} +11 -3
- package/dist/{chunk-NONI4CRP.js → chunk-ITWVFGFV.js} +5 -61
- package/dist/{chunk-4U4CSRBE.js → chunk-LCRJWUW7.js} +6 -6
- package/dist/{chunk-XKR3HCAL.js → chunk-NSBYORD5.js} +177 -34
- package/dist/{chunk-PSJIT5LZ.js → chunk-RFNEDBVO.js} +4 -4
- package/dist/chunk-RI6GAMNP.js +13 -0
- package/dist/{chunk-HHAJ3QF6.js → chunk-UKTPL5ZG.js} +16 -28
- package/dist/{chunk-HGAMIPFO.js → chunk-VIIRNJDT.js} +39 -178
- 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-TDVA7MQN.js} +9 -8
- package/dist/{events-OHJWCI3S.js → events-UGTGGFG3.js} +8 -7
- package/dist/{folding-U6UHQAS5.js → folding-YOCGTZYH.js} +2 -2
- package/dist/{orchestrator-7ZXM4J22.js → orchestrator-75L5UGDU.js} +18 -22
- package/dist/package.json +1 -1
- package/dist/{processor-TKBJLQ2N.js → processor-GHESQ2YV.js} +8 -9
- package/dist/{protocol-BQ12Aw5J.d.ts → protocol-B9R1CUvt.d.ts} +14 -39
- package/dist/{protocol-K62EPEGS.js → protocol-CN24IKQN.js} +3 -5
- package/dist/{provider-HTJEB3ON.js → provider-BGH4MBLH.js} +25 -10
- package/dist/{serve-5KA6SSSP.js → serve-I6T7V62Z.js} +25 -26
- package/dist/server/index.d.ts +1 -6
- package/dist/server/index.js +15 -16
- 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-Z7X4HXZN.js → tools-D3WWIOQD.js} +11 -13
- package/dist/web/assets/{index-BY8EbT5Z.css → index-CSOB8dwI.css} +1 -1
- package/dist/web/assets/index-tJDr1ODC.js +299 -0
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/dist/workflow-defaults/default.workflow.json +9 -4
- package/package.json +1 -1
- package/dist/auto-compaction-UIWTO3H5.js +0 -27
- package/dist/chunk-CGZHLM3K.js +0 -70
- package/dist/chunk-SZKEGZIB.js +0 -140
- package/dist/chunk-UFY4I643.js +0 -332
- package/dist/runtime-config-NPSPMRDA.js +0 -9
- package/dist/vision-fallback-3MIZZ6NQ.js +0 -22
- package/dist/web/assets/index-CqOJgw7l.js +0 -299
|
@@ -5,18 +5,17 @@ import {
|
|
|
5
5
|
generateSessionName,
|
|
6
6
|
getSessionMessageCount,
|
|
7
7
|
needsNameGenerationCheck
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EXYMWI7A.js";
|
|
9
9
|
import {
|
|
10
10
|
getEventStore
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-NONI4CRP.js";
|
|
11
|
+
} from "./chunk-NSBYORD5.js";
|
|
12
|
+
import "./chunk-ITWVFGFV.js";
|
|
14
13
|
import {
|
|
15
14
|
createChatMessageMessage,
|
|
16
15
|
createSessionRunningMessage
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-7TTEGAO6.js";
|
|
17
|
+
import "./chunk-FBGWG4N6.js";
|
|
18
|
+
import "./chunk-BVHFMAVN.js";
|
|
20
19
|
import {
|
|
21
20
|
logger
|
|
22
21
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -177,7 +176,7 @@ var QueueProcessor = class {
|
|
|
177
176
|
backend: provider?.backend ?? llmClient.getBackend(),
|
|
178
177
|
model: llmClient.getModel()
|
|
179
178
|
};
|
|
180
|
-
const { runChatTurn } = await import("./orchestrator-
|
|
179
|
+
const { runChatTurn } = await import("./orchestrator-75L5UGDU.js");
|
|
181
180
|
const runChatTurnParams = buildRunChatTurnParams({
|
|
182
181
|
sessionManager,
|
|
183
182
|
sessionId,
|
|
@@ -221,4 +220,4 @@ var QueueProcessor = class {
|
|
|
221
220
|
export {
|
|
222
221
|
QueueProcessor
|
|
223
222
|
};
|
|
224
|
-
//# sourceMappingURL=processor-
|
|
223
|
+
//# sourceMappingURL=processor-GHESQ2YV.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,12 +233,12 @@ 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;
|
|
275
239
|
name: string;
|
|
276
240
|
color: string;
|
|
241
|
+
kind?: 'definition' | 'reminder';
|
|
277
242
|
};
|
|
278
243
|
}
|
|
279
244
|
interface ToolCall {
|
|
@@ -383,7 +348,6 @@ interface ExecutionState {
|
|
|
383
348
|
compactionCount: number;
|
|
384
349
|
startedAt: string;
|
|
385
350
|
lastActivityAt: string;
|
|
386
|
-
lastModeWithReminder?: string;
|
|
387
351
|
cachedSystemPrompt?: string;
|
|
388
352
|
dynamicContextHash?: string;
|
|
389
353
|
dynamicContextChanged?: boolean;
|
|
@@ -453,6 +417,7 @@ interface Provider {
|
|
|
453
417
|
isActive: boolean;
|
|
454
418
|
createdAt: string;
|
|
455
419
|
status?: 'connected' | 'disconnected' | 'unknown';
|
|
420
|
+
isLocal?: boolean | undefined;
|
|
456
421
|
}
|
|
457
422
|
interface Config {
|
|
458
423
|
llm: {
|
|
@@ -466,6 +431,8 @@ interface Config {
|
|
|
466
431
|
apiKey?: string;
|
|
467
432
|
/** Disable thinking/reasoning globally (for e2e tests) */
|
|
468
433
|
disableThinking?: boolean;
|
|
434
|
+
/** Vision model for image description fallback when primary model lacks vision support */
|
|
435
|
+
visionModel?: string;
|
|
469
436
|
};
|
|
470
437
|
context: {
|
|
471
438
|
maxTokens: number;
|
|
@@ -476,6 +443,11 @@ interface Config {
|
|
|
476
443
|
maxIterations: number;
|
|
477
444
|
maxConsecutiveFailures: number;
|
|
478
445
|
toolTimeout: number;
|
|
446
|
+
/** Auto-loop patterns: when LLM response matches, auto-inject a response */
|
|
447
|
+
autoPatterns?: Array<{
|
|
448
|
+
pattern: string;
|
|
449
|
+
response: string;
|
|
450
|
+
}>;
|
|
479
451
|
};
|
|
480
452
|
server: {
|
|
481
453
|
port: number;
|
|
@@ -621,6 +593,9 @@ interface ChatProgressPayload {
|
|
|
621
593
|
interface ChatFormatRetryPayload {
|
|
622
594
|
attempt: number;
|
|
623
595
|
maxAttempts: number;
|
|
596
|
+
pattern?: string;
|
|
597
|
+
field?: string;
|
|
598
|
+
matchedContent?: string;
|
|
624
599
|
}
|
|
625
600
|
interface ChatVisionFallbackPayload {
|
|
626
601
|
type: 'start' | 'done';
|
|
@@ -634,7 +609,7 @@ interface ChatMessagePayload {
|
|
|
634
609
|
}
|
|
635
610
|
interface ChatMessageUpdatedPayload {
|
|
636
611
|
messageId: string;
|
|
637
|
-
updates: Partial<Pick<Message, 'content' | 'thinkingContent' | 'toolCalls' | 'isStreaming' | 'stats' | '
|
|
612
|
+
updates: Partial<Pick<Message, 'content' | 'thinkingContent' | 'toolCalls' | 'isStreaming' | 'stats' | 'partial'>>;
|
|
638
613
|
}
|
|
639
614
|
interface ChatDonePayload {
|
|
640
615
|
messageId: string;
|
|
@@ -876,4 +851,4 @@ interface QueueCancelledEvent {
|
|
|
876
851
|
}
|
|
877
852
|
type QueueEvent = QueueAddedEvent | QueueDrainedEvent | QueueCancelledEvent;
|
|
878
853
|
|
|
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
|
|
854
|
+
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 };
|
|
@@ -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
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fetchAvailableModelsFromBackend
|
|
3
|
+
} from "./chunk-DMH6JVPF.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-EZUR7OEP.js";
|
|
12
12
|
import {
|
|
13
13
|
detectModel
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UKTPL5ZG.js";
|
|
15
15
|
import {
|
|
16
16
|
detectBackend
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-CQGTEGKL.js";
|
|
19
|
-
import "./chunk-SZKEGZIB.js";
|
|
17
|
+
} from "./chunk-VIIRNJDT.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";
|
|
@@ -138,6 +137,21 @@ async function runProviderAdd(mode) {
|
|
|
138
137
|
}
|
|
139
138
|
}
|
|
140
139
|
}
|
|
140
|
+
const localBackends = /* @__PURE__ */ new Set(["vllm", "sglang", "ollama", "llamacpp", "opencode-go"]);
|
|
141
|
+
const defaultIsLocal = localBackends.has(backend);
|
|
142
|
+
const isLocalChoice = await select({
|
|
143
|
+
message: "Is this a local provider?",
|
|
144
|
+
options: [
|
|
145
|
+
{ value: "yes", label: "Yes" },
|
|
146
|
+
{ value: "no", label: "No" }
|
|
147
|
+
],
|
|
148
|
+
initialValue: defaultIsLocal ? "yes" : "no"
|
|
149
|
+
});
|
|
150
|
+
if (isCancel(isLocalChoice)) {
|
|
151
|
+
cancel("Cancelled");
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
const isLocal = isLocalChoice === "yes";
|
|
141
155
|
let apiKey;
|
|
142
156
|
if (backend === "openai" || backend === "anthropic") {
|
|
143
157
|
const key = await password({
|
|
@@ -244,11 +258,12 @@ async function runProviderAdd(mode) {
|
|
|
244
258
|
url,
|
|
245
259
|
backend: finalBackend,
|
|
246
260
|
apiKey,
|
|
261
|
+
isLocal,
|
|
247
262
|
models,
|
|
248
263
|
isActive: makeActive
|
|
249
264
|
});
|
|
250
265
|
if (makeActive) {
|
|
251
|
-
const { setDefaultModelSelection } = await import("./config-
|
|
266
|
+
const { setDefaultModelSelection } = await import("./config-TDVA7MQN.js");
|
|
252
267
|
newConfig = setDefaultModelSelection(
|
|
253
268
|
newConfig,
|
|
254
269
|
newConfig.providers[newConfig.providers.length - 1].id,
|
|
@@ -376,4 +391,4 @@ export {
|
|
|
376
391
|
runProviderRemove,
|
|
377
392
|
runProviderUse
|
|
378
393
|
};
|
|
379
|
-
//# sourceMappingURL=provider-
|
|
394
|
+
//# sourceMappingURL=provider-BGH4MBLH.js.map
|
|
@@ -1,41 +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-XAMAYRDA.js";
|
|
4
|
+
} from "./chunk-4RLDN2LL.js";
|
|
5
|
+
import "./chunk-RI6GAMNP.js";
|
|
6
|
+
import "./chunk-BU56QFHW.js";
|
|
7
|
+
import "./chunk-EQQDA4D3.js";
|
|
14
8
|
import "./chunk-DL6ZILAF.js";
|
|
15
9
|
import "./chunk-PBGOZMVY.js";
|
|
16
10
|
import "./chunk-VRGRAQDG.js";
|
|
17
|
-
import
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-NONI4CRP.js";
|
|
23
|
-
import "./chunk-CEZNMLOO.js";
|
|
11
|
+
import {
|
|
12
|
+
loadConfig
|
|
13
|
+
} from "./chunk-NSBYORD5.js";
|
|
14
|
+
import "./chunk-ITWVFGFV.js";
|
|
15
|
+
import "./chunk-7TTEGAO6.js";
|
|
24
16
|
import "./chunk-BJYPTN5S.js";
|
|
17
|
+
import "./chunk-RFNEDBVO.js";
|
|
18
|
+
import "./chunk-XAMAYRDA.js";
|
|
19
|
+
import "./chunk-FBGWG4N6.js";
|
|
25
20
|
import "./chunk-VUQCQXXJ.js";
|
|
26
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-BVHFMAVN.js";
|
|
22
|
+
import "./chunk-DMH6JVPF.js";
|
|
23
|
+
import {
|
|
24
|
+
getActiveProvider,
|
|
25
|
+
getDefaultModel,
|
|
26
|
+
loadGlobalConfig
|
|
27
|
+
} from "./chunk-EZUR7OEP.js";
|
|
28
|
+
import "./chunk-UKTPL5ZG.js";
|
|
29
|
+
import "./chunk-VIIRNJDT.js";
|
|
30
|
+
import {
|
|
31
|
+
logger
|
|
32
|
+
} from "./chunk-K44MW7JJ.js";
|
|
27
33
|
import {
|
|
28
34
|
ensureDataDirExists,
|
|
29
35
|
getDatabasePath,
|
|
30
36
|
getGlobalConfigPath
|
|
31
37
|
} from "./chunk-CQGTEGKL.js";
|
|
32
|
-
import {
|
|
33
|
-
loadConfig
|
|
34
|
-
} from "./chunk-CGZHLM3K.js";
|
|
35
|
-
import "./chunk-SZKEGZIB.js";
|
|
36
|
-
import {
|
|
37
|
-
logger
|
|
38
|
-
} from "./chunk-K44MW7JJ.js";
|
|
39
38
|
|
|
40
39
|
// src/server/utils/network.ts
|
|
41
40
|
import os from "os";
|
|
@@ -190,4 +189,4 @@ async function runServe(options) {
|
|
|
190
189
|
export {
|
|
191
190
|
runServe
|
|
192
191
|
};
|
|
193
|
-
//# sourceMappingURL=serve-
|
|
192
|
+
//# sourceMappingURL=serve-I6T7V62Z.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-B9R1CUvt.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,28 +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-XAMAYRDA.js";
|
|
4
|
+
} from "../chunk-4RLDN2LL.js";
|
|
5
|
+
import "../chunk-RI6GAMNP.js";
|
|
6
|
+
import "../chunk-BU56QFHW.js";
|
|
7
|
+
import "../chunk-EQQDA4D3.js";
|
|
9
8
|
import "../chunk-DL6ZILAF.js";
|
|
10
9
|
import "../chunk-PBGOZMVY.js";
|
|
11
10
|
import "../chunk-VRGRAQDG.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-XKR3HCAL.js";
|
|
16
|
-
import "../chunk-FBGWG4N6.js";
|
|
17
|
-
import "../chunk-NONI4CRP.js";
|
|
18
|
-
import "../chunk-CEZNMLOO.js";
|
|
11
|
+
import "../chunk-NSBYORD5.js";
|
|
12
|
+
import "../chunk-ITWVFGFV.js";
|
|
13
|
+
import "../chunk-7TTEGAO6.js";
|
|
19
14
|
import "../chunk-BJYPTN5S.js";
|
|
15
|
+
import "../chunk-RFNEDBVO.js";
|
|
16
|
+
import "../chunk-XAMAYRDA.js";
|
|
17
|
+
import "../chunk-FBGWG4N6.js";
|
|
20
18
|
import "../chunk-VUQCQXXJ.js";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-BVHFMAVN.js";
|
|
20
|
+
import "../chunk-DMH6JVPF.js";
|
|
21
|
+
import "../chunk-UKTPL5ZG.js";
|
|
22
|
+
import "../chunk-VIIRNJDT.js";
|
|
25
23
|
import "../chunk-K44MW7JJ.js";
|
|
24
|
+
import "../chunk-CQGTEGKL.js";
|
|
26
25
|
export {
|
|
27
26
|
createServer,
|
|
28
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-B9R1CUvt.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-B9R1CUvt.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Session stats computation - aggregates response-level MessageStats from
|
package/dist/shared/index.js
CHANGED
|
@@ -11,27 +11,25 @@ import {
|
|
|
11
11
|
requestPathAccess,
|
|
12
12
|
stepDoneTool,
|
|
13
13
|
validateToolAction
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-PSJIT5LZ.js";
|
|
16
|
-
import "./chunk-XAMAYRDA.js";
|
|
14
|
+
} from "./chunk-EQQDA4D3.js";
|
|
17
15
|
import "./chunk-DL6ZILAF.js";
|
|
18
16
|
import "./chunk-PBGOZMVY.js";
|
|
19
17
|
import "./chunk-VRGRAQDG.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-NONI4CRP.js";
|
|
24
|
-
import "./chunk-CEZNMLOO.js";
|
|
18
|
+
import "./chunk-NSBYORD5.js";
|
|
19
|
+
import "./chunk-ITWVFGFV.js";
|
|
20
|
+
import "./chunk-7TTEGAO6.js";
|
|
25
21
|
import {
|
|
26
22
|
AskUserInterrupt,
|
|
27
23
|
cancelQuestionsForSession,
|
|
28
24
|
provideAnswer
|
|
29
25
|
} from "./chunk-BJYPTN5S.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-RFNEDBVO.js";
|
|
27
|
+
import "./chunk-XAMAYRDA.js";
|
|
28
|
+
import "./chunk-FBGWG4N6.js";
|
|
29
|
+
import "./chunk-BVHFMAVN.js";
|
|
30
|
+
import "./chunk-VIIRNJDT.js";
|
|
34
31
|
import "./chunk-K44MW7JJ.js";
|
|
32
|
+
import "./chunk-CQGTEGKL.js";
|
|
35
33
|
export {
|
|
36
34
|
AskUserInterrupt,
|
|
37
35
|
PathAccessDeniedError,
|
|
@@ -49,4 +47,4 @@ export {
|
|
|
49
47
|
stepDoneTool,
|
|
50
48
|
validateToolAction
|
|
51
49
|
};
|
|
52
|
-
//# sourceMappingURL=tools-
|
|
50
|
+
//# sourceMappingURL=tools-D3WWIOQD.js.map
|