sliccy 6.154.7 → 6.155.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 +178 -178
- package/dist/ui/assets/SKILL-B--riEXN.js +1 -0
- package/dist/ui/assets/{account-store-Bv7LV6_A.js → account-store-BL68LrFT.js} +1 -1
- package/dist/ui/assets/{account-store-CuTDBQ6V.js → account-store-FUhuBOfI.js} +1 -1
- package/dist/ui/assets/{adobe-Bld04yf4.js → adobe-BaHLL9uH.js} +1 -1
- package/dist/ui/assets/{adobe-yrm9KfZU.js → adobe-DNHcSDh3.js} +1 -1
- package/dist/ui/assets/{agent-bridge-BOK0bK1-.js → agent-bridge-Vz3IOG0A.js} +1 -1
- package/dist/ui/assets/{agent-panels-JSKGPWny.js → agent-panels-CPSe8uIz.js} +1 -1
- package/dist/ui/assets/{apply-layout-Dol4QpYX.js → apply-layout-G6vw7FBS.js} +1 -1
- package/dist/ui/assets/{apps-DdAoo50J.js → apps-CLm3AutR.js} +1 -1
- package/dist/ui/assets/{azure-openai-CROWb3eo.js → azure-openai--n3vcQWx.js} +1 -1
- package/dist/ui/assets/{azure-openai-D16OgVVX.js → azure-openai-N9FaZSuP.js} +1 -1
- package/dist/ui/assets/{budget-usage-source-CiFTPdLG.js → budget-usage-source-C6vq4Afr.js} +1 -1
- package/dist/ui/assets/{cdp-ChTjN36Y.js → cdp-C7C40sWI.js} +1 -1
- package/dist/ui/assets/{cerebras-BGd53Y6O.js → cerebras-B4z1b7WX.js} +1 -1
- package/dist/ui/assets/{cerebras-DEjugWgo.js → cerebras-BecGzlaM.js} +1 -1
- package/dist/ui/assets/{composer-speech-BvDGMHRN.js → composer-speech-uDoOk80y.js} +1 -1
- package/dist/ui/assets/{connect-surface-BxeM6wzG.js → connect-surface-CkYbO0v8.js} +1 -1
- package/dist/ui/assets/{directed-approval-DAIXE0nO.js → directed-approval-DdGH8Fat.js} +1 -1
- package/dist/ui/assets/dist-BCg-GYyx.js +2 -0
- package/dist/ui/assets/dist-ByarBBEi.js +2 -0
- package/dist/ui/assets/{dist-BPPG9gF6.js → dist-CtH2hxRt.js} +9 -9
- package/dist/ui/assets/{dist-BnmWpUNI.js → dist-VS1DwNvU.js} +10 -10
- package/dist/ui/assets/{fs-BEbWmRDq.js → fs-BOdMXcsi.js} +2 -2
- package/dist/ui/assets/fs-CL93DUyC.js +1 -0
- package/dist/ui/assets/{github-D6e0X_mv.js → github-CQwdOEdJ.js} +2 -2
- package/dist/ui/assets/{github-Bc1z9Z3b.js → github-FRM6nHar.js} +1 -1
- package/dist/ui/assets/{github-auth-BPlvszS_.js → github-auth-DgdBb7y7.js} +1 -1
- package/dist/ui/assets/{github-copilot-BQU9xIRH.js → github-copilot-CNY2SweM.js} +1 -1
- package/dist/ui/assets/{github-copilot-CtFddSBT.js → github-copilot-D6XJxicV.js} +1 -1
- package/dist/ui/assets/{github-install-BUmd5jOm.js → github-install-PNSinMst.js} +1 -1
- package/dist/ui/assets/{github-zip-BbIUjzA4.js → github-zip-BCXSTlT0.js} +1 -1
- package/dist/ui/assets/{hear-CYy8tVN1.js → hear-DAaE31Ez.js} +1 -1
- package/dist/ui/assets/{help-C1vcRsvu.js → help-HkZtBCNF.js} +1 -1
- package/dist/ui/assets/{js-realm-worker-JtICkZ9q.js → js-realm-worker-Bp1ohy2N.js} +1 -1
- package/dist/ui/assets/{kernel-worker-JOBY7Wxs.js → kernel-worker-dGdJLKhc.js} +156 -155
- package/dist/ui/assets/{local-llm-_OhXJtNu.js → local-llm-BKrrjR68.js} +1 -1
- package/dist/ui/assets/{local-llm-CJWLILc_.js → local-llm-BL_WYiZZ.js} +1 -1
- package/dist/ui/assets/{main-CpKPiVl7.js → main-DW-YS69h.js} +3 -3
- package/dist/ui/assets/{main-cherry-D8WCpwBV.js → main-cherry-B0AQVdvI.js} +1 -1
- package/dist/ui/assets/{memory-curation-seam-BxXS_BMa.js → memory-curation-seam-CD-ZRKzr.js} +1 -1
- package/dist/ui/assets/{mount-B-qjx7RD.js → mount-DlOEB7Cf.js} +1 -1
- package/dist/ui/assets/{mount-CIGA8r4q.js → mount-igEB5Saa.js} +3 -3
- package/dist/ui/assets/{mount-recovery-DNUbi0Ni.js → mount-recovery-WObwrrJB.js} +1 -1
- package/dist/ui/assets/{new-session-Bat4OTXx.js → new-session-BlbJzLQE.js} +2 -2
- package/dist/ui/assets/{oauth-bootstrap-D2j6OHaC.js → oauth-bootstrap-DHGSi_vM.js} +2 -2
- package/dist/ui/assets/{onboarding-orchestrator-Za4dEXZ8.js → onboarding-orchestrator-ILCQMWeH.js} +1 -1
- package/dist/ui/assets/{openai-codex-f1f3Poo1.js → openai-codex-ByOwob9t.js} +1 -1
- package/dist/ui/assets/{openai-codex-CcJ89ggy.js → openai-codex-zHgcCFMl.js} +1 -1
- package/dist/ui/assets/{openrouter-B52C9XuH.js → openrouter-CvwSbwg3.js} +1 -1
- package/dist/ui/assets/{openrouter-free-CiLvReDo.js → openrouter-free-Bw5mRfKy.js} +1 -1
- package/dist/ui/assets/{openrouter-free--eNgGfax.js → openrouter-free-DAXjSSCv.js} +1 -1
- package/dist/ui/assets/{openrouter-oauth-DOQfi9TX.js → openrouter-oauth-CsQP_eqX.js} +1 -1
- package/dist/ui/assets/{openrouter-oauth-Iv8iz92e.js → openrouter-oauth-DKr2TOOt.js} +1 -1
- package/dist/ui/assets/{openrouter-DN9cM8UA.js → openrouter-ooroqv_7.js} +1 -1
- package/dist/ui/assets/{panel-rpc-handlers-DtxsALXP.js → panel-rpc-handlers-g22Ng2gw.js} +2 -2
- package/dist/ui/assets/{panelize-shell-Dk8A0fzt.js → panelize-shell-25ZtCwHW.js} +1 -1
- package/dist/ui/assets/{pi-edit-execution-BVNON_7G.js → pi-edit-execution-jG5wiCuj.js} +1 -1
- package/dist/ui/assets/probe-info-B9GqJE41.js +2 -0
- package/dist/ui/assets/{provider-BEV4Nyb0.js → provider-B0ZPEVNo.js} +2 -2
- package/dist/ui/assets/{provider-jRSVQQyi.js → provider-iX6700HG.js} +1 -1
- package/dist/ui/assets/provider-settings-jhJRRTGA.js +1 -0
- package/dist/ui/assets/provider-store-access-BtES6Ln2.js +1 -0
- package/dist/ui/assets/provider-store-access-z34_fP_u.js +1 -0
- package/dist/ui/assets/{providers-DsDlOFZz.js → providers-DAeL97z_.js} +1 -1
- package/dist/ui/assets/{providers-CkE3X7zj.js → providers-DjUwvFlY.js} +2 -2
- package/dist/ui/assets/{quick-llm-hedJ8LEL.js → quick-llm-CM0bq0Rp.js} +1 -1
- package/dist/ui/assets/{recovery-screen-DU8WFnpT.js → recovery-screen-C2-cTzHe.js} +1 -1
- package/dist/ui/assets/{remote-terminal-view-BXjdqm7-.js → remote-terminal-view-D4Ah4AQY.js} +1 -1
- package/dist/ui/assets/{run-dk5KyxT2.js → run-2dG-kPkW.js} +1 -1
- package/dist/ui/assets/{run-C-InHvWx.js → run-BZq150_-.js} +2 -2
- package/dist/ui/assets/{run-DTXbRzQ6.js → run-wZKGk8f1.js} +1 -1
- package/dist/ui/assets/{session-jsonl-CpQqgq2a.js → session-jsonl-BUM105sQ.js} +1 -1
- package/dist/ui/assets/{setup-feature-flags-remote-DJTSDAP-.js → setup-feature-flags-remote-CYaTMUGI.js} +1 -1
- package/dist/ui/assets/sidecar-repair-Dyo_uNW9.js +1 -0
- package/dist/ui/assets/{silent-renew-backoff-pEjTpf6Y.js → silent-renew-backoff-CMcARSwp.js} +1 -1
- package/dist/ui/assets/{skills-D1r_dXXN.js → skills-BpO1a28c.js} +1 -1
- package/dist/ui/assets/slicc-version-pkH5Cy8d.js +1 -0
- package/dist/ui/assets/{snapshot-jBfySyLF.js → snapshot-CUbnB6HL.js} +1 -1
- package/dist/ui/assets/{snapshot-features-Bn7BtW7K.js → snapshot-features-j6dx6n8x.js} +1 -1
- package/dist/ui/assets/{soundscape-gtJZ30qF.js → soundscape-BswqsuUI.js} +1 -1
- package/dist/ui/assets/{speak-D6N7JGfl.js → speak-BjUpeuE_.js} +1 -1
- package/dist/ui/assets/{sprinkle-manager-Bgirnz_O.js → sprinkle-manager--VjyaGhT.js} +1 -1
- package/dist/ui/assets/{sprinkle-renderer-CpbS9Pze.js → sprinkle-renderer-DST9wDsJ.js} +1 -1
- package/dist/ui/assets/{state-gI8eLPCJ.js → state-D4U_z-EK.js} +1 -1
- package/dist/ui/assets/{store-CoFkhkC_.js → store-B8MYU0Oj.js} +1 -1
- package/dist/ui/assets/{store-CJoMqbUo.js → store-DChdcXsg.js} +1 -1
- package/dist/ui/assets/{sudo-CdUi7Bt1.js → sudo-Zjjvq0o1.js} +1 -1
- package/dist/ui/assets/{sync-dialog-uCJmhtr8.js → sync-dialog-CQpxesIG.js} +1 -1
- package/dist/ui/assets/{transformers-env-GrfzOgRv.js → transformers-env-Bfs2yK-G.js} +1 -1
- package/dist/ui/assets/{tray-sidecar-B_1w3n4t.js → tray-sidecar-DoJ0KYqF.js} +1 -1
- package/dist/ui/assets/{upgrade-detection-L60JNTNb.js → upgrade-detection-BJO1N35I.js} +1 -1
- package/dist/ui/assets/{upskill-lick-skip-Jcllnh6l.js → upskill-lick-skip-ETmK7gKp.js} +1 -1
- package/dist/ui/assets/{voice-reply-DqNiHN6M.js → voice-reply-CxLeD2UU.js} +1 -1
- package/dist/ui/assets/{wc-attach-8_xsR0qy.js → wc-attach-BqTZtL4F.js} +2 -2
- package/dist/ui/assets/{wc-extension-oYf2HrE6.js → wc-extension-C_P8Z5_f.js} +2 -2
- package/dist/ui/assets/{wc-follower-oauth-CljtR185.js → wc-follower-oauth-CqVmKcTQ.js} +1 -1
- package/dist/ui/assets/{wc-follower-BYsj_5x0.js → wc-follower-w1PZlnC3.js} +3 -3
- package/dist/ui/assets/{wc-gelatiere-CP4serB8.js → wc-gelatiere-ErLykEqr.js} +1 -1
- package/dist/ui/assets/{wc-live-CkxSC9Ez.js → wc-live-Kx0jpvxz.js} +5 -5
- package/dist/ui/assets/{wc-nav-XvRTYo98.js → wc-nav-DMxSQWF8.js} +2 -2
- package/dist/ui/assets/{wc-onboarding-iCoaOIma.js → wc-onboarding-W0FpgTat.js} +2 -2
- package/dist/ui/assets/{wc-permissions-brfCnfZb.js → wc-permissions-BsGMi4OQ.js} +2 -2
- package/dist/ui/assets/{wc-placeholder-em6OiHpb.js → wc-placeholder-CI7UKO4Z.js} +3 -3
- package/dist/ui/assets/{wc-secret-request-BjM8NPKG.js → wc-secret-request-DaAszAFd.js} +1 -1
- package/dist/ui/assets/{wc-settings-BtBwNeN8.js → wc-settings-B-FsPgww.js} +3 -3
- package/dist/ui/assets/{wc-shell-DC9WMYcH.js → wc-shell-Bqj2G2_K.js} +4 -4
- package/dist/ui/assets/{wc-shortcut-config-BEsAGNLx.js → wc-shortcut-config-B5nHTfK6.js} +1 -1
- package/dist/ui/assets/{wc-shortcuts-CETptwt9.js → wc-shortcuts-Cbk5hDbX.js} +1 -1
- package/dist/ui/assets/{wc-sprinkles-DLNH0Ist.js → wc-sprinkles-DnBxgn1Q.js} +2 -2
- package/dist/ui/assets/{wc-transcript-export-CidB32Dc.js → wc-transcript-export-7tvwdvKC.js} +2 -2
- package/dist/ui/assets/{wc-tray-BbFFd7U-.js → wc-tray-DwUCXdrJ.js} +4 -4
- package/dist/ui/assets/welcome-detection-BePZ1gj8.js +1 -0
- package/dist/ui/assets/{whisper-session-BvALr1gE.js → whisper-session-DoxUb6hK.js} +2 -2
- package/dist/ui/assets/{xai-grok-DWDEwZSo.js → xai-grok-BHDMfFJ3.js} +1 -1
- package/dist/ui/assets/{xai-grok-Ht4qQwUs.js → xai-grok-CIVOagKi.js} +1 -1
- package/dist/ui/index.html +3 -3
- package/dist/ui/packages/webapp/index.html +3 -3
- package/package.json +2 -2
- package/dist/ui/assets/SKILL-CLF3MdfR.js +0 -1
- package/dist/ui/assets/dist-CFI3XeIO.js +0 -2
- package/dist/ui/assets/dist-Ciikigd5.js +0 -2
- package/dist/ui/assets/fs-CjgMvwqK.js +0 -1
- package/dist/ui/assets/provider-settings-Dc0Uksht.js +0 -1
- package/dist/ui/assets/provider-store-access-BYCBOZrX.js +0 -1
- package/dist/ui/assets/provider-store-access-CcCQNG5q.js +0 -1
- package/dist/ui/assets/sidecar-repair-CPDaW6WS.js +0 -1
- package/dist/ui/assets/slicc-version-Do_Qzxe9.js +0 -1
- package/dist/ui/assets/welcome-detection-DW2ROqam.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dist-kBT87Ea7.js","assets/rolldown-runtime-Dd_uD5pT.js","assets/preload-helper-Czpn1I53.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{n as e}from"./rolldown-runtime-Dd_uD5pT.js";import"./account-store-CuTDBQ6V.js";import{t}from"./preload-helper-Czpn1I53.js";import{t as n}from"./logger-DDBAeTLF.js";import{n as r}from"./runtime-env-Dlaokqg1.js";import{n as i,t as a}from"./icons-Ce7Vz89o.js";function o(e){if(!Number.isFinite(e)||e<=0)return`0 B`;let t=[`B`,`KB`,`MB`,`GB`],n=e,r=0;for(;n>=1024&&r<t.length-1;)n/=1024,r++;return`${n>=10||r===0?Math.round(n):Math.round(n*10)/10} ${t[r]}`}function s(e){let t=e.mimeType||`application/octet-stream`;return`${e.name} (${t}, ${o(e.size)})`}function c(e,t=`The original file lives on a remote runtime and is not accessible here.`){return e?.length?e.map(e=>{if(!e.path)return{...e};let{path:n,...r}=e;return e.kind===`image`&&e.data||e.kind===`text`&&e.text!==void 0?r:{...r,error:r.error??t}}):[]}var l='---\nintervalHours: 24\nnightly: \'0 3 * * *\'\nmaxSuggestions: 5\n# allowedCommands adds to the built-in set a pass may run without asking you\n# for approval; it never replaces it. Bare command names only:\n# allowedCommands: [tree, xxd]\n---\n\n# Gelatiere pass\n\nYou are the gelatiere, SLICC\'s resident advisor. A lick just asked you for a pass: a nightly `[Cron Event: gelatiere-nightly]`, a `[Sprinkle Event: gelatiere]` because a session ended or someone ran `gelatiere run`, or a direct request. Your job is to look at how this person actually uses SLICC and come back with a handful of concrete, well-grounded suggestions — skills to install, use cases they have not tried, habits that would make their sessions go better, a skill worth writing when none exists, a bug worth reporting when SLICC itself is what got in the way — then hand them to the cones.\n\n**Work fast: a pass should take a few minutes, not many.** Mine the signals below, cross them with what is available, write the candidates file, and finish with the two commands at the end. Never install anything, never edit memory files yourself (the nightly\'s `memory dream` delegates that to sandboxed dreamer scoops), never message a cone by any other means than `gelatiere deliver`.\n\n## Nightly only: start the dreaming pass\n\nWhen this pass is the nightly (`[Cron Event: gelatiere-nightly]`), start the memory-dreaming pass first, before anything else, and do not wait for it:\n\n```bash\nmemory dream --all\n```\n\nThat spawns one sandboxed memory-dreamer per cone to consolidate its memory file — merge duplicates, drop superseded facts, land under budget. It runs detached; carry on with your own pass immediately and never read or edit the memory files it is working on beyond the signal-mining below. Skip this step entirely on session-end and on-demand passes.\n\n## What the user has done\n\nRead these in order; each one is cheap. Start with `date -u +%Y-%m-%d` so your evidence carries today\'s date.\n\n1. **Profile** — who they said they are on first run: `cat /home/*/.welcome.json 2>/dev/null` (`purpose`, `role`, `tasks`, `apps`, `company`).\n2. **Durable memory** — what earlier sessions already established (preferences, projects, pitfalls): `cat /workspace/CLAUDE.md`, and `cat /cones/*/CLAUDE.md 2>/dev/null` for the other cones. A long-lived install\'s memory files run to a thousand lines each; on those, read the shape first (`grep -n \'^## \' FILE`) and `sed -n` only the sections that look relevant.\n3. **Session index** — titles, dates, cones: `jq -r \'.[] | "\\(.frozenAt[0:10]) \\(.cone // "cone") \\(.title)"\' /sessions/index.json | tail -30`.\n4. **Recent archives** — the newest few sessions: `ls -t /sessions/*.md | grep -v agent- | head -5`.\n `/sessions/live-*.md` in that list is a chat still in progress — usually the newest and largest\n signal there is, and the easiest to skip. Check `ls -lt /sessions/live-*.md` too.\n5. **Your own notes** — what you concluded last time: `cat /shared/.gelatiere/notes.md 2>/dev/null`.\n\n**Never `cat` an archive.** They reach several megabytes and the `<!-- slicc:session-data ... -->` block is one JSON line holding the whole session. Pull the three signals separately, each on the prose half only:\n\n```bash\n# What the user asked for, in their words.\nsed \'/^<!-- slicc:session-data$/,/^-->$/d\' ARCHIVE | awk \'/^## User/{p=1;next} /^## (Assistant|Summary)/{p=0} /^### Tool/{p=0} p\' | head -80\n\n# Which commands and tools the sessions lean on.\nsed \'/^<!-- slicc:session-data$/,/^-->$/d\' ARCHIVE | grep -o \'^### Tool: [a-z_]*\' | sort | uniq -c | sort -rn\nsed \'/^<!-- slicc:session-data$/,/^-->$/d\' ARCHIVE | grep -oE \'^\\$? ?[a-z][a-z0-9-]+ \' | sort | uniq -c | sort -rn | head -20\n\n# What broke — the strongest signal for a missing skill.\nsed \'/^<!-- slicc:session-data$/,/^-->$/d\' ARCHIVE | grep -B4 \'^Result:.*\\(rror\\|not found\\|failed\\|denied\\|ENOENT\\)\' | cut -c1-160 | head -60\n```\n\n6. **What is already installed** — never suggest a duplicate: `upskill list`.\n7. **What you already suggested** — `/shared/.gelatiere/suggestions.json` holds every earlier suggestion with its `dismissedAt`. Do not repeat an id that is still open, and do not resurrect a dismissed one unless the sessions show a new, strong reason: `jq -r \'.[] | "\\(.id)\\t\\(.kind)\\t\\(.dismissedAt // "open")\\t\\(.title)"\' /shared/.gelatiere/suggestions.json 2>/dev/null`.\n\n## What is available\n\nCross the signals above with what SLICC can offer. Spend one command on each; do not browse further.\n\n```bash\n# The skill catalog: name, description, the tasks / roles / apps each skill fits, and WHERE it\n# lives (repo, path, skill, installAll) — the install command is built from those last four.\ngelatiere catalog | jq -r \'.data[] | "\\(.name)\\t\\(.description)\\ttasks=\\(.tasks) role=\\(.role) apps=\\(.apps)\\trepo=\\(.repo) path=\\(.path) skill=\\(.skill) installAll=\\(.installAll)"\'\n\n# Every documented shell command, one man page each. This is what the WEBSITE documents,\n# not everything SLICC ships — never tell the user a command is absent on this alone.\ngelatiere commands\n\n# What SLICC is FOR, in the site\'s own words: title, summary and the skills each use case\n# wants. Where a `use-case` suggestion for untried territory comes from.\ngelatiere use-cases\n\n# The community skills repo, when the catalog looks thin for this user.\nupskill ai-ecoverse/skills\n```\n\nRead a man page only when you are about to recommend that command and need to be sure it does what you think: `gelatiere man <command> | head -60`. You have no `curl` and need none — `gelatiere catalog`, `gelatiere commands`, `gelatiere use-cases` and `gelatiere man` are your whole web surface.\n\n## What to suggest\n\nAt most the `maxSuggestions` from the config block above, best first. Fewer, sharper suggestions beat a full list; an empty list is a fine outcome when nothing is genuinely worth the user\'s attention. Every suggestion must be traceable to something you saw:\n\n| kind | when | required fields |\n| ------------ | ----------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |\n| `skill` | a catalog or repo skill matches a recurring task, app, or failure in the sessions | `skill`, and `install` — the exact `upskill` command (see below) |\n| `use-case` | a SLICC capability (shell command, scoops, sprinkles, mounts, automation) fits work the user does by hand or not at all | `prompt` — a message the user could send verbatim |\n| `tip` | a habit that would have avoided a failure or a repeated detour in the sessions | `body` explains what to do differently |\n| `skill-idea` | the sessions repeat a routine no installable skill covers — write one instead of installing one | `prompt` — what to ask a cone to author |\n| `issue` | SLICC ITSELF is what got in the way: a command that broke, a surface that lied, a capability that is simply missing | `prompt` — what to ask a cone to file |\n\n### `skill-idea` and `issue` — the two that point away from the catalog\n\nThe catalog is small and mostly already installed, so do not expect a `skill` every pass. When the\nsame multi-step routine shows up in two or more sessions — the same command sequence, the same\nprompt retyped, the same checklist rebuilt from memory — and neither `upskill list` nor `gelatiere\ncatalog` covers it, the honest answer is **write one**. Name the routine you watched, not a\ncategory; the `prompt` asks a cone to author it (what it does, when it triggers, the steps you saw)\nand points at `skill-creator` when `upskill list` shows it installed.\n\n> "You rebuilt the same release checklist by hand in three sessions — tag, changelog, TestFlight\n> notes, then the smoke run." `prompt`: "Write a skill for my release checklist: …"\n\n`issue` is for the failures nobody reports: the command that exited 1 and got worked around, the\nflag that silently did nothing, the panel that showed stale state. Only when the friction is\nSLICC\'s own AND reproducible from what you read — a named failure with session evidence, not a\nwish. One per pass at the very most: a pass that files speculative bugs teaches the user to ignore\nthe card. The `prompt` asks a cone to open it against `ai-ecoverse/slicc` with your reproduction.\n\n> "`chmod +x` reports success and leaves the mode unchanged, so `./script.sh` fails with\n> `Permission denied`." `prompt`: "File an issue against ai-ecoverse/slicc: chmod appears to …"\n\nNeither fits when the user simply did something the hard way (that is a `tip`), when the capability\nalready exists and they missed it (`use-case`), or when the evidence is one ambiguous error.\n\n### The `install` command\n\nIt is built from the catalog row, never from the bare name — `upskill <name>` alone searches the public registries and does not find catalog skills:\n\n| catalog row | `install` |\n| ------------------------------------------------- | -------------------------------------------- |\n| `repo=o/r skill=x` (path empty) | `upskill o/r --skill x` |\n| `repo=o/r path=skills/ skill=x` | `upskill o/r --path skills/ --skill x` |\n| `repo=o/r path=skills/migration/ installAll=true` | `upskill o/r --path skills/migration/ --all` |\n| a skill from `upskill ai-ecoverse/skills` output | `upskill ai-ecoverse/skills --skill <name>` |\n\n### Rules for every kind\n\n- `id` is a stable slug (`skill-github`, `use-case-fswatch-deploy`, `tip-mount-once`, `skill-idea-release-checklist`, `issue-chmod-noop`) so a repeat pass recognises it.\n- Speak to the user as "you" in every field — never about them in the third person ("Lars builds…" is wrong; "You build…" is right).\n- The card shows exactly two things — WHAT to do and WHY — so write the fields that way:\n - `title` is the WHAT: a short imperative, eight words or fewer, sentence case — "Install the GitHub skill", "Script your build–serve–screenshot loop", "Write a release-checklist skill", "Report the chmod no-op". No benefit clause bolted on ("…to manage repos and pull requests from chat" belongs in the why, if anywhere).\n - `body` is the WHY: one or two sentences, grounded in what you actually saw, that tell the story of the change — what you watched the user do by hand, and what gets better. "You ran the build–serve–screenshot loop 80+ times by hand in your bakery session; a workflow file replays it as one command." It must not restate the title, list features, or repeat `evidence` word for word.\n- `evidence` is one friendly sentence, spoken to the user, saying what you saw that led here — "You told the welcome wizard you\'re a developer who lives in GitHub". It rides the lick for the cones; the card does not render it, so do not lean on it to justify the suggestion — the why lives in `body`. Never a field dump like `role=developer, tasks=[…]`.\n- `url` is optional: the skill page or the man page.\n- Never suggest what `upskill list` already shows installed, and never invent a skill or command that is not in the catalog, the repo listing, or the sitemap. A `skill-idea` is the one exception — it names a skill that does NOT exist yet, which is the point; check first that no installable one covers it.\n\n## Finish\n\nWrite the candidates as JSON — `{ "suggestions": [ { "id", "kind", "title", "body", "skill", "install", "prompt", "url", "evidence" } ] }` — to `$TMPDIR/candidates.json`, then run exactly:\n\n```bash\ngelatiere suggest "$TMPDIR/candidates.json" && gelatiere deliver\n```\n\n`suggest` validates and folds the candidates into the store (known ids are kept, dismissed ones stay dismissed); `deliver` licks every other cone with what is new. Then update `/shared/.gelatiere/notes.md` with two or three lines on what you looked at and what you decided against — that file, not your reply, is your memory across passes. Reply with one short line.\n\n<!-- How to customize\nAdd instructions above, for example: prefer skills from a company repo, or always check a team\nwiki at /mnt/kb before suggesting. The config block sets `intervalHours` (minimum hours between\nsession-end passes; the nightly pass ignores it), `nightly` (a 5-field cron expression, registered\nby `gelatiere init` as the `gelatiere-nightly` crontask), `maxSuggestions` (capped at 10) and\n`allowedCommands`.\n\n`allowedCommands` is the gelatiere\'s half of what `MEMORY.md` gives the memory curator: extra shell\ncommands a pass may run without escalating. It is ADDITIVE — the built-in set (the read-only text\nutilities, `jq`, `rg`, `upskill`, `gelatiere`, `memory`) always stands, and the file only extends\nit; entries are bare command names, so `tree` is valid and `tree -L 2` is not. `gelatiere status`\nprints the list actually in force and flags an edit that has not been applied yet. The unit is\nregistered once and then persists, so an edit here takes effect on the next boot or the next\n`gelatiere init` — and never mid-pass: applying it rebuilds the unit, which would cancel a pass in\nflight, so `gelatiere init` leaves a busy gelatiere alone and asks to be re-run when it is idle.\n\nAdding a command grants it to an UNATTENDED agent that can read `/sessions/` and every cone\'s\nmemory, so weigh a network command (`curl`, `wget`, `ssh`) against that: the pass reads third-party\ncatalog and repo content, and general egress would make one injected line enough to exfiltrate an\narchive. That is why the built-in set has none, and why leaving them out is the right default.\n\nThe gelatiere is a persistent scoop no cone owns (folder `gelatiere`); its own conversation is\ncompacted while it idles. Dismissed suggestions are kept with a dismissedAt stamp so the next pass does not\nrepeat them. `gelatiere run` from any cone\'s shell asks for a pass now.\n-->\n';function u(e,t){let n=e.replace(/^\uFEFF/,``).replace(/\r\n?/g,`
|
|
2
|
+
import{n as e}from"./rolldown-runtime-Dd_uD5pT.js";import"./account-store-FUhuBOfI.js";import{t}from"./preload-helper-Czpn1I53.js";import{t as n}from"./logger-DDBAeTLF.js";import{n as r}from"./runtime-env-Dlaokqg1.js";import{n as i,t as a}from"./icons-Ce7Vz89o.js";function o(e){if(!Number.isFinite(e)||e<=0)return`0 B`;let t=[`B`,`KB`,`MB`,`GB`],n=e,r=0;for(;n>=1024&&r<t.length-1;)n/=1024,r++;return`${n>=10||r===0?Math.round(n):Math.round(n*10)/10} ${t[r]}`}function s(e){let t=e.mimeType||`application/octet-stream`;return`${e.name} (${t}, ${o(e.size)})`}function c(e,t=`The original file lives on a remote runtime and is not accessible here.`){return e?.length?e.map(e=>{if(!e.path)return{...e};let{path:n,...r}=e;return e.kind===`image`&&e.data||e.kind===`text`&&e.text!==void 0?r:{...r,error:r.error??t}}):[]}var l='---\nintervalHours: 24\nnightly: \'0 3 * * *\'\nmaxSuggestions: 5\n# allowedCommands adds to the built-in set a pass may run without asking you\n# for approval; it never replaces it. Bare command names only:\n# allowedCommands: [tree, xxd]\n---\n\n# Gelatiere pass\n\nYou are the gelatiere, SLICC\'s resident advisor. A lick just asked you for a pass: a nightly `[Cron Event: gelatiere-nightly]`, a `[Sprinkle Event: gelatiere]` because a session ended or someone ran `gelatiere run`, or a direct request. Your job is to look at how this person actually uses SLICC and come back with a handful of concrete, well-grounded suggestions — skills to install, use cases they have not tried, habits that would make their sessions go better, a skill worth writing when none exists, a bug worth reporting when SLICC itself is what got in the way — then hand them to the cones.\n\n**Work fast: a pass should take a few minutes, not many.** Mine the signals below, cross them with what is available, write the candidates file, and finish with the two commands at the end. Never install anything, never edit memory files yourself (the nightly\'s `memory dream` delegates that to sandboxed dreamer scoops), never message a cone by any other means than `gelatiere deliver`.\n\n## Nightly only: start the dreaming pass\n\nWhen this pass is the nightly (`[Cron Event: gelatiere-nightly]`), start the memory-dreaming pass first, before anything else, and do not wait for it:\n\n```bash\nmemory dream --all\n```\n\nThat spawns one sandboxed memory-dreamer per cone to consolidate its memory file — merge duplicates, drop superseded facts, land under budget. It runs detached; carry on with your own pass immediately and never read or edit the memory files it is working on beyond the signal-mining below. Skip this step entirely on session-end and on-demand passes.\n\n## What the user has done\n\nRead these in order; each one is cheap. Start with `date -u +%Y-%m-%d` so your evidence carries today\'s date.\n\n1. **Profile** — who they said they are on first run: `cat /home/*/.welcome.json 2>/dev/null` (`purpose`, `role`, `tasks`, `apps`, `company`).\n2. **Durable memory** — what earlier sessions already established (preferences, projects, pitfalls): `cat /workspace/CLAUDE.md`, and `cat /cones/*/CLAUDE.md 2>/dev/null` for the other cones. A long-lived install\'s memory files run to a thousand lines each; on those, read the shape first (`grep -n \'^## \' FILE`) and `sed -n` only the sections that look relevant.\n3. **Session index** — titles, dates, cones: `jq -r \'.[] | "\\(.frozenAt[0:10]) \\(.cone // "cone") \\(.title)"\' /sessions/index.json | tail -30`.\n4. **Recent archives** — the newest few sessions: `ls -t /sessions/*.md | grep -v agent- | head -5`.\n `/sessions/live-*.md` in that list is a chat still in progress — usually the newest and largest\n signal there is, and the easiest to skip. Check `ls -lt /sessions/live-*.md` too.\n5. **Your own notes** — what you concluded last time: `cat /shared/.gelatiere/notes.md 2>/dev/null`.\n\n**Never `cat` an archive.** They reach several megabytes and the `<!-- slicc:session-data ... -->` block is one JSON line holding the whole session. Pull the three signals separately, each on the prose half only:\n\n```bash\n# What the user asked for, in their words.\nsed \'/^<!-- slicc:session-data$/,/^-->$/d\' ARCHIVE | awk \'/^## User/{p=1;next} /^## (Assistant|Summary)/{p=0} /^### Tool/{p=0} p\' | head -80\n\n# Which commands and tools the sessions lean on.\nsed \'/^<!-- slicc:session-data$/,/^-->$/d\' ARCHIVE | grep -o \'^### Tool: [a-z_]*\' | sort | uniq -c | sort -rn\nsed \'/^<!-- slicc:session-data$/,/^-->$/d\' ARCHIVE | grep -oE \'^\\$? ?[a-z][a-z0-9-]+ \' | sort | uniq -c | sort -rn | head -20\n\n# What broke — the strongest signal for a missing skill.\nsed \'/^<!-- slicc:session-data$/,/^-->$/d\' ARCHIVE | grep -B4 \'^Result:.*\\(rror\\|not found\\|failed\\|denied\\|ENOENT\\)\' | cut -c1-160 | head -60\n```\n\n6. **What is already installed** — never suggest a duplicate: `upskill list`.\n7. **What you already suggested** — `/shared/.gelatiere/suggestions.json` holds every earlier suggestion with its `dismissedAt`. Do not repeat an id that is still open, and do not resurrect a dismissed one unless the sessions show a new, strong reason: `jq -r \'.[] | "\\(.id)\\t\\(.kind)\\t\\(.dismissedAt // "open")\\t\\(.title)"\' /shared/.gelatiere/suggestions.json 2>/dev/null`.\n\n## What is available\n\nCross the signals above with what SLICC can offer. Spend one command on each; do not browse further.\n\n```bash\n# The skill catalog: name, description, the tasks / roles / apps each skill fits, and WHERE it\n# lives (repo, path, skill, installAll) — the install command is built from those last four.\ngelatiere catalog | jq -r \'.data[] | "\\(.name)\\t\\(.description)\\ttasks=\\(.tasks) role=\\(.role) apps=\\(.apps)\\trepo=\\(.repo) path=\\(.path) skill=\\(.skill) installAll=\\(.installAll)"\'\n\n# Every documented shell command, one man page each. This is what the WEBSITE documents,\n# not everything SLICC ships — never tell the user a command is absent on this alone.\ngelatiere commands\n\n# What SLICC is FOR, in the site\'s own words: title, summary and the skills each use case\n# wants. Where a `use-case` suggestion for untried territory comes from.\ngelatiere use-cases\n\n# The community skills repo, when the catalog looks thin for this user.\nupskill ai-ecoverse/skills\n```\n\nRead a man page only when you are about to recommend that command and need to be sure it does what you think: `gelatiere man <command> | head -60`. You have no `curl` and need none — `gelatiere catalog`, `gelatiere commands`, `gelatiere use-cases` and `gelatiere man` are your whole web surface.\n\n## What to suggest\n\nAt most the `maxSuggestions` from the config block above, best first. Fewer, sharper suggestions beat a full list; an empty list is a fine outcome when nothing is genuinely worth the user\'s attention. Every suggestion must be traceable to something you saw:\n\n| kind | when | required fields |\n| ------------ | ----------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |\n| `skill` | a catalog or repo skill matches a recurring task, app, or failure in the sessions | `skill`, and `install` — the exact `upskill` command (see below) |\n| `use-case` | a SLICC capability (shell command, scoops, sprinkles, mounts, automation) fits work the user does by hand or not at all | `prompt` — a message the user could send verbatim |\n| `tip` | a habit that would have avoided a failure or a repeated detour in the sessions | `body` explains what to do differently |\n| `skill-idea` | the sessions repeat a routine no installable skill covers — write one instead of installing one | `prompt` — what to ask a cone to author |\n| `issue` | SLICC ITSELF is what got in the way: a command that broke, a surface that lied, a capability that is simply missing | `prompt` — what to ask a cone to file |\n\n### `skill-idea` and `issue` — the two that point away from the catalog\n\nThe catalog is small and mostly already installed, so do not expect a `skill` every pass. When the\nsame multi-step routine shows up in two or more sessions — the same command sequence, the same\nprompt retyped, the same checklist rebuilt from memory — and neither `upskill list` nor `gelatiere\ncatalog` covers it, the honest answer is **write one**. Name the routine you watched, not a\ncategory; the `prompt` asks a cone to author it (what it does, when it triggers, the steps you saw)\nand points at `skill-creator` when `upskill list` shows it installed.\n\n> "You rebuilt the same release checklist by hand in three sessions — tag, changelog, TestFlight\n> notes, then the smoke run." `prompt`: "Write a skill for my release checklist: …"\n\n`issue` is for the failures nobody reports: the command that exited 1 and got worked around, the\nflag that silently did nothing, the panel that showed stale state. Only when the friction is\nSLICC\'s own AND reproducible from what you read — a named failure with session evidence, not a\nwish. One per pass at the very most: a pass that files speculative bugs teaches the user to ignore\nthe card. The `prompt` asks a cone to open it against `ai-ecoverse/slicc` with your reproduction.\n\n> "`chmod +x` reports success and leaves the mode unchanged, so `./script.sh` fails with\n> `Permission denied`." `prompt`: "File an issue against ai-ecoverse/slicc: chmod appears to …"\n\nNeither fits when the user simply did something the hard way (that is a `tip`), when the capability\nalready exists and they missed it (`use-case`), or when the evidence is one ambiguous error.\n\n### The `install` command\n\nIt is built from the catalog row, never from the bare name — `upskill <name>` alone searches the public registries and does not find catalog skills:\n\n| catalog row | `install` |\n| ------------------------------------------------- | -------------------------------------------- |\n| `repo=o/r skill=x` (path empty) | `upskill o/r --skill x` |\n| `repo=o/r path=skills/ skill=x` | `upskill o/r --path skills/ --skill x` |\n| `repo=o/r path=skills/migration/ installAll=true` | `upskill o/r --path skills/migration/ --all` |\n| a skill from `upskill ai-ecoverse/skills` output | `upskill ai-ecoverse/skills --skill <name>` |\n\n### Rules for every kind\n\n- `id` is a stable slug (`skill-github`, `use-case-fswatch-deploy`, `tip-mount-once`, `skill-idea-release-checklist`, `issue-chmod-noop`) so a repeat pass recognises it.\n- Speak to the user as "you" in every field — never about them in the third person ("Lars builds…" is wrong; "You build…" is right).\n- The card shows exactly two things — WHAT to do and WHY — so write the fields that way:\n - `title` is the WHAT: a short imperative, eight words or fewer, sentence case — "Install the GitHub skill", "Script your build–serve–screenshot loop", "Write a release-checklist skill", "Report the chmod no-op". No benefit clause bolted on ("…to manage repos and pull requests from chat" belongs in the why, if anywhere).\n - `body` is the WHY: one or two sentences, grounded in what you actually saw, that tell the story of the change — what you watched the user do by hand, and what gets better. "You ran the build–serve–screenshot loop 80+ times by hand in your bakery session; a workflow file replays it as one command." It must not restate the title, list features, or repeat `evidence` word for word.\n- `evidence` is one friendly sentence, spoken to the user, saying what you saw that led here — "You told the welcome wizard you\'re a developer who lives in GitHub". It rides the lick for the cones; the card does not render it, so do not lean on it to justify the suggestion — the why lives in `body`. Never a field dump like `role=developer, tasks=[…]`.\n- `url` is optional: the skill page or the man page.\n- Never suggest what `upskill list` already shows installed, and never invent a skill or command that is not in the catalog, the repo listing, or the sitemap. A `skill-idea` is the one exception — it names a skill that does NOT exist yet, which is the point; check first that no installable one covers it.\n\n## Finish\n\nWrite the candidates as JSON — `{ "suggestions": [ { "id", "kind", "title", "body", "skill", "install", "prompt", "url", "evidence" } ] }` — to `$TMPDIR/candidates.json`, then run exactly:\n\n```bash\ngelatiere suggest "$TMPDIR/candidates.json" && gelatiere deliver\n```\n\n`suggest` validates and folds the candidates into the store (known ids are kept, dismissed ones stay dismissed); `deliver` licks every other cone with what is new. Then update `/shared/.gelatiere/notes.md` with two or three lines on what you looked at and what you decided against — that file, not your reply, is your memory across passes. Reply with one short line.\n\n<!-- How to customize\nAdd instructions above, for example: prefer skills from a company repo, or always check a team\nwiki at /mnt/kb before suggesting. The config block sets `intervalHours` (minimum hours between\nsession-end passes; the nightly pass ignores it), `nightly` (a 5-field cron expression, registered\nby `gelatiere init` as the `gelatiere-nightly` crontask), `maxSuggestions` (capped at 10) and\n`allowedCommands`.\n\n`allowedCommands` is the gelatiere\'s half of what `MEMORY.md` gives the memory curator: extra shell\ncommands a pass may run without escalating. It is ADDITIVE — the built-in set (the read-only text\nutilities, `jq`, `rg`, `upskill`, `gelatiere`, `memory`) always stands, and the file only extends\nit; entries are bare command names, so `tree` is valid and `tree -L 2` is not. `gelatiere status`\nprints the list actually in force and flags an edit that has not been applied yet. The unit is\nregistered once and then persists, so an edit here takes effect on the next boot or the next\n`gelatiere init` — and never mid-pass: applying it rebuilds the unit, which would cancel a pass in\nflight, so `gelatiere init` leaves a busy gelatiere alone and asks to be re-run when it is idle.\n\nAdding a command grants it to an UNATTENDED agent that can read `/sessions/` and every cone\'s\nmemory, so weigh a network command (`curl`, `wget`, `ssh`) against that: the pass reads third-party\ncatalog and repo content, and general egress would make one injected line enough to exfiltrate an\narchive. That is why the built-in set has none, and why leaving them out is the right default.\n\nThe gelatiere is a persistent scoop no cone owns (folder `gelatiere`); its own conversation is\ncompacted while it idles. Dismissed suggestions are kept with a dismissedAt stamp so the next pass does not\nrepeat them. `gelatiere run` from any cone\'s shell asks for a pass now.\n-->\n';function u(e,t){let n=e.replace(/^\uFEFF/,``).replace(/\r\n?/g,`
|
|
3
3
|
`).match(/^---\s*\n([\s\S]*?)\n---\s*\n([\s\S]*)$/);if(!n?.[2].trim())throw Error(`${t} requires frontmatter and a prompt`);return{frontmatter:n[1],body:n[2].trim()}}function d(e,t){let n={},r=e.split(`
|
|
4
4
|
`);for(let e=0;e<r.length;e+=1){let i=r[e];if(!i.trim()||i.trimStart().startsWith(`#`))continue;let a=i.match(/^([A-Za-z][A-Za-z0-9]*):\s*(.*)$/);if(!a)throw Error(`Invalid frontmatter line: ${i}`);let[,o,s]=a;if(t.arrayKeys.has(o)){let t=f(r,e,s);n[o]=t.value,e=t.lastIndex}else if(t.scalarKeys.has(o)&&s.trim())n[o]=h(s);else throw Error(`Unsupported or empty frontmatter field: ${o}`)}return n}function f(e,t,n){if(n.trim()){let e=n.trim();if(!e.startsWith(`[`)||!e.endsWith(`]`))throw Error(`Expected an array`);let r=e.slice(1,-1).trim();return{value:r?p(r):[],lastIndex:t}}let r=[],i=t;for(let n=t+1;n<e.length;n+=1){let t=e[n].match(/^\s+-\s+(.+)$/);if(!t)break;r.push(h(m(t[1]))),i=n}return{value:r,lastIndex:i}}function p(e){let t=[],n=0,r;for(let i=0;i<e.length;i+=1){let a=e[i];a===`"`||a===`'`?r=r===a?void 0:r??a:a===`,`&&!r&&(t.push(h(e.slice(n,i))),n=i+1)}if(r)throw Error(`Unclosed quoted value`);return t.push(h(e.slice(n))),t}function m(e){let t;for(let n=0;n<e.length;n+=1){let r=e[n];if(r===`"`||r===`'`)t=t===r?void 0:t??r;else if(r===`#`&&!t&&(n===0||/\s/.test(e[n-1])))return e.slice(0,n).trimEnd()}return e}function h(e){let t=e.trim();if(!t)throw Error(`Empty frontmatter value`);let n=t[0];if((n===`"`||n===`'`)&&t.at(-1)===n)return t.slice(1,-1);if(n===`"`||n===`'`)throw Error(`Unclosed quoted value`);return t}function g(e,t,n){let r=e[t];if(r===void 0)return[...n];if(!Array.isArray(r)||r.some(e=>!e))throw Error(`${t} is invalid`);return[...r]}function _(e,t){if(e!==void 0){if(typeof e!=`string`||!e)throw Error(`${t} is invalid`);return e}}function v(e,t,n){if(e===void 0)return t;if(typeof e!=`string`)throw Error(`timeoutSeconds is invalid`);let r=Number(e);if(!Number.isFinite(r)||r<=0)throw Error(`timeoutSeconds must be positive`);return Math.min(r,n)}function y(e,t){if(e.some(e=>!e.startsWith(`/`)||e.includes(`\0`)||t===`writablePaths`&&e===`/`))throw Error(`${t} must contain absolute VFS paths`)}var b=`gelatiere`,x=`gelatiere`,S=`gelatiere-nightly`,C=`system:gelatiere`;function ee(e){return e.parentJid===`system:gelatiere`&&e.folder===`gelatiere`}var te=e({DEFAULT_GELATIERE_INTERVAL_HOURS:()=>24,DEFAULT_GELATIERE_MD:()=>l,DEFAULT_GELATIERE_NIGHTLY_CRON:()=>ae,DEFAULT_MAX_SUGGESTIONS:()=>5,GELATIERE_BASE_ALLOWED_COMMANDS:()=>oe,GELATIERE_DIR:()=>T,GELATIERE_FOLDER:()=>b,GELATIERE_INSTRUCTIONS_PATH:()=>w,GELATIERE_NIGHTLY_CRON_NAME:()=>S,GELATIERE_OWNER_JID:()=>C,GELATIERE_SKILL_PATH:()=>D,GELATIERE_SPRINKLE_NAME:()=>x,GELATIERE_STATE_PATH:()=>E,GELATIERE_SUGGESTIONS_ACTION:()=>ie,GELATIERE_SUGGESTIONS_PATH:()=>re,LICK_SUGGESTION_LIMIT:()=>5,MAX_STORED_SUGGESTIONS:()=>40,MAX_SUGGESTIONS_PER_PASS:()=>10,buildGelatiereLickBody:()=>ze,coerceSuggestions:()=>Fe,describeGelatiereLick:()=>Ve,dismissGelatiereSuggestion:()=>Te,isGelatiereUnit:()=>ee,isPassDue:()=>be,loadGelatiereConfig:()=>pe,mergeSuggestions:()=>Ie,openSuggestions:()=>Se,parseGelatiereDocument:()=>ue,readGelatiereState:()=>ve,readGelatiereSuggestions:()=>ge,recordGelatiereTrigger:()=>xe,recordPass:()=>Re,suggestionsSince:()=>we,takeGelatiereSuggestion:()=>Ee,takenSuggestions:()=>Ce,writeGelatiereState:()=>ye,writeGelatiereSuggestions:()=>_e}),ne=n(`gelatiere-store`),w=`/shared/GELATIERE.md`,T=`/shared/.gelatiere`,re=`${T}/suggestions.json`,E=`${T}/state.json`,ie=`gelatiere-suggestions`,D=`/workspace/skills/gelatiere/SKILL.md`,ae=`0 3 * * *`,O={arrayKeys:new Set([`allowedCommands`]),scalarKeys:new Set([`intervalHours`,`nightly`,`maxSuggestions`])},oe=`awk.basename.cat.column.cut.date.dirname.echo.expr.false.file.find.fold.gelatiere.grep.head.jq.ls.man.memory.mkdir.nl.paste.printf.realpath.rg.sed.seq.sort.stat.tail.tee.test.touch.tr.true.uniq.upskill.wc`.split(`.`),se=/^[A-Za-z0-9][A-Za-z0-9._-]*$/,ce=new Set([`skill`,`use-case`,`tip`,`skill-idea`,`issue`]),le=new Set([`use-case`,`skill-idea`,`issue`]);function ue(e){let t=u(e,`GELATIERE.md`),n=d(t.frontmatter,O),r=_(n.nightly,`nightly`)??`0 3 * * *`;if(r.trim().split(/\s+/).length!==5)throw Error(`nightly must be a 5-field cron expression`);return{allowedCommands:de(n),intervalHours:fe(n.intervalHours,`intervalHours`,24),nightly:r.trim(),maxSuggestions:Math.min(10,fe(n.maxSuggestions,`maxSuggestions`,5)),instructions:t.body}}function de(e){let t=g(e,`allowedCommands`,[]),n=t.find(e=>!se.test(e));if(n!==void 0)throw Error(`allowedCommands must contain bare command names, not "${n}"`);return[...new Set([...oe,...t])]}function fe(e,t,n){if(e===void 0)return n;if(typeof e!=`string`)throw Error(`${t} is invalid`);let r=Number(e);if(!Number.isFinite(r)||r<=0)throw Error(`${t} must be positive`);return r}async function pe(e){try{return ue(await me(e,w))}catch(e){return ne.warn(`Could not load valid GELATIERE.md; using built-in default`,{error:Be(e)}),ue(l)}}async function me(e,t){let n=await e.readFile(t,{encoding:`utf-8`});return typeof n==`string`?n:new TextDecoder().decode(n)}async function he(e,t){try{return JSON.parse(await me(e,t))}catch{return}}async function ge(e){let t=await he(e,re);if(!Array.isArray(t))return[];let n=[];for(let e of t){let t=Pe(e,null);if(!t)continue;let{dismissedAt:r,takenAt:i}=e;typeof r==`string`&&r&&(t.dismissedAt=r),typeof i==`string`&&i&&(t.takenAt=i),n.push(t)}return n}async function _e(e,t){await e.mkdir(T,{recursive:!0}),await e.writeFile(re,`${JSON.stringify(t,null,2)}\n`)}async function ve(e){let t=await he(e,E);if(!t||typeof t!=`object`)return{passes:0};let n=t;return{passes:typeof n.passes==`number`&&n.passes>=0?n.passes:0,...typeof n.lastPassAt==`string`?{lastPassAt:n.lastPassAt}:{},...typeof n.lastTriggeredAt==`string`?{lastTriggeredAt:n.lastTriggeredAt}:{},...typeof n.lastDeliveredAt==`string`?{lastDeliveredAt:n.lastDeliveredAt}:{}}}async function ye(e,t){await e.mkdir(T,{recursive:!0}),await e.writeFile(E,`${JSON.stringify(t,null,2)}\n`)}function be(e,t,n){let r=Math.max(...[e.lastPassAt,e.lastTriggeredAt].map(e=>e?Date.parse(e):NaN).filter(e=>!Number.isNaN(e)));return!Number.isFinite(r)||t.getTime()-r>=n*36e5}async function xe(e,t=new Date){await ye(e,{...await ve(e),lastTriggeredAt:t.toISOString()})}function Se(e){return e.filter(e=>!e.dismissedAt&&!e.takenAt)}function Ce(e){return e.filter(e=>!!e.takenAt)}function we(e,t){let n=Se(e);if(!t)return n;let r=Date.parse(t);return Number.isNaN(r)?n:n.filter(e=>{let t=Date.parse(e.createdAt);return Number.isNaN(t)||t>r})}async function Te(e,t,n=new Date){return Oe(e,t,`dismissedAt`,n)}async function Ee(e,t,n=new Date){return Oe(e,t,`takenAt`,n)}var De=Promise.resolve();function Oe(e,t,n,r){let i=async()=>{let i=await ge(e),a=i.find(e=>e.id===t&&!e.dismissedAt&&!e.takenAt);return a?(a[n]=r.toISOString(),await _e(e,i),!0):!1},a=De.then(i,i);return De=a.catch(()=>!1),a}var ke=/[^a-z0-9]+/g;function Ae(e){return e.toLowerCase().replace(ke,`-`).replace(/^-+|-+$/g,``).slice(0,60)}function je(e,t){if(typeof e!=`string`)return;let n=e.trim();return n?n.slice(0,t):void 0}function Me(e){if(e)try{let t=new URL(e).protocol;return t===`http:`||t===`https:`?e:void 0}catch{return}}var k=/^[A-Za-z0-9@._/:=-]+$/;function Ne(e){if(!e)return;let t=e.split(/\s+/);if(!(t[0]!==`upskill`||t.length<2))return t.slice(1).every(e=>k.test(e))?e:void 0}function Pe(e,t){if(!e||typeof e!=`object`)return null;let n=e,r=typeof n.kind==`string`?n.kind:``,i=je(n.title,200),a=je(n.body,1e3);if(!ce.has(r)||!i||!a)return null;let o=Ae(je(n.id,80)??`${r}-${i}`)||Ae(`${r}-${i}`);if(!o)return null;let s=t??je(n.createdAt,40)??``,c=n.skill===void 0?void 0:je(n.skill,120),l=n.install===void 0?void 0:Ne(je(n.install,300)),u=n.prompt===void 0?void 0:je(n.prompt,1e3);return r===`skill`&&(!c||!l)||le.has(r)&&!u?null:{id:o,kind:r,title:i,body:a,...n.skill===void 0?{}:{skill:c},...n.install===void 0?{}:{install:l},...n.prompt===void 0?{}:{prompt:u},...n.url===void 0?{}:{url:Me(je(n.url,500))},...n.evidence===void 0?{}:{evidence:je(n.evidence,500)},createdAt:s}}function Fe(e,t,n=10){let r=Array.isArray(e)?e:e&&typeof e==`object`&&Array.isArray(e.suggestions)?e.suggestions??[]:[],i=new Set,a=[];for(let e of r){let r=Pe(e,t);if(!(!r||i.has(r.id))&&(i.add(r.id),a.push(r),a.length>=n))break}return a}function Ie(e,t,n=40){let r=new Set(e.map(e=>e.id)),i=t.filter(e=>!r.has(e.id)),a=[...i,...e];for(;a.length>n;){let e=Le(a,e=>!!e.dismissedAt),t=e>=0?e:Le(a,e=>!!e.takenAt);a.splice(t>=0?t:a.length-1,1)}return{merged:a,added:i}}function Le(e,t){for(let n=e.length-1;n>=0;--n)if(t(e[n]))return n;return-1}async function Re(e,t,n=new Date){let r=await pe(e),i=Fe(t,n.toISOString(),r.maxSuggestions),{merged:a,added:o}=Ie(await ge(e),i);await _e(e,a);let s=await ve(e);return await ye(e,{...s,passes:s.passes+1,lastPassAt:n.toISOString()}),{added:o,open:Se(a)}}function ze(e,t){return{action:ie,data:{added:e.length,open:t.length,suggestions:t.slice(0,5),path:re,skill:D}}}function Be(e){return e instanceof Error?e.message:String(e)}function Ve(e){let t=He(e);if(!t)return null;let{action:n,bag:r}=t;return n===`gelatiere-suggestions`?Ue(n,r):n===`session-settled`?Ge(n,r):n===`run`?Ke(n,r):{action:n,headline:`gelatiere: ${n}`,titles:[]}}function He(e){let t=e.indexOf(`{`),n=e.lastIndexOf(`}`);if(t<0||n<=t)return null;let r;try{r=JSON.parse(e.slice(t,n+1))}catch{return null}if(!r||typeof r!=`object`)return null;let{action:i,data:a}=r;return typeof i==`string`?{action:i,bag:a&&typeof a==`object`?a:{}}:null}function Ue(e,t){let n=We(t.suggestions),r=typeof t.added==`number`?t.added:n.length,i=typeof t.open==`number`?t.open:n.length;return{action:e,headline:r===0?`Nothing new — ${i} open ${i===1?`suggestion`:`suggestions`} in the suggestions card.`:`${r} new ${r===1?`suggestion`:`suggestions`} (${i} open) — the cards are in the suggestions sprinkle.`,titles:n}}function We(e){return Array.isArray(e)?e.map(e=>e&&typeof e==`object`?e.title:void 0).filter(e=>typeof e==`string`&&e.length>0):[]}function Ge(e,t){let n=typeof t.cone==`string`?t.cone:void 0;return{action:e,headline:n?`A session ended in ${n} — time for a pass.`:`A session ended — time for a pass.`,titles:[]}}function Ke(e,t){let n=typeof t.requestedBy==`string`?t.requestedBy:void 0;return{action:e,headline:n?`${n} asked for a pass now.`:`Someone asked for a pass now.`,titles:[]}}function qe(e,t){let n=r(),i=`/preview${e}${t?`?projectRoot=${encodeURIComponent(t)}`:``}`;if(n){let e=globalThis.chrome?.runtime?.getURL;if(e)return e(i)}let a=`http://localhost:5710`;return typeof window<`u`&&window.location?.origin?a=window.location.origin:typeof self<`u`&&self.location?.origin&&(a=self.location.origin),`${a}${i}`}var Je={camera:`Camera`,microphone:`Microphone`};function Ye(e,t,n){return(e??``).trim()||`${Je[n]} ${t+1}`}function Xe(e,t){return e.map((e,n)=>({deviceId:e.deviceId,label:Ye(e.label,n,t)}))}function Ze(e){return e.length>=2}function Qe(e){if(e.length===0)return null;let t=e.find(e=>e.deviceId==="default");if(t)return t.deviceId;let n=e.find(e=>(e.label??``).trim().toLowerCase().startsWith(`default`));return n?n.deviceId:e[0].deviceId}function $e(){if(typeof window>`u`)return null;let e=window;return e.SpeechRecognition??e.webkitSpeechRecognition??null}var et=3e3,tt={engine:`builtin`,state:`idle`};function nt(){return{async permission(){try{return(await navigator.permissions.query({name:`microphone`})).state}catch{return`prompt`}},async requestPermission(){if(!navigator.mediaDevices?.getUserMedia)return!1;try{let e=await navigator.mediaDevices.getUserMedia({audio:!0});for(let t of e.getTracks())t.stop();return!0}catch{return!1}},async microphones(){if(!navigator.mediaDevices?.enumerateDevices)return[];try{return Xe((await navigator.mediaDevices.enumerateDevices()).filter(e=>e.kind===`audioinput`),`microphone`)}catch{return[]}},async start(e){let t=$e();if(!t)throw Error(`Speech recognition is not supported in this browser.`);let n=new t;n.continuous=!0,n.interimResults=!0,e.lang&&(n.lang=e.lang);let r=``,i=``,a=!1,o=[],s=()=>{a=!0;let e=o;o=[];for(let t of e)t()};n.onresult=t=>{i=``;for(let e=t.resultIndex;e<t.results.length;e++){let n=t.results[e];n.isFinal?r+=n[0].transcript:i+=n[0].transcript}let n=`${r}${i}`.trim();n&&e.onPartial?.(n)},n.onerror=t=>{t.error!==`no-speech`&&t.error!==`aborted`&&e.onError?.(`Speech recognition error: ${t.error}`)},n.onend=s,n.start();let c=()=>`${r}${i}`.trim();return{stop(){return a?Promise.resolve(c()):new Promise(e=>{let t=setTimeout(()=>e(c()),et);o.push(()=>{clearTimeout(t),e(c())});try{n.stop()}catch{clearTimeout(t),e(c())}})},cancel(){n.onresult=null,n.onerror=null,n.onend=null;try{(n.abort??n.stop).call(n)}catch{}s()}}},status(){return tt},onStatus(e){return e(tt),()=>{}},warmup(){}}}var rt=e({applyDictationMarkers:()=>ut,consumeDictationFirst:()=>mt,parseReplyLang:()=>ft,resetDictationPriming:()=>A,stripDictationMarkers:()=>dt,stripReplyLangMarker:()=>pt}),it=`◁This message has been sent through text to speech, consider possible phonetic alternatives and transcription errors. Future dictated messages will have the 🎙️ emoji appended. Your responses to dictated messages will be read out loud, avoid urls, acronyms, numbers, formatting. Begin every reply with the language you are replying in as a hidden HTML comment, e.g. <!--lang:en--> for English or <!--lang:de--> for German; it stays hidden from the user and selects a matching voice▷`,at=/\uD83C\uDF99\uFE0F?/g,ot=/\u25C1[\s\S]*?\u25B7/g,st=/<!--\s*lang:\s*([A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*)\s*-->/i,ct=/<!--\s*lang:\s*[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8})*\s*-->/gi,lt=!0;function ut(e,t){let n=e.endsWith(` `)?e:`${e} `;return t?`${n}\uD83C\uDF99\uFE0F${it}`:`${n}\uD83C\uDF99\uFE0F`}function dt(e){return e.replace(ot,``).replace(at,``).replace(/[ \t]+$/g,``).trimEnd()}function ft(e){return st.exec(e)?.[1]}function pt(e){return e.replace(ct,``)}function mt(){return lt?(lt=!1,!0):!1}function A(){lt=!0}var j={sent:{freq:660,freqSlideTo:990,duration:.12,peakGain:.06,type:`sine`},"tool-start":{freq:520,freq2:780,duration:.07,peakGain:.04,type:`triangle`},"tool-finish":{freq:880,freq2:1320,duration:.07,peakGain:.04,type:`sine`}};function ht(e,t){let n=j[t],r=e.currentTime,i=r+n.duration,a=e.createGain();a.gain.setValueAtTime(1e-4,r),a.gain.exponentialRampToValueAtTime(n.peakGain,r+n.duration*.2),a.gain.exponentialRampToValueAtTime(1e-4,i),a.connect(e.destination);let o=e.createOscillator();if(o.type=n.type,o.frequency.setValueAtTime(n.freq,r),n.freqSlideTo!==void 0&&o.frequency.linearRampToValueAtTime(n.freqSlideTo,i),o.connect(a),o.start(r),o.stop(i),n.freq2!==void 0){let t=e.createOscillator();t.type=n.type,t.frequency.setValueAtTime(n.freq2,r),t.connect(a),t.start(r),t.stop(i)}}function gt(e){let t=/^\[@[^\]\s]+ (completed|idle)\]/.exec(e);return t?t[1]===`idle`?`scoop-idle`:`scoop-notify`:/^\[@[^\]\s]+ sudo-request\]/.test(e)?`sudo-request`:/^\[scoop_wait [^\]]+\]/.test(e)?`scoop-wait`:e.startsWith(`[Session Reload]`)?`session-reload`:null}var _t=e({applyTimestampVisibility:()=>wt,formatMessageTimestamp:()=>Tt,getShowTimestamps:()=>Ct,initTimestampPreference:()=>N,setShowTimestamps:()=>M}),vt=`slicc_show_timestamps`,yt=`slicc-show-timestamps`,bt=`slicc-timestamp-visibility`,xt=!1;function St(e){if(e.getElementById(bt))return;let t=e.createElement(`style`);t.id=bt,t.textContent=[`slicc-user-message::part(timestamp),`,`slicc-agent-message .msg-ts {`,` display: none;`,`}`,`.${yt} slicc-user-message::part(timestamp),`,`.${yt} slicc-agent-message .msg-ts {`,` display: block;`,`}`].join(`
|
|
5
5
|
`),e.head.appendChild(t)}function Ct(){if(typeof localStorage>`u`||typeof localStorage?.getItem!=`function`)return!0;let e=localStorage.getItem(vt);return e===null||e===`true`}function M(e){typeof localStorage<`u`&&typeof localStorage?.setItem==`function`&&localStorage.setItem(vt,String(e)),wt()}function wt(e){if(typeof document>`u`)return;St(document);let t=e===void 0?Ct():e;document.documentElement.classList.toggle(yt,t),xt=!0}function N(){xt||wt()}function Tt(e){return e?new Date(e).toLocaleTimeString(void 0,{hour:`2-digit`,minute:`2-digit`,second:`2-digit`}):null}var Et=[`top`,`right`,`bottom`,`left`,`center`];function Dt(e){return e!=null&&Et.includes(e)}function Ot(e){let t=e?.panelMeta;return t&&typeof t.id==`string`?t:void 0}var kt=new Map,At=new EventTarget;function jt(e,t){At.dispatchEvent(new CustomEvent(`panel-registry-change`,{detail:{id:e,change:t}}))}function Mt(e){let{id:t}=e.meta,n=kt.has(t);return kt.set(t,e),jt(t,`registered`),!n}function Nt(e){return kt.delete(e)?(jt(e,`unregistered`),!0):!1}function Pt(){return[...kt.values()]}function Ft(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`)}var It=`.dock-tree__parking, .slicc-layout__parking`;function Lt(e,t){let n=e.querySelector(`[surface-id="${Ft(t)}"]`);return!n||n.closest(It)?!1:(n.requestFullscreen?.()?.catch(()=>{}),!0)}var Rt=e({DEFAULT_ZONE_AXIS:()=>Vt,LAYOUT_SCHEMA_VERSION:()=>1,ZONE_NAMES:()=>Bt,cloneLayout:()=>P,emptyLayout:()=>Ut,isPanelLocked:()=>$t,isSplitNode:()=>Wt,layoutPanelIds:()=>Kt,moveToZone:()=>Jt,parseLayoutDocument:()=>nn,removeFromZones:()=>Yt,resolveLayout:()=>Qt,sizeToFlex:()=>tn,variantMatches:()=>Gt,walkCenter:()=>Zt,zoneAxis:()=>Ht,zoneOfPanel:()=>qt,zonesFromCenter:()=>Xt}),zt=1,Bt=[`top`,`left`,`center`,`right`,`bottom`],Vt={top:`row`,bottom:`row`,left:`col`,right:`col`,center:`col`};function Ht(e,t){return e.axes?.[t]??Vt[t]}function Ut(e=`empty`){return{version:1,id:e,base:{}}}function P(e){return JSON.parse(JSON.stringify(e))}function Wt(e){return`split`in e}function Gt(e,t){return!(e.minWidth!=null&&t.width<e.minWidth||e.maxWidth!=null&&t.width>e.maxWidth||e.minHeight!=null&&t.height<e.minHeight||e.maxHeight!=null&&t.height>e.maxHeight||e.orientation!=null&&(t.width>=t.height?`landscape`:`portrait`)!==e.orientation||e.platform!=null&&t.platform!=null&&e.platform!==t.platform)}function Kt(e){let t=[],n=new Set,r=e=>{n.has(e)||(n.add(e),t.push(e))};for(let t of e.docks)for(let e of t.panels)r(e);if(e.zones)for(let t of Bt)for(let n of e.zones[t]??[])r(n);else e.center&&Zt(e.center,e=>r(e.panel));for(let t of e.floating)r(t.panel);return t}function qt(e,t){for(let n of Bt)if((e[n]??[]).includes(t))return n;return null}function Jt(e,t,n){if(qt(e,t)===n)return e;let r=P(e);for(let e of Bt){let n=r[e];n&&(r[e]=n.filter(e=>e!==t))}return r[n]=[...r[n]??[],t],r}function Yt(e,t){let n=P(e);for(let e of Bt){let r=n[e];r&&(n[e]=r.filter(e=>e!==t))}return n}function Xt(e){let t=[];return e&&Zt(e,e=>t.push(e.panel)),{center:t}}function Zt(e,t){if(!Wt(e)){t(e);return}for(let n of e.children)Zt(n,t)}function Qt(e,t){let n={id:e.id,locked:e.locked===!0,docks:P(e.base.docks??[]),zones:P(e.base.zones??null),center:P(e.base.center??null),floating:P(e.base.floating??[]),panels:P(e.panels??{}),appliedVariants:[]};return(e.variants??[]).forEach((e,r)=>{if(Gt(e.when,t)){n.appliedVariants.push(r),e.docks!==void 0&&(n.docks=P(e.docks)),e.zones!==void 0&&(n.zones=P(e.zones)),e.center!==void 0&&(n.center=P(e.center)),e.floating!==void 0&&(n.floating=P(e.floating));for(let[t,r]of Object.entries(e.panels??{}))n.panels[t]={...n.panels[t],...r}}}),n}function $t(e,t){if(e.locked||e.panels[t]?.locked===!0)return!0;for(let n of e.docks)if(n.panels.includes(t))return n.locked===!0;for(let n of e.floating)if(n.panel===t)return n.locked===!0;if(e.zones){let n=qt(e.zones,t);return n?(e.zones.locked??[]).includes(n):!1}return e.center?en(e.center,t,!1):!1}function en(e,t,n){let r=n||e.locked===!0;return Wt(e)?e.children.some(e=>en(e,t,r)):e.panel===t&&r}function tn(e){if(e==null)return`1 1 auto`;if(typeof e==`number`)return`${e} 1 0`;let t=e.trim(),n=/^([\d.]+)fr$/.exec(t);return n?`${n[1]} 1 0`:/^[\d.]+$/.test(t)?`${t} 1 0`:`0 0 ${t}`}function nn(e){if(!e||typeof e!=`object`)return{error:`layout must be an object`};let t=e;if(typeof t.id!=`string`||t.id.trim()===``)return{error:`layout.id must be a non-empty string`};if(typeof t.version!=`number`)return{error:`layout.version must be a number`};if(t.version>1)return{error:`layout.version ${t.version} is newer than supported (1)`};if(!t.base||typeof t.base!=`object`)return{error:`layout.base must be an object`};for(let e of t.base.docks??[]){if(!rn(e?.edge))return{error:`invalid dock edge: ${String(e?.edge)}`};if(!Array.isArray(e.panels))return{error:`dock.${e.edge}.panels must be an array`}}if(t.base.center!=null){let e=an(t.base.center);if(e)return{error:e}}return t}function rn(e){return e===`top`||e===`right`||e===`bottom`||e===`left`}function an(e){if(!e||typeof e!=`object`)return`center node must be an object`;let t=e;if(typeof t.panel==`string`)return null;if(t.split!==`row`&&t.split!==`col`)return'center node needs a `panel` string or a `split` of "row"/"col"';if(!Array.isArray(t.children)||t.children.length===0)return"a split node needs a non-empty `children` array";for(let e of t.children){let t=an(e);if(t)return t}return null}var on=[`top-left`,`top-right`,`bottom-left`,`bottom-right`,`top`,`right`,`bottom`,`left`],sn=`top-right`,cn=`slicc-launcher-corner`,ln=[`disconnected`,`connected`,`error`],un=`disconnected`,F=`follower-status`,dn=new Set(on),fn=new Set(ln);function pn(e,t=sn){return e&&dn.has(e)?e:t}function mn(e,t=un){return e&&fn.has(e)?e:t}function hn(e){return e>=6}function gn({clientX:e,clientY:t,viewportWidth:n,viewportHeight:r,velocityXPxPerMs:i=0,velocityYPxPerMs:a=0,flickProjectionMs:o=180}){let s=_n(e+i*o,0,n),c=_n(t+a*o,0,r),l=s/n,u=c/r,d=l>1/3&&l<2/3,f=u>1/3&&u<2/3;if(d&&f){let e=u,t=1-u,n=l,r=1-l,i=Math.min(e,t,n,r);return i===e?`top`:i===t?`bottom`:i===n?`left`:`right`}return d?u<.5?`top`:`bottom`:f?l<.5?`left`:`right`:`${u<.5?`top`:`bottom`}-${l<.5?`left`:`right`}`}function _n(e,t,n){return Math.min(Math.max(e,t),n)}var vn=`<?xml version="1.0" encoding="UTF-8"?>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/legacy-styles-B3nS5QUo.js","assets/preload-helper-Czpn1I53.js","assets/sprinkle-manager
|
|
2
|
-
import{t as e}from"./preload-helper-Czpn1I53.js";import{k as t}from"./wc-shortcuts-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/legacy-styles-B3nS5QUo.js","assets/preload-helper-Czpn1I53.js","assets/sprinkle-manager--VjyaGhT.js","assets/logger-DDBAeTLF.js","assets/sprinkle-renderer-DST9wDsJ.js","assets/wc-shortcuts-Cbk5hDbX.js","assets/rolldown-runtime-Dd_uD5pT.js","assets/account-store-FUhuBOfI.js","assets/claude-model-version-CSATLzrT.js","assets/models-BSkXF4T6.js","assets/diagnostics-DN_idNHx.js","assets/provider-env-CTOcDKrQ.js","assets/__vite-browser-external-5eBdwsFd.js","assets/openrouter.models-B-zmcypy.js","assets/libesm-BypnjKEL.js","assets/base64-DJRlyqZu.js","assets/proxied-fetch-DyBveeCl.js","assets/fetch-body-1l9I58Vk.js","assets/api-endpoint-DGxXvrur.js","assets/runtime-env-Dlaokqg1.js","assets/float-topology-YtctpJaG.js","assets/secret-topology-DLJBhHOi.js","assets/secrets-bridge-client--VZ3E0yk.js","assets/port-bridge-client-Dn8JtUyP.js","assets/tool-ui-eSQ1g2I1.js","assets/providers-DjUwvFlY.js","assets/panel-rpc-B3MSVImO.js","assets/bedrock-camp-compat-BeCSBUrZ.js","assets/icons-Ce7Vz89o.js","assets/hid-device-registry-B2R-0rNt.js","assets/serial-port-registry-CCqklAEr.js","assets/hid-operations-C97SZtrY.js","assets/usb-device-registry--JwKRTYp.js","assets/usb-operations-v1mGAdRY.js","assets/shared-mBEktoxE.js","assets/mime-types-D0xZwlMO.js","assets/theme-DFKCBK8N.js","assets/theme-engine-B5SkYf3E.js","assets/telemetry-DJyRzh6X.js","assets/feature-flags-O-TLmy2G.js","assets/bounded-walk-BjxKWNqp.js","assets/path-utils-DNJG-zQf.js","assets/sprinkle-instances-B8n7h-oP.js","assets/setup-sprinkle-exec-BX_Qq-Su.js","assets/wc-live-Kx0jpvxz.js","assets/slugify-BYJ6QVAt.js","assets/transcript-export-DP-r8eDz.js","assets/session-jsonl-BUM105sQ.js","assets/types-Dgm4REV3.js","assets/tray-runtime-config-B9jN9kUJ.js","assets/bridge-protocol-06nbmp2X.js","assets/messages-zAgr7E2T.js","assets/tray-follower-status-BAjnN7Ar.js","assets/main-DW-YS69h.js","assets/modulepreload-polyfill-P2Xu9kJm.js","assets/clipboard-eqmn97SP.js","assets/tray-join-url-BIvzbiFR.js","assets/src-BWaKqLvQ.js","assets/provider-budget-LCzMPlKv.js","assets/permissions-surface-registry-CilCRwhh.js","assets/browser-DGwroBSO.js","assets/tray-leader-BmmfZ-wo.js","assets/record-CCQFJXn_.js","assets/wc-shell-Bqj2G2_K.js","assets/wc-shell-WkeczD9x.css","assets/wc-unit-context-DhQqWVxs.js","assets/quick-llm-CM0bq0Rp.js","assets/llm-session-id-bZQs6gBN.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{t as e}from"./preload-helper-Czpn1I53.js";import{k as t}from"./wc-shortcuts-Cbk5hDbX.js";import{n}from"./runtime-env-Dlaokqg1.js";import{a as r,t as i}from"./wc-unit-context-DhQqWVxs.js";function a(e,t){return e.find(e=>e.folder===t)??e.find(e=>e.folder===`${t}-scoop`)??e.find(e=>e.name===t)}var o=`sprinkle:`,s=`slicc-sprinkle-icons`;function c(){try{let e=localStorage.getItem(s);if(!e)return{};let t=JSON.parse(e);if(typeof t!=`object`||!t)return{};let n={};for(let[e,r]of Object.entries(t))typeof r==`string`&&(n[e]=r);return n}catch{return{}}}function l(e){try{let t=new Set(e),n=Object.fromEntries(Object.entries(c()).filter(([e])=>t.has(e)));localStorage.setItem(s,JSON.stringify(n))}catch{}}function u(e,t){try{localStorage.setItem(s,JSON.stringify({...c(),[e]:t}))}catch{}}function d(e){return typeof e==`string`&&/^[a-z0-9]+(-[a-z0-9]+)*$/.test(e)}function f(e){return`${o}${e}`}function p(e){return e?.startsWith(o)?e.slice(9):null}var m=`chat`,h=new Set([`files`,`term`,`memory`,`monitor`]),g=`right`,_=g;function v(e){return h.has(e)}var y=class{#e;#t=new Map;#n=new Map;#r=new Set;#i=[];#a;constructor(e,t={}){this.#e=e,this.#a=t}#o(){return this.#e.dockTree}applyLayout(e){let t=this.#o();t?.setTree(e);for(let e of this.#i)t?.placeSurface(f(e),_)}placeSurface(e,t){let n=this.#o();if(n&&!this.#a.hostSprinkleSurface)for(let e of n.getSurfaceIds())e!==t&&e!==`chat`&&this.removeSurface(e);if(n?.placeSurface(t,e),!this.#a.hostSprinkleSurface){let e=this.#e.dock;e&&(e.active=t)}v(t)&&this.#a.onToolPanelActivate?.(t)}moveSurfaceToZone(e,t){this.#o()?.moveSurfaceToZone(e,t)}removeSurface(e){this.#o()?.removeSurface(e),v(e)&&this.#a.onToolPanelDeactivate?.(e)}setSurfaceSize(e,t){return this.#o()?.setSurfaceSize(e,t)??!1}seedDockItems(e){let t=c(),n=!1;for(let r of e)this.#t.has(r)||(this.#r.add(r),this.#t.set(r,{id:f(r),icon:t[r]??`sparkles`,label:r,kind:`sprinkle`}),n=!0);n&&this.#p()}dropUnconfirmedSeeds(){let e=!1;for(let t of this.#r)this.#n.has(t)||(this.#t.delete(t),e=!0);this.#r.clear(),e&&this.#p()}callbacks(){return{addSprinkle:(e,t,n,r,i)=>this.#s(e,t,n,i),removeSprinkle:e=>this.#c(e,{keepDockItem:!1}),minimizeSprinkle:e=>this.#l(e),registerSprinkle:(e,t,n)=>this.#u(e,t,n?.icon),unregisterSprinkle:e=>this.#f(e),closeSprinkleContent:e=>this.#c(e,{keepDockItem:!0})}}updateDockIcon(e,t){let n=this.#t.get(e);!n||n.icon===t||(this.#t.set(e,{...n,icon:t}),this.#p())}defaultIconNames(){return[...this.#t.entries()].filter(([,e])=>e.icon===`sparkles`).map(([e])=>e)}isOpen(e){return this.#n.has(e)}#s(e,t,n,r){let i=f(e),a=this.#a.hostSprinkleSurface,o=this.#n.get(e),s=!o;if(o||(o=document.createElement(`slicc-surface`),o.setAttribute(`surface-id`,i),o.setAttribute(`layout`,`flex`),a||this.#e.dockTree?.append(o),this.#n.set(e,o)),o.replaceChildren(n),this.#u(e,t,r?.icon),this.#i.includes(e)||this.#i.push(e),a){s&&a(i,o);return}r?.attention||r?.background||this.placeSurface(_,i)}#c(e,t){let n=f(e);this.#n.get(e)?.remove(),this.#n.delete(e),t.keepDockItem||this.#t.delete(e);let r=this.#i.indexOf(e);if(r>=0&&this.#i.splice(r,1),this.#p(),this.#a.removeSprinkleSurface){this.#a.removeSprinkleSurface(n);return}this.#e.dockTree?.removeSurface(n)}#l(e){this.#e.dock.removeAttribute(`active`),!this.#a.hostSprinkleSurface&&this.removeSurface(f(e))}#u(e,t,n){this.#r.delete(e);let r=this.#d(e,n);this.#t.set(e,{id:f(e),icon:r,label:t,kind:`sprinkle`}),this.#p()}#d(e,t){return d(t)?t:c()[e]??`sparkles`}#f(e){this.#n.has(e)||(this.#t.delete(e),this.#p())}#p(){this.#e.dock.items=[...this.#t.values()]}};function b(e,t){return(n,r)=>{if(!(n.type!==`sprinkle`||!n.sprinkleName)&&!t?.(n)){if(r){e.sendSprinkleLick(n.sprinkleName,n.body,n.targetScoop,{unitJid:r});return}e.sendSprinkleLick(n.sprinkleName,n.body,n.targetScoop)}}}var x=180;function S(e){e.dock.addEventListener(`slicc-dock-longpress`,n=>{let r=n.detail?.id;if(!r||p(r)===null&&!v(r))return;let i=n=>{t(e.frame??e.dockTree,r)||n<=0||requestAnimationFrame(()=>i(n-1))};i(x)})}async function C(t){let{refs:o,client:s,fs:c,instanceId:u,onAttachImage:d,onToolPanelActivate:f,onToolPanelDeactivate:m,hostSprinkleSurface:h,removeSprinkleSurface:_,log:x}=t,C=new y(o,{onToolPanelActivate:f,onToolPanelDeactivate:m,hostSprinkleSurface:h,removeSprinkleSurface:_}),{loadSprinkleStyles:T}=await e(async()=>{let{loadSprinkleStyles:e}=await import(`./legacy-styles-B3nS5QUo.js`);return{loadSprinkleStyles:e}},__vite__mapDeps([0,1]));await T();let{SprinkleManager:E,readKnownSprinkleNames:D}=await e(async()=>{let{SprinkleManager:e,readKnownSprinkleNames:t}=await import(`./sprinkle-manager--VjyaGhT.js`);return{SprinkleManager:e,readKnownSprinkleNames:t}},__vite__mapDeps([2,3,4,1,5,6,7,8,9,10,11,12,13,14,15,16,17,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]));C.seedDockItems(D());let{installSprinkleManagerHandlerOverChannel:O}=await e(async()=>{let{installSprinkleManagerHandlerOverChannel:e}=await import(`./sprinkle-bridge-channel-DTP5IbJB.js`);return{installSprinkleManagerHandlerOverChannel:e}},[]),{createSprinkleExecHandler:k}=await e(async()=>{let{createSprinkleExecHandler:e}=await import(`./setup-sprinkle-exec-BX_Qq-Su.js`);return{createSprinkleExecHandler:e}},__vite__mapDeps([43,1])),{setDipExecHandler:A}=await e(async()=>{let{setDipExecHandler:e}=await import(`./wc-live-Kx0jpvxz.js`).then(e=>e.R);return{setDipExecHandler:e}},__vite__mapDeps([44,6,7,1,8,9,10,11,12,13,14,3,15,16,17,18,19,20,21,22,23,24,25,26,27,5,28,4,29,30,31,32,33,34,35,36,37,45,46,47,48,49,50,51,38,39,52,53,54,55,56,57,58,59,60,61,62,63,64,65])),j=n(),M=k(s),N=new E(c,b(s,t.interceptWelcomeLick),C.callbacks(),()=>{let e=i(t.getUnits());e&&s.stopScoop(e.id)},{...j?{autoOpenBehavior:`attention`}:{},inlineSprinkles:new Set([`welcome`]),execHandler:M,onAttachImage:d??(()=>{}),resolveLickOriginUnitId:e=>a(t.getUnits(),e)?.id});if(window.__slicc_sprinkleManager=N,A(M),u!==void 0){let e=O(N,{instanceId:u});window.addEventListener(`beforeunload`,()=>e(),{once:!0})}else if(j){let{handleSprinkleOp:t}=await e(async()=>{let{handleSprinkleOp:e}=await import(`./sprinkle-op-handler-DyRlIvAg.js`);return{handleSprinkleOp:e}},[]);s.setSprinkleOpHandler(e=>{let{id:n,op:r,name:i,data:a,target:o,openOptions:s}=e;t(N,n,r,i,a,o,s)})}o.dock.addEventListener(`slicc-dock-select`,e=>{let n=e.detail?.id,i=p(n);if(i){let e=r(t.getUnits(),t.getSelected());(e?N.activate(i,void 0,{lickOriginTarget:e.folder}):N.activate(i)).catch(e=>x.error(`WC sprinkle activate failed`,e));return}n&&v(n)&&C.placeSurface(g,n)}),o.dock.addEventListener(`slicc-dock-collapse`,e=>{let t=e.detail?.id;if(!t)return;if(v(t)){C.removeSurface(t);return}let n=p(t);n&&N.minimize(n)}),S(o);let P=!1,F=async()=>{if(await N.refresh(),N.available().length>0){C.dropUnconfirmedSeeds();let t=N.available().map(e=>e.name),{pruneKnownSprinkleNames:n}=await e(async()=>{let{pruneKnownSprinkleNames:e}=await import(`./sprinkle-manager--VjyaGhT.js`);return{pruneKnownSprinkleNames:e}},__vite__mapDeps([2,3,4,1,5,6,7,8,9,10,11,12,13,14,15,16,17,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]));n(t),l(t)}await N.restoreOpenSprinkles().catch(e=>{x.warn(`WC shell: failed to restore open sprinkles`,e)}),P||(P=!0,e(async()=>{let{pickLucideIcon:e}=await import(`./quick-llm-CM0bq0Rp.js`).then(e=>e.n);return{pickLucideIcon:e}},__vite__mapDeps([66,6,7,1,8,9,10,11,12,13,14,3,15,16,17,18,19,20,21,22,23,24,25,26,27,67,28])).then(({pickLucideIcon:e})=>w(C,N.available(),t=>e({subject:t}))).catch(()=>void 0).finally(()=>{P=!1}))};return F().catch(e=>x.warn(`WC shell: initial sprinkle resync failed`,e)),{manager:N,zone:C,resync:F}}async function w(e,t,n){let r=new Set(e.defaultIconNames()),i=c();for(let a of t){if(!r.has(a.name)||d(a.icon))continue;let t=i[a.name];if(t){e.updateDockIcon(a.name,t);continue}let o=await n(`"${a.title}" — a SLICC sprinkle panel (${a.name})`);o&&(u(a.name,o),e.updateDockIcon(a.name,o))}}export{m as CHAT_SURFACE_ID,y as WcSprinkleZone,C as wireWcSprinkles};
|
package/dist/ui/assets/{wc-transcript-export-CidB32Dc.js → wc-transcript-export-7tvwdvKC.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/wc-live-
|
|
2
|
-
import{t as e}from"./preload-helper-Czpn1I53.js";import{n as t}from"./transcript-export-DP-r8eDz.js";import{t as n}from"./export-spool-CuNzzI8a.js";async function r(e){let t=n(`local-${crypto.randomUUID()}`);try{let n=0;for await(let r of e.chunks)await t.append(r,n++);let r=await e.completion;return await t.finalize(n,r.byteLength,r.sha256)}catch(e){throw await t.cancel(),e}}async function i(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,r.setAttribute(`data-transcript-dl`,``),r.style.display=`none`,document.body.appendChild(r);try{r.click()}finally{r.remove(),URL.revokeObjectURL(n)}}function a(e){return e instanceof t?e.detail?`${e.code}: ${e.detail}`:e.code:e instanceof Error&&e.message?e.message:`unknown error`}function o(e){if(typeof document>`u`||!customElements.get(`slicc-dialog`))return;let t=document.createElement(`slicc-dialog`);t.setAttribute(`heading`,`Export failed`);let n=document.createElement(`p`);n.style.cssText=`margin:0;padding:0.25rem 0;font-size:0.9375rem;line-height:1.5;`,n.textContent=`No transcript was written — ${a(e)}.`,t.append(n);let r=document.createElement(`button`);r.setAttribute(`slot`,`footer`),r.type=`button`,r.dataset.transcriptExportAction=`close`,r.textContent=`Close`,r.addEventListener(`click`,()=>t.remove()),t.append(r),t.addEventListener(`slicc-dialog-close`,()=>t.remove()),document.body.appendChild(t),t.show?.()}async function s(t,n,r){let{getTranscriptExportService:i}=await e(async()=>{let{getTranscriptExportService:e}=await import(`./wc-live-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/wc-live-Kx0jpvxz.js","assets/rolldown-runtime-Dd_uD5pT.js","assets/account-store-FUhuBOfI.js","assets/preload-helper-Czpn1I53.js","assets/claude-model-version-CSATLzrT.js","assets/models-BSkXF4T6.js","assets/diagnostics-DN_idNHx.js","assets/provider-env-CTOcDKrQ.js","assets/__vite-browser-external-5eBdwsFd.js","assets/openrouter.models-B-zmcypy.js","assets/libesm-BypnjKEL.js","assets/logger-DDBAeTLF.js","assets/base64-DJRlyqZu.js","assets/proxied-fetch-DyBveeCl.js","assets/fetch-body-1l9I58Vk.js","assets/api-endpoint-DGxXvrur.js","assets/runtime-env-Dlaokqg1.js","assets/float-topology-YtctpJaG.js","assets/secret-topology-DLJBhHOi.js","assets/secrets-bridge-client--VZ3E0yk.js","assets/port-bridge-client-Dn8JtUyP.js","assets/tool-ui-eSQ1g2I1.js","assets/providers-DjUwvFlY.js","assets/panel-rpc-B3MSVImO.js","assets/bedrock-camp-compat-BeCSBUrZ.js","assets/wc-shortcuts-Cbk5hDbX.js","assets/icons-Ce7Vz89o.js","assets/sprinkle-renderer-DST9wDsJ.js","assets/hid-device-registry-B2R-0rNt.js","assets/serial-port-registry-CCqklAEr.js","assets/hid-operations-C97SZtrY.js","assets/usb-device-registry--JwKRTYp.js","assets/usb-operations-v1mGAdRY.js","assets/shared-mBEktoxE.js","assets/mime-types-D0xZwlMO.js","assets/theme-DFKCBK8N.js","assets/theme-engine-B5SkYf3E.js","assets/slugify-BYJ6QVAt.js","assets/transcript-export-DP-r8eDz.js","assets/session-jsonl-BUM105sQ.js","assets/types-Dgm4REV3.js","assets/tray-runtime-config-B9jN9kUJ.js","assets/bridge-protocol-06nbmp2X.js","assets/messages-zAgr7E2T.js","assets/telemetry-DJyRzh6X.js","assets/feature-flags-O-TLmy2G.js","assets/tray-follower-status-BAjnN7Ar.js","assets/main-DW-YS69h.js","assets/modulepreload-polyfill-P2Xu9kJm.js","assets/clipboard-eqmn97SP.js","assets/tray-join-url-BIvzbiFR.js","assets/src-BWaKqLvQ.js","assets/provider-budget-LCzMPlKv.js","assets/permissions-surface-registry-CilCRwhh.js","assets/browser-DGwroBSO.js","assets/tray-leader-BmmfZ-wo.js","assets/record-CCQFJXn_.js","assets/wc-shell-Bqj2G2_K.js","assets/wc-shell-WkeczD9x.css","assets/wc-unit-context-DhQqWVxs.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{t as e}from"./preload-helper-Czpn1I53.js";import{n as t}from"./transcript-export-DP-r8eDz.js";import{t as n}from"./export-spool-CuNzzI8a.js";async function r(e){let t=n(`local-${crypto.randomUUID()}`);try{let n=0;for await(let r of e.chunks)await t.append(r,n++);let r=await e.completion;return await t.finalize(n,r.byteLength,r.sha256)}catch(e){throw await t.cancel(),e}}async function i(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,r.setAttribute(`data-transcript-dl`,``),r.style.display=`none`,document.body.appendChild(r);try{r.click()}finally{r.remove(),URL.revokeObjectURL(n)}}function a(e){return e instanceof t?e.detail?`${e.code}: ${e.detail}`:e.code:e instanceof Error&&e.message?e.message:`unknown error`}function o(e){if(typeof document>`u`||!customElements.get(`slicc-dialog`))return;let t=document.createElement(`slicc-dialog`);t.setAttribute(`heading`,`Export failed`);let n=document.createElement(`p`);n.style.cssText=`margin:0;padding:0.25rem 0;font-size:0.9375rem;line-height:1.5;`,n.textContent=`No transcript was written — ${a(e)}.`,t.append(n);let r=document.createElement(`button`);r.setAttribute(`slot`,`footer`),r.type=`button`,r.dataset.transcriptExportAction=`close`,r.textContent=`Close`,r.addEventListener(`click`,()=>t.remove()),t.append(r),t.addEventListener(`slicc-dialog-close`,()=>t.remove()),document.body.appendChild(t),t.show?.()}async function s(t,n,r){let{getTranscriptExportService:i}=await e(async()=>{let{getTranscriptExportService:e}=await import(`./wc-live-Kx0jpvxz.js`).then(e=>e.z);return{getTranscriptExportService:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,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,54,55,56,57,58,59])),a=i(),o=t.kind===`frozen`?{kind:`frozen`,sessionId:t.sessionId}:{kind:`active`};return a.export(o,{signal:n})}export{i as downloadTranscriptBlob,s as runTranscriptExportForFollower,o as showTranscriptExportFailure,r as transcriptZipToBlob};
|