@agntk/agent-harness 0.1.1 → 0.1.2
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/index.js +4 -1
- package/dist/cli/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -7,6 +7,7 @@ import "../chunk-ZZJOFKAT.js";
|
|
|
7
7
|
|
|
8
8
|
// src/cli/index.ts
|
|
9
9
|
import { Command } from "commander";
|
|
10
|
+
import { createRequire } from "module";
|
|
10
11
|
import { resolve, join, basename } from "path";
|
|
11
12
|
import { existsSync } from "fs";
|
|
12
13
|
import { config as loadDotenv } from "dotenv";
|
|
@@ -83,7 +84,9 @@ function requireHarness(dir) {
|
|
|
83
84
|
process.exit(1);
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
|
-
|
|
87
|
+
var __pkgRequire = createRequire(import.meta.url);
|
|
88
|
+
var __pkg = __pkgRequire("../../package.json");
|
|
89
|
+
program.name("harness").description("Agent Harness \u2014 build AI agents by editing files, not writing code.").version(__pkg.version).option("-q, --quiet", "Suppress non-error output").option("-v, --verbose", "Enable debug output").option("--log-level <level>", "Set log level (debug, info, warn, error, silent)").hook("preAction", () => {
|
|
87
90
|
const opts = program.opts();
|
|
88
91
|
if (opts.quiet) setGlobalLogLevel("error");
|
|
89
92
|
else if (opts.verbose) setGlobalLogLevel("debug");
|