v1.91.50.0 fix(install): skills only for the agents you installed, every runtime-root file their skills read (#1694, #1077)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
garrytanandcapy-ai[bot] committed 2026-10-08 08:33:16 +00:00
1 parent 4faf399538
commit 9b39cc6906
11 files changed
+176 -11

No files matched your search

+6 -1
View File
@@ -122,8 +122,13 @@ describe.skipIf(process.platform === 'win32')('gstack-upgrade migration prunes e
const migrations = fs.readdirSync(path.join(ROOT, 'gstack-upgrade/migrations'))
.filter(n => fs.readFileSync(path.join(ROOT, 'gstack-upgrade/migrations', n), 'utf8').includes('gstack-host-renders.sh'));
test('exactly one migration owns the prune', () => {
test('exactly one migration owns the prune, and setup runs it (not newer than VERSION)', () => {
expect(migrations).toEqual([expect.stringMatching(/^v\d+\.\d+\.\d+\.\d+\.sh$/)]);
const parts = (v: string) => v.split('.').map(Number);
const mine = parts(migrations[0]!.slice(1, -3));
const version = parts(fs.readFileSync(path.join(ROOT, 'VERSION'), 'utf8').trim());
const cmp = mine.map((n, i) => n - version[i]!).find(d => d !== 0) ?? 0;
expect(cmp).toBeLessThanOrEqual(0);
});
function migrate(f: Fixture, install: string) {