@chatwarden/core 0.1.6 → 0.1.7
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 +50 -0
- package/dist/src/ai/agreement.d.ts +46 -0
- package/dist/src/ai/agreement.d.ts.map +1 -0
- package/dist/src/ai/agreement.js +71 -0
- package/dist/src/ai/agreement.js.map +1 -0
- package/dist/src/ai/breaker.d.ts +31 -0
- package/dist/src/ai/breaker.d.ts.map +1 -0
- package/dist/src/ai/breaker.js +62 -0
- package/dist/src/ai/breaker.js.map +1 -0
- package/dist/src/ai/budget.d.ts +26 -0
- package/dist/src/ai/budget.d.ts.map +1 -0
- package/dist/src/ai/budget.js +57 -0
- package/dist/src/ai/budget.js.map +1 -0
- package/dist/src/ai/case.d.ts +37 -0
- package/dist/src/ai/case.d.ts.map +1 -0
- package/dist/src/ai/case.js +30 -0
- package/dist/src/ai/case.js.map +1 -0
- package/dist/src/ai/casebook.d.ts +59 -0
- package/dist/src/ai/casebook.d.ts.map +1 -0
- package/dist/src/ai/casebook.js +47 -0
- package/dist/src/ai/casebook.js.map +1 -0
- package/dist/src/ai/ceilings.d.ts +42 -0
- package/dist/src/ai/ceilings.d.ts.map +1 -0
- package/dist/src/ai/ceilings.js +59 -0
- package/dist/src/ai/ceilings.js.map +1 -0
- package/dist/src/ai/fake.d.ts +41 -0
- package/dist/src/ai/fake.d.ts.map +1 -0
- package/dist/src/ai/fake.js +75 -0
- package/dist/src/ai/fake.js.map +1 -0
- package/dist/src/ai/hash.d.ts +13 -0
- package/dist/src/ai/hash.d.ts.map +1 -0
- package/dist/src/ai/hash.js +19 -0
- package/dist/src/ai/hash.js.map +1 -0
- package/dist/src/ai/inert.d.ts +5 -0
- package/dist/src/ai/inert.d.ts.map +1 -0
- package/dist/src/ai/inert.js +22 -0
- package/dist/src/ai/inert.js.map +1 -0
- package/dist/src/ai/injection.d.ts +8 -0
- package/dist/src/ai/injection.d.ts.map +1 -0
- package/dist/src/ai/injection.js +30 -0
- package/dist/src/ai/injection.js.map +1 -0
- package/dist/src/ai/lines.d.ts +64 -0
- package/dist/src/ai/lines.d.ts.map +1 -0
- package/dist/src/ai/lines.js +172 -0
- package/dist/src/ai/lines.js.map +1 -0
- package/dist/src/ai/prompt.d.ts +44 -0
- package/dist/src/ai/prompt.d.ts.map +1 -0
- package/dist/src/ai/prompt.js +185 -0
- package/dist/src/ai/prompt.js.map +1 -0
- package/dist/src/ai/redact.d.ts +29 -0
- package/dist/src/ai/redact.d.ts.map +1 -0
- package/dist/src/ai/redact.js +160 -0
- package/dist/src/ai/redact.js.map +1 -0
- package/dist/src/ai/schema.d.ts +6 -0
- package/dist/src/ai/schema.d.ts.map +1 -0
- package/dist/src/ai/schema.js +50 -0
- package/dist/src/ai/schema.js.map +1 -0
- package/dist/src/ai/service.d.ts +328 -0
- package/dist/src/ai/service.d.ts.map +1 -0
- package/dist/src/ai/service.js +749 -0
- package/dist/src/ai/service.js.map +1 -0
- package/dist/src/ai/types.d.ts +180 -0
- package/dist/src/ai/types.d.ts.map +1 -0
- package/dist/src/ai/types.js +23 -0
- package/dist/src/ai/types.js.map +1 -0
- package/dist/src/ai/validate.d.ts +30 -0
- package/dist/src/ai/validate.d.ts.map +1 -0
- package/dist/src/ai/validate.js +160 -0
- package/dist/src/ai/validate.js.map +1 -0
- package/dist/src/ai/worker.d.ts +74 -0
- package/dist/src/ai/worker.d.ts.map +1 -0
- package/dist/src/ai/worker.js +286 -0
- package/dist/src/ai/worker.js.map +1 -0
- package/dist/src/audit.d.ts +12 -3
- package/dist/src/audit.d.ts.map +1 -1
- package/dist/src/audit.js +30 -4
- package/dist/src/audit.js.map +1 -1
- package/dist/src/chatwarden.d.ts +16 -0
- package/dist/src/chatwarden.d.ts.map +1 -1
- package/dist/src/chatwarden.js +49 -1
- package/dist/src/chatwarden.js.map +1 -1
- package/dist/src/decide.d.ts +36 -1
- package/dist/src/decide.d.ts.map +1 -1
- package/dist/src/decide.js +62 -2
- package/dist/src/decide.js.map +1 -1
- package/dist/src/documents.d.ts +1 -1
- package/dist/src/documents.d.ts.map +1 -1
- package/dist/src/documents.js +4 -1
- package/dist/src/documents.js.map +1 -1
- package/dist/src/index.d.ts +27 -5
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +17 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/profile.d.ts +30 -1
- package/dist/src/profile.d.ts.map +1 -1
- package/dist/src/profile.js +43 -4
- package/dist/src/profile.js.map +1 -1
- package/dist/src/retention.d.ts +19 -0
- package/dist/src/retention.d.ts.map +1 -1
- package/dist/src/retention.js +33 -10
- package/dist/src/retention.js.map +1 -1
- package/dist/src/types.d.ts +269 -2
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js.map +1 -1
- package/package.json +2 -2
- package/src/ai/agreement.ts +106 -0
- package/src/ai/breaker.ts +73 -0
- package/src/ai/budget.ts +65 -0
- package/src/ai/case.ts +74 -0
- package/src/ai/casebook.ts +75 -0
- package/src/ai/ceilings.ts +68 -0
- package/src/ai/fake.ts +105 -0
- package/src/ai/hash.ts +20 -0
- package/src/ai/inert.ts +26 -0
- package/src/ai/injection.ts +32 -0
- package/src/ai/lines.ts +216 -0
- package/src/ai/prompt.ts +208 -0
- package/src/ai/redact.ts +174 -0
- package/src/ai/schema.ts +51 -0
- package/src/ai/service.ts +955 -0
- package/src/ai/types.ts +165 -0
- package/src/ai/validate.ts +173 -0
- package/src/ai/worker.ts +364 -0
- package/src/audit.ts +31 -5
- package/src/chatwarden.ts +64 -1
- package/src/decide.ts +97 -4
- package/src/documents.ts +5 -2
- package/src/index.ts +52 -1
- package/src/profile.ts +68 -4
- package/src/retention.ts +47 -10
- package/src/types.ts +294 -2
package/dist/src/retention.d.ts
CHANGED
|
@@ -19,6 +19,16 @@ export interface RetentionPolicy {
|
|
|
19
19
|
badFaithMs: number;
|
|
20
20
|
/** A staff audit entry is deleted once it is older than this. */
|
|
21
21
|
auditMs: number;
|
|
22
|
+
/**
|
|
23
|
+
* An AI outcome row (the agree-or-override record: ids and counts, no chat text) is kept this long. At least 90 days. A read
|
|
24
|
+
* itself goes with its report (`reportsMs`).
|
|
25
|
+
*/
|
|
26
|
+
aiOutcomesMs: number;
|
|
27
|
+
/**
|
|
28
|
+
* The pseudonymised example text kept with an AI outcome is deleted once it is older than this. It is the only chat text that
|
|
29
|
+
* outlives a report, so it is the shortest of the three; 0 keeps no text at all.
|
|
30
|
+
*/
|
|
31
|
+
aiExamplesMs: number;
|
|
22
32
|
}
|
|
23
33
|
export declare const RETENTION_DEFAULTS: Readonly<RetentionPolicy>;
|
|
24
34
|
/**
|
|
@@ -28,6 +38,8 @@ export declare const RETENTION_DEFAULTS: Readonly<RetentionPolicy>;
|
|
|
28
38
|
* - `noticesMs` at least 90 days: "My record" shows that far back
|
|
29
39
|
* - `badFaithMs` at least `suspendWindowMs`: a bad-faith dismissal weighs against its reporter for that long
|
|
30
40
|
* - `auditMs` at least 90 days: the staff trail is how a community answers "who did that"
|
|
41
|
+
* - `aiOutcomesMs` at least 90 days: the agree-or-override record is the data the AI's later gates read
|
|
42
|
+
* - `aiExamplesMs` at least 0 (0 keeps no example text at all)
|
|
31
43
|
*
|
|
32
44
|
* Every field present must also be a finite number (`reportsMs` and `strikesMs` have no floor, only this).
|
|
33
45
|
*
|
|
@@ -44,6 +56,10 @@ export interface PurgeResult {
|
|
|
44
56
|
notices: number;
|
|
45
57
|
audit: number;
|
|
46
58
|
webhookKeys: number;
|
|
59
|
+
/** AI reads deleted by the retention pass (a read also goes with its report). 0 for a store without the AI methods. */
|
|
60
|
+
aiReads: number;
|
|
61
|
+
/** AI casebook outcomes deleted. 0 for a store without the AI methods. */
|
|
62
|
+
aiOutcomes: number;
|
|
47
63
|
}
|
|
48
64
|
/**
|
|
49
65
|
* Delete rows past their retention, all in one transaction (every table or none). Run it from a timer
|
|
@@ -59,6 +75,9 @@ export interface PurgeResult {
|
|
|
59
75
|
* term-editor rows written before the trail existed
|
|
60
76
|
* - webhook keys: `createdAt < now - 24 h` (incoming-webhook idempotency keys, pending or done)
|
|
61
77
|
* - mutes: `createdAt < now - 180 days`, the mute TTL (a mute past it is already ignored)
|
|
78
|
+
* - AI reads: `createdAt < now - reportsMs` (a read also goes with its report, in `purgeReports`); AI outcomes (agree-or-override
|
|
79
|
+
* record, no chat text): `decidedAt < now - aiOutcomesMs`; the pseudonymised example kept with an outcome:
|
|
80
|
+
* `decidedAt < now - aiExamplesMs`, the row stays with its counts. A store without the AI methods has none of these.
|
|
62
81
|
* - notices: withdrawn, or a seen warning / report outcome, with `createdAt < now - noticesMs`; or
|
|
63
82
|
* `until < now - noticesMs`. A notice for a permanent or running sanction is kept while it applies (agrees with
|
|
64
83
|
* `NoticeService.record`), and an unseen warning is kept until it is seen or withdrawn.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retention.d.ts","sourceRoot":"","sources":["../../src/retention.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAIxC,yCAAyC;AACzC,MAAM,WAAW,eAAe;IAC9B,sDAAsD;IACtD,SAAS,EAAE,MAAM,CAAC;IAClB,2FAA2F;IAC3F,kBAAkB,EAAE,MAAM,CAAC;IAC3B,sFAAsF;IACtF,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB,iEAAiE;IACjE,OAAO,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"retention.d.ts","sourceRoot":"","sources":["../../src/retention.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAIxC,yCAAyC;AACzC,MAAM,WAAW,eAAe;IAC9B,sDAAsD;IACtD,SAAS,EAAE,MAAM,CAAC;IAClB,2FAA2F;IAC3F,kBAAkB,EAAE,MAAM,CAAC;IAC3B,sFAAsF;IACtF,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB,iEAAiE;IACjE,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,eAAe,CASxD,CAAC;AAOF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,eAAe,CAAC,EAAE,eAAe,EAAE,MAAM,GAAG,IAAI,CAmCpG;AAED,+BAA+B;AAC/B,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,uHAAuH;IACvH,OAAO,EAAE,MAAM,CAAC;IAChB,0EAA0E;IAC1E,UAAU,EAAE,MAAM,CAAC;CACpB;AAMD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,KAAK,CACzB,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,MAAM,EACX,MAAM,GAAE,OAAO,CAAC,eAAe,CAAM,GACpC,OAAO,CAAC,WAAW,CAAC,CAmCtB"}
|
package/dist/src/retention.js
CHANGED
|
@@ -9,10 +9,12 @@ export const RETENTION_DEFAULTS = {
|
|
|
9
9
|
noticesMs: 90 * DAY_MS,
|
|
10
10
|
badFaithMs: 30 * DAY_MS,
|
|
11
11
|
auditMs: 365 * DAY_MS,
|
|
12
|
+
aiOutcomesMs: 365 * DAY_MS,
|
|
13
|
+
aiExamplesMs: 180 * DAY_MS,
|
|
12
14
|
};
|
|
13
15
|
/** The ladder looks back 90 days and "My record" shows 90 days, so the rows behind them must outlive that. */
|
|
14
16
|
const RECORD_FLOOR_MS = 90 * DAY_MS;
|
|
15
|
-
const FIELDS = ['reportsMs', 'sanctionAfterEndMs', 'strikesMs', 'noticesMs', 'badFaithMs', 'auditMs'];
|
|
17
|
+
const FIELDS = ['reportsMs', 'sanctionAfterEndMs', 'strikesMs', 'noticesMs', 'badFaithMs', 'auditMs', 'aiOutcomesMs', 'aiExamplesMs'];
|
|
16
18
|
/**
|
|
17
19
|
* Refuse a retention policy that would delete rows the kit still reads. Only the fields present are checked (an
|
|
18
20
|
* absent one takes a default, and the defaults satisfy every floor):
|
|
@@ -20,6 +22,8 @@ const FIELDS = ['reportsMs', 'sanctionAfterEndMs', 'strikesMs', 'noticesMs', 'ba
|
|
|
20
22
|
* - `noticesMs` at least 90 days: "My record" shows that far back
|
|
21
23
|
* - `badFaithMs` at least `suspendWindowMs`: a bad-faith dismissal weighs against its reporter for that long
|
|
22
24
|
* - `auditMs` at least 90 days: the staff trail is how a community answers "who did that"
|
|
25
|
+
* - `aiOutcomesMs` at least 90 days: the agree-or-override record is the data the AI's later gates read
|
|
26
|
+
* - `aiExamplesMs` at least 0 (0 keeps no example text at all)
|
|
23
27
|
*
|
|
24
28
|
* Every field present must also be a finite number (`reportsMs` and `strikesMs` have no floor, only this).
|
|
25
29
|
*
|
|
@@ -45,6 +49,12 @@ export function checkRetentionFloors(policy, suspendWindowMs) {
|
|
|
45
49
|
if (below(policy.auditMs, RECORD_FLOOR_MS)) {
|
|
46
50
|
throw new ProfileError('retention.auditMs', 'must be at least 90 days: the audit trail answers who did what, and when');
|
|
47
51
|
}
|
|
52
|
+
if (below(policy.aiOutcomesMs, RECORD_FLOOR_MS)) {
|
|
53
|
+
throw new ProfileError('retention.aiOutcomesMs', 'must be at least 90 days: it is the record of how often the AI and the moderators agreed');
|
|
54
|
+
}
|
|
55
|
+
if (below(policy.aiExamplesMs, 0)) {
|
|
56
|
+
throw new ProfileError('retention.aiExamplesMs', 'must be 0 or more: 0 keeps no example text at all');
|
|
57
|
+
}
|
|
48
58
|
if (below(policy.badFaithMs, suspendWindowMs)) {
|
|
49
59
|
throw new ProfileError('retention.badFaithMs', `must be at least limits.reports.suspendWindowMs (${Math.round((suspendWindowMs / DAY_MS) * 100) / 100} days): ` +
|
|
50
60
|
"a report dismissed as bad faith counts toward its reporter's suspension for that long");
|
|
@@ -68,6 +78,9 @@ function checkWindow(name, ms) {
|
|
|
68
78
|
* term-editor rows written before the trail existed
|
|
69
79
|
* - webhook keys: `createdAt < now - 24 h` (incoming-webhook idempotency keys, pending or done)
|
|
70
80
|
* - mutes: `createdAt < now - 180 days`, the mute TTL (a mute past it is already ignored)
|
|
81
|
+
* - AI reads: `createdAt < now - reportsMs` (a read also goes with its report, in `purgeReports`); AI outcomes (agree-or-override
|
|
82
|
+
* record, no chat text): `decidedAt < now - aiOutcomesMs`; the pseudonymised example kept with an outcome:
|
|
83
|
+
* `decidedAt < now - aiExamplesMs`, the row stays with its counts. A store without the AI methods has none of these.
|
|
71
84
|
* - notices: withdrawn, or a seen warning / report outcome, with `createdAt < now - noticesMs`; or
|
|
72
85
|
* `until < now - noticesMs`. A notice for a permanent or running sanction is kept while it applies (agrees with
|
|
73
86
|
* `NoticeService.record`), and an unseen warning is kept until it is seen or withdrawn.
|
|
@@ -83,6 +96,8 @@ export async function purge(store, now, policy = {}) {
|
|
|
83
96
|
noticesMs: policy.noticesMs ?? RETENTION_DEFAULTS.noticesMs,
|
|
84
97
|
badFaithMs: policy.badFaithMs ?? RETENTION_DEFAULTS.badFaithMs,
|
|
85
98
|
auditMs: policy.auditMs ?? RETENTION_DEFAULTS.auditMs,
|
|
99
|
+
aiOutcomesMs: policy.aiOutcomesMs ?? RETENTION_DEFAULTS.aiOutcomesMs,
|
|
100
|
+
aiExamplesMs: policy.aiExamplesMs ?? RETENTION_DEFAULTS.aiExamplesMs,
|
|
86
101
|
};
|
|
87
102
|
if (!Number.isFinite(now))
|
|
88
103
|
throw new Error('purge: invalid now');
|
|
@@ -92,14 +107,22 @@ export async function purge(store, now, policy = {}) {
|
|
|
92
107
|
checkWindow('noticesMs', p.noticesMs);
|
|
93
108
|
checkWindow('badFaithMs', p.badFaithMs);
|
|
94
109
|
checkWindow('auditMs', p.auditMs);
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
110
|
+
checkWindow('aiOutcomesMs', p.aiOutcomesMs);
|
|
111
|
+
checkWindow('aiExamplesMs', p.aiExamplesMs);
|
|
112
|
+
return store.transaction(() => {
|
|
113
|
+
const reports = store.purgeReports(now - p.reportsMs, now - p.badFaithMs);
|
|
114
|
+
const ai = store.purgeAi?.(now - p.reportsMs, now - p.aiOutcomesMs, now - p.aiExamplesMs) ?? { reads: 0, outcomes: 0 };
|
|
115
|
+
return {
|
|
116
|
+
reports,
|
|
117
|
+
sanctions: store.purgeSanctions(now - p.sanctionAfterEndMs),
|
|
118
|
+
strikes: store.purgeStrikes(now - p.strikesMs),
|
|
119
|
+
mutes: store.purgeMutes(now - MUTE_TTL_MS),
|
|
120
|
+
notices: store.purgeNotices(now - p.noticesMs),
|
|
121
|
+
audit: store.purgeAudit(now - p.auditMs),
|
|
122
|
+
webhookKeys: store.purgeWebhookKeys(now - WEBHOOK_KEY_TTL_MS),
|
|
123
|
+
aiReads: ai.reads,
|
|
124
|
+
aiOutcomes: ai.outcomes,
|
|
125
|
+
};
|
|
126
|
+
});
|
|
104
127
|
}
|
|
105
128
|
//# sourceMappingURL=retention.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retention.js","sourceRoot":"","sources":["../../src/retention.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AA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AC,QAAQ;SACxB,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/dist/src/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AIExample, AIRead } from './ai/types.js';
|
|
1
2
|
import type { AuditListQuery, AuditRow } from './audit.js';
|
|
2
3
|
import type { PolicyLayer } from './profile.js';
|
|
3
4
|
import type { RuleRef } from './rules.js';
|
|
@@ -189,6 +190,160 @@ export interface ReporterOutcomeRow {
|
|
|
189
190
|
noAction: number;
|
|
190
191
|
badFaith: number;
|
|
191
192
|
}
|
|
193
|
+
/** Where an AI read stands. `pending` is owned by a lease; `skipped` means the daily limit (or the breaker) kept the call from being made. */
|
|
194
|
+
export type AiReadStatus = 'pending' | 'ok' | 'declined' | 'invalid' | 'failed' | 'skipped';
|
|
195
|
+
/** Why a read did not finish. `budget` belongs to a `skipped` read; `declined` and `invalid` to the statuses of the same name. */
|
|
196
|
+
export type AiErrorKind = 'retryable' | 'fatal' | 'declined' | 'timeout' | 'invalid' | 'budget';
|
|
197
|
+
/** A read about to be made: the input the lease is taken for. The store adds the id, the attempt count and the time. */
|
|
198
|
+
export interface AiReadPending {
|
|
199
|
+
reportId: string;
|
|
200
|
+
/** The input hash (design section 6); with `reportId` it is the UNIQUE key. */
|
|
201
|
+
inputHash: string;
|
|
202
|
+
promptVersion: number;
|
|
203
|
+
/** `ModerationAI.id` (never a key). */
|
|
204
|
+
adapter: string;
|
|
205
|
+
}
|
|
206
|
+
/** What one provider call used and cost: stored on a finished read, and on a failed one that still cost something. */
|
|
207
|
+
export interface AiCallUsage {
|
|
208
|
+
model: string;
|
|
209
|
+
inputTokens: number;
|
|
210
|
+
outputTokens: number;
|
|
211
|
+
cacheReadTokens: number;
|
|
212
|
+
cacheWriteTokens: number;
|
|
213
|
+
/** Integer micro-dollars. */
|
|
214
|
+
costMicros: number;
|
|
215
|
+
latencyMs: number;
|
|
216
|
+
}
|
|
217
|
+
/** The validated answer and the usage of the call that produced it. */
|
|
218
|
+
export interface AiReadDone extends AiCallUsage {
|
|
219
|
+
read: AIRead;
|
|
220
|
+
/**
|
|
221
|
+
* The ids of the casebook examples that were in the prompt (`AIStoredRead.exampleIds`): the examples are not part of the input
|
|
222
|
+
* hash, so the read records which ones it saw. Ids only; none by default.
|
|
223
|
+
*/
|
|
224
|
+
exampleIds?: readonly string[];
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* One stored read, whatever its state. `read` is the validated answer, set only for `ok`; `leaseUntil` only while `pending`;
|
|
228
|
+
* `retryAt` for a `failed` or `skipped` read that may be tried again. It holds no chat text but the one-line summary and no
|
|
229
|
+
* identity.
|
|
230
|
+
*/
|
|
231
|
+
export interface AiReadRow {
|
|
232
|
+
id: string;
|
|
233
|
+
reportId: string;
|
|
234
|
+
inputHash: string;
|
|
235
|
+
status: AiReadStatus;
|
|
236
|
+
/** Calls started for this row: 1 when reserved, +1 each time a lease or a retry is taken over. */
|
|
237
|
+
attempts: number;
|
|
238
|
+
retryAt: number | null;
|
|
239
|
+
leaseUntil: number | null;
|
|
240
|
+
errorKind: AiErrorKind | null;
|
|
241
|
+
adapter: string;
|
|
242
|
+
model: string | null;
|
|
243
|
+
promptVersion: number;
|
|
244
|
+
read: AIRead | null;
|
|
245
|
+
/** The ids of the casebook examples this read saw (empty when none, and for every row but an `ok` one). */
|
|
246
|
+
exampleIds: readonly string[];
|
|
247
|
+
inputTokens: number | null;
|
|
248
|
+
outputTokens: number | null;
|
|
249
|
+
cacheReadTokens: number | null;
|
|
250
|
+
cacheWriteTokens: number | null;
|
|
251
|
+
/**
|
|
252
|
+
* The cost of the attempts that finished as this row's owner, summed. Tokens are summed too; `model` and `latencyMs` are the latest
|
|
253
|
+
* attempt's. A stale owner's paid call is booked only to the spend ledger, so this can be lower than the ledger: the daily cap reads the ledger.
|
|
254
|
+
*/
|
|
255
|
+
costMicros: number;
|
|
256
|
+
latencyMs: number | null;
|
|
257
|
+
/** When the row was first reserved (a take-over keeps it). Spend is booked per attempt, not by this. */
|
|
258
|
+
createdAt: number;
|
|
259
|
+
/**
|
|
260
|
+
* True once a moderator's explicit "read again" has retaken this row (see `reserveAiRead` `opts.retake`). The explicit retake
|
|
261
|
+
* happens once per row, for good: it is a fact of the row, so a restart, a second process or any pruning cannot allow another.
|
|
262
|
+
*/
|
|
263
|
+
retaken: boolean;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* The answer to a reserve: this caller owns the read now (`id`), or a row already exists for that report and input. `lease` is the
|
|
267
|
+
* caller's fence token (the row's `attempts` after this reserve): `completeAiRead` and `failAiRead` must be given it, and do nothing
|
|
268
|
+
* once another caller has taken the row over.
|
|
269
|
+
*/
|
|
270
|
+
export type AiReserveResult = {
|
|
271
|
+
reserved: true;
|
|
272
|
+
id: string;
|
|
273
|
+
lease: number;
|
|
274
|
+
} | {
|
|
275
|
+
reserved: false;
|
|
276
|
+
existing: AiReadRow;
|
|
277
|
+
};
|
|
278
|
+
/** The human's verdict, and the AI's recommendation, in the casebook's three classes. */
|
|
279
|
+
export type AiVerdict = 'upheld' | 'noted' | 'no_action';
|
|
280
|
+
/**
|
|
281
|
+
* The finer facts of one outcome (design section 11): whether the verdict and the rule matched the AI, how many cited lines
|
|
282
|
+
* matched, whether the human step was the same, milder or harsher than the pre-fill (`none` when there was no pre-fill), and
|
|
283
|
+
* whether it was a one-click accept. Booleans, a count and a word: no text can be written into a row that outlives its report.
|
|
284
|
+
*/
|
|
285
|
+
export interface AiOutcomeDetail {
|
|
286
|
+
verdict: boolean;
|
|
287
|
+
rule: boolean;
|
|
288
|
+
lines: number;
|
|
289
|
+
outcome: 'same' | 'milder' | 'harsher' | 'none';
|
|
290
|
+
oneClick: boolean;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* One casebook row to insert: a decided report that had an AI read, computed by the server in the transaction of the decision.
|
|
294
|
+
* Ids, counts and the human's final choices; the only chat text is `example`, pseudonymised, kept on its own shorter clock.
|
|
295
|
+
*/
|
|
296
|
+
export interface AiOutcomeInsert {
|
|
297
|
+
reportId: string;
|
|
298
|
+
/** The read the moderator was shown, or null when there was none. */
|
|
299
|
+
readId: string | null;
|
|
300
|
+
decidedAt: number;
|
|
301
|
+
/** The AI level in force when decided (1 or 2). */
|
|
302
|
+
level: number;
|
|
303
|
+
/** The human's final verdict. */
|
|
304
|
+
verdict: AiVerdict;
|
|
305
|
+
/** The human's final rule on the reported person (`'3'`, `'uncovered'`), or null. */
|
|
306
|
+
rule: string | null;
|
|
307
|
+
/** The conduct level the human settled on, when the form had one. */
|
|
308
|
+
severity: ConductLevel | null;
|
|
309
|
+
/** What the AI recommended, or null (level 1, or `unclear`). */
|
|
310
|
+
aiVerdict: AiVerdict | null;
|
|
311
|
+
agreement: 'agree' | 'override' | 'none';
|
|
312
|
+
detail: AiOutcomeDetail;
|
|
313
|
+
/** The report was dismissed as bad faith: excludes the row from examples. */
|
|
314
|
+
badFaith: boolean;
|
|
315
|
+
/** Up to 6 pseudonymised lines, or null for none. A store stores null for a `badFaith` row: it can never teach. */
|
|
316
|
+
example: AIExample | null;
|
|
317
|
+
}
|
|
318
|
+
/** A stored outcome: what was inserted, and the two marks a later action sets. */
|
|
319
|
+
export interface AiOutcomeRow extends AiOutcomeInsert {
|
|
320
|
+
/** Set by a granted appeal or a take-back. Excludes the row from examples (and drops its example text); counts as an AI false positive. */
|
|
321
|
+
reversed: boolean;
|
|
322
|
+
/** A senior's mark. Excludes the row from examples. */
|
|
323
|
+
dontTeach: boolean;
|
|
324
|
+
}
|
|
325
|
+
/** One teachable casebook example, newest first from {@link Store.aiExamples}. The human's final decision is the label. */
|
|
326
|
+
export interface AiExampleRow {
|
|
327
|
+
reportId: string;
|
|
328
|
+
decidedAt: number;
|
|
329
|
+
agreement: 'agree' | 'override';
|
|
330
|
+
example: AIExample;
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* The casebook counts for one rule (the human's final rule; `null` for none), for decisions at or after a time. `decided` is every
|
|
334
|
+
* outcome; `falsePositives` those where the AI recommended `upheld` or `noted` and the human settled on `no_action`, or the
|
|
335
|
+
* decision was later reversed.
|
|
336
|
+
*/
|
|
337
|
+
export interface AiStatsRow {
|
|
338
|
+
rule: string | null;
|
|
339
|
+
decided: number;
|
|
340
|
+
agree: number;
|
|
341
|
+
override: number;
|
|
342
|
+
none: number;
|
|
343
|
+
falsePositives: number;
|
|
344
|
+
/** Decisions that were a one-click accept of the AI's pre-fill (the outcome detail's `oneClick`). */
|
|
345
|
+
oneClick: number;
|
|
346
|
+
}
|
|
192
347
|
/**
|
|
193
348
|
* One decided report a person filed that carried a reason, with what its decision did: for the reporter's accuracy. `reason` is
|
|
194
349
|
* the report's stored `reportedReason`; `target` the reported subject as stored; `actions` one entry per sanction group the
|
|
@@ -609,7 +764,7 @@ export interface Store {
|
|
|
609
764
|
* Reports that are still `open`, OLDEST first (`createdAt` ascending, then `id` ascending, so a tie is stable), whole
|
|
610
765
|
* records. `category` filters; `after` keeps only reports newer than that instant (exclusive), and with `afterId` also
|
|
611
766
|
* the ones filed AT that instant whose id sorts above it (keyset paging: pass the last row's `createdAt` and `id`).
|
|
612
|
-
* `limit` is clamped to 1..200 (a fraction is floored). The scan behind "take next".
|
|
767
|
+
* `limit` is clamped to 1..200 (a fraction is floored); a limit that is not finite, or is below 1, counts as 1. The scan behind "take next".
|
|
613
768
|
*/
|
|
614
769
|
listOpenReports(q: OpenReportQuery): ReportRecord[];
|
|
615
770
|
/**
|
|
@@ -741,6 +896,117 @@ export interface Store {
|
|
|
741
896
|
* inside `transaction`, so an undone transaction undoes it. It does not move the change token.
|
|
742
897
|
*/
|
|
743
898
|
savePolicyLayer?(layer: PolicyLayer, expectedVersion: number): number | null;
|
|
899
|
+
/**
|
|
900
|
+
* OPTIONAL. Take the right to make one read, as ONE atomic conditional write: of two callers (two processes on one database
|
|
901
|
+
* included) for the same `reportId` and `inputHash`, exactly one gets `{ reserved: true }`; the other gets the existing row. A new
|
|
902
|
+
* row is `pending`, owned until `leaseUntil`, with `attempts` 1. An existing row is taken over (same id, `attempts` + 1, a new
|
|
903
|
+
* lease, `retryAt` and `errorKind` cleared, `createdAt` kept) only when it is `pending` and its lease has ended (`leaseUntil <= now`),
|
|
904
|
+
* or `failed` or `skipped` with a `retryAt` that has come (`retryAt <= now`), or `ok` with a stored answer that cannot be read. An
|
|
905
|
+
* `ok` (readable), `declined` or `invalid` row, a `failed` or `skipped` one with no `retryAt`, and a live lease are returned as
|
|
906
|
+
* `existing` (a copy). A win carries the fence token `lease` (= `attempts`), and opens one spend-ledger entry at `now` (one call
|
|
907
|
+
* started); `aiSpendSince` reads that ledger, so every attempt is booked to the time it was made. Does not move the change token.
|
|
908
|
+
* With `opts.retake` (a moderator's explicit "read again") a FINAL row (`declined`, `invalid`, or `failed` with no `retryAt`) is
|
|
909
|
+
* taken over too, once: the take-over sets the row's `retaken` marker and a row already marked is never retaken again. A `failed` row
|
|
910
|
+
* still waiting for its own retry time (`retryAt` set), an `ok` read and a live lease never are, so the three automatic attempts
|
|
911
|
+
* hold; the one explicit retake is the single extra attempt (a given-up row's is its fourth). A `skipped` row made no call and gave its
|
|
912
|
+
* attempt back, so an explicit ask takes it at once, whatever its `retryAt`, without using the marker.
|
|
913
|
+
*/
|
|
914
|
+
reserveAiRead?(row: AiReadPending, leaseUntil: number, now: number, opts?: {
|
|
915
|
+
retake?: boolean;
|
|
916
|
+
}): AiReserveResult;
|
|
917
|
+
/**
|
|
918
|
+
* OPTIONAL. Store the validated read and the usage on a `pending` row: status `ok`, the lease cleared; cost and tokens are added to
|
|
919
|
+
* the row, and the cost to this attempt's ledger entry. `lease` is the token `reserveAiRead` returned. True only when this call did
|
|
920
|
+
* it; false (nothing changed) for an unknown row, one that is not `pending`, or one whose `attempts` is no longer `lease` (another
|
|
921
|
+
* caller took it over: a stale owner can neither finish nor fail the new owner's row). A stale owner's call was still paid for: its
|
|
922
|
+
* `result` cost is booked to its own attempt's ledger entry (once), and nothing else is touched. Moves the change token only on true.
|
|
923
|
+
*/
|
|
924
|
+
completeAiRead?(id: string, lease: number, result: AiReadDone): boolean;
|
|
925
|
+
/**
|
|
926
|
+
* OPTIONAL. End a `pending` row without a read: `failed`, `declined`, `invalid` or `skipped`, with the kind of failure and, for
|
|
927
|
+
* a retry, the time it may be taken again (`retryAt`; null is final). The lease is cleared. `usage`, when the provider still
|
|
928
|
+
* charged for the call (a refusal, an invalid answer, a failure after tokens were billed), is added to the row and to this attempt's
|
|
929
|
+
* ledger entry, so it counts toward `aiSpendSince`. A `skipped` read was never a call: its ledger entry is removed and the attempt is given back (a skip does not use up the three-attempt budget). `lease` fences as
|
|
930
|
+
* in `completeAiRead`, including the booking of a stale owner's `usage`. True when this call did it; false for an unknown row, one that
|
|
931
|
+
* is not `pending`, or a stale `lease`. Does not move the change token.
|
|
932
|
+
*/
|
|
933
|
+
failAiRead?(id: string, lease: number, status: 'failed' | 'declined' | 'invalid' | 'skipped', errorKind: AiErrorKind, retryAt: number | null, usage?: AiCallUsage): boolean;
|
|
934
|
+
/**
|
|
935
|
+
* OPTIONAL. The newest `ok` read of the report (`createdAt` descending, then `id` descending), whatever its input hash; null
|
|
936
|
+
* when there is none. A row whose stored answer cannot be read is skipped. Pending, failed, declined, invalid and skipped rows
|
|
937
|
+
* are never returned.
|
|
938
|
+
*/
|
|
939
|
+
loadAiRead?(reportId: string): AiReadRow | null;
|
|
940
|
+
/**
|
|
941
|
+
* OPTIONAL. The newest `ok` read of each of these reports (one row per report that has one), in the order the ids first appear.
|
|
942
|
+
* At most the first 200 distinct ids are looked at; unknown ids give nothing.
|
|
943
|
+
*/
|
|
944
|
+
loadAiReads?(reportIds: readonly string[]): AiReadRow[];
|
|
945
|
+
/**
|
|
946
|
+
* OPTIONAL. One read by its id, whatever its state (a copy), or null for an unknown id. The decision's echo names the read the
|
|
947
|
+
* moderator was shown; the caller checks that it belongs to the report and is `ok`.
|
|
948
|
+
*/
|
|
949
|
+
loadAiReadById?(id: string): AiReadRow | null;
|
|
950
|
+
/**
|
|
951
|
+
* OPTIONAL. The row for this report and this input hash (the pair is unique), whatever its state (a copy), or null. "Read again"
|
|
952
|
+
* looks at it to tell a final row, which an explicit ask may retake once (`retaken`), from one still waiting for its own retry.
|
|
953
|
+
*/
|
|
954
|
+
loadAiReadFor?(reportId: string, inputHash: string): AiReadRow | null;
|
|
955
|
+
/**
|
|
956
|
+
* OPTIONAL. The rows the sweeper should pick up at `now`, oldest first (`createdAt`, then `id`), at most `limit` (clamped to
|
|
957
|
+
* 1..200): `failed` or `skipped` rows whose `retryAt` has come (`retryAt <= now`), and `pending` rows whose lease has ended
|
|
958
|
+
* (`leaseUntil <= now`: the process that held them died). Rows of reports that have been decided are left out: nobody will read them. `limit` is clamped to 1..200 (a fraction is floored); one that is omitted, not finite or below 1 is the default of 20 (what the sweeper enqueues at a time).
|
|
959
|
+
*/
|
|
960
|
+
listAiRetries?(now: number, limit: number | undefined): AiReadRow[];
|
|
961
|
+
/**
|
|
962
|
+
* OPTIONAL. What the attempts made at or after `since` cost: the sum of their `costMicros` (a failed attempt with usage included),
|
|
963
|
+
* and the number of calls (every attempt but a skipped one, a `pending` one included). Each attempt counts at the time it was
|
|
964
|
+
* reserved, so a retry that crosses UTC midnight books each attempt to its own day. The daily cap is this with `since` = the UTC
|
|
965
|
+
* midnight.
|
|
966
|
+
*/
|
|
967
|
+
aiSpendSince?(since: number): {
|
|
968
|
+
micros: number;
|
|
969
|
+
calls: number;
|
|
970
|
+
};
|
|
971
|
+
/**
|
|
972
|
+
* OPTIONAL. Record the outcome of a decided report. False, nothing written, when the report already has one. A `badFaith` row is
|
|
973
|
+
* stored without its example (it can never teach). Does not move the change token (the decision it belongs to does).
|
|
974
|
+
*/
|
|
975
|
+
insertAiOutcome?(row: AiOutcomeInsert): boolean;
|
|
976
|
+
/** OPTIONAL. The report's outcome, or null. Returns a copy; an unreadable `detail` reads as `{}` and an unreadable example as null. */
|
|
977
|
+
loadAiOutcome?(reportId: string): AiOutcomeRow | null;
|
|
978
|
+
/**
|
|
979
|
+
* OPTIONAL. Set the marks on an outcome (a mark is never cleared) and drop its example text in the same write: a reversed or marked
|
|
980
|
+
* row can never teach, so its chat text goes now. False for an unknown report. Moves the change token when the report has an outcome.
|
|
981
|
+
*/
|
|
982
|
+
markAiOutcome?(reportId: string, patch: {
|
|
983
|
+
reversed?: true;
|
|
984
|
+
dontTeach?: true;
|
|
985
|
+
}): boolean;
|
|
986
|
+
/**
|
|
987
|
+
* OPTIONAL. Teachable examples with this human rule (`'3'`, `'uncovered'`) and conduct level, decided at or after `since`, newest
|
|
988
|
+
* first (`decidedAt` descending, then `reportId` descending), at most `limit`. Teachable: an example is
|
|
989
|
+
* stored, the AI recommended something (`agree` or `override`, not `none`), and the row is not `reversed`, `dontTeach` or `badFaith`.
|
|
990
|
+
* `limit` is clamped to 1..200 (a fraction is floored); one that is omitted, not finite or below 1 is the default of 2 (the prompt takes at most two
|
|
991
|
+
* examples).
|
|
992
|
+
*/
|
|
993
|
+
aiExamples?(rule: string, severity: string, limit: number | undefined, since: number): AiExampleRow[];
|
|
994
|
+
/** OPTIONAL. How many teachable examples (see `aiExamples`) were decided at or after `since`. */
|
|
995
|
+
aiTeachableCount?(since: number): number;
|
|
996
|
+
/**
|
|
997
|
+
* OPTIONAL. The casebook counts per rule for decisions at or after `since`: numbered rules in number order, then `'uncovered'`,
|
|
998
|
+
* then no rule. A rule with no decision is left out.
|
|
999
|
+
*/
|
|
1000
|
+
aiStats?(since: number): AiStatsRow[];
|
|
1001
|
+
/**
|
|
1002
|
+
* OPTIONAL. Retention for the AI rows, all strict (`<`): reads created before `readsBefore` (any status), outcomes decided before
|
|
1003
|
+
* `outcomesBefore`, and the example of every outcome decided before `examplesBefore` (set to none; the counts stay); spend-ledger
|
|
1004
|
+
* entries made before `readsBefore` go with the reads. Returns how many reads and outcomes were deleted. `purgeReports` deletes the reads of the reports it deletes itself.
|
|
1005
|
+
*/
|
|
1006
|
+
purgeAi?(readsBefore: number, outcomesBefore: number, examplesBefore: number): {
|
|
1007
|
+
reads: number;
|
|
1008
|
+
outcomes: number;
|
|
1009
|
+
};
|
|
744
1010
|
/**
|
|
745
1011
|
* Insert one audit entry. A duplicate id throws (nothing is written). Both json columns are written NULL. A policy row
|
|
746
1012
|
* (`policy.update`, `policy.reset`) also carries `detail` (the sections changed and the owner's reason): a store MUST keep it
|
|
@@ -764,7 +1030,8 @@ export interface Store {
|
|
|
764
1030
|
/**
|
|
765
1031
|
* Delete reports with `createdAt < before`, except a bad-faith dismissal still inside its window
|
|
766
1032
|
* (`bad_faith = 1` and `actionedAt >= keepBadFaithSince`): the reporter's suspension reads it. Also deletes the
|
|
767
|
-
* recorded decisions of reports that no longer exist
|
|
1033
|
+
* recorded decisions of reports that no longer exist, and the AI reads of the reports it deletes (not their casebook outcomes: those
|
|
1034
|
+
* have their own clock, see `purgeAi`). Returns how many reports it deleted.
|
|
768
1035
|
*/
|
|
769
1036
|
purgeReports(before: number, keepBadFaithSince: number): number;
|
|
770
1037
|
/**
|
package/dist/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAM1C;;;;;;;;;GASG;AACH,MAAM,WAAW,WAAW;IAC1B,kCAAkC;IAClC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,0DAA0D;IAC1D,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,kCAAkC;IAClC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,MAAM;IACrB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MA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,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC5E;;;;OAIG;IACH,SAAS,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;CACrD;AAMD;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAAC;IAC/B;;;;;OAKG;IACH,MAAM,CAAC,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE;QAAE,IAAI,EAAE,gBAAgB,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;CACxG"}
|
package/dist/src/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,4BAA4B;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,4BAA4B;AAqa5B,iEAAiE;AACjE,MAAM,CAAC,MAAM,cAAc,GAA4B,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAU,CAAC,CAAC;AA2KvH,8EAA8E;AAC9E,iEAAiE;AACjE,8EAA8E;AAE9E,4EAA4E;AAC5E,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AA+C3C,4EAA4E;AAC5E,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chatwarden/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Chat moderation engine for games: reports, warnings, timeouts and bans, a moderator queue and player notices. No sockets, HTTP or disk.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"prepack": "tsc -b"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@chatwarden/store-memory": "0.1.
|
|
46
|
+
"@chatwarden/store-memory": "0.1.7"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|