@cotal-ai/core 0.4.0 → 0.5.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/dist/agent-file.d.ts +7 -0
- package/dist/agent-file.d.ts.map +1 -1
- package/dist/agent-file.js +29 -2
- package/dist/agent-file.js.map +1 -1
- package/dist/channels.d.ts +13 -2
- package/dist/channels.d.ts.map +1 -1
- package/dist/channels.js +24 -1
- package/dist/channels.js.map +1 -1
- package/dist/endpoint.d.ts +233 -57
- package/dist/endpoint.d.ts.map +1 -1
- package/dist/endpoint.js +905 -200
- package/dist/endpoint.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/members.d.ts +93 -0
- package/dist/members.d.ts.map +1 -0
- package/dist/members.js +193 -0
- package/dist/members.js.map +1 -0
- package/dist/provision.d.ts +25 -10
- package/dist/provision.d.ts.map +1 -1
- package/dist/provision.js +38 -16
- package/dist/provision.js.map +1 -1
- package/dist/streams.d.ts +37 -23
- package/dist/streams.d.ts.map +1 -1
- package/dist/streams.js +87 -32
- package/dist/streams.js.map +1 -1
- package/dist/subjects.d.ts +42 -4
- package/dist/subjects.d.ts.map +1 -1
- package/dist/subjects.js +70 -4
- package/dist/subjects.js.map +1 -1
- package/dist/types.d.ts +111 -5
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/provision.d.ts
CHANGED
|
@@ -41,9 +41,8 @@ export interface MintOpts {
|
|
|
41
41
|
* by the caller). Minted as per-channel single-filter history-consumer create grants
|
|
42
42
|
* (`CONSUMER.CREATE.<CHAT>.<chathist_id>.<chat.*.ch>`) — the broker boundary on chat **history**
|
|
43
43
|
* reads (join-backfill / focus-recall). Each is run through the chat-subject builder so a
|
|
44
|
-
* wildcard subtree `team.>` becomes `chat.*.team.>`. Defaults to `["general"]`. The live
|
|
45
|
-
*
|
|
46
|
-
* {@link DurableProvisioner.provisionChatDurable} pre-create, never here. */
|
|
44
|
+
* wildcard subtree `team.>` becomes `chat.*.team.>`. Defaults to `["general"]`. The live read is the
|
|
45
|
+
* agent's own native `sub.allow` over `chat.*.<channel>` (also minted from this list, below). */
|
|
47
46
|
allowSubscribe?: string[];
|
|
48
47
|
/** Post ACL — channels an "agent" may publish to (the agent file's `allowPublish`, already
|
|
49
48
|
* resolved by the caller). Each becomes a `chat.<id>.<ch>` publish grant. **Default-deny**:
|
|
@@ -61,21 +60,37 @@ export interface MintOpts {
|
|
|
61
60
|
}
|
|
62
61
|
/** Options for {@link provisionAgent} — {@link MintOpts} plus the active read set. */
|
|
63
62
|
export interface ProvisionOpts extends MintOpts {
|
|
64
|
-
/** The active read set:
|
|
65
|
-
*
|
|
63
|
+
/** The active read set: the channels the agent subscribes to (live core-sub) at boot, and whose
|
|
64
|
+
* `durable`-class members get a boot Plane-3 membership. Must be ⊆ `allowSubscribe`. Defaults to
|
|
65
|
+
* `["general"]`. */
|
|
66
66
|
subscribe?: string[];
|
|
67
|
+
/** Write a DURABLE boot membership for each `durable`-class channel (default true). A durable backstop
|
|
68
|
+
* needs a long-lived manager that hosts Plane-3 AND knows this agent's ACL — true only for an agent
|
|
69
|
+
* launched UNDER a manager (`cotal start` / `cotal up`), which registers it in its `agents` ledger.
|
|
70
|
+
* Set FALSE for a launcher with no such manager — direct foreground `cotal spawn` — so the agent is
|
|
71
|
+
* LIVE-ONLY (no manager would know it, so its durable copies couldn't be authorized by the trusted
|
|
72
|
+
* reader nor its membership leaved via self-service; its runtime joins are live-only for that reason
|
|
73
|
+
* too). Writing a record nobody can deliver/leave is worse than none. */
|
|
74
|
+
durableMembership?: boolean;
|
|
67
75
|
}
|
|
68
76
|
/** The privileged onboarding ops a launcher needs — implemented by a connected, permissive
|
|
69
77
|
* endpoint (the manager, or a short-lived provisioner that `cotal spawn` opens). */
|
|
70
78
|
export interface DurableProvisioner {
|
|
71
|
-
/** Pre-create the agent's bind-only chat live-tail durable, filtered to `subscribe`. */
|
|
72
|
-
provisionChatDurable(id: string, subscribe: string[]): Promise<void>;
|
|
73
79
|
provisionDmInbox(id: string): Promise<void>;
|
|
80
|
+
/** Pre-create the agent's bind-only Plane-3 DELIVER durable (`dlv_<id>`, filtered to `dlv.<id>`) so
|
|
81
|
+
* it can BIND its per-member durable handoff without holding CONSUMER.CREATE on the DLV stream. */
|
|
82
|
+
provisionDlvInbox(id: string): Promise<void>;
|
|
83
|
+
/** Write the agent's BOOT durable membership: each `durable`-class boot channel gets a Plane-3
|
|
84
|
+
* durable-active record so it receives the durable backstop from boot. Replaces the legacy
|
|
85
|
+
* bind-only chat live-tail pre-create — live delivery is now the agent's own core subscription. */
|
|
86
|
+
provisionMembership(id: string, channels: string[]): Promise<void>;
|
|
74
87
|
provisionTaskQueue(role: string): Promise<void>;
|
|
75
88
|
}
|
|
76
|
-
/** Onboard an agent for launch (auth mode): pre-create its bind-only
|
|
77
|
-
* durables
|
|
78
|
-
*
|
|
89
|
+
/** Onboard an agent for launch (auth mode): pre-create its bind-only DM (+ Plane-3 DELIVER + role
|
|
90
|
+
* TASK) durables, write its boot durable membership (Plane-3, unless `durableMembership:false`), and
|
|
91
|
+
* mint its scoped creds. Live delivery is the agent's own core subscription — there is no per-instance
|
|
92
|
+
* chat durable. The single shared onboarding step; a launcher with no managing Plane-3 host (direct
|
|
93
|
+
* `cotal spawn`) opts out of the durable membership and is live-only. */
|
|
79
94
|
export declare function provisionAgent(provisioner: DurableProvisioner, auth: SpaceAuth, identity: Identity, opts?: ProvisionOpts): Promise<string>;
|
|
80
95
|
/** Mint a user creds file for an agent {@link Identity} (its stable id+seed from
|
|
81
96
|
* {@link newIdentity}). The account signing key signs over ONLY the public key
|
package/dist/provision.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provision.d.ts","sourceRoot":"","sources":["../src/provision.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"provision.d.ts","sourceRoot":"","s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AE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI,CAGhE;AAED,iFAAiF;AACjF,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAIhE"}
|
package/dist/provision.js
CHANGED
|
@@ -18,7 +18,7 @@ import { readFileSync, writeFileSync, mkdirSync, existsSync } from "node:fs";
|
|
|
18
18
|
import { join, dirname, resolve } from "node:path";
|
|
19
19
|
import { encodeOperator, encodeAccount, encodeUser, fmtCreds, } from "@nats-io/jwt";
|
|
20
20
|
import { createOperator, createAccount, fromPublic, fromSeed } from "@nats-io/nkeys";
|
|
21
|
-
import { token, spacePrefix, chatSubject, assertValidChannel, channelInAllow, unicastSubject, anycastSubject, controlServiceSubject, CONTROL_PRIVILEGED, CONTROL_SELF_SERVICE, chatStream, dmStream, taskStream,
|
|
21
|
+
import { token, spacePrefix, chatSubject, assertValidChannel, channelInAllow, unicastSubject, anycastSubject, controlServiceSubject, CONTROL_PRIVILEGED, CONTROL_SELF_SERVICE, chatStream, dmStream, taskStream, dlvStream, chatHistDurable, dmDurable, taskDurable, dlvDurable, presenceBucket, channelBucket, } from "./subjects.js";
|
|
22
22
|
// Unlimited account limits — without explicit limits a JWT account defaults to 0 conns
|
|
23
23
|
// (every connect denied). JetStream needs storage on the data account but MUST stay off
|
|
24
24
|
// the system account (the server refuses to start otherwise).
|
|
@@ -74,9 +74,11 @@ export async function createSpaceAuth(space) {
|
|
|
74
74
|
sys: { pub: sysPub, jwt: sysJwt },
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
-
/** Onboard an agent for launch (auth mode): pre-create its bind-only
|
|
78
|
-
* durables
|
|
79
|
-
*
|
|
77
|
+
/** Onboard an agent for launch (auth mode): pre-create its bind-only DM (+ Plane-3 DELIVER + role
|
|
78
|
+
* TASK) durables, write its boot durable membership (Plane-3, unless `durableMembership:false`), and
|
|
79
|
+
* mint its scoped creds. Live delivery is the agent's own core subscription — there is no per-instance
|
|
80
|
+
* chat durable. The single shared onboarding step; a launcher with no managing Plane-3 host (direct
|
|
81
|
+
* `cotal spawn`) opts out of the durable membership and is live-only. */
|
|
80
82
|
export async function provisionAgent(provisioner, auth, identity, opts = {}) {
|
|
81
83
|
const subscribe = opts.subscribe?.length ? opts.subscribe : ["general"];
|
|
82
84
|
const allowSubscribe = opts.allowSubscribe?.length ? opts.allowSubscribe : subscribe;
|
|
@@ -89,8 +91,14 @@ export async function provisionAgent(provisioner, auth, identity, opts = {}) {
|
|
|
89
91
|
for (const ch of subscribe)
|
|
90
92
|
if (!channelInAllow(allowSubscribe, ch))
|
|
91
93
|
throw new Error(`provisionAgent: subscribe "${ch}" is not within allowSubscribe [${allowSubscribe.join(", ")}]`);
|
|
92
|
-
await provisioner.provisionChatDurable(identity.id, subscribe);
|
|
93
94
|
await provisioner.provisionDmInbox(identity.id);
|
|
95
|
+
await provisioner.provisionDlvInbox(identity.id);
|
|
96
|
+
// DELIVER durable exists before membership — the trusted reader transfers boot backstop copies onto it.
|
|
97
|
+
// Durable boot membership only for a launcher backed by a managing Plane-3 host (default). A live-only
|
|
98
|
+
// launcher (direct `cotal spawn`) opts out: no manager would know this agent, so a durable record could
|
|
99
|
+
// be neither authorized for reader delivery nor leaved via self-service — worse than none.
|
|
100
|
+
if (opts.durableMembership !== false)
|
|
101
|
+
await provisioner.provisionMembership(identity.id, subscribe);
|
|
94
102
|
if (opts.role)
|
|
95
103
|
await provisioner.provisionTaskQueue(opts.role);
|
|
96
104
|
return mintCreds(auth, identity, "agent", { ...opts, allowSubscribe });
|
|
@@ -171,7 +179,8 @@ function permissionsFor(profile, space, id, opts) {
|
|
|
171
179
|
for (const ch of [...allowSubscribe, ...allowPublish])
|
|
172
180
|
assertValidChannel(ch);
|
|
173
181
|
const manager = opts.manager ?? CONTROL_PRIVILEGED;
|
|
174
|
-
const
|
|
182
|
+
const chatHistD = chatHistDurable(id), dmD = dmDurable(id);
|
|
183
|
+
const DLV = dlvStream(space), dlvD = dlvDurable(id); // Plane-3 per-member delivery (bind-only)
|
|
175
184
|
const svcD = opts.role ? taskDurable(opts.role) : undefined;
|
|
176
185
|
const pubAllow = [
|
|
177
186
|
// peer publish — identity + channel scope, built from the real builders. Default-deny: ONLY the
|
|
@@ -187,15 +196,9 @@ function permissionsFor(profile, space, id, opts) {
|
|
|
187
196
|
// bind their dm_<id>/svc_<role> by name and never inspect those streams, so granting INFO there
|
|
188
197
|
// would only leak DM-inbox / task subject metadata across peers for no functional gain.
|
|
189
198
|
`$JS.API.STREAM.INFO.${CHAT}`, `$JS.API.STREAM.INFO.${KV}`, `$JS.API.STREAM.INFO.${CHKV}`,
|
|
190
|
-
//
|
|
191
|
-
//
|
|
192
|
-
//
|
|
193
|
-
// join/leave control op. With no create/update path the agent can never widen its own live
|
|
194
|
-
// read. (The multi-filter durable rides the filter-less create subject, so it is not
|
|
195
|
-
// ACL-pinnable by subject anyway — bind-only + trusted creator is the enforcement, as DM/TASK.)
|
|
196
|
-
`$JS.API.CONSUMER.INFO.${CHAT}.${chatD}`,
|
|
197
|
-
`$JS.API.CONSUMER.MSG.NEXT.${CHAT}.${chatD}`,
|
|
198
|
-
`$JS.ACK.${CHAT}.${chatD}.>`,
|
|
199
|
+
// Live channel delivery is the agent's own native core subscription (sub.allow over chat.*.<ch>,
|
|
200
|
+
// below) — there is NO per-instance chat live-tail durable to bind. The durable backstop is
|
|
201
|
+
// Plane-3 (the bind-only dlv_<id> durable below). So no CHAT consumer bind/ack grants here.
|
|
199
202
|
// CHAT history reads (join-backfill, focus-recall, drop-marker) — single-filter EPHEMERAL
|
|
200
203
|
// consumers named chathist_<id>. The create rides the extended subject
|
|
201
204
|
// CONSUMER.CREATE.<CHAT>.<chathist_id>.<filter>, whose trailing filter token nats-server pins to
|
|
@@ -212,6 +215,13 @@ function permissionsFor(profile, space, id, opts) {
|
|
|
212
215
|
`$JS.API.CONSUMER.INFO.${DM}.${dmD}`,
|
|
213
216
|
`$JS.API.CONSUMER.MSG.NEXT.${DM}.${dmD}`,
|
|
214
217
|
`$JS.ACK.${DM}.${dmD}.>`,
|
|
218
|
+
// Plane-3 DELIVER consumer (SPEC §8): BIND ONLY its own pre-created dlv_<id> — info/fetch/ack,
|
|
219
|
+
// never create (the provisioner pre-creates it filtered to dlv.<id>). The agent acks this via
|
|
220
|
+
// native JetStream — the re-authorized per-member handoff. It gets NO grant on the INBOX (mixed
|
|
221
|
+
// pre-auth) stream at all: default-deny keeps the fan-out target unreadable by the agent.
|
|
222
|
+
`$JS.API.CONSUMER.INFO.${DLV}.${dlvD}`,
|
|
223
|
+
`$JS.API.CONSUMER.MSG.NEXT.${DLV}.${dlvD}`,
|
|
224
|
+
`$JS.ACK.${DLV}.${dlvD}.>`,
|
|
215
225
|
// Presence: watch (read, public roster) + flow control + PUT OWN KEY ONLY.
|
|
216
226
|
`$JS.API.CONSUMER.CREATE.${KV}.>`,
|
|
217
227
|
`$JS.API.CONSUMER.INFO.${KV}.>`,
|
|
@@ -248,8 +258,20 @@ function permissionsFor(profile, space, id, opts) {
|
|
|
248
258
|
`$JS.API.CONSUMER.CREATE.${TASK}`,
|
|
249
259
|
`$JS.API.CONSUMER.CREATE.${TASK}.>`,
|
|
250
260
|
`$JS.API.CONSUMER.DURABLE.CREATE.${TASK}.>`,
|
|
261
|
+
// Plane-3 DELIVER: bind-only, like DM — the create-time filter_subject is the attack surface, so
|
|
262
|
+
// no create path (the provisioner pre-creates dlv_<id> filtered to dlv.<id>).
|
|
263
|
+
`$JS.API.CONSUMER.CREATE.${DLV}`,
|
|
264
|
+
`$JS.API.CONSUMER.CREATE.${DLV}.>`,
|
|
265
|
+
`$JS.API.CONSUMER.DURABLE.CREATE.${DLV}.>`,
|
|
251
266
|
];
|
|
252
|
-
|
|
267
|
+
// CHAT live read boundary (SPEC v0.3 §9 / Appendix B): mint the read ACL as a native `sub.allow`
|
|
268
|
+
// over cotal.<space>.chat.*.<channel> — one per allowSubscribe channel, wildcards passed through
|
|
269
|
+
// (e.g. chat.*.review.>, chat.*.>). This is what lets an agent self-serve a live channel subscribe
|
|
270
|
+
// with NO manager: join = nc.subscribe, broker-enforced per-subscribe, no consumer name to confine,
|
|
271
|
+
// so an open ACL needs no enumeration. This sub.allow grant IS the live read path — there is no
|
|
272
|
+
// per-instance chat durable; the durable backstop is Plane-3 (manager fan-out → per-member DELIVER).
|
|
273
|
+
const subChat = allowSubscribe.map((ch) => chatSubject(space, "*", ch));
|
|
274
|
+
return { pub: { allow: pubAllow, deny: pubDeny }, sub: { allow: [inbox, ...subChat] } };
|
|
253
275
|
}
|
|
254
276
|
/** Render the `nats-server` config that trusts this space's operator and serves its
|
|
255
277
|
* accounts via the in-config MEMORY resolver. */
|
package/dist/provision.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provision.js","sourceRoot":"","sources":["../src/provision.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EACL,cAAc,EACd,aAAa,EACb,UAAU,EACV,QAAQ,GACT,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACrF,OAAO,EACL,KAAK,EACL,WAAW,EACX,WAAW,EACX,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,cAAc,EACd,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,UAAU,EACV,QAAQ,EACR,UAAU,EACV,WAAW,EACX,eAAe,EACf,SAAS,EACT,WAAW,EACX,cAAc,EACd,aAAa,GACd,MAAM,eAAe,CAAC;AAkBvB,uFAAuF;AACvF,wFAAwF;AACxF,8DAA8D;AAC9D,MAAM,WAAW,GAAG;IAClB,IAAI,EA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,MAAM,CAAC,CAAc,CAAC;AAC1D,CAAC"}
|
package/dist/streams.d.ts
CHANGED
|
@@ -3,6 +3,20 @@ import { type ConsumerConfig, type JetStreamManager } from "@nats-io/jetstream";
|
|
|
3
3
|
* oldest message on a subject is discarded (`DiscardPolicy.Old`). Also the horizon of focus
|
|
4
4
|
* recall: only the last {@link MAX_MSGS_PER_SUBJECT} per sender-subject are recallable. */
|
|
5
5
|
export declare const MAX_MSGS_PER_SUBJECT = 1000;
|
|
6
|
+
/** JetStream message-dedup window on the Plane-3 streams: a `Nats-Msg-Id`
|
|
7
|
+
* (`<msgId>:<owner>:<generation>`) repeated within this window is collapsed. Sized generous (2h) so
|
|
8
|
+
* an activation-catch-up copy and a racing fan-out copy of the same message dedup even for a slow/
|
|
9
|
+
* backlogged owner. **This window IS the cross-path exactly-once correctness horizon** — two writes
|
|
10
|
+
* of the same logical copy separated by more than it (e.g. a manager crash after a DLV publish, the
|
|
11
|
+
* dinbox ack lost, the window expiring, then a re-transfer after restart) are NOT collapsed at the
|
|
12
|
+
* stream. The connector's commit-aware id-cache (`MeshAgent.ingest`) coalesces live↔durable and
|
|
13
|
+
* redelivery duplicates within a SESSION, but it is in-memory and reset on agent restart, so it is
|
|
14
|
+
* NOT a cross-restart guarantee. A persistent per-owner delivery ledger would lift the bound; not
|
|
15
|
+
* built (the 2h horizon covers the realistic crash/redelivery lag). Keep the window ≥ worst-case lag. */
|
|
16
|
+
export declare const PLANE3_DEDUP_WINDOW_MS: number;
|
|
17
|
+
/** Bound on the trusted reader's in-flight (un-acked) entries per owner — an offline owner with a large
|
|
18
|
+
* backlog can't stall the reader's own redelivery by pinning unbounded pending. */
|
|
19
|
+
export declare const DINBOX_MAX_ACK_PENDING = 1000;
|
|
6
20
|
export interface ClearSpaceHistoryResult {
|
|
7
21
|
chat: number;
|
|
8
22
|
dm?: number;
|
|
@@ -35,29 +49,6 @@ export declare function dmDurableConfig(space: string, id: string, opts?: {
|
|
|
35
49
|
ackWaitMs?: number;
|
|
36
50
|
inactiveThresholdMs?: number;
|
|
37
51
|
}): Partial<ConsumerConfig>;
|
|
38
|
-
/**
|
|
39
|
-
* The chat live-tail durable for an instance — ONE definition, used both by the privileged
|
|
40
|
-
* pre-create (manager/provisioner, auth mode) and the endpoint's open-mode self-create, so an
|
|
41
|
-
* idempotent re-add can't error on a config delta. `filter_subjects` binds it to the instance's
|
|
42
|
-
* subscribe set (`chat.*.<ch>` per channel); only the privileged creator sets it under auth, which
|
|
43
|
-
* is the whole point — the agent BINDS-only (denied CONSUMER.CREATE/UPDATE on CHAT) and so can
|
|
44
|
-
* never widen its own read past `allowSubscribe`. `DeliverPolicy.New` (a tail): history is the
|
|
45
|
-
* explicit per-channel backfill on join, the only shape that can honor per-channel replay policy
|
|
46
|
-
* given `deliver_policy` is consumer-wide.
|
|
47
|
-
*
|
|
48
|
-
* Multi-channel ⇒ plural `filter_subjects`, which the client sends on the filter-less create
|
|
49
|
-
* subject (`CONSUMER.CREATE.<stream>.<name>`) — so this durable's filter is NOT ACL-pinnable by
|
|
50
|
-
* subject; bind-only + a trusted creator is the enforcement, exactly as for DM/TASK.
|
|
51
|
-
*
|
|
52
|
-
* `inactive_threshold` is set ONLY when the caller passes one — the open-mode self-create, where
|
|
53
|
-
* the agent owns the durable. The privileged auth pre-create OMITS it (same bind-only reasoning as
|
|
54
|
-
* {@link dmDurableConfig}): a threshold would retire the durable before a late/relaunched agent
|
|
55
|
-
* binds it, and bind would then fail permanently.
|
|
56
|
-
*/
|
|
57
|
-
export declare function chatDurableConfig(space: string, id: string, channels: string[], opts?: {
|
|
58
|
-
ackWaitMs?: number;
|
|
59
|
-
inactiveThresholdMs?: number;
|
|
60
|
-
}): Partial<ConsumerConfig>;
|
|
61
52
|
/**
|
|
62
53
|
* The TASK work-queue durable for a role — ONE definition, shared by the privileged
|
|
63
54
|
* pre-create (auth mode) and the endpoint's open-mode self-create. The durable is shared
|
|
@@ -68,6 +59,29 @@ export declare function chatDurableConfig(space: string, id: string, channels: s
|
|
|
68
59
|
export declare function taskDurableConfig(space: string, role: string, opts?: {
|
|
69
60
|
ackWaitMs?: number;
|
|
70
61
|
}): Partial<ConsumerConfig>;
|
|
62
|
+
/** The single privileged trusted-reader consumer over the WHOLE INBOX (mixed pre-auth) store
|
|
63
|
+
* (`dinbox.>`, all owners) — created + bound only by the manager. Explicit ack: the reader holds an
|
|
64
|
+
* entry un-acked until it has transferred the re-authorized copy to DLV (a crash before transfer
|
|
65
|
+
* redelivers). `max_ack_pending` bounds the reader's in-flight set. The per-message owner is
|
|
66
|
+
* recovered from the subject (`parseDinboxOwner`). */
|
|
67
|
+
export declare function inboxReaderConfig(space: string, opts?: {
|
|
68
|
+
ackWaitMs?: number;
|
|
69
|
+
}): Partial<ConsumerConfig>;
|
|
70
|
+
/** An agent's bind-only per-member DELIVER consumer (mirrors {@link dmDurableConfig}): the provisioner
|
|
71
|
+
* pre-creates it filtered to `dlv.<owner>`; the agent BINDS it (denied CREATE on DLV) and acks via
|
|
72
|
+
* native JetStream — the §8 "equivalent per-member at-least-once mechanism with the same ack
|
|
73
|
+
* semantics". `inactive_threshold` only for an open-mode self-create (none today; Plane-3 is
|
|
74
|
+
* auth-only). */
|
|
75
|
+
export declare function dlvDurableConfig(space: string, owner: string, opts?: {
|
|
76
|
+
ackWaitMs?: number;
|
|
77
|
+
inactiveThresholdMs?: number;
|
|
78
|
+
}): Partial<ConsumerConfig>;
|
|
79
|
+
/** The single privileged fan-out consumer on CHAT (manager-pumped; routing, not auth).
|
|
80
|
+
* `DeliverPolicy.New` at creation (pre-existing backlog is pre-membership); a DURABLE, so on a
|
|
81
|
+
* manager restart it resumes from its ack cursor and fans out the gap, idempotent via `Nats-Msg-Id`. */
|
|
82
|
+
export declare function fanoutDurableConfig(space: string, opts?: {
|
|
83
|
+
ackWaitMs?: number;
|
|
84
|
+
}): Partial<ConsumerConfig>;
|
|
71
85
|
/** Connect with the given (privileged) creds, create the space's streams, and disconnect.
|
|
72
86
|
* Used by `cotal up` to pre-create streams once at setup. */
|
|
73
87
|
export declare function setupSpaceStreams(opts: {
|
package/dist/streams.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streams.d.ts","sourceRoot":"","sources":["../src/streams.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACtB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"streams.d.ts","sourceRoot":"","sources":["../src/streams.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACtB,MAAM,oBAAoB,CAAC;AA6B5B;;4FAE4F;AAC5F,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC;;;;;;;;;0GAS0G;AAC1G,eAAO,MAAM,sBAAsB,QAAqB,CAAC;AAEzD;oFACoF;AACpF,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAE3C,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CACtC,GAAG,EAAE,gBAAgB,EACrB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC,CAkDf;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,EACb,EAAE,EAAE,MAAM,EACV,IAAI,GAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,mBAAmB,CAAC,EAAE,MAAM,CAAA;CAAO,GAC9D,OAAO,CAAC,cAAc,CAAC,CAUzB;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,GAChC,OAAO,CAAC,cAAc,CAAC,CAOzB;AAID;;;;u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CAAA;CAAE,CAAC,CAsB/C"}
|
package/dist/streams.js
CHANGED
|
@@ -1,13 +1,27 @@
|
|
|
1
1
|
import { jetstreamManager, AckPolicy, DeliverPolicy, RetentionPolicy, DiscardPolicy, StorageType, } from "@nats-io/jetstream";
|
|
2
2
|
import { connect, credsAuthenticator, nanos } from "@nats-io/transport-node";
|
|
3
3
|
import { Kvm } from "@nats-io/kv";
|
|
4
|
-
import { spacePrefix, chatStream, chatSubject,
|
|
4
|
+
import { spacePrefix, chatStream, chatSubject, chatWildcard, isConcreteChannel, dmStream, dmDurable, unicastSubject, taskStream, taskDurable, anycastSubject, presenceBucket, channelBucket, membersBucket, inboxStream, dlvStream, dlvSubject, dlvDurable, FANOUT_DURABLE, INBOX_READER_DURABLE, } from "./subjects.js";
|
|
5
5
|
/** Default presence-bucket entry TTL (ms) — matches the endpoint's default liveness window. */
|
|
6
6
|
const PRESENCE_TTL_MS = 6_000;
|
|
7
7
|
/** Per-(sender,channel)-subject retention cap on the chat stream — the bound past which the
|
|
8
8
|
* oldest message on a subject is discarded (`DiscardPolicy.Old`). Also the horizon of focus
|
|
9
9
|
* recall: only the last {@link MAX_MSGS_PER_SUBJECT} per sender-subject are recallable. */
|
|
10
10
|
export const MAX_MSGS_PER_SUBJECT = 1000;
|
|
11
|
+
/** JetStream message-dedup window on the Plane-3 streams: a `Nats-Msg-Id`
|
|
12
|
+
* (`<msgId>:<owner>:<generation>`) repeated within this window is collapsed. Sized generous (2h) so
|
|
13
|
+
* an activation-catch-up copy and a racing fan-out copy of the same message dedup even for a slow/
|
|
14
|
+
* backlogged owner. **This window IS the cross-path exactly-once correctness horizon** — two writes
|
|
15
|
+
* of the same logical copy separated by more than it (e.g. a manager crash after a DLV publish, the
|
|
16
|
+
* dinbox ack lost, the window expiring, then a re-transfer after restart) are NOT collapsed at the
|
|
17
|
+
* stream. The connector's commit-aware id-cache (`MeshAgent.ingest`) coalesces live↔durable and
|
|
18
|
+
* redelivery duplicates within a SESSION, but it is in-memory and reset on agent restart, so it is
|
|
19
|
+
* NOT a cross-restart guarantee. A persistent per-owner delivery ledger would lift the bound; not
|
|
20
|
+
* built (the 2h horizon covers the realistic crash/redelivery lag). Keep the window ≥ worst-case lag. */
|
|
21
|
+
export const PLANE3_DEDUP_WINDOW_MS = 2 * 60 * 60 * 1000;
|
|
22
|
+
/** Bound on the trusted reader's in-flight (un-acked) entries per owner — an offline owner with a large
|
|
23
|
+
* backlog can't stall the reader's own redelivery by pinning unbounded pending. */
|
|
24
|
+
export const DINBOX_MAX_ACK_PENDING = 1000;
|
|
11
25
|
/**
|
|
12
26
|
* Create (idempotently) the three backing streams for a space — CHAT (multicast backlog +
|
|
13
27
|
* history), DM (per-instance inboxes), TASK (anycast work queue).
|
|
@@ -44,6 +58,29 @@ export async function createSpaceStreams(jsm, space) {
|
|
|
44
58
|
retention: RetentionPolicy.Workqueue,
|
|
45
59
|
storage: StorageType.File,
|
|
46
60
|
});
|
|
61
|
+
// Plane-3 (SPEC §8). INBOX = the mixed pre-auth store (fan-out target; agents hold no grant — see
|
|
62
|
+
// permissionsFor). DLV = the per-member post-auth handoff the agent binds + acks. Both per-owner
|
|
63
|
+
// (one subject per owner), capped per-owner backlog (DiscardPolicy.Old; an evicted entry is a
|
|
64
|
+
// delivery miss, surfaced, never a satisfied durable guarantee — SPEC §7). `duplicate_window`
|
|
65
|
+
// collapses a catch-up/fan-out double of the same Nats-Msg-Id. No Direct Get on either.
|
|
66
|
+
await jsm.streams.add({
|
|
67
|
+
name: inboxStream(space),
|
|
68
|
+
subjects: [`${p}.dinbox.>`],
|
|
69
|
+
retention: RetentionPolicy.Limits,
|
|
70
|
+
storage: StorageType.File,
|
|
71
|
+
max_msgs_per_subject: MAX_MSGS_PER_SUBJECT,
|
|
72
|
+
discard: DiscardPolicy.Old,
|
|
73
|
+
duplicate_window: nanos(PLANE3_DEDUP_WINDOW_MS),
|
|
74
|
+
});
|
|
75
|
+
await jsm.streams.add({
|
|
76
|
+
name: dlvStream(space),
|
|
77
|
+
subjects: [`${p}.dlv.>`],
|
|
78
|
+
retention: RetentionPolicy.Limits,
|
|
79
|
+
storage: StorageType.File,
|
|
80
|
+
max_msgs_per_subject: MAX_MSGS_PER_SUBJECT,
|
|
81
|
+
discard: DiscardPolicy.Old,
|
|
82
|
+
duplicate_window: nanos(PLANE3_DEDUP_WINDOW_MS),
|
|
83
|
+
});
|
|
47
84
|
}
|
|
48
85
|
/**
|
|
49
86
|
* The DM inbox durable for an instance — ONE definition, used both by the privileged
|
|
@@ -71,37 +108,6 @@ export function dmDurableConfig(space, id, opts = {}) {
|
|
|
71
108
|
cfg.inactive_threshold = nanos(opts.inactiveThresholdMs);
|
|
72
109
|
return cfg;
|
|
73
110
|
}
|
|
74
|
-
/**
|
|
75
|
-
* The chat live-tail durable for an instance — ONE definition, used both by the privileged
|
|
76
|
-
* pre-create (manager/provisioner, auth mode) and the endpoint's open-mode self-create, so an
|
|
77
|
-
* idempotent re-add can't error on a config delta. `filter_subjects` binds it to the instance's
|
|
78
|
-
* subscribe set (`chat.*.<ch>` per channel); only the privileged creator sets it under auth, which
|
|
79
|
-
* is the whole point — the agent BINDS-only (denied CONSUMER.CREATE/UPDATE on CHAT) and so can
|
|
80
|
-
* never widen its own read past `allowSubscribe`. `DeliverPolicy.New` (a tail): history is the
|
|
81
|
-
* explicit per-channel backfill on join, the only shape that can honor per-channel replay policy
|
|
82
|
-
* given `deliver_policy` is consumer-wide.
|
|
83
|
-
*
|
|
84
|
-
* Multi-channel ⇒ plural `filter_subjects`, which the client sends on the filter-less create
|
|
85
|
-
* subject (`CONSUMER.CREATE.<stream>.<name>`) — so this durable's filter is NOT ACL-pinnable by
|
|
86
|
-
* subject; bind-only + a trusted creator is the enforcement, exactly as for DM/TASK.
|
|
87
|
-
*
|
|
88
|
-
* `inactive_threshold` is set ONLY when the caller passes one — the open-mode self-create, where
|
|
89
|
-
* the agent owns the durable. The privileged auth pre-create OMITS it (same bind-only reasoning as
|
|
90
|
-
* {@link dmDurableConfig}): a threshold would retire the durable before a late/relaunched agent
|
|
91
|
-
* binds it, and bind would then fail permanently.
|
|
92
|
-
*/
|
|
93
|
-
export function chatDurableConfig(space, id, channels, opts = {}) {
|
|
94
|
-
const cfg = {
|
|
95
|
-
durable_name: chatDurable(id),
|
|
96
|
-
filter_subjects: collapseFilterSubjects(channels.map((ch) => chatSubject(space, "*", ch))),
|
|
97
|
-
ack_policy: AckPolicy.Explicit,
|
|
98
|
-
ack_wait: nanos(opts.ackWaitMs ?? 60_000),
|
|
99
|
-
deliver_policy: DeliverPolicy.New,
|
|
100
|
-
};
|
|
101
|
-
if (opts.inactiveThresholdMs)
|
|
102
|
-
cfg.inactive_threshold = nanos(opts.inactiveThresholdMs);
|
|
103
|
-
return cfg;
|
|
104
|
-
}
|
|
105
111
|
/**
|
|
106
112
|
* The TASK work-queue durable for a role — ONE definition, shared by the privileged
|
|
107
113
|
* pre-create (auth mode) and the endpoint's open-mode self-create. The durable is shared
|
|
@@ -117,6 +123,51 @@ export function taskDurableConfig(space, role, opts = {}) {
|
|
|
117
123
|
ack_wait: nanos(opts.ackWaitMs ?? 60_000),
|
|
118
124
|
};
|
|
119
125
|
}
|
|
126
|
+
// ---- Plane-3 consumers (SPEC §8) ----
|
|
127
|
+
/** The single privileged trusted-reader consumer over the WHOLE INBOX (mixed pre-auth) store
|
|
128
|
+
* (`dinbox.>`, all owners) — created + bound only by the manager. Explicit ack: the reader holds an
|
|
129
|
+
* entry un-acked until it has transferred the re-authorized copy to DLV (a crash before transfer
|
|
130
|
+
* redelivers). `max_ack_pending` bounds the reader's in-flight set. The per-message owner is
|
|
131
|
+
* recovered from the subject (`parseDinboxOwner`). */
|
|
132
|
+
export function inboxReaderConfig(space, opts = {}) {
|
|
133
|
+
return {
|
|
134
|
+
durable_name: INBOX_READER_DURABLE,
|
|
135
|
+
filter_subject: `${spacePrefix(space)}.dinbox.>`,
|
|
136
|
+
ack_policy: AckPolicy.Explicit,
|
|
137
|
+
ack_wait: nanos(opts.ackWaitMs ?? 60_000),
|
|
138
|
+
deliver_policy: DeliverPolicy.All,
|
|
139
|
+
max_ack_pending: DINBOX_MAX_ACK_PENDING,
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
/** An agent's bind-only per-member DELIVER consumer (mirrors {@link dmDurableConfig}): the provisioner
|
|
143
|
+
* pre-creates it filtered to `dlv.<owner>`; the agent BINDS it (denied CREATE on DLV) and acks via
|
|
144
|
+
* native JetStream — the §8 "equivalent per-member at-least-once mechanism with the same ack
|
|
145
|
+
* semantics". `inactive_threshold` only for an open-mode self-create (none today; Plane-3 is
|
|
146
|
+
* auth-only). */
|
|
147
|
+
export function dlvDurableConfig(space, owner, opts = {}) {
|
|
148
|
+
const cfg = {
|
|
149
|
+
durable_name: dlvDurable(owner),
|
|
150
|
+
filter_subject: dlvSubject(space, owner),
|
|
151
|
+
ack_policy: AckPolicy.Explicit,
|
|
152
|
+
ack_wait: nanos(opts.ackWaitMs ?? 60_000),
|
|
153
|
+
deliver_policy: DeliverPolicy.All,
|
|
154
|
+
};
|
|
155
|
+
if (opts.inactiveThresholdMs)
|
|
156
|
+
cfg.inactive_threshold = nanos(opts.inactiveThresholdMs);
|
|
157
|
+
return cfg;
|
|
158
|
+
}
|
|
159
|
+
/** The single privileged fan-out consumer on CHAT (manager-pumped; routing, not auth).
|
|
160
|
+
* `DeliverPolicy.New` at creation (pre-existing backlog is pre-membership); a DURABLE, so on a
|
|
161
|
+
* manager restart it resumes from its ack cursor and fans out the gap, idempotent via `Nats-Msg-Id`. */
|
|
162
|
+
export function fanoutDurableConfig(space, opts = {}) {
|
|
163
|
+
return {
|
|
164
|
+
durable_name: FANOUT_DURABLE,
|
|
165
|
+
filter_subject: chatWildcard(space),
|
|
166
|
+
ack_policy: AckPolicy.Explicit,
|
|
167
|
+
ack_wait: nanos(opts.ackWaitMs ?? 60_000),
|
|
168
|
+
deliver_policy: DeliverPolicy.New,
|
|
169
|
+
};
|
|
170
|
+
}
|
|
120
171
|
/** Connect with the given (privileged) creds, create the space's streams, and disconnect.
|
|
121
172
|
* Used by `cotal up` to pre-create streams once at setup. */
|
|
122
173
|
export async function setupSpaceStreams(opts) {
|
|
@@ -132,6 +183,10 @@ export async function setupSpaceStreams(opts) {
|
|
|
132
183
|
const kvm = new Kvm(nc);
|
|
133
184
|
await kvm.create(presenceBucket(opts.space), { ttl: PRESENCE_TTL_MS });
|
|
134
185
|
await kvm.create(channelBucket(opts.space));
|
|
186
|
+
// Durable-membership registry (Plane-3): privileged-write, no TTL (durable config, like the
|
|
187
|
+
// channel registry). Pre-created so the manager (and open-mode self) can OPEN it; agents hold no
|
|
188
|
+
// grant. Idempotent.
|
|
189
|
+
await kvm.create(membersBucket(opts.space));
|
|
135
190
|
}
|
|
136
191
|
finally {
|
|
137
192
|
await nc.drain();
|
package/dist/streams.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streams.js","sourceRoot":"","sources":["../src/streams.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,SAAS,EACT,aAAa,EACb,eAAe,EACf,aAAa,EACb,WAAW,GAGZ,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EACL,WAAW,EACX,UAAU,EACV,WAAW,EACX,
|
|
1
|
+
{"version":3,"file":"streams.js","sourceRoot":"","sources":["../src/streams.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,SAAS,EACT,aAAa,EACb,eAAe,EACf,aAAa,EACb,WAAW,GAGZ,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EACL,W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AAE,CAAC;IAC3C,CAAC;YAAS,CAAC;QACT,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC;IACnB,CAAC;AACH,CAAC"}
|
package/dist/subjects.d.ts
CHANGED
|
@@ -114,18 +114,56 @@ export declare function channelBucket(space: string): string;
|
|
|
114
114
|
* character (`/^[-/=.\w]+$/`) but one `token()` can never produce (it maps every char
|
|
115
115
|
* outside `[A-Za-z0-9_-]` to `_`), so this key can never collide with a real channel. */
|
|
116
116
|
export declare const CHANNEL_DEFAULTS_KEY = "=defaults";
|
|
117
|
+
/** Name of the KV bucket holding the durable-membership registry (Plane-3) for a space — a
|
|
118
|
+
* privileged-write sibling of the channels/presence buckets. One record per (concrete channel,
|
|
119
|
+
* owner) under {@link memberKey}; the source of truth for `channelMembers()` and the fan-out's
|
|
120
|
+
* member list, moved off JetStream consumer topology (which core-sub joins don't create). */
|
|
121
|
+
export declare function membersBucket(space: string): string;
|
|
122
|
+
/** KV key for one membership record: `<channel>/<owner>`. The channel is concrete (no `*`/`>`,
|
|
123
|
+
* validated at the write path) so it is dotted-but-`/`-free, and an owner id is an nkey
|
|
124
|
+
* (`[A-Z0-9]`, also `/`-free), so the single `/` separates them unambiguously — both halves
|
|
125
|
+
* recover via {@link parseMemberKey}. `/`, `.`, and `[A-Za-z0-9_-]` are all legal KV-key chars
|
|
126
|
+
* (`/^[-/=.\w]+$/`), so no encoding is needed. */
|
|
127
|
+
export declare function memberKey(channel: string, owner: string): string;
|
|
128
|
+
/** Inverse of {@link memberKey}: split a member key back into `{ channel, owner }`, or `null` if
|
|
129
|
+
* it isn't one (no `/`). Splits on the single separator — channels and owner ids are both `/`-free. */
|
|
130
|
+
export declare function parseMemberKey(key: string): {
|
|
131
|
+
channel: string;
|
|
132
|
+
owner: string;
|
|
133
|
+
} | null;
|
|
117
134
|
/** Stream capturing `chat.>` — multicast backlog + history. */
|
|
118
135
|
export declare function chatStream(space: string): string;
|
|
119
136
|
/** Stream capturing `inst.>` — per-instance direct-message inboxes. */
|
|
120
137
|
export declare function dmStream(space: string): string;
|
|
121
138
|
/** Stream capturing `svc.>` — anycast work queue. */
|
|
122
139
|
export declare function taskStream(space: string): string;
|
|
123
|
-
/**
|
|
140
|
+
/** Stream capturing `dinbox.>` — the per-owner mixed durable inbox (fan-out target; agent unreadable). */
|
|
141
|
+
export declare function inboxStream(space: string): string;
|
|
142
|
+
/** Stream capturing `dlv.>` — the per-member post-auth delivery store (agent binds + acks). */
|
|
143
|
+
export declare function dlvStream(space: string): string;
|
|
144
|
+
/** Subject of an owner's mixed durable inbox: `cotal.<space>.dinbox.<owner>` (one per owner). */
|
|
145
|
+
export declare function dinboxSubject(space: string, owner: string): string;
|
|
146
|
+
/** Subject of an owner's post-auth delivery: `cotal.<space>.dlv.<owner>` (one per owner). */
|
|
147
|
+
export declare function dlvSubject(space: string, owner: string): string;
|
|
148
|
+
/** Parse the owner id out of an owner's mixed-inbox subject `cotal.<space>.dinbox.<owner>`, or null.
|
|
149
|
+
* The trusted reader is a SINGLE consumer over `dinbox.>` (all owners), so it recovers the per-message
|
|
150
|
+
* owner from the subject (the routing token is `routeToken(owner)` — an nkey, a `token()` no-op). */
|
|
151
|
+
export declare function parseDinboxOwner(subject: string): string | null;
|
|
152
|
+
/** An agent's bind-only per-owner consumer on {@link dlvStream} (filter `dlv.<owner>`). */
|
|
153
|
+
export declare function dlvDurable(owner: string): string;
|
|
154
|
+
/** The single privileged fan-out consumer on the CHAT stream (manager-pumped; routing, not auth). */
|
|
155
|
+
export declare const FANOUT_DURABLE: "fanout";
|
|
156
|
+
/** The single privileged trusted-reader consumer on {@link inboxStream} (filter `dinbox.>`,
|
|
157
|
+
* manager-pumped). It re-authorizes each entry and transfers the authorized copy to `dlv.<owner>`. */
|
|
158
|
+
export declare const INBOX_READER_DURABLE: "reader";
|
|
159
|
+
/** Name of the REMOVED per-instance chat live-tail durable. Retained only as the canonical name the
|
|
160
|
+
* read-ACL conformance test asserts an agent can NOT create — it has no live callers, the live read is
|
|
161
|
+
* now a native core subscription. */
|
|
124
162
|
export declare function chatDurable(instance: string): string;
|
|
125
163
|
/** Consumer name for an instance's short-lived chat **history** reads (join-backfill, focus-recall,
|
|
126
|
-
* drop-marker). A single per-instance name
|
|
127
|
-
* delete grants
|
|
128
|
-
*
|
|
164
|
+
* drop-marker). A single per-instance name, scoped to the agent's own id so its create/info/fetch/
|
|
165
|
+
* delete grants name-scope to that id — a peer can never bind it — while the per-read single
|
|
166
|
+
* `filter_subject` is what the create-time ACL pins to `allowSubscribe`. */
|
|
129
167
|
export declare function chatHistDurable(instance: string): string;
|
|
130
168
|
/** Durable consumer name for an instance's private DM inbox. */
|
|
131
169
|
export declare function dmDurable(instance: string): string;
|
package/dist/subjects.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subjects.d.ts","sourceRoot":"","sources":["../src/subjects.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,gEAAgE;AAChE,wBAAgB,KAAK,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAGvC;AAED,eAAO,MAAM,IAAI,UAAU,CAAC;AAE5B,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED;;gFAEgF;AAChF,wBAAgB,iBAAiB,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,SAAS,CAI3E;AAgCD,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAElF;AAED;iFACiF;AACjF,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAE1D;AAED;;iCAEiC;AACjC,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAUxE;AAED;;;;;;;;;;yDAUyD;AACzD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,M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