@owlmeans/queue 0.1.18-rc.8 → 0.1.18-rc.9

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 CHANGED
@@ -16,7 +16,7 @@ die with the process survives a restart.
16
16
  ## Installation
17
17
 
18
18
  ```bash
19
- bun add @owlmeans/queue
19
+ bun add @owlmeans/queue@^0.1.18-rc.8
20
20
  ```
21
21
 
22
22
  ## Declaring queues
@@ -132,7 +132,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
132
132
  your project's skill store (`.agents/skills/`):
133
133
 
134
134
  ```sh
135
- npx @owlmeans/agent-skills
135
+ npx @owlmeans/agent-skills@^0.1.18-rc.12
136
136
  ```
137
137
 
138
138
  The embedded files are version-matched to this package release. Do not edit them
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "package": "@owlmeans/queue",
4
- "version": "0.1.18-rc.8",
5
- "generatedAt": "2026-09-01T17:39:40.768Z",
4
+ "version": "0.1.18-rc.9",
5
+ "generatedAt": "2026-09-04T22:43:25.454Z",
6
6
  "canonicalRepo": "https://github.com/owlmeans/common",
7
7
  "entries": [
8
8
  {
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: queue
3
- description: How to use @owlmeans/queue — job queues as resources, the QUEUE route protocol that makes a queued call indistinguishable from an HTTP one, declaring queues and job names, the producer/consumer split, job graphs, and the rules a processor must follow. Auto-invoked when importing queue types or declaring a job route.
3
+ description: How to use @owlmeans/queue — job queues as resources, the QUEUE route protocol that makes a queued call indistinguishable from an HTTP one, declaring queues and job names, the producer/consumer split, job graphs, envelope freshness, and the rules a processor must follow. Auto-invoked when importing queue types or declaring a job route.
4
4
  user-invocable: false
5
5
  ---
6
6
  <!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
@@ -8,7 +8,7 @@ user-invocable: false
8
8
  # @owlmeans/queue
9
9
 
10
10
  **Layer:** Infra
11
- **Install:** `"@owlmeans/queue": "^0.1.18-rc.8"` in `dependencies`
11
+ **Install:** `"@owlmeans/queue": "^0.1.18-rc.9"` in `dependencies`
12
12
 
13
13
  Contracts only. It carries no broker code — a driver package (`@owlmeans/redis-queue`) implements
14
14
  them. Depend on this one from a shared contract package; depend on the driver only where the
@@ -21,8 +21,8 @@ transport registered under that protocol takes it, and the caller writes `ep.cal
21
21
  for HTTP. Nothing at a call site says "queue".
22
22
 
23
23
  That is what makes it worth having: moving a service-to-service call onto the broker is a change
24
- to a declaration, not to the ~100 places that call it, and a call that used to die with the
25
- process now survives a restart.
24
+ to a declaration, not to the places that call it, and the broker holds the work across a restart of
25
+ either side — which an in-process call cannot.
26
26
 
27
27
  ## Declaring
28
28
 
@@ -35,6 +35,10 @@ declareQueue(cfg, AGENT_WORK, ['agent:story:develop', 'agent:story:code'], {
35
35
  })
36
36
  ```
37
37
 
38
+ The job list is enforced, not documentation: enqueueing a name the queue does not declare throws
39
+ `UnknownJobName` instead of parking a job nothing can ever process. Re-declaring a name replaces,
40
+ so a helper that runs once per composed app is safe to call twice.
41
+
38
42
  Which queues a process CONSUMES is separate, and lives in that process's own config:
39
43
 
40
44
  ```typescript
@@ -55,21 +59,32 @@ entrypoint(
55
59
  ```
56
60
 
57
61
  `reply: false` makes it fire-and-forget: the call resolves `Accepted` with `{ id, queue }` as soon
58
- as the job is taken, which is what a long pipeline wants. The default is to wait for the value.
62
+ as the BROKER has accepted the enqueue — before any worker has picked the job up, so the resolution
63
+ says the job exists and nothing about it having started. That is what a long pipeline wants; watch
64
+ the job by its id for anything further. The default is to wait for the value, for
65
+ `req.timeout ?? route.timeout ?? DEFAULT_JOB_TIMEOUT` (60 s).
59
66
 
60
67
  ## Jobs are records
61
68
 
62
69
  `ctx.jobs<D, R>(queue)` returns a `QueueResource<D, R>` — a `Resource<JobRecord<D, R>>` plus
63
70
  pub/sub. So inspecting a queue is the resource contract you already know: `create` enqueues,
64
71
  `get`/`load`/`list`/`count` inspect, `delete`/`take` cancel, `purge` bulk-cancels. Only what the
65
- base contract cannot express is added: `wait(id, { timeout })`, `flow(root)`, `counts()`.
72
+ base contract cannot express is added: `wait(id, { timeout })`, `flow(root)`, `counts()`, and
73
+ `close()` for the connections a producer that waited holds.
74
+
75
+ Called with no queue name it answers the SOLE declared queue and throws `UnknownQueue` once there
76
+ are two — an application that grows a second queue is told to name one rather than quietly served
77
+ the wrong backlog. A queue nothing declared throws the same error at the call site.
66
78
 
67
79
  Give `JobOptions.id` a value derived from what the job is ABOUT (`develop:<storyId>`) and a
68
- duplicate enqueue becomes a no-op. That is what makes an admission step safe to retry.
80
+ duplicate enqueue becomes a no-op returning the job already there — no `RecordExists`. That is
81
+ what makes an admission step safe to retry.
69
82
 
70
83
  ## Writing a processor
71
84
 
72
85
  ```typescript
86
+ const worker = context.service<QueueWorkerService>(DEFAULT_ALIAS)
87
+
73
88
  worker.process(AGENT_WORK, 'agent:story:code', async job => {
74
89
  for (const screen of screens) {
75
90
  await job.touch() // ← not optional
@@ -79,17 +94,28 @@ worker.process(AGENT_WORK, 'agent:story:code', async job => {
79
94
  })
80
95
  ```
81
96
 
97
+ Registering against a queue this process does not `listen` to throws `QueueNotListening` — the
98
+ question is a deployment one, so it is answered at wiring time rather than when a job arrives.
99
+
82
100
  Three rules, each of which has a failure mode attached:
83
101
 
84
102
  - **`touch()` in every long loop.** The broker judges liveness by the lock. Silence for longer
85
103
  than `lockDuration` is indistinguishable from a dead worker, so the job is handed to someone
86
- else while this one is still working — you get two runs, not one.
104
+ else while this one is still working — you get two runs, not one. `progress(value)` reports
105
+ without renewing, and the value must be JSON-carryable.
87
106
  - **Children report, parents decide.** A child returns `{ ok: false, error }` for a DOMAIN
88
- failure; it does not throw. Throwing means "infrastructure broke, retry me". Children never set
89
- `failParentOnFailure` — the parent reads `children()` / `failedChildren()` and decides.
90
- - **Retries default to one attempt.** These jobs mostly talk to a model, and a blind retry
91
- re-spends the tokens that just failed. Raise `attempts` per queue only where jobs are cheap and
92
- idempotent.
107
+ failure; it does not throw. Throwing means "infrastructure broke, retry me". A child that
108
+ exhausts its attempts does not fail its parent: the parent runs and reads `children()` /
109
+ `failedChildren()` — both keyed by bare job id — and decides. Give the children of a flow that
110
+ spans queues distinct ids, because that re-keying collapses two ids that are equal across queues.
111
+ - **Retries default to one attempt** (`DEFAULT_ATTEMPTS`). These jobs mostly talk to a model, and
112
+ a blind retry re-spends the tokens that just failed. Raise `attempts` per queue only where jobs
113
+ are cheap and idempotent.
114
+
115
+ `job.signal` is the queue's abort signal, and it is NOT an interrupt. The driver stops by closing
116
+ every worker first — which waits for the jobs in flight to return — and aborts only afterwards, so
117
+ a processor cannot bail out on it and does not need to. An orderly stop drains; an outright kill is
118
+ covered by the rule below.
93
119
 
94
120
  ## Being restartable
95
121
 
@@ -98,6 +124,22 @@ run twice — skip work already recorded, delete the rows a previous attempt cre
98
124
  regenerating over a baseline. Decide this per job and say so in a comment; there is no way to make
99
125
  it automatic.
100
126
 
127
+ ## A queued call is still a guarded call
128
+
129
+ `handleJob` rebuilds the request from the envelope and runs the entrypoint as the HTTP boundary
130
+ would: the declared guards are tried in order, the first that matches authorizes, the entity is
131
+ attached, and only then does the handler run. A queued entrypoint with guards therefore needs the
132
+ producer's credentials on the envelope's `headers`, and an unauthorized job answers
133
+ `AuthorizationError`. An alias this process does not serve answers `JobNotServed` — the job was
134
+ taken by a worker that has no handler for it.
135
+
136
+ Set `cfg.queue.envelopeTtl` (seconds) to bound how long a job envelope stays acceptable. The age is
137
+ measured from the envelope's `enqueuedAt` — when the PRODUCER enqueued it, not when a worker picked
138
+ it up — so a captured envelope stops being replayable, and so does a job that sat behind a backlog
139
+ longer than the window: it answers `EnvelopeExpired` at pickup rather than running late. Size the
140
+ window against the longest backlog you are willing to let run, and leave `envelopeTtl` unset — the
141
+ default — for a queue whose jobs may legitimately wait.
142
+
101
143
  ## Errors cross the hop as classes
102
144
 
103
145
  A refusal the caller must recognise — `ContentRefused`, `AgentLocked` — is marshalled into the
@@ -111,23 +153,31 @@ because those are the only ones a retry can fix.
111
153
  application wires up, and binding earlier would take jobs the process cannot yet run. A process
112
154
  that listens to nothing registers no worker and pays nothing.
113
155
 
114
- `canServe` in `@owlmeans/server-api` excludes QUEUE routes, the same way it excludes sockets: the
115
- worker takes those jobs off the broker, and mounting them on the HTTP server too would answer
116
- every call twice.
156
+ `canServeModule` in `@owlmeans/server-api/utils` excludes QUEUE routes, the same way it excludes
157
+ sockets: the worker takes those jobs off the broker, and mounting them on the HTTP server too would
158
+ answer every call twice. `servedJobs` is the mirror image — the entrypoints this process both serves and
159
+ listens to, grouped by queue, which is what a driver binds.
117
160
 
118
161
  ## Key exports
119
162
 
120
163
  | Export | Description |
121
164
  |--------|-------------|
122
- | `declareQueue` / `listenQueues` / `queueOf` | Configuration — what exists, what this process consumes |
123
- | `QueueResource<D, R>` | A queue addressed as a resource, plus `wait` / `flow` / `counts` |
124
- | `JobRecord<D, R>` / `JobState` / `JobEvent` | The record shape and lifecycle |
125
- | `QueueWorkerService` | `process(queue, name, fn)`, `start`, `stop`, `listening` |
126
- | `JobContext<D>` | What a processor gets: `data`, `signal`, `touch`, `progress`, `children` |
127
- | `appendQueueTransport` | Binds the QUEUE protocol so `call()` routes through the broker |
165
+ | `declareQueue` / `listenQueues` | Configuration — what exists, and what this process consumes |
166
+ | `queueOf` / `queueOfJob` / `isListening` | Reading it back; `queueOf` throws `UnknownQueue` |
167
+ | `QueueConfig` / `QueueDeclaration` / `QueueWorkerOptions` / `JobOptions` | The configuration shapes |
168
+ | `QueueResource<D, R>` | A queue addressed as a resource, plus `wait` / `flow` / `counts` / `close` |
169
+ | `JobRecord<D, R>` / `JobState` / `isSettled` / `JobEvent` / `JobEventType` | The record shape and lifecycle |
170
+ | `FlowSpec<D>` | A graph node — `name`, optional `queue`, `data`, `opts`, `children` |
171
+ | `QueueWorkerService` | `process(queue, name, fn)`, `start`, `stop`, `listening`, `hooks` |
172
+ | `JobContext<D>` | What a processor gets: `id`, `name`, `queue`, `attempt`, `data`, `signal`, `touch`, `progress`, `children`, `failedChildren` |
173
+ | `QueueHooks` | `wrapHandler`, `onJobResult`, `onJobStalled`, `onJobDead` — the compensation seam |
174
+ | `QueueAppend` | The `ctx.jobs(queue?)` mixin a driver installs; `QueueDriver` is what a driver supplies |
175
+ | `appendQueueTransport` / `makeQueueTransport` | Binds the QUEUE protocol so `call()` routes through the broker |
128
176
  | `queueWorkerMiddleware` | Starts the worker at Ready stage |
129
177
  | `handleJob` / `servedJobs` / `entrypointProcessor` | The bridge a driver dispatches through |
130
- | `QueueHooks` | `onJobResult`, `onJobStalled`, `onJobDead` — the compensation seam |
178
+ | `requestOf` / `assertFresh` / `JobEnvelope` / `JobReply` | The envelope, and rebuilding a request from it |
179
+ | Errors | `QueueError`, `QueueTimeout`, `UnknownJob`, `UnknownJobName`, `UnknownQueue`, `QueueNotListening`, `JobNotServed`, `EnvelopeExpired` |
180
+ | Constants | `DEFAULT_ALIAS` (`queue`), `DEFAULT_JOB_TIMEOUT` (60 000 ms), `DEFAULT_ATTEMPTS` (1) |
131
181
 
132
182
  ## Depends On
133
183
 
@@ -135,10 +185,13 @@ every call twice.
135
185
  - `@owlmeans/entrypoint` — the transport seam and the served-entrypoint dispatch
136
186
  - `@owlmeans/route` — `RouteProtocols.QUEUE` and the `job()` builder
137
187
  - `@owlmeans/resource` — the `Resource` contract jobs are read through
188
+ - `@owlmeans/auth` / `@owlmeans/auth-common` — guarding a queued call and attaching its entity
138
189
  - `@owlmeans/error` — marshalling a refusal across the hop
139
190
 
140
191
  ## Related
141
192
 
142
193
  - `redis-queue` — the BullMQ driver; integration tests for queue behaviour live there
194
+ - `server-job` / `client-job` — exposing a queue's jobs to an application's UI (list, cancel,
195
+ progress over a socket), without touching the contracts here
143
196
  - `entrypoint` — declarations, elevation, and the transport lookup
144
197
  - `resource` — the criteria and paging semantics `list` follows
package/build/bridge.d.ts CHANGED
@@ -1,10 +1,11 @@
1
1
  import type { AbstractRequest } from '@owlmeans/entrypoint';
2
+ import type { BasicContext } from '@owlmeans/context';
2
3
  import type { Config, Context, JobContext, JobEnvelope, JobReply } from './types.js';
3
4
  /**
4
5
  * Rebuild the request the producer described. A queued call is still a call: the same guards, the
5
6
  * same filter, the same handler run against it — only the wire is different.
6
7
  */
7
- export declare const requestOf: (envelope: JobEnvelope, path: string) => AbstractRequest;
8
+ export declare const requestOf: (envelope: JobEnvelope, path: string, context?: BasicContext<any>) => AbstractRequest;
8
9
  /**
9
10
  * Freshness is judged from when the job was ENQUEUED, not from now.
10
11
  *
@@ -1 +1 @@
1
- {"version":3,"file":"bridge.d.ts","sourceRoot":"","sources":["../src/bridge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAkC,MAAM,sBAAsB,CAAA;AAM3F,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAGpF;;;GAGG;AACH,eAAO,MAAM,SAAS,GAAI,UAAU,WAAW,EAAE,MAAM,MAAM,KAAG,eAO9D,CAAA;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,GAAI,UAAU,WAAW,EAAE,MAAM,MAAM,KAAG,IAQjE,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,GAAU,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,EACpE,SAAS,CAAC,EAAE,KAAK,UAAU,CAAC,WAAW,CAAC,KACvC,OAAO,CAAC,QAAQ,CAyDlB,CAAA"}
1
+ {"version":3,"file":"bridge.d.ts","sourceRoot":"","sources":["../src/bridge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAkC,MAAM,sBAAsB,CAAA;AAC3F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAMrD,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAGpF;;;GAGG;AACH,eAAO,MAAM,SAAS,aACV,WAAW,QAAQ,MAAM,YAAY,YAAY,CAAC,GAAG,CAAC,KAC/D,eAWD,CAAA;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,aAAc,WAAW,QAAQ,MAAM,KAAG,IAQjE,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,GAAU,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,WAC3D,CAAC,OAAO,UAAU,CAAC,WAAW,CAAC,KACvC,OAAO,CAAC,QAAQ,CAyDlB,CAAA"}
package/build/bridge.js CHANGED
@@ -7,13 +7,17 @@ import { EnvelopeExpired, JobNotServed } from './errors.js';
7
7
  * Rebuild the request the producer described. A queued call is still a call: the same guards, the
8
8
  * same filter, the same handler run against it — only the wire is different.
9
9
  */
10
- export const requestOf = (envelope, path) => ({
10
+ export const requestOf = (envelope, path, context) => ({
11
11
  alias: envelope.alias,
12
12
  params: (envelope.params ?? {}),
13
13
  body: envelope.body,
14
14
  headers: (envelope.headers ?? {}),
15
15
  query: (envelope.query ?? {}),
16
16
  path,
17
+ // Handlers reach their context through `original._ctx`, which the HTTP boundary sets on the raw
18
+ // Fastify request. There is no raw request here, so the shape is supplied deliberately — a
19
+ // handler must not have to know which transport delivered it.
20
+ original: context != null ? { _ctx: context } : undefined,
17
21
  });
18
22
  /**
19
23
  * Freshness is judged from when the job was ENQUEUED, not from now.
@@ -49,7 +53,7 @@ export const handleJob = async (context, job) => {
49
53
  if (entrypoint.handle == null) {
50
54
  throw new JobNotServed(envelope.alias);
51
55
  }
52
- const request = requestOf(envelope, entrypoint.path());
56
+ const request = requestOf(envelope, entrypoint.path(), context);
53
57
  const response = provideResponse();
54
58
  const guards = entrypoint.getGuards();
55
59
  if (guards.length > 0) {
@@ -1 +1 @@
1
- {"version":3,"file":"bridge.js","sourceRoot":"","sources":["../src/bridge.ts"],"names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BAQhE,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,MAAM,OAAO,CAAC,OAAO,MAAM,KAAG,gBAAgB,GAAG,SACpB,CAAA;AAElE,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,MAAM,OAAO,CAAC,QAAQ,MAAM,KAAG,OACzB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../src/consts.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa,UAAU,CAAA;AAEpC;;;;GAIG;AACH,oBAAY,QAAQ;IAClB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,8DAA8D;AAC9D,eAAO,MAAM,SAAS,GAAI,QAAQ,QAAQ,KAAG,OACc,CAAA;AAE3D,oBAAY,YAAY;IACtB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,QAAS,CAAA;AAEzC;;;GAGG;AACH,eAAO,MAAM,gBAAgB,IAAI,CAAA"}
1
+ {"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../src/consts.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa,UAAU,CAAA;AAEpC;;;;GAIG;AACH,oBAAY,QAAQ;IAClB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,8DAA8D;AAC9D,eAAO,MAAM,SAAS,WAAY,QAAQ,KAAG,OACc,CAAA;AAE3D,oBAAY,YAAY;IACtB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,QAAS,CAAA;AAEzC;;;GAGG;AACH,eAAO,MAAM,gBAAgB,IAAI,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEhD,qBAAa,UAAW,SAAQ,cAAc;IAC5C,OAAuB,QAAQ,SAAe;gBAElC,OAAO,GAAE,MAAgB;CAGtC;AAED;;;GAGG;AACH,qBAAa,YAAa,SAAQ,UAAU;IAC1C,OAAuB,QAAQ,SAAkC;gBAErD,GAAG,EAAE,MAAM;CAIxB;AAED,gGAAgG;AAChG,qBAAa,UAAW,SAAQ,UAAU;IACxC,OAAuB,QAAQ,SAAqC;gBAExD,GAAG,EAAE,MAAM;CAIxB;AAED;;;GAGG;AACH,qBAAa,cAAe,SAAQ,UAAU;IAC5C,OAAuB,QAAQ,SAAyC;gBAE5D,GAAG,EAAE,MAAM;CAIxB;AAED,mDAAmD;AACnD,qBAAa,YAAa,SAAQ,UAAU;IAC1C,OAAuB,QAAQ,SAAuC;gBAE1D,GAAG,EAAE,MAAM;CAIxB;AAED;;;;GAIG;AACH,qBAAa,iBAAkB,SAAQ,UAAU;IAC/C,OAAuB,QAAQ,SAAuC;gBAE1D,GAAG,EAAE,MAAM;CAIxB;AAED;;;;GAIG;AACH,qBAAa,YAAa,SAAQ,UAAU;IAC1C,OAAuB,QAAQ,SAAuC;gBAE1D,GAAG,EAAE,MAAM;CAIxB;AAED;;;;GAIG;AACH,qBAAa,eAAgB,SAAQ,UAAU;IAC7C,OAAuB,QAAQ,SAA0C;gBAE7D,GAAG,EAAE,MAAM;CAIxB"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEhD,qBAAa,UAAW,SAAQ,cAAc;IAC5C,OAAuB,QAAQ,SAAe;IAE9C,YAAY,OAAO,GAAE,MAAgB,EAEpC;CACF;AAED;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;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,GAAI,QAAO,MAA6C,wBAmDtF,CAAA;AAED,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,EACtF,SAAS,CAAC,EAAE,QAAQ,MAAM,KACzB,CAMF,CAAA"}
1
+ {"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../src/transport.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAqC,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAKlG,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAsC,MAAM,YAAY,CAAA;AAIrF;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,WAAW,MAAM,wBAmD/C,CAAA;AAED,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,WAC7E,CAAC,UAAU,MAAM,KACzB,CAMF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"transport.js","sourceRoot":"","sources":["../src/transport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEhE,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAGhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,QAAgB,cAAc,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,EAAE;IACzF,MAAM,QAA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CAAC;IACnF,IAAI,EAAE,cAAc,CAAC,OAAO;IAC5B,KAAK,EAAE,eAAe,CAAC,KAAK;IAC5B,KAAK,EAAE,KAAK,EAAC,OAAO,EAAC,EAAE;QACrB,MAAM,GAAG,GAAG,OAAqC,CAAA;QACjD,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,IAAI,EAAE,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC/C,OAAM;QACR,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;YAC3B,OAAM;QACR,CAAC;QAED,MAAM,GAAG,CAAC,OAAO,CAAqB,KAAK,CAAC,CAAC,KAAK,EAAE,CAAA;IACtD,CAAC;CACF,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/queue",
3
- "version": "0.1.18-rc.8",
3
+ "version": "0.1.18-rc.9",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -30,12 +30,12 @@
30
30
  "access": "public"
31
31
  },
32
32
  "dependencies": {
33
- "@owlmeans/auth": "^0.1.18-rc.8",
34
- "@owlmeans/auth-common": "^0.1.18-rc.12",
35
- "@owlmeans/context": "^0.1.18-rc.7",
36
- "@owlmeans/entrypoint": "^0.1.18-rc.10",
37
- "@owlmeans/error": "^0.1.18-rc.7",
38
- "@owlmeans/resource": "^0.1.18-rc.8",
39
- "@owlmeans/route": "^0.1.18-rc.8"
33
+ "@owlmeans/auth": "^0.1.18-rc.9",
34
+ "@owlmeans/auth-common": "^0.1.18-rc.13",
35
+ "@owlmeans/context": "^0.1.18-rc.8",
36
+ "@owlmeans/entrypoint": "^0.1.18-rc.11",
37
+ "@owlmeans/error": "^0.1.18-rc.8",
38
+ "@owlmeans/resource": "^0.1.18-rc.9",
39
+ "@owlmeans/route": "^0.1.18-rc.9"
40
40
  }
41
41
  }
package/src/bridge.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { AbstractRequest, CommonEntrypoint, GuardService } from '@owlmeans/entrypoint'
2
+ import type { BasicContext } from '@owlmeans/context'
2
3
  import { EntrypointOutcome, provideResponse } from '@owlmeans/entrypoint'
3
4
  import type { Auth } from '@owlmeans/auth'
4
5
  import { AuthorizationError } from '@owlmeans/auth'
@@ -11,13 +12,19 @@ import { EnvelopeExpired, JobNotServed } from './errors.js'
11
12
  * Rebuild the request the producer described. A queued call is still a call: the same guards, the
12
13
  * same filter, the same handler run against it — only the wire is different.
13
14
  */
14
- export const requestOf = (envelope: JobEnvelope, path: string): AbstractRequest => ({
15
+ export const requestOf = (
16
+ envelope: JobEnvelope, path: string, context?: BasicContext<any>
17
+ ): AbstractRequest => ({
15
18
  alias: envelope.alias,
16
19
  params: (envelope.params ?? {}) as AbstractRequest['params'],
17
20
  body: envelope.body as AbstractRequest['body'],
18
21
  headers: (envelope.headers ?? {}) as AbstractRequest['headers'],
19
22
  query: (envelope.query ?? {}) as AbstractRequest['query'],
20
23
  path,
24
+ // Handlers reach their context through `original._ctx`, which the HTTP boundary sets on the raw
25
+ // Fastify request. There is no raw request here, so the shape is supplied deliberately — a
26
+ // handler must not have to know which transport delivered it.
27
+ original: context != null ? { _ctx: context } : undefined,
21
28
  })
22
29
 
23
30
  /**
@@ -60,7 +67,7 @@ export const handleJob = async <C extends Config, T extends Context<C>>(
60
67
  throw new JobNotServed(envelope.alias)
61
68
  }
62
69
 
63
- const request = requestOf(envelope, entrypoint.path())
70
+ const request = requestOf(envelope, entrypoint.path(), context)
64
71
  const response = provideResponse<unknown>()
65
72
 
66
73
  const guards = entrypoint.getGuards()