@frehilm/ordna-cli 0.1.4 → 0.2.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/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +14 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/assign.d.ts.map +1 -1
- package/dist/commands/assign.js +3 -2
- package/dist/commands/assign.js.map +1 -1
- package/dist/commands/commit.d.ts.map +1 -1
- package/dist/commands/commit.js +3 -2
- package/dist/commands/commit.js.map +1 -1
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +8 -3
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/init.d.ts +15 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +67 -17
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/list.d.ts.map +1 -1
- package/dist/commands/list.js +3 -2
- package/dist/commands/list.js.map +1 -1
- package/dist/commands/move.d.ts.map +1 -1
- package/dist/commands/move.js +3 -2
- package/dist/commands/move.js.map +1 -1
- package/dist/commands/show.d.ts.map +1 -1
- package/dist/commands/show.js +3 -2
- package/dist/commands/show.js.map +1 -1
- package/dist/lib/ensure-context.d.ts +19 -0
- package/dist/lib/ensure-context.d.ts.map +1 -0
- package/dist/lib/ensure-context.js +39 -0
- package/dist/lib/ensure-context.js.map +1 -0
- package/dist/lib/prompt-mode.d.ts +12 -0
- package/dist/lib/prompt-mode.d.ts.map +1 -0
- package/dist/lib/prompt-mode.js +43 -0
- package/dist/lib/prompt-mode.js.map +1 -0
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/App.js +59 -4
- package/dist/tui/App.js.map +1 -1
- package/dist/tui/LineInput.d.ts +26 -0
- package/dist/tui/LineInput.d.ts.map +1 -0
- package/dist/tui/LineInput.js +114 -0
- package/dist/tui/LineInput.js.map +1 -0
- package/dist/tui/SetupModal.d.ts +14 -0
- package/dist/tui/SetupModal.d.ts.map +1 -0
- package/dist/tui/SetupModal.js +67 -0
- package/dist/tui/SetupModal.js.map +1 -0
- package/dist/tui/Sidebar.d.ts +1 -1
- package/dist/tui/Sidebar.d.ts.map +1 -1
- package/dist/tui/Sidebar.js +20 -2
- package/dist/tui/Sidebar.js.map +1 -1
- package/dist/tui/TaskDetail.d.ts.map +1 -1
- package/dist/tui/TaskDetail.js +1 -1
- package/dist/tui/TaskDetail.js.map +1 -1
- package/dist/tui/TaskEditor.d.ts.map +1 -1
- package/dist/tui/TaskEditor.js +96 -28
- package/dist/tui/TaskEditor.js.map +1 -1
- package/dist/tui/TextPrompt.d.ts.map +1 -1
- package/dist/tui/TextPrompt.js +2 -2
- package/dist/tui/TextPrompt.js.map +1 -1
- package/dist/tui/hooks.d.ts +17 -0
- package/dist/tui/hooks.d.ts.map +1 -1
- package/dist/tui/hooks.js +53 -1
- package/dist/tui/hooks.js.map +1 -1
- package/dist/tui/index.d.ts.map +1 -1
- package/dist/tui/index.js +38 -3
- package/dist/tui/index.js.map +1 -1
- package/package.json +3 -3
- package/templates/AGENTS.md +25 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frehilm/ordna-cli",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "The `ordna` CLI and Ink-based Kanban TUI for Ordna. Re-exports the core API.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "FreHilm <1584617+FreHilm@users.noreply.github.com>",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"ink": "^5.1.1",
|
|
41
41
|
"ink-text-input": "^6.0.0",
|
|
42
42
|
"react": "^18.3.1",
|
|
43
|
-
"@frehilm/ordna-
|
|
44
|
-
"@frehilm/ordna-
|
|
43
|
+
"@frehilm/ordna-core": "^0.2.1",
|
|
44
|
+
"@frehilm/ordna-web": "^0.2.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/node": "^22.10.5",
|
package/templates/AGENTS.md
CHANGED
|
@@ -160,6 +160,31 @@ webPort: 7420 # default port for `ordna web`
|
|
|
160
160
|
- `statuses` defines the columns 1:1, in order. The first status is the
|
|
161
161
|
default for newly-created tasks unless `--status` is passed.
|
|
162
162
|
|
|
163
|
+
### Storage mode (important for agents)
|
|
164
|
+
|
|
165
|
+
The config may set `storage:` to one of three values. **Check this before
|
|
166
|
+
assuming you can read or write `tasks/*.md`:**
|
|
167
|
+
|
|
168
|
+
- **`storage: file`** (default) — everything documented above applies. Tasks
|
|
169
|
+
are markdown files in `tasksDir`; you can `cat`, `grep`, and edit them
|
|
170
|
+
directly. This is what most projects use.
|
|
171
|
+
- **`storage: hybrid`** — tasks are still files in `tasksDir`, AND a git
|
|
172
|
+
ref (`refs/ordna/state`) holds a shared next-id allocator + audit log.
|
|
173
|
+
Read/write the files normally; ID allocation goes through the ref under
|
|
174
|
+
the hood (no agent action needed). You can still `cat` and `grep`.
|
|
175
|
+
- **`storage: namespace`** — tasks live as **git blobs** at
|
|
176
|
+
`refs/ordna/tasks/<id>`. **There are no task files on disk.** `cat
|
|
177
|
+
tasks/T-001.md` will fail. Use the CLI (`ordna show T-001`, `ordna
|
|
178
|
+
list`, `ordna create`, etc.) for everything — direct file access is
|
|
179
|
+
not possible.
|
|
180
|
+
|
|
181
|
+
When in doubt, run `ordna list` and inspect the output rather than
|
|
182
|
+
walking `tasks/` directly. If the user hasn't picked a mode yet, the
|
|
183
|
+
first CLI invocation auto-detects (existing tasks → file; existing refs
|
|
184
|
+
→ the matching mode) or prompts them on the TUI / web. Agents typically
|
|
185
|
+
hit this through the CLI's non-interactive error message ("set
|
|
186
|
+
`ORDNA_STORAGE=file|hybrid|namespace`").
|
|
187
|
+
|
|
163
188
|
---
|
|
164
189
|
|
|
165
190
|
## 4. The `ordna` CLI
|