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.
Files changed (62) hide show
  1. package/dist/agent-defaults/builder.agent.md +38 -0
  2. package/dist/agent-defaults/code-reviewer.agent.md +21 -0
  3. package/dist/agent-defaults/debugger.agent.md +21 -0
  4. package/dist/agent-defaults/planner.agent.md +35 -0
  5. package/dist/agent-defaults/test-generator.agent.md +22 -0
  6. package/dist/agent-defaults/verifier.agent.md +41 -0
  7. package/dist/{chunk-FF6Z2MC3.js → chunk-5ZUU23XF.js} +18 -1
  8. package/dist/{chunk-IVHCPQO2.js → chunk-ARFK3RZW.js} +1 -1
  9. package/dist/{chunk-IKAWIOXM.js → chunk-FUUYYDVG.js} +387 -73
  10. package/dist/{chunk-YQ36AK5A.js → chunk-JFQEATRC.js} +623 -327
  11. package/dist/{chunk-43SWNGYW.js → chunk-L475ND2Z.js} +9 -9
  12. package/dist/{chunk-6MOGZMGX.js → chunk-L4XDA3V7.js} +2 -2
  13. package/dist/{chunk-EI46G5WO.js → chunk-MKAHOQBI.js} +10 -10
  14. package/dist/cli/dev.js +1 -1
  15. package/dist/cli/index.js +1 -1
  16. package/dist/{config-6GJ4SVFH.js → config-BMXSDOZB.js} +3 -3
  17. package/dist/{init-UVZDOHMX.js → init-PLRTRSDC.js} +6 -6
  18. package/dist/{protocol-BJsm88OW.d.ts → protocol-BFFz3WM0.d.ts} +14 -3
  19. package/dist/{provider-LCE6WZA6.js → provider-ETVY64A2.js} +5 -5
  20. package/dist/{serve-27DZK34K.js → serve-EOKIXTWM.js} +8 -8
  21. package/dist/server/index.d.ts +1 -1
  22. package/dist/server/index.js +5 -5
  23. package/dist/shared/index.d.ts +2 -2
  24. package/dist/shared/index.js +1 -1
  25. package/dist/{tools-R4YQAYUF.js → tools-QMIIDJTV.js} +7 -5
  26. package/dist/web/assets/index-CAD7Iv_d.js +122 -0
  27. package/dist/web/assets/{index-BSlSWZrM.css → index-DHmZmhnR.css} +1 -1
  28. package/dist/web/index.html +2 -2
  29. package/dist/workflow-defaults/default.workflow.json +45 -0
  30. package/package.json +34 -16
  31. package/dist/branch.api-WDHKZJS6.js.map +0 -1
  32. package/dist/chunk-26NRL3HX.js.map +0 -1
  33. package/dist/chunk-43SWNGYW.js.map +0 -1
  34. package/dist/chunk-4Z2OZ6NX.js.map +0 -1
  35. package/dist/chunk-6MOGZMGX.js.map +0 -1
  36. package/dist/chunk-AF7XS4OI.js.map +0 -1
  37. package/dist/chunk-EI46G5WO.js.map +0 -1
  38. package/dist/chunk-FF6Z2MC3.js.map +0 -1
  39. package/dist/chunk-IKAWIOXM.js.map +0 -1
  40. package/dist/chunk-IVHCPQO2.js.map +0 -1
  41. package/dist/chunk-MTX5Y3V3.js.map +0 -1
  42. package/dist/chunk-N2XYX4ZA.js.map +0 -1
  43. package/dist/chunk-QY7BMXWT.js.map +0 -1
  44. package/dist/chunk-U62ZECSQ.js.map +0 -1
  45. package/dist/chunk-YQ36AK5A.js.map +0 -1
  46. package/dist/cli/dev.js.map +0 -1
  47. package/dist/cli/index.js.map +0 -1
  48. package/dist/config-6GJ4SVFH.js.map +0 -1
  49. package/dist/init-UVZDOHMX.js.map +0 -1
  50. package/dist/paths-4BPXWB2W.js.map +0 -1
  51. package/dist/project-creator-CWPKRIKI.js.map +0 -1
  52. package/dist/provider-LCE6WZA6.js.map +0 -1
  53. package/dist/serve-27DZK34K.js.map +0 -1
  54. package/dist/server/index.js.map +0 -1
  55. package/dist/settings-D5O3TMLD.js.map +0 -1
  56. package/dist/shared/index.js.map +0 -1
  57. package/dist/tools-R4YQAYUF.js.map +0 -1
  58. package/dist/web/assets/index-BMNDCsbJ.js +0 -120
  59. /package/dist/command-defaults/{defaults/commit-push.command.md → commit-push.command.md} +0 -0
  60. /package/dist/command-defaults/{defaults/init.command.md → init.command.md} +0 -0
  61. /package/dist/command-defaults/{defaults/test-ui.command.md → test-ui.command.md} +0 -0
  62. /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-FF6Z2MC3.js";
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-43SWNGYW.js.map
273
+ //# sourceMappingURL=chunk-L475ND2Z.js.map
@@ -3,7 +3,7 @@ import {
3
3
  createLLMClient,
4
4
  detectBackend,
5
5
  detectModel
6
- } from "./chunk-FF6Z2MC3.js";
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-6MOGZMGX.js.map
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-6GJ4SVFH.js");
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-UVZDOHMX.js");
72
- const { loadGlobalConfig, getActiveProvider } = await import("./config-6GJ4SVFH.js");
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-LCE6WZA6.js");
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-6GJ4SVFH.js");
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-6GJ4SVFH.js");
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-6GJ4SVFH.js");
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-UVZDOHMX.js");
121
+ const { runInitWithSelect } = await import("./init-PLRTRSDC.js");
122
122
  await runInitWithSelect(mode);
123
123
  }
124
124
  }
125
- const { runServe } = await import("./serve-27DZK34K.js");
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-EI46G5WO.js.map
138
+ //# sourceMappingURL=chunk-MKAHOQBI.js.map
package/dist/cli/dev.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runCli
4
- } from "../chunk-EI46G5WO.js";
4
+ } from "../chunk-MKAHOQBI.js";
5
5
  import {
6
6
  logger
7
7
  } from "../chunk-U62ZECSQ.js";
package/dist/cli/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runCli
4
- } from "../chunk-EI46G5WO.js";
4
+ } from "../chunk-MKAHOQBI.js";
5
5
  import {
6
6
  logger
7
7
  } from "../chunk-U62ZECSQ.js";
@@ -11,8 +11,8 @@ import {
11
11
  saveGlobalConfig,
12
12
  setDefaultModelSelection,
13
13
  trySmartDefaults
14
- } from "./chunk-43SWNGYW.js";
15
- import "./chunk-FF6Z2MC3.js";
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-6GJ4SVFH.js.map
33
+ //# sourceMappingURL=config-BMXSDOZB.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  addProvider,
3
3
  saveGlobalConfig
4
- } from "./chunk-43SWNGYW.js";
4
+ } from "./chunk-L475ND2Z.js";
5
5
  import {
6
6
  detectBackend,
7
7
  detectModel
8
- } from "./chunk-FF6Z2MC3.js";
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-6GJ4SVFH.js");
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-6GJ4SVFH.js");
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-6GJ4SVFH.js");
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-UVZDOHMX.js.map
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 PathConfirmationReason 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 Diagnostic as H, type EditContextEdit as I, type EditContextLine as J, type EditContextRegion as K, type ErrorPayload as L, type Message as M, type ExecutionState as N, type FileReadEntry as O, type InjectedFile as P, type LLMCallStats as Q, type LlmBackend as R, type SessionStats as S, type LspDiagnosticsPayload as T, type MessageRole as U, type MessageSegment as V, type MessageStats as W, type ModeChangedPayload as X, type ModeSwitchPayload as Y, type ModelSessionStats as Z, type PathConfirmPayload as _, type AskUserEvent as a, type PhaseChangedPayload as a0, type PreparingToolCall as a1, type Project as a2, type ProjectCreatePayload as a3, type ProjectCreateWithDirPayload as a4, type ProjectDeletePayload as a5, type ProjectDeletedPayload as a6, type ProjectListPayload as a7, type ProjectLoadPayload as a8, type ProjectStatePayload as a9, type SessionRunningPayload as aA, type SessionSetProviderPayload as aB, type SessionStatePayload as aC, type SessionSummary as aD, type SettingsGetPayload as aE, type SettingsSetPayload as aF, type SettingsValuePayload as aG, type StatsDataPoint as aH, type StatsIdentity as aI, type TaskCompletedPayload as aJ, type Todo as aK, type ToolCall as aL, type ToolMode as aM, type ToolName as aN, type ToolResult as aO, type ValidationResult as aP, createClientMessage as aQ, createServerMessage as aR, isClientMessage as aS, isServerMessage as aT, type ProjectUpdatePayload as aa, type PromptContext as ab, type PromptContextMessage as ac, type PromptContextTool as ad, type PromptRequestOptions as ae, type Provider as af, type ProviderActivatePayload as ag, type ProviderBackend as ah, type ProviderChangedPayload as ai, type QueueAsapPayload as aj, type QueueCancelPayload as ak, type QueueCompletionPayload as al, type QueueStatePayload as am, type QueuedMessage as an, type RecentUserPrompt as ao, type ServerMessage as ap, type ServerMessageType as aq, type Session as ar, type SessionCreatePayload as as, type SessionDeleteAllPayload as at, type SessionListPayload as au, type SessionLoadPayload as av, type SessionMetadata as aw, type SessionMode as ax, type SessionNameGeneratedPayload as ay, type SessionPhase 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 };
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-6MOGZMGX.js";
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-43SWNGYW.js";
11
+ } from "./chunk-L475ND2Z.js";
12
12
  import {
13
13
  detectBackend,
14
14
  detectModel
15
- } from "./chunk-FF6Z2MC3.js";
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-6GJ4SVFH.js");
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-LCE6WZA6.js.map
343
+ //# sourceMappingURL=provider-ETVY64A2.js.map
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  createServer
3
- } from "./chunk-YQ36AK5A.js";
3
+ } from "./chunk-JFQEATRC.js";
4
4
  import {
5
5
  loadConfig
6
- } from "./chunk-IKAWIOXM.js";
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-IVHCPQO2.js";
12
- import "./chunk-6MOGZMGX.js";
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-43SWNGYW.js";
18
- import "./chunk-FF6Z2MC3.js";
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 ?? (mode === "development" ? 10469 : env.server.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-27DZK34K.js.map
177
+ //# sourceMappingURL=serve-EOKIXTWM.js.map
@@ -1,4 +1,4 @@
1
- import { aL as ToolCall, b as Attachment, H as Diagnostic, ar as Session, aD as SessionSummary, a2 as Project, ax as SessionMode, az as SessionPhase, M as Message, D as Criterion, F as CriterionStatus, an as QueuedMessage, w as ContextState, ap as ServerMessage, aI as StatsIdentity, aO as ToolResult, af as Provider, u as Config } from '../protocol-BJsm88OW.js';
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 {
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  createServer,
3
3
  createServerHandle
4
- } from "../chunk-YQ36AK5A.js";
5
- import "../chunk-IKAWIOXM.js";
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-IVHCPQO2.js";
11
- import "../chunk-6MOGZMGX.js";
12
- import "../chunk-FF6Z2MC3.js";
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";
@@ -1,5 +1,5 @@
1
- import { M as Message, S as SessionStats } from '../protocol-BJsm88OW.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 Diagnostic, I as EditContextEdit, J as EditContextLine, K as EditContextRegion, L as ErrorPayload, N as ExecutionState, O as FileReadEntry, P as InjectedFile, Q as LLMCallStats, R as LlmBackend, T as LspDiagnosticsPayload, U as MessageRole, V as MessageSegment, W as MessageStats, X as ModeChangedPayload, Y as ModeSwitchPayload, Z as ModelSessionStats, _ as PathConfirmPayload, $ as PathConfirmationReason, a0 as PhaseChangedPayload, a1 as PreparingToolCall, a2 as Project, a3 as ProjectCreatePayload, a4 as ProjectCreateWithDirPayload, a5 as ProjectDeletePayload, a6 as ProjectDeletedPayload, a7 as ProjectListPayload, a8 as ProjectLoadPayload, a9 as ProjectStatePayload, aa as ProjectUpdatePayload, ab as PromptContext, ac as PromptContextMessage, ad as PromptContextTool, ae as PromptRequestOptions, af as Provider, ag as ProviderActivatePayload, ah as ProviderBackend, ai as ProviderChangedPayload, aj as QueueAsapPayload, ak as QueueCancelPayload, al as QueueCompletionPayload, am as QueueStatePayload, an as QueuedMessage, ao as RecentUserPrompt, ap as ServerMessage, aq as ServerMessageType, ar as Session, as as SessionCreatePayload, at as SessionDeleteAllPayload, au as SessionListPayload, av as SessionLoadPayload, aw as SessionMetadata, ax as SessionMode, ay as SessionNameGeneratedPayload, az as SessionPhase, aA as SessionRunningPayload, aB as SessionSetProviderPayload, aC as SessionStatePayload, aD as SessionSummary, aE as SettingsGetPayload, aF as SettingsSetPayload, aG as SettingsValuePayload, aH as StatsDataPoint, aI as StatsIdentity, aJ as TaskCompletedPayload, aK as Todo, aL as ToolCall, aM as ToolMode, aN as ToolName, aO as ToolResult, aP as ValidationResult, aQ as createClientMessage, aR as createServerMessage, aS as isClientMessage, aT as isServerMessage } from '../protocol-BJsm88OW.js';
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
@@ -6,7 +6,7 @@ import {
6
6
  createServerMessage,
7
7
  isClientMessage,
8
8
  isServerMessage
9
- } from "../chunk-IVHCPQO2.js";
9
+ } from "../chunk-ARFK3RZW.js";
10
10
  export {
11
11
  computeSessionStats,
12
12
  createClientMessage,
@@ -15,12 +15,13 @@ import {
15
15
  provideAnswer,
16
16
  providePathConfirmation,
17
17
  requestPathAccess,
18
- setTodoUpdateCallback
19
- } from "./chunk-IKAWIOXM.js";
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-IVHCPQO2.js";
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-R4YQAYUF.js.map
48
+ //# sourceMappingURL=tools-QMIIDJTV.js.map