@hasna/skills 0.10.77 → 0.10.78
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 +39 -1
- package/bin/index.js +547 -283
- package/bin/mcp.js +93 -17
- package/bin/migrate.js +1 -1
- package/bin/server.js +1 -1
- package/bin/worker.js +1 -1
- package/dist/cli/commands/runtime-mcp.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +56 -8
- package/dist/lib/mcp-registration-environment.d.ts +2 -0
- package/dist/lib/private-publication-customer.d.ts +6 -2
- package/dist/lib/registry-types.d.ts +2 -0
- package/dist/lib/remote-private-publications.d.ts +22 -0
- package/dist/runtime-prerequisites.js +3 -2
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/index.js +53 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2030,6 +2030,14 @@ Stable command shapes:
|
|
|
2030
2030
|
snapshot plan.
|
|
2031
2031
|
- MCP registration: `mcp --register <agent> --json` returns
|
|
2032
2032
|
`{ "registered": number, "results": [...] }`.
|
|
2033
|
+
Claude re-registration updates only `mcpServers.skills` in the active user
|
|
2034
|
+
`.claude.json` (respecting `CLAUDE_CONFIG_DIR` and an active legacy
|
|
2035
|
+
`.config.json`). Before changing an existing file it preserves and reads back
|
|
2036
|
+
a mode-0600 sibling `.skills-mcp-<id>.backup`. A competing native config lock
|
|
2037
|
+
or a changed config refuses the update; retry after the other writer finishes.
|
|
2038
|
+
A native policy or unknown refusal also fails closed. Updating an existing
|
|
2039
|
+
entry requires Claude's exact admitted duplicate-name refusal; configuring
|
|
2040
|
+
before CLI installation is supported only when the executable is missing.
|
|
2033
2041
|
|
|
2034
2042
|
## Query a caller-owned catalog
|
|
2035
2043
|
|
|
@@ -2276,6 +2284,15 @@ skills mcp --register claude # Auto-register with Claude Code
|
|
|
2276
2284
|
skills mcp --register all # Register with all supported agents
|
|
2277
2285
|
```
|
|
2278
2286
|
|
|
2287
|
+
Register from the same credential profile you use for the product, for example
|
|
2288
|
+
`skills --profile customer setup agents`. Registrations retain that profile and
|
|
2289
|
+
any invocation-specific API origin, including
|
|
2290
|
+
`skills setup --api-url <origin> agents`, and start `skills-mcp --stdio`. Supported configuration-home overrides
|
|
2291
|
+
are retained so the later process resolves the same credential files. Keys,
|
|
2292
|
+
sessions and vault values are never copied into agent configuration. With no
|
|
2293
|
+
selectors, the MCP process keeps its usual credential resolution. Existing
|
|
2294
|
+
credential-to-origin checks still refuse a key bound to a different instance.
|
|
2295
|
+
|
|
2279
2296
|
## Skills API
|
|
2280
2297
|
|
|
2281
2298
|
Use a named profile for each independently operated instance. A commercial Skills instance
|
|
@@ -2346,6 +2363,8 @@ current version UUID (or `--expect-empty`). Request a code with `auth signup`
|
|
|
2346
2363
|
first, then enter it over stdin; do not put verification codes in shell history.
|
|
2347
2364
|
|
|
2348
2365
|
```sh
|
|
2366
|
+
skills --profile customer publication create my-skill --display-name "My skill" \
|
|
2367
|
+
--email you@example.com --code-stdin --confirm --json
|
|
2349
2368
|
skills --profile customer publication publish ./my-skill \
|
|
2350
2369
|
--skill-id <skill-uuid> --expect-empty --recovery-dir "$PWD/publication-receipt" \
|
|
2351
2370
|
--email you@example.com --code-stdin --confirm --json
|
|
@@ -2353,6 +2372,22 @@ skills --profile customer publication status --recovery-dir "$PWD/publication-re
|
|
|
2353
2372
|
--email you@example.com --code-stdin --json
|
|
2354
2373
|
```
|
|
2355
2374
|
|
|
2375
|
+
`publication create` creates an empty private skill and returns its `id` for
|
|
2376
|
+
`publication publish --skill-id`. It requires Pro and fresh interactive session
|
|
2377
|
+
verification; an API key cannot create or publish a private skill. Use
|
|
2378
|
+
`--visibility team` for a team skill. Slugs use lowercase kebab-case (at most
|
|
2379
|
+
128 characters), display names are nonempty (at most 256 characters), and
|
|
2380
|
+
descriptions are limited to 8192 UTF-8 bytes. JSON returns only validated IDs,
|
|
2381
|
+
the slug, visibility and source type, bound to the selected workspace. Creation
|
|
2382
|
+
does not write a recovery directory or save the session. If its result is
|
|
2383
|
+
uncertain, run `skills --profile customer info my-skill --remote --json` on
|
|
2384
|
+
the same workspace to recover its validated `id`, then use that ID with
|
|
2385
|
+
`publication publish --skill-id`. `list --remote --json` also includes server
|
|
2386
|
+
UUIDs when supplied. Newly created rows with no category display as `Remote`.
|
|
2387
|
+
Do not repeat creation to recover a lost result; the command never retries its
|
|
2388
|
+
create POST automatically. The selected profile, origin and credential files
|
|
2389
|
+
are captured before code entry; a change during that wait refuses the action.
|
|
2390
|
+
|
|
2356
2391
|
Without an enrolled named profile, also supply the observed `--user-id` and
|
|
2357
2392
|
`--membership-id`. `publication resume` and `publication cancel` use the same
|
|
2358
2393
|
recovery directory, fresh verification, and `--confirm`. The directory must be
|
|
@@ -2370,7 +2405,10 @@ server's current boolean capability; it does not authorize an individual run.
|
|
|
2370
2405
|
|
|
2371
2406
|
The SDK exports `RemotePrivatePublicationsClient` through both the root and
|
|
2372
2407
|
`./sdk`; `RemoteSkillsAuthClient.openPrivatePublications` creates one from fresh
|
|
2373
|
-
workspace verification.
|
|
2408
|
+
workspace verification. Call its `createSkill({ slug, displayName, confirm: true })`
|
|
2409
|
+
with optional `description` and `visibility` to obtain the validated skill ID.
|
|
2410
|
+
`CreatePrivateSkillInput` and `CreatedPrivateSkill` are exported by both entry
|
|
2411
|
+
points. The shared `preparePrivatePublication`,
|
|
2374
2412
|
`continuePrivatePublication`, `inspectPrivatePublication`, and
|
|
2375
2413
|
`readPrivatePublicationRecovery` functions implement the same durable workflow.
|
|
2376
2414
|
MCP exposes `publish_private_skill`, `get_private_publication`,
|