sliccy 6.151.0 → 6.152.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/README.md +2 -2
- package/dist/ui/.vite/manifest.json +189 -189
- package/dist/ui/assets/CLAUDE-DT25ppH5.js +1 -0
- package/dist/ui/assets/GELATIERE-CDj3aVTD.js +1 -0
- package/dist/ui/assets/{account-store-CTHYx1eI.js → account-store-Bi429Izx.js} +1 -1
- package/dist/ui/assets/{account-store-D-V2-7XB.js → account-store-DbvkQ0SS.js} +1 -1
- package/dist/ui/assets/{adobe-CX6A0hFV.js → adobe-BqWJWeaE.js} +1 -1
- package/dist/ui/assets/{adobe-Bsgt8Bcd.js → adobe-DdtKR8DI.js} +1 -1
- package/dist/ui/assets/{agent-bridge-DTG2NGH_.js → agent-bridge-CIpwd39v.js} +1 -1
- package/dist/ui/assets/{agent-panels-0jJcCBPw.js → agent-panels-lH98T7ol.js} +1 -1
- package/dist/ui/assets/{apply-layout-BwJX_nzD.js → apply-layout-tZKbnwsH.js} +1 -1
- package/dist/ui/assets/{apps-DFG-1Xre.js → apps-C1dSvMqv.js} +1 -1
- package/dist/ui/assets/{azure-openai-Cd4wkvbR.js → azure-openai-D8fGc6n-.js} +1 -1
- package/dist/ui/assets/{azure-openai-Bp7Vwqy5.js → azure-openai-VOKQgluy.js} +1 -1
- package/dist/ui/assets/{budget-usage-source-DZ6R9FxJ.js → budget-usage-source-CMAtPuw_.js} +1 -1
- package/dist/ui/assets/{cdp-D-wkO8sU.js → cdp-pkFf1p4R.js} +1 -1
- package/dist/ui/assets/{cerebras-CwUAiXB7.js → cerebras-Bm3sAt2F.js} +1 -1
- package/dist/ui/assets/{cerebras-BLXGaqQ3.js → cerebras-DUNDYkom.js} +1 -1
- package/dist/ui/assets/{composer-speech-BsHTt6sC.js → composer-speech-hp8J4rYm.js} +1 -1
- package/dist/ui/assets/{connect-surface-Krva590y.js → connect-surface-DER3YR9o.js} +1 -1
- package/dist/ui/assets/{directed-approval-DjP8xeHL.js → directed-approval-BPD4ikZS.js} +1 -1
- package/dist/ui/assets/feature-flags-BIRXJe0o.js +1 -0
- package/dist/ui/assets/feature-flags-O-TLmy2G.js +1 -0
- package/dist/ui/assets/{fs-BX5cyCWp.js → fs-DGRiuZ7_.js} +2 -2
- package/dist/ui/assets/{fs-CYM-W3g0.js → fs-LBjt32yQ.js} +1 -1
- package/dist/ui/assets/gelatiere-store-CcLPnD5F.js +1 -0
- package/dist/ui/assets/gelatiere-unit-Dem3bPJm.js +1 -0
- package/dist/ui/assets/{github-DkSUF8FU.js → github-DrLCFpNh.js} +2 -2
- package/dist/ui/assets/{github-copilot-B6PmZsIl.js → github-copilot-47c7mBt1.js} +1 -1
- package/dist/ui/assets/{github-copilot-BllywPNR.js → github-copilot-CO6X2aln.js} +1 -1
- package/dist/ui/assets/{github-install-Bhiod3SL.js → github-install-DDG931lD.js} +1 -1
- package/dist/ui/assets/{github-D2YxBheg.js → github-mGvqV47V.js} +1 -1
- package/dist/ui/assets/{github-zip-B_KLPcT2.js → github-zip-CRDzgacf.js} +1 -1
- package/dist/ui/assets/{hear-fF6imt7a.js → hear-EPaIBh47.js} +1 -1
- package/dist/ui/assets/{help-CWxt3I4r.js → help-Dx4J5nUK.js} +1 -1
- package/dist/ui/assets/icons-D5_bMrnB.js +1 -0
- package/dist/ui/assets/{js-realm-worker-D35Rc4yg.js → js-realm-worker-W1NwmLXA.js} +1 -1
- package/dist/ui/assets/{kernel-worker-1nSCk45b.js → kernel-worker-CSl7EWVF.js} +605 -605
- package/dist/ui/assets/{local-llm-CVZ8Q-HQ.js → local-llm-B8RVJv6m.js} +1 -1
- package/dist/ui/assets/{local-llm-CNIkuio4.js → local-llm-DgfNU967.js} +1 -1
- package/dist/ui/assets/{main-B21vpjb7.js → main-DRpNlJR_.js} +3 -3
- package/dist/ui/assets/{main-cherry-DRTAg65H.js → main-cherry-3MMQag2T.js} +1 -1
- package/dist/ui/assets/{memory-curation-seam-DdbVR20I.js → memory-curation-seam-BbrZbzJR.js} +1 -1
- package/dist/ui/assets/memory-v2-flag-Aq5sA4Gq.js +1 -0
- package/dist/ui/assets/{mount-iSuMeRla.js → mount-C7zflzRy.js} +3 -3
- package/dist/ui/assets/{mount-6NvTEeb-.js → mount-Dp_qU5Y2.js} +1 -1
- package/dist/ui/assets/{mount-recovery-1GUl7Kin.js → mount-recovery-BnoihB6w.js} +1 -1
- package/dist/ui/assets/{new-session-BEaS8t8K.js → new-session-BOqT_SW5.js} +2 -2
- package/dist/ui/assets/{oauth-bootstrap-Bnm9Hluc.js → oauth-bootstrap-wpQnb2eJ.js} +2 -2
- package/dist/ui/assets/{onboarding-orchestrator-DA3N8qLk.js → onboarding-orchestrator-Cg5OuYyv.js} +1 -1
- package/dist/ui/assets/{openai-codex-CT8XmTxY.js → openai-codex-CABFjLgp.js} +1 -1
- package/dist/ui/assets/{openai-codex-3ZFC7rYG.js → openai-codex-DsFiRkuy.js} +1 -1
- package/dist/ui/assets/{openrouter-oqexrr6D.js → openrouter-BSaXc3wk.js} +1 -1
- package/dist/ui/assets/{openrouter-U8nzdgSK.js → openrouter-CBIwue8w.js} +1 -1
- package/dist/ui/assets/{openrouter-free-CuMpC2Ox.js → openrouter-free-ABxEGmS6.js} +1 -1
- package/dist/ui/assets/{openrouter-free-BHV75Chq.js → openrouter-free-DUqvrq7_.js} +1 -1
- package/dist/ui/assets/{openrouter-oauth-nnp9s5f3.js → openrouter-oauth-B13AJOfy.js} +1 -1
- package/dist/ui/assets/{openrouter-oauth-CE8wQbmk.js → openrouter-oauth-BXlp0-hM.js} +1 -1
- package/dist/ui/assets/{panel-rpc-handlers-COuAwAst.js → panel-rpc-handlers-CoUK7E8i.js} +2 -2
- package/dist/ui/assets/{panelize-shell-C0T9I3vr.js → panelize-shell-D4ZX1KLO.js} +1 -1
- package/dist/ui/assets/{provider-DhRt84O_.js → provider-DmdqWLNT.js} +2 -2
- package/dist/ui/assets/{provider-BZ25nJvN.js → provider-DwAif7wS.js} +1 -1
- package/dist/ui/assets/provider-settings-RoWAYmxg.js +1 -0
- package/dist/ui/assets/provider-store-access-BjxTePrG.js +1 -0
- package/dist/ui/assets/provider-store-access-D53Jh_a8.js +1 -0
- package/dist/ui/assets/{providers-DvfH77LU.js → providers-C572Qx3B.js} +2 -2
- package/dist/ui/assets/{providers-BUD-TOmG.js → providers-CkkY8Xv-.js} +1 -1
- package/dist/ui/assets/{quick-llm-BM48Uy17.js → quick-llm-XyKE-vu2.js} +1 -1
- package/dist/ui/assets/{recovery-screen-1DgWdLoJ.js → recovery-screen-CkN4LF6b.js} +1 -1
- package/dist/ui/assets/{run-BY9if0Td.js → run-CHF9lHjk.js} +12 -8
- package/dist/ui/assets/{run-LBlXUT9g.js → run-CgsU2X9U.js} +1 -1
- package/dist/ui/assets/{run-tBUQGAj8.js → run-CoI3v-36.js} +1 -1
- package/dist/ui/assets/{run-DkGMVntk.js → run-DJLlUc51.js} +2 -2
- package/dist/ui/assets/{run-sHVq3OqC.js → run-DKn9CEAG.js} +1 -1
- package/dist/ui/assets/{session-command-memory-BTDKlIRk.js → session-command-memory-CkF1Wu0O.js} +1 -1
- package/dist/ui/assets/{session-jsonl-C9ElI88i.js → session-jsonl-BxmCV6ZT.js} +1 -1
- package/dist/ui/assets/{setup-feature-flags-remote-BSh_mU6y.js → setup-feature-flags-remote-BOPBdu73.js} +1 -1
- package/dist/ui/assets/sidecar-repair-DTpP1UCt.js +1 -0
- package/dist/ui/assets/{silent-renew-backoff-CjuekGO-.js → silent-renew-backoff-D_Ca4dHW.js} +1 -1
- package/dist/ui/assets/{skills-CpYV01Jw.js → skills-DMD6FAba.js} +1 -1
- package/dist/ui/assets/slicc-version-Dd4MNHfh.js +1 -0
- package/dist/ui/assets/{snapshot-BgoHGdsr.js → snapshot-CcPTn207.js} +1 -1
- package/dist/ui/assets/{snapshot-features-BsejqdNs.js → snapshot-features-DEg5JKC2.js} +1 -1
- package/dist/ui/assets/{soundscape-SdyQ7S6X.js → soundscape-DaWATBH6.js} +1 -1
- package/dist/ui/assets/{speak-BNF149HW.js → speak-CqI4RPcn.js} +1 -1
- package/dist/ui/assets/sprinkle-manager-CLnqNBI2.js +1 -0
- package/dist/ui/assets/{sprinkle-renderer-C2XgIknW.js → sprinkle-renderer-Ds0A8-lz.js} +1 -1
- package/dist/ui/assets/{state-CjjLrIML.js → state-DkyUdMb9.js} +1 -1
- package/dist/ui/assets/{store-BCLGrVX6.js → store-DpZB5zm-.js} +1 -1
- package/dist/ui/assets/{store-CvihM7Jf.js → store-k6v74BKL.js} +1 -1
- package/dist/ui/assets/{sudo-CP0WF_Dt.js → sudo-Ca-6XnsF.js} +1 -1
- package/dist/ui/assets/{sync-dialog-CKn0kEW6.js → sync-dialog-lEpKKdSI.js} +1 -1
- package/dist/ui/assets/{transformers-env--5SUxNdC.js → transformers-env-YIQa4R8A.js} +1 -1
- package/dist/ui/assets/{tray-sidecar-C23TX8tB.js → tray-sidecar-CaH4BPN4.js} +1 -1
- package/dist/ui/assets/{upgrade-detection-D0fM5vOk.js → upgrade-detection-DXnNXF0q.js} +1 -1
- package/dist/ui/assets/{voice-reply-C3gizSsU.js → voice-reply-DrgAWZ-v.js} +1 -1
- package/dist/ui/assets/{wc-attach-b-vJMDha.js → wc-attach-r1uulrZg.js} +2 -2
- package/dist/ui/assets/{wc-extension-wIkTNatM.js → wc-extension-CjcP0IUe.js} +2 -2
- package/dist/ui/assets/{wc-follower-DT45jmiV.js → wc-follower-BiybcNKC.js} +3 -3
- package/dist/ui/assets/{wc-follower-oauth-Csvs06nc.js → wc-follower-oauth-BudsdjUq.js} +1 -1
- package/dist/ui/assets/{wc-gelatiere-CDDK_ZCr.js → wc-gelatiere-DrdaBGFz.js} +1 -1
- package/dist/ui/assets/{wc-live-B1LBfNoB.js → wc-live-Blq60Tc4.js} +5 -5
- package/dist/ui/assets/{wc-nav-BjCXV0QO.js → wc-nav-BV3fFFR-.js} +2 -2
- package/dist/ui/assets/{wc-onboarding-CavxP4i5.js → wc-onboarding-CbEmJk6n.js} +2 -2
- package/dist/ui/assets/{wc-placeholder-GV6fMR1V.js → wc-placeholder-B72GI1Ix.js} +3 -3
- package/dist/ui/assets/{wc-secret-request-BxtjrJCp.js → wc-secret-request-DVh2i4lv.js} +1 -1
- package/dist/ui/assets/wc-settings-8svRd4to.js +61 -0
- package/dist/ui/assets/{wc-shell-CILjNftp.js → wc-shell-wqt25zNR.js} +3 -3
- package/dist/ui/assets/{wc-shortcut-config-DYsfQDKH.js → wc-shortcut-config-CaRkzMJo.js} +1 -1
- package/dist/ui/assets/{wc-shortcuts-DQqpU5D0.js → wc-shortcuts-Z9adyTy_.js} +191 -191
- package/dist/ui/assets/{wc-sprinkles-Vk9qAca5.js → wc-sprinkles-DfFO3oEv.js} +2 -2
- package/dist/ui/assets/{wc-transcript-export-BqJCJAA_.js → wc-transcript-export-D32dW30S.js} +2 -2
- package/dist/ui/assets/{wc-tray-BHCAAGcE.js → wc-tray-DPCOLBif.js} +4 -4
- package/dist/ui/assets/welcome-detection-ZibS2cDr.js +1 -0
- package/dist/ui/assets/{whisper-session-CakRRJzg.js → whisper-session-DSrJFZhS.js} +2 -2
- package/dist/ui/assets/{xai-grok-BRFyVzNz.js → xai-grok-B3juI1hL.js} +1 -1
- package/dist/ui/assets/{xai-grok-CcjRP0UR.js → xai-grok-D-sTGaVQ.js} +1 -1
- package/dist/ui/index.html +4 -4
- package/dist/ui/lucide-icons.js +237 -229
- package/dist/ui/packages/webapp/index.html +4 -4
- package/package.json +1 -1
- package/dist/ui/assets/CLAUDE-BcGVPwX6.js +0 -1
- package/dist/ui/assets/GELATIERE-BnNVlnMz.js +0 -1
- package/dist/ui/assets/feature-flags-BX-OhLDm.js +0 -1
- package/dist/ui/assets/feature-flags-CYCRk6Dq.js +0 -1
- package/dist/ui/assets/gelatiere-store-D36IMluj.js +0 -1
- package/dist/ui/assets/gelatiere-unit-7xZALH_i.js +0 -1
- package/dist/ui/assets/icons-Df1OSRR-.js +0 -1
- package/dist/ui/assets/memory-v2-flag-D50hE5F1.js +0 -1
- package/dist/ui/assets/provider-settings-C7aETmT8.js +0 -1
- package/dist/ui/assets/provider-store-access-DbQbBLKv.js +0 -1
- package/dist/ui/assets/provider-store-access-Dgs9tUNQ.js +0 -1
- package/dist/ui/assets/sidecar-repair-6VtC2pRC.js +0 -1
- package/dist/ui/assets/slicc-version-C2MGXZHy.js +0 -1
- package/dist/ui/assets/sprinkle-manager-BQ9bl-u3.js +0 -1
- package/dist/ui/assets/wc-settings-CSc0UPJ_.js +0 -59
- package/dist/ui/assets/welcome-detection-C79dK7H1.js +0 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>slicc</title>
|
|
7
7
|
<link rel="icon" type="image/png" href="/logos/sliccy-color-1scoops-32x32.png" />
|
|
8
|
-
<script type="module" crossorigin src="/assets/main-
|
|
8
|
+
<script type="module" crossorigin src="/assets/main-DRpNlJR_.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-Dd_uD5pT.js">
|
|
10
10
|
<link rel="modulepreload" crossorigin href="/assets/modulepreload-polyfill-P2Xu9kJm.js">
|
|
11
11
|
<link rel="modulepreload" crossorigin href="/assets/preload-helper-Czpn1I53.js">
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
<link rel="modulepreload" crossorigin href="/assets/port-bridge-client-Dn8JtUyP.js">
|
|
28
28
|
<link rel="modulepreload" crossorigin href="/assets/secrets-bridge-client--VZ3E0yk.js">
|
|
29
29
|
<link rel="modulepreload" crossorigin href="/assets/tool-ui-eSQ1g2I1.js">
|
|
30
|
-
<link rel="modulepreload" crossorigin href="/assets/providers-
|
|
30
|
+
<link rel="modulepreload" crossorigin href="/assets/providers-C572Qx3B.js">
|
|
31
31
|
<link rel="modulepreload" crossorigin href="/assets/panel-rpc-B3MSVImO.js">
|
|
32
32
|
<link rel="modulepreload" crossorigin href="/assets/bedrock-camp-compat-BeCSBUrZ.js">
|
|
33
|
-
<link rel="modulepreload" crossorigin href="/assets/account-store-
|
|
33
|
+
<link rel="modulepreload" crossorigin href="/assets/account-store-Bi429Izx.js">
|
|
34
34
|
<link rel="modulepreload" crossorigin href="/assets/bridge-protocol-06nbmp2X.js">
|
|
35
35
|
<link rel="modulepreload" crossorigin href="/assets/messages-zAgr7E2T.js">
|
|
36
36
|
<link rel="modulepreload" crossorigin href="/assets/tray-runtime-config-B9jN9kUJ.js">
|
|
37
37
|
<link rel="modulepreload" crossorigin href="/assets/telemetry-DJyRzh6X.js">
|
|
38
|
-
<link rel="modulepreload" crossorigin href="/assets/feature-flags-
|
|
38
|
+
<link rel="modulepreload" crossorigin href="/assets/feature-flags-O-TLmy2G.js">
|
|
39
39
|
<link rel="modulepreload" crossorigin href="/assets/tray-follower-status-BAjnN7Ar.js">
|
|
40
40
|
<link rel="modulepreload" crossorigin href="/assets/clipboard-eqmn97SP.js">
|
|
41
41
|
<link rel="modulepreload" crossorigin href="/assets/tray-join-url-BIvzbiFR.js">
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e="# CLAUDE.md\n\n`packages/vfs-root/` is the default VFS payload — content, not runtime code — copied into the app's\nVFS on init/reset. Paths below are relative to `packages/vfs-root/`.\n\n## Directory Structure\n\n| Path | Becomes / purpose |\n| --------------------- | -------------------------------------------------------------------------------- |\n| `shared/` | `/shared/` — shared content |\n| `workspace/` | `/workspace/` — default workspace content |\n| `shared/CLAUDE.md` | Agent-facing runtime instructions → `/shared/CLAUDE.md` |\n| `shared/MEMORY.md` | User-editable memory curator config → `/shared/MEMORY.md` |\n| `shared/DREAMING.md` | User-editable memory dreamer config → `/shared/DREAMING.md` |\n| `shared/GELATIERE.md` | User-editable gelatiere pass instructions + config → `/shared/GELATIERE.md` |\n| `shared/wiki/` | Shared knowledge-base scaffold (`WIKI.md` schema, empty `index.md`/`log.md`) |\n| `shared/sprinkles/` | Built-in sprinkle UIs |\n| `shared/sounds/` | Shared notification sounds |\n| `workspace/skills/` | Default installable workspace skills |\n| `etc/` | System config → `/etc/` (`models`, `sudoers`, `APPROVALS.md`, `slicc/keys.json`) |\n\n## Adding Default Content\n\n### Gelatiere\n\nDesign, pieces table, and sprinkle details: `docs/gelatiere.md`.\n\n- `shared/GELATIERE.md` is the gelatiere's twin of `MEMORY.md`: the store's build-time fallback and\n the seeded `/shared/GELATIERE.md`, seeded only when absent, user-edited only. Same frontmatter\n dialect (`base/instruction-frontmatter.ts`); keys `intervalHours`, `nightly` (5-field cron),\n `maxSuggestions` (≤10). No placeholders: the unit `cat`s it every pass, so keep it self-contained\n (literal paths, `date` for today).\n- The gelatiere is a persistent SCOOP under a synthetic owner (`scoops/gelatiere-unit.ts`), not a\n spawned agent: charter is the record's `systemPromptAppend`, the pass recipe is this file.\n Deliverable is `gelatiere suggest <candidates.json> && gelatiere deliver`. Keep recipe commands on\n `GELATIERE_ALLOWED_COMMANDS` (a child escalates the rest); cross-pass memory `/shared/.gelatiere/notes.md`.\n- `shared/sprinkles/suggestions/suggestions.shtml` is the suggestion stream, split from the\n onboarding-only `shared/sprinkles/welcome/welcome.shtml` so follower/extension welcome-dip\n handling can never mask or restart it; re-posted as a dip on every delivery, rail-pickable under\n Memory v2. Card buttons and lick verbs (`gelatiere-install`/`-try`/`-dismiss`): the doc.\n\n### Memory curator\n\n- `shared/MEMORY.md` is the single source for the runner's build-time fallback and the seeded\n `/shared/MEMORY.md`, seeded only when absent so customizations survive later boots. User-edited\n only: the curator cannot rewrite its own instructions. It may rewrite the whole memory file; the\n hard char budget covers the file — no protected region.\n- Frontmatter is a strict YAML subset: block-array items may have `#` comment tails; inline entries\n with commas must be quoted; a bare `/` is rejected from `writablePaths`. `allowedCommands` extend\n the built-in base set, never replace it.\n- **The curator edits a staged draft, never the live file.** `{{MEMORY_PATH}}` resolves to\n `/sessions/.curation/<archive>/draft.md`; the agent bridge three-way-merges it onto the live file\n on exit 0, so a killed/failed run leaves live memory untouched and per-archive keying keeps\n parallel curators from sharing state. Merge/ledger mechanics (`mergeOnSuccess`, `status.json`,\n `memoryCuratedAt`/`memoryFailed`): `docs/webapp-details.md`.\n- Every `##`/`###` section ends with a `YYYY-MM-DD` last-verified date (UTC, matching archive\n timestamps). Each pass re-verifies oldest first; undated sections are maximally stale.\n- Entries follow the provenance/supersession grammar (MEMORY.md \"Entry grammar\"): `human:`/\n `process:` actor prefixes, version pins instead of confidence scores, `stale_after: YYYY-MM-DD` as\n an absolute instant, corrections that REPLACE claims, and a `## Not true` block for refuted claims\n kept as traps. The dreamer (`DREAMING.md`) enforces the grammar and reports contradiction-pair\n counts before/after so an unproductive pass is visible.\n- Write grant is `/workspace/CLAUDE.md` alone, not `/workspace/`: a directory-wide grant would also\n let it install into `/workspace/skills/` (it can still `upskill`). Reads still cover `/workspace/`.\n Single-file `writablePaths` work because `generateScoopSudoers` emits the bare path + `/**`.\n- The pass is detached, so it spawns with `notifyOnComplete`; its closing message reaches the cone\n on `scoop-notify` (where skill suggestions land), else the report is lost.\n- Turn count is the cost (every turn re-reads the whole context as a cache read). Two prompt-side\n levers keep it down: `thinkingLevel` (default `medium`; spawned agents otherwise resolve to `off`)\n so the curator plans the cut rather than converging by trial and error, and archive-reading\n recipes so it never `cat`s a huge archive whose `slicc:session-data` block is one line.\n\n### Approver agent\n\nFull policy reference: `docs/approvals.md`.\n\n- `etc/APPROVALS.md` is the single source for the runner's build-time fallback and the seeded\n `/etc/APPROVALS.md`. `SudoManager.ensureDefaults()` seeds it when absent, on the ungated handle —\n same place and reason as `/etc/sudoers`: it is self-protected, so anything else creating it (the\n `upgrade apply` merge) would prompt the owner to approve a default already in force.\n- It lives in `/etc/` because it is POLICY, next to `sudoers` — not `/shared/` (agent-visible\n content). Writes are self-protected in `base/sudoers.ts` (`isSelfProtectedWrite`): it decides what\n a GUEST may do, so a cone acting on a guest's message must not rewrite the rules gating that guest\n without an owner prompt.\n- Re-read on EVERY decision, not cached; missing/unreadable falls back to the bundled default rather\n than wedging approvals shut. The optional ```yaml block tunes `timeoutSeconds` (clamped), `model`,\n `thinkingLevel`; unreadable values fall back. The approver never reads the file: the runtime puts\n it in the prompt; the agent has no write grant.\n\n### Skills, Sprinkles, Sounds\n\n- **Skills**: add under `workspace/skills/<skill-name>/` with a `SKILL.md` plus any companion assets\n or `.jsh` scripts.\n- **Sprinkles**: add under `shared/sprinkles/<name>/`; name the main file `<name>.shtml` to match\n discovery.\n- **Sounds**: add under `shared/sounds/`; prefer stable filenames since shell commands and docs\n reference them directly.\n\n### Wiki\n\n- `shared/wiki/` seeds the shared KB at `/shared/wiki/`: `WIKI.md` is the schema contract\n (upgrade-merged like `MEMORY.md`); `index.md`/`log.md` are user data seeded once.\n- The read-only CLI is `workspace/skills/wiki/wiki.jsh`, adapted from `ai-ecoverse/skills` →\n `skills/llm-wiki/wiki.jsh` with the wiki root pinned to `/shared/wiki`; keep it synced with\n upstream and keep the Tier-0 behavior (fs bound via `require`, zero scans fail loudly) — both\n pinned by `tests/shell/wiki-jsh.test.ts`.\n- The nightly dreamer (`shared/DREAMING.md`) holds the write path: over-budget reference knowledge\n moves from memory files into wiki pages, leaving a pointer.\n\n### Keyboard shortcuts\n\n- `etc/slicc/keys.json` is the user's OVERRIDE file for keyboard mode, seeded on first boot by\n `ui/wc/wc-shortcut-config.ts` with `\"trigger\": \"auto\"` and `\"bindings\": {}` — the keymap itself is\n `DEFAULT_KEYMAP` in `ui/wc/wc-shortcuts.ts` (a test asserts the file binds nothing). `trigger` is\n `auto`|`esc`|`null` (Theme settings switches it live).\n- **Never list a binding in the seed again.** An empty bindings object is what makes the shipped map\n — and every future change to it — inheritable; a seed pinning the whole map would freeze every\n booted install to it, so no later map or new command could reach anyone.\n- The one write beyond seeding is a one-shot migration: a file still holding the v1 map exactly\n (`isUntouchedV1Document`) is replaced once; anything else is the user's and left alone. Theme\n settings may also rewrite `trigger`.\n- The `//` comment must name every `CommandId` (a test asserts it) and carries the v1 keymap as a\n paste-back block, where `s` maps to `sprinkles` (not a cycle).\n\n## External Handoffs\n\nProtocol reference: `docs/slicc-handoff.md`. Agent-facing flow: `workspace/skills/handoff/SKILL.md`\n(bundled to `/workspace/skills/handoff/SKILL.md`), reached through the injected skill index — not\nthrough `shared/CLAUDE.md`, which only states handoffs are human-gated. Mechanism: RFC 8288 `Link`\nheader carrying `https://www.sliccy.ai/rel/handoff` or `.../rel/upskill` on a main-frame response →\n`navigate` lick → cone approval card. On behavior changes keep skill and doc aligned; don't\nduplicate their content here or in `shared/CLAUDE.md`.\n\n## Important Distinction\n\n`packages/vfs-root/shared/CLAUDE.md` is **agent-facing runtime content** bundled into the VFS —\ndistinct from the developer-facing `CLAUDE.md` files in the repo. Don't merge the roles.\n";export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e='---\nintervalHours: 24\nnightly: \'0 3 * * *\'\nmaxSuggestions: 5\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 — 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.\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`.\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 shell command SLICC ships, one man page each — the use-case surface.\ngelatiere commands\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` 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\nThe `install` command 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\nRules:\n\n- `id` is a stable slug (`skill-github`, `use-case-fswatch-deploy`, `tip-mount-once`) 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". 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.\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) and `maxSuggestions` (capped at 10).\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';export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=Object.freeze([Object.freeze({id:`experimental-settings`,label:`Experimental settings`,description:`Show controls for experimental features.`,defaultValue:`on`,floatDefaults:Object.freeze({cherry:`off`}),userToggleable:!1}),Object.freeze({id:`panel-layouts`,label:`Panel layouts`,description:`Arrange the UI as movable, resizable panels instead of the fixed workbench.`,defaultValue:`off`,userToggleable:!0}),Object.freeze({id:`agentic-memory`,label:`Agentic memory`,description:`Curate session memory with a background agent instead of a one-shot extraction call.`,defaultValue:`off`,userToggleable:!0}),Object.freeze({id:`multiple-cones`,label:`Multiple cones`,description:`Add, switch between and remove cones from the freezer rail. Extra cones share the workspace.`,defaultValue:`on`,floatDefaults:Object.freeze({cherry:`off`}),userToggleable:!1}),Object.freeze({id:`compact-on-idle`,label:`Compact on idle`,description:`When a cone has been idle for a while with a large context, summarize its history in the background. The full transcript is kept in /sessions.`,defaultValue:`off`,userToggleable:!0}),Object.freeze({id:`memory-v2`,label:`Memory v2`,description:`Searchable session history, scoop pre-compaction snapshots, and the gelatiere — a resident advisor that reviews your sessions and suggests skills and use cases.`,defaultValue:`off`,userToggleable:!0})]);new Map(e.map(e=>[e.id,e]));const t=new Set([`1`,`on`,`true`]);let n=`standalone`,r={},i={};function a(t,n={},r=o()){let a={};for(let o of e){let e=r[o.id];if(typeof e==`string`&&f(o,t)){a[o.id]=e;continue}let s=i[o.id];if(typeof s==`string`&&f(o,t)){a[o.id]=s;continue}let c=n[o.id];a[o.id]=typeof c==`string`?c:d(o,t)}return a}function o(){try{let e=m()?.getItem(`slicc_feature_flags`);return e?p(JSON.parse(e)):{}}catch{return{}}}function s(e,t={}){n=e,r=p(t),i={}}function c(e){return a(n,r)[e]}function l(e){return typeof e==`string`&&t.has(e.trim().toLowerCase())}function u(e){return l(c(e))}function d(e,t){return e.floatDefaults?.[t]??e.defaultValue}function f(e,t){return e.userToggleable&&(e.overridableFloats===void 0||e.overridableFloats.includes(t))}function p(t){if(typeof t!=`object`||!t||Array.isArray(t))return{};let n=t,r={};for(let t of e){let e=n[t.id];typeof e==`string`&&(r[t.id]=e)}return r}function m(){try{let e=globalThis.localStorage;return typeof e?.getItem!=`function`||typeof e.setItem!=`function`?void 0:e}catch{return}}export{u as n,s as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=`slicc_feature_flags`,t=Object.freeze([Object.freeze({id:`experimental-settings`,label:`Experimental settings`,description:`Show controls for experimental features.`,defaultValue:`on`,floatDefaults:Object.freeze({cherry:`off`}),userToggleable:!1}),Object.freeze({id:`panel-layouts`,label:`Panel layouts`,description:`Arrange the UI as movable, resizable panels instead of the fixed workbench.`,defaultValue:`off`,userToggleable:!0}),Object.freeze({id:`agentic-memory`,label:`Agentic memory`,description:`Curate session memory with a background agent instead of a one-shot extraction call.`,defaultValue:`off`,userToggleable:!0}),Object.freeze({id:`multiple-cones`,label:`Multiple cones`,description:`Add, switch between and remove cones from the freezer rail. Extra cones share the workspace.`,defaultValue:`on`,floatDefaults:Object.freeze({cherry:`off`}),userToggleable:!1}),Object.freeze({id:`compact-on-idle`,label:`Compact on idle`,description:`When a cone has been idle for a while with a large context, summarize its history in the background. The full transcript is kept in /sessions.`,defaultValue:`off`,userToggleable:!0}),Object.freeze({id:`memory-v2`,label:`Memory v2`,description:`Searchable session history, scoop pre-compaction snapshots, and the gelatiere — a resident advisor that reviews your sessions and suggests skills and use cases.`,defaultValue:`off`,userToggleable:!0})]),n=new Map(t.map(e=>[e.id,e])),r=new Set([`1`,`on`,`true`]),i=`standalone`,a={},o={};function s(){return t}function c(e,n={},r=l()){let i={};for(let a of t){let t=r[a.id];if(typeof t==`string`&&v(a,e)){i[a.id]=t;continue}let s=o[a.id];if(typeof s==`string`&&v(a,e)){i[a.id]=s;continue}let c=n[a.id];i[a.id]=typeof c==`string`?c:_(a,e)}return i}function l(){try{let t=b()?.getItem(e);return t?y(JSON.parse(t)):{}}catch{return{}}}function u(t){try{b()?.setItem(e,JSON.stringify(y(t)))}catch{}}function d(e,t){let r=n.get(e);if(!r||!v(r,i))return;let a=l();typeof t==`string`?a[e]=t:delete a[e],u(a)}function f(e,t={}){i=e,a=y(t),o={}}function p(e){let t={};for(let[r,a]of Object.entries(e)){let e=n.get(r);!e||typeof a!=`string`||!v(e,i)||(t[e.id]=a)}return o={...o,...t},t}function m(e){return c(i,a)[e]}function h(e){return typeof e==`string`&&r.has(e.trim().toLowerCase())}function g(e){return h(m(e))}function _(e,t){return e.floatDefaults?.[t]??e.defaultValue}function v(e,t){return e.userToggleable&&(e.overridableFloats===void 0||e.overridableFloats.includes(t))}function y(e){if(typeof e!=`object`||!e||Array.isArray(e))return{};let n=e,r={};for(let e of t){let t=n[e.id];typeof t==`string`&&(r[e.id]=t)}return r}function b(){try{let e=globalThis.localStorage;return typeof e?.getItem!=`function`||typeof e.setItem!=`function`?void 0:e}catch{return}}export{d as a,s as i,f as n,g as r,p as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./logger-LESFN7Hj.js";import{a as t,i as n,n as r,r as i,t as a}from"./gelatiere-constants-BYJlhm8R.js";import o from"./GELATIERE-BnNVlnMz.js";import{a as s,i as c,t as l}from"./instruction-frontmatter-Bk64dayp.js";const u=e(`gelatiere-store`),d=`/shared/GELATIERE.md`,f=`/shared/.gelatiere`,p=`${f}/suggestions.json`,m=`${f}/state.json`,h=`gelatiere-suggestions`,g=`/workspace/skills/gelatiere/SKILL.md`,_=`0 3 * * *`,v=24,y=5,b=10,x=40,ee=5,S={arrayKeys:new Set,scalarKeys:new Set([`intervalHours`,`nightly`,`maxSuggestions`])},C=new Set([`skill`,`use-case`,`tip`]);function w(e){let t=s(e,`GELATIERE.md`),n=l(t.frontmatter,S),r=c(n.nightly,`nightly`)??`0 3 * * *`;if(r.trim().split(/\s+/).length!==5)throw Error(`nightly must be a 5-field cron expression`);return{intervalHours:T(n.intervalHours,`intervalHours`,24),nightly:r.trim(),maxSuggestions:Math.min(10,T(n.maxSuggestions,`maxSuggestions`,5)),instructions:t.body}}function T(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 E(e){try{return w(await D(e,d))}catch(e){return u.warn(`Could not load valid GELATIERE.md; using built-in default`,{error:ne(e)}),w(o)}}async function D(e,t){let n=await e.readFile(t,{encoding:`utf-8`});return typeof n==`string`?n:new TextDecoder().decode(n)}async function O(e,t){try{return JSON.parse(await D(e,t))}catch{return}}async function k(e){let t=await O(e,p);if(!Array.isArray(t))return[];let n=[];for(let e of t){let t=J(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 A(e,t){await e.mkdir(f,{recursive:!0}),await e.writeFile(p,`${JSON.stringify(t,null,2)}\n`)}async function j(e){let t=await O(e,m);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 M(e,t){await e.mkdir(f,{recursive:!0}),await e.writeFile(m,`${JSON.stringify(t,null,2)}\n`)}function N(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 P(e,t=new Date){await M(e,{...await j(e),lastTriggeredAt:t.toISOString()})}function F(e){return e.filter(e=>!e.dismissedAt&&!e.takenAt)}function I(e){return e.filter(e=>!!e.takenAt)}function L(e,t){let n=F(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 R(e,t,n=new Date){return V(e,t,`dismissedAt`,n)}async function z(e,t,n=new Date){return V(e,t,`takenAt`,n)}let B=Promise.resolve();function V(e,t,n,r){let i=async()=>{let i=await k(e),a=i.find(e=>e.id===t&&!e.dismissedAt&&!e.takenAt);return a?(a[n]=r.toISOString(),await A(e,i),!0):!1},a=B.then(i,i);return B=a.catch(()=>!1),a}const H=/[^a-z0-9]+/g;function U(e){return e.toLowerCase().replace(H,`-`).replace(/^-+|-+$/g,``).slice(0,60)}function W(e,t){if(typeof e!=`string`)return;let n=e.trim();return n?n.slice(0,t):void 0}function G(e){if(e)try{let t=new URL(e).protocol;return t===`http:`||t===`https:`?e:void 0}catch{return}}const K=/^[A-Za-z0-9@._/:=-]+$/;function q(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 J(e,t){if(!e||typeof e!=`object`)return null;let n=e,r=typeof n.kind==`string`?n.kind:``,i=W(n.title,200),a=W(n.body,1e3);if(!C.has(r)||!i||!a)return null;let o=U(W(n.id,80)??`${r}-${i}`)||U(`${r}-${i}`);if(!o)return null;let s=t??W(n.createdAt,40)??``,c=n.skill===void 0?void 0:W(n.skill,120),l=n.install===void 0?void 0:q(W(n.install,300)),u=n.prompt===void 0?void 0:W(n.prompt,1e3);return r===`skill`&&(!c||!l)||r===`use-case`&&!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:G(W(n.url,500))},...n.evidence===void 0?{}:{evidence:W(n.evidence,500)},createdAt:s}}function Y(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=J(e,t);if(!(!r||i.has(r.id))&&(i.add(r.id),a.push(r),a.length>=n))break}return a}function X(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=Z(a,e=>!!e.dismissedAt),t=e>=0?e:Z(a,e=>!!e.takenAt);a.splice(t>=0?t:a.length-1,1)}return{merged:a,added:i}}function Z(e,t){for(let n=e.length-1;n>=0;--n)if(t(e[n]))return n;return-1}async function Q(e,t,n=new Date){let r=await E(e),i=Y(t,n.toISOString(),r.maxSuggestions),{merged:a,added:o}=X(await k(e),i);await A(e,a);let s=await j(e);return await M(e,{...s,passes:s.passes+1,lastPassAt:n.toISOString()}),{added:o,open:F(a)}}function te(e,t){return{action:h,data:{added:e.length,open:t.length,suggestions:t.slice(0,5),path:p,skill:g}}}function ne(e){return e instanceof Error?e.message:String(e)}function re(e){let t=$(e);if(!t)return null;let{action:n,bag:r}=t;return n===`gelatiere-suggestions`?ie(n,r):n===`session-settled`?oe(n,r):n===`run`?se(n,r):{action:n,headline:`gelatiere: ${n}`,titles:[]}}function $(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 ie(e,t){let n=ae(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 ae(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 oe(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 se(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:[]}}export{v as DEFAULT_GELATIERE_INTERVAL_HOURS,o as DEFAULT_GELATIERE_MD,_ as DEFAULT_GELATIERE_NIGHTLY_CRON,y as DEFAULT_MAX_SUGGESTIONS,f as GELATIERE_DIR,a as GELATIERE_FOLDER,d as GELATIERE_INSTRUCTIONS_PATH,r as GELATIERE_NIGHTLY_CRON_NAME,i as GELATIERE_OWNER_JID,g as GELATIERE_SKILL_PATH,n as GELATIERE_SPRINKLE_NAME,m as GELATIERE_STATE_PATH,h as GELATIERE_SUGGESTIONS_ACTION,p as GELATIERE_SUGGESTIONS_PATH,ee as LICK_SUGGESTION_LIMIT,x as MAX_STORED_SUGGESTIONS,b as MAX_SUGGESTIONS_PER_PASS,te as buildGelatiereLickBody,Y as coerceSuggestions,re as describeGelatiereLick,R as dismissGelatiereSuggestion,t as isGelatiereUnit,N as isPassDue,E as loadGelatiereConfig,X as mergeSuggestions,F as openSuggestions,w as parseGelatiereDocument,j as readGelatiereState,k as readGelatiereSuggestions,P as recordGelatiereTrigger,Q as recordPass,L as suggestionsSince,z as takeGelatiereSuggestion,I as takenSuggestions,M as writeGelatiereState,A as writeGelatiereSuggestions};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./logger-LESFN7Hj.js";import{E as t,s as n}from"./record-YqlVEfh_.js";import{n as r}from"./manager-CstXzWYQ.js";import{a as i,i as a,n as o,r as s,t as c}from"./gelatiere-constants-BYJlhm8R.js";const l=e(`gelatiere-unit`),u=[`You are the gelatiere: the resident advisor of this SLICC installation, a persistent scoop no cone owns. The user cannot message you directly and you never message them.`,"You act only when a lick arrives — a `[Cron Event: gelatiere-nightly]`, a `[Sprinkle Event: gelatiere]` (a session ended, or someone ran `gelatiere run`), or a direct message asking for a pass.","On every such lick: `cat /shared/GELATIERE.md` and follow it exactly. It ends with `gelatiere suggest <file>` and `gelatiere deliver`; those two commands are how your work reaches the cones. Do not install skills, do not edit memory files, do not message cones any other way.",`Reply in one short line per pass (what you looked at, how many suggestions landed). Your own history is compacted while you idle; keep durable notes in /shared/.gelatiere/notes.md, not in your replies.`].join(` `);var d=class extends Error{holder;constructor(e){super(`folder "${c}" is held by ${e.parentJid===null?`cone`:`scoop`} ${e.jid} — drop it, then run \`gelatiere init\``),this.holder=e,this.name=`GelatiereFolderTakenError`}};function f(e){return e.find(i)}function p(e){return e.listCronTasks().find(e=>e.name===`gelatiere-nightly`&&e.scoop===`gelatiere`)}function m(e){return{folder:e.folder,name:e.name,jid:e.jid}}const h=`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(`.`),g=[`/sessions/`,`/shared/`,`/workspace/`,`/home/`,`/cones/`],_=[`/shared/.gelatiere/`];async function v(e){let i=e.getScoops(),a=f(i);if(a)return{folder:a.folder,jid:a.jid,created:!1};let o=i.find(e=>e.folder===c);if(o)throw new d(o);let p=t(i)[0],m=p?n(p):void 0,v={...r({parentId:s,name:c,folder:c,notifyOnComplete:!1,config:{systemPromptAppend:u,visiblePaths:[...g],writablePaths:[..._],allowedCommands:[...h]}}),assistantLabel:c,...m?{model:m}:{}};return await e.registerScoop(v),l.info(`gelatiere unit registered`,{jid:v.jid}),{folder:v.folder,jid:v.jid,created:!0}}function y(e,n){return{ensureUnit:()=>v(e),unregisterOwned:async()=>{for(let e of n.listCronTasks())e.name===`gelatiere-nightly`&&await n.deleteCronTask(e.id);let t=e.getScoops().filter(e=>e.parentJid===s);for(let n of t)await e.unregisterScoop(n.jid);return t.map(e=>e.jid)},unit:()=>{let t=f(e.getScoops());return t?m(t):void 0},roots:()=>t(e.getScoops()).map(m),nightly:()=>{let e=p(n);return e?{id:e.id,cron:e.cron}:void 0},ensureNightly:async e=>{let t=p(n);if(t?.cron===e)return{id:t.id,cron:t.cron,created:!1};t&&await n.deleteCronTask(t.id);let r=await n.createCronTask(o,e,c);return{id:r.id,cron:r.cron,created:!0}},dropNightly:async()=>{let e=p(n);return e?n.deleteCronTask(e.id):!1},lick:(e,t)=>{n.emitEvent({type:`sprinkle`,sprinkleName:a,targetScoop:e,timestamp:new Date().toISOString(),body:t})}}}function b(e,t=globalThis){t.__slicc_gelatiere=e}async function x(e,t){try{let n=await e.ensureUnit(),r=await e.ensureNightly(t);l.info(`gelatiere ready`,{jid:n.jid,created:n.created,nightly:r.cron,nightlyCreated:r.created})}catch(e){l.warn(`gelatiere boot failed`,{error:e instanceof Error?e.message:String(e)})}}async function S(e){try{await e.dropNightly()&&l.info(`gelatiere nightly removed (memory-v2 is off)`)}catch(e){l.warn(`gelatiere halt failed`,{error:e instanceof Error?e.message:String(e)})}}export{x as bootGelatiere,y as createGelatiereSeam,S as haltGelatiere,b as publishGelatiereSeam};
|