glimmervoid 0.53.1 → 0.53.2-next.966

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 (118) hide show
  1. package/dist/bin/glimmervoid.js +13 -13
  2. package/dist/chunks/{adapters-DOEJEKS0.js → adapters-L_kCsJoV.js} +1 -1
  3. package/dist/chunks/{adapters-CNSwsGdu.js → adapters-mKn9rSYO.js} +2 -2
  4. package/dist/chunks/agent-api-cli-BfjInV6a.js +1 -0
  5. package/dist/chunks/{agent-api-cli-ChxXRS3d.js → agent-api-cli-EA42jg6w.js} +1 -1
  6. package/dist/chunks/{agent-api-core-DfuQ4RDS.js → agent-api-core-D0w78vXc.js} +1 -1
  7. package/dist/chunks/{config-wPv6Of22.js → config-DjZbYmaB.js} +3 -0
  8. package/dist/chunks/{config-store-BE5X4H-R.js → config-store-D0ubZ2ez.js} +4 -3
  9. package/dist/chunks/config-store-imHubfK9.js +1 -0
  10. package/dist/chunks/{host-cli-SIyKKMs0.js → host-cli-CdlM5GxF.js} +1 -1
  11. package/dist/chunks/{main-DsOePgO6.js → main-Bl8sEyrl.js} +117 -18
  12. package/dist/chunks/{packs-cli-CYC7S_8E.js → packs-cli-CBKiDwJT.js} +1 -1
  13. package/dist/chunks/{pair-cli-X12JQ9zW.js → pair-cli-BPg8tauu.js} +2 -2
  14. package/dist/chunks/{pr-flows-cli-BsTY76Tt.js → pr-flows-cli-CihO3h7H.js} +2 -2
  15. package/dist/chunks/{remote-config-BPeUod_r.js → remote-config-BfGYhhKn.js} +1 -1
  16. package/dist/chunks/settings-cli-BcK_pgdx.js +1 -0
  17. package/dist/chunks/{settings-cli-Dk5QXFJ2.js → settings-cli-CkVAoy96.js} +4 -4
  18. package/dist/chunks/{settings-readout-core-CtpKozFQ.js → settings-readout-core-KDIYBU8v.js} +1 -1
  19. package/dist/chunks/{ssh-sign-cli-DQkDNLZ7.js → ssh-sign-cli-DvXSmQm4.js} +1 -1
  20. package/dist/chunks/{watch-cli-BwyiTVnT.js → watch-cli-COS_8B_E.js} +12 -7
  21. package/dist/chunks/{watcher-link-BKWi5aJM.js → watcher-link-xW9PMs77.js} +8 -1
  22. package/dist/client/assets/{agent-core-BQ1THBfW.js → agent-core-BjRsd_gB.js} +2 -2
  23. package/dist/client/assets/agent-core-BjRsd_gB.js.br +0 -0
  24. package/dist/client/assets/{agent-mark-CAPAtm4S.js → agent-mark-CDiDVO9j.js} +1 -1
  25. package/dist/client/assets/agent-mark-CDiDVO9j.js.br +0 -0
  26. package/dist/client/assets/{arena-panel-By7u9GDX.js → arena-panel-CseMEQvb.js} +2 -2
  27. package/dist/client/assets/arena-panel-CseMEQvb.js.br +0 -0
  28. package/dist/client/assets/{benchmark-panel-BlxS_Jak.js → benchmark-panel-C70lz2RD.js} +1 -1
  29. package/dist/client/assets/benchmark-panel-C70lz2RD.js.br +0 -0
  30. package/dist/client/assets/{boards-view-DRP8Y4Pm.js → boards-view-DVuZx8aO.js} +2 -2
  31. package/dist/client/assets/boards-view-DVuZx8aO.js.br +0 -0
  32. package/dist/client/assets/{community-panel-IgihcWNO.js → community-panel-DlYOXeZ0.js} +1 -1
  33. package/dist/client/assets/community-panel-DlYOXeZ0.js.br +0 -0
  34. package/dist/client/assets/{dialogs-BYL3z6t7.js → dialogs-Vj2cSZa1.js} +1 -1
  35. package/dist/client/assets/dialogs-Vj2cSZa1.js.br +0 -0
  36. package/dist/client/assets/{doc-editor-ui-BfVu_JmF.js → doc-editor-ui-BakXuPjb.js} +1 -1
  37. package/dist/client/assets/doc-editor-ui-BakXuPjb.js.br +0 -0
  38. package/dist/client/assets/{feature-hint-AN1kNwT4.js → feature-hint-DrInq99N.js} +1 -1
  39. package/dist/client/assets/feature-hint-DrInq99N.js.br +0 -0
  40. package/dist/client/assets/{first-run-checklist-JZUS8rV5.js → first-run-checklist-BM8OOWJL.js} +1 -1
  41. package/dist/client/assets/first-run-checklist-BM8OOWJL.js.br +0 -0
  42. package/dist/client/assets/{hooks-panel-CtgJU9I5.js → hooks-panel-2UGBYtKp.js} +1 -1
  43. package/dist/client/assets/hooks-panel-2UGBYtKp.js.br +0 -0
  44. package/dist/client/assets/{index-CwndYdst.js → index-k6lh2SOM.js} +5 -5
  45. package/dist/client/assets/index-k6lh2SOM.js.br +0 -0
  46. package/dist/client/assets/{issues-panel-TIPTD8Vb.js → issues-panel-DUaYxMKd.js} +1 -1
  47. package/dist/client/assets/issues-panel-DUaYxMKd.js.br +0 -0
  48. package/dist/client/assets/{lane-read-token-step-Y47rPFjy.js → lane-read-token-step-B2OUP3Ve.js} +1 -1
  49. package/dist/client/assets/lane-read-token-step-B2OUP3Ve.js.br +0 -0
  50. package/dist/client/assets/{my-prs-panel-ixPcAIf5.js → my-prs-panel-CCQ4BCqV.js} +1 -1
  51. package/dist/client/assets/my-prs-panel-CCQ4BCqV.js.br +0 -0
  52. package/dist/client/assets/{nyan-cat-Jrakmyyn.js → nyan-cat-CpNy7YH7.js} +1 -1
  53. package/dist/client/assets/nyan-cat-CpNy7YH7.js.br +0 -0
  54. package/dist/client/assets/{phone-shell-JTIcmTAI.js → phone-shell-B4cWHH1y.js} +1 -1
  55. package/dist/client/assets/phone-shell-B4cWHH1y.js.br +0 -0
  56. package/dist/client/assets/{plan-face-f3XlmdyU.js → plan-face-CjhU3G9b.js} +1 -1
  57. package/dist/client/assets/plan-face-CjhU3G9b.js.br +0 -0
  58. package/dist/client/assets/{plan-render-usK70-q6.js → plan-render-DY2Uplgx.js} +1 -1
  59. package/dist/client/assets/plan-render-DY2Uplgx.js.br +0 -0
  60. package/dist/client/assets/{pr-queue-columns-C6P-i4sW.js → pr-queue-columns-CW_j5U77.js} +1 -1
  61. package/dist/client/assets/pr-queue-columns-CW_j5U77.js.br +0 -0
  62. package/dist/client/assets/{radar-panel-C6LP7HCQ.js → radar-panel-Br_Ycirr.js} +1 -1
  63. package/dist/client/assets/radar-panel-Br_Ycirr.js.br +0 -0
  64. package/dist/client/assets/{repo-roots-adder-Cpil4nGt.js → repo-roots-adder-BHxNnfhf.js} +1 -1
  65. package/dist/client/assets/repo-roots-adder-BHxNnfhf.js.br +0 -0
  66. package/dist/client/assets/{resume-dialog-cLXYHy0O.js → resume-dialog-D7j5M1ii.js} +1 -1
  67. package/dist/client/assets/resume-dialog-D7j5M1ii.js.br +0 -0
  68. package/dist/client/assets/{review-queue-panel-CGD1xd_j.js → review-queue-panel-BXn-FdBS.js} +1 -1
  69. package/dist/client/assets/review-queue-panel-BXn-FdBS.js.br +0 -0
  70. package/dist/client/assets/{session-row-uYdktTlg.js → session-row-BCKiSx86.js} +1 -1
  71. package/dist/client/assets/session-row-BCKiSx86.js.br +0 -0
  72. package/dist/client/assets/{settings-panel-B6noGsUs.js → settings-panel-BeQeq5Re.js} +2 -2
  73. package/dist/client/assets/settings-panel-BeQeq5Re.js.br +0 -0
  74. package/dist/client/assets/{trace-panel-DifdxBXF.js → trace-panel-D6kgTDzM.js} +1 -1
  75. package/dist/client/assets/trace-panel-D6kgTDzM.js.br +0 -0
  76. package/dist/client/assets/{usage-panel-nE5xBTjg.js → usage-panel-BTxYkMQA.js} +1 -1
  77. package/dist/client/assets/usage-panel-BTxYkMQA.js.br +0 -0
  78. package/dist/client/assets/{whiteboard-undo-core-CAnu7_EN.js → whiteboard-undo-core-CPx7qi5j.js} +1 -1
  79. package/dist/client/assets/whiteboard-undo-core-CPx7qi5j.js.br +0 -0
  80. package/dist/client/assets/{your-day-tip-D-IUmo2O.js → your-day-tip-BxvmMpdt.js} +1 -1
  81. package/dist/client/assets/your-day-tip-BxvmMpdt.js.br +0 -0
  82. package/dist/client/index.html +4 -4
  83. package/dist/client/index.html.br +0 -0
  84. package/dist/server/index.js +1 -1
  85. package/package.json +1 -4
  86. package/dist/chunks/agent-api-cli-D6Ld1V9y.js +0 -1
  87. package/dist/chunks/config-store-2h_954wK.js +0 -1
  88. package/dist/chunks/settings-cli-CvlYk8mL.js +0 -1
  89. package/dist/client/assets/agent-core-BQ1THBfW.js.br +0 -0
  90. package/dist/client/assets/agent-mark-CAPAtm4S.js.br +0 -0
  91. package/dist/client/assets/arena-panel-By7u9GDX.js.br +0 -0
  92. package/dist/client/assets/benchmark-panel-BlxS_Jak.js.br +0 -0
  93. package/dist/client/assets/boards-view-DRP8Y4Pm.js.br +0 -0
  94. package/dist/client/assets/community-panel-IgihcWNO.js.br +0 -0
  95. package/dist/client/assets/dialogs-BYL3z6t7.js.br +0 -0
  96. package/dist/client/assets/doc-editor-ui-BfVu_JmF.js.br +0 -0
  97. package/dist/client/assets/feature-hint-AN1kNwT4.js.br +0 -0
  98. package/dist/client/assets/first-run-checklist-JZUS8rV5.js.br +0 -0
  99. package/dist/client/assets/hooks-panel-CtgJU9I5.js.br +0 -0
  100. package/dist/client/assets/index-CwndYdst.js.br +0 -0
  101. package/dist/client/assets/issues-panel-TIPTD8Vb.js.br +0 -0
  102. package/dist/client/assets/lane-read-token-step-Y47rPFjy.js.br +0 -0
  103. package/dist/client/assets/my-prs-panel-ixPcAIf5.js.br +0 -0
  104. package/dist/client/assets/nyan-cat-Jrakmyyn.js.br +0 -0
  105. package/dist/client/assets/phone-shell-JTIcmTAI.js.br +0 -0
  106. package/dist/client/assets/plan-face-f3XlmdyU.js.br +0 -0
  107. package/dist/client/assets/plan-render-usK70-q6.js.br +0 -0
  108. package/dist/client/assets/pr-queue-columns-C6P-i4sW.js.br +0 -0
  109. package/dist/client/assets/radar-panel-C6LP7HCQ.js.br +0 -0
  110. package/dist/client/assets/repo-roots-adder-Cpil4nGt.js.br +0 -0
  111. package/dist/client/assets/resume-dialog-cLXYHy0O.js.br +0 -0
  112. package/dist/client/assets/review-queue-panel-CGD1xd_j.js.br +0 -0
  113. package/dist/client/assets/session-row-uYdktTlg.js.br +0 -0
  114. package/dist/client/assets/settings-panel-B6noGsUs.js.br +0 -0
  115. package/dist/client/assets/trace-panel-DifdxBXF.js.br +0 -0
  116. package/dist/client/assets/usage-panel-nE5xBTjg.js.br +0 -0
  117. package/dist/client/assets/whiteboard-undo-core-CAnu7_EN.js.br +0 -0
  118. package/dist/client/assets/your-day-tip-D-IUmo2O.js.br +0 -0
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { t as AGENT_API_VERBS } from "../chunks/session-BygOlxkV.js";
3
3
  import { a as execSync } from "../chunks/child-process-safe-DAaWFLd1.js";
4
- import { at as OWNED_COMMAND_SPECS, ot as isOwnedCommandName, r as agentCommandHelpLines, st as parseCommand } from "../chunks/agent-api-core-DfuQ4RDS.js";
4
+ import { at as OWNED_COMMAND_SPECS, ot as isOwnedCommandName, r as agentCommandHelpLines, st as parseCommand } from "../chunks/agent-api-core-D0w78vXc.js";
5
5
  import { t as renderTable } from "../chunks/ascii-figure-core-BegIbndz.js";
6
6
  import { n as glimmervoidHomeDir, t as decideConfigPath } from "../chunks/config-path-core-qUZH9-0F.js";
7
7
  import { i as parseCommandLine, r as gitDoctorRows, t as probeGitVersion } from "../chunks/git-version-Nd3lkOqC.js";
@@ -68,7 +68,7 @@ var OWNED_COMMAND_RUNNERS = {
68
68
  return await runDoctor() ? 0 : 1;
69
69
  },
70
70
  pair: async ({ values }) => {
71
- const { runPairCli } = await import("../chunks/pair-cli-X12JQ9zW.js");
71
+ const { runPairCli } = await import("../chunks/pair-cli-BPg8tauu.js");
72
72
  return runPairCli({
73
73
  isListing: values.list === true,
74
74
  revokeDeviceId: typeof values.revoke === "string" ? values.revoke : null,
@@ -80,23 +80,23 @@ var OWNED_COMMAND_RUNNERS = {
80
80
  return runAgentSetupCli();
81
81
  },
82
82
  settings: async (parsed) => {
83
- const { runParsedSettingsCli } = await import("../chunks/settings-cli-CvlYk8mL.js");
83
+ const { runParsedSettingsCli } = await import("../chunks/settings-cli-BcK_pgdx.js");
84
84
  return runParsedSettingsCli(parsed);
85
85
  },
86
86
  host: async (parsed) => {
87
- const { runHostCli } = await import("../chunks/host-cli-SIyKKMs0.js");
87
+ const { runHostCli } = await import("../chunks/host-cli-CdlM5GxF.js");
88
88
  return runHostCli(parsed);
89
89
  },
90
90
  "pr-flows": async (parsed) => {
91
- const { runPrFlowsCheckCli } = await import("../chunks/pr-flows-cli-BsTY76Tt.js");
91
+ const { runPrFlowsCheckCli } = await import("../chunks/pr-flows-cli-CihO3h7H.js");
92
92
  return runPrFlowsCheckCli(parsed);
93
93
  },
94
94
  packs: async (parsed) => {
95
- const { runPacksCli } = await import("../chunks/packs-cli-CYC7S_8E.js");
95
+ const { runPacksCli } = await import("../chunks/packs-cli-CBKiDwJT.js");
96
96
  return runPacksCli(parsed);
97
97
  },
98
98
  "pr-action": async (parsed) => {
99
- const { runPrActionReportCli } = await import("../chunks/pr-flows-cli-BsTY76Tt.js");
99
+ const { runPrActionReportCli } = await import("../chunks/pr-flows-cli-CihO3h7H.js");
100
100
  return runPrActionReportCli(parsed);
101
101
  },
102
102
  vault: async ({ values }) => {
@@ -108,11 +108,11 @@ var OWNED_COMMAND_RUNNERS = {
108
108
  });
109
109
  },
110
110
  watch: async ({ values }) => {
111
- const { runWatchCli } = await import("../chunks/watch-cli-BwyiTVnT.js");
111
+ const { runWatchCli } = await import("../chunks/watch-cli-COS_8B_E.js");
112
112
  return runWatchCli({ rawPort: typeof values.port === "string" ? values.port : null });
113
113
  },
114
114
  "ssh-sign": async ({ rawArgs }) => {
115
- const { runSshSignCli } = await import("../chunks/ssh-sign-cli-DQkDNLZ7.js");
115
+ const { runSshSignCli } = await import("../chunks/ssh-sign-cli-DvXSmQm4.js");
116
116
  return runSshSignCli(rawArgs);
117
117
  }
118
118
  };
@@ -134,7 +134,7 @@ async function runOwnedCommand(name, subcommandArgs) {
134
134
  return OWNED_COMMAND_RUNNERS[name](parsed);
135
135
  }
136
136
  var SUBCOMMAND_RUNNERS = new Map([...Object.keys(OWNED_COMMAND_SPECS).filter(isOwnedCommandName).map((name) => [name, (subcommandArgs) => runOwnedCommand(name, subcommandArgs)]), ...AGENT_API_VERBS.filter((verb) => !isOwnedCommandName(verb)).map((verb) => [verb, async (subcommandArgs, subcommandName) => {
137
- const { runAgentApiCli } = await import("../chunks/agent-api-cli-D6Ld1V9y.js");
137
+ const { runAgentApiCli } = await import("../chunks/agent-api-cli-BfjInV6a.js");
138
138
  return runAgentApiCli([subcommandName, ...subcommandArgs]);
139
139
  }])]);
140
140
  var AGENT_INSTALL_COMMAND_BY_ID = {
@@ -148,7 +148,7 @@ function missingAgentText(agentId) {
148
148
  }
149
149
  async function printSessionLimits() {
150
150
  if (!process.env["GLIMMERVOID_AGENT_URL"]) return;
151
- const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-D6Ld1V9y.js");
151
+ const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-BfjInV6a.js");
152
152
  const limitsLines = await sessionLimitsHelpLines();
153
153
  console.log(`\n${limitsLines.join("\n")}`);
154
154
  }
@@ -205,7 +205,7 @@ async function readDeclaredCustomAgents() {
205
205
  declared: [],
206
206
  error: null
207
207
  };
208
- const { loadConfigFile } = await import("../chunks/config-store-2h_954wK.js");
208
+ const { loadConfigFile } = await import("../chunks/config-store-imHubfK9.js");
209
209
  try {
210
210
  const loaded = loadConfigFile(decided.path, { exitOnError: false });
211
211
  if (!loaded.config) return {
@@ -281,7 +281,7 @@ async function runDoctor() {
281
281
  }
282
282
  switchSection("Agents");
283
283
  try {
284
- const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-DOEJEKS0.js");
284
+ const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-L_kCsJoV.js");
285
285
  const declaredCustomAgents = await readDeclaredCustomAgents();
286
286
  if (declaredCustomAgents.error) line("config", declaredCustomAgents.error);
287
287
  setCustomAgents(declaredCustomAgents.declared);
@@ -1 +1 @@
1
- export { o as describeAgentResolvability, f as listAgentIds, g as setCustomAgents } from "./adapters-CNSwsGdu.js";
1
+ export { o as describeAgentResolvability, f as listAgentIds, g as setCustomAgents } from "./adapters-mKn9rSYO.js";
@@ -4,7 +4,7 @@ import { n as buildAgentEnv } from "./spawn-env-VKivL0Ed.js";
4
4
  import { i as execFileSync, l as spawn, r as execFileAsync } from "./child-process-safe-DAaWFLd1.js";
5
5
  import { o as isMissingFileError, r as errorMessage, t as errorCode } from "./text-BDF4aFhQ.js";
6
6
  import { c as loadedJsonValue, f as writeJsonAtomicSync, m as writeTextAtomicSync, p as writeTextAtomic, s as loadJsonStateFileSync, t as appendJsonLine } from "./json-file-BmnDu2ZM.js";
7
- import { C as isExperimentalBuild, S as compareReleaseVersions, o as glimmervoidHomeDir } from "./config-store-BE5X4H-R.js";
7
+ import { C as isExperimentalBuild, S as compareReleaseVersions, o as glimmervoidHomeDir } from "./config-store-D0ubZ2ez.js";
8
8
  import { Dn as FULL_SHA_RE, E as CONVERSATION_TOOL_RESULT_HOOK_EVENT, T as CONVERSATION_PERMISSION_HOOK_EVENT, i as ASK_USER_QUESTION_TOOL_NAME, j as REQUEST_USER_INPUT_TOOL_NAME, kn as shortSha$1 } from "./session-BygOlxkV.js";
9
9
  import { a as rawTextOr, n as isRecord, o as textOr, r as numberOr } from "./coerce-D6vRlIGO.js";
10
10
  import { n as shellLaunchText, r as shellQuote, t as buildHookCommand } from "./hook-command-core-9E3QR9Bk.js";
@@ -17,7 +17,7 @@ import { n as parseJsonRecord } from "./json-core-B1ov-SNz.js";
17
17
  import { S as cleanJsonc, _ as renderCodexHookTables, c as CODEX_HOME_PROFILE, f as QWEN_HOME_PROFILE, l as COPILOT_HOME_PROFILE, p as doesProjectConfigTurnHooksOff, t as AGENT_HOME_CONFIG_NAME, u as GEMINI_HOME_PROFILE, v as renderCodexHooksBlock, x as tomlBasicString } from "./agent-home-core-DxJ5_9_c.js";
18
18
  import { c as realAgentHome, i as holdPreparedAgentHome, l as releaseAgentHome, n as generatedAgentHomePath, s as readOptionalText } from "./agent-home-KhnohDHV.js";
19
19
  import { t as kimi } from "./kimi-bJFSfqLq.js";
20
- import { c as SHELL_AGENT_ID } from "./config-wPv6Of22.js";
20
+ import { c as SHELL_AGENT_ID } from "./config-DjZbYmaB.js";
21
21
  import fs from "node:fs";
22
22
  import path from "node:path";
23
23
  import os from "node:os";
@@ -0,0 +1 @@
1
+ export { t as askAgentApi, n as postToAgentIngress, r as runAgentApiCli, i as sessionLimitsHelpLines } from "./agent-api-cli-EA42jg6w.js";
@@ -1,5 +1,5 @@
1
1
  import { a as resolveHookTarget } from "./hook-relay-core-COOPCFwv.js";
2
- import { Q as formatSessionLimits, i as agentCommandSpec, m as isAgentApiVerb, st as parseCommand, t as AGENT_COMMAND_HELP } from "./agent-api-core-DfuQ4RDS.js";
2
+ import { Q as formatSessionLimits, i as agentCommandSpec, m as isAgentApiVerb, st as parseCommand, t as AGENT_COMMAND_HELP } from "./agent-api-core-D0w78vXc.js";
3
3
  import { t as AgentNeedReply } from "./secrets-DUjhXqjU.js";
4
4
  import { d as AgentLimitsReply, r as AGENT_URL_ENV } from "./session-BygOlxkV.js";
5
5
  import { D as STEP_STATUSES, E as Op, F as WhiteboardAgentReply } from "./whiteboard-BRwReLkT.js";
@@ -4,7 +4,7 @@ import { n as AgentNeedRequest } from "./secrets-DUjhXqjU.js";
4
4
  import { I as WhiteboardAgentRequest } from "./whiteboard-BRwReLkT.js";
5
5
  import { n as isRecord } from "./coerce-D6vRlIGO.js";
6
6
  import { a as firstCodePoints } from "./text-BDF4aFhQ.js";
7
- import { l as TASK_TITLE_SOURCE_PRIORITY, o as PersistedTaskTitle } from "./config-wPv6Of22.js";
7
+ import { l as TASK_TITLE_SOURCE_PRIORITY, o as PersistedTaskTitle } from "./config-DjZbYmaB.js";
8
8
  import path from "node:path";
9
9
  import { parseArgs } from "node:util";
10
10
  import crypto from "node:crypto";
@@ -2,6 +2,7 @@ import { Nn as repoParts, _n as PrFlowsSettings, gt as SessionPrLinks, q as Task
2
2
  import { n as isRecord } from "./coerce-D6vRlIGO.js";
3
3
  import { $ as BRANCH_GC_STALE_DAYS_RANGE, B as DISCORD_CHANNEL_NAME_RE, Ct as POSTHOG_TRANSIENT_RECURRENCE_RANGE, Et as TASK_TITLE_TIMEOUT_RANGE, Ot as USAGE_INTEGER_RANGES, Q as BRANCH_GC_INTERVAL_MS_RANGE, St as POSTHOG_TRAFFIC_MULTIPLIER_RANGE, V as SKILL_NAME_RE, X as WorkflowsSettingsUpdate, Y as WorkflowsSettings, _t as POSTHOG_PROJECT_ID_RANGE, bt as POSTHOG_TRAFFIC_COOLDOWN_RANGE, dt as POSTHOG_ESCALATION_RANGE, et as COMMUNITY_INTERVAL_MINUTES_RANGE, f as GitObjectSha, ft as POSTHOG_FIX_TIMEOUT_RANGE, gt as POSTHOG_MIN_USERS_RANGE, ht as POSTHOG_MAX_CONCURRENT_RANGE, i as HostEntries, ln as UpdateChannel, lt as PORT_RANGE, m as RaceId, mt as POSTHOG_INVESTIGATION_TIMEOUT_RANGE, ot as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, pt as POSTHOG_INTERVAL_RANGE, st as MEMORY_RESERVE_MB_RANGE, tt as FIXED_PORT_RANGE, ut as POSITIVE_NUMBER_RANGE, v as AgentHomeKind, vt as POSTHOG_RECURRENCE_WINDOW_RANGE, wt as REPLAY_BUFFER_KB_RANGE, xt as POSTHOG_TRAFFIC_MIN_USERS_RANGE, y as AgentSetup, yt as POSTHOG_TRAFFIC_BASELINE_RANGE } from "./control-messages-DkKr9vbw.js";
4
4
  import { c as QuestionManagerSettings } from "./question-manager-C_RzS1Ot.js";
5
+ import { y as isLinkUrlSafe } from "./watcher-link-xW9PMs77.js";
5
6
  import path from "node:path";
6
7
  import { z } from "zod";
7
8
  // shared/contracts/config-numbers-core.ts
@@ -435,6 +436,7 @@ var Config = z.object({
435
436
  allowedOrigins: z.array(z.string()).optional(),
436
437
  ownerLogin: z.string().optional()
437
438
  }).passthrough().optional(),
439
+ watcher: z.object({ url: z.string().refine(isLinkUrlSafe, { error: "watcher.url must use https, or http only for this machine" }).optional() }).passthrough().optional(),
438
440
  hosts: HostEntries.optional(),
439
441
  vault: VaultFileSettings,
440
442
  projects: z.array(ProjectConfig)
@@ -512,6 +514,7 @@ Object.freeze([
512
514
  "shareCommitProvenance",
513
515
  "hooks",
514
516
  "remote",
517
+ "watcher",
515
518
  "projects"
516
519
  ]);
517
520
  function configIssueMessage(error) {
@@ -1,9 +1,9 @@
1
1
  import { n as equalsIgnoringCaseOnWindows, r as isPathInside } from "./paths-C2u2R_6l.js";
2
2
  import { a as withoutEnvSecrets, i as withEnvSecrets, n as readEnvSecrets } from "./config-secrets-core-Dl2-_qLd.js";
3
- import { d as BranchGcFileSettings, f as USAGE_COST_MODES, i as Config, m as normalizeLegacyConfigNumbers, n as BUILTIN_AGENT_IDS, s as RUNTIME_CONFIG_SCALAR_KEYS, t as AGENT_ID_SHAPE_MESSAGE, u as configIssueMessage } from "./config-wPv6Of22.js";
3
+ import { d as BranchGcFileSettings, f as USAGE_COST_MODES, i as Config, m as normalizeLegacyConfigNumbers, n as BUILTIN_AGENT_IDS, s as RUNTIME_CONFIG_SCALAR_KEYS, t as AGENT_ID_SHAPE_MESSAGE, u as configIssueMessage } from "./config-DjZbYmaB.js";
4
4
  import { At as USAGE_SCAN_INTERVAL_RANGE, Dt as USAGE_BUDGET_RANGE, Et as TASK_TITLE_TIMEOUT_RANGE, Mt as WORKFLOWS_MAX_CONCURRENT_SESSIONS_RANGE, Ot as USAGE_INTEGER_RANGES, S as DEFAULT_MODELS, St as POSTHOG_TRAFFIC_MULTIPLIER_RANGE, Tt as REVIEWS_TURN_LIMIT_RANGE, _t as POSTHOG_PROJECT_ID_RANGE, an as OPERATOR_ACTIONS_BY_SURFACE, at as FLYING_ANIMALS_SCALE_RANGE, cn as UPDATE_CHANNELS, ct as NON_NEGATIVE_NUMBER_RANGE, en as DASHBOARD_VIEWS, et as COMMUNITY_INTERVAL_MINUTES_RANGE, ft as POSTHOG_FIX_TIMEOUT_RANGE, in as ONBOARDING_STEP_STATES, it as FLYING_ANIMALS_GAP_RANGE, jt as WORKFLOWS_MAX_ACTIONS_PER_POLL_RANGE, kt as USAGE_RETAIN_DAYS_RANGE, lt as PORT_RANGE, nt as FLYING_ANIMALS_DEFAULTS, on as OPERATOR_SURFACES, ot as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, rn as ONBOARDING_STEPS, rt as FLYING_ANIMALS_DURATION_RANGE, st as MEMORY_RESERVE_MB_RANGE, tt as FIXED_PORT_RANGE, u as HintFeature, ut as POSITIVE_NUMBER_RANGE, wt as REPLAY_BUFFER_KB_RANGE, xt as POSTHOG_TRAFFIC_MIN_USERS_RANGE, yt as POSTHOG_TRAFFIC_BASELINE_RANGE } from "./control-messages-DkKr9vbw.js";
5
5
  import { N as SESSION_COMMANDS, Tn as prFlowRulesJsonSchema, an as PrFlowCommand, fn as PrFlowPrAction, hn as PrFlowSourceCommand, pn as PrFlowRule } from "./session-BygOlxkV.js";
6
- import { l as PROBE_CREDENTIALS, m as WATCHER_LANE_IDS } from "./watcher-link-BKWi5aJM.js";
6
+ import { l as PROBE_CREDENTIALS, m as WATCHER_LANE_IDS } from "./watcher-link-xW9PMs77.js";
7
7
  import { n as loopbackOverrideOrigin } from "./loopback-hosts-L-YKCy4U.js";
8
8
  import { n as isRecord } from "./coerce-D6vRlIGO.js";
9
9
  import { l as QuestionRule } from "./question-manager-C_RzS1Ot.js";
@@ -106,7 +106,8 @@ var WATCHER_TELEMETRY_LANES = Object.freeze([...WATCHER_LANE_IDS, "other"]);
106
106
  var WATCHER_CHILD_END_KINDS = Object.freeze([
107
107
  "exited",
108
108
  "crashed",
109
- "failed_to_start"
109
+ "failed_to_start",
110
+ "unreachable"
110
111
  ]);
111
112
  var WATCHER_FAILURE_KINDS = Object.freeze([
112
113
  "no_credential",
@@ -0,0 +1 @@
1
+ export { s as loadConfigFile } from "./config-store-D0ubZ2ez.js";
@@ -2,7 +2,7 @@ import { i as HostEntries } from "./control-messages-DkKr9vbw.js";
2
2
  import { r as errorMessage } from "./text-BDF4aFhQ.js";
3
3
  import { t as renderTable } from "./ascii-figure-core-BegIbndz.js";
4
4
  import { r as removeHostFrom, t as addHostTo } from "./host-registry-core-BZJqNz7o.js";
5
- import { i as saveValidatedConfig, n as requireView, t as processIo } from "./settings-cli-Dk5QXFJ2.js";
5
+ import { i as saveValidatedConfig, n as requireView, t as processIo } from "./settings-cli-CkVAoy96.js";
6
6
  // server/hosts/host-cli.ts
7
7
  var DEFAULT_DASHBOARD_PORT = 3e3;
8
8
  function registeredHosts() {
@@ -1,7 +1,7 @@
1
1
  import { $t as CONTROL_FRAME_MAX_BYTES, A as BenchmarkSuite, B as DISCORD_CHANNEL_NAME_RE, Bt as issuePullRequestStateFromGithub, C as EFFORT_OPTION_ID, D as BenchmarkJudgement, E as BenchmarkId, F as CommunityActionRequest, Ft as IssueKey, G as GithubPrsFrame, Gt as TraceCheckpoint, H as GithubPrDetailNode, Ht as HookEnvelope, I as CommunityDraft, It as IssueUpdate, J as WorkflowLabelName, Jt as ChangeMap, K as comparablePrKey, Kt as TraceRecord, L as CommunityItem, Lt as IssuesSearchResponse, M as MergedPrListing, N as MinedPrReviewData, Nt as GithubIssuePullRequestsRepository, O as BenchmarkRun, Ot as USAGE_INTEGER_RANGES, P as PrCheckoutCaseInput, Pt as GithubIssueResponse, Qt as CLIENT_LOG_TEXT_MAX_CHARS, R as CommunityState, Rt as IssuesState, S as DEFAULT_MODELS, T as BenchmarkCase, U as GithubPrKey, Ut as SessionSetup, V as SKILL_NAME_RE, W as GithubPrLightSearchNode, Wt as MAX_RAW_LINE_CHARS, Xt as CHANGES_POLL_INTERVAL_MS, Y as WorkflowsSettings, Yt as changeMapFactId, Z as WorkflowsState, _ as RaceSpec, _n as PlanRevision, b as CATALOG_AGENT_IDS, c as HINT_FEATURES, d as ContestantMetrics, dn as PLAN_BODY_CAP_BYTES, fn as PLAN_HOOK_EVENT, g as RaceRecord, gn as PlanDecision, h as RaceJudgeAgent, hn as PLAN_TOOL_NAME, j as CommitComparison, k as BenchmarkStatus, l as HINT_VIEW_BY_FEATURE, mn as PLAN_RESULT_HOOK_EVENT, n as PackApproveRequest, o as HubPhoneAlertFrame, ot as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, p as RACE_CRITERIA, pn as PLAN_HOOK_OUTPUT_MAX_CHARS, q as WorkflowCommentBody, qt as CoherenceJournalOutput, r as HUB_PHONE_ALERT_TEXT_MAX, s as FeatureHintState, sn as pullRequestKeyFromReference, t as ClientMessage, tn as GithubTeam, un as UpdateJournal, vn as parseExitPlanModeHookPayload, w as BenchmarkActionRequest, x as CatalogAgentId, yn as planTitle, z as CommunityVerdict, zt as IssuesStatus } from "./control-messages-DkKr9vbw.js";
2
2
  import { a as rawTextOr, i as positiveNumberOr, n as isRecord$2, o as textOr, r as numberOr, t as coercedNumberOr } from "./coerce-D6vRlIGO.js";
3
- import { $ as codexHomes, $t as appendRemovalRecordSync, A as parseRegistryLatest, At as shouldReplace, B as imageMimeForUploadFilename, Bt as HOOK_EVENT_CATALOG, C as NATIVE_INSTALL_SCRIPTS_FLAG, Ct as foldEntryIntoGenerationRollup, D as normalizeSha, Dt as mergeGenerationRollups, E as isCheckFresh, Et as isWithinGenerationRecencyWindow, F as MAX_UPLOAD_BYTES, Ft as PLAN_HOLD_RELEASE_MS, G as committedOffsetFromTraceTailOrNull, Gt as normalizeHook, H as planUploadRetention, Ht as agentHookGroupOf, I as buildUploadFilename, It as buildHookSettings, J as isOversizedPartialLine, Jt as removeHook, K as completeLineBytes, Kt as rawStoredHooks, L as decideUploadType, Lt as generateToken, M as pickNewestPublished, Mt as vendorUsageEntry, N as shortSha, Nt as claudeCode, O as normalizeUpdateChannel, Ot as parseJsonLine$1, P as openContainedFile, Pt as HOOK_EVENTS, Q as codexFallbackRoots, Qt as appendRemovalRecord, R as exceedsUploadCap, Rt as sweepOrphans, S as HOMEBREW_COMMAND, St as expandAdvisorIterations, T as decideUpdateStatus, Tt as identityFromRelPath, U as MAX_TRANSCRIPT_READ_BYTES, Ut as appendUserHooks, V as isSafePathSegment, Vt as ID_RE, W as TRACE_TAIL_SCAN_BYTES, Wt as hooksForProject, X as resumeOffsetFrom, Xt as makeHostScratchDirectory, Y as planContiguousRead, Yt as upsertHook, Z as withCommittedOffset, Zt as sweepOrphanedHostScratch, _ as folderTrustRoot, _t as kimiDedupIdentity, a as customAgentFingerprint, at as expandTilde, b as requestCodexAppServer, bt as dedupKeys, c as hookProfileOf, ct as kimiHomes, d as isKnownAgentId, dt as resolveProjectsDirs, en as recordSweptPath, et as codexRootCandidates, f as listAgentIds, ft as scopedClaudeRoots, g as setCustomAgents, gt as splitLines, h as resolveAdapter, ht as shouldPersistWarehouse, i as commandFor, it as dedupeCodexFiles, j as parseResolvedSha, jt as totalTokensOf$1, k as parseRegistryDeprecation, kt as parseUsageLine, l as isBuiltInAgentId, lt as passOutcome, m as resetCommandCache, mt as shouldEvaluateDespiteIoFailures, n as DEFAULT_AGENT_ID$1, nn as listClaudeGlobalConfigPathCandidates, nt as continuationDelayMs, o as describeAgentResolvability, ot as grokHomes, p as projectHookConfigRelPaths, pt as sessionsRootCandidates, q as containmentRefusalReason, qt as readStoredHooks, r as cachedAgentResolvability, rn as HOOK_TOOLS, rt as decideFileRead, s as getAdapter, st as isUsageFile, tn as removalsJournalPath, tt as codexSessionIdFromPath, u as isFirstClassAgent, ut as projectDirCandidates, v as codex, vt as parseKimiUsageLine, w as decideInstallFlavor, wt as foldReplacementIntoGenerationRollup, x as BINARY_UPDATER_NAME, xt as emptyTotals, y as readHostCodexVersion, yt as addEntryToTotals, z as framePathPaste, zt as writeSessionSettings } from "./adapters-CNSwsGdu.js";
4
- import { $ as buildBrowserExceptionProperties, C as isExperimentalBuild, D as settingsBlockSpecFor, E as mergeSettingsBlock, G as LOGGED_FAST_CLOSE_COUNTS, H as isExperimentalSetting, J as parseDataClientMessage, K as describeDataAttach, O as validateSettingsBlock, Q as buildAiGenerationEvents, S as compareReleaseVersions, U as DEEP_HISTORY_SCROLLBACK_LINES, X as POSTHOG_INGEST_HOST_ENV, Y as FIRST_RUN_NOTICE, Z as adapterBucket, _ as sessionIdFromBranch, _t as TELEMETRY_EVENT_SCHEMAS, a as generateProjectId, at as decideIsDevInstall, b as DEFAULT_TIMER_FNS, bt as comparableDirectoryPath, ct as exceptionFingerprint, d as DEFAULT_CONFIG, dt as parsePosthogReleaseId, et as buildExceptionProperties, f as DEFAULT_BRANCH_GC_PREFIXES, ft as resolveProjectToken, g as planWorktreeGc, gt as PendingCrashReport, h as planBranchGc, ht as DashboardTelemetryReport, i as ensureProjectIds, it as codexUserIdOf, k as SETTINGS_INDEX, lt as isIngestOverrideIgnored, m as matchedPrefix, mt as telemetryFlagsUrl, n as createConfigStore, nt as classifySessionExit, o as glimmervoidHomeDir, ot as decideRemoteTelemetryState, p as isGcCandidateWorktree, pt as telemetryBatchUrl, q as parseDataAttach, r as ABORT_CONFIG_SAVE, rt as claudeAccountUuidOf, st as decideTelemetryConsent, tt as buildPersonProperties, ut as nodeMajorVersion, v as usablePrefixes, vt as TelemetryState, x as unrefTimer, xt as isSameDirectoryPath, y as worktreeIntegrationTips, yt as canonicalizePath, z as valueAtPath } from "./config-store-BE5X4H-R.js";
3
+ import { $ as codexHomes, $t as appendRemovalRecordSync, A as parseRegistryLatest, At as shouldReplace, B as imageMimeForUploadFilename, Bt as HOOK_EVENT_CATALOG, C as NATIVE_INSTALL_SCRIPTS_FLAG, Ct as foldEntryIntoGenerationRollup, D as normalizeSha, Dt as mergeGenerationRollups, E as isCheckFresh, Et as isWithinGenerationRecencyWindow, F as MAX_UPLOAD_BYTES, Ft as PLAN_HOLD_RELEASE_MS, G as committedOffsetFromTraceTailOrNull, Gt as normalizeHook, H as planUploadRetention, Ht as agentHookGroupOf, I as buildUploadFilename, It as buildHookSettings, J as isOversizedPartialLine, Jt as removeHook, K as completeLineBytes, Kt as rawStoredHooks, L as decideUploadType, Lt as generateToken, M as pickNewestPublished, Mt as vendorUsageEntry, N as shortSha, Nt as claudeCode, O as normalizeUpdateChannel, Ot as parseJsonLine$1, P as openContainedFile, Pt as HOOK_EVENTS, Q as codexFallbackRoots, Qt as appendRemovalRecord, R as exceedsUploadCap, Rt as sweepOrphans, S as HOMEBREW_COMMAND, St as expandAdvisorIterations, T as decideUpdateStatus, Tt as identityFromRelPath, U as MAX_TRANSCRIPT_READ_BYTES, Ut as appendUserHooks, V as isSafePathSegment, Vt as ID_RE, W as TRACE_TAIL_SCAN_BYTES, Wt as hooksForProject, X as resumeOffsetFrom, Xt as makeHostScratchDirectory, Y as planContiguousRead, Yt as upsertHook, Z as withCommittedOffset, Zt as sweepOrphanedHostScratch, _ as folderTrustRoot, _t as kimiDedupIdentity, a as customAgentFingerprint, at as expandTilde, b as requestCodexAppServer, bt as dedupKeys, c as hookProfileOf, ct as kimiHomes, d as isKnownAgentId, dt as resolveProjectsDirs, en as recordSweptPath, et as codexRootCandidates, f as listAgentIds, ft as scopedClaudeRoots, g as setCustomAgents, gt as splitLines, h as resolveAdapter, ht as shouldPersistWarehouse, i as commandFor, it as dedupeCodexFiles, j as parseResolvedSha, jt as totalTokensOf$1, k as parseRegistryDeprecation, kt as parseUsageLine, l as isBuiltInAgentId, lt as passOutcome, m as resetCommandCache, mt as shouldEvaluateDespiteIoFailures, n as DEFAULT_AGENT_ID$1, nn as listClaudeGlobalConfigPathCandidates, nt as continuationDelayMs, o as describeAgentResolvability, ot as grokHomes, p as projectHookConfigRelPaths, pt as sessionsRootCandidates, q as containmentRefusalReason, qt as readStoredHooks, r as cachedAgentResolvability, rn as HOOK_TOOLS, rt as decideFileRead, s as getAdapter, st as isUsageFile, tn as removalsJournalPath, tt as codexSessionIdFromPath, u as isFirstClassAgent, ut as projectDirCandidates, v as codex, vt as parseKimiUsageLine, w as decideInstallFlavor, wt as foldReplacementIntoGenerationRollup, x as BINARY_UPDATER_NAME, xt as emptyTotals, y as readHostCodexVersion, yt as addEntryToTotals, z as framePathPaste, zt as writeSessionSettings } from "./adapters-mKn9rSYO.js";
4
+ import { $ as buildBrowserExceptionProperties, C as isExperimentalBuild, D as settingsBlockSpecFor, E as mergeSettingsBlock, G as LOGGED_FAST_CLOSE_COUNTS, H as isExperimentalSetting, J as parseDataClientMessage, K as describeDataAttach, O as validateSettingsBlock, Q as buildAiGenerationEvents, S as compareReleaseVersions, U as DEEP_HISTORY_SCROLLBACK_LINES, X as POSTHOG_INGEST_HOST_ENV, Y as FIRST_RUN_NOTICE, Z as adapterBucket, _ as sessionIdFromBranch, _t as TELEMETRY_EVENT_SCHEMAS, a as generateProjectId, at as decideIsDevInstall, b as DEFAULT_TIMER_FNS, bt as comparableDirectoryPath, ct as exceptionFingerprint, d as DEFAULT_CONFIG, dt as parsePosthogReleaseId, et as buildExceptionProperties, f as DEFAULT_BRANCH_GC_PREFIXES, ft as resolveProjectToken, g as planWorktreeGc, gt as PendingCrashReport, h as planBranchGc, ht as DashboardTelemetryReport, i as ensureProjectIds, it as codexUserIdOf, k as SETTINGS_INDEX, lt as isIngestOverrideIgnored, m as matchedPrefix, mt as telemetryFlagsUrl, n as createConfigStore, nt as classifySessionExit, o as glimmervoidHomeDir, ot as decideRemoteTelemetryState, p as isGcCandidateWorktree, pt as telemetryBatchUrl, q as parseDataAttach, r as ABORT_CONFIG_SAVE, rt as claudeAccountUuidOf, st as decideTelemetryConsent, tt as buildPersonProperties, ut as nodeMajorVersion, v as usablePrefixes, vt as TelemetryState, x as unrefTimer, xt as isSameDirectoryPath, y as worktreeIntegrationTips, yt as canonicalizePath, z as valueAtPath } from "./config-store-D0ubZ2ez.js";
5
5
  import { C as memoryReserveBytes, E as parseMemAvailableBytes, S as headroomFromReadings, T as parseCgroupV2Path, _ as createSerialQueue, a as jsonStateLoadError, b as cgroupAncestorPaths, c as loadedJsonValue, d as writeJsonAtomic, f as writeJsonAtomicSync, g as createMemoryAdmission, h as createKeyedSerialQueue, i as createJsonStateWriter, m as writeTextAtomicSync, n as appendJsonLines, o as loadJsonStateFile, p as writeTextAtomic, r as createJsonStateStore, s as loadJsonStateFileSync, t as appendJsonLine, v as createSpawnGate, w as parseCgroupBytes, x as cgroupLimitBytes, y as isQueueAdmissionTimeout } from "./json-file-BmnDu2ZM.js";
6
6
  import { a as sanitizeWorktreeName, i as safePathSegment, n as equalsIgnoringCaseOnWindows, r as isPathInside, t as caseFoldedPathKey } from "./paths-C2u2R_6l.js";
7
7
  import { o as isMissingFileError, r as errorMessage, t as errorCode } from "./text-BDF4aFhQ.js";
@@ -11,14 +11,14 @@ import { $ as MyPrCheckContextsResponse, $t as PR_ACTION_TOKEN_ENV, A as QUIET_N
11
11
  import { a as QUESTION_ANSWERED_NOTIFY_CATEGORY, c as QuestionManagerSettings, i as ManagerLaneResult, n as MANAGER_DECISION_EVENT, r as ManagerDecision, t as MANAGER_DECISION_AUDIT_KIND } from "./question-manager-C_RzS1Ot.js";
12
12
  import { E as Op, H as mediaOfBox, M as WHITEBOARD_ASSET_ROUTE, N as WHITEBOARD_LIMITS, O as STICKY_TONES, Q as ICON_NAMES, U as sparseBoardReply, V as linesOfBox, a as BOARD_PAGE_PARAMS_MESSAGE, b as DialManifest, i as BOARD_PAGE_GESTURE_MESSAGE, m as BoardRegion, n as BOARD_MEDIA_MAX_EDGE_PX, nt as DEVICE_NAMES, o as BOARD_PAGE_THEME_MESSAGE, p as BoardRecord, r as BOARD_PAGE_ESCAPE_MESSAGE, s as BOARD_PAGE_ZOOMED_MESSAGE, t as BOARD_DOC_CAP_BYTES } from "./whiteboard-BRwReLkT.js";
13
13
  import { n as promptContextReplyOf, o as toolHookContextReplyOf, r as refocusReplyFor, t as REFOCUS_NOTE } from "./refocus-core-DlEDNY3E.js";
14
- import { $ as hintFor, A as fencedUntrustedSections, B as RESUME_ID_RE, C as cleanTaskPrompt, D as extractNotifiedTaskIds, E as extractHookTaskTitle, F as resolveRefocusTaskTitle, G as shouldAdoptReportedResumeId, H as pickAutoResume, I as resolveTaskTitle, J as listRepoWorktreePaths, K as claudeProjectsDir, L as seedTaskTitleSources, M as isSubstantivePrompt, N as parseRefinedSessionName, O as extractOscTaskTitle, P as parseRefinedTaskTitle, R as startsWithSessionName, S as chooseRefinedSessionName, T as extractAiTitle, U as resolveResumeTarget, V as isConversationReplacedAtStartup, W as resumePromptFor, X as nextSuggestedName, Y as isAutoNameOf, Z as describeSessionLimits, _ as projectReviewDetail, a as checkAgentReply, b as buildPersistedTaskTitle, c as deriveChildSessionName, d as describePushLanding, et as permitsHelpCommand, f as describeRoleRefusal, g as projectMyPrs, h as parseAgentVerb, it as toolHookFactsOf, j as isSelfWakePrompt, k as extractPromptTaskTitle, l as describeChildEndNote, n as REFUSAL_REASON, nt as routeAgentNotes, o as decideAgentRequest, p as describeUnpushedCloseRefusal, q as listRepoConversations, rt as supervisionLine, s as decideSpawnAllowance, tt as promptHintFor, u as describeKeptChildAttention, v as projectReviews, w as decideTaskTitleRefinement, x as buildTaskTitleRefinementPrompt, y as tokensMatch, z as AUTO_CONTINUE_PROMPT } from "./agent-api-core-DfuQ4RDS.js";
14
+ import { $ as hintFor, A as fencedUntrustedSections, B as RESUME_ID_RE, C as cleanTaskPrompt, D as extractNotifiedTaskIds, E as extractHookTaskTitle, F as resolveRefocusTaskTitle, G as shouldAdoptReportedResumeId, H as pickAutoResume, I as resolveTaskTitle, J as listRepoWorktreePaths, K as claudeProjectsDir, L as seedTaskTitleSources, M as isSubstantivePrompt, N as parseRefinedSessionName, O as extractOscTaskTitle, P as parseRefinedTaskTitle, R as startsWithSessionName, S as chooseRefinedSessionName, T as extractAiTitle, U as resolveResumeTarget, V as isConversationReplacedAtStartup, W as resumePromptFor, X as nextSuggestedName, Y as isAutoNameOf, Z as describeSessionLimits, _ as projectReviewDetail, a as checkAgentReply, b as buildPersistedTaskTitle, c as deriveChildSessionName, d as describePushLanding, et as permitsHelpCommand, f as describeRoleRefusal, g as projectMyPrs, h as parseAgentVerb, it as toolHookFactsOf, j as isSelfWakePrompt, k as extractPromptTaskTitle, l as describeChildEndNote, n as REFUSAL_REASON, nt as routeAgentNotes, o as decideAgentRequest, p as describeUnpushedCloseRefusal, q as listRepoConversations, rt as supervisionLine, s as decideSpawnAllowance, tt as promptHintFor, u as describeKeptChildAttention, v as projectReviews, w as decideTaskTitleRefinement, x as buildTaskTitleRefinementPrompt, y as tokensMatch, z as AUTO_CONTINUE_PROMPT } from "./agent-api-core-D0w78vXc.js";
15
15
  import { a as mcpLaunchFor, o as parsePresentedCredential } from "./agent-config-BJVJpVzX.js";
16
16
  import { a as elementPageOf, c as tileKeysFor, l as pictureRefusalOf, o as fitsOnePage, s as tileIdOf } from "./layout-worker-core-Bo1IQfa3.js";
17
17
  import { c as VAULT_REPLACED_CLOSE_CODE, d as VaultCompanionMessage, f as VaultJob, l as VAULT_SOCKET_PATH, n as AgentNeedRequest } from "./secrets-DUjhXqjU.js";
18
- import { a as ConfigUpdate, c as SHELL_AGENT_ID, f as USAGE_COST_MODES, n as BUILTIN_AGENT_IDS, p as USAGE_VENDOR_KEYS, r as BrowserConfig, s as RUNTIME_CONFIG_SCALAR_KEYS, u as configIssueMessage } from "./config-wPv6Of22.js";
18
+ import { a as ConfigUpdate, c as SHELL_AGENT_ID, f as USAGE_COST_MODES, n as BUILTIN_AGENT_IDS, p as USAGE_VENDOR_KEYS, r as BrowserConfig, s as RUNTIME_CONFIG_SCALAR_KEYS, u as configIssueMessage } from "./config-DjZbYmaB.js";
19
19
  import { _ as decideHostAllowed, c as approvedPackPanels, d as packRow, f as pendingPackNote, g as readCappedBody, h as parseJsonBody, l as approvedPackThemes, m as decodeHeaderText, n as readPacksForAgent, p as declaredContentLength, u as packFileHeaders } from "./pack-agent-D-Uh314s.js";
20
20
  import { a as formatSshPublicKey, c as orderAgentSockets, i as commitSigningShimText, l as parseSshPublicKey, n as NO_AGENT_HOLDS_KEY, o as isForwardedAgentDirName, r as agentListsKey, s as isSignableGitObject, t as COMMIT_SIGNING_SHIM_NAME, u as wellKnownAgentSocketPaths } from "./ssh-signing-core-CmYFjvrx.js";
21
- import { a as configSiblingPath, c as defaultPairingsPath, d as decideDeviceAuth, f as deviceNameFromUserAgent, i as validateRemoteConfig, l as defaultSeenPath, n as isLoopbackHost, o as createPairingsStore, p as hashSecret, r as normalizeRemoteConfig, s as createSeenStore, t as decideBindHost, u as DEFAULT_DEVICE_MAX_AGE_MS } from "./remote-config-BPeUod_r.js";
21
+ import { a as configSiblingPath, c as defaultPairingsPath, d as decideDeviceAuth, f as deviceNameFromUserAgent, i as validateRemoteConfig, l as defaultSeenPath, n as isLoopbackHost, o as createPairingsStore, p as hashSecret, r as normalizeRemoteConfig, s as createSeenStore, t as decideBindHost, u as DEFAULT_DEVICE_MAX_AGE_MS } from "./remote-config-BfGYhhKn.js";
22
22
  import { r as shellQuote } from "./hook-command-core-9E3QR9Bk.js";
23
23
  import { c as realAgentHome, f as createHeldSessionTempFolder, h as trashSessionTempFolderOnceUnheld, m as sessionIdOfLockFile, p as releaseSessionLock, u as releaseEveryUnheldAgentHomeSecrets } from "./agent-home-KhnohDHV.js";
24
24
  import { A as savedRuleFor, B as withInterruptedRuns, D as prFlowSetup, E as prActionRunAfterExit, F as teammateThreadItems, G as defineTransitions, H as withPrActionRun, I as threadCandidates, M as shouldTellBranchMoved, N as sourceCandidates$1, O as prFlowsConfig, R as visibleRun, S as packPathsOf, U as withReopened, V as withOnlyOpenPrs, W as withRuleRun, _ as isCommandStillRunning, b as newPrActionRun, d as acceptReport, f as branchMovedNote, g as flaggingReviewers, h as fixLocallyPrompt, i as packsStatePath, j as scopedToRepo, l as PacksState, o as readPackDir, p as commandFingerprint, r as packDirsUnder, s as PACK_FILE_NAME, t as PACKS_DIR_NAME, v as itemLocation, w as plannedActions, y as mergeItems, z as withHandled } from "./pack-files-DggkYpgV.js";
@@ -27,10 +27,10 @@ import { B as planSteps$1, G as boardIndexOf, T as cappedWarnings, U as assetIdO
27
27
  import { n as createLayoutClient, t as createBoardStore } from "./board-store-client-DNlvZvGx.js";
28
28
  import { t as LAYOUT_CACHE_FILENAME } from "./layout-cache-msy3RopJ.js";
29
29
  import { C as createTsconfigPathsResolver, E as resolveExtendsPath, T as parseTsconfigJsonc, d as KIMI_HOME_PROFILE, w as matchPathPatterns } from "./agent-home-core-DxJ5_9_c.js";
30
- import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-CtpKozFQ.js";
30
+ import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-KDIYBU8v.js";
31
31
  import { n as escapeMarkup } from "./whiteboard-svg-core-C8es_jiE.js";
32
32
  import { n as DEFAULT_MAX_MS, r as nextBackoffMs, t as DEFAULT_BASE_MS } from "./backoff-CMhw1Fu8.js";
33
- import { _ as WatcherStatus, a as LINK_SERVER_URL_ENV, c as Nudge, f as STATUS_PATH, i as LINK_SECRET_ENV, m as WATCHER_LANE_IDS, n as GITHUB_API_BASE_ENV, p as WATCHER_HOME_ENV, v as githubApiOrigin } from "./watcher-link-BKWi5aJM.js";
33
+ import { _ as WatcherStatus, a as LINK_SERVER_URL_ENV, c as Nudge, f as STATUS_PATH, i as LINK_SECRET_ENV, m as WATCHER_LANE_IDS, n as GITHUB_API_BASE_ENV, p as WATCHER_HOME_ENV, v as githubApiOrigin } from "./watcher-link-xW9PMs77.js";
34
34
  import { n as parseJsonRecord, t as parseJsonOrNull } from "./json-core-B1ov-SNz.js";
35
35
  import { n as requireExecutableSpawnHelper } from "./node-pty-preflight-D2ktjjKG.js";
36
36
  import { t as DETACHED_DESKTOP_BUS_ADDRESS } from "./spawn-env-VKivL0Ed.js";
@@ -52984,7 +52984,15 @@ function createWatcherLink({ watcherHome, credentials, linkSecret, fetchFn = fet
52984
52984
  async function adoptWatcherStatus() {
52985
52985
  const status = await readWatcherStatus();
52986
52986
  if (status === null) return false;
52987
- if (deliveredProbeSet === null || status.probeSetRevision !== deliveredProbeSet.revision) return true;
52987
+ if (deliveredProbeSet === null) return true;
52988
+ if (status.probeSetRevision !== deliveredProbeSet.revision) {
52989
+ log.warn("[watcher] the watcher holds a different probe set, delivering again");
52990
+ deliveredProbeSet = null;
52991
+ deliveredCredentialsDigest = null;
52992
+ updateCoverage();
52993
+ probesMayHaveChanged();
52994
+ return true;
52995
+ }
52988
52996
  for (const probeStatus of status.probes) {
52989
52997
  if (probeStatus.status !== "failing" || probeStatus.failure === null) continue;
52990
52998
  const failingProbe = deliveredProbeSet.probes.find((probe) => probe.id === probeStatus.probeId);
@@ -53099,7 +53107,7 @@ function createWatcherLink({ watcherHome, credentials, linkSecret, fetchFn = fet
53099
53107
  updateCoverage();
53100
53108
  if (nudge.kind !== "failing") sourcesByLaneId.get(probe.laneId)?.onNudge(nudge);
53101
53109
  }
53102
- async function answerNudgeRequest(request, response) {
53110
+ async function replyToNudge(request, response) {
53103
53111
  const path = new URL(request.url ?? "/", "http://server").pathname;
53104
53112
  const reply = (status) => {
53105
53113
  response.writeHead(status, {
@@ -53121,13 +53129,14 @@ function createWatcherLink({ watcherHome, credentials, linkSecret, fetchFn = fet
53121
53129
  handleNudge(nudge.data);
53122
53130
  return reply(200);
53123
53131
  }
53124
- function listenForNudges() {
53125
- const server = http.createServer((request, response) => {
53126
- answerNudgeRequest(request, response).catch((answerError) => {
53127
- log.warn(`[watcher] nudge request failed: ${answerError.message}`);
53128
- if (!response.headersSent) response.writeHead(500).end();
53129
- });
53132
+ function answerNudgeRequest(request, response) {
53133
+ replyToNudge(request, response).catch((answerError) => {
53134
+ log.warn(`[watcher] nudge request failed: ${answerError.message}`);
53135
+ if (!response.headersSent) response.writeHead(500).end();
53130
53136
  });
53137
+ }
53138
+ function listenForNudges() {
53139
+ const server = http.createServer(answerNudgeRequest);
53131
53140
  nudgeServer = server;
53132
53141
  return new Promise((resolve, reject) => {
53133
53142
  server.once("error", reject);
@@ -53185,9 +53194,90 @@ function createWatcherLink({ watcherHome, credentials, linkSecret, fetchFn = fet
53185
53194
  registerProbeSource,
53186
53195
  probesMayHaveChanged,
53187
53196
  credentialsMayHaveChanged: probesMayHaveChanged,
53188
- takeRollup
53197
+ takeRollup,
53198
+ answerNudgeRequest
53199
+ };
53200
+ }
53201
+ // cloud/link/remote-watcher-starter.ts
53202
+ var STATUS_CHECK_MS = 6e4;
53203
+ var STATUS_TIMEOUT_MS = 15e3;
53204
+ function createRemoteWatcherStarter(remoteWatcherUrl, { statusCheckMs = STATUS_CHECK_MS, fetchFn = fetch, now = Date.now } = {}) {
53205
+ return ({ linkSecret, onListening, onEnded, log = console }) => {
53206
+ const commandKey = directionKey(linkSecret, "server-to-watcher");
53207
+ let checkTimer = null;
53208
+ let isAnswering = false;
53209
+ let answeringSinceMs = 0;
53210
+ async function isWatcherAnswering() {
53211
+ try {
53212
+ const response = await fetchFn(new URL(STATUS_PATH, remoteWatcherUrl), {
53213
+ method: "GET",
53214
+ headers: signedHeaders(commandKey, {
53215
+ method: "GET",
53216
+ path: STATUS_PATH,
53217
+ body: ""
53218
+ }, now()),
53219
+ signal: AbortSignal.timeout(STATUS_TIMEOUT_MS)
53220
+ });
53221
+ if (!response.ok) {
53222
+ await response.body?.cancel();
53223
+ return false;
53224
+ }
53225
+ const status = WatcherStatus.safeParse(await response.json());
53226
+ if (!status.success) return false;
53227
+ return status.data.nudgesFailingForMs === null || status.data.nudgesFailingForMs < statusCheckMs;
53228
+ } catch {
53229
+ return false;
53230
+ }
53231
+ }
53232
+ async function checkWatcher() {
53233
+ const answers = await isWatcherAnswering();
53234
+ if (checkTimer === null) return;
53235
+ if (answers) {
53236
+ if (!isAnswering) answeringSinceMs = now();
53237
+ isAnswering = true;
53238
+ onListening(remoteWatcherUrl);
53239
+ return;
53240
+ }
53241
+ if (!isAnswering) return;
53242
+ isAnswering = false;
53243
+ log.warn(`[watcher] the remote watcher at ${new URL(remoteWatcherUrl).origin} stopped answering or cannot nudge this server, lanes go back to their own timers`);
53244
+ onEnded({
53245
+ endKind: "unreachable",
53246
+ runMs: now() - answeringSinceMs,
53247
+ willRestart: true
53248
+ });
53249
+ }
53250
+ function scheduleCheck() {
53251
+ checkTimer = setTimeout(() => {
53252
+ checkWatcher().finally(() => {
53253
+ if (checkTimer !== null) scheduleCheck();
53254
+ });
53255
+ }, statusCheckMs);
53256
+ checkTimer.unref();
53257
+ }
53258
+ function start() {
53259
+ log.log(`[watcher] linking the remote watcher at ${new URL(remoteWatcherUrl).origin}`);
53260
+ isAnswering = true;
53261
+ answeringSinceMs = now();
53262
+ onListening(remoteWatcherUrl);
53263
+ scheduleCheck();
53264
+ }
53265
+ function stop() {
53266
+ if (checkTimer !== null) clearTimeout(checkTimer);
53267
+ checkTimer = null;
53268
+ }
53269
+ return {
53270
+ start,
53271
+ stop
53272
+ };
53189
53273
  };
53190
53274
  }
53275
+ // server/core/remote-watcher-core.ts
53276
+ function remoteWatcherUrlOf(configuredUrl, isRemoteListenerEnabled) {
53277
+ if (configuredUrl === void 0) return null;
53278
+ if (!isRemoteListenerEnabled) return null;
53279
+ return configuredUrl;
53280
+ }
53191
53281
  // cloud/link/link-secret.ts
53192
53282
  var LINK_SECRET_BYTES = 32;
53193
53283
  var LINK_SECRET_PATTERN = /^[0-9a-f]{64}$/;
@@ -65710,6 +65800,8 @@ function createBackend(httpServer, options = {}) {
65710
65800
  isRecheckingPostTurnReports = false;
65711
65801
  });
65712
65802
  }
65803
+ const remoteWatcherUrl = remoteWatcherUrlOf(config.watcher?.url, remote.enabled);
65804
+ if (config.watcher?.url !== void 0 && remoteWatcherUrl === null) console.warn("[watcher] watcher.url is ignored: the remote listener is off, so the doorman has nowhere to forward nudges; keeping the local watcher");
65713
65805
  const watcherLink = createWatcherLink({
65714
65806
  watcherHome: path.join(glimmervoidHomeDir(), "watcher"),
65715
65807
  linkSecret: loadOrCreateLinkSecret(path.join(glimmervoidHomeDir(), "watcher-link.key")),
@@ -65717,7 +65809,8 @@ function createBackend(httpServer, options = {}) {
65717
65809
  github: laneAccessConfigOf(configStore.config).readToken,
65718
65810
  posthog: readPosthogReadConnection(configStore.config)
65719
65811
  }),
65720
- telemetry
65812
+ telemetry,
65813
+ ...remoteWatcherUrl === null ? {} : { startWatcher: createRemoteWatcherStarter(remoteWatcherUrl) }
65721
65814
  });
65722
65815
  let stopConfigWatch = null;
65723
65816
  const shutdown = createBackendShutdown({
@@ -65889,7 +65982,13 @@ function createBackend(httpServer, options = {}) {
65889
65982
  port: remote.port,
65890
65983
  publicHost: remote.publicHost,
65891
65984
  attach(remoteHttpServer) {
65892
- remoteHttpServer.on("request", app);
65985
+ remoteHttpServer.on("request", (request, response) => {
65986
+ if (remoteWatcherUrl !== null && request.url?.split("?")[0] === "/link/nudges") {
65987
+ watcherLink.answerNudgeRequest(request, response);
65988
+ return;
65989
+ }
65990
+ app(request, response);
65991
+ });
65893
65992
  remoteHttpServer.on("upgrade", handleUpgrade);
65894
65993
  lifecycleServers.push(remoteHttpServer);
65895
65994
  }
@@ -559,7 +559,7 @@ async function runList() {
559
559
  process.stderr.write("glimmervoid packs list reads the running Glimmervoid, so it works inside a Glimmervoid session; the operator sees the same list in Settings, Packs\n");
560
560
  return 1;
561
561
  }
562
- const { askAgentApi } = await import("./agent-api-cli-D6Ld1V9y.js");
562
+ const { askAgentApi } = await import("./agent-api-cli-BfjInV6a.js");
563
563
  const reply = AGENT_REPLY_SCHEMAS.packs.safeParse(await askAgentApi("packs", { command: "list" }));
564
564
  if (!reply.success) {
565
565
  process.stderr.write("glimmervoid packs list: Glimmervoid did not answer with a pack list\n");
@@ -1,5 +1,5 @@
1
- import { c as resolveConfigPath } from "./config-store-BE5X4H-R.js";
2
- import { c as defaultPairingsPath, l as defaultSeenPath, o as createPairingsStore, r as normalizeRemoteConfig, s as createSeenStore } from "./remote-config-BPeUod_r.js";
1
+ import { c as resolveConfigPath } from "./config-store-D0ubZ2ez.js";
2
+ import { c as defaultPairingsPath, l as defaultSeenPath, o as createPairingsStore, r as normalizeRemoteConfig, s as createSeenStore } from "./remote-config-BfGYhhKn.js";
3
3
  import { r as errorMessage } from "./text-BDF4aFhQ.js";
4
4
  import fs from "node:fs";
5
5
  // server/text-format.ts
@@ -121,7 +121,7 @@ async function readServerConfig(askSetting) {
121
121
  };
122
122
  }
123
123
  async function readConfigFromServer() {
124
- const { askAgentApi } = await import("./agent-api-cli-D6Ld1V9y.js");
124
+ const { askAgentApi } = await import("./agent-api-cli-BfjInV6a.js");
125
125
  return readServerConfig((settingPath) => askAgentApi("settings", {
126
126
  command: "get",
127
127
  path: settingPath
@@ -267,7 +267,7 @@ async function runPrActionReport({ outcome, message, env }, io) {
267
267
  io.writeError("--outcome must be started, done, failed or refused, and --message at most 500 characters\n");
268
268
  return 1;
269
269
  }
270
- const { postToAgentIngress } = await import("./agent-api-cli-D6Ld1V9y.js");
270
+ const { postToAgentIngress } = await import("./agent-api-cli-BfjInV6a.js");
271
271
  const reply = await postToAgentIngress({
272
272
  endpoint: new URL(reportUrl),
273
273
  token,
@@ -2,7 +2,7 @@ import { n as errorLabel, r as errorMessage } from "./text-BDF4aFhQ.js";
2
2
  import { n as equalsIgnoringCaseOnWindows } from "./paths-C2u2R_6l.js";
3
3
  import { n as isRecord } from "./coerce-D6vRlIGO.js";
4
4
  import { a as jsonStateLoadError, d as writeJsonAtomic, f as writeJsonAtomicSync, l as sleepSync, s as loadJsonStateFileSync } from "./json-file-BmnDu2ZM.js";
5
- import { b as DEFAULT_TIMER_FNS, o as glimmervoidHomeDir, x as unrefTimer, yt as canonicalizePath } from "./config-store-BE5X4H-R.js";
5
+ import { b as DEFAULT_TIMER_FNS, o as glimmervoidHomeDir, x as unrefTimer, yt as canonicalizePath } from "./config-store-D0ubZ2ez.js";
6
6
  import fs from "node:fs";
7
7
  import path from "node:path";
8
8
  import crypto from "node:crypto";
@@ -0,0 +1 @@
1
+ export { r as runParsedSettingsCli } from "./settings-cli-CkVAoy96.js";
@@ -1,12 +1,12 @@
1
1
  import { n as isRecord } from "./coerce-D6vRlIGO.js";
2
- import { r as BrowserConfig } from "./config-wPv6Of22.js";
2
+ import { r as BrowserConfig } from "./config-DjZbYmaB.js";
3
3
  import { _ as AgentSettingsReply } from "./session-BygOlxkV.js";
4
- import { A as cloneValue, F as scoreSettingsSearch, I as setValueAtPath, P as parsePosthogProjectSelection, V as SETTINGS_REGISTRY, j as deleteValueAtPath, l as saveConfigFileOnce, s as loadConfigFile, t as IS_EXPERIMENTAL_BUILD, u as validateConfig, w as isSettingAvailable, z as valueAtPath } from "./config-store-BE5X4H-R.js";
4
+ import { A as cloneValue, F as scoreSettingsSearch, I as setValueAtPath, P as parsePosthogProjectSelection, V as SETTINGS_REGISTRY, j as deleteValueAtPath, l as saveConfigFileOnce, s as loadConfigFile, t as IS_EXPERIMENTAL_BUILD, u as validateConfig, w as isSettingAvailable, z as valueAtPath } from "./config-store-D0ubZ2ez.js";
5
5
  import { r as errorMessage, t as errorCode } from "./text-BDF4aFhQ.js";
6
6
  import { t as renderTable } from "./ascii-figure-core-BegIbndz.js";
7
7
  import { n as glimmervoidHomeDir, t as decideConfigPath } from "./config-path-core-qUZH9-0F.js";
8
8
  import { i as withEnvSecrets, n as readEnvSecrets, t as ENV_SECRET_BINDINGS } from "./config-secrets-core-Dl2-_qLd.js";
9
- import { a as fail, c as listSettings, d as renderSectionTables, f as requireConfigFileSetting, g as valueText, h as succeed, i as describeSetting, l as readSetting, m as settingsRequestForServer, n as configFileViewOf, o as fitColumn, p as sectionOf, r as defaultText, s as getSetting, t as availableSettings } from "./settings-readout-core-CtpKozFQ.js";
9
+ import { a as fail, c as listSettings, d as renderSectionTables, f as requireConfigFileSetting, g as valueText, h as succeed, i as describeSetting, l as readSetting, m as settingsRequestForServer, n as configFileViewOf, o as fitColumn, p as sectionOf, r as defaultText, s as getSetting, t as availableSettings } from "./settings-readout-core-KDIYBU8v.js";
10
10
  import fs from "node:fs";
11
11
  import os from "node:os";
12
12
  // server/settings-cli.ts
@@ -322,7 +322,7 @@ function runParsedSettingsCommand(parsed, io) {
322
322
  async function runParsedSettingsCli(parsed, io = processIo()) {
323
323
  const serverRequest = settingsRequestForServer(parsed, process.env);
324
324
  if (!serverRequest) return runParsedSettingsCommand(parsed, io);
325
- const { askAgentApi } = await import("./agent-api-cli-D6Ld1V9y.js");
325
+ const { askAgentApi } = await import("./agent-api-cli-BfjInV6a.js");
326
326
  const reply = AgentSettingsReply.safeParse(await askAgentApi("settings", serverRequest).catch((error) => ({
327
327
  ok: false,
328
328
  error: errorMessage(error)
@@ -1,5 +1,5 @@
1
1
  import { v as AgentSettingsRequest } from "./session-BygOlxkV.js";
2
- import { A as cloneValue, B as FILE_ONLY_GROUPS, L as settingsGroupOf, M as displayText, N as hasScaledUnit, R as settingsOf, V as SETTINGS_REGISTRY, k as SETTINGS_INDEX, w as isSettingAvailable, z as valueAtPath } from "./config-store-BE5X4H-R.js";
2
+ import { A as cloneValue, B as FILE_ONLY_GROUPS, L as settingsGroupOf, M as displayText, N as hasScaledUnit, R as settingsOf, V as SETTINGS_REGISTRY, k as SETTINGS_INDEX, w as isSettingAvailable, z as valueAtPath } from "./config-store-D0ubZ2ez.js";
3
3
  import { t as renderTable } from "./ascii-figure-core-BegIbndz.js";
4
4
  import { n as readEnvSecrets } from "./config-secrets-core-Dl2-_qLd.js";
5
5
  // server/core/settings-readout-core.ts
@@ -1,5 +1,5 @@
1
1
  import { l as spawn, r as execFileAsync } from "./child-process-safe-DAaWFLd1.js";
2
- import { n as postToAgentIngress } from "./agent-api-cli-ChxXRS3d.js";
2
+ import { n as postToAgentIngress } from "./agent-api-cli-EA42jg6w.js";
3
3
  import { l as parseSshPublicKey } from "./ssh-signing-core-CmYFjvrx.js";
4
4
  import { t as isLoopbackHostname } from "./loopback-hosts-L-YKCy4U.js";
5
5
  import { W as SshSignReply, z as SIGN_URL_ENV } from "./session-BygOlxkV.js";
@@ -1,6 +1,5 @@
1
1
  import { a as signedRequestFromHeaders, i as signedHeaders, n as credentialStoreKey, o as verifyRequest, r as directionKey, t as createRecentRequestIds } from "./link-signing-core-QyQDc4XP.js";
2
- import { t as isLoopbackHostname } from "./loopback-hosts-L-YKCy4U.js";
3
- import { a as LINK_SERVER_URL_ENV, d as ProbeSet, g as WatcherCredentials, h as WATCHER_LISTENING_MESSAGE, i as LINK_SECRET_ENV, s as NUDGES_PATH, v as githubApiOrigin } from "./watcher-link-BKWi5aJM.js";
2
+ import { a as LINK_SERVER_URL_ENV, d as ProbeSet, g as WatcherCredentials, h as WATCHER_LISTENING_MESSAGE, i as LINK_SECRET_ENV, s as NUDGES_PATH, v as githubApiOrigin, y as isLinkUrlSafe } from "./watcher-link-xW9PMs77.js";
4
3
  import path from "node:path";
5
4
  import os from "node:os";
6
5
  import crypto from "node:crypto";
@@ -269,6 +268,7 @@ function createNudgeSender({ serverUrl, signingKey, fetchFn = fetch, now = Date.
269
268
  const nudgesUrl = new URL(NUDGES_PATH, serverUrl);
270
269
  const pendingNudges = [];
271
270
  let failedAttempts = 0;
271
+ let failingSinceMs = null;
272
272
  let retryTimer = null;
273
273
  let isSending = false;
274
274
  async function postNudge(nudge) {
@@ -302,6 +302,7 @@ function createNudgeSender({ serverUrl, signingKey, fetchFn = fetch, now = Date.
302
302
  retryTimer = null;
303
303
  while (pendingNudges.length > 0) {
304
304
  if (!await postNudge(pendingNudges[0])) {
305
+ failingSinceMs ??= now();
305
306
  failedAttempts += 1;
306
307
  const delayMs = Math.min(NUDGE_RETRY_MAX_MS, NUDGE_RETRY_BASE_MS * 2 ** Math.min(failedAttempts, 20));
307
308
  retryTimer = setTimeout(() => void drain(), delayMs);
@@ -309,6 +310,7 @@ function createNudgeSender({ serverUrl, signingKey, fetchFn = fetch, now = Date.
309
310
  return;
310
311
  }
311
312
  failedAttempts = 0;
313
+ failingSinceMs = null;
312
314
  pendingNudges.shift();
313
315
  }
314
316
  isSending = false;
@@ -327,9 +329,13 @@ function createNudgeSender({ serverUrl, signingKey, fetchFn = fetch, now = Date.
327
329
  function stop() {
328
330
  if (retryTimer !== null) clearTimeout(retryTimer);
329
331
  }
332
+ function failingForMs() {
333
+ return failingSinceMs === null ? null : Math.max(0, now() - failingSinceMs);
334
+ }
330
335
  return {
331
336
  send,
332
- stop
337
+ stop,
338
+ failingForMs
333
339
  };
334
340
  }
335
341
  function createProbeRunner({ home, nudges, fetchFn = fetch, now = Date.now, log = console }) {
@@ -453,6 +459,7 @@ function createProbeRunner({ home, nudges, fetchFn = fetch, now = Date.now, log
453
459
  function status() {
454
460
  return {
455
461
  probeSetRevision: probeSet?.revision ?? null,
462
+ nudgesFailingForMs: nudges.failingForMs(),
456
463
  hasCredentials: {
457
464
  github: credentials.github !== null,
458
465
  posthog: credentials.posthog !== null
@@ -601,10 +608,8 @@ function linkSecretFromEnvironment() {
601
608
  function serverUrlFromEnvironment() {
602
609
  const rawServerUrl = process.env["GLIMMERVOID_LINK_SERVER_URL"] ?? "";
603
610
  if (!URL.canParse(rawServerUrl)) return { refusal: `${LINK_SERVER_URL_ENV} must be the server's URL` };
604
- const serverUrl = new URL(rawServerUrl);
605
- if (serverUrl.protocol === "https:") return serverUrl;
606
- if (serverUrl.protocol === "http:" && isLoopbackHostname(serverUrl.hostname)) return serverUrl;
607
- return { refusal: `${LINK_SERVER_URL_ENV} must use https for a host other than this machine` };
611
+ if (!isLinkUrlSafe(rawServerUrl)) return { refusal: `${LINK_SERVER_URL_ENV} must use https for a host other than this machine` };
612
+ return new URL(rawServerUrl);
608
613
  }
609
614
  function portFromOption(rawPort) {
610
615
  if (rawPort === null) return 0;