arkgate 3.0.3 → 3.0.5
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 +69 -1
- package/bin/ark-check.mjs +33 -50
- package/bin/ark.mjs +3 -3
- package/bin/lib/agent-gates.mjs +9 -0
- package/bin/lib/codex-home.mjs +10 -1
- package/bin/lib/doctor-plan.mjs +30 -5
- package/bin/lib/html-report-depth.mjs +282 -0
- package/bin/lib/html-report.mjs +214 -21
- package/bin/lib/install-migrate.mjs +81 -25
- package/bin/lib/mcp-adoption.mjs +8 -0
- package/bin/lib/skill-install.mjs +304 -23
- package/bin/lib/weakest-link.mjs +61 -12
- package/bin/lib/write-path-capabilities.mjs +3 -1
- package/bin/lib/write-path-detect.mjs +39 -22
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/agent-guide.md +1 -1
- package/docs/ai-gates.md +27 -2
- package/package.json +1 -1
- package/server.json +2 -2
- package/templates/skills/ark-upgrade.md +9 -5
package/docs/ai-gates.md
CHANGED
|
@@ -268,7 +268,7 @@ Hand-editing with relative `--root .` is wrong: Codex does not use the project a
|
|
|
268
268
|
|
|
269
269
|
```bash
|
|
270
270
|
npx ark-check --install-agent-gates --tools codex
|
|
271
|
-
# optional: install /ark-*
|
|
271
|
+
# optional: install /ark-* skills into $CODEX_HOME/skills/<name>/SKILL.md
|
|
272
272
|
npx ark-check --install-agent-gates --codex-home
|
|
273
273
|
```
|
|
274
274
|
|
|
@@ -309,11 +309,36 @@ primary A. It writes a **scoped secondary** table:
|
|
|
309
309
|
|
|
310
310
|
`ark-check --doctor` surfaces the multi-project state so you are not left thinking B owns
|
|
311
311
|
`ark://manifest` when only a secondary table exists. **Deferred (fix when using Codex):**
|
|
312
|
-
non-temp Codex-home gaps (`codex-home-multi-project`, stale `$CODEX_HOME/
|
|
312
|
+
non-temp Codex-home gaps (`codex-home-multi-project`, stale `$CODEX_HOME/skills`) are
|
|
313
313
|
severity **info**, marked `deferred: true`, and omitted from Top actions when the session
|
|
314
314
|
host is known and not Codex — `/ark-upgrade` on Grok/Claude is not Incomplete because of
|
|
315
315
|
them. **Temp/upgrade primary roots** stay fail-closed urgent (rewritten, not multi-project).
|
|
316
316
|
|
|
317
|
+
### Codex skill catalog (SKILL.md, not flat prompts)
|
|
318
|
+
|
|
319
|
+
Codex discovers skills as directories containing `SKILL.md` (Agent Skills standard):
|
|
320
|
+
|
|
321
|
+
| Scope | Path |
|
|
322
|
+
|-------|------|
|
|
323
|
+
| **Repo** (written by `--tools codex`) | `.agents/skills/<name>/SKILL.md` |
|
|
324
|
+
| **Home** (optional `--codex-home`) | `$CODEX_HOME/skills/<name>/SKILL.md` |
|
|
325
|
+
|
|
326
|
+
Flat `.codex/prompts/*.md` files are **not** the invocable skill catalog. Install writes the
|
|
327
|
+
repo catalog above so AGENTS.md `/ark-*` references match what Codex can load. After install,
|
|
328
|
+
Ark verifies those references against each selected host catalog.
|
|
329
|
+
|
|
330
|
+
**Parity & honesty (doctor / install):**
|
|
331
|
+
|
|
332
|
+
- Doctor distinguishes **missing / stale / legacy-prompts-only** for repo (`.agents/skills`) and
|
|
333
|
+
home (`$CODEX_HOME/skills`). Home debt is **deferred** when the session host is not Codex.
|
|
334
|
+
- Legacy flat prompts alone are reported as non-loadable skill debt with a
|
|
335
|
+
`--skills-only --tools codex --force` (repo) or `--codex-home --force` (home) fix.
|
|
336
|
+
- Codex **write path is advisory**: MCP + best-effort `.codex/hooks.json` is **not** a hard
|
|
337
|
+
write boundary and is **not** equivalent to Claude/Grok PreToolUse hard-write + repair.
|
|
338
|
+
The hard merge backstop is CI `--strict-merge` (or `--strict`) plus a required status check.
|
|
339
|
+
- CI workflows that run ark-check without the fail-closed profile (or with only
|
|
340
|
+
`--strict-config`) surface gap `enforcement-ci-not-fail-closed`.
|
|
341
|
+
|
|
317
342
|
## Grok Build (xAI)
|
|
318
343
|
|
|
319
344
|
Grok reads project rules from **`AGENTS.md`**, project MCP from **`.grok/config.toml`**
|
package/package.json
CHANGED
package/server.json
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"url": "https://github.com/pedroknigge/arkgate",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "3.0.
|
|
9
|
+
"version": "3.0.5",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "arkgate",
|
|
14
|
-
"version": "3.0.
|
|
14
|
+
"version": "3.0.5",
|
|
15
15
|
"runtimeHint": "npx",
|
|
16
16
|
"transport": {
|
|
17
17
|
"type": "stdio"
|
|
@@ -123,11 +123,15 @@ npx arkgate-check --install-agent-gates --skills-only --force
|
|
|
123
123
|
**Active host first.** Refresh skills for the host running this skill (e.g.
|
|
124
124
|
`.grok/skills/`, `.claude/skills/`, `.cursor/commands/`). Repo-local copies for
|
|
125
125
|
other detected hosts are fine to refresh in the same pass when cheap.
|
|
126
|
-
**Codex is deferred when you are not on Codex.**
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
126
|
+
**Codex is deferred when you are not on Codex.** Repo skills live in
|
|
127
|
+
`.agents/skills/<name>/SKILL.md`; optional home skills in
|
|
128
|
+
`$CODEX_HOME/skills/<name>/SKILL.md` (not legacy flat `$CODEX_HOME/prompts`).
|
|
129
|
+
When **on Codex**, refresh **both** repo catalog and home if doctor reports
|
|
130
|
+
missing/stale/legacy-prompts-only parity gaps. `ark upgrade` may best-effort
|
|
131
|
+
refresh home when it exists; still list Codex under **Deferred hosts** when
|
|
132
|
+
not on Codex and do **not** chase MCP multi-project / stale home skills until
|
|
133
|
+
the user is on Codex (or asks). Fix when needed:
|
|
134
|
+
`ark-check --install-agent-gates --skills-only --tools codex --force` and/or
|
|
131
135
|
`ark-check --install-agent-gates --skills-only --codex-home --force`
|
|
132
136
|
(and `--tools codex` / `--force` for primary MCP rebind). Exception: temp or
|
|
133
137
|
`ark-upgrade` MCP `--root` paths — leave fail-closed rewrite to the CLI; do not
|