depth-first-thinking 1.0.4 → 2.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.
Files changed (3) hide show
  1. package/dist/dft +0 -0
  2. package/package.json +2 -2
  3. package/dist/dft.js +0 -17
package/dist/dft CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "depth-first-thinking",
3
- "version": "1.0.4",
3
+ "version": "2.0.7",
4
4
  "description": "A terminal-based task manager with depth-first navigation. Break down tasks into subtasks, navigate recursively, and track progress.",
5
5
  "keywords": [
6
6
  "cli",
@@ -37,7 +37,7 @@
37
37
  "scripts": {
38
38
  "preinstall": "node -e \"if(process.env.npm_execpath && !process.env.npm_execpath.includes('bun')){console.error('\\x1b[31mError: Use bun to install dependencies\\x1b[0m\\n\\nInstall bun: https://bun.sh');process.exit(1)}\"",
39
39
  "dev": "bun run --watch src/index.ts",
40
- "build": "bun build src/index.ts --compile --outfile dist/dft && chmod +x dist/dft && chmod +x dist/dft.js",
40
+ "build": "bun build src/index.ts --compile --outfile dist/dft && chmod +x dist/dft",
41
41
  "format": "bunx biome format --write src",
42
42
  "format:check": "bunx biome format src",
43
43
  "lint": "bunx biome lint src",
package/dist/dft.js DELETED
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env node
2
- const { spawn } = require('child_process');
3
- const { join } = require('path');
4
- const { existsSync } = require('fs');
5
-
6
- const binPath = join(__dirname, 'dft');
7
- if (!existsSync(binPath)) {
8
- console.error('Error: Binary not found. Please rebuild the package.');
9
- process.exit(1);
10
- }
11
-
12
- const child = spawn(binPath, process.argv.slice(2), { stdio: 'inherit' });
13
- child.on('exit', (code) => process.exit(code || 0));
14
- child.on('error', (err) => {
15
- console.error('Error running dft:', err.message);
16
- process.exit(1);
17
- });