dreamcontext 0.8.3 → 0.8.6
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 +17 -13
- package/agents/dreamcontext-explore.md +7 -2
- package/agents/sleep-federation.md +28 -2
- package/agents/sleep-product.md +23 -0
- package/agents/sleep-tasks.md +31 -12
- package/dist/agents/dreamcontext-explore.md +7 -2
- package/dist/agents/sleep-federation.md +28 -2
- package/dist/agents/sleep-product.md +23 -0
- package/dist/agents/sleep-tasks.md +31 -12
- package/dist/dashboard/assets/{BrainCanvas3D-CoTzHqzT.js → BrainCanvas3D-CAB2im2F.js} +1 -1
- package/dist/dashboard/assets/{_baseUniq-BlQ6XWxs.js → _baseUniq-dsXhE6Mb.js} +1 -1
- package/dist/dashboard/assets/{ar-SA-G6X2FPQ2-C4qyHe9L.js → ar-SA-G6X2FPQ2-BmAprFYu.js} +1 -1
- package/dist/dashboard/assets/{arc-uGukQNxI.js → arc-d9gHov8I.js} +1 -1
- package/dist/dashboard/assets/{architectureDiagram-Q4EWVU46-BhtWTFvf.js → architectureDiagram-Q4EWVU46-C58hXcUE.js} +1 -1
- package/dist/dashboard/assets/{az-AZ-76LH7QW2-HfK2pIVQ.js → az-AZ-76LH7QW2-BDUks0et.js} +1 -1
- package/dist/dashboard/assets/{bg-BG-XCXSNQG7-L7TlhXli.js → bg-BG-XCXSNQG7-Bdi-CLmM.js} +1 -1
- package/dist/dashboard/assets/{blockDiagram-DXYQGD6D-BmPhQEp6.js → blockDiagram-DXYQGD6D-yJn6zNZG.js} +1 -1
- package/dist/dashboard/assets/{bn-BD-2XOGV67Q-DE0uNoU6.js → bn-BD-2XOGV67Q-THuskwuf.js} +1 -1
- package/dist/dashboard/assets/{c4Diagram-AHTNJAMY-DtQKYrmP.js → c4Diagram-AHTNJAMY-fGKTGH97.js} +1 -1
- package/dist/dashboard/assets/{ca-ES-6MX7JW3Y-7JHCTA6b.js → ca-ES-6MX7JW3Y-CWrsv8xQ.js} +1 -1
- package/dist/dashboard/assets/channel-Do_JtUNy.js +1 -0
- package/dist/dashboard/assets/{chunk-4BX2VUAB-BvnLY9qE.js → chunk-4BX2VUAB-ZCQicbHU.js} +1 -1
- package/dist/dashboard/assets/{chunk-4TB4RGXK--piiFXgS.js → chunk-4TB4RGXK-DGTUpfCU.js} +1 -1
- package/dist/dashboard/assets/{chunk-55IACEB6-C7uvmawY.js → chunk-55IACEB6-BnK0E2R4.js} +1 -1
- package/dist/dashboard/assets/{chunk-EDXVE4YY-BuWBKOPY.js → chunk-EDXVE4YY-B3YEC9QU.js} +1 -1
- package/dist/dashboard/assets/{chunk-FMBD7UC4-C1Le6hxh.js → chunk-FMBD7UC4-DIteC6lG.js} +1 -1
- package/dist/dashboard/assets/{chunk-OYMX7WX6-B8JE8Wz4.js → chunk-OYMX7WX6-DC84qLFn.js} +1 -1
- package/dist/dashboard/assets/{chunk-QZHKN3VN-U9FJi59p.js → chunk-QZHKN3VN-Uc2Uvh7x.js} +1 -1
- package/dist/dashboard/assets/{chunk-YZCP3GAM-BNc94uy1.js → chunk-YZCP3GAM--p-GHUD7.js} +1 -1
- package/dist/dashboard/assets/classDiagram-6PBFFD2Q-Dj8SIYaT.js +1 -0
- package/dist/dashboard/assets/classDiagram-v2-HSJHXN6E-Dj8SIYaT.js +1 -0
- package/dist/dashboard/assets/clone-BpmzOucO.js +1 -0
- package/dist/dashboard/assets/{cose-bilkent-S5V4N54A-D0hUzBCj.js → cose-bilkent-S5V4N54A-DBBUVsxi.js} +1 -1
- package/dist/dashboard/assets/{cs-CZ-2BRQDIVT-B0rWHDIi.js → cs-CZ-2BRQDIVT-B8STDI2F.js} +1 -1
- package/dist/dashboard/assets/{da-DK-5WZEPLOC-D_PQO_T0.js → da-DK-5WZEPLOC-CWhAB8Gq.js} +1 -1
- package/dist/dashboard/assets/{dagre-KV5264BT-B_bjkEDQ.js → dagre-KV5264BT-BcS_NAij.js} +1 -1
- package/dist/dashboard/assets/{de-DE-XR44H4JA-D1G4J6Mz.js → de-DE-XR44H4JA-BULNBnuJ.js} +1 -1
- package/dist/dashboard/assets/{diagram-5BDNPKRD-B63uEoiS.js → diagram-5BDNPKRD-CmCCHnLC.js} +1 -1
- package/dist/dashboard/assets/{diagram-G4DWMVQ6-DShdwm3D.js → diagram-G4DWMVQ6-Ba84raDA.js} +1 -1
- package/dist/dashboard/assets/{diagram-MMDJMWI5-DdVsHQ-l.js → diagram-MMDJMWI5-xNrgYgGq.js} +1 -1
- package/dist/dashboard/assets/{diagram-TYMM5635-BdHifyqU.js → diagram-TYMM5635-CMTfUaO1.js} +1 -1
- package/dist/dashboard/assets/{el-GR-BZB4AONW-a0CO4RfB.js → el-GR-BZB4AONW-DBD23y9B.js} +1 -1
- package/dist/dashboard/assets/{erDiagram-SMLLAGMA-CYxdxNcb.js → erDiagram-SMLLAGMA-BajnFM-6.js} +1 -1
- package/dist/dashboard/assets/{es-ES-U4NZUMDT-ejRYVYRf.js → es-ES-U4NZUMDT-C71t6ojw.js} +1 -1
- package/dist/dashboard/assets/{eu-ES-A7QVB2H4-B-4OXJLd.js → eu-ES-A7QVB2H4-B_ttSuYR.js} +1 -1
- package/dist/dashboard/assets/{fa-IR-HGAKTJCU-DhOcLy7v.js → fa-IR-HGAKTJCU-Bq4zIqyT.js} +1 -1
- package/dist/dashboard/assets/{fi-FI-Z5N7JZ37-CKQF9xKf.js → fi-FI-Z5N7JZ37-CsLCTzrZ.js} +1 -1
- package/dist/dashboard/assets/{flowDiagram-DWJPFMVM-azQUtREP.js → flowDiagram-DWJPFMVM-CwfPSiA0.js} +1 -1
- package/dist/dashboard/assets/{fr-FR-RHASNOE6-CsGekBXq.js → fr-FR-RHASNOE6-3XVH-KvN.js} +1 -1
- package/dist/dashboard/assets/{ganttDiagram-T4ZO3ILL-DjXmGcb4.js → ganttDiagram-T4ZO3ILL-DttgldaZ.js} +1 -1
- package/dist/dashboard/assets/{gitGraphDiagram-UUTBAWPF-Dz87wo6e.js → gitGraphDiagram-UUTBAWPF-BD3bGHtr.js} +1 -1
- package/dist/dashboard/assets/{gl-ES-HMX3MZ6V-NRfsjlmW.js → gl-ES-HMX3MZ6V-DROoNE8o.js} +1 -1
- package/dist/dashboard/assets/{graph-BMW3t-Jz.js → graph-CDuZp5IO.js} +1 -1
- package/dist/dashboard/assets/{he-IL-6SHJWFNN-CK4gfEss.js → he-IL-6SHJWFNN-BqAkB-H9.js} +1 -1
- package/dist/dashboard/assets/{hi-IN-IWLTKZ5I-CqyBl1jA.js → hi-IN-IWLTKZ5I-Bn1svlpD.js} +1 -1
- package/dist/dashboard/assets/{hu-HU-A5ZG7DT2-BO0SthvO.js → hu-HU-A5ZG7DT2-BpbEcSt9.js} +1 -1
- package/dist/dashboard/assets/{id-ID-SAP4L64H-CrHxJe1s.js → id-ID-SAP4L64H-BFbKSomM.js} +1 -1
- package/dist/dashboard/assets/index-CgYfjFTP.css +1 -0
- package/dist/dashboard/assets/index-Di8SAJL6.js +480 -0
- package/dist/dashboard/assets/{index-B0pCDfL8.js → index-cIXUPF7a.js} +1 -1
- package/dist/dashboard/assets/{infoDiagram-42DDH7IO-zG-8q9HR.js → infoDiagram-42DDH7IO-CrGCfIaU.js} +1 -1
- package/dist/dashboard/assets/{ishikawaDiagram-UXIWVN3A-5OzPmL1c.js → ishikawaDiagram-UXIWVN3A-DdanP4Cg.js} +1 -1
- package/dist/dashboard/assets/{it-IT-JPQ66NNP-CW6fpZrT.js → it-IT-JPQ66NNP-DElAu1GB.js} +1 -1
- package/dist/dashboard/assets/{ja-JP-DBVTYXUO-DMJRiMhd.js → ja-JP-DBVTYXUO-CX5hYCt6.js} +1 -1
- package/dist/dashboard/assets/{journeyDiagram-VCZTEJTY-f8lbDQ22.js → journeyDiagram-VCZTEJTY-BJYoD993.js} +1 -1
- package/dist/dashboard/assets/{kaa-6HZHGXH3-C4yr2X6j.js → kaa-6HZHGXH3-Dv86pOJk.js} +1 -1
- package/dist/dashboard/assets/{kab-KAB-ZGHBKWFO-BtwhZ5Ak.js → kab-KAB-ZGHBKWFO-BdVPAiBC.js} +1 -1
- package/dist/dashboard/assets/{kanban-definition-6JOO6SKY-BJtF1llZ.js → kanban-definition-6JOO6SKY-BCtHyYn3.js} +1 -1
- package/dist/dashboard/assets/{kk-KZ-P5N5QNE5-BiS5ISFw.js → kk-KZ-P5N5QNE5-rqy6kPw3.js} +1 -1
- package/dist/dashboard/assets/{km-KH-HSX4SM5Z-CJcAjj0D.js → km-KH-HSX4SM5Z-W6zLGjnE.js} +1 -1
- package/dist/dashboard/assets/{ko-KR-MTYHY66A-yw6XRj7m.js → ko-KR-MTYHY66A-ACtkqDBa.js} +1 -1
- package/dist/dashboard/assets/{ku-TR-6OUDTVRD-nAwdHGyN.js → ku-TR-6OUDTVRD-D2MiKXrW.js} +1 -1
- package/dist/dashboard/assets/{layout-guqP2e-e.js → layout-G4fEkmiY.js} +1 -1
- package/dist/dashboard/assets/{linear-W2_Ct9N6.js → linear-B2IKexSz.js} +1 -1
- package/dist/dashboard/assets/{lt-LT-XHIRWOB4-D7h1NJrv.js → lt-LT-XHIRWOB4-BXUl6qoc.js} +1 -1
- package/dist/dashboard/assets/{lv-LV-5QDEKY6T-DJfUJgRc.js → lv-LV-5QDEKY6T-CbfqRExf.js} +1 -1
- package/dist/dashboard/assets/{min-BlLHklQU.js → min-CGs-EORe.js} +1 -1
- package/dist/dashboard/assets/{mindmap-definition-QFDTVHPH-Ch2AO4mc.js → mindmap-definition-QFDTVHPH-BG5rEg9o.js} +1 -1
- package/dist/dashboard/assets/{mr-IN-CRQNXWMA-BV3znx0p.js → mr-IN-CRQNXWMA-BDQS6spB.js} +1 -1
- package/dist/dashboard/assets/{my-MM-5M5IBNSE-IjUN-e5U.js → my-MM-5M5IBNSE-slOXMPAS.js} +1 -1
- package/dist/dashboard/assets/{nb-NO-T6EIAALU-MMsvbc2a.js → nb-NO-T6EIAALU-DsUSa36i.js} +1 -1
- package/dist/dashboard/assets/{nl-NL-IS3SIHDZ-ByYTJGOK.js → nl-NL-IS3SIHDZ-Bmxt9uv4.js} +1 -1
- package/dist/dashboard/assets/{nn-NO-6E72VCQL-Bgbgzvhm.js → nn-NO-6E72VCQL-B3EKWZ2E.js} +1 -1
- package/dist/dashboard/assets/{oc-FR-POXYY2M6-BMBbvfQp.js → oc-FR-POXYY2M6-CQ95AKGA.js} +1 -1
- package/dist/dashboard/assets/{pa-IN-N4M65BXN-CgcUC9Zd.js → pa-IN-N4M65BXN-DlOGvEPy.js} +1 -1
- package/dist/dashboard/assets/{percentages-BXMCSKIN-AuedyVVS.js → percentages-BXMCSKIN-Cghe4Ak9.js} +7 -7
- package/dist/dashboard/assets/{pica-DxO5y0j_.js → pica-BElmNROA.js} +1 -1
- package/dist/dashboard/assets/{pieDiagram-DEJITSTG-q-J8tI3B.js → pieDiagram-DEJITSTG-CM8vpcY4.js} +1 -1
- package/dist/dashboard/assets/{pl-PL-T2D74RX3-BaZSYTKJ.js → pl-PL-T2D74RX3-ia8QfWiE.js} +1 -1
- package/dist/dashboard/assets/{pt-BR-5N22H2LF-DSPF7aLm.js → pt-BR-5N22H2LF-Dk0_mzTj.js} +1 -1
- package/dist/dashboard/assets/{pt-PT-UZXXM6DQ-aoPTHC3m.js → pt-PT-UZXXM6DQ-DVhHd3sQ.js} +1 -1
- package/dist/dashboard/assets/{quadrantDiagram-34T5L4WZ-CGbfFson.js → quadrantDiagram-34T5L4WZ-DHK8pFQ0.js} +1 -1
- package/dist/dashboard/assets/{requirementDiagram-MS252O5E-ThxVmoCe.js → requirementDiagram-MS252O5E-O5-02BwJ.js} +1 -1
- package/dist/dashboard/assets/{ro-RO-JPDTUUEW-YfCwiIS2.js → ro-RO-JPDTUUEW-BnsPiMQX.js} +1 -1
- package/dist/dashboard/assets/{ru-RU-B4JR7IUQ-zIVsVhsz.js → ru-RU-B4JR7IUQ-DGg0hVo9.js} +1 -1
- package/dist/dashboard/assets/{sankeyDiagram-XADWPNL6-BvEv917s.js → sankeyDiagram-XADWPNL6-CWTRPjWg.js} +1 -1
- package/dist/dashboard/assets/{sequenceDiagram-FGHM5R23-JrhjN3MG.js → sequenceDiagram-FGHM5R23-DgPVR3Bj.js} +1 -1
- package/dist/dashboard/assets/{si-LK-N5RQ5JYF-CegSAwip.js → si-LK-N5RQ5JYF-tYLdyZ7v.js} +1 -1
- package/dist/dashboard/assets/{sk-SK-C5VTKIMK-C_K-Uoai.js → sk-SK-C5VTKIMK-1xA3G05_.js} +1 -1
- package/dist/dashboard/assets/{sl-SI-NN7IZMDC-DHGXOoZl.js → sl-SI-NN7IZMDC-DhfNsg9e.js} +1 -1
- package/dist/dashboard/assets/{stateDiagram-FHFEXIEX-BzOtZESp.js → stateDiagram-FHFEXIEX-Bca5FGdM.js} +1 -1
- package/dist/dashboard/assets/stateDiagram-v2-QKLJ7IA2-DIY7ac6n.js +1 -0
- package/dist/dashboard/assets/{subset-shared.chunk-BWfXaC19.js → subset-shared.chunk-CGU8uh4H.js} +1 -1
- package/dist/dashboard/assets/{subset-worker.chunk-DHcqLDUZ.js → subset-worker.chunk-y2R5BeoP.js} +1 -1
- package/dist/dashboard/assets/{sv-SE-XGPEYMSR-BoNob2y3.js → sv-SE-XGPEYMSR-DfzE39Ps.js} +1 -1
- package/dist/dashboard/assets/{ta-IN-2NMHFXQM-C8UHJYct.js → ta-IN-2NMHFXQM-D7LBIYw1.js} +1 -1
- package/dist/dashboard/assets/{th-TH-HPSO5L25-D7wP1iSi.js → th-TH-HPSO5L25-Cfm5Dm_a.js} +1 -1
- package/dist/dashboard/assets/{timeline-definition-GMOUNBTQ-Gwb0w7bX.js → timeline-definition-GMOUNBTQ-C-mJxmUk.js} +1 -1
- package/dist/dashboard/assets/{tr-TR-DEFEU3FU-He51QB-L.js → tr-TR-DEFEU3FU-m5lXhQtR.js} +1 -1
- package/dist/dashboard/assets/{uk-UA-QMV73CPH-Blg5n9CR.js → uk-UA-QMV73CPH-CDhF3uD5.js} +1 -1
- package/dist/dashboard/assets/{vennDiagram-DHZGUBPP-y2S0dZjp.js → vennDiagram-DHZGUBPP-EXa8McYU.js} +1 -1
- package/dist/dashboard/assets/{vi-VN-M7AON7JQ-2z-4xcM3.js → vi-VN-M7AON7JQ-C67Ii_Ev.js} +1 -1
- package/dist/dashboard/assets/{wardley-RL74JXVD-BNThyuCt.js → wardley-RL74JXVD-auY9rf2s.js} +1 -1
- package/dist/dashboard/assets/{wardleyDiagram-NUSXRM2D-Sljri5hz.js → wardleyDiagram-NUSXRM2D-B8qVq-Ss.js} +1 -1
- package/dist/dashboard/assets/{xychartDiagram-5P7HB3ND-BIFYd4_d.js → xychartDiagram-5P7HB3ND-DIfk5B6V.js} +1 -1
- package/dist/dashboard/assets/{zh-CN-LNUGB5OW-DZ8sfmlq.js → zh-CN-LNUGB5OW-8NshHSLl.js} +1 -1
- package/dist/dashboard/assets/{zh-HK-E62DVLB3-Zvqwoloz.js → zh-HK-E62DVLB3-D22tHzlZ.js} +1 -1
- package/dist/dashboard/assets/{zh-TW-RAJ6MFWO-Ck_uDtMQ.js → zh-TW-RAJ6MFWO-BllueYdk.js} +1 -1
- package/dist/dashboard/index.html +2 -2
- package/dist/index.js +3427 -3050
- package/dist/skill-packs/goal-skill/SKILL.md +8 -6
- package/package.json +1 -1
- package/skill/SKILL.md +34 -18
- package/skill-packs/goal-skill/SKILL.md +8 -6
- package/dist/dashboard/assets/channel-3OfE-PZ3.js +0 -1
- package/dist/dashboard/assets/classDiagram-6PBFFD2Q-Dpt9qwZI.js +0 -1
- package/dist/dashboard/assets/classDiagram-v2-HSJHXN6E-Dpt9qwZI.js +0 -1
- package/dist/dashboard/assets/clone-CZ-InUnR.js +0 -1
- package/dist/dashboard/assets/index-rIZLhbl7.js +0 -480
- package/dist/dashboard/assets/index-sax--nf3.css +0 -1
- package/dist/dashboard/assets/stateDiagram-v2-QKLJ7IA2-CjcHIbj7.js +0 -1
package/README.md
CHANGED
|
@@ -217,7 +217,7 @@ your-project/
|
|
|
217
217
|
│ │ ├── sleep-tasks.md # RemSleep specialists —
|
|
218
218
|
│ │ ├── sleep-state.md # the agent fans out to
|
|
219
219
|
│ │ ├── sleep-product.md # these three in parallel
|
|
220
|
-
│ │ ├── sleep-federation.md #
|
|
220
|
+
│ │ ├── sleep-federation.md # disabled (read-only federation; copy-sync parked on roadmap)
|
|
221
221
|
│ │ └── sleep-migration.md # conditional: when a migration is pending
|
|
222
222
|
│ └── settings.json # 7 hooks (see Commands → System)
|
|
223
223
|
```
|
|
@@ -371,7 +371,8 @@ dreamcontext app update # Update the installed app to the latest release
|
|
|
371
371
|
dreamcontext app status # Show installed app version and state
|
|
372
372
|
```
|
|
373
373
|
|
|
374
|
-
- **Multi-vault launcher.** The app lists every registered [vault](#federation) and opens each project in its **own window** — multi-vault is multi-window over one shared Node server, with each window pinned to its vault via a request header.
|
|
374
|
+
- **Multi-vault launcher.** The app lists every registered [vault](#federation) and opens each project in its **own window** — multi-vault is multi-window over one shared Node server, with each window pinned to its vault via a request header. A per-project status dot (green up-to-date / yellow needs-update / red folder-gone) lets you run `update` from the UI.
|
|
375
|
+
- **Federation network view.** The launcher also renders your projects as an interactive board (Excalidraw-style cards) where you wire a **reads** relationship by clicking source → target: a violet wire means one project reads another's canonical memory **live** during recall (a reference, never a copy), gated by the target being Readable. A node panel and an always-on "Connections" list spell out in plain language who reads whom, each removable with one click. (Copy-based "sync" is parked on the roadmap — federation only reads, live.)
|
|
375
376
|
- **In-app onboarding, no terminal.** A quiz-style wizard creates a brand-new project (native folder picker) or initializes an existing folder, scaffolds `_dream_context/`, runs `setup`, and best-effort installs the global CLI. It's deterministic and LLM-free; the success screen hands you a prompt to paste into Claude Code for the rich enrichment pass.
|
|
376
377
|
- **Sleepy — notch quick-capture _(beta)_.** A global-hotkey companion that drops a transparent notch panel over whatever you're doing, with an animated mascot whose mood follows your sleep debt. Pick a vault, type a thought, and choose a mode:
|
|
377
378
|
- **Learn** — saves the note to project memory, then enriches it.
|
|
@@ -452,7 +453,7 @@ Hook injection is **ON by default**: top hits are auto-surfaced to the agent on
|
|
|
452
453
|
|
|
453
454
|
## Federation
|
|
454
455
|
|
|
455
|
-
Most people end up with more than one dreamcontext project. **Federation** lets those projects discover each other
|
|
456
|
+
Most people end up with more than one dreamcontext project. **Federation** lets those projects discover each other and recall across each other **live** — each vault stays the single source of truth for its own knowledge, and sees its peers' canonical knowledge by reference at query time. All opt-in, all local, no server in the middle, and **nothing is ever copied between vaults**.
|
|
456
457
|
|
|
457
458
|
It starts with a **global vault registry** — every project you register is a *vault* the CLI (and the [desktop app](#desktop-app)) can address by name.
|
|
458
459
|
|
|
@@ -473,18 +474,20 @@ dreamcontext memory recall "<query>" --connected # Span this vault +
|
|
|
473
474
|
dreamcontext memory recall "<query>" --all-vaults # Span this vault + every shareable vault
|
|
474
475
|
```
|
|
475
476
|
|
|
476
|
-
**Connections
|
|
477
|
+
**Connections = a live read edge.** Connect to a peer and your recall (and the per-prompt recall hook) surfaces that peer's **canonical** docs live — a reference, never a copy. A decision made in one repo shows up in a sibling repo's recall *as it is in the source*, always current, with no stale duplicate left behind.
|
|
477
478
|
|
|
478
479
|
```bash
|
|
479
|
-
dreamcontext connect <vault> --direction
|
|
480
|
+
dreamcontext connect <vault> --direction out --topics api,auth # Connect to read a peer (out = read)
|
|
480
481
|
dreamcontext connections # Inspect this vault's federation connections
|
|
481
482
|
dreamcontext disconnect <vault> # Remove a connection
|
|
482
|
-
dreamcontext federation
|
|
483
|
-
dreamcontext federation
|
|
484
|
-
dreamcontext federation
|
|
483
|
+
dreamcontext federation peers # Compact summary of readable peers (ambient awareness)
|
|
484
|
+
dreamcontext federation status # Connections + any leftover federated copies
|
|
485
|
+
dreamcontext federation purge --all # Remove leftover federated:true copies from the old sync path
|
|
485
486
|
```
|
|
486
487
|
|
|
487
|
-
|
|
488
|
+
A peer is readable when your connection to it is `out`/`both`, it isn't stale, **and** it has opted in with `config shareable on`. Reads happen live at recall time; the transitive-leak guard keeps a third vault from seeing what merely passed through this one.
|
|
489
|
+
|
|
490
|
+
> **Note — copy-based sync is parked on the roadmap.** Earlier builds pushed a lossy, truncated *digest* into peers at sleep (`federation sync`) and ingested it as `federated: true` copies (`federation drain`). That broke single-source-of-truth: copies went stale the moment the source changed and re-edits bred duplicates. Those verbs are now **inert no-ops** and the `sleep-federation` specialist is no longer dispatched. If a vault still holds old copies, clear them with `federation purge`. A redesigned opt-in offline-mirror mode may return later — its one genuine advantage is surviving a peer going offline, which live read can't.
|
|
488
491
|
|
|
489
492
|
## Commands
|
|
490
493
|
|
|
@@ -680,12 +683,13 @@ dreamcontext vaults discover [root] --register # …and register the new ones
|
|
|
680
683
|
dreamcontext vaults list # List registered vaults
|
|
681
684
|
dreamcontext vaults remove <name> # Unregister a vault
|
|
682
685
|
dreamcontext config shareable <on|off> # Allow/deny this vault being recalled by peers
|
|
683
|
-
dreamcontext connect <vault> [--direction out|in|both] [--topics a,b] # Connect to a peer
|
|
686
|
+
dreamcontext connect <vault> [--direction out|in|both] [--topics a,b] # Connect to read a peer (out = read)
|
|
684
687
|
dreamcontext connections # Inspect federation connections
|
|
685
688
|
dreamcontext disconnect <vault> # Remove a connection
|
|
686
|
-
dreamcontext federation
|
|
687
|
-
dreamcontext federation
|
|
688
|
-
dreamcontext federation
|
|
689
|
+
dreamcontext federation peers # Compact summary of readable peers
|
|
690
|
+
dreamcontext federation status # Connections + any leftover federated copies
|
|
691
|
+
dreamcontext federation purge --all # Remove leftover federated:true copies (old sync path)
|
|
692
|
+
# federation sync / drain are inert no-ops — copy-based sync is parked on the roadmap
|
|
689
693
|
```
|
|
690
694
|
|
|
691
695
|
See the [Federation](#federation) section above for the full workflow.
|
|
@@ -44,7 +44,7 @@ always beats blind exploration.
|
|
|
44
44
|
|
|
45
45
|
**Protocol:**
|
|
46
46
|
|
|
47
|
-
1. Run `dreamcontext memory recall "<query>" --top
|
|
47
|
+
1. Run `dreamcontext memory recall "<query>" --top 10 --plain` via Bash.
|
|
48
48
|
2. If the top hit has **score ≥ 5**, Read the top-1 (and top-2 if related)
|
|
49
49
|
files immediately — that's almost certainly your answer.
|
|
50
50
|
3. If hits exist but all scores are **< 2**, treat them as weak signal and
|
|
@@ -54,6 +54,11 @@ always beats blind exploration.
|
|
|
54
54
|
`--json` instead of `--plain` for a machine-readable payload, and
|
|
55
55
|
`--types knowledge,feature,task,memory,changelog` to scope by corpus type.
|
|
56
56
|
|
|
57
|
+
**Cross-vault hits are normal and useful.** Results tagged `<vault>::<type>/<slug>` come
|
|
58
|
+
from connected readable peer projects — this is expected behavior, not noise. If the
|
|
59
|
+
answer likely lives in a specific peer, scope the search with `--vault <name>` to
|
|
60
|
+
search current + that one peer directly.
|
|
61
|
+
|
|
57
62
|
Recall is appropriate for Track A (Documented Knowledge) and for Track B when
|
|
58
63
|
the query is about a documented concept. It is NOT a substitute for Glob/Grep
|
|
59
64
|
on raw code symbols — for "find the function that does X" go straight to
|
|
@@ -127,7 +132,7 @@ NEVER use Bash for any command that modifies files or system state.
|
|
|
127
132
|
## Rules
|
|
128
133
|
|
|
129
134
|
1. **Briefing is pre-loaded.** Never re-read files already summarized in your Sub-agent Briefing.
|
|
130
|
-
2. **Recall before grep.** For any "where/why/what-do-we-know" query, try `dreamcontext memory recall "<query>" --top
|
|
135
|
+
2. **Recall before grep.** For any "where/why/what-do-we-know" query, try `dreamcontext memory recall "<query>" --top 10 --plain` BEFORE Glob/Grep. Read top hits if score ≥ 5; fall back to Glob/Grep only when recall is empty or weak (<2). Results tagged `<vault>::<type>/<slug>` are cross-vault hits from connected peers — expected and useful.
|
|
131
136
|
3. **Hypothesize first.** No blind searching. Use what you know to target your search.
|
|
132
137
|
4. **Parallel everything.** Multiple independent tool calls go in one turn.
|
|
133
138
|
5. **Cheapest tool first.** Glob -> Grep -> Read. Skip steps when you can.
|
|
@@ -15,6 +15,17 @@ skills:
|
|
|
15
15
|
|
|
16
16
|
# Sleep — Federation Specialist
|
|
17
17
|
|
|
18
|
+
> **⛔ DISABLED — DO NOT DISPATCH (read-only federation, copy-sync parked on roadmap).**
|
|
19
|
+
> Federation is now a *live reference*: connected, shareable peers are read at
|
|
20
|
+
> recall time and **nothing is ever copied** across a vault boundary. The
|
|
21
|
+
> copy-based drain/distribute path below broke single-source-of-truth (lossy,
|
|
22
|
+
> write-once-stale copies + duplicate/conflict noise on edit), so it is disabled:
|
|
23
|
+
> `dreamcontext federation drain` / `sync` are inert no-ops, and the sleep flow no
|
|
24
|
+
> longer fires this specialist. The contract below is retained for reference only,
|
|
25
|
+
> pending a proper redesign of an opt-in offline-mirror mode. To clean up old
|
|
26
|
+
> `federated:true` copies a previous sync wrote, run `dreamcontext federation purge
|
|
27
|
+
> --all` (a deliberate, user-run action — not a sleep step).
|
|
28
|
+
|
|
18
29
|
## Scope and ownership
|
|
19
30
|
|
|
20
31
|
| You touch | You NEVER touch |
|
|
@@ -69,8 +80,23 @@ The whole job is two idempotent commands, ALWAYS in this order:
|
|
|
69
80
|
To inspect WITHOUT writing, use `dreamcontext federation sync --dry-run`
|
|
70
81
|
(computes + prints, writes nothing, watermark not advanced).
|
|
71
82
|
|
|
72
|
-
3. **
|
|
73
|
-
|
|
83
|
+
3. **Then refresh peer summaries** — rebuild the ambient READ-awareness cache so
|
|
84
|
+
the next session's snapshot "Connected projects" section reflects current
|
|
85
|
+
peer state (what each readable peer IS + what was last done there):
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
dreamcontext federation peers
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
- Resolves readable peers (out/both ∩ not-stale ∩ shareable), reads each
|
|
92
|
+
peer's core files (READ-ONLY), and writes the local cache
|
|
93
|
+
`state/.peer-summaries.json` that the snapshot hot path reads cheaply.
|
|
94
|
+
- Never touches a peer's files; never resolves a peer in the snapshot itself.
|
|
95
|
+
- Idempotent — re-running just rewrites the cache.
|
|
96
|
+
|
|
97
|
+
4. **Report** counts: ingested / collisions / conflicts surfaced / quarantined /
|
|
98
|
+
peers synced / peers summarised. Surface any conflict-note to the user
|
|
99
|
+
explicitly.
|
|
74
100
|
|
|
75
101
|
## Gotchas
|
|
76
102
|
|
package/agents/sleep-product.md
CHANGED
|
@@ -162,6 +162,24 @@ If the relevant task has `product: X` in frontmatter, the PRD MAY be product-sco
|
|
|
162
162
|
|
|
163
163
|
### Pass B — Knowledge
|
|
164
164
|
|
|
165
|
+
#### B0. Organize — folders, grouping, and placement
|
|
166
|
+
|
|
167
|
+
Before curating content, keep the knowledge store's *structure* logical. `knowledge/**/*.md` is indexed recursively (`buildKnowledgeIndex` globs `**/*.md`), so subfolders are fully recall-safe — grouping a file never hides it.
|
|
168
|
+
|
|
169
|
+
**Diagrams → per-title folders (idempotent, any depth).** Preferred layout is `knowledge/diagrams/<title>/<title>.excalidraw.md` — the board plus its dark-sibling `.board.cjs`/`.json` living together. New boards often land flat (`knowledge/diagrams/<title>.excalidraw.md` next to `<title>.board.cjs`). Fold *canonical* flat boards into per-title folders every cycle:
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
dreamcontext migrations apply-diagrams # idempotent: moves flat canonical boards + same-basename siblings, rewrites inbound [[wikilinks]] atomically; prints "nothing to organize" when already clean
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
Placement judgment FIRST: only canonical boards (architecture, system flows, roadmaps, durable plans a future session should recall) belong under `knowledge/diagrams/`. Scratch/exploratory/in-progress boards belong in `inbox/` or `workspace/` (dark by location — not indexed) — leave those alone; do NOT pull them into knowledge. Never hand-edit board scene JSON or wikilinks — the command owns both. This catches boards created *after* the one-time `0.7.2/diagrams-folder-convention` migration already recorded in the ledger (which `sleep-migration` will not re-fire for).
|
|
176
|
+
|
|
177
|
+
**Knowledge → logical subfolders (grouping; moves are deep-only).** When ≥3 top-level `knowledge/*.md` files form a clear topical cluster a future session would browse together (mirroring the existing `data-structures/` and `products/` subfolders), group them under `knowledge/<group>/`. Moving files + rewriting links is a structural op — gate it exactly like merge-with-delete (B1.5):
|
|
178
|
+
- **light/standard:** do NOT move. **Flag the cluster in your report** (`group candidate: <group>/ ← a.md, b.md, c.md`) for the next deep cycle.
|
|
179
|
+
- **deep:** archive-before (the B1.5 safety net), then move the files and rewrite inbound `[[old-slug]]` references — **target token only**, preserve `|alias` and `#anchor`. Verify every file still lists: `dreamcontext knowledge index --plain`.
|
|
180
|
+
|
|
181
|
+
Group only on a **sharp** topical boundary — the same B2 create-vs-extend test, applied to folders. Don't fragment (one folder per file) and don't over-nest. After any group/move, re-check the moved files' tags in Pass C so the folder and the tags tell the same story.
|
|
182
|
+
|
|
165
183
|
#### B1. Decide: create, update, archive, or pin
|
|
166
184
|
|
|
167
185
|
For each knowledge candidate (research finding, sleep-state flag, extracted overflow):
|
|
@@ -350,6 +368,10 @@ dreamcontext taxonomy resolve <tag>
|
|
|
350
368
|
- 5 user stories, 5 acceptance criteria
|
|
351
369
|
- No-op feature signals: 1 (signal "feature_advanced=marketing-dashboard-v0" — but PRD exists and no criteria moved)
|
|
352
370
|
|
|
371
|
+
### Organization
|
|
372
|
+
- Diagrams: ran `apply-diagrams` — folded knowledge/diagrams/federation.excalidraw.md (+federation.board.cjs) into diagrams/federation/ (canonical board, was flat). 0 ambiguous.
|
|
373
|
+
- Knowledge grouping: group candidate flagged for deep cycle — `decisions/` ← decision-mem0-vs-bm25-recall.md, decision-link-aware-vs-embedding-recall.md, decision-meta-marketing-skill-adoption.md (4 sibling `decision-*` files browse together). Not moved (standard depth).
|
|
374
|
+
|
|
353
375
|
### Knowledge
|
|
354
376
|
- Created: knowledge/jwt-rotation-policy.md (tags: security, decisions; from sleep-state flag) — sharp boundary, new tag-able topic
|
|
355
377
|
- Extended (no new file): knowledge/competitive-analysis-ecc.md — folded the new ECC pricing finding into the existing file (soft distinction, same topic family) instead of forking a near-duplicate slug; updated `summary:`
|
|
@@ -375,6 +397,7 @@ Dropped-but-load-bearing self-check: <none | list any digest/auto-bookmark/resea
|
|
|
375
397
|
6. **Don't create knowledge that already fits in memory.** A short technical decision belongs in `2.memory.md` (sleep-state's domain), not its own knowledge file.
|
|
376
398
|
7. **Knowledge file threshold**: ≥3 paragraphs of content, or material that will be re-read in future sessions.
|
|
377
399
|
8. **Fewest files, sharp boundaries (B2 rubric).** Default to extending an existing file. Fold soft distinctions in — same vertical/brand/topic family, a narrower slice, an increment. Create a new file only for a genuinely separate topic whose own tags sharpen discovery. Not super-files, not fragmentation.
|
|
400
|
+
8a. **Keep the store organized (B0).** Every cycle, fold canonical flat diagram boards into per-title folders (`apply-diagrams`, idempotent, any depth). Group clustered top-level knowledge into logical subfolders only at `deep` depth (flag candidates at light/standard). Subfolders are recall-safe — the index globs `**/*.md`. Folder and tags must tell the same story.
|
|
378
401
|
9. **Use standard tags only (prefer taxonomy vocab).** New tags fragment discovery; always check `dreamcontext taxonomy vocab` before tagging. Add new vocabulary via `taxonomy add` or `taxonomy alias` — never hand-edit `core/taxonomy.json` directly.
|
|
379
402
|
10. **Process all flags from sleep-state** in your report — don't silently drop them.
|
|
380
403
|
11. **No-op cheaply** when signals don't actually warrant work.
|
package/agents/sleep-tasks.md
CHANGED
|
@@ -139,15 +139,24 @@ A fresh session opening this task file should see the *current plan*.
|
|
|
139
139
|
|
|
140
140
|
**Tip — recall before reconciling.** If you're unsure whether a decision observed this session was already captured elsewhere (memory entry, sibling task, knowledge file), run `dreamcontext memory recall "<topic>"` to surface the top hits across the corpus before you edit. Cheaper than grep, deterministic, and helps you avoid duplicating a decision that already lives in `2.memory.md` (which `sleep-state` owns).
|
|
141
141
|
|
|
142
|
-
### 4. Status —
|
|
142
|
+
### 4. Status — review only when genuinely needed
|
|
143
143
|
|
|
144
|
-
|
|
144
|
+
Pick the status that matches reality. **Do NOT reflexively bump everything to `in_review`** — that buries the few tasks that actually need the user's eyes under a pile that didn't, and leaves finished work rotting half-closed.
|
|
145
|
+
|
|
146
|
+
| The task this cycle is… | Status |
|
|
147
|
+
|---|---|
|
|
148
|
+
| **Demonstrably done, low-risk, and already validated** — acceptance criteria met, tests green, nothing a human must second-guess (chores, docs, mechanical refactors, well-covered fixes) | `completed` — close it. |
|
|
149
|
+
| **Done but it genuinely needs the user's verification** — a user-facing behaviour change, a design/architecture decision, a risky or critical-path change, or a criterion that can't be mechanically proven | `in_review` with a one-line "what to verify". |
|
|
150
|
+
| **Work clearly continues next session** | leave `in_progress`. |
|
|
145
151
|
|
|
146
152
|
```bash
|
|
147
|
-
|
|
153
|
+
# Done + validated + nothing to second-guess → close it:
|
|
154
|
+
dreamcontext tasks status <slug> completed "<what shipped — done, validated, no review needed>"
|
|
155
|
+
# A human must actually confirm something → hand it over:
|
|
156
|
+
dreamcontext tasks status <slug> in_review "Needs your eyes — <the specific thing to verify>"
|
|
148
157
|
```
|
|
149
158
|
|
|
150
|
-
|
|
159
|
+
The single test: **would the user actually want to look at this before it's closed?** If yes → `in_review`. If it's done and there's nothing to second-guess → `completed`. When you're genuinely unsure, prefer `in_review`. Only the never-done categories below (superseded / abandoned / obsoleted) ever go to `in_review` *for closing* — that's handing the user a close decision, not a completion.
|
|
151
160
|
|
|
152
161
|
### 5. Version readiness signal (no auto-release)
|
|
153
162
|
|
|
@@ -162,36 +171,46 @@ dreamcontext tasks list --status completed
|
|
|
162
171
|
|
|
163
172
|
If every task linked to the active version is `completed` (or only `in_review` remains), surface this in your report. Do **not** release — that's the user's call.
|
|
164
173
|
|
|
165
|
-
### 6.
|
|
174
|
+
### 6. Backlog grooming — the active list must stay honest
|
|
166
175
|
|
|
167
|
-
|
|
176
|
+
A backlog that nobody has touched in weeks, or that still describes a plan we've since pivoted away from, isn't "active" — it bloats every SessionStart snapshot (each non-completed task costs snapshot tokens on every session) and buries the work that actually matters. Each cycle, groom the whole active list, not just this cycle's tasks:
|
|
168
177
|
|
|
169
178
|
```bash
|
|
170
179
|
dreamcontext tasks list # every non-completed task, with updated dates
|
|
171
180
|
```
|
|
172
181
|
|
|
173
|
-
|
|
182
|
+
**(a) Direction changes & relevance.** If this cycle revealed a pivot — a new idea, a changed plan, a dropped direction — propagate it to the backlog, don't leave stale tasks describing the old plan:
|
|
174
183
|
|
|
175
184
|
| Situation | Action |
|
|
176
185
|
|---|---|
|
|
177
|
-
|
|
|
186
|
+
| A task is partly obsoleted by the pivot | Reconcile its body (step 3): drop the obsolete user stories / criteria, replace stale Technical Details. Keep what's still relevant. |
|
|
187
|
+
| A task is **wholly** made irrelevant by the pivot | Don't silently delete. `dreamcontext tasks status <slug> in_review "obsoleted by <pivot> — confirm close"` — closing someone's planned work is the user's call. |
|
|
188
|
+
| A task now belongs to a different milestone/version | Fix its `version:` frontmatter (Edit the field directly — there's no status-time version verb) so it attaches to the right planning version. |
|
|
189
|
+
|
|
190
|
+
**(b) Staleness.** For each task whose `updated` is **21+ days old** and that no session in this cycle touched, pick one:
|
|
191
|
+
|
|
192
|
+
| Situation | Action |
|
|
193
|
+
|---|---|
|
|
194
|
+
| Work was actually done but never logged | Reconcile it now (steps 3-4) — that's a capture failure, fix it. If it's done + validated, `completed`; if it needs eyes, `in_review`. |
|
|
178
195
|
| Superseded / absorbed by another task | Log a final entry naming the successor, then `dreamcontext tasks status <slug> in_review "superseded by <other-slug> — confirm close"`. |
|
|
179
196
|
| Still genuinely planned, just not started | Leave it, but verify its priority isn't inflated — a `high` task untouched for a month is not high priority; downgrade via Edit. |
|
|
180
197
|
| Abandoned / no longer relevant | `dreamcontext tasks status <slug> in_review "stale 21+ days, appears abandoned — confirm close"`. |
|
|
181
198
|
|
|
182
|
-
|
|
199
|
+
**(c) Tagging.** Tags drive recall — sharpen them every cycle. Normalize every task's frontmatter `tags` to the taxonomy vocab (`dreamcontext taxonomy vocab`), and *add* missing facets (area / type / feature) where a task is under-tagged. A well-tagged backlog is found; a poorly-tagged one is re-derived blind.
|
|
200
|
+
|
|
201
|
+
Never silently delete a task, and never `completed` a task that was never actually done — for superseded/abandoned/obsoleted work, `in_review` with an explicit reason hands the close decision to the user. List every grooming action in your report.
|
|
183
202
|
|
|
184
203
|
## Return — short report
|
|
185
204
|
|
|
186
205
|
```
|
|
187
206
|
## sleep-tasks report
|
|
188
|
-
- Updated: <slug> (in_progress → in_review, "<
|
|
207
|
+
- Updated: <slug> (in_progress → completed, "<done, validated, no review needed>"), <slug> (in_progress → in_review, "<the specific thing the user must verify>"), <slug> (logged)
|
|
189
208
|
- Folded in (no new task): <existing-slug> — broadened scope + added 2 user stories / 1 criterion for <smaller-piece> instead of forking a duplicate
|
|
190
209
|
- Created: <slug> (status: in_progress, attached to vX.Y.Z) — genuinely separate concern
|
|
191
210
|
- Body reconciled: <slug> (dropped phase 1 from User Stories; replaced Technical Details auth section)
|
|
192
211
|
- Person attribution: <slug> tagged person:ada (multi-person project, ada drove this cycle's work) | OR: single-person project — no person tags injected
|
|
193
212
|
- Version readiness: vX.Y.Z — 4/5 tasks ready for review
|
|
194
|
-
-
|
|
213
|
+
- Backlog grooming: <slug> obsoleted by pivot → in_review ("confirm close"), <slug> re-attached v0.8.x→v0.9.0, <slug> tags normalized + facets added, <slug> priority high→medium (untouched 30d), 2 tasks left as-is (genuinely planned)
|
|
195
214
|
- Cross-domain mentions: <slug> includes a memory-worthy decision about JWT — flagging for sleep-state
|
|
196
215
|
- Skipped: <session_id> had no actionable task signal
|
|
197
216
|
|
|
@@ -202,7 +221,7 @@ Dropped-but-load-bearing self-check: <none | list any digest/auto-bookmark/task
|
|
|
202
221
|
|
|
203
222
|
1. **Dedup before creating.** Recall first; fold a smaller slice into the task that already covers it — broaden its title + insert sub-items — instead of forking a duplicate or a needless sub-task. A new task is only for a genuinely separate concern.
|
|
204
223
|
2. **Body = current truth, Changelog = history.** Don't let the body lag behind decisions.
|
|
205
|
-
3. **
|
|
224
|
+
3. **Status reflects reality, not a reflex.** `completed` for done + low-risk + already-validated work; `in_review` only when a human genuinely must verify something (or to hand over a close decision on superseded/abandoned/obsoleted work). Never `completed` a task that was never actually done; never silently delete.
|
|
206
225
|
4. **Always attach to a planning version.** No orphan work.
|
|
207
226
|
5. **Stay in your lane.** If you spot non-task work worth preserving, flag it — don't write it.
|
|
208
227
|
6. **CLI first** for status/log/insert; **Edit** for surgical body reconciliation (including broadening `description:` / `## Why` when scope grows).
|
|
@@ -44,7 +44,7 @@ always beats blind exploration.
|
|
|
44
44
|
|
|
45
45
|
**Protocol:**
|
|
46
46
|
|
|
47
|
-
1. Run `dreamcontext memory recall "<query>" --top
|
|
47
|
+
1. Run `dreamcontext memory recall "<query>" --top 10 --plain` via Bash.
|
|
48
48
|
2. If the top hit has **score ≥ 5**, Read the top-1 (and top-2 if related)
|
|
49
49
|
files immediately — that's almost certainly your answer.
|
|
50
50
|
3. If hits exist but all scores are **< 2**, treat them as weak signal and
|
|
@@ -54,6 +54,11 @@ always beats blind exploration.
|
|
|
54
54
|
`--json` instead of `--plain` for a machine-readable payload, and
|
|
55
55
|
`--types knowledge,feature,task,memory,changelog` to scope by corpus type.
|
|
56
56
|
|
|
57
|
+
**Cross-vault hits are normal and useful.** Results tagged `<vault>::<type>/<slug>` come
|
|
58
|
+
from connected readable peer projects — this is expected behavior, not noise. If the
|
|
59
|
+
answer likely lives in a specific peer, scope the search with `--vault <name>` to
|
|
60
|
+
search current + that one peer directly.
|
|
61
|
+
|
|
57
62
|
Recall is appropriate for Track A (Documented Knowledge) and for Track B when
|
|
58
63
|
the query is about a documented concept. It is NOT a substitute for Glob/Grep
|
|
59
64
|
on raw code symbols — for "find the function that does X" go straight to
|
|
@@ -127,7 +132,7 @@ NEVER use Bash for any command that modifies files or system state.
|
|
|
127
132
|
## Rules
|
|
128
133
|
|
|
129
134
|
1. **Briefing is pre-loaded.** Never re-read files already summarized in your Sub-agent Briefing.
|
|
130
|
-
2. **Recall before grep.** For any "where/why/what-do-we-know" query, try `dreamcontext memory recall "<query>" --top
|
|
135
|
+
2. **Recall before grep.** For any "where/why/what-do-we-know" query, try `dreamcontext memory recall "<query>" --top 10 --plain` BEFORE Glob/Grep. Read top hits if score ≥ 5; fall back to Glob/Grep only when recall is empty or weak (<2). Results tagged `<vault>::<type>/<slug>` are cross-vault hits from connected peers — expected and useful.
|
|
131
136
|
3. **Hypothesize first.** No blind searching. Use what you know to target your search.
|
|
132
137
|
4. **Parallel everything.** Multiple independent tool calls go in one turn.
|
|
133
138
|
5. **Cheapest tool first.** Glob -> Grep -> Read. Skip steps when you can.
|
|
@@ -15,6 +15,17 @@ skills:
|
|
|
15
15
|
|
|
16
16
|
# Sleep — Federation Specialist
|
|
17
17
|
|
|
18
|
+
> **⛔ DISABLED — DO NOT DISPATCH (read-only federation, copy-sync parked on roadmap).**
|
|
19
|
+
> Federation is now a *live reference*: connected, shareable peers are read at
|
|
20
|
+
> recall time and **nothing is ever copied** across a vault boundary. The
|
|
21
|
+
> copy-based drain/distribute path below broke single-source-of-truth (lossy,
|
|
22
|
+
> write-once-stale copies + duplicate/conflict noise on edit), so it is disabled:
|
|
23
|
+
> `dreamcontext federation drain` / `sync` are inert no-ops, and the sleep flow no
|
|
24
|
+
> longer fires this specialist. The contract below is retained for reference only,
|
|
25
|
+
> pending a proper redesign of an opt-in offline-mirror mode. To clean up old
|
|
26
|
+
> `federated:true` copies a previous sync wrote, run `dreamcontext federation purge
|
|
27
|
+
> --all` (a deliberate, user-run action — not a sleep step).
|
|
28
|
+
|
|
18
29
|
## Scope and ownership
|
|
19
30
|
|
|
20
31
|
| You touch | You NEVER touch |
|
|
@@ -69,8 +80,23 @@ The whole job is two idempotent commands, ALWAYS in this order:
|
|
|
69
80
|
To inspect WITHOUT writing, use `dreamcontext federation sync --dry-run`
|
|
70
81
|
(computes + prints, writes nothing, watermark not advanced).
|
|
71
82
|
|
|
72
|
-
3. **
|
|
73
|
-
|
|
83
|
+
3. **Then refresh peer summaries** — rebuild the ambient READ-awareness cache so
|
|
84
|
+
the next session's snapshot "Connected projects" section reflects current
|
|
85
|
+
peer state (what each readable peer IS + what was last done there):
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
dreamcontext federation peers
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
- Resolves readable peers (out/both ∩ not-stale ∩ shareable), reads each
|
|
92
|
+
peer's core files (READ-ONLY), and writes the local cache
|
|
93
|
+
`state/.peer-summaries.json` that the snapshot hot path reads cheaply.
|
|
94
|
+
- Never touches a peer's files; never resolves a peer in the snapshot itself.
|
|
95
|
+
- Idempotent — re-running just rewrites the cache.
|
|
96
|
+
|
|
97
|
+
4. **Report** counts: ingested / collisions / conflicts surfaced / quarantined /
|
|
98
|
+
peers synced / peers summarised. Surface any conflict-note to the user
|
|
99
|
+
explicitly.
|
|
74
100
|
|
|
75
101
|
## Gotchas
|
|
76
102
|
|
|
@@ -162,6 +162,24 @@ If the relevant task has `product: X` in frontmatter, the PRD MAY be product-sco
|
|
|
162
162
|
|
|
163
163
|
### Pass B — Knowledge
|
|
164
164
|
|
|
165
|
+
#### B0. Organize — folders, grouping, and placement
|
|
166
|
+
|
|
167
|
+
Before curating content, keep the knowledge store's *structure* logical. `knowledge/**/*.md` is indexed recursively (`buildKnowledgeIndex` globs `**/*.md`), so subfolders are fully recall-safe — grouping a file never hides it.
|
|
168
|
+
|
|
169
|
+
**Diagrams → per-title folders (idempotent, any depth).** Preferred layout is `knowledge/diagrams/<title>/<title>.excalidraw.md` — the board plus its dark-sibling `.board.cjs`/`.json` living together. New boards often land flat (`knowledge/diagrams/<title>.excalidraw.md` next to `<title>.board.cjs`). Fold *canonical* flat boards into per-title folders every cycle:
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
dreamcontext migrations apply-diagrams # idempotent: moves flat canonical boards + same-basename siblings, rewrites inbound [[wikilinks]] atomically; prints "nothing to organize" when already clean
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
Placement judgment FIRST: only canonical boards (architecture, system flows, roadmaps, durable plans a future session should recall) belong under `knowledge/diagrams/`. Scratch/exploratory/in-progress boards belong in `inbox/` or `workspace/` (dark by location — not indexed) — leave those alone; do NOT pull them into knowledge. Never hand-edit board scene JSON or wikilinks — the command owns both. This catches boards created *after* the one-time `0.7.2/diagrams-folder-convention` migration already recorded in the ledger (which `sleep-migration` will not re-fire for).
|
|
176
|
+
|
|
177
|
+
**Knowledge → logical subfolders (grouping; moves are deep-only).** When ≥3 top-level `knowledge/*.md` files form a clear topical cluster a future session would browse together (mirroring the existing `data-structures/` and `products/` subfolders), group them under `knowledge/<group>/`. Moving files + rewriting links is a structural op — gate it exactly like merge-with-delete (B1.5):
|
|
178
|
+
- **light/standard:** do NOT move. **Flag the cluster in your report** (`group candidate: <group>/ ← a.md, b.md, c.md`) for the next deep cycle.
|
|
179
|
+
- **deep:** archive-before (the B1.5 safety net), then move the files and rewrite inbound `[[old-slug]]` references — **target token only**, preserve `|alias` and `#anchor`. Verify every file still lists: `dreamcontext knowledge index --plain`.
|
|
180
|
+
|
|
181
|
+
Group only on a **sharp** topical boundary — the same B2 create-vs-extend test, applied to folders. Don't fragment (one folder per file) and don't over-nest. After any group/move, re-check the moved files' tags in Pass C so the folder and the tags tell the same story.
|
|
182
|
+
|
|
165
183
|
#### B1. Decide: create, update, archive, or pin
|
|
166
184
|
|
|
167
185
|
For each knowledge candidate (research finding, sleep-state flag, extracted overflow):
|
|
@@ -350,6 +368,10 @@ dreamcontext taxonomy resolve <tag>
|
|
|
350
368
|
- 5 user stories, 5 acceptance criteria
|
|
351
369
|
- No-op feature signals: 1 (signal "feature_advanced=marketing-dashboard-v0" — but PRD exists and no criteria moved)
|
|
352
370
|
|
|
371
|
+
### Organization
|
|
372
|
+
- Diagrams: ran `apply-diagrams` — folded knowledge/diagrams/federation.excalidraw.md (+federation.board.cjs) into diagrams/federation/ (canonical board, was flat). 0 ambiguous.
|
|
373
|
+
- Knowledge grouping: group candidate flagged for deep cycle — `decisions/` ← decision-mem0-vs-bm25-recall.md, decision-link-aware-vs-embedding-recall.md, decision-meta-marketing-skill-adoption.md (4 sibling `decision-*` files browse together). Not moved (standard depth).
|
|
374
|
+
|
|
353
375
|
### Knowledge
|
|
354
376
|
- Created: knowledge/jwt-rotation-policy.md (tags: security, decisions; from sleep-state flag) — sharp boundary, new tag-able topic
|
|
355
377
|
- Extended (no new file): knowledge/competitive-analysis-ecc.md — folded the new ECC pricing finding into the existing file (soft distinction, same topic family) instead of forking a near-duplicate slug; updated `summary:`
|
|
@@ -375,6 +397,7 @@ Dropped-but-load-bearing self-check: <none | list any digest/auto-bookmark/resea
|
|
|
375
397
|
6. **Don't create knowledge that already fits in memory.** A short technical decision belongs in `2.memory.md` (sleep-state's domain), not its own knowledge file.
|
|
376
398
|
7. **Knowledge file threshold**: ≥3 paragraphs of content, or material that will be re-read in future sessions.
|
|
377
399
|
8. **Fewest files, sharp boundaries (B2 rubric).** Default to extending an existing file. Fold soft distinctions in — same vertical/brand/topic family, a narrower slice, an increment. Create a new file only for a genuinely separate topic whose own tags sharpen discovery. Not super-files, not fragmentation.
|
|
400
|
+
8a. **Keep the store organized (B0).** Every cycle, fold canonical flat diagram boards into per-title folders (`apply-diagrams`, idempotent, any depth). Group clustered top-level knowledge into logical subfolders only at `deep` depth (flag candidates at light/standard). Subfolders are recall-safe — the index globs `**/*.md`. Folder and tags must tell the same story.
|
|
378
401
|
9. **Use standard tags only (prefer taxonomy vocab).** New tags fragment discovery; always check `dreamcontext taxonomy vocab` before tagging. Add new vocabulary via `taxonomy add` or `taxonomy alias` — never hand-edit `core/taxonomy.json` directly.
|
|
379
402
|
10. **Process all flags from sleep-state** in your report — don't silently drop them.
|
|
380
403
|
11. **No-op cheaply** when signals don't actually warrant work.
|
|
@@ -139,15 +139,24 @@ A fresh session opening this task file should see the *current plan*.
|
|
|
139
139
|
|
|
140
140
|
**Tip — recall before reconciling.** If you're unsure whether a decision observed this session was already captured elsewhere (memory entry, sibling task, knowledge file), run `dreamcontext memory recall "<topic>"` to surface the top hits across the corpus before you edit. Cheaper than grep, deterministic, and helps you avoid duplicating a decision that already lives in `2.memory.md` (which `sleep-state` owns).
|
|
141
141
|
|
|
142
|
-
### 4. Status —
|
|
142
|
+
### 4. Status — review only when genuinely needed
|
|
143
143
|
|
|
144
|
-
|
|
144
|
+
Pick the status that matches reality. **Do NOT reflexively bump everything to `in_review`** — that buries the few tasks that actually need the user's eyes under a pile that didn't, and leaves finished work rotting half-closed.
|
|
145
|
+
|
|
146
|
+
| The task this cycle is… | Status |
|
|
147
|
+
|---|---|
|
|
148
|
+
| **Demonstrably done, low-risk, and already validated** — acceptance criteria met, tests green, nothing a human must second-guess (chores, docs, mechanical refactors, well-covered fixes) | `completed` — close it. |
|
|
149
|
+
| **Done but it genuinely needs the user's verification** — a user-facing behaviour change, a design/architecture decision, a risky or critical-path change, or a criterion that can't be mechanically proven | `in_review` with a one-line "what to verify". |
|
|
150
|
+
| **Work clearly continues next session** | leave `in_progress`. |
|
|
145
151
|
|
|
146
152
|
```bash
|
|
147
|
-
|
|
153
|
+
# Done + validated + nothing to second-guess → close it:
|
|
154
|
+
dreamcontext tasks status <slug> completed "<what shipped — done, validated, no review needed>"
|
|
155
|
+
# A human must actually confirm something → hand it over:
|
|
156
|
+
dreamcontext tasks status <slug> in_review "Needs your eyes — <the specific thing to verify>"
|
|
148
157
|
```
|
|
149
158
|
|
|
150
|
-
|
|
159
|
+
The single test: **would the user actually want to look at this before it's closed?** If yes → `in_review`. If it's done and there's nothing to second-guess → `completed`. When you're genuinely unsure, prefer `in_review`. Only the never-done categories below (superseded / abandoned / obsoleted) ever go to `in_review` *for closing* — that's handing the user a close decision, not a completion.
|
|
151
160
|
|
|
152
161
|
### 5. Version readiness signal (no auto-release)
|
|
153
162
|
|
|
@@ -162,36 +171,46 @@ dreamcontext tasks list --status completed
|
|
|
162
171
|
|
|
163
172
|
If every task linked to the active version is `completed` (or only `in_review` remains), surface this in your report. Do **not** release — that's the user's call.
|
|
164
173
|
|
|
165
|
-
### 6.
|
|
174
|
+
### 6. Backlog grooming — the active list must stay honest
|
|
166
175
|
|
|
167
|
-
|
|
176
|
+
A backlog that nobody has touched in weeks, or that still describes a plan we've since pivoted away from, isn't "active" — it bloats every SessionStart snapshot (each non-completed task costs snapshot tokens on every session) and buries the work that actually matters. Each cycle, groom the whole active list, not just this cycle's tasks:
|
|
168
177
|
|
|
169
178
|
```bash
|
|
170
179
|
dreamcontext tasks list # every non-completed task, with updated dates
|
|
171
180
|
```
|
|
172
181
|
|
|
173
|
-
|
|
182
|
+
**(a) Direction changes & relevance.** If this cycle revealed a pivot — a new idea, a changed plan, a dropped direction — propagate it to the backlog, don't leave stale tasks describing the old plan:
|
|
174
183
|
|
|
175
184
|
| Situation | Action |
|
|
176
185
|
|---|---|
|
|
177
|
-
|
|
|
186
|
+
| A task is partly obsoleted by the pivot | Reconcile its body (step 3): drop the obsolete user stories / criteria, replace stale Technical Details. Keep what's still relevant. |
|
|
187
|
+
| A task is **wholly** made irrelevant by the pivot | Don't silently delete. `dreamcontext tasks status <slug> in_review "obsoleted by <pivot> — confirm close"` — closing someone's planned work is the user's call. |
|
|
188
|
+
| A task now belongs to a different milestone/version | Fix its `version:` frontmatter (Edit the field directly — there's no status-time version verb) so it attaches to the right planning version. |
|
|
189
|
+
|
|
190
|
+
**(b) Staleness.** For each task whose `updated` is **21+ days old** and that no session in this cycle touched, pick one:
|
|
191
|
+
|
|
192
|
+
| Situation | Action |
|
|
193
|
+
|---|---|
|
|
194
|
+
| Work was actually done but never logged | Reconcile it now (steps 3-4) — that's a capture failure, fix it. If it's done + validated, `completed`; if it needs eyes, `in_review`. |
|
|
178
195
|
| Superseded / absorbed by another task | Log a final entry naming the successor, then `dreamcontext tasks status <slug> in_review "superseded by <other-slug> — confirm close"`. |
|
|
179
196
|
| Still genuinely planned, just not started | Leave it, but verify its priority isn't inflated — a `high` task untouched for a month is not high priority; downgrade via Edit. |
|
|
180
197
|
| Abandoned / no longer relevant | `dreamcontext tasks status <slug> in_review "stale 21+ days, appears abandoned — confirm close"`. |
|
|
181
198
|
|
|
182
|
-
|
|
199
|
+
**(c) Tagging.** Tags drive recall — sharpen them every cycle. Normalize every task's frontmatter `tags` to the taxonomy vocab (`dreamcontext taxonomy vocab`), and *add* missing facets (area / type / feature) where a task is under-tagged. A well-tagged backlog is found; a poorly-tagged one is re-derived blind.
|
|
200
|
+
|
|
201
|
+
Never silently delete a task, and never `completed` a task that was never actually done — for superseded/abandoned/obsoleted work, `in_review` with an explicit reason hands the close decision to the user. List every grooming action in your report.
|
|
183
202
|
|
|
184
203
|
## Return — short report
|
|
185
204
|
|
|
186
205
|
```
|
|
187
206
|
## sleep-tasks report
|
|
188
|
-
- Updated: <slug> (in_progress → in_review, "<
|
|
207
|
+
- Updated: <slug> (in_progress → completed, "<done, validated, no review needed>"), <slug> (in_progress → in_review, "<the specific thing the user must verify>"), <slug> (logged)
|
|
189
208
|
- Folded in (no new task): <existing-slug> — broadened scope + added 2 user stories / 1 criterion for <smaller-piece> instead of forking a duplicate
|
|
190
209
|
- Created: <slug> (status: in_progress, attached to vX.Y.Z) — genuinely separate concern
|
|
191
210
|
- Body reconciled: <slug> (dropped phase 1 from User Stories; replaced Technical Details auth section)
|
|
192
211
|
- Person attribution: <slug> tagged person:ada (multi-person project, ada drove this cycle's work) | OR: single-person project — no person tags injected
|
|
193
212
|
- Version readiness: vX.Y.Z — 4/5 tasks ready for review
|
|
194
|
-
-
|
|
213
|
+
- Backlog grooming: <slug> obsoleted by pivot → in_review ("confirm close"), <slug> re-attached v0.8.x→v0.9.0, <slug> tags normalized + facets added, <slug> priority high→medium (untouched 30d), 2 tasks left as-is (genuinely planned)
|
|
195
214
|
- Cross-domain mentions: <slug> includes a memory-worthy decision about JWT — flagging for sleep-state
|
|
196
215
|
- Skipped: <session_id> had no actionable task signal
|
|
197
216
|
|
|
@@ -202,7 +221,7 @@ Dropped-but-load-bearing self-check: <none | list any digest/auto-bookmark/task
|
|
|
202
221
|
|
|
203
222
|
1. **Dedup before creating.** Recall first; fold a smaller slice into the task that already covers it — broaden its title + insert sub-items — instead of forking a duplicate or a needless sub-task. A new task is only for a genuinely separate concern.
|
|
204
223
|
2. **Body = current truth, Changelog = history.** Don't let the body lag behind decisions.
|
|
205
|
-
3. **
|
|
224
|
+
3. **Status reflects reality, not a reflex.** `completed` for done + low-risk + already-validated work; `in_review` only when a human genuinely must verify something (or to hand over a close decision on superseded/abandoned/obsoleted work). Never `completed` a task that was never actually done; never silently delete.
|
|
206
225
|
4. **Always attach to a planning version.** No orphan work.
|
|
207
226
|
5. **Stay in your lane.** If you spot non-task work worth preserving, flag it — don't write it.
|
|
208
227
|
6. **CLI first** for status/log/insert; **Edit** for surgical body reconciliation (including broadening `description:` / `## Why` when scope grows).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bt as jc,bu as I0,aH as pS,bv as xt,bw as Ip,bx as mS,by as gS,bz as _S,bA as xS,bB as yS,bq as vS,br as bS,bC as B0,aC as SS,bD as TS,bE as MS,bF as ES,bG as xg,bH as yg,bI as AS,bJ as k,bK as $s,bL as wS,bM as RS,bN as CS,bO as NS}from"./index-
|
|
1
|
+
import{bt as jc,bu as I0,aH as pS,bv as xt,bw as Ip,bx as mS,by as gS,bz as _S,bA as xS,bB as yS,bq as vS,br as bS,bC as B0,aC as SS,bD as TS,bE as MS,bF as ES,bG as xg,bH as yg,bI as AS,bJ as k,bK as $s,bL as wS,bM as RS,bN as CS,bO as NS}from"./index-Di8SAJL6.js";import{_ as Bi}from"./extends-CF3RwP-h.js";function PS(r){var e=jc(.1),t,n,i;typeof r!="function"&&(r=jc(r==null?0:+r));function s(a){for(var l=0,c=t.length,u;l<c;++l)u=t[l],u.vz+=(i[l]-u.z)*n[l]*a}function o(){if(t){var a,l=t.length;for(n=new Array(l),i=new Array(l),a=0;a<l;++a)n[a]=isNaN(i[a]=+r(t[a],a,t))?0:+e(t[a],a,t)}}return s.initialize=function(a){t=a,o()},s.strength=function(a){return arguments.length?(e=typeof a=="function"?a:jc(+a),o(),s):e},s.z=function(a){return arguments.length?(r=typeof a=="function"?a:jc(+a),o(),s):r},s}/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2010-2026 Three.js Authors
|
|
4
4
|
* SPDX-License-Identifier: MIT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aK as A,aL as S,a_ as P,aJ as W,bY as ln,bZ as gn,b_ as dn,b$ as z,c0 as hn,bT as pn,c1 as G,b1 as N,b6 as m,b9 as R,c2 as An,b0 as U,b4 as _n,c3 as wn,bW as on,aM as V,bU as On,c4 as I}from"./index-
|
|
1
|
+
import{aK as A,aL as S,a_ as P,aJ as W,bY as ln,bZ as gn,b_ as dn,b$ as z,c0 as hn,bT as pn,c1 as G,b1 as N,b6 as m,b9 as R,c2 as An,b0 as U,b4 as _n,c3 as wn,bW as on,aM as V,bU as On,c4 as I}from"./index-Di8SAJL6.js";function vn(n,r){for(var e=-1,i=n==null?0:n.length,f=Array(i);++e<i;)f[e]=r(n[e],e,n);return f}var K=P?P.prototype:void 0,B=K?K.toString:void 0;function k(n){if(typeof n=="string")return n;if(A(n))return vn(n,k)+"";if(S(n))return B?B.call(n):"";var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}function Pn(){}function cn(n,r){for(var e=-1,i=n==null?0:n.length;++e<i&&r(n[e],e,n)!==!1;);return n}function En(n,r,e,i){for(var f=n.length,t=e+-1;++t<f;)if(r(n[t],t,n))return t;return-1}function yn(n){return n!==n}function Tn(n,r,e){for(var i=e-1,f=n.length;++i<f;)if(n[i]===r)return i;return-1}function Rn(n,r,e){return r===r?Tn(n,r,e):En(n,yn,e)}function bn(n,r){var e=n==null?0:n.length;return!!e&&Rn(n,r,0)>-1}function x(n){return W(n)?ln(n):gn(n)}var In=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ln=/^\w*$/;function M(n,r){if(A(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||S(n)?!0:Ln.test(n)||!In.test(n)||r!=null&&n in Object(r)}var Sn=500;function xn(n){var r=dn(n,function(i){return e.size===Sn&&e.clear(),i}),e=r.cache;return r}var Mn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$n=/\\(\\)?/g,Cn=xn(function(n){var r=[];return n.charCodeAt(0)===46&&r.push(""),n.replace(Mn,function(e,i,f,t){r.push(f?t.replace($n,"$1"):i||e)}),r});function Dn(n){return n==null?"":k(n)}function j(n,r){return A(n)?n:M(n,r)?[n]:Cn(Dn(n))}function b(n){if(typeof n=="string"||S(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}function nn(n,r){r=j(r,n);for(var e=0,i=r.length;n!=null&&e<i;)n=n[b(r[e++])];return e&&e==i?n:void 0}function Fn(n,r,e){var i=n==null?void 0:nn(n,r);return i===void 0?e:i}function rn(n,r){for(var e=-1,i=r.length,f=n.length;++e<i;)n[f+e]=r[e];return n}var H=P?P.isConcatSpreadable:void 0;function Gn(n){return A(n)||z(n)||!!(H&&n&&n[H])}function Kr(n,r,e,i,f){var t=-1,u=n.length;for(e||(e=Gn),f||(f=[]);++t<u;){var s=n[t];e(s)?rn(f,s):i||(f[f.length]=s)}return f}function Nn(n,r,e,i){var f=-1,t=n==null?0:n.length;for(i&&t&&(e=n[++f]);++f<t;)e=r(e,n[f],f,n);return e}function en(n,r){for(var e=-1,i=n==null?0:n.length,f=0,t=[];++e<i;){var u=n[e];r(u,e,n)&&(t[f++]=u)}return t}function mn(){return[]}var Un=Object.prototype,Kn=Un.propertyIsEnumerable,Z=Object.getOwnPropertySymbols,Bn=Z?function(n){return n==null?[]:(n=Object(n),en(Z(n),function(r){return Kn.call(n,r)}))}:mn;function Hn(n,r,e){var i=r(n);return A(n)?i:rn(i,e(n))}function q(n){return Hn(n,x,Bn)}var Zn="__lodash_hash_undefined__";function qn(n){return this.__data__.set(n,Zn),this}function Yn(n){return this.__data__.has(n)}function c(n){var r=-1,e=n==null?0:n.length;for(this.__data__=new hn;++r<e;)this.add(n[r])}c.prototype.add=c.prototype.push=qn;c.prototype.has=Yn;function Jn(n,r){for(var e=-1,i=n==null?0:n.length;++e<i;)if(r(n[e],e,n))return!0;return!1}function tn(n,r){return n.has(r)}var Xn=1,Qn=2;function fn(n,r,e,i,f,t){var u=e&Xn,s=n.length,a=r.length;if(s!=a&&!(u&&a>s))return!1;var h=t.get(n),g=t.get(r);if(h&&g)return h==r&&g==n;var l=-1,d=!0,w=e&Qn?new c:void 0;for(t.set(n,r),t.set(r,n);++l<s;){var p=n[l],_=r[l];if(i)var o=u?i(_,p,l,r,n,t):i(p,_,l,n,r,t);if(o!==void 0){if(o)continue;d=!1;break}if(w){if(!Jn(r,function(O,v){if(!tn(w,v)&&(p===O||f(p,O,e,i,t)))return w.push(v)})){d=!1;break}}else if(!(p===_||f(p,_,e,i,t))){d=!1;break}}return t.delete(n),t.delete(r),d}function Wn(n){var r=-1,e=Array(n.size);return n.forEach(function(i,f){e[++r]=[f,i]}),e}function $(n){var r=-1,e=Array(n.size);return n.forEach(function(i){e[++r]=i}),e}var zn=1,Vn=2,kn="[object Boolean]",jn="[object Date]",nr="[object Error]",rr="[object Map]",er="[object Number]",ir="[object RegExp]",tr="[object Set]",fr="[object String]",ur="[object Symbol]",sr="[object ArrayBuffer]",ar="[object DataView]",Y=P?P.prototype:void 0,L=Y?Y.valueOf:void 0;function lr(n,r,e,i,f,t,u){switch(e){case ar:if(n.byteLength!=r.byteLength||n.byteOffset!=r.byteOffset)return!1;n=n.buffer,r=r.buffer;case sr:return!(n.byteLength!=r.byteLength||!t(new G(n),new G(r)));case kn:case jn:case er:return pn(+n,+r);case nr:return n.name==r.name&&n.message==r.message;case ir:case fr:return n==r+"";case rr:var s=Wn;case tr:var a=i&zn;if(s||(s=$),n.size!=r.size&&!a)return!1;var h=u.get(n);if(h)return h==r;i|=Vn,u.set(n,r);var g=fn(s(n),s(r),i,f,t,u);return u.delete(n),g;case ur:if(L)return L.call(n)==L.call(r)}return!1}var gr=1,dr=Object.prototype,hr=dr.hasOwnProperty;function pr(n,r,e,i,f,t){var u=e&gr,s=q(n),a=s.length,h=q(r),g=h.length;if(a!=g&&!u)return!1;for(var l=a;l--;){var d=s[l];if(!(u?d in r:hr.call(r,d)))return!1}var w=t.get(n),p=t.get(r);if(w&&p)return w==r&&p==n;var _=!0;t.set(n,r),t.set(r,n);for(var o=u;++l<a;){d=s[l];var O=n[d],v=r[d];if(i)var F=u?i(v,O,d,r,n,t):i(O,v,d,n,r,t);if(!(F===void 0?O===v||f(O,v,e,i,t):F)){_=!1;break}o||(o=d=="constructor")}if(_&&!o){var E=n.constructor,y=r.constructor;E!=y&&"constructor"in n&&"constructor"in r&&!(typeof E=="function"&&E instanceof E&&typeof y=="function"&&y instanceof y)&&(_=!1)}return t.delete(n),t.delete(r),_}var Ar=1,J="[object Arguments]",X="[object Array]",T="[object Object]",_r=Object.prototype,Q=_r.hasOwnProperty;function wr(n,r,e,i,f,t){var u=A(n),s=A(r),a=u?X:N(n),h=s?X:N(r);a=a==J?T:a,h=h==J?T:h;var g=a==T,l=h==T,d=a==h;if(d&&m(n)){if(!m(r))return!1;u=!0,g=!1}if(d&&!g)return t||(t=new R),u||An(n)?fn(n,r,e,i,f,t):lr(n,r,a,e,i,f,t);if(!(e&Ar)){var w=g&&Q.call(n,"__wrapped__"),p=l&&Q.call(r,"__wrapped__");if(w||p){var _=w?n.value():n,o=p?r.value():r;return t||(t=new R),f(_,o,e,i,t)}}return d?(t||(t=new R),pr(n,r,e,i,f,t)):!1}function C(n,r,e,i,f){return n===r?!0:n==null||r==null||!U(n)&&!U(r)?n!==n&&r!==r:wr(n,r,e,i,C,f)}var or=1,Or=2;function vr(n,r,e,i){var f=e.length,t=f;if(n==null)return!t;for(n=Object(n);f--;){var u=e[f];if(u[2]?u[1]!==n[u[0]]:!(u[0]in n))return!1}for(;++f<t;){u=e[f];var s=u[0],a=n[s],h=u[1];if(u[2]){if(a===void 0&&!(s in n))return!1}else{var g=new R,l;if(!(l===void 0?C(h,a,or|Or,i,g):l))return!1}}return!0}function un(n){return n===n&&!_n(n)}function Pr(n){for(var r=x(n),e=r.length;e--;){var i=r[e],f=n[i];r[e]=[i,f,un(f)]}return r}function sn(n,r){return function(e){return e==null?!1:e[n]===r&&(r!==void 0||n in Object(e))}}function cr(n){var r=Pr(n);return r.length==1&&r[0][2]?sn(r[0][0],r[0][1]):function(e){return e===n||vr(e,n,r)}}function Er(n,r){return n!=null&&r in Object(n)}function yr(n,r,e){r=j(r,n);for(var i=-1,f=r.length,t=!1;++i<f;){var u=b(r[i]);if(!(t=n!=null&&e(n,u)))break;n=n[u]}return t||++i!=f?t:(f=n==null?0:n.length,!!f&&wn(f)&&on(u,f)&&(A(n)||z(n)))}function Tr(n,r){return n!=null&&yr(n,r,Er)}var Rr=1,br=2;function Ir(n,r){return M(n)&&un(r)?sn(b(n),r):function(e){var i=Fn(e,n);return i===void 0&&i===r?Tr(e,n):C(r,i,Rr|br)}}function Lr(n){return function(r){return r==null?void 0:r[n]}}function Sr(n){return function(r){return nn(r,n)}}function xr(n){return M(n)?Lr(b(n)):Sr(n)}function an(n){return typeof n=="function"?n:n==null?V:typeof n=="object"?A(n)?Ir(n[0],n[1]):cr(n):xr(n)}function Mr(n,r){return n&&On(n,r,x)}function $r(n,r){return function(e,i){if(e==null)return e;if(!W(e))return n(e,i);for(var f=e.length,t=-1,u=Object(e);++t<f&&i(u[t],t,u)!==!1;);return e}}var D=$r(Mr);function Cr(n){return typeof n=="function"?n:V}function Br(n,r){var e=A(n)?cn:D;return e(n,Cr(r))}function Dr(n,r){var e=[];return D(n,function(i,f,t){r(i,f,t)&&e.push(i)}),e}function Hr(n,r){var e=A(n)?en:Dr;return e(n,an(r))}function Fr(n,r,e,i,f){return f(n,function(t,u,s){e=i?(i=!1,t):r(e,t,u,s)}),e}function Zr(n,r,e){var i=A(n)?Nn:Fr,f=arguments.length<3;return i(n,an(r),e,f,D)}var Gr=1/0,Nr=I&&1/$(new I([,-0]))[1]==Gr?function(n){return new I(n)}:Pn,mr=200;function qr(n,r,e){var i=-1,f=bn,t=n.length,u=!0,s=[],a=s;if(t>=mr){var h=r?null:Nr(n);if(h)return $(h);u=!1,f=tn,a=new c}else a=r?[]:s;n:for(;++i<t;){var g=n[i],l=r?r(g):g;if(g=g!==0?g:0,u&&l===l){for(var d=a.length;d--;)if(a[d]===l)continue n;r&&a.push(l),s.push(g)}else f(a,l,e)||(a!==s&&a.push(l),s.push(g))}return s}export{D as a,Kr as b,an as c,vn as d,rn as e,Hn as f,Bn as g,cn as h,q as i,qr as j,x as k,Hr as l,Br as m,En as n,Cr as o,Mr as p,yr as q,Zr as r,mn as s,j as t,b as u,nn as v,Tr as w,Dn as x};
|