@vostride/agent-qa-knowledge-local 0.2.2 → 0.2.4
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 +78 -0
- package/dist/embedder-worker/worker-entry.cjs.map +1 -1
- package/dist/embedder-worker/worker-entry.d.cts +1 -1
- package/dist/embedder-worker/worker-entry.d.ts +1 -1
- package/dist/embedder-worker/worker-entry.js.map +1 -1
- package/dist/index.cjs +571 -913
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -1190
- package/dist/index.d.ts +18 -1190
- package/dist/index.js +232 -584
- package/dist/index.js.map +1 -1
- package/dist/mark-evidence-plan-CmOkzw6u.d.cts +556 -0
- package/dist/mark-evidence-plan-CmOkzw6u.d.ts +556 -0
- package/dist/reader.cjs +68 -274
- package/dist/reader.cjs.map +1 -1
- package/dist/reader.d.cts +4 -38
- package/dist/reader.d.ts +4 -38
- package/dist/reader.js +83 -300
- package/dist/reader.js.map +1 -1
- package/dist/{worker-registration-C-9spEsf.d.cts → worker-registration-DAYLDaFV.d.cts} +0 -3
- package/dist/{worker-registration-C-9spEsf.d.ts → worker-registration-DAYLDaFV.d.ts} +0 -3
- package/package.json +10 -9
- package/dist/mark-evidence-plan-BCkYN07i.d.cts +0 -1014
- package/dist/mark-evidence-plan-BCkYN07i.d.ts +0 -1014
package/dist/reader.d.cts
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
export { e as AUTHORING_BRIEF_DEFAULT_BUDGET, f as AUTHORING_DENSE_K, p as AuthoringReaderDependencies,
|
|
2
|
-
import { CanaryOutcome,
|
|
1
|
+
export { e as AUTHORING_BRIEF_DEFAULT_BUDGET, f as AUTHORING_DENSE_K, p as AuthoringReaderDependencies, u as DiffSinceOptions, aW as HydratedEntry, aX as IndexRow, H as InspectRecordsOptions, N as KnowledgeMaintenanceScanError, O as KnowledgeMaintenanceScanIssue, P as KnowledgeRecordNotFoundError, U as MARK_EVIDENCE_TOKEN_PREFIX, W as MarkEvidenceEffect, X as MarkEvidencePlan, Y as MarkEvidenceTarget, $ as OpenServingKnowledgeReaderConfig, a0 as PlanMarkEvidenceInput, a2 as QUARANTINE_CLASS_DISPOSITIONS, aY as QUARANTINE_FLOOR_ELIGIBILITY, a6 as QUARANTINE_LEDGER_FILENAME, aa as QuarantineDisposition, aZ as QuarantineFloorEligibility, ab as QuarantineLedgerRead, R as RefusedQuarantineLine, al as ShowRecordOptions, aq as createAuthoringReader, as as diffSince, aw as foldQuarantineLedgerState, a_ as hydrateRows, ay as inspectRecords, aB as markEvidenceEvent, aE as openKnowledgeReader, aF as planMarkEvidence, aH as projectMarkEvidenceOutcome, aI as quarantineLedgerPath, a$ as readIndexRows, aM as readQuarantineLedger, aS as showRecord } from './mark-evidence-plan-CmOkzw6u.cjs';
|
|
2
|
+
import { CanaryOutcome, KnowledgeBundleSummary, KnowledgeRecordShowResult, KnowledgeGatesListResult } from '@vostride/agent-qa-schema';
|
|
3
3
|
export { BuildRange, ReadOptions, SearchOptions } from '@vostride/agent-qa-schema';
|
|
4
4
|
import '@vostride/agent-qa-agent';
|
|
5
5
|
import '@vostride/agent-qa-runner';
|
|
6
6
|
import 'node:sqlite';
|
|
7
7
|
|
|
8
|
-
/**
|
|
9
|
-
* D-22: bind one canary observation to the served candidate and attributed step. The schema
|
|
10
|
-
* evidence-token recipe adds the exercised anchor and build ordinal; together those fields are
|
|
11
|
-
* the complete replay identity required by §7.5.1.
|
|
12
|
-
*/
|
|
13
8
|
declare function canaryOutcomeObservationId(outcome: Pick<CanaryOutcome, 'candidateId' | 'runId' | 'testId' | 'testIndex' | 'stepIndex'>): string;
|
|
14
9
|
|
|
15
10
|
/**
|
|
@@ -27,7 +22,7 @@ declare function canaryOutcomeObservationId(outcome: Pick<CanaryOutcome, 'candid
|
|
|
27
22
|
* Order is total and stable: product, then bundle directory name (which is the record id).
|
|
28
23
|
* `enumerateBundleDirs` already sorts on exactly those two keys.
|
|
29
24
|
*/
|
|
30
|
-
declare function listBundles(knowledgeRoot: string
|
|
25
|
+
declare function listBundles(knowledgeRoot: string): KnowledgeBundleSummary[];
|
|
31
26
|
|
|
32
27
|
interface ShowRecordsOptions {
|
|
33
28
|
knowledgeRoot: string;
|
|
@@ -58,15 +53,6 @@ interface CanaryAttributionRow {
|
|
|
58
53
|
observationId: string;
|
|
59
54
|
outcome?: CanaryAttributionOutcome;
|
|
60
55
|
}
|
|
61
|
-
/**
|
|
62
|
-
* The attribution answer, with the partiality of the walk that produced it.
|
|
63
|
-
*
|
|
64
|
-
* `skippedBundles > 0` means the answer is PARTIAL — some bundle in the store failed
|
|
65
|
-
* `loadMaintenanceBundle` (load or integrity) and was skipped. A caller that renders
|
|
66
|
-
* `not attributed` from an absent `outcome` must consult this first: on a partial walk the
|
|
67
|
-
* absence means "not found in the part of the store I could read", which is not the same claim
|
|
68
|
-
* (REVIEW WR-03; the T-407-11 hazard class is the integrity arm).
|
|
69
|
-
*/
|
|
70
56
|
interface CanaryAttributionsResult {
|
|
71
57
|
rows: CanaryAttributionRow[];
|
|
72
58
|
skippedBundles: number;
|
|
@@ -76,32 +62,12 @@ interface CanaryAttributionsForOptions {
|
|
|
76
62
|
runId: string;
|
|
77
63
|
tuples: readonly CanaryAttributionTuple[];
|
|
78
64
|
}
|
|
79
|
-
/**
|
|
80
|
-
* Answer, per served canary tuple, the observation id it would have been attributed under and the
|
|
81
|
-
* committed outcome carrying that id — when one survives.
|
|
82
|
-
*
|
|
83
|
-
* The answer carries `skippedBundles` beside the rows so the caller never has to infer the
|
|
84
|
-
* partiality of this walk from some other read (REVIEW WR-03).
|
|
85
|
-
*
|
|
86
|
-
* An empty tuple list answers no rows and no skips without touching the store: there is nothing to
|
|
87
|
-
* look up, and a walk that could fail on an unrelated bundle would turn "you asked about nothing"
|
|
88
|
-
* into an error.
|
|
89
|
-
*/
|
|
90
65
|
declare function canaryAttributionsFor(options: CanaryAttributionsForOptions): CanaryAttributionsResult;
|
|
91
66
|
|
|
92
67
|
interface GateReceiptsForOptions {
|
|
93
68
|
knowledgeRoot: string;
|
|
94
69
|
candidateId: string;
|
|
95
|
-
/** Resolved per candidate by the same assembly used by the promotion doors. */
|
|
96
|
-
resolvePromotionPosture?: ResolvePromotionPosture;
|
|
97
70
|
}
|
|
98
71
|
declare function gateReceiptsFor(options: GateReceiptsForOptions): KnowledgeGatesListResult;
|
|
99
72
|
|
|
100
|
-
|
|
101
|
-
knowledgeRoot: string;
|
|
102
|
-
candidateId: string;
|
|
103
|
-
priors?: TrustPriorTable;
|
|
104
|
-
}
|
|
105
|
-
declare function candidateInjectionFor(options: CandidateInjectionForOptions): KnowledgeCandidateInjectionResult;
|
|
106
|
-
|
|
107
|
-
export { type CanaryAttributionOutcome, type CanaryAttributionRow, type CanaryAttributionTuple, type CanaryAttributionsForOptions, type CanaryAttributionsResult, type CandidateInjectionForOptions, type GateReceiptsForOptions, type ShowRecordsOptions, canaryAttributionsFor, canaryOutcomeObservationId, candidateInjectionFor, gateReceiptsFor, listBundles, showRecords };
|
|
73
|
+
export { type CanaryAttributionOutcome, type CanaryAttributionRow, type CanaryAttributionTuple, type CanaryAttributionsForOptions, type CanaryAttributionsResult, type GateReceiptsForOptions, type ShowRecordsOptions, canaryAttributionsFor, canaryOutcomeObservationId, gateReceiptsFor, listBundles, showRecords };
|
package/dist/reader.d.ts
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
export { e as AUTHORING_BRIEF_DEFAULT_BUDGET, f as AUTHORING_DENSE_K, p as AuthoringReaderDependencies,
|
|
2
|
-
import { CanaryOutcome,
|
|
1
|
+
export { e as AUTHORING_BRIEF_DEFAULT_BUDGET, f as AUTHORING_DENSE_K, p as AuthoringReaderDependencies, u as DiffSinceOptions, aW as HydratedEntry, aX as IndexRow, H as InspectRecordsOptions, N as KnowledgeMaintenanceScanError, O as KnowledgeMaintenanceScanIssue, P as KnowledgeRecordNotFoundError, U as MARK_EVIDENCE_TOKEN_PREFIX, W as MarkEvidenceEffect, X as MarkEvidencePlan, Y as MarkEvidenceTarget, $ as OpenServingKnowledgeReaderConfig, a0 as PlanMarkEvidenceInput, a2 as QUARANTINE_CLASS_DISPOSITIONS, aY as QUARANTINE_FLOOR_ELIGIBILITY, a6 as QUARANTINE_LEDGER_FILENAME, aa as QuarantineDisposition, aZ as QuarantineFloorEligibility, ab as QuarantineLedgerRead, R as RefusedQuarantineLine, al as ShowRecordOptions, aq as createAuthoringReader, as as diffSince, aw as foldQuarantineLedgerState, a_ as hydrateRows, ay as inspectRecords, aB as markEvidenceEvent, aE as openKnowledgeReader, aF as planMarkEvidence, aH as projectMarkEvidenceOutcome, aI as quarantineLedgerPath, a$ as readIndexRows, aM as readQuarantineLedger, aS as showRecord } from './mark-evidence-plan-CmOkzw6u.js';
|
|
2
|
+
import { CanaryOutcome, KnowledgeBundleSummary, KnowledgeRecordShowResult, KnowledgeGatesListResult } from '@vostride/agent-qa-schema';
|
|
3
3
|
export { BuildRange, ReadOptions, SearchOptions } from '@vostride/agent-qa-schema';
|
|
4
4
|
import '@vostride/agent-qa-agent';
|
|
5
5
|
import '@vostride/agent-qa-runner';
|
|
6
6
|
import 'node:sqlite';
|
|
7
7
|
|
|
8
|
-
/**
|
|
9
|
-
* D-22: bind one canary observation to the served candidate and attributed step. The schema
|
|
10
|
-
* evidence-token recipe adds the exercised anchor and build ordinal; together those fields are
|
|
11
|
-
* the complete replay identity required by §7.5.1.
|
|
12
|
-
*/
|
|
13
8
|
declare function canaryOutcomeObservationId(outcome: Pick<CanaryOutcome, 'candidateId' | 'runId' | 'testId' | 'testIndex' | 'stepIndex'>): string;
|
|
14
9
|
|
|
15
10
|
/**
|
|
@@ -27,7 +22,7 @@ declare function canaryOutcomeObservationId(outcome: Pick<CanaryOutcome, 'candid
|
|
|
27
22
|
* Order is total and stable: product, then bundle directory name (which is the record id).
|
|
28
23
|
* `enumerateBundleDirs` already sorts on exactly those two keys.
|
|
29
24
|
*/
|
|
30
|
-
declare function listBundles(knowledgeRoot: string
|
|
25
|
+
declare function listBundles(knowledgeRoot: string): KnowledgeBundleSummary[];
|
|
31
26
|
|
|
32
27
|
interface ShowRecordsOptions {
|
|
33
28
|
knowledgeRoot: string;
|
|
@@ -58,15 +53,6 @@ interface CanaryAttributionRow {
|
|
|
58
53
|
observationId: string;
|
|
59
54
|
outcome?: CanaryAttributionOutcome;
|
|
60
55
|
}
|
|
61
|
-
/**
|
|
62
|
-
* The attribution answer, with the partiality of the walk that produced it.
|
|
63
|
-
*
|
|
64
|
-
* `skippedBundles > 0` means the answer is PARTIAL — some bundle in the store failed
|
|
65
|
-
* `loadMaintenanceBundle` (load or integrity) and was skipped. A caller that renders
|
|
66
|
-
* `not attributed` from an absent `outcome` must consult this first: on a partial walk the
|
|
67
|
-
* absence means "not found in the part of the store I could read", which is not the same claim
|
|
68
|
-
* (REVIEW WR-03; the T-407-11 hazard class is the integrity arm).
|
|
69
|
-
*/
|
|
70
56
|
interface CanaryAttributionsResult {
|
|
71
57
|
rows: CanaryAttributionRow[];
|
|
72
58
|
skippedBundles: number;
|
|
@@ -76,32 +62,12 @@ interface CanaryAttributionsForOptions {
|
|
|
76
62
|
runId: string;
|
|
77
63
|
tuples: readonly CanaryAttributionTuple[];
|
|
78
64
|
}
|
|
79
|
-
/**
|
|
80
|
-
* Answer, per served canary tuple, the observation id it would have been attributed under and the
|
|
81
|
-
* committed outcome carrying that id — when one survives.
|
|
82
|
-
*
|
|
83
|
-
* The answer carries `skippedBundles` beside the rows so the caller never has to infer the
|
|
84
|
-
* partiality of this walk from some other read (REVIEW WR-03).
|
|
85
|
-
*
|
|
86
|
-
* An empty tuple list answers no rows and no skips without touching the store: there is nothing to
|
|
87
|
-
* look up, and a walk that could fail on an unrelated bundle would turn "you asked about nothing"
|
|
88
|
-
* into an error.
|
|
89
|
-
*/
|
|
90
65
|
declare function canaryAttributionsFor(options: CanaryAttributionsForOptions): CanaryAttributionsResult;
|
|
91
66
|
|
|
92
67
|
interface GateReceiptsForOptions {
|
|
93
68
|
knowledgeRoot: string;
|
|
94
69
|
candidateId: string;
|
|
95
|
-
/** Resolved per candidate by the same assembly used by the promotion doors. */
|
|
96
|
-
resolvePromotionPosture?: ResolvePromotionPosture;
|
|
97
70
|
}
|
|
98
71
|
declare function gateReceiptsFor(options: GateReceiptsForOptions): KnowledgeGatesListResult;
|
|
99
72
|
|
|
100
|
-
|
|
101
|
-
knowledgeRoot: string;
|
|
102
|
-
candidateId: string;
|
|
103
|
-
priors?: TrustPriorTable;
|
|
104
|
-
}
|
|
105
|
-
declare function candidateInjectionFor(options: CandidateInjectionForOptions): KnowledgeCandidateInjectionResult;
|
|
106
|
-
|
|
107
|
-
export { type CanaryAttributionOutcome, type CanaryAttributionRow, type CanaryAttributionTuple, type CanaryAttributionsForOptions, type CanaryAttributionsResult, type CandidateInjectionForOptions, type GateReceiptsForOptions, type ShowRecordsOptions, canaryAttributionsFor, canaryOutcomeObservationId, candidateInjectionFor, gateReceiptsFor, listBundles, showRecords };
|
|
73
|
+
export { type CanaryAttributionOutcome, type CanaryAttributionRow, type CanaryAttributionTuple, type CanaryAttributionsForOptions, type CanaryAttributionsResult, type GateReceiptsForOptions, type ShowRecordsOptions, canaryAttributionsFor, canaryOutcomeObservationId, gateReceiptsFor, listBundles, showRecords };
|