@cortexkit/opencode-magic-context 0.3.4 → 0.4.1

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 (42) hide show
  1. package/dist/config/schema/magic-context.d.ts +12 -0
  2. package/dist/config/schema/magic-context.d.ts.map +1 -1
  3. package/dist/features/magic-context/compression-depth-storage.d.ts +6 -0
  4. package/dist/features/magic-context/compression-depth-storage.d.ts.map +1 -0
  5. package/dist/features/magic-context/dreamer/index.d.ts +1 -0
  6. package/dist/features/magic-context/dreamer/index.d.ts.map +1 -1
  7. package/dist/features/magic-context/dreamer/runner.d.ts +2 -0
  8. package/dist/features/magic-context/dreamer/runner.d.ts.map +1 -1
  9. package/dist/features/magic-context/dreamer/storage-dream-runs.d.ts +41 -0
  10. package/dist/features/magic-context/dreamer/storage-dream-runs.d.ts.map +1 -0
  11. package/dist/features/magic-context/memory/embedding.d.ts +2 -0
  12. package/dist/features/magic-context/memory/embedding.d.ts.map +1 -1
  13. package/dist/features/magic-context/memory/storage-memory.d.ts +11 -0
  14. package/dist/features/magic-context/memory/storage-memory.d.ts.map +1 -1
  15. package/dist/features/magic-context/message-index.d.ts.map +1 -1
  16. package/dist/features/magic-context/storage-db.d.ts.map +1 -1
  17. package/dist/features/magic-context/storage-meta-session.d.ts.map +1 -1
  18. package/dist/features/magic-context/storage.d.ts +1 -0
  19. package/dist/features/magic-context/storage.d.ts.map +1 -1
  20. package/dist/features/magic-context/tagger.d.ts.map +1 -1
  21. package/dist/hooks/magic-context/command-handler.d.ts +4 -0
  22. package/dist/hooks/magic-context/command-handler.d.ts.map +1 -1
  23. package/dist/hooks/magic-context/compartment-prompt.d.ts +2 -2
  24. package/dist/hooks/magic-context/compartment-prompt.d.ts.map +1 -1
  25. package/dist/hooks/magic-context/compartment-runner-compressor.d.ts.map +1 -1
  26. package/dist/hooks/magic-context/compartment-trigger.d.ts +4 -1
  27. package/dist/hooks/magic-context/compartment-trigger.d.ts.map +1 -1
  28. package/dist/hooks/magic-context/event-handler.d.ts +4 -0
  29. package/dist/hooks/magic-context/event-handler.d.ts.map +1 -1
  30. package/dist/hooks/magic-context/execute-status.d.ts +4 -1
  31. package/dist/hooks/magic-context/execute-status.d.ts.map +1 -1
  32. package/dist/hooks/magic-context/hook.d.ts +4 -0
  33. package/dist/hooks/magic-context/hook.d.ts.map +1 -1
  34. package/dist/hooks/magic-context/transform.d.ts +4 -0
  35. package/dist/hooks/magic-context/transform.d.ts.map +1 -1
  36. package/dist/index.d.ts.map +1 -1
  37. package/dist/index.js +4513 -4135
  38. package/dist/plugin/dream-timer.d.ts +5 -2
  39. package/dist/plugin/dream-timer.d.ts.map +1 -1
  40. package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
  41. package/dist/tools/ctx-memory/tools.d.ts.map +1 -1
  42. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import type { DreamerConfig } from "../config/schema/magic-context";
1
+ import type { DreamerConfig, EmbeddingConfig } from "../config/schema/magic-context";
2
2
  import type { PluginContext } from "./types";
3
3
  /**
4
4
  * Start an independent timer that checks the dreamer schedule and processes
@@ -8,7 +8,10 @@ import type { PluginContext } from "./types";
8
8
  * The timer is unref'd so it doesn't prevent the process from exiting.
9
9
  */
10
10
  export declare function startDreamScheduleTimer(args: {
11
+ directory: string;
11
12
  client: PluginContext["client"];
12
- dreamerConfig: DreamerConfig;
13
+ dreamerConfig?: DreamerConfig;
14
+ embeddingConfig: EmbeddingConfig;
15
+ memoryEnabled: boolean;
13
16
  }): (() => void) | undefined;
14
17
  //# sourceMappingURL=dream-timer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dream-timer.d.ts","sourceRoot":"","sources":["../../src/plugin/dream-timer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAIpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAK7C;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE;IAC1C,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAChC,aAAa,EAAE,aAAa,CAAC;CAChC,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAuC3B"}
1
+ {"version":3,"file":"dream-timer.d.ts","sourceRoot":"","sources":["../../src/plugin/dream-timer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAMrF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAK7C;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAChC,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,eAAe,EAAE,eAAe,CAAC;IACjC,aAAa,EAAE,OAAO,CAAC;CAC1B,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CA6D3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-session-hooks.d.ts","sourceRoot":"","sources":["../../../src/plugin/hooks/create-session-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAU7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACrC,GAAG,EAAE,aAAa,CAAC;IACnB,YAAY,EAAE,wBAAwB,CAAC;CAC1C;;;;;;qBA2CA,CAAC;;;;;;;;;;;;qBARc,CAAN;mBAAiB,CAAC;;;;;0BAQ4+T,CAAC;;;;;;EADxgU"}
1
+ {"version":3,"file":"create-session-hooks.d.ts","sourceRoot":"","sources":["../../../src/plugin/hooks/create-session-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAU7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACrC,GAAG,EAAE,aAAa,CAAC;IACnB,YAAY,EAAE,wBAAwB,CAAC;CAC1C;;;;;;qBA2CA,CAAC;;;;;;;;;;;;qBARc,CAAN;mBAAiB,CAAC;;;;;0BAQysU,CAAC;;;;;;EADruU"}
@@ -1 +1 @@
1
- {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/tools/ctx-memory/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,qBAAqB,CAAC;AAqBhE,OAAO,EAIH,KAAK,iBAAiB,EACzB,MAAM,SAAS,CAAC;AAoajB,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAI5F"}
1
+ {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/tools/ctx-memory/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,qBAAqB,CAAC;AAqBhE,OAAO,EAIH,KAAK,iBAAiB,EACzB,MAAM,SAAS,CAAC;AA0cjB,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAI5F"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/opencode-magic-context",
3
- "version": "0.3.4",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
5
  "description": "OpenCode plugin for Magic Context — cross-session memory and context management",
6
6
  "main": "dist/index.js",