@maycombhq/sdk 2.0.0-beta.18 → 2.0.0-beta.21
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/ai-decisions.d.ts +360 -0
- package/npm/core/api.d.ts +2811 -122
- package/npm/core/audit.d.ts +16 -4
- package/npm/core/catalog.d.ts +218 -66
- package/npm/core/decision-batches.d.ts +29 -0
- package/npm/core/declared-links.d.ts +62 -0
- package/npm/core/eol.d.ts +5 -0
- package/npm/core/facts-join.d.ts +66 -1
- package/npm/core/fs.d.ts +22 -3
- package/npm/core/host-questions.d.ts +5 -0
- package/npm/core/index.d.ts +7 -0
- package/npm/core/link-candidates.d.ts +103 -0
- package/npm/core/manifest-edit.d.ts +40 -0
- package/npm/core/merge.d.ts +19 -0
- package/npm/core/metarepo.d.ts +9 -0
- package/npm/core/orgpack-defaults.d.ts +7 -2
- package/npm/core/orgpack-load.d.ts +3 -0
- package/npm/core/question-roles.d.ts +24 -0
- package/npm/core/questions.d.ts +25 -2
- package/npm/core/runtime-migrate.d.ts +9 -0
- package/npm/core/schema/ai.d.ts +28 -7
- package/npm/core/schema/common.d.ts +32 -8
- package/npm/core/schema/component-type.d.ts +193 -0
- package/npm/core/schema/fact-corrections.d.ts +95 -2
- package/npm/core/schema/facts.d.ts +114 -2
- package/npm/core/schema/kinds.d.ts +228 -66
- package/npm/core/schema/orgpack.d.ts +43 -5
- package/npm/core/schema/question.d.ts +151 -6
- package/npm/core/schema/reading-rules.d.ts +51 -0
- package/npm/core/schema/review.d.ts +7 -7
- package/npm/core/schema/scan-verify.d.ts +42 -0
- package/npm/core/schema/version.d.ts +3 -1
- package/npm/index.js +4679 -2672
- package/package.json +1 -1
package/npm/core/audit.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export type AuditAnswer = (typeof AUDIT_ANSWERS)[number];
|
|
|
17
17
|
export declare const AuditItem: z.ZodObject<{
|
|
18
18
|
id: z.ZodString;
|
|
19
19
|
kind: z.ZodEnum<{
|
|
20
|
+
ai: "ai";
|
|
20
21
|
link: "link";
|
|
21
22
|
fact: "fact";
|
|
22
23
|
}>;
|
|
@@ -26,10 +27,12 @@ export declare const AuditItem: z.ZodObject<{
|
|
|
26
27
|
fact: z.ZodOptional<z.ZodString>;
|
|
27
28
|
value: z.ZodOptional<z.ZodString>;
|
|
28
29
|
to: z.ZodOptional<z.ZodString>;
|
|
30
|
+
decided: z.ZodOptional<z.ZodString>;
|
|
31
|
+
run: z.ZodOptional<z.ZodString>;
|
|
29
32
|
answer: z.ZodOptional<z.ZodEnum<{
|
|
30
|
-
unsure: "unsure";
|
|
31
|
-
wrong: "wrong";
|
|
32
33
|
right: "right";
|
|
34
|
+
wrong: "wrong";
|
|
35
|
+
unsure: "unsure";
|
|
33
36
|
}>>;
|
|
34
37
|
note: z.ZodOptional<z.ZodString>;
|
|
35
38
|
by: z.ZodOptional<z.ZodString>;
|
|
@@ -55,6 +58,7 @@ export declare const AuditFile: z.ZodObject<{
|
|
|
55
58
|
items: z.ZodArray<z.ZodObject<{
|
|
56
59
|
id: z.ZodString;
|
|
57
60
|
kind: z.ZodEnum<{
|
|
61
|
+
ai: "ai";
|
|
58
62
|
link: "link";
|
|
59
63
|
fact: "fact";
|
|
60
64
|
}>;
|
|
@@ -64,10 +68,12 @@ export declare const AuditFile: z.ZodObject<{
|
|
|
64
68
|
fact: z.ZodOptional<z.ZodString>;
|
|
65
69
|
value: z.ZodOptional<z.ZodString>;
|
|
66
70
|
to: z.ZodOptional<z.ZodString>;
|
|
71
|
+
decided: z.ZodOptional<z.ZodString>;
|
|
72
|
+
run: z.ZodOptional<z.ZodString>;
|
|
67
73
|
answer: z.ZodOptional<z.ZodEnum<{
|
|
68
|
-
unsure: "unsure";
|
|
69
|
-
wrong: "wrong";
|
|
70
74
|
right: "right";
|
|
75
|
+
wrong: "wrong";
|
|
76
|
+
unsure: "unsure";
|
|
71
77
|
}>>;
|
|
72
78
|
note: z.ZodOptional<z.ZodString>;
|
|
73
79
|
by: z.ZodOptional<z.ZodString>;
|
|
@@ -96,6 +102,8 @@ export declare function auditCandidates(facts: readonly Fact[]): AuditItemT[];
|
|
|
96
102
|
export declare function drawAudit(o: {
|
|
97
103
|
facts: readonly AuditItemT[];
|
|
98
104
|
links: readonly AuditItemT[];
|
|
105
|
+
/** ADR 0181: the AI's decisions standing for the repo (its pairings and answers). */
|
|
106
|
+
ai?: readonly AuditItemT[];
|
|
99
107
|
size: number;
|
|
100
108
|
seed: string;
|
|
101
109
|
}): AuditItemT[];
|
|
@@ -132,6 +140,10 @@ export interface AuditPrecision {
|
|
|
132
140
|
links: AuditTally;
|
|
133
141
|
/** Links by how they were joined (ADR 0135's flags). */
|
|
134
142
|
byHow: Record<string, AuditTally>;
|
|
143
|
+
/** ADR 0181: the AI's decisions (its pairings and answers), apart from the facts and links. */
|
|
144
|
+
ai: AuditTally;
|
|
145
|
+
/** ADR 0181: the AI's decisions by what they decided: `link` or `question`. */
|
|
146
|
+
byAi: Record<string, AuditTally>;
|
|
135
147
|
}
|
|
136
148
|
/**
|
|
137
149
|
* Precision from the answers: of the items answered right or wrong, the share right, with the
|