@harness-mix/cli 0.2.3 → 0.2.4
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 +13 -0
- package/README.md +469 -467
- package/output/native-build/desktop-controller.mjs +1 -1
- package/output/native-build/renderer-extension.js +23 -4
- package/package.json +11 -9
- package/scripts/antigravity-adapter-test.cjs +647 -626
- package/scripts/codex-adapter-test.cjs +162 -127
- package/scripts/collaboration-test.cjs +274 -262
- package/scripts/jsonl-stdin-test.cjs +40 -31
- package/scripts/kiro-cursor-adapters-test.cjs +124 -100
- package/scripts/native-acp-depth-test.cjs +30 -5
- package/scripts/native-update-apply-test.cjs +269 -215
- package/scripts/native-update.cjs +78 -0
- package/scripts/native-vendor-adapters-test.cjs +196 -154
- package/scripts/salvage-rollout-writes.cjs +72 -0
- package/scripts/zcode-adapter-test.cjs +329 -0
- package/scripts/zcode-live-probe.cjs +66 -0
- package/src/main/adapters/antigravity.js +1428 -1418
- package/src/main/adapters/codex.js +656 -649
- package/src/main/adapters/native-acp-command.js +51 -48
- package/src/main/adapters/native-acp.js +47 -12
- package/src/main/adapters/qoder.js +12 -8
- package/src/main/adapters/zcode.js +921 -10
- package/src/main/host/collaboration.js +723 -715
- package/src/main/host/jsonl.js +130 -120
- package/src/main/native/config.js +9 -9
- package/src/main/native/launcher.js +252 -237
- package/src/main/native/process-utils.js +157 -57
- package/src/main/native/protocol.js +1221 -1187
- package/src/main/native/update-state.js +123 -110
- package/src/main/native/updater.js +460 -394
- package/src/native-ui/desktop-control/src/renderer-cdp-control-session.ts +358 -358
- package/src/native-ui/renderer-extension/src/renderer-binding-probe.ts +3211 -3181
- package/src/native-ui/renderer-extension/src/settings/connections-page.ts +2 -2
|
@@ -950,7 +950,7 @@ function sleep(milliseconds) {
|
|
|
950
950
|
return new Promise((resolve) => setTimeout(resolve, milliseconds));
|
|
951
951
|
}
|
|
952
952
|
function sameAgents(actual, expected) {
|
|
953
|
-
return actual.length === expected.length &&
|
|
953
|
+
return actual.length === expected.length && expected.every((agent) => actual.includes(agent));
|
|
954
954
|
}
|
|
955
955
|
function isPrimaryRendererUrl(value) {
|
|
956
956
|
try {
|
|
@@ -17027,9 +17027,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17027
17027
|
"claude-code": { command: "npm install -g @anthropic-ai/claude-code" },
|
|
17028
17028
|
"deepseek-harness": { command: "pip install deepseek-harness" },
|
|
17029
17029
|
opencode: { command: "npm install -g opencode-ai" },
|
|
17030
|
-
grok: { command: "
|
|
17030
|
+
grok: { command: "powershell -NoProfile -ExecutionPolicy Bypass -Command iex (irm https://x.ai/cli/install.ps1)" },
|
|
17031
17031
|
omp: { command: "npm install -g @oh-my-pi/pi-coding-agent" },
|
|
17032
|
-
antigravity: { command: "
|
|
17032
|
+
antigravity: { command: "powershell -NoProfile -ExecutionPolicy Bypass -Command iex (irm https://antigravity.google/cli/install.ps1)" },
|
|
17033
17033
|
openclaw: { command: "npm install -g openclaw" },
|
|
17034
17034
|
hermes: { command: "pip install hermes-agent" },
|
|
17035
17035
|
cline: { command: "npm install -g cline" },
|
|
@@ -33358,7 +33358,8 @@ ${pet_market_default}`;
|
|
|
33358
33358
|
}
|
|
33359
33359
|
if (isDraft) mounted.hostId = requestHostId;
|
|
33360
33360
|
const availability = hostHarnessAvailabilityState(requestHostId).availability[agent];
|
|
33361
|
-
|
|
33361
|
+
const lockedOwnership = mounted.ownershipStatus === "ready" && state.phase === "locked";
|
|
33362
|
+
if (availability !== "ready" && !lockedOwnership) {
|
|
33362
33363
|
mounted.modelView = {
|
|
33363
33364
|
status: adapterStatus.state !== "ready" || availability === "checking" ? "waitingForAdapter" : "error",
|
|
33364
33365
|
thinkingSelectionSupported: false,
|
|
@@ -34654,7 +34655,25 @@ ${pet_market_default}`;
|
|
|
34654
34655
|
const selections = connectedComposers().map((mounted) => ({
|
|
34655
34656
|
composerId: mounted.composerId,
|
|
34656
34657
|
agent: controller.get(mounted.composer).agent,
|
|
34657
|
-
phase: controller.get(mounted.composer).phase
|
|
34658
|
+
phase: controller.get(mounted.composer).phase,
|
|
34659
|
+
// Diagnostic surface for live composer debugging: the raw external
|
|
34660
|
+
// model/permission views plus the controller-held selection refs.
|
|
34661
|
+
ownership: mounted.ownershipStatus,
|
|
34662
|
+
modelView: {
|
|
34663
|
+
status: mounted.modelView.status,
|
|
34664
|
+
...mounted.modelView.catalog ? { catalogModels: mounted.modelView.catalog.models.map((m) => m.ref.id.slice(0, 24)) } : {},
|
|
34665
|
+
...mounted.modelView.selected ? { selected: mounted.modelView.selected.id.slice(0, 24) } : {},
|
|
34666
|
+
...mounted.modelView.error ? { error: mounted.modelView.error.slice(0, 160) } : {}
|
|
34667
|
+
},
|
|
34668
|
+
...controller.get(mounted.composer).phase === "locked" && mounted.composerId ? {
|
|
34669
|
+
controllerModel: (() => {
|
|
34670
|
+
const agent = controller.get(mounted.composer).agent;
|
|
34671
|
+
if (agent === "codex") return void 0;
|
|
34672
|
+
const model = controller.modelForAgent(mounted.composer, agent);
|
|
34673
|
+
return model ? model.id.slice(0, 24) : void 0;
|
|
34674
|
+
})()
|
|
34675
|
+
} : {},
|
|
34676
|
+
permissionView: mounted.permissionModeView.status
|
|
34658
34677
|
}));
|
|
34659
34678
|
return {
|
|
34660
34679
|
version: 2,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harness-mix/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"license": "(Apache-2.0 OR MIT)",
|
|
5
5
|
"description": "Harness Mix native Codex UI bridge for Codex, Pi, Claude Code, DeepSeek Harness, Antigravity, CodeBuddy, Kiro CLI, Cursor CLI and other native coding harnesses.",
|
|
6
6
|
"keywords": [
|
|
@@ -106,6 +106,7 @@
|
|
|
106
106
|
"e2e:native:pi": "node scripts/e2e-native-host.cjs --live --harness=pi",
|
|
107
107
|
"e2e:native:dsh": "node scripts/e2e-native-host.cjs --live --harness=deepseek-harness",
|
|
108
108
|
"e2e:native:claude": "node scripts/e2e-native-host.cjs --live --harness=claude-code",
|
|
109
|
+
"e2e:zcode": "node scripts/zcode-live-probe.cjs",
|
|
109
110
|
"start:codex": "node scripts/launch-codex.cjs",
|
|
110
111
|
"check": "node scripts/check.cjs",
|
|
111
112
|
"test:contracts": "node scripts/contracts-test.cjs",
|
|
@@ -123,7 +124,7 @@
|
|
|
123
124
|
"test:core-concurrency": "node scripts/core-concurrency-test.cjs",
|
|
124
125
|
"test:thread-title": "node scripts/thread-title-test.cjs",
|
|
125
126
|
"test:handoff": "node scripts/handoff-checkpoint-test.cjs && node scripts/switch-harness-test.cjs",
|
|
126
|
-
"test:core-all": "node scripts/contracts-test.cjs && node scripts/projector-test.cjs && node scripts/turn-manager-test.cjs && node scripts/sequence-test.cjs && node scripts/shadow-test.cjs && node scripts/architecture-test.cjs && node scripts/adapters-test.cjs && node scripts/dsh-adapter-test.cjs && node scripts/codex-adapter-test.cjs && node scripts/codex-accounts-test.cjs && node scripts/antigravity-adapter-test.cjs && node scripts/openclaw-adapter-test.cjs && node scripts/core-replay-test.cjs && node scripts/determinism-test.cjs && node scripts/core-runtime-test.cjs && node scripts/core-services-test.cjs && node scripts/native-file-change-test.cjs && node scripts/native-updater-test.cjs && node scripts/native-update-apply-test.cjs && node scripts/native-vendor-adapters-test.cjs && node scripts/core-concurrency-test.cjs && node scripts/concurrency-layers-test.cjs && node scripts/tool-concurrency-regression-test.cjs && node scripts/handoff-checkpoint-test.cjs && node scripts/switch-harness-test.cjs && node scripts/native-acp-depth-test.cjs && node scripts/thread-title-test.cjs && node scripts/native-job-object-test.cjs && node scripts/integrations-test.cjs && node scripts/storage-verification-test.cjs && node scripts/stuck-turn-test.cjs && node scripts/pi-cancel-race-test.cjs && node scripts/send-cancel-race-test.cjs && node scripts/delegation-await-test.cjs && node scripts/core-review-test.cjs && node scripts/jsonl-stdin-test.cjs && node scripts/send-pre-turn-cancel-test.cjs",
|
|
127
|
+
"test:core-all": "node scripts/contracts-test.cjs && node scripts/projector-test.cjs && node scripts/turn-manager-test.cjs && node scripts/sequence-test.cjs && node scripts/shadow-test.cjs && node scripts/architecture-test.cjs && node scripts/adapters-test.cjs && node scripts/dsh-adapter-test.cjs && node scripts/codex-adapter-test.cjs && node scripts/codex-accounts-test.cjs && node scripts/antigravity-adapter-test.cjs && node scripts/openclaw-adapter-test.cjs && node scripts/core-replay-test.cjs && node scripts/determinism-test.cjs && node scripts/core-runtime-test.cjs && node scripts/core-services-test.cjs && node scripts/native-file-change-test.cjs && node scripts/native-updater-test.cjs && node scripts/native-update-apply-test.cjs && node scripts/native-vendor-adapters-test.cjs && node scripts/core-concurrency-test.cjs && node scripts/concurrency-layers-test.cjs && node scripts/tool-concurrency-regression-test.cjs && node scripts/handoff-checkpoint-test.cjs && node scripts/switch-harness-test.cjs && node scripts/native-acp-depth-test.cjs && node scripts/thread-title-test.cjs && node scripts/native-job-object-test.cjs && node scripts/integrations-test.cjs && node scripts/storage-verification-test.cjs && node scripts/stuck-turn-test.cjs && node scripts/pi-cancel-race-test.cjs && node scripts/send-cancel-race-test.cjs && node scripts/delegation-await-test.cjs && node scripts/core-review-test.cjs && node scripts/zcode-adapter-test.cjs && node scripts/jsonl-stdin-test.cjs && node scripts/send-pre-turn-cancel-test.cjs",
|
|
127
128
|
"test:codex-accounts": "node scripts/codex-accounts-test.cjs",
|
|
128
129
|
"smoke:codex-accounts-ui": "electron scripts/codex-accounts-ui-smoke.cjs",
|
|
129
130
|
"test:transcript": "node scripts/transcript-test.cjs",
|
|
@@ -171,7 +172,8 @@
|
|
|
171
172
|
"test:delegation-await": "node scripts/delegation-await-test.cjs",
|
|
172
173
|
"test:core-review": "node scripts/core-review-test.cjs",
|
|
173
174
|
"test:jsonl-stdin": "node scripts/jsonl-stdin-test.cjs",
|
|
174
|
-
"test:send-pre-turn-cancel": "node scripts/send-pre-turn-cancel-test.cjs"
|
|
175
|
+
"test:send-pre-turn-cancel": "node scripts/send-pre-turn-cancel-test.cjs",
|
|
176
|
+
"test:zcode-adapter": "node scripts/zcode-adapter-test.cjs"
|
|
175
177
|
},
|
|
176
178
|
"devDependencies": {
|
|
177
179
|
"@types/node": "24.13.3",
|
|
@@ -187,11 +189,11 @@
|
|
|
187
189
|
"zod": "4.4.3"
|
|
188
190
|
},
|
|
189
191
|
"optionalDependencies": {
|
|
190
|
-
"@harness-mix/native-win32-x64": "0.2.
|
|
191
|
-
"@harness-mix/native-win32-arm64": "0.2.
|
|
192
|
-
"@harness-mix/native-darwin-x64": "0.2.
|
|
193
|
-
"@harness-mix/native-darwin-arm64": "0.2.
|
|
194
|
-
"@harness-mix/native-linux-x64": "0.2.
|
|
195
|
-
"@harness-mix/native-linux-arm64": "0.2.
|
|
192
|
+
"@harness-mix/native-win32-x64": "0.2.4",
|
|
193
|
+
"@harness-mix/native-win32-arm64": "0.2.4",
|
|
194
|
+
"@harness-mix/native-darwin-x64": "0.2.4",
|
|
195
|
+
"@harness-mix/native-darwin-arm64": "0.2.4",
|
|
196
|
+
"@harness-mix/native-linux-x64": "0.2.4",
|
|
197
|
+
"@harness-mix/native-linux-arm64": "0.2.4"
|
|
196
198
|
}
|
|
197
199
|
}
|