openfox 0.1.0 → 0.2.1
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/builder.agent.md +38 -0
- package/dist/agent-defaults/code-reviewer.agent.md +21 -0
- package/dist/agent-defaults/debugger.agent.md +21 -0
- package/dist/agent-defaults/planner.agent.md +35 -0
- package/dist/agent-defaults/test-generator.agent.md +22 -0
- package/dist/agent-defaults/verifier.agent.md +41 -0
- package/dist/{chunk-FF6Z2MC3.js → chunk-5ZUU23XF.js} +18 -1
- package/dist/{chunk-IVHCPQO2.js → chunk-ARFK3RZW.js} +1 -1
- package/dist/{chunk-IKAWIOXM.js → chunk-FUUYYDVG.js} +387 -73
- package/dist/{chunk-YQ36AK5A.js → chunk-JFQEATRC.js} +623 -327
- package/dist/{chunk-43SWNGYW.js → chunk-L475ND2Z.js} +9 -9
- package/dist/{chunk-6MOGZMGX.js → chunk-L4XDA3V7.js} +2 -2
- package/dist/{chunk-EI46G5WO.js → chunk-MKAHOQBI.js} +10 -10
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{config-6GJ4SVFH.js → config-BMXSDOZB.js} +3 -3
- package/dist/{init-UVZDOHMX.js → init-PLRTRSDC.js} +6 -6
- package/dist/{protocol-BJsm88OW.d.ts → protocol-BFFz3WM0.d.ts} +14 -3
- package/dist/{provider-LCE6WZA6.js → provider-ETVY64A2.js} +5 -5
- package/dist/{serve-27DZK34K.js → serve-EOKIXTWM.js} +8 -8
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +5 -5
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/{tools-R4YQAYUF.js → tools-QMIIDJTV.js} +7 -5
- package/dist/web/assets/index-CAD7Iv_d.js +122 -0
- package/dist/web/assets/{index-BSlSWZrM.css → index-DHmZmhnR.css} +1 -1
- package/dist/web/index.html +2 -2
- package/dist/workflow-defaults/default.workflow.json +45 -0
- package/package.json +34 -16
- package/dist/branch.api-WDHKZJS6.js.map +0 -1
- package/dist/chunk-26NRL3HX.js.map +0 -1
- package/dist/chunk-43SWNGYW.js.map +0 -1
- package/dist/chunk-4Z2OZ6NX.js.map +0 -1
- package/dist/chunk-6MOGZMGX.js.map +0 -1
- package/dist/chunk-AF7XS4OI.js.map +0 -1
- package/dist/chunk-EI46G5WO.js.map +0 -1
- package/dist/chunk-FF6Z2MC3.js.map +0 -1
- package/dist/chunk-IKAWIOXM.js.map +0 -1
- package/dist/chunk-IVHCPQO2.js.map +0 -1
- package/dist/chunk-MTX5Y3V3.js.map +0 -1
- package/dist/chunk-N2XYX4ZA.js.map +0 -1
- package/dist/chunk-QY7BMXWT.js.map +0 -1
- package/dist/chunk-U62ZECSQ.js.map +0 -1
- package/dist/chunk-YQ36AK5A.js.map +0 -1
- package/dist/cli/dev.js.map +0 -1
- package/dist/cli/index.js.map +0 -1
- package/dist/config-6GJ4SVFH.js.map +0 -1
- package/dist/init-UVZDOHMX.js.map +0 -1
- package/dist/paths-4BPXWB2W.js.map +0 -1
- package/dist/project-creator-CWPKRIKI.js.map +0 -1
- package/dist/provider-LCE6WZA6.js.map +0 -1
- package/dist/serve-27DZK34K.js.map +0 -1
- package/dist/server/index.js.map +0 -1
- package/dist/settings-D5O3TMLD.js.map +0 -1
- package/dist/shared/index.js.map +0 -1
- package/dist/tools-R4YQAYUF.js.map +0 -1
- package/dist/web/assets/index-BMNDCsbJ.js +0 -120
- /package/dist/command-defaults/{defaults/commit-push.command.md → commit-push.command.md} +0 -0
- /package/dist/command-defaults/{defaults/init.command.md → init.command.md} +0 -0
- /package/dist/command-defaults/{defaults/test-ui.command.md → test-ui.command.md} +0 -0
- /package/dist/skill-defaults/{defaults/playwright-cli.skill.md → playwright-cli.skill.md} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
detectBackend,
|
|
3
3
|
detectModel
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5ZUU23XF.js";
|
|
5
5
|
import {
|
|
6
6
|
getGlobalConfigPath
|
|
7
7
|
} from "./chunk-AF7XS4OI.js";
|
|
@@ -76,10 +76,10 @@ var configSchema = z.object({
|
|
|
76
76
|
defaultModelSelection: z.string().optional(),
|
|
77
77
|
activeProviderId: z.string().optional(),
|
|
78
78
|
activeWorkflowId: z.string().optional(),
|
|
79
|
-
server: serverSchema.default({}),
|
|
80
|
-
logging: loggingSchema.default({}),
|
|
81
|
-
database: databaseSchema.default({}),
|
|
82
|
-
workspace: workspaceSchema.default({})
|
|
79
|
+
server: serverSchema.default({ port: 10369, host: "127.0.0.1", openBrowser: true }),
|
|
80
|
+
logging: loggingSchema.default({ level: "info" }),
|
|
81
|
+
database: databaseSchema.default({ path: "" }),
|
|
82
|
+
workspace: workspaceSchema.default(() => ({ workdir: process.cwd() }))
|
|
83
83
|
});
|
|
84
84
|
var oldLlmSchema = z.object({
|
|
85
85
|
url: z.string().url().default("http://localhost:8000/v1"),
|
|
@@ -91,9 +91,9 @@ var oldLlmSchema = z.object({
|
|
|
91
91
|
});
|
|
92
92
|
var oldConfigSchema = z.object({
|
|
93
93
|
llm: oldLlmSchema,
|
|
94
|
-
server: serverSchema.default({}),
|
|
95
|
-
logging: loggingSchema.default({}),
|
|
96
|
-
database: databaseSchema.default({})
|
|
94
|
+
server: serverSchema.default({ port: 10369, host: "127.0.0.1", openBrowser: true }),
|
|
95
|
+
logging: loggingSchema.default({ level: "info" }),
|
|
96
|
+
database: databaseSchema.default({ path: "" })
|
|
97
97
|
});
|
|
98
98
|
function migrateConfig(raw) {
|
|
99
99
|
if (typeof raw === "object" && raw !== null && "providers" in raw) {
|
|
@@ -270,4 +270,4 @@ export {
|
|
|
270
270
|
activateProvider,
|
|
271
271
|
mergeConfigs
|
|
272
272
|
};
|
|
273
|
-
//# sourceMappingURL=chunk-
|
|
273
|
+
//# sourceMappingURL=chunk-L475ND2Z.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
createLLMClient,
|
|
4
4
|
detectBackend,
|
|
5
5
|
detectModel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5ZUU23XF.js";
|
|
7
7
|
import {
|
|
8
8
|
logger
|
|
9
9
|
} from "./chunk-U62ZECSQ.js";
|
|
@@ -215,4 +215,4 @@ export {
|
|
|
215
215
|
fetchAvailableModelsFromBackend,
|
|
216
216
|
createProviderManager
|
|
217
217
|
};
|
|
218
|
-
//# sourceMappingURL=chunk-
|
|
218
|
+
//# sourceMappingURL=chunk-L4XDA3V7.js.map
|
|
@@ -24,7 +24,7 @@ Options:
|
|
|
24
24
|
`);
|
|
25
25
|
}
|
|
26
26
|
async function runConfig(mode) {
|
|
27
|
-
const { loadGlobalConfig, getActiveProvider, getDefaultModel } = await import("./config-
|
|
27
|
+
const { loadGlobalConfig, getActiveProvider, getDefaultModel } = await import("./config-BMXSDOZB.js");
|
|
28
28
|
const { getGlobalConfigPath } = await import("./paths-4BPXWB2W.js");
|
|
29
29
|
const config = await loadGlobalConfig(mode);
|
|
30
30
|
const configPath = getGlobalConfigPath(mode);
|
|
@@ -68,8 +68,8 @@ async function runCli(options) {
|
|
|
68
68
|
const [command] = positionals;
|
|
69
69
|
switch (command) {
|
|
70
70
|
case "init": {
|
|
71
|
-
const { runInitWithSelect } = await import("./init-
|
|
72
|
-
const { loadGlobalConfig, getActiveProvider } = await import("./config-
|
|
71
|
+
const { runInitWithSelect } = await import("./init-PLRTRSDC.js");
|
|
72
|
+
const { loadGlobalConfig, getActiveProvider } = await import("./config-BMXSDOZB.js");
|
|
73
73
|
const config = await loadGlobalConfig(mode);
|
|
74
74
|
const activeProvider = getActiveProvider(config);
|
|
75
75
|
if (activeProvider) {
|
|
@@ -84,17 +84,17 @@ async function runCli(options) {
|
|
|
84
84
|
break;
|
|
85
85
|
}
|
|
86
86
|
case "provider": {
|
|
87
|
-
const { runProviderCommand } = await import("./provider-
|
|
87
|
+
const { runProviderCommand } = await import("./provider-ETVY64A2.js");
|
|
88
88
|
const [, subcommand] = positionals;
|
|
89
89
|
await runProviderCommand(mode, subcommand);
|
|
90
90
|
break;
|
|
91
91
|
}
|
|
92
92
|
default: {
|
|
93
|
-
const { configFileExists } = await import("./config-
|
|
93
|
+
const { configFileExists } = await import("./config-BMXSDOZB.js");
|
|
94
94
|
const configExists = await configFileExists(mode);
|
|
95
95
|
if (!configExists) {
|
|
96
96
|
console.log("Welcome to OpenFox!\n");
|
|
97
|
-
const { trySmartDefaults, saveGlobalConfig, addProvider } = await import("./config-
|
|
97
|
+
const { trySmartDefaults, saveGlobalConfig, addProvider } = await import("./config-BMXSDOZB.js");
|
|
98
98
|
const detected = await trySmartDefaults(mode);
|
|
99
99
|
if (detected) {
|
|
100
100
|
console.log(`\u2713 Found ${detected.backend} (${detected.model}) at ${detected.url}`);
|
|
@@ -112,17 +112,17 @@ async function runCli(options) {
|
|
|
112
112
|
maxContext: 2e5,
|
|
113
113
|
isActive: true
|
|
114
114
|
});
|
|
115
|
-
const { setDefaultModelSelection } = await import("./config-
|
|
115
|
+
const { setDefaultModelSelection } = await import("./config-BMXSDOZB.js");
|
|
116
116
|
const finalConfig = setDefaultModelSelection(configWithProvider, configWithProvider.providers[0].id, detected.model);
|
|
117
117
|
await saveGlobalConfig(mode, finalConfig);
|
|
118
118
|
console.log("Configuration saved!\n");
|
|
119
119
|
} else {
|
|
120
120
|
console.log("\u2717 No LLM server detected\n");
|
|
121
|
-
const { runInitWithSelect } = await import("./init-
|
|
121
|
+
const { runInitWithSelect } = await import("./init-PLRTRSDC.js");
|
|
122
122
|
await runInitWithSelect(mode);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
const { runServe } = await import("./serve-
|
|
125
|
+
const { runServe } = await import("./serve-EOKIXTWM.js");
|
|
126
126
|
await runServe({
|
|
127
127
|
mode,
|
|
128
128
|
port: values.port ? parseInt(values.port) : void 0,
|
|
@@ -135,4 +135,4 @@ async function runCli(options) {
|
|
|
135
135
|
export {
|
|
136
136
|
runCli
|
|
137
137
|
};
|
|
138
|
-
//# sourceMappingURL=chunk-
|
|
138
|
+
//# sourceMappingURL=chunk-MKAHOQBI.js.map
|
package/dist/cli/dev.js
CHANGED
package/dist/cli/index.js
CHANGED
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
saveGlobalConfig,
|
|
12
12
|
setDefaultModelSelection,
|
|
13
13
|
trySmartDefaults
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-L475ND2Z.js";
|
|
15
|
+
import "./chunk-5ZUU23XF.js";
|
|
16
16
|
import "./chunk-26NRL3HX.js";
|
|
17
17
|
import "./chunk-U62ZECSQ.js";
|
|
18
18
|
import "./chunk-AF7XS4OI.js";
|
|
@@ -30,4 +30,4 @@ export {
|
|
|
30
30
|
setDefaultModelSelection,
|
|
31
31
|
trySmartDefaults
|
|
32
32
|
};
|
|
33
|
-
//# sourceMappingURL=config-
|
|
33
|
+
//# sourceMappingURL=config-BMXSDOZB.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addProvider,
|
|
3
3
|
saveGlobalConfig
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-L475ND2Z.js";
|
|
5
5
|
import {
|
|
6
6
|
detectBackend,
|
|
7
7
|
detectModel
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5ZUU23XF.js";
|
|
9
9
|
import "./chunk-26NRL3HX.js";
|
|
10
10
|
import "./chunk-U62ZECSQ.js";
|
|
11
11
|
import "./chunk-AF7XS4OI.js";
|
|
@@ -132,7 +132,7 @@ async function runInitWithSelect(mode, existingConfig) {
|
|
|
132
132
|
maxContext: 2e5,
|
|
133
133
|
isActive: true
|
|
134
134
|
});
|
|
135
|
-
const { setDefaultModelSelection } = await import("./config-
|
|
135
|
+
const { setDefaultModelSelection } = await import("./config-BMXSDOZB.js");
|
|
136
136
|
config = setDefaultModelSelection(config, config.providers[config.providers.length - 1].id, model ?? "auto");
|
|
137
137
|
} catch {
|
|
138
138
|
s2.stop("Server isn't available");
|
|
@@ -156,7 +156,7 @@ async function runInitWithSelect(mode, existingConfig) {
|
|
|
156
156
|
maxContext: 2e5,
|
|
157
157
|
isActive: true
|
|
158
158
|
});
|
|
159
|
-
const { setDefaultModelSelection } = await import("./config-
|
|
159
|
+
const { setDefaultModelSelection } = await import("./config-BMXSDOZB.js");
|
|
160
160
|
config = setDefaultModelSelection(config, config.providers[config.providers.length - 1].id, "auto");
|
|
161
161
|
}
|
|
162
162
|
}
|
|
@@ -173,7 +173,7 @@ async function runInitWithSelect(mode, existingConfig) {
|
|
|
173
173
|
});
|
|
174
174
|
config.workspace = { workdir: String(workdirChoice).replace(/\/$/, "") };
|
|
175
175
|
if (config.providers.length > 0 && !config.defaultModelSelection) {
|
|
176
|
-
const { setDefaultModelSelection } = await import("./config-
|
|
176
|
+
const { setDefaultModelSelection } = await import("./config-BMXSDOZB.js");
|
|
177
177
|
config = setDefaultModelSelection(config, config.providers[0].id, "auto");
|
|
178
178
|
}
|
|
179
179
|
await saveGlobalConfig(mode, config);
|
|
@@ -182,4 +182,4 @@ async function runInitWithSelect(mode, existingConfig) {
|
|
|
182
182
|
export {
|
|
183
183
|
runInitWithSelect
|
|
184
184
|
};
|
|
185
|
-
//# sourceMappingURL=init-
|
|
185
|
+
//# sourceMappingURL=init-PLRTRSDC.js.map
|
|
@@ -62,6 +62,7 @@ interface SessionSummary {
|
|
|
62
62
|
updatedAt: string;
|
|
63
63
|
criteriaCount: number;
|
|
64
64
|
criteriaCompleted: number;
|
|
65
|
+
messageCount: number;
|
|
65
66
|
recentUserPrompts?: RecentUserPrompt[];
|
|
66
67
|
}
|
|
67
68
|
type MessageRole = 'user' | 'assistant' | 'system' | 'tool';
|
|
@@ -221,7 +222,7 @@ interface PreparingToolCall {
|
|
|
221
222
|
interface Attachment {
|
|
222
223
|
id: string;
|
|
223
224
|
filename: string;
|
|
224
|
-
mimeType: 'image/png' | 'image/jpeg' | 'image/gif';
|
|
225
|
+
mimeType: 'image/png' | 'image/jpeg' | 'image/gif' | 'image/webp' | 'image/bmp' | 'image/svg+xml';
|
|
225
226
|
size: number;
|
|
226
227
|
data: string;
|
|
227
228
|
}
|
|
@@ -531,7 +532,7 @@ interface QueuedMessage {
|
|
|
531
532
|
attachments?: Attachment[];
|
|
532
533
|
queuedAt: string;
|
|
533
534
|
}
|
|
534
|
-
type ServerMessageType = 'project.state' | 'project.list' | 'project.deleted' | 'session.state' | 'session.list' | 'session.deleted' | 'session.deletedAll' | 'session.running' | 'session.name_generated' | 'chat.delta' | 'chat.thinking' | 'chat.tool_preparing' | 'chat.tool_call' | 'chat.tool_output' | 'chat.tool_result' | 'chat.todo' | 'chat.summary' | 'chat.progress' | 'chat.format_retry' | 'chat.message' | 'chat.message_updated' | 'chat.done' | 'chat.error' | 'chat.path_confirmation' | 'mode.changed' | 'phase.changed' | 'task.completed' | 'criteria.updated' | 'context.state' | 'settings.value' | 'provider.changed' | 'queue.state' | 'lsp.diagnostics' | 'error' | 'ack';
|
|
535
|
+
type ServerMessageType = 'project.state' | 'project.list' | 'project.deleted' | 'session.state' | 'session.list' | 'session.deleted' | 'session.deletedAll' | 'session.running' | 'session.name_generated' | 'chat.delta' | 'chat.thinking' | 'chat.tool_preparing' | 'chat.tool_call' | 'chat.tool_output' | 'chat.tool_result' | 'chat.todo' | 'chat.summary' | 'chat.progress' | 'chat.format_retry' | 'chat.message' | 'chat.message_updated' | 'chat.done' | 'chat.error' | 'chat.path_confirmation' | 'mode.changed' | 'phase.changed' | 'task.completed' | 'criteria.updated' | 'context.state' | 'settings.value' | 'provider.changed' | 'queue.state' | 'devServer.output' | 'devServer.state' | 'lsp.diagnostics' | 'error' | 'ack';
|
|
535
536
|
interface ServerMessage<T = unknown> {
|
|
536
537
|
id?: string;
|
|
537
538
|
type: ServerMessageType;
|
|
@@ -685,6 +686,16 @@ interface ProviderChangedPayload {
|
|
|
685
686
|
interface QueueStatePayload {
|
|
686
687
|
messages: QueuedMessage[];
|
|
687
688
|
}
|
|
689
|
+
interface DevServerOutputPayload {
|
|
690
|
+
workdir: string;
|
|
691
|
+
stream: 'stdout' | 'stderr';
|
|
692
|
+
content: string;
|
|
693
|
+
}
|
|
694
|
+
interface DevServerStatePayload {
|
|
695
|
+
workdir: string;
|
|
696
|
+
state: 'off' | 'running' | 'warning' | 'error';
|
|
697
|
+
errorMessage?: string;
|
|
698
|
+
}
|
|
688
699
|
interface LspDiagnosticsPayload {
|
|
689
700
|
path: string;
|
|
690
701
|
diagnostics: Diagnostic[];
|
|
@@ -757,4 +768,4 @@ declare function createServerMessage<T>(type: ServerMessageType, payload: T, cor
|
|
|
757
768
|
declare function isClientMessage(msg: unknown): msg is ClientMessage;
|
|
758
769
|
declare function isServerMessage(msg: unknown): msg is ServerMessage;
|
|
759
770
|
|
|
760
|
-
export { type
|
|
771
|
+
export { type ModelSessionStats as $, type AgentEvent as A, type CriteriaUpdatedPayload as B, type CallStatsDataPoint as C, type Criterion as D, type CriterionAttempt as E, type CriterionStatus as F, type CriterionValidation as G, type DevServerOutputPayload as H, type DevServerStatePayload as I, type Diagnostic as J, type EditContextEdit as K, type EditContextLine as L, type Message as M, type EditContextRegion as N, type ErrorPayload as O, type ExecutionState as P, type FileReadEntry as Q, type InjectedFile as R, type SessionStats as S, type LLMCallStats as T, type LlmBackend as U, type LspDiagnosticsPayload as V, type MessageRole as W, type MessageSegment as X, type MessageStats as Y, type ModeChangedPayload as Z, type ModeSwitchPayload as _, type AskUserEvent as a, type PathConfirmPayload as a0, type PathConfirmationReason as a1, type PhaseChangedPayload as a2, type PreparingToolCall as a3, type Project as a4, type ProjectCreatePayload as a5, type ProjectCreateWithDirPayload as a6, type ProjectDeletePayload as a7, type ProjectDeletedPayload as a8, type ProjectListPayload as a9, type SessionNameGeneratedPayload as aA, type SessionPhase as aB, type SessionRunningPayload as aC, type SessionSetProviderPayload as aD, type SessionStatePayload as aE, type SessionSummary as aF, type SettingsGetPayload as aG, type SettingsSetPayload as aH, type SettingsValuePayload 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 ProjectLoadPayload as aa, type ProjectStatePayload as ab, type ProjectUpdatePayload as ac, type PromptContext as ad, type PromptContextMessage as ae, type PromptContextTool as af, type PromptRequestOptions as ag, type Provider as ah, type ProviderActivatePayload as ai, type ProviderBackend as aj, type ProviderChangedPayload as ak, type QueueAsapPayload as al, type QueueCancelPayload as am, type QueueCompletionPayload as an, type QueueStatePayload as ao, type QueuedMessage as ap, type RecentUserPrompt as aq, type ServerMessage as ar, type ServerMessageType as as, type Session as at, type SessionCreatePayload as au, type SessionDeleteAllPayload as av, type SessionListPayload as aw, type SessionLoadPayload as ax, type SessionMetadata as ay, type SessionMode as az, type Attachment as b, type ChatDeltaPayload as c, type ChatDonePayload as d, type ChatErrorPayload as e, type ChatFormatRetryPayload as f, type ChatMessagePayload as g, type ChatMessageUpdatedPayload as h, type ChatPathConfirmationPayload as i, type ChatProgressPayload as j, type ChatSendPayload as k, type ChatSummaryPayload as l, type ChatThinkingPayload as m, type ChatTodoPayload as n, type ChatToolCallPayload as o, type ChatToolOutputPayload as p, type ChatToolPreparingPayload as q, type ChatToolResultPayload as r, type ClientMessage as s, type ClientMessageType as t, type Config as u, type ContextCompactionEvent as v, type ContextState as w, type ContextStatePayload as x, type ContextWindow as y, type CriteriaEditPayload as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchAvailableModelsFromBackend
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L4XDA3V7.js";
|
|
4
4
|
import {
|
|
5
5
|
activateProvider,
|
|
6
6
|
addProvider,
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
loadGlobalConfig,
|
|
9
9
|
removeProvider,
|
|
10
10
|
saveGlobalConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-L475ND2Z.js";
|
|
12
12
|
import {
|
|
13
13
|
detectBackend,
|
|
14
14
|
detectModel
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5ZUU23XF.js";
|
|
16
16
|
import "./chunk-26NRL3HX.js";
|
|
17
17
|
import "./chunk-U62ZECSQ.js";
|
|
18
18
|
import "./chunk-AF7XS4OI.js";
|
|
@@ -216,7 +216,7 @@ async function runProviderAdd(mode) {
|
|
|
216
216
|
isActive: makeActive
|
|
217
217
|
});
|
|
218
218
|
if (makeActive) {
|
|
219
|
-
const { setDefaultModelSelection } = await import("./config-
|
|
219
|
+
const { setDefaultModelSelection } = await import("./config-BMXSDOZB.js");
|
|
220
220
|
newConfig = setDefaultModelSelection(newConfig, newConfig.providers[newConfig.providers.length - 1].id, selectedModel);
|
|
221
221
|
}
|
|
222
222
|
await saveGlobalConfig(mode, newConfig);
|
|
@@ -340,4 +340,4 @@ export {
|
|
|
340
340
|
runProviderRemove,
|
|
341
341
|
runProviderUse
|
|
342
342
|
};
|
|
343
|
-
//# sourceMappingURL=provider-
|
|
343
|
+
//# sourceMappingURL=provider-ETVY64A2.js.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JFQEATRC.js";
|
|
4
4
|
import {
|
|
5
5
|
loadConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FUUYYDVG.js";
|
|
7
7
|
import "./chunk-MTX5Y3V3.js";
|
|
8
8
|
import "./chunk-N2XYX4ZA.js";
|
|
9
9
|
import "./chunk-4Z2OZ6NX.js";
|
|
10
10
|
import "./chunk-QY7BMXWT.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-ARFK3RZW.js";
|
|
12
|
+
import "./chunk-L4XDA3V7.js";
|
|
13
13
|
import {
|
|
14
14
|
getActiveProvider,
|
|
15
15
|
getDefaultModel,
|
|
16
16
|
loadGlobalConfig
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-L475ND2Z.js";
|
|
18
|
+
import "./chunk-5ZUU23XF.js";
|
|
19
19
|
import "./chunk-26NRL3HX.js";
|
|
20
20
|
import {
|
|
21
21
|
logger
|
|
@@ -138,7 +138,7 @@ async function runServe(options) {
|
|
|
138
138
|
},
|
|
139
139
|
server: {
|
|
140
140
|
...env.server,
|
|
141
|
-
port: port ??
|
|
141
|
+
port: port ?? env.server.port,
|
|
142
142
|
host: env.server.host ?? globalConfig.server.host ?? "127.0.0.1",
|
|
143
143
|
openBrowser: openBrowser ?? globalConfig.server.openBrowser
|
|
144
144
|
},
|
|
@@ -174,4 +174,4 @@ async function runServe(options) {
|
|
|
174
174
|
export {
|
|
175
175
|
runServe
|
|
176
176
|
};
|
|
177
|
-
//# sourceMappingURL=serve-
|
|
177
|
+
//# sourceMappingURL=serve-EOKIXTWM.js.map
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aN as ToolCall, b as Attachment, J as Diagnostic, at as Session, aF as SessionSummary, a4 as Project, az as SessionMode, aB as SessionPhase, M as Message, D as Criterion, F as CriterionStatus, ap as QueuedMessage, w as ContextState, ar as ServerMessage, aK as StatsIdentity, aQ as ToolResult, ah as Provider, u as Config } from '../protocol-BFFz3WM0.js';
|
|
2
2
|
import { Server } from 'node:http';
|
|
3
3
|
|
|
4
4
|
interface LLMMessage {
|
package/dist/server/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer,
|
|
3
3
|
createServerHandle
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-JFQEATRC.js";
|
|
5
|
+
import "../chunk-FUUYYDVG.js";
|
|
6
6
|
import "../chunk-MTX5Y3V3.js";
|
|
7
7
|
import "../chunk-N2XYX4ZA.js";
|
|
8
8
|
import "../chunk-4Z2OZ6NX.js";
|
|
9
9
|
import "../chunk-QY7BMXWT.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-ARFK3RZW.js";
|
|
11
|
+
import "../chunk-L4XDA3V7.js";
|
|
12
|
+
import "../chunk-5ZUU23XF.js";
|
|
13
13
|
import "../chunk-26NRL3HX.js";
|
|
14
14
|
import "../chunk-U62ZECSQ.js";
|
|
15
15
|
import "../chunk-AF7XS4OI.js";
|
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 AskUserEvent, b as Attachment, C as CallStatsDataPoint, c as ChatDeltaPayload, d as ChatDonePayload, e as ChatErrorPayload, f as ChatFormatRetryPayload, g as ChatMessagePayload, h as ChatMessageUpdatedPayload, i as ChatPathConfirmationPayload, j as ChatProgressPayload, k as ChatSendPayload, l as ChatSummaryPayload, m as ChatThinkingPayload, n as ChatTodoPayload, o as ChatToolCallPayload, p as ChatToolOutputPayload, q as ChatToolPreparingPayload, r as ChatToolResultPayload, s as ClientMessage, t as ClientMessageType, u as Config, v as ContextCompactionEvent, w as ContextState, x as ContextStatePayload, y as ContextWindow, z as CriteriaEditPayload, B as CriteriaUpdatedPayload, D as Criterion, E as CriterionAttempt, F as CriterionStatus, G as CriterionValidation, H as
|
|
1
|
+
import { M as Message, S as SessionStats } from '../protocol-BFFz3WM0.js';
|
|
2
|
+
export { A as AgentEvent, a as AskUserEvent, b as Attachment, C as CallStatsDataPoint, c as ChatDeltaPayload, d as ChatDonePayload, e as ChatErrorPayload, f as ChatFormatRetryPayload, g as ChatMessagePayload, h as ChatMessageUpdatedPayload, i as ChatPathConfirmationPayload, j as ChatProgressPayload, k as ChatSendPayload, l as ChatSummaryPayload, m as ChatThinkingPayload, n as ChatTodoPayload, o as ChatToolCallPayload, p as ChatToolOutputPayload, q as ChatToolPreparingPayload, r as ChatToolResultPayload, s as ClientMessage, t as ClientMessageType, u as Config, v as ContextCompactionEvent, w as ContextState, x as ContextStatePayload, y as ContextWindow, z as CriteriaEditPayload, B as CriteriaUpdatedPayload, D as Criterion, E as CriterionAttempt, F as CriterionStatus, G as CriterionValidation, H as DevServerOutputPayload, I as DevServerStatePayload, J as Diagnostic, K as EditContextEdit, L as EditContextLine, N as EditContextRegion, O as ErrorPayload, P as ExecutionState, Q as FileReadEntry, R as InjectedFile, T as LLMCallStats, U as LlmBackend, V as LspDiagnosticsPayload, W as MessageRole, X as MessageSegment, Y as MessageStats, Z as ModeChangedPayload, _ as ModeSwitchPayload, $ as ModelSessionStats, a0 as PathConfirmPayload, a1 as PathConfirmationReason, a2 as PhaseChangedPayload, a3 as PreparingToolCall, a4 as Project, a5 as ProjectCreatePayload, a6 as ProjectCreateWithDirPayload, a7 as ProjectDeletePayload, a8 as ProjectDeletedPayload, a9 as ProjectListPayload, aa as ProjectLoadPayload, ab as ProjectStatePayload, ac as ProjectUpdatePayload, ad as PromptContext, ae as PromptContextMessage, af as PromptContextTool, ag as PromptRequestOptions, ah as Provider, ai as ProviderActivatePayload, aj as ProviderBackend, ak as ProviderChangedPayload, al as QueueAsapPayload, am as QueueCancelPayload, an as QueueCompletionPayload, ao as QueueStatePayload, ap as QueuedMessage, aq as RecentUserPrompt, ar as ServerMessage, as as ServerMessageType, at as Session, au as SessionCreatePayload, av as SessionDeleteAllPayload, aw as SessionListPayload, ax as SessionLoadPayload, ay as SessionMetadata, az as SessionMode, aA as SessionNameGeneratedPayload, aB as SessionPhase, aC as SessionRunningPayload, aD as SessionSetProviderPayload, aE as SessionStatePayload, aF as SessionSummary, aG as SettingsGetPayload, aH as SettingsSetPayload, aI as SettingsValuePayload, 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-BFFz3WM0.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Session stats computation - aggregates response-level MessageStats from
|
package/dist/shared/index.js
CHANGED
|
@@ -15,12 +15,13 @@ import {
|
|
|
15
15
|
provideAnswer,
|
|
16
16
|
providePathConfirmation,
|
|
17
17
|
requestPathAccess,
|
|
18
|
-
setTodoUpdateCallback
|
|
19
|
-
|
|
18
|
+
setTodoUpdateCallback,
|
|
19
|
+
stepDoneTool
|
|
20
|
+
} from "./chunk-FUUYYDVG.js";
|
|
20
21
|
import "./chunk-MTX5Y3V3.js";
|
|
21
22
|
import "./chunk-N2XYX4ZA.js";
|
|
22
23
|
import "./chunk-4Z2OZ6NX.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-ARFK3RZW.js";
|
|
24
25
|
import "./chunk-26NRL3HX.js";
|
|
25
26
|
import "./chunk-U62ZECSQ.js";
|
|
26
27
|
import "./chunk-AF7XS4OI.js";
|
|
@@ -41,6 +42,7 @@ export {
|
|
|
41
42
|
provideAnswer,
|
|
42
43
|
providePathConfirmation,
|
|
43
44
|
requestPathAccess,
|
|
44
|
-
setTodoUpdateCallback
|
|
45
|
+
setTodoUpdateCallback,
|
|
46
|
+
stepDoneTool
|
|
45
47
|
};
|
|
46
|
-
//# sourceMappingURL=tools-
|
|
48
|
+
//# sourceMappingURL=tools-QMIIDJTV.js.map
|