@retaw106/mmc-pi 2.1.2 → 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.
@@ -24,7 +24,7 @@ import {
24
24
  getRawSessionTagKeysThrough2,
25
25
  getLegacyProtectedTailStartOrdinal2,
26
26
  readSessionChunk2
27
- } from "./index-bz61mcxg.js";
27
+ } from "./index-j0jjtcwm.js";
28
28
  import"./index-ny303arh.js";
29
29
  import"./index-54cgx9gm.js";
30
30
  export {
package/dist/web/main.js CHANGED
@@ -1086,7 +1086,7 @@ init_logger();
1086
1086
  init_logger();
1087
1087
 
1088
1088
  // ../plugin/src/shared/pi-executable.ts
1089
- var PI_IMAGE_NAMES = new Set(["pi", "pi.cmd"]);
1089
+ var PI_IMAGE_NAMES = new Set(["pi", "pi.cmd", "omp", "oh-my-pi"]);
1090
1090
 
1091
1091
  // ../plugin/src/shared/rpc-utils.ts
1092
1092
  var ownRpcServerInstanceIds = new Set;
@@ -4781,6 +4781,11 @@ var MEMORY_MAINTAINER_MANIFEST_CONTRACT = [
4781
4781
  // ../plugin/src/v2/hooks/hidden-child.ts
4782
4782
  init_tag_content_primitives();
4783
4783
  init_logger();
4784
+
4785
+ // ../plugin/src/shared/subagent-runner.ts
4786
+ var HISTORIAN_STEP_CAP = 4;
4787
+
4788
+ // ../plugin/src/v2/hooks/hidden-child.ts
4784
4789
  var HIDDEN_HISTORIAN_AGENT = "historian";
4785
4790
  var AGENT_TOOL_ALLOWLIST = {
4786
4791
  [HIDDEN_HISTORIAN_AGENT]: [],
@@ -4788,7 +4793,8 @@ var AGENT_TOOL_ALLOWLIST = {
4788
4793
  [MEMORY_MAINTAINER_B_AGENT]: MEMORY_MAINTAINER_B_ALLOWED_TOOLS
4789
4794
  };
4790
4795
  var AGENT_STEP_CAPS = {
4791
- [MEMORY_MAINTAINER_A_AGENT]: MEMORY_MAINTAINER_A_STEP_CAP
4796
+ [MEMORY_MAINTAINER_A_AGENT]: MEMORY_MAINTAINER_A_STEP_CAP,
4797
+ [HIDDEN_HISTORIAN_AGENT]: HISTORIAN_STEP_CAP
4792
4798
  };
4793
4799
 
4794
4800
  // ../plugin/src/v2/hidden-child-record.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@retaw106/mmc-pi",
3
- "version": "2.1.2",
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": {