ccraft 1.0.1 → 1.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccraft",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Intelligent Claude Code project configurator — role-aware agents, skills, rules, MCPs, and workflows",
5
5
  "type": "module",
6
6
  "bin": {
@@ -8,7 +8,7 @@ import { validateKey, saveConfig, loadConfig, ApiError } from '../utils/api-clie
8
8
  import * as logger from '../utils/logger.js';
9
9
 
10
10
  export async function runAuth(key, options = {}) {
11
- const serverUrl = options.server || process.env.CLAUDE_CRAFT_SERVER_URL || 'https://api.claude-craft.dev';
11
+ const serverUrl = 'https://claude-craft-server.up.railway.app';
12
12
 
13
13
  if (!key.startsWith('ck_live_')) {
14
14
  logger.error('Invalid key format. API keys must start with ' + chalk.bold('ck_live_'));
@@ -10,7 +10,7 @@ import { VERSION } from '../constants.js';
10
10
  const CONFIG_DIR = join(homedir(), '.claude-craft');
11
11
  const CONFIG_PATH = join(CONFIG_DIR, 'config.json');
12
12
  function getDefaultServerUrl() {
13
- return process.env.CLAUDE_CRAFT_SERVER_URL || 'https://api.claude-craft.dev';
13
+ return 'https://claude-craft-server.up.railway.app';
14
14
  }
15
15
  const TIMEOUT_MS = 30_000;
16
16
 
@@ -76,7 +76,7 @@ export async function runPreflight(options = {}) {
76
76
 
77
77
  // ── 4. API key validation (also proves server is reachable) ─────────
78
78
  if (apiConfig?.apiKey) {
79
- const serverUrl = apiConfig.serverUrl || process.env.CLAUDE_CRAFT_SERVER_URL || 'https://api.claude-craft.dev';
79
+ const serverUrl = 'https://claude-craft-server.up.railway.app';
80
80
 
81
81
  try {
82
82
  const valid = await validateKey(apiConfig.apiKey, serverUrl);