@popmelt.com/core 0.9.0 → 0.10.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
@@ -5,6 +5,11 @@ type ImprintScope = {
5
5
  kind: ImprintScopeKind;
6
6
  values: string[];
7
7
  };
8
+ /** A store-qualified address; abstraction level is intentionally not encoded. */
9
+ type ImprintExplanationRef = {
10
+ storeId: string;
11
+ explanationId: string;
12
+ };
8
13
  type ImprintEvidence = {
9
14
  id: string;
10
15
  kind: 'observation' | 'application' | 'confirmation' | 'correction' | 'exception' | 'rejection';
@@ -48,6 +53,10 @@ type ImprintRelation = {
48
53
  rationale: string;
49
54
  createdAt: string;
50
55
  };
56
+ type QualifiedImprintRelation = Omit<ImprintRelation, 'fromId' | 'toId'> & {
57
+ from: ImprintExplanationRef;
58
+ to: ImprintExplanationRef;
59
+ };
51
60
  type ImprintGraph = {
52
61
  version: 1;
53
62
  projectId: string;
@@ -173,6 +182,7 @@ type PopmeltOptions = {
173
182
  type PopmeltHandle = {
174
183
  port: number;
175
184
  projectId: string;
185
+ storeId?: string;
176
186
  close: () => Promise<void>;
177
187
  };
178
188
 
@@ -350,6 +360,9 @@ declare class ImprintService {
350
360
  }): Promise<'applied' | 'pending_correction'>;
351
361
  }
352
362
 
363
+ declare function imprintExplanationRef(storeId: string, explanationId: string): ImprintExplanationRef;
364
+ declare function qualifyImprintRelation(storeId: string, relation: ImprintRelation): QualifiedImprintRelation;
365
+
353
366
  type StartPopmeltOptions = PopmeltOptions & {
354
367
  force?: boolean;
355
368
  detached?: boolean;
@@ -358,4 +371,4 @@ type StartPopmeltOptions = PopmeltOptions & {
358
371
  };
359
372
  declare function startPopmelt(options?: StartPopmeltOptions): Promise<PopmeltHandle>;
360
373
 
361
- export { type ImprintConcrete, type ImprintContext, type ImprintEvidence, type ImprintExplanation, type ImprintExplanationKind, type ImprintExplanationState, type ImprintGraph, type ImprintGroundingAction, type ImprintMutation, type ImprintRelation, type ImprintRelationType, type ImprintScope, ImprintService, ImprintStore, type ImprintThreadSummary, type ImprintTransaction, type PopmeltHandle, type PopmeltOptions, type StartPopmeltOptions, formatImprintPrompt, parseImprintDraft, startPopmelt };
374
+ export { type ImprintConcrete, type ImprintContext, type ImprintEvidence, type ImprintExplanation, type ImprintExplanationKind, type ImprintExplanationRef, type ImprintExplanationState, type ImprintGraph, type ImprintGroundingAction, type ImprintMutation, type ImprintRelation, type ImprintRelationType, type ImprintScope, ImprintService, ImprintStore, type ImprintThreadSummary, type ImprintTransaction, type PopmeltHandle, type PopmeltOptions, type QualifiedImprintRelation, type StartPopmeltOptions, formatImprintPrompt, imprintExplanationRef, parseImprintDraft, qualifyImprintRelation, startPopmelt };