@wrongstack/webui 1.0.0 → 1.0.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/assets/{AgentRosterView-B_J6SvVF.js → AgentRosterView-BXURTwLP.js} +1 -1
- package/dist/assets/{AnalyticsDashboard-BgZiiiDb.js → AnalyticsDashboard-yAGcObTd.js} +1 -1
- package/dist/assets/{AudienceMemoryPanel-CPuksIMN.js → AudienceMemoryPanel-BwtB_jYJ.js} +1 -1
- package/dist/assets/{ChangesView-CmZeNwbw.js → ChangesView-BgC27G9n.js} +1 -1
- package/dist/assets/{ChimeraReviewsView-CpfSkgQ2.js → ChimeraReviewsView-BZ3kmsEA.js} +1 -1
- package/dist/assets/{ChronicleDashboard-B6lhZGjz.js → ChronicleDashboard-DVor6J-y.js} +1 -1
- package/dist/assets/{CodeEditor-Daz1yqjF.js → CodeEditor-Dk2WJQks.js} +1 -1
- package/dist/assets/{CodeMap-D-H9FNUJ.js → CodeMap-CjWRQ37U.js} +1 -1
- package/dist/assets/{ConfirmModal-CjsZbvo3.js → ConfirmModal-C_KAUjBK.js} +1 -1
- package/dist/assets/{CronJobsPanel-DGKW_zwc.js → CronJobsPanel-CGq8lhRJ.js} +1 -1
- package/dist/assets/{DeadCodeScanPanel-Cn5bSfLv.js → DeadCodeScanPanel-CcPRcYm0.js} +1 -1
- package/dist/assets/{DebugDashboard-Uh9QLbEk.js → DebugDashboard-B-aDaDrO.js} +1 -1
- package/dist/assets/{DesignGalleryView-Da1QtI5b.js → DesignGalleryView-Ex3zW5ci.js} +1 -1
- package/dist/assets/{GoalView-BgVxzzzS.js → GoalView-CBDc5nCD.js} +1 -1
- package/dist/assets/{KanbanView-_JvZKFyI.js → KanbanView-azjPGLmM.js} +2 -2
- package/dist/assets/{MailboxDetailView-26bVSSbU.js → MailboxDetailView-BXW9zqle.js} +1 -1
- package/dist/assets/{MemoryDrawer-C5sEdVvj.js → MemoryDrawer-CyN_6CRo.js} +1 -1
- package/dist/assets/{MemoryManager-BqWzNt8w.js → MemoryManager-BLu0rLEm.js} +1 -1
- package/dist/assets/{ModelPicker-DqRzzv5J.js → ModelPicker-CXQR8UbH.js} +1 -1
- package/dist/assets/{ProcessMonitor-ygFLD5zk.js → ProcessMonitor-CBIQkbLx.js} +1 -1
- package/dist/assets/{PromptJournalView-B65KxlYi.js → PromptJournalView-C6O40uTv.js} +1 -1
- package/dist/assets/{QueuePanel-CJlIV0pX.js → QueuePanel-CutrvgTH.js} +1 -1
- package/dist/assets/{RefreshDebugView-CNovrSAn.js → RefreshDebugView-DDFD26EI.js} +1 -1
- package/dist/assets/{RequirementIntakeView-BnrQSVE_.js → RequirementIntakeView-BpFyFOlB.js} +1 -1
- package/dist/assets/{SageTabs-CJqOqiY7.js → SageTabs-Cx299O-q.js} +2 -2
- package/dist/assets/{SddFlowGraph-CNOyn5N9.js → SddFlowGraph-CJjawf9r.js} +1 -1
- package/dist/assets/{SddHub-mFjsa_Zl.js → SddHub-CmSlkvkM.js} +1 -1
- package/dist/assets/{SessionInspectView-MEmxIEzB.js → SessionInspectView-CtrlRlJu.js} +1 -1
- package/dist/assets/{SessionList-DmcQJmzw.js → SessionList-BWoK6Ro5.js} +1 -1
- package/dist/assets/{SessionsDashboard-BCYViJlx.js → SessionsDashboard-7C6Fj9pK.js} +1 -1
- package/dist/assets/{SetupScreen-BwnSJt7v.js → SetupScreen-IzaqHJ_O.js} +1 -1
- package/dist/assets/{SkillDetailView-ebz2dRUQ.js → SkillDetailView-C5nOcysX.js} +1 -1
- package/dist/assets/{TechStackView-DESDpUDA.js → TechStackView-DkNjeYPK.js} +1 -1
- package/dist/assets/{TerminalPanel-BiWnldbB.js → TerminalPanel-CTr-KAnH.js} +1 -1
- package/dist/assets/{chat-store-BcfvHUUj.js → chat-store-BbBGSliF.js} +1 -1
- package/dist/assets/i18n-tRUjoMoU.js +2 -0
- package/dist/assets/{index-TDhvFXb0.js → index-BnpuNJ9u.js} +7 -7
- package/dist/assets/{roster-ws-n_N7K9tX.js → roster-ws-B4xVrXos.js} +1 -1
- package/dist/assets/{stores-Cfei1ViB.js → stores-B7GcARdp.js} +1 -1
- package/dist/assets/{useWebSocket-AYEcpb1U.js → useWebSocket-L5s7ggJm.js} +1 -1
- package/dist/assets/{ws-client-C_IqS0t4.js → ws-client-BR51gfnV.js} +2 -2
- package/dist/index.html +8 -8
- package/dist/index.js +23 -20
- package/package.json +9 -9
- package/dist/assets/i18n-DBqM1FUM.js +0 -2
package/dist/index.js
CHANGED
|
@@ -136,14 +136,14 @@ var init_local_prefs = __esm({
|
|
|
136
136
|
// are synced from the server's prefs snapshot on connect (handlePrefsUpdated),
|
|
137
137
|
// so this only seeds fresh browsers before the first connect.
|
|
138
138
|
autonomy: "auto",
|
|
139
|
-
autonomyDelayMs:
|
|
140
|
-
autoProceedMaxIterations:
|
|
139
|
+
autonomyDelayMs: 15e3,
|
|
140
|
+
autoProceedMaxIterations: 0,
|
|
141
141
|
yolo: true,
|
|
142
|
-
maxIterations:
|
|
143
|
-
chime:
|
|
142
|
+
maxIterations: 0,
|
|
143
|
+
chime: true,
|
|
144
144
|
confirmExit: true,
|
|
145
145
|
fleetChatVerbosity: "off",
|
|
146
|
-
nextPrediction:
|
|
146
|
+
nextPrediction: true,
|
|
147
147
|
nextStepsTool: false,
|
|
148
148
|
fallbackModels: [],
|
|
149
149
|
fallbackProfiles: {},
|
|
@@ -165,12 +165,12 @@ var init_local_prefs = __esm({
|
|
|
165
165
|
tokenSavingTier: "auto",
|
|
166
166
|
maxConcurrent: 10,
|
|
167
167
|
titleAnimation: true,
|
|
168
|
-
logLevel: "
|
|
169
|
-
auditLevel: "
|
|
168
|
+
logLevel: "warn",
|
|
169
|
+
auditLevel: "full",
|
|
170
170
|
enhanceEnabled: true,
|
|
171
|
-
enhanceDelayMs:
|
|
171
|
+
enhanceDelayMs: 15e3,
|
|
172
172
|
enhanceCountdownMs: 3e3,
|
|
173
|
-
enhanceLanguage: "
|
|
173
|
+
enhanceLanguage: "english",
|
|
174
174
|
refinerProvider: "",
|
|
175
175
|
refinerModel: "",
|
|
176
176
|
refinerFallbackProfile: "",
|
|
@@ -180,17 +180,17 @@ var init_local_prefs = __esm({
|
|
|
180
180
|
showThinkingLogs: true,
|
|
181
181
|
groupToolCalls: true,
|
|
182
182
|
autoCollapseInput: false,
|
|
183
|
-
showModelReasoning:
|
|
183
|
+
showModelReasoning: false,
|
|
184
184
|
showAgentSwarmPanel: "bottom",
|
|
185
185
|
allowOutsideProjectRoot: true,
|
|
186
186
|
reasoningMode: "auto",
|
|
187
|
-
reasoningEffort: "
|
|
187
|
+
reasoningEffort: "medium",
|
|
188
188
|
reasoningPreserve: false,
|
|
189
189
|
cacheTtl: "default",
|
|
190
190
|
breakerEnabled: false,
|
|
191
191
|
breakerAutoKillResetMs: 6e4,
|
|
192
192
|
fsAccess: "unrestricted",
|
|
193
|
-
debugStream:
|
|
193
|
+
debugStream: true,
|
|
194
194
|
hqEnabled: false,
|
|
195
195
|
hqUrl: "",
|
|
196
196
|
hqToken: "",
|
|
@@ -414,10 +414,10 @@ var init_local_prefs = __esm({
|
|
|
414
414
|
}
|
|
415
415
|
if (p["auditLevel"] === "verbose") p.auditLevel = "full";
|
|
416
416
|
if (!["minimal", "standard", "full"].includes(p.auditLevel)) {
|
|
417
|
-
p.auditLevel = "
|
|
417
|
+
p.auditLevel = "full";
|
|
418
418
|
}
|
|
419
419
|
if (typeof p.autoProceedMaxIterations !== "number") {
|
|
420
|
-
p.autoProceedMaxIterations =
|
|
420
|
+
p.autoProceedMaxIterations = 0;
|
|
421
421
|
}
|
|
422
422
|
if (!p.fallbackProfiles || typeof p.fallbackProfiles !== "object" || Array.isArray(p.fallbackProfiles)) {
|
|
423
423
|
p.fallbackProfiles = {};
|
|
@@ -40416,7 +40416,7 @@ var init_fleet_store = __esm({
|
|
|
40416
40416
|
const agents = new Map(state.agents);
|
|
40417
40417
|
const agentTranscripts = new Map(state.agentTranscripts);
|
|
40418
40418
|
for (const s of sessions) {
|
|
40419
|
-
if (!s
|
|
40419
|
+
if (!s?.subagentId || s.subagentId === "leader") continue;
|
|
40420
40420
|
const id = s.subagentId;
|
|
40421
40421
|
const name = s.agentName?.trim() || id;
|
|
40422
40422
|
const existingAgent = agents.get(id);
|
|
@@ -40653,7 +40653,7 @@ var init_fleet_store = __esm({
|
|
|
40653
40653
|
const taskText = e.description || e.taskId;
|
|
40654
40654
|
const existing = agentTranscripts.get(e.subagentId) ?? [];
|
|
40655
40655
|
const lastEntry = existing[existing.length - 1];
|
|
40656
|
-
if (!lastEntry
|
|
40656
|
+
if (!lastEntry?.content.includes(taskText)) {
|
|
40657
40657
|
agentTranscripts.set(
|
|
40658
40658
|
e.subagentId,
|
|
40659
40659
|
appendTranscriptEntry(existing, {
|
|
@@ -78367,7 +78367,10 @@ function formatDuration4(start, end) {
|
|
|
78367
78367
|
if (Number.isNaN(ms) || ms < 0) return "";
|
|
78368
78368
|
if (ms < 1e3) return `${ms}ms`;
|
|
78369
78369
|
if (ms < 6e4) return `${Math.round(ms / 1e3)}s`;
|
|
78370
|
-
|
|
78370
|
+
const m = Math.floor(ms / 6e4);
|
|
78371
|
+
const s = Math.round(ms % 6e4 / 1e3);
|
|
78372
|
+
if (s === 60) return `${m + 1}m 0s`;
|
|
78373
|
+
return `${m}m ${s}s`;
|
|
78371
78374
|
}
|
|
78372
78375
|
function VerdictBadge({ verdict }) {
|
|
78373
78376
|
const { t } = useTranslation();
|
|
@@ -123167,7 +123170,7 @@ function useSpeechRecognition({ onTranscript }) {
|
|
|
123167
123170
|
let finalTranscript = "";
|
|
123168
123171
|
for (let i = event.resultIndex; i < event.results.length; ++i) {
|
|
123169
123172
|
const item = event.results[i];
|
|
123170
|
-
if (item
|
|
123173
|
+
if (item?.isFinal && item[0]) {
|
|
123171
123174
|
finalTranscript += item[0].transcript;
|
|
123172
123175
|
}
|
|
123173
123176
|
}
|
|
@@ -125583,7 +125586,7 @@ init_ws_client();
|
|
|
125583
125586
|
init_stores();
|
|
125584
125587
|
init_local_prefs();
|
|
125585
125588
|
import { jsx as jsx262, jsxs as jsxs250 } from "react/jsx-runtime";
|
|
125586
|
-
var
|
|
125589
|
+
var BUG_HUNTER_SLUG = "proof-driven-bug-hunter";
|
|
125587
125590
|
function directoryPaths(tree) {
|
|
125588
125591
|
const paths = [];
|
|
125589
125592
|
const visit = (nodes) => {
|
|
@@ -125649,7 +125652,7 @@ function WelcomeScreen() {
|
|
|
125649
125652
|
setBugHuntState("loading");
|
|
125650
125653
|
launchBuiltinRound({
|
|
125651
125654
|
client: client2,
|
|
125652
|
-
slug:
|
|
125655
|
+
slug: BUG_HUNTER_SLUG,
|
|
125653
125656
|
requireSoloSession: true,
|
|
125654
125657
|
subagentsAllowed,
|
|
125655
125658
|
sessionId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/webui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Browser-based WebUI for WrongStack — React + Vite frontend. The WebSocket backend lives in the separate @wrongstack/webui-server package (extracted in PR #018b to remove the CLI -> @wrongstack/webui/server cross-package edge).",
|
|
6
6
|
"keywords": [
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
"@radix-ui/react-tabs": "^1.1.21",
|
|
58
58
|
"@tanstack/react-virtual": "^3.14.10",
|
|
59
59
|
"@uiw/react-textarea-code-editor": "^3.1.1",
|
|
60
|
-
"@wrongstack/core": "1.0.
|
|
61
|
-
"@wrongstack/kanban": "1.0.
|
|
62
|
-
"@wrongstack/plugins": "1.0.
|
|
63
|
-
"@wrongstack/providers": "1.0.
|
|
64
|
-
"@wrongstack/tools": "1.0.
|
|
65
|
-
"@wrongstack/webui-protocol": "1.0.
|
|
60
|
+
"@wrongstack/core": "1.0.1",
|
|
61
|
+
"@wrongstack/kanban": "1.0.1",
|
|
62
|
+
"@wrongstack/plugins": "1.0.1",
|
|
63
|
+
"@wrongstack/providers": "1.0.1",
|
|
64
|
+
"@wrongstack/tools": "1.0.1",
|
|
65
|
+
"@wrongstack/webui-protocol": "1.0.1",
|
|
66
66
|
"@xterm/addon-fit": "^0.11.0",
|
|
67
67
|
"@xterm/xterm": "^6.0.0",
|
|
68
68
|
"@xyflow/react": "^12.11.3",
|
|
@@ -98,8 +98,8 @@
|
|
|
98
98
|
"@types/ws": "^8.18.1",
|
|
99
99
|
"@vitejs/plugin-react": "^6.1.0",
|
|
100
100
|
"@vitest/coverage-v8": "^4.1.11",
|
|
101
|
-
"@wrongstack/sdd": "1.0.
|
|
102
|
-
"@wrongstack/webui-server": "1.0.
|
|
101
|
+
"@wrongstack/sdd": "1.0.1",
|
|
102
|
+
"@wrongstack/webui-server": "1.0.1",
|
|
103
103
|
"jsdom": "^30.0.1",
|
|
104
104
|
"tailwindcss": "^4.3.3",
|
|
105
105
|
"typescript": "^7.0.2",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chat-BITJe8-v.js","assets/rolldown-runtime-hePW80VL.js","assets/commandPalette-BovBiPec.js","assets/common-BBHmIHQW.js","assets/setup-qooXjj4V.js","assets/toasts-DZ6HdKgG.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{Ia as e,La as t,Ma as n,Ra as r,ja as i}from"./vendor-BshlG0z-.js";import{t as a}from"./chat-BITJe8-v.js";import{t as o}from"./commandPalette-BovBiPec.js";import{t as s}from"./common-BBHmIHQW.js";import{t as c}from"./setup-qooXjj4V.js";import{t as l}from"./toasts-DZ6HdKgG.js";import{t as u}from"./vite-preload-Czpn1I53.js";var d=(e,t,n)=>{let r=t.lastIndexOf(`?`),i=e[r===-1||r<t.lastIndexOf(`/`)?t:t.slice(0,r)];return i?typeof i==`function`?i():Promise.resolve(i):new Promise((e,r)=>{(typeof queueMicrotask==`function`?queueMicrotask:setTimeout)(r.bind(null,Error(`Unknown variable dynamic import: `+t+(t.split(`/`).length===n?``:`. Note that variables only represent file names one level deep.`))))})};function f(e){return e instanceof Error?e.message:String(e)}var p=[`en`,`tr`,`de`,`fr`,`it`,`es`,`pt-BR`],m=[{code:`en`,name:`English`},{code:`tr`,name:`Türkçe`},{code:`de`,name:`Deutsch`},{code:`fr`,name:`Français`},{code:`it`,name:`Italiano`},{code:`es`,name:`Español`},{code:`pt-BR`,name:`Português (Brasil)`}],h=new Set(p);function g(){return typeof navigator>`u`||!navigator.language?`en`:v(navigator.language)}function _(e){return!e||typeof e!=`string`?g():v(e)}function v(e){let t=e.trim().toLowerCase();if(!t)return`en`;if(h.has(t))return t;let n=t.split(`-`)[0];return n&&h.has(n)?n:n===`pt`?`pt-BR`:`en`}var y=[`subagentsAllowed`,`subagentsPolicyLocked`,`autonomy`,`autonomyDelayMs`,`autoProceedMaxIterations`,`yolo`,`maxIterations`,`contextStrategy`,`contextMode`,`contextAutoCompact`,`tokenSavingTier`,`systemPromptVariant`,`reasoningMode`,`reasoningEffort`,`reasoningPreserve`,`nextPrediction`,`nextStepsTool`],b=new Set(y);function x(e,t){let n=w.getState();if(!e||e===n.activeSessionId)return n[t];let r=n.bySession[e]?.[t];if(r!==void 0)return r;let i=n.sessionDefaults[t];return i===void 0?n[t]:i}function S(e){let t={},n={};for(let[r,i]of Object.entries(e))b.has(r)&&typeof i!=`function`?t[r]=i:n[r]=i;return{scoped:t,shared:n}}var C={subagentsAllowed:!0,subagentsPolicyLocked:!1,autonomy:`auto`,autonomyDelayMs:45e3,autoProceedMaxIterations:50,yolo:!0,maxIterations:500,chime:!1,confirmExit:!0,fleetChatVerbosity:`off`,nextPrediction:!1,nextStepsTool:!1,fallbackModels:[],fallbackProfiles:{},favoriteModels:[],favoriteModelsOnly:!1,modelMatrix:{},modelTiers:{},fallbackAuto:!0,modelAvailabilitySchedule:[],featureMcp:!0,featurePlugins:!0,featureMemory:!0,featureSkills:!0,featureModelsRegistry:!0,indexOnStart:!0,contextAutoCompact:!0,contextStrategy:`hybrid`,contextMode:`balanced`,tokenSavingTier:`auto`,maxConcurrent:10,titleAnimation:!0,logLevel:`info`,auditLevel:`standard`,enhanceEnabled:!0,enhanceDelayMs:6e4,enhanceCountdownMs:3e3,enhanceLanguage:`original`,refinerProvider:``,refinerModel:``,refinerFallbackProfile:``,thinkingWord:`thinking`,statuslineMode:`minimum`,animationStyle:`rainbow`,showThinkingLogs:!0,groupToolCalls:!0,autoCollapseInput:!1,showModelReasoning:!0,showAgentSwarmPanel:`bottom`,allowOutsideProjectRoot:!0,reasoningMode:`auto`,reasoningEffort:`high`,reasoningPreserve:!1,cacheTtl:`default`,breakerEnabled:!1,breakerAutoKillResetMs:6e4,fsAccess:`unrestricted`,debugStream:!1,hqEnabled:!1,hqUrl:``,hqToken:``,hqRawContent:!1,tgConfigured:!1,tgSessionEnd:!1,tgDelegate:!0,tgLongToolMs:3e4,uiLocale:g(),chimeraAutoFix:`off`,readSymbols:!1,showSageMemoryInject:!1,sageMemoryInjectThreshold:.85,preRefineSeconds:3,multiDiffSummaryThreshold:5,chimeraEnabled:!0,chimeraProvider:``,chimeraModel:``,chimeraMaxFiles:15,autoReviewEnabled:!1,autoReviewProvider:``,autoReviewModel:``,autoReviewFallbackProfile:``,autoReviewModelSelection:`round-robin`,autoReviewFallbackModels:[],autoReviewDebounceMs:15e3,autoReviewMaxFilesPerBatch:15,autoReviewMaxConcurrentReviews:2,autoReviewCascadeOn:`off`,pluginsEnabled:{},wrongProxyEnabled:!1,wrongProxyUrl:`http://localhost:3444`,keyboardShortcuts:!1,bySession:{},sessionDefaults:{},activeSessionId:null},w=n()(i(e=>({...C,set:t=>e(e=>{let{scoped:n,shared:r}=S(t);if(Object.keys(n).length===0)return{...r};let i=e.activeSessionId;return{...r,...n,sessionDefaults:{...e.sessionDefaults,...n},...i?{bySession:{...e.bySession,[i]:{...e.bySession[i]??{},...n}}}:{}}}),bindSession:t=>e(e=>{if(e.activeSessionId===t)return{};let n={...e.bySession};if(e.activeSessionId){let t={};for(let n of y)t[n]=e[n];n[e.activeSessionId]={...n[e.activeSessionId]??{},...t}}return{...t?{...e.sessionDefaults,...n[t]??{}}:e.sessionDefaults,bySession:n,activeSessionId:t}}),applyRemote:(t,n)=>e(e=>{let{scoped:r,shared:i}=S(t);if(!n||n===e.activeSessionId){let t=n??e.activeSessionId;return{...i,...r,...t&&Object.keys(r).length>0?{bySession:{...e.bySession,[t]:{...e.bySession[t]??{},...r}}}:{}}}return Object.keys(r).length===0?{...i}:{...i,bySession:{...e.bySession,[n]:{...e.bySession[n]??{},...r}}}}),forgetSession:t=>e(e=>{let n=t in e.bySession,r=e.activeSessionId===t;if(!n&&!r)return{};let i={...e.bySession};return delete i[t],{bySession:i,...r?{activeSessionId:null}:{}}}),reset:()=>e(C)}),{name:`wrongstack-local-prefs`,version:17,migrate:(e,t)=>{let n=e??{};return t<12&&n.autoReviewDebounceMs===5e3&&(n.autoReviewDebounceMs=15e3),typeof n.fleetChatVerbosity!=`string`&&(n.fleetChatVerbosity=n.streamFleet===!0?`full`:(n.streamFleet,`off`),delete n.streamFleet),n.fleetChatVerbosity!==`off`&&n.fleetChatVerbosity!==`full`&&(n.fleetChatVerbosity=`off`),[`hybrid`,`intelligent`,`selective`].includes(n.contextStrategy)||(n.contextStrategy=`hybrid`),n.auditLevel===`verbose`&&(n.auditLevel=`full`),[`minimal`,`standard`,`full`].includes(n.auditLevel)||(n.auditLevel=`standard`),typeof n.autoProceedMaxIterations!=`number`&&(n.autoProceedMaxIterations=50),(!n.fallbackProfiles||typeof n.fallbackProfiles!=`object`||Array.isArray(n.fallbackProfiles))&&(n.fallbackProfiles={}),Array.isArray(n.favoriteModels)||(n.favoriteModels=[]),typeof n.favoriteModelsOnly!=`boolean`&&(n.favoriteModelsOnly=!1),Array.isArray(n.modelAvailabilitySchedule)||(n.modelAvailabilitySchedule=[]),(!n.modelMatrix||typeof n.modelMatrix!=`object`||Array.isArray(n.modelMatrix))&&(n.modelMatrix={}),(typeof n.uiLocale!=`string`||!n.uiLocale)&&(n.uiLocale=g()),typeof n.breakerEnabled!=`boolean`&&(n.breakerEnabled=!1),typeof n.breakerAutoKillResetMs!=`number`&&(n.breakerAutoKillResetMs=6e4),n.fsAccess!==`unrestricted`&&n.fsAccess!==`project`&&(n.fsAccess=`unrestricted`),typeof n.debugStream!=`boolean`&&(n.debugStream=!1),typeof n.wrongProxyEnabled!=`boolean`&&(n.wrongProxyEnabled=!1),(typeof n.wrongProxyUrl!=`string`||n.wrongProxyUrl.trim().length===0)&&(n.wrongProxyUrl=`http://localhost:3444`),typeof n.chimeraEnabled!=`boolean`&&(n.chimeraEnabled=!0),typeof n.chimeraProvider!=`string`&&(n.chimeraProvider=``),typeof n.chimeraModel!=`string`&&(n.chimeraModel=``),n.chimeraAutoFix!==`off`&&n.chimeraAutoFix!==`ask`&&n.chimeraAutoFix!==`auto`&&(n.chimeraAutoFix=`off`),(typeof n.chimeraMaxFiles!=`number`||!Number.isFinite(n.chimeraMaxFiles)||n.chimeraMaxFiles<1)&&(n.chimeraMaxFiles=15),typeof n.autoReviewEnabled!=`boolean`&&(n.autoReviewEnabled=!1),typeof n.autoReviewProvider!=`string`&&(n.autoReviewProvider=``),typeof n.autoReviewModel!=`string`&&(n.autoReviewModel=``),typeof n.autoReviewFallbackProfile!=`string`&&(n.autoReviewFallbackProfile=``),n.autoReviewModelSelection!==`round-robin`&&n.autoReviewModelSelection!==`random`&&(n.autoReviewModelSelection=`round-robin`),Array.isArray(n.autoReviewFallbackModels)||(n.autoReviewFallbackModels=[]),(typeof n.autoReviewDebounceMs!=`number`||!Number.isFinite(n.autoReviewDebounceMs)||n.autoReviewDebounceMs<0)&&(n.autoReviewDebounceMs=15e3),(typeof n.autoReviewMaxFilesPerBatch!=`number`||!Number.isFinite(n.autoReviewMaxFilesPerBatch)||n.autoReviewMaxFilesPerBatch<1)&&(n.autoReviewMaxFilesPerBatch=15),(typeof n.autoReviewMaxConcurrentReviews!=`number`||!Number.isFinite(n.autoReviewMaxConcurrentReviews)||n.autoReviewMaxConcurrentReviews<1)&&(n.autoReviewMaxConcurrentReviews=2),n.autoReviewCascadeOn!==`off`&&n.autoReviewCascadeOn!==`critical`&&n.autoReviewCascadeOn!==`high`&&(n.autoReviewCascadeOn=`off`),typeof n.showModelReasoning!=`boolean`&&(n.showModelReasoning=!0),typeof n.autoCollapseInput!=`boolean`&&(n.autoCollapseInput=!1),typeof n.showAgentSwarmPanel==`boolean`?n.showAgentSwarmPanel=n.showAgentSwarmPanel?`bottom`:`off`:(typeof n.showAgentSwarmPanel!=`string`||![`bottom`,`sidebar`,`off`].includes(n.showAgentSwarmPanel))&&(n.showAgentSwarmPanel=`bottom`),typeof n.allowOutsideProjectRoot!=`boolean`&&(n.allowOutsideProjectRoot=!0),typeof n.readSymbols!=`boolean`&&(n.readSymbols=!1),typeof n.showSageMemoryInject!=`boolean`&&(n.showSageMemoryInject=!1),(typeof n.sageMemoryInjectThreshold!=`number`||!Number.isFinite(n.sageMemoryInjectThreshold)||n.sageMemoryInjectThreshold<0||n.sageMemoryInjectThreshold>1)&&(n.sageMemoryInjectThreshold=.85),(typeof n.preRefineSeconds!=`number`||!Number.isFinite(n.preRefineSeconds)||n.preRefineSeconds<0)&&(n.preRefineSeconds=3),(typeof n.bySession!=`object`||n.bySession===null||Array.isArray(n.bySession))&&(n.bySession={}),(typeof n.sessionDefaults!=`object`||n.sessionDefaults===null||Array.isArray(n.sessionDefaults))&&(n.sessionDefaults={}),typeof n.activeSessionId!=`string`&&(n.activeSessionId=null),(typeof n.multiDiffSummaryThreshold!=`number`||!Number.isFinite(n.multiDiffSummaryThreshold)||n.multiDiffSummaryThreshold<0)&&(n.multiDiffSummaryThreshold=5),typeof n.keyboardShortcuts!=`boolean`&&(n.keyboardShortcuts=!1),n},partialize:e=>{let{hqToken:t,...n}=e;return n},merge:(e,t)=>{let{hqToken:n,...r}=e??{};return{...t,...r,hqToken:``}}})),T=[`common`,`activity`,`chat`,`commandPalette`,`settings`,`setup`,`toasts`];function E(){try{return _(w.getState().uiLocale)}catch{return`en`}}r.use(e).use(t((e,t)=>d(Object.assign({"./locales/de/activity.json":()=>u(()=>import(`./activity-FxWZooaS.js`),[]),"./locales/de/chat.json":()=>u(()=>import(`./chat-BHsbpaVt.js`),[]),"./locales/de/commandPalette.json":()=>u(()=>import(`./commandPalette-aaAou3Tl.js`),[]),"./locales/de/common.json":()=>u(()=>import(`./common-C3PzxyXg.js`),[]),"./locales/de/settings.json":()=>u(()=>import(`./settings-B1vpPbTt.js`),[]),"./locales/de/setup.json":()=>u(()=>import(`./setup-B9oerXTs.js`),[]),"./locales/de/toasts.json":()=>u(()=>import(`./toasts-BsmyGP95.js`),[]),"./locales/en/activity.json":()=>u(()=>import(`./activity-CXLMCm4J.js`),[]),"./locales/en/chat.json":()=>u(()=>import(`./chat-BITJe8-v.js`).then(e=>e.n),__vite__mapDeps([0,1])),"./locales/en/commandPalette.json":()=>u(()=>import(`./commandPalette-BovBiPec.js`).then(e=>e.n),__vite__mapDeps([2,1])),"./locales/en/common.json":()=>u(()=>import(`./common-BBHmIHQW.js`).then(e=>e.n),__vite__mapDeps([3,1])),"./locales/en/settings.json":()=>u(()=>import(`./settings-WuyKla3E.js`),[]),"./locales/en/setup.json":()=>u(()=>import(`./setup-qooXjj4V.js`).then(e=>e.n),__vite__mapDeps([4,1])),"./locales/en/toasts.json":()=>u(()=>import(`./toasts-DZ6HdKgG.js`).then(e=>e.n),__vite__mapDeps([5,1])),"./locales/es/activity.json":()=>u(()=>import(`./activity-Dt348P4m.js`),[]),"./locales/es/chat.json":()=>u(()=>import(`./chat-6dE2AJNN.js`),[]),"./locales/es/commandPalette.json":()=>u(()=>import(`./commandPalette-Nlxs0V7J.js`),[]),"./locales/es/common.json":()=>u(()=>import(`./common-CUWL8eNX.js`),[]),"./locales/es/settings.json":()=>u(()=>import(`./settings-BcB2BIE2.js`),[]),"./locales/es/setup.json":()=>u(()=>import(`./setup-Cmq_aIjv.js`),[]),"./locales/es/toasts.json":()=>u(()=>import(`./toasts-DizCJjAR.js`),[]),"./locales/fr/activity.json":()=>u(()=>import(`./activity-CCW2-qSA.js`),[]),"./locales/fr/chat.json":()=>u(()=>import(`./chat-B3AJmhGD.js`),[]),"./locales/fr/commandPalette.json":()=>u(()=>import(`./commandPalette-Dfk74u87.js`),[]),"./locales/fr/common.json":()=>u(()=>import(`./common-xPePelft.js`),[]),"./locales/fr/settings.json":()=>u(()=>import(`./settings-BZnHCnGT.js`),[]),"./locales/fr/setup.json":()=>u(()=>import(`./setup-BWlr07i_.js`),[]),"./locales/fr/toasts.json":()=>u(()=>import(`./toasts-CgXHu8ZB.js`),[]),"./locales/it/activity.json":()=>u(()=>import(`./activity-CmzV075e.js`),[]),"./locales/it/chat.json":()=>u(()=>import(`./chat-mSbSzPl5.js`),[]),"./locales/it/commandPalette.json":()=>u(()=>import(`./commandPalette-CUh_kgfp.js`),[]),"./locales/it/common.json":()=>u(()=>import(`./common-DuR5FTPN.js`),[]),"./locales/it/settings.json":()=>u(()=>import(`./settings-DwbEJvxt.js`),[]),"./locales/it/setup.json":()=>u(()=>import(`./setup-DK5JTuqw.js`),[]),"./locales/it/toasts.json":()=>u(()=>import(`./toasts-bPl097de.js`),[]),"./locales/pt-BR/activity.json":()=>u(()=>import(`./activity-D2D6_ljD.js`),[]),"./locales/pt-BR/chat.json":()=>u(()=>import(`./chat-_Xp5fDnj.js`),[]),"./locales/pt-BR/commandPalette.json":()=>u(()=>import(`./commandPalette-tFxIIhvU.js`),[]),"./locales/pt-BR/common.json":()=>u(()=>import(`./common-CvSB5NM3.js`),[]),"./locales/pt-BR/settings.json":()=>u(()=>import(`./settings-D9AQ5wLT2.js`),[]),"./locales/pt-BR/setup.json":()=>u(()=>import(`./setup-B-xPcuTH.js`),[]),"./locales/pt-BR/toasts.json":()=>u(()=>import(`./toasts-NC2MT4uN.js`),[]),"./locales/tr/activity.json":()=>u(()=>import(`./activity-87Kr1xrI.js`),[]),"./locales/tr/chat.json":()=>u(()=>import(`./chat-U-Jjb8_k.js`),[]),"./locales/tr/commandPalette.json":()=>u(()=>import(`./commandPalette-CGMq-qlP.js`),[]),"./locales/tr/common.json":()=>u(()=>import(`./common-DT2FL9xN.js`),[]),"./locales/tr/settings.json":()=>u(()=>import(`./settings-DiVpBZQ2.js`),[]),"./locales/tr/setup.json":()=>u(()=>import(`./setup-CQ4-lz5u.js`),[]),"./locales/tr/toasts.json":()=>u(()=>import(`./toasts-tCVo15mP.js`),[])}),`./locales/${e}/${t}.json`,4))).init({lng:E(),fallbackLng:`en`,supportedLngs:[...p],ns:[...T],defaultNS:`common`,partialBundledLanguages:!0,resources:{en:{common:s,chat:a,commandPalette:o,setup:c,toasts:l}},interpolation:{escapeValue:!1},react:{useSuspense:!1},returnNull:!1});function D(e){typeof document<`u`&&(document.documentElement.lang=e)}D(r.language||`en`);var O=[`activity`,`settings`];r.loadNamespaces(O).catch(e=>{console.warn(JSON.stringify({level:`warn`,event:`i18n_deferred_namespace_prefetch_failed`,namespaces:O,error:f(e),timestamp:new Date().toISOString()}))}),w.subscribe((e,t)=>{let n=e.uiLocale;n&&n!==t.uiLocale&&n!==r.language&&r.changeLanguage(n).then(()=>D(n))});function k(){window.wrongstackDesktopHost?.onLocaleChanged?.(e=>{if(!e)return;let t=_(e);if(t===r.language)return;let n=w.getState();n.uiLocale!==t&&n.set({uiLocale:t}),r.changeLanguage(t).then(()=>D(t))})}try{k()}catch{}export{f as i,w as n,m as r,x as t};
|