Refine skill routing and silent CLI compatibility
This commit is contained in:
1 parent
9094f4907a
commit
61fa63bbe1
11 files changed
+460
-774
No files matched your search
@@ -826,7 +826,7 @@ describe("Hose OpenAPI key extraction from assistance link", () => {
|
||||
expect(readDirectory(enterprises)).toEqual([]);
|
||||
});
|
||||
|
||||
test("corps add-link keeps --as-hose as a deprecated compatibility alias", async () => {
|
||||
test("corps add-link keeps the legacy Hose elevation flag silent", async () => {
|
||||
const enterprises = setupConfigEnv();
|
||||
mockHoseKeysRequests();
|
||||
|
||||
@@ -834,7 +834,7 @@ describe("Hose OpenAPI key extraction from assistance link", () => {
|
||||
|
||||
expect(result.isError).toBe(false);
|
||||
expect(result.exitCode).toBe(0);
|
||||
expect(result.stderr).toContain("'--as-hose' is deprecated");
|
||||
expect(result.stderr).not.toContain("deprecated");
|
||||
expect(existsSync(join(enterprises, "acme-01.json"))).toBe(true);
|
||||
});
|
||||
|
||||
|
||||
@@ -80,9 +80,6 @@ export async function handleCorpOnboarding(
|
||||
}
|
||||
|
||||
if (action === "add-hose-persistent" || action === "add-hose") {
|
||||
if (action === "add-hose") {
|
||||
console.error("⚠️ Notice: 'add-hose' is a compatibility alias; use 'add-hose-persistent' for durable Hose credentials.");
|
||||
}
|
||||
const jsonPayload = jsonObject(args.json);
|
||||
const merged = {
|
||||
...jsonPayload,
|
||||
@@ -167,9 +164,6 @@ export async function handleCorpOnboarding(
|
||||
}
|
||||
|
||||
if (action === "add-seal-bearer" || action === "add-seal") {
|
||||
if (action === "add-seal") {
|
||||
console.error("⚠️ Notice: 'add-seal' is a compatibility alias; use 'add-seal-bearer' for Seal Bearer credentials.");
|
||||
}
|
||||
const jsonPayload = jsonObject(args.json);
|
||||
const merged = {
|
||||
...jsonPayload,
|
||||
@@ -192,9 +186,6 @@ export async function handleCorpOnboarding(
|
||||
const dryRun = booleanOption(args.options["dry-run"]) === true || booleanOption(args.options.dryRun) === true;
|
||||
const legacyAsHose = booleanOption(args.options["as-hose"]) === true || booleanOption(args.options.hose) === true;
|
||||
const elevateHose = booleanOption(args.options["elevate-hose"]) === true || legacyAsHose;
|
||||
if (legacyAsHose && !booleanOption(args.options["elevate-hose"])) {
|
||||
console.error("⚠️ Notice: '--as-hose' is deprecated; use '--elevate-hose' to request Hose credential elevation.");
|
||||
}
|
||||
if (elevateHose) {
|
||||
const winner = scoreAssistLink(link)[0];
|
||||
if (winner?.kind === "seal-delegate") {
|
||||
|
||||
Reference in new issue
Block a user