@hasna/skills 0.5.0 → 0.5.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 +44 -0
- package/bin/index.js +927 -393
- package/bin/mcp.js +409 -110
- package/bin/migrate.js +1 -1
- package/bin/server.js +1 -1
- package/bin/worker.js +1 -1
- package/dist/cli/commands/workspace-selection.d.ts +11 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +337 -123
- package/dist/lib/remote-auth.d.ts +15 -9
- package/dist/lib/remote-client.d.ts +11 -0
- package/dist/lib/remote-workspace-selection.d.ts +58 -0
- package/dist/lib/workspace-profile.d.ts +49 -0
- package/dist/sdk/index.d.ts +3 -0
- package/dist/sdk/index.js +281 -67
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -889,3 +889,47 @@ The client never refreshes, changes the precondition, or retries automatically.
|
|
|
889
889
|
Known refusals expose a fixed message and code through `RemoteWorkspaceMemberError`;
|
|
890
890
|
unsupported routes remain errors. Invitations, workspace switching and leaving
|
|
891
891
|
your own workspace are separate capabilities.
|
|
892
|
+
|
|
893
|
+
### Workspace profiles
|
|
894
|
+
|
|
895
|
+
Discover the workspaces available to your account using a fresh verification code:
|
|
896
|
+
|
|
897
|
+
```sh
|
|
898
|
+
skills workspace list --email you@example.com --code-stdin --json
|
|
899
|
+
```
|
|
900
|
+
|
|
901
|
+
Pipe the six-digit code to stdin. Interactive terminal requests can omit
|
|
902
|
+
`--code-stdin` to request and enter a masked code. Discovery saves no credential.
|
|
903
|
+
The current marker identifies the workspace initially chosen by sign-in; it does
|
|
904
|
+
not change your account's default workspace.
|
|
905
|
+
|
|
906
|
+
To enroll a workspace, choose its exact membership ID from that list and name
|
|
907
|
+
the destination credential profile explicitly:
|
|
908
|
+
|
|
909
|
+
```sh
|
|
910
|
+
HASNA_PROFILE=team-b skills auth login --membership-id <membership-id> --email you@example.com --code-stdin --json
|
|
911
|
+
HASNA_PROFILE=team-b skills auth whoami --json
|
|
912
|
+
```
|
|
913
|
+
|
|
914
|
+
This fresh sign-in creates one ordinary CLI API key in that workspace, verifies
|
|
915
|
+
its identity, and saves it only in the named profile. Existing keys and other
|
|
916
|
+
profiles stay bound to their original workspaces. Viewer memberships cannot
|
|
917
|
+
create keys. Session JWTs are never saved. Remove injected API-key overrides
|
|
918
|
+
before enrolling a profile so that later commands use the saved credential.
|
|
919
|
+
A profile belonging to a different account requires a different profile name
|
|
920
|
+
or an ordinary replacement login. New accounts must finish ordinary account
|
|
921
|
+
login before workspace enrollment; the server's existing signup policy applies.
|
|
922
|
+
|
|
923
|
+
Named-profile account/workspace name updates, roster/member actions, and API-key
|
|
924
|
+
management retain that profile's live workspace identity through fresh OTP
|
|
925
|
+
verification. A revoked key, unavailable membership, or inconsistent profile
|
|
926
|
+
metadata refuses the operation; it does not fall back to the default workspace.
|
|
927
|
+
The CLI cannot change your parent shell: keep `HASNA_PROFILE=team-b` on subsequent
|
|
928
|
+
commands or configure it explicitly in that shell. Existing MCP fresh-auth
|
|
929
|
+
account, member and key tools retain the same named profile authority for each
|
|
930
|
+
invocation. Changing an MCP host’s selected profile
|
|
931
|
+
through a tool remains a separate follow-up.
|
|
932
|
+
|
|
933
|
+
If enrollment reports that key issuance was attempted but not confirmed, inspect
|
|
934
|
+
the selected profile and workspace keys before retrying. A lost response can
|
|
935
|
+
still have created a server key; the CLI does not retry issuance automatically.
|