@richhardry/codor 0.10.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 (388) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +293 -0
  3. package/bin/codor.mjs +7 -0
  4. package/node_modules/@codor/adapter-antigravity/dist/adapter.d.ts +41 -0
  5. package/node_modules/@codor/adapter-antigravity/dist/adapter.d.ts.map +1 -0
  6. package/node_modules/@codor/adapter-antigravity/dist/adapter.js +275 -0
  7. package/node_modules/@codor/adapter-antigravity/dist/adapter.js.map +1 -0
  8. package/node_modules/@codor/adapter-antigravity/dist/index.d.ts +2 -0
  9. package/node_modules/@codor/adapter-antigravity/dist/index.d.ts.map +1 -0
  10. package/node_modules/@codor/adapter-antigravity/dist/index.js +2 -0
  11. package/node_modules/@codor/adapter-antigravity/dist/index.js.map +1 -0
  12. package/node_modules/@codor/adapter-antigravity/package.json +18 -0
  13. package/node_modules/@codor/adapter-claude-code/dist/adapter.d.ts +94 -0
  14. package/node_modules/@codor/adapter-claude-code/dist/adapter.d.ts.map +1 -0
  15. package/node_modules/@codor/adapter-claude-code/dist/adapter.js +785 -0
  16. package/node_modules/@codor/adapter-claude-code/dist/adapter.js.map +1 -0
  17. package/node_modules/@codor/adapter-claude-code/dist/index.d.ts +8 -0
  18. package/node_modules/@codor/adapter-claude-code/dist/index.d.ts.map +1 -0
  19. package/node_modules/@codor/adapter-claude-code/dist/index.js +5 -0
  20. package/node_modules/@codor/adapter-claude-code/dist/index.js.map +1 -0
  21. package/node_modules/@codor/adapter-claude-code/dist/limits-probe.d.ts +18 -0
  22. package/node_modules/@codor/adapter-claude-code/dist/limits-probe.d.ts.map +1 -0
  23. package/node_modules/@codor/adapter-claude-code/dist/limits-probe.js +67 -0
  24. package/node_modules/@codor/adapter-claude-code/dist/limits-probe.js.map +1 -0
  25. package/node_modules/@codor/adapter-claude-code/dist/peek.d.ts +3 -0
  26. package/node_modules/@codor/adapter-claude-code/dist/peek.d.ts.map +1 -0
  27. package/node_modules/@codor/adapter-claude-code/dist/peek.js +128 -0
  28. package/node_modules/@codor/adapter-claude-code/dist/peek.js.map +1 -0
  29. package/node_modules/@codor/adapter-claude-code/dist/query.d.ts +9 -0
  30. package/node_modules/@codor/adapter-claude-code/dist/query.d.ts.map +1 -0
  31. package/node_modules/@codor/adapter-claude-code/dist/query.js +7 -0
  32. package/node_modules/@codor/adapter-claude-code/dist/query.js.map +1 -0
  33. package/node_modules/@codor/adapter-claude-code/dist/translate.d.ts +40 -0
  34. package/node_modules/@codor/adapter-claude-code/dist/translate.d.ts.map +1 -0
  35. package/node_modules/@codor/adapter-claude-code/dist/translate.js +505 -0
  36. package/node_modules/@codor/adapter-claude-code/dist/translate.js.map +1 -0
  37. package/node_modules/@codor/adapter-claude-code/package.json +18 -0
  38. package/node_modules/@codor/adapter-codex/dist/adapter.d.ts +105 -0
  39. package/node_modules/@codor/adapter-codex/dist/adapter.d.ts.map +1 -0
  40. package/node_modules/@codor/adapter-codex/dist/adapter.js +625 -0
  41. package/node_modules/@codor/adapter-codex/dist/adapter.js.map +1 -0
  42. package/node_modules/@codor/adapter-codex/dist/app-server-transport.d.ts +39 -0
  43. package/node_modules/@codor/adapter-codex/dist/app-server-transport.d.ts.map +1 -0
  44. package/node_modules/@codor/adapter-codex/dist/app-server-transport.js +186 -0
  45. package/node_modules/@codor/adapter-codex/dist/app-server-transport.js.map +1 -0
  46. package/node_modules/@codor/adapter-codex/dist/index.d.ts +8 -0
  47. package/node_modules/@codor/adapter-codex/dist/index.d.ts.map +1 -0
  48. package/node_modules/@codor/adapter-codex/dist/index.js +5 -0
  49. package/node_modules/@codor/adapter-codex/dist/index.js.map +1 -0
  50. package/node_modules/@codor/adapter-codex/dist/limits-probe.d.ts +18 -0
  51. package/node_modules/@codor/adapter-codex/dist/limits-probe.d.ts.map +1 -0
  52. package/node_modules/@codor/adapter-codex/dist/limits-probe.js +87 -0
  53. package/node_modules/@codor/adapter-codex/dist/limits-probe.js.map +1 -0
  54. package/node_modules/@codor/adapter-codex/dist/peek.d.ts +3 -0
  55. package/node_modules/@codor/adapter-codex/dist/peek.d.ts.map +1 -0
  56. package/node_modules/@codor/adapter-codex/dist/peek.js +98 -0
  57. package/node_modules/@codor/adapter-codex/dist/peek.js.map +1 -0
  58. package/node_modules/@codor/adapter-codex/dist/translate.d.ts +17 -0
  59. package/node_modules/@codor/adapter-codex/dist/translate.d.ts.map +1 -0
  60. package/node_modules/@codor/adapter-codex/dist/translate.js +286 -0
  61. package/node_modules/@codor/adapter-codex/dist/translate.js.map +1 -0
  62. package/node_modules/@codor/adapter-codex/package.json +17 -0
  63. package/node_modules/@codor/adapter-copilot/dist/adapter.d.ts +40 -0
  64. package/node_modules/@codor/adapter-copilot/dist/adapter.d.ts.map +1 -0
  65. package/node_modules/@codor/adapter-copilot/dist/adapter.js +190 -0
  66. package/node_modules/@codor/adapter-copilot/dist/adapter.js.map +1 -0
  67. package/node_modules/@codor/adapter-copilot/dist/index.d.ts +4 -0
  68. package/node_modules/@codor/adapter-copilot/dist/index.d.ts.map +1 -0
  69. package/node_modules/@codor/adapter-copilot/dist/index.js +3 -0
  70. package/node_modules/@codor/adapter-copilot/dist/index.js.map +1 -0
  71. package/node_modules/@codor/adapter-copilot/dist/translate.d.ts +11 -0
  72. package/node_modules/@codor/adapter-copilot/dist/translate.d.ts.map +1 -0
  73. package/node_modules/@codor/adapter-copilot/dist/translate.js +184 -0
  74. package/node_modules/@codor/adapter-copilot/dist/translate.js.map +1 -0
  75. package/node_modules/@codor/adapter-copilot/package.json +18 -0
  76. package/node_modules/@codor/adapter-cursor/dist/adapter.d.ts +32 -0
  77. package/node_modules/@codor/adapter-cursor/dist/adapter.d.ts.map +1 -0
  78. package/node_modules/@codor/adapter-cursor/dist/adapter.js +179 -0
  79. package/node_modules/@codor/adapter-cursor/dist/adapter.js.map +1 -0
  80. package/node_modules/@codor/adapter-cursor/dist/index.d.ts +9 -0
  81. package/node_modules/@codor/adapter-cursor/dist/index.d.ts.map +1 -0
  82. package/node_modules/@codor/adapter-cursor/dist/index.js +8 -0
  83. package/node_modules/@codor/adapter-cursor/dist/index.js.map +1 -0
  84. package/node_modules/@codor/adapter-cursor/dist/translate.d.ts +15 -0
  85. package/node_modules/@codor/adapter-cursor/dist/translate.d.ts.map +1 -0
  86. package/node_modules/@codor/adapter-cursor/dist/translate.js +164 -0
  87. package/node_modules/@codor/adapter-cursor/dist/translate.js.map +1 -0
  88. package/node_modules/@codor/adapter-cursor/package.json +17 -0
  89. package/node_modules/@codor/adapter-gemini/dist/adapter.d.ts +36 -0
  90. package/node_modules/@codor/adapter-gemini/dist/adapter.d.ts.map +1 -0
  91. package/node_modules/@codor/adapter-gemini/dist/adapter.js +245 -0
  92. package/node_modules/@codor/adapter-gemini/dist/adapter.js.map +1 -0
  93. package/node_modules/@codor/adapter-gemini/dist/index.d.ts +4 -0
  94. package/node_modules/@codor/adapter-gemini/dist/index.d.ts.map +1 -0
  95. package/node_modules/@codor/adapter-gemini/dist/index.js +3 -0
  96. package/node_modules/@codor/adapter-gemini/dist/index.js.map +1 -0
  97. package/node_modules/@codor/adapter-gemini/dist/translate.d.ts +12 -0
  98. package/node_modules/@codor/adapter-gemini/dist/translate.d.ts.map +1 -0
  99. package/node_modules/@codor/adapter-gemini/dist/translate.js +123 -0
  100. package/node_modules/@codor/adapter-gemini/dist/translate.js.map +1 -0
  101. package/node_modules/@codor/adapter-gemini/package.json +18 -0
  102. package/node_modules/@codor/adapter-opencode/dist/adapter.d.ts +42 -0
  103. package/node_modules/@codor/adapter-opencode/dist/adapter.d.ts.map +1 -0
  104. package/node_modules/@codor/adapter-opencode/dist/adapter.js +240 -0
  105. package/node_modules/@codor/adapter-opencode/dist/adapter.js.map +1 -0
  106. package/node_modules/@codor/adapter-opencode/dist/index.d.ts +4 -0
  107. package/node_modules/@codor/adapter-opencode/dist/index.d.ts.map +1 -0
  108. package/node_modules/@codor/adapter-opencode/dist/index.js +3 -0
  109. package/node_modules/@codor/adapter-opencode/dist/index.js.map +1 -0
  110. package/node_modules/@codor/adapter-opencode/dist/translate.d.ts +12 -0
  111. package/node_modules/@codor/adapter-opencode/dist/translate.d.ts.map +1 -0
  112. package/node_modules/@codor/adapter-opencode/dist/translate.js +144 -0
  113. package/node_modules/@codor/adapter-opencode/dist/translate.js.map +1 -0
  114. package/node_modules/@codor/adapter-opencode/package.json +18 -0
  115. package/node_modules/@codor/cli/dist/artifact.d.ts +33 -0
  116. package/node_modules/@codor/cli/dist/artifact.d.ts.map +1 -0
  117. package/node_modules/@codor/cli/dist/artifact.js +183 -0
  118. package/node_modules/@codor/cli/dist/artifact.js.map +1 -0
  119. package/node_modules/@codor/cli/dist/attach.d.ts +25 -0
  120. package/node_modules/@codor/cli/dist/attach.d.ts.map +1 -0
  121. package/node_modules/@codor/cli/dist/attach.js +133 -0
  122. package/node_modules/@codor/cli/dist/attach.js.map +1 -0
  123. package/node_modules/@codor/cli/dist/connection.d.ts +21 -0
  124. package/node_modules/@codor/cli/dist/connection.d.ts.map +1 -0
  125. package/node_modules/@codor/cli/dist/connection.js +130 -0
  126. package/node_modules/@codor/cli/dist/connection.js.map +1 -0
  127. package/node_modules/@codor/cli/dist/detect.d.ts +14 -0
  128. package/node_modules/@codor/cli/dist/detect.d.ts.map +1 -0
  129. package/node_modules/@codor/cli/dist/detect.js +99 -0
  130. package/node_modules/@codor/cli/dist/detect.js.map +1 -0
  131. package/node_modules/@codor/cli/dist/index.d.ts +17 -0
  132. package/node_modules/@codor/cli/dist/index.d.ts.map +1 -0
  133. package/node_modules/@codor/cli/dist/index.js +24 -0
  134. package/node_modules/@codor/cli/dist/index.js.map +1 -0
  135. package/node_modules/@codor/cli/dist/mirror.d.ts +4 -0
  136. package/node_modules/@codor/cli/dist/mirror.d.ts.map +1 -0
  137. package/node_modules/@codor/cli/dist/mirror.js +93 -0
  138. package/node_modules/@codor/cli/dist/mirror.js.map +1 -0
  139. package/node_modules/@codor/cli/dist/program.d.ts +17 -0
  140. package/node_modules/@codor/cli/dist/program.d.ts.map +1 -0
  141. package/node_modules/@codor/cli/dist/program.js +1068 -0
  142. package/node_modules/@codor/cli/dist/program.js.map +1 -0
  143. package/node_modules/@codor/cli/dist/runtime-install.d.ts +61 -0
  144. package/node_modules/@codor/cli/dist/runtime-install.d.ts.map +1 -0
  145. package/node_modules/@codor/cli/dist/runtime-install.js +122 -0
  146. package/node_modules/@codor/cli/dist/runtime-install.js.map +1 -0
  147. package/node_modules/@codor/cli/dist/runtime-paths.d.ts +24 -0
  148. package/node_modules/@codor/cli/dist/runtime-paths.d.ts.map +1 -0
  149. package/node_modules/@codor/cli/dist/runtime-paths.js +69 -0
  150. package/node_modules/@codor/cli/dist/runtime-paths.js.map +1 -0
  151. package/node_modules/@codor/cli/dist/setup-flow.d.ts +69 -0
  152. package/node_modules/@codor/cli/dist/setup-flow.d.ts.map +1 -0
  153. package/node_modules/@codor/cli/dist/setup-flow.js +110 -0
  154. package/node_modules/@codor/cli/dist/setup-flow.js.map +1 -0
  155. package/node_modules/@codor/cli/dist/setup-session.d.ts +105 -0
  156. package/node_modules/@codor/cli/dist/setup-session.d.ts.map +1 -0
  157. package/node_modules/@codor/cli/dist/setup-session.js +346 -0
  158. package/node_modules/@codor/cli/dist/setup-session.js.map +1 -0
  159. package/node_modules/@codor/cli/dist/setup-ui.d.ts +93 -0
  160. package/node_modules/@codor/cli/dist/setup-ui.d.ts.map +1 -0
  161. package/node_modules/@codor/cli/dist/setup-ui.js +249 -0
  162. package/node_modules/@codor/cli/dist/setup-ui.js.map +1 -0
  163. package/node_modules/@codor/cli/dist/setup.d.ts +108 -0
  164. package/node_modules/@codor/cli/dist/setup.d.ts.map +1 -0
  165. package/node_modules/@codor/cli/dist/setup.js +878 -0
  166. package/node_modules/@codor/cli/dist/setup.js.map +1 -0
  167. package/node_modules/@codor/cli/dist/terminal-keys.d.ts +26 -0
  168. package/node_modules/@codor/cli/dist/terminal-keys.d.ts.map +1 -0
  169. package/node_modules/@codor/cli/dist/terminal-keys.js +70 -0
  170. package/node_modules/@codor/cli/dist/terminal-keys.js.map +1 -0
  171. package/node_modules/@codor/cli/dist/terminal-qr.d.ts +2 -0
  172. package/node_modules/@codor/cli/dist/terminal-qr.d.ts.map +1 -0
  173. package/node_modules/@codor/cli/dist/terminal-qr.js +30 -0
  174. package/node_modules/@codor/cli/dist/terminal-qr.js.map +1 -0
  175. package/node_modules/@codor/cli/dist/up.d.ts +52 -0
  176. package/node_modules/@codor/cli/dist/up.d.ts.map +1 -0
  177. package/node_modules/@codor/cli/dist/up.js +178 -0
  178. package/node_modules/@codor/cli/dist/up.js.map +1 -0
  179. package/node_modules/@codor/cli/package.json +24 -0
  180. package/node_modules/@codor/cli/packaging/systemd/codor.service +21 -0
  181. package/node_modules/@codor/cli/runtime/web/assets/LandingPage-BOmG5kSw.js +31 -0
  182. package/node_modules/@codor/cli/runtime/web/assets/LedgerPage-CecuTS8-.js +1 -0
  183. package/node_modules/@codor/cli/runtime/web/assets/NoChannels-CYiBXGQd.js +11 -0
  184. package/node_modules/@codor/cli/runtime/web/assets/PairingCodeInput-Cr6XDWx-.js +1 -0
  185. package/node_modules/@codor/cli/runtime/web/assets/PairingPage-CQBWNA2L.js +6 -0
  186. package/node_modules/@codor/cli/runtime/web/assets/SettingsPage-DGLbSXE7.js +16 -0
  187. package/node_modules/@codor/cli/runtime/web/assets/StartupUnavailable-DdQBHip_.js +1 -0
  188. package/node_modules/@codor/cli/runtime/web/assets/arrow-left-BOpjMuRi.js +6 -0
  189. package/node_modules/@codor/cli/runtime/web/assets/browser-BWQYNOsD.js +6 -0
  190. package/node_modules/@codor/cli/runtime/web/assets/graph-toBZHlC0.js +1 -0
  191. package/node_modules/@codor/cli/runtime/web/assets/index-Cxi54Xim.js +408 -0
  192. package/node_modules/@codor/cli/runtime/web/assets/index-DjwJakJC.css +1 -0
  193. package/node_modules/@codor/cli/runtime/web/assets/qr-DpynCwP9.js +8 -0
  194. package/node_modules/@codor/cli/runtime/web/assets/react-C8w-UNLI.js +32 -0
  195. package/node_modules/@codor/cli/runtime/web/assets/sodium-DtsvMzX9.js +1 -0
  196. package/node_modules/@codor/cli/runtime/web/codor-192.png +0 -0
  197. package/node_modules/@codor/cli/runtime/web/codor-512.png +0 -0
  198. package/node_modules/@codor/cli/runtime/web/codor-apple-touch-180.png +0 -0
  199. package/node_modules/@codor/cli/runtime/web/codor-favicon.svg +86 -0
  200. package/node_modules/@codor/cli/runtime/web/codor-mark.svg +86 -0
  201. package/node_modules/@codor/cli/runtime/web/codor-maskable-512.png +0 -0
  202. package/node_modules/@codor/cli/runtime/web/codor-og.png +0 -0
  203. package/node_modules/@codor/cli/runtime/web/fonts/BitcountPropSingle-latin.woff2 +0 -0
  204. package/node_modules/@codor/cli/runtime/web/fonts/Geist-Variable.woff2 +0 -0
  205. package/node_modules/@codor/cli/runtime/web/fonts/GeistMono-Variable.woff2 +0 -0
  206. package/node_modules/@codor/cli/runtime/web/fonts/OFL.txt +93 -0
  207. package/node_modules/@codor/cli/runtime/web/index.html +53 -0
  208. package/node_modules/@codor/cli/runtime/web/manifest.webmanifest +1 -0
  209. package/node_modules/@codor/cli/runtime/web/sw.js +2 -0
  210. package/node_modules/@codor/protocol/dist/adapter.d.ts +118 -0
  211. package/node_modules/@codor/protocol/dist/adapter.d.ts.map +1 -0
  212. package/node_modules/@codor/protocol/dist/adapter.js +15 -0
  213. package/node_modules/@codor/protocol/dist/adapter.js.map +1 -0
  214. package/node_modules/@codor/protocol/dist/body.d.ts +14 -0
  215. package/node_modules/@codor/protocol/dist/body.d.ts.map +1 -0
  216. package/node_modules/@codor/protocol/dist/body.js +50 -0
  217. package/node_modules/@codor/protocol/dist/body.js.map +1 -0
  218. package/node_modules/@codor/protocol/dist/changelog.d.ts +30 -0
  219. package/node_modules/@codor/protocol/dist/changelog.d.ts.map +1 -0
  220. package/node_modules/@codor/protocol/dist/changelog.js +19 -0
  221. package/node_modules/@codor/protocol/dist/changelog.js.map +1 -0
  222. package/node_modules/@codor/protocol/dist/default-recipient.d.ts +8 -0
  223. package/node_modules/@codor/protocol/dist/default-recipient.d.ts.map +1 -0
  224. package/node_modules/@codor/protocol/dist/default-recipient.js +19 -0
  225. package/node_modules/@codor/protocol/dist/default-recipient.js.map +1 -0
  226. package/node_modules/@codor/protocol/dist/delivery.d.ts +42 -0
  227. package/node_modules/@codor/protocol/dist/delivery.d.ts.map +1 -0
  228. package/node_modules/@codor/protocol/dist/delivery.js +44 -0
  229. package/node_modules/@codor/protocol/dist/delivery.js.map +1 -0
  230. package/node_modules/@codor/protocol/dist/events.d.ts +284 -0
  231. package/node_modules/@codor/protocol/dist/events.d.ts.map +1 -0
  232. package/node_modules/@codor/protocol/dist/events.js +150 -0
  233. package/node_modules/@codor/protocol/dist/events.js.map +1 -0
  234. package/node_modules/@codor/protocol/dist/ids.d.ts +19 -0
  235. package/node_modules/@codor/protocol/dist/ids.d.ts.map +1 -0
  236. package/node_modules/@codor/protocol/dist/ids.js +27 -0
  237. package/node_modules/@codor/protocol/dist/ids.js.map +1 -0
  238. package/node_modules/@codor/protocol/dist/index.d.ts +14 -0
  239. package/node_modules/@codor/protocol/dist/index.d.ts.map +1 -0
  240. package/node_modules/@codor/protocol/dist/index.js +14 -0
  241. package/node_modules/@codor/protocol/dist/index.js.map +1 -0
  242. package/node_modules/@codor/protocol/dist/interaction.d.ts +45 -0
  243. package/node_modules/@codor/protocol/dist/interaction.d.ts.map +1 -0
  244. package/node_modules/@codor/protocol/dist/interaction.js +33 -0
  245. package/node_modules/@codor/protocol/dist/interaction.js.map +1 -0
  246. package/node_modules/@codor/protocol/dist/member.d.ts +146 -0
  247. package/node_modules/@codor/protocol/dist/member.d.ts.map +1 -0
  248. package/node_modules/@codor/protocol/dist/member.js +169 -0
  249. package/node_modules/@codor/protocol/dist/member.js.map +1 -0
  250. package/node_modules/@codor/protocol/dist/message.d.ts +166 -0
  251. package/node_modules/@codor/protocol/dist/message.d.ts.map +1 -0
  252. package/node_modules/@codor/protocol/dist/message.js +95 -0
  253. package/node_modules/@codor/protocol/dist/message.js.map +1 -0
  254. package/node_modules/@codor/protocol/dist/observability.d.ts +80 -0
  255. package/node_modules/@codor/protocol/dist/observability.d.ts.map +1 -0
  256. package/node_modules/@codor/protocol/dist/observability.js +41 -0
  257. package/node_modules/@codor/protocol/dist/observability.js.map +1 -0
  258. package/node_modules/@codor/protocol/dist/room.d.ts +430 -0
  259. package/node_modules/@codor/protocol/dist/room.d.ts.map +1 -0
  260. package/node_modules/@codor/protocol/dist/room.js +142 -0
  261. package/node_modules/@codor/protocol/dist/room.js.map +1 -0
  262. package/node_modules/@codor/protocol/dist/ws.d.ts +1348 -0
  263. package/node_modules/@codor/protocol/dist/ws.d.ts.map +1 -0
  264. package/node_modules/@codor/protocol/dist/ws.js +282 -0
  265. package/node_modules/@codor/protocol/dist/ws.js.map +1 -0
  266. package/node_modules/@codor/protocol/package.json +17 -0
  267. package/node_modules/@codor/switchboard/dist/adapter-registry.d.ts +14 -0
  268. package/node_modules/@codor/switchboard/dist/adapter-registry.d.ts.map +1 -0
  269. package/node_modules/@codor/switchboard/dist/adapter-registry.js +175 -0
  270. package/node_modules/@codor/switchboard/dist/adapter-registry.js.map +1 -0
  271. package/node_modules/@codor/switchboard/dist/authorization.d.ts +13 -0
  272. package/node_modules/@codor/switchboard/dist/authorization.d.ts.map +1 -0
  273. package/node_modules/@codor/switchboard/dist/authorization.js +96 -0
  274. package/node_modules/@codor/switchboard/dist/authorization.js.map +1 -0
  275. package/node_modules/@codor/switchboard/dist/blobs.d.ts +17 -0
  276. package/node_modules/@codor/switchboard/dist/blobs.d.ts.map +1 -0
  277. package/node_modules/@codor/switchboard/dist/blobs.js +54 -0
  278. package/node_modules/@codor/switchboard/dist/blobs.js.map +1 -0
  279. package/node_modules/@codor/switchboard/dist/collaboration.d.ts +115 -0
  280. package/node_modules/@codor/switchboard/dist/collaboration.d.ts.map +1 -0
  281. package/node_modules/@codor/switchboard/dist/collaboration.js +123 -0
  282. package/node_modules/@codor/switchboard/dist/collaboration.js.map +1 -0
  283. package/node_modules/@codor/switchboard/dist/continuation.d.ts +33 -0
  284. package/node_modules/@codor/switchboard/dist/continuation.d.ts.map +1 -0
  285. package/node_modules/@codor/switchboard/dist/continuation.js +177 -0
  286. package/node_modules/@codor/switchboard/dist/continuation.js.map +1 -0
  287. package/node_modules/@codor/switchboard/dist/crypto/browser-sessions.d.ts +22 -0
  288. package/node_modules/@codor/switchboard/dist/crypto/browser-sessions.d.ts.map +1 -0
  289. package/node_modules/@codor/switchboard/dist/crypto/browser-sessions.js +92 -0
  290. package/node_modules/@codor/switchboard/dist/crypto/browser-sessions.js.map +1 -0
  291. package/node_modules/@codor/switchboard/dist/crypto/challenge.d.ts +37 -0
  292. package/node_modules/@codor/switchboard/dist/crypto/challenge.d.ts.map +1 -0
  293. package/node_modules/@codor/switchboard/dist/crypto/challenge.js +132 -0
  294. package/node_modules/@codor/switchboard/dist/crypto/challenge.js.map +1 -0
  295. package/node_modules/@codor/switchboard/dist/crypto/keys.d.ts +41 -0
  296. package/node_modules/@codor/switchboard/dist/crypto/keys.d.ts.map +1 -0
  297. package/node_modules/@codor/switchboard/dist/crypto/keys.js +145 -0
  298. package/node_modules/@codor/switchboard/dist/crypto/keys.js.map +1 -0
  299. package/node_modules/@codor/switchboard/dist/crypto/pairing.d.ts +53 -0
  300. package/node_modules/@codor/switchboard/dist/crypto/pairing.d.ts.map +1 -0
  301. package/node_modules/@codor/switchboard/dist/crypto/pairing.js +182 -0
  302. package/node_modules/@codor/switchboard/dist/crypto/pairing.js.map +1 -0
  303. package/node_modules/@codor/switchboard/dist/crypto/roomkeys.d.ts +30 -0
  304. package/node_modules/@codor/switchboard/dist/crypto/roomkeys.d.ts.map +1 -0
  305. package/node_modules/@codor/switchboard/dist/crypto/roomkeys.js +101 -0
  306. package/node_modules/@codor/switchboard/dist/crypto/roomkeys.js.map +1 -0
  307. package/node_modules/@codor/switchboard/dist/daemon.d.ts +545 -0
  308. package/node_modules/@codor/switchboard/dist/daemon.d.ts.map +1 -0
  309. package/node_modules/@codor/switchboard/dist/daemon.js +3907 -0
  310. package/node_modules/@codor/switchboard/dist/daemon.js.map +1 -0
  311. package/node_modules/@codor/switchboard/dist/fake-adapter.d.ts +103 -0
  312. package/node_modules/@codor/switchboard/dist/fake-adapter.d.ts.map +1 -0
  313. package/node_modules/@codor/switchboard/dist/fake-adapter.js +228 -0
  314. package/node_modules/@codor/switchboard/dist/fake-adapter.js.map +1 -0
  315. package/node_modules/@codor/switchboard/dist/index.d.ts +44 -0
  316. package/node_modules/@codor/switchboard/dist/index.d.ts.map +1 -0
  317. package/node_modules/@codor/switchboard/dist/index.js +24 -0
  318. package/node_modules/@codor/switchboard/dist/index.js.map +1 -0
  319. package/node_modules/@codor/switchboard/dist/ledger/resolve.d.ts +12 -0
  320. package/node_modules/@codor/switchboard/dist/ledger/resolve.d.ts.map +1 -0
  321. package/node_modules/@codor/switchboard/dist/ledger/resolve.js +17 -0
  322. package/node_modules/@codor/switchboard/dist/ledger/resolve.js.map +1 -0
  323. package/node_modules/@codor/switchboard/dist/ledger/vault.d.ts +47 -0
  324. package/node_modules/@codor/switchboard/dist/ledger/vault.d.ts.map +1 -0
  325. package/node_modules/@codor/switchboard/dist/ledger/vault.js +175 -0
  326. package/node_modules/@codor/switchboard/dist/ledger/vault.js.map +1 -0
  327. package/node_modules/@codor/switchboard/dist/ledger/watch.d.ts +73 -0
  328. package/node_modules/@codor/switchboard/dist/ledger/watch.d.ts.map +1 -0
  329. package/node_modules/@codor/switchboard/dist/ledger/watch.js +232 -0
  330. package/node_modules/@codor/switchboard/dist/ledger/watch.js.map +1 -0
  331. package/node_modules/@codor/switchboard/dist/local-dirs.d.ts +14 -0
  332. package/node_modules/@codor/switchboard/dist/local-dirs.d.ts.map +1 -0
  333. package/node_modules/@codor/switchboard/dist/local-dirs.js +40 -0
  334. package/node_modules/@codor/switchboard/dist/local-dirs.js.map +1 -0
  335. package/node_modules/@codor/switchboard/dist/local-socket.d.ts +3 -0
  336. package/node_modules/@codor/switchboard/dist/local-socket.d.ts.map +1 -0
  337. package/node_modules/@codor/switchboard/dist/local-socket.js +16 -0
  338. package/node_modules/@codor/switchboard/dist/local-socket.js.map +1 -0
  339. package/node_modules/@codor/switchboard/dist/pricing.d.ts +32 -0
  340. package/node_modules/@codor/switchboard/dist/pricing.d.ts.map +1 -0
  341. package/node_modules/@codor/switchboard/dist/pricing.js +64 -0
  342. package/node_modules/@codor/switchboard/dist/pricing.js.map +1 -0
  343. package/node_modules/@codor/switchboard/dist/process-liveness.d.ts +2 -0
  344. package/node_modules/@codor/switchboard/dist/process-liveness.d.ts.map +1 -0
  345. package/node_modules/@codor/switchboard/dist/process-liveness.js +9 -0
  346. package/node_modules/@codor/switchboard/dist/process-liveness.js.map +1 -0
  347. package/node_modules/@codor/switchboard/dist/push/producer.d.ts +54 -0
  348. package/node_modules/@codor/switchboard/dist/push/producer.d.ts.map +1 -0
  349. package/node_modules/@codor/switchboard/dist/push/producer.js +168 -0
  350. package/node_modules/@codor/switchboard/dist/push/producer.js.map +1 -0
  351. package/node_modules/@codor/switchboard/dist/push/subscriptions.d.ts +29 -0
  352. package/node_modules/@codor/switchboard/dist/push/subscriptions.d.ts.map +1 -0
  353. package/node_modules/@codor/switchboard/dist/push/subscriptions.js +83 -0
  354. package/node_modules/@codor/switchboard/dist/push/subscriptions.js.map +1 -0
  355. package/node_modules/@codor/switchboard/dist/redact.d.ts +11 -0
  356. package/node_modules/@codor/switchboard/dist/redact.d.ts.map +1 -0
  357. package/node_modules/@codor/switchboard/dist/redact.js +65 -0
  358. package/node_modules/@codor/switchboard/dist/redact.js.map +1 -0
  359. package/node_modules/@codor/switchboard/dist/residency.d.ts +110 -0
  360. package/node_modules/@codor/switchboard/dist/residency.d.ts.map +1 -0
  361. package/node_modules/@codor/switchboard/dist/residency.js +587 -0
  362. package/node_modules/@codor/switchboard/dist/residency.js.map +1 -0
  363. package/node_modules/@codor/switchboard/dist/router.d.ts +120 -0
  364. package/node_modules/@codor/switchboard/dist/router.d.ts.map +1 -0
  365. package/node_modules/@codor/switchboard/dist/router.js +198 -0
  366. package/node_modules/@codor/switchboard/dist/router.js.map +1 -0
  367. package/node_modules/@codor/switchboard/dist/server.d.ts +50 -0
  368. package/node_modules/@codor/switchboard/dist/server.d.ts.map +1 -0
  369. package/node_modules/@codor/switchboard/dist/server.js +1425 -0
  370. package/node_modules/@codor/switchboard/dist/server.js.map +1 -0
  371. package/node_modules/@codor/switchboard/dist/store.d.ts +534 -0
  372. package/node_modules/@codor/switchboard/dist/store.d.ts.map +1 -0
  373. package/node_modules/@codor/switchboard/dist/store.js +2625 -0
  374. package/node_modules/@codor/switchboard/dist/store.js.map +1 -0
  375. package/node_modules/@codor/switchboard/dist/transport/hyperswarm.d.ts +59 -0
  376. package/node_modules/@codor/switchboard/dist/transport/hyperswarm.d.ts.map +1 -0
  377. package/node_modules/@codor/switchboard/dist/transport/hyperswarm.js +183 -0
  378. package/node_modules/@codor/switchboard/dist/transport/hyperswarm.js.map +1 -0
  379. package/node_modules/@codor/switchboard/dist/transport/peer.d.ts +87 -0
  380. package/node_modules/@codor/switchboard/dist/transport/peer.d.ts.map +1 -0
  381. package/node_modules/@codor/switchboard/dist/transport/peer.js +316 -0
  382. package/node_modules/@codor/switchboard/dist/transport/peer.js.map +1 -0
  383. package/node_modules/@codor/switchboard/dist/working-directory.d.ts +2 -0
  384. package/node_modules/@codor/switchboard/dist/working-directory.d.ts.map +1 -0
  385. package/node_modules/@codor/switchboard/dist/working-directory.js +26 -0
  386. package/node_modules/@codor/switchboard/dist/working-directory.js.map +1 -0
  387. package/node_modules/@codor/switchboard/package.json +33 -0
  388. package/package.json +58 -0
@@ -0,0 +1,249 @@
1
+ export const SETUP_STAGE_TITLES = [
2
+ 'Check this computer',
3
+ 'Install Codor',
4
+ 'Where you will use Codor',
5
+ 'Start Codor',
6
+ 'Create pairing code',
7
+ ];
8
+ export const SETUP_SPINNER_FRAMES = [
9
+ '⠋', '⠙', '⠹', '⠸', '⠼',
10
+ '⠴', '⠦', '⠧', '⠇', '⠏',
11
+ ];
12
+ export const MAX_SETUP_STAGE_LOGS = 6;
13
+ export const SETUP_CLEAR_SCREEN = '\u001B[H\u001B[J';
14
+ export const SETUP_CURSOR_HIDE = '\u001B[?25l';
15
+ export const SETUP_CURSOR_SHOW = '\u001B[?25h';
16
+ // Codor emblem word art, byte-exact from the fcc66137 attachment (Richard, #503).
17
+ export const CODOR_WORD_ART = [
18
+ ' ',
19
+ ' ',
20
+ ' █████████████████ ',
21
+ ' █████████████████████ ',
22
+ ' ███ ███ ',
23
+ ' ███ █ ███ ',
24
+ ' ███ ███ ███ ',
25
+ ' ████ ███ ███ ',
26
+ ' ████ ██ ███ ',
27
+ ' ████ ██ ███ ',
28
+ ' ███ ████████ ███ ',
29
+ ' ███ ███ ',
30
+ ' ███ ███ ',
31
+ ' █████████████ ████ ',
32
+ ' ██████████ ████ ',
33
+ ' ',
34
+ ' ',
35
+ ' ████ ',
36
+ ' █████████ ████ ',
37
+ ' ███████████████ █████████ ████████████ █████████ ████ ███ ',
38
+ ' ████ ████ █████████ ██████████████ █████████ ████ ████ ',
39
+ ' ████ ████ ████ ████ ████ ████ ████ ███████ ',
40
+ ' ████ ████ ████ ████ ████ ████ ████ ██████ ',
41
+ ' ████ ████ ████ ████ █████ ████ ████ ████ ',
42
+ ' ████ ████ ████ ████ ████ ██████ ████ ████ ████ ',
43
+ ' ███████████████ █████████ ██████████████ █████████ ████ ',
44
+ ' █████████ █████████ ███████ ████ █████████ ████ ',
45
+ ' ',
46
+ ' ',
47
+ ' ',
48
+ ' ',
49
+ ' ',
50
+ '',
51
+ '',
52
+ '',
53
+ ].join('\n');
54
+ const style = {
55
+ reset: '\u001B[0m',
56
+ bold: (value) => `\u001B[1m${value}\u001B[0m`,
57
+ dim: (value) => `\u001B[2m${value}\u001B[0m`,
58
+ cyan: (value) => `\u001B[36m${value}\u001B[0m`,
59
+ green: (value) => `\u001B[32m${value}\u001B[0m`,
60
+ yellow: (value) => `\u001B[33m${value}\u001B[0m`,
61
+ red: (value) => `\u001B[31m${value}\u001B[0m`,
62
+ gray: (value) => `\u001B[90m${value}\u001B[0m`,
63
+ };
64
+ export function createSetupStages() {
65
+ return SETUP_STAGE_TITLES.map((title) => ({ title, state: 'pending', logs: [] }));
66
+ }
67
+ function status(state, frame) {
68
+ if (state === 'running')
69
+ return style.cyan(`${SETUP_SPINNER_FRAMES[frame % SETUP_SPINNER_FRAMES.length]} working`);
70
+ if (state === 'done')
71
+ return style.green('done');
72
+ if (state === 'skipped')
73
+ return style.yellow('skipped');
74
+ if (state === 'failed')
75
+ return style.red('failed');
76
+ return style.gray('pending');
77
+ }
78
+ /** A step's result lines in a prominent (non-dim) foreground, so what already
79
+ * happened stays readable rather than fading into gray. */
80
+ function resultLines(logs) {
81
+ return logs.map((log) => ` ${style.dim('>')} ${log}`);
82
+ }
83
+ /** The active step's vertical choice: a padded prompt, stacked options with an
84
+ * unmistakable focused row, and a navigation hint — never crowded onto one
85
+ * line. */
86
+ function menuLines(menu) {
87
+ // The question uses the one accent color, matching the focused option below.
88
+ const lines = ['', ` ${style.cyan(style.bold(menu.message))}`, ''];
89
+ menu.options.forEach((option, index) => {
90
+ const focused = index === menu.focused;
91
+ const pointer = focused ? style.cyan('❯') : ' ';
92
+ const label = focused ? style.cyan(style.bold(option.label)) : option.label;
93
+ const availability = option.available ? '' : style.yellow(' (unavailable)');
94
+ lines.push(` ${pointer} ${label}${availability}`);
95
+ if (option.description.length > 0)
96
+ lines.push(` ${style.dim(option.description)}`);
97
+ });
98
+ const hint = ['↑/↓ Move', 'Enter Select'];
99
+ if (menu.canBack)
100
+ hint.push('← Back');
101
+ lines.push('', ` ${style.dim(hint.join(' '))}`);
102
+ return lines;
103
+ }
104
+ function controlHints(controls) {
105
+ if (controls === undefined)
106
+ return [];
107
+ const parts = [];
108
+ if (controls.back)
109
+ parts.push('← Back');
110
+ if (controls.forward)
111
+ parts.push('→ Forward');
112
+ if (controls.retry)
113
+ parts.push('r Retry');
114
+ if (controls.finish)
115
+ parts.push('Enter Finish');
116
+ parts.push('q Cancel');
117
+ return ['', ` ${style.dim(parts.join(' '))}`];
118
+ }
119
+ /** The expanded active step. Title, menu, error and controls are essential and
120
+ * always kept; the rolling result lines are clamped to whatever budget remains
121
+ * so the actionable choice survives on a small terminal. */
122
+ function activeBlock(index, step, state, maxLines) {
123
+ const title = `${style.cyan(`(${String(index + 1)})`)} ${style.bold(step.title)} ${status(step.state, state.spinnerFrame)}`;
124
+ // A short muted description sits directly under the heading.
125
+ const descriptionLines = step.description !== undefined ? [` ${style.dim(step.description)}`] : [];
126
+ const menu = state.menu !== undefined ? menuLines(state.menu) : [];
127
+ const errorLines = step.error !== undefined ? ['', ` ${style.red(step.error)}`] : [];
128
+ // A live menu supplies its own navigation footer; controls are for settled steps.
129
+ const hintLines = state.menu !== undefined ? [] : controlHints(state.controls);
130
+ const essential = 1 + descriptionLines.length + menu.length + errorLines.length + hintLines.length;
131
+ const logRoom = Math.max(0, Math.min(MAX_SETUP_STAGE_LOGS, maxLines - essential));
132
+ const logs = logRoom <= 0 ? [] : resultLines(step.logs.slice(-logRoom));
133
+ return [title, ...descriptionLines, ...logs, ...menu, ...errorLines, ...hintLines];
134
+ }
135
+ function summaryLines(summary) {
136
+ if (summary === undefined)
137
+ return [];
138
+ const lines = ['', style.bold(style.green(summary.headline))];
139
+ if (summary.endpoint !== undefined)
140
+ lines.push(`Open ${style.cyan(summary.endpoint)}`);
141
+ lines.push(summary.harnesses.length > 0
142
+ ? `Detected ${summary.harnesses.join(', ')}`
143
+ : 'No supported coding agents detected on PATH');
144
+ lines.push(summary.nextAction);
145
+ return lines;
146
+ }
147
+ // harn:assume setup-renders-single-active-step-installer ref=setup-frame-renderer
148
+ export function renderSetupFrame(state) {
149
+ const budget = Math.max(1, state.viewport.rows - 1);
150
+ const emit = (lines) => `${SETUP_CLEAR_SCREEN}${lines.slice(0, budget).map((line) => truncateAnsi(line, state.viewport.columns)).join('\n')}\n`;
151
+ // A compact header: version/byline and a muted "Step N of M" label. No word art.
152
+ const top = [style.dim(`v${state.version} - ${state.byline}`)];
153
+ if (state.progress !== undefined) {
154
+ top.push(style.dim(`Step ${String(state.progress.current)} of ${String(state.progress.total)}`));
155
+ }
156
+ const contextLines = (state.context ?? []).length > 0
157
+ ? ['', ...state.context.map((line) => ` ${style.dim(line)}`)]
158
+ : [];
159
+ const active = state.steps[state.cursor];
160
+ // When the active step supplies a result block (the pairing card), its question
161
+ // is replaced in-frame by that block, split into real lines so each is
162
+ // truncated independently. The Finish control is always reserved; the Check
163
+ // context is dropped before any card content.
164
+ if (active !== undefined && state.card !== undefined) {
165
+ // Only the title — the card carries its own instruction, so the step
166
+ // description is dropped to reserve rows for the code, URL, and expiry.
167
+ const heading = [`${style.cyan(`(${String(state.cursor + 1)})`)} ${style.bold(active.title)}`];
168
+ const controls = controlHints(state.controls);
169
+ const cardLines = state.card.split('\n');
170
+ const overhead = top.length + 1 + heading.length + controls.length; // + a blank before the heading
171
+ const shownCard = cardLines.slice(0, Math.max(0, budget - overhead));
172
+ const leftover = budget - overhead - shownCard.length;
173
+ const context = leftover > 1 ? contextLines.slice(0, leftover) : [];
174
+ return emit([...top, ...context, '', ...heading, ...shownCard, ...controls]);
175
+ }
176
+ const header = [...top, ...contextLines, ''];
177
+ const stepLines = active === undefined ? [] : activeBlock(state.cursor, active, state, Math.max(1, budget - header.length));
178
+ return emit([...header, ...stepLines, ...summaryLines(state.summary)]);
179
+ }
180
+ // harn:end setup-renders-single-active-step-installer
181
+ function truncateAnsi(line, columns) {
182
+ if (columns <= 0)
183
+ return '';
184
+ let visible = 0;
185
+ let result = '';
186
+ for (let index = 0; index < line.length && visible < columns;) {
187
+ if (line[index] === '\u001B' && line[index + 1] === '[') {
188
+ const match = line.slice(index).match(/^\u001B\[[0-?]*[ -/]*[@-~]/);
189
+ if (match !== null) {
190
+ result += match[0];
191
+ index += match[0].length;
192
+ continue;
193
+ }
194
+ }
195
+ const point = String.fromCodePoint(line.codePointAt(index));
196
+ result += point;
197
+ index += point.length;
198
+ visible += 1;
199
+ }
200
+ return `${result}${style.reset}`;
201
+ }
202
+ function wrapText(text, width) {
203
+ const chars = [...text];
204
+ if (width <= 0 || chars.length <= width)
205
+ return [text];
206
+ const out = [];
207
+ for (let index = 0; index < chars.length; index += width)
208
+ out.push(chars.slice(index, index + width).join(''));
209
+ return out;
210
+ }
211
+ // harn:assume setup-verifies-codor-before-creating-pairing-code ref=setup-pairing-card
212
+ /** The final pairing result: a width- and height-aware bordered card. The URL
213
+ * and instruction wrap inside the border, every rendered line stays within the
214
+ * terminal width, and the QR is shown with padding only when it fits the width
215
+ * AND the available rows — otherwise it is omitted while the code, wrapped URL,
216
+ * expiry, and instruction remain. Built only from the offer, so the raw
217
+ * authority token can never be shown. */
218
+ export function renderPairingCard(card, columns = 80, maxRows = Number.POSITIVE_INFINITY) {
219
+ const margin = ' ';
220
+ const box = Math.max(16, columns - margin.length); // outer box width
221
+ const inner = box - 4; // content width inside "│ … │"
222
+ const label = (name) => `${name}${' '.repeat(Math.max(1, 9 - name.length))}`;
223
+ // A compact bordered card: code, wrapped URL, and expiry, no inner padding so a
224
+ // long URL still fits a short terminal. The instruction sits below the border.
225
+ const content = [];
226
+ content.push({ plain: `${label('Code')}${card.code}`, rendered: `${style.gray(label('Code'))}${style.cyan(style.bold(card.code))}` });
227
+ wrapText(card.url, Math.max(1, inner - 9)).forEach((chunk, index) => {
228
+ const prefix = index === 0 ? label('Open') : ' '.repeat(9);
229
+ content.push({ plain: `${prefix}${chunk}`, rendered: `${style.gray(prefix)}${style.cyan(chunk)}` });
230
+ });
231
+ content.push({ plain: `${label('Expires')}${card.expires}`, rendered: `${style.gray(label('Expires'))}${style.yellow(card.expires)}` });
232
+ const border = (left, right) => style.dim(`${left}${'─'.repeat(inner + 2)}${right}`);
233
+ const line = (entry) => `${style.dim('│')} ${entry.rendered}${' '.repeat(Math.max(0, inner - [...entry.plain].length))} ${style.dim('│')}`;
234
+ const boxLines = [border('╭', '╮'), ...content.map(line), border('╰', '╯')];
235
+ const instructionLines = wrapText(card.instruction, box).map((chunk) => `${margin}${style.dim(chunk)}`);
236
+ // The body (code, URL, expiry, instruction) is always kept.
237
+ const body = [...boxLines.map((boxLine) => `${margin}${boxLine}`), ...instructionLines];
238
+ // The QR is shown below the body only when it fits the terminal width AND the
239
+ // available rows; otherwise it is omitted and the body still carries the pairing.
240
+ const qrLines = card.qr.split('\n');
241
+ const qrWidth = Math.max(0, ...qrLines.map((qrLine) => [...qrLine].length));
242
+ const qrBlock = qrWidth > 0 && qrWidth + margin.length <= columns
243
+ ? ['', ...qrLines.map((qrLine) => `${margin}${qrLine}`)]
244
+ : [];
245
+ const withQr = [...body, ...qrBlock];
246
+ return (qrBlock.length > 0 && withQr.length <= maxRows ? withQr : body).join('\n');
247
+ }
248
+ // harn:end setup-verifies-codor-before-creating-pairing-code
249
+ //# sourceMappingURL=setup-ui.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup-ui.js","sourceRoot":"","sources":["../src/setup-ui.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,qBAAqB;IACrB,eAAe;IACf,0BAA0B;IAC1B,aAAa;IACb,qBAAqB;CACb,CAAC;AAEX,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG;IACvB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG;CACf,CAAC;AACX,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC;AACtC,MAAM,CAAC,MAAM,kBAAkB,GAAG,kBAAkB,CAAC;AACrD,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAC/C,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAE/C,kFAAkF;AAClF,MAAM,C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AC,IAAI,OAAO,GAAG,MAAM,CAAC,MAAM,IAAI,OAAO;QAC/D,CAAC,CAAC,CAAC,EAAE,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;QACxD,CAAC,CAAC,EAAE,CAAC;IACP,MAAM,MAAM,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC,CAAC;IACrC,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,MAAM,CAAC,MAAM,IAAI,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACrF,CAAC;AACD,6DAA6D"}
@@ -0,0 +1,108 @@
1
+ import { type RuntimePaths } from './runtime-paths.js';
2
+ import { type InstallIo } from './runtime-install.js';
3
+ import { type SetupSessionStreams } from './setup-session.js';
4
+ import { type SetupAccessOption } from './setup-ui.js';
5
+ export interface SetupOverrides {
6
+ exec?(command: string, args: string[]): string;
7
+ exists?(path: string): boolean;
8
+ home?: string;
9
+ kernelRelease?: string;
10
+ nodePath?: string;
11
+ platform?: NodeJS.Platform;
12
+ randomToken?(): string;
13
+ renderQr?(payload: string): string;
14
+ repoRoot?: string;
15
+ probe?(endpoint: string): Promise<boolean>;
16
+ runtime?: RuntimePaths;
17
+ installIo?: InstallIo;
18
+ sleep?(milliseconds: number): Promise<void>;
19
+ streams?: SetupSessionStreams;
20
+ uid?: number;
21
+ version?: string;
22
+ which?(command: string): string | undefined;
23
+ }
24
+ export type SetupAccess = 'localhost' | 'tailscale';
25
+ export interface SetupOptions {
26
+ access?: SetupAccess;
27
+ dryRun: boolean;
28
+ env: NodeJS.ProcessEnv;
29
+ out(line: string): void;
30
+ overrides?: SetupOverrides;
31
+ yes?: boolean;
32
+ }
33
+ export interface LaunchAgentBootstrap {
34
+ exec(command: string, args: string[]): string;
35
+ probe(endpoint: string): Promise<boolean>;
36
+ sleep(milliseconds: number): Promise<void>;
37
+ exists?(path: string): boolean;
38
+ domain: string;
39
+ target: string;
40
+ plistPath: string;
41
+ nodePath: string;
42
+ cliEntrypoint: string;
43
+ endpoint: string;
44
+ log(message: string): void;
45
+ }
46
+ /**
47
+ * Bootstrap the per-user LaunchAgent, recovering from a transient
48
+ * `Bootstrap failed: 5: Input/output error` (which arrives with the retryable
49
+ * text on a later line and exit status 5). Continues past a bootstrap error
50
+ * only when `launchctl print` confirms the target is loaded AND the HTTP probe
51
+ * answers — a briefly-answering booted-out orphan is not success. Never
52
+ * suggests root.
53
+ */
54
+ export declare function bootstrapLaunchAgent(deps: LaunchAgentBootstrap): Promise<void>;
55
+ /** Resolve the Tailscale CLI through PATH, then standard macOS app locations. */
56
+ export declare function resolveTailscale(which: (command: string) => string | undefined, platform: NodeJS.Platform, exists?: (path: string) => boolean): string | undefined;
57
+ /** Capability-probe the resolved CLI for Serve support (not an OS allowlist). */
58
+ export declare function tailscaleServeSupported(tailscalePath: string, exec: (command: string, args: string[]) => string): boolean;
59
+ /** Publish Serve through the resolved absolute path and return the HTTPS origin.
60
+ * Throws a distinct diagnostic when the serve command itself fails. */
61
+ export declare function configureTailscaleServe(tailscalePath: string, localEndpoint: string, exec: (command: string, args: string[]) => string): string;
62
+ export interface RemoteAccessDeps {
63
+ /** The step-3 selection: 'remote' opts into the Tailscale sub-flow; anything
64
+ * else stays on this computer without inspecting Tailscale at all. */
65
+ choice: string;
66
+ localEndpoint: string;
67
+ log: (message: string) => void;
68
+ choose: (menu: {
69
+ message: string;
70
+ options: SetupAccessOption[];
71
+ }) => Promise<string>;
72
+ detect: () => {
73
+ path: string | undefined;
74
+ serve: boolean;
75
+ };
76
+ resetDetect: () => void;
77
+ /** Publish Serve and return the HTTPS origin; may throw. */
78
+ configureServe: (tailscalePath: string) => string;
79
+ }
80
+ export interface RemoteAccessResult {
81
+ access: SetupAccess;
82
+ endpoint: string;
83
+ summary: string;
84
+ }
85
+ /**
86
+ * Resolve interactive access. "This computer" never touches Tailscale. "Remote"
87
+ * detects Tailscale only now, offers Retry/Continue-local when it is missing or
88
+ * cannot Serve, asks a separate consent before configuring Serve, and degrades
89
+ * to local — with the exact copyable recovery command — if configuring fails.
90
+ * Purely a decision function: it mutates nothing but the injected log.
91
+ */
92
+ export declare function runRemoteAccess(deps: RemoteAccessDeps): Promise<RemoteAccessResult>;
93
+ export declare function renderWindowsServiceScript(options: {
94
+ dataDir: string;
95
+ logDir: string;
96
+ nodePath: string;
97
+ runtime: RuntimePaths;
98
+ servicePath: string;
99
+ tokenPath: string;
100
+ }): string;
101
+ export declare function renderWindowsScheduledTask(options: {
102
+ scriptPath: string;
103
+ user: string;
104
+ }): string;
105
+ export declare function probeCodorStatus(endpoint: string): Promise<boolean>;
106
+ export declare function waitForCodor(endpoint: string, probe: (value: string) => Promise<boolean>, sleep: (milliseconds: number) => Promise<void>): Promise<void>;
107
+ export declare function runSetup(options: SetupOptions): Promise<void>;
108
+ //# sourceMappingURL=setup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAcA,OAAO,EAA4C,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACjG,OAAO,EAQL,KAAK,SAAS,EACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,KAAK,mBAAmB,EAEzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAyC,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAM9F,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAC/C,MAAM,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,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