@cello-protocol/cli 0.0.306 → 0.0.308
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/.claude-plugin/marketplace.json +15 -0
- package/README.md +107 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +602 -0
- package/dist/daemon/account-page-assets.d.ts +4 -0
- package/dist/daemon/account-page-assets.js +160 -0
- package/dist/daemon/account-page.d.ts +14 -0
- package/dist/daemon/account-page.js +104 -0
- package/dist/daemon/address.d.ts +10 -0
- package/dist/daemon/address.js +34 -0
- package/dist/daemon/away.d.ts +31 -0
- package/dist/daemon/away.js +65 -0
- package/dist/daemon/channel-store.d.ts +112 -0
- package/dist/daemon/channel-store.js +284 -0
- package/dist/daemon/channels.d.ts +46 -0
- package/dist/daemon/channels.js +1049 -0
- package/dist/daemon/contacts.d.ts +26 -0
- package/dist/daemon/contacts.js +74 -0
- package/dist/daemon/engine.d.ts +82 -0
- package/dist/daemon/engine.js +2882 -0
- package/dist/daemon/errors.d.ts +5 -0
- package/dist/daemon/errors.js +16 -0
- package/dist/daemon/governance.d.ts +66 -0
- package/dist/daemon/governance.js +514 -0
- package/dist/daemon/guards.d.ts +36 -0
- package/dist/daemon/guards.js +140 -0
- package/dist/daemon/issuer-client.d.ts +56 -0
- package/dist/daemon/issuer-client.js +143 -0
- package/dist/daemon/link.d.ts +30 -0
- package/dist/daemon/link.js +191 -0
- package/dist/daemon/log.d.ts +1 -0
- package/dist/daemon/log.js +4 -0
- package/dist/daemon/main.d.ts +1 -0
- package/dist/daemon/main.js +513 -0
- package/dist/daemon/paths.d.ts +6 -0
- package/dist/daemon/paths.js +21 -0
- package/dist/daemon/pii.d.ts +24 -0
- package/dist/daemon/pii.js +147 -0
- package/dist/daemon/policy-cadence.d.ts +33 -0
- package/dist/daemon/policy-cadence.js +59 -0
- package/dist/daemon/policy-proposals.d.ts +41 -0
- package/dist/daemon/policy-proposals.js +83 -0
- package/dist/daemon/policy-store.d.ts +47 -0
- package/dist/daemon/policy-store.js +144 -0
- package/dist/daemon/presented.d.ts +36 -0
- package/dist/daemon/presented.js +94 -0
- package/dist/daemon/rate-limit.d.ts +17 -0
- package/dist/daemon/rate-limit.js +44 -0
- package/dist/daemon/reach.d.ts +62 -0
- package/dist/daemon/reach.js +204 -0
- package/dist/daemon/screening.d.ts +97 -0
- package/dist/daemon/screening.js +362 -0
- package/dist/daemon/settings.d.ts +125 -0
- package/dist/daemon/settings.js +73 -0
- package/dist/daemon/signal-rules.d.ts +55 -0
- package/dist/daemon/signal-rules.js +127 -0
- package/dist/daemon/signal-store.d.ts +53 -0
- package/dist/daemon/signal-store.js +114 -0
- package/dist/daemon/store.d.ts +189 -0
- package/dist/daemon/store.js +477 -0
- package/dist/daemon/tiers.d.ts +14 -0
- package/dist/daemon/tiers.js +9 -0
- package/dist/daemon/wallet.d.ts +73 -0
- package/dist/daemon/wallet.js +429 -0
- package/dist/daemon/who-label.d.ts +3 -0
- package/dist/daemon/who-label.js +11 -0
- package/dist/guidance.d.ts +39 -0
- package/dist/guidance.js +98 -0
- package/dist/hermes-bridge.d.ts +34 -0
- package/dist/hermes-bridge.js +223 -0
- package/dist/install-mcp.d.ts +6 -0
- package/dist/install-mcp.js +77 -0
- package/dist/ipc/client.d.ts +18 -0
- package/dist/ipc/client.js +107 -0
- package/dist/ipc/operations.d.ts +30 -0
- package/dist/ipc/operations.js +846 -0
- package/dist/ipc/protocol.d.ts +21 -0
- package/dist/ipc/protocol.js +1 -0
- package/dist/issuer-list-sign.d.ts +12 -0
- package/dist/issuer-list-sign.js +43 -0
- package/dist/local-operations.d.ts +2 -0
- package/dist/local-operations.js +73 -0
- package/dist/mcp-tools.d.ts +14 -0
- package/dist/mcp-tools.js +45 -0
- package/dist/mcp.d.ts +2 -0
- package/dist/mcp.js +160 -0
- package/dist/protocol/aead.d.ts +4 -0
- package/dist/protocol/aead.js +35 -0
- package/dist/protocol/cbor.d.ts +40 -0
- package/dist/protocol/cbor.js +106 -0
- package/dist/protocol/chain.d.ts +44 -0
- package/dist/protocol/chain.js +126 -0
- package/dist/protocol/channel.d.ts +153 -0
- package/dist/protocol/channel.js +298 -0
- package/dist/protocol/encode.d.ts +6 -0
- package/dist/protocol/encode.js +21 -0
- package/dist/protocol/identity.d.ts +27 -0
- package/dist/protocol/identity.js +94 -0
- package/dist/protocol/issuer-list.d.ts +56 -0
- package/dist/protocol/issuer-list.js +193 -0
- package/dist/protocol/issuer-roots.d.ts +6 -0
- package/dist/protocol/issuer-roots.js +10 -0
- package/dist/protocol/key-agreement.d.ts +20 -0
- package/dist/protocol/key-agreement.js +88 -0
- package/dist/protocol/merkle.d.ts +16 -0
- package/dist/protocol/merkle.js +166 -0
- package/dist/protocol/ml-dsa.d.ts +28 -0
- package/dist/protocol/ml-dsa.js +58 -0
- package/dist/protocol/ml-kem.d.ts +14 -0
- package/dist/protocol/ml-kem.js +57 -0
- package/dist/protocol/pq-errors.d.ts +9 -0
- package/dist/protocol/pq-errors.js +23 -0
- package/dist/protocol/pq-warnings.d.ts +1 -0
- package/dist/protocol/pq-warnings.js +18 -0
- package/dist/protocol/presented-signals.d.ts +17 -0
- package/dist/protocol/presented-signals.js +92 -0
- package/dist/protocol/salt.d.ts +5 -0
- package/dist/protocol/salt.js +47 -0
- package/dist/protocol/seal.d.ts +58 -0
- package/dist/protocol/seal.js +220 -0
- package/dist/protocol/signal.d.ts +54 -0
- package/dist/protocol/signal.js +266 -0
- package/dist/protocol/status.d.ts +41 -0
- package/dist/protocol/status.js +64 -0
- package/dist/protocol/structures.d.ts +359 -0
- package/dist/protocol/structures.js +296 -0
- package/dist/protocol/transcript.d.ts +61 -0
- package/dist/protocol/transcript.js +319 -0
- package/dist/protocol/wire.d.ts +212 -0
- package/dist/protocol/wire.js +161 -0
- package/dist/require-node.d.ts +1 -0
- package/dist/require-node.js +10 -0
- package/dist/screener/affordance.d.ts +1 -0
- package/dist/screener/affordance.js +2 -0
- package/dist/screener/classifier-selfcheck.d.ts +29 -0
- package/dist/screener/classifier-selfcheck.js +56 -0
- package/dist/screener/exfil.d.ts +11 -0
- package/dist/screener/exfil.js +45 -0
- package/dist/screener/gitleaks-rules.d.ts +9 -0
- package/dist/screener/gitleaks-rules.js +226 -0
- package/dist/screener/inbound.d.ts +25 -0
- package/dist/screener/inbound.js +102 -0
- package/dist/screener/injection-classifier-onnx.d.ts +20 -0
- package/dist/screener/injection-classifier-onnx.js +89 -0
- package/dist/screener/injection-classifier-wasm.d.ts +2 -0
- package/dist/screener/injection-classifier-wasm.js +97 -0
- package/dist/screener/injection-patterns.d.ts +8 -0
- package/dist/screener/injection-patterns.js +48 -0
- package/dist/screener/injection-windows.d.ts +9 -0
- package/dist/screener/injection-windows.js +37 -0
- package/dist/screener/language.d.ts +15 -0
- package/dist/screener/language.js +71 -0
- package/dist/screener/linear-regex.d.ts +8 -0
- package/dist/screener/linear-regex.js +27 -0
- package/dist/screener/model-installer.d.ts +14 -0
- package/dist/screener/model-installer.js +61 -0
- package/dist/screener/outbound.d.ts +19 -0
- package/dist/screener/outbound.js +62 -0
- package/dist/screener/sanitize.d.ts +44 -0
- package/dist/screener/sanitize.js +361 -0
- package/dist/screener/scan-variants.d.ts +5 -0
- package/dist/screener/scan-variants.js +146 -0
- package/dist/screener/screener-model-manifest.d.ts +16 -0
- package/dist/screener/screener-model-manifest.js +20 -0
- package/dist/screener/screener-state.d.ts +29 -0
- package/dist/screener/screener-state.js +119 -0
- package/dist/screener/secrets.d.ts +18 -0
- package/dist/screener/secrets.js +84 -0
- package/dist/screener/worker.d.ts +6 -0
- package/dist/screener/worker.js +83 -0
- package/dist/setup.d.ts +9 -0
- package/dist/setup.js +259 -0
- package/dist/shipped-issuer-list.d.ts +1 -0
- package/dist/shipped-issuer-list.js +3 -0
- package/dist/signals-text.d.ts +46 -0
- package/dist/signals-text.js +81 -0
- package/dist/verify-seal.d.ts +9 -0
- package/dist/verify-seal.js +30 -0
- package/hermes/plugin/__init__.py +1066 -0
- package/hermes/plugin/plugin.yaml +30 -0
- package/hermes/skills/cello-bridge-setup/SKILL.md +48 -0
- package/hermes/skills/cello-policy/SKILL.md +44 -0
- package/package.json +48 -16
- package/plugins/cello/.claude-plugin/plugin.json +19 -0
- package/plugins/cello/.mcp.json +7 -0
- package/plugins/cello/skills/cello/SKILL.md +117 -0
- package/dist/arg-parse.d.ts +0 -19
- package/dist/arg-parse.d.ts.map +0 -1
- package/dist/arg-parse.js +0 -29
- package/dist/arg-parse.js.map +0 -1
- package/dist/bin/cello.d.ts +0 -15
- package/dist/bin/cello.d.ts.map +0 -1
- package/dist/bin/cello.js +0 -110
- package/dist/bin/cello.js.map +0 -1
- package/dist/cli-args.d.ts +0 -62
- package/dist/cli-args.d.ts.map +0 -1
- package/dist/cli-args.js +0 -129
- package/dist/cli-args.js.map +0 -1
- package/dist/commands.d.ts +0 -196
- package/dist/commands.d.ts.map +0 -1
- package/dist/commands.js +0 -1544
- package/dist/commands.js.map +0 -1
- package/dist/hermes/assets.d.ts +0 -41
- package/dist/hermes/assets.d.ts.map +0 -1
- package/dist/hermes/assets.js +0 -2281
- package/dist/hermes/assets.js.map +0 -1
- package/dist/hermes/install-hermes.d.ts +0 -50
- package/dist/hermes/install-hermes.d.ts.map +0 -1
- package/dist/hermes/install-hermes.js +0 -232
- package/dist/hermes/install-hermes.js.map +0 -1
- package/dist/json-out.d.ts +0 -41
- package/dist/json-out.d.ts.map +0 -1
- package/dist/json-out.js +0 -59
- package/dist/json-out.js.map +0 -1
- package/dist/node-runtime-guard-init.d.ts +0 -6
- package/dist/node-runtime-guard-init.d.ts.map +0 -1
- package/dist/node-runtime-guard-init.js +0 -7
- package/dist/node-runtime-guard-init.js.map +0 -1
- package/dist/node-runtime-guard.d.ts +0 -48
- package/dist/node-runtime-guard.d.ts.map +0 -1
- package/dist/node-runtime-guard.js +0 -79
- package/dist/node-runtime-guard.js.map +0 -1
- package/dist/parity-commands.d.ts +0 -427
- package/dist/parity-commands.d.ts.map +0 -1
- package/dist/parity-commands.js +0 -953
- package/dist/parity-commands.js.map +0 -1
- package/dist/registry.d.ts +0 -120
- package/dist/registry.d.ts.map +0 -1
- package/dist/registry.js +0 -2169
- package/dist/registry.js.map +0 -1
- package/dist/screener-commands.d.ts +0 -85
- package/dist/screener-commands.d.ts.map +0 -1
- package/dist/screener-commands.js +0 -313
- package/dist/screener-commands.js.map +0 -1
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { SETTABLE_TIERS } from "./tiers.js";
|
|
2
|
+
export const RULE_DIRECTIONS = ["inbound", "outbound"];
|
|
3
|
+
export const RULE_SCOPES = ["default", "tier", "contact"];
|
|
4
|
+
export const ISSUER_KINDS = ["issuer", "agent"];
|
|
5
|
+
export const NO_RULE = { require_types: [], require_issuer_kind: null, min_count: 0 };
|
|
6
|
+
export const isNoRule = (rule) => rule.require_types.length === 0 && rule.require_issuer_kind === null && rule.min_count === 0;
|
|
7
|
+
export function ensureRulesSchema(db) {
|
|
8
|
+
db.exec(`
|
|
9
|
+
CREATE TABLE IF NOT EXISTS signal_rules (
|
|
10
|
+
agent_id BLOB NOT NULL,
|
|
11
|
+
direction TEXT NOT NULL CHECK (direction IN ('inbound', 'outbound')),
|
|
12
|
+
scope TEXT NOT NULL CHECK (scope IN ('default', 'tier', 'contact')),
|
|
13
|
+
target TEXT NOT NULL DEFAULT '',
|
|
14
|
+
require_types TEXT NOT NULL,
|
|
15
|
+
require_issuer_kind TEXT CHECK (require_issuer_kind IS NULL OR require_issuer_kind IN ('issuer', 'agent')),
|
|
16
|
+
min_count INTEGER NOT NULL CHECK (min_count >= 0),
|
|
17
|
+
updated_at INTEGER NOT NULL,
|
|
18
|
+
PRIMARY KEY (agent_id, direction, scope, target)
|
|
19
|
+
);`);
|
|
20
|
+
}
|
|
21
|
+
// Strictness is a partial order: one rule is at least as strict as another if everything the other asks, it asks too. Two rules that ask for different
|
|
22
|
+
// things don't compare, and swapping one for the other counts as weakening, because something that used to be required no longer is.
|
|
23
|
+
export function atLeastAsStrict(a, b) {
|
|
24
|
+
if (a.min_count < b.min_count)
|
|
25
|
+
return false;
|
|
26
|
+
if (b.require_issuer_kind !== null && a.require_issuer_kind !== b.require_issuer_kind)
|
|
27
|
+
return false;
|
|
28
|
+
return b.require_types.every((type) => a.require_types.includes(type));
|
|
29
|
+
}
|
|
30
|
+
export function evaluate(rule, shown) {
|
|
31
|
+
const recognised = shown.filter((s) => s.counts_as_verified);
|
|
32
|
+
const unrecognised = shown.length - recognised.length;
|
|
33
|
+
const countable = recognised.filter((s) => !s.same_operator);
|
|
34
|
+
const base = { counted: countable.length, ...(unrecognised > 0 ? { not_counted_unrecognised: unrecognised } : {}), ...(recognised.length !== countable.length ? { not_counted_same_operator: recognised.length - countable.length } : {}) };
|
|
35
|
+
if (rule.min_count > 0 && countable.length < rule.min_count)
|
|
36
|
+
return { pass: false, ...base };
|
|
37
|
+
// The same signals count toward all three demands: one from the agent's own operator can't satisfy a type or a kind of issuer any more than a minimum.
|
|
38
|
+
if (rule.require_issuer_kind !== null && !countable.some((s) => s.issuer_kind === rule.require_issuer_kind))
|
|
39
|
+
return { pass: false, missing_issuer_kind: true, ...base };
|
|
40
|
+
const present = new Set(countable.map((s) => s.type));
|
|
41
|
+
const missing = rule.require_types.filter((type) => !present.has(type));
|
|
42
|
+
if (missing.length > 0)
|
|
43
|
+
return { pass: false, missing_types: missing, ...base };
|
|
44
|
+
return { pass: true, ...base };
|
|
45
|
+
}
|
|
46
|
+
const HEX64 = /^[0-9a-f]{64}$/;
|
|
47
|
+
export class SignalRules {
|
|
48
|
+
#db;
|
|
49
|
+
constructor(store) {
|
|
50
|
+
ensureRulesSchema(store);
|
|
51
|
+
this.#db = store.raw();
|
|
52
|
+
}
|
|
53
|
+
get(agentId, direction, scope, target) {
|
|
54
|
+
const row = this.#db.get("SELECT * FROM signal_rules WHERE agent_id = ? AND direction = ? AND scope = ? AND target = ?", [agentId, direction, scope, target]);
|
|
55
|
+
return row ? { ...row, require_types: JSON.parse(row.require_types) } : undefined;
|
|
56
|
+
}
|
|
57
|
+
list(agentId) {
|
|
58
|
+
return this.#db.all("SELECT * FROM signal_rules WHERE agent_id = ? ORDER BY direction, scope, target", [agentId]).map((row) => ({ ...row, require_types: JSON.parse(row.require_types) }));
|
|
59
|
+
}
|
|
60
|
+
put(agentId, direction, scope, target, rule) {
|
|
61
|
+
this.#db.run(`INSERT INTO signal_rules (agent_id, direction, scope, target, require_types, require_issuer_kind, min_count, updated_at) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
|
|
62
|
+
ON CONFLICT (agent_id, direction, scope, target) DO UPDATE SET require_types = excluded.require_types, require_issuer_kind = excluded.require_issuer_kind, min_count = excluded.min_count, updated_at = excluded.updated_at`, [agentId, direction, scope, target, JSON.stringify([...new Set(rule.require_types)].sort()), rule.require_issuer_kind, rule.min_count, Date.now()]);
|
|
63
|
+
}
|
|
64
|
+
clear(agentId, direction, scope, target) {
|
|
65
|
+
const had = this.get(agentId, direction, scope, target) !== undefined;
|
|
66
|
+
this.#db.run("DELETE FROM signal_rules WHERE agent_id = ? AND direction = ? AND scope = ? AND target = ?", [agentId, direction, scope, target]);
|
|
67
|
+
return had;
|
|
68
|
+
}
|
|
69
|
+
// Most specific first: this contact, then its tier, then the agent's default. No rule anywhere means nothing is required.
|
|
70
|
+
resolve(agentId, direction, tier, contactHex, without) {
|
|
71
|
+
const skip = (scope, target) => without?.scope === scope && without.target === target;
|
|
72
|
+
if (contactHex !== null && !skip("contact", contactHex)) {
|
|
73
|
+
const contact = this.get(agentId, direction, "contact", contactHex);
|
|
74
|
+
if (contact)
|
|
75
|
+
return { rule: contact, level: "contact" };
|
|
76
|
+
}
|
|
77
|
+
if (!skip("tier", tier)) {
|
|
78
|
+
const byTier = this.get(agentId, direction, "tier", tier);
|
|
79
|
+
if (byTier)
|
|
80
|
+
return { rule: byTier, level: "tier" };
|
|
81
|
+
}
|
|
82
|
+
if (!skip("default", "")) {
|
|
83
|
+
const fallback = this.get(agentId, direction, "default", "");
|
|
84
|
+
if (fallback)
|
|
85
|
+
return { rule: fallback, level: "default" };
|
|
86
|
+
}
|
|
87
|
+
return { rule: NO_RULE, level: "none" };
|
|
88
|
+
}
|
|
89
|
+
// Whether putting `next` at this key (or clearing it, with null) would let through something that is stopped now, for anyone it covers.
|
|
90
|
+
// The people it covers: every tier for the default, one tier for a tier, one contact for a contact (at the tier it has now).
|
|
91
|
+
weakens(agentId, direction, scope, target, next, contactTier) {
|
|
92
|
+
const subjects = scope === "default" ? SETTABLE_TIERS.map((tier) => ({ tier, contact: null })) : scope === "tier" ? [{ tier: target, contact: null }] : [{ tier: contactTier, contact: target }];
|
|
93
|
+
return subjects.some((subject) => {
|
|
94
|
+
const before = this.resolve(agentId, direction, subject.tier, subject.contact).rule;
|
|
95
|
+
const after = next !== null ? this.#resolveWith(agentId, direction, subject, scope, target, next) : this.resolve(agentId, direction, subject.tier, subject.contact, { scope, target }).rule;
|
|
96
|
+
return !atLeastAsStrict(after, before);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
#resolveWith(agentId, direction, subject, scope, target, next) {
|
|
100
|
+
// The changed key wins at its own level, and the levels above it still lose to anything more specific.
|
|
101
|
+
if (subject.contact !== null && (scope !== "contact" || target !== subject.contact)) {
|
|
102
|
+
const contact = this.get(agentId, direction, "contact", subject.contact);
|
|
103
|
+
if (contact)
|
|
104
|
+
return contact;
|
|
105
|
+
}
|
|
106
|
+
if (scope === "contact")
|
|
107
|
+
return next;
|
|
108
|
+
if (scope === "tier" && target === subject.tier)
|
|
109
|
+
return next;
|
|
110
|
+
const byTier = this.get(agentId, direction, "tier", subject.tier);
|
|
111
|
+
if (byTier)
|
|
112
|
+
return byTier;
|
|
113
|
+
return scope === "default" ? next : (this.get(agentId, direction, "default", "") ?? NO_RULE);
|
|
114
|
+
}
|
|
115
|
+
static checkTarget(scope, target) {
|
|
116
|
+
if (scope === "default")
|
|
117
|
+
return "";
|
|
118
|
+
if (scope === "tier") {
|
|
119
|
+
if (target === undefined || !SETTABLE_TIERS.includes(target))
|
|
120
|
+
throw new RangeError(`a tier rule needs a tier: ${SETTABLE_TIERS.join(", ")}`);
|
|
121
|
+
return target;
|
|
122
|
+
}
|
|
123
|
+
if (target === undefined || !HEX64.test(target.toLowerCase()))
|
|
124
|
+
throw new RangeError("a contact rule needs the contact's agent_id, 64 hex characters");
|
|
125
|
+
return target.toLowerCase();
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { SignedSignal } from "../protocol/signal.ts";
|
|
2
|
+
import type { Store } from "./store.ts";
|
|
3
|
+
export type SignalStatus = "active" | "superseded";
|
|
4
|
+
export declare const PUBLIC_NO = 0;
|
|
5
|
+
export declare const PUBLIC_YES = 1;
|
|
6
|
+
export declare const PUBLIC_WITHDRAWING = 2;
|
|
7
|
+
export declare const CONSENT_ACCEPTED = "accepted";
|
|
8
|
+
export interface WalletRow {
|
|
9
|
+
agent_id: Uint8Array;
|
|
10
|
+
signal_hash: string;
|
|
11
|
+
file: Uint8Array;
|
|
12
|
+
subject_kind: string;
|
|
13
|
+
issuer_kind: string;
|
|
14
|
+
issuer_pubkey: string;
|
|
15
|
+
issuer_address: string;
|
|
16
|
+
type: string;
|
|
17
|
+
schema_version: number;
|
|
18
|
+
payload: Uint8Array;
|
|
19
|
+
issued_at: number;
|
|
20
|
+
expires_at: number | null;
|
|
21
|
+
supersedes_hash: string | null;
|
|
22
|
+
same_operator: number;
|
|
23
|
+
status: SignalStatus;
|
|
24
|
+
received_at: number;
|
|
25
|
+
default_present: number;
|
|
26
|
+
consent_state: string;
|
|
27
|
+
public: number;
|
|
28
|
+
}
|
|
29
|
+
export interface TrustedIssuerRow {
|
|
30
|
+
issuer_address: string;
|
|
31
|
+
issuer_pubkey: string;
|
|
32
|
+
added_at: number;
|
|
33
|
+
}
|
|
34
|
+
export declare function ensureSignalSchema(db: Store): void;
|
|
35
|
+
export declare class SignalStore {
|
|
36
|
+
#private;
|
|
37
|
+
constructor(store: Store);
|
|
38
|
+
put(agentId: Uint8Array, signal: SignedSignal, file: Uint8Array): boolean;
|
|
39
|
+
withdrawing(agentId: Uint8Array): WalletRow[];
|
|
40
|
+
get(agentId: Uint8Array, hash: string): WalletRow | undefined;
|
|
41
|
+
list(agentId: Uint8Array): WalletRow[];
|
|
42
|
+
byPrefix(agentId: Uint8Array, prefix: string): {
|
|
43
|
+
row?: WalletRow;
|
|
44
|
+
matches: number;
|
|
45
|
+
};
|
|
46
|
+
setDefaultPresent(agentId: Uint8Array, hash: string, value: boolean): void;
|
|
47
|
+
setPublic(agentId: Uint8Array, hash: string, value: boolean): void;
|
|
48
|
+
accountLevel(agentId: Uint8Array, issuerAddress: string, nowSec: number): WalletRow | undefined;
|
|
49
|
+
ofType(agentId: Uint8Array, type: string, nowSec: number): WalletRow | undefined;
|
|
50
|
+
trusted(): TrustedIssuerRow[];
|
|
51
|
+
trust(issuerAddress: string, issuerPubkey: string): void;
|
|
52
|
+
untrust(issuerAddress: string, issuerPubkey: string): void;
|
|
53
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
// The wallet: signals about this daemon's agents. Rules from cello-client's trust-signal-store.ts: see COPIED.md.
|
|
2
|
+
// A signal names one agent's key, so a row belongs to that agent. It's stored under its hash, so a repeat changes nothing.
|
|
3
|
+
// `type` and `payload` stay opaque here: a type this client has never seen stores and reads like a known one.
|
|
4
|
+
import { toHex } from "../protocol/encode.js";
|
|
5
|
+
import { logEvent } from "./log.js";
|
|
6
|
+
// The wallet's `public` column: 0 not public, 1 public, 2 public on the server but being taken back.
|
|
7
|
+
export const PUBLIC_NO = 0;
|
|
8
|
+
export const PUBLIC_YES = 1;
|
|
9
|
+
export const PUBLIC_WITHDRAWING = 2;
|
|
10
|
+
export const CONSENT_ACCEPTED = "accepted";
|
|
11
|
+
export function ensureSignalSchema(db) {
|
|
12
|
+
db.exec(`
|
|
13
|
+
CREATE TABLE IF NOT EXISTS signal_wallet (
|
|
14
|
+
agent_id BLOB NOT NULL REFERENCES agents(agent_id),
|
|
15
|
+
signal_hash TEXT NOT NULL,
|
|
16
|
+
file BLOB NOT NULL,
|
|
17
|
+
subject_kind TEXT NOT NULL,
|
|
18
|
+
issuer_kind TEXT NOT NULL,
|
|
19
|
+
issuer_pubkey TEXT NOT NULL,
|
|
20
|
+
issuer_address TEXT NOT NULL,
|
|
21
|
+
type TEXT NOT NULL,
|
|
22
|
+
schema_version INTEGER NOT NULL,
|
|
23
|
+
payload BLOB NOT NULL,
|
|
24
|
+
issued_at INTEGER NOT NULL,
|
|
25
|
+
expires_at INTEGER,
|
|
26
|
+
supersedes_hash TEXT,
|
|
27
|
+
same_operator INTEGER NOT NULL,
|
|
28
|
+
status TEXT NOT NULL CHECK (status IN ('active', 'superseded')),
|
|
29
|
+
received_at INTEGER NOT NULL,
|
|
30
|
+
default_present INTEGER NOT NULL,
|
|
31
|
+
consent_state TEXT NOT NULL CHECK (consent_state IN ('pending', 'accepted', 'refused')),
|
|
32
|
+
public INTEGER NOT NULL DEFAULT 0,
|
|
33
|
+
PRIMARY KEY (agent_id, signal_hash)
|
|
34
|
+
);
|
|
35
|
+
-- Who this machine's owner chose to trust beyond the signed list. Only a person at a terminal adds one.
|
|
36
|
+
CREATE TABLE IF NOT EXISTS trusted_issuers (
|
|
37
|
+
issuer_address TEXT NOT NULL,
|
|
38
|
+
issuer_pubkey TEXT NOT NULL,
|
|
39
|
+
added_at INTEGER NOT NULL,
|
|
40
|
+
PRIMARY KEY (issuer_address, issuer_pubkey)
|
|
41
|
+
);`);
|
|
42
|
+
}
|
|
43
|
+
export class SignalStore {
|
|
44
|
+
#db;
|
|
45
|
+
constructor(store) {
|
|
46
|
+
this.#db = store.raw();
|
|
47
|
+
}
|
|
48
|
+
// Issued about the agent by an issuer it asked: accepted. Issued by another agent: it waits for the subject's decision.
|
|
49
|
+
put(agentId, signal, file) {
|
|
50
|
+
const e = signal.envelope;
|
|
51
|
+
const hash = toHex(signal.hash);
|
|
52
|
+
if (this.get(agentId, hash))
|
|
53
|
+
return false;
|
|
54
|
+
const supersedes = e.supersedes_hash === null ? null : toHex(e.supersedes_hash);
|
|
55
|
+
const consent = e.issuer_kind === "agent" ? "pending" : CONSENT_ACCEPTED;
|
|
56
|
+
this.#db.run(`INSERT INTO signal_wallet (agent_id, signal_hash, file, subject_kind, issuer_kind, issuer_pubkey, issuer_address, type, schema_version, payload, issued_at, expires_at, supersedes_hash, same_operator, status, received_at, default_present, consent_state)
|
|
57
|
+
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'active', ?, ?, ?)`, [agentId, hash, file, e.subject_kind, e.issuer_kind, e.issuer_pubkey, e.issuer_address, e.type, e.schema_version, e.payload, e.issued_at, e.expires_at, supersedes, e.same_operator ? 1 : 0, Date.now(), e.type.endsWith("_id") ? 0 : 1, consent]);
|
|
58
|
+
logEvent("signal.wallet.stored", { signal: hash, type: e.type, subject_kind: e.subject_kind, issuer_kind: e.issuer_kind });
|
|
59
|
+
if (consent === CONSENT_ACCEPTED)
|
|
60
|
+
this.#applySupersession(agentId, hash, e.type, e.subject_kind, e.issuer_pubkey, supersedes);
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
// Only the same issuer can replace its own signal: a stranger's isn't a newer version of yours because it shares a type.
|
|
64
|
+
#applySupersession(agentId, hash, type, subjectKind, issuerPubkey, supersedes) {
|
|
65
|
+
if (supersedes) {
|
|
66
|
+
const target = this.get(agentId, supersedes);
|
|
67
|
+
if (target?.issuer_pubkey === issuerPubkey)
|
|
68
|
+
this.#db.run("UPDATE signal_wallet SET status = 'superseded' WHERE agent_id = ? AND signal_hash = ?", [agentId, supersedes]);
|
|
69
|
+
else
|
|
70
|
+
logEvent("signal.supersede.refused", { signal: hash, supersedes, reason: target ? "issuer_mismatch" : "target_not_held" });
|
|
71
|
+
}
|
|
72
|
+
this.#db.run("UPDATE signal_wallet SET status = 'superseded' WHERE agent_id = ? AND subject_kind = ? AND type = ? AND signal_hash != ? AND issuer_pubkey = ? AND status = 'active'", [agentId, subjectKind, type, hash, issuerPubkey]);
|
|
73
|
+
// A replaced signal must not stay public reading as current. The server still holds it, so it's marked for taking back (public = 2).
|
|
74
|
+
this.#db.run("UPDATE signal_wallet SET public = ? WHERE agent_id = ? AND status = 'superseded' AND public = ?", [PUBLIC_WITHDRAWING, agentId, PUBLIC_YES]);
|
|
75
|
+
}
|
|
76
|
+
// Public on the server and meant to come back off it: what a replaced signal waits as until the server has confirmed.
|
|
77
|
+
withdrawing(agentId) {
|
|
78
|
+
return this.#db.all("SELECT * FROM signal_wallet WHERE agent_id = ? AND public = ?", [agentId, PUBLIC_WITHDRAWING]);
|
|
79
|
+
}
|
|
80
|
+
get(agentId, hash) {
|
|
81
|
+
return this.#db.get("SELECT * FROM signal_wallet WHERE agent_id = ? AND signal_hash = ?", [agentId, hash]);
|
|
82
|
+
}
|
|
83
|
+
list(agentId) {
|
|
84
|
+
return this.#db.all("SELECT * FROM signal_wallet WHERE agent_id = ? ORDER BY issued_at DESC, received_at DESC", [agentId]);
|
|
85
|
+
}
|
|
86
|
+
// A hash has one spelling, so a prefix is only ever hex, and this says when it means more than one signal.
|
|
87
|
+
byPrefix(agentId, prefix) {
|
|
88
|
+
const rows = this.#db.all("SELECT * FROM signal_wallet WHERE agent_id = ? AND signal_hash LIKE ?", [agentId, `${prefix}%`]);
|
|
89
|
+
return { row: rows.length === 1 ? rows[0] : undefined, matches: rows.length };
|
|
90
|
+
}
|
|
91
|
+
setDefaultPresent(agentId, hash, value) {
|
|
92
|
+
this.#db.run("UPDATE signal_wallet SET default_present = ? WHERE agent_id = ? AND signal_hash = ?", [value ? 1 : 0, agentId, hash]);
|
|
93
|
+
}
|
|
94
|
+
setPublic(agentId, hash, value) {
|
|
95
|
+
this.#db.run("UPDATE signal_wallet SET public = ? WHERE agent_id = ? AND signal_hash = ?", [value ? PUBLIC_YES : PUBLIC_NO, agentId, hash]);
|
|
96
|
+
}
|
|
97
|
+
// Active, unexpired and accepted, about the owner, from this issuer: what can vouch for a new agent on this daemon.
|
|
98
|
+
accountLevel(agentId, issuerAddress, nowSec) {
|
|
99
|
+
return this.#db.get(`SELECT * FROM signal_wallet WHERE agent_id = ? AND issuer_address = ? AND subject_kind = 'account' AND status = 'active' AND consent_state = '${CONSENT_ACCEPTED}'
|
|
100
|
+
AND (expires_at IS NULL OR expires_at > ?) ORDER BY issued_at DESC LIMIT 1`, [agentId, issuerAddress, nowSec]);
|
|
101
|
+
}
|
|
102
|
+
ofType(agentId, type, nowSec) {
|
|
103
|
+
return this.#db.get(`SELECT * FROM signal_wallet WHERE agent_id = ? AND type = ? AND status = 'active' AND consent_state = '${CONSENT_ACCEPTED}' AND (expires_at IS NULL OR expires_at > ?) ORDER BY issued_at DESC LIMIT 1`, [agentId, type, nowSec]);
|
|
104
|
+
}
|
|
105
|
+
trusted() {
|
|
106
|
+
return this.#db.all("SELECT * FROM trusted_issuers ORDER BY added_at", []);
|
|
107
|
+
}
|
|
108
|
+
trust(issuerAddress, issuerPubkey) {
|
|
109
|
+
this.#db.run("INSERT OR IGNORE INTO trusted_issuers (issuer_address, issuer_pubkey, added_at) VALUES (?, ?, ?)", [issuerAddress, issuerPubkey, Date.now()]);
|
|
110
|
+
}
|
|
111
|
+
untrust(issuerAddress, issuerPubkey) {
|
|
112
|
+
this.#db.run("DELETE FROM trusted_issuers WHERE issuer_address = ? AND issuer_pubkey = ?", [issuerAddress, issuerPubkey]);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
export interface AgentRow {
|
|
2
|
+
agent_id: Uint8Array;
|
|
3
|
+
name: string;
|
|
4
|
+
ed_seed: Uint8Array;
|
|
5
|
+
pq_seed: Uint8Array;
|
|
6
|
+
registered: number;
|
|
7
|
+
awaiting_signal: number;
|
|
8
|
+
}
|
|
9
|
+
export interface EvidenceRow {
|
|
10
|
+
agent_id: Uint8Array;
|
|
11
|
+
session_id: Uint8Array;
|
|
12
|
+
kind: "unverifiable_text" | "refused_entry_landed" | "two_acks";
|
|
13
|
+
position: number;
|
|
14
|
+
entry: string | null;
|
|
15
|
+
ack: string;
|
|
16
|
+
other_ack: string | null;
|
|
17
|
+
ciphertext: Uint8Array | null;
|
|
18
|
+
}
|
|
19
|
+
export interface SessionRow {
|
|
20
|
+
frozen: number;
|
|
21
|
+
agent_id: Uint8Array;
|
|
22
|
+
session_id: Uint8Array;
|
|
23
|
+
role: "caller" | "callee";
|
|
24
|
+
counterparty_id: Uint8Array;
|
|
25
|
+
counterparty_name: string;
|
|
26
|
+
counterparty_keys: string;
|
|
27
|
+
state: "offered" | "accepted" | "active" | "closed";
|
|
28
|
+
x25519_secret: Uint8Array | null;
|
|
29
|
+
mlkem_seed: Uint8Array | null;
|
|
30
|
+
session_key: Uint8Array | null;
|
|
31
|
+
own_salt: Uint8Array | null;
|
|
32
|
+
salt: Uint8Array | null;
|
|
33
|
+
offer: string;
|
|
34
|
+
accept: string | null;
|
|
35
|
+
confirm: string | null;
|
|
36
|
+
assignment: string | null;
|
|
37
|
+
read_position: number;
|
|
38
|
+
verified_position: number;
|
|
39
|
+
delivered_through: number;
|
|
40
|
+
own_closed: number;
|
|
41
|
+
peer_closed: number;
|
|
42
|
+
fault: string | null;
|
|
43
|
+
acked_screened: number;
|
|
44
|
+
peer_screened_through: number;
|
|
45
|
+
peer_eta_told: number;
|
|
46
|
+
bytes_received: number;
|
|
47
|
+
bytes_told: number;
|
|
48
|
+
last_activity_at: number;
|
|
49
|
+
server_url: string | null;
|
|
50
|
+
}
|
|
51
|
+
export interface EntryRow {
|
|
52
|
+
id: number;
|
|
53
|
+
agent_id: Uint8Array;
|
|
54
|
+
session_id: Uint8Array;
|
|
55
|
+
entry_hash: Uint8Array;
|
|
56
|
+
position: number | null;
|
|
57
|
+
state: "pending" | "landed" | "received" | "not_sent";
|
|
58
|
+
own: number;
|
|
59
|
+
entry: string;
|
|
60
|
+
ack: string | null;
|
|
61
|
+
ciphertext: Uint8Array | null;
|
|
62
|
+
body: Uint8Array;
|
|
63
|
+
withheld: number;
|
|
64
|
+
verdict: "allow" | "flagged" | "blocked" | null;
|
|
65
|
+
verdict_detail: string | null;
|
|
66
|
+
}
|
|
67
|
+
export interface AgentStatusRow {
|
|
68
|
+
server_url: string;
|
|
69
|
+
status: "active" | "suspended" | "retired";
|
|
70
|
+
reason: string;
|
|
71
|
+
everywhere: number;
|
|
72
|
+
}
|
|
73
|
+
export interface OutboxRow {
|
|
74
|
+
agent_id: Uint8Array;
|
|
75
|
+
server_url: string;
|
|
76
|
+
statement: string;
|
|
77
|
+
}
|
|
78
|
+
export type UnscreenedRow = Pick<EntryRow, "id" | "agent_id" | "session_id" | "position"> & {
|
|
79
|
+
sender: Uint8Array;
|
|
80
|
+
size: number;
|
|
81
|
+
};
|
|
82
|
+
export interface NoticeRow {
|
|
83
|
+
id: number;
|
|
84
|
+
session_id: Uint8Array | null;
|
|
85
|
+
text: string;
|
|
86
|
+
}
|
|
87
|
+
export interface SealRow {
|
|
88
|
+
seal_id: Uint8Array;
|
|
89
|
+
session_id: Uint8Array;
|
|
90
|
+
record: string;
|
|
91
|
+
}
|
|
92
|
+
export interface SealWantRow {
|
|
93
|
+
session_id: Uint8Array;
|
|
94
|
+
through: number;
|
|
95
|
+
}
|
|
96
|
+
type SessionUpdate = Partial<Omit<SessionRow, "agent_id" | "session_id">>;
|
|
97
|
+
export declare class Store {
|
|
98
|
+
#private;
|
|
99
|
+
constructor(dbPath: string);
|
|
100
|
+
statusRows(agentId: Uint8Array): AgentStatusRow[];
|
|
101
|
+
setStatus(agentId: Uint8Array, row: AgentStatusRow): void;
|
|
102
|
+
addToOutbox(agentId: Uint8Array, serverUrl: string, statement: string): void;
|
|
103
|
+
outbox(serverUrl?: string): OutboxRow[];
|
|
104
|
+
removeFromOutbox(row: OutboxRow): void;
|
|
105
|
+
renameAgent(agentId: Uint8Array, name: string): void;
|
|
106
|
+
markRemoved(agentId: Uint8Array): void;
|
|
107
|
+
isStopped(agentId: Uint8Array, sessionId: Uint8Array): boolean;
|
|
108
|
+
setStopped(agentId: Uint8Array, sessionId: Uint8Array, stopped: boolean): void;
|
|
109
|
+
close(): void;
|
|
110
|
+
exec(sql: string): void;
|
|
111
|
+
prepare(sql: string): {
|
|
112
|
+
run(...params: unknown[]): unknown;
|
|
113
|
+
get(...params: unknown[]): unknown;
|
|
114
|
+
all(...params: unknown[]): unknown[];
|
|
115
|
+
};
|
|
116
|
+
raw(): {
|
|
117
|
+
exec(sql: string): void;
|
|
118
|
+
run(sql: string, params: unknown[]): void;
|
|
119
|
+
get(sql: string, params: unknown[]): unknown;
|
|
120
|
+
all(sql: string, params: unknown[]): unknown[];
|
|
121
|
+
transaction<T>(work: () => T): T;
|
|
122
|
+
};
|
|
123
|
+
transaction<T>(work: () => T): T;
|
|
124
|
+
getConfig(key: string): string | undefined;
|
|
125
|
+
setConfig(key: string, value: string): void;
|
|
126
|
+
insertAgent(agentId: Uint8Array, name: string, edSeed: Uint8Array, pqSeed: Uint8Array): void;
|
|
127
|
+
setAwaitingSignal(agentId: Uint8Array, awaiting: boolean): void;
|
|
128
|
+
markRegistered(agentId: Uint8Array): void;
|
|
129
|
+
agents(): AgentRow[];
|
|
130
|
+
insertSession(row: Pick<SessionRow, "agent_id" | "session_id" | "role" | "counterparty_id" | "counterparty_name" | "counterparty_keys" | "state" | "offer"> & SessionUpdate): void;
|
|
131
|
+
updateSession(agentId: Uint8Array, sessionId: Uint8Array, update: SessionUpdate): void;
|
|
132
|
+
session(agentId: Uint8Array, sessionId: Uint8Array): SessionRow | undefined;
|
|
133
|
+
sessionsOf(agentId: Uint8Array): SessionRow[];
|
|
134
|
+
insertEntry(row: Omit<EntryRow, "id" | "ciphertext" | "ack" | "position" | "withheld" | "verdict" | "verdict_detail"> & {
|
|
135
|
+
position?: number | null;
|
|
136
|
+
ack?: string | null;
|
|
137
|
+
ciphertext?: Uint8Array | null;
|
|
138
|
+
}): void;
|
|
139
|
+
ownEntryByHash(agentId: Uint8Array, sessionId: Uint8Array, hash: Uint8Array): EntryRow | undefined;
|
|
140
|
+
markLanded(id: number, position: number, ack: string): void;
|
|
141
|
+
markNotSent(id: number): void;
|
|
142
|
+
pendingEntries(agentId: Uint8Array, sessionId: Uint8Array): EntryRow[];
|
|
143
|
+
lastOwnEntry(agentId: Uint8Array, sessionId: Uint8Array): EntryRow | undefined;
|
|
144
|
+
lastPeerEntry(agentId: Uint8Array, sessionId: Uint8Array): EntryRow | undefined;
|
|
145
|
+
firstOwnBetween(agentId: Uint8Array, sessionId: Uint8Array, after: number, before: number): number | undefined;
|
|
146
|
+
standbyTold(agentId: Uint8Array, sessionId: Uint8Array, position: number): boolean;
|
|
147
|
+
markStandbyTold(agentId: Uint8Array, sessionId: Uint8Array, position: number): void;
|
|
148
|
+
verifiedEntries(agentId: Uint8Array, sessionId: Uint8Array, throughPosition: number): EntryRow[];
|
|
149
|
+
unreadCount(agentId: Uint8Array, sessionId: Uint8Array, readPosition: number): number;
|
|
150
|
+
firstUnreadToAnswer(agentId: Uint8Array, sessionId: Uint8Array, readPosition: number): number | undefined;
|
|
151
|
+
addEvidence(row: EvidenceRow): void;
|
|
152
|
+
evidence(agentId: Uint8Array, sessionId: Uint8Array): EvidenceRow[];
|
|
153
|
+
unverifiablePositions(agentId: Uint8Array, sessionId: Uint8Array): number[];
|
|
154
|
+
markWithheld(id: number, detail: string): void;
|
|
155
|
+
firstUnscreened(agentId: Uint8Array, sessionId: Uint8Array): number | undefined;
|
|
156
|
+
deliverableCount(agentId: Uint8Array, sessionId: Uint8Array, readPosition: number): number;
|
|
157
|
+
unscreened(): UnscreenedRow[];
|
|
158
|
+
entryAt(agentId: Uint8Array, sessionId: Uint8Array, position: number): Pick<EntryRow, "entry" | "verdict"> | undefined;
|
|
159
|
+
bodyOf(id: number): Uint8Array | undefined;
|
|
160
|
+
setVerdict(id: number, verdict: string, detail: string): void;
|
|
161
|
+
entryIdAt(agentId: Uint8Array, sessionId: Uint8Array, position: number): number | undefined;
|
|
162
|
+
countOwnAfter(agentId: Uint8Array, sessionId: Uint8Array, position: number): number;
|
|
163
|
+
screeningRule(agentId: Uint8Array, scope: "sender" | "tier", subject: string): string | undefined;
|
|
164
|
+
setScreeningRule(agentId: Uint8Array, scope: "sender" | "tier", subject: string, level: string): void;
|
|
165
|
+
unreadBounds(agentId: Uint8Array, sessionId: Uint8Array, readPosition: number): {
|
|
166
|
+
first: number;
|
|
167
|
+
last: number;
|
|
168
|
+
} | undefined;
|
|
169
|
+
ackAt(agentId: Uint8Array, sessionId: Uint8Array, position: number): string | null | undefined;
|
|
170
|
+
signedRecord(agentId: Uint8Array, sessionId: Uint8Array, throughPosition: number): Pick<EntryRow, "entry" | "ack" | "position">[];
|
|
171
|
+
unreadPage(agentId: Uint8Array, sessionId: Uint8Array, readPosition: number, maxBytes: number): {
|
|
172
|
+
rows: EntryRow[];
|
|
173
|
+
more: boolean;
|
|
174
|
+
};
|
|
175
|
+
recordPage(agentId: Uint8Array, sessionId: Uint8Array, after: number, throughPosition: number, maxBytes: number): {
|
|
176
|
+
rows: EntryRow[];
|
|
177
|
+
more: boolean;
|
|
178
|
+
};
|
|
179
|
+
addNotice(agentId: Uint8Array, sessionId: Uint8Array | null, text: string): void;
|
|
180
|
+
notices(agentId: Uint8Array): NoticeRow[];
|
|
181
|
+
clearNotices(agentId: Uint8Array, throughId: number): void;
|
|
182
|
+
addSealWant(agentId: Uint8Array, sessionId: Uint8Array, through: number): void;
|
|
183
|
+
removeSealWant(agentId: Uint8Array, sessionId: Uint8Array, through: number): void;
|
|
184
|
+
sealWants(agentId: Uint8Array, sessionId?: Uint8Array): SealWantRow[];
|
|
185
|
+
addSeal(agentId: Uint8Array, sealId: Uint8Array, sessionId: Uint8Array, record: string): void;
|
|
186
|
+
seals(agentId: Uint8Array, sessionId?: Uint8Array): SealRow[];
|
|
187
|
+
seal(agentId: Uint8Array, sealId: Uint8Array): SealRow | undefined;
|
|
188
|
+
}
|
|
189
|
+
export {};
|