@aiwayds/dsh-topics-memory 0.24.1 → 0.25.1
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/lib/distill.d.ts +54 -3
- package/lib/distill.js +257 -59
- package/lib/index.js +12 -8
- package/lib/pipeline-events.d.ts +5 -2
- package/lib/pipeline-events.js +1 -0
- package/package.json +17 -17
- package/src/distill.ts +281 -55
- package/src/index.ts +12 -8
- package/src/pipeline-events.ts +6 -2
package/src/pipeline-events.ts
CHANGED
|
@@ -23,8 +23,11 @@ import { metaDir } from './paths.ts'
|
|
|
23
23
|
* the slow lane's per-run disposition row (quality.ts); the distill/link
|
|
24
24
|
* kinds are the A2/A6 producers' contract — they import this module. The
|
|
25
25
|
* two `seam-*` kinds are the B-line dual-write audit trail (卷二 §6.2:
|
|
26
|
-
* caller-identity audit — opts.actor — rides every seam call).
|
|
27
|
-
|
|
26
|
+
* caller-identity audit — opts.actor — rides every seam call).
|
|
27
|
+
* `lesson-conflict-flagged` is the lesson distill branch's conflict
|
|
28
|
+
* self-check flag (B2 决议 5): informational for the B4 approval surface —
|
|
29
|
+
* the draft still lands as hint, no lifecycle state changes on this event. */
|
|
30
|
+
export type PipelineEventKind = 'slow-lane-outcome' | 'distill-op-invalid' | 'distill-op-retry-exhausted' | 'link-ref-rejected' | 'seam-observations-fed' | 'seam-lesson-status' | 'lesson-conflict-flagged'
|
|
28
31
|
|
|
29
32
|
/** File NAME inside the bundle's meta dir (path via pipelineEventsFile). */
|
|
30
33
|
export const PIPELINE_EVENTS_FILE = 'pipeline-events.jsonl'
|
|
@@ -51,6 +54,7 @@ const KNOWN_KINDS: ReadonlySet<string> = new Set<string>([
|
|
|
51
54
|
'link-ref-rejected',
|
|
52
55
|
'seam-observations-fed',
|
|
53
56
|
'seam-lesson-status',
|
|
57
|
+
'lesson-conflict-flagged',
|
|
54
58
|
])
|
|
55
59
|
|
|
56
60
|
export function pipelineEventsFile(bundleDir: string): string {
|