ai-foreman 1.7.15 → 1.7.16
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/qaRecovery.js +4 -4
- package/package.json +2 -2
package/dist/qaRecovery.js
CHANGED
|
@@ -19,15 +19,15 @@ export class LegacyQaRecoveryPacketError extends Error {
|
|
|
19
19
|
}
|
|
20
20
|
export function loadQaRecoveryPacket(directory) {
|
|
21
21
|
const root = resolve(directory);
|
|
22
|
-
if (!existsSync(root) || realpathSync(root) !== root)
|
|
23
|
-
throw new Error(`symlink is not allowed in recovery path: ${root}`);
|
|
24
|
-
assertNoSymlinkComponents(root, root);
|
|
25
22
|
const manifestPath = join(root, "manifest.json");
|
|
26
23
|
if (!existsSync(manifestPath) || lstatSync(manifestPath).isSymbolicLink())
|
|
27
24
|
throw new Error("missing or unsafe QA recovery manifest");
|
|
28
25
|
let raw = JSON.parse(readFileSync(manifestPath, "utf8"));
|
|
29
26
|
if (raw.version === 1)
|
|
30
27
|
throw new LegacyQaRecoveryPacketError(root, raw);
|
|
28
|
+
if (!existsSync(root) || realpathSync(root) !== root)
|
|
29
|
+
throw new Error(`symlink is not allowed in recovery path: ${root}`);
|
|
30
|
+
assertNoSymlinkComponents(root, root);
|
|
31
31
|
assertPrivateTree(root);
|
|
32
32
|
assertManifestShape(raw);
|
|
33
33
|
for (const resource of raw.resources)
|
|
@@ -478,7 +478,7 @@ export function ensureQaRecoveryExcluded(projectDir) {
|
|
|
478
478
|
exclude = resolve(exclude);
|
|
479
479
|
common = resolve(common);
|
|
480
480
|
if (exclude !== common && !exclude.startsWith(`${common}${sep}`))
|
|
481
|
-
|
|
481
|
+
return;
|
|
482
482
|
const entries = [`/${QA_RECOVERY_ROOT}/`, `/${QA_CONTEXT_ROOT}/`];
|
|
483
483
|
const current = existsSync(exclude) ? readFileSync(exclude, "utf8") : "";
|
|
484
484
|
const missing = entries.filter((entry) => !current.split(/\r?\n/).includes(entry));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-foreman",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.16",
|
|
4
4
|
"description": "An orchestrator that keeps Codex CLI / Claude Code builders moving through their step list unattended. Part of Rafi.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
"test": "tsx --test test/*.test.ts",
|
|
199
199
|
"typecheck": "tsc --noEmit",
|
|
200
200
|
"test:live-providers": "RAFI_LIVE_PROVIDER_SESSIONS=1 tsx --test test/providerSmoke.test.ts",
|
|
201
|
-
"prepublishOnly": "
|
|
201
|
+
"prepublishOnly": "tsc -p ../spec/tsconfig.build.json && tsc -p tsconfig.build.json && pnpm --filter ai-foreman test && tsc --noEmit"
|
|
202
202
|
},
|
|
203
203
|
"keywords": [
|
|
204
204
|
"claude",
|