@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.
Files changed (66) hide show
  1. package/dist/cli.d.ts.map +1 -1
  2. package/dist/cli.js +14 -1
  3. package/dist/cli.js.map +1 -1
  4. package/dist/commands/assign.d.ts.map +1 -1
  5. package/dist/commands/assign.js +3 -2
  6. package/dist/commands/assign.js.map +1 -1
  7. package/dist/commands/commit.d.ts.map +1 -1
  8. package/dist/commands/commit.js +3 -2
  9. package/dist/commands/commit.js.map +1 -1
  10. package/dist/commands/create.d.ts.map +1 -1
  11. package/dist/commands/create.js +8 -3
  12. package/dist/commands/create.js.map +1 -1
  13. package/dist/commands/init.d.ts +15 -1
  14. package/dist/commands/init.d.ts.map +1 -1
  15. package/dist/commands/init.js +67 -17
  16. package/dist/commands/init.js.map +1 -1
  17. package/dist/commands/list.d.ts.map +1 -1
  18. package/dist/commands/list.js +3 -2
  19. package/dist/commands/list.js.map +1 -1
  20. package/dist/commands/move.d.ts.map +1 -1
  21. package/dist/commands/move.js +3 -2
  22. package/dist/commands/move.js.map +1 -1
  23. package/dist/commands/show.d.ts.map +1 -1
  24. package/dist/commands/show.js +3 -2
  25. package/dist/commands/show.js.map +1 -1
  26. package/dist/lib/ensure-context.d.ts +19 -0
  27. package/dist/lib/ensure-context.d.ts.map +1 -0
  28. package/dist/lib/ensure-context.js +39 -0
  29. package/dist/lib/ensure-context.js.map +1 -0
  30. package/dist/lib/prompt-mode.d.ts +12 -0
  31. package/dist/lib/prompt-mode.d.ts.map +1 -0
  32. package/dist/lib/prompt-mode.js +43 -0
  33. package/dist/lib/prompt-mode.js.map +1 -0
  34. package/dist/tui/App.d.ts.map +1 -1
  35. package/dist/tui/App.js +59 -4
  36. package/dist/tui/App.js.map +1 -1
  37. package/dist/tui/LineInput.d.ts +26 -0
  38. package/dist/tui/LineInput.d.ts.map +1 -0
  39. package/dist/tui/LineInput.js +114 -0
  40. package/dist/tui/LineInput.js.map +1 -0
  41. package/dist/tui/SetupModal.d.ts +14 -0
  42. package/dist/tui/SetupModal.d.ts.map +1 -0
  43. package/dist/tui/SetupModal.js +67 -0
  44. package/dist/tui/SetupModal.js.map +1 -0
  45. package/dist/tui/Sidebar.d.ts +1 -1
  46. package/dist/tui/Sidebar.d.ts.map +1 -1
  47. package/dist/tui/Sidebar.js +20 -2
  48. package/dist/tui/Sidebar.js.map +1 -1
  49. package/dist/tui/TaskDetail.d.ts.map +1 -1
  50. package/dist/tui/TaskDetail.js +1 -1
  51. package/dist/tui/TaskDetail.js.map +1 -1
  52. package/dist/tui/TaskEditor.d.ts.map +1 -1
  53. package/dist/tui/TaskEditor.js +96 -28
  54. package/dist/tui/TaskEditor.js.map +1 -1
  55. package/dist/tui/TextPrompt.d.ts.map +1 -1
  56. package/dist/tui/TextPrompt.js +2 -2
  57. package/dist/tui/TextPrompt.js.map +1 -1
  58. package/dist/tui/hooks.d.ts +17 -0
  59. package/dist/tui/hooks.d.ts.map +1 -1
  60. package/dist/tui/hooks.js +53 -1
  61. package/dist/tui/hooks.js.map +1 -1
  62. package/dist/tui/index.d.ts.map +1 -1
  63. package/dist/tui/index.js +38 -3
  64. package/dist/tui/index.js.map +1 -1
  65. package/package.json +3 -3
  66. 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.4",
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-web": "^0.1.4",
44
- "@frehilm/ordna-core": "^0.1.4"
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",
@@ -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