claudekit-cli 4.5.1-dev.1 → 4.5.2-dev.1
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/cli-manifest.json +2 -2
- package/dist/index.js +18 -7
- package/package.json +1 -1
package/cli-manifest.json
CHANGED
package/dist/index.js
CHANGED
|
@@ -58247,6 +58247,15 @@ function getConfigSourceFromPlan(plan) {
|
|
|
58247
58247
|
const parsed = parseConfigSource(meta.source);
|
|
58248
58248
|
return parsed.ok ? parsed.value : undefined;
|
|
58249
58249
|
}
|
|
58250
|
+
function getGlobalOnlyFromPlan(plan) {
|
|
58251
|
+
const meta = getPlanMeta(plan);
|
|
58252
|
+
const parsedGlobal = parseBooleanLike(meta?.global);
|
|
58253
|
+
if (parsedGlobal.ok && parsedGlobal.value !== undefined) {
|
|
58254
|
+
return parsedGlobal.value;
|
|
58255
|
+
}
|
|
58256
|
+
const actionScopes = new Set(plan.actions.map((action) => action.global));
|
|
58257
|
+
return actionScopes.size === 1 && actionScopes.has(true);
|
|
58258
|
+
}
|
|
58250
58259
|
function getPlanItemsByType(plan, type) {
|
|
58251
58260
|
const meta = getPlanMeta(plan);
|
|
58252
58261
|
if (!meta?.items || typeof meta.items !== "object")
|
|
@@ -58643,7 +58652,7 @@ function registerMigrationRoutes(app, deps) {
|
|
|
58643
58652
|
}
|
|
58644
58653
|
reconcileMode = modeStr;
|
|
58645
58654
|
}
|
|
58646
|
-
const discovered = await discoverMigrationItems(include, configSource);
|
|
58655
|
+
const discovered = await discoverMigrationItems(include, configSource, globalParam);
|
|
58647
58656
|
const sourceItems = [];
|
|
58648
58657
|
for (const agent of discovered.agents) {
|
|
58649
58658
|
try {
|
|
@@ -58755,6 +58764,7 @@ function registerMigrationRoutes(app, deps) {
|
|
|
58755
58764
|
include,
|
|
58756
58765
|
providers: selectedProviders,
|
|
58757
58766
|
source: configSource,
|
|
58767
|
+
global: globalParam,
|
|
58758
58768
|
mode: reconcileMode,
|
|
58759
58769
|
items: {
|
|
58760
58770
|
agents: discovered.agents.map((item) => item.name),
|
|
@@ -58833,7 +58843,7 @@ function registerMigrationRoutes(app, deps) {
|
|
|
58833
58843
|
return;
|
|
58834
58844
|
}
|
|
58835
58845
|
const configSource = sourceParsed.value;
|
|
58836
|
-
const discovered = await discoverMigrationItems(include, configSource);
|
|
58846
|
+
const discovered = await discoverMigrationItems(include, configSource, globalParam);
|
|
58837
58847
|
const registry = await registryDeps.readPortableRegistry();
|
|
58838
58848
|
const candidates = [];
|
|
58839
58849
|
if (include.agents) {
|
|
@@ -58940,7 +58950,8 @@ function registerMigrationRoutes(app, deps) {
|
|
|
58940
58950
|
const deleteActions = plan.actions.filter((a3) => a3.action === "delete");
|
|
58941
58951
|
const includeFromPlan = getIncludeFromPlan(plan);
|
|
58942
58952
|
const configSourceFromPlan = getConfigSourceFromPlan(plan);
|
|
58943
|
-
const
|
|
58953
|
+
const globalOnlyFromPlan = getGlobalOnlyFromPlan(plan);
|
|
58954
|
+
const discovered2 = await discoverMigrationItems(includeFromPlan, configSourceFromPlan, globalOnlyFromPlan);
|
|
58944
58955
|
const agentByName = new Map(discovered2.agents.map((item) => [item.name, item]));
|
|
58945
58956
|
const commandByName = new Map(discovered2.commands.map((item) => [item.name, item]));
|
|
58946
58957
|
const skillByName = new Map(discovered2.skills.map((item) => [item.name, item]));
|
|
@@ -59143,9 +59154,9 @@ function registerMigrationRoutes(app, deps) {
|
|
|
59143
59154
|
}
|
|
59144
59155
|
}
|
|
59145
59156
|
try {
|
|
59146
|
-
const agentSrc = getAgentSourcePath();
|
|
59147
|
-
const cmdSrc = getCommandSourcePath();
|
|
59148
|
-
const skillSrc = getSkillSourcePath();
|
|
59157
|
+
const agentSrc = getAgentSourcePath(globalOnlyFromPlan);
|
|
59158
|
+
const cmdSrc = getCommandSourcePath(globalOnlyFromPlan);
|
|
59159
|
+
const skillSrc = getSkillSourcePath(globalOnlyFromPlan);
|
|
59149
59160
|
const kitRoot = (agentSrc ? resolve24(agentSrc, "..") : null) ?? (cmdSrc ? resolve24(cmdSrc, "..") : null) ?? (skillSrc ? resolve24(skillSrc, "..") : null) ?? null;
|
|
59150
59161
|
const manifest = kitRoot ? await loadPortableManifest(kitRoot) : null;
|
|
59151
59162
|
if (manifest?.cliVersion) {
|
|
@@ -64580,7 +64591,7 @@ var package_default;
|
|
|
64580
64591
|
var init_package = __esm(() => {
|
|
64581
64592
|
package_default = {
|
|
64582
64593
|
name: "claudekit-cli",
|
|
64583
|
-
version: "4.5.
|
|
64594
|
+
version: "4.5.2-dev.1",
|
|
64584
64595
|
description: "CLI tool for bootstrapping and updating ClaudeKit projects",
|
|
64585
64596
|
type: "module",
|
|
64586
64597
|
repository: {
|