@technomoron/agent-run 0.99.7 → 0.99.8
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/CHANGES +4 -0
- package/dist/agent-run.js +21 -0
- package/package.json +1 -1
package/CHANGES
CHANGED
|
@@ -4,6 +4,10 @@ CHANGES
|
|
|
4
4
|
Unreleased (2026-04-24)
|
|
5
5
|
-----------------------
|
|
6
6
|
|
|
7
|
+
Version 0.99.8 (2026-04-26)
|
|
8
|
+
---------------------------
|
|
9
|
+
* Skip stale `codex` or `claude` PATH redirect shims that print `Run agent-run instead` when locating the real underlying tool binary.
|
|
10
|
+
|
|
7
11
|
Version 0.99.7 (2026-04-26)
|
|
8
12
|
---------------------------
|
|
9
13
|
* Add a checked-in basic starter config under `examples/basic-config` that exercises manifests, templates, snippets, skills, overrides, guardrails, checks, and generated runtime paths.
|
package/dist/agent-run.js
CHANGED
|
@@ -1881,11 +1881,32 @@ function findRealBinary(tool) {
|
|
|
1881
1881
|
if (resolvedCandidate === currentScript || wrapperCandidates.has(resolvedCandidate)) {
|
|
1882
1882
|
continue;
|
|
1883
1883
|
}
|
|
1884
|
+
if (isAgentRunRedirectShim(candidate)) {
|
|
1885
|
+
verbose(`skip ${tool} redirect shim: ${candidate}`);
|
|
1886
|
+
continue;
|
|
1887
|
+
}
|
|
1884
1888
|
return candidate;
|
|
1885
1889
|
}
|
|
1886
1890
|
}
|
|
1887
1891
|
fail(`no ${tool} binary found in PATH`);
|
|
1888
1892
|
}
|
|
1893
|
+
function isAgentRunRedirectShim(filePath) {
|
|
1894
|
+
try {
|
|
1895
|
+
const handle = fs.openSync(filePath, 'r');
|
|
1896
|
+
try {
|
|
1897
|
+
const buffer = Buffer.alloc(4096);
|
|
1898
|
+
const bytesRead = fs.readSync(handle, buffer, 0, buffer.length, 0);
|
|
1899
|
+
const content = buffer.subarray(0, bytesRead).toString('utf8');
|
|
1900
|
+
return content.includes('Run agent-run instead');
|
|
1901
|
+
}
|
|
1902
|
+
finally {
|
|
1903
|
+
fs.closeSync(handle);
|
|
1904
|
+
}
|
|
1905
|
+
}
|
|
1906
|
+
catch {
|
|
1907
|
+
return false;
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1889
1910
|
function getExecutableExtensions(tool) {
|
|
1890
1911
|
if (!IS_WINDOWS || path.extname(tool)) {
|
|
1891
1912
|
return [''];
|