@retaw106/mmc-pi 2.2.0 → 2.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 (2) hide show
  1. package/dist/index.js +8 -4
  2. package/package.json +8 -4
package/dist/index.js CHANGED
@@ -50116,7 +50116,7 @@ function buildStatusViewFor(check, options) {
50116
50116
  // package.json
50117
50117
  var package_default = {
50118
50118
  name: "@retaw106/mmc-pi",
50119
- version: "2.2.0",
50119
+ version: "2.2.1",
50120
50120
  type: "module",
50121
50121
  description: "Pi and OMP coding agent extension for Magic Context — cross-session memory and context management",
50122
50122
  main: "dist/index.js",
@@ -50147,7 +50147,7 @@ var package_default = {
50147
50147
  "dist",
50148
50148
  "README.md"
50149
50149
  ],
50150
- "//": "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.",
50150
+ "//": 'The build intentionally bundles typebox (no --external typebox): 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. The package nonetheless declares typebox as an optional peer "*": Pi treats it as a host-provided extension package and warns on startup when it appears in dependencies (upstream issue #571). The bundled copy is the only one loaded at runtime. src/typebox-bundling.test.ts guards both facts.',
50151
50151
  scripts: {
50152
50152
  build: "bun ../../scripts/check-bun.mjs && bun ../../scripts/clean-dist-chunks.mjs dist index.js historian-calibration-extension.js config-init.js cli.js && rm -rf dist/web && bun build src/index.ts src/historian-calibration-extension.ts --outdir dist --target node --format esm --splitting --external @earendil-works/pi-coding-agent --external @earendil-works/pi-tui --external node:sqlite && bun run build:web && bun run build:config-init && bun run build:cli",
50153
50153
  "build:web": "bun build src/web/main.ts --outfile dist/web/main.js --target node --format esm --external @earendil-works/pi-coding-agent --external @earendil-works/pi-tui --external node:sqlite && mkdir -p dist/web/ui && cp ../plugin/src/web/ui/* dist/web/ui/",
@@ -50167,7 +50167,6 @@ var package_default = {
50167
50167
  dependencies: {
50168
50168
  "ai-tokenizer": "^1.0.6",
50169
50169
  "comment-json": "^5.0.0",
50170
- typebox: "^1.3.1",
50171
50170
  zod: "^4.1.8"
50172
50171
  },
50173
50172
  devDependencies: {
@@ -50181,11 +50180,13 @@ var package_default = {
50181
50180
  "pi-ai-086": "npm:@earendil-works/pi-ai@0.86.0",
50182
50181
  "pi-coding-agent-086": "npm:@earendil-works/pi-coding-agent@0.86.0",
50183
50182
  "pi-coding-agent-087": "npm:@earendil-works/pi-coding-agent@0.87.1",
50183
+ typebox: "^1.3.1",
50184
50184
  typescript: "^5.8.0"
50185
50185
  },
50186
50186
  peerDependencies: {
50187
50187
  "@earendil-works/pi-coding-agent": ">=0.80.2",
50188
- "@earendil-works/pi-tui": ">=0.80.2"
50188
+ "@earendil-works/pi-tui": ">=0.80.2",
50189
+ typebox: "*"
50189
50190
  },
50190
50191
  peerDependenciesMeta: {
50191
50192
  "@earendil-works/pi-coding-agent": {
@@ -50193,6 +50194,9 @@ var package_default = {
50193
50194
  },
50194
50195
  "@earendil-works/pi-tui": {
50195
50196
  optional: true
50197
+ },
50198
+ typebox: {
50199
+ optional: true
50196
50200
  }
50197
50201
  },
50198
50202
  exports: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@retaw106/mmc-pi",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
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",
@@ -31,7 +31,7 @@
31
31
  "dist",
32
32
  "README.md"
33
33
  ],
34
- "//": "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.",
34
+ "//": "The build intentionally bundles typebox (no --external typebox): 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. The package nonetheless declares typebox as an optional peer \"*\": Pi treats it as a host-provided extension package and warns on startup when it appears in dependencies (upstream issue #571). The bundled copy is the only one loaded at runtime. src/typebox-bundling.test.ts guards both facts.",
35
35
  "scripts": {
36
36
  "build": "bun ../../scripts/check-bun.mjs && bun ../../scripts/clean-dist-chunks.mjs dist index.js historian-calibration-extension.js config-init.js cli.js && rm -rf dist/web && bun build src/index.ts src/historian-calibration-extension.ts --outdir dist --target node --format esm --splitting --external @earendil-works/pi-coding-agent --external @earendil-works/pi-tui --external node:sqlite && bun run build:web && bun run build:config-init && bun run build:cli",
37
37
  "build:web": "bun build src/web/main.ts --outfile dist/web/main.js --target node --format esm --external @earendil-works/pi-coding-agent --external @earendil-works/pi-tui --external node:sqlite && mkdir -p dist/web/ui && cp ../plugin/src/web/ui/* dist/web/ui/",
@@ -51,7 +51,6 @@
51
51
  "dependencies": {
52
52
  "ai-tokenizer": "^1.0.6",
53
53
  "comment-json": "^5.0.0",
54
- "typebox": "^1.3.1",
55
54
  "zod": "^4.1.8"
56
55
  },
57
56
  "devDependencies": {
@@ -65,11 +64,13 @@
65
64
  "pi-ai-086": "npm:@earendil-works/pi-ai@0.86.0",
66
65
  "pi-coding-agent-086": "npm:@earendil-works/pi-coding-agent@0.86.0",
67
66
  "pi-coding-agent-087": "npm:@earendil-works/pi-coding-agent@0.87.1",
67
+ "typebox": "^1.3.1",
68
68
  "typescript": "^5.8.0"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "@earendil-works/pi-coding-agent": ">=0.80.2",
72
- "@earendil-works/pi-tui": ">=0.80.2"
72
+ "@earendil-works/pi-tui": ">=0.80.2",
73
+ "typebox": "*"
73
74
  },
74
75
  "peerDependenciesMeta": {
75
76
  "@earendil-works/pi-coding-agent": {
@@ -77,6 +78,9 @@
77
78
  },
78
79
  "@earendil-works/pi-tui": {
79
80
  "optional": true
81
+ },
82
+ "typebox": {
83
+ "optional": true
80
84
  }
81
85
  },
82
86
  "exports": {