@aisac/cli 0.4.0-beta.15 → 0.4.0-beta.17
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/README.md +43 -2
- package/dist/claude-compatibility.mjs +2 -0
- package/dist/claude-observation.mjs +1 -1
- package/dist/cli.mjs +74 -4
- package/dist/codex-compatibility.mjs +1 -0
- package/dist/codex-protocol-fingerprint.json +11 -11
- package/dist/engineering-pack.mjs +23 -3
- package/dist/engineering-scan-pins.json +42 -0
- package/dist/engineering-scan-report.mjs +1274 -0
- package/dist/engineering-scan-tools.mjs +1418 -0
- package/dist/engineering-scan.mjs +1265 -0
- package/dist/package.json +1 -1
- package/dist/platform.mjs +20 -5
- package/package.json +1 -1
package/dist/package.json
CHANGED
package/dist/platform.mjs
CHANGED
|
@@ -76,7 +76,12 @@ export function captureLockPlatformCheck(
|
|
|
76
76
|
return { ok: true };
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* An executable by name, from the absolute directories of PATH only. An empty or relative
|
|
81
|
+
* entry (`.`, `node_modules/.bin`) would resolve against the working directory, often the
|
|
82
|
+
* user's project, and turn a file planted there into a trusted binary (scan review F7).
|
|
83
|
+
* @param {string} name @param {NodeJS.ProcessEnv} [environment]
|
|
84
|
+
*/
|
|
80
85
|
export function resolveNative(name, environment = process.env) {
|
|
81
86
|
if (!/^[A-Za-z0-9._+-]+$/u.test(name)) return null;
|
|
82
87
|
const pathValue = environment.PATH ?? '';
|
|
@@ -84,7 +89,7 @@ export function resolveNative(name, environment = process.env) {
|
|
|
84
89
|
? [name]
|
|
85
90
|
: pathValue
|
|
86
91
|
.split(delimiter)
|
|
87
|
-
.filter((directory) => directory
|
|
92
|
+
.filter((directory) => isAbsolute(directory))
|
|
88
93
|
.map((directory) => join(directory, name));
|
|
89
94
|
for (const candidate of candidates) {
|
|
90
95
|
try {
|
|
@@ -123,10 +128,10 @@ export function nativeVersion(executable, environment = process.env) {
|
|
|
123
128
|
export function isTestedNativeVersion(client, version) {
|
|
124
129
|
const value = version.trim();
|
|
125
130
|
if (client === 'claude')
|
|
126
|
-
return /^(?:(?:claude(?:\s+code)?)\s+)?2\.1\.(?:294|295|296|299|300|301|302|303)(?:\s+\(Claude\s+Code\))?$/iu.test(
|
|
131
|
+
return /^(?:(?:claude(?:\s+code)?)\s+)?2\.1\.(?:294|295|296|299|300|301|302|303|311|322)(?:\s+\(Claude\s+Code\))?$/iu.test(
|
|
127
132
|
value,
|
|
128
133
|
);
|
|
129
|
-
return /^(?:codex(?:-cli)?\s+)?0\.16(?:1\.0|2\.0|2\.1|3\.0|4\.0|6\.0)$/iu.test(value);
|
|
134
|
+
return /^(?:codex(?:-cli)?\s+)?0\.16(?:1\.0|2\.0|2\.1|3\.0|4\.0|6\.0|7\.1)$/iu.test(value);
|
|
130
135
|
}
|
|
131
136
|
|
|
132
137
|
const TESTED_NATIVE_VERSIONS = Object.freeze({
|
|
@@ -139,8 +144,18 @@ const TESTED_NATIVE_VERSIONS = Object.freeze({
|
|
|
139
144
|
'2.1.301',
|
|
140
145
|
'2.1.302',
|
|
141
146
|
'2.1.303',
|
|
147
|
+
'2.1.311',
|
|
148
|
+
'2.1.322',
|
|
149
|
+
]),
|
|
150
|
+
codex: Object.freeze([
|
|
151
|
+
'0.161.0',
|
|
152
|
+
'0.162.0',
|
|
153
|
+
'0.162.1',
|
|
154
|
+
'0.163.0',
|
|
155
|
+
'0.164.0',
|
|
156
|
+
'0.166.0',
|
|
157
|
+
'0.167.1',
|
|
142
158
|
]),
|
|
143
|
-
codex: Object.freeze(['0.161.0', '0.162.0', '0.162.1', '0.163.0', '0.164.0', '0.166.0']),
|
|
144
159
|
});
|
|
145
160
|
|
|
146
161
|
/** @param {'claude'|'codex'} client @param {string} version */
|
package/package.json
CHANGED