@tutti-os/agent-gui 0.0.56 → 0.0.58

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 (63) hide show
  1. package/dist/@-lined-14px-64O2KKB4.svg +3 -0
  2. package/dist/agent-conversation/index.d.ts +2 -2
  3. package/dist/agent-conversation/index.js +9 -8
  4. package/dist/agent-conversation/index.js.map +1 -1
  5. package/dist/agent-env/index.d.ts +285 -0
  6. package/dist/agent-env/index.js +360 -0
  7. package/dist/agent-env/index.js.map +1 -0
  8. package/dist/agent-message-center/index.js +11 -11
  9. package/dist/{agentGuiNodeTypes-DCnsaqJr.d.ts → agentGuiNodeTypes-BRU6P22B.d.ts} +2 -1
  10. package/dist/app/renderer/agentactivity.css +56 -36
  11. package/dist/app/renderer/assets/icons/@-lined-14px.svg +3 -0
  12. package/dist/{chunk-EVVIWZLX.js → chunk-2WUDORCV.js} +2 -2
  13. package/dist/{chunk-5PGMLZ4W.js → chunk-5SRRKWE4.js} +2 -2
  14. package/dist/{chunk-X4C4HD6E.js → chunk-BEFNWUOZ.js} +194 -159
  15. package/dist/chunk-BEFNWUOZ.js.map +1 -0
  16. package/dist/{chunk-PQYSB2WC.js → chunk-BT5WEZO5.js} +7 -7
  17. package/dist/{chunk-4URDQNBP.js → chunk-CEMXB7LA.js} +5 -5
  18. package/dist/{chunk-S6PCOX3S.js → chunk-HVU46DDA.js} +1 -1
  19. package/dist/chunk-HVU46DDA.js.map +1 -0
  20. package/dist/{chunk-54CMFCHF.js → chunk-IS6JUDDY.js} +39 -1
  21. package/dist/chunk-IS6JUDDY.js.map +1 -0
  22. package/dist/{chunk-VOXUYDQF.js → chunk-N756UO52.js} +11 -7
  23. package/dist/chunk-N756UO52.js.map +1 -0
  24. package/dist/{chunk-MXDPRBS6.js → chunk-NX6T3DDS.js} +3 -3
  25. package/dist/{chunk-752VTG4P.js → chunk-OFMORNBO.js} +5 -5
  26. package/dist/{chunk-SITURZG6.js → chunk-OLI2A3EM.js} +2 -2
  27. package/dist/chunk-PSLAWU25.js +145 -0
  28. package/dist/chunk-PSLAWU25.js.map +1 -0
  29. package/dist/{chunk-6QFURP4M.js → chunk-SLT5Q37C.js} +6 -6
  30. package/dist/{chunk-PQYMG6PQ.js → chunk-UCCUIUGK.js} +4 -4
  31. package/dist/context-mention-palette/index.js +7 -7
  32. package/dist/i18n/index.d.ts +38 -0
  33. package/dist/i18n/index.js +2 -2
  34. package/dist/index.d.ts +59 -4
  35. package/dist/index.js +802 -99
  36. package/dist/index.js.map +1 -1
  37. package/dist/queued-prompt-runtime.d.ts +2 -2
  38. package/dist/{types-B2m7UcBb.d.ts → types-BsHvTjIZ.d.ts} +8 -1
  39. package/dist/workbench/contribution.d.ts +1 -1
  40. package/dist/workbench/contribution.js +2 -2
  41. package/dist/workbench/index.d.ts +1 -1
  42. package/dist/workbench/index.js +14 -14
  43. package/dist/workbench/launch.d.ts +1 -1
  44. package/dist/workbench/providerCatalog.d.ts +1 -1
  45. package/dist/workbench/sessionTitle.d.ts +1 -1
  46. package/dist/workbench/sessionTitle.js +3 -3
  47. package/dist/workbench/state.d.ts +1 -1
  48. package/dist/workbench/types.d.ts +1 -1
  49. package/dist/workspace-agent-generated-files.js +3 -3
  50. package/package.json +19 -12
  51. package/dist/chunk-54CMFCHF.js.map +0 -1
  52. package/dist/chunk-S6PCOX3S.js.map +0 -1
  53. package/dist/chunk-VOXUYDQF.js.map +0 -1
  54. package/dist/chunk-X4C4HD6E.js.map +0 -1
  55. /package/dist/{chunk-EVVIWZLX.js.map → chunk-2WUDORCV.js.map} +0 -0
  56. /package/dist/{chunk-5PGMLZ4W.js.map → chunk-5SRRKWE4.js.map} +0 -0
  57. /package/dist/{chunk-PQYSB2WC.js.map → chunk-BT5WEZO5.js.map} +0 -0
  58. /package/dist/{chunk-4URDQNBP.js.map → chunk-CEMXB7LA.js.map} +0 -0
  59. /package/dist/{chunk-MXDPRBS6.js.map → chunk-NX6T3DDS.js.map} +0 -0
  60. /package/dist/{chunk-752VTG4P.js.map → chunk-OFMORNBO.js.map} +0 -0
  61. /package/dist/{chunk-SITURZG6.js.map → chunk-OLI2A3EM.js.map} +0 -0
  62. /package/dist/{chunk-6QFURP4M.js.map → chunk-SLT5Q37C.js.map} +0 -0
  63. /package/dist/{chunk-PQYMG6PQ.js.map → chunk-UCCUIUGK.js.map} +0 -0
@@ -0,0 +1,360 @@
1
+ import {
2
+ classifyFailedAgentMessage,
3
+ closeAgentEnvPanel,
4
+ getAgentEnvPanelStore,
5
+ openAgentEnvPanel,
6
+ resolveAgentErrorPresentation,
7
+ useAgentEnvPanelRequest
8
+ } from "../chunk-PSLAWU25.js";
9
+
10
+ // shared/agentEnv/codexSetupContract.ts
11
+ function asRecord(value) {
12
+ return value && typeof value === "object" && !Array.isArray(value) ? value : null;
13
+ }
14
+ function asString(value) {
15
+ return typeof value === "string" && value.length > 0 ? value : null;
16
+ }
17
+ var STEP_STATUSES = /* @__PURE__ */ new Set([
18
+ "pending",
19
+ "running",
20
+ "ok",
21
+ "error",
22
+ "skipped"
23
+ ]);
24
+ var PHASES = /* @__PURE__ */ new Set([
25
+ "detect",
26
+ "install",
27
+ "repair",
28
+ "verify",
29
+ "done",
30
+ "error"
31
+ ]);
32
+ function normalizeStep(value, index) {
33
+ const record = asRecord(value);
34
+ if (!record) {
35
+ return null;
36
+ }
37
+ const status = asString(record.status);
38
+ return {
39
+ id: asString(record.id) ?? `step-${index}`,
40
+ label: asString(record.label),
41
+ status: status && STEP_STATUSES.has(status) ? status : "pending",
42
+ detail: asString(record.detail)
43
+ };
44
+ }
45
+ function readCodexSetupActiveAction(status) {
46
+ const statusRecord = asRecord(status);
47
+ if (!statusRecord) {
48
+ return null;
49
+ }
50
+ const raw = asRecord(statusRecord.activeAction);
51
+ if (!raw) {
52
+ return null;
53
+ }
54
+ const phase = asString(raw.phase);
55
+ const steps = Array.isArray(raw.steps) ? raw.steps.map((step, index) => normalizeStep(step, index)).filter((step) => step !== null) : [];
56
+ const log = Array.isArray(raw.log) ? raw.log.filter((entry) => typeof entry === "string") : [];
57
+ const errorRecord = asRecord(raw.error);
58
+ return {
59
+ phase: phase && PHASES.has(phase) ? phase : "detect",
60
+ steps,
61
+ registry: asString(raw.registry),
62
+ log,
63
+ error: errorRecord ? {
64
+ code: asString(errorRecord.code),
65
+ message: asString(errorRecord.message)
66
+ } : null
67
+ };
68
+ }
69
+
70
+ // shared/agentEnv/agentEnvWizardFlow.ts
71
+ function reasonCodeIndicatesCliVersionUnsupported(reasonCode) {
72
+ const lower = (reasonCode ?? "").toLowerCase();
73
+ return lower.includes("version") && !lower.includes("adapter");
74
+ }
75
+ var INSTALLING_PHASES = /* @__PURE__ */ new Set([
76
+ "install",
77
+ "repair",
78
+ "verify"
79
+ ]);
80
+ function deriveAgentSetupStages(input) {
81
+ const installing = input.installActionPending || (input.activePhase ? INSTALLING_PHASES.has(input.activePhase) : false);
82
+ const detectStatus = input.detected ? "ok" : "running";
83
+ const networkStatus = !input.detected ? "pending" : input.networkReachable === false ? "error" : "ok";
84
+ const cliOk = input.ready || input.cliInstalled && !input.versionTooOld && !input.platformPackageIncomplete;
85
+ const installStatus = cliOk ? "ok" : installing ? "running" : input.versionTooOld ? "error" : "pending";
86
+ const installProblem = input.platformPackageIncomplete && !cliOk ? "install-platform-incomplete" : void 0;
87
+ const adapterOk = input.ready || input.adapterInstalled && !input.adapterVersionMismatch;
88
+ const adapterStatus = adapterOk ? "ok" : installing ? "running" : input.adapterVersionMismatch ? "error" : "pending";
89
+ const loginStatus = input.authenticated ? "ok" : input.loginPending ? "running" : "pending";
90
+ const readyStatus = input.ready ? "ok" : "pending";
91
+ return [
92
+ {
93
+ id: "detect",
94
+ label: input.labels.detect,
95
+ status: detectStatus,
96
+ detail: null
97
+ },
98
+ {
99
+ id: "network",
100
+ label: input.labels.network,
101
+ status: networkStatus,
102
+ detail: input.networkDetail
103
+ },
104
+ {
105
+ id: "install",
106
+ label: input.labels.install,
107
+ status: installStatus,
108
+ detail: input.cliVersionDetail,
109
+ ...installProblem ? { problem: installProblem } : {}
110
+ },
111
+ {
112
+ id: "adapter",
113
+ label: input.labels.adapter,
114
+ status: adapterStatus,
115
+ detail: input.adapterDetail
116
+ },
117
+ {
118
+ id: "login",
119
+ label: input.labels.login,
120
+ status: loginStatus,
121
+ detail: input.accountDetail,
122
+ authMethod: input.authMethod
123
+ },
124
+ {
125
+ id: "ready",
126
+ label: input.labels.ready,
127
+ status: readyStatus,
128
+ detail: null
129
+ }
130
+ ];
131
+ }
132
+ function projectRevealedStages(realStages, revealIndex) {
133
+ return realStages.map((stage, index) => {
134
+ if (index < revealIndex) {
135
+ return stage;
136
+ }
137
+ if (index === revealIndex) {
138
+ if (stage.status === "ok" || stage.status === "skipped") {
139
+ return { ...stage, status: "running" };
140
+ }
141
+ return stage;
142
+ }
143
+ return { ...stage, status: "pending" };
144
+ });
145
+ }
146
+ function shouldAdvanceReveal(realStages, revealIndex) {
147
+ const cursor = realStages[revealIndex];
148
+ if (!cursor) {
149
+ return false;
150
+ }
151
+ return cursor.status === "ok" || cursor.status === "skipped";
152
+ }
153
+ function stageRemediation(stage) {
154
+ if (stage.status !== "pending" && stage.status !== "error") {
155
+ return null;
156
+ }
157
+ switch (stage.id) {
158
+ case "network":
159
+ return { actionId: "redetect", problem: "network-unreachable" };
160
+ case "install":
161
+ if (stage.problem) {
162
+ return { actionId: "install", problem: stage.problem };
163
+ }
164
+ return stage.status === "error" ? { actionId: "redetect", problem: "install-outdated" } : { actionId: "install", problem: "install-missing" };
165
+ case "adapter":
166
+ return {
167
+ actionId: "install",
168
+ problem: stage.status === "error" ? "adapter-mismatch" : "adapter-missing"
169
+ };
170
+ case "login":
171
+ return { actionId: "login", problem: "login-missing" };
172
+ default:
173
+ return null;
174
+ }
175
+ }
176
+ function resolveWizardAutoStartAction(input) {
177
+ const candidate = autoStartCandidate(input.focus);
178
+ if (!candidate) {
179
+ return null;
180
+ }
181
+ if (!input.detected || input.ready) {
182
+ return null;
183
+ }
184
+ if (candidate === "install" && input.installPending) {
185
+ return null;
186
+ }
187
+ if (candidate === "login" && input.loginPending) {
188
+ return null;
189
+ }
190
+ return candidate;
191
+ }
192
+ function autoStartCandidate(focus) {
193
+ switch (focus) {
194
+ case "install":
195
+ case "repair":
196
+ return "install";
197
+ case "upgrade":
198
+ return null;
199
+ case "auth":
200
+ return "login";
201
+ default:
202
+ return null;
203
+ }
204
+ }
205
+
206
+ // shared/agentEnv/agentEnvViewModel.ts
207
+ var MANUAL_INSTALL_COMMANDS = {
208
+ codex: "npm install -g @openai/codex --include=optional",
209
+ "claude-code": "curl -fsSL https://claude.ai/install.sh | bash"
210
+ };
211
+ function endpointHost(endpoint) {
212
+ if (!endpoint) {
213
+ return null;
214
+ }
215
+ return endpoint.replace(/^https?:\/\//, "").replace(/\/.*$/, "") || null;
216
+ }
217
+ function scrubProxyUrl(url) {
218
+ if (!url) {
219
+ return null;
220
+ }
221
+ try {
222
+ const parsed = new URL(url);
223
+ parsed.username = "";
224
+ parsed.password = "";
225
+ return `${parsed.protocol}//${parsed.host}`;
226
+ } catch {
227
+ return url.replace(/\/\/[^/@]*@/, "//") || null;
228
+ }
229
+ }
230
+ function textToken(text) {
231
+ return text ? { kind: "text", text } : null;
232
+ }
233
+ function joinDetail(parts) {
234
+ const joined = parts.filter((p) => Boolean(p)).join(" \xB7 ");
235
+ return joined || null;
236
+ }
237
+ function deriveHasAnomaly(stages, activeActionError) {
238
+ return stages.some((s) => s.status === "error") || Boolean(activeActionError);
239
+ }
240
+ function buildAgentEnvWizardViewModel(input) {
241
+ const { status, activeAction, provider } = input;
242
+ const ready = status?.availability.status === "ready";
243
+ const installPending = input.installActionPending;
244
+ const loginPending = input.loginPending;
245
+ const busy = installPending || activeAction?.phase === "install" || activeAction?.phase === "repair" || activeAction?.phase === "verify";
246
+ const reasonCode = (status?.availability.reasonCode ?? "").toLowerCase();
247
+ const versionTooOld = reasonCodeIndicatesCliVersionUnsupported(reasonCode);
248
+ const cliBelowFloor = reasonCode.includes("codex_version_too_old");
249
+ const platformPackageIncomplete = reasonCode.includes(
250
+ "codex_platform_pkg_incomplete"
251
+ );
252
+ const adapterVersionMismatch = reasonCode.includes(
253
+ "acp_adapter_version_mismatch"
254
+ );
255
+ const cliDetail = cliBelowFloor && status?.cli.version && status.cli.minVersion ? {
256
+ kind: "version-floor",
257
+ current: status.cli.version,
258
+ required: status.cli.minVersion
259
+ } : status?.cli.installed ? textToken(joinDetail([status?.cli.version, status?.cli.binaryPath])) : textToken(status?.cli.version ?? null);
260
+ const adapterDetail = adapterVersionMismatch && status?.adapter.version && status?.adapter.requiredVersion ? {
261
+ kind: "version-mismatch",
262
+ current: status.adapter.version,
263
+ required: status.adapter.requiredVersion
264
+ } : status?.adapter.installed ? textToken(
265
+ joinDetail([status?.adapter.version, status?.adapter.binaryPath])
266
+ ) : textToken(
267
+ status?.adapter.binaryPath ?? (status?.adapter.command?.length ? status.adapter.command.join(" ") : null)
268
+ );
269
+ const networkChecks = status?.network ? [
270
+ {
271
+ kind: "registry",
272
+ reachable: status.network.registry.reachable,
273
+ host: endpointHost(status.network.registry.endpoint)
274
+ },
275
+ ...status.network.providerApi ? [
276
+ {
277
+ kind: "api",
278
+ reachable: status.network.providerApi.reachable,
279
+ host: endpointHost(status.network.providerApi.endpoint)
280
+ }
281
+ ] : [],
282
+ ...status.network.proxy ? [
283
+ {
284
+ kind: "proxy",
285
+ reachable: !status.network.proxy.configured || status.network.proxy.reachable,
286
+ host: scrubProxyUrl(status.network.proxy.url),
287
+ configured: status.network.proxy.configured
288
+ }
289
+ ] : []
290
+ ] : [];
291
+ const networkReachable = networkChecks.length === 0 ? null : networkChecks.every((c) => c.reachable);
292
+ const accountDetail = status?.auth.accountLabel ? { kind: "text", text: status.auth.accountLabel } : status?.auth.status === "authenticated" ? { kind: "text", text: "__SIGNED_IN__" } : null;
293
+ const authMethod = status?.auth.authMethod ?? null;
294
+ const stages = deriveAgentSetupStages({
295
+ detected: status !== null,
296
+ cliInstalled: status?.cli.installed ?? false,
297
+ versionTooOld,
298
+ platformPackageIncomplete,
299
+ adapterInstalled: status?.adapter.installed ?? false,
300
+ adapterVersionMismatch,
301
+ authenticated: status?.auth.status === "authenticated",
302
+ authRequired: status?.auth.status === "required",
303
+ ready: Boolean(ready),
304
+ activePhase: activeAction?.phase ?? null,
305
+ installActionPending: installPending,
306
+ loginPending,
307
+ networkReachable,
308
+ cliVersionDetail: cliDetail,
309
+ adapterDetail,
310
+ accountDetail,
311
+ authMethod,
312
+ networkDetail: null,
313
+ labels: input.stageLabels
314
+ });
315
+ const registry = activeAction?.registry ?? null;
316
+ const stagesWithDetail = registry ? stages.map(
317
+ (s) => s.id === "ready" ? { ...s, detail: { kind: "text", text: registry } } : s
318
+ ) : stages;
319
+ const displayStages = projectRevealedStages(
320
+ stagesWithDetail,
321
+ input.revealIndex
322
+ );
323
+ const blockingIndex = stages.findIndex((s) => s.status !== "ok");
324
+ const blockingStage = blockingIndex >= 0 ? stages[blockingIndex] : void 0;
325
+ const blockingStageId = blockingStage && input.revealIndex >= blockingIndex ? blockingStage.id : null;
326
+ return {
327
+ ready: Boolean(ready),
328
+ busy: Boolean(busy),
329
+ redetecting: input.isLoading,
330
+ displayStages,
331
+ blockingStageId,
332
+ networkChecks,
333
+ hasAnomaly: deriveHasAnomaly(stages, activeAction?.error ?? null),
334
+ activePhase: activeAction?.phase ?? null,
335
+ log: activeAction?.log ?? [],
336
+ registry,
337
+ error: activeAction?.error ?? null,
338
+ manualCommand: MANUAL_INSTALL_COMMANDS[provider] ?? null,
339
+ installPending,
340
+ loginPending
341
+ };
342
+ }
343
+ export {
344
+ buildAgentEnvWizardViewModel,
345
+ classifyFailedAgentMessage,
346
+ closeAgentEnvPanel,
347
+ deriveAgentSetupStages,
348
+ deriveHasAnomaly,
349
+ getAgentEnvPanelStore,
350
+ openAgentEnvPanel,
351
+ projectRevealedStages,
352
+ readCodexSetupActiveAction,
353
+ reasonCodeIndicatesCliVersionUnsupported,
354
+ resolveAgentErrorPresentation,
355
+ resolveWizardAutoStartAction,
356
+ shouldAdvanceReveal,
357
+ stageRemediation,
358
+ useAgentEnvPanelRequest
359
+ };
360
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../shared/agentEnv/codexSetupContract.ts","../../shared/agentEnv/agentEnvWizardFlow.ts","../../shared/agentEnv/agentEnvViewModel.ts"],"sourcesContent":["/**\n * Frontend contract for the Codex setup progress stream surfaced on the agent\n * provider status snapshot as `activeAction` (片3 progress-flow contract). The\n * backend slice that populates this field has its own source of truth; the\n * generated `AgentProviderStatus` type does not (yet) declare it, so the panel\n * reads it defensively and degrades to detection-only state when it is absent.\n */\n\nexport type CodexSetupStepStatus =\n | \"pending\"\n | \"running\"\n | \"ok\"\n | \"error\"\n | \"skipped\";\n\nexport interface CodexSetupStep {\n id: string;\n label: string | null;\n status: CodexSetupStepStatus;\n detail: string | null;\n}\n\nexport type CodexSetupPhase =\n | \"detect\"\n | \"install\"\n | \"repair\"\n | \"verify\"\n | \"done\"\n | \"error\";\n\nexport interface CodexSetupActiveActionError {\n code: string | null;\n message: string | null;\n}\n\nexport interface CodexSetupActiveAction {\n phase: CodexSetupPhase;\n steps: CodexSetupStep[];\n registry: string | null;\n log: string[];\n error: CodexSetupActiveActionError | null;\n}\n\nfunction asRecord(value: unknown): Record<string, unknown> | null {\n return value && typeof value === \"object\" && !Array.isArray(value)\n ? (value as Record<string, unknown>)\n : null;\n}\n\nfunction asString(value: unknown): string | null {\n return typeof value === \"string\" && value.length > 0 ? value : null;\n}\n\nconst STEP_STATUSES: ReadonlySet<CodexSetupStepStatus> = new Set([\n \"pending\",\n \"running\",\n \"ok\",\n \"error\",\n \"skipped\"\n]);\n\nconst PHASES: ReadonlySet<CodexSetupPhase> = new Set([\n \"detect\",\n \"install\",\n \"repair\",\n \"verify\",\n \"done\",\n \"error\"\n]);\n\nfunction normalizeStep(value: unknown, index: number): CodexSetupStep | null {\n const record = asRecord(value);\n if (!record) {\n return null;\n }\n const status = asString(record.status);\n return {\n id: asString(record.id) ?? `step-${index}`,\n label: asString(record.label),\n status:\n status && STEP_STATUSES.has(status as CodexSetupStepStatus)\n ? (status as CodexSetupStepStatus)\n : \"pending\",\n detail: asString(record.detail)\n };\n}\n\n/**\n * Defensively reads the `activeAction` field off an AgentProviderStatus-like\n * object. Returns null when the field is missing or malformed, which the panel\n * treats as \"no live setup action in progress\".\n */\nexport function readCodexSetupActiveAction(\n status: unknown\n): CodexSetupActiveAction | null {\n const statusRecord = asRecord(status);\n if (!statusRecord) {\n return null;\n }\n const raw = asRecord(statusRecord.activeAction);\n if (!raw) {\n return null;\n }\n const phase = asString(raw.phase);\n const steps = Array.isArray(raw.steps)\n ? raw.steps\n .map((step, index) => normalizeStep(step, index))\n .filter((step): step is CodexSetupStep => step !== null)\n : [];\n const log = Array.isArray(raw.log)\n ? raw.log.filter((entry): entry is string => typeof entry === \"string\")\n : [];\n const errorRecord = asRecord(raw.error);\n return {\n phase:\n phase && PHASES.has(phase as CodexSetupPhase)\n ? (phase as CodexSetupPhase)\n : \"detect\",\n steps,\n registry: asString(raw.registry),\n log,\n error: errorRecord\n ? {\n code: asString(errorRecord.code),\n message: asString(errorRecord.message)\n }\n : null\n };\n}\n","import type { AgentEnvPanelFocus } from \"./agentEnvPanelStore\";\nimport type {\n CodexSetupPhase,\n CodexSetupStepStatus\n} from \"./codexSetupContract\";\n\nexport type AgentSetupStageId =\n | \"detect\"\n | \"network\"\n | \"install\"\n | \"adapter\"\n | \"login\"\n | \"ready\";\n\nexport type StageDetailToken =\n | { kind: \"text\"; text: string }\n | { kind: \"version-floor\"; current: string; required: string }\n | { kind: \"version-mismatch\"; current: string; required: string };\n\n// Whether an availability reason code means the CLI itself is on an unsupported\n// version — as opposed to an ADAPTER version mismatch. The adapter reason code\n// `acp_adapter_version_mismatch` also contains the substring \"version\", so a\n// plain `includes(\"version\")` test wrongly paints the CLI step red (\"版本不受支持\")\n// when only the adapter is mismatched. Require \"version\" but exclude any adapter\n// reason so the CLI and adapter stages stay independent.\nexport function reasonCodeIndicatesCliVersionUnsupported(\n reasonCode: string | null | undefined\n): boolean {\n const lower = (reasonCode ?? \"\").toLowerCase();\n return lower.includes(\"version\") && !lower.includes(\"adapter\");\n}\n\nexport interface AgentSetupStage {\n id: AgentSetupStageId;\n label: string;\n status: CodexSetupStepStatus;\n detail: StageDetailToken | null;\n /**\n * Optional explicit problem token for a blocked stage that can't be inferred\n * from `status` alone. Today only the install stage sets it — when the codex\n * launcher is present but its platform subpackage is missing, the stage is\n * `pending` (the daemon repairs it via the install action) yet needs a distinct\n * \"platform package missing\" problem rather than the generic \"install-missing\".\n */\n problem?: StageProblem;\n authMethod?: string | null;\n}\n\nexport interface AgentSetupStageLabels {\n detect: string;\n network: string;\n install: string;\n adapter: string;\n login: string;\n ready: string;\n}\n\nexport interface DeriveAgentSetupStagesInput {\n detected: boolean;\n cliInstalled: boolean;\n versionTooOld: boolean;\n /**\n * The codex CLI launcher is resolved but its platform-specific optional\n * dependency subpackage (e.g. @openai/codex-darwin-arm64) is missing — the\n * binary spawns ENOENT. The daemon repairs this in place via the install\n * action, so the install stage is `pending` (not `ok`) with a distinct\n * \"platform package missing\" problem token.\n */\n platformPackageIncomplete?: boolean;\n adapterInstalled: boolean;\n adapterVersionMismatch: boolean;\n authenticated: boolean;\n authRequired: boolean;\n ready: boolean;\n activePhase: CodexSetupPhase | null;\n /**\n * Whether the daemon-driven install action is in flight. This is the\n * authoritative \"installing\" signal: the adapter (external-registry) installer\n * emits no activeAction phase, so without this an in-progress adapter install\n * would show no spinner.\n */\n installActionPending: boolean;\n loginPending: boolean;\n /**\n * Active connectivity probe verdict: true (reachable), false (offline), or\n * null when the daemon reported no network info (older daemon / not probed) —\n * null is treated as \"don't block\".\n */\n networkReachable: boolean | null;\n cliVersionDetail: StageDetailToken | null;\n adapterDetail: StageDetailToken | null;\n accountDetail: StageDetailToken | null;\n authMethod: string | null;\n networkDetail: StageDetailToken | null;\n labels: AgentSetupStageLabels;\n}\n\nconst INSTALLING_PHASES: ReadonlySet<CodexSetupPhase> = new Set([\n \"install\",\n \"repair\",\n \"verify\"\n]);\n\n/**\n * Maps primitive provider-status flags onto the fixed 5-stage track the wizard\n * renders. Version verification folds into the install (CLI) stage (an\n * unsupported version means install is `error`, not `ok`). The adapter stage\n * covers the ACP adapter, which for some providers (e.g. claude-code) is a\n * separate, slow npm install distinct from the CLI; for providers where the\n * adapter is the CLI itself it simply tracks the CLI. Login `running` is driven\n * by the caller's pending flag because login runs as a terminal action, not via\n * the activeAction phase stream.\n */\nexport function deriveAgentSetupStages(\n input: DeriveAgentSetupStagesInput\n): AgentSetupStage[] {\n const installing =\n input.installActionPending ||\n (input.activePhase ? INSTALLING_PHASES.has(input.activePhase) : false);\n\n const detectStatus: CodexSetupStepStatus = input.detected ? \"ok\" : \"running\";\n\n // Network is an independent live-connectivity check (registry + provider API),\n // so it is NOT folded into the `ready` short-circuit — a real outage shows even\n // when the CLI is otherwise configured. It can only be judged once detection\n // has run; `false` is the only blocking value (null = no daemon verdict).\n const networkStatus: CodexSetupStepStatus = !input.detected\n ? \"pending\"\n : input.networkReachable === false\n ? \"error\"\n : \"ok\";\n\n // A satisfied CLI stays checked even while an install runs, so the spinner\n // lands on the stage actually being worked on (e.g. the adapter during a\n // repair) rather than flipping every install-related stage back to running.\n // A present launcher with a missing platform subpackage is NOT ok — the\n // daemon repairs it via the install action, so it reads as a pending install.\n const cliOk =\n input.ready ||\n (input.cliInstalled &&\n !input.versionTooOld &&\n !input.platformPackageIncomplete);\n const installStatus: CodexSetupStepStatus = cliOk\n ? \"ok\"\n : installing\n ? \"running\"\n : input.versionTooOld\n ? \"error\"\n : \"pending\";\n const installProblem: StageProblem | undefined =\n input.platformPackageIncomplete && !cliOk\n ? \"install-platform-incomplete\"\n : undefined;\n\n const adapterOk =\n input.ready || (input.adapterInstalled && !input.adapterVersionMismatch);\n const adapterStatus: CodexSetupStepStatus = adapterOk\n ? \"ok\"\n : installing\n ? \"running\"\n : input.adapterVersionMismatch\n ? \"error\"\n : \"pending\";\n\n const loginStatus: CodexSetupStepStatus = input.authenticated\n ? \"ok\"\n : input.loginPending\n ? \"running\"\n : \"pending\";\n\n const readyStatus: CodexSetupStepStatus = input.ready ? \"ok\" : \"pending\";\n\n return [\n {\n id: \"detect\",\n label: input.labels.detect,\n status: detectStatus,\n detail: null\n },\n {\n id: \"network\",\n label: input.labels.network,\n status: networkStatus,\n detail: input.networkDetail\n },\n {\n id: \"install\",\n label: input.labels.install,\n status: installStatus,\n detail: input.cliVersionDetail,\n ...(installProblem ? { problem: installProblem } : {})\n },\n {\n id: \"adapter\",\n label: input.labels.adapter,\n status: adapterStatus,\n detail: input.adapterDetail\n },\n {\n id: \"login\",\n label: input.labels.login,\n status: loginStatus,\n detail: input.accountDetail,\n authMethod: input.authMethod\n },\n {\n id: \"ready\",\n label: input.labels.ready,\n status: readyStatus,\n detail: null\n }\n ];\n}\n\n/**\n * Step-by-step reveal: even when prerequisites are already satisfied, the wizard\n * walks a cursor down the track so each stage visibly \"checks off\" one at a time\n * instead of all flashing complete at once.\n *\n * `revealIndex` is the cursor position. Stages before it show their real status\n * (already revealed). The stage AT the cursor is shown as `running` when its\n * real status is terminal-ok (the brief \"working on it\" moment before it checks\n * off) and otherwise shows its real status (so a genuinely running install, an\n * error, or a blocked prerequisite are honest). Stages after the cursor are\n * dimmed to `pending`.\n */\nexport function projectRevealedStages(\n realStages: AgentSetupStage[],\n revealIndex: number\n): AgentSetupStage[] {\n return realStages.map((stage, index) => {\n if (index < revealIndex) {\n return stage;\n }\n if (index === revealIndex) {\n if (stage.status === \"ok\" || stage.status === \"skipped\") {\n return { ...stage, status: \"running\" };\n }\n return stage;\n }\n return { ...stage, status: \"pending\" };\n });\n}\n\n/**\n * The reveal cursor advances past a stage only once that stage is really done\n * (`ok`/`skipped`). It parks on a stage that is still `running` (a real install\n * in progress), `error`, or `pending` (a blocked prerequisite) — so the\n * animation never races ahead of reality.\n */\nexport function shouldAdvanceReveal(\n realStages: AgentSetupStage[],\n revealIndex: number\n): boolean {\n const cursor = realStages[revealIndex];\n if (!cursor) {\n return false;\n }\n return cursor.status === \"ok\" || cursor.status === \"skipped\";\n}\n\nexport type StageActionId = \"install\" | \"login\" | \"redetect\";\n\n/**\n * The problem token a blocked stage represents. The UI maps this to \"未xxx\"\n * copy; keeping it i18n-agnostic here lets the mapping stay tested without\n * pulling translation strings into the pure flow module.\n */\nexport type StageProblem =\n | \"network-unreachable\"\n | \"install-missing\"\n | \"install-outdated\"\n | \"install-platform-incomplete\"\n | \"adapter-missing\"\n | \"adapter-mismatch\"\n | \"login-missing\";\n\nexport interface StageRemediation {\n actionId: StageActionId;\n problem: StageProblem;\n}\n\n/**\n * For a stage the user must act on (idle `pending`/`error`, never `running` or\n * `ok`), returns what is wrong and which action fixes it. `detect`/`ready` never\n * carry their own remediation — they reflect prerequisites, not user actions.\n *\n * `error` means a version problem on the install/adapter stages (the only stages\n * derive marks `error`); `pending` means the step simply has not run yet.\n */\nexport function stageRemediation(\n stage: AgentSetupStage\n): StageRemediation | null {\n if (stage.status !== \"pending\" && stage.status !== \"error\") {\n return null;\n }\n switch (stage.id) {\n case \"network\":\n // Connectivity isn't fixed by an install/login action — re-running\n // detection (which re-probes the network) is the remediation.\n return { actionId: \"redetect\", problem: \"network-unreachable\" };\n case \"install\":\n // An explicit problem token (today: platform subpackage missing) takes\n // precedence — the daemon repairs it in place via the install action, so\n // route through install rather than the manual-upgrade error path.\n if (stage.problem) {\n return { actionId: \"install\", problem: stage.problem };\n }\n // A genuinely missing CLI is installed for the user; a present-but-\n // outdated CLI is NOT — we don't silently reinstall a binary the user\n // manages. Instead the panel shows the manual upgrade command and\n // re-detection confirms it once they've upgraded.\n return stage.status === \"error\"\n ? { actionId: \"redetect\", problem: \"install-outdated\" }\n : { actionId: \"install\", problem: \"install-missing\" };\n case \"adapter\":\n return {\n actionId: \"install\",\n problem:\n stage.status === \"error\" ? \"adapter-mismatch\" : \"adapter-missing\"\n };\n case \"login\":\n return { actionId: \"login\", problem: \"login-missing\" };\n default:\n return null;\n }\n}\n\nexport interface ResolveWizardAutoStartInput {\n focus: AgentEnvPanelFocus | null;\n detected: boolean;\n ready: boolean;\n installPending: boolean;\n loginPending: boolean;\n}\n\n/**\n * Decides whether opening the wizard with a remediation focus should auto-start\n * an action. Returns the action id to run, or null when nothing should run\n * (non-remediation focus, detection not settled, already ready, or already\n * pending). The caller is responsible for firing this at most once per open.\n */\nexport function resolveWizardAutoStartAction(\n input: ResolveWizardAutoStartInput\n): \"install\" | \"login\" | null {\n const candidate = autoStartCandidate(input.focus);\n if (!candidate) {\n return null;\n }\n if (!input.detected || input.ready) {\n return null;\n }\n if (candidate === \"install\" && input.installPending) {\n return null;\n }\n if (candidate === \"login\" && input.loginPending) {\n return null;\n }\n return candidate;\n}\n\nfunction autoStartCandidate(\n focus: AgentEnvPanelFocus | null\n): \"install\" | \"login\" | null {\n switch (focus) {\n case \"install\":\n case \"repair\":\n return \"install\";\n case \"upgrade\":\n // CLI upgrades are user-driven: opening the panel from a version error\n // shows the manual upgrade command rather than auto-running an install\n // (which can't upgrade an already-present binary anyway).\n return null;\n case \"auth\":\n return \"login\";\n default:\n return null;\n }\n}\n","import type {\n AgentProviderStatus,\n WorkspaceAgentProvider\n} from \"@tutti-os/client-tuttid-ts\";\nimport {\n deriveAgentSetupStages,\n projectRevealedStages,\n reasonCodeIndicatesCliVersionUnsupported,\n type AgentSetupStage,\n type AgentSetupStageId,\n type AgentSetupStageLabels,\n type StageDetailToken\n} from \"./agentEnvWizardFlow.ts\";\nimport type {\n CodexSetupActiveAction,\n CodexSetupActiveActionError,\n CodexSetupPhase\n} from \"./codexSetupContract.ts\";\n\nexport interface NetworkCheck {\n kind: \"registry\" | \"api\" | \"proxy\";\n reachable: boolean;\n host: string | null;\n configured?: boolean;\n}\n\nconst MANUAL_INSTALL_COMMANDS: Partial<Record<WorkspaceAgentProvider, string>> =\n {\n codex: \"npm install -g @openai/codex --include=optional\",\n \"claude-code\": \"curl -fsSL https://claude.ai/install.sh | bash\"\n };\n\nfunction endpointHost(endpoint: string | null | undefined): string | null {\n if (!endpoint) {\n return null;\n }\n return endpoint.replace(/^https?:\\/\\//, \"\").replace(/\\/.*$/, \"\") || null;\n}\n\n// A proxy URL may carry credentials (http://user:pass@host:port). Strip the\n// userinfo before it reaches the renderer/UI so proxy passwords are never\n// surfaced; the scheme + host:port are kept for display.\nfunction scrubProxyUrl(url: string | null | undefined): string | null {\n if (!url) {\n return null;\n }\n try {\n const parsed = new URL(url);\n parsed.username = \"\";\n parsed.password = \"\";\n return `${parsed.protocol}//${parsed.host}`;\n } catch {\n // Not a parseable URL — still strip a leading userinfo segment defensively.\n return url.replace(/\\/\\/[^/@]*@/, \"//\") || null;\n }\n}\n\nfunction textToken(text: string | null): StageDetailToken | null {\n return text ? { kind: \"text\", text } : null;\n}\n\nfunction joinDetail(parts: Array<string | null | undefined>): string | null {\n const joined = parts.filter((p): p is string => Boolean(p)).join(\" · \");\n return joined || null;\n}\n\nexport function deriveHasAnomaly(\n stages: AgentSetupStage[],\n activeActionError: CodexSetupActiveActionError | null\n): boolean {\n return stages.some((s) => s.status === \"error\") || Boolean(activeActionError);\n}\n\nexport interface AgentEnvWizardViewModelInput {\n provider: WorkspaceAgentProvider;\n status: AgentProviderStatus | null;\n isLoading: boolean;\n activeAction: CodexSetupActiveAction | null;\n installActionPending: boolean;\n loginPending: boolean;\n revealIndex: number;\n stageLabels: AgentSetupStageLabels;\n}\n\nexport interface AgentEnvWizardViewModel {\n ready: boolean;\n busy: boolean;\n redetecting: boolean;\n displayStages: AgentSetupStage[];\n blockingStageId: AgentSetupStageId | null;\n networkChecks: NetworkCheck[];\n hasAnomaly: boolean;\n activePhase: CodexSetupPhase | null;\n log: string[];\n registry: string | null;\n error: CodexSetupActiveActionError | null;\n manualCommand: string | null;\n installPending: boolean;\n loginPending: boolean;\n}\n\nexport function buildAgentEnvWizardViewModel(\n input: AgentEnvWizardViewModelInput\n): AgentEnvWizardViewModel {\n const { status, activeAction, provider } = input;\n const ready = status?.availability.status === \"ready\";\n const installPending = input.installActionPending;\n const loginPending = input.loginPending;\n const busy =\n installPending ||\n activeAction?.phase === \"install\" ||\n activeAction?.phase === \"repair\" ||\n activeAction?.phase === \"verify\";\n\n const reasonCode = (status?.availability.reasonCode ?? \"\").toLowerCase();\n const versionTooOld = reasonCodeIndicatesCliVersionUnsupported(reasonCode);\n const cliBelowFloor = reasonCode.includes(\"codex_version_too_old\");\n // The codex launcher is present but its platform subpackage is missing — the\n // CLI spawns ENOENT. The daemon repairs this in place via the install action;\n // the wizard must NOT mark the install stage ok just because the launcher\n // resolved.\n const platformPackageIncomplete = reasonCode.includes(\n \"codex_platform_pkg_incomplete\"\n );\n const adapterVersionMismatch = reasonCode.includes(\n \"acp_adapter_version_mismatch\"\n );\n\n const cliDetail: StageDetailToken | null =\n cliBelowFloor && status?.cli.version && status.cli.minVersion\n ? {\n kind: \"version-floor\",\n current: status.cli.version,\n required: status.cli.minVersion\n }\n : status?.cli.installed\n ? textToken(joinDetail([status?.cli.version, status?.cli.binaryPath]))\n : textToken(status?.cli.version ?? null);\n\n const adapterDetail: StageDetailToken | null =\n adapterVersionMismatch &&\n status?.adapter.version &&\n status?.adapter.requiredVersion\n ? {\n kind: \"version-mismatch\",\n current: status.adapter.version,\n required: status.adapter.requiredVersion\n }\n : status?.adapter.installed\n ? textToken(\n joinDetail([status?.adapter.version, status?.adapter.binaryPath])\n )\n : textToken(\n status?.adapter.binaryPath ??\n (status?.adapter.command?.length\n ? status.adapter.command.join(\" \")\n : null)\n );\n\n const networkChecks: NetworkCheck[] = status?.network\n ? [\n {\n kind: \"registry\",\n reachable: status.network.registry.reachable,\n host: endpointHost(status.network.registry.endpoint)\n },\n ...(status.network.providerApi\n ? [\n {\n kind: \"api\" as const,\n reachable: status.network.providerApi.reachable,\n host: endpointHost(status.network.providerApi.endpoint)\n }\n ]\n : []),\n ...(status.network.proxy\n ? [\n {\n kind: \"proxy\" as const,\n reachable:\n !status.network.proxy.configured ||\n status.network.proxy.reachable,\n host: scrubProxyUrl(status.network.proxy.url),\n configured: status.network.proxy.configured\n }\n ]\n : [])\n ]\n : [];\n const networkReachable =\n networkChecks.length === 0 ? null : networkChecks.every((c) => c.reachable);\n\n const accountDetail: StageDetailToken | null = status?.auth.accountLabel\n ? { kind: \"text\", text: status.auth.accountLabel }\n : status?.auth.status === \"authenticated\"\n ? { kind: \"text\", text: \"__SIGNED_IN__\" }\n : null;\n const authMethod: string | null = status?.auth.authMethod ?? null;\n\n const stages = deriveAgentSetupStages({\n detected: status !== null,\n cliInstalled: status?.cli.installed ?? false,\n versionTooOld,\n platformPackageIncomplete,\n adapterInstalled: status?.adapter.installed ?? false,\n adapterVersionMismatch,\n authenticated: status?.auth.status === \"authenticated\",\n authRequired: status?.auth.status === \"required\",\n ready: Boolean(ready),\n activePhase: activeAction?.phase ?? null,\n installActionPending: installPending,\n loginPending,\n networkReachable,\n cliVersionDetail: cliDetail,\n adapterDetail,\n accountDetail,\n authMethod,\n networkDetail: null,\n labels: input.stageLabels\n });\n\n const registry = activeAction?.registry ?? null;\n const stagesWithDetail = registry\n ? stages.map((s) =>\n s.id === \"ready\"\n ? { ...s, detail: { kind: \"text\" as const, text: registry } }\n : s\n )\n : stages;\n const displayStages = projectRevealedStages(\n stagesWithDetail,\n input.revealIndex\n );\n\n const blockingIndex = stages.findIndex((s) => s.status !== \"ok\");\n const blockingStage = blockingIndex >= 0 ? stages[blockingIndex] : undefined;\n const blockingStageId: AgentSetupStageId | null =\n blockingStage && input.revealIndex >= blockingIndex\n ? blockingStage.id\n : null;\n\n return {\n ready: Boolean(ready),\n busy: Boolean(busy),\n redetecting: input.isLoading,\n displayStages,\n blockingStageId,\n networkChecks,\n hasAnomaly: deriveHasAnomaly(stages, activeAction?.error ?? null),\n activePhase: activeAction?.phase ?? null,\n log: activeAction?.log ?? [],\n registry,\n error: activeAction?.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AiB,QAAQ,cAAc,SAAS,IAAI;AAAA,IAChE,aAAa,cAAc,SAAS;AAAA,IACpC,KAAK,cAAc,OAAO,CAAC;AAAA,IAC3B;AAAA,IACA,OAAO,cAAc,SAAS;AAAA,IAC9B,eAAe,wBAAwB,QAAQ,KAAK;AAAA,IACpD;AAAA,IACA;AAAA,EACF;AACF;","names":[]}
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  formatAgentGuiConversationPlainTitle
3
- } from "../chunk-EVVIWZLX.js";
3
+ } from "../chunk-2WUDORCV.js";
4
4
  import {
5
5
  AgentInteractivePromptSurface,
6
6
  approvalOptionDisplayLabel,
7
7
  getPromptToolDetails,
8
8
  isPromptRequestIdTitle
9
- } from "../chunk-752VTG4P.js";
9
+ } from "../chunk-OFMORNBO.js";
10
10
  import {
11
11
  PLAN_IMPLEMENTATION_ACTION_IMPLEMENT,
12
12
  PLAN_IMPLEMENTATION_PROMPT,
@@ -15,7 +15,7 @@ import {
15
15
  } from "../chunk-MKHDRIGN.js";
16
16
  import {
17
17
  formatAgentSessionMentionText
18
- } from "../chunk-PQYMG6PQ.js";
18
+ } from "../chunk-UCCUIUGK.js";
19
19
  import {
20
20
  AgentMessageMarkdown,
21
21
  CustomScrollArea,
@@ -25,29 +25,29 @@ import {
25
25
  extractExitPlanModeOptions,
26
26
  isExitPlanSwitchModeInput,
27
27
  normalizeAskUserQuestions
28
- } from "../chunk-6QFURP4M.js";
28
+ } from "../chunk-SLT5Q37C.js";
29
29
  import {
30
30
  userAvatarPlaceholderUrl,
31
31
  workspaceAgentActivityStatusLabel
32
- } from "../chunk-SITURZG6.js";
32
+ } from "../chunk-OLI2A3EM.js";
33
33
  import {
34
34
  resolveWorkspaceAgentSessionSortTimeUnixMs
35
35
  } from "../chunk-IBIMGLCD.js";
36
36
  import {
37
37
  managedAgentRoundedIconUrl
38
- } from "../chunk-S6PCOX3S.js";
38
+ } from "../chunk-HVU46DDA.js";
39
39
  import {
40
40
  workspaceAgentProviderLabel
41
41
  } from "../chunk-TYGL25EL.js";
42
- import "../chunk-PJP5BUU6.js";
43
- import "../chunk-MTFSQWZ6.js";
44
- import "../chunk-GCBDIQDX.js";
45
42
  import {
46
43
  AgentGuiI18nProvider,
47
44
  getActiveUiLanguage,
48
45
  useTranslation
49
- } from "../chunk-5PGMLZ4W.js";
50
- import "../chunk-54CMFCHF.js";
46
+ } from "../chunk-5SRRKWE4.js";
47
+ import "../chunk-PJP5BUU6.js";
48
+ import "../chunk-MTFSQWZ6.js";
49
+ import "../chunk-IS6JUDDY.js";
50
+ import "../chunk-GCBDIQDX.js";
51
51
 
52
52
  // agent-message-center/WorkspaceAgentMessageCenterPanel.tsx
53
53
  import {
@@ -1,5 +1,5 @@
1
1
  import { AgentActivityUsage } from '@tutti-os/agent-activity-core';
2
- import { e as AgentHostAgentSessionCommand, f as AgentHostAgentSessionComposerSettings, h as AgentHostAgentSessionReasoningEffort, i as AgentHostAgentSessionSpeed, g as AgentHostAgentSessionPermissionConfig, j as AgentHostAgentSessionState, a as AgentGUIProvider, m as AgentPromptContentBlock, A as AgentGUINodeData, b as AgentGUIProviderTarget } from './types-B2m7UcBb.js';
2
+ import { h as AgentHostAgentSessionCommand, i as AgentHostAgentSessionComposerSettings, k as AgentHostAgentSessionReasoningEffort, l as AgentHostAgentSessionSpeed, j as AgentHostAgentSessionPermissionConfig, m as AgentHostAgentSessionState, a as AgentGUIProvider, p as AgentPromptContentBlock, A as AgentGUINodeData, e as AgentGUIProviderTarget, b as AgentGUIProviderReadinessGate } from './types-BsHvTjIZ.js';
3
3
  import { A as AgentHostBatchUserInfoInput, a as AgentHostBatchUserInfoResult, b as AgentHostDeleteWorkspaceAgentSessionInput, k as AgentHostWorkspaceAgentSessionSummaryInput, j as AgentHostWorkspaceAgentSessionSummary, e as AgentHostWorkspaceAgentListInput, l as AgentHostWorkspaceAgentSnapshot, i as AgentHostWorkspaceAgentSessionMessagesInput, h as AgentHostWorkspaceAgentSessionMessages, p as WorkspaceAgentActivitySyncState } from './workspaceAgentActivityListViewModel-B5viw5Da.js';
4
4
  import { A as AgentApprovalItemVM, a as AgentAskUserQuestionVM, b as AgentConversationPromptVM, c as AgentConversationVM, W as WorkspaceAgentSessionDetailViewModel } from './agentConversationVM-Qbz9GBwR.js';
5
5
  import { WorkspaceUserProjectService } from '@tutti-os/workspace-user-project/contracts';
@@ -623,6 +623,7 @@ interface AgentGUINodeViewModel {
623
623
  conversationDetail: WorkspaceAgentSessionDetailViewModel | null;
624
624
  sessionChrome: AgentGUISessionChrome;
625
625
  inlineNotice: AgentGUIInlineNotice | null;
626
+ providerReadinessGate: AgentGUIProviderReadinessGate | null;
626
627
  }
627
628
 
628
629
  export type { AgentComposerDraft as A, PersistWriteResult as P, ReadWorkspaceAgentReadStateInput as R, WorkspaceAgentReadStateSnapshot as W, AgentGUIComposerSettingsVM as a, AgentGUIConversationScope as b, AgentGUINodeViewModel as c, AgentGUIProviderSkillOption as d, AgentGUIQueuedPromptVM as e, AgentHostApi as f, AgentHostApplyWorkspaceGitPatchInput as g, AgentHostInputApi as h, AgentHostRuntimeApi as i, AgentHostSelectFilesInput as j, AgentProbeProvider as k, AgentProbeSnapshot as l, AgentProviderProbeListInput as m, AgentProviderProbeListResult as n, AgentSessionCommand as o, AgentUsageQuota as p, AgentUsageSnapshot as q, WriteWorkspaceAgentReadStateInput as r };
@@ -5819,9 +5819,10 @@ button.agent-gui-node__conversation-section-toggle:hover
5819
5819
 
5820
5820
  .agent-gui-message-locator {
5821
5821
  --agent-message-locator-dot-size: 6px;
5822
- --agent-message-locator-hit-size: 18px;
5823
- --agent-message-locator-center-offset: 10px;
5824
- --agent-message-locator-scrollbar-gap: 4px;
5822
+ --agent-message-locator-hit-size: 36px;
5823
+ --agent-message-locator-center-offset: 18px;
5824
+ --agent-message-locator-inline-shift: 4px;
5825
+ --agent-message-locator-scrollbar-gap: 8px;
5825
5826
  --agent-message-locator-visible-height: 100vh;
5826
5827
  --agent-message-locator-visible-top-offset: 0px;
5827
5828
  --agent-message-locator-viewport-height: var(--agent-message-locator-height);
@@ -5856,7 +5857,8 @@ button.agent-gui-node__conversation-section-toggle:hover
5856
5857
  right: calc(
5857
5858
  var(--agent-message-locator-scrollbar-gap) +
5858
5859
  var(--agent-message-locator-center-offset) -
5859
- var(--agent-message-locator-hit-size) / 2
5860
+ var(--agent-message-locator-hit-size) / 2 -
5861
+ var(--agent-message-locator-inline-shift)
5860
5862
  );
5861
5863
  width: var(--agent-message-locator-hit-size);
5862
5864
  height: 100%;
@@ -5865,6 +5867,8 @@ button.agent-gui-node__conversation-section-toggle:hover
5865
5867
  overscroll-behavior: contain;
5866
5868
  pointer-events: auto;
5867
5869
  scrollbar-width: none;
5870
+ cursor: pointer;
5871
+ z-index: 1;
5868
5872
  }
5869
5873
 
5870
5874
  .agent-gui-message-locator__viewport::-webkit-scrollbar {
@@ -5906,6 +5910,9 @@ button.agent-gui-node__conversation-section-toggle:hover
5906
5910
  transform: translateY(-50%);
5907
5911
  cursor: pointer;
5908
5912
  pointer-events: auto;
5913
+ touch-action: manipulation;
5914
+ -webkit-appearance: none;
5915
+ appearance: none;
5909
5916
  }
5910
5917
 
5911
5918
  .agent-gui-message-locator__dot {
@@ -7443,7 +7450,11 @@ html[data-theme="light"] [data-message-center-item-id].agent-gui-edge-glow {
7443
7450
  overflow-y: auto;
7444
7451
  overflow-wrap: anywhere;
7445
7452
  scrollbar-gutter: stable;
7446
- scrollbar-width: none;
7453
+ /* Keep the scrollbar persistently visible (not hover/focus-only) once the
7454
+ draft overflows the visible viewport: a long pasted/dictated block of
7455
+ text must never look like a single visible line with no affordance that
7456
+ more content exists below (see: Feishu recvo2ITCPrpcA). */
7457
+ scrollbar-width: thin;
7447
7458
  white-space: pre-wrap;
7448
7459
  }
7449
7460
 
@@ -7456,41 +7467,10 @@ html[data-theme="light"] [data-message-center-item-id].agent-gui-edge-glow {
7456
7467
  max-height: var(--agent-gui-composer-text-viewport-height);
7457
7468
  }
7458
7469
 
7459
- .agent-gui-node__composer[data-layout="dock"]
7460
- .agent-gui-node__composer-prompt-input-area:hover
7461
- textarea,
7462
- .agent-gui-node__composer[data-layout="dock"]
7463
- .agent-gui-node__composer-prompt-input-area:hover
7464
- .agent-gui-node__composer-textarea,
7465
- .agent-gui-node__composer[data-layout="dock"]
7466
- .agent-gui-node__composer-prompt-input-area:focus-within
7467
- textarea,
7468
- .agent-gui-node__composer[data-layout="dock"]
7469
- .agent-gui-node__composer-prompt-input-area:focus-within
7470
- .agent-gui-node__composer-textarea {
7471
- scrollbar-width: thin;
7472
- }
7473
-
7474
7470
  .agent-gui-node__composer[data-layout="dock"] textarea::-webkit-scrollbar,
7475
7471
  .agent-gui-node__composer[data-layout="dock"]
7476
7472
  .agent-gui-node__composer-textarea::-webkit-scrollbar {
7477
7473
  display: block;
7478
- width: 0;
7479
- height: 0;
7480
- }
7481
-
7482
- .agent-gui-node__composer[data-layout="dock"]
7483
- .agent-gui-node__composer-prompt-input-area:hover
7484
- textarea::-webkit-scrollbar,
7485
- .agent-gui-node__composer[data-layout="dock"]
7486
- .agent-gui-node__composer-prompt-input-area:hover
7487
- .agent-gui-node__composer-textarea::-webkit-scrollbar,
7488
- .agent-gui-node__composer[data-layout="dock"]
7489
- .agent-gui-node__composer-prompt-input-area:focus-within
7490
- textarea::-webkit-scrollbar,
7491
- .agent-gui-node__composer[data-layout="dock"]
7492
- .agent-gui-node__composer-prompt-input-area:focus-within
7493
- .agent-gui-node__composer-textarea::-webkit-scrollbar {
7494
7474
  width: 4px;
7495
7475
  height: 4px;
7496
7476
  }
@@ -8222,6 +8202,46 @@ html[data-theme="light"] [data-message-center-item-id].agent-gui-edge-glow {
8222
8202
  font-weight: 700;
8223
8203
  }
8224
8204
 
8205
+ .agent-gui-node__empty-provider-gate {
8206
+ max-width: 520px;
8207
+ gap: 14px;
8208
+ }
8209
+
8210
+ .agent-gui-node__empty-provider-gate > .agent-gui-node__empty-hero-icon-effect {
8211
+ margin-bottom: 10px;
8212
+ }
8213
+
8214
+ .agent-gui-node__empty-provider-gate > .agent-gui-node__empty-hero-title {
8215
+ font-size: 24px;
8216
+ }
8217
+
8218
+ .agent-gui-node__empty-provider-gate-description {
8219
+ max-width: 420px;
8220
+ margin: 0;
8221
+ text-align: center;
8222
+ color: var(--text-secondary);
8223
+ font-size: 14px;
8224
+ line-height: 1.55;
8225
+ animation: agent-gui-empty-hero-enter 280ms cubic-bezier(0.16, 1, 0.3, 1)
8226
+ 150ms both;
8227
+ }
8228
+
8229
+ .agent-gui-node__empty-provider-gate-status {
8230
+ min-height: 20px;
8231
+ color: var(--text-secondary);
8232
+ font-size: 13px;
8233
+ line-height: 20px;
8234
+ animation: agent-gui-empty-hero-enter 280ms cubic-bezier(0.16, 1, 0.3, 1)
8235
+ 170ms both;
8236
+ }
8237
+
8238
+ .agent-gui-node__empty-provider-gate-action {
8239
+ min-width: 132px;
8240
+ gap: 8px;
8241
+ animation: agent-gui-empty-hero-enter 300ms cubic-bezier(0.16, 1, 0.3, 1)
8242
+ 190ms both;
8243
+ }
8244
+
8225
8245
  .agent-gui-node__empty-hero-body > .agent-gui-node__composer-hero {
8226
8246
  animation: agent-gui-empty-hero-enter 300ms cubic-bezier(0.16, 1, 0.3, 1)
8227
8247
  180ms both;
@@ -0,0 +1,3 @@
1
+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M4.15672 0.923957C5.52544 0.283494 7.07068 0.123903 8.54141 0.471076C10.012 0.818299 11.3224 1.652 12.2602 2.83688C13.198 4.02185 13.7082 5.48879 13.7082 6.99996V7.5833C13.7082 8.27949 13.4315 8.94697 12.9392 9.43925C12.4469 9.93152 11.7794 10.2083 11.0832 10.2083C10.3871 10.2083 9.71954 9.93152 9.22728 9.43925C9.20473 9.4167 9.18341 9.39303 9.16177 9.36976C8.59144 9.89033 7.83294 10.2083 6.9999 10.2083C5.22803 10.2082 3.79157 8.77185 3.79157 6.99996C3.79159 5.2281 5.22805 3.79168 6.9999 3.79163C7.57711 3.79163 8.11847 3.94468 8.58641 4.21147C8.74008 3.95987 9.01686 3.79166 9.33324 3.79163C9.81648 3.79163 10.2082 4.1834 10.2082 4.66663V7.5833C10.2082 7.81533 10.3005 8.03786 10.4646 8.20195C10.6287 8.36602 10.8512 8.45827 11.0832 8.4583C11.3153 8.4583 11.5378 8.36603 11.7019 8.20195C11.866 8.03786 11.9582 7.81536 11.9582 7.5833V6.99996C11.9582 5.88302 11.581 4.7985 10.8878 3.92265C10.1947 3.04698 9.22614 2.43098 8.13923 2.17436C7.05219 1.91777 5.91006 2.0354 4.89842 2.50875C3.88684 2.98212 3.06461 3.78336 2.56509 4.78227C2.06558 5.7813 1.91811 6.92003 2.14639 8.01339C2.37468 9.10674 2.96539 10.0913 3.8229 10.807C4.68041 11.5226 5.75467 11.9276 6.87116 11.9566C7.98766 11.9856 9.08115 11.6366 9.97468 10.9665C10.3612 10.6766 10.91 10.7549 11.2 11.1414C11.4899 11.528 11.4117 12.0768 11.0251 12.3667C9.81619 13.2734 8.33625 13.7453 6.82559 13.706C5.31501 13.6667 3.86197 13.1185 2.70181 12.1503C1.54166 11.182 0.742296 9.85035 0.433417 8.37114C0.12458 6.89196 0.32394 5.3517 0.99966 4.00013C1.67547 2.64852 2.78802 1.56444 4.15672 0.923957ZM6.9999 5.54163C6.19454 5.54168 5.54159 6.1946 5.54157 6.99996C5.54157 7.80535 6.19453 8.45825 6.9999 8.4583C7.80532 8.4583 8.45824 7.80538 8.45824 6.99996C8.45822 6.19457 7.80531 5.54163 6.9999 5.54163Z" fill="black"/>
3
+ </svg>