@cortexkit/opencode-magic-context 0.11.1 → 0.13.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.
Files changed (80) hide show
  1. package/README.md +3 -1
  2. package/dist/agents/historian.d.ts +1 -0
  3. package/dist/agents/historian.d.ts.map +1 -1
  4. package/dist/agents/magic-context-prompt.d.ts +1 -1
  5. package/dist/agents/magic-context-prompt.d.ts.map +1 -1
  6. package/dist/cli/doctor.d.ts.map +1 -1
  7. package/dist/cli.js +362 -83
  8. package/dist/config/index.d.ts.map +1 -1
  9. package/dist/config/schema/magic-context.d.ts +117 -2
  10. package/dist/config/schema/magic-context.d.ts.map +1 -1
  11. package/dist/config/variable.d.ts +46 -0
  12. package/dist/config/variable.d.ts.map +1 -0
  13. package/dist/features/magic-context/compartment-storage.d.ts +27 -1
  14. package/dist/features/magic-context/compartment-storage.d.ts.map +1 -1
  15. package/dist/features/magic-context/compression-depth-storage.d.ts +7 -0
  16. package/dist/features/magic-context/compression-depth-storage.d.ts.map +1 -1
  17. package/dist/features/magic-context/memory/embedding-probe.d.ts +69 -0
  18. package/dist/features/magic-context/memory/embedding-probe.d.ts.map +1 -0
  19. package/dist/features/magic-context/scheduler.d.ts +5 -1
  20. package/dist/features/magic-context/scheduler.d.ts.map +1 -1
  21. package/dist/features/magic-context/storage-db.d.ts.map +1 -1
  22. package/dist/hooks/magic-context/caveman.d.ts +35 -0
  23. package/dist/hooks/magic-context/caveman.d.ts.map +1 -0
  24. package/dist/hooks/magic-context/command-handler.d.ts +29 -1
  25. package/dist/hooks/magic-context/command-handler.d.ts.map +1 -1
  26. package/dist/hooks/magic-context/compartment-prompt.d.ts +8 -3
  27. package/dist/hooks/magic-context/compartment-prompt.d.ts.map +1 -1
  28. package/dist/hooks/magic-context/compartment-runner-compressor.d.ts +46 -0
  29. package/dist/hooks/magic-context/compartment-runner-compressor.d.ts.map +1 -1
  30. package/dist/hooks/magic-context/compartment-runner-historian.d.ts +10 -0
  31. package/dist/hooks/magic-context/compartment-runner-historian.d.ts.map +1 -1
  32. package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
  33. package/dist/hooks/magic-context/compartment-runner-partial-recomp.d.ts +29 -0
  34. package/dist/hooks/magic-context/compartment-runner-partial-recomp.d.ts.map +1 -0
  35. package/dist/hooks/magic-context/compartment-runner-recomp.d.ts.map +1 -1
  36. package/dist/hooks/magic-context/compartment-runner-types.d.ts +9 -0
  37. package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -1
  38. package/dist/hooks/magic-context/compartment-runner-validation.d.ts +5 -0
  39. package/dist/hooks/magic-context/compartment-runner-validation.d.ts.map +1 -1
  40. package/dist/hooks/magic-context/compartment-runner.d.ts +31 -1
  41. package/dist/hooks/magic-context/compartment-runner.d.ts.map +1 -1
  42. package/dist/hooks/magic-context/event-handler.d.ts +4 -0
  43. package/dist/hooks/magic-context/event-handler.d.ts.map +1 -1
  44. package/dist/hooks/magic-context/event-resolvers.d.ts +39 -1
  45. package/dist/hooks/magic-context/event-resolvers.d.ts.map +1 -1
  46. package/dist/hooks/magic-context/execute-status.d.ts +4 -1
  47. package/dist/hooks/magic-context/execute-status.d.ts.map +1 -1
  48. package/dist/hooks/magic-context/hook.d.ts +13 -4
  49. package/dist/hooks/magic-context/hook.d.ts.map +1 -1
  50. package/dist/hooks/magic-context/inject-compartments.d.ts +1 -1
  51. package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
  52. package/dist/hooks/magic-context/nudger.d.ts.map +1 -1
  53. package/dist/hooks/magic-context/read-session-chunk.d.ts +11 -0
  54. package/dist/hooks/magic-context/read-session-chunk.d.ts.map +1 -1
  55. package/dist/hooks/magic-context/read-session-db.d.ts +13 -0
  56. package/dist/hooks/magic-context/read-session-db.d.ts.map +1 -1
  57. package/dist/hooks/magic-context/read-session-formatting.d.ts +7 -0
  58. package/dist/hooks/magic-context/read-session-formatting.d.ts.map +1 -1
  59. package/dist/hooks/magic-context/system-prompt-hash.d.ts +2 -0
  60. package/dist/hooks/magic-context/system-prompt-hash.d.ts.map +1 -1
  61. package/dist/hooks/magic-context/temporal-awareness.d.ts +73 -0
  62. package/dist/hooks/magic-context/temporal-awareness.d.ts.map +1 -0
  63. package/dist/hooks/magic-context/transform-compartment-phase.d.ts +10 -0
  64. package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
  65. package/dist/hooks/magic-context/transform.d.ts +18 -0
  66. package/dist/hooks/magic-context/transform.d.ts.map +1 -1
  67. package/dist/index.d.ts.map +1 -1
  68. package/dist/index.js +2562 -1086
  69. package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
  70. package/dist/plugin/rpc-handlers.d.ts.map +1 -1
  71. package/dist/shared/model-requirements.d.ts.map +1 -1
  72. package/dist/shared/models-dev-cache.d.ts.map +1 -1
  73. package/dist/shared/rpc-types.d.ts +11 -0
  74. package/dist/shared/rpc-types.d.ts.map +1 -1
  75. package/dist/tui/data/context-db.d.ts.map +1 -1
  76. package/package.json +1 -1
  77. package/src/shared/model-requirements.ts +3 -1
  78. package/src/shared/models-dev-cache.ts +11 -1
  79. package/src/shared/rpc-types.ts +11 -0
  80. package/src/tui/data/context-db.ts +1 -0
package/README.md CHANGED
@@ -50,6 +50,8 @@ Your agent should never stop working to manage its own context. Magic Context is
50
50
 
51
51
  **Key File Pinning** — dreamer analyzes which files your agent reads most frequently across the session. Core orientation files (architecture, config, types) that get re-read after every context drop are pinned into the system prompt as `<key-files>`, so the agent always has them without needing to re-read from disk. Files are read fresh on each cache-busting pass. Enable with `experimental.pin_key_files.enabled: true` (requires dreamer).
52
52
 
53
+ **Temporal Awareness** — gives the agent real-time perception. Each user message gets a small `<!-- +5m -->`/`<!-- +2h 15m -->`/`<!-- +3d 4h -->` gap marker showing time since the previous message, and every compartment in `<session-history>` carries `start-date`/`end-date` attributes. Lets the agent reason correctly about how long a build ran, when a decision was made, or how stale a prior session is. Cache-safe — markers derive from immutable timestamps. Enable with `experimental.temporal_awareness: true`.
54
+
53
55
  ---
54
56
 
55
57
  ## Get Started
@@ -333,7 +335,7 @@ On startup, Magic Context checks for common configuration problems — OpenCode'
333
335
  A companion desktop app for browsing and managing Magic Context state outside of OpenCode.
334
336
 
335
337
  <p align="center">
336
- <a href="https://github.com/cortexkit/opencode-magic-context/releases/tag/dashboard-v0.2.7"><strong>⬇️ Download for macOS · Windows · Linux</strong></a></p>
338
+ <a href="https://github.com/cortexkit/opencode-magic-context/releases/tag/dashboard-v0.2.8"><strong>⬇️ Download for macOS · Windows · Linux</strong></a></p>
337
339
 
338
340
  **Features:**
339
341
  - **Memory Browser** — search, filter, and edit project memories with category and project filtering
@@ -1,2 +1,3 @@
1
1
  export declare const HISTORIAN_AGENT = "historian";
2
+ export declare const HISTORIAN_EDITOR_AGENT = "historian-editor";
2
3
  //# sourceMappingURL=historian.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"historian.d.ts","sourceRoot":"","sources":["../../src/agents/historian.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"historian.d.ts","sourceRoot":"","sources":["../../src/agents/historian.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,cAAc,CAAC;AAC3C,eAAO,MAAM,sBAAsB,qBAAqB,CAAC"}
@@ -9,6 +9,6 @@ type AgentType = "sisyphus" | "atlas" | "hephaestus" | "sisyphus-junior" | "orac
9
9
  * Order matters — more specific signatures (e.g., "Sisyphus-Junior") are checked first.
10
10
  */
11
11
  export declare function detectAgentFromSystemPrompt(systemPrompt: string): AgentType | null;
12
- export declare function buildMagicContextSection(agent: AgentType | null, protectedTags: number, ctxReduceEnabled?: boolean, dreamerEnabled?: boolean, dropToolStructure?: boolean): string;
12
+ export declare function buildMagicContextSection(agent: AgentType | null, protectedTags: number, ctxReduceEnabled?: boolean, dreamerEnabled?: boolean, dropToolStructure?: boolean, temporalAwarenessEnabled?: boolean): string;
13
13
  export {};
14
14
  //# sourceMappingURL=magic-context-prompt.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"magic-context-prompt.d.ts","sourceRoot":"","sources":["../../src/agents/magic-context-prompt.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,KAAK,SAAS,GACR,UAAU,GACV,OAAO,GACP,YAAY,GACZ,iBAAiB,GACjB,QAAQ,GACR,QAAQ,GACR,eAAe,CAAC;AAyMtB;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAOlF;AAED,wBAAgB,wBAAwB,CACpC,KAAK,EAAE,SAAS,GAAG,IAAI,EACvB,aAAa,EAAE,MAAM,EACrB,gBAAgB,UAAO,EACvB,cAAc,UAAQ,EACtB,iBAAiB,UAAO,GACzB,MAAM,CAUR"}
1
+ {"version":3,"file":"magic-context-prompt.d.ts","sourceRoot":"","sources":["../../src/agents/magic-context-prompt.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,KAAK,SAAS,GACR,UAAU,GACV,OAAO,GACP,YAAY,GACZ,iBAAiB,GACjB,QAAQ,GACR,QAAQ,GACR,eAAe,CAAC;AAyMtB;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAOlF;AAID,wBAAgB,wBAAwB,CACpC,KAAK,EAAE,SAAS,GAAG,IAAI,EACvB,aAAa,EAAE,MAAM,EACrB,gBAAgB,UAAO,EACvB,cAAc,UAAQ,EACtB,iBAAiB,UAAO,EACxB,wBAAwB,UAAQ,GACjC,MAAM,CAWR"}
@@ -1 +1 @@
1
- {"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/cli/doctor.ts"],"names":[],"mappings":"AA4MA,wBAAsB,SAAS,CAC3B,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO,GACnD,OAAO,CAAC,MAAM,CAAC,CAiXjB"}
1
+ {"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/cli/doctor.ts"],"names":[],"mappings":"AA+XA,wBAAsB,SAAS,CAC3B,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO,GACnD,OAAO,CAAC,MAAM,CAAC,CAuXjB"}