@cortexkit/opencode-magic-context 0.27.3 → 0.28.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 (55) hide show
  1. package/dist/agents/language-directive.d.ts +27 -0
  2. package/dist/agents/language-directive.d.ts.map +1 -0
  3. package/dist/agents/magic-context-prompt.d.ts +1 -1
  4. package/dist/agents/magic-context-prompt.d.ts.map +1 -1
  5. package/dist/config/project-security.d.ts +1 -0
  6. package/dist/config/project-security.d.ts.map +1 -1
  7. package/dist/config/schema/magic-context.d.ts +4 -0
  8. package/dist/config/schema/magic-context.d.ts.map +1 -1
  9. package/dist/features/magic-context/dreamer/refresh-primers.d.ts +1 -0
  10. package/dist/features/magic-context/dreamer/refresh-primers.d.ts.map +1 -1
  11. package/dist/features/magic-context/dreamer/task-config.d.ts +1 -1
  12. package/dist/features/magic-context/dreamer/task-config.d.ts.map +1 -1
  13. package/dist/features/magic-context/dreamer/task-executor.d.ts +1 -0
  14. package/dist/features/magic-context/dreamer/task-executor.d.ts.map +1 -1
  15. package/dist/features/magic-context/dreamer/task-scheduler.d.ts +1 -0
  16. package/dist/features/magic-context/dreamer/task-scheduler.d.ts.map +1 -1
  17. package/dist/features/magic-context/dreamer/verify.d.ts +1 -0
  18. package/dist/features/magic-context/dreamer/verify.d.ts.map +1 -1
  19. package/dist/features/magic-context/memory/memory-migration.d.ts +1 -0
  20. package/dist/features/magic-context/memory/memory-migration.d.ts.map +1 -1
  21. package/dist/features/magic-context/sidekick/agent.d.ts +1 -0
  22. package/dist/features/magic-context/sidekick/agent.d.ts.map +1 -1
  23. package/dist/features/magic-context/storage-tags.d.ts +0 -5
  24. package/dist/features/magic-context/storage-tags.d.ts.map +1 -1
  25. package/dist/features/magic-context/user-memory/review-user-memories.d.ts +1 -0
  26. package/dist/features/magic-context/user-memory/review-user-memories.d.ts.map +1 -1
  27. package/dist/hooks/magic-context/command-handler.d.ts +1 -0
  28. package/dist/hooks/magic-context/command-handler.d.ts.map +1 -1
  29. package/dist/hooks/magic-context/compartment-runner-historian.d.ts +1 -0
  30. package/dist/hooks/magic-context/compartment-runner-historian.d.ts.map +1 -1
  31. package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
  32. package/dist/hooks/magic-context/compartment-runner-partial-recomp.d.ts.map +1 -1
  33. package/dist/hooks/magic-context/compartment-runner-recomp.d.ts.map +1 -1
  34. package/dist/hooks/magic-context/compartment-runner-types.d.ts +1 -0
  35. package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -1
  36. package/dist/hooks/magic-context/compartment-runner-validation.d.ts +1 -1
  37. package/dist/hooks/magic-context/compartment-runner-validation.d.ts.map +1 -1
  38. package/dist/hooks/magic-context/ctx-reduce-nudge.d.ts +13 -3
  39. package/dist/hooks/magic-context/ctx-reduce-nudge.d.ts.map +1 -1
  40. package/dist/hooks/magic-context/hook-handlers.d.ts.map +1 -1
  41. package/dist/hooks/magic-context/hook.d.ts +1 -0
  42. package/dist/hooks/magic-context/hook.d.ts.map +1 -1
  43. package/dist/hooks/magic-context/recomp-orchestrator.d.ts +1 -0
  44. package/dist/hooks/magic-context/recomp-orchestrator.d.ts.map +1 -1
  45. package/dist/hooks/magic-context/system-prompt-hash.d.ts +2 -0
  46. package/dist/hooks/magic-context/system-prompt-hash.d.ts.map +1 -1
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/index.js +192 -43
  49. package/dist/plugin/dream-timer.d.ts +1 -0
  50. package/dist/plugin/dream-timer.d.ts.map +1 -1
  51. package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
  52. package/dist/shared/announcement.d.ts +1 -1
  53. package/dist/shared/announcement.d.ts.map +1 -1
  54. package/package.json +1 -1
  55. package/src/shared/announcement.ts +3 -6
@@ -1 +1 @@
1
- {"version":3,"file":"dream-timer.d.ts","sourceRoot":"","sources":["../../src/plugin/dream-timer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BjF;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACrC,GAAG,EAAE,aAAa,CAAC;IACnB,YAAY,EAAE,wBAAwB,CAAC;IACvC,gBAAgB,EAAE,gBAAgB,CAAC;CACtC;;;;;;qBA+By6J,CAAC;;;;;;;;;;;;qBAAvsD,CAAC;mBAAyB,CAAC;iBAAuB,CAAC;iBAAuB,CAAC;0BAAc,CAAC;uBAAiB,CAAC;;;;;;0BAAmtmC,CAAC;;;;;;EADnitC"}
@@ -18,7 +18,7 @@
18
18
  * Bump only when there are user-visible changes worth a startup dialog.
19
19
  * Does NOT need to match the published package version.
20
20
  */
21
- export declare const ANNOUNCEMENT_VERSION = "0.27.0";
21
+ export declare const ANNOUNCEMENT_VERSION = "0.28.0";
22
22
  /**
23
23
  * Short, user-facing bullet strings. Keep each line ~80 chars or shorter so the
24
24
  * TUI dialog renders cleanly without horizontal scroll on a typical terminal.
@@ -1 +1 @@
1
- {"version":3,"file":"announcement.d.ts","sourceRoot":"","sources":["../../src/shared/announcement.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAOH;;;GAGG;AACH,eAAO,MAAM,oBAAoB,WAAW,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,MAAM,CAMvD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,qDAAqD,CAAC;AAyBtF;;;;GAIG;AACH,wBAAgB,wBAAwB,IAAI,MAAM,CAGjD;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAS1D;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,sBAAsB,IAAI,OAAO,CA0BhD"}
1
+ {"version":3,"file":"announcement.d.ts","sourceRoot":"","sources":["../../src/shared/announcement.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAOH;;;GAGG;AACH,eAAO,MAAM,oBAAoB,WAAW,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,MAAM,CAGvD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,qDAAqD,CAAC;AAyBtF;;;;GAIG;AACH,wBAAgB,wBAAwB,IAAI,MAAM,CAGjD;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAS1D;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,sBAAsB,IAAI,OAAO,CA0BhD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/opencode-magic-context",
3
- "version": "0.27.3",
3
+ "version": "0.28.0",
4
4
  "type": "module",
5
5
  "description": "OpenCode plugin for Magic Context — cross-session memory and context management",
6
6
  "main": "dist/index.js",
@@ -24,18 +24,15 @@ import { getMagicContextStorageDir } from "./data-path";
24
24
  * Bump only when there are user-visible changes worth a startup dialog.
25
25
  * Does NOT need to match the published package version.
26
26
  */
27
- export const ANNOUNCEMENT_VERSION = "0.27.0";
27
+ export const ANNOUNCEMENT_VERSION = "0.28.0";
28
28
 
29
29
  /**
30
30
  * Short, user-facing bullet strings. Keep each line ~80 chars or shorter so the
31
31
  * TUI dialog renders cleanly without horizontal scroll on a typical terminal.
32
32
  */
33
33
  export const ANNOUNCEMENT_FEATURES: ReadonlyArray<string> = [
34
- "Dreamer V2: each maintenance task now runs on its own schedule (cron), with its own model. Configure them in setup, the dashboard, or magic-context.jsonc.",
35
- "New 'classify' task scores each memory's importance so the most relevant stay in context as your work shifts; new 'retrospective' learns from moments you had to correct or re-explain. Both cache-safe, on by default, off anytime.",
36
- "New Primers: durable answers to the questions that keep coming up about your project, kept current by the dreamer investigating the actual code.",
37
- "Embedding storage no longer wipes your vectors when you change model or endpoint. Different models now coexist, so switching providers keeps your existing vectors.",
38
- "Config moved to a shared CortexKit location (~/.config/cortexkit/ and <project>/.cortexkit/). This happens automatically on first run; your old file is preserved.",
34
+ 'New \'language\' option: set a top-level 2-letter language code (e.g. "tr" or "es") and Magic Context writes its summaries, memories, and guidance in that language, while keeping all structure (tags, categories, code, paths) in English. User-level only, off by default.',
35
+ "The ctx_reduce reminder now reflects how much tool output is actually reclaimable, instead of escalating to 'urgent' just because you're near compaction. It also no longer suggests dropping the agent's task list or tiny status outputs.",
39
36
  ];
40
37
 
41
38
  /**