@hasna/skills 0.8.11 → 0.9.1
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 +21 -4
- package/bin/index.js +853 -446
- package/bin/mcp.js +309 -155
- package/bin/migrate.js +100 -10
- package/bin/server.js +596 -51
- package/bin/worker.js +283 -20
- package/dist/cli/commands/registry.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +498 -184
- package/dist/lib/agent-discovery.d.ts +1 -1
- package/dist/lib/claude-settings-witness.d.ts +19 -0
- package/dist/lib/cloud-executions.d.ts +20 -0
- package/dist/lib/registry-types.d.ts +3 -0
- package/dist/lib/remote-client.d.ts +11 -0
- package/dist/lib/revision.d.ts +3 -0
- package/dist/sdk/execution/admission.d.ts +2 -1
- package/dist/sdk/execution/types.d.ts +9 -0
- package/dist/sdk/index.d.ts +1 -0
- package/dist/sdk/index.js +1755 -752
- package/dist/server/runtime-policy.d.ts +4 -2
- package/dist/server/runtime-pure-contract.d.ts +51 -0
- package/dist/server/runtime-store.d.ts +4 -0
- package/dist/server/runtime-worker.d.ts +2 -1
- package/dist/server/selection-store.d.ts +9 -1
- package/dist/server/skills-api.d.ts +2 -1
- package/dist/server/sqlite-store.d.ts +4 -1
- package/dist/server/store.d.ts +6 -1
- package/dist/server/types.d.ts +27 -0
- package/docs/plugin-admission.md +67 -0
- package/migrations/postgres/0010_skill_archive_lifecycle.sql +5 -0
- package/migrations/sqlite/0010_skill_archive_lifecycle.sql +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -190,6 +190,16 @@ contract and 16 MiB file limit; they are not silently converted into byte hashes
|
|
|
190
190
|
Directory membership and file bytes are separate witnesses. Neither substitutes
|
|
191
191
|
for reviewing the actual executable, import paths or loader behavior.
|
|
192
192
|
|
|
193
|
+
For reviewed Claude user settings, `captureClaudeSettings(canonicalSettingsPath)`
|
|
194
|
+
emits an opt-in `claude-settings-v1` witness. It permits a fixed set of typed
|
|
195
|
+
terminal display preferences and recognized built-in model selections to change
|
|
196
|
+
while binding hooks, permissions, native skill protections, plugins,
|
|
197
|
+
marketplaces, environment and every unknown field. Provider mappings, custom
|
|
198
|
+
model values and instruction settings remain bound. Replace the settings source
|
|
199
|
+
in an explicitly reviewed discovery input, then use the normal `skills hook install
|
|
200
|
+
--discovery-inputs <file>` plan/apply flow; existing raw witnesses are never
|
|
201
|
+
automatically converted or refreshed. See [settings witness scope and migration](docs/plugin-admission.md#claude-settings-preferences).
|
|
202
|
+
|
|
193
203
|
For an explicitly reviewed launcher or interpreter reached through symlinks,
|
|
194
204
|
use `captureDiscoveryPathSources(paths)` and retain `hashMode: "path-bytes"`.
|
|
195
205
|
Its digest binds the canonical input, directory identities, each link's identity
|
|
@@ -582,13 +592,20 @@ before submitting again. The selected profile must include this exact version,
|
|
|
582
592
|
and the consumer needs `runs:write` as well as `skills:read`.
|
|
583
593
|
|
|
584
594
|
Cloud execution is enabled only when the deployment configures a reviewed image
|
|
585
|
-
and exact bundle allowlist
|
|
586
|
-
uploaded code is not admitted.
|
|
595
|
+
and exact bundle allowlist; arbitrary
|
|
596
|
+
uploaded code is not admitted. The PDF lane accepts reviewed `pdf-generate` versions.
|
|
597
|
+
The optional `regex-test.v1` pure contract accepts only a tenant-specific, reviewed
|
|
598
|
+
self-contained Bun bundle, with no secrets, dependencies or network. Uploading or
|
|
599
|
+
selecting a bundle never admits it to cloud execution. Check an exact version with
|
|
600
|
+
`skills executions eligibility <skill> --skill-version <version> --json`; this
|
|
601
|
+
reads metadata without creating a run. Runs capture version, bundle digest, input digest,
|
|
587
602
|
runtime image digest, limits and policy. The cloud worker runs in a separate
|
|
588
603
|
Fargate task; the skill process has no API/provider credentials, no network, a
|
|
589
604
|
read-only root and bounded temporary storage, execution time and output.
|
|
590
605
|
`GET /skills/v1/capabilities` reports whether this deployment has cloud execution
|
|
591
|
-
configured
|
|
606
|
+
configured and lists supported `cloudExecutionContracts`. Each exact bundle needs
|
|
607
|
+
its own review and admission; the flag does not promise arbitrary executable
|
|
608
|
+
support. Authorization and runtime availability are checked separately.
|
|
592
609
|
|
|
593
610
|
On a managed station, local execution also resolves the selected immutable
|
|
594
611
|
bundle. Self-contained local executables run with explicit environment references
|
|
@@ -1423,7 +1440,7 @@ src/
|
|
|
1423
1440
|
|---|---|---|
|
|
1424
1441
|
| Catalog skills | 0 | `SKILLS.length` (`src/lib/registry-data/`) |
|
|
1425
1442
|
| Categories | 17 | `CATEGORIES` (`src/lib/registry-types.ts`) |
|
|
1426
|
-
| MCP tools |
|
|
1443
|
+
| MCP tools | 82 | `tools/list` against a live `buildServer()` |
|
|
1427
1444
|
|
|
1428
1445
|
Every number in this table is re-derived from the source tree on each test run by
|
|
1429
1446
|
`src/lib/readme-derived-counts.test.ts`, so a drifted figure fails a test rather
|