claudekit-cli 3.21.0 → 3.22.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.
Files changed (2) hide show
  1. package/dist/index.js +62 -15
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -24619,6 +24619,34 @@ async function promptFreshConfirmation(targetPath) {
24619
24619
  }
24620
24620
  return confirmation.toLowerCase() === "yes";
24621
24621
  }
24622
+ // src/domains/ui/prompts/confirmation-prompts.ts
24623
+ init_output_manager();
24624
+ import { platform as platform5 } from "node:os";
24625
+
24626
+ // src/types/skills-dependencies.ts
24627
+ var SKILLS_DEPENDENCIES = {
24628
+ python: [
24629
+ { name: "google-genai", description: "Required for ai-multimodal skill (Gemini API)" },
24630
+ { name: "pillow, pypdf", description: "Image/PDF processing" },
24631
+ { name: "python-dotenv", description: "Environment variable management" }
24632
+ ],
24633
+ system: [
24634
+ { name: "ffmpeg", description: "Audio/video processing" },
24635
+ { name: "imagemagick", description: "Image manipulation" }
24636
+ ],
24637
+ node: [{ name: "repomix, pnpm", description: "Development utilities" }]
24638
+ };
24639
+ function formatDependencyList(deps) {
24640
+ return deps.map((d3) => ` - ${d3.name.padEnd(16)} ${d3.description}`).join(`
24641
+ `);
24642
+ }
24643
+ function getVenvPath(isWindows2) {
24644
+ return isWindows2 ? "%USERPROFILE%\\.claude\\skills\\.venv\\" : "~/.claude/skills/.venv/";
24645
+ }
24646
+ function getInstallCommand(isWindows2) {
24647
+ return isWindows2 ? "powershell %USERPROFILE%\\.claude\\skills\\install.ps1" : "bash ~/.claude/skills/install.sh";
24648
+ }
24649
+
24622
24650
  // src/domains/ui/prompts/confirmation-prompts.ts
24623
24651
  async function confirmAction(message) {
24624
24652
  const result = await se({
@@ -24652,8 +24680,27 @@ async function promptLocalMigration() {
24652
24680
  return result;
24653
24681
  }
24654
24682
  async function promptSkillsInstallation() {
24683
+ if (output.isJson()) {
24684
+ return false;
24685
+ }
24686
+ const isWindows2 = platform5() === "win32";
24687
+ const pythonDeps = formatDependencyList(SKILLS_DEPENDENCIES.python);
24688
+ const systemDeps = formatDependencyList(SKILLS_DEPENDENCIES.system);
24689
+ const nodeDeps = formatDependencyList(SKILLS_DEPENDENCIES.node);
24690
+ note(`This installs dependencies required by ClaudeKit skills:
24691
+
24692
+ Python packages (into ${getVenvPath(isWindows2)}):
24693
+ ${pythonDeps}
24694
+
24695
+ System tools (optional${isWindows2 ? "" : " - may require sudo"}):
24696
+ ${systemDeps}
24697
+
24698
+ Node.js packages:
24699
+ ${nodeDeps}`, "Skills Dependencies");
24700
+ log.info(`Run '${getInstallCommand(isWindows2)}' to install/update later.`);
24701
+ console.log();
24655
24702
  const installSkills = await se({
24656
- message: "Install skills dependencies (Python packages, system tools)? (Optional for advanced features)",
24703
+ message: "Install skills dependencies now?",
24657
24704
  initialValue: false
24658
24705
  });
24659
24706
  if (lD(installSkills)) {
@@ -29947,8 +29994,8 @@ class Minipass3 extends EventEmitter4 {
29947
29994
  }
29948
29995
 
29949
29996
  // node_modules/tar/dist/esm/normalize-windows-path.js
29950
- var platform5 = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
29951
- var normalizeWindowsPath = platform5 !== "win32" ? (p) => p : (p) => p && p.replace(/\\/g, "/");
29997
+ var platform6 = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
29998
+ var normalizeWindowsPath = platform6 !== "win32" ? (p) => p : (p) => p && p.replace(/\\/g, "/");
29952
29999
 
29953
30000
  // node_modules/tar/dist/esm/read-entry.js
29954
30001
  class ReadEntry extends Minipass3 {
@@ -32146,8 +32193,8 @@ import path7 from "node:path";
32146
32193
 
32147
32194
  // node_modules/tar/dist/esm/get-write-flag.js
32148
32195
  import fs7 from "fs";
32149
- var platform6 = process.env.__FAKE_PLATFORM__ || process.platform;
32150
- var isWindows2 = platform6 === "win32";
32196
+ var platform7 = process.env.__FAKE_PLATFORM__ || process.platform;
32197
+ var isWindows2 = platform7 === "win32";
32151
32198
  var { O_CREAT, O_TRUNC, O_WRONLY } = fs7.constants;
32152
32199
  var UV_FS_O_FILEMAP = Number(process.env.__FAKE_FS_O_FILENAME__) || fs7.constants.UV_FS_O_FILEMAP || 0;
32153
32200
  var fMapEnabled = isWindows2 && !!UV_FS_O_FILEMAP;
@@ -32438,8 +32485,8 @@ var normalizeUnicode = (s) => {
32438
32485
  };
32439
32486
 
32440
32487
  // node_modules/tar/dist/esm/path-reservations.js
32441
- var platform7 = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
32442
- var isWindows3 = platform7 === "win32";
32488
+ var platform8 = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
32489
+ var isWindows3 = platform8 === "win32";
32443
32490
  var getDirs = (path7) => {
32444
32491
  const dirs = path7.split("/").slice(0, -1).reduce((set, path8) => {
32445
32492
  const s = set[set.length - 1];
@@ -32585,8 +32632,8 @@ var DOCHOWN = Symbol("doChown");
32585
32632
  var UID = Symbol("uid");
32586
32633
  var GID = Symbol("gid");
32587
32634
  var CHECKED_CWD = Symbol("checkedCwd");
32588
- var platform8 = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
32589
- var isWindows4 = platform8 === "win32";
32635
+ var platform9 = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
32636
+ var isWindows4 = platform9 === "win32";
32590
32637
  var DEFAULT_MAX_DEPTH = 1024;
32591
32638
  var unlinkFile = (path8, cb) => {
32592
32639
  if (!isWindows4) {
@@ -39282,7 +39329,7 @@ init_logger();
39282
39329
  import { existsSync as existsSync18 } from "node:fs";
39283
39330
  import { mkdir as mkdir19, readFile as readFile19, rename as rename2, rm as rm5, writeFile as writeFile15 } from "node:fs/promises";
39284
39331
  import { chmod as chmod2 } from "node:fs/promises";
39285
- import { platform as platform9 } from "node:os";
39332
+ import { platform as platform10 } from "node:os";
39286
39333
  import { join as join58 } from "node:path";
39287
39334
  init_types2();
39288
39335
  var PROJECT_CONFIG_FILE = ".ck.json";
@@ -39326,12 +39373,12 @@ class ConfigManager {
39326
39373
  const configFile = PathResolver.getConfigFile(ConfigManager.globalFlag);
39327
39374
  if (!existsSync18(configDir)) {
39328
39375
  await mkdir19(configDir, { recursive: true });
39329
- if (platform9() !== "win32") {
39376
+ if (platform10() !== "win32") {
39330
39377
  await chmod2(configDir, 448);
39331
39378
  }
39332
39379
  }
39333
39380
  await writeFile15(configFile, JSON.stringify(validConfig, null, 2), "utf-8");
39334
- if (platform9() !== "win32") {
39381
+ if (platform10() !== "win32") {
39335
39382
  await chmod2(configFile, 384);
39336
39383
  }
39337
39384
  ConfigManager.config = validConfig;
@@ -40834,9 +40881,9 @@ async function transformFolderPaths(extractDir, folders, options = {}) {
40834
40881
  // src/services/transformers/global-path-transformer.ts
40835
40882
  init_logger();
40836
40883
  import { readFile as readFile22, readdir as readdir21, writeFile as writeFile19 } from "node:fs/promises";
40837
- import { platform as platform10 } from "node:os";
40884
+ import { platform as platform11 } from "node:os";
40838
40885
  import { extname as extname2, join as join67 } from "node:path";
40839
- var IS_WINDOWS3 = platform10() === "win32";
40886
+ var IS_WINDOWS3 = platform11() === "win32";
40840
40887
  var HOME_PREFIX = IS_WINDOWS3 ? "%USERPROFILE%" : "$HOME";
40841
40888
  function getHomeDirPrefix() {
40842
40889
  return HOME_PREFIX;
@@ -42311,7 +42358,7 @@ var import_picocolors24 = __toESM(require_picocolors(), 1);
42311
42358
  // package.json
42312
42359
  var package_default = {
42313
42360
  name: "claudekit-cli",
42314
- version: "3.21.0",
42361
+ version: "3.22.0",
42315
42362
  description: "CLI tool for bootstrapping and updating ClaudeKit projects",
42316
42363
  type: "module",
42317
42364
  repository: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudekit-cli",
3
- "version": "3.21.0",
3
+ "version": "3.22.0",
4
4
  "description": "CLI tool for bootstrapping and updating ClaudeKit projects",
5
5
  "type": "module",
6
6
  "repository": {