@cortexkit/opencode-magic-context 0.2.0 → 0.2.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 (43) hide show
  1. package/dist/config/schema/magic-context.d.ts +0 -14
  2. package/dist/config/schema/magic-context.d.ts.map +1 -1
  3. package/dist/features/magic-context/compartment-storage.d.ts.map +1 -1
  4. package/dist/features/magic-context/dreamer/queue.d.ts +0 -2
  5. package/dist/features/magic-context/dreamer/queue.d.ts.map +1 -1
  6. package/dist/features/magic-context/memory/embedding-cache.d.ts +8 -0
  7. package/dist/features/magic-context/memory/embedding-cache.d.ts.map +1 -0
  8. package/dist/features/magic-context/memory/embedding.d.ts.map +1 -1
  9. package/dist/features/magic-context/memory/index.d.ts +1 -0
  10. package/dist/features/magic-context/memory/index.d.ts.map +1 -1
  11. package/dist/features/magic-context/memory/storage-memory-fts.d.ts.map +1 -1
  12. package/dist/features/magic-context/memory/storage-memory.d.ts.map +1 -1
  13. package/dist/features/magic-context/message-index.d.ts +1 -0
  14. package/dist/features/magic-context/message-index.d.ts.map +1 -1
  15. package/dist/features/magic-context/scheduler.d.ts +1 -1
  16. package/dist/features/magic-context/scheduler.d.ts.map +1 -1
  17. package/dist/features/magic-context/search.d.ts.map +1 -1
  18. package/dist/features/magic-context/storage-db.d.ts.map +1 -1
  19. package/dist/features/magic-context/storage-meta-session.d.ts.map +1 -1
  20. package/dist/features/magic-context/storage-ops.d.ts +0 -1
  21. package/dist/features/magic-context/storage-ops.d.ts.map +1 -1
  22. package/dist/features/magic-context/storage-tags.d.ts.map +1 -1
  23. package/dist/features/magic-context/storage.d.ts +1 -1
  24. package/dist/features/magic-context/storage.d.ts.map +1 -1
  25. package/dist/hooks/magic-context/compartment-runner.d.ts.map +1 -1
  26. package/dist/hooks/magic-context/compartment-trigger.d.ts.map +1 -1
  27. package/dist/hooks/magic-context/hook.d.ts.map +1 -1
  28. package/dist/hooks/magic-context/read-session-chunk.d.ts +1 -0
  29. package/dist/hooks/magic-context/read-session-chunk.d.ts.map +1 -1
  30. package/dist/hooks/magic-context/tag-id-fallback.d.ts.map +1 -1
  31. package/dist/hooks/magic-context/transform-context-state.d.ts +1 -1
  32. package/dist/hooks/magic-context/transform-context-state.d.ts.map +1 -1
  33. package/dist/hooks/magic-context/transform.d.ts +1 -0
  34. package/dist/hooks/magic-context/transform.d.ts.map +1 -1
  35. package/dist/index.js +1206 -1052
  36. package/dist/plugin/dream-timer.d.ts +1 -1
  37. package/dist/plugin/dream-timer.d.ts.map +1 -1
  38. package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
  39. package/dist/shared/jsonc-parser.d.ts +0 -9
  40. package/dist/shared/jsonc-parser.d.ts.map +1 -1
  41. package/package.json +1 -1
  42. package/dist/plugin/hooks/create-tag-content-resolver.d.ts +0 -7
  43. package/dist/plugin/hooks/create-tag-content-resolver.d.ts.map +0 -1
@@ -10,5 +10,5 @@ import type { PluginContext } from "./types";
10
10
  export declare function startDreamScheduleTimer(args: {
11
11
  client: PluginContext["client"];
12
12
  dreamerConfig: DreamerConfig;
13
- }): void;
13
+ }): (() => void) | undefined;
14
14
  //# 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,IAAI,CAkCP"}
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 +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;;;;;;qBAiBW,CAAJ;;;;;;;;;;;;qBAkBQ,CAAV;mBAAkB,CAAA;;;;;0BAOgpT,CAAC;;;;;;EADxqT"}
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;;;;;;qBAiBW,CAAJ;;;;;;;;;;;;qBAkBQ,CAAV;mBAAkB,CAAA;;;;;0BAO03T,CAAC;;;;;;EADl5T"}
@@ -1,13 +1,4 @@
1
- export interface JsoncParseResult<T> {
2
- data: T | null;
3
- errors: Array<{
4
- message: string;
5
- offset: number;
6
- length: number;
7
- }>;
8
- }
9
1
  export declare function parseJsonc<T = unknown>(content: string): T;
10
- export declare function parseJsoncSafe<T = unknown>(content: string): JsoncParseResult<T>;
11
2
  export declare function readJsoncFile<T = unknown>(filePath: string): T | null;
12
3
  export declare function detectConfigFile(basePath: string): {
13
4
  format: "json" | "jsonc" | "none";
@@ -1 +1 @@
1
- {"version":3,"file":"jsonc-parser.d.ts","sourceRoot":"","sources":["../../src/shared/jsonc-parser.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,gBAAgB,CAAC,CAAC;IAC/B,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;IACf,MAAM,EAAE,KAAK,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACtE;AA4GD,wBAAgB,UAAU,CAAC,CAAC,GAAG,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC,CAG1D;AAED,wBAAgB,cAAc,CAAC,CAAC,GAAG,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAkBhF;AAED,wBAAgB,aAAa,CAAC,CAAC,GAAG,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,CAMrE;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG;IAChD,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;CAChB,CAaA"}
1
+ {"version":3,"file":"jsonc-parser.d.ts","sourceRoot":"","sources":["../../src/shared/jsonc-parser.ts"],"names":[],"mappings":"AA4GA,wBAAgB,UAAU,CAAC,CAAC,GAAG,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC,CAG1D;AAED,wBAAgB,aAAa,CAAC,CAAC,GAAG,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,CAMrE;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG;IAChD,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;CAChB,CAaA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/opencode-magic-context",
3
- "version": "0.2.0",
3
+ "version": "0.2.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",
@@ -1,7 +0,0 @@
1
- import type { openDatabase } from "../../features/magic-context/storage";
2
- import type { PluginContext } from "../types";
3
- export declare function createTagContentResolver(ctx: PluginContext, db: ReturnType<typeof openDatabase>): {
4
- resolveTagContent: (sessionId: string, tagId: number, skipCache?: boolean) => Promise<string | null>;
5
- clearCache: (sessionId?: string) => void;
6
- };
7
- //# sourceMappingURL=create-tag-content-resolver.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-tag-content-resolver.d.ts","sourceRoot":"","sources":["../../../src/plugin/hooks/create-tag-content-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAwC9C,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,aAAa,EAAE,EAAE,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC;mCAsC7E,MAAM,SACV,MAAM,0BAEd,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;6BArCO,MAAM,KAAG,IAAI;EAuEhD"}