pi-harness-runtime 1.1.464 → 1.1.465
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 +42 -0
- package/harness/honcho-init.ts +132 -0
- package/index.ts +87 -5
- 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,48 @@
|
|
|
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.465](https://github.com/ManotLuijiu/pi-harness-runtime/compare/v1.1.448...v1.1.465) (2026-11-07)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **delegation:** a child is only a child when it really ran ([ac4e678](https://github.com/ManotLuijiu/pi-harness-runtime/commit/ac4e6782d7d4bc4941e458425c8a9f38a51fc9d4))
|
|
11
|
+
* **delegation:** the scope of a request is measured before it is judged ([684b6a5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/684b6a55184f63d3be24c48dcecfb0b13410dc15))
|
|
12
|
+
* **honcho:** the memory service speaks the native MCP of Pi ([f9f740c](https://github.com/ManotLuijiu/pi-harness-runtime/commit/f9f740c12869bae4c4380afbe8c76e12388bb744))
|
|
13
|
+
* **jev:** the evaluation of a choice sees what the options mean ([f0c207e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/f0c207e074701e6b7dab0965170ec39453d9d502))
|
|
14
|
+
* **jev:** the pending question carries the ask and the answer ([a792133](https://github.com/ManotLuijiu/pi-harness-runtime/commit/a792133e517fb8c12d3363e98942f3af30270f27))
|
|
15
|
+
* **jev:** the pending question counts down to the decision ([d0cc171](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d0cc171223986b2d32c670b6c1c74712fe0a4ad8))
|
|
16
|
+
* **keys:** the key files are repaired when their permissions are unsafe ([e9c2c26](https://github.com/ManotLuijiu/pi-harness-runtime/commit/e9c2c26b287665b56ed749de269737e8403bb8af))
|
|
17
|
+
* **merge:** a manual run can leave the merge to the pull request event ([b3d1950](https://github.com/ManotLuijiu/pi-harness-runtime/commit/b3d1950b5941c78ccd56951acdafd1d4afbe1bff))
|
|
18
|
+
* **phase:** the agent owns the todo list and the harness says so ([c489370](https://github.com/ManotLuijiu/pi-harness-runtime/commit/c489370bd7926aece8cb1a77aa20ca2d2672f1fb))
|
|
19
|
+
* **review:** the review starts on its own when the implementation is done ([04f51f5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/04f51f599cd3222b6c74dd8fadb1373bd72d9bd7))
|
|
20
|
+
* **status:** the status line names the phase, the progress and the children ([0167bf3](https://github.com/ManotLuijiu/pi-harness-runtime/commit/0167bf396a0b987c1d44f3b869351976a951dd65))
|
|
21
|
+
* **test:** the task waits for the final tier of the validation plan ([fa147db](https://github.com/ManotLuijiu/pi-harness-runtime/commit/fa147dbf7d50d56e6ea48c6d8fbb4fcb190caf8a))
|
|
22
|
+
* **validation:** a large job starts with a measured pilot ([425964b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/425964b04a3d4fa02adfabed47ff62c5ec2b9c28))
|
|
23
|
+
* **validation:** the size of a job is a fact, not a phrase ([8aa6c11](https://github.com/ManotLuijiu/pi-harness-runtime/commit/8aa6c119565d0f8412dc8aeafa6b295d47d3f093))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* **ci:** every run of a required check counts, and the worst one decides ([da9e0da](https://github.com/ManotLuijiu/pi-harness-runtime/commit/da9e0da6b0ca29cb320764fd5fc1b8a8dee8b1e0))
|
|
29
|
+
* **ci:** the newest attempt of a run decides, not the attempt that failed ([9d7adcc](https://github.com/ManotLuijiu/pi-harness-runtime/commit/9d7adcc31cbacc517c3c1a9bcd3956be94c908ef))
|
|
30
|
+
* **honcho:** the report names the state of the MCP server, not the registration ([762f4d5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/762f4d59e4eabcab9a1c21a61aa522c3267621b3))
|
|
31
|
+
* **hooks:** a tag is checked through the commit behind it ([c823e8e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/c823e8e1f6973c62b5449a97c101759a4d5cbba5))
|
|
32
|
+
* **jev:** a session switch ends the wait of the old session ([ca03d39](https://github.com/ManotLuijiu/pi-harness-runtime/commit/ca03d399c0d4a1b2dd428ac39836ab53c0e51ab6))
|
|
33
|
+
* **jev:** the alternatives of a question are parsed without a quadratic pattern ([63016a3](https://github.com/ManotLuijiu/pi-harness-runtime/commit/63016a3f0488acb801990dd46770c00d382b5858))
|
|
34
|
+
* **jev:** the facts of an option survive the wording of the agent ([5a6250c](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5a6250c07aa8d965bc6ae242cccbf519477598f8))
|
|
35
|
+
* **keys:** the key directory is audited as a tree ([081cc75](https://github.com/ManotLuijiu/pi-harness-runtime/commit/081cc75ac8ceff36b0d619c3f76371dc08459d3c))
|
|
36
|
+
* **merge:** the boolean input is read as a boolean ([971b716](https://github.com/ManotLuijiu/pi-harness-runtime/commit/971b7169a43db382dbdeb6bb9bab02ab56e0351c))
|
|
37
|
+
* **merge:** the manual job needs the right of the merge ([7ba685e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7ba685ec43d815f90aa35b742579e87e76c69209))
|
|
38
|
+
* **merge:** the merge of the pull request is the GraphQL mutation ([972bab4](https://github.com/ManotLuijiu/pi-harness-runtime/commit/972bab4b0f7faf1b0047f3bb767ef6db3de4b2fa))
|
|
39
|
+
* **merge:** the workflow merges the pull request the gates cleared ([d7639ec](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d7639ec9b83723510acb4a5c4e23d5d6167c3af6))
|
|
40
|
+
* **release:** a manual release keeps the version of its manifest ([122e661](https://github.com/ManotLuijiu/pi-harness-runtime/commit/122e661ea48cb8aff14c71dbd0221a4cf0ba4c8e))
|
|
41
|
+
* **release:** the alignment names the reason of a failure ([5814dd0](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5814dd0b780f5839cf8011ed0cbbbb31e7eb0418))
|
|
42
|
+
* **release:** the channels of the package name the release ([a7a273f](https://github.com/ManotLuijiu/pi-harness-runtime/commit/a7a273ffe8398e2b5b07ef1c321777de41792c6e))
|
|
43
|
+
* **release:** the release publishes and leaves the channels alone ([5871746](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5871746589c1281d855dbeb591b02419fa43f22e))
|
|
44
|
+
* **release:** the release pull request names the version of its branch ([a846e83](https://github.com/ManotLuijiu/pi-harness-runtime/commit/a846e83e6de6e529f4bca05e869db0b5eebb37c5))
|
|
45
|
+
* **release:** the release scans the tree of the commit it publishes ([7d47a0b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7d47a0b5406480a1e1d3a52623a76aabd1e2d0ba))
|
|
46
|
+
|
|
5
47
|
### [1.1.464](https://github.com/ManotLuijiu/pi-harness-runtime/compare/v1.1.448...v1.1.464) (2026-11-07)
|
|
6
48
|
|
|
7
49
|
|
package/harness/honcho-init.ts
CHANGED
|
@@ -145,6 +145,15 @@ export type HonchoMcpClientFactory = (
|
|
|
145
145
|
export interface HonchoMcpRegistrar {
|
|
146
146
|
registerMcpServer?: (name: string, config: unknown) => void;
|
|
147
147
|
unregisterMcpServer?: (name: string) => void;
|
|
148
|
+
/**
|
|
149
|
+
* The tools the session has.
|
|
150
|
+
*
|
|
151
|
+
* The registration of a server is a declaration: the tools of the server
|
|
152
|
+
* reach the model only when an MCP connector connected it. The runtime
|
|
153
|
+
* that reports the tools is the only one that can tell the difference
|
|
154
|
+
* between a registered server and a connected one.
|
|
155
|
+
*/
|
|
156
|
+
getAllTools?: () => Array<{ name?: unknown }>;
|
|
148
157
|
}
|
|
149
158
|
|
|
150
159
|
// ---------------------------------------------------------------------------
|
|
@@ -157,6 +166,27 @@ const HONCHO_MCP_URL = "https://mcp.honcho.dev";
|
|
|
157
166
|
/** The name of the Honcho MCP server in Pi. */
|
|
158
167
|
const HONCHO_SERVER_NAME = "honcho";
|
|
159
168
|
|
|
169
|
+
/**
|
|
170
|
+
* The prefix of the names of the tools of the Honcho server.
|
|
171
|
+
*
|
|
172
|
+
* The tools of an MCP server are named `mcp__<server>__<tool>`, and the
|
|
173
|
+
* namespace of a server replaces a dash with an underscore. The name is the
|
|
174
|
+
* evidence that a connector connected the server: a registration alone
|
|
175
|
+
* creates no tool.
|
|
176
|
+
*/
|
|
177
|
+
export const HONCHO_MCP_TOOL_PREFIX = "mcp__honcho__";
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* What the session knows about the MCP server of Honcho.
|
|
181
|
+
*
|
|
182
|
+
* - "not_registered": the registration was refused, so there is no server.
|
|
183
|
+
* - "registered": Pi knows the server, but no connector connected it, so
|
|
184
|
+
* the model has no Honcho tools.
|
|
185
|
+
* - "connected": the tools of the server are in the session, so the model can
|
|
186
|
+
* call them.
|
|
187
|
+
*/
|
|
188
|
+
export type HonchoMcpState = "not_registered" | "registered" | "connected";
|
|
189
|
+
|
|
160
190
|
/**
|
|
161
191
|
* Pi's native MCP client library.
|
|
162
192
|
*
|
|
@@ -1068,6 +1098,108 @@ export function registerHonchoMcpServer(
|
|
|
1068
1098
|
}
|
|
1069
1099
|
}
|
|
1070
1100
|
|
|
1101
|
+
/**
|
|
1102
|
+
* The names of the Honcho tools that the session has.
|
|
1103
|
+
*
|
|
1104
|
+
* The tools of an MCP server are named `mcp__<server>__<tool>`, so the name
|
|
1105
|
+
* of a tool tells which server it belongs to. A runtime that cannot report
|
|
1106
|
+
* the tools reports none: the harness must not guess a connection it did
|
|
1107
|
+
* not see.
|
|
1108
|
+
*
|
|
1109
|
+
* @param pi The extension API of Pi
|
|
1110
|
+
* @returns The names of the Honcho tools of the session
|
|
1111
|
+
*/
|
|
1112
|
+
export function honchoMcpTools(
|
|
1113
|
+
pi: HonchoMcpRegistrar | undefined | null
|
|
1114
|
+
): string[] {
|
|
1115
|
+
if (!pi || typeof pi.getAllTools !== "function") return [];
|
|
1116
|
+
let tools: Array<{ name?: unknown }>;
|
|
1117
|
+
try {
|
|
1118
|
+
tools = pi.getAllTools();
|
|
1119
|
+
} catch {
|
|
1120
|
+
// A runtime that refuses to answer has no tools to report.
|
|
1121
|
+
return [];
|
|
1122
|
+
}
|
|
1123
|
+
if (!Array.isArray(tools)) return [];
|
|
1124
|
+
const names: string[] = [];
|
|
1125
|
+
for (const tool of tools) {
|
|
1126
|
+
const name = typeof tool?.name === "string" ? tool.name : "";
|
|
1127
|
+
if (name.startsWith(HONCHO_MCP_TOOL_PREFIX) && !names.includes(name)) {
|
|
1128
|
+
names.push(name);
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
return names;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
/**
|
|
1135
|
+
* The state of the MCP server of Honcho in this session.
|
|
1136
|
+
*
|
|
1137
|
+
* The state is read from the session, not from the registration: a
|
|
1138
|
+
* registration that Pi accepted says that Pi knows the server, and nothing
|
|
1139
|
+
* about a connection.
|
|
1140
|
+
*
|
|
1141
|
+
* @param pi The extension API of Pi
|
|
1142
|
+
* @param registered Whether Pi accepted the registration
|
|
1143
|
+
* @returns The state of the server
|
|
1144
|
+
*/
|
|
1145
|
+
export function honchoMcpState(
|
|
1146
|
+
pi: HonchoMcpRegistrar | undefined | null,
|
|
1147
|
+
registered: boolean
|
|
1148
|
+
): HonchoMcpState {
|
|
1149
|
+
if (!registered) return "not_registered";
|
|
1150
|
+
return honchoMcpTools(pi).length > 0 ? "connected" : "registered";
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
/** The report of the MCP server of Honcho in the startup. */
|
|
1154
|
+
export interface HonchoMcpReport {
|
|
1155
|
+
/** The short text of the report. */
|
|
1156
|
+
text: string;
|
|
1157
|
+
/** The severity of the report. */
|
|
1158
|
+
status: "ok" | "warn";
|
|
1159
|
+
/** The lines that explain the report. */
|
|
1160
|
+
details: string[];
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
/**
|
|
1164
|
+
* The report of the MCP server of Honcho.
|
|
1165
|
+
*
|
|
1166
|
+
* The report names the state that the session shows. It never claims a
|
|
1167
|
+
* connection that did not happen: a registered server without tools is
|
|
1168
|
+
* reported as registered, and the report says that the tools reach the
|
|
1169
|
+
* model only while an MCP connector is active.
|
|
1170
|
+
*
|
|
1171
|
+
* @param state The state of the server in the session
|
|
1172
|
+
* @param reason The cause of a refused registration, already redacted
|
|
1173
|
+
* @returns The report of the startup
|
|
1174
|
+
*/
|
|
1175
|
+
export function honchoMcpReport(
|
|
1176
|
+
state: HonchoMcpState,
|
|
1177
|
+
reason?: string
|
|
1178
|
+
): HonchoMcpReport {
|
|
1179
|
+
if (state === "connected") {
|
|
1180
|
+
return { text: "MCP connected", status: "ok", details: [] };
|
|
1181
|
+
}
|
|
1182
|
+
if (state === "registered") {
|
|
1183
|
+
return {
|
|
1184
|
+
text: "MCP registered, not connected",
|
|
1185
|
+
status: "warn",
|
|
1186
|
+
details: [
|
|
1187
|
+
"The Honcho server is registered with Pi.",
|
|
1188
|
+
"Its tools reach the model only while an MCP connector is active.",
|
|
1189
|
+
"Check /mcp for the connection state.",
|
|
1190
|
+
],
|
|
1191
|
+
};
|
|
1192
|
+
}
|
|
1193
|
+
return {
|
|
1194
|
+
text: "native MCP tools not registered",
|
|
1195
|
+
status: "warn",
|
|
1196
|
+
details: [
|
|
1197
|
+
`The registration failed: ${reason ?? "the reason was not reported"}`,
|
|
1198
|
+
"Check /tmp/pi-harness.log for the Honcho reason.",
|
|
1199
|
+
],
|
|
1200
|
+
};
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1071
1203
|
// ---------------------------------------------------------------------------
|
|
1072
1204
|
// Initialization
|
|
1073
1205
|
// ---------------------------------------------------------------------------
|
package/index.ts
CHANGED
|
@@ -53,6 +53,8 @@ import { isChannelDisabled, setChannelDisabled } from "./harness/notification-se
|
|
|
53
53
|
import type {
|
|
54
54
|
HonchoInitResult,
|
|
55
55
|
HonchoMcpRegistrar,
|
|
56
|
+
HonchoMcpReport,
|
|
57
|
+
HonchoMcpState,
|
|
56
58
|
} from "./harness/honcho-init.ts";
|
|
57
59
|
import { UsageTracker } from "./tracker.ts";
|
|
58
60
|
import { MirrorStore, type MirrorRecord } from "./mirror.ts";
|
|
@@ -3485,6 +3487,66 @@ interface HonchoModule {
|
|
|
3485
3487
|
loadHonchoApiKey: () => string | undefined;
|
|
3486
3488
|
/** Removes the credential from a text. */
|
|
3487
3489
|
redactHonchoKey: (text: string, apiKey: string) => string;
|
|
3490
|
+
/**
|
|
3491
|
+
* The state of the MCP server in the session.
|
|
3492
|
+
*
|
|
3493
|
+
* The state is read from the tools of the session, not from the
|
|
3494
|
+
* registration: a registration that Pi accepted says that Pi knows the
|
|
3495
|
+
* server, and nothing about a connection.
|
|
3496
|
+
*/
|
|
3497
|
+
honchoMcpState: (
|
|
3498
|
+
pi: HonchoMcpRegistrar | undefined | null,
|
|
3499
|
+
registered: boolean,
|
|
3500
|
+
) => HonchoMcpState;
|
|
3501
|
+
/** The report of the state, for the startup. */
|
|
3502
|
+
honchoMcpReport: (state: HonchoMcpState, reason?: string) => HonchoMcpReport;
|
|
3503
|
+
}
|
|
3504
|
+
|
|
3505
|
+
/**
|
|
3506
|
+
* How long the startup waits for the tools of the Honcho server.
|
|
3507
|
+
*
|
|
3508
|
+
* A connector connects the registered servers asynchronously, so the tools
|
|
3509
|
+
* are not there when the registration returns. The wait is bounded: a
|
|
3510
|
+
* connector that never connects must not hold the session, and the report
|
|
3511
|
+
* says what it knows when the wait is over.
|
|
3512
|
+
*/
|
|
3513
|
+
const HONCHO_MCP_WAIT_MS = 15_000;
|
|
3514
|
+
|
|
3515
|
+
/** The interval between two checks of the tools of the session. */
|
|
3516
|
+
const HONCHO_MCP_WAIT_INTERVAL_MS = 500;
|
|
3517
|
+
|
|
3518
|
+
/**
|
|
3519
|
+
* Correct the report when the tools of the Honcho server appear.
|
|
3520
|
+
*
|
|
3521
|
+
* The connector of Pi connects the registered servers in the background, so
|
|
3522
|
+
* the report of the startup is written before the connection happens. The
|
|
3523
|
+
* wait is bounded and the report is only corrected when the tools are
|
|
3524
|
+
* really there.
|
|
3525
|
+
*/
|
|
3526
|
+
function watchHonchoMcpTools(pi: ExtensionAPI, honcho: HonchoModule): void {
|
|
3527
|
+
const registrar = pi as unknown as HonchoMcpRegistrar;
|
|
3528
|
+
const deadline = Date.now() + HONCHO_MCP_WAIT_MS;
|
|
3529
|
+
const check = (): void => {
|
|
3530
|
+
const state = honcho.honchoMcpState(registrar, true);
|
|
3531
|
+
if (state === "connected") {
|
|
3532
|
+
logStartup("[pi-harness] Honcho: native MCP server connected");
|
|
3533
|
+
// The correction comes from the same report as the startup, so
|
|
3534
|
+
// the two rows cannot drift apart.
|
|
3535
|
+
const report = honcho.honchoMcpReport(state);
|
|
3536
|
+
addHarnessMessage("Honcho", report.text, report.status, report.details);
|
|
3537
|
+
return;
|
|
3538
|
+
}
|
|
3539
|
+
if (Date.now() >= deadline) {
|
|
3540
|
+
logStartup(
|
|
3541
|
+
"[pi-harness] Honcho: no connector connected the MCP server (the model sees no Honcho tools)",
|
|
3542
|
+
);
|
|
3543
|
+
return;
|
|
3544
|
+
}
|
|
3545
|
+
const timer = setTimeout(check, HONCHO_MCP_WAIT_INTERVAL_MS);
|
|
3546
|
+
if (typeof timer.unref === "function") timer.unref();
|
|
3547
|
+
};
|
|
3548
|
+
const timer = setTimeout(check, HONCHO_MCP_WAIT_INTERVAL_MS);
|
|
3549
|
+
if (typeof timer.unref === "function") timer.unref();
|
|
3488
3550
|
}
|
|
3489
3551
|
|
|
3490
3552
|
async function initHoncho(pi: ExtensionAPI): Promise<void> {
|
|
@@ -3558,8 +3620,28 @@ async function initHoncho(pi: ExtensionAPI): Promise<void> {
|
|
|
3558
3620
|
case "ready": {
|
|
3559
3621
|
logStartup("[pi-harness] Honcho integration ready");
|
|
3560
3622
|
if (result.mcpRegistered) {
|
|
3561
|
-
|
|
3562
|
-
|
|
3623
|
+
// The registration is a declaration: the tools of the
|
|
3624
|
+
// server reach the model only when an MCP connector
|
|
3625
|
+
// connected it. The tools of the session are the
|
|
3626
|
+
// evidence, so the report names what is true.
|
|
3627
|
+
const state = honcho.honchoMcpState(
|
|
3628
|
+
pi as unknown as HonchoMcpRegistrar,
|
|
3629
|
+
true,
|
|
3630
|
+
);
|
|
3631
|
+
if (state === "connected") {
|
|
3632
|
+
logStartup("[pi-harness] Honcho: native MCP server connected");
|
|
3633
|
+
const report = honcho.honchoMcpReport(state);
|
|
3634
|
+
addHarnessMessage("Honcho", report.text, report.status, report.details);
|
|
3635
|
+
} else {
|
|
3636
|
+
logStartup(
|
|
3637
|
+
"[pi-harness] Honcho: native MCP server registered (the tools reach the model only while an MCP connector is active)",
|
|
3638
|
+
);
|
|
3639
|
+
const report = honcho.honchoMcpReport(state);
|
|
3640
|
+
addHarnessMessage("Honcho", report.text, report.status, report.details);
|
|
3641
|
+
// A connector connects the server in the background:
|
|
3642
|
+
// the report is corrected when the tools appear.
|
|
3643
|
+
watchHonchoMcpTools(pi, honcho);
|
|
3644
|
+
}
|
|
3563
3645
|
} else {
|
|
3564
3646
|
// The memory works, but the model has no Honcho tools: the
|
|
3565
3647
|
// user has to know that, not only the log. The reason of
|
|
@@ -3576,9 +3658,9 @@ async function initHoncho(pi: ExtensionAPI): Promise<void> {
|
|
|
3576
3658
|
const capability = cause.includes("registerMcpServer")
|
|
3577
3659
|
? "This runtime does not provide registerMcpServer: the Honcho memory works, but the model sees no Honcho tools."
|
|
3578
3660
|
: "The Honcho memory works, but the model sees no Honcho tools.";
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3661
|
+
const report = honcho.honchoMcpReport("not_registered", cause);
|
|
3662
|
+
addHarnessMessage("Honcho", report.text, report.status, [
|
|
3663
|
+
...report.details,
|
|
3582
3664
|
capability,
|
|
3583
3665
|
]);
|
|
3584
3666
|
}
|
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.465",
|
|
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",
|