quickclaude 1.0.0 → 1.0.7

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.
@@ -0,0 +1,22 @@
1
+ name: Publish to npm
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ jobs:
9
+ publish:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: read
13
+ id-token: write
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: actions/setup-node@v4
17
+ with:
18
+ node-version: 22
19
+ - run: npm install -g npm@latest
20
+ - run: npm --version
21
+ - run: npm ci
22
+ - run: npm publish --provenance --access public
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Seunghyun Hong
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,45 @@
1
+ # quickclaude
2
+
3
+ CLI launcher for Claude Code.
4
+ Quickly launch Claude Code in your project directories.
5
+ <img width="762" height="383" alt="Screenshot 2026-03-28 at 6 25 10 PM" src="https://github.com/user-attachments/assets/4f368300-9748-4190-87c1-f2a1fcfd8a63" />
6
+
7
+
8
+ ```
9
+ $ quickclaude
10
+
11
+ ┌ quickclaude
12
+
13
+ ◆ Select a project
14
+ │ ● ~/Documents/projects/my-app1
15
+ │ ○ ~/Documents/projects/my-app2
16
+ │ ○ ~/Documents/projects/my-app3
17
+
18
+ ```
19
+
20
+ ## Install
21
+
22
+ ```bash
23
+ npm install -g quickclaude
24
+ ```
25
+
26
+ Or run without installing:
27
+
28
+ ```bash
29
+ npx quickclaude
30
+ ```
31
+
32
+ ## How it works
33
+
34
+ 1. Scans `~/.claude/projects/` for Claude Code project directories
35
+ 2. Shows an interactive list to pick from
36
+ 3. Launches `claude` in the selected directory
37
+
38
+ ## Requirements
39
+
40
+ - [Claude Code](https://docs.anthropic.com/en/docs/claude-code) installed
41
+ - Node.js 18+
42
+
43
+ ## License
44
+
45
+ MIT
@@ -15,8 +15,16 @@ const CLAUDE_PROJECTS_DIR = join(homedir(), ".claude", "projects");
15
15
  function resolvePath(encoded) {
16
16
  const parts = encoded.replace(/^-/, "").split("-");
17
17
  let current = sep;
18
-
19
18
  let i = 0;
19
+
20
+ // Windows: "C--Users-..." → drive letter "C:" 처리
21
+ if (parts.length >= 1 && /^[A-Za-z]$/.test(parts[0])) {
22
+ const drive = parts[0].toUpperCase() + ":\\";
23
+ if (existsSync(drive)) {
24
+ current = drive;
25
+ i = 1;
26
+ }
27
+ }
20
28
  while (i < parts.length) {
21
29
  let matched = false;
22
30
  // 긴 조합부터 시도 (mcp-overwatch, Unreal Projects 등)
@@ -75,12 +83,12 @@ async function main() {
75
83
  const projects = getProjects();
76
84
 
77
85
  if (projects.length === 0) {
78
- p.cancel("Claude 프로젝트를 찾을 수 없습니다.");
86
+ p.cancel("No Claude projects found.");
79
87
  process.exit(1);
80
88
  }
81
89
 
82
90
  const selected = await p.select({
83
- message: "프로젝트를 선택하세요",
91
+ message: "Select a project",
84
92
  options: projects.map((proj) => ({
85
93
  value: proj.path,
86
94
  label: getProjectLabel(proj.path),
@@ -88,11 +96,11 @@ async function main() {
88
96
  });
89
97
 
90
98
  if (p.isCancel(selected)) {
91
- p.cancel("취소됨");
99
+ p.cancel("Cancelled");
92
100
  process.exit(0);
93
101
  }
94
102
 
95
- p.outro(`${selected} 에서 Claude 시작...`);
103
+ p.outro(`Launching Claude in ${selected}`);
96
104
 
97
105
  // claude 실행 (현재 터미널에서 interactive하게)
98
106
  const child = spawn("claude", [], {
package/package.json CHANGED
@@ -1,19 +1,23 @@
1
1
  {
2
2
  "name": "quickclaude",
3
- "version": "1.0.0",
3
+ "version": "1.0.7",
4
4
  "description": "Quickly launch Claude Code in your project directories",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "quickclaude": "bin/quickclaude.js"
8
8
  },
9
9
  "scripts": {
10
- "start": "node src/index.js"
10
+ "start": "node bin/quickclaude.js"
11
11
  },
12
12
  "keywords": [
13
13
  "claude",
14
14
  "cli",
15
15
  "launcher"
16
16
  ],
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/strurao/quickclaude"
20
+ },
17
21
  "author": "",
18
22
  "license": "MIT",
19
23
  "dependencies": {
package/src/index.js DELETED
@@ -1,109 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- import * as p from "@clack/prompts";
4
- import { readdirSync, existsSync } from "fs";
5
- import { join, sep } from "path";
6
- import { homedir } from "os";
7
- import { execSync, spawn } from "child_process";
8
-
9
- const CLAUDE_PROJECTS_DIR = join(homedir(), ".claude", "projects");
10
-
11
- // 인코딩된 디렉토리명에서 실제 경로를 복원
12
- // "-Users-seunghyunhong-Documents-projects-mcp-overwatch" 같은 경우
13
- // -를 /로 바꾸면 mcp/overwatch가 되어 틀려짐
14
- // → 파일시스템을 실제로 탐색하며 매칭
15
- function resolvePath(encoded) {
16
- const parts = encoded.replace(/^-/, "").split("-");
17
- let current = sep;
18
-
19
- let i = 0;
20
- while (i < parts.length) {
21
- let matched = false;
22
- // 긴 조합부터 시도 (mcp-overwatch, Unreal Projects 등)
23
- for (let len = parts.length - i; len >= 1; len--) {
24
- const segment = parts.slice(i, i + len);
25
- // "-"와 " " 두 가지 구분자 조합을 모두 시도
26
- const separators = ["-", " "];
27
- for (const joiner of separators) {
28
- const candidate = segment.join(joiner);
29
- const fullPath = join(current, candidate);
30
- if (existsSync(fullPath)) {
31
- current = fullPath;
32
- i += len;
33
- matched = true;
34
- break;
35
- }
36
- }
37
- if (matched) break;
38
- }
39
- if (!matched) return null;
40
- }
41
-
42
- return current;
43
- }
44
-
45
- function getProjects() {
46
- if (!existsSync(CLAUDE_PROJECTS_DIR)) {
47
- return [];
48
- }
49
-
50
- const entries = readdirSync(CLAUDE_PROJECTS_DIR, { withFileTypes: true });
51
-
52
- return entries
53
- .filter((e) => e.isDirectory())
54
- .map((e) => {
55
- const path = resolvePath(e.name);
56
- return { dirName: e.name, path };
57
- })
58
- .filter((p) => {
59
- if (!p.path) return false;
60
- if (p.path.includes(`claude${sep}worktrees`)) return false;
61
- return existsSync(p.path);
62
- })
63
- .sort((a, b) => a.path.localeCompare(b.path));
64
- }
65
-
66
- function getProjectLabel(path) {
67
- const home = homedir();
68
- const display = path.startsWith(home) ? "~" + path.slice(home.length) : path;
69
- return display;
70
- }
71
-
72
- async function main() {
73
- p.intro("quickclaude");
74
-
75
- const projects = getProjects();
76
-
77
- if (projects.length === 0) {
78
- p.cancel("Claude 프로젝트를 찾을 수 없습니다.");
79
- process.exit(1);
80
- }
81
-
82
- const selected = await p.select({
83
- message: "프로젝트를 선택하세요",
84
- options: projects.map((proj) => ({
85
- value: proj.path,
86
- label: getProjectLabel(proj.path),
87
- })),
88
- });
89
-
90
- if (p.isCancel(selected)) {
91
- p.cancel("취소됨");
92
- process.exit(0);
93
- }
94
-
95
- p.outro(`${selected} 에서 Claude 시작...`);
96
-
97
- // claude 실행 (현재 터미널에서 interactive하게)
98
- const child = spawn("claude", [], {
99
- cwd: selected,
100
- stdio: "inherit",
101
- shell: true,
102
- });
103
-
104
- child.on("exit", (code) => {
105
- process.exit(code ?? 0);
106
- });
107
- }
108
-
109
- main();