@baton-dx/cli 0.7.0 → 0.7.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/dist/{create-y-ut18-j.mjs → create-BiE2_2Fo.mjs} +2 -2
- package/dist/{create-y-ut18-j.mjs.map → create-BiE2_2Fo.mjs.map} +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/dist/{list-BHPDZfmU.mjs → list-7GvmRp3q.mjs} +2 -2
- package/dist/{list-BHPDZfmU.mjs.map → list-7GvmRp3q.mjs.map} +1 -1
- package/dist/{src-B8_hp8ig.mjs → src-C-rwSQpx.mjs} +1 -1
- package/dist/{src-BI6xWv0H.mjs → src-C0c228gb.mjs} +7 -5
- package/dist/{src-BI6xWv0H.mjs.map → src-C0c228gb.mjs.map} +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import "./dist-BoZnMvNi.mjs";
|
|
3
3
|
import { c as Ve, i as Le, l as We, m as defineCommand, n as isInSourceRepo } from "./context-detection-DO0ZeRyQ.mjs";
|
|
4
|
-
import { H as discoverProfilesInSourceRepo } from "./src-
|
|
4
|
+
import { H as discoverProfilesInSourceRepo } from "./src-C0c228gb.mjs";
|
|
5
5
|
import "./ai-tool-detection-CMsBNa9e.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/profile/list.ts
|
|
@@ -53,4 +53,4 @@ Note: Must be run from a source repository (directory with baton.source.yaml)`
|
|
|
53
53
|
|
|
54
54
|
//#endregion
|
|
55
55
|
export { profileListCommand };
|
|
56
|
-
//# sourceMappingURL=list-
|
|
56
|
+
//# sourceMappingURL=list-7GvmRp3q.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-
|
|
1
|
+
{"version":3,"file":"list-7GvmRp3q.mjs","names":[],"sources":["../src/commands/profile/list.ts"],"sourcesContent":["import { discoverProfilesInSourceRepo } from \"@baton-dx/core\";\nimport * as p from \"@clack/prompts\";\nimport { defineCommand } from \"citty\";\nimport { isInSourceRepo } from \"../../utils/context-detection.js\";\n\nexport const profileListCommand = defineCommand({\n meta: {\n name: \"profile list\",\n description: `List all profiles in the current source repository\n\nShows a table of all profiles with:\n - Profile name (root profile marked with \"(root)\")\n - Version from baton.profile.yaml\n - Description from profile manifest\n\nExamples:\n baton profile list\n\nNote: Must be run from a source repository (directory with baton.source.yaml)`,\n },\n run: async () => {\n p.intro(\"List Profiles\");\n\n // Check if we're in a source repo\n const inSourceRepo = await isInSourceRepo();\n if (!inSourceRepo) {\n p.outro(\n \"Error: Not in a source repository. Run this command from a directory containing baton.source.yaml\",\n );\n process.exit(1);\n }\n\n const cwd = process.cwd();\n\n // Discover all profiles in the profiles/ directory\n const profiles = await discoverProfilesInSourceRepo(cwd);\n\n if (profiles.length === 0) {\n p.outro(\"No profiles found.\");\n process.exit(0);\n }\n\n // Build table output\n const lines: string[] = [];\n lines.push(\"┌─────────────────────┬─────────┬────────────────────────────────────┐\");\n lines.push(\"│ Name │ Version │ Description │\");\n lines.push(\"├─────────────────────┼─────────┼────────────────────────────────────┤\");\n\n for (const profile of profiles) {\n const name = profile.name;\n const version = profile.version || \"-\";\n const description = profile.description || \"-\";\n\n // Pad columns to fixed width\n const namePadded = name.padEnd(19);\n const versionPadded = version.padEnd(7);\n const descPadded = description.padEnd(34);\n\n lines.push(`│ ${namePadded} │ ${versionPadded} │ ${descPadded} │`);\n }\n\n lines.push(\"└─────────────────────┴─────────┴────────────────────────────────────┘\");\n\n p.note(lines.join(\"\\n\"), \"Profiles\");\n p.outro(`Found ${profiles.length} profile${profiles.length === 1 ? \"\" : \"s\"}`);\n process.exit(0);\n },\n});\n"],"mappings":";;;;;;;AAKA,MAAa,qBAAqB,cAAc;CAC9C,MAAM;EACJ,MAAM;EACN,aAAa;;;;;;;;;;;EAWd;CACD,KAAK,YAAY;AACf,KAAQ,gBAAgB;AAIxB,MAAI,CADiB,MAAM,gBAAgB,EACxB;AACjB,MACE,oGACD;AACD,WAAQ,KAAK,EAAE;;EAMjB,MAAM,WAAW,MAAM,6BAHX,QAAQ,KAAK,CAG+B;AAExD,MAAI,SAAS,WAAW,GAAG;AACzB,MAAQ,qBAAqB;AAC7B,WAAQ,KAAK,EAAE;;EAIjB,MAAM,QAAkB,EAAE;AAC1B,QAAM,KAAK,yEAAyE;AACpF,QAAM,KAAK,yEAAyE;AACpF,QAAM,KAAK,yEAAyE;AAEpF,OAAK,MAAM,WAAW,UAAU;GAC9B,MAAM,OAAO,QAAQ;GACrB,MAAM,UAAU,QAAQ,WAAW;GACnC,MAAM,cAAc,QAAQ,eAAe;GAG3C,MAAM,aAAa,KAAK,OAAO,GAAG;GAClC,MAAM,gBAAgB,QAAQ,OAAO,EAAE;GACvC,MAAM,aAAa,YAAY,OAAO,GAAG;AAEzC,SAAM,KAAK,KAAK,WAAW,KAAK,cAAc,KAAK,WAAW,IAAI;;AAGpE,QAAM,KAAK,yEAAyE;AAEpF,KAAO,MAAM,KAAK,KAAK,EAAE,WAAW;AACpC,KAAQ,SAAS,SAAS,OAAO,UAAU,SAAS,WAAW,IAAI,KAAK,MAAM;AAC9E,UAAQ,KAAK,EAAE;;CAElB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import "./dist-BoZnMvNi.mjs";
|
|
3
|
-
import { $ as cloneGitSource, A as mergeRulesWithWarnings, At as loadProfileManifest, B as detectLegacyPaths, Bt as CircularInheritanceError, C as setGlobalAiTools, Ct as ClineAdapter, D as mergeMemoryWithWarnings, Dt as BaseAIToolAdapter, E as mergeMemory, Et as AmpAdapter, F as isLockedProfile, Ft as sourceManifestSchema, G as placementStateSchema, Gt as VersionNotFoundError, H as discoverProfilesInSourceRepo, Ht as GitSourceError, I as sortProfilesByWeight, It as weightSchema, J as removePlacedFiles, K as readState, L as mergeContentParts, Lt as KEBAB_CASE_REGEX, M as mergeSkillsWithWarnings, Mt as lockfileSchema, N as WEIGHT_LOCK, Nt as projectManifestSchema, O as mergeAgentsWithWarnings, Ot as parseFrontmatter, P as getProfileWeight, Pt as profileManifestSchema, Q as resolveVersion, R as resolveProfileSupport, Rt as AIToolAdapterNotFoundError, S as saveGlobalConfig, St as CodexAdapter, Tt as AntigravityAdapter, U as findSourceManifest, Ut as ManifestValidationError, V as placeFile, Vt as FileNotFoundError, W as getStatePath, Wt as SourceParseError, X as readLock, Y as generateLock, Yt as AIToolNotFoundError, Z as writeLock, _ as getGlobalConfigPath, _t as OpenCodeAdapter, a as resolvePreferences, at as updateGitignore, b as loadGlobalConfig, bt as GitHubCopilotAdapter, c as writeProjectPreferences, ct as idePlatformRegistry, d as clearIdeCache, dt as getAIToolAdaptersForKeys, et as expandSparseCheckout, f as detectInstalledIdes, ft as getAllAIToolAdapters, g as getGlobalAiTools, gt as RooAdapter, h as getDefaultGlobalSource, ht as TraeAdapter, i as formatInstallCommand, it as removeGitignoreManagedSection, j as mergeSkills, jt as loadProjectManifest, k as mergeRules, kt as parseSource, l as projectPreferencesSchema, lt as isKnownIdePlatform, m as getBatonHome, mt as WindsurfAdapter, n as isUpdateAvailable, nt as collectComprehensivePatterns, o as getPreferencesPath, ot as getIdePlatformTargetDir, p as addGlobalSource, pt as ZedAdapter, q as writeState, r as detectInstallMethod, rt as ensureBatonDirGitignored, s as readProjectPreferences, st as getRegisteredIdePlatforms, t as checkLatestVersion, u as computeIntersection, ut as getAIToolAdapter, v as getGlobalIdePlatforms, vt as KiroAdapter, w as setGlobalIdePlatforms, wt as ClaudeCodeAdapter, x as removeGlobalSource, xt as CursorAdapter, y as getGlobalSources, yt as JunieAdapter, z as resolveProfileChain, zt as BatonError } from "./src-
|
|
3
|
+
import { $ as cloneGitSource, A as mergeRulesWithWarnings, At as loadProfileManifest, B as detectLegacyPaths, Bt as CircularInheritanceError, C as setGlobalAiTools, Ct as ClineAdapter, D as mergeMemoryWithWarnings, Dt as BaseAIToolAdapter, E as mergeMemory, Et as AmpAdapter, F as isLockedProfile, Ft as sourceManifestSchema, G as placementStateSchema, Gt as VersionNotFoundError, H as discoverProfilesInSourceRepo, Ht as GitSourceError, I as sortProfilesByWeight, It as weightSchema, J as removePlacedFiles, K as readState, L as mergeContentParts, Lt as KEBAB_CASE_REGEX, M as mergeSkillsWithWarnings, Mt as lockfileSchema, N as WEIGHT_LOCK, Nt as projectManifestSchema, O as mergeAgentsWithWarnings, Ot as parseFrontmatter, P as getProfileWeight, Pt as profileManifestSchema, Q as resolveVersion, R as resolveProfileSupport, Rt as AIToolAdapterNotFoundError, S as saveGlobalConfig, St as CodexAdapter, Tt as AntigravityAdapter, U as findSourceManifest, Ut as ManifestValidationError, V as placeFile, Vt as FileNotFoundError, W as getStatePath, Wt as SourceParseError, X as readLock, Y as generateLock, Yt as AIToolNotFoundError, Z as writeLock, _ as getGlobalConfigPath, _t as OpenCodeAdapter, a as resolvePreferences, at as updateGitignore, b as loadGlobalConfig, bt as GitHubCopilotAdapter, c as writeProjectPreferences, ct as idePlatformRegistry, d as clearIdeCache, dt as getAIToolAdaptersForKeys, et as expandSparseCheckout, f as detectInstalledIdes, ft as getAllAIToolAdapters, g as getGlobalAiTools, gt as RooAdapter, h as getDefaultGlobalSource, ht as TraeAdapter, i as formatInstallCommand, it as removeGitignoreManagedSection, j as mergeSkills, jt as loadProjectManifest, k as mergeRules, kt as parseSource, l as projectPreferencesSchema, lt as isKnownIdePlatform, m as getBatonHome, mt as WindsurfAdapter, n as isUpdateAvailable, nt as collectComprehensivePatterns, o as getPreferencesPath, ot as getIdePlatformTargetDir, p as addGlobalSource, pt as ZedAdapter, q as writeState, r as detectInstallMethod, rt as ensureBatonDirGitignored, s as readProjectPreferences, st as getRegisteredIdePlatforms, t as checkLatestVersion, u as computeIntersection, ut as getAIToolAdapter, v as getGlobalIdePlatforms, vt as KiroAdapter, w as setGlobalIdePlatforms, wt as ClaudeCodeAdapter, x as removeGlobalSource, xt as CursorAdapter, y as getGlobalSources, yt as JunieAdapter, z as resolveProfileChain, zt as BatonError } from "./src-C0c228gb.mjs";
|
|
4
4
|
import { n as detectInstalledAITools, t as clearAIToolCache } from "./ai-tool-detection-CMsBNa9e.mjs";
|
|
5
5
|
|
|
6
6
|
export { readLock };
|
|
@@ -19477,7 +19477,8 @@ async function detectInstallMethod() {
|
|
|
19477
19477
|
args: [
|
|
19478
19478
|
"update",
|
|
19479
19479
|
"-g",
|
|
19480
|
-
"@baton-dx/cli"
|
|
19480
|
+
"@baton-dx/cli",
|
|
19481
|
+
"--latest"
|
|
19481
19482
|
]
|
|
19482
19483
|
};
|
|
19483
19484
|
if (normalized.includes(".bun") || normalized.includes("/bun/")) return {
|
|
@@ -19486,16 +19487,17 @@ async function detectInstallMethod() {
|
|
|
19486
19487
|
args: [
|
|
19487
19488
|
"update",
|
|
19488
19489
|
"-g",
|
|
19489
|
-
"@baton-dx/cli"
|
|
19490
|
+
"@baton-dx/cli",
|
|
19491
|
+
"--latest"
|
|
19490
19492
|
]
|
|
19491
19493
|
};
|
|
19492
19494
|
if (normalized.includes("node_modules") || normalized.includes("npm")) return {
|
|
19493
19495
|
type: "npm",
|
|
19494
19496
|
bin: "npm",
|
|
19495
19497
|
args: [
|
|
19496
|
-
"
|
|
19498
|
+
"install",
|
|
19497
19499
|
"-g",
|
|
19498
|
-
"@baton-dx/cli"
|
|
19500
|
+
"@baton-dx/cli@latest"
|
|
19499
19501
|
]
|
|
19500
19502
|
};
|
|
19501
19503
|
return { type: "unknown" };
|
|
@@ -19554,4 +19556,4 @@ async function checkLatestVersion() {
|
|
|
19554
19556
|
|
|
19555
19557
|
//#endregion
|
|
19556
19558
|
export { cloneGitSource as $, mergeRulesWithWarnings as A, loadProfileManifest as At, detectLegacyPaths as B, CircularInheritanceError as Bt, setGlobalAiTools as C, ClineAdapter as Ct, mergeMemoryWithWarnings as D, BaseAIToolAdapter as Dt, mergeMemory as E, AmpAdapter as Et, isLockedProfile as F, sourceManifestSchema as Ft, placementStateSchema as G, VersionNotFoundError as Gt, discoverProfilesInSourceRepo as H, GitSourceError as Ht, sortProfilesByWeight as I, weightSchema as It, removePlacedFiles as J, getAllAIToolKeys as Jt, readState as K, getAIToolConfig as Kt, mergeContentParts as L, KEBAB_CASE_REGEX as Lt, mergeSkillsWithWarnings as M, lockfileSchema as Mt, WEIGHT_LOCK as N, projectManifestSchema as Nt, mergeAgentsWithWarnings as O, parseFrontmatter as Ot, getProfileWeight as P, profileManifestSchema as Pt, resolveVersion as Q, resolveProfileSupport as R, AIToolAdapterNotFoundError as Rt, saveGlobalConfig as S, CodexAdapter as St, require_lib as T, AntigravityAdapter as Tt, findSourceManifest as U, ManifestValidationError as Ut, placeFile as V, FileNotFoundError as Vt, getStatePath as W, SourceParseError as Wt, readLock as X, generateLock as Y, AIToolNotFoundError as Yt, writeLock as Z, getGlobalConfigPath as _, OpenCodeAdapter as _t, resolvePreferences as a, updateGitignore as at, loadGlobalConfig as b, GitHubCopilotAdapter as bt, writeProjectPreferences as c, idePlatformRegistry as ct, clearIdeCache as d, getAIToolAdaptersForKeys as dt, expandSparseCheckout as et, detectInstalledIdes as f, getAllAIToolAdapters as ft, getGlobalAiTools as g, RooAdapter as gt, getDefaultGlobalSource as h, TraeAdapter as ht, formatInstallCommand as i, removeGitignoreManagedSection as it, mergeSkills as j, loadProjectManifest as jt, mergeRules as k, parseSource as kt, projectPreferencesSchema as l, isKnownIdePlatform as lt, getBatonHome as m, WindsurfAdapter as mt, isUpdateAvailable as n, collectComprehensivePatterns as nt, getPreferencesPath as o, getIdePlatformTargetDir as ot, addGlobalSource as p, ZedAdapter as pt, writeState as q, getAIToolPath as qt, detectInstallMethod as r, ensureBatonDirGitignored as rt, readProjectPreferences as s, getRegisteredIdePlatforms as st, checkLatestVersion as t, esm_default as tt, computeIntersection as u, getAIToolAdapter as ut, getGlobalIdePlatforms as v, KiroAdapter as vt, setGlobalIdePlatforms as w, ClaudeCodeAdapter as wt, removeGlobalSource as x, CursorAdapter as xt, getGlobalSources as y, JunieAdapter as yt, resolveProfileChain as z, BatonError as zt };
|
|
19557
|
-
//# sourceMappingURL=src-
|
|
19559
|
+
//# sourceMappingURL=src-C0c228gb.mjs.map
|