@hasna/skills 0.10.39 → 0.10.42
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/README.md +41 -0
- package/bin/index.js +426 -115
- package/bin/mcp.js +138 -19
- package/bin/migrate.js +1 -1
- package/bin/server.js +1 -1
- package/bin/worker.js +1 -1
- package/dist/cli/commands/reviewed-runtime-lock.d.ts +17 -0
- package/dist/cli/commands/runtime-copyfile.d.ts +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +163 -31
- package/dist/lib/agent-discovery.d.ts +1 -1
- package/dist/lib/agent-integration.d.ts +1 -1
- package/dist/lib/codex-settings-witness.d.ts +13 -0
- package/dist/sdk/index.js +161 -31
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2418,3 +2418,44 @@ Migration compares the original witness before projecting the new contract,
|
|
|
2418
2418
|
refuses native discovery or unknown control changes, and changes policy only.
|
|
2419
2419
|
After explicit migration, ordinary supported local MCP updates require no
|
|
2420
2420
|
coordinated policy write.
|
|
2421
|
+
|
|
2422
|
+
### Reproduce a reviewed runtime dependency closure
|
|
2423
|
+
|
|
2424
|
+
For an exact-version copyfile update, supply an owner-private absolute npm
|
|
2425
|
+
lockfile path and its reviewed SHA-256 together:
|
|
2426
|
+
|
|
2427
|
+
```sh
|
|
2428
|
+
skills self-update --version <version> --reviewed-lock /absolute/package-lock.json \
|
|
2429
|
+
--reviewed-lock-sha256 <sha256> --min-release-age 7 --json
|
|
2430
|
+
```
|
|
2431
|
+
|
|
2432
|
+
Use the same lock for a separately reviewed bootstrap. The lock must describe
|
|
2433
|
+
the verified package archive as `file:./verified.tgz`, use lockfile format 3,
|
|
2434
|
+
and bind its version, integrity and dependency declarations. Registry packages
|
|
2435
|
+
must have exact versions and SHA-512 integrity at the configured npm registry.
|
|
2436
|
+
The updater verifies each frozen version against current registry metadata
|
|
2437
|
+
and the requested age policy, runs `npm ci` without re-resolving ranges, then
|
|
2438
|
+
checks lock byte continuity and the actual required dependency closure with
|
|
2439
|
+
`npm sbom --sbom-format=cyclonedx --package-lock-only=false`. This forces
|
|
2440
|
+
installed-manifest inspection; ordinary `npm ls` can trust a hidden lockfile.
|
|
2441
|
+
Existing publisher exemptions remain available through the repeatable
|
|
2442
|
+
`--min-release-age-exclude` option. The receipt records the reviewed lock hash.
|
|
2443
|
+
|
|
2444
|
+
A reviewed lock does not authorize native skill loading, profile changes,
|
|
2445
|
+
credential provisioning or session reconciliation. Without this optional input,
|
|
2446
|
+
the existing update flow continues to resolve its dependency lock normally.
|
|
2447
|
+
|
|
2448
|
+
`codex-settings-v4` is an explicit successor to V3. It additionally ignores
|
|
2449
|
+
only Codex's `tui.model_availability_nux` startup-tooltip count map when every
|
|
2450
|
+
value is an integer in the native uint32 range. Ordinary native tables and
|
|
2451
|
+
single-line inline maps are supported; unsupported layouts and malformed
|
|
2452
|
+
values remain witnessed. Other TUI fields, numeric spelling and all discovery
|
|
2453
|
+
controls stay bound. Existing byte/V1/V2/V3 reviews retain their original meaning.
|
|
2454
|
+
|
|
2455
|
+
Capture with `skills hook witness --kind codex-settings-v4 --path <config.toml>`.
|
|
2456
|
+
Upgrade an existing review with `skills hook rebind-settings --agent codex
|
|
2457
|
+
--codex-witness-version 4 --reviewed-preimage <preserved-config.toml>
|
|
2458
|
+
--expected-policy-sha256 <policy-hash> --expected-settings-sha256 <settings-hash>`.
|
|
2459
|
+
Review the plan before adding `--apply`; the original review preimage must match
|
|
2460
|
+
its original mode, and unrelated changes refuse. This preserves the native
|
|
2461
|
+
configuration, root aliases, other witnesses and active session pins.
|