@maycombhq/sdk 2.0.0-beta.21 → 2.0.0-beta.23
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 +14 -1
- package/npm/core/api.d.ts +2993 -550
- package/npm/core/cite.d.ts +20 -4
- package/npm/core/facts-carry.d.ts +8 -2
- package/npm/core/facts-join.d.ts +78 -1
- package/npm/core/fs.d.ts +25 -0
- package/npm/core/glob.d.ts +14 -0
- package/npm/core/identity.d.ts +28 -0
- package/npm/core/index.d.ts +6 -0
- package/npm/core/kept-files.d.ts +17 -0
- package/npm/core/light.d.ts +2 -0
- package/npm/core/log.d.ts +2 -0
- package/npm/core/manifest-edit.d.ts +21 -3
- package/npm/core/metarepo.d.ts +8 -0
- package/npm/core/orgpack-defaults.d.ts +3 -1
- package/npm/core/printer.d.ts +4 -0
- package/npm/core/question-owners.d.ts +4 -0
- package/npm/core/question-roles.d.ts +64 -4
- package/npm/core/questions.d.ts +19 -3
- package/npm/core/repo-files.d.ts +60 -0
- package/npm/core/roles-migrate.d.ts +4 -3
- package/npm/core/run-log.d.ts +165 -0
- package/npm/core/schema/fact-corrections.d.ts +17 -3
- package/npm/core/schema/orgpack.d.ts +71 -18
- package/npm/core/schema/question.d.ts +55 -2
- package/npm/core/schema/scan-verify.d.ts +35 -0
- package/npm/core/setup-edit.d.ts +107 -0
- package/npm/fs-repo.d.ts +2 -1
- package/npm/index.js +1491 -110
- package/npm/listing.d.ts +14 -0
- package/package.json +1 -1
|
@@ -64,6 +64,11 @@ export type RuleKind = "path" | "host" | "topic";
|
|
|
64
64
|
* same way), as ADR 0153's `--match` takes it. Without a sibling sharing more, the corrected item's
|
|
65
65
|
* own folder (`/forge/limits/{id}` → `/forge/limits/**`), its host's parent domain, or its topic's
|
|
66
66
|
* family. Shown to the person before anything is saved; they may change it.
|
|
67
|
+
*
|
|
68
|
+
* Review round 48: the longest prefix shared with at least one sibling, not the prefix all the
|
|
69
|
+
* siblings share, so one distant sibling never widens `/api/v1/limits/**` to `/api/v1/**`; and a
|
|
70
|
+
* shared path of two segments or fewer that is wider than the item's own folder is too wide (as
|
|
71
|
+
* `/**` is): the item's own folder is taken instead.
|
|
67
72
|
*/
|
|
68
73
|
export declare function deriveMatch(item: RuleSubject, siblings: readonly RuleSubject[]): {
|
|
69
74
|
kind: RuleKind;
|
|
@@ -85,7 +90,11 @@ export declare const BatchLink: z.ZodObject<{
|
|
|
85
90
|
fact: z.ZodString;
|
|
86
91
|
line: z.ZodString;
|
|
87
92
|
}, z.core.$strict>;
|
|
88
|
-
/**
|
|
93
|
+
/**
|
|
94
|
+
* A question a batch answered or opened again, with the answer it had before (none when open).
|
|
95
|
+
* Review round 48 (additive): for an AI answer taken up from a proposal, the proposal file's text
|
|
96
|
+
* as it was (`proposal`), so Undo puts it back for a person to review.
|
|
97
|
+
*/
|
|
89
98
|
export declare const BatchQuestion: z.ZodObject<{
|
|
90
99
|
kind: z.ZodLiteral<"question">;
|
|
91
100
|
id: z.ZodString;
|
|
@@ -131,6 +140,7 @@ export declare const BatchQuestion: z.ZodObject<{
|
|
|
131
140
|
match: z.ZodString;
|
|
132
141
|
}, z.core.$strict>>;
|
|
133
142
|
}, z.core.$strict>>;
|
|
143
|
+
proposal: z.ZodOptional<z.ZodString>;
|
|
134
144
|
}, z.core.$strict>;
|
|
135
145
|
export declare const BatchItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
136
146
|
kind: z.ZodLiteral<"link">;
|
|
@@ -182,6 +192,7 @@ export declare const BatchItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
182
192
|
match: z.ZodString;
|
|
183
193
|
}, z.core.$strict>>;
|
|
184
194
|
}, z.core.$strict>>;
|
|
195
|
+
proposal: z.ZodOptional<z.ZodString>;
|
|
185
196
|
}, z.core.$strict>], "kind">;
|
|
186
197
|
export type BatchItemT = z.infer<typeof BatchItem>;
|
|
187
198
|
/**
|
|
@@ -278,6 +289,7 @@ export declare const DecisionBatch: z.ZodObject<{
|
|
|
278
289
|
match: z.ZodString;
|
|
279
290
|
}, z.core.$strict>>;
|
|
280
291
|
}, z.core.$strict>>;
|
|
292
|
+
proposal: z.ZodOptional<z.ZodString>;
|
|
281
293
|
}, z.core.$strict>], "kind">>;
|
|
282
294
|
reverted: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
283
295
|
kind: z.ZodLiteral<"link">;
|
|
@@ -329,6 +341,7 @@ export declare const DecisionBatch: z.ZodObject<{
|
|
|
329
341
|
match: z.ZodString;
|
|
330
342
|
}, z.core.$strict>>;
|
|
331
343
|
}, z.core.$strict>>;
|
|
344
|
+
proposal: z.ZodOptional<z.ZodString>;
|
|
332
345
|
}, z.core.$strict>], "kind">>;
|
|
333
346
|
undone: z.ZodOptional<z.ZodObject<{
|
|
334
347
|
by: z.ZodString;
|