@solidnumber/cli 2.6.2 → 2.8.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/README.md +1 -1
- package/dist/commands/audit.d.ts.map +1 -1
- package/dist/commands/audit.js +67 -0
- package/dist/commands/audit.js.map +1 -1
- package/dist/commands/manifest.d.ts +13 -0
- package/dist/commands/manifest.d.ts.map +1 -0
- package/dist/commands/manifest.js +64 -0
- package/dist/commands/manifest.js.map +1 -0
- package/dist/commands/scope.d.ts +16 -0
- package/dist/commands/scope.d.ts.map +1 -0
- package/dist/commands/scope.js +90 -0
- package/dist/commands/scope.js.map +1 -0
- package/dist/commands/transaction.d.ts +20 -0
- package/dist/commands/transaction.d.ts.map +1 -0
- package/dist/commands/transaction.js +194 -0
- package/dist/commands/transaction.js.map +1 -0
- package/dist/commands/ucp.d.ts +20 -0
- package/dist/commands/ucp.d.ts.map +1 -0
- package/dist/commands/ucp.js +227 -0
- package/dist/commands/ucp.js.map +1 -0
- package/dist/commands/webmcp.d.ts +22 -0
- package/dist/commands/webmcp.d.ts.map +1 -0
- package/dist/commands/webmcp.js +390 -0
- package/dist/commands/webmcp.js.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/platform-docs/llms.txt +10 -5
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `solid ucp ...` — manage the Universal Commerce Protocol (UCP) surface
|
|
3
|
+
* from terminal. Closes the parallel CLI gap that SPRINT-WEBMCP-MATCH-
|
|
4
|
+
* PATTERN Phase 8 surfaced: the CLI had zero UCP commands despite the
|
|
5
|
+
* backend shipping the protocol months earlier.
|
|
6
|
+
*
|
|
7
|
+
* solid ucp manifest → tenant's signed UCP profile
|
|
8
|
+
* solid ucp capabilities → list exposed UCP capabilities
|
|
9
|
+
* solid ucp consent list → list active UCP consent grants
|
|
10
|
+
* solid ucp consent grant <cap> --scope X → grant consent for a capability
|
|
11
|
+
* solid ucp consent revoke <id> → revoke a grant
|
|
12
|
+
*
|
|
13
|
+
* UCP is intentionally symmetric with `solid webmcp` so an operator
|
|
14
|
+
* uses the same mental model for both protocols.
|
|
15
|
+
*
|
|
16
|
+
* Reference: Owners-Manual/72-UCP-Integration/ + 73-WebMCP-Integration/CLI-SURFACE.md.
|
|
17
|
+
*/
|
|
18
|
+
import { Command } from 'commander';
|
|
19
|
+
export declare const ucpCommand: Command;
|
|
20
|
+
//# sourceMappingURL=ucp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ucp.d.ts","sourceRoot":"","sources":["../../src/commands/ucp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA6BpC,eAAO,MAAM,UAAU,SAC6E,CAAC"}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* `solid ucp ...` — manage the Universal Commerce Protocol (UCP) surface
|
|
4
|
+
* from terminal. Closes the parallel CLI gap that SPRINT-WEBMCP-MATCH-
|
|
5
|
+
* PATTERN Phase 8 surfaced: the CLI had zero UCP commands despite the
|
|
6
|
+
* backend shipping the protocol months earlier.
|
|
7
|
+
*
|
|
8
|
+
* solid ucp manifest → tenant's signed UCP profile
|
|
9
|
+
* solid ucp capabilities → list exposed UCP capabilities
|
|
10
|
+
* solid ucp consent list → list active UCP consent grants
|
|
11
|
+
* solid ucp consent grant <cap> --scope X → grant consent for a capability
|
|
12
|
+
* solid ucp consent revoke <id> → revoke a grant
|
|
13
|
+
*
|
|
14
|
+
* UCP is intentionally symmetric with `solid webmcp` so an operator
|
|
15
|
+
* uses the same mental model for both protocols.
|
|
16
|
+
*
|
|
17
|
+
* Reference: Owners-Manual/72-UCP-Integration/ + 73-WebMCP-Integration/CLI-SURFACE.md.
|
|
18
|
+
*/
|
|
19
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
20
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21
|
+
};
|
|
22
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
exports.ucpCommand = void 0;
|
|
24
|
+
const commander_1 = require("commander");
|
|
25
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
26
|
+
const ora_1 = __importDefault(require("ora"));
|
|
27
|
+
const config_1 = require("../lib/config");
|
|
28
|
+
const api_client_1 = require("../lib/api-client");
|
|
29
|
+
const json_output_1 = require("../lib/json-output");
|
|
30
|
+
// ── Helpers ────────────────────────────────────────────────────────────────
|
|
31
|
+
const UCP_SCOPES = ['once', 'session', 'permanent'];
|
|
32
|
+
function requireLogin() {
|
|
33
|
+
if (!config_1.config.isLoggedIn()) {
|
|
34
|
+
console.error(chalk_1.default.red('Not logged in. Run `solid auth login` first.'));
|
|
35
|
+
process.exit(1);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function getCompanyId() {
|
|
39
|
+
// ConfigManager exposes companyId as a typed getter; default-safe fallback.
|
|
40
|
+
const cfg = config_1.config;
|
|
41
|
+
const cid = typeof cfg.companyId === 'number' ? cfg.companyId : 0;
|
|
42
|
+
return Number.isFinite(cid) && cid > 0 ? cid : null;
|
|
43
|
+
}
|
|
44
|
+
// ── Root command ───────────────────────────────────────────────────────────
|
|
45
|
+
exports.ucpCommand = new commander_1.Command('ucp')
|
|
46
|
+
.description('Universal Commerce Protocol — manifest, capabilities, and consent for buyer-agents');
|
|
47
|
+
// ── solid ucp manifest ─────────────────────────────────────────────────────
|
|
48
|
+
exports.ucpCommand
|
|
49
|
+
.command('manifest')
|
|
50
|
+
.description('Dump the tenant\'s signed UCP profile from /co/{id}/.well-known/ucp')
|
|
51
|
+
.option('--company <id>', 'Override company_id (default: current session\'s tenant)', (v) => parseInt(v, 10))
|
|
52
|
+
.option('--json', 'Output as JSON')
|
|
53
|
+
.action(async (options) => {
|
|
54
|
+
requireLogin();
|
|
55
|
+
const companyId = options.company ?? getCompanyId();
|
|
56
|
+
if (!companyId) {
|
|
57
|
+
console.error(chalk_1.default.red('No company_id resolved. Use --company <id> or `solid auth login`.'));
|
|
58
|
+
process.exit(2);
|
|
59
|
+
}
|
|
60
|
+
const wantJson = (0, json_output_1.isJsonOutput)(options);
|
|
61
|
+
const spinner = wantJson ? null : (0, ora_1.default)('Fetching UCP manifest…').start();
|
|
62
|
+
try {
|
|
63
|
+
const { data } = await api_client_1.apiClient.get(`/co/${companyId}/.well-known/ucp`);
|
|
64
|
+
if (spinner)
|
|
65
|
+
spinner.stop();
|
|
66
|
+
if (wantJson) {
|
|
67
|
+
console.log(JSON.stringify(data, null, 2));
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
console.log('');
|
|
71
|
+
console.log(chalk_1.default.bold(`UCP profile — company ${chalk_1.default.cyan(String(companyId))}`));
|
|
72
|
+
console.log(JSON.stringify(data, null, 2));
|
|
73
|
+
console.log('');
|
|
74
|
+
}
|
|
75
|
+
catch (e) {
|
|
76
|
+
if (spinner)
|
|
77
|
+
spinner.stop();
|
|
78
|
+
{
|
|
79
|
+
const apiErr = (0, api_client_1.handleApiError)(e);
|
|
80
|
+
console.error(chalk_1.default.red(apiErr.message));
|
|
81
|
+
process.exit(1);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
// ── solid ucp capabilities ─────────────────────────────────────────────────
|
|
86
|
+
exports.ucpCommand
|
|
87
|
+
.command('capabilities')
|
|
88
|
+
.description('List capabilities exposed by the current tenant (signed envelope from backend)')
|
|
89
|
+
.option('--company <id>', 'Override company_id', (v) => parseInt(v, 10))
|
|
90
|
+
.option('--json', 'Output as JSON')
|
|
91
|
+
.action(async (options) => {
|
|
92
|
+
requireLogin();
|
|
93
|
+
const companyId = options.company ?? getCompanyId();
|
|
94
|
+
if (!companyId) {
|
|
95
|
+
console.error(chalk_1.default.red('No company_id resolved. Use --company <id> or `solid auth login`.'));
|
|
96
|
+
process.exit(2);
|
|
97
|
+
}
|
|
98
|
+
const wantJson = (0, json_output_1.isJsonOutput)(options);
|
|
99
|
+
const spinner = wantJson ? null : (0, ora_1.default)('Fetching UCP capabilities…').start();
|
|
100
|
+
try {
|
|
101
|
+
const { data } = await api_client_1.apiClient.get(`/co/${companyId}/ucp/capabilities`);
|
|
102
|
+
if (spinner)
|
|
103
|
+
spinner.stop();
|
|
104
|
+
if (wantJson) {
|
|
105
|
+
console.log(JSON.stringify(data, null, 2));
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
console.log('');
|
|
109
|
+
console.log(chalk_1.default.bold(`UCP capabilities — company ${chalk_1.default.cyan(String(companyId))}`));
|
|
110
|
+
console.log(JSON.stringify(data, null, 2));
|
|
111
|
+
console.log('');
|
|
112
|
+
}
|
|
113
|
+
catch (e) {
|
|
114
|
+
if (spinner)
|
|
115
|
+
spinner.stop();
|
|
116
|
+
{
|
|
117
|
+
const apiErr = (0, api_client_1.handleApiError)(e);
|
|
118
|
+
console.error(chalk_1.default.red(apiErr.message));
|
|
119
|
+
process.exit(1);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
// ── solid ucp consent ──────────────────────────────────────────────────────
|
|
124
|
+
const ucpConsentCommand = exports.ucpCommand
|
|
125
|
+
.command('consent')
|
|
126
|
+
.description('Manage UCP consent grants (the 4-rung ladder for buyer-agent commerce)');
|
|
127
|
+
ucpConsentCommand
|
|
128
|
+
.command('list')
|
|
129
|
+
.description('List active UCP consent grants for the current tenant')
|
|
130
|
+
.option('--json', 'Output as JSON')
|
|
131
|
+
.action(async (options) => {
|
|
132
|
+
requireLogin();
|
|
133
|
+
const wantJson = (0, json_output_1.isJsonOutput)(options);
|
|
134
|
+
const spinner = wantJson ? null : (0, ora_1.default)('Fetching UCP consent ladder…').start();
|
|
135
|
+
try {
|
|
136
|
+
const { data } = await api_client_1.apiClient.get('/api/v1/ucp/consent/ladder');
|
|
137
|
+
if (spinner)
|
|
138
|
+
spinner.stop();
|
|
139
|
+
if (wantJson) {
|
|
140
|
+
console.log(JSON.stringify(data, null, 2));
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
console.log('');
|
|
144
|
+
console.log(chalk_1.default.bold('UCP consent ladder'));
|
|
145
|
+
console.log(JSON.stringify(data, null, 2));
|
|
146
|
+
console.log('');
|
|
147
|
+
}
|
|
148
|
+
catch (e) {
|
|
149
|
+
if (spinner)
|
|
150
|
+
spinner.stop();
|
|
151
|
+
{
|
|
152
|
+
const apiErr = (0, api_client_1.handleApiError)(e);
|
|
153
|
+
console.error(chalk_1.default.red(apiErr.message));
|
|
154
|
+
process.exit(1);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
ucpConsentCommand
|
|
159
|
+
.command('grant <capability>')
|
|
160
|
+
.description('Grant consent for a UCP capability (owner-only)')
|
|
161
|
+
.requiredOption('--scope <scope>', `One of: ${UCP_SCOPES.join(', ')}`)
|
|
162
|
+
.option('--json', 'Output as JSON')
|
|
163
|
+
.action(async (capability, options) => {
|
|
164
|
+
requireLogin();
|
|
165
|
+
if (!UCP_SCOPES.includes(options.scope)) {
|
|
166
|
+
console.error(chalk_1.default.red(`Unknown --scope: ${options.scope}. Expected: ${UCP_SCOPES.join(', ')}`));
|
|
167
|
+
process.exit(2);
|
|
168
|
+
}
|
|
169
|
+
const wantJson = (0, json_output_1.isJsonOutput)(options);
|
|
170
|
+
const spinner = wantJson ? null : (0, ora_1.default)('Granting UCP consent…').start();
|
|
171
|
+
try {
|
|
172
|
+
const { data } = await api_client_1.apiClient.post('/api/v1/ucp/consent/grant', {
|
|
173
|
+
capability,
|
|
174
|
+
scope: options.scope,
|
|
175
|
+
});
|
|
176
|
+
if (spinner)
|
|
177
|
+
spinner.stop();
|
|
178
|
+
if (wantJson) {
|
|
179
|
+
console.log(JSON.stringify(data, null, 2));
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
console.log('');
|
|
183
|
+
console.log(chalk_1.default.green(`✓ Granted ${chalk_1.default.cyan(capability)} (${options.scope})`));
|
|
184
|
+
console.log(chalk_1.default.dim(JSON.stringify(data, null, 2)));
|
|
185
|
+
console.log('');
|
|
186
|
+
}
|
|
187
|
+
catch (e) {
|
|
188
|
+
if (spinner)
|
|
189
|
+
spinner.stop();
|
|
190
|
+
{
|
|
191
|
+
const apiErr = (0, api_client_1.handleApiError)(e);
|
|
192
|
+
console.error(chalk_1.default.red(apiErr.message));
|
|
193
|
+
process.exit(1);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
ucpConsentCommand
|
|
198
|
+
.command('revoke <grant_id>')
|
|
199
|
+
.description('Revoke a UCP consent grant by its id (owner-only)')
|
|
200
|
+
.option('--json', 'Output as JSON')
|
|
201
|
+
.action(async (grantId, options) => {
|
|
202
|
+
requireLogin();
|
|
203
|
+
const wantJson = (0, json_output_1.isJsonOutput)(options);
|
|
204
|
+
const spinner = wantJson ? null : (0, ora_1.default)('Revoking…').start();
|
|
205
|
+
try {
|
|
206
|
+
await api_client_1.apiClient.delete(`/api/v1/ucp/consent/grant/${encodeURIComponent(grantId)}`);
|
|
207
|
+
if (spinner)
|
|
208
|
+
spinner.stop();
|
|
209
|
+
if (wantJson) {
|
|
210
|
+
console.log(JSON.stringify({ revoked: grantId }, null, 2));
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
console.log('');
|
|
214
|
+
console.log(chalk_1.default.green(`✓ Revoked ${grantId}`));
|
|
215
|
+
console.log('');
|
|
216
|
+
}
|
|
217
|
+
catch (e) {
|
|
218
|
+
if (spinner)
|
|
219
|
+
spinner.stop();
|
|
220
|
+
{
|
|
221
|
+
const apiErr = (0, api_client_1.handleApiError)(e);
|
|
222
|
+
console.error(chalk_1.default.red(apiErr.message));
|
|
223
|
+
process.exit(1);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
//# sourceMappingURL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AC;YAC3D,OAAO;QACT,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAChB,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,aAAa,OAAO,EAAE,CAAC,CAAC,CAAC;QACjD,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAClB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,IAAI,OAAO;YAAE,OAAO,CAAC,IAAI,EAAE,CAAC;QAC5B,CAAC;YAAC,MAAM,MAAM,GAAG,IAAA,2BAAc,EAAC,CAAC,CAAC,CAAC;YAAC,OAAO,CAAC,KAAK,CAAC,eAAK,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;YAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAAC,CAAC;IAClG,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `solid webmcp ...` — manage the in-browser MCP transport from terminal.
|
|
3
|
+
*
|
|
4
|
+
* solid webmcp manifest [--surface dashboard|portal|developer|tenant-site]
|
|
5
|
+
* solid webmcp test <tool_name> [--input @file.json] [--confirm]
|
|
6
|
+
* solid webmcp invocations [--limit N] [--tool <name>] [--status success|error|denied]
|
|
7
|
+
* solid webmcp consent list
|
|
8
|
+
* solid webmcp consent grant <tool_name> --scope once|session|permanent
|
|
9
|
+
* solid webmcp consent revoke <decision_id>
|
|
10
|
+
*
|
|
11
|
+
* Every subcommand is tenant-scoped via the cached session in
|
|
12
|
+
* ~/.solid/config.json. Refuses to run without `solid auth login` or a
|
|
13
|
+
* supplied `--token`/`SOLID_API_KEY`.
|
|
14
|
+
*
|
|
15
|
+
* SPRINT-WEBMCP-MATCH-PATTERN Phase 8 — closes the gap that the CLI had
|
|
16
|
+
* zero WebMCP surface despite shipping the backend in Phase 1.
|
|
17
|
+
*
|
|
18
|
+
* Reference: Owners-Manual/73-WebMCP-Integration/CLI-SURFACE.md.
|
|
19
|
+
*/
|
|
20
|
+
import { Command } from 'commander';
|
|
21
|
+
export declare const webmcpCommand: Command;
|
|
22
|
+
//# sourceMappingURL=webmcp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webmcp.d.ts","sourceRoot":"","sources":["../../src/commands/webmcp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAuGpC,eAAO,MAAM,aAAa,SAC2E,CAAC"}
|