hsh19900502 1.0.19 → 1.0.20
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/commands/ide.d.ts +1 -1
- package/dist/commands/ide.js +4 -0
- package/dist/hsh.js +3 -3
- package/package.json +1 -1
- package/src/commands/ide.ts +5 -1
- package/src/hsh.ts +3 -3
package/dist/commands/ide.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import 'zx/globals';
|
|
2
|
-
export declare const openIDE: (ideType: "cursor" | "
|
|
2
|
+
export declare const openIDE: (ideType: "cursor" | "claude") => Promise<void>;
|
package/dist/commands/ide.js
CHANGED
|
@@ -70,6 +70,10 @@ export const openIDE = async (ideType) => {
|
|
|
70
70
|
]);
|
|
71
71
|
const selectedProject = secondLevelAnswer.project;
|
|
72
72
|
const projectPath = reposConfig[currentCategory][selectedProject];
|
|
73
|
+
if (ideType === 'claude') {
|
|
74
|
+
await $ `cd ${projectPath} && claude`;
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
73
77
|
// Open project in IDE
|
|
74
78
|
await $ `${ideType} ${projectPath}`;
|
|
75
79
|
console.log(chalk.green(`Opening ${selectedProject} in ${ideType}...`));
|
package/dist/hsh.js
CHANGED
|
@@ -60,10 +60,10 @@ program.command('cursor')
|
|
|
60
60
|
.action(async () => {
|
|
61
61
|
await openIDE('cursor');
|
|
62
62
|
});
|
|
63
|
-
program.command('
|
|
64
|
-
.description('open project in
|
|
63
|
+
program.command('claude')
|
|
64
|
+
.description('open project in Claude')
|
|
65
65
|
.action(async () => {
|
|
66
|
-
await openIDE('
|
|
66
|
+
await openIDE('claude');
|
|
67
67
|
});
|
|
68
68
|
// Cloud infrastructure management commands
|
|
69
69
|
const cloudCommand = program
|
package/package.json
CHANGED
package/src/commands/ide.ts
CHANGED
|
@@ -66,7 +66,7 @@ async function searchProjects(answers: any, input = '') {
|
|
|
66
66
|
.map(p => p.name);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
export const openIDE = async (ideType: 'cursor' | '
|
|
69
|
+
export const openIDE = async (ideType: 'cursor' | 'claude') => {
|
|
70
70
|
try {
|
|
71
71
|
await loadConfig();
|
|
72
72
|
|
|
@@ -97,6 +97,10 @@ export const openIDE = async (ideType: 'cursor' | 'surf') => {
|
|
|
97
97
|
const selectedProject = secondLevelAnswer.project;
|
|
98
98
|
const projectPath = reposConfig[currentCategory][selectedProject];
|
|
99
99
|
|
|
100
|
+
if(ideType === 'claude') {
|
|
101
|
+
await $`cd ${projectPath} && claude`;
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
100
104
|
// Open project in IDE
|
|
101
105
|
await $`${ideType} ${projectPath}`;
|
|
102
106
|
console.log(chalk.green(`Opening ${selectedProject} in ${ideType}...`));
|
package/src/hsh.ts
CHANGED
|
@@ -74,10 +74,10 @@ program.command('cursor')
|
|
|
74
74
|
await openIDE('cursor');
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
program.command('
|
|
78
|
-
.description('open project in
|
|
77
|
+
program.command('claude')
|
|
78
|
+
.description('open project in Claude')
|
|
79
79
|
.action(async () => {
|
|
80
|
-
await openIDE('
|
|
80
|
+
await openIDE('claude');
|
|
81
81
|
});
|
|
82
82
|
|
|
83
83
|
// Cloud infrastructure management commands
|