oira666_pi-watcher 0.0.9 → 0.0.11

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.
package/EVERGREEN.md CHANGED
@@ -21,6 +21,8 @@ The child registers `live_main_tools`/`steer_main`, adds prompt sections in `bef
21
21
  and persists its main-session link using `appendEntry`/session entries.
22
22
  RPC supplies prompts, state/history/models, queue clearing, abort, extension dialogs, and settlement.
23
23
  The package manifest exposes `src/index.ts`; credentials/settings/resources follow normal Pi loading.
24
+ The bridge imports `Type` from host-provided `typebox` (also a development dependency), not pi-ai.
25
+ Its tool parameters use plain JSON Schema supported by Pi's pi-schema validation.
24
26
 
25
27
  ## Internal Pi APIs
26
28
  Internal/undocumented coupling is present: `runtime-child.mjs` calls exported CLI `main()` and
@@ -57,5 +59,7 @@ The child uses the latest modular npm Pi from devDependencies, even with a stand
57
59
  ## Relevant changelog topics
58
60
  Watch extension loading/package-manager resources, CLI entry/layout/flags, trust and built-in MCP;
59
61
  RPC framing/dialogs/settlement; session JSONL/resume/tools and model persistence; steering/compaction;
60
- TUI key parsing, overlay focus/disposal, and clipboard support. Pi 1.4.0 includes relevant fixes for
61
- concurrent dialogs and resumed extension-tool activation. Tested against Pi 1.4.0.
62
+ TUI key parsing, overlay focus/disposal, and clipboard support. Pi 1.5.0 removes published pi-ai
63
+ TypeBox exports while retaining loader compatibility. Its package refresh/retry, session-write,
64
+ deferred editor replacement, and compaction OAuth fixes require no Watcher-specific workaround.
65
+ Tested against Pi 1.5.0.
package/README.md CHANGED
@@ -12,7 +12,7 @@ pi install npm:oira666_pi-watcher
12
12
 
13
13
  Then restart Pi or run `/reload`. Requires Node.js **22.19+** and the modular Pi installation. The child launcher uses Pi's package-manager loading interfaces. Standalone compiled Pi binaries are not supported.
14
14
 
15
- Tested against Pi 1.4.0.
15
+ Tested against Pi 1.5.0.
16
16
 
17
17
  For local development:
18
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oira666_pi-watcher",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "A persistent side-agent conversation for observing and steering your running Pi agent.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -42,17 +42,19 @@
42
42
  "prepack": "npm run check && npm test"
43
43
  },
44
44
  "peerDependencies": {
45
- "@earendil-works/pi-agent-core": ">=1.4.0",
46
- "@earendil-works/pi-ai": ">=1.4.0",
47
- "@earendil-works/pi-coding-agent": ">=1.4.0",
48
- "@earendil-works/pi-tui": ">=1.4.0"
45
+ "@earendil-works/pi-agent-core": ">=1.5.0",
46
+ "@earendil-works/pi-ai": ">=1.5.0",
47
+ "@earendil-works/pi-coding-agent": ">=1.5.0",
48
+ "@earendil-works/pi-tui": ">=1.5.0",
49
+ "typebox": "^1.0.0"
49
50
  },
50
51
  "devDependencies": {
51
- "@earendil-works/pi-agent-core": "^1.4.0",
52
- "@earendil-works/pi-ai": "^1.4.0",
53
- "@earendil-works/pi-coding-agent": "^1.4.0",
54
- "@earendil-works/pi-tui": "^1.4.0",
55
- "@types/node": "^26.6.5",
52
+ "@earendil-works/pi-agent-core": "^1.5.0",
53
+ "@earendil-works/pi-ai": "^1.5.0",
54
+ "@earendil-works/pi-coding-agent": "^1.5.0",
55
+ "@earendil-works/pi-tui": "^1.5.0",
56
+ "@types/node": "^26.6.6",
57
+ "typebox": "^1.4.3",
56
58
  "typescript": "^7.0.2"
57
59
  }
58
60
  }
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import { randomUUID } from "node:crypto";
14
- import { Type } from "@earendil-works/pi-ai";
14
+ import { Type } from "typebox";
15
15
  import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
16
16
  import { buildWatcherSystemPrompt, WATCHER_SECTION_KEY } from "./runtime-prompt.ts";
17
17
  import {