vercel 53.1.0 → 53.2.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.
- package/dist/chunks/{add-S3BUT3KQ.js → add-C7TQF4LB.js} +4 -4
- package/dist/chunks/{chunk-D2KD42ZV.js → chunk-2STWVKG7.js} +37 -5
- package/dist/chunks/{chunk-W7MR5OK3.js → chunk-2TJ5Y674.js} +2 -2
- package/dist/chunks/{chunk-7KSQOBO6.js → chunk-3GBASY24.js} +1 -1
- package/dist/chunks/{chunk-57OG3NFC.js → chunk-3LRN4Q7G.js} +4 -1
- package/dist/chunks/{chunk-QIHIANBF.js → chunk-3XU5UGVN.js} +1 -0
- package/dist/chunks/{chunk-RKBCXTHK.js → chunk-4DLW7XLJ.js} +1 -1
- package/dist/chunks/{chunk-WR7S7PWN.js → chunk-4M7OEHTY.js} +6 -6
- package/dist/chunks/{chunk-BQOJ2BDS.js → chunk-6N4RFT24.js} +5 -5
- package/dist/chunks/{chunk-2RFTQMCH.js → chunk-7FQIXP2G.js} +1 -1
- package/dist/chunks/{chunk-PD5HCBBY.js → chunk-AB7YF6KM.js} +12 -19
- package/dist/chunks/{chunk-IWGJIRFK.js → chunk-AMXEAJTC.js} +2 -2
- package/dist/chunks/{chunk-IC6EDRCI.js → chunk-FFKXMQXF.js} +2 -2
- package/dist/chunks/{chunk-CLLHWKQN.js → chunk-FK7LDWAI.js} +1 -1
- package/dist/chunks/{chunk-VLWTUL5F.js → chunk-FLZW555J.js} +3 -2
- package/dist/chunks/{chunk-NUDNH7KK.js → chunk-HQU26P3O.js} +5 -5
- package/dist/chunks/{chunk-WTXYVRTW.js → chunk-MAPNH6ND.js} +22 -12
- package/dist/chunks/{chunk-IFPIVLCE.js → chunk-MZVW2VM7.js} +80 -84
- package/dist/chunks/{chunk-WZZBS2SZ.js → chunk-QT4W4DLL.js} +1 -1
- package/dist/chunks/{chunk-BNAHPSLB.js → chunk-RJWHOSUL.js} +1 -1
- package/dist/chunks/{chunk-6DECDOGX.js → chunk-TPBMA2WF.js} +1 -1
- package/dist/chunks/{chunk-L3UAXRIV.js → chunk-X6H25N2H.js} +1 -1
- package/dist/chunks/{chunk-LOS2AA5C.js → chunk-YEGTCAP6.js} +3 -3
- package/dist/chunks/{compile-vercel-config-PJN7DW4H.js → compile-vercel-config-QKQSM6VM.js} +1 -1
- package/dist/chunks/{delete-TBPSIJ2Y.js → delete-LUW77HWU.js} +2 -2
- package/dist/chunks/{disable-6K46H3LF.js → disable-ITW6P3R3.js} +2 -2
- package/dist/chunks/{discard-7MMLSQCH.js → discard-GDFQ4V4V.js} +2 -2
- package/dist/chunks/{edit-OM7SMKFO.js → edit-ZN7PQWZH.js} +3 -3
- package/dist/chunks/{enable-EA7VELBO.js → enable-VTJNEZ5Q.js} +2 -2
- package/dist/chunks/{export-EDEVEIPT.js → export-54A2LINR.js} +2 -2
- package/dist/chunks/{inspect-AUTVRW5N.js → inspect-UMXWXZMZ.js} +3 -3
- package/dist/chunks/{list-ZA6FTW2G.js → list-JZMV62KB.js} +3 -3
- package/dist/chunks/{list-7A7YF7LJ.js → list-OJCLL4JA.js} +2 -2
- package/dist/chunks/{ls-57JSYP5Q.js → ls-B677IDAB.js} +4 -4
- package/dist/chunks/{publish-XRQG6WAA.js → publish-SI4H6WPL.js} +2 -2
- package/dist/chunks/{query-JWXCJWZG.js → query-2CL2LAOA.js} +2 -2
- package/dist/chunks/{reorder-5GYXEH5H.js → reorder-E6R3ZL6W.js} +2 -2
- package/dist/chunks/{restore-LYPACI5W.js → restore-ZVC2USSZ.js} +2 -2
- package/dist/chunks/{rm-XNGCDU4C.js → rm-F3ESGYZE.js} +4 -4
- package/dist/chunks/{rule-inspect-3WNGN6TA.js → rule-inspect-AWORVTNG.js} +4 -4
- package/dist/chunks/{rules-R5LVTCSA.js → rules-KSDPKR6Z.js} +6 -6
- package/dist/chunks/{schema-Q7VADI6C.js → schema-UGF5QQ3K.js} +2 -2
- package/dist/chunks/{update-HQI4PQCH.js → update-GXZVHW4O.js} +4 -4
- package/dist/commands/build/index.js +24 -15
- package/dist/commands/deploy/index.js +37 -15
- package/dist/commands/dev/index.js +9 -9
- package/dist/commands/env/index.js +16 -10
- package/dist/commands/link/index.js +14 -11
- package/dist/commands/list/index.js +4 -4
- package/dist/commands-bulk.js +57 -42
- package/dist/help.js +1 -1
- package/dist/index.js +11 -12
- package/dist/version.mjs +1 -1
- package/package.json +17 -22
|
@@ -4,13 +4,10 @@ import { dirname as __dirname_ } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
|
-
import {
|
|
8
|
-
AGENT_ACTION
|
|
9
|
-
} from "./chunk-E3NE4SKN.js";
|
|
10
7
|
import {
|
|
11
8
|
getEnvTargetPlaceholder,
|
|
12
9
|
global_path_default
|
|
13
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AB7YF6KM.js";
|
|
14
11
|
import {
|
|
15
12
|
yesOption
|
|
16
13
|
} from "./chunk-JNOMOD7R.js";
|
|
@@ -113,6 +110,9 @@ function getPluginTargetForAgent(agentName) {
|
|
|
113
110
|
if (!agentName) {
|
|
114
111
|
return void 0;
|
|
115
112
|
}
|
|
113
|
+
if (agentName === KNOWN_AGENTS.CLAUDE || agentName.startsWith("claude-code") || agentName === KNOWN_AGENTS.COWORK) {
|
|
114
|
+
return "claude-code";
|
|
115
|
+
}
|
|
116
116
|
return AGENT_TO_TARGET[agentName];
|
|
117
117
|
}
|
|
118
118
|
async function fileExists(filePath) {
|
|
@@ -169,7 +169,7 @@ async function getPluginTargets(agentName) {
|
|
|
169
169
|
async function readClaudeInstalledPluginsFromRegistry() {
|
|
170
170
|
try {
|
|
171
171
|
const raw = await readFile(
|
|
172
|
-
|
|
172
|
+
getClaudeInstalledPluginsRegistryPath(),
|
|
173
173
|
"utf-8"
|
|
174
174
|
);
|
|
175
175
|
const data = JSON.parse(raw);
|
|
@@ -193,6 +193,40 @@ async function readClaudeInstalledPluginsFromRegistry() {
|
|
|
193
193
|
return [];
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
+
function getClaudeInstalledPluginsRegistryPath() {
|
|
197
|
+
return join(homedir(), ".claude", "plugins", "installed_plugins.json");
|
|
198
|
+
}
|
|
199
|
+
async function markStaleClaudePluginInstalls(plugins) {
|
|
200
|
+
return Promise.all(
|
|
201
|
+
plugins.map(async (plugin) => {
|
|
202
|
+
if (plugin.installPath && !await fileExists(plugin.installPath)) {
|
|
203
|
+
return { ...plugin, stale: true };
|
|
204
|
+
}
|
|
205
|
+
return plugin;
|
|
206
|
+
})
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
async function removeClaudePluginFromRegistry(pluginId) {
|
|
210
|
+
try {
|
|
211
|
+
const registryPath = getClaudeInstalledPluginsRegistryPath();
|
|
212
|
+
const raw = await readFile(registryPath, "utf-8");
|
|
213
|
+
const data = JSON.parse(raw);
|
|
214
|
+
if (!data.plugins || !(pluginId in data.plugins)) {
|
|
215
|
+
return false;
|
|
216
|
+
}
|
|
217
|
+
delete data.plugins[pluginId];
|
|
218
|
+
await writeFile(
|
|
219
|
+
registryPath,
|
|
220
|
+
`${JSON.stringify(data, null, 2)}
|
|
221
|
+
`,
|
|
222
|
+
"utf-8"
|
|
223
|
+
);
|
|
224
|
+
return true;
|
|
225
|
+
} catch (err) {
|
|
226
|
+
output_manager_default.debug(`Failed to remove Claude plugin registry entry: ${err}`);
|
|
227
|
+
return false;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
196
230
|
async function isPluginInstalledForTarget(target) {
|
|
197
231
|
if (target === "claude-code") {
|
|
198
232
|
const status = await getClaudePluginStatus();
|
|
@@ -241,7 +275,7 @@ async function getClaudeInstalledPlugins() {
|
|
|
241
275
|
try {
|
|
242
276
|
const parsed = JSON.parse(result.stdout);
|
|
243
277
|
if (Array.isArray(parsed)) {
|
|
244
|
-
return parsed;
|
|
278
|
+
return markStaleClaudePluginInstalls(parsed);
|
|
245
279
|
}
|
|
246
280
|
} catch (err) {
|
|
247
281
|
output_manager_default.debug(`Failed to parse Claude plugin list JSON: ${err}`);
|
|
@@ -251,7 +285,9 @@ async function getClaudeInstalledPlugins() {
|
|
|
251
285
|
`Failed to run 'claude plugins list --json': ${result.stderr}`
|
|
252
286
|
);
|
|
253
287
|
}
|
|
254
|
-
return
|
|
288
|
+
return markStaleClaudePluginInstalls(
|
|
289
|
+
await readClaudeInstalledPluginsFromRegistry()
|
|
290
|
+
);
|
|
255
291
|
}
|
|
256
292
|
async function fetchLatestVercelPluginVersion() {
|
|
257
293
|
try {
|
|
@@ -374,60 +410,6 @@ function buildClaudePromptCopy(status, plan) {
|
|
|
374
410
|
confirm: "Apply the Vercel plugin changes for Claude Code?"
|
|
375
411
|
};
|
|
376
412
|
}
|
|
377
|
-
function buildClaudeActionRequiredMessage(status, plan) {
|
|
378
|
-
if (status.state === "legacy-only") {
|
|
379
|
-
return `Working with Vercel is easier with the latest Vercel Plugin for Claude Code. It will run:
|
|
380
|
-
1. claude plugins install ${CLAUDE_OFFICIAL_PLUGIN_ID}
|
|
381
|
-
2. claude plugins uninstall ${CLAUDE_LEGACY_PLUGIN_ID}
|
|
382
|
-
Would you like me to update it?`;
|
|
383
|
-
}
|
|
384
|
-
if (status.state === "both" || plan.removeLegacy) {
|
|
385
|
-
return `Working with Vercel is easier with the latest Vercel Plugin for Claude Code. It will run:
|
|
386
|
-
1. claude plugins uninstall ${CLAUDE_LEGACY_PLUGIN_ID}
|
|
387
|
-
Would you like me to update it?`;
|
|
388
|
-
}
|
|
389
|
-
if (plan.updateOfficial) {
|
|
390
|
-
return `Working with Vercel is easier with the latest Vercel Plugin for Claude Code. It will run:
|
|
391
|
-
1. claude plugins update ${CLAUDE_OFFICIAL_PLUGIN_ID}
|
|
392
|
-
Would you like me to update it?`;
|
|
393
|
-
}
|
|
394
|
-
return `Working with Vercel is easier with the Vercel Plugin for Claude Code. It will run:
|
|
395
|
-
1. claude plugins install ${CLAUDE_OFFICIAL_PLUGIN_ID}
|
|
396
|
-
Would you like me to install it?`;
|
|
397
|
-
}
|
|
398
|
-
function buildClaudeActionRequiredLabel(status, plan) {
|
|
399
|
-
if (status.state === "legacy-only" || status.state === "both" || plan.removeLegacy || plan.updateOfficial) {
|
|
400
|
-
return "Update it";
|
|
401
|
-
}
|
|
402
|
-
return "Install it";
|
|
403
|
-
}
|
|
404
|
-
function getClaudeActionRequiredCommand(status, plan) {
|
|
405
|
-
if (plan.installOfficial && status.state === "none") {
|
|
406
|
-
return `claude plugins install ${CLAUDE_OFFICIAL_PLUGIN_ID}`;
|
|
407
|
-
}
|
|
408
|
-
if (status.state === "both" && plan.removeLegacy) {
|
|
409
|
-
return `claude plugins uninstall ${CLAUDE_LEGACY_PLUGIN_ID}`;
|
|
410
|
-
}
|
|
411
|
-
if (plan.updateOfficial && status.state === "official-only") {
|
|
412
|
-
return `claude plugins update ${CLAUDE_OFFICIAL_PLUGIN_ID}`;
|
|
413
|
-
}
|
|
414
|
-
return `claude plugins install ${CLAUDE_OFFICIAL_PLUGIN_ID}`;
|
|
415
|
-
}
|
|
416
|
-
function getClaudeActionRequiredNextSteps(status, plan) {
|
|
417
|
-
const next = [
|
|
418
|
-
{
|
|
419
|
-
command: getClaudeActionRequiredCommand(status, plan),
|
|
420
|
-
when: buildClaudeActionRequiredLabel(status, plan)
|
|
421
|
-
}
|
|
422
|
-
];
|
|
423
|
-
if (status.state === "legacy-only" && plan.removeLegacy) {
|
|
424
|
-
next.push({
|
|
425
|
-
command: `claude plugins uninstall ${CLAUDE_LEGACY_PLUGIN_ID}`,
|
|
426
|
-
when: "Remove the old plugin after the update"
|
|
427
|
-
});
|
|
428
|
-
}
|
|
429
|
-
return next;
|
|
430
|
-
}
|
|
431
413
|
async function runClaudeCommand(spinnerMessage, successMessage, failureMessage, args, options) {
|
|
432
414
|
output_manager_default.spinner(spinnerMessage);
|
|
433
415
|
const result = await runCommand("claude", args);
|
|
@@ -445,7 +427,43 @@ ${result.stderr || result.stdout}`
|
|
|
445
427
|
);
|
|
446
428
|
return false;
|
|
447
429
|
}
|
|
430
|
+
async function removeStaleLegacyClaudePlugin(removeMarketplace) {
|
|
431
|
+
output_manager_default.spinner("Removing the stale legacy Vercel Claude plugin...");
|
|
432
|
+
const removedRegistryEntry = await removeClaudePluginFromRegistry(
|
|
433
|
+
CLAUDE_LEGACY_PLUGIN_ID
|
|
434
|
+
);
|
|
435
|
+
output_manager_default.stopSpinner();
|
|
436
|
+
if (!removedRegistryEntry) {
|
|
437
|
+
output_manager_default.warn(
|
|
438
|
+
"Could not remove the stale legacy Vercel Claude plugin registry entry."
|
|
439
|
+
);
|
|
440
|
+
return false;
|
|
441
|
+
}
|
|
442
|
+
output_manager_default.success("Removed the stale legacy Vercel Claude plugin");
|
|
443
|
+
if (removeMarketplace) {
|
|
444
|
+
const removedMarketplace = await runClaudeCommand(
|
|
445
|
+
"Removing the legacy Vercel marketplace...",
|
|
446
|
+
"Removed the legacy Vercel marketplace",
|
|
447
|
+
"Removed the stale legacy Vercel plugin, but could not remove the legacy marketplace.",
|
|
448
|
+
["plugins", "marketplace", "remove", "vercel"],
|
|
449
|
+
{ quietSuccess: true }
|
|
450
|
+
);
|
|
451
|
+
if (!removedMarketplace) {
|
|
452
|
+
output_manager_default.log("Cleanup command: claude plugins marketplace remove vercel");
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
return true;
|
|
456
|
+
}
|
|
448
457
|
async function runClaudeMigration(plan) {
|
|
458
|
+
let removedStaleLegacy = false;
|
|
459
|
+
if (plan.removeLegacy) {
|
|
460
|
+
const statusBeforeInstall = await getClaudePluginStatus();
|
|
461
|
+
if (statusBeforeInstall.legacy?.stale) {
|
|
462
|
+
removedStaleLegacy = await removeStaleLegacyClaudePlugin(
|
|
463
|
+
plan.removeLegacyMarketplace
|
|
464
|
+
);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
449
467
|
if (plan.installOfficial) {
|
|
450
468
|
const installed = await runClaudeCommand(
|
|
451
469
|
"Installing the official Vercel Claude plugin...",
|
|
@@ -486,7 +504,7 @@ async function runClaudeMigration(plan) {
|
|
|
486
504
|
return;
|
|
487
505
|
}
|
|
488
506
|
}
|
|
489
|
-
if (plan.removeLegacyMarketplace) {
|
|
507
|
+
if (plan.removeLegacyMarketplace && !removedStaleLegacy) {
|
|
490
508
|
const finalStatus = await getClaudePluginStatus();
|
|
491
509
|
if (!finalStatus.legacy) {
|
|
492
510
|
const removedMarketplace = await runClaudeCommand(
|
|
@@ -556,28 +574,6 @@ async function autoInstallVercelPlugin(client, options) {
|
|
|
556
574
|
confirmMessage = claudePrompt.confirm;
|
|
557
575
|
}
|
|
558
576
|
if (client.isAgent && !client.stdin.isTTY) {
|
|
559
|
-
const actionRequiredMessage = uninstalledTargets.includes("claude-code") && claudeStatus && claudePlan ? buildClaudeActionRequiredMessage(claudeStatus, claudePlan) : promptMessages.join(" ");
|
|
560
|
-
const next = uninstalledTargets.includes("claude-code") && claudeStatus && claudePlan ? getClaudeActionRequiredNextSteps(claudeStatus, claudePlan) : [
|
|
561
|
-
{
|
|
562
|
-
command: `claude plugins install ${CLAUDE_OFFICIAL_PLUGIN_ID}`,
|
|
563
|
-
when: "Install it"
|
|
564
|
-
}
|
|
565
|
-
];
|
|
566
|
-
client.stdout.write(
|
|
567
|
-
`${JSON.stringify(
|
|
568
|
-
{
|
|
569
|
-
status: "action_required",
|
|
570
|
-
reason: "plugin_install",
|
|
571
|
-
action: AGENT_ACTION.CONFIRMATION_REQUIRED,
|
|
572
|
-
message: actionRequiredMessage,
|
|
573
|
-
userActionRequired: true,
|
|
574
|
-
next
|
|
575
|
-
},
|
|
576
|
-
null,
|
|
577
|
-
2
|
|
578
|
-
)}
|
|
579
|
-
`
|
|
580
|
-
);
|
|
581
577
|
await markPromptedToday(prefs);
|
|
582
578
|
return;
|
|
583
579
|
}
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
} from "./chunk-JCLLQ23G.js";
|
|
13
13
|
import {
|
|
14
14
|
getLocalPathConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QT4W4DLL.js";
|
|
16
16
|
import {
|
|
17
17
|
autoInstallVercelPlugin
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MZVW2VM7.js";
|
|
19
19
|
import {
|
|
20
20
|
DEFAULT_VERCEL_CONFIG_FILENAME,
|
|
21
21
|
VERCEL_CONFIG_EXTENSIONS,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
useKeypress,
|
|
42
42
|
usePrefix,
|
|
43
43
|
useState
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-AB7YF6KM.js";
|
|
45
45
|
import {
|
|
46
46
|
require_load_json_file,
|
|
47
47
|
require_write_json_file
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
parseSubcommandArgs,
|
|
16
16
|
resolveRoutes,
|
|
17
17
|
withGlobalFlags
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FK7LDWAI.js";
|
|
19
19
|
import {
|
|
20
20
|
deleteSubcommand
|
|
21
21
|
} from "./chunk-HMM7V4AU.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
AGENT_REASON,
|
|
24
24
|
AGENT_STATUS
|
|
25
25
|
} from "./chunk-E3NE4SKN.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-AB7YF6KM.js";
|
|
27
27
|
import "./chunk-4Z7KJQGN.js";
|
|
28
28
|
import {
|
|
29
29
|
outputAgentError
|
|
@@ -17,12 +17,12 @@ import {
|
|
|
17
17
|
parseSubcommandArgs,
|
|
18
18
|
resolveRoute,
|
|
19
19
|
withGlobalFlags
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FK7LDWAI.js";
|
|
21
21
|
import {
|
|
22
22
|
disableSubcommand
|
|
23
23
|
} from "./chunk-HMM7V4AU.js";
|
|
24
24
|
import "./chunk-E3NE4SKN.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-AB7YF6KM.js";
|
|
26
26
|
import "./chunk-4Z7KJQGN.js";
|
|
27
27
|
import {
|
|
28
28
|
outputAgentError
|
|
@@ -17,12 +17,12 @@ import {
|
|
|
17
17
|
parseSubcommandArgs,
|
|
18
18
|
printDiffSummary,
|
|
19
19
|
withGlobalFlags
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FK7LDWAI.js";
|
|
21
21
|
import {
|
|
22
22
|
discardSubcommand
|
|
23
23
|
} from "./chunk-HMM7V4AU.js";
|
|
24
24
|
import "./chunk-E3NE4SKN.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-AB7YF6KM.js";
|
|
26
26
|
import "./chunk-4Z7KJQGN.js";
|
|
27
27
|
import {
|
|
28
28
|
outputAgentError
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
printRouteConfig,
|
|
20
20
|
routingRuleToCurrentRoute,
|
|
21
21
|
runInteractiveEditLoop
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-RJWHOSUL.js";
|
|
23
23
|
import {
|
|
24
24
|
getRouteVersions
|
|
25
25
|
} from "./chunk-AHU7WNL2.js";
|
|
@@ -31,12 +31,12 @@ import {
|
|
|
31
31
|
resolveRoute,
|
|
32
32
|
shellQuoteRouteIdentifierForSuggestion,
|
|
33
33
|
withGlobalFlags
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-FK7LDWAI.js";
|
|
35
35
|
import {
|
|
36
36
|
editSubcommand
|
|
37
37
|
} from "./chunk-HMM7V4AU.js";
|
|
38
38
|
import "./chunk-E3NE4SKN.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-AB7YF6KM.js";
|
|
40
40
|
import "./chunk-4Z7KJQGN.js";
|
|
41
41
|
import {
|
|
42
42
|
outputAgentError
|
|
@@ -17,12 +17,12 @@ import {
|
|
|
17
17
|
parseSubcommandArgs,
|
|
18
18
|
resolveRoute,
|
|
19
19
|
withGlobalFlags
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FK7LDWAI.js";
|
|
21
21
|
import {
|
|
22
22
|
enableSubcommand
|
|
23
23
|
} from "./chunk-HMM7V4AU.js";
|
|
24
24
|
import "./chunk-E3NE4SKN.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-AB7YF6KM.js";
|
|
26
26
|
import "./chunk-4Z7KJQGN.js";
|
|
27
27
|
import {
|
|
28
28
|
outputAgentError
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
getRoutes,
|
|
10
10
|
parseSubcommandArgs,
|
|
11
11
|
withGlobalFlags
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FK7LDWAI.js";
|
|
13
13
|
import {
|
|
14
14
|
exportSubcommand
|
|
15
15
|
} from "./chunk-HMM7V4AU.js";
|
|
16
16
|
import "./chunk-E3NE4SKN.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-AB7YF6KM.js";
|
|
18
18
|
import "./chunk-4Z7KJQGN.js";
|
|
19
19
|
import {
|
|
20
20
|
outputAgentError
|
|
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
emitAlertsScopeError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2TJ5Y674.js";
|
|
10
10
|
import {
|
|
11
11
|
handleValidationError,
|
|
12
12
|
outputError,
|
|
@@ -21,14 +21,14 @@ import {
|
|
|
21
21
|
import "./chunk-P3H4MP5H.js";
|
|
22
22
|
import {
|
|
23
23
|
getScope
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-FLZW555J.js";
|
|
25
25
|
import {
|
|
26
26
|
AGENT_REASON
|
|
27
27
|
} from "./chunk-E3NE4SKN.js";
|
|
28
28
|
import {
|
|
29
29
|
getLinkedProject,
|
|
30
30
|
getProjectByNameOrId
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-AB7YF6KM.js";
|
|
32
32
|
import "./chunk-4Z7KJQGN.js";
|
|
33
33
|
import {
|
|
34
34
|
buildCommandWithGlobalFlags,
|
|
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveAlertsScope
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2TJ5Y674.js";
|
|
10
10
|
import {
|
|
11
11
|
handleValidationError,
|
|
12
12
|
normalizeRepeatableStringFilters,
|
|
@@ -23,14 +23,14 @@ import {
|
|
|
23
23
|
alertsCommand
|
|
24
24
|
} from "./chunk-4Q5VS23S.js";
|
|
25
25
|
import "./chunk-P3H4MP5H.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-FLZW555J.js";
|
|
27
27
|
import {
|
|
28
28
|
AGENT_REASON
|
|
29
29
|
} from "./chunk-E3NE4SKN.js";
|
|
30
30
|
import {
|
|
31
31
|
table
|
|
32
32
|
} from "./chunk-ABDTA3V2.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-AB7YF6KM.js";
|
|
34
34
|
import "./chunk-4Z7KJQGN.js";
|
|
35
35
|
import {
|
|
36
36
|
buildCommandWithGlobalFlags,
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
} from "./chunk-LN5ZMLBU.js";
|
|
25
25
|
import {
|
|
26
26
|
getScope
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-FLZW555J.js";
|
|
28
28
|
import {
|
|
29
29
|
getLinkedProject,
|
|
30
30
|
getProjectByNameOrId
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-AB7YF6KM.js";
|
|
32
32
|
import "./chunk-4Z7KJQGN.js";
|
|
33
33
|
import "./chunk-IABMY4Q3.js";
|
|
34
34
|
import "./chunk-CO5D46AG.js";
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
handleRulesApiError,
|
|
10
10
|
parseRulesFlagsAndScope,
|
|
11
11
|
rulesCollectionPath
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-TPBMA2WF.js";
|
|
13
|
+
import "./chunk-2TJ5Y674.js";
|
|
14
14
|
import "./chunk-HTOH3MSD.js";
|
|
15
15
|
import {
|
|
16
16
|
validateJsonOutput
|
|
@@ -18,11 +18,11 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
rulesLsSubcommand
|
|
20
20
|
} from "./chunk-P3H4MP5H.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-FLZW555J.js";
|
|
22
22
|
import {
|
|
23
23
|
AGENT_REASON
|
|
24
24
|
} from "./chunk-E3NE4SKN.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-AB7YF6KM.js";
|
|
26
26
|
import "./chunk-4Z7KJQGN.js";
|
|
27
27
|
import {
|
|
28
28
|
outputAgentError
|
|
@@ -17,12 +17,12 @@ import {
|
|
|
17
17
|
parseSubcommandArgs,
|
|
18
18
|
printDiffSummary,
|
|
19
19
|
withGlobalFlags
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FK7LDWAI.js";
|
|
21
21
|
import {
|
|
22
22
|
publishSubcommand
|
|
23
23
|
} from "./chunk-HMM7V4AU.js";
|
|
24
24
|
import "./chunk-E3NE4SKN.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-AB7YF6KM.js";
|
|
26
26
|
import "./chunk-4Z7KJQGN.js";
|
|
27
27
|
import {
|
|
28
28
|
outputAgentError
|
|
@@ -27,14 +27,14 @@ import {
|
|
|
27
27
|
} from "./chunk-77JGNI4Z.js";
|
|
28
28
|
import {
|
|
29
29
|
getScope
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-FLZW555J.js";
|
|
31
31
|
import {
|
|
32
32
|
table
|
|
33
33
|
} from "./chunk-ABDTA3V2.js";
|
|
34
34
|
import {
|
|
35
35
|
getLinkedProject,
|
|
36
36
|
getProjectByNameOrId
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-AB7YF6KM.js";
|
|
38
38
|
import "./chunk-4Z7KJQGN.js";
|
|
39
39
|
import "./chunk-IABMY4Q3.js";
|
|
40
40
|
import {
|
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
resolveRoute,
|
|
17
17
|
shellQuoteRouteIdentifierForSuggestion,
|
|
18
18
|
withGlobalFlags
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-FK7LDWAI.js";
|
|
20
20
|
import {
|
|
21
21
|
reorderSubcommand
|
|
22
22
|
} from "./chunk-HMM7V4AU.js";
|
|
23
23
|
import "./chunk-E3NE4SKN.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-AB7YF6KM.js";
|
|
25
25
|
import "./chunk-4Z7KJQGN.js";
|
|
26
26
|
import {
|
|
27
27
|
outputAgentError
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
printDiffSummary,
|
|
20
20
|
validateRequiredArgs,
|
|
21
21
|
withGlobalFlags
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-FK7LDWAI.js";
|
|
23
23
|
import {
|
|
24
24
|
restoreSubcommand
|
|
25
25
|
} from "./chunk-HMM7V4AU.js";
|
|
26
26
|
import "./chunk-E3NE4SKN.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-AB7YF6KM.js";
|
|
28
28
|
import "./chunk-4Z7KJQGN.js";
|
|
29
29
|
import {
|
|
30
30
|
outputAgentError
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
handleRulesApiError,
|
|
10
10
|
parseRulesFlagsAndScope,
|
|
11
11
|
rulesItemPath
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-TPBMA2WF.js";
|
|
13
|
+
import "./chunk-2TJ5Y674.js";
|
|
14
14
|
import "./chunk-HTOH3MSD.js";
|
|
15
15
|
import {
|
|
16
16
|
validateJsonOutput
|
|
@@ -18,11 +18,11 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
rulesRmSubcommand
|
|
20
20
|
} from "./chunk-P3H4MP5H.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-FLZW555J.js";
|
|
22
22
|
import {
|
|
23
23
|
AGENT_REASON
|
|
24
24
|
} from "./chunk-E3NE4SKN.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-AB7YF6KM.js";
|
|
26
26
|
import "./chunk-4Z7KJQGN.js";
|
|
27
27
|
import {
|
|
28
28
|
buildCommandWithGlobalFlags,
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
handleRulesApiError,
|
|
10
10
|
parseRulesFlagsAndScope,
|
|
11
11
|
rulesItemPath
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-TPBMA2WF.js";
|
|
13
|
+
import "./chunk-2TJ5Y674.js";
|
|
14
14
|
import "./chunk-HTOH3MSD.js";
|
|
15
15
|
import {
|
|
16
16
|
validateJsonOutput
|
|
@@ -18,11 +18,11 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
rulesInspectSubcommand
|
|
20
20
|
} from "./chunk-P3H4MP5H.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-FLZW555J.js";
|
|
22
22
|
import {
|
|
23
23
|
AGENT_REASON
|
|
24
24
|
} from "./chunk-E3NE4SKN.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-AB7YF6KM.js";
|
|
26
26
|
import "./chunk-4Z7KJQGN.js";
|
|
27
27
|
import {
|
|
28
28
|
buildCommandWithGlobalFlags,
|
|
@@ -31,7 +31,7 @@ var RULES_CONFIG = {
|
|
|
31
31
|
};
|
|
32
32
|
async function rules(client, argv) {
|
|
33
33
|
if (argv.length === 0) {
|
|
34
|
-
const lsFn = (await import("./ls-
|
|
34
|
+
const lsFn = (await import("./ls-B677IDAB.js")).default;
|
|
35
35
|
return lsFn(client, []);
|
|
36
36
|
}
|
|
37
37
|
const { subcommand, args, subcommandOriginal } = getSubcommand(
|
|
@@ -64,15 +64,15 @@ async function rules(client, argv) {
|
|
|
64
64
|
}
|
|
65
65
|
switch (subcommand) {
|
|
66
66
|
case "ls":
|
|
67
|
-
return (await import("./ls-
|
|
67
|
+
return (await import("./ls-B677IDAB.js")).default(client, args);
|
|
68
68
|
case "add":
|
|
69
|
-
return (await import("./add-
|
|
69
|
+
return (await import("./add-C7TQF4LB.js")).default(client, args);
|
|
70
70
|
case "inspect":
|
|
71
|
-
return (await import("./rule-inspect-
|
|
71
|
+
return (await import("./rule-inspect-AWORVTNG.js")).default(client, args);
|
|
72
72
|
case "rm":
|
|
73
|
-
return (await import("./rm-
|
|
73
|
+
return (await import("./rm-F3ESGYZE.js")).default(client, args);
|
|
74
74
|
case "update":
|
|
75
|
-
return (await import("./update-
|
|
75
|
+
return (await import("./update-GXZVHW4O.js")).default(client, args);
|
|
76
76
|
default:
|
|
77
77
|
output_manager_default.error(`Unhandled rules subcommand: ${String(subcommandOriginal)}`);
|
|
78
78
|
return 1;
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
} from "./chunk-77JGNI4Z.js";
|
|
24
24
|
import {
|
|
25
25
|
getScope
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-FLZW555J.js";
|
|
27
27
|
import "./chunk-ABDTA3V2.js";
|
|
28
28
|
import {
|
|
29
29
|
require_pluralize
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-AB7YF6KM.js";
|
|
31
31
|
import "./chunk-4Z7KJQGN.js";
|
|
32
32
|
import "./chunk-IABMY4Q3.js";
|
|
33
33
|
import "./chunk-CO5D46AG.js";
|