@clavis.nexus/setup 1.0.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 DeepDive, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,65 @@
1
+ # `@clavis.nexus/setup`
2
+
3
+ developers で Org/App を始める手順を、CLI と MCP から進められる。
4
+
5
+ Passkey・カード決済・DNS の掲載は人間がブラウザ/インフラで行う。エージェントは順序・下書き・状態確認を担う。手順は [docs.clavis.nexus](https://docs.clavis.nexus) の Quickstart(CLI/エージェント)を正とする。
6
+
7
+ ## インストール
8
+
9
+ ```bash
10
+ npm install -g @clavis.nexus/setup
11
+ ```
12
+
13
+ ## CLI
14
+
15
+ ```bash
16
+ export CLAVIS_API_ORIGIN=https://api.clavis.nexus
17
+ export CLAVIS_ID_ORIGIN=https://id.clavis.nexus
18
+ export CLAVIS_DEVELOPERS_ORIGIN=https://developers.clavis.nexus
19
+
20
+ clavis login
21
+ clavis status
22
+ clavis org-anchor-plan example.com "Example Org"
23
+ # Passkey → org-anchor-finish → DNS 掲載 → org-verify-anchor
24
+ clavis card-checkout <orgId>
25
+ clavis app-register --org <orgId> --host app.example.com --name "My App"
26
+ clavis app-host-plan <orgId> <appId>
27
+ clavis app-verify-host <orgId> <appId>
28
+ clavis declaration-set --org <orgId> --app <appId> --end-users "社内利用者" --use signature="承認する"
29
+ clavis emit-env --app <appId> --operate-jwk "$OPERATE_PRIVATE_JWK"
30
+ ```
31
+
32
+ セッションは `~/.config/clavis/session.json`(`CLAVIS_SESSION_PATH` で変更可)。
33
+
34
+ ## MCP
35
+
36
+ ```json
37
+ {
38
+ "mcpServers": {
39
+ "clavis-setup": {
40
+ "command": "npx",
41
+ "args": ["-y", "@clavis.nexus/setup", "mcp"],
42
+ "env": {
43
+ "CLAVIS_API_ORIGIN": "https://api.clavis.nexus",
44
+ "CLAVIS_ID_ORIGIN": "https://id.clavis.nexus",
45
+ "CLAVIS_DEVELOPERS_ORIGIN": "https://developers.clavis.nexus"
46
+ }
47
+ }
48
+ }
49
+ }
50
+ ```
51
+
52
+ 同じプロセスは `clavis mcp` でも起動できる。
53
+
54
+ ツール応答に `needs_human: passkey | payment | dns | login` が付くときは、人間操作が必要。
55
+
56
+ ## ライブラリ
57
+
58
+ ```ts
59
+ import { createSetupClient } from "@clavis.nexus/setup";
60
+
61
+ const setup = createSetupClient();
62
+ const status = await setup.status();
63
+ ```
64
+
65
+ 署名依頼の登録・完了読み取りは [`@clavis.nexus/app`](https://www.npmjs.com/package/@clavis.nexus/app)。
package/dist/cli.d.ts ADDED
@@ -0,0 +1,2 @@
1
+
2
+ export { }