depth-first-thinking 1.0.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 alwalxed
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,49 @@
1
+ # dft // depth-first-thinking
2
+
3
+ A terminal-based task manager with depth-first navigation. Break down tasks into subtasks, navigate recursively, and track progress.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ bun add -g depth-first-thinking
9
+ ```
10
+
11
+ ## Commands
12
+
13
+ | Command | Description |
14
+ |---------|-------------|
15
+ | `dft new <name>` | Create a new project |
16
+ | `dft list` | List all projects |
17
+ | `dft open <name>` | Open project in TUI |
18
+ | `dft <name>` | Shorthand for `dft open <name>` |
19
+ | `dft tree <name>` | Print tree structure |
20
+ | `dft delete <name>` | Delete a project |
21
+
22
+ ## Navigation
23
+
24
+ - `↑` `↓` - Select task
25
+ - `→` `Space` `Enter` - Enter task / view subtasks
26
+ - `←` - Go back to parent
27
+ - `n` - New subtask
28
+ - `e` - Edit task title
29
+ - `d` - Toggle done status
30
+ - `x` - Delete task
31
+ - `q` - Quit
32
+
33
+ ## Task Display
34
+
35
+ - `[N]` - Total subtasks (all descendants)
36
+ - `(done)` - Task and all subtasks complete
37
+ - `(done, partial)` - Task done but some subtasks incomplete
38
+
39
+ ## Development
40
+
41
+ ```bash
42
+ git clone https://github.com/alwalxed/dft.git
43
+ cd dft
44
+ bun install
45
+ ```
46
+
47
+ ## License
48
+
49
+ [MIT](LICENSE)
package/dist/dft ADDED
Binary file
package/dist/dft.js ADDED
@@ -0,0 +1,17 @@
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
+ });
package/package.json ADDED
@@ -0,0 +1,72 @@
1
+ {
2
+ "name": "depth-first-thinking",
3
+ "version": "1.0.1",
4
+ "description": "A terminal-based task manager with depth-first navigation. Break down tasks into subtasks, navigate recursively, and track progress.",
5
+ "keywords": [
6
+ "cli",
7
+ "tui",
8
+ "terminal",
9
+ "problem-solving",
10
+ "todo",
11
+ "todo-list",
12
+ "tree",
13
+ "depth-first",
14
+ "task-management",
15
+ "productivity"
16
+ ],
17
+ "license": "MIT",
18
+ "author": "alwalxed",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/alwalxed/dft.git"
22
+ },
23
+ "bugs": {
24
+ "url": "https://github.com/alwalxed/dft/issues"
25
+ },
26
+ "homepage": "https://github.com/alwalxed/dft#readme",
27
+ "module": "src/index.ts",
28
+ "type": "module",
29
+ "packageManager": "bun@1.3.2",
30
+ "bin": {
31
+ "dft": "dist/dft"
32
+ },
33
+ "files": [
34
+ "dist",
35
+ "README.md",
36
+ "LICENSE"
37
+ ],
38
+ "engines": {
39
+ "bun": ">=1.0.0"
40
+ },
41
+ "scripts": {
42
+ "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)}\"",
43
+ "dev": "bun run --watch src/index.ts",
44
+ "build": "bun build src/index.ts --compile --outfile dist/dft && chmod +x dist/dft && chmod +x dist/dft.js",
45
+ "format": "bunx biome format --write src",
46
+ "format:check": "bunx biome format src",
47
+ "lint": "bunx biome lint src",
48
+ "lint:fix": "bunx biome lint --write src",
49
+ "check": "bunx biome check src",
50
+ "check:fix": "bunx biome check --write src",
51
+ "check-types": "bunx tsc --noEmit",
52
+ "test": "bun test",
53
+ "prepublishOnly": "bun run check && bun run check-types && bun run build",
54
+ "prepare": "husky",
55
+ "ci": "bun run format && bun run lint && bun run check-types"
56
+ },
57
+ "devDependencies": {
58
+ "@biomejs/biome": "^1.9.4",
59
+ "@types/bun": "latest",
60
+ "@types/uuid": "^9.0.0",
61
+ "husky": "^9.0.0",
62
+ "typescript": "^5.0.0"
63
+ },
64
+ "dependencies": {
65
+ "@opentui/core": "^0.1.74",
66
+ "commander": "^11.0.0",
67
+ "uuid": "^9.0.0"
68
+ },
69
+ "publishConfig": {
70
+ "access": "public"
71
+ }
72
+ }