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.
@@ -1,2 +1,2 @@
1
1
  import 'zx/globals';
2
- export declare const openIDE: (ideType: "cursor" | "surf") => Promise<void>;
2
+ export declare const openIDE: (ideType: "cursor" | "claude") => Promise<void>;
@@ -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('surf')
64
- .description('open project in Windsurf')
63
+ program.command('claude')
64
+ .description('open project in Claude')
65
65
  .action(async () => {
66
- await openIDE('surf');
66
+ await openIDE('claude');
67
67
  });
68
68
  // Cloud infrastructure management commands
69
69
  const cloudCommand = program
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hsh19900502",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "main": "index.js",
@@ -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' | 'surf') => {
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('surf')
78
- .description('open project in Windsurf')
77
+ program.command('claude')
78
+ .description('open project in Claude')
79
79
  .action(async () => {
80
- await openIDE('surf');
80
+ await openIDE('claude');
81
81
  });
82
82
 
83
83
  // Cloud infrastructure management commands