@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.
@@ -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
- /** A question a batch answered or opened again, with the answer it had before (none when open). */
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;