@hotmeshio/long-tail 0.1.9 → 0.1.10

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.
@@ -114,9 +114,16 @@ async function startWorkers(startConfig, workers, builtinMcpServerFactories) {
114
114
  });
115
115
  // Start each worker
116
116
  for (const w of workers) {
117
+ if (w.connection?.readonly) {
118
+ // Readonly workers register for discovery only — they must not
119
+ // consume messages from the stream (that is the real worker's job).
120
+ (0, registry_1.registerWorker)(w.workflow.name, w.taskQueue);
121
+ logger_1.loggerRegistry.info(`[long-tail] readonly worker registered: ${w.taskQueue}::${w.workflow.name}`);
122
+ continue;
123
+ }
117
124
  const label = `${w.taskQueue}::${w.workflow.name}`;
118
125
  const worker = await hotmesh_1.Durable.Worker.create({
119
- connection: w.connection ? { ...connection, ...w.connection } : connection,
126
+ connection,
120
127
  taskQueue: w.taskQueue,
121
128
  workflow: w.workflow,
122
129
  guid: `${label}-${hotmesh_1.Durable.guid()}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hotmeshio/long-tail",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Long Tail Workflows — Durable AI workflows with human-in-the-loop escalation. Powered by PostgreSQL.",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",