@popmelt.com/core 0.8.16 → 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/README.md +80 -162
- package/dist/bridge-entry.mjs +70 -58
- package/dist/{chunk-C3CFAS6Y.mjs → chunk-UDWKKNYG.mjs} +1 -1
- package/dist/cli.mjs +63 -51
- package/dist/index.d.mts +10 -0
- package/dist/index.mjs +98 -43
- package/dist/plugin-astro.mjs +1 -1
- package/dist/plugin-vite.mjs +1 -1
- package/dist/react-scanner-ZXYS5M3Y.mjs +0 -0
- package/dist/render-generator-EANIDD2E.mjs +0 -0
- package/dist/server-S66CQCOZ.mjs +233 -0
- package/dist/server.d.mts +14 -0
- package/dist/server.mjs +75 -63
- package/package.json +15 -16
- package/dist/server-DDE2RMDV.mjs +0 -221
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
|
};
|