@barnum/barnum 0.0.0-main-630ee5dd → 0.0.0-main-45fcbab9

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.
@@ -1 +1,12 @@
1
- // Placeholder: will be implemented by ADD_RUN_HANDLER refactor.
1
+ const [handlerPath, exportName = "default"] = process.argv.slice(2);
2
+
3
+ const chunks: Buffer[] = [];
4
+ for await (const chunk of process.stdin) chunks.push(chunk);
5
+ const envelope = JSON.parse(Buffer.concat(chunks).toString());
6
+
7
+ const mod = await import(handlerPath);
8
+ const handler = mod[exportName];
9
+
10
+ const results = await handler.handle(envelope);
11
+
12
+ process.stdout.write(JSON.stringify(results));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barnum/barnum",
3
- "version": "0.0.0-main-630ee5dd",
3
+ "version": "0.0.0-main-45fcbab9",
4
4
  "type": "module",
5
5
  "description": "Barnum CLI - workflow engine for agents.",
6
6
  "main": "index.ts",