@lchase/yak 0.3.0 → 0.3.1
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/index.js +14 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2904,6 +2904,19 @@ function parseInputPairs(pairs) {
|
|
|
2904
2904
|
return out;
|
|
2905
2905
|
}
|
|
2906
2906
|
|
|
2907
|
+
// src/cli/version.ts
|
|
2908
|
+
import { readFileSync as readFileSync2 } from "fs";
|
|
2909
|
+
function readVersion() {
|
|
2910
|
+
for (const rel of ["../package.json", "../../package.json"]) {
|
|
2911
|
+
try {
|
|
2912
|
+
const manifest = JSON.parse(readFileSync2(new URL(rel, import.meta.url), "utf8"));
|
|
2913
|
+
if (manifest.name === "@lchase/yak" && manifest.version) return manifest.version;
|
|
2914
|
+
} catch {
|
|
2915
|
+
}
|
|
2916
|
+
}
|
|
2917
|
+
return "0.0.0";
|
|
2918
|
+
}
|
|
2919
|
+
|
|
2907
2920
|
// src/cli/index.ts
|
|
2908
2921
|
function requireAdapterId(value) {
|
|
2909
2922
|
if (value !== "mock" && value !== "claude-code") {
|
|
@@ -2918,7 +2931,7 @@ function requireIsolation(value) {
|
|
|
2918
2931
|
return value;
|
|
2919
2932
|
}
|
|
2920
2933
|
var program = new Command();
|
|
2921
|
-
program.name("yak").description("An agentic workflow engine").version(
|
|
2934
|
+
program.name("yak").description("An agentic workflow engine").version(readVersion());
|
|
2922
2935
|
program.command("run").description("Run a workflow YAML file").argument("<workflow>", "path to the workflow YAML file").option("--adapter <adapter>", "agent adapter to use", "claude-code").option("--interactive", "prompt inline for gate answers instead of exiting to resume later", false).option("--isolation <mode>", 'run inside a fresh git worktree ("worktree") or the plain cwd ("none")', "none").option(
|
|
2923
2936
|
"--input <pair...>",
|
|
2924
2937
|
"workflow input as key=value, repeatable \u2014 validated against the workflow inputSchema"
|