sealnet-mcp 0.2.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/dist/cli.d.cts ADDED
@@ -0,0 +1,36 @@
1
+ import { Command } from 'commander';
2
+
3
+ /**
4
+ * `sealnet-mcp` CLI entry — `commander`-based.
5
+ *
6
+ * Subcommands (one of these per invocation):
7
+ * - `sealnet-mcp serve` (DEFAULT — bare `sealnet-mcp` runs this; without
8
+ * state it sets itself up, see `setUpWithoutPrompt`)
9
+ * - `sealnet-mcp init` Optional setup with a passphrase the user chooses
10
+ * - `sealnet-mcp pubkey` Print the X25519 public key (for senders)
11
+ * - `sealnet-mcp doctor` Diagnose keychain / state / backend
12
+ * - `sealnet-mcp reset --force` Wipe state + keychain (after passphrase loss)
13
+ *
14
+ * The state directory, the keychain service and the handoff directory keep
15
+ * the name `seal-mcp`: they are where existing state lives, not the package.
16
+ *
17
+ * # Stdout discipline (CRITICAL)
18
+ *
19
+ * `serve` writes ONLY MCP JSON-RPC to stdout. Every diagnostic, error,
20
+ * or progress line goes to stderr via `logStderr`. A single stray
21
+ * `console.log` would corrupt the JSON-RPC stream and the MCP host
22
+ * (Claude Desktop, Cursor, …) would silently fail to enumerate tools.
23
+ *
24
+ * # Environment variables
25
+ *
26
+ * - SEAL_MCP_CONFIG_DIR Override state directory (mirrors Rust's `SEAL_CONFIG_DIR`)
27
+ * - SEAL_MCP_PASSPHRASE Passphrase for non-interactive use (CI / headless)
28
+ * - SEAL_MCP_BACKEND_URL SEAL backend base URL (default `https://api.seal.net`, see `config.ts`)
29
+ * - SEAL_MCP_PUBLIC_HOST Public origin for minted share URLs (default `https://seal.net`, see `config.ts`)
30
+ * - SEAL_MCP_DEBUG=1 Include stack traces in fatal-error output
31
+ */
32
+
33
+ declare function buildCli(): Command;
34
+ declare function main(argv?: readonly string[]): Promise<void>;
35
+
36
+ export { buildCli, main };
package/dist/cli.d.ts ADDED
@@ -0,0 +1,36 @@
1
+ import { Command } from 'commander';
2
+
3
+ /**
4
+ * `sealnet-mcp` CLI entry — `commander`-based.
5
+ *
6
+ * Subcommands (one of these per invocation):
7
+ * - `sealnet-mcp serve` (DEFAULT — bare `sealnet-mcp` runs this; without
8
+ * state it sets itself up, see `setUpWithoutPrompt`)
9
+ * - `sealnet-mcp init` Optional setup with a passphrase the user chooses
10
+ * - `sealnet-mcp pubkey` Print the X25519 public key (for senders)
11
+ * - `sealnet-mcp doctor` Diagnose keychain / state / backend
12
+ * - `sealnet-mcp reset --force` Wipe state + keychain (after passphrase loss)
13
+ *
14
+ * The state directory, the keychain service and the handoff directory keep
15
+ * the name `seal-mcp`: they are where existing state lives, not the package.
16
+ *
17
+ * # Stdout discipline (CRITICAL)
18
+ *
19
+ * `serve` writes ONLY MCP JSON-RPC to stdout. Every diagnostic, error,
20
+ * or progress line goes to stderr via `logStderr`. A single stray
21
+ * `console.log` would corrupt the JSON-RPC stream and the MCP host
22
+ * (Claude Desktop, Cursor, …) would silently fail to enumerate tools.
23
+ *
24
+ * # Environment variables
25
+ *
26
+ * - SEAL_MCP_CONFIG_DIR Override state directory (mirrors Rust's `SEAL_CONFIG_DIR`)
27
+ * - SEAL_MCP_PASSPHRASE Passphrase for non-interactive use (CI / headless)
28
+ * - SEAL_MCP_BACKEND_URL SEAL backend base URL (default `https://api.seal.net`, see `config.ts`)
29
+ * - SEAL_MCP_PUBLIC_HOST Public origin for minted share URLs (default `https://seal.net`, see `config.ts`)
30
+ * - SEAL_MCP_DEBUG=1 Include stack traces in fatal-error output
31
+ */
32
+
33
+ declare function buildCli(): Command;
34
+ declare function main(argv?: readonly string[]): Promise<void>;
35
+
36
+ export { buildCli, main };