@contractspec/example.versioned-knowledge-base 1.57.0 → 1.58.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/.turbo/turbo-build.log +52 -52
- package/.turbo/turbo-prebuild.log +1 -0
- package/CHANGELOG.md +13 -0
- package/dist/browser/docs/index.js +44 -0
- package/dist/browser/docs/versioned-knowledge-base.docblock.js +44 -0
- package/dist/browser/entities/index.js +74 -0
- package/dist/browser/entities/models.js +74 -0
- package/dist/browser/events.js +101 -0
- package/dist/browser/example.js +35 -0
- package/dist/browser/handlers/index.js +115 -0
- package/dist/browser/handlers/memory.handlers.js +115 -0
- package/dist/browser/index.js +586 -0
- package/dist/browser/operations/index.js +257 -0
- package/dist/browser/operations/kb.js +257 -0
- package/dist/browser/versioned-knowledge-base.feature.js +36 -0
- package/dist/docs/index.d.ts +2 -1
- package/dist/docs/index.d.ts.map +1 -0
- package/dist/docs/index.js +45 -1
- package/dist/docs/versioned-knowledge-base.docblock.d.ts +2 -1
- package/dist/docs/versioned-knowledge-base.docblock.d.ts.map +1 -0
- package/dist/docs/versioned-knowledge-base.docblock.js +42 -28
- package/dist/entities/index.d.ts +2 -2
- package/dist/entities/index.d.ts.map +1 -0
- package/dist/entities/index.js +75 -3
- package/dist/entities/models.d.ts +127 -132
- package/dist/entities/models.d.ts.map +1 -1
- package/dist/entities/models.js +69 -145
- package/dist/events.d.ts +52 -58
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +92 -114
- package/dist/example.d.ts +2 -6
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +34 -46
- package/dist/handlers/index.d.ts +2 -2
- package/dist/handlers/index.d.ts.map +1 -0
- package/dist/handlers/index.js +116 -3
- package/dist/handlers/memory.handlers.d.ts +62 -64
- package/dist/handlers/memory.handlers.d.ts.map +1 -1
- package/dist/handlers/memory.handlers.js +110 -97
- package/dist/handlers/memory.handlers.test.d.ts +2 -0
- package/dist/handlers/memory.handlers.test.d.ts.map +1 -0
- package/dist/index.d.ts +13 -9
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +587 -11
- package/dist/node/docs/index.js +44 -0
- package/dist/node/docs/versioned-knowledge-base.docblock.js +44 -0
- package/dist/node/entities/index.js +74 -0
- package/dist/node/entities/models.js +74 -0
- package/dist/node/events.js +101 -0
- package/dist/node/example.js +35 -0
- package/dist/node/handlers/index.js +115 -0
- package/dist/node/handlers/memory.handlers.js +115 -0
- package/dist/node/index.js +586 -0
- package/dist/node/operations/index.js +257 -0
- package/dist/node/operations/kb.js +257 -0
- package/dist/node/versioned-knowledge-base.feature.js +36 -0
- package/dist/operations/index.d.ts +2 -2
- package/dist/operations/index.d.ts.map +1 -0
- package/dist/operations/index.js +257 -2
- package/dist/operations/kb.d.ts +252 -258
- package/dist/operations/kb.d.ts.map +1 -1
- package/dist/operations/kb.js +246 -244
- package/dist/versioned-knowledge-base.feature.d.ts +1 -6
- package/dist/versioned-knowledge-base.feature.d.ts.map +1 -1
- package/dist/versioned-knowledge-base.feature.js +35 -68
- package/package.json +141 -38
- package/tsdown.config.js +1 -2
- package/.turbo/turbo-build$colon$bundle.log +0 -52
- package/dist/docs/versioned-knowledge-base.docblock.js.map +0 -1
- package/dist/entities/models.js.map +0 -1
- package/dist/events.js.map +0 -1
- package/dist/example.js.map +0 -1
- package/dist/handlers/memory.handlers.js.map +0 -1
- package/dist/operations/kb.js.map +0 -1
- package/dist/versioned-knowledge-base.feature.js.map +0 -1
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -1,78 +1,76 @@
|
|
|
1
|
-
//#region src/handlers/memory.handlers.d.ts
|
|
2
1
|
interface SourceRef {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
sourceDocumentId: string;
|
|
3
|
+
excerpt?: string;
|
|
5
4
|
}
|
|
6
5
|
interface SourceDocument {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
id: string;
|
|
7
|
+
jurisdiction: string;
|
|
8
|
+
authority: string;
|
|
9
|
+
title: string;
|
|
10
|
+
fetchedAt: Date;
|
|
11
|
+
hash: string;
|
|
12
|
+
fileId: string;
|
|
14
13
|
}
|
|
15
14
|
interface Rule {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
id: string;
|
|
16
|
+
jurisdiction: string;
|
|
17
|
+
topicKey: string;
|
|
19
18
|
}
|
|
20
19
|
interface RuleVersion {
|
|
21
|
-
|
|
22
|
-
ruleId: string;
|
|
23
|
-
jurisdiction: string;
|
|
24
|
-
topicKey: string;
|
|
25
|
-
version: string;
|
|
26
|
-
content: string;
|
|
27
|
-
sourceRefs: SourceRef[];
|
|
28
|
-
status: 'draft' | 'approved' | 'rejected';
|
|
29
|
-
approvedBy?: string;
|
|
30
|
-
approvedAt?: Date;
|
|
31
|
-
createdAt: Date;
|
|
32
|
-
}
|
|
33
|
-
interface KBSnapshot {
|
|
34
|
-
id: string;
|
|
35
|
-
jurisdiction: string;
|
|
36
|
-
asOfDate: Date;
|
|
37
|
-
includedRuleVersionIds: string[];
|
|
38
|
-
publishedAt: Date;
|
|
39
|
-
}
|
|
40
|
-
interface MemoryKbStore {
|
|
41
|
-
sources: Map<string, SourceDocument>;
|
|
42
|
-
rules: Map<string, Rule>;
|
|
43
|
-
ruleVersions: Map<string, RuleVersion>;
|
|
44
|
-
snapshots: Map<string, KBSnapshot>;
|
|
45
|
-
nextRuleVersionNumberByRuleId: Map<string, number>;
|
|
46
|
-
}
|
|
47
|
-
declare function createMemoryKbStore(): MemoryKbStore;
|
|
48
|
-
interface MemoryKbHandlers {
|
|
49
|
-
createRule(rule: Rule): Promise<Rule>;
|
|
50
|
-
ingestSource(input: Omit<SourceDocument, 'id'>): Promise<SourceDocument>;
|
|
51
|
-
upsertRuleVersion(input: {
|
|
20
|
+
id: string;
|
|
52
21
|
ruleId: string;
|
|
22
|
+
jurisdiction: string;
|
|
23
|
+
topicKey: string;
|
|
24
|
+
version: string;
|
|
53
25
|
content: string;
|
|
54
26
|
sourceRefs: SourceRef[];
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
27
|
+
status: 'draft' | 'approved' | 'rejected';
|
|
28
|
+
approvedBy?: string;
|
|
29
|
+
approvedAt?: Date;
|
|
30
|
+
createdAt: Date;
|
|
31
|
+
}
|
|
32
|
+
interface KBSnapshot {
|
|
33
|
+
id: string;
|
|
61
34
|
jurisdiction: string;
|
|
62
35
|
asOfDate: Date;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
36
|
+
includedRuleVersionIds: string[];
|
|
37
|
+
publishedAt: Date;
|
|
38
|
+
}
|
|
39
|
+
export interface MemoryKbStore {
|
|
40
|
+
sources: Map<string, SourceDocument>;
|
|
41
|
+
rules: Map<string, Rule>;
|
|
42
|
+
ruleVersions: Map<string, RuleVersion>;
|
|
43
|
+
snapshots: Map<string, KBSnapshot>;
|
|
44
|
+
nextRuleVersionNumberByRuleId: Map<string, number>;
|
|
45
|
+
}
|
|
46
|
+
export declare function createMemoryKbStore(): MemoryKbStore;
|
|
47
|
+
export interface MemoryKbHandlers {
|
|
48
|
+
createRule(rule: Rule): Promise<Rule>;
|
|
49
|
+
ingestSource(input: Omit<SourceDocument, 'id'>): Promise<SourceDocument>;
|
|
50
|
+
upsertRuleVersion(input: {
|
|
51
|
+
ruleId: string;
|
|
52
|
+
content: string;
|
|
53
|
+
sourceRefs: SourceRef[];
|
|
54
|
+
}): Promise<RuleVersion>;
|
|
55
|
+
approveRuleVersion(input: {
|
|
56
|
+
ruleVersionId: string;
|
|
57
|
+
approver: string;
|
|
58
|
+
}): Promise<RuleVersion>;
|
|
59
|
+
publishSnapshot(input: {
|
|
60
|
+
jurisdiction: string;
|
|
61
|
+
asOfDate: Date;
|
|
62
|
+
}): Promise<KBSnapshot>;
|
|
63
|
+
search(input: {
|
|
64
|
+
snapshotId: string;
|
|
65
|
+
jurisdiction: string;
|
|
66
|
+
query: string;
|
|
67
|
+
}): Promise<{
|
|
68
|
+
items: {
|
|
69
|
+
ruleVersionId: string;
|
|
70
|
+
excerpt?: string;
|
|
71
|
+
}[];
|
|
72
|
+
}>;
|
|
74
73
|
}
|
|
75
|
-
declare function createMemoryKbHandlers(store: MemoryKbStore): MemoryKbHandlers;
|
|
76
|
-
|
|
77
|
-
export { MemoryKbHandlers, MemoryKbStore, createMemoryKbHandlers, createMemoryKbStore };
|
|
74
|
+
export declare function createMemoryKbHandlers(store: MemoryKbStore): MemoryKbHandlers;
|
|
75
|
+
export {};
|
|
78
76
|
//# sourceMappingURL=memory.handlers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory.handlers.d.ts","
|
|
1
|
+
{"version":3,"file":"memory.handlers.d.ts","sourceRoot":"","sources":["../../src/handlers/memory.handlers.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,103 +1,116 @@
|
|
|
1
|
-
|
|
1
|
+
// @bun
|
|
2
|
+
// src/handlers/memory.handlers.ts
|
|
2
3
|
function createMemoryKbStore() {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
return {
|
|
5
|
+
sources: new Map,
|
|
6
|
+
rules: new Map,
|
|
7
|
+
ruleVersions: new Map,
|
|
8
|
+
snapshots: new Map,
|
|
9
|
+
nextRuleVersionNumberByRuleId: new Map
|
|
10
|
+
};
|
|
10
11
|
}
|
|
11
12
|
function stableId(prefix, value) {
|
|
12
|
-
|
|
13
|
+
return `${prefix}_${value.replace(/[^a-zA-Z0-9_-]/g, "_")}`;
|
|
13
14
|
}
|
|
14
15
|
function createMemoryKbHandlers(store) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
16
|
+
async function createRule(rule) {
|
|
17
|
+
store.rules.set(rule.id, rule);
|
|
18
|
+
return rule;
|
|
19
|
+
}
|
|
20
|
+
async function ingestSource(input) {
|
|
21
|
+
const id = stableId("src", `${input.jurisdiction}_${input.hash}`);
|
|
22
|
+
const doc = { id, ...input };
|
|
23
|
+
store.sources.set(id, doc);
|
|
24
|
+
return doc;
|
|
25
|
+
}
|
|
26
|
+
async function upsertRuleVersion(input) {
|
|
27
|
+
if (!input.sourceRefs.length) {
|
|
28
|
+
throw new Error("SOURCE_REFS_REQUIRED");
|
|
29
|
+
}
|
|
30
|
+
const rule = store.rules.get(input.ruleId);
|
|
31
|
+
if (!rule) {
|
|
32
|
+
throw new Error("RULE_NOT_FOUND");
|
|
33
|
+
}
|
|
34
|
+
const next = (store.nextRuleVersionNumberByRuleId.get(input.ruleId) ?? 0) + 1;
|
|
35
|
+
const id = stableId("rv", `${input.ruleId}_${next}`);
|
|
36
|
+
const ruleVersion = {
|
|
37
|
+
id,
|
|
38
|
+
ruleId: input.ruleId,
|
|
39
|
+
jurisdiction: rule.jurisdiction,
|
|
40
|
+
topicKey: rule.topicKey,
|
|
41
|
+
version: next.toString(),
|
|
42
|
+
content: input.content,
|
|
43
|
+
sourceRefs: input.sourceRefs,
|
|
44
|
+
status: "draft",
|
|
45
|
+
createdAt: new Date,
|
|
46
|
+
approvedAt: undefined,
|
|
47
|
+
approvedBy: undefined
|
|
48
|
+
};
|
|
49
|
+
store.ruleVersions.set(id, ruleVersion);
|
|
50
|
+
return ruleVersion;
|
|
51
|
+
}
|
|
52
|
+
async function approveRuleVersion(input) {
|
|
53
|
+
const existing = store.ruleVersions.get(input.ruleVersionId);
|
|
54
|
+
if (!existing) {
|
|
55
|
+
throw new Error("RULE_VERSION_NOT_FOUND");
|
|
56
|
+
}
|
|
57
|
+
const approved = {
|
|
58
|
+
...existing,
|
|
59
|
+
status: "approved",
|
|
60
|
+
approvedBy: input.approver,
|
|
61
|
+
approvedAt: new Date
|
|
62
|
+
};
|
|
63
|
+
store.ruleVersions.set(approved.id, approved);
|
|
64
|
+
return approved;
|
|
65
|
+
}
|
|
66
|
+
async function publishSnapshot(input) {
|
|
67
|
+
const approved = [...store.ruleVersions.values()].filter((rv) => rv.status === "approved" && rv.jurisdiction === input.jurisdiction);
|
|
68
|
+
if (approved.length === 0) {
|
|
69
|
+
throw new Error("NO_APPROVED_RULES");
|
|
70
|
+
}
|
|
71
|
+
const includedRuleVersionIds = approved.map((rv) => rv.id).sort();
|
|
72
|
+
const id = stableId("snap", `${input.jurisdiction}_${input.asOfDate.toISOString().slice(0, 10)}_${includedRuleVersionIds.length}`);
|
|
73
|
+
const snapshot = {
|
|
74
|
+
id,
|
|
75
|
+
jurisdiction: input.jurisdiction,
|
|
76
|
+
asOfDate: input.asOfDate,
|
|
77
|
+
includedRuleVersionIds,
|
|
78
|
+
publishedAt: new Date
|
|
79
|
+
};
|
|
80
|
+
store.snapshots.set(id, snapshot);
|
|
81
|
+
return snapshot;
|
|
82
|
+
}
|
|
83
|
+
async function search(input) {
|
|
84
|
+
const snapshot = store.snapshots.get(input.snapshotId);
|
|
85
|
+
if (!snapshot) {
|
|
86
|
+
throw new Error("SNAPSHOT_NOT_FOUND");
|
|
87
|
+
}
|
|
88
|
+
if (snapshot.jurisdiction !== input.jurisdiction) {
|
|
89
|
+
throw new Error("JURISDICTION_MISMATCH");
|
|
90
|
+
}
|
|
91
|
+
const q = input.query.toLowerCase();
|
|
92
|
+
const tokens = q.split(/\s+/).map((t) => t.trim()).filter(Boolean);
|
|
93
|
+
const items = snapshot.includedRuleVersionIds.map((id) => store.ruleVersions.get(id)).filter((rv) => Boolean(rv)).filter((rv) => {
|
|
94
|
+
if (tokens.length === 0)
|
|
95
|
+
return true;
|
|
96
|
+
const hay = rv.content.toLowerCase();
|
|
97
|
+
return tokens.every((token) => hay.includes(token));
|
|
98
|
+
}).map((rv) => ({
|
|
99
|
+
ruleVersionId: rv.id,
|
|
100
|
+
excerpt: rv.content.slice(0, 120)
|
|
101
|
+
}));
|
|
102
|
+
return { items };
|
|
103
|
+
}
|
|
104
|
+
return {
|
|
105
|
+
createRule,
|
|
106
|
+
ingestSource,
|
|
107
|
+
upsertRuleVersion,
|
|
108
|
+
approveRuleVersion,
|
|
109
|
+
publishSnapshot,
|
|
110
|
+
search
|
|
111
|
+
};
|
|
99
112
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
113
|
+
export {
|
|
114
|
+
createMemoryKbStore,
|
|
115
|
+
createMemoryKbHandlers
|
|
116
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.handlers.test.d.ts","sourceRoot":"","sources":["../../src/handlers/memory.handlers.test.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export
|
|
1
|
+
/**
|
|
2
|
+
* Versioned Knowledge Base Example
|
|
3
|
+
*
|
|
4
|
+
* Curated KB with immutable sources, reviewable rule versions, and published snapshots.
|
|
5
|
+
*/
|
|
6
|
+
export * from './entities';
|
|
7
|
+
export * from './operations';
|
|
8
|
+
export * from './events';
|
|
9
|
+
export * from './handlers';
|
|
10
|
+
export * from './versioned-knowledge-base.feature';
|
|
11
|
+
export { default as example } from './example';
|
|
12
|
+
import './docs';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,oCAAoC,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,QAAQ,CAAC"}
|