@runeya/runeya 2.0.157 → 2.0.159

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 (156) hide show
  1. package/agent/index.js +318 -231
  2. package/agent/index.js.map +1 -1
  3. package/agent-manager-NR24TCUQ.js +13 -0
  4. package/chat-MRS24DL3.js +28 -0
  5. package/{chunk-SVKR7CYU.js → chunk-C3KBWZ24.js} +4 -4
  6. package/{chunk-TMX3NXMQ.js → chunk-GJ5KN2LL.js} +6 -6
  7. package/{chunk-IYL545N3.js → chunk-GPSTFDKW.js} +18 -18
  8. package/{chunk-L3BEQ75K.js → chunk-JJTSWJXV.js} +5 -5
  9. package/{chunk-N4ZP7T6L.js → chunk-KNWWJND3.js} +4 -4
  10. package/{chunk-NV7MBTNW.js → chunk-KWKSPNGO.js} +5 -5
  11. package/{chunk-EZ35ISYR.js → chunk-LY4HARY5.js} +172 -67
  12. package/chunk-LY4HARY5.js.map +1 -0
  13. package/{chunk-ETPXJSVC.js → chunk-UYOJZ34Z.js} +2 -2
  14. package/{chunk-I4FSX522.js → chunk-V7BOVXZI.js} +11 -11
  15. package/{chunk-N5LP5TPS.js → chunk-YEFYRGSP.js} +2 -2
  16. package/{chunk-JAMAGUGN.js → chunk-YEZOV6GP.js} +2 -2
  17. package/{chunk-V7WTXGEJ.js → chunk-ZW4GRZRF.js} +6 -6
  18. package/{chunk-6L273MQO.js → chunk-ZZZQMQWF.js} +3 -3
  19. package/chunk-ZZZQMQWF.js.map +1 -0
  20. package/{companion-V6ITOFSU.js → companion-CGBD5O6Y.js} +9 -9
  21. package/{desktop-installer-page-DCS2FLA5.js → desktop-installer-page-54PKY3L3.js} +3 -3
  22. package/{desktop-launcher-ER3J7KAW.js → desktop-launcher-2DWKSS6V.js} +3 -3
  23. package/{environment-resolver-HT6GTSLA.js → environment-resolver-E7JDNTRO.js} +6 -6
  24. package/{external-WZQUS7LY.js → external-5I5BUT44.js} +3 -3
  25. package/index.js +12 -12
  26. package/{install-gate-3ZDX3AUO.js → install-gate-W5D4ZOZK.js} +2 -2
  27. package/mcp-server/external.js +146 -61
  28. package/mcp-server/external.js.map +1 -1
  29. package/mcp-server/index.js +146 -61
  30. package/mcp-server/index.js.map +1 -1
  31. package/package.json +1 -1
  32. package/{project-store-6TFAYAWK.js → project-store-67M34SNQ.js} +7 -7
  33. package/settings-manager-M5RS5WRM.js +10 -0
  34. package/{src-DBSSIQC7.js → src-FTYC7P2P.js} +36 -2
  35. package/{src-YR5RF76Z.js → src-UZX6XOIK.js} +1095 -897
  36. package/src-UZX6XOIK.js.map +1 -0
  37. package/{vault-resolver-G3G5YPNG.js → vault-resolver-5Q25S6NI.js} +3 -3
  38. package/web/assets/{AgentScalarChatInterface.vue-CtkvKRSd.js → AgentScalarChatInterface.vue-DLtiWyFa.js} +1 -1
  39. package/web/assets/{AgentTerminalPage-Dt9S2kZX.js → AgentTerminalPage-Ds4QAs67.js} +1 -1
  40. package/web/assets/{AiChatModals-BEpSEXmp.js → AiChatModals-Ccx5-MPb.js} +1 -1
  41. package/web/assets/AppLayout--wQ4AU4i.js +1 -0
  42. package/web/assets/AppLayout-Pi8OZrHN.css +1 -0
  43. package/web/assets/{AuditPage-BEt0m-rM.js → AuditPage-TlsfnK1U.js} +1 -1
  44. package/web/assets/{CloudAccountPage-BGijgepw.js → CloudAccountPage-BuFn-iaB.js} +1 -1
  45. package/web/assets/{CloudMessagingPage-C9uWAT8S.js → CloudMessagingPage-BcOTKWP1.js} +1 -1
  46. package/web/assets/{DashboardPage-DFiL6A-k.js → DashboardPage-BLw_tc_p.js} +1 -1
  47. package/web/assets/{DirectoryPickerDialog-C8dwWIUa.js → DirectoryPickerDialog-X6P-Gl27.js} +1 -1
  48. package/web/assets/{EditorIcon-Cx11i-sC.js → EditorIcon-DYGui0zm.js} +1 -1
  49. package/web/assets/{EnvironmentForm-DZgZitCy.js → EnvironmentForm-CNxgYejU.js} +1 -1
  50. package/web/assets/{EnvironmentFormPage-ubP8cX3l.js → EnvironmentFormPage-Cu9tmfeS.js} +1 -1
  51. package/web/assets/{EnvironmentListPage-CPs1uuvs.js → EnvironmentListPage-RJc8Noj0.js} +1 -1
  52. package/web/assets/{FlagChip-UumVjPY9.js → FlagChip-DBj0fpJC.js} +1 -1
  53. package/web/assets/{KanbanBoardPage-C9NqOqdD.js → KanbanBoardPage-CfeFN-sn.js} +3 -3
  54. package/web/assets/{KanbanListPage-D_ZpIbT2.js → KanbanListPage-Bvf_6sKr.js} +1 -1
  55. package/web/assets/{KnowledgeListPage-BoaV9hBg.js → KnowledgeListPage-8asAbOWR.js} +1 -1
  56. package/web/assets/{KnowledgePagePage-UGJGJY4d.js → KnowledgePagePage-CH8ErT7E.js} +1 -1
  57. package/web/assets/{LaunchProjectPage-B0Lg5Kr5.js → LaunchProjectPage-Cj4zIh-L.js} +1 -1
  58. package/web/assets/{LaunchServicesPage-D_pqkdXt.js → LaunchServicesPage-C5yBRgjj.js} +1 -1
  59. package/web/assets/{LaunchShell-CJtXkSUp.js → LaunchShell-BHRT0Iyo.js} +1 -1
  60. package/web/assets/{LogViewer-DLxO4-gP.js → LogViewer-B-iEIEx5.js} +1 -1
  61. package/web/assets/{OrgKeyPrompt-Cbx4cLL0.js → OrgKeyPrompt-U4dh8VYn.js} +1 -1
  62. package/web/assets/{ProcessControls-Cx-QzqxQ.js → ProcessControls-DR2mGg4A.js} +1 -1
  63. package/web/assets/{ProcessDetailPage-Bxwv0984.js → ProcessDetailPage-UdlOtobk.js} +1 -1
  64. package/web/assets/{ProcessMetrics-DisQYLu6.js → ProcessMetrics-CAiB2nbb.js} +1 -1
  65. package/web/assets/{ProjectCreateDialog-HcYVX36i.js → ProjectCreateDialog-JJ_UgVSV.js} +1 -1
  66. package/web/assets/{ProjectLocationGate-PR92Tdos.js → ProjectLocationGate-RpWuVQOx.js} +1 -1
  67. package/web/assets/{ProjectPublishDialog-YvOeVDCP.js → ProjectPublishDialog-DXBAZVgF.js} +1 -1
  68. package/web/assets/{RandomJobTestPage-Bp9qone4.js → RandomJobTestPage-BTyZOdQT.js} +1 -1
  69. package/web/assets/{ScenarioEditorPage-Cjkkz3JB.js → ScenarioEditorPage-DO5s-Rb3.js} +1 -1
  70. package/web/assets/{SendToChatDialog-CQbi2P_L.js → SendToChatDialog-jghvXDZk.js} +1 -1
  71. package/web/assets/{ServiceControlsBar-9jsN3h0c.js → ServiceControlsBar-Bjv9tyyt.js} +1 -1
  72. package/web/assets/{ServiceDetailPage-COHMUw51.js → ServiceDetailPage-DHYpDCfp.js} +1 -1
  73. package/web/assets/{ServiceFormPage-B4n8scwP.js → ServiceFormPage-CCXaIoow.js} +1 -1
  74. package/web/assets/{SettingsPage-C3PnwdxZ.js → SettingsPage-s-668z6W.js} +38 -38
  75. package/web/assets/{SettingsPage-Dsuzjo8r.css → SettingsPage-x-Rev6ea.css} +1 -1
  76. package/web/assets/{UnlockPage-BIB0NtWF.js → UnlockPage-BNdzhO5C.js} +1 -1
  77. package/web/assets/{VaultMigrationPage-D27SeEVr.js → VaultMigrationPage-RWmGEMLC.js} +1 -1
  78. package/web/assets/{VersionBadge-FeuuTMz7.js → VersionBadge-Crpf2R7o.js} +1 -1
  79. package/web/assets/{WikiPage-A8C0dEDX.js → WikiPage-BlemtaAo.js} +1 -1
  80. package/web/assets/{WikiView-D3c0r5q8.js → WikiView-Du6Adpd-.js} +1 -1
  81. package/web/assets/{add-scalar-classes-Ohd6-7G3.js → add-scalar-classes-B5tjvEi-.js} +2 -2
  82. package/web/assets/{agent.store-BwUoohNu.js → agent.store-5ggNQfb3.js} +1 -1
  83. package/web/assets/auth-ArDkSMsT.js +2 -0
  84. package/web/assets/{cloud-chat.store-za5cBdZx.js → cloud-chat.store-XJxdooyL.js} +1 -1
  85. package/web/assets/cloud-client-CMfTrHgZ.js +2 -0
  86. package/web/assets/cloud-session-CHtF1SMt.js +2 -0
  87. package/web/assets/dist-CjS_rxe9.js +1 -0
  88. package/web/assets/{i18n-B8hHo8g2.js → i18n-f_6x1GJ8.js} +2 -2
  89. package/web/assets/{index-DozDRY7J.css → index-DiXnhxxp.css} +1 -1
  90. package/web/assets/{index-CYcPxjSC.js → index-Z4n9BqGD.js} +75 -75
  91. package/web/assets/knowledge-host-D3fiBt2z.css +1 -0
  92. package/web/assets/knowledge-host-DeJwAH8b.js +7 -0
  93. package/web/assets/{modal-B9eahS9q.js → modal-Bomcd8xq.js} +1 -1
  94. package/web/assets/{notification.store-CWs6iQmx.js → notification.store-C8qNYGB5.js} +1 -1
  95. package/web/assets/open-project-org-BNDadG2_.js +1 -0
  96. package/web/assets/{project-launch.store-DkD7Q9jW.js → project-launch.store-DBuxvZJr.js} +1 -1
  97. package/web/assets/{project.store-CnflI3la.js → project.store-CXP-Oq1W.js} +1 -1
  98. package/web/assets/{scenario.store-DGt8nNt5.js → scenario.store-B6TiJlpU.js} +1 -1
  99. package/web/assets/{service.store-yECOKc1C.js → service.store-oNOqRX_s.js} +1 -1
  100. package/web/assets/{settings-scope-Ca1LjLG1.js → settings-scope-EYddCMQs.js} +1 -1
  101. package/web/assets/{settings.store-Cyop63CA.js → settings.store-Dbe4N-TD.js} +1 -1
  102. package/web/assets/{src-CcVk2-Gw.js → src-B1nAsOcw.js} +1 -1
  103. package/web/assets/{src-8YjxNhhv.js → src-BMnPg9V0.js} +1 -1
  104. package/web/assets/src-BR35jQnn.css +1 -0
  105. package/web/assets/src-BY3QUJ9Z.css +1 -0
  106. package/web/assets/src-Cpewe6v-.js +1 -0
  107. package/web/assets/{trpc-DlM4IpMe.js → trpc-CFd5DIpB.js} +3 -3
  108. package/web/assets/{useCloudOrg-Ck6Ef1iD.js → useCloudOrg-_oj_ijeT.js} +1 -1
  109. package/web/assets/{useEnvVarAutocomplete-B0fhZK-_.js → useEnvVarAutocomplete-IIpGvDLc.js} +1 -1
  110. package/web/assets/{useProjectCatalog-D1RgJoOm.js → useProjectCatalog-DT8MiHr7.js} +1 -1
  111. package/web/assets/useProjectCloudOrg-BgBNXoL1.js +1 -0
  112. package/web/assets/{useServiceUrlHost-Xzj6EOft.js → useServiceUrlHost-CzDrWXfO.js} +1 -1
  113. package/web/assets/uuid-D2uso58z.js +1 -0
  114. package/web/index.html +20 -19
  115. package/agent-manager-KDL4JWZN.js +0 -13
  116. package/chat-X6GWKPKG.js +0 -28
  117. package/chunk-6L273MQO.js.map +0 -1
  118. package/chunk-EZ35ISYR.js.map +0 -1
  119. package/settings-manager-OTVXDUJS.js +0 -10
  120. package/src-YR5RF76Z.js.map +0 -1
  121. package/web/assets/AppLayout-B1-D2-jx.css +0 -1
  122. package/web/assets/AppLayout-DIAQvecQ.js +0 -1
  123. package/web/assets/auth-DdEdmJV5.js +0 -2
  124. package/web/assets/cloud-client-zXY8HZtj.js +0 -2
  125. package/web/assets/cloud-session-DqfQKW5D.js +0 -2
  126. package/web/assets/dist-Cx_klvkk.js +0 -1
  127. package/web/assets/knowledge-host-ButMqDET.js +0 -6
  128. package/web/assets/knowledge-host-CfNnk0oz.css +0 -1
  129. package/web/assets/src-16-vEwhK.css +0 -1
  130. package/web/assets/src-BD3q9_go.js +0 -1
  131. package/web/assets/src-DOziuDw8.css +0 -1
  132. package/web/assets/useProjectCloudOrg-tnlpo5R1.js +0 -1
  133. package/web/assets/uuid-DfCowYZy.js +0 -1
  134. /package/{agent-manager-KDL4JWZN.js.map → agent-manager-NR24TCUQ.js.map} +0 -0
  135. /package/{chat-X6GWKPKG.js.map → chat-MRS24DL3.js.map} +0 -0
  136. /package/{chunk-SVKR7CYU.js.map → chunk-C3KBWZ24.js.map} +0 -0
  137. /package/{chunk-TMX3NXMQ.js.map → chunk-GJ5KN2LL.js.map} +0 -0
  138. /package/{chunk-IYL545N3.js.map → chunk-GPSTFDKW.js.map} +0 -0
  139. /package/{chunk-L3BEQ75K.js.map → chunk-JJTSWJXV.js.map} +0 -0
  140. /package/{chunk-N4ZP7T6L.js.map → chunk-KNWWJND3.js.map} +0 -0
  141. /package/{chunk-NV7MBTNW.js.map → chunk-KWKSPNGO.js.map} +0 -0
  142. /package/{chunk-ETPXJSVC.js.map → chunk-UYOJZ34Z.js.map} +0 -0
  143. /package/{chunk-I4FSX522.js.map → chunk-V7BOVXZI.js.map} +0 -0
  144. /package/{chunk-N5LP5TPS.js.map → chunk-YEFYRGSP.js.map} +0 -0
  145. /package/{chunk-JAMAGUGN.js.map → chunk-YEZOV6GP.js.map} +0 -0
  146. /package/{chunk-V7WTXGEJ.js.map → chunk-ZW4GRZRF.js.map} +0 -0
  147. /package/{companion-V6ITOFSU.js.map → companion-CGBD5O6Y.js.map} +0 -0
  148. /package/{desktop-installer-page-DCS2FLA5.js.map → desktop-installer-page-54PKY3L3.js.map} +0 -0
  149. /package/{desktop-launcher-ER3J7KAW.js.map → desktop-launcher-2DWKSS6V.js.map} +0 -0
  150. /package/{environment-resolver-HT6GTSLA.js.map → environment-resolver-E7JDNTRO.js.map} +0 -0
  151. /package/{external-WZQUS7LY.js.map → external-5I5BUT44.js.map} +0 -0
  152. /package/{install-gate-3ZDX3AUO.js.map → install-gate-W5D4ZOZK.js.map} +0 -0
  153. /package/{project-store-6TFAYAWK.js.map → project-store-67M34SNQ.js.map} +0 -0
  154. /package/{settings-manager-OTVXDUJS.js.map → settings-manager-M5RS5WRM.js.map} +0 -0
  155. /package/{src-DBSSIQC7.js.map → src-FTYC7P2P.js.map} +0 -0
  156. /package/{vault-resolver-G3G5YPNG.js.map → vault-resolver-5Q25S6NI.js.map} +0 -0
@@ -14,12 +14,12 @@ import {
14
14
  uninstallDesktopLauncher,
15
15
  vbsQuote,
16
16
  windowsVbsScript
17
- } from "./chunk-N5LP5TPS.js";
17
+ } from "./chunk-YEFYRGSP.js";
18
18
  import {
19
19
  deriveLauncherIdentity,
20
20
  launcherIdFromName,
21
21
  slugifyLauncherName
22
- } from "./chunk-EZ35ISYR.js";
22
+ } from "./chunk-LY4HARY5.js";
23
23
  export {
24
24
  deriveLauncherIdentity as deriveIdentity,
25
25
  desktopExecQuote,
@@ -40,4 +40,4 @@ export {
40
40
  vbsQuote,
41
41
  windowsVbsScript
42
42
  };
43
- //# sourceMappingURL=desktop-launcher-ER3J7KAW.js.map
43
+ //# sourceMappingURL=desktop-launcher-2DWKSS6V.js.map
@@ -3,16 +3,16 @@ import {
3
3
  describeVariables,
4
4
  environmentResolver,
5
5
  filterEnvForAi
6
- } from "./chunk-L3BEQ75K.js";
7
- import "./chunk-N4ZP7T6L.js";
6
+ } from "./chunk-JJTSWJXV.js";
7
+ import "./chunk-KNWWJND3.js";
8
8
  import "./chunk-OZBSOSAS.js";
9
- import "./chunk-JAMAGUGN.js";
10
- import "./chunk-ETPXJSVC.js";
11
- import "./chunk-EZ35ISYR.js";
9
+ import "./chunk-YEZOV6GP.js";
10
+ import "./chunk-UYOJZ34Z.js";
11
+ import "./chunk-LY4HARY5.js";
12
12
  export {
13
13
  HIDDEN_VALUES_NOTICE,
14
14
  describeVariables,
15
15
  environmentResolver,
16
16
  filterEnvForAi
17
17
  };
18
- //# sourceMappingURL=environment-resolver-HT6GTSLA.js.map
18
+ //# sourceMappingURL=environment-resolver-E7JDNTRO.js.map
@@ -5,8 +5,8 @@ import {
5
5
  callTrpc,
6
6
  runCapability,
7
7
  toRawParams
8
- } from "./chunk-6L273MQO.js";
9
- import "./chunk-EZ35ISYR.js";
8
+ } from "./chunk-ZZZQMQWF.js";
9
+ import "./chunk-LY4HARY5.js";
10
10
 
11
11
  // ../../packages/mcp-server/src/external.ts
12
12
  import { homedir } from "os";
@@ -384,4 +384,4 @@ async function runExternalMcp(opts) {
384
384
  export {
385
385
  runExternalMcp
386
386
  };
387
- //# sourceMappingURL=external-WZQUS7LY.js.map
387
+ //# sourceMappingURL=external-5I5BUT44.js.map
package/index.js CHANGED
@@ -86,10 +86,10 @@ for (const { flag, env: key } of ENV_FLAGS) {
86
86
  }
87
87
  if (args.includes("--debug")) process.env["RUNEYA_DEBUG"] = "1";
88
88
  async function runDesktopInstaller(required) {
89
- const { installDesktopLauncher, listDesktopLaunchers, uninstallDesktopLauncher, deriveIdentity } = await import("./desktop-launcher-ER3J7KAW.js");
89
+ const { installDesktopLauncher, listDesktopLaunchers, uninstallDesktopLauncher, deriveIdentity } = await import("./desktop-launcher-2DWKSS6V.js");
90
90
  const { printInstallReport } = await import("./desktop-wizard-XIDDAG7L.js");
91
- const { runInstallerPage } = await import("./desktop-installer-page-DCS2FLA5.js");
92
- const { createGlobalInstaller } = await import("./install-gate-3ZDX3AUO.js");
91
+ const { runInstallerPage } = await import("./desktop-installer-page-54PKY3L3.js");
92
+ const { createGlobalInstaller } = await import("./install-gate-W5D4ZOZK.js");
93
93
  const current = { nodePath: process.execPath, cliEntry: fileURLToPath(import.meta.url) };
94
94
  const outcome = await runInstallerPage({
95
95
  openUrl: (url) => open(url),
@@ -112,7 +112,7 @@ async function runDesktopInstaller(required) {
112
112
  }
113
113
  var subCommand = args[0];
114
114
  if (subCommand === "install-desktop" || subCommand === "uninstall-desktop") {
115
- const { installDesktopLauncher, uninstallDesktopLauncher, deriveIdentity } = await import("./desktop-launcher-ER3J7KAW.js");
115
+ const { installDesktopLauncher, uninstallDesktopLauncher, deriveIdentity } = await import("./desktop-launcher-2DWKSS6V.js");
116
116
  const { shouldOpenInstallPage, printInstallReport, printUninstallReport } = await import("./desktop-wizard-XIDDAG7L.js");
117
117
  const { parsePort } = await import("./free-port-5UNHDWGE.js");
118
118
  const rest = args.slice(1);
@@ -131,7 +131,7 @@ if (subCommand === "install-desktop" || subCommand === "uninstall-desktop") {
131
131
  const agentPort = parsePort(agentPortFlagRaw);
132
132
  const projectId = getFlagValue(["--project"]) ?? null;
133
133
  if (projectId !== null) {
134
- const { isLauncherProjectId } = await import("./src-DBSSIQC7.js");
134
+ const { isLauncherProjectId } = await import("./src-FTYC7P2P.js");
135
135
  if (!isLauncherProjectId(projectId)) {
136
136
  console.error(`Erreur : --project attend un id de projet (re\xE7u ${JSON.stringify(projectId)}).`);
137
137
  process.exit(1);
@@ -145,7 +145,7 @@ if (subCommand === "install-desktop" || subCommand === "uninstall-desktop") {
145
145
  }
146
146
  const { name, id } = deriveIdentity(displayName, workingDir);
147
147
  if (subCommand === "install-desktop") {
148
- const { createGlobalInstaller, SKIP_INSTALL_CHECK_ENV } = await import("./install-gate-3ZDX3AUO.js");
148
+ const { createGlobalInstaller, SKIP_INSTALL_CHECK_ENV } = await import("./install-gate-W5D4ZOZK.js");
149
149
  if (process.env[SKIP_INSTALL_CHECK_ENV] !== "1") {
150
150
  const target = { cliEntry: launcherBase.cliEntry };
151
151
  const global = await (await createGlobalInstaller(target, version)).state();
@@ -180,7 +180,7 @@ if (subCommand === "install-desktop" || subCommand === "uninstall-desktop") {
180
180
  }
181
181
  }
182
182
  if (subCommand === "instances") {
183
- const { listInstances, killInstance, restartInstance } = await import("./src-YR5RF76Z.js");
183
+ const { listInstances, killInstance, restartInstance } = await import("./src-UZX6XOIK.js");
184
184
  const { runInstancesCommand } = await import("./instances-command-KZ5UGXOR.js");
185
185
  process.exit(await runInstancesCommand(args.slice(1), {
186
186
  listInstances,
@@ -195,8 +195,8 @@ if (subCommand === "instances") {
195
195
  }));
196
196
  }
197
197
  if (subCommand === "mcp") {
198
- const { listInstances } = await import("./src-YR5RF76Z.js");
199
- const { runExternalMcp } = await import("./external-WZQUS7LY.js");
198
+ const { listInstances } = await import("./src-UZX6XOIK.js");
199
+ const { runExternalMcp } = await import("./external-5I5BUT44.js");
200
200
  await runExternalMcp({ listInstances });
201
201
  await new Promise(() => {
202
202
  });
@@ -354,7 +354,7 @@ function listenWithRetry(server, port, host, wss, maxRetries = 20, delay = 500)
354
354
  });
355
355
  }
356
356
  async function main() {
357
- const { mustOpenInstaller, hasDesktop, SKIP_INSTALL_CHECK_ENV } = await import("./install-gate-3ZDX3AUO.js");
357
+ const { mustOpenInstaller, hasDesktop, SKIP_INSTALL_CHECK_ENV } = await import("./install-gate-W5D4ZOZK.js");
358
358
  if (mustOpenInstaller({
359
359
  isFromDesktop,
360
360
  isRestartHandoff: process.env.RUNEYA_RESTART_HANDOFF === "1",
@@ -386,7 +386,7 @@ async function main() {
386
386
  console.warn(`[cli] Journal sur disque indisponible : ${err.message}`);
387
387
  }
388
388
  }
389
- const { createLocalServer, pullEnv, PullEnvError, registerInstance, registerCliLocation } = await import("./src-YR5RF76Z.js");
389
+ const { createLocalServer, pullEnv, PullEnvError, registerInstance, registerCliLocation } = await import("./src-UZX6XOIK.js");
390
390
  registerCliLocation({ execPath: process.execPath, cliEntry: fileURLToPath(import.meta.url) });
391
391
  if (isPullEnv) {
392
392
  if (!serviceArg) {
@@ -495,7 +495,7 @@ async function main() {
495
495
  networkInfo,
496
496
  setLanMode,
497
497
  resolveTrayIcon
498
- } = await import("./src-YR5RF76Z.js");
498
+ } = await import("./src-UZX6XOIK.js");
499
499
  tray = await startInstanceTray({
500
500
  info: { cwd: process.cwd(), port, version, url: appUrl },
501
501
  assetsDir: join(__dirname, "assets"),
@@ -19,7 +19,7 @@ function samePath(a, b, platform = process.platform) {
19
19
  }
20
20
  }
21
21
  async function createGlobalInstaller(current, runningVersion) {
22
- const { resolveNpm, probeVersion, installRuneyaGlobally, installedRuneya, compareSemver, installPrefix, userPrefix } = await import("./src-YR5RF76Z.js");
22
+ const { resolveNpm, probeVersion, installRuneyaGlobally, installedRuneya, compareSemver, installPrefix, userPrefix } = await import("./src-UZX6XOIK.js");
23
23
  const npm = resolveNpm();
24
24
  async function prefixes() {
25
25
  const global = await probeVersion(npm, ["prefix", "-g"]);
@@ -57,4 +57,4 @@ export {
57
57
  hasDesktop,
58
58
  mustOpenInstaller
59
59
  };
60
- //# sourceMappingURL=install-gate-3ZDX3AUO.js.map
60
+ //# sourceMappingURL=install-gate-W5D4ZOZK.js.map
@@ -4,7 +4,7 @@ import { join as join2 } from "path";
4
4
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
5
5
 
6
6
  // ../ai-capabilities/dist/index.js
7
- import { z as z23 } from "zod";
7
+ import { z as z24 } from "zod";
8
8
 
9
9
  // ../shared/dist/chunk-L6P7TAOW.js
10
10
  import { z } from "zod";
@@ -227,6 +227,7 @@ import { z as z19 } from "zod";
227
227
  import { z as z20 } from "zod";
228
228
  import { z as z21 } from "zod";
229
229
  import { z as z222 } from "zod";
230
+ import { z as z23 } from "zod";
230
231
  import { createCipheriv, createDecipheriv, randomBytes, pbkdf2Sync } from "crypto";
231
232
  import vm from "vm";
232
233
  import * as Y from "yjs";
@@ -1482,33 +1483,117 @@ var ConversationSearchHitSchema = IntegrationConversationSchema.extend({
1482
1483
  preview: z21.string().max(500),
1483
1484
  linkedCards: z21.array(z21.object({ boardId: z21.string().max(64), cardId: z21.string().max(64), title: z21.string().max(500) }))
1484
1485
  });
1485
- var ChangelogSurfaceSchema = z222.enum(["app", "cloud"]);
1486
- var ChangelogChangeKindSchema = z222.enum(["feature", "improvement", "fix", "breaking"]);
1487
- var ChangelogTextSchema = z222.object({
1488
- fr: z222.string().min(1).max(500),
1489
- en: z222.string().min(1).max(500)
1490
- });
1491
- var ChangelogChangeSchema = z222.object({
1486
+ var SupportKindSchema = z222.enum(["bug", "improvement", "question"]);
1487
+ var SupportStatusSchema = z222.enum(["open", "waiting", "closed"]);
1488
+ var SUPPORT_SUBJECT_MAX = 200;
1489
+ var SUPPORT_BODY_MAX = 1e4;
1490
+ var SUPPORT_CONTEXT_MAX = 2e3;
1491
+ var SupportCreateInputSchema = z222.object({
1492
+ kind: SupportKindSchema,
1493
+ subject: z222.string().trim().min(1).max(SUPPORT_SUBJECT_MAX),
1494
+ body: z222.string().trim().min(1).max(SUPPORT_BODY_MAX),
1495
+ /** Obligatoire sans session : c'est par là que la réponse arrive. */
1496
+ email: z222.string().trim().email().max(254).optional(),
1497
+ /** Version de l'app, système… Rempli par l'app, lu par le support. */
1498
+ context: z222.string().max(SUPPORT_CONTEXT_MAX).optional(),
1499
+ source: z222.enum(["app", "cloud"])
1500
+ });
1501
+ var SupportReplyInputSchema = z222.object({
1502
+ body: z222.string().trim().min(1).max(SUPPORT_BODY_MAX)
1503
+ });
1504
+ var SupportMessageViewSchema = z222.object({
1505
+ id: z222.string(),
1506
+ from: z222.enum(["requester", "support"]),
1507
+ authorName: z222.string(),
1508
+ body: z222.string(),
1509
+ sentAt: z222.string()
1510
+ }).strict();
1511
+ var SupportTicketSummarySchema = z222.object({
1512
+ id: z222.string(),
1513
+ number: z222.number().int(),
1514
+ kind: SupportKindSchema,
1515
+ subject: z222.string(),
1516
+ status: SupportStatusSchema,
1517
+ createdAt: z222.string(),
1518
+ updatedAt: z222.string(),
1519
+ /** Le support a répondu depuis la dernière lecture du demandeur. */
1520
+ unread: z222.boolean()
1521
+ }).strict();
1522
+ var SupportTicketViewSchema = SupportTicketSummarySchema.extend({
1523
+ messages: z222.array(SupportMessageViewSchema)
1524
+ }).strict();
1525
+ var SupportCreatedSchema = z222.object({
1526
+ ticket: SupportTicketViewSchema,
1527
+ accessToken: z222.string().optional()
1528
+ }).strict();
1529
+ var SupportCardLinkSchema = z222.object({
1530
+ organizationId: z222.string(),
1531
+ boardId: z222.string(),
1532
+ cardId: z222.string(),
1533
+ title: z222.string(),
1534
+ origin: z222.enum(["auto", "manual"])
1535
+ });
1536
+ var SupportStaffMessageViewSchema = z222.object({
1537
+ id: z222.string(),
1538
+ from: z222.enum(["requester", "support", "internal"]),
1539
+ authorName: z222.string(),
1540
+ body: z222.string(),
1541
+ sentAt: z222.string()
1542
+ });
1543
+ var SupportStaffTicketSummarySchema = z222.object({
1544
+ id: z222.string(),
1545
+ number: z222.number().int(),
1546
+ kind: SupportKindSchema,
1547
+ subject: z222.string(),
1548
+ status: SupportStatusSchema,
1549
+ source: z222.enum(["app", "cloud"]),
1550
+ requester: z222.object({ email: z222.string(), name: z222.string().nullable(), userId: z222.string().nullable() }),
1551
+ createdAt: z222.string(),
1552
+ updatedAt: z222.string(),
1553
+ /** Le demandeur a écrit depuis la dernière lecture du support. */
1554
+ unread: z222.boolean(),
1555
+ cards: z222.array(SupportCardLinkSchema)
1556
+ });
1557
+ var SupportStaffTicketViewSchema = SupportStaffTicketSummarySchema.extend({
1558
+ context: z222.string().nullable(),
1559
+ messages: z222.array(SupportStaffMessageViewSchema)
1560
+ });
1561
+ var SupportSettingsSchema = z222.object({
1562
+ autoCard: z222.object({
1563
+ enabled: z222.boolean(),
1564
+ organizationId: z222.string().max(64).nullable(),
1565
+ boardId: z222.string().max(64).nullable(),
1566
+ columnId: z222.string().max(64).nullable(),
1567
+ kinds: z222.array(SupportKindSchema).max(3)
1568
+ })
1569
+ });
1570
+ var ChangelogSurfaceSchema = z23.enum(["app", "cloud"]);
1571
+ var ChangelogChangeKindSchema = z23.enum(["feature", "improvement", "fix", "breaking"]);
1572
+ var ChangelogTextSchema = z23.object({
1573
+ fr: z23.string().min(1).max(500),
1574
+ en: z23.string().min(1).max(500)
1575
+ });
1576
+ var ChangelogChangeSchema = z23.object({
1492
1577
  kind: ChangelogChangeKindSchema,
1493
1578
  text: ChangelogTextSchema
1494
1579
  });
1495
1580
  var ChangelogDraftSchema = ChangelogChangeSchema.extend({
1496
- date: z222.string().regex(/^\d{4}-\d{2}-\d{2}$/),
1581
+ date: z23.string().regex(/^\d{4}-\d{2}-\d{2}$/),
1497
1582
  title: ChangelogTextSchema.optional()
1498
1583
  });
1499
- var ChangelogReleaseSchema = z222.object({
1584
+ var ChangelogReleaseSchema = z23.object({
1500
1585
  surface: ChangelogSurfaceSchema,
1501
1586
  /** `1.4.2` pour l'app (version npm publiée), `2026-09-03` — ou `2026-09-03.2` — pour le cloud. */
1502
- version: z222.string().min(1).max(32).regex(/^[0-9][0-9.-]*$/),
1587
+ version: z23.string().min(1).max(32).regex(/^[0-9][0-9.-]*$/),
1503
1588
  /** Date de publication, `YYYY-MM-DD`. */
1504
- date: z222.string().regex(/^\d{4}-\d{2}-\d{2}$/),
1589
+ date: z23.string().regex(/^\d{4}-\d{2}-\d{2}$/),
1505
1590
  /** Facultatif : une version peut s'annoncer par son seul numéro. */
1506
1591
  title: ChangelogTextSchema.optional(),
1507
1592
  /** Une version sans changement n'a rien à annoncer : elle n'a pas sa place ici. */
1508
- changes: z222.array(ChangelogChangeSchema).min(1).max(50)
1593
+ changes: z23.array(ChangelogChangeSchema).min(1).max(50)
1509
1594
  });
1510
1595
  var ChangelogIndexItemSchema = ChangelogReleaseSchema.omit({ changes: true }).extend({
1511
- changeCount: z222.number().int().nonnegative()
1596
+ changeCount: z23.number().int().nonnegative()
1512
1597
  });
1513
1598
  var MASKED_VALUE = "***";
1514
1599
  function maskLogSourceSecrets(sources) {
@@ -1564,7 +1649,7 @@ var EDITOR_BY_KEY = new Map(
1564
1649
  );
1565
1650
 
1566
1651
  // ../ai-capabilities/dist/index.js
1567
- import { z as z24 } from "zod";
1652
+ import { z as z25 } from "zod";
1568
1653
  import { z as z32 } from "zod";
1569
1654
  function toList(raw) {
1570
1655
  if (!raw) return [];
@@ -1614,15 +1699,15 @@ function parseTyped(name, schema, raw) {
1614
1699
  if (list.success) result = list;
1615
1700
  }
1616
1701
  }
1617
- if (!result.success) throw new Error(`${name}: ${z23.prettifyError(result.error)}`);
1702
+ if (!result.success) throw new Error(`${name}: ${z24.prettifyError(result.error)}`);
1618
1703
  return result.data;
1619
1704
  }
1620
1705
  function withIds(items) {
1621
1706
  return items.map((item) => ({ ...item, id: item.id || newId() }));
1622
1707
  }
1623
- var optionalId = (schema) => schema.extend({ id: z23.string().min(1).max(64).optional() });
1708
+ var optionalId = (schema) => schema.extend({ id: z24.string().min(1).max(64).optional() });
1624
1709
  var DockerConfigInput = DockerConfigSchema.extend({
1625
- bootstrapCommands: z23.array(optionalId(BootstrapCommandSchema)).max(20).default([])
1710
+ bootstrapCommands: z24.array(optionalId(BootstrapCommandSchema)).max(20).default([])
1626
1711
  }).refine((c) => !!c.image !== !!c.dockerfile, {
1627
1712
  message: 'dockerConfig needs exactly one of "image" (an image to pull) or "dockerfile" (a Dockerfile to build)'
1628
1713
  });
@@ -1631,7 +1716,7 @@ var SERVICE_FIELDS = [
1631
1716
  { name: "agentId", description: "The agent that runs it, from list_agents. Omit to inherit from the environment.", clearable: true },
1632
1717
  { name: "cwd", description: `Working directory, RELATIVE to the project root (e.g. "apps/web", or omit for the root). The project is synced between machines and lives in a different folder on each: Runeya resolves a relative cwd against each machine's own project folder, while an absolute path (/home/you/\u2026) breaks on every other machine. Use an absolute path only for something outside the project, written with ~ or an environment variable ($NAME) rather than a literal home directory.`, clearable: true },
1633
1718
  { name: "command", description: 'Shortcut for a single command line (e.g. "npm run dev"). Replaces every existing command. Use commands for several.' },
1634
- { name: "commands", description: 'The processes of the service. They all start AT THE SAME TIME, in parallel, and the service runs while they run \u2014 not one after another. Use several for processes that live side by side (a web server and a worker). Steps that must follow each other (build, then install, then launch) go in ONE command chained with &&. A one-off action the user triggers by hand (build, deploy, read logs) is a shortcut, not a command. Each command runs in the service cwd, or its own "cwd", relative to the project root. No absolute paths of this machine: the service is synced to other machines. Replaces every existing command. "id" is generated when omitted; "shell" runs the line through a shell (default true).', schema: z23.array(optionalId(ServiceCommandSchema)).max(50) },
1719
+ { name: "commands", description: 'The processes of the service. They all start AT THE SAME TIME, in parallel, and the service runs while they run \u2014 not one after another. Use several for processes that live side by side (a web server and a worker). Steps that must follow each other (build, then install, then launch) go in ONE command chained with &&. A one-off action the user triggers by hand (build, deploy, read logs) is a shortcut, not a command. Each command runs in the service cwd, or its own "cwd", relative to the project root. No absolute paths of this machine: the service is synced to other machines. Replaces every existing command. "id" is generated when omitted; "shell" runs the line through a shell (default true).', schema: z24.array(optionalId(ServiceCommandSchema)).max(50) },
1635
1720
  { name: "ports", description: "Ports the service listens on. Declare them: they become {{service.PORT}}, {{service.URL}} and {{services.<slug>.URL}} for the other services, which environment variables should reference instead of repeating the numbers.", schema: ServiceConfigSchema.shape.ports.unwrap().unwrap() },
1636
1721
  { name: "groups", description: "Groups the service belongs to. Replaces the current ones.", schema: ServiceConfigSchema.shape.groups.unwrap().unwrap() },
1637
1722
  { name: "url", description: "URL where the service is reached" },
@@ -1643,19 +1728,19 @@ var SERVICE_FIELDS = [
1643
1728
  { name: "runner", description: '"native" runs the commands on the machine; "docker" runs the service in a container and then needs dockerConfig', schema: ServiceConfigSchema.shape.runner.unwrap().unwrap() },
1644
1729
  { name: "dockerConfig", description: 'With runner "docker": the container. Exactly one of "image" (pull) or "dockerfile" (inline Dockerfile, built with "buildContext", "buildArgs", "targetStage"). Ports and volumes use Docker syntax ("8080:80", "./data:/data"); host paths in volumes relative to the service directory, never an absolute path of this machine. "useNativeCommand" runs the service commands inside the container instead of its CMD ("nativeCommandMode": one shared container or one per command). "bootstrapCommands" run once when the container starts. Replaces the whole Docker configuration: read it first with get_service to keep what you do not change.', schema: DockerConfigInput },
1645
1730
  { name: "healthCheck", description: 'How to tell the service is ready: an HTTP "path" to call, or a "command" that must succeed', schema: HealthCheckSchema, clearable: true },
1646
- { name: "autoRestart", description: "Restart the service when it crashes", schema: z23.boolean() },
1731
+ { name: "autoRestart", description: "Restart the service when it crashes", schema: z24.boolean() },
1647
1732
  { name: "restartStrategy", description: "When to restart it", schema: RestartStrategySchema.unwrap() },
1648
1733
  { name: "maxRestarts", description: "Give up after this many restarts", schema: ServiceConfigSchema.shape.maxRestarts.unwrap() },
1649
1734
  { name: "restartBackoffMs", description: "Delay before a restart, in milliseconds", schema: ServiceConfigSchema.shape.restartBackoffMs.unwrap().unwrap() },
1650
- { name: "clearLogsOnStart", description: "Clear the logs each time the service starts", schema: z23.boolean() },
1651
- { name: "shortcuts", description: 'One-click actions shown on the service, run on demand and independently of the running commands (build, deploy, migrate, read logs). Same path rules as commands: relative to the project root, never an absolute path of this machine. Replaces the current ones. "id" is generated when omitted.', schema: z23.array(optionalId(ServiceShortcutSchema)).max(50) },
1735
+ { name: "clearLogsOnStart", description: "Clear the logs each time the service starts", schema: z24.boolean() },
1736
+ { name: "shortcuts", description: 'One-click actions shown on the service, run on demand and independently of the running commands (build, deploy, migrate, read logs). Same path rules as commands: relative to the project root, never an absolute path of this machine. Replaces the current ones. "id" is generated when omitted.', schema: z24.array(optionalId(ServiceShortcutSchema)).max(50) },
1652
1737
  { name: "parserIds", description: "Log parsers applied to its output, by id", schema: ServiceConfigSchema.shape.parserIds.unwrap() },
1653
1738
  { name: "logSources", description: 'Extra log sources beyond the console output (files, databases\u2026). Replaces the current ones. Credentials (mongo connectionString, mysql password) read as "***": send "***" back to keep the stored value, or the real value to change it.', schema: ServiceConfigSchema.shape.logSources.unwrap().unwrap() }
1654
1739
  ];
1655
1740
  function serviceParams(clearable2) {
1656
1741
  return SERVICE_FIELDS.map((f) => {
1657
1742
  const nullable = clearable2 && f.clearable;
1658
- const base = f.schema ?? (nullable ? z23.string() : void 0);
1743
+ const base = f.schema ?? (nullable ? z24.string() : void 0);
1659
1744
  return {
1660
1745
  name: f.name,
1661
1746
  description: nullable ? `${f.description} null clears it.` : f.description,
@@ -1695,15 +1780,15 @@ var KNOWLEDGE_TYPES_DOC = KNOWLEDGE_PAGE_TYPES.map((t) => {
1695
1780
  return `${t}: ${spec.description}${fields ? ` Fields: ${fields}.` : ""}`;
1696
1781
  }).join(" | ");
1697
1782
  var KNOWLEDGE_RELATIONS_DOC = `${KNOWLEDGE_RELATIONS.join(", ")} (related and contradicts read both ways)`;
1698
- var kIds = z23.array(KnowledgeIdSchema).max(50);
1699
- var kSearchLimit = z23.number().int().min(1).max(KNOWLEDGE_LIMITS.searchResults);
1700
- var kSections = z23.array(KnowledgeSectionSchema).max(KNOWLEDGE_LIMITS.sections);
1701
- var kThemeDepth = z23.number().int().min(0).max(KNOWLEDGE_LIMITS.themeDepth);
1702
- var kDepth = z23.number().int().min(1).max(KNOWLEDGE_LIMITS.neighborsDepth);
1703
- var kRelatedLimit = z23.number().int().min(1).max(KNOWLEDGE_LIMITS.relatedPages);
1704
- var kNeighborLimit = z23.number().int().min(1).max(KNOWLEDGE_LIMITS.neighborsNodes);
1705
- var kHistoryLimit = z23.number().int().min(1).max(500);
1706
- var kSeedIds = z23.array(KnowledgeIdSchema).min(1).max(10);
1783
+ var kIds = z24.array(KnowledgeIdSchema).max(50);
1784
+ var kSearchLimit = z24.number().int().min(1).max(KNOWLEDGE_LIMITS.searchResults);
1785
+ var kSections = z24.array(KnowledgeSectionSchema).max(KNOWLEDGE_LIMITS.sections);
1786
+ var kThemeDepth = z24.number().int().min(0).max(KNOWLEDGE_LIMITS.themeDepth);
1787
+ var kDepth = z24.number().int().min(1).max(KNOWLEDGE_LIMITS.neighborsDepth);
1788
+ var kRelatedLimit = z24.number().int().min(1).max(KNOWLEDGE_LIMITS.relatedPages);
1789
+ var kNeighborLimit = z24.number().int().min(1).max(KNOWLEDGE_LIMITS.neighborsNodes);
1790
+ var kHistoryLimit = z24.number().int().min(1).max(500);
1791
+ var kSeedIds = z24.array(KnowledgeIdSchema).min(1).max(10);
1707
1792
  function knowledgePageFields(p) {
1708
1793
  const out = {};
1709
1794
  if (p.title !== void 0) out.title = p.title;
@@ -1801,7 +1886,7 @@ function readPageAnswer(result, input) {
1801
1886
  }
1802
1887
  };
1803
1888
  }
1804
- var KNOWLEDGE_MARKDOWN_NOTE = "Markdown tables are kept. Pages hold no images or HTML, and links only to web, mailto: or kb:<pageId> addresses: when the Markdown you sent lost something, the answer says what in conversion.";
1889
+ var KNOWLEDGE_MARKDOWN_NOTE = "Write a table as a plain Markdown table (| A | B |, then | --- | --- |), never inside ``` fences: a fenced table stays a code block. It is kept as written and read back the same, links in cells included. Pages hold no images or HTML, and links only to web, mailto: or kb:<pageId> addresses: when the Markdown you sent lost something, the answer says what in conversion.";
1805
1890
  var KNOWLEDGE_LOCK_NOTE = "A page locked by a person cannot be changed by you: the call is refused, tell the user what you would change instead.";
1806
1891
  var KNOWLEDGE_CAPABILITIES = [
1807
1892
  {
@@ -1820,14 +1905,14 @@ var KNOWLEDGE_CAPABILITIES = [
1820
1905
  method: "GET",
1821
1906
  params: [
1822
1907
  { name: "query", description: "Free text. Omit to list pages by last update.", required: false },
1823
- { name: "types", description: `Page types to keep: ${KNOWLEDGE_PAGE_TYPES.join(", ")}`, required: false, schema: z23.array(KnowledgePageTypeSchema) },
1908
+ { name: "types", description: `Page types to keep: ${KNOWLEDGE_PAGE_TYPES.join(", ")}`, required: false, schema: z24.array(KnowledgePageTypeSchema) },
1824
1909
  { name: "themeIds", description: "Theme page ids the pages must ALL carry (from knowledge_list_themes)", required: false, schema: KnowledgeThemeIdsSchema },
1825
1910
  { name: "themeDepth", description: `Levels of sub-themes counted with each theme, 0 to ${KNOWLEDGE_LIMITS.themeDepth}`, required: false, schema: kThemeDepth },
1826
1911
  { name: "spaceIds", description: "Restrict to these spaces", required: false, schema: kIds },
1827
1912
  // Pas `projectId` : ce nom est rempli d'office avec le projet de la
1828
1913
  // conversation (project-anchor), ce qui filtrait toute recherche sur lui.
1829
1914
  { name: "onlyProjectId", description: "Only pages attached to this Runeya project. Omit to search the whole organization.", required: false },
1830
- { name: "includeObsolete", description: "Also return obsolete pages", required: false, schema: z23.boolean() },
1915
+ { name: "includeObsolete", description: "Also return obsolete pages", required: false, schema: z24.boolean() },
1831
1916
  { name: "limit", description: `At most this many hits (1-${KNOWLEDGE_LIMITS.searchResults}, default 20)`, required: false, schema: kSearchLimit },
1832
1917
  { name: "organizationId", description: "The organization. Optional when the machine has one.", required: false },
1833
1918
  { name: "cursor", description: "The nextCursor of the previous answer, to get the next pages (with a query, pass the same query)", required: false }
@@ -1836,11 +1921,11 @@ var KNOWLEDGE_CAPABILITIES = [
1836
1921
  ...p.organizationId ? { organizationId: p.organizationId } : {},
1837
1922
  ...p.query ? { query: p.query } : {},
1838
1923
  ...p.onlyProjectId ? { projectId: p.onlyProjectId } : {},
1839
- ...p.types !== void 0 ? { types: parseTyped("types", z23.array(KnowledgePageTypeSchema), p.types) } : {},
1924
+ ...p.types !== void 0 ? { types: parseTyped("types", z24.array(KnowledgePageTypeSchema), p.types) } : {},
1840
1925
  ...p.themeIds !== void 0 ? { themeIds: parseTyped("themeIds", KnowledgeThemeIdsSchema, p.themeIds) } : {},
1841
1926
  ...p.themeDepth !== void 0 ? { themeDepth: parseTyped("themeDepth", kThemeDepth, p.themeDepth) } : {},
1842
1927
  ...p.spaceIds !== void 0 ? { spaceIds: parseTyped("spaceIds", kIds, p.spaceIds) } : {},
1843
- ...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete", z23.boolean(), p.includeObsolete) } : {},
1928
+ ...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete", z24.boolean(), p.includeObsolete) } : {},
1844
1929
  ...p.limit !== void 0 ? { limit: parseTyped("limit", kSearchLimit, p.limit) } : {},
1845
1930
  ...p.cursor !== void 0 ? { cursor: p.cursor } : {}
1846
1931
  }),
@@ -1889,16 +1974,16 @@ var KNOWLEDGE_CAPABILITIES = [
1889
1974
  params: [
1890
1975
  { name: "pageId", description: "The starting page", required: true },
1891
1976
  { name: "depth", description: `Number of hops, 1 to ${KNOWLEDGE_LIMITS.neighborsDepth} (default 1)`, required: false, schema: kDepth },
1892
- { name: "kinds", description: "Only follow these edge kinds", required: false, schema: z23.array(KnowledgeEdgeKindSchema) },
1977
+ { name: "kinds", description: "Only follow these edge kinds", required: false, schema: z24.array(KnowledgeEdgeKindSchema) },
1893
1978
  { name: "limit", description: "At most this many pages, nearest first (default all)", required: false, schema: kNeighborLimit },
1894
- { name: "includeObsolete", description: "Also return obsolete pages (left out by default)", required: false, schema: z23.boolean() }
1979
+ { name: "includeObsolete", description: "Also return obsolete pages (left out by default)", required: false, schema: z24.boolean() }
1895
1980
  ],
1896
1981
  buildInput: (p) => ({
1897
1982
  pageId: p.pageId,
1898
1983
  ...p.depth !== void 0 ? { depth: parseTyped("depth", kDepth, p.depth) } : {},
1899
- ...p.kinds !== void 0 ? { kinds: parseTyped("kinds", z23.array(KnowledgeEdgeKindSchema), p.kinds) } : {},
1984
+ ...p.kinds !== void 0 ? { kinds: parseTyped("kinds", z24.array(KnowledgeEdgeKindSchema), p.kinds) } : {},
1900
1985
  ...p.limit !== void 0 ? { limit: parseTyped("limit", kNeighborLimit, p.limit) } : {},
1901
- ...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete", z23.boolean(), p.includeObsolete) } : {}
1986
+ ...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete", z24.boolean(), p.includeObsolete) } : {}
1902
1987
  }),
1903
1988
  transformOutput: (result, input) => {
1904
1989
  if (!isRec(result) || !Array.isArray(result.nodes)) return result;
@@ -1926,12 +2011,12 @@ var KNOWLEDGE_CAPABILITIES = [
1926
2011
  params: [
1927
2012
  { name: "pageIds", description: "One to ten page ids", required: true, schema: kSeedIds },
1928
2013
  { name: "limit", description: "At most this many pages (default 10)", required: false, schema: kRelatedLimit },
1929
- { name: "includeObsolete", description: "Also return obsolete pages (left out by default)", required: false, schema: z23.boolean() }
2014
+ { name: "includeObsolete", description: "Also return obsolete pages (left out by default)", required: false, schema: z24.boolean() }
1930
2015
  ],
1931
2016
  buildInput: (p) => ({
1932
2017
  pageIds: parseTyped("pageIds", kSeedIds, p.pageIds),
1933
2018
  ...p.limit !== void 0 ? { limit: parseTyped("limit", kRelatedLimit, p.limit) } : {},
1934
- ...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete", z23.boolean(), p.includeObsolete) } : {}
2019
+ ...p.includeObsolete !== void 0 ? { includeObsolete: parseTyped("includeObsolete", z24.boolean(), p.includeObsolete) } : {}
1935
2020
  }),
1936
2021
  transformOutput: (result) => isRec(result) && Array.isArray(result.pages) ? { ...result, pages: result.pages.map(slimThemes) } : result
1937
2022
  },
@@ -1963,11 +2048,11 @@ var KNOWLEDGE_CAPABILITIES = [
1963
2048
  method: "GET",
1964
2049
  params: [
1965
2050
  { name: "pageId", description: "The page id", required: true },
1966
- { name: "at", description: "The date of the version, as given by knowledge_get_history (ISO 8601)", required: true, schema: z23.iso.datetime() },
2051
+ { name: "at", description: "The date of the version, as given by knowledge_get_history (ISO 8601)", required: true, schema: z24.iso.datetime() },
1967
2052
  { name: "heading", description: "Read only this section of the version", required: false },
1968
- { name: "compare", description: "Also give what changed since this version (sinceThen)", required: false, schema: z23.boolean() }
2053
+ { name: "compare", description: "Also give what changed since this version (sinceThen)", required: false, schema: z24.boolean() }
1969
2054
  ],
1970
- buildInput: (p) => ({ pageId: p.pageId, at: parseTyped("at", z23.iso.datetime(), p.at), ...p.heading !== void 0 ? { heading: p.heading } : {}, ...p.compare !== void 0 ? { compare: parseTyped("compare", z23.boolean(), p.compare) } : {} }),
2055
+ buildInput: (p) => ({ pageId: p.pageId, at: parseTyped("at", z24.iso.datetime(), p.at), ...p.heading !== void 0 ? { heading: p.heading } : {}, ...p.compare !== void 0 ? { compare: parseTyped("compare", z24.boolean(), p.compare) } : {} }),
1971
2056
  transformOutput: (result, input) => {
1972
2057
  if (!isRec(result) || !isRec(result.snapshot)) return result;
1973
2058
  const { markdown: _markdown, ...snapshot } = result.snapshot;
@@ -1994,14 +2079,14 @@ var KNOWLEDGE_CAPABILITIES = [
1994
2079
  { name: "projectIds", description: "Runeya project ids the page is about", required: false, schema: KnowledgeProjectIdsSchema },
1995
2080
  { name: "sources", description: 'Where the knowledge comes from: [{"label","url"?}]', required: false, schema: KnowledgeSourcesSchema },
1996
2081
  { name: "sections", description: 'Body sections: [{"heading","markdown"}]', required: false, schema: kSections },
1997
- { name: "links", description: `Links to other pages: [{"to","relation"}], relation among ${KNOWLEDGE_RELATIONS_DOC}`, required: false, schema: z23.array(KnowledgeLinkSchema).max(200) },
2082
+ { name: "links", description: `Links to other pages: [{"to","relation"}], relation among ${KNOWLEDGE_RELATIONS_DOC}`, required: false, schema: z24.array(KnowledgeLinkSchema).max(200) },
1998
2083
  { name: "locale", description: "Language of default section titles: fr or en", required: false, schema: KnowledgeLocaleSchema }
1999
2084
  ],
2000
2085
  buildInput: (p) => ({
2001
2086
  spaceId: p.spaceId,
2002
2087
  ...knowledgePageFields(p),
2003
2088
  ...p.sections !== void 0 ? { sections: parseTyped("sections", kSections, p.sections) } : {},
2004
- ...p.links !== void 0 ? { links: parseTyped("links", z23.array(KnowledgeLinkSchema).max(200), p.links) } : {},
2089
+ ...p.links !== void 0 ? { links: parseTyped("links", z24.array(KnowledgeLinkSchema).max(200), p.links) } : {},
2005
2090
  ...p.locale !== void 0 ? { locale: parseTyped("locale", KnowledgeLocaleSchema, p.locale) } : {}
2006
2091
  }),
2007
2092
  transformOutput: writeAnswer((page) => ({ themes: slimThemes(page).themes, sections: headingsOf(page) }))
@@ -2047,7 +2132,7 @@ var KNOWLEDGE_CAPABILITIES = [
2047
2132
  { name: "heading", description: "The section heading", required: true },
2048
2133
  { name: "markdown", description: "The content, in Markdown (required unless mode is remove)", required: false },
2049
2134
  { name: "mode", description: "replace (default), append or remove", required: false, schema: KnowledgeSectionModeSchema },
2050
- { name: "create", description: "Create the section at the end if no section has this heading", required: false, schema: z23.boolean() }
2135
+ { name: "create", description: "Create the section at the end if no section has this heading", required: false, schema: z24.boolean() }
2051
2136
  ],
2052
2137
  buildInput: (p) => {
2053
2138
  const started = typeof p.markdown === "string" ? [...p.markdown.matchAll(/^#{1,2}\s+(.+)$/gm)].map((m) => m[1].trim()) : [];
@@ -2059,7 +2144,7 @@ var KNOWLEDGE_CAPABILITIES = [
2059
2144
  heading: p.heading ?? "",
2060
2145
  ...p.markdown !== void 0 ? { markdown: p.markdown } : {},
2061
2146
  ...p.mode !== void 0 ? { mode: parseTyped("mode", KnowledgeSectionModeSchema, p.mode) } : {},
2062
- ...p.create !== void 0 ? { create: parseTyped("create", z23.boolean(), p.create) } : {}
2147
+ ...p.create !== void 0 ? { create: parseTyped("create", z24.boolean(), p.create) } : {}
2063
2148
  };
2064
2149
  },
2065
2150
  transformOutput: writeAnswer((page, input) => {
@@ -2081,14 +2166,14 @@ var KNOWLEDGE_CAPABILITIES = [
2081
2166
  { name: "find", description: "The exact text to replace, as it appears in the page Markdown. Include enough surrounding words for it to be unique.", required: true },
2082
2167
  { name: "replace", description: "The new text (empty to delete the passage)", required: true },
2083
2168
  { name: "heading", description: "Look only in this section (heading, case and accents ignored; empty = text before the first section)", required: false },
2084
- { name: "all", description: "Replace every occurrence instead of requiring a unique one", required: false, schema: z23.boolean() }
2169
+ { name: "all", description: "Replace every occurrence instead of requiring a unique one", required: false, schema: z24.boolean() }
2085
2170
  ],
2086
2171
  buildInput: (p) => ({
2087
2172
  pageId: p.pageId,
2088
2173
  find: p.find,
2089
2174
  replace: p.replace ?? "",
2090
2175
  ...p.heading !== void 0 ? { heading: p.heading } : {},
2091
- ...p.all !== void 0 ? { all: parseTyped("all", z23.boolean(), p.all) } : {}
2176
+ ...p.all !== void 0 ? { all: parseTyped("all", z24.boolean(), p.all) } : {}
2092
2177
  }),
2093
2178
  transformOutput: editedSectionOnly
2094
2179
  },
@@ -2611,13 +2696,13 @@ var RUNEYA_CAPABILITIES = [
2611
2696
  params: [
2612
2697
  { name: "serviceId", description: "The service ID", required: true },
2613
2698
  { name: "name", description: "New name", required: false },
2614
- { name: "orgId", description: "Move the service to this organization vault. Leave unset unless asked.", required: false, schema: z23.string().max(128).nullable() },
2699
+ { name: "orgId", description: "Move the service to this organization vault. Leave unset unless asked.", required: false, schema: z24.string().max(128).nullable() },
2615
2700
  ...UPDATE_SERVICE_PARAMS
2616
2701
  ],
2617
2702
  buildInput: (p) => ({
2618
2703
  id: p.serviceId,
2619
2704
  ...p.name ? { name: p.name } : {},
2620
- ...p.orgId !== void 0 ? { orgId: parseTyped("orgId", z23.string().max(128).nullable(), p.orgId) } : {},
2705
+ ...p.orgId !== void 0 ? { orgId: parseTyped("orgId", z24.string().max(128).nullable(), p.orgId) } : {},
2621
2706
  ...serviceFields(p, UPDATE_SERVICE_PARAMS)
2622
2707
  })
2623
2708
  },
@@ -2673,7 +2758,7 @@ var RUNEYA_CAPABILITIES = [
2673
2758
  method: "POST",
2674
2759
  params: [
2675
2760
  { name: "environmentId", description: "A service environment (scope service), from list_environments", required: true },
2676
- { name: "inherit", description: '"true" to inherit from the global environment, "false" to isolate', required: true, schema: z23.boolean() }
2761
+ { name: "inherit", description: '"true" to inherit from the global environment, "false" to isolate', required: true, schema: z24.boolean() }
2677
2762
  ],
2678
2763
  buildInput: (p) => ({ environmentId: p.environmentId, inherit: toBool(p.inherit ?? "true") })
2679
2764
  },
@@ -2976,7 +3061,7 @@ function applyProjectAnchor(cap, params, anchor) {
2976
3061
  }
2977
3062
 
2978
3063
  // src/external.ts
2979
- import { z as z26 } from "zod";
3064
+ import { z as z27 } from "zod";
2980
3065
 
2981
3066
  // src/project-anchors.ts
2982
3067
  function createProjectAnchors(env, cwd, containing) {
@@ -3204,7 +3289,7 @@ var PairingClient = class {
3204
3289
 
3205
3290
  // src/server.ts
3206
3291
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
3207
- import { z as z25 } from "zod";
3292
+ import { z as z26 } from "zod";
3208
3293
  function needsAnchor(cap, params) {
3209
3294
  const accepts = (name) => cap.params.some((p) => p.name === name);
3210
3295
  if (params["orgId"] || params["organizationId"]) return false;
@@ -3260,9 +3345,9 @@ function createRuneyaMcpServer(opts) {
3260
3345
  var CARD_CONTEXT = RUNEYA_CAPABILITIES.find((c) => c.name === "kanban_get_card_context");
3261
3346
  function registerWorkOnCardPrompt(server, cardContext, withInstance) {
3262
3347
  const args = {
3263
- boardId: z25.string().max(128).describe("The kanban board ID"),
3264
- cardId: z25.string().max(128).describe("The card ID"),
3265
- ...withInstance ? { runeyaInstance: z25.string().max(16).optional().describe("pid of the Runeya instance, when several are running") } : {}
3348
+ boardId: z26.string().max(128).describe("The kanban board ID"),
3349
+ cardId: z26.string().max(128).describe("The card ID"),
3350
+ ...withInstance ? { runeyaInstance: z26.string().max(16).optional().describe("pid of the Runeya instance, when several are running") } : {}
3266
3351
  };
3267
3352
  server.prompt(
3268
3353
  "work_on_card",
@@ -3337,7 +3422,7 @@ async function runExternalMcp(opts) {
3337
3422
  sessionToken,
3338
3423
  projectAnchor: envAnchor,
3339
3424
  extraShape: fixedUrl ? void 0 : {
3340
- runeyaInstance: z26.number().int().positive().optional().describe(
3425
+ runeyaInstance: z27.number().int().positive().optional().describe(
3341
3426
  "The pid of the Runeya instance to call, from list_local_runeya_instances. Needed only when several instances are running: then pass it on every call of this conversation."
3342
3427
  )
3343
3428
  }