@rivus/agent 0.1.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/cli.d.ts ADDED
@@ -0,0 +1 @@
1
+ export { };
package/dist/cli.js ADDED
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env node
2
+ import { t as runRivusDaemonCli } from "./rivus-daemon-cli.js";
3
+ import { pathToFileURL } from "node:url";
4
+ import { resolve } from "node:path";
5
+ import { Effect } from "effect";
6
+ //#region src/cli.ts
7
+ const exitCode = await Effect.runPromise(runRivusDaemonCli({
8
+ argv: process.argv.slice(2),
9
+ env: process.env,
10
+ exitAfterSignal: (code) => process.exit(code),
11
+ loadBootstrap: (specifier) => import(toImportSpecifier(specifier)),
12
+ signalSource: process,
13
+ stderr: process.stderr,
14
+ stdout: process.stdout
15
+ }));
16
+ process.exitCode = exitCode;
17
+ function toImportSpecifier(specifier) {
18
+ if (specifier.startsWith(".") || specifier.startsWith("/")) return pathToFileURL(resolve(specifier)).href;
19
+ return specifier;
20
+ }
21
+ //#endregion
22
+ export {};