gnosys 5.9.5 → 5.11.0

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 (490) hide show
  1. package/README.md +91 -771
  2. package/dist/cli.d.ts +0 -1
  3. package/dist/cli.js +403 -141
  4. package/dist/index.d.ts +3 -1
  5. package/dist/index.js +427 -348
  6. package/dist/lib/archive.d.ts +3 -4
  7. package/dist/lib/archive.js +0 -1
  8. package/dist/lib/ask.d.ts +3 -4
  9. package/dist/lib/ask.js +0 -1
  10. package/dist/lib/atomicWrite.d.ts +7 -0
  11. package/dist/lib/atomicWrite.js +46 -0
  12. package/dist/lib/attachments.d.ts +0 -1
  13. package/dist/lib/attachments.js +0 -1
  14. package/dist/lib/audioExtract.d.ts +0 -1
  15. package/dist/lib/audioExtract.js +0 -1
  16. package/dist/lib/audit.d.ts +0 -1
  17. package/dist/lib/audit.js +0 -1
  18. package/dist/lib/bootstrap.d.ts +1 -2
  19. package/dist/lib/bootstrap.js +0 -1
  20. package/dist/lib/centralize.d.ts +20 -0
  21. package/dist/lib/centralize.js +34 -0
  22. package/dist/lib/chat/SlashPalette.d.ts +2 -3
  23. package/dist/lib/chat/SlashPalette.js +0 -1
  24. package/dist/lib/chat/boot-splash.d.ts +1 -2
  25. package/dist/lib/chat/boot-splash.js +0 -1
  26. package/dist/lib/chat/choose.d.ts +0 -1
  27. package/dist/lib/chat/choose.js +0 -2
  28. package/dist/lib/chat/commands.d.ts +1 -2
  29. package/dist/lib/chat/commands.js +0 -1
  30. package/dist/lib/chat/components/CitationText.d.ts +1 -2
  31. package/dist/lib/chat/components/CitationText.js +0 -1
  32. package/dist/lib/chat/components/MarkdownRenderer.d.ts +0 -1
  33. package/dist/lib/chat/components/MarkdownRenderer.js +0 -1
  34. package/dist/lib/chat/components/ToolCallCard.d.ts +1 -2
  35. package/dist/lib/chat/components/ToolCallCard.js +0 -1
  36. package/dist/lib/chat/focus.d.ts +3 -3
  37. package/dist/lib/chat/focus.js +0 -1
  38. package/dist/lib/chat/index.d.ts +3 -4
  39. package/dist/lib/chat/index.js +2 -2
  40. package/dist/lib/chat/intent.d.ts +1 -17
  41. package/dist/lib/chat/intent.js +2 -3
  42. package/dist/lib/chat/llmTurn.d.ts +5 -6
  43. package/dist/lib/chat/llmTurn.js +0 -1
  44. package/dist/lib/chat/recall.d.ts +2 -3
  45. package/dist/lib/chat/recall.js +1 -2
  46. package/dist/lib/chat/render.d.ts +2 -3
  47. package/dist/lib/chat/render.js +0 -1
  48. package/dist/lib/chat/session.d.ts +0 -1
  49. package/dist/lib/chat/session.js +0 -1
  50. package/dist/lib/chat/theme.d.ts +0 -1
  51. package/dist/lib/chat/theme.js +0 -1
  52. package/dist/lib/chat/toolFence.d.ts +2 -2
  53. package/dist/lib/chat/toolFence.js +0 -1
  54. package/dist/lib/chat/tools.d.ts +0 -1
  55. package/dist/lib/chat/tools.js +0 -1
  56. package/dist/lib/chat/types.d.ts +0 -1
  57. package/dist/lib/chat/types.js +0 -1
  58. package/dist/lib/chat/write.d.ts +5 -5
  59. package/dist/lib/chat/write.js +0 -1
  60. package/dist/lib/chunkSplitter.d.ts +0 -1
  61. package/dist/lib/chunkSplitter.js +0 -1
  62. package/dist/lib/cleanup.d.ts +0 -1
  63. package/dist/lib/cleanup.js +0 -1
  64. package/dist/lib/config.d.ts +0 -1
  65. package/dist/lib/config.js +3 -3
  66. package/dist/lib/dashboard.d.ts +3 -4
  67. package/dist/lib/dashboard.js +5 -2
  68. package/dist/lib/db.d.ts +24 -1
  69. package/dist/lib/db.js +162 -16
  70. package/dist/lib/dbSearch.d.ts +3 -4
  71. package/dist/lib/dbSearch.js +0 -1
  72. package/dist/lib/dbWrite.d.ts +2 -3
  73. package/dist/lib/dbWrite.js +0 -1
  74. package/dist/lib/desktopNotify.d.ts +0 -1
  75. package/dist/lib/desktopNotify.js +0 -1
  76. package/dist/lib/docxExtract.d.ts +0 -1
  77. package/dist/lib/docxExtract.js +22 -1
  78. package/dist/lib/dream.d.ts +2 -3
  79. package/dist/lib/dream.js +2 -2
  80. package/dist/lib/embeddings.d.ts +0 -3
  81. package/dist/lib/embeddings.js +7 -3
  82. package/dist/lib/export.d.ts +6 -2
  83. package/dist/lib/export.js +24 -2
  84. package/dist/lib/exportProject.d.ts +4 -3
  85. package/dist/lib/exportProject.js +3 -1
  86. package/dist/lib/federated.d.ts +3 -3
  87. package/dist/lib/federated.js +6 -4
  88. package/dist/lib/fileDetect.d.ts +0 -1
  89. package/dist/lib/fileDetect.js +0 -1
  90. package/dist/lib/graph.d.ts +4 -4
  91. package/dist/lib/graph.js +0 -1
  92. package/dist/lib/heartbeat.d.ts +0 -13
  93. package/dist/lib/heartbeat.js +1 -2
  94. package/dist/lib/hybridSearch.d.ts +5 -21
  95. package/dist/lib/hybridSearch.js +0 -1
  96. package/dist/lib/idFormat.d.ts +0 -2
  97. package/dist/lib/idFormat.js +1 -2
  98. package/dist/lib/imageExtract.d.ts +0 -1
  99. package/dist/lib/imageExtract.js +0 -1
  100. package/dist/lib/import.d.ts +6 -5
  101. package/dist/lib/import.js +3 -33
  102. package/dist/lib/importProject.d.ts +4 -4
  103. package/dist/lib/importProject.js +1 -2
  104. package/dist/lib/ingest.d.ts +3 -4
  105. package/dist/lib/ingest.js +0 -1
  106. package/dist/lib/lensing.d.ts +1 -2
  107. package/dist/lib/lensing.js +0 -1
  108. package/dist/lib/llm.d.ts +6 -45
  109. package/dist/lib/llm.js +27 -9
  110. package/dist/lib/lock.d.ts +0 -1
  111. package/dist/lib/lock.js +0 -1
  112. package/dist/lib/log.d.ts +4 -0
  113. package/dist/lib/log.js +85 -0
  114. package/dist/lib/machineConfig.d.ts +86 -0
  115. package/dist/lib/machineConfig.js +157 -0
  116. package/dist/lib/machineMigrate.d.ts +38 -0
  117. package/dist/lib/machineMigrate.js +102 -0
  118. package/dist/lib/maintenance.d.ts +4 -5
  119. package/dist/lib/maintenance.js +0 -1
  120. package/dist/lib/mcpClientConfig.d.ts +20 -0
  121. package/dist/lib/mcpClientConfig.js +62 -0
  122. package/dist/lib/mcpHttp.d.ts +52 -0
  123. package/dist/lib/mcpHttp.js +227 -0
  124. package/dist/lib/migrate.d.ts +1 -2
  125. package/dist/lib/migrate.js +1 -1
  126. package/dist/lib/modelValidation.d.ts +0 -1
  127. package/dist/lib/modelValidation.js +0 -1
  128. package/dist/lib/multimodalIngest.d.ts +1 -2
  129. package/dist/lib/multimodalIngest.js +0 -1
  130. package/dist/lib/packageManager.d.ts +5 -0
  131. package/dist/lib/packageManager.js +30 -0
  132. package/dist/lib/paths.d.ts +11 -7
  133. package/dist/lib/paths.js +14 -2
  134. package/dist/lib/pdfExtract.d.ts +0 -1
  135. package/dist/lib/pdfExtract.js +0 -1
  136. package/dist/lib/portfolio.d.ts +1 -2
  137. package/dist/lib/portfolio.js +10 -3
  138. package/dist/lib/portfolioHtml.d.ts +1 -2
  139. package/dist/lib/portfolioHtml.js +0 -1
  140. package/dist/lib/preferences.d.ts +6 -2
  141. package/dist/lib/preferences.js +19 -1
  142. package/dist/lib/progress.d.ts +2 -2
  143. package/dist/lib/progress.js +0 -1
  144. package/dist/lib/projectIdentity.d.ts +1 -2
  145. package/dist/lib/projectIdentity.js +5 -5
  146. package/dist/lib/projectPaths.d.ts +60 -0
  147. package/dist/lib/projectPaths.js +99 -0
  148. package/dist/lib/projectScan.d.ts +40 -0
  149. package/dist/lib/projectScan.js +96 -0
  150. package/dist/lib/recall.d.ts +6 -6
  151. package/dist/lib/recall.js +0 -1
  152. package/dist/lib/remote.d.ts +3 -20
  153. package/dist/lib/remote.js +44 -2
  154. package/dist/lib/remoteWizard.d.ts +2 -3
  155. package/dist/lib/remoteWizard.js +0 -1
  156. package/dist/lib/resolver.d.ts +1 -2
  157. package/dist/lib/resolver.js +2 -3
  158. package/dist/lib/retry.d.ts +0 -1
  159. package/dist/lib/retry.js +1 -2
  160. package/dist/lib/rulesGen.d.ts +2 -8
  161. package/dist/lib/rulesGen.js +1 -2
  162. package/dist/lib/search.d.ts +1 -2
  163. package/dist/lib/search.js +1 -1
  164. package/dist/lib/searchTypes.d.ts +18 -0
  165. package/dist/lib/searchTypes.js +2 -0
  166. package/dist/lib/setup/coldStart.d.ts +0 -1
  167. package/dist/lib/setup/coldStart.js +0 -1
  168. package/dist/lib/setup/configSetRender.d.ts +0 -1
  169. package/dist/lib/setup/configSetRender.js +0 -1
  170. package/dist/lib/setup/dreamRender.d.ts +0 -1
  171. package/dist/lib/setup/dreamRender.js +0 -1
  172. package/dist/lib/setup/dreamState.d.ts +2 -2
  173. package/dist/lib/setup/dreamState.js +0 -1
  174. package/dist/lib/setup/modelsRender.d.ts +0 -1
  175. package/dist/lib/setup/modelsRender.js +0 -1
  176. package/dist/lib/setup/remoteRender.d.ts +0 -1
  177. package/dist/lib/setup/remoteRender.js +0 -1
  178. package/dist/lib/setup/routingRender.d.ts +0 -1
  179. package/dist/lib/setup/routingRender.js +0 -1
  180. package/dist/lib/setup/sections/ides.d.ts +1 -2
  181. package/dist/lib/setup/sections/ides.js +3 -2
  182. package/dist/lib/setup/sections/preferences.d.ts +1 -2
  183. package/dist/lib/setup/sections/preferences.js +3 -2
  184. package/dist/lib/setup/sections/routing.d.ts +1 -2
  185. package/dist/lib/setup/sections/routing.js +0 -1
  186. package/dist/lib/setup/storePath.d.ts +0 -1
  187. package/dist/lib/setup/storePath.js +0 -1
  188. package/dist/lib/setup/summary.d.ts +1 -2
  189. package/dist/lib/setup/summary.js +0 -1
  190. package/dist/lib/setup/syncProjectsRender.d.ts +0 -1
  191. package/dist/lib/setup/syncProjectsRender.js +0 -1
  192. package/dist/lib/setup/ui/diff.d.ts +0 -1
  193. package/dist/lib/setup/ui/diff.js +0 -1
  194. package/dist/lib/setup/ui/footer.d.ts +0 -1
  195. package/dist/lib/setup/ui/footer.js +0 -1
  196. package/dist/lib/setup/ui/header.d.ts +0 -1
  197. package/dist/lib/setup/ui/header.js +0 -1
  198. package/dist/lib/setup/ui/index.d.ts +0 -1
  199. package/dist/lib/setup/ui/index.js +0 -1
  200. package/dist/lib/setup/ui/menu.d.ts +0 -1
  201. package/dist/lib/setup/ui/menu.js +0 -1
  202. package/dist/lib/setup/ui/panel.d.ts +0 -1
  203. package/dist/lib/setup/ui/panel.js +0 -1
  204. package/dist/lib/setup/ui/prompt.d.ts +0 -1
  205. package/dist/lib/setup/ui/prompt.js +0 -1
  206. package/dist/lib/setup/ui/safePrompt.d.ts +0 -1
  207. package/dist/lib/setup/ui/safePrompt.js +0 -1
  208. package/dist/lib/setup/ui/spinner.d.ts +0 -1
  209. package/dist/lib/setup/ui/spinner.js +0 -1
  210. package/dist/lib/setup/ui/status.d.ts +0 -1
  211. package/dist/lib/setup/ui/status.js +0 -1
  212. package/dist/lib/setup/ui/table.d.ts +0 -1
  213. package/dist/lib/setup/ui/table.js +0 -1
  214. package/dist/lib/setup/ui/title.d.ts +0 -1
  215. package/dist/lib/setup/ui/title.js +0 -1
  216. package/dist/lib/setup/ui/tokens.d.ts +0 -1
  217. package/dist/lib/setup/ui/tokens.js +0 -1
  218. package/dist/lib/setup.d.ts +2 -31
  219. package/dist/lib/setup.js +13 -9
  220. package/dist/lib/staticSearch.d.ts +0 -1
  221. package/dist/lib/staticSearch.js +0 -1
  222. package/dist/lib/store.d.ts +0 -1
  223. package/dist/lib/store.js +0 -1
  224. package/dist/lib/structuredIngest.d.ts +0 -1
  225. package/dist/lib/structuredIngest.js +0 -1
  226. package/dist/lib/tags.d.ts +0 -1
  227. package/dist/lib/tags.js +0 -1
  228. package/dist/lib/timeline.d.ts +2 -3
  229. package/dist/lib/timeline.js +3 -4
  230. package/dist/lib/trace.d.ts +1 -16
  231. package/dist/lib/trace.js +0 -1
  232. package/dist/lib/upgrade.d.ts +0 -1
  233. package/dist/lib/upgrade.js +0 -1
  234. package/dist/lib/videoExtract.d.ts +0 -1
  235. package/dist/lib/videoExtract.js +0 -1
  236. package/dist/lib/webIndex.d.ts +1 -3
  237. package/dist/lib/webIndex.js +0 -1
  238. package/dist/lib/webIngest.d.ts +13 -1
  239. package/dist/lib/webIngest.js +98 -24
  240. package/dist/lib/wikilinks.d.ts +3 -3
  241. package/dist/lib/wikilinks.js +0 -1
  242. package/dist/postinstall.d.ts +0 -1
  243. package/dist/postinstall.js +0 -1
  244. package/dist/sandbox/client.d.ts +0 -1
  245. package/dist/sandbox/client.js +0 -1
  246. package/dist/sandbox/helper-template.d.ts +0 -1
  247. package/dist/sandbox/helper-template.js +0 -1
  248. package/dist/sandbox/manager.d.ts +0 -9
  249. package/dist/sandbox/manager.js +2 -3
  250. package/dist/sandbox/server.d.ts +2 -3
  251. package/dist/sandbox/server.js +7 -7
  252. package/docs/logo.svg +25 -0
  253. package/package.json +18 -6
  254. package/prompts/synthesize.md +2 -0
  255. package/dist/cli.d.ts.map +0 -1
  256. package/dist/cli.js.map +0 -1
  257. package/dist/index.d.ts.map +0 -1
  258. package/dist/index.js.map +0 -1
  259. package/dist/lib/archive.d.ts.map +0 -1
  260. package/dist/lib/archive.js.map +0 -1
  261. package/dist/lib/ask.d.ts.map +0 -1
  262. package/dist/lib/ask.js.map +0 -1
  263. package/dist/lib/attachments.d.ts.map +0 -1
  264. package/dist/lib/attachments.js.map +0 -1
  265. package/dist/lib/audioExtract.d.ts.map +0 -1
  266. package/dist/lib/audioExtract.js.map +0 -1
  267. package/dist/lib/audit.d.ts.map +0 -1
  268. package/dist/lib/audit.js.map +0 -1
  269. package/dist/lib/bootstrap.d.ts.map +0 -1
  270. package/dist/lib/bootstrap.js.map +0 -1
  271. package/dist/lib/chat/SlashPalette.d.ts.map +0 -1
  272. package/dist/lib/chat/SlashPalette.js.map +0 -1
  273. package/dist/lib/chat/boot-splash.d.ts.map +0 -1
  274. package/dist/lib/chat/boot-splash.js.map +0 -1
  275. package/dist/lib/chat/choose.d.ts.map +0 -1
  276. package/dist/lib/chat/choose.js.map +0 -1
  277. package/dist/lib/chat/commands.d.ts.map +0 -1
  278. package/dist/lib/chat/commands.js.map +0 -1
  279. package/dist/lib/chat/components/CitationText.d.ts.map +0 -1
  280. package/dist/lib/chat/components/CitationText.js.map +0 -1
  281. package/dist/lib/chat/components/MarkdownRenderer.d.ts.map +0 -1
  282. package/dist/lib/chat/components/MarkdownRenderer.js.map +0 -1
  283. package/dist/lib/chat/components/ToolCallCard.d.ts.map +0 -1
  284. package/dist/lib/chat/components/ToolCallCard.js.map +0 -1
  285. package/dist/lib/chat/focus.d.ts.map +0 -1
  286. package/dist/lib/chat/focus.js.map +0 -1
  287. package/dist/lib/chat/index.d.ts.map +0 -1
  288. package/dist/lib/chat/index.js.map +0 -1
  289. package/dist/lib/chat/intent.d.ts.map +0 -1
  290. package/dist/lib/chat/intent.js.map +0 -1
  291. package/dist/lib/chat/llmTurn.d.ts.map +0 -1
  292. package/dist/lib/chat/llmTurn.js.map +0 -1
  293. package/dist/lib/chat/recall.d.ts.map +0 -1
  294. package/dist/lib/chat/recall.js.map +0 -1
  295. package/dist/lib/chat/render.d.ts.map +0 -1
  296. package/dist/lib/chat/render.js.map +0 -1
  297. package/dist/lib/chat/session.d.ts.map +0 -1
  298. package/dist/lib/chat/session.js.map +0 -1
  299. package/dist/lib/chat/theme.d.ts.map +0 -1
  300. package/dist/lib/chat/theme.js.map +0 -1
  301. package/dist/lib/chat/toolFence.d.ts.map +0 -1
  302. package/dist/lib/chat/toolFence.js.map +0 -1
  303. package/dist/lib/chat/tools.d.ts.map +0 -1
  304. package/dist/lib/chat/tools.js.map +0 -1
  305. package/dist/lib/chat/types.d.ts.map +0 -1
  306. package/dist/lib/chat/types.js.map +0 -1
  307. package/dist/lib/chat/write.d.ts.map +0 -1
  308. package/dist/lib/chat/write.js.map +0 -1
  309. package/dist/lib/chunkSplitter.d.ts.map +0 -1
  310. package/dist/lib/chunkSplitter.js.map +0 -1
  311. package/dist/lib/cleanup.d.ts.map +0 -1
  312. package/dist/lib/cleanup.js.map +0 -1
  313. package/dist/lib/config.d.ts.map +0 -1
  314. package/dist/lib/config.js.map +0 -1
  315. package/dist/lib/dashboard.d.ts.map +0 -1
  316. package/dist/lib/dashboard.js.map +0 -1
  317. package/dist/lib/db.d.ts.map +0 -1
  318. package/dist/lib/db.js.map +0 -1
  319. package/dist/lib/dbSearch.d.ts.map +0 -1
  320. package/dist/lib/dbSearch.js.map +0 -1
  321. package/dist/lib/dbWrite.d.ts.map +0 -1
  322. package/dist/lib/dbWrite.js.map +0 -1
  323. package/dist/lib/desktopNotify.d.ts.map +0 -1
  324. package/dist/lib/desktopNotify.js.map +0 -1
  325. package/dist/lib/docxExtract.d.ts.map +0 -1
  326. package/dist/lib/docxExtract.js.map +0 -1
  327. package/dist/lib/dream.d.ts.map +0 -1
  328. package/dist/lib/dream.js.map +0 -1
  329. package/dist/lib/embeddings.d.ts.map +0 -1
  330. package/dist/lib/embeddings.js.map +0 -1
  331. package/dist/lib/export.d.ts.map +0 -1
  332. package/dist/lib/export.js.map +0 -1
  333. package/dist/lib/exportProject.d.ts.map +0 -1
  334. package/dist/lib/exportProject.js.map +0 -1
  335. package/dist/lib/federated.d.ts.map +0 -1
  336. package/dist/lib/federated.js.map +0 -1
  337. package/dist/lib/fileDetect.d.ts.map +0 -1
  338. package/dist/lib/fileDetect.js.map +0 -1
  339. package/dist/lib/graph.d.ts.map +0 -1
  340. package/dist/lib/graph.js.map +0 -1
  341. package/dist/lib/heartbeat.d.ts.map +0 -1
  342. package/dist/lib/heartbeat.js.map +0 -1
  343. package/dist/lib/history.d.ts +0 -39
  344. package/dist/lib/history.d.ts.map +0 -1
  345. package/dist/lib/history.js +0 -112
  346. package/dist/lib/history.js.map +0 -1
  347. package/dist/lib/hybridSearch.d.ts.map +0 -1
  348. package/dist/lib/hybridSearch.js.map +0 -1
  349. package/dist/lib/idFormat.d.ts.map +0 -1
  350. package/dist/lib/idFormat.js.map +0 -1
  351. package/dist/lib/imageExtract.d.ts.map +0 -1
  352. package/dist/lib/imageExtract.js.map +0 -1
  353. package/dist/lib/import.d.ts.map +0 -1
  354. package/dist/lib/import.js.map +0 -1
  355. package/dist/lib/importProject.d.ts.map +0 -1
  356. package/dist/lib/importProject.js.map +0 -1
  357. package/dist/lib/ingest.d.ts.map +0 -1
  358. package/dist/lib/ingest.js.map +0 -1
  359. package/dist/lib/lensing.d.ts.map +0 -1
  360. package/dist/lib/lensing.js.map +0 -1
  361. package/dist/lib/llm.d.ts.map +0 -1
  362. package/dist/lib/llm.js.map +0 -1
  363. package/dist/lib/lock.d.ts.map +0 -1
  364. package/dist/lib/lock.js.map +0 -1
  365. package/dist/lib/maintenance.d.ts.map +0 -1
  366. package/dist/lib/maintenance.js.map +0 -1
  367. package/dist/lib/migrate.d.ts.map +0 -1
  368. package/dist/lib/migrate.js.map +0 -1
  369. package/dist/lib/modelValidation.d.ts.map +0 -1
  370. package/dist/lib/modelValidation.js.map +0 -1
  371. package/dist/lib/multimodalIngest.d.ts.map +0 -1
  372. package/dist/lib/multimodalIngest.js.map +0 -1
  373. package/dist/lib/paths.d.ts.map +0 -1
  374. package/dist/lib/paths.js.map +0 -1
  375. package/dist/lib/pdfExtract.d.ts.map +0 -1
  376. package/dist/lib/pdfExtract.js.map +0 -1
  377. package/dist/lib/portfolio.d.ts.map +0 -1
  378. package/dist/lib/portfolio.js.map +0 -1
  379. package/dist/lib/portfolioHtml.d.ts.map +0 -1
  380. package/dist/lib/portfolioHtml.js.map +0 -1
  381. package/dist/lib/preferences.d.ts.map +0 -1
  382. package/dist/lib/preferences.js.map +0 -1
  383. package/dist/lib/progress.d.ts.map +0 -1
  384. package/dist/lib/progress.js.map +0 -1
  385. package/dist/lib/projectIdentity.d.ts.map +0 -1
  386. package/dist/lib/projectIdentity.js.map +0 -1
  387. package/dist/lib/recall.d.ts.map +0 -1
  388. package/dist/lib/recall.js.map +0 -1
  389. package/dist/lib/remote.d.ts.map +0 -1
  390. package/dist/lib/remote.js.map +0 -1
  391. package/dist/lib/remoteWizard.d.ts.map +0 -1
  392. package/dist/lib/remoteWizard.js.map +0 -1
  393. package/dist/lib/resolver.d.ts.map +0 -1
  394. package/dist/lib/resolver.js.map +0 -1
  395. package/dist/lib/retry.d.ts.map +0 -1
  396. package/dist/lib/retry.js.map +0 -1
  397. package/dist/lib/rulesGen.d.ts.map +0 -1
  398. package/dist/lib/rulesGen.js.map +0 -1
  399. package/dist/lib/search.d.ts.map +0 -1
  400. package/dist/lib/search.js.map +0 -1
  401. package/dist/lib/setup/coldStart.d.ts.map +0 -1
  402. package/dist/lib/setup/coldStart.js.map +0 -1
  403. package/dist/lib/setup/configSetRender.d.ts.map +0 -1
  404. package/dist/lib/setup/configSetRender.js.map +0 -1
  405. package/dist/lib/setup/dreamRender.d.ts.map +0 -1
  406. package/dist/lib/setup/dreamRender.js.map +0 -1
  407. package/dist/lib/setup/dreamState.d.ts.map +0 -1
  408. package/dist/lib/setup/dreamState.js.map +0 -1
  409. package/dist/lib/setup/modelsRender.d.ts.map +0 -1
  410. package/dist/lib/setup/modelsRender.js.map +0 -1
  411. package/dist/lib/setup/remoteRender.d.ts.map +0 -1
  412. package/dist/lib/setup/remoteRender.js.map +0 -1
  413. package/dist/lib/setup/routingRender.d.ts.map +0 -1
  414. package/dist/lib/setup/routingRender.js.map +0 -1
  415. package/dist/lib/setup/sections/ides.d.ts.map +0 -1
  416. package/dist/lib/setup/sections/ides.js.map +0 -1
  417. package/dist/lib/setup/sections/preferences.d.ts.map +0 -1
  418. package/dist/lib/setup/sections/preferences.js.map +0 -1
  419. package/dist/lib/setup/sections/routing.d.ts.map +0 -1
  420. package/dist/lib/setup/sections/routing.js.map +0 -1
  421. package/dist/lib/setup/storePath.d.ts.map +0 -1
  422. package/dist/lib/setup/storePath.js.map +0 -1
  423. package/dist/lib/setup/summary.d.ts.map +0 -1
  424. package/dist/lib/setup/summary.js.map +0 -1
  425. package/dist/lib/setup/syncProjectsRender.d.ts.map +0 -1
  426. package/dist/lib/setup/syncProjectsRender.js.map +0 -1
  427. package/dist/lib/setup/ui/diff.d.ts.map +0 -1
  428. package/dist/lib/setup/ui/diff.js.map +0 -1
  429. package/dist/lib/setup/ui/footer.d.ts.map +0 -1
  430. package/dist/lib/setup/ui/footer.js.map +0 -1
  431. package/dist/lib/setup/ui/header.d.ts.map +0 -1
  432. package/dist/lib/setup/ui/header.js.map +0 -1
  433. package/dist/lib/setup/ui/index.d.ts.map +0 -1
  434. package/dist/lib/setup/ui/index.js.map +0 -1
  435. package/dist/lib/setup/ui/menu.d.ts.map +0 -1
  436. package/dist/lib/setup/ui/menu.js.map +0 -1
  437. package/dist/lib/setup/ui/panel.d.ts.map +0 -1
  438. package/dist/lib/setup/ui/panel.js.map +0 -1
  439. package/dist/lib/setup/ui/prompt.d.ts.map +0 -1
  440. package/dist/lib/setup/ui/prompt.js.map +0 -1
  441. package/dist/lib/setup/ui/safePrompt.d.ts.map +0 -1
  442. package/dist/lib/setup/ui/safePrompt.js.map +0 -1
  443. package/dist/lib/setup/ui/spinner.d.ts.map +0 -1
  444. package/dist/lib/setup/ui/spinner.js.map +0 -1
  445. package/dist/lib/setup/ui/status.d.ts.map +0 -1
  446. package/dist/lib/setup/ui/status.js.map +0 -1
  447. package/dist/lib/setup/ui/table.d.ts.map +0 -1
  448. package/dist/lib/setup/ui/table.js.map +0 -1
  449. package/dist/lib/setup/ui/title.d.ts.map +0 -1
  450. package/dist/lib/setup/ui/title.js.map +0 -1
  451. package/dist/lib/setup/ui/tokens.d.ts.map +0 -1
  452. package/dist/lib/setup/ui/tokens.js.map +0 -1
  453. package/dist/lib/setup.d.ts.map +0 -1
  454. package/dist/lib/setup.js.map +0 -1
  455. package/dist/lib/staticSearch.d.ts.map +0 -1
  456. package/dist/lib/staticSearch.js.map +0 -1
  457. package/dist/lib/store.d.ts.map +0 -1
  458. package/dist/lib/store.js.map +0 -1
  459. package/dist/lib/structuredIngest.d.ts.map +0 -1
  460. package/dist/lib/structuredIngest.js.map +0 -1
  461. package/dist/lib/tags.d.ts.map +0 -1
  462. package/dist/lib/tags.js.map +0 -1
  463. package/dist/lib/timeline.d.ts.map +0 -1
  464. package/dist/lib/timeline.js.map +0 -1
  465. package/dist/lib/trace.d.ts.map +0 -1
  466. package/dist/lib/trace.js.map +0 -1
  467. package/dist/lib/upgrade.d.ts.map +0 -1
  468. package/dist/lib/upgrade.js.map +0 -1
  469. package/dist/lib/videoExtract.d.ts.map +0 -1
  470. package/dist/lib/videoExtract.js.map +0 -1
  471. package/dist/lib/webIndex.d.ts.map +0 -1
  472. package/dist/lib/webIndex.js.map +0 -1
  473. package/dist/lib/webIngest.d.ts.map +0 -1
  474. package/dist/lib/webIngest.js.map +0 -1
  475. package/dist/lib/wikilinks.d.ts.map +0 -1
  476. package/dist/lib/wikilinks.js.map +0 -1
  477. package/dist/postinstall.d.ts.map +0 -1
  478. package/dist/postinstall.js.map +0 -1
  479. package/dist/sandbox/client.d.ts.map +0 -1
  480. package/dist/sandbox/client.js.map +0 -1
  481. package/dist/sandbox/helper-template.d.ts.map +0 -1
  482. package/dist/sandbox/helper-template.js.map +0 -1
  483. package/dist/sandbox/index.d.ts +0 -10
  484. package/dist/sandbox/index.d.ts.map +0 -1
  485. package/dist/sandbox/index.js +0 -10
  486. package/dist/sandbox/index.js.map +0 -1
  487. package/dist/sandbox/manager.d.ts.map +0 -1
  488. package/dist/sandbox/manager.js.map +0 -1
  489. package/dist/sandbox/server.d.ts.map +0 -1
  490. package/dist/sandbox/server.js.map +0 -1
@@ -13,6 +13,7 @@ import { existsSync, statSync, mkdirSync, writeFileSync, unlinkSync } from "fs";
13
13
  import os from "os";
14
14
  import * as path from "path";
15
15
  import { GnosysDB } from "./db.js";
16
+ import { readMachineConfig } from "./machineConfig.js";
16
17
  // ─── Validation ─────────────────────────────────────────────────────────
17
18
  /**
18
19
  * Validate that a directory is suitable for hosting the remote gnosys.db.
@@ -125,6 +126,8 @@ const META_LAST_SYNC = "remote_last_synced_at";
125
126
  const META_AUDIT_PUSH = "audit_last_pushed_at";
126
127
  const META_AUDIT_PULL = "audit_last_pulled_at";
127
128
  const META_MACHINE_ID = "machine_id";
129
+ /** Machine-local sync observability — not replicated between databases. */
130
+ const SYNC_META_AUDIT_OPS = new Set(["remote_push", "remote_pull"]);
128
131
  export class RemoteSync {
129
132
  localDb;
130
133
  remotePath;
@@ -314,6 +317,11 @@ export class RemoteSync {
314
317
  return;
315
318
  let lastPushed = cursor;
316
319
  for (const entry of localChanges) {
320
+ if (SYNC_META_AUDIT_OPS.has(entry.operation)) {
321
+ if (entry.timestamp > lastPushed)
322
+ lastPushed = entry.timestamp;
323
+ continue;
324
+ }
317
325
  try {
318
326
  remoteDb.logAudit({
319
327
  timestamp: entry.timestamp,
@@ -355,6 +363,11 @@ export class RemoteSync {
355
363
  lastPulled = entry.timestamp;
356
364
  continue;
357
365
  }
366
+ if (SYNC_META_AUDIT_OPS.has(entry.operation)) {
367
+ if (entry.timestamp > lastPulled)
368
+ lastPulled = entry.timestamp;
369
+ continue;
370
+ }
358
371
  try {
359
372
  this.localDb.logAudit({
360
373
  timestamp: entry.timestamp,
@@ -512,6 +525,18 @@ export class RemoteSync {
512
525
  kind: "done",
513
526
  text: `Push complete: ${result.pushed} pushed, ${result.skipped} skipped, ${result.conflicts.length} conflicts`,
514
527
  });
528
+ this.localDb.logAudit({
529
+ timestamp: new Date().toISOString(),
530
+ operation: "remote_push",
531
+ memory_id: null,
532
+ details: JSON.stringify({
533
+ pushed: result.pushed,
534
+ skipped: result.skipped,
535
+ conflicts: result.conflicts.length,
536
+ }),
537
+ duration_ms: null,
538
+ trace_id: null,
539
+ });
515
540
  return result;
516
541
  }
517
542
  /** Pull remote changes to local. Returns what was pulled/skipped. */
@@ -589,6 +614,18 @@ export class RemoteSync {
589
614
  kind: "done",
590
615
  text: `Pull complete: ${result.pulled} pulled, ${result.skipped} skipped, ${result.conflicts.length} conflicts`,
591
616
  });
617
+ this.localDb.logAudit({
618
+ timestamp: new Date().toISOString(),
619
+ operation: "remote_pull",
620
+ memory_id: null,
621
+ details: JSON.stringify({
622
+ pulled: result.pulled,
623
+ skipped: result.skipped,
624
+ conflicts: result.conflicts.length,
625
+ }),
626
+ duration_ms: null,
627
+ trace_id: null,
628
+ });
592
629
  return result;
593
630
  }
594
631
  /** Run a full sync: push then pull. */
@@ -711,6 +748,12 @@ export class RemoteSync {
711
748
  * upgrade past v5.9.4 stop seeing the stale identifier in panels.
712
749
  */
713
750
  export function getMachineId(localDb) {
751
+ // v5.11: machine identity lives in machine-local machine.json (never synced).
752
+ // Prefer it so a shared/synced gnosys_meta can't make two machines collide.
753
+ // Fall back to the legacy synced meta value when machine.json is absent.
754
+ const mc = readMachineConfig();
755
+ if (mc?.machineId)
756
+ return mc.machineId;
714
757
  const cached = localDb.getMeta(META_MACHINE_ID);
715
758
  if (cached && !isStaleUnknownId(cached))
716
759
  return cached;
@@ -736,7 +779,7 @@ function isStaleUnknownId(id) {
736
779
  * to `os.hostname()` so macOS shells without `HOSTNAME` still get a real
737
780
  * name. Returns `"unknown"` only when everything fails.
738
781
  */
739
- export function resolveHostname() {
782
+ function resolveHostname() {
740
783
  const fromEnv = process.env.HOSTNAME || process.env.COMPUTERNAME;
741
784
  if (fromEnv)
742
785
  return fromEnv;
@@ -769,4 +812,3 @@ export function formatStatus(status) {
769
812
  lines.push(`Status: ${status.message}`);
770
813
  return lines.join("\n");
771
814
  }
772
- //# sourceMappingURL=remote.js.map
@@ -6,10 +6,9 @@
6
6
  * 2. Reconfigure — already have a remote, want to change it or disconnect
7
7
  * 3. Join existing — second machine joining a remote that already has data
8
8
  */
9
- import { Interface } from "readline/promises";
10
- import { GnosysDB } from "./db.js";
9
+ import { type Interface } from "readline/promises";
10
+ import type { GnosysDB } from "./db.js";
11
11
  export declare function runConfigureWizard(centralDb: GnosysDB, externalRl?: Interface): Promise<boolean>;
12
12
  export declare function configureFromPath(centralDb: GnosysDB, remotePath: string, opts?: {
13
13
  migrate?: boolean;
14
14
  }): Promise<boolean>;
15
- //# sourceMappingURL=remoteWizard.d.ts.map
@@ -400,4 +400,3 @@ export async function configureFromPath(centralDb, remotePath, opts = {}) {
400
400
  }
401
401
  return true;
402
402
  }
403
- //# sourceMappingURL=remoteWizard.js.map
@@ -7,7 +7,7 @@
7
7
  * Personal (GNOSYS_PERSONAL, writable, fallback write target)
8
8
  * Global (GNOSYS_GLOBAL, writable only when explicitly targeted)
9
9
  */
10
- import { GnosysStore, Memory } from "./store.js";
10
+ import { GnosysStore, type Memory } from "./store.js";
11
11
  export type StoreLayer = "project" | "personal" | "global" | "optional";
12
12
  export interface ResolvedStore {
13
13
  layer: StoreLayer;
@@ -114,4 +114,3 @@ export declare class GnosysResolver {
114
114
  */
115
115
  private isValidStore;
116
116
  }
117
- //# sourceMappingURL=resolver.d.ts.map
@@ -9,6 +9,7 @@
9
9
  */
10
10
  import fs from "fs/promises";
11
11
  import path from "path";
12
+ import { getProjectRegistryPath } from "./paths.js";
12
13
  import { GnosysStore } from "./store.js";
13
14
  /**
14
15
  * v5.9.1 (#98): read just the projectId from a project's gnosys.json
@@ -351,8 +352,7 @@ export class GnosysResolver {
351
352
  * Path to the persistent project registry file.
352
353
  */
353
354
  getRegistryPath() {
354
- const home = process.env.HOME || process.env.USERPROFILE || "/tmp";
355
- return path.join(home, ".config", "gnosys", "projects.json");
355
+ return getProjectRegistryPath();
356
356
  }
357
357
  /**
358
358
  * Detect all available stores from all sources (registered, MCP roots, cwd, env vars).
@@ -406,4 +406,3 @@ export class GnosysResolver {
406
406
  }
407
407
  }
408
408
  }
409
- //# sourceMappingURL=resolver.js.map
@@ -21,4 +21,3 @@ export declare function isTransientError(error: Error): boolean;
21
21
  * Execute an async function with retry logic.
22
22
  */
23
23
  export declare function withRetry<T>(fn: () => Promise<T>, options?: Partial<RetryOptions>): Promise<T>;
24
- //# sourceMappingURL=retry.d.ts.map
package/dist/lib/retry.js CHANGED
@@ -44,7 +44,7 @@ export async function withRetry(fn, options) {
44
44
  }
45
45
  // Calculate delay with exponential backoff + jitter
46
46
  const expDelay = opts.exponential
47
- ? opts.baseDelayMs * Math.pow(2, attempt - 1)
47
+ ? opts.baseDelayMs * 2 ** (attempt - 1)
48
48
  : opts.baseDelayMs;
49
49
  const jitter = Math.random() * opts.baseDelayMs * 0.5;
50
50
  const delayMs = Math.round(expDelay + jitter);
@@ -57,4 +57,3 @@ export async function withRetry(fn, options) {
57
57
  function sleep(ms) {
58
58
  return new Promise((resolve) => setTimeout(resolve, ms));
59
59
  }
60
- //# sourceMappingURL=retry.js.map
@@ -11,8 +11,8 @@
11
11
  * 2. User preferences (from scope='user' category='preferences')
12
12
  * 3. Project conventions (from scope='project' for current projectId)
13
13
  */
14
- import { GnosysDB, DbMemory } from "./db.js";
15
- import { Preference } from "./preferences.js";
14
+ import type { GnosysDB, DbMemory } from "./db.js";
15
+ import { type Preference } from "./preferences.js";
16
16
  export interface RulesGenResult {
17
17
  /** The full file content after injection */
18
18
  content: string;
@@ -41,11 +41,6 @@ export declare function injectRules(filePath: string, generatedBlock: string): P
41
41
  * central DB, generates the rules block, and injects into the agent rules file.
42
42
  */
43
43
  export declare function syncRules(centralDb: GnosysDB, projectDir: string, agentRulesTarget: string | null, projectId: string | null): Promise<RulesGenResult | null>;
44
- /**
45
- * Determine which targets to sync based on what exists in the project directory.
46
- * Returns an array of relative file paths.
47
- */
48
- export declare function detectAllTargets(projectDir: string): string[];
49
44
  /**
50
45
  * Sync rules to a specific target (or all detected targets).
51
46
  * If target is "all", syncs to every detected agent config in the project.
@@ -56,4 +51,3 @@ export declare function syncToTarget(centralDb: GnosysDB, projectDir: string, ta
56
51
  * Remove the GNOSYS block from a rules file (cleanup).
57
52
  */
58
53
  export declare function removeRulesBlock(filePath: string): Promise<boolean>;
59
- //# sourceMappingURL=rulesGen.d.ts.map
@@ -181,7 +181,7 @@ function getGlobalClaudeMdPath() {
181
181
  * Determine which targets to sync based on what exists in the project directory.
182
182
  * Returns an array of relative file paths.
183
183
  */
184
- export function detectAllTargets(projectDir) {
184
+ function detectAllTargets(projectDir) {
185
185
  const targets = [];
186
186
  // Check for Cursor
187
187
  if (fsSync.existsSync(path.join(projectDir, ".cursor"))) {
@@ -276,4 +276,3 @@ export async function removeRulesBlock(filePath) {
276
276
  await fs.writeFile(filePath, newContent, "utf-8");
277
277
  return true;
278
278
  }
279
- //# sourceMappingURL=rulesGen.js.map
@@ -2,7 +2,7 @@
2
2
  * Gnosys Search — SQLite FTS5 keyword index for fast text search.
3
3
  * FTS5-based search and discovery across all Gnosys stores.
4
4
  */
5
- import { GnosysStore } from "./store.js";
5
+ import type { GnosysStore } from "./store.js";
6
6
  export interface SearchResult {
7
7
  relative_path: string;
8
8
  title: string;
@@ -60,4 +60,3 @@ export declare class GnosysSearch {
60
60
  discover(query: string, limit?: number): DiscoverResult[];
61
61
  close(): void;
62
62
  }
63
- //# sourceMappingURL=search.d.ts.map
@@ -30,6 +30,7 @@ export class GnosysSearch {
30
30
  try {
31
31
  const dbPath = path.join(storePath, ".config", "search.db");
32
32
  this.db = new Database(dbPath);
33
+ this.db.pragma("busy_timeout = 5000");
33
34
  this.initSchema();
34
35
  // Smoke-test: insert + delete to confirm journal ops work
35
36
  this.db.exec("CREATE TABLE IF NOT EXISTS _write_test (v INTEGER); INSERT INTO _write_test VALUES (1); DELETE FROM _write_test; DROP TABLE _write_test;");
@@ -220,4 +221,3 @@ export class GnosysSearch {
220
221
  this.db?.close();
221
222
  }
222
223
  }
223
- //# sourceMappingURL=search.js.map
@@ -0,0 +1,18 @@
1
+ /** Shared search result types (extracted to break hybridSearch ↔ dbSearch static cycle). */
2
+ export type SearchMode = "keyword" | "semantic" | "hybrid";
3
+ export interface HybridSearchResult {
4
+ relativePath: string;
5
+ title: string;
6
+ snippet: string;
7
+ score: number;
8
+ /** Which method(s) found this result */
9
+ sources: ("keyword" | "semantic" | "archive")[];
10
+ /** Full memory content (loaded on demand for ask engine) */
11
+ content?: string;
12
+ /** The memory frontmatter content field */
13
+ fullContent?: string;
14
+ /** Memory ID (used for dearchiving) */
15
+ memoryId?: string;
16
+ /** Whether this result came from the archive */
17
+ fromArchive?: boolean;
18
+ }
@@ -0,0 +1,2 @@
1
+ /** Shared search result types (extracted to break hybridSearch ↔ dbSearch static cycle). */
2
+ export {};
@@ -68,4 +68,3 @@ export interface KeySourceRow {
68
68
  }
69
69
  export declare function renderKeySourceRows(rows: KeySourceRow[]): string[];
70
70
  export declare function renderKeyStepFooter(): string;
71
- //# sourceMappingURL=coldStart.d.ts.map
@@ -119,4 +119,3 @@ export function renderKeySourceRows(rows) {
119
119
  export function renderKeyStepFooter() {
120
120
  return Footer("1–4 · pick b · back");
121
121
  }
122
- //# sourceMappingURL=coldStart.js.map
@@ -23,4 +23,3 @@ export declare function classifyStore(storePath: string, homeDir: string): "proj
23
23
  * only — config keys are at most ~20 chars.
24
24
  */
25
25
  export declare function levenshtein(a: string, b: string): number;
26
- //# sourceMappingURL=configSetRender.d.ts.map
@@ -100,4 +100,3 @@ export function levenshtein(a, b) {
100
100
  }
101
101
  return prev[n];
102
102
  }
103
- //# sourceMappingURL=configSetRender.js.map
@@ -41,4 +41,3 @@ export declare function renderThresholdsBlock(idleMinutes: number, maxRuntimeMin
41
41
  generateSummaries: boolean;
42
42
  discoverRelationships: boolean;
43
43
  }): string[];
44
- //# sourceMappingURL=dreamRender.d.ts.map
@@ -52,4 +52,3 @@ export function renderThresholdsBlock(idleMinutes, maxRuntimeMinutes, minMemorie
52
52
  ` ${subs.discoverRelationships ? "✓" : "○"} discover relationships link related memories explicitly`,
53
53
  ];
54
54
  }
55
- //# sourceMappingURL=dreamRender.js.map
@@ -20,7 +20,7 @@
20
20
  import type { GnosysDB } from "../db.js";
21
21
  import type { GnosysConfig } from "../config.js";
22
22
  /** Where the active dream state came from. */
23
- export type DreamStateSource = "config" | "local-db" | "remote-db" | "default";
23
+ type DreamStateSource = "config" | "local-db" | "remote-db" | "default";
24
24
  export interface DreamState {
25
25
  /** True if any source advertises dream mode as active. */
26
26
  enabled: boolean;
@@ -47,4 +47,4 @@ export interface DreamState {
47
47
  export declare function getDreamState(cfg: GnosysConfig, localDb: GnosysDB | null, remoteDb?: GnosysDB | null): DreamState;
48
48
  /** Describe a dream state in one line for the settings summary panel. */
49
49
  export declare function describeDreamState(state: DreamState): string;
50
- //# sourceMappingURL=dreamState.d.ts.map
50
+ export {};
@@ -65,4 +65,3 @@ function safeReadDreamMachineId(db) {
65
65
  return null;
66
66
  }
67
67
  }
68
- //# sourceMappingURL=dreamState.js.map
@@ -22,4 +22,3 @@ export interface ModelDiffRow {
22
22
  * so the diff block isn't empty.
23
23
  */
24
24
  export declare function buildModelsDiffRows(currentProvider: string | undefined, currentModel: string | undefined, newProvider: string, newModel: string): ModelDiffRow[];
25
- //# sourceMappingURL=modelsRender.d.ts.map
@@ -30,4 +30,3 @@ export function buildModelsDiffRows(currentProvider, currentModel, newProvider,
30
30
  }
31
31
  return rows;
32
32
  }
33
- //# sourceMappingURL=modelsRender.js.map
@@ -40,4 +40,3 @@ export interface RemoteDiffInput {
40
40
  mode: SyncMode;
41
41
  }
42
42
  export declare function renderRemoteDiff(d: RemoteDiffInput): string;
43
- //# sourceMappingURL=remoteRender.d.ts.map
@@ -62,4 +62,3 @@ export function renderRemoteDiff(d) {
62
62
  lines.push(`${indent}${labelM} ${fromM} ${arrow} ${color(c.accentHi, d.mode)}`);
63
63
  return lines.join("\n");
64
64
  }
65
- //# sourceMappingURL=remoteRender.js.map
@@ -45,4 +45,3 @@ export interface DiffEntry {
45
45
  to: string | null;
46
46
  }
47
47
  export declare function renderRoutingDiff(entries: DiffEntry[]): string;
48
- //# sourceMappingURL=routingRender.d.ts.map
@@ -111,4 +111,3 @@ function costColor(t) {
111
111
  return c.fail;
112
112
  }
113
113
  }
114
- //# sourceMappingURL=routingRender.js.map
@@ -6,7 +6,7 @@
6
6
  * Extracted from the linear `runSetup` so it can be invoked directly via
7
7
  * `gnosys setup ides` or from the summary-first menu.
8
8
  */
9
- import { Interface as ReadlineInterface } from "readline/promises";
9
+ import type { Interface as ReadlineInterface } from "readline/promises";
10
10
  export interface IdesSetupOptions {
11
11
  rl: ReadlineInterface;
12
12
  directory: string;
@@ -25,4 +25,3 @@ export interface IdesSetupOptions {
25
25
  * Returns true if at least one IDE config was written.
26
26
  */
27
27
  export declare function runIdesSetup(opts: IdesSetupOptions): Promise<boolean>;
28
- //# sourceMappingURL=ides.d.ts.map
@@ -124,7 +124,9 @@ export async function runIdesSetup(opts) {
124
124
  return ` ${num} ${dot} ${line.slice(3)}`;
125
125
  },
126
126
  });
127
- tableLines.forEach((line) => console.log(line));
127
+ tableLines.forEach((line) => {
128
+ console.log(line);
129
+ });
128
130
  const ideOptions = ALL_IDE_KEYS.map((ide) => IDE_LABELS[ide] ?? ide);
129
131
  const ideKeyForOption = [...ALL_IDE_KEYS];
130
132
  console.log("");
@@ -176,4 +178,3 @@ export async function runIdesSetup(opts) {
176
178
  console.log(` ${color(c.textDim, `${configured} ides configured · ${errors} errors`)}`);
177
179
  return configured > 0;
178
180
  }
179
- //# sourceMappingURL=ides.js.map
@@ -14,7 +14,7 @@
14
14
  * - Set a new preference inline (key + value)
15
15
  * - View / delete an existing preference
16
16
  */
17
- import { Interface as ReadlineInterface } from "readline/promises";
17
+ import type { Interface as ReadlineInterface } from "readline/promises";
18
18
  export interface UserPreference {
19
19
  id: string;
20
20
  key: string;
@@ -49,4 +49,3 @@ export declare function listUserPreferences(): Promise<UserPreference[]>;
49
49
  * - One preview line per row, no truncation marker.
50
50
  */
51
51
  export declare function runPreferencesReview(rl: ReadlineInterface): Promise<boolean>;
52
- //# sourceMappingURL=preferences.d.ts.map
@@ -222,7 +222,9 @@ export async function runPreferencesReview(rl) {
222
222
  return ` ${num} ${dot} ${line.slice(3)}`;
223
223
  },
224
224
  });
225
- tableLines.forEach((line) => console.log(line));
225
+ tableLines.forEach((line) => {
226
+ console.log(line);
227
+ });
226
228
  console.log("");
227
229
  console.log(` ${color(c.accent, glyph.dotFilled)} ${color(c.textDim, "added by you")} ${color(c.textDim, glyph.dotHollow)} ${color(c.textDim, "imported / unknown")}`);
228
230
  }
@@ -248,4 +250,3 @@ export async function runPreferencesReview(rl) {
248
250
  anyChange = true;
249
251
  }
250
252
  }
251
- //# sourceMappingURL=preferences.js.map
@@ -6,7 +6,7 @@
6
6
  * Extracted from the linear `runSetup` flow so it can be invoked
7
7
  * directly via `gnosys setup routing` or from the summary-first menu.
8
8
  */
9
- import { Interface as ReadlineInterface } from "readline/promises";
9
+ import type { Interface as ReadlineInterface } from "readline/promises";
10
10
  export interface RoutingOptions {
11
11
  rl: ReadlineInterface;
12
12
  directory: string;
@@ -17,4 +17,3 @@ export interface RoutingOptions {
17
17
  * overrides via updateConfig(). Returns true if config was changed.
18
18
  */
19
19
  export declare function runRoutingSetup(opts: RoutingOptions): Promise<boolean>;
20
- //# sourceMappingURL=routing.d.ts.map
@@ -201,4 +201,3 @@ export async function runRoutingSetup(opts) {
201
201
  console.log(Footer("press enter to return"));
202
202
  return true;
203
203
  }
204
- //# sourceMappingURL=routing.js.map
@@ -27,4 +27,3 @@ export declare function resolveActiveStorePath(projectDir: string): string;
27
27
  * `resolveActiveStorePath` only by the `mkdir` side-effect.
28
28
  */
29
29
  export declare function ensureActiveStorePath(projectDir: string): string;
30
- //# sourceMappingURL=storePath.d.ts.map
@@ -44,4 +44,3 @@ export function ensureActiveStorePath(projectDir) {
44
44
  }
45
45
  return globalStore;
46
46
  }
47
- //# sourceMappingURL=storePath.js.map
@@ -18,7 +18,7 @@
18
18
  * - `maybeOfferProviderRepair` reworked to column-aligned detection
19
19
  * block with no "pre-v5.8.4" history leak.
20
20
  */
21
- import { Interface as ReadlineInterface } from "readline/promises";
21
+ import { type Interface as ReadlineInterface } from "readline/promises";
22
22
  import { type GnosysConfig } from "../config.js";
23
23
  import { resolveActiveStorePath } from "./storePath.js";
24
24
  /** Each summary line is a section the user can navigate into. */
@@ -53,4 +53,3 @@ export declare const __test: {
53
53
  buildTrailingMap: typeof buildTrailingMap;
54
54
  };
55
55
  export {};
56
- //# sourceMappingURL=summary.d.ts.map
@@ -315,4 +315,3 @@ export async function runSummaryWizard(opts = {}) {
315
315
  }
316
316
  // Internal helpers exported for tests.
317
317
  export const __test = { resolveActiveStorePath, renderPanelRows, buildTrailingMap };
318
- //# sourceMappingURL=summary.js.map
@@ -54,4 +54,3 @@ export declare function renderDoneLine(version: string): string;
54
54
  * regeneration succeeded).
55
55
  */
56
56
  export declare function renderDashboardSummary(htmlPath: string, mdPath: string): string[];
57
- //# sourceMappingURL=syncProjectsRender.d.ts.map
@@ -181,4 +181,3 @@ function renderProjectRows(kind, rows) {
181
181
  { header: "", render: (r) => collapsePath(r.fullPath), color: c.textDim },
182
182
  ], { showHeader: false, indent: 3, gap: 2 });
183
183
  }
184
- //# sourceMappingURL=syncProjectsRender.js.map
@@ -16,4 +16,3 @@ export interface DiffRow {
16
16
  export declare function Diff(rows: DiffRow[]): string;
17
17
  /** Convenience: print diff + trailing blank line. */
18
18
  export declare function printDiff(rows: DiffRow[]): void;
19
- //# sourceMappingURL=diff.d.ts.map
@@ -31,4 +31,3 @@ export function printDiff(rows) {
31
31
  return;
32
32
  process.stdout.write(`${Diff(rows)}\n\n`);
33
33
  }
34
- //# sourceMappingURL=diff.js.map
@@ -8,4 +8,3 @@
8
8
  export declare function Footer(hint: string): string;
9
9
  /** Convenience: print footer + newline. */
10
10
  export declare function printFooter(hint: string): void;
11
- //# sourceMappingURL=footer.d.ts.map
@@ -18,4 +18,3 @@ export function Footer(hint) {
18
18
  export function printFooter(hint) {
19
19
  process.stdout.write(`${Footer(hint)}\n`);
20
20
  }
21
- //# sourceMappingURL=footer.js.map
@@ -21,4 +21,3 @@ export declare function Header(crumbs: string[], opts?: HeaderOptions): string;
21
21
  export declare function stripAnsi(s: string): string;
22
22
  /** Convenience: print header + trailing blank line to stdout. */
23
23
  export declare function printHeader(crumbs: string[], opts?: HeaderOptions): void;
24
- //# sourceMappingURL=header.d.ts.map
@@ -46,4 +46,3 @@ export function stripAnsi(s) {
46
46
  export function printHeader(crumbs, opts = {}) {
47
47
  process.stdout.write(`${Header(crumbs, opts)}\n\n`);
48
48
  }
49
- //# sourceMappingURL=header.js.map
@@ -25,4 +25,3 @@ export type { SpinnerHandle } from "./spinner.js";
25
25
  export { Footer, printFooter } from "./footer.js";
26
26
  export { renderTable, printTable } from "./table.js";
27
27
  export type { TableColumn, TableOptions } from "./table.js";
28
- //# sourceMappingURL=index.d.ts.map
@@ -16,4 +16,3 @@ export { Panel, printPanel } from "./panel.js";
16
16
  export { Spinner } from "./spinner.js";
17
17
  export { Footer, printFooter } from "./footer.js";
18
18
  export { renderTable, printTable } from "./table.js";
19
- //# sourceMappingURL=index.js.map
@@ -24,4 +24,3 @@ export interface MenuItem {
24
24
  export declare function Menu(items: MenuItem[]): string;
25
25
  /** Convenience: print menu + trailing blank line. */
26
26
  export declare function printMenu(items: MenuItem[]): void;
27
- //# sourceMappingURL=menu.d.ts.map
@@ -72,4 +72,3 @@ export function Menu(items) {
72
72
  export function printMenu(items) {
73
73
  process.stdout.write(`${Menu(items)}\n\n`);
74
74
  }
75
- //# sourceMappingURL=menu.js.map
@@ -20,4 +20,3 @@ export interface PanelOptions {
20
20
  export declare function Panel(title: string, rows: string[], opts?: PanelOptions): string;
21
21
  /** Convenience: print panel + trailing blank line. */
22
22
  export declare function printPanel(title: string, rows: string[], opts?: PanelOptions): void;
23
- //# sourceMappingURL=panel.d.ts.map
@@ -57,4 +57,3 @@ export function Panel(title, rows, opts = {}) {
57
57
  export function printPanel(title, rows, opts = {}) {
58
58
  process.stdout.write(`${Panel(title, rows, opts)}\n\n`);
59
59
  }
60
- //# sourceMappingURL=panel.js.map
@@ -24,4 +24,3 @@ export interface PromptOptions {
24
24
  * @returns The user's input, trimmed. Returns the empty string on Enter.
25
25
  */
26
26
  export declare function Prompt(rl: ReadlineInterface, opts?: PromptOptions): Promise<string>;
27
- //# sourceMappingURL=prompt.d.ts.map
@@ -35,4 +35,3 @@ export async function Prompt(rl, opts = {}) {
35
35
  });
36
36
  return raw.trim();
37
37
  }
38
- //# sourceMappingURL=prompt.js.map
@@ -21,4 +21,3 @@ export interface SafeQuestionOptions {
21
21
  skipExitOnCancel?: boolean;
22
22
  }
23
23
  export declare function safeQuestion(rl: ReadlineInterface, prompt: string, opts?: SafeQuestionOptions): Promise<string>;
24
- //# sourceMappingURL=safePrompt.d.ts.map
@@ -68,4 +68,3 @@ export async function safeQuestion(rl, prompt, opts = {}) {
68
68
  throw err;
69
69
  }
70
70
  }
71
- //# sourceMappingURL=safePrompt.js.map
@@ -25,4 +25,3 @@ export interface SpinnerHandle {
25
25
  * directly — no `\r` redraw.
26
26
  */
27
27
  export declare function Spinner(label: string): SpinnerHandle;
28
- //# sourceMappingURL=spinner.d.ts.map
@@ -84,4 +84,3 @@ export function Spinner(label) {
84
84
  },
85
85
  };
86
86
  }
87
- //# sourceMappingURL=spinner.js.map
@@ -18,4 +18,3 @@ export type StatusKind = "ok" | "warn" | "fail" | "progress";
18
18
  export declare function Status(kind: StatusKind, text: string, meta?: string): string;
19
19
  /** Convenience: print a single status line. */
20
20
  export declare function printStatus(kind: StatusKind, text: string, meta?: string): void;
21
- //# sourceMappingURL=status.d.ts.map
@@ -46,4 +46,3 @@ export function Status(kind, text, meta) {
46
46
  export function printStatus(kind, text, meta) {
47
47
  process.stdout.write(`${Status(kind, text, meta)}\n`);
48
48
  }
49
- //# sourceMappingURL=status.js.map