@controlflow-ai/daemon 0.1.3 → 0.1.4

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/bin/daemon.js CHANGED
@@ -1,2 +1,7 @@
1
1
  #!/usr/bin/env bun
2
- import '../src/daemon.ts';
2
+ import { main } from '../src/daemon.ts';
3
+
4
+ main().catch((error) => {
5
+ console.error(error instanceof Error ? error.message : String(error));
6
+ process.exit(1);
7
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@controlflow-ai/daemon",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "server": "bun run src/server.ts",
package/src/daemon.ts CHANGED
@@ -1058,7 +1058,7 @@ async function reconcileManagedAgents(input: {
1058
1058
  return activatedAgents;
1059
1059
  }
1060
1060
 
1061
- async function main(): Promise<void> {
1061
+ export async function main(): Promise<void> {
1062
1062
  const rawArgs = parseArgs();
1063
1063
  // When launched as `bun run src/daemon.ts --agent foo`, the first arg is a flag,
1064
1064
  // not a subcommand. Shift it back into flags/values.