@backendkit-labs/agent-core 0.40.0 → 0.42.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 +56 -0
- package/dist/agent-memory/ProceduralMemory.d.ts +3 -0
- package/dist/agent-memory/ProceduralMemory.d.ts.map +1 -1
- package/dist/agent-memory/ProceduralMemory.js +3 -0
- package/dist/agent-memory/ProceduralMemory.js.map +1 -1
- package/dist/engine/AgentEngine.d.ts +22 -2
- package/dist/engine/AgentEngine.d.ts.map +1 -1
- package/dist/engine/AgentEngine.js +92 -48
- package/dist/engine/AgentEngine.js.map +1 -1
- package/dist/engine/createBaseEngine.d.ts +13 -0
- package/dist/engine/createBaseEngine.d.ts.map +1 -1
- package/dist/engine/createBaseEngine.js +41 -7
- package/dist/engine/createBaseEngine.js.map +1 -1
- package/dist/engine/error-code.d.ts +7 -0
- package/dist/engine/error-code.d.ts.map +1 -0
- package/dist/engine/error-code.js +23 -0
- package/dist/engine/error-code.js.map +1 -0
- package/dist/engine/run-recorder.d.ts +13 -0
- package/dist/engine/run-recorder.d.ts.map +1 -0
- package/dist/engine/run-recorder.js +49 -0
- package/dist/engine/run-recorder.js.map +1 -0
- package/dist/governance/approval-store.d.ts +12 -0
- package/dist/governance/approval-store.d.ts.map +1 -1
- package/dist/governance/approval-store.js +37 -1
- package/dist/governance/approval-store.js.map +1 -1
- package/dist/governance/types.d.ts +6 -0
- package/dist/governance/types.d.ts.map +1 -1
- package/dist/index.d.ts +6 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -3
- package/dist/index.js.map +1 -1
- package/dist/learning/index.d.ts +16 -0
- package/dist/learning/index.d.ts.map +1 -0
- package/dist/learning/index.js +560 -0
- package/dist/learning/index.js.map +1 -0
- package/dist/learning/signal.d.ts +51 -0
- package/dist/learning/signal.d.ts.map +1 -0
- package/dist/learning/signal.js +136 -0
- package/dist/learning/signal.js.map +1 -0
- package/dist/learning/stores.d.ts +32 -0
- package/dist/learning/stores.d.ts.map +1 -0
- package/dist/learning/stores.js +91 -0
- package/dist/learning/stores.js.map +1 -0
- package/dist/learning/types.d.ts +345 -0
- package/dist/learning/types.d.ts.map +1 -0
- package/dist/learning/types.js +3 -0
- package/dist/learning/types.js.map +1 -0
- package/dist/learning/units.d.ts +46 -0
- package/dist/learning/units.d.ts.map +1 -0
- package/dist/learning/units.js +137 -0
- package/dist/learning/units.js.map +1 -0
- package/dist/reflection/domain-registry.d.ts +3 -0
- package/dist/reflection/domain-registry.d.ts.map +1 -1
- package/dist/reflection/domain-registry.js +3 -0
- package/dist/reflection/domain-registry.js.map +1 -1
- package/dist/reflection/failure-catalog.d.ts +3 -0
- package/dist/reflection/failure-catalog.d.ts.map +1 -1
- package/dist/reflection/failure-catalog.js +3 -0
- package/dist/reflection/failure-catalog.js.map +1 -1
- package/dist/reflection/pattern-detector.d.ts +3 -0
- package/dist/reflection/pattern-detector.d.ts.map +1 -1
- package/dist/reflection/pattern-detector.js +3 -0
- package/dist/reflection/pattern-detector.js.map +1 -1
- package/dist/reflection/policy-promoter.d.ts +3 -0
- package/dist/reflection/policy-promoter.d.ts.map +1 -1
- package/dist/reflection/policy-promoter.js +3 -0
- package/dist/reflection/policy-promoter.js.map +1 -1
- package/dist/reflection/reflection-engine.d.ts +3 -0
- package/dist/reflection/reflection-engine.d.ts.map +1 -1
- package/dist/reflection/reflection-engine.js +3 -0
- package/dist/reflection/reflection-engine.js.map +1 -1
- package/dist/tools/defineTool.d.ts +4 -1
- package/dist/tools/defineTool.d.ts.map +1 -1
- package/dist/tools/defineTool.js +5 -2
- package/dist/tools/defineTool.js.map +1 -1
- package/dist/tools/services.d.ts +13 -0
- package/dist/tools/services.d.ts.map +1 -1
- package/dist/tools/services.js +12 -0
- package/dist/tools/services.js.map +1 -1
- package/dist/tools/tool-error.d.ts +19 -0
- package/dist/tools/tool-error.d.ts.map +1 -0
- package/dist/tools/tool-error.js +33 -0
- package/dist/tools/tool-error.js.map +1 -0
- package/dist/types/index.d.ts +39 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +89 -89
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { MemoryStoreBackend } from '../agent-memory/types';
|
|
2
|
+
/** Failures that make a pattern only count if they are a big enough share of the calls (SPEC-0019 D2). */
|
|
3
|
+
export interface RateOptions {
|
|
4
|
+
/** Share of the calls of a subject that failed with this pattern. Default 0.05. */
|
|
5
|
+
minFailureRate: number;
|
|
6
|
+
/** Below this many calls in the window the share means nothing, and only the count decides. Default 20. */
|
|
7
|
+
minCalls: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const DEFAULT_RATE: RateOptions;
|
|
10
|
+
/**
|
|
11
|
+
* The successes, counted instead of stored (SPEC-0019 D1). A healthy agent makes thousands of correct calls, and one
|
|
12
|
+
* experience each would push the failures out of the bounded store. A bucket is one day of one agent and subject, kept
|
|
13
|
+
* in memory and written to its store at most every few seconds.
|
|
14
|
+
*/
|
|
15
|
+
export declare class SuccessCounters {
|
|
16
|
+
private readonly store;
|
|
17
|
+
private readonly buckets;
|
|
18
|
+
private loaded;
|
|
19
|
+
private dirty;
|
|
20
|
+
private timer?;
|
|
21
|
+
constructor(store: MemoryStoreBackend);
|
|
22
|
+
/** One more correct call. */
|
|
23
|
+
add(at: string, agentId: string, tenantId: string | undefined, domain: string, subject: string, context?: string): void;
|
|
24
|
+
/** Correct calls of a subject (and context: those counted without one are another bucket) since `sinceDay`, of one agent or of all. */
|
|
25
|
+
since(sinceDay: string, tenantId: string | undefined, domain: string, subject: string, agentId?: string, context?: string): number;
|
|
26
|
+
/** Writes what changed and drops the days before `keepFromDay`. */
|
|
27
|
+
flush(keepFromDay?: string): Promise<void>;
|
|
28
|
+
private load;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The patterns that already passed the rate (SPEC-0019, found by the trading bench). The rate decides when a pattern
|
|
32
|
+
* ENTERS: once it is in, it stays while its failures stay in the window, however many correct calls pile up. Otherwise a
|
|
33
|
+
* lesson that works would remove itself: the bot obeys it, its correct calls dilute the failure share, the lesson leaves
|
|
34
|
+
* and the mistake comes back. A record is the key and the last day the pattern was seen; it expires after the window.
|
|
35
|
+
*/
|
|
36
|
+
export declare class QualifiedPatterns {
|
|
37
|
+
private readonly store;
|
|
38
|
+
private readonly days;
|
|
39
|
+
private loaded;
|
|
40
|
+
constructor(store: MemoryStoreBackend);
|
|
41
|
+
/** Did the pattern pass the rate, and was it seen since `sinceDay`? */
|
|
42
|
+
has(key: string, sinceDay: string): boolean;
|
|
43
|
+
/** The pattern is in (it passed the rate, or it stayed): remember the day. */
|
|
44
|
+
confirm(key: string, day: string): void;
|
|
45
|
+
/** The pattern has fewer failures than it needs: it leaves, and has to pass the rate again to come back. */
|
|
46
|
+
drop(key: string): void;
|
|
47
|
+
/** Forgets what was not seen since `keepFromDay`. */
|
|
48
|
+
prune(keepFromDay: string): void;
|
|
49
|
+
private load;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=signal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signal.d.ts","sourceRoot":"","sources":["../../src/learning/signal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,0GAA0G;AAC1G,MAAM,WAAW,WAAW;IACxB,mFAAmF;IACnF,cAAc,EAAE,MAAM,CAAC;IACvB,2GAA2G;IAC3G,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,EAAE,WAAoD,CAAC;AAiBhF;;;;GAIG;AACH,qBAAa,eAAe;IAMZ,OAAO,CAAC,QAAQ,CAAC,KAAK;IALlC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA6B;IACrD,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,KAAK,CAAC,CAAgC;gBAEjB,KAAK,EAAE,kBAAkB;IAEtD,6BAA6B;IAC7B,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;IAcvH,uIAAuI;IACvI,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM;IAWlI,mEAAmE;IAC7D,KAAK,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAahD,OAAO,CAAC,IAAI;CASf;AAED;;;;;GAKG;AACH,qBAAa,iBAAiB;IAId,OAAO,CAAC,QAAQ,CAAC,KAAK;IAHlC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA6B;IAClD,OAAO,CAAC,MAAM,CAAS;gBAEM,KAAK,EAAE,kBAAkB;IAEtD,uEAAuE;IACvE,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO;IAM3C,8EAA8E;IAC9E,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAOvC,4GAA4G;IAC5G,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAMvB,qDAAqD;IACrD,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAKhC,OAAO,CAAC,IAAI;CAOf"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QualifiedPatterns = exports.SuccessCounters = exports.DEFAULT_RATE = void 0;
|
|
4
|
+
exports.DEFAULT_RATE = { minFailureRate: 0.05, minCalls: 20 };
|
|
5
|
+
const FLUSH_MS = 5000;
|
|
6
|
+
/**
|
|
7
|
+
* The successes, counted instead of stored (SPEC-0019 D1). A healthy agent makes thousands of correct calls, and one
|
|
8
|
+
* experience each would push the failures out of the bounded store. A bucket is one day of one agent and subject, kept
|
|
9
|
+
* in memory and written to its store at most every few seconds.
|
|
10
|
+
*/
|
|
11
|
+
class SuccessCounters {
|
|
12
|
+
store;
|
|
13
|
+
buckets = new Map();
|
|
14
|
+
loaded = false;
|
|
15
|
+
dirty = false;
|
|
16
|
+
timer;
|
|
17
|
+
constructor(store) {
|
|
18
|
+
this.store = store;
|
|
19
|
+
}
|
|
20
|
+
/** One more correct call. */
|
|
21
|
+
add(at, agentId, tenantId, domain, subject, context) {
|
|
22
|
+
this.load();
|
|
23
|
+
const day = at.slice(0, 10);
|
|
24
|
+
const id = [day, tenantId ?? '', agentId, domain, subject, ...(context ? [context] : [])].join('\u0000');
|
|
25
|
+
const bucket = this.buckets.get(id);
|
|
26
|
+
if (bucket)
|
|
27
|
+
bucket.n++;
|
|
28
|
+
else
|
|
29
|
+
this.buckets.set(id, { id, day, ...(tenantId ? { tenantId } : {}), agentId, domain, subject, ...(context ? { context } : {}), n: 1 });
|
|
30
|
+
this.dirty = true;
|
|
31
|
+
if (!this.timer) {
|
|
32
|
+
this.timer = setTimeout(() => { this.timer = undefined; void this.flush(); }, FLUSH_MS);
|
|
33
|
+
this.timer.unref?.();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
/** Correct calls of a subject (and context: those counted without one are another bucket) since `sinceDay`, of one agent or of all. */
|
|
37
|
+
since(sinceDay, tenantId, domain, subject, agentId, context) {
|
|
38
|
+
this.load();
|
|
39
|
+
let total = 0;
|
|
40
|
+
for (const b of this.buckets.values()) {
|
|
41
|
+
if (b.day >= sinceDay && b.tenantId === tenantId && b.domain === domain && b.subject === subject && b.context === context && (!agentId || b.agentId === agentId)) {
|
|
42
|
+
total += b.n;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return total;
|
|
46
|
+
}
|
|
47
|
+
/** Writes what changed and drops the days before `keepFromDay`. */
|
|
48
|
+
async flush(keepFromDay) {
|
|
49
|
+
if (this.timer) {
|
|
50
|
+
clearTimeout(this.timer);
|
|
51
|
+
this.timer = undefined;
|
|
52
|
+
}
|
|
53
|
+
this.load();
|
|
54
|
+
const stale = keepFromDay ? [...this.buckets.values()].filter(b => b.day < keepFromDay) : [];
|
|
55
|
+
for (const b of stale)
|
|
56
|
+
this.buckets.delete(b.id);
|
|
57
|
+
if (stale.length) {
|
|
58
|
+
this.store.deleteByIds(stale.map(b => b.id));
|
|
59
|
+
this.dirty = true;
|
|
60
|
+
}
|
|
61
|
+
if (!this.dirty)
|
|
62
|
+
return;
|
|
63
|
+
this.dirty = false;
|
|
64
|
+
const records = [...this.buckets.values()].map(b => ({ ...b, createdAt: `${b.day}T00:00:00.000Z`, kind: 'ok-bucket' }));
|
|
65
|
+
if (this.store.upsertMany)
|
|
66
|
+
this.store.upsertMany(records);
|
|
67
|
+
else
|
|
68
|
+
for (const r of records)
|
|
69
|
+
this.store.upsert(r.id, r);
|
|
70
|
+
}
|
|
71
|
+
load() {
|
|
72
|
+
if (this.loaded)
|
|
73
|
+
return;
|
|
74
|
+
this.loaded = true;
|
|
75
|
+
for (const r of this.store.getAll()) {
|
|
76
|
+
if (r.kind !== 'ok-bucket')
|
|
77
|
+
continue;
|
|
78
|
+
const { createdAt: _createdAt, kind: _kind, ...bucket } = r;
|
|
79
|
+
this.buckets.set(bucket.id, bucket);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.SuccessCounters = SuccessCounters;
|
|
84
|
+
/**
|
|
85
|
+
* The patterns that already passed the rate (SPEC-0019, found by the trading bench). The rate decides when a pattern
|
|
86
|
+
* ENTERS: once it is in, it stays while its failures stay in the window, however many correct calls pile up. Otherwise a
|
|
87
|
+
* lesson that works would remove itself: the bot obeys it, its correct calls dilute the failure share, the lesson leaves
|
|
88
|
+
* and the mistake comes back. A record is the key and the last day the pattern was seen; it expires after the window.
|
|
89
|
+
*/
|
|
90
|
+
class QualifiedPatterns {
|
|
91
|
+
store;
|
|
92
|
+
days = new Map();
|
|
93
|
+
loaded = false;
|
|
94
|
+
constructor(store) {
|
|
95
|
+
this.store = store;
|
|
96
|
+
}
|
|
97
|
+
/** Did the pattern pass the rate, and was it seen since `sinceDay`? */
|
|
98
|
+
has(key, sinceDay) {
|
|
99
|
+
this.load();
|
|
100
|
+
const day = this.days.get(key);
|
|
101
|
+
return day !== undefined && day >= sinceDay;
|
|
102
|
+
}
|
|
103
|
+
/** The pattern is in (it passed the rate, or it stayed): remember the day. */
|
|
104
|
+
confirm(key, day) {
|
|
105
|
+
this.load();
|
|
106
|
+
if (this.days.get(key) === day)
|
|
107
|
+
return;
|
|
108
|
+
this.days.set(key, day);
|
|
109
|
+
this.store.upsert(`q|${key}`, { id: `q|${key}`, createdAt: `${day}T00:00:00.000Z`, kind: 'qualified', key, day });
|
|
110
|
+
}
|
|
111
|
+
/** The pattern has fewer failures than it needs: it leaves, and has to pass the rate again to come back. */
|
|
112
|
+
drop(key) {
|
|
113
|
+
this.load();
|
|
114
|
+
if (!this.days.delete(key))
|
|
115
|
+
return;
|
|
116
|
+
this.store.deleteByIds([`q|${key}`]);
|
|
117
|
+
}
|
|
118
|
+
/** Forgets what was not seen since `keepFromDay`. */
|
|
119
|
+
prune(keepFromDay) {
|
|
120
|
+
this.load();
|
|
121
|
+
for (const [key, day] of [...this.days])
|
|
122
|
+
if (day < keepFromDay)
|
|
123
|
+
this.drop(key);
|
|
124
|
+
}
|
|
125
|
+
load() {
|
|
126
|
+
if (this.loaded)
|
|
127
|
+
return;
|
|
128
|
+
this.loaded = true;
|
|
129
|
+
for (const r of this.store.getAll()) {
|
|
130
|
+
if (r.kind === 'qualified' && typeof r.key === 'string' && typeof r.day === 'string')
|
|
131
|
+
this.days.set(r.key, r.day);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
exports.QualifiedPatterns = QualifiedPatterns;
|
|
136
|
+
//# sourceMappingURL=signal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signal.js","sourceRoot":"","sources":["../../src/learning/signal.ts"],"names":[],"mappings":";;;AAUa,QAAA,YAAY,GAAgB,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;AAehF,MAAM,QAAQ,GAAG,IAAI,CAAC;AAEtB;;;;GAIG;AACH,MAAa,eAAe;IAMK;IALZ,OAAO,GAAG,IAAI,GAAG,EAAkB,CAAC;IAC7C,MAAM,GAAG,KAAK,CAAC;IACf,KAAK,GAAG,KAAK,CAAC;IACd,KAAK,CAAiC;IAE9C,YAA6B,KAAyB;QAAzB,UAAK,GAAL,KAAK,CAAoB;IAAG,CAAC;IAE1D,6BAA6B;IAC7B,GAAG,CAAC,EAAU,EAAE,OAAe,EAAE,QAA4B,EAAE,MAAc,EAAE,OAAe,EAAE,OAAgB;QAC5G,IAAI,CAAC,IAAI,EAAE,CAAC;QACZ,MAAM,GAAG,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC5B,MAAM,EAAE,GAAG,CAAC,GAAG,EAAE,QAAQ,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACzG,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACpC,IAAI,MAAM;YAAE,MAAM,CAAC,CAAC,EAAE,CAAC;;YAClB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC,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esson } from './types';
|
|
2
|
+
export declare class MemoryRuleStore implements RuleStore {
|
|
3
|
+
private readonly items;
|
|
4
|
+
add(rule: ApprovedRule): Promise<void>;
|
|
5
|
+
list(): Promise<ApprovedRule[]>;
|
|
6
|
+
remove(id: string): Promise<boolean>;
|
|
7
|
+
}
|
|
8
|
+
/** Approved rules in one JSON file, written atomically. */
|
|
9
|
+
export declare class FileRuleStore implements RuleStore {
|
|
10
|
+
private readonly path;
|
|
11
|
+
constructor(path: string);
|
|
12
|
+
add(rule: ApprovedRule): Promise<void>;
|
|
13
|
+
list(): Promise<ApprovedRule[]>;
|
|
14
|
+
remove(id: string): Promise<boolean>;
|
|
15
|
+
private write;
|
|
16
|
+
}
|
|
17
|
+
export declare class MemoryLessonStore implements LessonStore {
|
|
18
|
+
private readonly items;
|
|
19
|
+
add(lesson: TaughtLesson): Promise<void>;
|
|
20
|
+
list(): Promise<TaughtLesson[]>;
|
|
21
|
+
remove(id: string): Promise<boolean>;
|
|
22
|
+
}
|
|
23
|
+
/** Taught lessons in one JSON file, written atomically. */
|
|
24
|
+
export declare class FileLessonStore implements LessonStore {
|
|
25
|
+
private readonly path;
|
|
26
|
+
constructor(path: string);
|
|
27
|
+
add(lesson: TaughtLesson): Promise<void>;
|
|
28
|
+
list(): Promise<TaughtLesson[]>;
|
|
29
|
+
remove(id: string): Promise<boolean>;
|
|
30
|
+
private write;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=stores.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stores.d.ts","sourceRoot":"","sources":["../../src/learning/stores.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAElF,qBAAa,eAAgB,YAAW,SAAS;IAC7C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAmC;IAEnD,GAAG,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IACtC,IAAI,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;IAC/B,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAC7C;AAED,2DAA2D;AAC3D,qBAAa,aAAc,YAAW,SAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,MAAM;IAEnC,GAAG,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAKtC,IAAI,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;IAU/B,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;YAQ5B,KAAK;CAItB;AAED,qBAAa,iBAAkB,YAAW,WAAW;IACjD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAmC;IAEnD,GAAG,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IACxC,IAAI,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;IAC/B,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAC7C;AAED,2DAA2D;AAC3D,qBAAa,eAAgB,YAAW,WAAW;IACnC,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,MAAM;IAEnC,GAAG,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAKxC,IAAI,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;IAU/B,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;YAQ5B,KAAK;CAItB"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FileLessonStore = exports.MemoryLessonStore = exports.FileRuleStore = exports.MemoryRuleStore = void 0;
|
|
4
|
+
const node_fs_1 = require("node:fs");
|
|
5
|
+
const node_path_1 = require("node:path");
|
|
6
|
+
const atomic_write_1 = require("../shared/utils/atomic-write");
|
|
7
|
+
class MemoryRuleStore {
|
|
8
|
+
items = new Map();
|
|
9
|
+
async add(rule) { this.items.set(rule.id, rule); }
|
|
10
|
+
async list() { return [...this.items.values()]; }
|
|
11
|
+
async remove(id) { return this.items.delete(id); }
|
|
12
|
+
}
|
|
13
|
+
exports.MemoryRuleStore = MemoryRuleStore;
|
|
14
|
+
/** Approved rules in one JSON file, written atomically. */
|
|
15
|
+
class FileRuleStore {
|
|
16
|
+
path;
|
|
17
|
+
constructor(path) {
|
|
18
|
+
this.path = path;
|
|
19
|
+
}
|
|
20
|
+
async add(rule) {
|
|
21
|
+
const all = (await this.list()).filter(r => r.id !== rule.id);
|
|
22
|
+
await this.write([...all, rule]);
|
|
23
|
+
}
|
|
24
|
+
async list() {
|
|
25
|
+
try {
|
|
26
|
+
const parsed = JSON.parse(await node_fs_1.promises.readFile(this.path, 'utf8'));
|
|
27
|
+
return Array.isArray(parsed) ? parsed : [];
|
|
28
|
+
}
|
|
29
|
+
catch (err) {
|
|
30
|
+
if (err.code === 'ENOENT')
|
|
31
|
+
return [];
|
|
32
|
+
throw err;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
async remove(id) {
|
|
36
|
+
const all = await this.list();
|
|
37
|
+
const rest = all.filter(r => r.id !== id);
|
|
38
|
+
if (rest.length === all.length)
|
|
39
|
+
return false;
|
|
40
|
+
await this.write(rest);
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
async write(rules) {
|
|
44
|
+
await node_fs_1.promises.mkdir((0, node_path_1.dirname)(this.path), { recursive: true });
|
|
45
|
+
await (0, atomic_write_1.atomicWrite)(this.path, JSON.stringify(rules, null, 2));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.FileRuleStore = FileRuleStore;
|
|
49
|
+
class MemoryLessonStore {
|
|
50
|
+
items = new Map();
|
|
51
|
+
async add(lesson) { this.items.set(lesson.id, lesson); }
|
|
52
|
+
async list() { return [...this.items.values()]; }
|
|
53
|
+
async remove(id) { return this.items.delete(id); }
|
|
54
|
+
}
|
|
55
|
+
exports.MemoryLessonStore = MemoryLessonStore;
|
|
56
|
+
/** Taught lessons in one JSON file, written atomically. */
|
|
57
|
+
class FileLessonStore {
|
|
58
|
+
path;
|
|
59
|
+
constructor(path) {
|
|
60
|
+
this.path = path;
|
|
61
|
+
}
|
|
62
|
+
async add(lesson) {
|
|
63
|
+
const all = (await this.list()).filter(l => l.id !== lesson.id);
|
|
64
|
+
await this.write([...all, lesson]);
|
|
65
|
+
}
|
|
66
|
+
async list() {
|
|
67
|
+
try {
|
|
68
|
+
const parsed = JSON.parse(await node_fs_1.promises.readFile(this.path, 'utf8'));
|
|
69
|
+
return Array.isArray(parsed) ? parsed : [];
|
|
70
|
+
}
|
|
71
|
+
catch (err) {
|
|
72
|
+
if (err.code === 'ENOENT')
|
|
73
|
+
return [];
|
|
74
|
+
throw err;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
async remove(id) {
|
|
78
|
+
const all = await this.list();
|
|
79
|
+
const rest = all.filter(l => l.id !== id);
|
|
80
|
+
if (rest.length === all.length)
|
|
81
|
+
return false;
|
|
82
|
+
await this.write(rest);
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
async write(lessons) {
|
|
86
|
+
await node_fs_1.promises.mkdir((0, node_path_1.dirname)(this.path), { recursive: true });
|
|
87
|
+
await (0, atomic_write_1.atomicWrite)(this.path, JSON.stringify(lessons, null, 2));
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
exports.FileLessonStore = FileLessonStore;
|
|
91
|
+
//# sourceMappingURL=stores.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stores.js","sourceRoot":"","sources":["../../src/learning/stores.ts"],"names":[],"mappings":";;;AAAA,qCAAyC;AACzC,yCAAoC;AACpC,+DAA2D;AAG3D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