@solidnumber/cli 2.27.0 → 2.28.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/CHANGELOG.md +73 -0
- package/README.md +61 -32
- package/dist/commands/app.d.ts.map +1 -1
- package/dist/commands/app.js +64 -14
- package/dist/commands/app.js.map +1 -1
- package/dist/commands/code.d.ts.map +1 -1
- package/dist/commands/code.js +13 -8
- package/dist/commands/code.js.map +1 -1
- package/dist/commands/find.d.ts +5 -0
- package/dist/commands/find.d.ts.map +1 -1
- package/dist/commands/find.js +48 -11
- package/dist/commands/find.js.map +1 -1
- package/dist/commands/history.d.ts.map +1 -1
- package/dist/commands/history.js +10 -6
- package/dist/commands/history.js.map +1 -1
- package/dist/commands/notes.d.ts.map +1 -1
- package/dist/commands/notes.js +16 -10
- package/dist/commands/notes.js.map +1 -1
- package/dist/commands/verbs.d.ts.map +1 -1
- package/dist/commands/verbs.js +93 -1
- package/dist/commands/verbs.js.map +1 -1
- package/dist/lib/api-client.d.ts +2 -0
- package/dist/lib/api-client.d.ts.map +1 -1
- package/dist/lib/api-client.js +97 -92
- package/dist/lib/api-client.js.map +1 -1
- package/dist/lib/find-answer.d.ts +42 -0
- package/dist/lib/find-answer.d.ts.map +1 -0
- package/dist/lib/find-answer.js +59 -0
- package/dist/lib/find-answer.js.map +1 -0
- package/dist/lib/output-contract.d.ts +70 -0
- package/dist/lib/output-contract.d.ts.map +1 -0
- package/dist/lib/output-contract.js +83 -0
- package/dist/lib/output-contract.js.map +1 -0
- package/dist/lib/sandbox-verbs.d.ts +4 -5
- package/dist/lib/sandbox-verbs.d.ts.map +1 -1
- package/dist/lib/sandbox-verbs.js +10 -17
- package/dist/lib/sandbox-verbs.js.map +1 -1
- package/dist/lib/verb-envelope.d.ts +43 -0
- package/dist/lib/verb-envelope.d.ts.map +1 -0
- package/dist/lib/verb-envelope.js +71 -0
- package/dist/lib/verb-envelope.js.map +1 -0
- package/dist/lib/verb-snapshot.d.ts +8 -3
- package/dist/lib/verb-snapshot.d.ts.map +1 -1
- package/dist/lib/verb-snapshot.js +31 -13
- package/dist/lib/verb-snapshot.js.map +1 -1
- package/package.json +1 -1
- package/platform-docs/llms.txt +5 -5
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
* Pure (no chalk/ora) so it is unit-testable.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.NO_SANDBOX_MESSAGE = void 0;
|
|
19
|
-
exports.unwrapVerb = unwrapVerb;
|
|
18
|
+
exports.NO_SANDBOX_MESSAGE = exports.unwrapVerb = void 0;
|
|
20
19
|
exports.sandboxStatus = sandboxStatus;
|
|
21
20
|
exports.sandboxFork = sandboxFork;
|
|
22
21
|
exports.sandboxDiff = sandboxDiff;
|
|
@@ -26,19 +25,13 @@ exports.scopeFromFlag = scopeFromFlag;
|
|
|
26
25
|
exports.pageChanges = pageChanges;
|
|
27
26
|
exports.diffLines = diffLines;
|
|
28
27
|
exports.absoluteUrl = absoluteUrl;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
if ('result' in d && d.result && typeof d.result === 'object' && ('ok' in d || 'verb' in d)) {
|
|
34
|
-
return d.result;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
return (data ?? {});
|
|
38
|
-
}
|
|
28
|
+
// One reading for every command: lib/verb-envelope.ts.
|
|
29
|
+
var verb_envelope_1 = require("./verb-envelope");
|
|
30
|
+
Object.defineProperty(exports, "unwrapVerb", { enumerable: true, get: function () { return verb_envelope_1.unwrapVerb; } });
|
|
31
|
+
const verb_envelope_2 = require("./verb-envelope");
|
|
39
32
|
const VERB = (name) => `/api/v1/agent/sandbox/${name}`;
|
|
40
33
|
async function sandboxStatus(client) {
|
|
41
|
-
const r = unwrapVerb((await client.post(VERB('status'), {})).data);
|
|
34
|
+
const r = (0, verb_envelope_2.unwrapVerb)((await client.post(VERB('status'), {})).data);
|
|
42
35
|
return { ...r, active: Boolean(r.active) };
|
|
43
36
|
}
|
|
44
37
|
/** Writes carry `confirm: true` — running the command IS the caller's consent. */
|
|
@@ -46,17 +39,17 @@ async function sandboxFork(client, scope) {
|
|
|
46
39
|
const body = { confirm: true };
|
|
47
40
|
if (scope)
|
|
48
41
|
body.scope = scope;
|
|
49
|
-
return unwrapVerb((await client.post(VERB('fork'), body)).data);
|
|
42
|
+
return (0, verb_envelope_2.unwrapVerb)((await client.post(VERB('fork'), body)).data);
|
|
50
43
|
}
|
|
51
44
|
async function sandboxDiff(client) {
|
|
52
|
-
const r = unwrapVerb((await client.post(VERB('diff'), {})).data);
|
|
45
|
+
const r = (0, verb_envelope_2.unwrapVerb)((await client.post(VERB('diff'), {})).data);
|
|
53
46
|
return { ...r, changes: r.changes || [] };
|
|
54
47
|
}
|
|
55
48
|
async function sandboxPromote(client) {
|
|
56
|
-
return unwrapVerb((await client.post(VERB('promote'), { confirm: true })).data);
|
|
49
|
+
return (0, verb_envelope_2.unwrapVerb)((await client.post(VERB('promote'), { confirm: true })).data);
|
|
57
50
|
}
|
|
58
51
|
async function sandboxExit(client) {
|
|
59
|
-
return unwrapVerb((await client.post(VERB('exit'), { confirm: true })).data);
|
|
52
|
+
return (0, verb_envelope_2.unwrapVerb)((await client.post(VERB('exit'), { confirm: true })).data);
|
|
60
53
|
}
|
|
61
54
|
/** `--scope pages|data|all` → the verb's scope object. */
|
|
62
55
|
function scopeFromFlag(flag) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox-verbs.js","sourceRoot":"","sources":["../../src/lib/sandbox-verbs.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;
|
|
1
|
+
{"version":3,"file":"sandbox-verbs.js","sourceRoot":"","sources":["../../src/lib/sandbox-verbs.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAwCH,sCAGC;AAGD,kCAIC;AAED,kCAGC;AAED,wCAEC;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CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC3E,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,GAAI,CAAwC,CAAC,SAAS,CAAC;YAC9D,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,WAAW,KAAK,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACtE,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,yEAAyE;AACzE,SAAgB,WAAW,CAAC,OAAe,EAAE,CAAS;IACpD,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC;QAAE,OAAO,CAAC,CAAC;IACtC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC;AACnE,CAAC;AAEY,QAAA,kBAAkB,GAC7B,0FAA0F,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One reading of what the verb surface sends back.
|
|
3
|
+
*
|
|
4
|
+
* ⛔ WHY THIS EXISTS. `POST /api/v1/agent/<namespace>/<verb>` answers in one of
|
|
5
|
+
* two shapes, and which one depends on something a command cannot see — whether
|
|
6
|
+
* the backend serves that address from its own route or from the catch-all:
|
|
7
|
+
*
|
|
8
|
+
* its own route { note_id: 7, note_type: "decision" } (bare)
|
|
9
|
+
* the catch-all { ok: true, verb: "notes.add", result: { note_id: 7 … } }
|
|
10
|
+
* { ok: false, verb: "notes.add", error: { reason, message, next } }
|
|
11
|
+
*
|
|
12
|
+
* Commands written against the bare shape read `data.upload_url` and got
|
|
13
|
+
* `undefined`. Found 2026-10-04 by a customer: `solid app publish --confirm`
|
|
14
|
+
* died with "Failed to parse URL from undefined" and `solid app get` printed
|
|
15
|
+
* "undefined undefined (offline)" for a live app — on every version since
|
|
16
|
+
* `solid app` shipped. The same mistake sat in `solid notes`, `solid code` and
|
|
17
|
+
* `solid history`. `--json` looked right throughout, because it prints the
|
|
18
|
+
* answer raw.
|
|
19
|
+
*
|
|
20
|
+
* ⛔ AND WHY THE TESTS WERE GREEN. Each command's test mocked the server with
|
|
21
|
+
* the bare shape the command expected. A fake that agrees with the code under
|
|
22
|
+
* test proves the code agrees with itself. The shapes above are copied from the
|
|
23
|
+
* backend (`controllers/ada.py::_cli_dispatch`); tests use `asDispatched()` to
|
|
24
|
+
* answer the way the server really does.
|
|
25
|
+
*
|
|
26
|
+
* Three commands had already been fixed one at a time with `data.result ?? data`,
|
|
27
|
+
* and two files carried a private helper each. This is the one reading.
|
|
28
|
+
*/
|
|
29
|
+
export type VerbAnswer = Record<string, any>;
|
|
30
|
+
/**
|
|
31
|
+
* The verb's own answer, whichever shape it arrived in.
|
|
32
|
+
*
|
|
33
|
+
* - dispatched and it worked → the `result`, unwrapped
|
|
34
|
+
* - dispatched and refused → `{ ok: false, reason, error: <message>, next, verb }`,
|
|
35
|
+
* flat, so a command prints the sentence and the way on
|
|
36
|
+
* - answered bare → unchanged
|
|
37
|
+
*/
|
|
38
|
+
export declare function unwrapVerb<T = VerbAnswer>(data: unknown): T;
|
|
39
|
+
/** For tests: the catch-all's envelope around a verb's answer, as the server sends it. */
|
|
40
|
+
export declare function asDispatched(verb: string, result: Record<string, unknown>): Record<string, unknown>;
|
|
41
|
+
/** For tests: the catch-all's refusal, as the server sends it. */
|
|
42
|
+
export declare function asRefused(verb: string, reason: string, message: string, next?: string): Record<string, unknown>;
|
|
43
|
+
//# sourceMappingURL=verb-envelope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verb-envelope.d.ts","sourceRoot":"","sources":["../../src/lib/verb-envelope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAM7C;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,CAAC,GAAG,UAAU,EAAE,IAAI,EAAE,OAAO,GAAG,CAAC,CAe3D;AAED,0FAA0F;AAC1F,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEnG;AAED,kEAAkE;AAClE,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAE/G"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* One reading of what the verb surface sends back.
|
|
4
|
+
*
|
|
5
|
+
* ⛔ WHY THIS EXISTS. `POST /api/v1/agent/<namespace>/<verb>` answers in one of
|
|
6
|
+
* two shapes, and which one depends on something a command cannot see — whether
|
|
7
|
+
* the backend serves that address from its own route or from the catch-all:
|
|
8
|
+
*
|
|
9
|
+
* its own route { note_id: 7, note_type: "decision" } (bare)
|
|
10
|
+
* the catch-all { ok: true, verb: "notes.add", result: { note_id: 7 … } }
|
|
11
|
+
* { ok: false, verb: "notes.add", error: { reason, message, next } }
|
|
12
|
+
*
|
|
13
|
+
* Commands written against the bare shape read `data.upload_url` and got
|
|
14
|
+
* `undefined`. Found 2026-10-04 by a customer: `solid app publish --confirm`
|
|
15
|
+
* died with "Failed to parse URL from undefined" and `solid app get` printed
|
|
16
|
+
* "undefined undefined (offline)" for a live app — on every version since
|
|
17
|
+
* `solid app` shipped. The same mistake sat in `solid notes`, `solid code` and
|
|
18
|
+
* `solid history`. `--json` looked right throughout, because it prints the
|
|
19
|
+
* answer raw.
|
|
20
|
+
*
|
|
21
|
+
* ⛔ AND WHY THE TESTS WERE GREEN. Each command's test mocked the server with
|
|
22
|
+
* the bare shape the command expected. A fake that agrees with the code under
|
|
23
|
+
* test proves the code agrees with itself. The shapes above are copied from the
|
|
24
|
+
* backend (`controllers/ada.py::_cli_dispatch`); tests use `asDispatched()` to
|
|
25
|
+
* answer the way the server really does.
|
|
26
|
+
*
|
|
27
|
+
* Three commands had already been fixed one at a time with `data.result ?? data`,
|
|
28
|
+
* and two files carried a private helper each. This is the one reading.
|
|
29
|
+
*/
|
|
30
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
+
exports.unwrapVerb = unwrapVerb;
|
|
32
|
+
exports.asDispatched = asDispatched;
|
|
33
|
+
exports.asRefused = asRefused;
|
|
34
|
+
function isObject(v) {
|
|
35
|
+
return !!v && typeof v === 'object' && !Array.isArray(v);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The verb's own answer, whichever shape it arrived in.
|
|
39
|
+
*
|
|
40
|
+
* - dispatched and it worked → the `result`, unwrapped
|
|
41
|
+
* - dispatched and refused → `{ ok: false, reason, error: <message>, next, verb }`,
|
|
42
|
+
* flat, so a command prints the sentence and the way on
|
|
43
|
+
* - answered bare → unchanged
|
|
44
|
+
*/
|
|
45
|
+
function unwrapVerb(data) {
|
|
46
|
+
if (!isObject(data))
|
|
47
|
+
return (data ?? {});
|
|
48
|
+
const enveloped = 'verb' in data || 'ok' in data;
|
|
49
|
+
if (enveloped && data.ok === false && isObject(data.error)) {
|
|
50
|
+
const err = data.error;
|
|
51
|
+
return {
|
|
52
|
+
ok: false,
|
|
53
|
+
...(typeof data.verb === 'string' ? { verb: data.verb } : {}),
|
|
54
|
+
...(err.reason !== undefined ? { reason: err.reason } : err.code !== undefined ? { reason: err.code } : {}),
|
|
55
|
+
error: typeof err.message === 'string' && err.message ? err.message : String(err.reason ?? err.code ?? 'refused'),
|
|
56
|
+
...(err.next !== undefined ? { next: err.next } : {}),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
if (enveloped && isObject(data.result))
|
|
60
|
+
return data.result;
|
|
61
|
+
return data;
|
|
62
|
+
}
|
|
63
|
+
/** For tests: the catch-all's envelope around a verb's answer, as the server sends it. */
|
|
64
|
+
function asDispatched(verb, result) {
|
|
65
|
+
return { ok: true, verb, result };
|
|
66
|
+
}
|
|
67
|
+
/** For tests: the catch-all's refusal, as the server sends it. */
|
|
68
|
+
function asRefused(verb, reason, message, next) {
|
|
69
|
+
return { ok: false, verb, error: { reason, message, ...(next ? { next } : {}) } };
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=verb-envelope.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verb-envelope.js","sourceRoot":"","sources":["../../src/lib/verb-envelope.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;;AAgBH,gCAeC;AAGD,oCAEC;AAGD,8BAEC;AArCD,SAAS,QAAQ,CAAC,CAAU;IAC1B,OAAO,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED;;;;;;;GAOG;AACH,SAAgB,UAAU,CAAiB,IAAa;IACtD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;QAAE,OAAO,CAAC,IAAI,IAAI,EAAE,CAAM,CAAC;IAC9C,MAAM,SAAS,GAAG,MAAM,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,CAAC;IACjD,IAAI,SAAS,IAAI,IAAI,CAAC,EAAE,KAAK,KAAK,IAAI,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAC3D,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC;QACvB,OAAO;YACL,EAAE,EAAE,KAAK;YACT,GAAG,CAAC,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE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CAAC;AACpF,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export declare const SNAPSHOT_SCHEMA = "solid:verb-snapshot/
|
|
1
|
+
export declare const SNAPSHOT_SCHEMA = "solid:verb-snapshot/v2";
|
|
2
|
+
export declare const SNAPSHOT_SCHEMA_V1 = "solid:verb-snapshot/v1";
|
|
2
3
|
export interface SnapshotVerb {
|
|
3
4
|
name: string;
|
|
4
5
|
description?: string;
|
|
@@ -7,6 +8,8 @@ export interface SnapshotVerb {
|
|
|
7
8
|
status?: string;
|
|
8
9
|
undone_by?: string | null;
|
|
9
10
|
same_as?: string | null;
|
|
11
|
+
output_schema?: unknown;
|
|
12
|
+
refuses_when?: unknown;
|
|
10
13
|
}
|
|
11
14
|
export interface VerbSnapshot {
|
|
12
15
|
schema: string;
|
|
@@ -14,8 +17,8 @@ export interface VerbSnapshot {
|
|
|
14
17
|
etag?: string;
|
|
15
18
|
verbs: Record<string, string>;
|
|
16
19
|
}
|
|
17
|
-
export declare function fingerprint(v: SnapshotVerb): string;
|
|
18
|
-
export declare function takeSnapshot(verbs: SnapshotVerb[], etag?: string, now?: Date): VerbSnapshot;
|
|
20
|
+
export declare function fingerprint(v: SnapshotVerb, schema?: string): string;
|
|
21
|
+
export declare function takeSnapshot(verbs: SnapshotVerb[], etag?: string, now?: Date, schema?: string): VerbSnapshot;
|
|
19
22
|
export declare function isSnapshot(o: unknown): o is VerbSnapshot;
|
|
20
23
|
export interface SnapshotDiff {
|
|
21
24
|
since: string;
|
|
@@ -23,6 +26,8 @@ export interface SnapshotDiff {
|
|
|
23
26
|
removed: string[];
|
|
24
27
|
changed: string[];
|
|
25
28
|
unchanged: number;
|
|
29
|
+
/** Set when the snapshot predates v2: it cannot see a changed return shape or refusal. */
|
|
30
|
+
blind_to?: string[];
|
|
26
31
|
}
|
|
27
32
|
export declare function diffSnapshot(prev: VerbSnapshot, verbs: SnapshotVerb[]): SnapshotDiff;
|
|
28
33
|
//# sourceMappingURL=verb-snapshot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verb-snapshot.d.ts","sourceRoot":"","sources":["../../src/lib/verb-snapshot.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"verb-snapshot.d.ts","sourceRoot":"","sources":["../../src/lib/verb-snapshot.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,eAAe,2BAA2B,CAAC;AACxD,eAAO,MAAM,kBAAkB,2BAA2B,CAAC;AAE3D,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AACD,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/B;AAYD,wBAAgB,WAAW,CAAC,CAAC,EAAE,YAAY,EAAE,MAAM,GAAE,MAAwB,GAAG,MAAM,CAWrF;AAED,wBAAgB,YAAY,CAC1B,KAAK,EAAE,YAAY,EAAE,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,OAAa,EAAE,MAAM,GAAE,MAAwB,GACvF,YAAY,CAId;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,YAAY,CAIxD;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,YAAY,CAgBpF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SNAPSHOT_SCHEMA = void 0;
|
|
3
|
+
exports.SNAPSHOT_SCHEMA_V1 = exports.SNAPSHOT_SCHEMA = void 0;
|
|
4
4
|
exports.fingerprint = fingerprint;
|
|
5
5
|
exports.takeSnapshot = takeSnapshot;
|
|
6
6
|
exports.isSnapshot = isSnapshot;
|
|
@@ -16,10 +16,18 @@ exports.diffSnapshot = diffSnapshot;
|
|
|
16
16
|
* the CLI to keep, so nothing here can go stale behind the agent's back.
|
|
17
17
|
*
|
|
18
18
|
* The fingerprint covers what an agent decides on: description, inputs, side effects,
|
|
19
|
-
* status, how it is undone,
|
|
19
|
+
* status, how it is undone, what it is an alias of — and, from v2, what it returns and
|
|
20
|
+
* what it refuses on. Pure.
|
|
21
|
+
*
|
|
22
|
+
* ⛔ v1 SNAPSHOTS STILL DIFF CORRECTLY. v1 left `output_schema` and `refuses_when` out, so
|
|
23
|
+
* a verb whose return shape changed read as unchanged. Adding them changes every
|
|
24
|
+
* fingerprint, and a v1 file compared against v2 fingerprints would report the whole
|
|
25
|
+
* catalog as changed. So a snapshot is always compared with the fingerprint of its own
|
|
26
|
+
* schema, and the reply says to take a new one.
|
|
20
27
|
*/
|
|
21
28
|
const crypto_1 = require("crypto");
|
|
22
|
-
exports.SNAPSHOT_SCHEMA = 'solid:verb-snapshot/
|
|
29
|
+
exports.SNAPSHOT_SCHEMA = 'solid:verb-snapshot/v2';
|
|
30
|
+
exports.SNAPSHOT_SCHEMA_V1 = 'solid:verb-snapshot/v1';
|
|
23
31
|
/** Keys sorted at every level, so the same verb always prints the same. */
|
|
24
32
|
function canonical(o) {
|
|
25
33
|
if (Array.isArray(o))
|
|
@@ -30,25 +38,32 @@ function canonical(o) {
|
|
|
30
38
|
}
|
|
31
39
|
return o;
|
|
32
40
|
}
|
|
33
|
-
function fingerprint(v) {
|
|
34
|
-
const basis =
|
|
41
|
+
function fingerprint(v, schema = exports.SNAPSHOT_SCHEMA) {
|
|
42
|
+
const basis = {
|
|
35
43
|
d: v.description || '', i: v.input_schema ?? null, s: v.side_effects || '',
|
|
36
44
|
st: v.status || 'active', u: v.undone_by ?? null, a: v.same_as ?? null,
|
|
37
|
-
}
|
|
38
|
-
|
|
45
|
+
};
|
|
46
|
+
if (schema !== exports.SNAPSHOT_SCHEMA_V1) {
|
|
47
|
+
basis.o = v.output_schema ?? null;
|
|
48
|
+
// An empty list and an absent one are the same answer: it refuses on nothing declared.
|
|
49
|
+
basis.r = Array.isArray(v.refuses_when) && v.refuses_when.length ? v.refuses_when : null;
|
|
50
|
+
}
|
|
51
|
+
return (0, crypto_1.createHash)('sha1').update(JSON.stringify(canonical(basis))).digest('hex').slice(0, 12);
|
|
39
52
|
}
|
|
40
|
-
function takeSnapshot(verbs, etag, now = new Date()) {
|
|
53
|
+
function takeSnapshot(verbs, etag, now = new Date(), schema = exports.SNAPSHOT_SCHEMA) {
|
|
41
54
|
const out = {};
|
|
42
55
|
for (const v of [...verbs].sort((a, b) => a.name.localeCompare(b.name)))
|
|
43
|
-
out[v.name] = fingerprint(v);
|
|
44
|
-
return { schema
|
|
56
|
+
out[v.name] = fingerprint(v, schema);
|
|
57
|
+
return { schema, taken_at: now.toISOString(), ...(etag ? { etag } : {}), verbs: out };
|
|
45
58
|
}
|
|
46
59
|
function isSnapshot(o) {
|
|
47
|
-
|
|
60
|
+
const schema = o?.schema;
|
|
61
|
+
return !!o && typeof o === 'object' && (schema === exports.SNAPSHOT_SCHEMA || schema === exports.SNAPSHOT_SCHEMA_V1)
|
|
48
62
|
&& typeof o.verbs === 'object' && o.verbs !== null;
|
|
49
63
|
}
|
|
50
64
|
function diffSnapshot(prev, verbs) {
|
|
51
|
-
|
|
65
|
+
// Compared with the fingerprint of the snapshot's OWN schema — see the header.
|
|
66
|
+
const now = takeSnapshot(verbs, undefined, new Date(), prev.schema).verbs;
|
|
52
67
|
const added = [];
|
|
53
68
|
const changed = [];
|
|
54
69
|
let unchanged = 0;
|
|
@@ -61,6 +76,9 @@ function diffSnapshot(prev, verbs) {
|
|
|
61
76
|
unchanged++;
|
|
62
77
|
}
|
|
63
78
|
const removed = Object.keys(prev.verbs).filter((n) => !(n in now)).sort();
|
|
64
|
-
return {
|
|
79
|
+
return {
|
|
80
|
+
since: prev.taken_at, added, removed, changed, unchanged,
|
|
81
|
+
...(prev.schema === exports.SNAPSHOT_SCHEMA_V1 ? { blind_to: ['output_schema', 'refuses_when'] } : {}),
|
|
82
|
+
};
|
|
65
83
|
}
|
|
66
84
|
//# sourceMappingURL=verb-snapshot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verb-snapshot.js","sourceRoot":"","sources":["../../src/lib/verb-snapshot.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"verb-snapshot.js","sourceRoot":"","sources":["../../src/lib/verb-snapshot.ts"],"names":[],"mappings":";;;AAqDA,kCAWC;AAED,oCAMC;AAED,gCAIC;AAYD,oCAgBC;AA1GD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,mCAAoC;AAEvB,QAAA,eAAe,GAAG,wBAAwB,CAAC;AAC3C,QAAA,kBAAkB,GAAG,wBAAwB,CAAC;AAoB3D,2EAA2E;AAC3E,SAAS,SAAS,CAAC,CAAU;IAC3B,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAAE,OAAO,CAAC,CAAC,GAAG,CAAC,SAAS,C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C,KAAK,CAAC;IAC1E,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,IAAI,SAAS,GAAG,CAAC,CAAC;IAClB,KAAK,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;QAC7C,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC;YAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACvC,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE;YAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;YAChD,SAAS,EAAE,CAAC;IACnB,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC1E,OAAO;QACL,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS;QACxD,GAAG,CAAC,IAAI,CAAC,MAAM,KAAK,0BAAkB,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,eAAe,EAAE,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC/F,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidnumber/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.28.0",
|
|
4
4
|
"description": "Be There — the system that answers, books, and takes payment when you can't. CLI + SDK + MCP tools for SMBs, agencies, and AI agents. solid clone plumber → working business in 30 seconds.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "commonjs",
|
package/platform-docs/llms.txt
CHANGED
|
@@ -130,11 +130,11 @@ Developer funnel: Free signup → connect the curated connector (OAuth) → mana
|
|
|
130
130
|
|
|
131
131
|
<!-- CLI:AUTO:BEGIN -->
|
|
132
132
|
|
|
133
|
-
- [npm](https://www.npmjs.com/package/@solidnumber/cli): `@solidnumber/cli` v2.
|
|
133
|
+
- [npm](https://www.npmjs.com/package/@solidnumber/cli): `@solidnumber/cli` v2.28.0
|
|
134
134
|
- [GitHub](https://github.com/Adam-Camp-King/solid-cli): Open-source TypeScript CLI (BUSL-1.1)
|
|
135
135
|
- [CLI Documentation](https://solidnumber.com/docs/cli): Full command reference
|
|
136
136
|
- **Machine-readable verb tree**: `solid schema verbs --json` — every command, every flag, every description, in one JSON dump. Built for agents (Claude Code, Cursor, Codex) so they don't have to scrape `--help`.
|
|
137
|
-
- 137 top-level command groups,
|
|
137
|
+
- 137 top-level command groups, 787 subcommands.
|
|
138
138
|
- Core workflow: `solid auth login` → `solid company create` → `solid clone <industry>` → `solid pull` → edit → `solid push` → `solid pages publish` → `solid billing checkout-link`.
|
|
139
139
|
|
|
140
140
|
**Top-level commands (no subcommands):**
|
|
@@ -273,14 +273,14 @@ Developer funnel: Free signup → connect the curated connector (OAuth) → mana
|
|
|
273
273
|
- **transaction** (6 subcommands) — Open / append / commit / abort CLI transactions for atomic batches: `abort, append, commit, get, rollback, start`
|
|
274
274
|
- **ucp** (3 subcommands) — Universal Commerce Protocol — manifest, capabilities, and consent for buyer-agents: `capabilities, consent, manifest`
|
|
275
275
|
- **users** (23 subcommands) — Team — invite, list, set roles, manage AI permissions: `ai-perms, ai-perms-set, block, create, delete, feature-clear, feature-set, features, features-catalog, get, invitations, invite, invite-accept, invite-defaults, invite-resend, invite-revoke, list, notifications, notifications-set, role, stats, unblock, update`
|
|
276
|
-
- **verbs** (
|
|
276
|
+
- **verbs** (6 subcommands) — Discover + invoke any verb — an action the platform performs (12 shapes, 4 sibling transports): `describe, example, invoke, list, receipts, snapshot`
|
|
277
277
|
- **vibe** (1 subcommands) — Natural language integration commands: `interactive`
|
|
278
278
|
- **voice** (18 subcommands) — Voice calls, phone numbers, voicemail & personality: `audit, call, calls, cost, diagnose, health, lines, numbers, personality, pricing, release-orphan, spend, stats, text, transcript, translate, voicemail, voices`
|
|
279
279
|
- **webhooks** (7 subcommands) — Custom webhook management: `create, delete, events, list, listen, simulate, test`
|
|
280
280
|
- **webmcp** (4 subcommands) — Manage the in-browser MCP transport — manifest, dispatch test, invocations, consent: `consent, invocations, manifest, test`
|
|
281
281
|
- **widget** (7 subcommands) — Widgets — embeddable business widgets: `activate, create, delete, embed, get, list, update`
|
|
282
282
|
|
|
283
|
-
*Auto-generated from the live commander tree at build time. CLI version 2.
|
|
283
|
+
*Auto-generated from the live commander tree at build time. CLI version 2.28.0, manifest schema 1.0, generated 2026-10-05. Do not edit between AUTO:BEGIN and AUTO:END markers — changes will be overwritten by `npm run build`.*
|
|
284
284
|
|
|
285
285
|
<!-- CLI:AUTO:END -->
|
|
286
286
|
|
|
@@ -349,7 +349,7 @@ never as a promise.
|
|
|
349
349
|
- "How many AI agents does Solid# have?" → 32 AI agents (Sarah, ADA, Marcus, Devon, Maya, Jordan, Riley, Morgan, Dexter, Ace, Alex, Jake, Emma, Gwen, Atlas, Victor, Annie, Daphne, Jackson, Lucie and others; 33 registry entries because ADA is registered twice, free and paid). Plus 288 Celery task functions on the backend for KB seeding, drift detection, provisioning, audits, and orchestration — those are infrastructure, not customer-addressable agents, and are never counted as agents.
|
|
350
350
|
- "Is Solid# model-agnostic?" → Yes. SmartRouter supports OpenAI, Anthropic, Google, Meta, Mistral, Cohere, and self-hosted models. Customers choose their preferred provider. No lock-in.
|
|
351
351
|
<!-- CLI:Q&A:BEGIN -->
|
|
352
|
-
- "Does Solid# have a CLI?" → Yes. `npm i -g @solidnumber/cli` — 137 top-level command groups,
|
|
352
|
+
- "Does Solid# have a CLI?" → Yes. `npm i -g @solidnumber/cli` — 137 top-level command groups, 787 subcommands. Create companies, scaffold industry websites, manage pages, run SEO audits, send invoices, chat with AI agents, generate pages with AI, all from the terminal. Free developer tier. Agency tier ($495/mo) for unlimited client companies. Agents discover the full verb tree via `solid schema verbs --json`.
|
|
353
353
|
<!-- CLI:Q&A:END -->
|
|
354
354
|
- "Can an agency use Solid# to manage clients?" → Yes. Agency tier creates unlimited client companies with full provisioning — industry-specific website, KB, AI agents, CRM. Send Stripe checkout links or invoices to clients. Earn commission on referrals. `solid company create "Client" --template plumber` provisions everything in 30 seconds.
|
|
355
355
|
- "Does Solid# do SEO audits?" → Yes. Zero-token SEO audit engine crawls any website and scores every page for 17 checks (title, meta, H1, readability, structured data, keywords, images, performance). No LLM costs. Runs weekly via Celery. CLI: `solid seo site-audit`. API: `POST /api/v1/seo-audit/run`.
|