pi-harness-runtime 1.1.487 → 1.1.489
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/CHANGELOG.md +131 -0
- package/harness/honcho-init.ts +98 -4
- package/harness/honcho-mcp-watcher.ts +137 -0
- package/index.ts +31 -40
- package/package.json +1 -1
- package/packages/agent-policy/package.json +1 -1
- package/packages/auth/package.json +1 -1
- package/packages/autonomous-runtime/package.json +1 -1
- package/packages/checkpoint/package.json +1 -1
- package/packages/clipboard/package.json +1 -1
- package/packages/codex-watcher/package.json +1 -1
- package/packages/config-capture/package.json +1 -1
- package/packages/contracts/package.json +1 -1
- package/packages/cookie-sanitizer/package.json +1 -1
- package/packages/evaluation-engine/package.json +1 -1
- package/packages/event-bus/package.json +1 -1
- package/packages/event-store/package.json +1 -1
- package/packages/experience-replay/package.json +1 -1
- package/packages/file-copy-helper/package.json +1 -1
- package/packages/intent-analyzer/package.json +1 -1
- package/packages/jev-judge/package.json +1 -1
- package/packages/knowledge-retrieval/package.json +1 -1
- package/packages/learning-engine/package.json +1 -1
- package/packages/logging/package.json +1 -1
- package/packages/memory-engine/package.json +1 -1
- package/packages/notification/package.json +1 -1
- package/packages/paperclip-integration/package.json +1 -1
- package/packages/performance-optimizer/package.json +1 -1
- package/packages/privilege-broker/package.json +1 -1
- package/packages/prompt-compiler/package.json +1 -1
- package/packages/providers/package.json +1 -1
- package/packages/qdrant-skills/package.json +1 -1
- package/packages/quota-manager/package.json +1 -1
- package/packages/relay/package.json +1 -1
- package/packages/skill-mcp-client/package.json +1 -1
- package/packages/skills/package.json +1 -1
- package/packages/todo-bd-sync/package.json +1 -1
- package/packages/token-estimation/package.json +1 -1
- package/packages/tooling-preference/package.json +1 -1
- package/packages/trajectory/package.json +1 -1
- package/packages/tui/package.json +1 -1
- package/packages/two-phase-review/package.json +1 -1
- package/packages/types/package.json +1 -1
- package/packages/webmcp-tester/package.json +1 -1
- package/packages/wiki/package.json +1 -1
- package/packages/write-review/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,137 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.1.489](https://github.com/ManotLuijiu/pi-harness-runtime/compare/v1.1.448...v1.1.489) (2026-11-09)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **actions:** register the job resume, the GLM countdown and the queued continuations ([177c964](https://github.com/ManotLuijiu/pi-harness-runtime/commit/177c964555b0057e6bc7d293dafab10c95eabbf9))
|
|
11
|
+
* **delegation:** a child is only a child when it really ran ([ac4e678](https://github.com/ManotLuijiu/pi-harness-runtime/commit/ac4e6782d7d4bc4941e458425c8a9f38a51fc9d4))
|
|
12
|
+
* **delegation:** the scope of a request is measured before it is judged ([684b6a5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/684b6a55184f63d3be24c48dcecfb0b13410dc15))
|
|
13
|
+
* **honcho:** the memory service speaks the native MCP of Pi ([f9f740c](https://github.com/ManotLuijiu/pi-harness-runtime/commit/f9f740c12869bae4c4380afbe8c76e12388bb744))
|
|
14
|
+
* **jev:** one decision per question, bound to the question it was evaluated for ([03448aa](https://github.com/ManotLuijiu/pi-harness-runtime/commit/03448aaa17f2d0c3bcf644b0b1d5949727dfff8c))
|
|
15
|
+
* **jev:** the evaluation of a choice sees what the options mean ([f0c207e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/f0c207e074701e6b7dab0965170ec39453d9d502))
|
|
16
|
+
* **jev:** the pending question carries the ask and the answer ([a792133](https://github.com/ManotLuijiu/pi-harness-runtime/commit/a792133e517fb8c12d3363e98942f3af30270f27))
|
|
17
|
+
* **jev:** the pending question counts down to the decision ([d0cc171](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d0cc171223986b2d32c670b6c1c74712fe0a4ad8))
|
|
18
|
+
* **keys:** tell the user what to do about an exposed key file ([7031003](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7031003574307351b7a8f28ee14159b58e17b793))
|
|
19
|
+
* **keys:** the key files are repaired when their permissions are unsafe ([e9c2c26](https://github.com/ManotLuijiu/pi-harness-runtime/commit/e9c2c26b287665b56ed749de269737e8403bb8af))
|
|
20
|
+
* **mcp:** the harness connects the registered servers when nobody else does ([7fef951](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7fef95137ad4664df57f045cd91b7d233315b0bc))
|
|
21
|
+
* **merge:** a manual run can leave the merge to the pull request event ([b3d1950](https://github.com/ManotLuijiu/pi-harness-runtime/commit/b3d1950b5941c78ccd56951acdafd1d4afbe1bff))
|
|
22
|
+
* **phase:** the agent owns the todo list and the harness says so ([c489370](https://github.com/ManotLuijiu/pi-harness-runtime/commit/c489370bd7926aece8cb1a77aa20ca2d2672f1fb))
|
|
23
|
+
* **providers:** a shared registry of the pending automatic actions and a bounded recovery ([c5f955b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/c5f955bc82adcb6999a89d5bc278fa87fccee022))
|
|
24
|
+
* **providers:** one failure has one executor, and the retry bridge is checked ([e73c4c7](https://github.com/ManotLuijiu/pi-harness-runtime/commit/e73c4c76ff20a9708083659bdcefe74870a84837))
|
|
25
|
+
* **review:** the review starts on its own when the implementation is done ([04f51f5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/04f51f599cd3222b6c74dd8fadb1373bd72d9bd7))
|
|
26
|
+
* **status:** the status line names the phase, the progress and the children ([0167bf3](https://github.com/ManotLuijiu/pi-harness-runtime/commit/0167bf396a0b987c1d44f3b869351976a951dd65))
|
|
27
|
+
* **test:** the task waits for the final tier of the validation plan ([fa147db](https://github.com/ManotLuijiu/pi-harness-runtime/commit/fa147dbf7d50d56e6ea48c6d8fbb4fcb190caf8a))
|
|
28
|
+
* **validation:** a large job starts with a measured pilot ([425964b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/425964b04a3d4fa02adfabed47ff62c5ec2b9c28))
|
|
29
|
+
* **validation:** the size of a job is a fact, not a phrase ([8aa6c11](https://github.com/ManotLuijiu/pi-harness-runtime/commit/8aa6c119565d0f8412dc8aeafa6b295d47d3f093))
|
|
30
|
+
* **workspace:** a Frappe bench names the mode of the workspace ([9d58517](https://github.com/ManotLuijiu/pi-harness-runtime/commit/9d585172063a330992fee933316e268ae9985e3c))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* **ci:** every run of a required check counts, and the worst one decides ([da9e0da](https://github.com/ManotLuijiu/pi-harness-runtime/commit/da9e0da6b0ca29cb320764fd5fc1b8a8dee8b1e0))
|
|
36
|
+
* **ci:** the newest attempt of a run decides, not the attempt that failed ([9d7adcc](https://github.com/ManotLuijiu/pi-harness-runtime/commit/9d7adcc31cbacc517c3c1a9bcd3956be94c908ef))
|
|
37
|
+
* **honcho:** a handshake that never finishes is named instead of hanging the startup ([d66005f](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d66005f928a4f8df5de5b8a0579cbd4f8df37ff9))
|
|
38
|
+
* **honcho:** a probe that the end of the session cuts off is not a failure ([493fd93](https://github.com/ManotLuijiu/pi-harness-runtime/commit/493fd938ba09fdcf57bed4aaf259d81c4040909e))
|
|
39
|
+
* **honcho:** a slow connector is not a failed one, the row is corrected when the tools appear ([b62ac5b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/b62ac5b16ad93e2bfb10cbec589b80a09b7e20b3))
|
|
40
|
+
* **honcho:** a tools listing that the end of the session cuts off is not a failure ([62cc8c3](https://github.com/ManotLuijiu/pi-harness-runtime/commit/62cc8c376aade01c953ce2a1c6501ed07b74a1e9))
|
|
41
|
+
* **honcho:** the report names the state of the MCP server, not the registration ([762f4d5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/762f4d59e4eabcab9a1c21a61aa522c3267621b3))
|
|
42
|
+
* **hooks:** a tag is checked through the commit behind it ([c823e8e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/c823e8e1f6973c62b5449a97c101759a4d5cbba5))
|
|
43
|
+
* **jev:** a prohibition must not hide a destructive action ([78a6cc1](https://github.com/ManotLuijiu/pi-harness-runtime/commit/78a6cc199e647f812e145483f7e94991358d8f34))
|
|
44
|
+
* **jev:** a refusal without punctuation, and only a decline of an action ([ef3dbf8](https://github.com/ManotLuijiu/pi-harness-runtime/commit/ef3dbf87a2a1725373281613a0d48881ed5d2239))
|
|
45
|
+
* **jev:** a rejection during the countdown pauses the work ([9b018ce](https://github.com/ManotLuijiu/pi-harness-runtime/commit/9b018ce1152b6724dee73cdc901b8a360ecc91ab))
|
|
46
|
+
* **jev:** a session switch ends the wait of the old session ([ca03d39](https://github.com/ManotLuijiu/pi-harness-runtime/commit/ca03d399c0d4a1b2dd428ac39836ab53c0e51ab6))
|
|
47
|
+
* **jev:** keep a comparative caveat with the option it constrains ([7be306b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7be306b0d0872713ebca9386d613ae5a8da9d5b6))
|
|
48
|
+
* **jev:** the action of the question on its own text, and a reply is not an authorization ([7c3fdd6](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7c3fdd6822b58bd6ccfa3bcdf1c5282cb3db52dd))
|
|
49
|
+
* **jev:** the action of the question, and an open question blocks the work ([1f9ff39](https://github.com/ManotLuijiu/pi-harness-runtime/commit/1f9ff39efc4ee17464c54c2ca9b583245093dbac))
|
|
50
|
+
* **jev:** the alternatives of a question are parsed without a quadratic pattern ([63016a3](https://github.com/ManotLuijiu/pi-harness-runtime/commit/63016a3f0488acb801990dd46770c00d382b5858))
|
|
51
|
+
* **jev:** the facts of an option survive the wording of the agent ([5a6250c](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5a6250c07aa8d965bc6ae242cccbf519477598f8))
|
|
52
|
+
* **keys:** the key directory is audited as a tree ([081cc75](https://github.com/ManotLuijiu/pi-harness-runtime/commit/081cc75ac8ceff36b0d619c3f76371dc08459d3c))
|
|
53
|
+
* **mcp:** the connector and the watcher stop with the session ([4d1b87d](https://github.com/ManotLuijiu/pi-harness-runtime/commit/4d1b87d14d015749025b62bf54d6d0b6137295f7))
|
|
54
|
+
* **mcp:** the connector survives a runtime that cannot list the servers ([d0f555f](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d0f555fa14f51de33591e572a41ded5b59a3e4dd))
|
|
55
|
+
* **merge:** the boolean input is read as a boolean ([971b716](https://github.com/ManotLuijiu/pi-harness-runtime/commit/971b7169a43db382dbdeb6bb9bab02ab56e0351c))
|
|
56
|
+
* **merge:** the manual job needs the right of the merge ([7ba685e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7ba685ec43d815f90aa35b742579e87e76c69209))
|
|
57
|
+
* **merge:** the merge of the pull request is the GraphQL mutation ([972bab4](https://github.com/ManotLuijiu/pi-harness-runtime/commit/972bab4b0f7faf1b0047f3bb767ef6db3de4b2fa))
|
|
58
|
+
* **merge:** the workflow merges the pull request the gates cleared ([d7639ec](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d7639ec9b83723510acb4a5c4e23d5d6167c3af6))
|
|
59
|
+
* **providers:** the escape of the user stops the recovery, and a permanent failure clears it ([cfe5797](https://github.com/ManotLuijiu/pi-harness-runtime/commit/cfe57976bf463c327e45b874fd297c3e942246b8))
|
|
60
|
+
* **providers:** the pause wins over a retry, and the retry starts when the run settles ([e016dd2](https://github.com/ManotLuijiu/pi-harness-runtime/commit/e016dd2a5add5b0f3c848a225a28a59e0f5fc7f3))
|
|
61
|
+
* **release:** a manual release keeps the version of its manifest ([122e661](https://github.com/ManotLuijiu/pi-harness-runtime/commit/122e661ea48cb8aff14c71dbd0221a4cf0ba4c8e))
|
|
62
|
+
* **release:** the alignment names the reason of a failure ([5814dd0](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5814dd0b780f5839cf8011ed0cbbbb31e7eb0418))
|
|
63
|
+
* **release:** the channels of the package name the release ([a7a273f](https://github.com/ManotLuijiu/pi-harness-runtime/commit/a7a273ffe8398e2b5b07ef1c321777de41792c6e))
|
|
64
|
+
* **release:** the release publishes and leaves the channels alone ([5871746](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5871746589c1281d855dbeb591b02419fa43f22e))
|
|
65
|
+
* **release:** the release pull request names the version of its branch ([a846e83](https://github.com/ManotLuijiu/pi-harness-runtime/commit/a846e83e6de6e529f4bca05e869db0b5eebb37c5))
|
|
66
|
+
* **release:** the release scans the tree of the commit it publishes ([7d47a0b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7d47a0b5406480a1e1d3a52623a76aabd1e2d0ba))
|
|
67
|
+
* **workspace:** a strong bench signal decides, and the question is not a fact of an option ([303a828](https://github.com/ManotLuijiu/pi-harness-runtime/commit/303a828f55aa7c4e0a611231f482489b530ff5a3))
|
|
68
|
+
* **workspace:** keep a client name out of the comment about the search depth ([b572e0a](https://github.com/ManotLuijiu/pi-harness-runtime/commit/b572e0af16ff562203bda2b5c47b41807cff5a95))
|
|
69
|
+
* **workspace:** the repository names the mode before the mode stays unknown ([188a32c](https://github.com/ManotLuijiu/pi-harness-runtime/commit/188a32c7a6af1465dd24714278fccc73d06f6477))
|
|
70
|
+
|
|
71
|
+
### [1.1.488](https://github.com/ManotLuijiu/pi-harness-runtime/compare/v1.1.448...v1.1.488) (2026-11-09)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### Features
|
|
75
|
+
|
|
76
|
+
* **actions:** register the job resume, the GLM countdown and the queued continuations ([177c964](https://github.com/ManotLuijiu/pi-harness-runtime/commit/177c964555b0057e6bc7d293dafab10c95eabbf9))
|
|
77
|
+
* **delegation:** a child is only a child when it really ran ([ac4e678](https://github.com/ManotLuijiu/pi-harness-runtime/commit/ac4e6782d7d4bc4941e458425c8a9f38a51fc9d4))
|
|
78
|
+
* **delegation:** the scope of a request is measured before it is judged ([684b6a5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/684b6a55184f63d3be24c48dcecfb0b13410dc15))
|
|
79
|
+
* **honcho:** the memory service speaks the native MCP of Pi ([f9f740c](https://github.com/ManotLuijiu/pi-harness-runtime/commit/f9f740c12869bae4c4380afbe8c76e12388bb744))
|
|
80
|
+
* **jev:** one decision per question, bound to the question it was evaluated for ([03448aa](https://github.com/ManotLuijiu/pi-harness-runtime/commit/03448aaa17f2d0c3bcf644b0b1d5949727dfff8c))
|
|
81
|
+
* **jev:** the evaluation of a choice sees what the options mean ([f0c207e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/f0c207e074701e6b7dab0965170ec39453d9d502))
|
|
82
|
+
* **jev:** the pending question carries the ask and the answer ([a792133](https://github.com/ManotLuijiu/pi-harness-runtime/commit/a792133e517fb8c12d3363e98942f3af30270f27))
|
|
83
|
+
* **jev:** the pending question counts down to the decision ([d0cc171](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d0cc171223986b2d32c670b6c1c74712fe0a4ad8))
|
|
84
|
+
* **keys:** tell the user what to do about an exposed key file ([7031003](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7031003574307351b7a8f28ee14159b58e17b793))
|
|
85
|
+
* **keys:** the key files are repaired when their permissions are unsafe ([e9c2c26](https://github.com/ManotLuijiu/pi-harness-runtime/commit/e9c2c26b287665b56ed749de269737e8403bb8af))
|
|
86
|
+
* **mcp:** the harness connects the registered servers when nobody else does ([7fef951](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7fef95137ad4664df57f045cd91b7d233315b0bc))
|
|
87
|
+
* **merge:** a manual run can leave the merge to the pull request event ([b3d1950](https://github.com/ManotLuijiu/pi-harness-runtime/commit/b3d1950b5941c78ccd56951acdafd1d4afbe1bff))
|
|
88
|
+
* **phase:** the agent owns the todo list and the harness says so ([c489370](https://github.com/ManotLuijiu/pi-harness-runtime/commit/c489370bd7926aece8cb1a77aa20ca2d2672f1fb))
|
|
89
|
+
* **providers:** a shared registry of the pending automatic actions and a bounded recovery ([c5f955b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/c5f955bc82adcb6999a89d5bc278fa87fccee022))
|
|
90
|
+
* **providers:** one failure has one executor, and the retry bridge is checked ([e73c4c7](https://github.com/ManotLuijiu/pi-harness-runtime/commit/e73c4c76ff20a9708083659bdcefe74870a84837))
|
|
91
|
+
* **review:** the review starts on its own when the implementation is done ([04f51f5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/04f51f599cd3222b6c74dd8fadb1373bd72d9bd7))
|
|
92
|
+
* **status:** the status line names the phase, the progress and the children ([0167bf3](https://github.com/ManotLuijiu/pi-harness-runtime/commit/0167bf396a0b987c1d44f3b869351976a951dd65))
|
|
93
|
+
* **test:** the task waits for the final tier of the validation plan ([fa147db](https://github.com/ManotLuijiu/pi-harness-runtime/commit/fa147dbf7d50d56e6ea48c6d8fbb4fcb190caf8a))
|
|
94
|
+
* **validation:** a large job starts with a measured pilot ([425964b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/425964b04a3d4fa02adfabed47ff62c5ec2b9c28))
|
|
95
|
+
* **validation:** the size of a job is a fact, not a phrase ([8aa6c11](https://github.com/ManotLuijiu/pi-harness-runtime/commit/8aa6c119565d0f8412dc8aeafa6b295d47d3f093))
|
|
96
|
+
* **workspace:** a Frappe bench names the mode of the workspace ([9d58517](https://github.com/ManotLuijiu/pi-harness-runtime/commit/9d585172063a330992fee933316e268ae9985e3c))
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
### Bug Fixes
|
|
100
|
+
|
|
101
|
+
* **ci:** every run of a required check counts, and the worst one decides ([da9e0da](https://github.com/ManotLuijiu/pi-harness-runtime/commit/da9e0da6b0ca29cb320764fd5fc1b8a8dee8b1e0))
|
|
102
|
+
* **ci:** the newest attempt of a run decides, not the attempt that failed ([9d7adcc](https://github.com/ManotLuijiu/pi-harness-runtime/commit/9d7adcc31cbacc517c3c1a9bcd3956be94c908ef))
|
|
103
|
+
* **honcho:** a handshake that never finishes is named instead of hanging the startup ([d66005f](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d66005f928a4f8df5de5b8a0579cbd4f8df37ff9))
|
|
104
|
+
* **honcho:** a probe that the end of the session cuts off is not a failure ([493fd93](https://github.com/ManotLuijiu/pi-harness-runtime/commit/493fd938ba09fdcf57bed4aaf259d81c4040909e))
|
|
105
|
+
* **honcho:** a tools listing that the end of the session cuts off is not a failure ([62cc8c3](https://github.com/ManotLuijiu/pi-harness-runtime/commit/62cc8c376aade01c953ce2a1c6501ed07b74a1e9))
|
|
106
|
+
* **honcho:** the report names the state of the MCP server, not the registration ([762f4d5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/762f4d59e4eabcab9a1c21a61aa522c3267621b3))
|
|
107
|
+
* **hooks:** a tag is checked through the commit behind it ([c823e8e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/c823e8e1f6973c62b5449a97c101759a4d5cbba5))
|
|
108
|
+
* **jev:** a prohibition must not hide a destructive action ([78a6cc1](https://github.com/ManotLuijiu/pi-harness-runtime/commit/78a6cc199e647f812e145483f7e94991358d8f34))
|
|
109
|
+
* **jev:** a refusal without punctuation, and only a decline of an action ([ef3dbf8](https://github.com/ManotLuijiu/pi-harness-runtime/commit/ef3dbf87a2a1725373281613a0d48881ed5d2239))
|
|
110
|
+
* **jev:** a rejection during the countdown pauses the work ([9b018ce](https://github.com/ManotLuijiu/pi-harness-runtime/commit/9b018ce1152b6724dee73cdc901b8a360ecc91ab))
|
|
111
|
+
* **jev:** a session switch ends the wait of the old session ([ca03d39](https://github.com/ManotLuijiu/pi-harness-runtime/commit/ca03d399c0d4a1b2dd428ac39836ab53c0e51ab6))
|
|
112
|
+
* **jev:** keep a comparative caveat with the option it constrains ([7be306b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7be306b0d0872713ebca9386d613ae5a8da9d5b6))
|
|
113
|
+
* **jev:** the action of the question on its own text, and a reply is not an authorization ([7c3fdd6](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7c3fdd6822b58bd6ccfa3bcdf1c5282cb3db52dd))
|
|
114
|
+
* **jev:** the action of the question, and an open question blocks the work ([1f9ff39](https://github.com/ManotLuijiu/pi-harness-runtime/commit/1f9ff39efc4ee17464c54c2ca9b583245093dbac))
|
|
115
|
+
* **jev:** the alternatives of a question are parsed without a quadratic pattern ([63016a3](https://github.com/ManotLuijiu/pi-harness-runtime/commit/63016a3f0488acb801990dd46770c00d382b5858))
|
|
116
|
+
* **jev:** the facts of an option survive the wording of the agent ([5a6250c](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5a6250c07aa8d965bc6ae242cccbf519477598f8))
|
|
117
|
+
* **keys:** the key directory is audited as a tree ([081cc75](https://github.com/ManotLuijiu/pi-harness-runtime/commit/081cc75ac8ceff36b0d619c3f76371dc08459d3c))
|
|
118
|
+
* **mcp:** the connector and the watcher stop with the session ([4d1b87d](https://github.com/ManotLuijiu/pi-harness-runtime/commit/4d1b87d14d015749025b62bf54d6d0b6137295f7))
|
|
119
|
+
* **mcp:** the connector survives a runtime that cannot list the servers ([d0f555f](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d0f555fa14f51de33591e572a41ded5b59a3e4dd))
|
|
120
|
+
* **merge:** the boolean input is read as a boolean ([971b716](https://github.com/ManotLuijiu/pi-harness-runtime/commit/971b7169a43db382dbdeb6bb9bab02ab56e0351c))
|
|
121
|
+
* **merge:** the manual job needs the right of the merge ([7ba685e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7ba685ec43d815f90aa35b742579e87e76c69209))
|
|
122
|
+
* **merge:** the merge of the pull request is the GraphQL mutation ([972bab4](https://github.com/ManotLuijiu/pi-harness-runtime/commit/972bab4b0f7faf1b0047f3bb767ef6db3de4b2fa))
|
|
123
|
+
* **merge:** the workflow merges the pull request the gates cleared ([d7639ec](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d7639ec9b83723510acb4a5c4e23d5d6167c3af6))
|
|
124
|
+
* **providers:** the escape of the user stops the recovery, and a permanent failure clears it ([cfe5797](https://github.com/ManotLuijiu/pi-harness-runtime/commit/cfe57976bf463c327e45b874fd297c3e942246b8))
|
|
125
|
+
* **providers:** the pause wins over a retry, and the retry starts when the run settles ([e016dd2](https://github.com/ManotLuijiu/pi-harness-runtime/commit/e016dd2a5add5b0f3c848a225a28a59e0f5fc7f3))
|
|
126
|
+
* **release:** a manual release keeps the version of its manifest ([122e661](https://github.com/ManotLuijiu/pi-harness-runtime/commit/122e661ea48cb8aff14c71dbd0221a4cf0ba4c8e))
|
|
127
|
+
* **release:** the alignment names the reason of a failure ([5814dd0](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5814dd0b780f5839cf8011ed0cbbbb31e7eb0418))
|
|
128
|
+
* **release:** the channels of the package name the release ([a7a273f](https://github.com/ManotLuijiu/pi-harness-runtime/commit/a7a273ffe8398e2b5b07ef1c321777de41792c6e))
|
|
129
|
+
* **release:** the release publishes and leaves the channels alone ([5871746](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5871746589c1281d855dbeb591b02419fa43f22e))
|
|
130
|
+
* **release:** the release pull request names the version of its branch ([a846e83](https://github.com/ManotLuijiu/pi-harness-runtime/commit/a846e83e6de6e529f4bca05e869db0b5eebb37c5))
|
|
131
|
+
* **release:** the release scans the tree of the commit it publishes ([7d47a0b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7d47a0b5406480a1e1d3a52623a76aabd1e2d0ba))
|
|
132
|
+
* **workspace:** a strong bench signal decides, and the question is not a fact of an option ([303a828](https://github.com/ManotLuijiu/pi-harness-runtime/commit/303a828f55aa7c4e0a611231f482489b530ff5a3))
|
|
133
|
+
* **workspace:** keep a client name out of the comment about the search depth ([b572e0a](https://github.com/ManotLuijiu/pi-harness-runtime/commit/b572e0af16ff562203bda2b5c47b41807cff5a95))
|
|
134
|
+
* **workspace:** the repository names the mode before the mode stays unknown ([188a32c](https://github.com/ManotLuijiu/pi-harness-runtime/commit/188a32c7a6af1465dd24714278fccc73d06f6477))
|
|
135
|
+
|
|
5
136
|
### [1.1.487](https://github.com/ManotLuijiu/pi-harness-runtime/compare/v1.1.448...v1.1.487) (2026-11-09)
|
|
6
137
|
|
|
7
138
|
|
package/harness/honcho-init.ts
CHANGED
|
@@ -199,6 +199,21 @@ const MCP_CLIENT_MODULE = "@earendil-works/pi-mcp";
|
|
|
199
199
|
/** The request timeout of the MCP client. */
|
|
200
200
|
const MCP_REQUEST_TIMEOUT_MS = 30_000;
|
|
201
201
|
|
|
202
|
+
/**
|
|
203
|
+
* The timeout of the handshake of the MCP client.
|
|
204
|
+
*
|
|
205
|
+
* The request timeout of the client bounds a *request*, not the
|
|
206
|
+
* handshake: a server that accepts the connection and then stops talking
|
|
207
|
+
* leaves `connect()` pending forever. The initialization waits for that
|
|
208
|
+
* handshake, so an unbounded wait turns a slow server into an
|
|
209
|
+
* initialization that never finishes and a session that reports nothing
|
|
210
|
+
* about the cause.
|
|
211
|
+
*
|
|
212
|
+
* The timeout turns the stall into a named failure: the initialization
|
|
213
|
+
* reports that the server did not answer, and the user learns why.
|
|
214
|
+
*/
|
|
215
|
+
const MCP_CONNECT_TIMEOUT_MS = 15_000;
|
|
216
|
+
|
|
202
217
|
/**
|
|
203
218
|
* The timeout of the credential probe.
|
|
204
219
|
*
|
|
@@ -386,7 +401,9 @@ function clientFactory(): HonchoMcpClientFactory {
|
|
|
386
401
|
* The client stays alive for the whole session; a dropped connection is
|
|
387
402
|
* re-established lazily, so a long session survives a server restart.
|
|
388
403
|
*/
|
|
389
|
-
async function ensureMcpClient(
|
|
404
|
+
async function ensureMcpClient(
|
|
405
|
+
connectTimeoutMs: number = MCP_CONNECT_TIMEOUT_MS,
|
|
406
|
+
): Promise<HonchoMcpClient | null> {
|
|
390
407
|
if (_disposed) {
|
|
391
408
|
return null;
|
|
392
409
|
}
|
|
@@ -413,9 +430,12 @@ async function ensureMcpClient(): Promise<HonchoMcpClient | null> {
|
|
|
413
430
|
}
|
|
414
431
|
|
|
415
432
|
const factory = clientFactory();
|
|
433
|
+
// The handshake is bounded here as well: a lazy reconnection must not
|
|
434
|
+
// hang a tool call on a server that stopped talking.
|
|
435
|
+
const pending = factory(_apiKey);
|
|
436
|
+
let outcome: { timedOut: true } | { timedOut: false; value: HonchoMcpClient };
|
|
416
437
|
try {
|
|
417
|
-
|
|
418
|
-
return _mcpClient;
|
|
438
|
+
outcome = await withTimeout(pending, connectTimeoutMs);
|
|
419
439
|
} catch (err) {
|
|
420
440
|
logServiceEvent({
|
|
421
441
|
ts: new Date().toISOString(),
|
|
@@ -427,6 +447,32 @@ async function ensureMcpClient(): Promise<HonchoMcpClient | null> {
|
|
|
427
447
|
});
|
|
428
448
|
return null;
|
|
429
449
|
}
|
|
450
|
+
if (isTimeoutOutcome(outcome)) {
|
|
451
|
+
const reason = `the handshake with the Honcho MCP server did not finish within ${connectTimeoutMs / 1000}s`;
|
|
452
|
+
logServiceEvent({
|
|
453
|
+
ts: new Date().toISOString(),
|
|
454
|
+
level: "error",
|
|
455
|
+
service: "honcho",
|
|
456
|
+
operation: "mcp_connect",
|
|
457
|
+
phase: "failed",
|
|
458
|
+
reason,
|
|
459
|
+
});
|
|
460
|
+
// A client that connects after the timeout would stay open with
|
|
461
|
+
// nobody closing it.
|
|
462
|
+
void pending.then(
|
|
463
|
+
(late) => {
|
|
464
|
+
void late.close().catch(() => {
|
|
465
|
+
// A client that cannot be closed is dropped anyway.
|
|
466
|
+
});
|
|
467
|
+
},
|
|
468
|
+
() => {
|
|
469
|
+
// The failure is already reported.
|
|
470
|
+
},
|
|
471
|
+
);
|
|
472
|
+
return null;
|
|
473
|
+
}
|
|
474
|
+
_mcpClient = outcome.value;
|
|
475
|
+
return _mcpClient;
|
|
430
476
|
}
|
|
431
477
|
|
|
432
478
|
/**
|
|
@@ -1394,6 +1440,13 @@ export async function initHoncho(options?: {
|
|
|
1394
1440
|
loadMcpLibrary?: HonchoMcpLibraryLoader;
|
|
1395
1441
|
/** The timeout of the credential probe. The tests shorten it. */
|
|
1396
1442
|
probeTimeoutMs?: number;
|
|
1443
|
+
/**
|
|
1444
|
+
* The timeout of the handshake with the MCP server.
|
|
1445
|
+
*
|
|
1446
|
+
* The default bounds a server that stops talking. The tests shorten it,
|
|
1447
|
+
* because a test must not wait for the real timeout.
|
|
1448
|
+
*/
|
|
1449
|
+
connectTimeoutMs?: number;
|
|
1397
1450
|
/**
|
|
1398
1451
|
* Whether the session is over.
|
|
1399
1452
|
*
|
|
@@ -1426,6 +1479,11 @@ async function runInit(options?: {
|
|
|
1426
1479
|
createClient?: HonchoMcpClientFactory;
|
|
1427
1480
|
loadMcpLibrary?: HonchoMcpLibraryLoader;
|
|
1428
1481
|
probeTimeoutMs?: number;
|
|
1482
|
+
/**
|
|
1483
|
+
* The timeout of the handshake with the MCP server. The tests shorten
|
|
1484
|
+
* it: a test must not wait for the real timeout.
|
|
1485
|
+
*/
|
|
1486
|
+
connectTimeoutMs?: number;
|
|
1429
1487
|
/** Whether the session is over. The probe then stops with it. */
|
|
1430
1488
|
isSessionEnded?: () => boolean;
|
|
1431
1489
|
}): Promise<HonchoInitResult> {
|
|
@@ -1482,8 +1540,14 @@ async function runInit(options?: {
|
|
|
1482
1540
|
// Connect with the native MCP client.
|
|
1483
1541
|
const factory = clientFactory();
|
|
1484
1542
|
let client: HonchoMcpClient;
|
|
1543
|
+
// The handshake is bounded: a server that stops talking must not hold
|
|
1544
|
+
// the initialization forever. The timeout wins and the pending
|
|
1545
|
+
// handshake is left to its own fate.
|
|
1546
|
+
const pending = factory(key);
|
|
1547
|
+
let connectOutcome: { timedOut: true } | { timedOut: false; value: HonchoMcpClient };
|
|
1548
|
+
const connectTimeoutMs = options?.connectTimeoutMs ?? MCP_CONNECT_TIMEOUT_MS;
|
|
1485
1549
|
try {
|
|
1486
|
-
|
|
1550
|
+
connectOutcome = await withTimeout(pending, connectTimeoutMs);
|
|
1487
1551
|
} catch (err) {
|
|
1488
1552
|
const message = err instanceof Error ? err.message : String(err);
|
|
1489
1553
|
const status = errorStatus(err);
|
|
@@ -1514,6 +1578,36 @@ async function runInit(options?: {
|
|
|
1514
1578
|
};
|
|
1515
1579
|
}
|
|
1516
1580
|
|
|
1581
|
+
if (isTimeoutOutcome(connectOutcome)) {
|
|
1582
|
+
// The handshake did not finish in time. The failure is named, so the
|
|
1583
|
+
// report of the startup says what happened instead of "no reason was
|
|
1584
|
+
// reported".
|
|
1585
|
+
const reason = `the handshake with the Honcho MCP server did not finish within ${connectTimeoutMs / 1000}s`;
|
|
1586
|
+
logServiceEvent({ ts: new Date().toISOString(), level: "error", service: "honcho", operation: "mcp_connect", phase: "failed", reason });
|
|
1587
|
+
honchoStatus.recordFailure("init", "connect_timeout", { error: reason });
|
|
1588
|
+
// The handshake may still finish after the timeout. A client that
|
|
1589
|
+
// connects then would stay open with nobody closing it, so it is
|
|
1590
|
+
// closed as soon as it arrives.
|
|
1591
|
+
void pending.then(
|
|
1592
|
+
(late) => {
|
|
1593
|
+
void late.close().catch(() => {
|
|
1594
|
+
// A client that cannot be closed is dropped anyway.
|
|
1595
|
+
});
|
|
1596
|
+
},
|
|
1597
|
+
() => {
|
|
1598
|
+
// The failure is already reported.
|
|
1599
|
+
},
|
|
1600
|
+
);
|
|
1601
|
+
return {
|
|
1602
|
+
status: "mcp_unavailable",
|
|
1603
|
+
memory: null,
|
|
1604
|
+
reason: `the Honcho MCP server could not be reached: ${reason}`,
|
|
1605
|
+
hint: `check the network and the endpoint ${HONCHO_MCP_URL}`,
|
|
1606
|
+
};
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
client = connectOutcome.value;
|
|
1610
|
+
|
|
1517
1611
|
_mcpClient = client;
|
|
1518
1612
|
|
|
1519
1613
|
// The tools of the server have to be listed: a server that answers the
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The watcher of the tools of the Honcho MCP server.
|
|
3
|
+
*
|
|
4
|
+
* A connector connects the registered servers asynchronously, so the tools
|
|
5
|
+
* of the server are not there when the registration returns. The watcher
|
|
6
|
+
* looks for them and reports what it sees.
|
|
7
|
+
*
|
|
8
|
+
* Two facts shape the watcher:
|
|
9
|
+
*
|
|
10
|
+
* - A connector that never connects must not hold the session. The wait is
|
|
11
|
+
* bounded, and the report at the deadline says what is known then.
|
|
12
|
+
* - A connector that is slow is not a connector that failed. The watcher
|
|
13
|
+
* keeps looking after the deadline, with a slower rhythm, and corrects
|
|
14
|
+
* the row when the tools finally appear. The row is replaced, not added,
|
|
15
|
+
* so the startup shows one truth about Honcho and not two.
|
|
16
|
+
*/
|
|
17
|
+
import type { HarnessStatus } from "../harness-startup-status.ts";
|
|
18
|
+
|
|
19
|
+
/** The state of the Honcho MCP server in the session. */
|
|
20
|
+
export type HonchoMcpState = "not_registered" | "registered" | "connected";
|
|
21
|
+
|
|
22
|
+
/** The report of the state of the server. */
|
|
23
|
+
export interface HonchoMcpWatcherReport {
|
|
24
|
+
/** The short text of the report. */
|
|
25
|
+
text: string;
|
|
26
|
+
/** The severity of the report. */
|
|
27
|
+
status: "ok" | "warn";
|
|
28
|
+
/** The lines that explain the report. */
|
|
29
|
+
details: string[];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** The dependencies of the watcher. */
|
|
33
|
+
export interface HonchoMcpWatcherOptions {
|
|
34
|
+
/** The state of the server, read from the session. */
|
|
35
|
+
readState: () => HonchoMcpState;
|
|
36
|
+
/** The reason a connection failed, when the connector knows one. */
|
|
37
|
+
readFailureReason: () => string | undefined;
|
|
38
|
+
/** The report of a state, from the Honcho module. */
|
|
39
|
+
report: (state: HonchoMcpState, reason?: string) => HonchoMcpWatcherReport;
|
|
40
|
+
/** The log of the startup. */
|
|
41
|
+
log: (message: string) => void;
|
|
42
|
+
/** The row of the startup. The label replaces an earlier row. */
|
|
43
|
+
setRow: (
|
|
44
|
+
label: string,
|
|
45
|
+
text: string,
|
|
46
|
+
status: HarnessStatus,
|
|
47
|
+
details?: string[],
|
|
48
|
+
) => void;
|
|
49
|
+
/** The clock of the watcher. */
|
|
50
|
+
now: () => number;
|
|
51
|
+
/** The timer of the watcher. */
|
|
52
|
+
setTimeout: (callback: () => void, ms: number) => unknown;
|
|
53
|
+
/** The canceller of the timer. */
|
|
54
|
+
clearTimeout: (handle: unknown) => void;
|
|
55
|
+
/** The label of the row of Honcho in the startup. */
|
|
56
|
+
label?: string;
|
|
57
|
+
/** The wait before the report of a failure. */
|
|
58
|
+
waitMs?: number;
|
|
59
|
+
/** The interval between two checks. */
|
|
60
|
+
intervalMs?: number;
|
|
61
|
+
/** The interval between two checks after the deadline. */
|
|
62
|
+
lateIntervalMs?: number;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** The label of the row of Honcho in the startup. */
|
|
66
|
+
const DEFAULT_LABEL = "Honcho";
|
|
67
|
+
|
|
68
|
+
/** The wait before the report of a failure. */
|
|
69
|
+
const DEFAULT_WAIT_MS = 15_000;
|
|
70
|
+
|
|
71
|
+
/** The interval between two checks. */
|
|
72
|
+
const DEFAULT_INTERVAL_MS = 500;
|
|
73
|
+
|
|
74
|
+
/** The interval between two checks after the deadline. */
|
|
75
|
+
const DEFAULT_LATE_INTERVAL_MS = 5_000;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Watch the tools of the Honcho MCP server and report what happens.
|
|
79
|
+
*
|
|
80
|
+
* The returned function stops the watcher. A watcher of a session that is
|
|
81
|
+
* gone must not keep a timer alive.
|
|
82
|
+
*/
|
|
83
|
+
export function watchHonchoMcpTools(
|
|
84
|
+
options: HonchoMcpWatcherOptions,
|
|
85
|
+
): () => void {
|
|
86
|
+
const label = options.label ?? DEFAULT_LABEL;
|
|
87
|
+
const waitMs = options.waitMs ?? DEFAULT_WAIT_MS;
|
|
88
|
+
const intervalMs = options.intervalMs ?? DEFAULT_INTERVAL_MS;
|
|
89
|
+
const lateIntervalMs = options.lateIntervalMs ?? DEFAULT_LATE_INTERVAL_MS;
|
|
90
|
+
const deadline = options.now() + waitMs;
|
|
91
|
+
let timer: unknown;
|
|
92
|
+
let stopped = false;
|
|
93
|
+
// The failure was already reported. The watcher keeps looking after the
|
|
94
|
+
// deadline, because a connector that is slow is not a connector that
|
|
95
|
+
// failed: the row is corrected when the tools finally appear.
|
|
96
|
+
let reported = false;
|
|
97
|
+
|
|
98
|
+
const check = (): void => {
|
|
99
|
+
if (stopped) return;
|
|
100
|
+
const state = options.readState();
|
|
101
|
+
if (state === "connected") {
|
|
102
|
+
options.log("[pi-harness] Honcho: native MCP server connected");
|
|
103
|
+
// The correction comes from the same report as the startup, so
|
|
104
|
+
// the two rows cannot drift apart.
|
|
105
|
+
const report = options.report(state);
|
|
106
|
+
options.setRow(label, report.text, report.status, report.details);
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
if (options.now() >= deadline && !reported) {
|
|
110
|
+
reported = true;
|
|
111
|
+
// The fallback connector knows why the connection failed, and
|
|
112
|
+
// the reason is more useful than "nobody connected it".
|
|
113
|
+
const reason = options.readFailureReason();
|
|
114
|
+
options.log(
|
|
115
|
+
`[pi-harness] Honcho: no connector connected the MCP server (the model sees no Honcho tools)${reason ? `: ${reason}` : ""}`,
|
|
116
|
+
);
|
|
117
|
+
if (reason) {
|
|
118
|
+
const report = options.report("registered", reason);
|
|
119
|
+
options.setRow(label, report.text, report.status, report.details);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
const next = options.setTimeout(
|
|
123
|
+
check,
|
|
124
|
+
reported ? lateIntervalMs : intervalMs,
|
|
125
|
+
);
|
|
126
|
+
timer = next;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
timer = options.setTimeout(check, intervalMs);
|
|
130
|
+
return () => {
|
|
131
|
+
stopped = true;
|
|
132
|
+
if (timer !== undefined) {
|
|
133
|
+
options.clearTimeout(timer);
|
|
134
|
+
timer = undefined;
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
}
|
package/index.ts
CHANGED
|
@@ -60,6 +60,7 @@ import {
|
|
|
60
60
|
createPendingActionTicker,
|
|
61
61
|
} from "./harness/pending-actions.ts";
|
|
62
62
|
import { classifyProviderFailure, usesBoundedRecovery } from "./harness/provider-failure.ts";
|
|
63
|
+
import { watchHonchoMcpTools as watchHonchoMcpToolsModule } from "./harness/honcho-mcp-watcher.ts";
|
|
63
64
|
import {
|
|
64
65
|
expectsPiRetry,
|
|
65
66
|
readPiRetrySettings,
|
|
@@ -4113,6 +4114,14 @@ const HONCHO_MCP_WAIT_MS = 15_000;
|
|
|
4113
4114
|
/** The interval between two checks of the tools of the session. */
|
|
4114
4115
|
const HONCHO_MCP_WAIT_INTERVAL_MS = 500;
|
|
4115
4116
|
|
|
4117
|
+
/**
|
|
4118
|
+
* The interval between two checks after the deadline of the wait.
|
|
4119
|
+
*
|
|
4120
|
+
* The report of the deadline is true at the deadline, but a connector that
|
|
4121
|
+
* is slow is not a connector that failed. The watcher keeps looking with a
|
|
4122
|
+
* slower rhythm and corrects the row when the tools finally appear.
|
|
4123
|
+
*/
|
|
4124
|
+
const HONCHO_MCP_LATE_INTERVAL_MS = 5_000;
|
|
4116
4125
|
/**
|
|
4117
4126
|
* The connector of the session.
|
|
4118
4127
|
*
|
|
@@ -4166,47 +4175,29 @@ let stopHonchoMcpWatcher: (() => void) | null = null;
|
|
|
4166
4175
|
*/
|
|
4167
4176
|
function watchHonchoMcpTools(pi: ExtensionAPI, honcho: HonchoModule): () => void {
|
|
4168
4177
|
const registrar = pi as unknown as HonchoMcpRegistrar;
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
const check = (): void => {
|
|
4173
|
-
if (stopped) return;
|
|
4174
|
-
const state = honcho.honchoMcpState(registrar, true);
|
|
4175
|
-
if (state === "connected") {
|
|
4176
|
-
logStartup("[pi-harness] Honcho: native MCP server connected");
|
|
4177
|
-
// The correction comes from the same report as the startup, so
|
|
4178
|
-
// the two rows cannot drift apart.
|
|
4179
|
-
const report = honcho.honchoMcpReport(state);
|
|
4180
|
-
addHarnessMessage("Honcho", report.text, report.status, report.details);
|
|
4181
|
-
return;
|
|
4182
|
-
}
|
|
4183
|
-
if (Date.now() >= deadline) {
|
|
4184
|
-
// The fallback connector knows why the connection failed, and
|
|
4185
|
-
// the reason is more useful than "nobody connected it".
|
|
4178
|
+
return watchHonchoMcpToolsModule({
|
|
4179
|
+
readState: () => honcho.honchoMcpState(registrar, true),
|
|
4180
|
+
readFailureReason: () => {
|
|
4186
4181
|
const status = mcpConnector?.statuses.get(HONCHO_MCP_SERVER_NAME);
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
clearTimeout(timer);
|
|
4207
|
-
timer = undefined;
|
|
4208
|
-
}
|
|
4209
|
-
};
|
|
4182
|
+
return status?.state === "failed" ? status.reason : undefined;
|
|
4183
|
+
},
|
|
4184
|
+
report: (state, reason) => honcho.honchoMcpReport(state, reason),
|
|
4185
|
+
log: logStartup,
|
|
4186
|
+
setRow: (label, text, status, details) =>
|
|
4187
|
+
addHarnessMessage(label, text, status, details),
|
|
4188
|
+
now: () => Date.now(),
|
|
4189
|
+
setTimeout: (callback, ms) => {
|
|
4190
|
+
const handle = setTimeout(callback, ms);
|
|
4191
|
+
// The watcher must not hold the process of the session.
|
|
4192
|
+
if (typeof handle.unref === "function") handle.unref();
|
|
4193
|
+
return handle;
|
|
4194
|
+
},
|
|
4195
|
+
clearTimeout: (handle) =>
|
|
4196
|
+
clearTimeout(handle as ReturnType<typeof setTimeout>),
|
|
4197
|
+
waitMs: HONCHO_MCP_WAIT_MS,
|
|
4198
|
+
intervalMs: HONCHO_MCP_WAIT_INTERVAL_MS,
|
|
4199
|
+
lateIntervalMs: HONCHO_MCP_LATE_INTERVAL_MS,
|
|
4200
|
+
});
|
|
4210
4201
|
}
|
|
4211
4202
|
|
|
4212
4203
|
async function initHoncho(pi: ExtensionAPI): Promise<void> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-harness/two-phase-review",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.489",
|
|
4
4
|
"description": "pi-harness-runtime — two-phase implementation and review workflow (queue review signals, gate the phase, scope the diff)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|