@gluecharm-lab/easyspecs-cli 0.3.2 → 0.3.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/dist/main.cjs +22 -3
- package/dist/main.cjs.map +2 -2
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -14602,8 +14602,7 @@ function runOpenCodeAgent(cwd, args, options) {
|
|
|
14602
14602
|
const child = (0, import_child_process2.spawn)(cmd, args, {
|
|
14603
14603
|
cwd,
|
|
14604
14604
|
shell: USE_SHELL,
|
|
14605
|
-
env: spawnEnv
|
|
14606
|
-
stdio: ["pipe", "pipe", "pipe"]
|
|
14605
|
+
env: spawnEnv
|
|
14607
14606
|
});
|
|
14608
14607
|
let childResourceLogged = false;
|
|
14609
14608
|
let cpuBaseline;
|
|
@@ -29085,7 +29084,27 @@ function formatCliStderrLine(line, useAnsi) {
|
|
|
29085
29084
|
}
|
|
29086
29085
|
|
|
29087
29086
|
// src/cli/main.ts
|
|
29088
|
-
|
|
29087
|
+
function resolveCliPackageVersion() {
|
|
29088
|
+
if (true) {
|
|
29089
|
+
return "0.3.4";
|
|
29090
|
+
}
|
|
29091
|
+
const candidates = [
|
|
29092
|
+
path61.join(__dirname, "..", "package.json"),
|
|
29093
|
+
path61.join(__dirname, "..", "..", "packages", "cli", "package.json")
|
|
29094
|
+
];
|
|
29095
|
+
for (const pkgPath of candidates) {
|
|
29096
|
+
try {
|
|
29097
|
+
const raw = fs63.readFileSync(pkgPath, "utf8");
|
|
29098
|
+
const j = JSON.parse(raw);
|
|
29099
|
+
if (typeof j.version === "string") {
|
|
29100
|
+
return j.version;
|
|
29101
|
+
}
|
|
29102
|
+
} catch {
|
|
29103
|
+
}
|
|
29104
|
+
}
|
|
29105
|
+
return "0.0.0-dev";
|
|
29106
|
+
}
|
|
29107
|
+
var PKG_VERSION = resolveCliPackageVersion();
|
|
29089
29108
|
function isNonEmptyFactoryFailureArray(x) {
|
|
29090
29109
|
if (!Array.isArray(x) || x.length === 0) {
|
|
29091
29110
|
return false;
|