sliccy 6.185.0 → 6.186.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.
- package/dist/ui/.vite/manifest.json +212 -212
- package/dist/ui/assets/{SKILL-wvtABi3i.js → SKILL-nEVBLbup.js} +1 -1
- package/dist/ui/assets/__vite-browser-external-dhDtpJGG.js +1 -0
- package/dist/ui/assets/{account-store-C41qiTs8.js → account-store-6v1bQDLQ.js} +1 -1
- package/dist/ui/assets/{account-store-CdWvtLK5.js → account-store-CcHr-RmX.js} +1 -1
- package/dist/ui/assets/{adobe-pJP3L2S1.js → adobe-CuedqrHU.js} +1 -1
- package/dist/ui/assets/{adobe-Cuq2cJ2f.js → adobe-bNmHv86x.js} +1 -1
- package/dist/ui/assets/{agent-panels-Ca0HA81F.js → agent-panels-Ay3la2gk.js} +1 -1
- package/dist/ui/assets/{almost-bash-shell-headless-3-QEOXc2.js → almost-bash-shell-headless-B0d_S9Oq.js} +33 -33
- package/dist/ui/assets/{apply-layout-CKuJgZ53.js → apply-layout-Byhwt2rW.js} +1 -1
- package/dist/ui/assets/{apps-DZhY4wWQ.js → apps-DgZ3EWPl.js} +1 -1
- package/dist/ui/assets/{azure-openai-DR1sAgZg.js → azure-openai-CRm40REo.js} +1 -1
- package/dist/ui/assets/{azure-openai-BWRYpShR.js → azure-openai-RJkx-u-g.js} +1 -1
- package/dist/ui/assets/{backend-hostfs-Bgb_DsUT.js → backend-hostfs-Cgvl-SCd.js} +1 -1
- package/dist/ui/assets/{bunny-probe-DwyMiB71.js → bunny-probe-8V1ePOla.js} +1 -1
- package/dist/ui/assets/{bunny-run-COGwXgvg.js → bunny-run-DYRf1zOt.js} +1 -1
- package/dist/ui/assets/{cdp-D8ppMyya.js → cdp-BBxx0ATR.js} +1 -1
- package/dist/ui/assets/{cerebras-Drhn15WH.js → cerebras-BId3sDRD.js} +1 -1
- package/dist/ui/assets/{cerebras-C_6PRb_m.js → cerebras-DDSDu3Od.js} +1 -1
- package/dist/ui/assets/{composer-speech-CJ5WxRmi.js → composer-speech-DZ3MG1aE.js} +1 -1
- package/dist/ui/assets/{connect-surface-B25ziPK_.js → connect-surface-PX6umLpO.js} +1 -1
- package/dist/ui/assets/{directed-approval-CHjy_veK.js → directed-approval-BGA8yp7A.js} +1 -1
- package/dist/ui/assets/{dist-BpNPANbz.js → dist-BMDfry7W.js} +1 -1
- package/dist/ui/assets/{dist-C-tO1Skg.js → dist-CaPMlUXZ.js} +1 -1
- package/dist/ui/assets/{dist-BX7il2y2.js → dist-Djwo0SK2.js} +1 -1
- package/dist/ui/assets/{dist-5YOibBa4.js → dist-RJwZ5Bse.js} +1 -1
- package/dist/ui/assets/{emscripten-vfs-hook-Dydz8mUS.js → emscripten-vfs-hook-C0ChBXC3.js} +1 -1
- package/dist/ui/assets/{emscripten-vfs-hook-BgKVsuWf.js → emscripten-vfs-hook-P-OE6hwk.js} +1 -1
- package/dist/ui/assets/{ensure-speech-assets-JOVdeAED.js → ensure-speech-assets-DtFEp33q.js} +1 -1
- package/dist/ui/assets/{fast-path-CG_eXz0M.js → fast-path-CriOTZyu.js} +1 -1
- package/dist/ui/assets/{frozen-archive-writer-XUf0GMRR.js → frozen-archive-writer-Dh8_Z5_n.js} +1 -1
- package/dist/ui/assets/{fs-CfJdpL5x.js → fs-CGiTiKri.js} +1 -1
- package/dist/ui/assets/{fs-DyrFPUp2.js → fs-CO_lYoFl.js} +2 -2
- package/dist/ui/assets/{gelatiere-store-DCvfmki0.js → gelatiere-store-C5B5_A_I.js} +1 -1
- package/dist/ui/assets/{gelatiere-unit-DcQlQ9QA.js → gelatiere-unit-DDoIdKsN.js} +1 -1
- package/dist/ui/assets/{github-J3Pos7xW.js → github-DQXgF3NF.js} +2 -2
- package/dist/ui/assets/{github-BH0fYYDC.js → github-Dpnp7Zzn.js} +1 -1
- package/dist/ui/assets/{github-auth-C0PAZtLa.js → github-auth-BpyLhcfb.js} +1 -1
- package/dist/ui/assets/{github-copilot-r7THpGrf.js → github-copilot-CThRDdd8.js} +1 -1
- package/dist/ui/assets/{github-copilot-GnnngJgc.js → github-copilot-DP5pe7qj.js} +1 -1
- package/dist/ui/assets/{github-install-bXSPtrJ8.js → github-install-BA-6no8b.js} +1 -1
- package/dist/ui/assets/{github-zip-CQ8Hranj.js → github-zip-a7OaDnVX.js} +1 -1
- package/dist/ui/assets/{hear-vBH6fz6J.js → hear-BZ0-BQlF.js} +1 -1
- package/dist/ui/assets/{help-BIRVuAQg.js → help-Pr1ZdIJh.js} +1 -1
- package/dist/ui/assets/icons-dEBJiC8z.js +1 -0
- package/dist/ui/assets/{installer-BIr2X4ZR.js → installer-CYYRFwXA.js} +1 -1
- package/dist/ui/assets/{js-realm-worker-xXM5hNmY.js → js-realm-worker-aPccyhNo.js} +7 -7
- package/dist/ui/assets/{jsh-executor-Sq-_s17Z.js → jsh-executor-B9v2eMrF.js} +3 -3
- package/dist/ui/assets/{jsh-runtime-extensions-DOE4hLxi.js → jsh-runtime-extensions-DiQ9SvKe.js} +1 -1
- package/dist/ui/assets/{kernel-worker-BfQfWWGY.js → kernel-worker-cLHttpvD.js} +10 -10
- package/dist/ui/assets/{lick-ws-bridge-1KGk00fU.js → lick-ws-bridge-BYJXmx3P.js} +1 -1
- package/dist/ui/assets/{lick-ws-bridge-Cb_x25TH.js → lick-ws-bridge-CDZEfnko.js} +1 -1
- package/dist/ui/assets/{live-session-curation-D2302oBw.js → live-session-curation-CEoLLRWg.js} +1 -1
- package/dist/ui/assets/{live-session-snapshot-MSEMhtzT.js → live-session-snapshot-BtgL_jlA.js} +1 -1
- package/dist/ui/assets/{local-llm-Drx0Pf5F.js → local-llm-BJq2Bcn4.js} +1 -1
- package/dist/ui/assets/{local-llm-C1bXK5E_.js → local-llm-Br1qdgFU.js} +1 -1
- package/dist/ui/assets/{main-ke7UzEyb.js → main-DGILx2J0.js} +3 -3
- package/dist/ui/assets/{main-cherry-DMGXCqlk.js → main-cherry-C38UDlPe.js} +1 -1
- package/dist/ui/assets/{memory-curation-seam-BQ0ag4HS.js → memory-curation-seam-CAzXvlEq.js} +1 -1
- package/dist/ui/assets/{memory-health-DOBolAoU.js → memory-health-ChAZtjeC.js} +1 -1
- package/dist/ui/assets/{memory-write-execute-iB7MTIuf.js → memory-write-execute-ct1TB2H5.js} +1 -1
- package/dist/ui/assets/{mount-C8_YWxvL.js → mount-7-ndJ7j_.js} +1 -1
- package/dist/ui/assets/{mount-sN1zOOQO.js → mount-Boe1RyV1.js} +3 -3
- package/dist/ui/assets/{new-session-Chf2aTIb.js → new-session-DaYVjckX.js} +2 -2
- package/dist/ui/assets/{oauth-bootstrap-DhxqRx6M.js → oauth-bootstrap-3Rp69xJf.js} +2 -2
- package/dist/ui/assets/{onboarding-orchestrator-CSUMNTNq.js → onboarding-orchestrator-BaNbt51M.js} +1 -1
- package/dist/ui/assets/{openai-codex-E3c2zrJK.js → openai-codex-CBECd3Ml.js} +1 -1
- package/dist/ui/assets/{openai-codex-LJJS3BN5.js → openai-codex-DRECU62x.js} +1 -1
- package/dist/ui/assets/{openrouter-HCWd3_Dv.js → openrouter-B6NE-wjS.js} +1 -1
- package/dist/ui/assets/{openrouter-B47ePBty.js → openrouter-BzFndudE.js} +1 -1
- package/dist/ui/assets/{openrouter-free-CndCA5W5.js → openrouter-free-BmWaYf2I.js} +1 -1
- package/dist/ui/assets/{openrouter-free-DEOSmXMR.js → openrouter-free-DypV34af.js} +1 -1
- package/dist/ui/assets/{openrouter-oauth-uaZxqhE3.js → openrouter-oauth-CeOxyshu.js} +1 -1
- package/dist/ui/assets/{openrouter-oauth-BN42fHf7.js → openrouter-oauth-H5pX0S04.js} +1 -1
- package/dist/ui/assets/{opfs-mount-DmHtfJvm.js → opfs-mount-7AGHXIll.js} +1 -1
- package/dist/ui/assets/{panel-rpc-handlers-DxnZUmep.js → panel-rpc-handlers-BC6MoTQL.js} +2 -2
- package/dist/ui/assets/{panelize-shell-S-7afGEn.js → panelize-shell-Bg6ZMkim.js} +1 -1
- package/dist/ui/assets/{pi-edit-execution-Y4T_bzrT.js → pi-edit-execution-C-LpdIZ8.js} +1 -1
- package/dist/ui/assets/{provider-Cz1V2WqO.js → provider-C0S6DmOh.js} +1 -1
- package/dist/ui/assets/{provider-DTffpEWN.js → provider-C2XK7sYM.js} +2 -2
- package/dist/ui/assets/{provider-settings-CxqviYt8.js → provider-settings-Dbll0xUg.js} +1 -1
- package/dist/ui/assets/provider-store-access-BrbtSBpX.js +1 -0
- package/dist/ui/assets/provider-store-access-vekyMcol.js +1 -0
- package/dist/ui/assets/{providers-jnPvVe9y.js → providers-LZyqU4Ib.js} +1 -1
- package/dist/ui/assets/{providers-DRo5rfSc.js → providers-rIBVxdW-.js} +2 -2
- package/dist/ui/assets/{py-live-vfs-Dm8bBjqR.js → py-live-vfs-BMEF0ECU.js} +1 -1
- package/dist/ui/assets/{py-live-vfs-DMc0LhCg.js → py-live-vfs-CvcPOToj.js} +1 -1
- package/dist/ui/assets/{py-realm-worker-BaO89JAR.js → py-realm-worker-CFlFWZqx.js} +1 -1
- package/dist/ui/assets/{pyodide-DY17DXNV.js → pyodide-BJoTGv9f.js} +2 -2
- package/dist/ui/assets/{quick-llm-DYIT2ufv.js → quick-llm-DDWR41Vn.js} +1 -1
- package/dist/ui/assets/{realm-inprocess-JkVFNdN8.js → realm-inprocess-Cwqt5DZc.js} +4 -4
- package/dist/ui/assets/realm-sync-transport-QD3YPwXN.js +1 -0
- package/dist/ui/assets/{recovery-screen-C_VP_tQT.js → recovery-screen-ci0gn_2f.js} +1 -1
- package/dist/ui/assets/{remote-terminal-view-Dhc7yeLL.js → remote-terminal-view-CPIeJDc7.js} +1 -1
- package/dist/ui/assets/{require-guards-DPf5QETL.js → require-guards-CHKfdRAj.js} +1 -1
- package/dist/ui/assets/{restore-Bc04Ic3P.js → restore-DvPL6e_R.js} +1 -1
- package/dist/ui/assets/{run-C1e4W7pJ.js → run-B-b1oASQ.js} +1 -1
- package/dist/ui/assets/{run-D-ECpM63.js → run-BXtEkg8U.js} +2 -2
- package/dist/ui/assets/{run-DjWLQRmi.js → run-ChZe2ZA3.js} +1 -1
- package/dist/ui/assets/{run-L6Ylv9dF.js → run-CvD6Q-4G.js} +1 -1
- package/dist/ui/assets/{run-D65zpTOz.js → run-D8WG-d7m.js} +2 -2
- package/dist/ui/assets/{run-D4l6XlAu.js → run-DCB_d0xn.js} +2 -2
- package/dist/ui/assets/{run-Bd-jYaDM.js → run-DwEWu4jG.js} +2 -2
- package/dist/ui/assets/{run-BRPVL491.js → run-LhNhUI2h.js} +1 -1
- package/dist/ui/assets/{run-CG3zbaSU.js → run-LzvzEQ4r.js} +1 -1
- package/dist/ui/assets/{session-command-memory-Ci1Zf9vr.js → session-command-memory-o34mvSgm.js} +2 -2
- package/dist/ui/assets/{session-jsonl-COpl-CLY.js → session-jsonl-BVDdqbYt.js} +1 -1
- package/dist/ui/assets/{session-jsonl-BA0osLaK.js → session-jsonl-BmvWBXUE.js} +1 -1
- package/dist/ui/assets/{session-search-index-CdHuMIG2.js → session-search-index-BYp76BAQ.js} +1 -1
- package/dist/ui/assets/{setup-feature-flags-remote-DtQ886Eg.js → setup-feature-flags-remote-wwQtgwUA.js} +1 -1
- package/dist/ui/assets/{setup-model-catalog-CZ582M7C.js → setup-model-catalog-Dp_LwFlS.js} +1 -1
- package/dist/ui/assets/{signed-fetch-BR0AMgn_.js → signed-fetch-D_xzSHY9.js} +1 -1
- package/dist/ui/assets/{silent-renew-backoff-CYQP7u_w.js → silent-renew-backoff-bHmQ4VIv.js} +1 -1
- package/dist/ui/assets/slicc-editor-Bwxbi0cp.js +1 -0
- package/dist/ui/assets/slicc-editor-DZXa2pZw.js +23 -0
- package/dist/ui/assets/slicc-version-Zk7JuEi9.js +1 -0
- package/dist/ui/assets/{snapshot-DkZ54_ve.js → snapshot-BMRjMbaC.js} +1 -1
- package/dist/ui/assets/{snapshot-features-tcAtohfL.js → snapshot-features-9wIqroXe.js} +1 -1
- package/dist/ui/assets/{soundscape-DxCVDpTl.js → soundscape-CFr9AkiH.js} +1 -1
- package/dist/ui/assets/{speak-BqdHQaW1.js → speak-DHMYZvDt.js} +1 -1
- package/dist/ui/assets/{sprinkle-manager-BuTuVoeH.js → sprinkle-manager-XUIO_g_c.js} +1 -1
- package/dist/ui/assets/{sprinkle-renderer-PPC5klpl.js → sprinkle-renderer-D7mLTT1E.js} +3 -3
- package/dist/ui/assets/src-C6UBnSGT.js +575 -0
- package/dist/ui/assets/{ssh-9Y3S-Bha.js → ssh-Ca0IyfQK.js} +1 -1
- package/dist/ui/assets/{state-4HAkKcwp.js → state-CzWGT6_Z.js} +1 -1
- package/dist/ui/assets/{store-DoauiqkB.js → store-CT2H_Utj.js} +1 -1
- package/dist/ui/assets/{store-BQov__WY.js → store-jUC9SIV1.js} +1 -1
- package/dist/ui/assets/{sudo-ChMUrnDt.js → sudo-D85dIcKO.js} +1 -1
- package/dist/ui/assets/{supervisor-B8SqOt_K.js → supervisor-BoHW4rOe.js} +1 -1
- package/dist/ui/assets/{sync-dialog-DpyNUkDH.js → sync-dialog-DR-cxxqt.js} +1 -1
- package/dist/ui/assets/{sync-exec-dispatch-CEbwf9Az.js → sync-exec-dispatch-D80ElZ8u.js} +1 -1
- package/dist/ui/assets/{transformers-env-BENPPudh.js → transformers-env-U4g1z6G9.js} +1 -1
- package/dist/ui/assets/{tray-leader-BA4ZTTff.js → tray-leader-Du_rjKF6.js} +1 -1
- package/dist/ui/assets/{tray-leave-runtime-CBTb4mlH.js → tray-leave-runtime-S0Z5urne.js} +1 -1
- package/dist/ui/assets/{tray-sidecar-CnZgpbOI.js → tray-sidecar-B2M1EFqY.js} +1 -1
- package/dist/ui/assets/{upgrade-detection-Dq2MUoOD.js → upgrade-detection-ygU03Y3v.js} +1 -1
- package/dist/ui/assets/{upskill-lick-skip-DUIw4OcH.js → upskill-lick-skip-D5zmqLJP.js} +1 -1
- package/dist/ui/assets/{voice-reply-CEwRhiYz.js → voice-reply-BUM3xqcQ.js} +1 -1
- package/dist/ui/assets/{wc-attach-2TSX-inX.js → wc-attach-pLEPz5YT.js} +2 -2
- package/dist/ui/assets/{wc-browser-DJxUV8of.js → wc-browser-CkckI0pE.js} +1 -1
- package/dist/ui/assets/{wc-computers-BHu_7f-5.js → wc-computers-CES9Pphl.js} +1 -1
- package/dist/ui/assets/{wc-detached-BFnPmR0d.js → wc-detached-BSVjRXLI.js} +1 -1
- package/dist/ui/assets/{wc-extension-BYUYa6KS.js → wc-extension-n5iYaURR.js} +2 -2
- package/dist/ui/assets/wc-follower-CaoqYR86.js +17 -0
- package/dist/ui/assets/{wc-follower-oauth-DHAss7Bl.js → wc-follower-oauth-IaFFbCQS.js} +1 -1
- package/dist/ui/assets/{wc-gelatiere-Cr6JuzRn.js → wc-gelatiere-DKzp4XnZ.js} +1 -1
- package/dist/ui/assets/{wc-live-qHNanIrf.js → wc-live--Vy3x-eA.js} +5 -5
- package/dist/ui/assets/{wc-nav-X6D6V6gK.js → wc-nav-pzcR6z49.js} +2 -2
- package/dist/ui/assets/{wc-onboarding-Bt5oCUsn.js → wc-onboarding-CTepvpbC.js} +2 -2
- package/dist/ui/assets/{wc-permissions-BisFwUlJ.js → wc-permissions-C3L7ziQi.js} +2 -2
- package/dist/ui/assets/{wc-placeholder-mnzIda5e.js → wc-placeholder-aUPxA3ac.js} +3 -3
- package/dist/ui/assets/{wc-secret-request-EQCdKc1f.js → wc-secret-request-Ca5k4-UQ.js} +1 -1
- package/dist/ui/assets/{wc-settings-DnUvuaLB.js → wc-settings-BRvIAeOQ.js} +3 -3
- package/dist/ui/assets/{wc-shell-BtEykt-v.js → wc-shell-DOWfUNbp.js} +193 -193
- package/dist/ui/assets/{wc-shortcut-config-BQmt9XFF.js → wc-shortcut-config-CrTfgcob.js} +1 -1
- package/dist/ui/assets/wc-sprinkles-Ck7Nd-9D.js +2 -0
- package/dist/ui/assets/{wc-transcript-export-Cv0T-WSY.js → wc-transcript-export-CLUiuu3B.js} +2 -2
- package/dist/ui/assets/{wc-tray-DXzaLMSR.js → wc-tray-CQ7pP6rg.js} +4 -4
- package/dist/ui/assets/{wc-unit-context-CS4hSDi7.js → wc-unit-context-DbQt1MsQ.js} +1 -1
- package/dist/ui/assets/welcome-detection-kgddSjS0.js +1 -0
- package/dist/ui/assets/{whisper-session-C7baPCyL.js → whisper-session-CIgrXgZA.js} +2 -2
- package/dist/ui/assets/{xai-grok-11wZ6TYi.js → xai-grok-83B2QPil.js} +1 -1
- package/dist/ui/assets/{xai-grok-pbhR-Op4.js → xai-grok-MDczX8T9.js} +1 -1
- package/dist/ui/index.html +3 -3
- package/dist/ui/llm-proxy-sw.js +1 -1
- package/dist/ui/lucide-icons.js +249 -239
- package/dist/ui/packages/webapp/index.html +3 -3
- package/dist/ui/slicc-editor.js +1 -1
- package/package.json +2 -1
- package/dist/ui/assets/__vite-browser-external-CJkRLpJ-.js +0 -1
- package/dist/ui/assets/icons-jrIi5FYk.js +0 -1
- package/dist/ui/assets/provider-store-access-DVcoprAg.js +0 -1
- package/dist/ui/assets/provider-store-access-Des62vG8.js +0 -1
- package/dist/ui/assets/realm-sync-transport-Bii99lU6.js +0 -1
- package/dist/ui/assets/slicc-editor-BwV9b9S6.js +0 -23
- package/dist/ui/assets/slicc-editor-abxGgeUl.js +0 -1
- package/dist/ui/assets/slicc-version-idHB6nsN.js +0 -1
- package/dist/ui/assets/src-BfoZU01X.js +0 -575
- package/dist/ui/assets/wc-follower-BwhkRRX4.js +0 -17
- package/dist/ui/assets/wc-sprinkles-CjPNiNB5.js +0 -2
- package/dist/ui/assets/welcome-detection-miHs8L-e.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"./types-D8gIX-W-.js";import"./fs-
|
|
1
|
+
import{t as e}from"./types-D8gIX-W-.js";import"./fs-CGiTiKri.js";import{n as t,t as n}from"./browser-DuyhpHbR.js";import{A as r,D as i,E as a,M as o,O as s,T as c,j as l,k as u,w as d}from"./shared-DfMXB1pm.js";function f(e,...t){return`/${[e,...t].join(`/`).split(`/`).filter(e=>e.length>0).join(`/`)}`}function p(e){let t=JSON.stringify(e);return[`// ${s}`,`const { start } = require('sliccy:exec');`,`const __bin = ${t};`,`const __argv = ['ipx', '--global', __bin, ...process.argv.slice(2)];`,`const __stdin = typeof stdin !== 'undefined' ? stdin : undefined;`,`const __h = start(__argv, __stdin !== undefined ? { stdin: __stdin } : undefined);`,`__h.stdin.end();`,`const __r = await __h.done;`,`if (__r.stdout) process.stdout.write(__r.stdout);`,`if (__r.stderr) process.stderr.write(__r.stderr);`,`process.exit(__r.exitCode);`,``].join(`
|
|
2
2
|
`)}var m=class extends Error{binName;path;constructor(e,t){super(`ipk: refusing to overwrite user script at ${t} (bin '${e}')`),this.binName=e,this.path=t,this.name=`GlobalBinCollisionError`}};async function h(e,t){if(t.size!==0){await e.exists(`/shared/bin`)||await e.mkdir(u,{recursive:!0});for(let n of t){if(!n||n.includes(`/`))continue;let t=f(u,`${n}.jsh`);if(await e.exists(t)&&!await g(e,t))throw new m(n,t)}}}async function g(e,t){try{let n=await e.readFile(t);return(typeof n==`string`?n:new TextDecoder().decode(n)).includes(s)}catch{return!1}}async function _(e,t){if(!await e.exists(`/shared/bin`)){if(t.size===0)return;await e.mkdir(u,{recursive:!0})}let n=[];try{n=await e.readDir(u)}catch{n=[]}for(let r of n){if(r.type!==`file`||!r.name.endsWith(`.jsh`))continue;let n=r.name.slice(0,-4);if(t.has(n))continue;let i=f(u,r.name);await g(e,i)&&await e.rm(i)}for(let n of t){if(!n||n.includes(`/`))continue;let t=f(u,`${n}.jsh`);if(await e.exists(t)&&!await g(e,t))throw new m(n,t);await e.writeFile(t,p(n))}}const v={0:`file`,1:`hardLink`,2:`symbolicLink`,3:`characterDevice`,4:`blockDevice`,5:`directory`,6:`fifo`,7:`contiguousFile`,g:`globalExtendedHeader`,x:`extendedHeader`,D:`gnuDirectory`,I:`gnuInodeMetadata`,K:`gnuLongLinkName`,L:`gnuLongFileName`,N:`gnuOldLongFileName`,M:`gnuMultiVolume`,S:`gnuSparseFile`,E:`gnuExtendedSparse`,A:`solarisAcl`,V:`solarisVolumeLabel`,X:`solarisOldExtendedHeader`};function y(e,t){let n=e.buffer||e,r=[],i=0,a,o;for(;i<n.byteLength-512;){let e=x(n,i,100);if(e.length===0)break;if(a){let t=a.path||a.linkpath;t&&(e=t)}let s=x(n,i+100,8).trim(),c=Number.parseInt(x(n,i+108,8)),l=Number.parseInt(x(n,i+116,8)),u=ee(n,i+124,12),d=512+512*Math.trunc(u/512)+(u%512?512:0),f=ee(n,i+136,12),p=x(n,i+156,1)||`0`,m=v[p]||p;switch(m){case`extendedHeader`:case`globalExtendedHeader`:{let e=te(new Uint8Array(n,i+512,u));m===`extendedHeader`?a=e:(a=void 0,o={...o,...e}),i+=d;continue}case`gnuLongFileName`:case`gnuOldLongFileName`:case`gnuLongLinkName`:a={path:x(n,i+512,u)},i+=d;continue}let h=x(n,i+265,32),g=x(n,i+297,32);e=b(e);let _={name:e,type:m,size:u,attrs:{...o,...a,mode:s,uid:c,gid:l,mtime:f,user:h,group:g}};if(a=void 0,t?.filter&&!t.filter(_)){i+=d;continue}if(t?.metaOnly){r.push(_),i+=d;continue}let y=u===0?void 0:new Uint8Array(n,i+512,u);r.push({..._,data:y,get text(){return new TextDecoder().decode(this.data)}}),i+=d}return r}function b(e){let t=e.replace(/\\/g,`/`);t=t.replace(/^[a-zA-Z]:\//,``),t=t.replace(/^\/+/,``);let n=t.startsWith(`./`),r=t.split(`/`),i=[];for(let e of r)e===`..`?i.pop():e!==`.`&&e!==``&&i.push(e);let a=i.join(`/`);return n&&!a.startsWith(`./`)&&(a=`./`+a),e.endsWith(`/`)&&!a.endsWith(`/`)&&(a+=`/`),a}function x(e,t,n){let r=new Uint8Array(e,t,n),i=r.indexOf(0);return new TextDecoder().decode(i===-1?r:r.slice(0,i))}function ee(e,t,n){let r=new Uint8Array(e,t,n),i=``;for(let e=0;e<n;e++)i+=String.fromCodePoint(r[e]);return Number.parseInt(i,8)}function te(e){let t=new TextDecoder().decode(e),n={};for(let e of t.split(`
|
|
3
3
|
`)){let t=e.split(` `)[1]?.split(`=`);t&&(n[t[0]]=t[1])}return n}function ne(e,t={}){let n=e.map(e=>{let t=re(e.data);return{...e,data:t,size:t?.length||0}}),r=0;for(let t=0;t<e.length;t++){let e=n[t].data?.length??0;r+=512+512*Math.trunc(e/512),e%512&&(r+=512)}let i=10240*Math.trunc(r/10240);r%10240&&(i+=10240);let a=new ArrayBuffer(i),o=0;for(let e of n){let n=!e.data;S(a,e.name,o,100),S(a,C(e.attrs?.mode??t.attrs?.mode??(n?`775`:`664`),7),o+100,8),S(a,C((e.attrs?.uid??t.attrs?.uid??1e3).toString(8),7),o+108,8),S(a,C((e.attrs?.gid??t.attrs?.gid??1e3).toString(8),7),o+116,8),S(a,C(e.size.toString(8),11),o+124,12);let r=e.attrs?.mtime??t.attrs?.mtime??Date.now();S(a,C(Math.trunc(r/1e3).toString(8),11),o+136,12),S(a,n?`5`:`0`,o+156,1),S(a,`ustar`,o+257,6),S(a,`00`,o+263,2),S(a,e.attrs?.user??t.attrs?.user??``,o+265,32),S(a,e.attrs?.group??t.attrs?.group??``,o+297,32),S(a,` `,o+148,8);let i=new Uint8Array(a,o,512),s=0;for(let e=0;e<512;e++)s+=i[e];if(S(a,s.toString(8),o+148,8),!n){let t=new Uint8Array(a,o+512,e.size);for(let n=0;n<e.size;n++)t[n]=e.data[n];o+=512*Math.trunc(e.size/512),e.size%512&&(o+=512)}o+=512}return new Uint8Array(a)}function S(e,t,n,r){let i=new Uint8Array(e,n,r),a=new TextEncoder().encodeInto(t,i).written;for(let e=a;e<r;e++)i[e]=0}function C(e,t){return String(e).padStart(t,`0`)}function re(e){if(e!=null)return typeof e==`string`?new TextEncoder().encode(e):e instanceof ArrayBuffer?new Uint8Array(e):e}function ie(e){return e.byteOffset===0&&e.byteLength===e.buffer.byteLength?e:new Uint8Array(e)}function w(e){if(!(e instanceof Uint8Array))throw Error(`gunzip: input must be a Uint8Array`);if(e.length<18||e[0]!==31||e[1]!==139)throw Error(`gunzip: input is not a valid gzip stream (bad magic)`);try{return n(e)}catch(e){let t=e instanceof Error?e.message:String(e);throw Error(`gunzip: failed to decompress (${t})`)}}function ae(e){if(!(e instanceof Uint8Array))throw Error(`gzip: input must be a Uint8Array`);try{return t(e)}catch(e){let t=e instanceof Error?e.message:String(e);throw Error(`gzip: failed to compress (${t})`)}}function oe(e){if(!Array.isArray(e))throw Error(`writeTar: entries must be an array`);try{return ne(e.map(e=>({name:e.path,...e.directory?{}:{data:e.bytes},attrs:{mode:(e.mode??(e.directory?493:420)).toString(8)}})))}catch(e){let t=e instanceof Error?e.message:String(e);throw Error(`writeTar: failed to create tar archive (${t})`)}}function se(e){return e.startsWith(`package/`)?e.slice(8):e}function T(e,t,n){let r=new Uint8Array(e,t,n),i=r.indexOf(0);return new TextDecoder().decode(i===-1?r:r.subarray(0,i))}function ce(e,t,n){let r=new Uint8Array(e,t,n),i=``;for(let e=0;e<n;e++)i+=String.fromCodePoint(r[e]);return Number.parseInt(i,8)}function le(e,t,n){let r=new TextDecoder().decode(new Uint8Array(e,t,n)),i,a;for(let e of r.split(`
|
|
4
4
|
`)){let t=e.split(` `)[1]?.split(`=`);t&&(t[0]===`path`?i=t[1]:t[0]===`linkpath`&&(a=t[1]))}return i||a}function ue(e){let t=e.replace(/\\/g,`/`);t=t.replace(/^[a-zA-Z]:\//,``),t=t.replace(/^\/+/,``);let n=t.startsWith(`./`),r=t.split(`/`),i=[];for(let e of r)e===`..`?i.pop():e!==`.`&&e!==``&&i.push(e);let a=i.join(`/`);return n&&!a.startsWith(`./`)&&(a=`./`+a),e.endsWith(`/`)&&!a.endsWith(`/`)&&(a+=`/`),a}function de(e,t){let n=e.buffer,r=[],i=0,a;for(;i<n.byteLength-512;){let e=T(n,i,100);if(e.length===0)break;let o=ce(n,i+124,12),s=512+512*Math.trunc(o/512)+(o%512?512:0),c=T(n,i+156,1)||`0`;if(c===`x`||c===`g`){a=c===`x`?le(n,i+512,o):void 0,i+=s;continue}if(c===`L`||c===`N`||c===`K`){a=T(n,i+512,o),i+=s;continue}let l;if(a)l=a;else{let t=T(n,i+345,155);l=t.length>0?`${t}/${e}`:e}r.push(t?l:ue(l)),a=void 0,i+=s}return r}function E(e,t={}){if(!(e instanceof Uint8Array))throw Error(`readTar: input must be a Uint8Array`);let n=ie(e),r;try{r=y(n)}catch(e){let t=e instanceof Error?e.message:String(e);throw Error(`readTar: failed to parse tar archive (${t})`)}let i=t.stripNpmPrefix??!0,a=t.includeDirectories??!1,o=de(n,t.preserveRawPaths??!1),s=o.length===r.length;if(t.preserveRawPaths&&!s)throw Error(`readTar: raw path resolution did not align with archive entries`);let c=[];return r.forEach((e,t)=>{let n=e.type===`directory`;if(!n&&e.type!==`file`&&e.type!==`contiguousFile`||n&&!a)return;let r=s?o[t]:e.name,l=Number.parseInt(e.attrs?.mode??``,8);c.push({path:i?se(r):r,bytes:e.data?e.data.slice():new Uint8Array,...n?{directory:!0}:{},...Number.isFinite(l)?{mode:l&511}:{}})}),c}function D(e){let t=(e??``).trim();if(!t)throw Error(`ipk: package spec is required`);if(t.startsWith(`@`)){let e=t.indexOf(`/`);if(e===-1)throw Error(`ipk: scoped spec '${t}' is missing a name (expected @scope/name)`);let n=t.slice(e+1),r=n.indexOf(`@`),i=t.slice(0,e);return r===-1?{name:`${i}/${n}`,range:``}:{name:`${i}/${n.slice(0,r)}`,range:n.slice(r+1)}}let n=t.indexOf(`@`);return n===-1?{name:t,range:``}:{name:t.slice(0,n),range:t.slice(n+1)}}function O(e,...t){return`/${[e,...t].join(`/`).split(`/`).filter(e=>e.length>0).join(`/`)}`}function k(e,t){if(t.startsWith(`@`)){let[n,r]=t.split(`/`,2);return O(e,n,r)}return O(e,t)}async function A(e,t){await e.mkdir(t,{recursive:!0})}async function j(e,t){await e.exists(t)&&await e.rm(t,{recursive:!0})}function fe(e){return`^${e}`}function M(e,t){let n=e.range.trim();return n===``||n===`*`||n===`latest`||/^[A-Za-z][A-Za-z0-9_-]*$/.test(n)?fe(t):n}async function pe(e,t,n){for(let r of n){if(!r.path)continue;let n=r.path.replace(/\\/g,`/`).replace(/^\/+/,``);if(n.split(`/`).some(e=>e===`..`))throw Error(`installer: refusing to extract entry escaping package root: ${r.path}`);let i=O(t,n),a=i.lastIndexOf(`/`);a>0&&await A(e,i.slice(0,a)),await e.writeFile(i,r.bytes)}}async function N(t,n,r){let i;try{i=await t.readFile(n)}catch(t){if(t instanceof e&&t.code===`ENOENT`)return r;throw t}return JSON.parse(i)}async function P(t,n,r){let i;try{i=await t.readFile(n)}catch(t){if(t instanceof e&&t.code===`ENOENT`)return r;throw t}if(!i?.trim())return r;try{return JSON.parse(i)}catch{return r}}const F=[`dependencies`,`devDependencies`,`optionalDependencies`,`peerDependencies`];function I(e,t){return e!==void 0&&Object.hasOwn(e,t)}function L(e,t,n){return n||I(e.devDependencies,t)?`devDependencies`:I(e.optionalDependencies,t)?`optionalDependencies`:I(e.peerDependencies,t)?`peerDependencies`:`dependencies`}function me(e,t){let n=e[L(e,t,!1)]?.[t];return typeof n==`string`&&n.trim()!==``?n:void 0}function he(e,t){if(e.range.trim()!==``)return e;let n=me(t,e.name);return n===void 0?e:{name:e.name,range:n}}function ge(e,t){let n={dependencies:{...e.dependencies??{}},devDependencies:{...e.devDependencies??{}},optionalDependencies:{...e.optionalDependencies??{}},peerDependencies:{...e.peerDependencies??{}}},r=new Set;for(let e of t){for(let t of F)delete n[t][e.name];n[e.section][e.name]=e.range,r.add(e.section)}let i={...e};for(let t of F)(e[t]!==void 0||r.has(t))&&(i[t]=n[t]);return i}function R(e,t){let n=new Map;return{supplier:async r=>{let i=n.get(r);return i||(i=await c(r,e,{timeoutMs:t}),n.set(r,i),i)},cache:n}}async function _e(e,t,n){let r=[],a=[],o=new Set;for(let s of e){let e;try{e=D(s)}catch(e){a.push({spec:s,error:z(e)});continue}if(n&&(e=he(e,n)),o.has(e.name)){let t=r.findIndex(t=>t.parsed.name===e.name);t>=0&&r.splice(t,1)}try{let n=await t(e.name);i(n,e.range)}catch(e){a.push({spec:s,error:z(e)});continue}r.push({spec:s,parsed:e}),o.add(e.name)}return{directs:r,errors:a}}function z(e){return e instanceof Error?e:Error(String(e))}async function B(e,t,n,r,i){let o=k(t,n.name),s=O(o,`package.json`),c=!1;if(await e.exists(s)&&(await P(e,s,null))?.version===n.version&&(c=!0),!c){let t=E(w(await a(n.resolved,r,{timeoutMs:i})));await j(e,o),await A(e,o);try{await pe(e,o,t)}catch(t){throw await j(e,o),t}}let l=Object.keys(n.dependencies);if(l.length>0){let t=O(o,`node_modules`);await A(e,t);for(let a of l)await B(e,t,n.dependencies[a],r,i)}}async function V(e,t,n,r,i){let a=Object.keys(n.root);if(a.length!==0){await A(e,t);for(let o of a)await B(e,t,n.root[o],r,i)}}function ve(e){if(e.startsWith(`@`)){let t=e.indexOf(`/`);if(t!==-1)return e.slice(t+1)}return e}function H(e,t){return typeof e==`string`?{[ve(t)]:e}:e}function ye(e){return e.replace(/^\.\//,``).replace(/^\/+/,``)}function be(e){return`#!/usr/bin/env node\nrequire(${JSON.stringify(e)});\n`}async function U(e,t){let n=[];return await W(e,t,0,n),n}async function W(e,t,n,r){if(!await e.exists(t))return;let i;try{i=await e.readDir(t)}catch{return}for(let a of i){if(a.type!==`directory`||a.name===`.bin`)continue;if(a.name.startsWith(`@`)){let i=O(t,a.name),o;try{o=await e.readDir(i)}catch{continue}for(let t of o){if(t.type!==`directory`)continue;let o=`${a.name}/${t.name}`;await G(e,O(i,t.name),o,n,r)}continue}let i=a.name;await G(e,O(t,a.name),i,n,r)}}async function G(e,t,n,r,i){let a=await P(e,O(t,`package.json`),null);if(a?.bin!==void 0&&a.bin!==null){let e=H(a.bin,n);for(let[a,o]of Object.entries(e))typeof a==`string`&&a.length!==0&&typeof o==`string`&&o.length!==0&&i.push({binName:a,pkgName:n,installDir:t,binPath:o,depth:r})}await W(e,O(t,`node_modules`),r+1,i)}function K(e){let t=new Map;for(let n of e){let e=t.get(n.binName);if(!e){t.set(n.binName,n);continue}(n.depth<e.depth||n.depth===e.depth&&n.pkgName<e.pkgName)&&t.set(n.binName,n)}return t}function q(e,t,n,r){let i=k(e,t.name);if(t.bin!==void 0&&t.bin!==null){let e=H(t.bin,t.name);for(let[a,o]of Object.entries(e))typeof a==`string`&&a.length!==0&&typeof o==`string`&&o.length!==0&&r.push({binName:a,pkgName:t.name,installDir:i,binPath:o,depth:n})}let a=O(i,`node_modules`);for(let e of Object.values(t.dependencies))q(a,e,n+1,r)}function xe(e,t){let n=[];for(let r of Object.values(e.root))q(t,r,0,n);return n}function J(e,t){return new Set(K(xe(e,t)).keys())}function Se(e,t,n){return`..${t.slice(e.length)}/${ye(n)}`}async function Y(e,t){let n=K(await U(e,t)),r=O(t,`.bin`);if(await e.exists(r)){let t;try{t=await e.readDir(r)}catch{t=[]}for(let i of t)i.type===`file`&&(n.has(i.name)||await e.rm(O(r,i.name)))}if(n.size!==0){await A(e,r);for(let i of n.values()){let n=O(r,i.binName),a=be(Se(t,i.installDir,i.binPath));await e.writeFile(n,a)}}}async function Ce(e,t,n){let r=O(t,`package.json`),i=ge(await N(e,r,{}),n);return await e.writeFile(r,`${JSON.stringify(i,null,2)}\n`),r}async function we(e,t){let{fs:n,fetch:i,cwd:a,timeoutMs:o,global:s=!1,saveDev:c=!1}=t;if(e.length===0)return{results:[],errors:[]};let u=s?l:a,f=await N(n,O(u,`package.json`),{}),{supplier:p}=R(i,o),{directs:m,errors:g}=await _e(e,p,f);if(m.length===0)return{results:[],errors:g};let v={};if(s)for(let e of Q(f))v[e.name]=e.range;for(let e of m)v[e.parsed.name]=e.parsed.range;let y=await d({rootDependencies:v,fetchPackument:p}),b=s?r:O(a,`node_modules`);if(s&&(await $(n,b,new Set(Object.keys(y.root))),await h(n,J(y,b))),await V(n,b,y,i,o),await Y(n,b),s){let e=K(await U(n,b));await _(n,new Set(e.keys()))}let x=await Ce(n,u,m.map(e=>{let t=y.root[e.parsed.name];if(!t)throw Error(`installer: resolved node missing for ${e.parsed.name}`);return{name:e.parsed.name,range:M(e.parsed,t.version),section:L(f,e.parsed.name,c)}}));return{results:m.map(e=>{let t=y.root[e.parsed.name],n=k(b,e.parsed.name);return{ok:!0,name:e.parsed.name,version:t.version,installPath:n,range:M(e.parsed,t.version),manifestPath:x}}),errors:g}}var X=class extends Error{constructor(e){super(`no package.json found at ${e} (run 'ipk install <pkg>' to create one, or add a package.json)`),this.name=`ManifestNotFoundError`}};function Z(e,t){if(!(!t||typeof t!=`object`))for(let[n,r]of Object.entries(t))typeof n==`string`&&typeof r==`string`&&e.set(n,r)}function Te(e){let t=new Map;return Z(t,e.devDependencies),Z(t,e.dependencies),Array.from(t.entries()).map(([e,t])=>({name:e,range:t}))}function Q(e){let t=new Map;return Z(t,e.dependencies),Z(t,e.peerDependencies),Z(t,e.optionalDependencies),Z(t,e.devDependencies),Array.from(t.entries()).map(([e,t])=>({name:e,range:t}))}async function Ee(e){let{fs:t,fetch:n,cwd:r,timeoutMs:a}=e,o=O(r,`package.json`);if(!await t.exists(o))throw new X(o);let s=Te(await N(t,o,{}));if(s.length===0)return{results:[],errors:[],empty:!0};let{supplier:c}=R(n,a),l=[],u=[];for(let e of s)try{let t=await c(e.name);i(t,e.range),l.push(e)}catch(t){u.push({spec:`${e.name}@${e.range}`,error:z(t)})}if(l.length===0)return{results:[],errors:u,empty:!1};let f={};for(let e of l)f[e.name]=e.range;let p=await d({rootDependencies:f,fetchPackument:c}),m=O(r,`node_modules`);return await V(t,m,p,n,a),await Y(t,m),{results:l.map(e=>{let t=p.root[e.name];return t?{ok:!0,name:e.name,version:t.version,installPath:k(m,e.name),range:e.range,manifestPath:o}:null}).filter(e=>e!==null),errors:u,empty:!1}}function De(e,t){return F.some(n=>I(e[n],t))}function Oe(e,t){let n={...e};for(let r of F){let i={...e[r]??{}};for(let e of t)delete i[e];e[r]!==void 0&&(n[r]=i)}return n}async function ke(e,t,n){await e.writeFile(t,`${JSON.stringify(n,null,2)}\n`)}async function $(e,t,n){if(!await e.exists(t))return;let r;try{r=await e.readDir(t)}catch{return}for(let i of r)if(i.name!==`.bin`&&i.type===`directory`){if(i.name.startsWith(`@`)){let r=O(t,i.name),a;try{a=await e.readDir(r)}catch{continue}for(let t of a){if(t.type!==`directory`)continue;let a=`${i.name}/${t.name}`;n.has(a)||await j(e,O(r,t.name))}continue}n.has(i.name)||await j(e,O(t,i.name))}}async function Ae(e,t,n,i){let a=Q(i??await N(e,o,{}));if(a.length===0){await j(e,r),await _(e,new Set);return}let{supplier:s}=R(t,n),c={};for(let e of a)c[e.name]=e.range;let l=await d({rootDependencies:c,fetchPackument:s});await $(e,r,new Set(Object.keys(l.root))),await h(e,J(l,r)),await V(e,r,l,t,n),await Y(e,r);let u=K(await U(e,r));await _(e,new Set(u.keys()))}async function je(e,t){let{fs:n,fetch:r,cwd:i,timeoutMs:a,global:o=!1}=t;if(e.length===0)return{results:[],errors:[]};let s=new Set,c=[];for(let t of e)try{s.add(D(t).name)}catch(e){c.push({spec:t,error:z(e)})}if(s.size===0)return{results:[],errors:c};let u=O(o?l:i,`package.json`);if(!await n.exists(u)){for(let t of e)c.push({spec:t,error:new X(u)});return{results:[],errors:c}}let d=await N(n,u,{}),f=[];for(let e of s)f.push({name:e,removed:De(d,e)});let p=Oe(d,s);try{o?await Ae(n,r,a,p):await Me(n,r,i,a,p)}catch(t){return c.push({spec:e.join(` `),error:z(t)}),{results:f,errors:c}}return await ke(n,u,p),{results:f,errors:c}}async function Me(e,t,n,r,i){let a=O(n,`package.json`),o=Q(i??await N(e,a,{})),s=O(n,`node_modules`);if(o.length===0){await j(e,s);return}let{supplier:c}=R(t,r),l={};for(let e of o)l[e.name]=e.range;let u=await d({rootDependencies:l,fetchPackument:c});await $(e,s,new Set(Object.keys(u.root))),await V(e,s,u,t,r),await Y(e,s)}async function Ne(e){let t=Q(await N(e,o,{})),n=[];for(let i of t){let t=await P(e,O(k(r,i.name),`package.json`),{});n.push({name:i.name,version:typeof t.version==`string`?t.version:`?`,range:i.range})}return n.sort((e,t)=>e.name.localeCompare(t.name)),n}async function Pe(e,t){let n=O(t,`package.json`);if(!await e.exists(n))return[];let r=Q(await N(e,n,{})),i=O(t,`node_modules`),a=[];for(let t of r){let n=await P(e,O(k(i,t.name),`package.json`),{});a.push({name:t.name,version:typeof n.version==`string`?n.version:`?`,range:t.range})}return a.sort((e,t)=>e.name.localeCompare(t.name)),a}export{Pe as a,ae as c,Ne as i,E as l,Ee as n,je as o,we as r,w as s,X as t,oe as u};
|