dirban 0.0.0-stage → 0.1.2

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/README.md +130 -2
  2. package/dist/dirban.js +12190 -0
  3. package/package.json +54 -4
package/README.md CHANGED
@@ -1,3 +1,131 @@
1
- # Temporary Holding Version
1
+ # Dirban
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ > **Zero-database, folder-based Kanban board for builders, knowledge workers, and AI agents.**
4
+
5
+ [![CI](https://github.com/SYip/dirban/actions/workflows/publish.yml/badge.svg)](https://github.com/SYip/dirban/actions)
6
+ [![npm version](https://img.shields.io/npm/v/dirban.svg?color=cb3837)](https://www.npmjs.com/package/dirban)
7
+ [![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/dirban.dirban-vscode?color=blue&label=VS%20Code)](https://marketplace.visualstudio.com/items?itemName=dirban.dirban-vscode)
8
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
9
+
10
+ ---
11
+
12
+ ## What is Dirban?
13
+
14
+ **Dirban** (**Dir**ectory + Kan**ban**) tracks task state using plain directories and Markdown files. It is designed for **solo builders, knowledge workers, and AI agents** (Cursor, Claude Code, Antigravity, Obsidian).
15
+
16
+ **The physical directory is the task state.** Moving a task between stages is just moving a file (`mv`).
17
+
18
+ - **Directories as Columns**: Workflow stages are plain folders (`01-todo/`, `02-doing/`, `03-done/`).
19
+ - **Customizable Workflows**: Tailor column names, staging pipelines, and priority tiers to your exact workflow using [`.dirban.json`](docs/concepts/configuration.md).
20
+ - **Isolated Task Files**: Each task is a self-contained Markdown file with an optional priority and checklist (`- [ ]`). Editing one task never collides with another in Git or file sync.
21
+ - **Agent-Ready & Context-Efficient**: AI tools and scripts read only the active task file (`dirban current`), keeping token usage low and focus sharp.
22
+ - **Git is Completely Optional**: While Dirban automates Git branching and worktrees for developers, it works equally well on plain folders (`branchStrategy: "none"`) in Obsidian vaults, Dropbox, or local drives.
23
+ - **Built for Fast Iteration**: Cloud tools assume sprint cycles measured in weeks. Autonomous agents iterate in minutes. Dirban keeps pace without browser tabs, OAuth tokens, or sync delays.
24
+ - **100% Local & Future-Proof**: Your data is just plain files. If you ever uninstall Dirban, your tasks remain standard Markdown notes readable in any text editor.
25
+
26
+ ---
27
+
28
+ ## Quick Start (60 Seconds)
29
+
30
+ ### 1. Install & Initialize
31
+
32
+ ```bash
33
+ # Install globally via Bun or npm:
34
+ bun add -g dirban
35
+ # or: npm install -g dirban
36
+
37
+ # Or run instantly without installing:
38
+ # npx dirban init
39
+ ```
40
+
41
+ *(Alternatively, download a standalone prebuilt binary from [GitHub Releases](https://github.com/SYip/dirban/releases) or build locally via `bun link`.)*
42
+
43
+ #### Initialize a Board
44
+ ```bash
45
+ # Run inside any repository, vault, or folder:
46
+ dirban init
47
+ ```
48
+
49
+ This creates a lightweight task hierarchy under `docs/tasks/`:
50
+ ```text
51
+ docs/tasks/
52
+ ├── backlog/ # Staging and future ideas
53
+ ├── 01-todo/ # Ready to be picked up
54
+ ├── 02-doing/ # Actively executing tasks (human or AI agent)
55
+ ├── 03-done/ # Completed tasks
56
+ └── archive/ # Historical archive
57
+ ```
58
+
59
+ ---
60
+
61
+ ### 2. The Core Execution Loop
62
+
63
+ ```bash
64
+ # Create a new task with auto-assigned sequential ID
65
+ dirban new "Implement search filtering" --priority=p1
66
+
67
+ # Pick up and start work (moves to 02-doing/ & creates Git branch)
68
+ dirban start 26-001
69
+
70
+ # Inspect active task, branch alignment, and criteria checklist
71
+ dirban current
72
+
73
+ # Complete task (moves to 03-done/ and squashes branch)
74
+ dirban done
75
+ ```
76
+
77
+ ---
78
+
79
+ ## Interfaces: Terminal & Editor
80
+
81
+ Work from the terminal or directly inside your editor:
82
+
83
+ ### 1. Interactive Terminal UI (TUI)
84
+ ```bash
85
+ # Launch interactive terminal Kanban board
86
+ dirban board
87
+
88
+ # Or print static board to stdout (ideal for CI, scripts, and piping)
89
+ dirban board --static
90
+ ```
91
+
92
+ ### 2. VS Code Extension ([Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=dirban.dirban-vscode))
93
+ - Install directly from VS Code: Search for `Dirban` (`dirban.dirban-vscode`).
94
+ - **Focus View**: Pinned sidebar panel showing the currently active task, branch alignment, and interactive checklist.
95
+ - **Status Bar Indicator**: Real-time status badge (`$(checklist) 26-001 [2/5]`) linking directly to the active task.
96
+ - **Embedded Webview Kanban Board**: Visual drag-and-drop Kanban board running natively inside an editor tab.
97
+
98
+ ---
99
+
100
+ ## The Core Workflow: Questions & Answers
101
+
102
+ Dirban maps directly to the questions developers and AI agents ask when executing work:
103
+
104
+ | Question You're Asking | Command | What Dirban Does |
105
+ | :--- | :--- | :--- |
106
+ | **"Where do things stand overall?"** | `dirban board` | Opens the interactive Kanban TUI (or `--static` for stdout) |
107
+ | **"How do I queue up work from the backlog?"** | `dirban ready <id>` | Moves unblocked tasks from `backlog/` into `01-todo/` |
108
+ | **"What should I focus on next?"** | `dirban next` | Recommends the highest-priority unblocked task in `01-todo/` |
109
+ | **"How do I begin working on it?"** | `dirban start <id>` | Moves task to `02-doing/` and creates a matching Git branch or worktree |
110
+ | **"What am I currently doing?"** | `dirban current` | Displays the active task, branch alignment, and criteria checklist |
111
+ | **"How do I complete my task?"** | `dirban done` | Moves to `03-done/`, squashes/merges the branch, and cleans up |
112
+
113
+ > **Want to know what happens under the hood?**
114
+ > Every command maps to simple POSIX filesystem commands (`mv`, `ls`, `cat`) and standard Git operations. See **[Forget About Dirban: Zero Lock-In & Plain Shell Equivalents](docs/concepts/forget-about-dirban.md)** for the complete command-by-command mapping.
115
+
116
+ ---
117
+
118
+ ## Deep-Dive Documentation
119
+
120
+ - 📋 **[Technical Specification & Standards (`spec.md`)](spec.md)**: Google OKF schemas, trunk-based branching, state precedence, and engine invariants.
121
+ - 📖 **[Why Dirban: Philosophy & Comparative Positioning](docs/concepts/why-dirban.md)**: Fast agent cycles (minutes) vs cloud tools (weeks), comparison matrix, and trade-offs.
122
+ - ⚙️ **[Configuration Guide (`.dirban.json`)](docs/concepts/configuration.md)**: Custom columns, workflows, semantic priorities, and Git worktrees.
123
+ - 💻 **[CLI & TUI Reference Manual](docs/cli-reference.md)**: Full command reference, options, and keyboard shortcuts.
124
+ - 🌿 **[Trunk-Based Git Workflow](docs/concepts/git-workflow.md)**: Git branch automation, worktree isolation, and squash merging.
125
+ - 🐚 **[Forget About Dirban](docs/concepts/forget-about-dirban.md)**: Complete mapping of every Dirban command to raw POSIX shell (`ls`, `mv`, `cat`).
126
+
127
+ ---
128
+
129
+ ## License
130
+
131
+ [MIT](LICENSE)