@cortexkit/pi-magic-context 0.46.1 → 0.47.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.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  withSqliteBackgroundWriter,
3
3
  withoutSqliteTransformPass
4
- } from "./index-wv28nczk.js";
4
+ } from "./index-0qejsd7f.js";
5
5
  import"./index-7n8gb6j3.js";
6
6
  import {
7
7
  logSlowWriteTransaction
@@ -4,15 +4,17 @@ import {
4
4
  } from "./index-7n8gb6j3.js";
5
5
  import {
6
6
  Database
7
- } from "./index-wv28nczk.js";
7
+ } from "./index-0qejsd7f.js";
8
8
  import {
9
- runMigrationsWithRetry,
10
- setSqlitePragmaConfig,
11
- initializeDatabase
12
- } from "./index-4vfrjwf6.js";
9
+ runMigrationsWithRetry
10
+ } from "./index-xpbh1ypk.js";
13
11
  import {
14
12
  closeQuietly
15
13
  } from "./index-td885aah.js";
14
+ import {
15
+ setSqlitePragmaConfig,
16
+ initializeDatabase
17
+ } from "./index-kztsbkqq.js";
16
18
  import"./index-266qrgss.js";
17
19
  import"./index-2p1e8706.js";
18
20
 
@@ -32,14 +32,14 @@ import {
32
32
  readSessionChunk2,
33
33
  getRawSessionMessageIdsThrough2,
34
34
  readRawSessionSeedTail2
35
- } from "./index-xvw8zptx.js";
36
- import"./index-phh7e055.js";
35
+ } from "./index-7s8vw2y0.js";
36
+ import"./index-spk5vrhy.js";
37
37
  import"./index-td885aah.js";
38
38
  import {
39
39
  hasMeaningfulUserText2,
40
40
  extractTexts2
41
41
  } from "./index-266qrgss.js";
42
- import"./index-wv28nczk.js";
42
+ import"./index-0qejsd7f.js";
43
43
  import"./index-7n8gb6j3.js";
44
44
  export {
45
45
  RAW_MESSAGE_VISIT_PAGE_SIZE2 as RAW_MESSAGE_VISIT_PAGE_SIZE,
@@ -1,15 +1,17 @@
1
1
  import {
2
2
  TOKEN_BUDGET_TOOL_REFUSAL
3
- } from "./index-xvw8zptx.js";
3
+ } from "./index-7s8vw2y0.js";
4
4
  import {
5
5
  setHarness,
6
6
  log
7
7
  } from "./index-7n8gb6j3.js";
8
8
  import {
9
- resolveProjectIdentityForSession,
9
+ resolveProjectIdentityForSession
10
+ } from "./index-xpbh1ypk.js";
11
+ import {
10
12
  openDatabase
11
- } from "./index-4vfrjwf6.js";
12
- import"./index-wv28nczk.js";
13
+ } from "./index-kztsbkqq.js";
14
+ import"./index-0qejsd7f.js";
13
15
  import"./index-td885aah.js";
14
16
  import"./index-266qrgss.js";
15
17
  import {
@@ -17,9 +19,10 @@ import {
17
19
  ensureProjectRegisteredFromPiDirectory,
18
20
  resolvePiHarnessKind,
19
21
  registerMagicContextTools
20
- } from "./index-ykb8kkm3.js";
21
- import"./index-r01b1b78.js";
22
- import"./index-phh7e055.js";
22
+ } from "./index-k3ezsjng.js";
23
+ import"./index-vgcemg0n.js";
24
+ import"./index-spk5vrhy.js";
25
+ import"./index-qaa5j277.js";
23
26
  import {
24
27
  setStoragePrivatePermissionEnforcement
25
28
  } from "./index-vf38qhee.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/pi-magic-context",
3
- "version": "0.46.1",
3
+ "version": "0.47.0",
4
4
  "type": "module",
5
5
  "description": "Pi and OMP coding agent extension for Magic Context — cross-session memory and context management",
6
6
  "main": "dist/index.js",
@@ -29,7 +29,7 @@
29
29
  ],
30
30
  "//": "The build intentionally bundles typebox (no --external typebox) and keeps it a regular dependency. OMP's extension loader rewrites every bare `typebox` import to its own omptype-based shim, whose schemas are callable objects rather than JSON Schema; they fail structuredClone during tool registration, so an external typebox import stops Magic Context loading on OMP. src/typebox-bundling.test.ts guards this.",
31
31
  "scripts": {
32
- "build": "bun ../../scripts/check-bun.mjs && tsc -p ../retina-local-fs/tsconfig.build.json && bun ../../scripts/clean-dist-chunks.mjs dist index.js subagent-entry.js historian-calibration-extension.js transformers-web.js transformers-node-wasm.js && bun build ../plugin/src/features/magic-context/memory/transformers-web-entry.ts --outfile dist/transformers-web.js --target browser --format esm --external onnxruntime-web && bun ../plugin/scripts/build-transformers-node-wasm.ts dist && bun build src/index.ts src/subagent-entry.ts src/historian-calibration-extension.ts ../plugin/src/features/magic-context/memory/embedding-worker.ts ../plugin/src/features/magic-context/migration-worker.ts --outdir dist --entry-naming '[name].[ext]' --target node --format esm --splitting --external @earendil-works/pi-coding-agent --external @earendil-works/pi-tui --external onnxruntime-node --external onnxruntime-web --external sharp --external node:sqlite",
32
+ "build": "bun ../../scripts/check-bun.mjs && tsc -p ../retina-local-fs/tsconfig.build.json && bun ../../scripts/clean-dist-chunks.mjs dist index.js subagent-entry.js historian-calibration-extension.js transformers-web.js transformers-node-wasm.js && bun build ../plugin/src/features/magic-context/memory/transformers-web-entry.ts --outfile dist/transformers-web.js --target browser --format esm --external onnxruntime-web && bun ../plugin/scripts/build-transformers-node-wasm.ts dist && bun build src/index.ts src/subagent-entry.ts src/historian-calibration-extension.ts ../plugin/src/features/magic-context/memory/embedding-worker.ts ../plugin/src/features/magic-context/migration-worker.ts ../plugin/src/hooks/magic-context/auto-search-worker.ts --outdir dist --entry-naming '[name].[ext]' --target node --format esm --splitting --external @earendil-works/pi-coding-agent --external @earendil-works/pi-tui --external onnxruntime-node --external onnxruntime-web --external sharp --external node:sqlite",
33
33
  "build:e2e-argv": "bun ../../scripts/clean-dist-chunks.mjs ../../tests/docker/.generated subagent-runner-e2e.mjs && bun build src/subagent-runner.ts --outdir ../../tests/docker/.generated --entry-naming 'subagent-runner-e2e.mjs' --splitting --target node --format esm --external node:sqlite && node --input-type=module -e 'const { __test } = await import(\"../../tests/docker/.generated/subagent-runner-e2e.mjs\"); if (typeof __test.buildArgs !== \"function\" || typeof __test.resolvePiInvocation !== \"function\") throw new Error(\"argv renderer exports missing\"); console.log(\"Node argv renderer: 2 exports loaded\")'",
34
34
  "typecheck": "tsc -p ../retina-local-fs/tsconfig.build.json && tsc --noEmit",
35
35
  "test": "bun ../../scripts/check-bun.mjs && bun install --frozen-lockfile && BUN_JSC_useOMGJIT=0 bun test --parallel=4 --timeout 30000",
File without changes