@popmelt.com/core 0.8.17 → 0.9.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/dist/server.d.mts CHANGED
@@ -140,6 +140,16 @@ type ImprintContext = {
140
140
  pendingGroundingExplanationIds?: string[];
141
141
  correctionExplanationIds?: string[];
142
142
  relations?: Array<Pick<ImprintRelation, 'id' | 'type' | 'fromId' | 'toId' | 'rationale'>>;
143
+ /** Explicit target/reference language detected in the current request. */
144
+ retrievalIntent?: {
145
+ target: string;
146
+ reference: string;
147
+ };
148
+ /**
149
+ * Directly relevant rejected history. These are warnings, not active
150
+ * explanations, and therefore cannot be cited as Imprint usage.
151
+ */
152
+ historicalCaveats?: Array<Pick<ImprintExplanation, 'id' | 'kind' | 'statement' | 'rationale' | 'scope' | 'state'>>;
143
153
  };
144
154
 
145
155
  type Provider = 'claude' | 'codex' | 'copilot';
@@ -254,6 +264,7 @@ type ImprintMutationDraft = {
254
264
  title: string;
255
265
  detail: string;
256
266
  };
267
+ usedExplanationIds?: string[];
257
268
  appliedExplanationIds: string[];
258
269
  mutations: ProposedMutation[];
259
270
  grounding?: {
@@ -267,6 +278,7 @@ type ImprintApplicationDraft = {
267
278
  title: string;
268
279
  detail: string;
269
280
  };
281
+ usedExplanationIds?: string[];
270
282
  appliedExplanationIds: string[];
271
283
  grounding?: {
272
284
  explanationId: string;
@@ -284,6 +296,8 @@ type ImprintRecognitionDraft = {
284
296
  type ImprintDraft = ImprintMutationDraft | ImprintApplicationDraft | ImprintRecognitionDraft | {
285
297
  decision: 'none';
286
298
  reason: ImprintNoopReason;
299
+ usedExplanationIds?: string[];
300
+ appliedExplanationIds?: string[];
287
301
  duplicateOfExplanationId?: string;
288
302
  scopeComparison?: 'equivalent' | 'existing_broader';
289
303
  };