ultimate-pi 0.9.0 → 0.9.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.
@@ -20,7 +20,7 @@ import { Type } from "@sinclair/typebox";
20
20
  import {
21
21
  extractPlanApprovalsFromEntries,
22
22
  getLatestRunContext,
23
- } from "../../../lib/harness-run-context.js";
23
+ } from "../../../../lib/harness-run-context.js";
24
24
  import { getDriftReport } from "../agent-manifest.js";
25
25
  import { Blackboard } from "../blackboard.js";
26
26
  import {
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schema_version": "1.0.0",
3
3
  "package": "ultimate-pi",
4
- "package_version": "0.8.0",
5
- "generated_at": "2026-05-17T09:55:45.240Z",
4
+ "package_version": "0.9.0",
5
+ "generated_at": "2026-05-17T10:06:28.388Z",
6
6
  "agents": {
7
7
  "pi-pi/agent-expert": {
8
8
  "path": ".pi/agents/pi-pi/agent-expert.md",
@@ -5,7 +5,7 @@
5
5
 
6
6
  import { readFile, access } from "node:fs/promises";
7
7
  import { constants } from "node:fs";
8
- import { join, dirname } from "node:path";
8
+ import { join, dirname, resolve } from "node:path";
9
9
  import { fileURLToPath } from "node:url";
10
10
  import { spawn } from "node:child_process";
11
11
 
@@ -202,6 +202,33 @@ async function main() {
202
202
  if (!(await fileExists(runCtxLib))) fail("missing lib/harness-run-context.ts");
203
203
  ok("lib/harness-run-context.ts");
204
204
 
205
+ const vendoredIndex = join(
206
+ ROOT,
207
+ ".pi",
208
+ "extensions",
209
+ "lib",
210
+ "harness-subagents",
211
+ "vendored",
212
+ "index.ts",
213
+ );
214
+ const vendoredSrc = await readFile(vendoredIndex, "utf-8");
215
+ const runCtxImport = vendoredSrc.match(
216
+ /from ["']([^"']*harness-run-context\.js)["']/,
217
+ );
218
+ if (!runCtxImport) {
219
+ fail("vendored/index.ts must import harness-run-context.js");
220
+ }
221
+ const runCtxImportPath = resolve(
222
+ dirname(vendoredIndex),
223
+ runCtxImport[1].replace(/\.js$/, ".ts"),
224
+ );
225
+ if (runCtxImportPath !== runCtxLib) {
226
+ fail(
227
+ `vendored/index.ts harness-run-context import resolves to ${runCtxImportPath}, expected ${runCtxLib}`,
228
+ );
229
+ }
230
+ ok("vendored/index.ts harness-run-context import path");
231
+
205
232
  const policyGateSrc = await readFile(
206
233
  join(ROOT, ".pi", "extensions", "policy-gate.ts"),
207
234
  "utf-8",
package/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project are documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [v0.9.1] — 2026-05-17
8
+
9
+ ### 🐛 Fixes
10
+
11
+ - **npm package:** fix `harness-subagents` vendored import of `harness-run-context` (`../../../../lib`); broken installs failed with `Cannot find module '../../../lib/harness-run-context.js'`.
12
+
7
13
  ## [v0.9.0] — 2026-05-17
8
14
 
9
15
  ### ✨ Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultimate-pi",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Ultimate AI coding harness for pi.dev — extensible skills, Obsidian wiki knowledge layer, compressed context, deterministic output",
5
5
  "keywords": [
6
6
  "pi-package",
@@ -82,7 +82,7 @@
82
82
  "format": "biome format --write",
83
83
  "format:check": "biome format",
84
84
  "prepare": "lefthook install",
85
- "test": "node --test test/harness-verify.test.mjs test/harness-ask-user.test.mjs test/harness-subagents-loader.test.mjs test/sentrux-rules-sync.test.mjs test/harness-budget-guard.test.mjs && npx -y tsx --test test/harness-vcc-settings.test.ts test/harness-plan-phase-policy.test.mjs test/harness-subagent-policy.test.mjs test/harness-turn-routing.test.mjs",
85
+ "test": "node --test test/harness-verify.test.mjs test/harness-ask-user.test.mjs test/harness-subagents-loader.test.mjs test/harness-subagents-import-path.test.mjs test/sentrux-rules-sync.test.mjs test/harness-budget-guard.test.mjs && npx -y tsx --test test/harness-vcc-settings.test.ts test/harness-plan-phase-policy.test.mjs test/harness-subagent-policy.test.mjs test/harness-turn-routing.test.mjs",
86
86
  "test:vcc": "npx -y tsx --test vendor/pi-vcc/tests/*.test.ts",
87
87
  "harness:sentrux-bootstrap": "node .pi/scripts/harness-sentrux-bootstrap.mjs",
88
88
  "harness:sentrux-sync": "node .pi/scripts/sentrux-rules-sync.mjs --force",