Fix #137: decouple hose-link cache and add issue PR rule
- Decouple getHoseProvisionalAuthLink from internal closeapi session cache to prevent silent truncation and cache pollution (#137) - Add --force, --refresh, -f options and positive integer validation to auth hose-link - Clarify distinction between Hose web assistance links and Seal delegation tokens across CLI help, SKILL.md, and docs - Add modular issue resolution and PR workflow rule under .agents/rules/
This commit is contained in:
1 parent
0fad6359b5
commit
1f8bd016aa
12 files changed
+286
-139
No files matched your search
@@ -39,8 +39,16 @@ export async function handleAuthCommand(action: string | undefined, corp: CorpCo
|
||||
}
|
||||
|
||||
if (action === "hose-link") {
|
||||
const expiresIn = numberOption(args.options.expire) ?? 7200;
|
||||
printJson(await getHoseProvisionalAuthLink(corp, expiresIn));
|
||||
const rawExpire = args.options.expire;
|
||||
const expiresIn = rawExpire !== undefined ? numberOption(rawExpire) : 7200;
|
||||
if (expiresIn === undefined || expiresIn <= 0) {
|
||||
throw new Error(`Invalid --expire: ${String(rawExpire)}. Must be a positive number of seconds (e.g. --expire 7200 or --expire 86400).`);
|
||||
}
|
||||
const force =
|
||||
booleanOption(args.options.force) === true ||
|
||||
booleanOption(args.options.refresh) === true ||
|
||||
booleanOption(args.options.f) === true;
|
||||
printJson(await getHoseProvisionalAuthLink(corp, expiresIn, { force }));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user