@damper/cli 0.5.7 → 0.5.8

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/index.js CHANGED
@@ -5,7 +5,7 @@ import { statusCommand } from './commands/status.js';
5
5
  import { cleanupCommand } from './commands/cleanup.js';
6
6
  import { setupCommand } from './commands/setup.js';
7
7
  import { releaseCommand } from './commands/release.js';
8
- const VERSION = '0.5.7';
8
+ const VERSION = '0.5.8';
9
9
  function showHelp() {
10
10
  console.log(`
11
11
  ${pc.bold('@damper/cli')} - Agent orchestration for Damper tasks
@@ -133,39 +133,24 @@ export async function launchClaude(options) {
133
133
  const isTTY = process.stdin.isTTY;
134
134
  if (process.env.DEBUG) {
135
135
  console.log(pc.dim(`Debug: stdin.isTTY = ${isTTY}`));
136
+ console.log(pc.dim(`Debug: MCP config exists = ${fs.existsSync(mcpConfigPath)}`));
137
+ console.log(pc.dim(`Debug: cwd = ${cwd}`));
138
+ console.log(pc.dim(`Debug: About to spawn claude...`));
136
139
  }
137
- // Use script command on macOS to ensure proper TTY allocation
138
- // This is needed when running through npx which may not pass TTY properly
139
- const isMac = process.platform === 'darwin';
140
- let result;
141
- if (isMac) {
142
- // script -q /dev/null ensures TTY is allocated
143
- result = spawnSync('script', [
144
- '-q', '/dev/null',
145
- 'claude',
146
- '--mcp-config', mcpConfigPath,
147
- initialPrompt
148
- ], {
149
- cwd,
150
- stdio: 'inherit',
151
- env: {
152
- ...process.env,
153
- DAMPER_API_KEY: apiKey,
154
- },
155
- });
156
- }
157
- else {
158
- result = spawnSync('claude', [
159
- '--mcp-config', mcpConfigPath,
160
- initialPrompt
161
- ], {
162
- cwd,
163
- stdio: 'inherit',
164
- env: {
165
- ...process.env,
166
- DAMPER_API_KEY: apiKey,
167
- },
168
- });
140
+ // Simple spawn - no script wrapper
141
+ const result = spawnSync('claude', [
142
+ '--mcp-config', mcpConfigPath,
143
+ initialPrompt
144
+ ], {
145
+ cwd,
146
+ stdio: 'inherit',
147
+ env: {
148
+ ...process.env,
149
+ DAMPER_API_KEY: apiKey,
150
+ },
151
+ });
152
+ if (process.env.DEBUG) {
153
+ console.log(pc.dim(`Debug: spawnSync returned, status = ${result.status}`));
169
154
  }
170
155
  if (result.error) {
171
156
  const error = result.error;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@damper/cli",
3
- "version": "0.5.7",
3
+ "version": "0.5.8",
4
4
  "description": "CLI tool for orchestrating Damper task workflows with Claude Code",
5
5
  "author": "Damper <hello@usedamper.com>",
6
6
  "repository": {