claudekit-cli 3.27.1 → 3.28.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 +17 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -18519,11 +18519,6 @@ class PathResolver {
18519
18519
  if (!global2) {
18520
18520
  return join(baseDir || process.cwd(), ".opencode");
18521
18521
  }
18522
- const os = platform();
18523
- if (os === "win32") {
18524
- const appData = process.env.APPDATA || join(homedir(), "AppData", "Roaming");
18525
- return join(appData, "opencode");
18526
- }
18527
18522
  const xdgConfigHome = process.env.XDG_CONFIG_HOME;
18528
18523
  if (xdgConfigHome) {
18529
18524
  return join(xdgConfigHome, "opencode");
@@ -24843,6 +24838,16 @@ class PromptsManager {
24843
24838
  note(message, title) {
24844
24839
  note(message, title);
24845
24840
  }
24841
+ async text(message, placeholder) {
24842
+ const result = await te({
24843
+ message,
24844
+ placeholder
24845
+ });
24846
+ if (lD(result)) {
24847
+ return;
24848
+ }
24849
+ return result;
24850
+ }
24846
24851
  async promptPackageInstallations() {
24847
24852
  log.step("Optional Package Installations");
24848
24853
  const [openCodeInstalled, geminiInstalled] = await Promise.all([
@@ -24986,7 +24991,8 @@ Wait for it to complete or remove lock: ${lockPath}`);
24986
24991
 
24987
24992
  // src/commands/init/init-command.ts
24988
24993
  init_types2();
24989
-
24994
+ // src/commands/init/phases/api-key-handler.ts
24995
+ init_logger();
24990
24996
  // src/commands/init/phases/conflict-handler.ts
24991
24997
  init_logger();
24992
24998
  import { join as join27 } from "node:path";
@@ -39684,7 +39690,7 @@ import { platform as platform10 } from "node:os";
39684
39690
  import { extname as extname2, join as join59 } from "node:path";
39685
39691
  var IS_WINDOWS3 = platform10() === "win32";
39686
39692
  function getOpenCodeGlobalPath() {
39687
- return IS_WINDOWS3 ? "%APPDATA%/opencode/" : "$HOME/.config/opencode/";
39693
+ return "$HOME/.config/opencode/";
39688
39694
  }
39689
39695
  var TRANSFORMABLE_EXTENSIONS2 = new Set([
39690
39696
  ".md",
@@ -40128,7 +40134,7 @@ var VALIDATION_PATTERNS = {
40128
40134
  DISCORD_WEBHOOK_URL: /^https:\/\/discord\.com\/api\/webhooks\//,
40129
40135
  TELEGRAM_BOT_TOKEN: /^\d+:[A-Za-z0-9_-]{35}$/
40130
40136
  };
40131
- function validateApiKey(value, pattern) {
40137
+ function validateApiKey2(value, pattern) {
40132
40138
  return pattern.test(value);
40133
40139
  }
40134
40140
 
@@ -40244,7 +40250,7 @@ async function runSetupWizard(options) {
40244
40250
  if (!value && config.required) {
40245
40251
  return "This field is required";
40246
40252
  }
40247
- if (value && config.validate && !validateApiKey(value, config.validate)) {
40253
+ if (value && config.validate && !validateApiKey2(value, config.validate)) {
40248
40254
  return "Invalid format. Please check and try again.";
40249
40255
  }
40250
40256
  return;
@@ -40294,7 +40300,7 @@ async function promptForAdditionalGeminiKeys(primaryKey) {
40294
40300
  const trimmed = value.trim();
40295
40301
  if (!trimmed)
40296
40302
  return;
40297
- if (!validateApiKey(trimmed, VALIDATION_PATTERNS.GEMINI_API_KEY)) {
40303
+ if (!validateApiKey2(trimmed, VALIDATION_PATTERNS.GEMINI_API_KEY)) {
40298
40304
  return "Invalid format. Gemini keys start with 'AIza' and are 39 characters.";
40299
40305
  }
40300
40306
  if (allKeys.has(trimmed)) {
@@ -42948,7 +42954,7 @@ var import_fs_extra36 = __toESM(require_lib(), 1);
42948
42954
  // package.json
42949
42955
  var package_default = {
42950
42956
  name: "claudekit-cli",
42951
- version: "3.27.1",
42957
+ version: "3.28.0",
42952
42958
  description: "CLI tool for bootstrapping and updating ClaudeKit projects",
42953
42959
  type: "module",
42954
42960
  repository: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudekit-cli",
3
- "version": "3.27.1",
3
+ "version": "3.28.0",
4
4
  "description": "CLI tool for bootstrapping and updating ClaudeKit projects",
5
5
  "type": "module",
6
6
  "repository": {