@golden-frijoles/kit 0.29.0 → 0.30.0
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.
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
codexExecArgs,
|
|
37
37
|
isCodexCapped,
|
|
38
38
|
} from './lib/cross-agent-cli.mjs';
|
|
39
|
-
import { readFileSync, realpathSync, writeFileSync } from 'node:fs';
|
|
39
|
+
import { existsSync, readFileSync, realpathSync, writeFileSync } from 'node:fs';
|
|
40
40
|
|
|
41
41
|
// ═══ CODEX ════════════════════════════════════════════════════════════════════════════════════
|
|
42
42
|
// The codex half — diagnose why the Codex CLI can't run, and name the exact fix.
|
|
@@ -211,6 +211,10 @@ async function codexMain() {
|
|
|
211
211
|
// (isMain-guarded, per LEARNINGS).
|
|
212
212
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
213
213
|
const LIB_PATH = join(__dirname, 'lib', 'cross-agent-cli.mjs');
|
|
214
|
+
// The byte-identical template mirror, when this runs in the repo that carries one (golden-beans:
|
|
215
|
+
// `skills/template/scripts/`, held identical by check-script-parity). Bumping only LIB_PATH broke that
|
|
216
|
+
// parity on 2026-10-06 (PR #278); in a consumer project the path does not exist and is skipped.
|
|
217
|
+
const MIRROR_LIB_PATH = join(__dirname, '..', 'skills', 'template', 'scripts', 'lib', 'cross-agent-cli.mjs');
|
|
214
218
|
|
|
215
219
|
// ── Pure decision core (the unit under test) ─────────────────────────────────────────────────────────
|
|
216
220
|
// Given the observed facts, decide ONE action, most severe first:
|
|
@@ -554,7 +558,10 @@ async function agyMain() {
|
|
|
554
558
|
}
|
|
555
559
|
const src = readFileSync(LIB_PATH, 'utf8');
|
|
556
560
|
const today = new Date().toISOString().slice(0, 10);
|
|
557
|
-
|
|
561
|
+
const bumped = bumpPinnedSource(src, obs.installed, today);
|
|
562
|
+
writeFileSync(LIB_PATH, bumped);
|
|
563
|
+
const mirrored = existsSync(MIRROR_LIB_PATH);
|
|
564
|
+
if (mirrored) writeFileSync(MIRROR_LIB_PATH, bumped);
|
|
558
565
|
line(`✓ AGY_PINNED bumped ${obs.pinned} → ${obs.installed} (probe green; marker dated ${today}).`);
|
|
559
566
|
const t = spawnSync(process.execPath, ['--test', 'scripts/lib/*.test.mjs', 'scripts/*.test.mjs'], {
|
|
560
567
|
encoding: 'utf8',
|
|
@@ -577,7 +584,9 @@ async function agyMain() {
|
|
|
577
584
|
line(
|
|
578
585
|
' branch `chore/agy-pin-bump-' +
|
|
579
586
|
obs.installed +
|
|
580
|
-
'`, path-limited commit of scripts/lib/cross-agent-cli.mjs
|
|
587
|
+
'`, path-limited commit of scripts/lib/cross-agent-cli.mjs' +
|
|
588
|
+
(mirrored ? ' and skills/template/scripts/lib/cross-agent-cli.mjs' : '') +
|
|
589
|
+
', PR.'
|
|
581
590
|
);
|
|
582
591
|
return;
|
|
583
592
|
}
|
|
@@ -40,7 +40,8 @@ export const REGISTRY = Object.freeze([
|
|
|
40
40
|
default: 'later',
|
|
41
41
|
choices: ['later', 'now'],
|
|
42
42
|
store: 'env',
|
|
43
|
-
question:
|
|
43
|
+
question:
|
|
44
|
+
'An account adds flags you can roll out and turn off, each bet measured on its read date, every product in one place and an outcome report you can send. Sign in now (recommended: gf login, then gf init), or later?',
|
|
44
45
|
},
|
|
45
46
|
{
|
|
46
47
|
key: 'board.sink',
|
|
@@ -54,10 +54,10 @@ export const AGENT_BIN = {
|
|
|
54
54
|
// Harmless here since AGY_MODEL/AGY_FALLBACK_MODEL below are always valid, listed model names (checked via
|
|
55
55
|
// `agy models`), but it means a future typo in either constant would silently review with the WRONG model
|
|
56
56
|
// instead of failing loud — watch for that if either constant is ever edited.
|
|
57
|
-
// agy-doctor: last verified 2026-10-
|
|
57
|
+
// agy-doctor: last verified 2026-10-06 against 1.3.0.
|
|
58
58
|
// ^ machine-managed marker — `node scripts/cross-agent-doctor.mjs agy --fix` rewrites it (with the constant
|
|
59
59
|
// below) after a green live contract probe. Don't hand-edit the marker's shape.
|
|
60
|
-
export const AGY_PINNED = '1.
|
|
60
|
+
export const AGY_PINNED = '1.3.0';
|
|
61
61
|
|
|
62
62
|
// agy's `--print` mode prints NOTHING unless `--model` names a model — and, crucially, it ALSO prints
|
|
63
63
|
// nothing (exit 0, empty stdout — the error lands only in agy's log, see --log-file) when the model is
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golden-frijoles/kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"description": "The scripts the Golden Frijoles skills run, packaged so they work in any repo: planning, build-order, reporting and verification rails. Zero dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|