harness-everything 0.57.4 → 0.58.0
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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.releaserc.json +2 -0
- package/CHANGELOG.md +6 -0
- package/benchmarks/results/live-host/agy-2026-11-22/README.md +49 -0
- package/benchmarks/results/live-host/agy-2026-11-23/README.md +48 -0
- package/ci/doc-capability-consistency.test.js +11 -1
- package/ci/mechanism-2ao-plugin-sync.test.js +235 -2
- package/ci/mechanism-2w-platform-compatibility.test.js +13 -2
- package/ci/mechanism-2x-release-automation.test.js +3 -1
- package/ci/mechanism-agy-hooks.test.js +1096 -0
- package/ci/mechanism-agy-plugin-package.test.js +76 -0
- package/docs/platform-capabilities.md +3 -1
- package/docs/platform-compatibility.json +34 -1
- package/hooks/scripts/agy-post-tool.js +124 -0
- package/hooks/scripts/agy-pre-invocation.js +185 -0
- package/hooks/scripts/agy-pre-tool.js +158 -0
- package/hooks/scripts/agy-session-start.js +54 -0
- package/hooks/scripts/agy-stop.js +152 -0
- package/hooks/scripts/lib/agy-adapter-core.js +168 -0
- package/hooks/scripts/state-persist.js +50 -10
- package/opencode-plugin/plugin.json +1 -1
- package/package.json +1 -1
- package/plugins/harness-everything/.antigravity-plugin/plugin.json +18 -0
- package/plugins/harness-everything/.codex-plugin/plugin.json +1 -1
- package/plugins/harness-everything/hooks/scripts/agy-post-tool.js +124 -0
- package/plugins/harness-everything/hooks/scripts/agy-pre-invocation.js +185 -0
- package/plugins/harness-everything/hooks/scripts/agy-pre-tool.js +158 -0
- package/plugins/harness-everything/hooks/scripts/agy-session-start.js +54 -0
- package/plugins/harness-everything/hooks/scripts/agy-stop.js +152 -0
- package/plugins/harness-everything/hooks/scripts/lib/agy-adapter-core.js +168 -0
- package/plugins/harness-everything/hooks/scripts/state-persist.js +50 -10
- package/plugins/harness-everything/hooks.json +44 -0
- package/plugins/harness-everything/plugin.json +1 -1
- package/plugins/harness-everything/rules/AGENTS.md +111 -0
- package/sbom.cdx.json +7 -7
- package/scripts/plugin-sync.js +105 -14
- package/scripts/sync-openai-plugin.js +16 -1
- package/scripts/sync-release-version.js +1 -0
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"name": "harness-everything",
|
|
11
11
|
"source": "./",
|
|
12
12
|
"description": "Harness OS: an orchestrated agent operating system — tier routing, circuit breaker guardrails, verification gates, WAL session memory, and self-evolving workspace rules.",
|
|
13
|
-
"version": "0.
|
|
13
|
+
"version": "0.58.0",
|
|
14
14
|
"author": {
|
|
15
15
|
"name": "Miya Daniel"
|
|
16
16
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "harness-everything",
|
|
3
3
|
"description": "Harness OS: an orchestrated agent operating system — tier routing, circuit breaker guardrails, verification gates, WAL session memory, and self-evolving workspace rules.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.58.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Miya Daniel"
|
|
7
7
|
},
|
package/.releaserc.json
CHANGED
|
@@ -93,8 +93,10 @@
|
|
|
93
93
|
"*/**/SKILL.md",
|
|
94
94
|
"plugins/harness-everything/plugin.json",
|
|
95
95
|
"plugins/harness-everything/.codex-plugin/plugin.json",
|
|
96
|
+
"plugins/harness-everything/.antigravity-plugin/plugin.json",
|
|
96
97
|
"plugins/harness-everything/skills",
|
|
97
98
|
"plugins/harness-everything/hooks",
|
|
99
|
+
"plugins/harness-everything/rules",
|
|
98
100
|
"opencode-plugin/plugin.json"
|
|
99
101
|
],
|
|
100
102
|
"message": "chore(release): ${nextRelease.version} [skip ci]"
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.58.0](https://github.com/dyphn1/Harness-everything/compare/v0.57.4...v0.58.0) (2026-11-23)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **plugin:** add native antigravity plugin and lifecycle hooks ([#513](https://github.com/dyphn1/Harness-everything/issues/513)) ([2c9cd88](https://github.com/dyphn1/Harness-everything/commit/2c9cd881c18ca3e72bcd79b9493cfb5761196022)), closes [#510](https://github.com/dyphn1/Harness-everything/issues/510)
|
|
10
|
+
|
|
5
11
|
## [0.57.4](https://github.com/dyphn1/Harness-everything/compare/v0.57.3...v0.57.4) (2026-11-22)
|
|
6
12
|
|
|
7
13
|
### Bug Fixes
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Evidence: Google Antigravity (AGY) Plugin & Lifecycle Hooks
|
|
2
|
+
|
|
3
|
+
This records the package architecture and deterministic mechanism verification of the native Google Antigravity (AGY) plugin and lifecycle hook integration on macOS.
|
|
4
|
+
|
|
5
|
+
- Date: 2026-11-22 (updated 2026-11-23 after sync to `0.57.4`)
|
|
6
|
+
- Host: Google Antigravity (AGY) IDE / CLI runtime (mechanism tests under Node.js on macOS; see [agy-2026-11-23](../agy-2026-11-23/README.md) for partial live-host evidence on Antigravity 2.0 Desktop App `2.34.0`, and Issue #514 for remaining unchecked surfaces)
|
|
7
|
+
- Repository branch under test: `feat/510-agy-plugin` (Issue #510, PR #513)
|
|
8
|
+
- Packaged plugin: `plugins/harness-everything/` (version `0.57.4`)
|
|
9
|
+
- Manifest targets: `.antigravity-plugin/plugin.json`, `rules/AGENTS.md`, and root `hooks.json`
|
|
10
|
+
|
|
11
|
+
## Verified Capabilities (Mechanism Only)
|
|
12
|
+
|
|
13
|
+
### 1. Packaging & Manifest Lockstep (Phase 1)
|
|
14
|
+
- Manifest: `plugins/harness-everything/.antigravity-plugin/plugin.json` conforms to the AGY Customization System specification (`name`, `version`, `author`, `homepage`, `repository`, `license`, `keywords`).
|
|
15
|
+
- Rules Integration: `plugins/harness-everything/rules/AGENTS.md` is synchronized from the repository root `AGENTS.md` byte-for-byte.
|
|
16
|
+
- Hook Runtime Parity: Packaged `plugins/harness-everything/hooks/scripts/agy-*.js` and `lib/agy-adapter-core.js` match repository `hooks/scripts/` byte-for-byte.
|
|
17
|
+
- Canonical Skills: All 28 canonical skills are present in `plugins/harness-everything/skills/` with required `## USE FOR:` / `## DO NOT USE FOR:` routing sections.
|
|
18
|
+
- Verified by: `npm test` (`ci/mechanism-agy-plugin-package.test.js`, auto-discovered by `ci/mechanism-test.js`).
|
|
19
|
+
|
|
20
|
+
### 2. Lifecycle Hook Enforcement (Phase 2 — Mechanism Verified)
|
|
21
|
+
The AGY plugin provides lifecycle adapters communicating over `stdin`/`stdout` using the AGY protojson camelCase format:
|
|
22
|
+
- `SessionStart` (`agy-session-start.js`): Binds session workspace identity from `conversationId` + `workspacePaths`/`cwd` and injects the active Harness OS banner.
|
|
23
|
+
- `PreInvocation` (`agy-pre-invocation.js`): Invokes the Kernel Router once per user turn (deduplicated per turn via session state + `invocationNum` guard), injecting routing context via `injectSteps` and bridging `conversationId` to `workflow-run.json`.
|
|
24
|
+
- `PreToolUse` (`agy-pre-tool.js`): Intercepts `run_command`, `write_file`, `edit_file`, `write_to_file`, `replace_file_content`, and `multi_replace_file_content`:
|
|
25
|
+
- Enforces canonicalized (`fs.realpathSync`) filesystem containment across `workspacePaths`, `cwd`, and `artifactDirectoryPath`; denies missing/empty paths and out-of-bounds or symlink-escaped targets.
|
|
26
|
+
- Invokes canonical Action Gate policies (`action-gate.js`) with normalized `args.Cwd` and `toolCall.id` to reject destructive operations, force-pushes, publish, and hard reset.
|
|
27
|
+
- `PostToolUse` (`agy-post-tool.js`): Normalizes `run_command` (`Cwd`) and file-write (`file_path`) payloads, passing `--agy` to `state-persist.js` so `error` strings and non-zero exit codes record `failed`, explicit `exitCode === 0` advances verification or clears `failed`, and unknown shell outcomes (omitted `error`/`exitCode`) grant no verification credit and preserve `failed` state while retaining `lastEditAt` edit tracking.
|
|
28
|
+
- `Stop` (`agy-stop.js`): Implements Verify-Before-Claim using normalized `conversationId` + `workspacePaths`/`cwd` workspace resolution, returning `{"decision": "continue", "reason": "..."}` on unresolved failures or unverified edits while returning `{"decision": "allow"}` on verified/clean sessions, compatibility recursion guards (`continuationActive`/`stop_hook_active`), and explicit abnormal `terminationReason` values (while still evaluating `NO_TOOL_CALL`, `model_stop`, and empty/normal reasons).
|
|
29
|
+
- Verified by: `npm test` (`ci/mechanism-agy-hooks.test.js`, auto-discovered by `ci/mechanism-test.js`).
|
|
30
|
+
|
|
31
|
+
### 3. Automated Synchronization & CLI (Phase 3 — Mechanism Verified)
|
|
32
|
+
- `scripts/plugin-sync.sh` and `scripts/plugin-sync.js` support `--host agy` (and `--host all`):
|
|
33
|
+
- Under default `--host all`, requires AGY CLI (`agy`) or an existing AGY install (`.antigravity-plugin/plugin.json` under `.agents/plugins/` or `~/.gemini/config/plugins/`), skipping unrelated Codex `.agents/` directories.
|
|
34
|
+
- Supports explicit `--host agy` to install/update and `--dry-run` (reporting `status: "dry-run"` without mutating disk).
|
|
35
|
+
- Performs atomic staged replacement with rollback on failure, cleaning obsolete files and replacing partial/corrupted target directories cleanly.
|
|
36
|
+
- Verified by: `npm run test:plugin:hosts` (`ci/mechanism-2ao-plugin-sync.test.js`).
|
|
37
|
+
|
|
38
|
+
## Repository Verification Summary
|
|
39
|
+
|
|
40
|
+
| Gate | Command | Result |
|
|
41
|
+
|---|---|---|
|
|
42
|
+
| Full Local Suite (incl. AGY package, hooks & host sync) | `npm run verify:all` | PASS |
|
|
43
|
+
| AGY Plugin Package | `node ci/mechanism-agy-plugin-package.test.js` | PASS |
|
|
44
|
+
| AGY Lifecycle Hooks | `node ci/mechanism-agy-hooks.test.js` | PASS |
|
|
45
|
+
| Host Plugin Synchronization | `npm run test:plugin:hosts` | PASS |
|
|
46
|
+
| Consistency & Contract | `npm run test:consistency` | PASS |
|
|
47
|
+
| Release Lockstep | `npm run test:release` | PASS |
|
|
48
|
+
| OpenAI Plugin Package | `npm run test:plugin:openai` | PASS |
|
|
49
|
+
| Documentation Sync | `npm run docs:sync` | PASS |
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Live-Host Evidence: Google Antigravity (AGY) 2.34.0 & CLI 1.5.15 (macOS, Partial)
|
|
2
|
+
|
|
3
|
+
Sanitized live-host verification of the native Google Antigravity (AGY) plugin and lifecycle hooks on Antigravity 2.0 Desktop App `2.34.0` and `agy` CLI `1.5.15`. This establishes **partial** live-host coverage on macOS and records observed host limitations explicitly; remaining surfaces (`/hooks` TUI view, full project-scope `harness-everything` isolation, IDE-specific write tools, live `PostToolUse` shell `exitCode: 0` verification credit, and live `Stop` `model_stop`) stay open in Issue #514.
|
|
4
|
+
|
|
5
|
+
## Environment & Scope
|
|
6
|
+
|
|
7
|
+
| Field | Value |
|
|
8
|
+
|---|---|
|
|
9
|
+
| Date | 2026-11-23 |
|
|
10
|
+
| Host | Antigravity 2.0 Desktop App `2.34.0` (Language Server `hub-2.34.0`) + `agy` CLI `1.5.15` |
|
|
11
|
+
| OS / Runtime | macOS `26.6.2` (Build `25G83`), Node `v24.22.1` |
|
|
12
|
+
| Install Scope | Global: `<HOME>/.gemini/config/plugins/harness-everything` (plus temp project-scope `.agents/plugins/` hook probe via `agy --print`) |
|
|
13
|
+
| Sync Operation | `node scripts/plugin-sync.js --host agy --json` → `status: "synchronized"`, `action: "update"` |
|
|
14
|
+
| Branch / Package | `feat/510-agy-plugin` (PR #513), package version `0.57.4` |
|
|
15
|
+
|
|
16
|
+
## Live Observations (Desktop App `2.34.0`)
|
|
17
|
+
|
|
18
|
+
| Surface | Result | Sanitized Evidence |
|
|
19
|
+
|---|---|---|
|
|
20
|
+
| Plugin load & discovery | **Observed live** | `GetAllPlugins` RPC returned `name: "harness-everything"`, `disabled: false`, `isGlobal: true`, `skillCount: 28`, `rules: [".../rules/AGENTS.md"]`, `hasHooksJson: true` (`hooksJsonLen: 1037`). |
|
|
21
|
+
| `SessionStart` | **Observed live** | Injected `Harness Skills OS active. Operating under AGENTS.md invariant-first routing.` at step 1 of a user-initiated AGY conversation (`<conv-id>`). |
|
|
22
|
+
| `PreInvocation` | **Observed live** | Injected `[Tier Routing Pre-check]` and persisted `workflow-run.json` keyed by `conversationId`. Before the per-turn dedup fix it repeated on every model call; after syncing the fixed `agy-pre-invocation.js`, mid-turn repeated injections stopped completely. |
|
|
23
|
+
| `PreToolUse` (`write_file` allow) | **Observed live** | `write_file` inside `artifactDirectoryPath` (`<appData>/brain/<conv-id>/.system_generated/swarm/plan.json`) was denied prior to the fix and **ALLOWED** (`Created file.`) after syncing. |
|
|
24
|
+
| `PreToolUse` (`write_file` deny) | **Observed live** | `write_file` outside workspace (`/tmp/agy-live-oob-probe.txt`) **DENIED** by AGY: `tool call denied by pre-tool hook: Harness boundary guard: modification outside workspace root is forbidden (/tmp/agy-live-oob-probe.txt).` |
|
|
25
|
+
| `PreToolUse` (`run_command` allow) | **Observed live** | Safe command `echo agy-live-allow-ok` **ALLOWED** (exit 0). |
|
|
26
|
+
| `PreToolUse` (`run_command` deny) | **Observed live** | Destructive command `git -C /tmp/nonexistent-agy-probe push --force origin main` **DENIED** via canonical Action Gate: `tool call denied by pre-tool hook: [Harness actionGate:git-force-push] Force-pushing can rewrite remote history.` |
|
|
27
|
+
| `PostToolUse` (edit state & shell outcome) | **Observed live (partial)** | Fired live and persisted `handoff-state.json` edit timestamps (`lastEditAt`: `1795394108668` → `1795394132329`). Prior to the P1-B `--agy` fix, running `npm run test:portability` with omitted `exitCode` and absent `error` inferred success (`lastVerifyAt: 1795394172552`, `lastVerifyExitCode: null`). After P1-B, omitted `exitCode`/`error` is treated as `unknown` (`host-limited / UNCHECKED` for live shell verification credit; explicit `exitCode === 0` is required to advance `lastVerifyAt` or clear `failed`). |
|
|
28
|
+
| `PostToolUse` (shell non-zero exit) | **Host-limited / Unverified** | On `node -e "process.exit(1)"` (exit code 1), AGY `2.34.0` `PostToolUse` omitted both `exitCode` and `error`, leaving `handoff-state.json` at `status: "idle"` rather than `"failed"`. |
|
|
29
|
+
| `Stop` (Verify-Before-Claim) | **Observed live (partial)** | On `2.34.0`, blocked termination when `lastEditAt > lastVerifyAt` (`Stop hook blocked termination: Harness Verify-Before-Claim: unverified edits exist in session.`), and allowed clean termination once `lastVerifyAt >= lastEditAt`. After P1-A/P2 fixes, allowed `Stop` returns `{"decision":"allow"}` (previously `{}` during the `2.34.0` run), and `model_stop` evaluates `handoff-state.json` rather than bypassing (mechanism-verified; live `model_stop` remains `UNCHECKED`). |
|
|
30
|
+
|
|
31
|
+
## Live Observations (`agy` CLI `1.5.15`)
|
|
32
|
+
|
|
33
|
+
| Surface | Result | Sanitized Evidence |
|
|
34
|
+
|---|---|---|
|
|
35
|
+
| `agy --version` | **Observed live** | `1.5.15` (`<HOME>/.local/bin/agy`). |
|
|
36
|
+
| `agy plugin validate --json` | **Observed live** | Exited `0` on `plugins/harness-everything`: `manifest: ".antigravity-plugin/plugin.json"`, `name: "harness-everything"`, `agentPluginsSpec: false`, `components: { agents: 0, hooks: 1, mcpServers: 0, rules: 1, sidecars: 0, skills: 28 }`. Reported 2 multi-host warnings (`hooks/hooks.json` never loaded; `plugin.json` ignored because `.antigravity-plugin/plugin.json` takes precedence) + 1 note (`no logo`). |
|
|
37
|
+
| `agy plugin validate --strict --json` | **Observed live** | Exited `1` (`Error: validation failed in strict mode: 2 warnings`) due to the 2 multi-host packaging warnings above. |
|
|
38
|
+
| `agy plugin list --json` | **Observed live** | Listed global `<HOME>/.gemini/config/plugins/harness-everything` (`enabled: true`, `version: "0.57.4"`, 28 skills, `rules: ["AGENTS.md"]`, `hooks: ["harness-everything"]`). In a temporary project directory with candidate plugin roots (`.agents/plugins/`, `.antigravity/plugins/`, `.gemini/plugins/`, `.gemini/config/plugins/`, `.claude/plugins/`), `agy plugin list --json` reported global-only plugins. |
|
|
39
|
+
| Project-scope `.agents/plugins/` hook discovery (`agy --print`) | **Observed live (probe)** | Running `agy --print` in a temporary workspace (`/tmp/agy-hook-probe`) with a temporary project-scope `.agents/plugins/probe-hooks/` plugin discovered and loaded project-scope `hooks.json` (`hooks_manager.go:54] loaded 2 named hooks from 2 hooks.json file(s)`) and executed all 5 lifecycle hooks (`SessionStart`, `PreInvocation`, `PreToolUse`, `PostToolUse`, `Stop`). |
|
|
40
|
+
| CLI `PostToolUse` shell exit-1 & write dispatch | **Host-limited / Observed live** | In the live `agy --print` session, `run_command` (`node -e "process.exit(1)"`) printed `Command exited with code 1.` in stream output, **but** `PostToolUse` stdin payload had `"error": ""` with no `exitCode` and no `toolResponse` (confirming the `2.34.0` shell-outcome omission on CLI `1.5.15`). Even when prompted for `write_to_file`, CLI dispatched `toolCall.name: "write_file"` (`args: { Content, Overwrite, Path }`). `Stop` payload carried `continuationActive: false`, `executionNum: 0` (then `1`), `fullyIdle: true`, `terminationReason: "NO_TOOL_CALL"`, `error: ""`. |
|
|
41
|
+
|
|
42
|
+
## Explicit Evidence Boundaries
|
|
43
|
+
|
|
44
|
+
- **Global scope vs. project scope**: Full `harness-everything` execution is live-verified only in `<HOME>/.gemini/config/plugins/harness-everything` on Desktop App `2.34.0` and `agy` CLI `1.5.15` (macOS). Temporary `.agents/plugins/` hook discovery is live-verified via `probe-hooks` on `agy --print`, while full project-scope `harness-everything` isolation without global install, Desktop App project scope, `/hooks` TUI inspection, and Windows/Linux hosts remain `UNCHECKED` (Issue #514).
|
|
45
|
+
- **IDE write tools**: Both Desktop App `2.34.0` and CLI `1.5.15` dispatched `write_file` (even when prompted for `write_to_file`). IDE-specific tools (`write_to_file`, `replace_file_content`, `multi_replace_file_content`) remain **mechanism verified** only (`ci/mechanism-agy-hooks.test.js`), `host-limited / UNCHECKED` live.
|
|
46
|
+
- **`PostToolUse` shell outcome & verification credit**: Observed as **host-limited** on both Desktop `2.34.0` and CLI `1.5.15` because non-zero shell commands (`exit 1`) omitted `error` and `exitCode` in `PostToolUse`. After P1-B, unknown shell outcomes grant no verification credit and preserve any `failed` state; live shell `exitCode: 0` verification credit remains `UNCHECKED`. (`lastVerifyExitCode: null` in the earlier `2.34.0` capture was inferred from absent `error` before P1-B and is now `host-limited / UNCHECKED`.)
|
|
47
|
+
- **`Stop` continuation/termination paths**: Live runs observed `NO_TOOL_CALL`, `fullyIdle: true`, and `executionNum: 0/1`. `agy-stop.js` returns `{"decision":"allow"}` on permitted stops, evaluates `model_stop` and empty/normal reasons against `handoff-state.json`, exempts only explicit abnormal `terminationReason` values, and keeps `continuationActive`/`stop_hook_active` as compatibility recursion guards (not official documented Stop input fields). Live `model_stop` execution remains `UNCHECKED` (mechanism-verified in `ci/mechanism-agy-hooks.test.js`).
|
|
48
|
+
- **Companion mechanism record**: See [agy-2026-11-22](../agy-2026-11-22/README.md) for package and deterministic mechanism verification.
|
|
@@ -191,6 +191,7 @@ for (const rel of OPENCODE_SURFACES) {
|
|
|
191
191
|
const matrix = JSON.parse(read('docs/platform-compatibility.json'));
|
|
192
192
|
const opencode = matrix.platforms.find(platform => platform.id === 'opencode');
|
|
193
193
|
const codex = matrix.platforms.find(platform => platform.id === 'codex');
|
|
194
|
+
const agy = matrix.platforms.find(platform => platform.id === 'agy');
|
|
194
195
|
for (const dimension of ['hooksLifecycle', 'liveHostVerification']) {
|
|
195
196
|
if (opencode?.capabilities[dimension]?.status !== 'Partial') {
|
|
196
197
|
fail(`OpenCode ${dimension}: must remain Partial`);
|
|
@@ -208,7 +209,16 @@ if (codex?.capabilities.liveHostVerification.status !== 'Partial') {
|
|
|
208
209
|
if (codex?.capabilities.liveHostVerification.evidence !== 'benchmarks/results/live-host/codex-2026-10-13/README.md') {
|
|
209
210
|
fail('Codex liveHostVerification: missing exact retained artifact path');
|
|
210
211
|
}
|
|
211
|
-
|
|
212
|
+
if (agy?.capabilities.hooksLifecycle.status !== 'Partial') {
|
|
213
|
+
fail('AGY hooksLifecycle: expected Partial status matching bounded live/mechanism evidence');
|
|
214
|
+
}
|
|
215
|
+
if (agy?.capabilities.liveHostVerification.status !== 'Partial') {
|
|
216
|
+
fail('AGY liveHostVerification: expected Partial status with preserved evidence');
|
|
217
|
+
}
|
|
218
|
+
if (agy?.capabilities.liveHostVerification.evidence !== 'benchmarks/results/live-host/agy-2026-11-23/README.md') {
|
|
219
|
+
fail('AGY liveHostVerification: missing exact retained artifact path');
|
|
220
|
+
}
|
|
221
|
+
for (const platform of matrix.platforms.filter(platform => !['opencode', 'codex', 'agy'].includes(platform.id))) {
|
|
212
222
|
if (platform.capabilities.liveHostVerification.status !== 'Unknown') {
|
|
213
223
|
fail(`${platform.id}: liveHostVerification must remain Unknown without its own evidence`);
|
|
214
224
|
}
|
|
@@ -387,7 +387,7 @@ for (const sourceType of ['git', 'npm', 'remote', 'unknown']) {
|
|
|
387
387
|
|
|
388
388
|
{
|
|
389
389
|
const result = sync({ host: 'all' }, { commandAvailable: () => false, log: () => {}, warn: () => {} });
|
|
390
|
-
assert.strictEqual(result.skipped,
|
|
390
|
+
assert.strictEqual(result.skipped, 3);
|
|
391
391
|
assert.strictEqual(result.failed, 0);
|
|
392
392
|
assert.ok(result.results.every(entry => entry.reasonCode === 'cli-not-found'), 'an absent CLI must stay distinguishable from a capability boundary');
|
|
393
393
|
}
|
|
@@ -403,7 +403,7 @@ for (const sourceType of ['git', 'npm', 'remote', 'unknown']) {
|
|
|
403
403
|
events.push(`call:${command}`);
|
|
404
404
|
return fake.runner(command, args, opts);
|
|
405
405
|
};
|
|
406
|
-
const result = sync({ host: 'all', codexHome, repository: 'dyphn1/Harness-everything', ref: 'main' }, {
|
|
406
|
+
const result = sync({ host: 'all', codexHome, agyHome: codexHome, repository: 'dyphn1/Harness-everything', ref: 'main' }, {
|
|
407
407
|
runner,
|
|
408
408
|
codexHooksInstall: fake.codexHooksInstall,
|
|
409
409
|
commandAvailable: () => true,
|
|
@@ -415,10 +415,243 @@ for (const sourceType of ['git', 'npm', 'remote', 'unknown']) {
|
|
|
415
415
|
assert.strictEqual(fake.codexHookInstalls.length, 1, 'progress test must mock hook installation as well as host commands');
|
|
416
416
|
assert.ok(events.includes('warn:[...] claude: syncing'), 'a claude progress notice must be emitted');
|
|
417
417
|
assert.ok(events.includes('warn:[...] codex: syncing'), 'a codex progress notice must be emitted');
|
|
418
|
+
assert.ok(events.includes('warn:[...] agy: syncing'), 'an agy progress notice must be emitted');
|
|
418
419
|
assert.ok(events.indexOf('warn:[...] claude: syncing') < events.indexOf('call:claude'), 'the claude notice must be emitted before its first host command, not buffered until the run finishes');
|
|
419
420
|
assert.ok(events.indexOf('warn:[...] codex: syncing') < events.indexOf('call:codex'), 'the codex notice must be emitted before its first host command');
|
|
420
421
|
}
|
|
421
422
|
|
|
423
|
+
{
|
|
424
|
+
const agyTemp = fs.mkdtempSync(path.join(os.tmpdir(), 'harness-agy-sync-'));
|
|
425
|
+
const target = path.join(agyTemp, 'plugins', 'harness-everything');
|
|
426
|
+
|
|
427
|
+
// Test absent -> install
|
|
428
|
+
const installResult = sync({ host: 'agy', agyTarget: target }, {
|
|
429
|
+
commandAvailable: () => true,
|
|
430
|
+
log: () => {},
|
|
431
|
+
warn: () => {}
|
|
432
|
+
});
|
|
433
|
+
assert.strictEqual(installResult.failed, 0);
|
|
434
|
+
assert.strictEqual(installResult.results[0].action, 'install');
|
|
435
|
+
assert.ok(fs.existsSync(path.join(target, 'plugin.json')), 'plugin.json must be installed');
|
|
436
|
+
|
|
437
|
+
// Test present -> update
|
|
438
|
+
const updateResult = sync({ host: 'agy', agyTarget: target }, {
|
|
439
|
+
commandAvailable: () => true,
|
|
440
|
+
log: () => {},
|
|
441
|
+
warn: () => {}
|
|
442
|
+
});
|
|
443
|
+
assert.strictEqual(updateResult.failed, 0);
|
|
444
|
+
assert.strictEqual(updateResult.results[0].action, 'update');
|
|
445
|
+
|
|
446
|
+
// Test dry-run on absent target: reports dry-run (not synchronized) and writes nothing
|
|
447
|
+
const absentTarget = path.join(agyTemp, 'plugins', 'absent-dry-run');
|
|
448
|
+
const absentDryLogs = [];
|
|
449
|
+
const absentDryResult = sync({ host: 'agy', agyTarget: absentTarget, dryRun: true }, {
|
|
450
|
+
commandAvailable: () => true,
|
|
451
|
+
log: msg => absentDryLogs.push(msg),
|
|
452
|
+
warn: () => {}
|
|
453
|
+
});
|
|
454
|
+
assert.strictEqual(absentDryResult.failed, 0);
|
|
455
|
+
assert.strictEqual(absentDryResult.synchronized, 0, 'dry-run must not increment synchronized count');
|
|
456
|
+
assert.strictEqual(absentDryResult.planned, 1, 'dry-run must increment planned count');
|
|
457
|
+
assert.strictEqual(absentDryResult.results[0].status, 'dry-run', 'dry-run must report status=dry-run');
|
|
458
|
+
assert.strictEqual(absentDryResult.results[0].action, 'install');
|
|
459
|
+
assert.ok(!fs.existsSync(absentTarget), 'dry-run must not create target directory');
|
|
460
|
+
assert.ok(absentDryLogs.some(log => log.includes('[dry-run] agy plugin install')), 'dry-run install log must be emitted');
|
|
461
|
+
|
|
462
|
+
// Test dry-run on existing target: reports dry-run (not synchronized)
|
|
463
|
+
const dryLogs = [];
|
|
464
|
+
const dryResult = sync({ host: 'agy', agyTarget: target, dryRun: true }, {
|
|
465
|
+
commandAvailable: () => true,
|
|
466
|
+
log: msg => dryLogs.push(msg),
|
|
467
|
+
warn: () => {}
|
|
468
|
+
});
|
|
469
|
+
assert.strictEqual(dryResult.failed, 0);
|
|
470
|
+
assert.strictEqual(dryResult.synchronized, 0, 'dry-run update must not report synchronized');
|
|
471
|
+
assert.strictEqual(dryResult.planned, 1);
|
|
472
|
+
assert.strictEqual(dryResult.results[0].status, 'dry-run');
|
|
473
|
+
assert.strictEqual(dryResult.results[0].action, 'update');
|
|
474
|
+
assert.ok(dryLogs.some(log => log.includes('[dry-run] agy plugin update')), 'dry-run log must be emitted');
|
|
475
|
+
|
|
476
|
+
// Test CLI exit code 0 for `--host agy --dry-run` in a repo with bare `.agents/` -> targets global ~/.gemini, never pollutes .agents/plugins/
|
|
477
|
+
const bareAgentsRepo = path.join(agyTemp, 'codex-repo');
|
|
478
|
+
fs.mkdirSync(path.join(bareAgentsRepo, '.agents', 'skills'), { recursive: true });
|
|
479
|
+
const cliDryRun = require('child_process').spawnSync(
|
|
480
|
+
process.execPath,
|
|
481
|
+
[path.join(ROOT, 'scripts', 'plugin-sync.js'), '--host', 'agy', '--dry-run', '--json'],
|
|
482
|
+
{
|
|
483
|
+
cwd: bareAgentsRepo,
|
|
484
|
+
encoding: 'utf8',
|
|
485
|
+
env: { ...process.env, HOME: agyTemp, USERPROFILE: agyTemp, PATH: '' }
|
|
486
|
+
}
|
|
487
|
+
);
|
|
488
|
+
assert.strictEqual(cliDryRun.status, 0, `CLI --host agy --dry-run must exit 0: ${cliDryRun.stderr}`);
|
|
489
|
+
const cliDryJson = JSON.parse(cliDryRun.stdout);
|
|
490
|
+
assert.strictEqual(cliDryJson.results[0].status, 'dry-run', 'CLI JSON output must report status=dry-run');
|
|
491
|
+
assert.strictEqual(cliDryJson.synchronized, 0);
|
|
492
|
+
assert.strictEqual(cliDryJson.planned, 1);
|
|
493
|
+
assert.strictEqual(
|
|
494
|
+
cliDryJson.results[0].target,
|
|
495
|
+
path.join(agyTemp, '.gemini', 'config', 'plugins', 'harness-everything'),
|
|
496
|
+
'Fresh --host agy inside a repo with bare .agents/ must target global ~/.gemini, not .agents/plugins/'
|
|
497
|
+
);
|
|
498
|
+
assert.ok(
|
|
499
|
+
!fs.existsSync(path.join(bareAgentsRepo, '.agents', 'plugins')),
|
|
500
|
+
'Fresh --host agy must not pollute bare .agents/plugins/'
|
|
501
|
+
);
|
|
502
|
+
|
|
503
|
+
// Test real CLI `--host all --dry-run --json` discovers an existing global $HOME/.gemini/config/plugins/harness-everything
|
|
504
|
+
const globalExisting = path.join(agyTemp, '.gemini', 'config', 'plugins', 'harness-everything', '.antigravity-plugin');
|
|
505
|
+
fs.mkdirSync(globalExisting, { recursive: true });
|
|
506
|
+
fs.writeFileSync(path.join(globalExisting, 'plugin.json'), '{"name":"harness-everything"}\n', 'utf8');
|
|
507
|
+
const cliAllDryRun = require('child_process').spawnSync(
|
|
508
|
+
process.execPath,
|
|
509
|
+
[path.join(ROOT, 'scripts', 'plugin-sync.js'), '--host', 'all', '--dry-run', '--json'],
|
|
510
|
+
{
|
|
511
|
+
cwd: bareAgentsRepo,
|
|
512
|
+
encoding: 'utf8',
|
|
513
|
+
env: { ...process.env, HOME: agyTemp, USERPROFILE: agyTemp, PATH: '' }
|
|
514
|
+
}
|
|
515
|
+
);
|
|
516
|
+
assert.strictEqual(cliAllDryRun.status, 0, `CLI --host all --dry-run with existing global AGY install must exit 0: ${cliAllDryRun.stderr}`);
|
|
517
|
+
const cliAllDryJson = JSON.parse(cliAllDryRun.stdout);
|
|
518
|
+
const agyAllEntry = cliAllDryJson.results.find(r => r.host === 'agy');
|
|
519
|
+
assert.ok(agyAllEntry, 'agy entry must be present in --host all output');
|
|
520
|
+
assert.strictEqual(agyAllEntry.status, 'dry-run', 'Existing global AGY install must be discovered under real CLI --host all');
|
|
521
|
+
assert.strictEqual(agyAllEntry.action, 'update', 'Existing global AGY install must take update action');
|
|
522
|
+
assert.strictEqual(
|
|
523
|
+
agyAllEntry.target,
|
|
524
|
+
path.join(agyTemp, '.gemini', 'config', 'plugins', 'harness-everything')
|
|
525
|
+
);
|
|
526
|
+
|
|
527
|
+
fs.rmSync(agyTemp, { recursive: true, force: true });
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
// AGY sync acceptance: --host all with Codex .agents (including bare plugin.json) skips AGY
|
|
531
|
+
{
|
|
532
|
+
const projectTemp = fs.mkdtempSync(path.join(os.tmpdir(), 'harness-codex-only-'));
|
|
533
|
+
fs.mkdirSync(path.join(projectTemp, '.agents', 'skills'), { recursive: true });
|
|
534
|
+
const codexOnlyPluginDir = path.join(projectTemp, '.agents', 'plugins', 'harness-everything');
|
|
535
|
+
fs.mkdirSync(codexOnlyPluginDir, { recursive: true });
|
|
536
|
+
fs.writeFileSync(path.join(codexOnlyPluginDir, 'plugin.json'), '{"name":"harness-everything"}\n', 'utf8');
|
|
537
|
+
|
|
538
|
+
const result = sync({ host: 'all', cwd: projectTemp, agyHome: projectTemp }, {
|
|
539
|
+
commandAvailable: cmd => cmd === 'codex',
|
|
540
|
+
log: () => {},
|
|
541
|
+
warn: () => {},
|
|
542
|
+
codexHooksInstall: () => ({ status: 'installed' })
|
|
543
|
+
});
|
|
544
|
+
|
|
545
|
+
const agyRes = result.results.find(r => r.host === 'agy');
|
|
546
|
+
assert.ok(agyRes, 'agy result should be present');
|
|
547
|
+
assert.strictEqual(agyRes.status, 'skipped', 'agy must be skipped when .agents/plugins lacks .antigravity-plugin/plugin.json');
|
|
548
|
+
assert.strictEqual(agyRes.reasonCode, 'cli-not-found');
|
|
549
|
+
assert.ok(
|
|
550
|
+
!fs.existsSync(path.join(codexOnlyPluginDir, '.antigravity-plugin', 'plugin.json')),
|
|
551
|
+
'No AGY manifest should be installed into Codex-only project'
|
|
552
|
+
);
|
|
553
|
+
|
|
554
|
+
fs.rmSync(projectTemp, { recursive: true, force: true });
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
// AGY sync acceptance: partial/corrupted target dir without plugin.json is replaced cleanly
|
|
558
|
+
{
|
|
559
|
+
const partialTemp = fs.mkdtempSync(path.join(os.tmpdir(), 'harness-agy-partial-'));
|
|
560
|
+
const target = path.join(partialTemp, 'plugins', 'harness-everything');
|
|
561
|
+
fs.mkdirSync(target, { recursive: true });
|
|
562
|
+
const brokenMarker = path.join(target, 'corrupted-partial.tmp');
|
|
563
|
+
fs.writeFileSync(brokenMarker, 'incomplete install', 'utf8');
|
|
564
|
+
|
|
565
|
+
const repairResult = sync({ host: 'agy', agyTarget: target }, {
|
|
566
|
+
commandAvailable: () => true,
|
|
567
|
+
log: () => {},
|
|
568
|
+
warn: () => {}
|
|
569
|
+
});
|
|
570
|
+
assert.strictEqual(repairResult.failed, 0, `Partial dir replacement must not fail: ${JSON.stringify(repairResult)}`);
|
|
571
|
+
assert.strictEqual(repairResult.results[0].status, 'synchronized');
|
|
572
|
+
assert.strictEqual(repairResult.results[0].action, 'install');
|
|
573
|
+
assert.ok(!fs.existsSync(brokenMarker), 'Corrupted leftover file must be removed');
|
|
574
|
+
assert.ok(fs.existsSync(path.join(target, '.antigravity-plugin', 'plugin.json')), 'Valid AGY manifest must be installed');
|
|
575
|
+
|
|
576
|
+
fs.rmSync(partialTemp, { recursive: true, force: true });
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
// AGY sync acceptance: atomic refresh removes obsolete files
|
|
580
|
+
{
|
|
581
|
+
const agyTemp = fs.mkdtempSync(path.join(os.tmpdir(), 'harness-agy-update-'));
|
|
582
|
+
const target = path.join(agyTemp, 'plugins', 'harness-everything');
|
|
583
|
+
|
|
584
|
+
// Initial install
|
|
585
|
+
sync({ host: 'agy', agyTarget: target }, {
|
|
586
|
+
commandAvailable: () => true,
|
|
587
|
+
log: () => {},
|
|
588
|
+
warn: () => {}
|
|
589
|
+
});
|
|
590
|
+
assert.ok(fs.existsSync(path.join(target, 'plugin.json')));
|
|
591
|
+
|
|
592
|
+
// Add an obsolete file
|
|
593
|
+
const obsoleteFile = path.join(target, 'obsolete-leftover.txt');
|
|
594
|
+
fs.writeFileSync(obsoleteFile, 'legacy content', 'utf8');
|
|
595
|
+
assert.ok(fs.existsSync(obsoleteFile));
|
|
596
|
+
|
|
597
|
+
// Run update
|
|
598
|
+
const updateResult = sync({ host: 'agy', agyTarget: target }, {
|
|
599
|
+
commandAvailable: () => true,
|
|
600
|
+
log: () => {},
|
|
601
|
+
warn: () => {}
|
|
602
|
+
});
|
|
603
|
+
assert.strictEqual(updateResult.failed, 0);
|
|
604
|
+
assert.strictEqual(updateResult.results[0].action, 'update');
|
|
605
|
+
assert.ok(!fs.existsSync(obsoleteFile), 'Obsolete file must be removed on atomic refresh update');
|
|
606
|
+
|
|
607
|
+
fs.rmSync(agyTemp, { recursive: true, force: true });
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
// AGY sync acceptance: simulated copy failure leaves previous valid install intact
|
|
611
|
+
{
|
|
612
|
+
const agyTemp = fs.mkdtempSync(path.join(os.tmpdir(), 'harness-agy-rollback-'));
|
|
613
|
+
const target = path.join(agyTemp, 'plugins', 'harness-everything');
|
|
614
|
+
|
|
615
|
+
// Initial valid install
|
|
616
|
+
sync({ host: 'agy', agyTarget: target }, {
|
|
617
|
+
commandAvailable: () => true,
|
|
618
|
+
log: () => {},
|
|
619
|
+
warn: () => {}
|
|
620
|
+
});
|
|
621
|
+
assert.ok(fs.existsSync(path.join(target, 'plugin.json')));
|
|
622
|
+
const markerFile = path.join(target, 'valid-install.txt');
|
|
623
|
+
fs.writeFileSync(markerFile, 'pre-existing valid state', 'utf8');
|
|
624
|
+
|
|
625
|
+
// Simulate copy failure
|
|
626
|
+
const originalCpSync = fs.cpSync;
|
|
627
|
+
let simulatedFailureTriggered = false;
|
|
628
|
+
fs.cpSync = (src, dest, opts) => {
|
|
629
|
+
if (typeof dest === 'string' && dest.includes(target) && dest.includes('.tmp')) {
|
|
630
|
+
simulatedFailureTriggered = true;
|
|
631
|
+
throw new Error('Simulated disk full or copy interruption');
|
|
632
|
+
}
|
|
633
|
+
return originalCpSync(src, dest, opts);
|
|
634
|
+
};
|
|
635
|
+
|
|
636
|
+
try {
|
|
637
|
+
const failResult = sync({ host: 'agy', agyTarget: target }, {
|
|
638
|
+
commandAvailable: () => true,
|
|
639
|
+
log: () => {},
|
|
640
|
+
warn: () => {}
|
|
641
|
+
});
|
|
642
|
+
assert.strictEqual(failResult.failed, 1);
|
|
643
|
+
assert.strictEqual(failResult.results[0].status, 'failed');
|
|
644
|
+
} finally {
|
|
645
|
+
fs.cpSync = originalCpSync;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
assert.ok(simulatedFailureTriggered, 'Simulated failure must have triggered');
|
|
649
|
+
assert.ok(fs.existsSync(markerFile), 'Previous valid install must remain intact after copy failure');
|
|
650
|
+
assert.strictEqual(fs.readFileSync(markerFile, 'utf8'), 'pre-existing valid state');
|
|
651
|
+
|
|
652
|
+
fs.rmSync(agyTemp, { recursive: true, force: true });
|
|
653
|
+
}
|
|
654
|
+
|
|
422
655
|
// resolveOnPath() is pure filesystem logic (platform choice happens only at
|
|
423
656
|
// the defaultRunner call site), so its directory-order-first contract runs
|
|
424
657
|
// on every CI OS, not only Windows.
|
|
@@ -33,7 +33,8 @@ const OFFICIAL_HOSTS = {
|
|
|
33
33
|
'github-copilot': new Set(['docs.github.com']),
|
|
34
34
|
cursor: new Set(['cursor.com', 'prod.cursor.com']),
|
|
35
35
|
continue: new Set(['docs.continue.dev']),
|
|
36
|
-
hermes: new Set(['hermes-agent.nousresearch.com'])
|
|
36
|
+
hermes: new Set(['hermes-agent.nousresearch.com']),
|
|
37
|
+
agy: new Set(['antigravity.google'])
|
|
37
38
|
};
|
|
38
39
|
|
|
39
40
|
function filesUnder(root, base = root, out = []) {
|
|
@@ -52,7 +53,7 @@ function sha256(file) {
|
|
|
52
53
|
assert.strictEqual(matrix.format, 'harness-platform-compatibility-v1');
|
|
53
54
|
assert.deepStrictEqual(Object.keys(matrix.status_vocabulary).sort(), [...STATUSES].sort());
|
|
54
55
|
assert.deepStrictEqual(matrix.dimensions, DIMENSIONS);
|
|
55
|
-
assert.strictEqual(matrix.platforms.length,
|
|
56
|
+
assert.strictEqual(matrix.platforms.length, 9, 'compatibility matrix must cover every supported platform');
|
|
56
57
|
assert.deepStrictEqual(
|
|
57
58
|
matrix.platforms.map(platform => platform.id).sort(),
|
|
58
59
|
Object.keys(OFFICIAL_HOSTS).sort()
|
|
@@ -98,6 +99,13 @@ for (const platform of matrix.platforms) {
|
|
|
98
99
|
assert.strictEqual(evidence.format, 'harness-codex-live-observation-evidence-v1');
|
|
99
100
|
assert.strictEqual(evidence.turns.length, 2, 'Codex artifact must preserve both consecutive turns');
|
|
100
101
|
assert.ok(evidence.turns.every(turn => turn.host === 'codex' && turn.selfReportReason === null));
|
|
102
|
+
} else if (platform.id === 'agy') {
|
|
103
|
+
const capability = platform.capabilities.liveHostVerification;
|
|
104
|
+
assert.strictEqual(capability.status, 'Partial');
|
|
105
|
+
assert.strictEqual(capability.evidence, 'benchmarks/results/live-host/agy-2026-11-23/README.md');
|
|
106
|
+
const artifactRoot = path.dirname(path.join(ROOT, capability.evidence));
|
|
107
|
+
assert.ok(fs.statSync(path.join(artifactRoot, 'README.md')).size > 0, 'Missing AGY live-host evidence');
|
|
108
|
+
assert.ok(fs.statSync(path.join(ROOT, 'benchmarks', 'results', 'live-host', 'agy-2026-11-22', 'README.md')).size > 0, 'Missing AGY mechanism evidence');
|
|
101
109
|
} else {
|
|
102
110
|
assert.strictEqual(platform.capabilities.liveHostVerification.status, 'Unknown', `${platform.id}: no preserved live evidence`);
|
|
103
111
|
}
|
|
@@ -112,6 +120,9 @@ const installerTargetSpecs = {
|
|
|
112
120
|
hermes: { platform: 'hermes', project: '.agents/skills', global: '~/.hermes/skills' }
|
|
113
121
|
};
|
|
114
122
|
assert.deepStrictEqual(Object.keys(matrix.installer_targets).sort(), Object.keys(OFFICIAL_HOSTS).sort());
|
|
123
|
+
assert.strictEqual(matrix.installer_targets.agy.project, '.agents/plugins/harness-everything');
|
|
124
|
+
assert.strictEqual(matrix.installer_targets.agy.global, '~/.gemini/config/plugins/harness-everything');
|
|
125
|
+
assert.ok(STATUSES.has(matrix.installer_targets.agy.host_discovery_status), 'agy: installer target status is invalid');
|
|
115
126
|
for (const [id, spec] of Object.entries(installerTargetSpecs)) {
|
|
116
127
|
const targetSpec = matrix.installer_targets[id];
|
|
117
128
|
assert.strictEqual(targetSpec.project, spec.project, `${id}: project installer target drifted`);
|
|
@@ -44,6 +44,7 @@ assert.ok(gitPlugin, 'release commit plugin missing');
|
|
|
44
44
|
assert.match(gitPlugin[1].message, /\[skip ci\]/);
|
|
45
45
|
assert.ok(gitPlugin[1].assets.includes('package-lock.json'));
|
|
46
46
|
assert.ok(gitPlugin[1].assets.includes('opencode-plugin/plugin.json'));
|
|
47
|
+
assert.ok(gitPlugin[1].assets.includes('plugins/harness-everything/.antigravity-plugin/plugin.json'));
|
|
47
48
|
assert.ok(gitPlugin[1].assets.includes('*/SKILL.md'));
|
|
48
49
|
assert.ok(gitPlugin[1].assets.includes('*/**/SKILL.md'));
|
|
49
50
|
|
|
@@ -92,13 +93,14 @@ function fixture() {
|
|
|
92
93
|
json(path.join(root, '.claude-plugin/marketplace.json'), { plugins: [{ name: 'harness-everything', version: '0.3.8-beta' }] });
|
|
93
94
|
json(path.join(root, 'plugins/harness-everything/plugin.json'), { name: 'harness-everything', version: '0.3.8-beta' });
|
|
94
95
|
json(path.join(root, 'plugins/harness-everything/.codex-plugin/plugin.json'), { name: 'harness-everything', version: '0.3.8-beta' });
|
|
96
|
+
json(path.join(root, 'plugins/harness-everything/.antigravity-plugin/plugin.json'), { name: 'harness-everything', version: '0.3.8-beta' });
|
|
95
97
|
json(path.join(root, 'opencode-plugin/plugin.json'), { name: 'harness-enforcement', version: '0.3.6' });
|
|
96
98
|
return root;
|
|
97
99
|
}
|
|
98
100
|
|
|
99
101
|
const root = fixture();
|
|
100
102
|
const files = syncReleaseVersion(root, '1.2.3');
|
|
101
|
-
assert.strictEqual(files.length,
|
|
103
|
+
assert.strictEqual(files.length, 8);
|
|
102
104
|
syncReleaseVersion(root, '1.2.3', { checkOnly: true });
|
|
103
105
|
|
|
104
106
|
const first = new Map(files.map(file => [file, fs.readFileSync(path.join(root, file), 'utf8')]));
|