@pi-chamber/web 1.0.4-rc.1 → 1.0.4-rc.4
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.
- package/dist/assets/DiagramView--BGR3PRZ.js +1 -0
- package/dist/assets/{DiffView-BjWUdbL5.js → DiffView-hz90_htv.js} +5 -5
- package/dist/assets/FileSaveConflictDialog-CcrWHRvd.js +3 -0
- package/dist/assets/{FilesView-qP1ypN9J.js → FilesView-DaqkPMqx.js} +4 -4
- package/dist/assets/{GitHubDetailScaffold-zCKCy5OJ.js → GitHubDetailScaffold-BZhP67Va.js} +2 -2
- package/dist/assets/GitHubLinkPicker-CJZmDljp.js +1 -0
- package/dist/assets/{GitHubListPrimitives-Ck3zllel.js → GitHubListPrimitives-DhF42guB.js} +1 -1
- package/dist/assets/{GitView-y2k2i4gR.js → GitView-JK-QCK9R.js} +4 -4
- package/dist/assets/{IssuesSurface-HWgR87N3.js → IssuesSurface-CAqQzrsv.js} +3 -3
- package/dist/assets/{JsonTreeView-DSuC4naV.js → JsonTreeView-CKTqB1CD.js} +1 -1
- package/dist/assets/MarkdownRendererImpl-B5kJy9Nt.js +12 -0
- package/dist/assets/{PatchDiff-DArTeWeK.js → PatchDiff-BQnRFN30.js} +1 -1
- package/dist/assets/{PierreDiffViewer-DQKujzLb.js → PierreDiffViewer-BeGpdI0x.js} +2 -2
- package/dist/assets/PullRequestsSurface-D9beq2x9.js +2 -0
- package/dist/assets/SessionSwitcherContent-DElQ_cjm.js +1 -0
- package/dist/assets/SessionSwitcherDropdown-JaIDcDIj.js +2 -0
- package/dist/assets/SessionUnreadDot-Czfvjbdi.js +1 -0
- package/dist/assets/SettingsView-C_GC1Mx3.js +6 -0
- package/dist/assets/SettingsWindow-CAxKgYOu.js +1 -0
- package/dist/assets/ToolOutputDialog-lz5exVQ4.js +8 -0
- package/dist/assets/ToolPartDiffPreview-nIUiNLpP.js +1 -0
- package/dist/assets/{VirtualizedFileDiff-D6KbvKc6.js → VirtualizedFileDiff-IWqCJNXu.js} +1 -1
- package/dist/assets/{Virtualizer-wpC51ZBQ.js → Virtualizer-Cp_cJWbI.js} +1 -1
- package/dist/assets/{collapsible-DhV9d4dT.js → collapsible-C7oyikVm.js} +1 -1
- package/dist/assets/{computeVirtualFileMetrics-CeMpF2xC.js → computeVirtualFileMetrics-CyhUKEfv.js} +1 -1
- package/dist/assets/{contextFileOpenGuard-Ck5u_kAP.js → contextFileOpenGuard-DkjmJ-NU.js} +1 -1
- package/dist/assets/{gitStatusPredicates-DEBSqUNE.js → gitStatusPredicates-DBmUY3kA.js} +1 -1
- package/dist/assets/{githubLink-DT7i2NlH.js → githubLink-BdbPMMAK.js} +5 -5
- package/dist/assets/index-BnZVqcki.js +11 -0
- package/dist/assets/index-BnieExes.css +1 -0
- package/dist/assets/index-CKgYIOis.js +1 -0
- package/dist/assets/{main-BczEScAA.js → main-6YKi4QM2.js} +2 -2
- package/dist/assets/{main-CHLNMYeJ.js → main-CWdWdhdL.js} +8 -8
- package/dist/assets/{markdownCore-C4Gk5Zht.js → markdownCore-D7V46WY9.js} +1 -1
- package/dist/assets/miniChat-PanPmbEK.js +2 -0
- package/dist/assets/mobile-0LY-2fxw.js +2 -0
- package/dist/assets/nativeFileSave-BzhtrDoD.js +1 -0
- package/dist/assets/{pi-session-focus-preference-LDVCJ_YR.js → pi-session-focus-preference-BC-ze1oC.js} +4 -4
- package/dist/assets/{renderDiffWithHighlighter-CDsgOnkH.js → renderDiffWithHighlighter-ByZtK9za.js} +1 -1
- package/dist/assets/renderElectronMiniChatApp-DETQLjFi.js +2 -0
- package/dist/assets/{renderFileWithHighlighter-TpKRyfCY.js → renderFileWithHighlighter-CnN0Tv_8.js} +1 -1
- package/dist/assets/renderMobileApp-DS0FDQLg.js +11 -0
- package/dist/assets/runtimeEndpointReset-BqqXMwE9.js +62 -0
- package/dist/assets/{runtimeSurface-DW_Ia4q3.js → runtimeSurface-DBiUWYK2.js} +1 -1
- package/dist/assets/useAppFontEffects-BisjofNZ.js +212 -0
- package/dist/assets/{useFilesViewSearch-C_LzYIgD.js → useFilesViewSearch-BWABG6pS.js} +3 -3
- package/dist/assets/{useGitHubRemoteSearch-DsxWOzKZ.js → useGitHubRemoteSearch-Bsf2YeQP.js} +1 -1
- package/dist/assets/{useSwitcherItems-BmoCnS9W.js → useSwitcherItems-BSTSev5C.js} +1 -1
- package/dist/assets/vendor-aparajita-capacitor-secure-storage-BYohCVY0.js +1 -0
- package/dist/assets/{vendor-base-ui-DIkTOIJS.js → vendor-base-ui-BscvGUFt.js} +1 -1
- package/dist/assets/vendor-boot-Dgb9NVFe.js +69 -0
- package/dist/assets/vendor-capacitor-app-BjdQVib9.js +1 -0
- package/dist/assets/vendor-capacitor-keyboard-eTtI5go3.js +1 -0
- package/dist/assets/vendor-capacitor-push-notifications-CBKq2Arn.js +1 -0
- package/dist/assets/vendor-capacitor-status-bar-9rNIGxlO.js +1 -0
- package/dist/assets/{vendor-codemirror-autocomplete-DsFn4GLp.js → vendor-codemirror-autocomplete-DxS3jwvE.js} +1 -1
- package/dist/assets/{vendor-codemirror-lang-angular-B_NMmBbS.js → vendor-codemirror-lang-angular-DdjXl9e2.js} +1 -1
- package/dist/assets/vendor-codemirror-lang-cpp--aMr7NVt.js +1 -0
- package/dist/assets/vendor-codemirror-lang-css-CZ_qxZY9.js +1 -0
- package/dist/assets/{vendor-codemirror-lang-go-C2KHbcll.js → vendor-codemirror-lang-go-Ca-y2Alu.js} +2 -2
- package/dist/assets/vendor-codemirror-lang-html-COZ0L5wT.js +1 -0
- package/dist/assets/vendor-codemirror-lang-java-D3Rf3QNJ.js +1 -0
- package/dist/assets/{vendor-codemirror-lang-javascript-DpTUrvx8.js → vendor-codemirror-lang-javascript-DwJ-IvCs.js} +2 -2
- package/dist/assets/vendor-codemirror-lang-jinja-D_5lod6k.js +1 -0
- package/dist/assets/vendor-codemirror-lang-json-BG8C7OpC.js +1 -0
- package/dist/assets/vendor-codemirror-lang-less-CVEkoaTw.js +1 -0
- package/dist/assets/vendor-codemirror-lang-liquid-U9vj0m8w.js +1 -0
- package/dist/assets/vendor-codemirror-lang-markdown-DqlYH9gY.js +1 -0
- package/dist/assets/vendor-codemirror-lang-php-BFEiEVA1.js +1 -0
- package/dist/assets/vendor-codemirror-lang-python-Cz1dQXQd.js +3 -0
- package/dist/assets/vendor-codemirror-lang-rust-C_CoD9mj.js +1 -0
- package/dist/assets/vendor-codemirror-lang-sass-BuR0aKh5.js +1 -0
- package/dist/assets/{vendor-codemirror-lang-sql-C_RazIaB.js → vendor-codemirror-lang-sql-DggNUjdM.js} +2 -2
- package/dist/assets/{vendor-codemirror-lang-vue-BYL0r7KR.js → vendor-codemirror-lang-vue-DFZHi2J3.js} +1 -1
- package/dist/assets/vendor-codemirror-lang-wast-zuTN3SHT.js +1 -0
- package/dist/assets/vendor-codemirror-lang-xml-CrcvhI-k.js +1 -0
- package/dist/assets/vendor-codemirror-lang-yaml-DcVWsakb.js +1 -0
- package/dist/assets/{vendor-codemirror-language-data-DglcKYWT.js → vendor-codemirror-language-data-CCLITgCF.js} +2 -2
- package/dist/assets/{vendor-codemirror-search-DaE6R5gH.js → vendor-codemirror-search-H7NOEdbX.js} +2 -2
- package/dist/assets/{vendor-lezer-cpp-Dt99h3WT.js → vendor-lezer-cpp-C8aD2KAr.js} +1 -1
- package/dist/assets/{vendor-lezer-css-DNU_fzPI.js → vendor-lezer-css-2lbTJF-Y.js} +1 -1
- package/dist/assets/{vendor-lezer-go-BEFtcNyS.js → vendor-lezer-go-Bw6LFTrZ.js} +1 -1
- package/dist/assets/{vendor-lezer-html-DDGRhRUz.js → vendor-lezer-html-D7ym2z7S.js} +1 -1
- package/dist/assets/{vendor-lezer-java-DmfZtW09.js → vendor-lezer-java-CZhK7w21.js} +1 -1
- package/dist/assets/{vendor-lezer-javascript-oje4tdp_.js → vendor-lezer-javascript-rpKeTHZp.js} +1 -1
- package/dist/assets/{vendor-lezer-json-BRXb_bDX.js → vendor-lezer-json-C7jwsd2G.js} +1 -1
- package/dist/assets/{vendor-lezer-lr-BU2qmu_5.js → vendor-lezer-lr-DR-ylqNN.js} +1 -1
- package/dist/assets/{vendor-lezer-markdown-CicYv7V9.js → vendor-lezer-markdown-Bir0m5nB.js} +1 -1
- package/dist/assets/{vendor-lezer-php-COORrTpE.js → vendor-lezer-php-y0hIEfo1.js} +1 -1
- package/dist/assets/{vendor-lezer-python-Cuvm9X9Y.js → vendor-lezer-python-D64A9lNV.js} +1 -1
- package/dist/assets/{vendor-lezer-rust-C_zOfHbX.js → vendor-lezer-rust-E3ZA9T2L.js} +1 -1
- package/dist/assets/{vendor-lezer-sass-DWP4w7O1.js → vendor-lezer-sass-C5UFI9SP.js} +1 -1
- package/dist/assets/{vendor-lezer-xml-Br6nOYeG.js → vendor-lezer-xml-DOy7FzCR.js} +1 -1
- package/dist/assets/{vendor-lezer-yaml-CYQmm6Sb.js → vendor-lezer-yaml-kEjaSCvZ.js} +1 -1
- package/dist/assets/{vendor-replit-codemirror-vim-CZy3BUVv.js → vendor-replit-codemirror-vim-BLfh0LPy.js} +1 -1
- package/dist/assets/{web-components-CH3-XV-n.js → web-components-CdMfsnXE.js} +1 -1
- package/dist/index.html +4 -4
- package/dist/mini-chat.html +3 -3
- package/dist/mobile.html +3 -3
- package/package.json +2 -2
- package/server/lib/pi/routes.js +1 -0
- package/server/lib/pi/session-daemon/DOCUMENTATION.md +22 -9
- package/server/lib/pi/session-daemon/builtin-extensions.js +37 -0
- package/server/lib/pi/session-daemon/daemon-process.js +6 -0
- package/server/lib/pi/session-daemon/extension-theme.js +75 -0
- package/server/lib/pi/session-daemon/extension-theme.test.js +47 -0
- package/server/lib/pi/session-daemon/prompt-operations.test.js +3 -3
- package/server/lib/pi/session-daemon/prompt-preflight.test.js +12 -14
- package/server/lib/pi/session-daemon/sdk-upgrade.test.js +118 -2
- package/server/lib/pi/session-daemon/send-operation-dedup.test.js +1 -1
- package/server/lib/pi/session-daemon/session-daemon-extensions.test.js +1 -1
- package/server/lib/pi/session-daemon/session-daemon-mcp.e2e.test.js +638 -0
- package/server/lib/pi/session-daemon/session-daemon-turn.e2e.test.js +437 -0
- package/server/lib/pi/session-daemon/session-daemon.js +61 -42
- package/server/lib/pi/session-daemon/session-daemon.test.js +53 -5
- package/server/lib/pi/session-daemon/session-idle-residency.test.js +1 -1
- package/server/lib/pi/session-daemon/session-replay.test.js +1 -1
- package/server/lib/pi/session-daemon/supervisor.js +13 -1
- package/server/lib/pi/session-daemon/supervisor.test.js +92 -0
- package/server/lib/pi/session-persistence-gap.test.js +2 -3
- package/server/lib/pi/ui-settings-store.js +1 -0
- package/server/lib/pi/ui-settings-store.test.js +27 -0
- package/server/lib/relay/DOCUMENTATION.md +4 -0
- package/server/lib/terminal/DOCUMENTATION.md +1 -0
- package/dist/assets/DiagramView-DfZMQkXY.js +0 -1
- package/dist/assets/FileSaveConflictDialog-u5L4k_5k.js +0 -3
- package/dist/assets/GitHubLinkPicker-CwxKY3lN.js +0 -1
- package/dist/assets/MarkdownRendererImpl-CT5ln9em.js +0 -12
- package/dist/assets/PullRequestsSurface-Cfb1wSvC.js +0 -2
- package/dist/assets/SessionSwitcherContent-DEGJyZBl.js +0 -1
- package/dist/assets/SessionSwitcherDropdown-cC9wVBH7.js +0 -2
- package/dist/assets/SessionUnreadDot-CELKNVIM.js +0 -1
- package/dist/assets/SettingsView-CZvRRgJe.js +0 -6
- package/dist/assets/SettingsWindow-CZM1dmVb.js +0 -1
- package/dist/assets/ToolOutputDialog-DClOSbJc.js +0 -8
- package/dist/assets/ToolPartDiffPreview-BaFiGUDE.js +0 -1
- package/dist/assets/index-6IO1AcJI.js +0 -10
- package/dist/assets/index-BAmzAlNx.css +0 -1
- package/dist/assets/index-eDf4LKLY.js +0 -1
- package/dist/assets/miniChat-Do3hE87Z.js +0 -2
- package/dist/assets/mobile-CTnihwfa.js +0 -2
- package/dist/assets/renderElectronMiniChatApp-DSa3gYqR.js +0 -2
- package/dist/assets/renderMobileApp-CPE-3uMl.js +0 -11
- package/dist/assets/runtimeEndpointReset-CzJfovWI.js +0 -62
- package/dist/assets/useAppFontEffects-CG3_yteE.js +0 -212
- package/dist/assets/vendor-aparajita-capacitor-secure-storage-5IShChL0.js +0 -1
- package/dist/assets/vendor-boot-DyL2td56.js +0 -69
- package/dist/assets/vendor-capacitor-app-BrDJj9I_.js +0 -1
- package/dist/assets/vendor-capacitor-core-B4EWRrHz.js +0 -1
- package/dist/assets/vendor-capacitor-keyboard-CYccoJjr.js +0 -1
- package/dist/assets/vendor-capacitor-push-notifications-KNe1zSBF.js +0 -1
- package/dist/assets/vendor-capacitor-status-bar-B-N0EOVk.js +0 -1
- package/dist/assets/vendor-codemirror-lang-cpp-GOE7Gjd0.js +0 -1
- package/dist/assets/vendor-codemirror-lang-css-Dwf2XpnZ.js +0 -1
- package/dist/assets/vendor-codemirror-lang-html-DcKqyeGk.js +0 -1
- package/dist/assets/vendor-codemirror-lang-java-6eGbyB2k.js +0 -1
- package/dist/assets/vendor-codemirror-lang-jinja-xSUJjXhr.js +0 -1
- package/dist/assets/vendor-codemirror-lang-json-CLGxdOCz.js +0 -1
- package/dist/assets/vendor-codemirror-lang-less-6nXi1rS9.js +0 -1
- package/dist/assets/vendor-codemirror-lang-liquid-B9hmb9P8.js +0 -1
- package/dist/assets/vendor-codemirror-lang-markdown-DmFP9s6x.js +0 -1
- package/dist/assets/vendor-codemirror-lang-php-DC6To8iX.js +0 -1
- package/dist/assets/vendor-codemirror-lang-python-yuxIkjit.js +0 -3
- package/dist/assets/vendor-codemirror-lang-rust-di1Sjz-0.js +0 -1
- package/dist/assets/vendor-codemirror-lang-sass-BWpV9NPV.js +0 -1
- package/dist/assets/vendor-codemirror-lang-wast-BiVarhcz.js +0 -1
- package/dist/assets/vendor-codemirror-lang-xml-Cn1lY1ts.js +0 -1
- package/dist/assets/vendor-codemirror-lang-yaml-BZ6mZw9L.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as l}from"./vendor-vite-runtime-DD1OZmLC.js";import{registerPlugin as x,WebPlugin as g,Capacitor as v,CapacitorException as I}from"./vendor-capacitor-core-B4EWRrHz.js";var o;(function(r){r.missingKey="missingKey",r.invalidData="invalidData",r.osError="osError",r.unknownError="unknownError"})(o||(o={}));var h;(function(r){r[r.whenUnlocked=0]="whenUnlocked",r[r.whenUnlockedThisDeviceOnly=1]="whenUnlockedThisDeviceOnly",r[r.afterFirstUnlock=2]="afterFirstUnlock",r[r.afterFirstUnlockThisDeviceOnly=3]="afterFirstUnlockThisDeviceOnly",r[r.whenPasscodeSetThisDeviceOnly=4]="whenPasscodeSetThisDeviceOnly"})(h||(h={}));class y extends Error{constructor(e,t){super(e),this.name="StorageError",this.code=t}}const u=x("SecureStorage",{web:async()=>{const r=await l(()=>Promise.resolve().then(()=>P),void 0);return new r.SecureStorageWeb},ios:async()=>{const r=await l(()=>Promise.resolve().then(()=>d),void 0);return new r.SecureStorageNative(u)},android:async()=>{const r=await l(()=>Promise.resolve().then(()=>d),void 0);return new r.SecureStorageNative(u)}});function S(r){return r!==void 0&&Object.keys(o).includes(r)}class a extends g{constructor(){super(...arguments),this.prefix="capacitor-storage_",this.sync=!1,this.access=h.whenUnlocked}async setSynchronize(e){if(this.sync=e,v.getPlatform()==="ios")return this.setSynchronizeKeychain({sync:e})}async getSynchronize(){return this.sync}async setDefaultKeychainAccess(e){this.access=e}async tryOperation(e){try{return await e()}catch(t){throw t instanceof I&&S(t.code)?new y(t.message,t.code):t}}async get(e,t=!0,i){if(e){const{data:n}=await this.tryOperation(async()=>this.internalGetItem({prefixedKey:this.prefixedKey(e),sync:i??this.sync}));if(n===null)return null;if(t){const s=K(n);if(s)return s}try{return JSON.parse(n)}catch{throw new y("Invalid data",o.invalidData)}}return a.missingKey()}async getItem(e){if(e){const{data:t}=await this.tryOperation(async()=>this.internalGetItem({prefixedKey:this.prefixedKey(e),sync:this.sync}));return t}return null}async set(e,t,i=!0,n,s){if(e){let c=t;return i&&t instanceof Date&&(c=t.toISOString()),this.tryOperation(async()=>this.internalSetItem({prefixedKey:this.prefixedKey(e),data:JSON.stringify(c),sync:n??this.sync,access:s??this.access}))}return a.missingKey()}async setItem(e,t){return e?this.tryOperation(async()=>this.internalSetItem({prefixedKey:this.prefixedKey(e),data:t,sync:this.sync,access:this.access})):a.missingKey()}async remove(e,t){if(e){const{success:i}=await this.tryOperation(async()=>this.internalRemoveItem({prefixedKey:this.prefixedKey(e),sync:t??this.sync}));return i}return a.missingKey()}async removeItem(e){if(e){await this.tryOperation(async()=>this.internalRemoveItem({prefixedKey:this.prefixedKey(e),sync:this.sync}));return}a.missingKey()}async keys(e){const{keys:t}=await this.tryOperation(async()=>this.getPrefixedKeys({prefix:this.prefix,sync:e??this.sync})),i=this.prefix.length;return t.map(n=>n.slice(i))}async getKeyPrefix(){return this.prefix}async setKeyPrefix(e){this.prefix=e}prefixedKey(e){return this.prefix+e}static missingKey(){throw new y("No key provided",o.missingKey)}}const w=/^"(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}).(\d{3})Z"$/u;function K(r){const e=w.exec(r);if(e){const t=Number.parseInt(e[1],10),i=Number.parseInt(e[2],10)-1,n=Number.parseInt(e[3],10),s=Number.parseInt(e[4],10),c=Number.parseInt(e[5],10),f=Number.parseInt(e[6],10),m=Number.parseInt(e[7],10),p=Date.UTC(t,i,n,s,c,f,m);return new Date(p)}return null}class _ extends a{async setSynchronizeKeychain(e){}async internalGetItem(e){return{data:localStorage.getItem(e.prefixedKey)}}async internalSetItem(e){localStorage.setItem(e.prefixedKey,e.data)}async internalRemoveItem(e){return localStorage.getItem(e.prefixedKey)!==null?(localStorage.removeItem(e.prefixedKey),{success:!0}):{success:!1}}async clear(){const{keys:e}=await this.getPrefixedKeys({prefix:this.prefix});for(const t of e)localStorage.removeItem(t)}async clearItemsWithPrefix(e){console.warn("clearItemsWithPrefix is native only")}async getPrefixedKeys(e){const t=[];for(let i=0;i<localStorage.length;i++){const n=localStorage.key(i);n?.startsWith(e.prefix)&&t.push(n)}return{keys:t}}}const P=Object.freeze(Object.defineProperty({__proto__:null,SecureStorageWeb:_},Symbol.toStringTag,{value:"Module"}));class O extends a{constructor(e){super();const t=e;this.setSynchronizeKeychain=t.setSynchronizeKeychain,this.internalGetItem=t.internalGetItem,this.internalSetItem=t.internalSetItem,this.internalRemoveItem=t.internalRemoveItem,this.clearItemsWithPrefix=t.clearItemsWithPrefix,this.getPrefixedKeys=t.getPrefixedKeys}async setSynchronizeKeychain(e){}async internalGetItem(e){return{data:""}}async internalSetItem(e){}async internalRemoveItem(e){return{success:!0}}async clear(e){return this.tryOperation(async()=>this.clearItemsWithPrefix({prefix:this.prefix,sync:e??this.sync}))}async clearItemsWithPrefix(e){}async getPrefixedKeys(e){return{keys:[]}}}const d=Object.freeze(Object.defineProperty({__proto__:null,SecureStorageNative:O},Symbol.toStringTag,{value:"Module"}));export{u as p};
|