@pi-chamber/web 0.9.0 → 0.9.1

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 (101) hide show
  1. package/README.md +22 -6
  2. package/bin/cli.js +11 -1
  3. package/bin/cli.test.js +18 -0
  4. package/bin/lib/DOCUMENTATION.md +3 -3
  5. package/bin/lib/cli-args.js +7 -3
  6. package/bin/lib/cli-lifecycle.js +3 -0
  7. package/bin/lib/cli-paths.js +6 -0
  8. package/bin/lib/cli-process.js +1 -0
  9. package/bin/lib/cli-tunnel-profiles.js +15 -10
  10. package/bin/lib/commands-connect-url.js +9 -1
  11. package/bin/lib/commands-logs.js +22 -4
  12. package/bin/lib/commands-serve.js +10 -2
  13. package/bin/lib/commands-tunnel.js +14 -0
  14. package/bin/lib/commands-update.js +18 -14
  15. package/bin/lib/commands-update.test.js +2 -1
  16. package/dist/assets/{DiagramEditor-CcbnMl1H.js → DiagramEditor-DoEOH0hY.js} +1 -1
  17. package/dist/assets/{DiagramView-DTW5jwK3.js → DiagramView-y9Ystuhv.js} +1 -1
  18. package/dist/assets/{DiffView-CZyHHAOB.js → DiffView-ScM4XoqZ.js} +6 -6
  19. package/dist/assets/{FilesView-BJYLFR3H.js → FilesView-CjkhMFqJ.js} +1 -1
  20. package/dist/assets/{GitView-Cg_5UU7E.js → GitView-Bqi6H8I-.js} +3 -3
  21. package/dist/assets/JsonTreeView-DWhlH6NK.js +1 -0
  22. package/dist/assets/{MarkdownRendererImpl-WqBwxlso.js → MarkdownRendererImpl-CEOKZ1qH.js} +1 -1
  23. package/dist/assets/{PatchDiff-BRi23N1l.js → PatchDiff-ClnfJJ2J.js} +1 -1
  24. package/dist/assets/{SessionSwitcherContent-7VAU5pwZ.js → SessionSwitcherContent-e6JzUXD_.js} +1 -1
  25. package/dist/assets/{SessionSwitcherDropdown-BslRtccE.js → SessionSwitcherDropdown-C4etG8dv.js} +2 -2
  26. package/dist/assets/{SessionUnreadDot-1nV0Z2ZA.js → SessionUnreadDot-BVTSwRiG.js} +1 -1
  27. package/dist/assets/SettingsView-C0S0Sx-S.js +2 -0
  28. package/dist/assets/{SettingsWindow-D4jZHl8X.js → SettingsWindow-Cy9tmnMg.js} +1 -1
  29. package/dist/assets/ToolOutputDialog-Csrc0Uk2.js +8 -0
  30. package/dist/assets/{ToolPartDiffPreview-9FLv2fWD.js → ToolPartDiffPreview-6oH6KD44.js} +1 -1
  31. package/dist/assets/{VirtualizedFileDiff-ywmPBXAG.js → VirtualizedFileDiff-DJNcTQNp.js} +3 -3
  32. package/dist/assets/{collapsible-6mCYf7Ky.js → collapsible-DxgVLhi9.js} +1 -1
  33. package/dist/assets/computeVirtualFileMetrics-B-WoeBMW.js +3 -0
  34. package/dist/assets/{contextFileOpenGuard-CKyf-TZ7.js → contextFileOpenGuard-DQ4U9xRH.js} +1 -1
  35. package/dist/assets/{gitStatusPredicates-UsytDMy_.js → gitStatusPredicates-CIFSGjJs.js} +1 -1
  36. package/dist/assets/{index-yWgKW2Fx.js → index-D2C3q2xD.js} +4 -4
  37. package/dist/assets/{index-C8NYcA8-.css → index-DNoEeZ2U.css} +1 -1
  38. package/dist/assets/{index-D1IaU-Q7.js → index-DmNPBaSo.js} +1 -1
  39. package/dist/assets/{isDiffPlainText-DPCilEx_.js → isDiffPlainText-CrvpUauF.js} +1 -1
  40. package/dist/assets/{isFilePlainText-XdCAgm8R.js → isFilePlainText-CKvhS32g.js} +1 -1
  41. package/dist/assets/{main-DhvLreEl.js → main-BFv8slLp.js} +2 -2
  42. package/dist/assets/{main-DcAMXRSi.js → main-CjM7g4Gq.js} +7 -7
  43. package/dist/assets/{markdownCore-BF0Dqwm4.js → markdownCore-DKrraAqT.js} +1 -1
  44. package/dist/assets/{miniChat-DsCx0dsW.js → miniChat-hQnLS5mt.js} +2 -2
  45. package/dist/assets/{mobile-C-IN49xX.js → mobile-DuXOBGs_.js} +2 -2
  46. package/dist/assets/renderElectronMiniChatApp-ClJBZVGy.js +2 -0
  47. package/dist/assets/{renderMobileApp-xCdVzvyf.js → renderMobileApp-DofX2wjB.js} +3 -3
  48. package/dist/assets/{runtimeEndpointReset-CT3WShpj.js → runtimeEndpointReset-BZeYg6eN.js} +3 -3
  49. package/dist/assets/{runtimeSurface-C_3mcJ01.js → runtimeSurface-C7CBxDbh.js} +1 -1
  50. package/dist/assets/{useAppFontEffects-BgK55NDM.js → useAppFontEffects-Cs0f1dKn.js} +102 -102
  51. package/dist/assets/{useFilesViewSearch-CWx24PZg.js → useFilesViewSearch-D1hcbBEc.js} +1 -1
  52. package/dist/assets/usePushVisibilityBeacon-DqHkuVS5.js +10 -0
  53. package/dist/assets/{useSwitcherItems-CrS-F6DY.js → useSwitcherItems-BEoW7LlC.js} +1 -1
  54. package/dist/assets/{vendor-codemirror-language-data-BzeePAPn.js → vendor-codemirror-language-data-B8Ac62S_.js} +2 -2
  55. package/dist/assets/{web-components-DAkBDXRk.js → web-components-Dy-Tz_LJ.js} +2 -2
  56. package/dist/index.html +4 -4
  57. package/dist/mini-chat.html +3 -3
  58. package/dist/mobile.html +3 -3
  59. package/package.json +3 -3
  60. package/server/index.js +26 -7
  61. package/server/lib/client-auth/pairing.js +13 -2
  62. package/server/lib/client-auth/remote-clients.js +13 -2
  63. package/server/lib/fs/DOCUMENTATION.md +3 -1
  64. package/server/lib/fs/routes.test.js +74 -0
  65. package/server/lib/git/DOCUMENTATION.md +1 -1
  66. package/server/lib/git/identity-storage.js +10 -1
  67. package/server/lib/package-manager.js +1 -1
  68. package/server/lib/package-manager.test.js +11 -0
  69. package/server/lib/pi/archive-store.js +3 -2
  70. package/server/lib/pi/model-config-store.js +6 -2
  71. package/server/lib/pi/routes.js +11 -2
  72. package/server/lib/pi/session-daemon/DOCUMENTATION.md +12 -6
  73. package/server/lib/pi/session-daemon/daemon-process.js +48 -13
  74. package/server/lib/pi/session-daemon/session-daemon.js +226 -40
  75. package/server/lib/pi/session-daemon/session-daemon.test.js +207 -0
  76. package/server/lib/pi/session-daemon/session-lease.js +151 -0
  77. package/server/lib/pi/session-daemon/session-lease.test.js +108 -0
  78. package/server/lib/pi/session-daemon/supervisor.js +244 -54
  79. package/server/lib/pi/session-daemon/supervisor.test.js +202 -6
  80. package/server/lib/pi/session-folders-store.js +20 -2
  81. package/server/lib/pi/session-folders-store.test.js +17 -0
  82. package/server/lib/pi/settings-store.js +3 -2
  83. package/server/lib/pi/snippets-store.js +4 -1
  84. package/server/lib/pi/ui-settings-store.js +3 -2
  85. package/server/lib/server/cross-process-lock.js +112 -0
  86. package/server/lib/server/cross-process-lock.test.js +70 -0
  87. package/server/lib/server/server-profile.js +110 -0
  88. package/server/lib/server/server-profile.test.js +58 -0
  89. package/server/lib/server/tunnel-service.DOCUMENTATION.md +7 -8
  90. package/server/lib/server/tunnel-service.js +8 -1
  91. package/server/lib/stt/config-store.js +3 -2
  92. package/server/lib/terminal/DOCUMENTATION.md +1 -1
  93. package/server/lib/tunnels/DOCUMENTATION.md +38 -18
  94. package/server/lib/ui-auth/ui-auth.js +9 -2
  95. package/server/lib/ui-auth/ui-passkeys.js +9 -1
  96. package/dist/assets/JsonTreeView-GTdKGEdy.js +0 -1
  97. package/dist/assets/SettingsView-UIaAyjTo.js +0 -2
  98. package/dist/assets/ToolOutputDialog-BoeJONiR.js +0 -8
  99. package/dist/assets/computeVirtualFileMetrics-3H6mg13G.js +0 -3
  100. package/dist/assets/renderElectronMiniChatApp-C13HXGZL.js +0 -2
  101. package/dist/assets/usePushVisibilityBeacon-swMQLm-i.js +0 -10
@@ -1 +1 @@
1
- import{i,b as s}from"./index-yWgKW2Fx.js";const n="pichamber-mobile-layout",a=e=>e==="default"?"default":"new",c=()=>{if(typeof window>"u")return"new";try{return a(window.localStorage.getItem(n))}catch{return"new"}},l=e=>{if(typeof window>"u")return!1;try{return window.localStorage.setItem(n,e),!0}catch{return!1}},d=768,u=()=>{if(typeof window>"u")return!1;const e=typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)").matches||window.matchMedia("(hover: none)").matches:!1,t=typeof navigator<"u"?navigator.maxTouchPoints??0:0;return e||t>0},r=()=>{if(typeof window>"u")return"desktop";const e=window.__PICHAMBER_SURFACE__;if(e==="mobile"||e==="desktop")return e;const t=new URLSearchParams(window.location.search).get("surface");if(t==="mobile"||t==="desktop")return t;if(i())return"mobile";if(s())return"desktop";const o=Math.min(window.innerWidth||Number.POSITIVE_INFINITY,window.screen?.width||Number.POSITIVE_INFINITY);return Number.isFinite(o)&&o<=d&&u()&&c()==="new"?"mobile":"desktop"},m=()=>{const e=r();return typeof window<"u"&&(window.__PICHAMBER_SURFACE__=e),e},h=()=>r()==="mobile";export{c as g,h as i,m as r,l as s};
1
+ import{i,b as s}from"./index-D2C3q2xD.js";const n="pichamber-mobile-layout",a=e=>e==="default"?"default":"new",c=()=>{if(typeof window>"u")return"new";try{return a(window.localStorage.getItem(n))}catch{return"new"}},l=e=>{if(typeof window>"u")return!1;try{return window.localStorage.setItem(n,e),!0}catch{return!1}},d=768,u=()=>{if(typeof window>"u")return!1;const e=typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)").matches||window.matchMedia("(hover: none)").matches:!1,t=typeof navigator<"u"?navigator.maxTouchPoints??0:0;return e||t>0},r=()=>{if(typeof window>"u")return"desktop";const e=window.__PICHAMBER_SURFACE__;if(e==="mobile"||e==="desktop")return e;const t=new URLSearchParams(window.location.search).get("surface");if(t==="mobile"||t==="desktop")return t;if(i())return"mobile";if(s())return"desktop";const o=Math.min(window.innerWidth||Number.POSITIVE_INFINITY,window.screen?.width||Number.POSITIVE_INFINITY);return Number.isFinite(o)&&o<=d&&u()&&c()==="new"?"mobile":"desktop"},m=()=>{const e=r();return typeof window<"u"&&(window.__PICHAMBER_SURFACE__=e),e},h=()=>r()==="mobile";export{c as g,h as i,m as r,l as s};