@maycombhq/sdk 2.0.0-beta.10 → 2.0.0-beta.11
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/npm/core/api.d.ts +513 -11
- package/npm/core/catalog.d.ts +66 -64
- package/npm/core/contract-check.d.ts +251 -0
- package/npm/core/facts-join-prototype.d.ts +5 -0
- package/npm/core/facts-terms.d.ts +108 -0
- package/npm/core/fs.d.ts +1 -1
- package/npm/core/host-questions.d.ts +45 -0
- package/npm/core/index.d.ts +4 -0
- package/npm/core/merge.d.ts +7 -0
- package/npm/core/metarepo.d.ts +1 -1
- package/npm/core/migrate.d.ts +3 -2
- package/npm/core/org-notes.d.ts +180 -0
- package/npm/core/orgpack-defaults.d.ts +1 -1
- package/npm/core/profile-migrate.d.ts +11 -0
- package/npm/core/questions.d.ts +15 -0
- package/npm/core/schema/common.d.ts +8 -8
- package/npm/core/schema/conventions.d.ts +7 -2
- package/npm/core/schema/fact-corrections.d.ts +1 -0
- package/npm/core/schema/facts.d.ts +284 -2
- package/npm/core/schema/kinds.d.ts +66 -64
- package/npm/core/schema/orgpack.d.ts +9 -1
- package/npm/core/schema/question.d.ts +37 -2
- package/npm/core/schema/repo-type.d.ts +20 -2
- package/npm/core/schema/scan-verify.d.ts +45 -45
- package/npm/core/schema/version.d.ts +2 -1
- package/npm/index.js +2300 -1983
- package/package.json +1 -1
|
@@ -7,7 +7,24 @@ import { z } from "zod";
|
|
|
7
7
|
* so what was learned on one repo of a type is reused on the next. Distinct from the platform
|
|
8
8
|
* profiles in profiles/<platform>/.
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Version 2 (ADR 0163) adds `notes`: what the organisation's own terms mean in repos of the type,
|
|
12
|
+
* and what must hold in them, in its own words. Optional, so a version-1 file reads as it is and
|
|
13
|
+
* comes back as version 2 in memory; writers write version 2.
|
|
14
|
+
*/
|
|
15
|
+
export declare const REPO_TYPE_SCHEMA_VERSION: 2;
|
|
16
|
+
/**
|
|
17
|
+
* A note in the organisation's own words (ADR 0163): plain text, read by the assistant as data
|
|
18
|
+
* when it reads a repo of the type, never parsed by Atticus. One may say what a term means
|
|
19
|
+
* ("`cmdb` in userAccess.json lists the apps let in to the API") or what must hold ("every call to
|
|
20
|
+
* a vendor uses mTLS"); a note that reads as a rule is offered as a checklist rule draft.
|
|
21
|
+
*
|
|
22
|
+
* One line: a note is handed to the assistant as one quoted line of a data block, so a line break
|
|
23
|
+
* is refused (the edges are trimmed first, so a folded YAML scalar's last break is fine).
|
|
24
|
+
* `atticus repo-type note --add` and a term answer's offered note put a break as a space.
|
|
25
|
+
*/
|
|
26
|
+
export declare const OrgNote: z.ZodString;
|
|
27
|
+
export declare const OrgNotes: z.ZodArray<z.ZodString>;
|
|
11
28
|
/** The build files a dependency is looked for in when a signal doesn't say. */
|
|
12
29
|
export declare const DEFAULT_BUILD_FILES: string[];
|
|
13
30
|
export declare const FingerprintSignal: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -63,7 +80,7 @@ export declare const SettingsTemplate: z.ZodObject<{
|
|
|
63
80
|
}, z.core.$strict>;
|
|
64
81
|
export type SettingsTemplate = z.infer<typeof SettingsTemplate>;
|
|
65
82
|
export declare const RepoType: z.ZodObject<{
|
|
66
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
83
|
+
schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
|
|
67
84
|
id: z.ZodString;
|
|
68
85
|
name: z.ZodString;
|
|
69
86
|
description: z.ZodString;
|
|
@@ -105,5 +122,6 @@ export declare const RepoType: z.ZodObject<{
|
|
|
105
122
|
}, z.core.$strict>>>;
|
|
106
123
|
}, z.core.$strict>>;
|
|
107
124
|
skills: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
125
|
+
notes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
108
126
|
}, z.core.$strict>;
|
|
109
127
|
export type RepoType = z.infer<typeof RepoType>;
|
|
@@ -24,17 +24,17 @@ export declare const VerifySettings: z.ZodObject<{
|
|
|
24
24
|
why: z.ZodString;
|
|
25
25
|
at: z.ZodString;
|
|
26
26
|
}, z.core.$strict>>>;
|
|
27
|
-
|
|
27
|
+
prefixes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
28
28
|
paths: z.ZodArray<z.ZodString>;
|
|
29
|
-
|
|
30
|
-
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
29
|
+
prefix: z.ZodString;
|
|
31
30
|
why: z.ZodString;
|
|
32
31
|
at: z.ZodString;
|
|
33
32
|
value: z.ZodString;
|
|
34
33
|
}, z.core.$strict>>>;
|
|
35
|
-
|
|
34
|
+
clients: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
36
35
|
paths: z.ZodArray<z.ZodString>;
|
|
37
|
-
|
|
36
|
+
base: z.ZodString;
|
|
37
|
+
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
38
38
|
why: z.ZodString;
|
|
39
39
|
at: z.ZodString;
|
|
40
40
|
value: z.ZodString;
|
|
@@ -49,17 +49,17 @@ export declare const VerifyFix: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
49
49
|
why: z.ZodString;
|
|
50
50
|
at: z.ZodString;
|
|
51
51
|
}, z.core.$strict>>>;
|
|
52
|
-
|
|
52
|
+
prefixes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
53
53
|
paths: z.ZodArray<z.ZodString>;
|
|
54
|
-
|
|
55
|
-
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
54
|
+
prefix: z.ZodString;
|
|
56
55
|
why: z.ZodString;
|
|
57
56
|
at: z.ZodString;
|
|
58
57
|
value: z.ZodString;
|
|
59
58
|
}, z.core.$strict>>>;
|
|
60
|
-
|
|
59
|
+
clients: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
61
60
|
paths: z.ZodArray<z.ZodString>;
|
|
62
|
-
|
|
61
|
+
base: z.ZodString;
|
|
62
|
+
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
63
63
|
why: z.ZodString;
|
|
64
64
|
at: z.ZodString;
|
|
65
65
|
value: z.ZodString;
|
|
@@ -105,17 +105,17 @@ export declare const VerifyMissed: z.ZodObject<{
|
|
|
105
105
|
why: z.ZodString;
|
|
106
106
|
at: z.ZodString;
|
|
107
107
|
}, z.core.$strict>>>;
|
|
108
|
-
|
|
108
|
+
prefixes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
109
109
|
paths: z.ZodArray<z.ZodString>;
|
|
110
|
-
|
|
111
|
-
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
110
|
+
prefix: z.ZodString;
|
|
112
111
|
why: z.ZodString;
|
|
113
112
|
at: z.ZodString;
|
|
114
113
|
value: z.ZodString;
|
|
115
114
|
}, z.core.$strict>>>;
|
|
116
|
-
|
|
115
|
+
clients: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
117
116
|
paths: z.ZodArray<z.ZodString>;
|
|
118
|
-
|
|
117
|
+
base: z.ZodString;
|
|
118
|
+
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
119
119
|
why: z.ZodString;
|
|
120
120
|
at: z.ZodString;
|
|
121
121
|
value: z.ZodString;
|
|
@@ -171,17 +171,17 @@ export declare const VerifyWrong: z.ZodObject<{
|
|
|
171
171
|
why: z.ZodString;
|
|
172
172
|
at: z.ZodString;
|
|
173
173
|
}, z.core.$strict>>>;
|
|
174
|
-
|
|
174
|
+
prefixes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
175
175
|
paths: z.ZodArray<z.ZodString>;
|
|
176
|
-
|
|
177
|
-
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
176
|
+
prefix: z.ZodString;
|
|
178
177
|
why: z.ZodString;
|
|
179
178
|
at: z.ZodString;
|
|
180
179
|
value: z.ZodString;
|
|
181
180
|
}, z.core.$strict>>>;
|
|
182
|
-
|
|
181
|
+
clients: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
183
182
|
paths: z.ZodArray<z.ZodString>;
|
|
184
|
-
|
|
183
|
+
base: z.ZodString;
|
|
184
|
+
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
185
185
|
why: z.ZodString;
|
|
186
186
|
at: z.ZodString;
|
|
187
187
|
value: z.ZodString;
|
|
@@ -240,17 +240,17 @@ export declare const VerifyAnswer: z.ZodObject<{
|
|
|
240
240
|
why: z.ZodString;
|
|
241
241
|
at: z.ZodString;
|
|
242
242
|
}, z.core.$strict>>>;
|
|
243
|
-
|
|
243
|
+
prefixes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
244
244
|
paths: z.ZodArray<z.ZodString>;
|
|
245
|
-
|
|
246
|
-
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
245
|
+
prefix: z.ZodString;
|
|
247
246
|
why: z.ZodString;
|
|
248
247
|
at: z.ZodString;
|
|
249
248
|
value: z.ZodString;
|
|
250
249
|
}, z.core.$strict>>>;
|
|
251
|
-
|
|
250
|
+
clients: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
252
251
|
paths: z.ZodArray<z.ZodString>;
|
|
253
|
-
|
|
252
|
+
base: z.ZodString;
|
|
253
|
+
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
254
254
|
why: z.ZodString;
|
|
255
255
|
at: z.ZodString;
|
|
256
256
|
value: z.ZodString;
|
|
@@ -304,17 +304,17 @@ export declare const VerifyAnswer: z.ZodObject<{
|
|
|
304
304
|
why: z.ZodString;
|
|
305
305
|
at: z.ZodString;
|
|
306
306
|
}, z.core.$strict>>>;
|
|
307
|
-
|
|
307
|
+
prefixes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
308
308
|
paths: z.ZodArray<z.ZodString>;
|
|
309
|
-
|
|
310
|
-
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
309
|
+
prefix: z.ZodString;
|
|
311
310
|
why: z.ZodString;
|
|
312
311
|
at: z.ZodString;
|
|
313
312
|
value: z.ZodString;
|
|
314
313
|
}, z.core.$strict>>>;
|
|
315
|
-
|
|
314
|
+
clients: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
316
315
|
paths: z.ZodArray<z.ZodString>;
|
|
317
|
-
|
|
316
|
+
base: z.ZodString;
|
|
317
|
+
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
318
318
|
why: z.ZodString;
|
|
319
319
|
at: z.ZodString;
|
|
320
320
|
value: z.ZodString;
|
|
@@ -375,17 +375,17 @@ export declare const ScanVerifyProposal: z.ZodObject<{
|
|
|
375
375
|
why: z.ZodString;
|
|
376
376
|
at: z.ZodString;
|
|
377
377
|
}, z.core.$strict>>>;
|
|
378
|
-
|
|
378
|
+
prefixes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
379
379
|
paths: z.ZodArray<z.ZodString>;
|
|
380
|
-
|
|
381
|
-
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
380
|
+
prefix: z.ZodString;
|
|
382
381
|
why: z.ZodString;
|
|
383
382
|
at: z.ZodString;
|
|
384
383
|
value: z.ZodString;
|
|
385
384
|
}, z.core.$strict>>>;
|
|
386
|
-
|
|
385
|
+
clients: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
387
386
|
paths: z.ZodArray<z.ZodString>;
|
|
388
|
-
|
|
387
|
+
base: z.ZodString;
|
|
388
|
+
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
389
389
|
why: z.ZodString;
|
|
390
390
|
at: z.ZodString;
|
|
391
391
|
value: z.ZodString;
|
|
@@ -402,17 +402,17 @@ export declare const ScanVerifyProposal: z.ZodObject<{
|
|
|
402
402
|
why: z.ZodString;
|
|
403
403
|
at: z.ZodString;
|
|
404
404
|
}, z.core.$strict>>>;
|
|
405
|
-
|
|
405
|
+
prefixes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
406
406
|
paths: z.ZodArray<z.ZodString>;
|
|
407
|
-
|
|
408
|
-
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
407
|
+
prefix: z.ZodString;
|
|
409
408
|
why: z.ZodString;
|
|
410
409
|
at: z.ZodString;
|
|
411
410
|
value: z.ZodString;
|
|
412
411
|
}, z.core.$strict>>>;
|
|
413
|
-
|
|
412
|
+
clients: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
414
413
|
paths: z.ZodArray<z.ZodString>;
|
|
415
|
-
|
|
414
|
+
base: z.ZodString;
|
|
415
|
+
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
416
416
|
why: z.ZodString;
|
|
417
417
|
at: z.ZodString;
|
|
418
418
|
value: z.ZodString;
|
|
@@ -466,17 +466,17 @@ export declare const ScanVerifyProposal: z.ZodObject<{
|
|
|
466
466
|
why: z.ZodString;
|
|
467
467
|
at: z.ZodString;
|
|
468
468
|
}, z.core.$strict>>>;
|
|
469
|
-
|
|
469
|
+
prefixes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
470
470
|
paths: z.ZodArray<z.ZodString>;
|
|
471
|
-
|
|
472
|
-
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
471
|
+
prefix: z.ZodString;
|
|
473
472
|
why: z.ZodString;
|
|
474
473
|
at: z.ZodString;
|
|
475
474
|
value: z.ZodString;
|
|
476
475
|
}, z.core.$strict>>>;
|
|
477
|
-
|
|
476
|
+
clients: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
478
477
|
paths: z.ZodArray<z.ZodString>;
|
|
479
|
-
|
|
478
|
+
base: z.ZodString;
|
|
479
|
+
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
480
480
|
why: z.ZodString;
|
|
481
481
|
at: z.ZodString;
|
|
482
482
|
value: z.ZodString;
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
* Current catalog schema version. Bumping it requires an ADR and a migration.
|
|
3
3
|
* Version 2 (ADR 0031) added the Capability kind and changed no existing field.
|
|
4
4
|
* Version 3 (ADR 0125) added `required` on a Schema field, optional, and changed no other field.
|
|
5
|
+
* Version 4 (ADR 0164) added `protobuf` to a Schema's `format`, and changed no other field.
|
|
5
6
|
*
|
|
6
7
|
* It lives in its own file, with no schema beside it, so the command line can print it in its
|
|
7
8
|
* help without loading zod (`@maycombhq/core/light`); `./common.js` exports it with C1.
|
|
8
9
|
*/
|
|
9
|
-
export declare const SCHEMA_VERSION:
|
|
10
|
+
export declare const SCHEMA_VERSION: 4;
|