From c9fd43690efb49f3aa84bb1a12ddcdf904841550 Mon Sep 17 00:00:00 2001 From: AgentLinkOps Date: Wed, 7 Oct 2026 07:38:19 -0400 Subject: [PATCH] Refresh rank-history catalog and permission fixture --- cli/catalog.js | 13 +++++++++++++ test/citation-login.test.js | 7 ++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/cli/catalog.js b/cli/catalog.js index 5025ddb..676742b 100644 --- a/cli/catalog.js +++ b/cli/catalog.js @@ -8084,6 +8084,19 @@ export const CATALOG_COMMANDS = [ "type": "null" } ] + }, + "defaults_applied": { + "type": "object", + "properties": { + "format": { + "type": "string", + "enum": [ + "concise", + "detailed" + ] + } + }, + "additionalProperties": false } }, "required": [ diff --git a/test/citation-login.test.js b/test/citation-login.test.js index 71339c1..b0d45da 100644 --- a/test/citation-login.test.js +++ b/test/citation-login.test.js @@ -74,7 +74,12 @@ for (const unsafe of ['directory-mode', 'directory-symlink', 'file-mode', 'file- if (unsafe === 'directory-symlink') { const target = join(f.dir, 'actual'); await fs.rename(f.sessionDir, target); await fs.symlink(target, f.sessionDir); } - if (unsafe === 'file-mode') await fs.writeFile(f.sessionPath, 'previous session', { mode: 0o644 }); + if (unsafe === 'file-mode') { + await fs.writeFile(f.sessionPath, 'previous session', { mode: 0o644 }); + // Creation mode is masked by the caller's umask; make the unsafe fixture real. + await fs.chmod(f.sessionPath, 0o644); + assert.equal((await fs.lstat(f.sessionPath)).mode & 0o7777, 0o644); + } if (unsafe === 'file-directory') await fs.mkdir(f.sessionPath); await assert.rejects(login(f), { code: 'PRIVATE_STORAGE_REQUIRED' }); if (unsafe === 'file-mode') assert.equal(await readFile(f.sessionPath, 'utf8'), 'previous session');