@hasna/todos 0.11.44 → 0.11.45
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/README.md +573 -11
- package/dist/cli/commands/agent-reliability-commands.d.ts +3 -0
- package/dist/cli/commands/agent-reliability-commands.d.ts.map +1 -0
- package/dist/cli/commands/audit-ledger-commands.d.ts +3 -0
- package/dist/cli/commands/audit-ledger-commands.d.ts.map +1 -0
- package/dist/cli/commands/capacity-commands.d.ts +3 -0
- package/dist/cli/commands/capacity-commands.d.ts.map +1 -0
- package/dist/cli/commands/config-serve-commands.d.ts.map +1 -1
- package/dist/cli/commands/knowledge-commands.d.ts +3 -0
- package/dist/cli/commands/knowledge-commands.d.ts.map +1 -0
- package/dist/cli/commands/local-snapshot-commands.d.ts +3 -0
- package/dist/cli/commands/local-snapshot-commands.d.ts.map +1 -0
- package/dist/cli/commands/machines.d.ts.map +1 -1
- package/dist/cli/commands/mcp-hooks-commands.d.ts.map +1 -1
- package/dist/cli/commands/onboarding-commands.d.ts +3 -0
- package/dist/cli/commands/onboarding-commands.d.ts.map +1 -0
- package/dist/cli/commands/project-commands.d.ts.map +1 -1
- package/dist/cli/commands/query-commands.d.ts.map +1 -1
- package/dist/cli/commands/release-compatibility-commands.d.ts +3 -0
- package/dist/cli/commands/release-compatibility-commands.d.ts.map +1 -0
- package/dist/cli/commands/retrospective-commands.d.ts +3 -0
- package/dist/cli/commands/retrospective-commands.d.ts.map +1 -0
- package/dist/cli/commands/review-queue-commands.d.ts +3 -0
- package/dist/cli/commands/review-queue-commands.d.ts.map +1 -0
- package/dist/cli/commands/risk-commands.d.ts +3 -0
- package/dist/cli/commands/risk-commands.d.ts.map +1 -0
- package/dist/cli/commands/roadmap-commands.d.ts +3 -0
- package/dist/cli/commands/roadmap-commands.d.ts.map +1 -0
- package/dist/cli/commands/sdk-fixture-commands.d.ts +3 -0
- package/dist/cli/commands/sdk-fixture-commands.d.ts.map +1 -0
- package/dist/cli/commands/task-commands.d.ts.map +1 -1
- package/dist/cli/index.js +37378 -20976
- package/dist/cli-mcp-parity.d.ts +1 -1
- package/dist/cli-mcp-parity.d.ts.map +1 -1
- package/dist/contracts.d.ts +19 -0
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +10136 -685
- package/dist/db/agent-metrics.d.ts +101 -0
- package/dist/db/agent-metrics.d.ts.map +1 -1
- package/dist/db/boards.d.ts +56 -0
- package/dist/db/boards.d.ts.map +1 -0
- package/dist/db/calendar.d.ts +52 -0
- package/dist/db/calendar.d.ts.map +1 -0
- package/dist/db/comments.d.ts.map +1 -1
- package/dist/db/handoffs.d.ts +25 -0
- package/dist/db/handoffs.d.ts.map +1 -1
- package/dist/db/machines.d.ts +19 -6
- package/dist/db/machines.d.ts.map +1 -1
- package/dist/db/migrations.d.ts.map +1 -1
- package/dist/db/project-knowledge.d.ts +88 -0
- package/dist/db/project-knowledge.d.ts.map +1 -0
- package/dist/db/project-risks.d.ts +139 -0
- package/dist/db/project-risks.d.ts.map +1 -0
- package/dist/db/retrospectives.d.ts +98 -0
- package/dist/db/retrospectives.d.ts.map +1 -0
- package/dist/db/schema.d.ts.map +1 -1
- package/dist/db/task-crud.d.ts.map +1 -1
- package/dist/db/task-relations.d.ts +69 -9
- package/dist/db/task-relations.d.ts.map +1 -1
- package/dist/db/tasks.d.ts +6 -2
- package/dist/db/tasks.d.ts.map +1 -1
- package/dist/index.d.ts +60 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19879 -9586
- package/dist/json-contracts.d.ts.map +1 -1
- package/dist/lib/agent-replay-simulator.d.ts +66 -0
- package/dist/lib/agent-replay-simulator.d.ts.map +1 -0
- package/dist/lib/audit-ledger.d.ts +59 -0
- package/dist/lib/audit-ledger.d.ts.map +1 -0
- package/dist/lib/branch-work-plans.d.ts +46 -0
- package/dist/lib/branch-work-plans.d.ts.map +1 -0
- package/dist/lib/capacity-forecasts.d.ts +70 -0
- package/dist/lib/capacity-forecasts.d.ts.map +1 -0
- package/dist/lib/config.d.ts +179 -0
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/context-packs.d.ts +26 -3
- package/dist/lib/context-packs.d.ts.map +1 -1
- package/dist/lib/event-hooks.d.ts +1 -1
- package/dist/lib/event-hooks.d.ts.map +1 -1
- package/dist/lib/external-issue-importers.d.ts +60 -0
- package/dist/lib/external-issue-importers.d.ts.map +1 -0
- package/dist/lib/extract.d.ts +57 -0
- package/dist/lib/extract.d.ts.map +1 -1
- package/dist/lib/local-bridge.d.ts +3 -1
- package/dist/lib/local-bridge.d.ts.map +1 -1
- package/dist/lib/local-extensions.d.ts +75 -0
- package/dist/lib/local-extensions.d.ts.map +1 -0
- package/dist/lib/local-notifications.d.ts +55 -0
- package/dist/lib/local-notifications.d.ts.map +1 -0
- package/dist/lib/local-snapshots.d.ts +66 -0
- package/dist/lib/local-snapshots.d.ts.map +1 -0
- package/dist/lib/mention-resolver.d.ts +43 -0
- package/dist/lib/mention-resolver.d.ts.map +1 -0
- package/dist/lib/natural-language-intake.d.ts +56 -0
- package/dist/lib/natural-language-intake.d.ts.map +1 -0
- package/dist/lib/onboarding-fixtures.d.ts +31 -0
- package/dist/lib/onboarding-fixtures.d.ts.map +1 -0
- package/dist/lib/public-release-gate.d.ts +7 -0
- package/dist/lib/public-release-gate.d.ts.map +1 -1
- package/dist/lib/redaction.d.ts +9 -0
- package/dist/lib/redaction.d.ts.map +1 -1
- package/dist/lib/release-compatibility.d.ts +59 -0
- package/dist/lib/release-compatibility.d.ts.map +1 -0
- package/dist/lib/release-notes.d.ts +81 -0
- package/dist/lib/release-notes.d.ts.map +1 -0
- package/dist/lib/retention-cleanup.d.ts +63 -0
- package/dist/lib/retention-cleanup.d.ts.map +1 -0
- package/dist/lib/review-queues.d.ts +98 -0
- package/dist/lib/review-queues.d.ts.map +1 -0
- package/dist/lib/roadmaps.d.ts +133 -0
- package/dist/lib/roadmaps.d.ts.map +1 -0
- package/dist/lib/sdk-integration-fixtures.d.ts +65 -0
- package/dist/lib/sdk-integration-fixtures.d.ts.map +1 -0
- package/dist/lib/terminal-notifications.d.ts +53 -0
- package/dist/lib/terminal-notifications.d.ts.map +1 -0
- package/dist/lib/todos-md.d.ts.map +1 -1
- package/dist/lib/workflow-prompts.d.ts +38 -0
- package/dist/lib/workflow-prompts.d.ts.map +1 -0
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +20947 -9892
- package/dist/mcp/token-utils.d.ts.map +1 -1
- package/dist/mcp/tools/code-tools.d.ts.map +1 -1
- package/dist/mcp/tools/machines.d.ts.map +1 -1
- package/dist/mcp/tools/task-adv-tools.d.ts.map +1 -1
- package/dist/mcp/tools/task-auto-tools.d.ts.map +1 -1
- package/dist/mcp/tools/task-crud.d.ts.map +1 -1
- package/dist/mcp/tools/task-meta-tools.d.ts.map +1 -1
- package/dist/mcp/tools/task-project-tools.d.ts.map +1 -1
- package/dist/mcp/tools/task-rel-tools.d.ts.map +1 -1
- package/dist/mcp/tools/task-resources.d.ts.map +1 -1
- package/dist/mcp/tools/workflow-prompts.d.ts +3 -0
- package/dist/mcp/tools/workflow-prompts.d.ts.map +1 -0
- package/dist/mcp.js +95 -2
- package/dist/registry.js +14455 -6049
- package/dist/release-provenance.json +3 -3
- package/dist/server/index.js +493 -123
- package/dist/storage.js +2353 -139
- package/dist/types/index.d.ts +214 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,6 +33,25 @@ MCP clients can use `bootstrap_project` for the same local-only workflow. The
|
|
|
33
33
|
command is idempotent, so running it again refreshes machine-local paths without
|
|
34
34
|
duplicating projects, task lists, or source records.
|
|
35
35
|
|
|
36
|
+
## Local Machine Topology
|
|
37
|
+
|
|
38
|
+
Machine registry state stays in local SQLite. Machines can record identity,
|
|
39
|
+
last-seen heartbeats, workspace paths, git roots, and user-provided Tailscale
|
|
40
|
+
or LAN addresses without probing the network:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
todos machines register spark01 --ssh hasna@spark01 --tailscale-name spark01.tailnet --tailscale-ip 100.64.0.10 --lan-address 192.168.8.10 --workspace ~/workspace
|
|
44
|
+
todos machines heartbeat spark01 --workspace ~/workspace
|
|
45
|
+
todos machines topology --json
|
|
46
|
+
todos projects-path set <project-id> ~/workspace/my-project
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
`todos machines topology` reports stale machines, missing local path overrides,
|
|
50
|
+
missing local paths, and projects whose machine-local paths differ across
|
|
51
|
+
registered machines. MCP clients can use `machines_register`,
|
|
52
|
+
`machines_heartbeat`, `machines_topology`, and `machines_list` for the same
|
|
53
|
+
offline diagnostics.
|
|
54
|
+
|
|
36
55
|
## Local Workspace Trust
|
|
37
56
|
|
|
38
57
|
Workspace trust profiles live in `~/.hasna/todos/config.json` and keep agent
|
|
@@ -53,6 +72,28 @@ MCP clients can use `set_workspace_trust`, `get_workspace_trust`,
|
|
|
53
72
|
return deterministic JSON showing whether an action is allowed, why it needs a
|
|
54
73
|
prompt, and which environment keys should be redacted.
|
|
55
74
|
|
|
75
|
+
Secret safety uses the same local config. Add project-specific regexes and
|
|
76
|
+
metadata keys with `todos redaction add --pattern <regex> --key <name>`, then
|
|
77
|
+
scan text or files with `todos redaction scan` without printing matched values.
|
|
78
|
+
Comments, local run evidence, and bridge exports are redacted before storage or
|
|
79
|
+
sharing. MCP clients can use `get_secret_safety`, `set_secret_safety`, and
|
|
80
|
+
`scan_secret_text`.
|
|
81
|
+
|
|
82
|
+
Retention cleanup is also local and dry-run-first. Use it to prune old comments,
|
|
83
|
+
run ledgers, verification evidence, and expired stored artifact files by age,
|
|
84
|
+
project, task status, and run status. Reports return counts, IDs, and
|
|
85
|
+
content-addressed artifact paths only; they do not include raw comments,
|
|
86
|
+
commands, output summaries, artifact source paths, or secret-like values.
|
|
87
|
+
Destructive cleanup requires the exact confirmation string shown by the preview:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
todos retention cleanup --older-than-days 30 --project <project-id> --task-status completed --json
|
|
91
|
+
todos retention cleanup --older-than-days 30 --project <project-id> --task-status completed --apply --confirm delete-local-retention-data --json
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
MCP clients can use `preview_retention_cleanup` and
|
|
95
|
+
`apply_retention_cleanup` for the same offline workflow.
|
|
96
|
+
|
|
56
97
|
## Local Runner Sandboxes
|
|
57
98
|
|
|
58
99
|
Runner sandbox profiles also live in local config. They declare the commands a
|
|
@@ -73,6 +114,74 @@ MCP clients can use `set_runner_sandbox_profile`,
|
|
|
73
114
|
are local-only and compose with workspace trust checks, so command and write
|
|
74
115
|
decisions stay auditable before an agent records run evidence.
|
|
75
116
|
|
|
117
|
+
## Local Project Knowledge
|
|
118
|
+
|
|
119
|
+
Project knowledge records keep agent decisions, architecture notes, tradeoffs,
|
|
120
|
+
and task-linked context snapshots in local SQLite. They are searchable,
|
|
121
|
+
exportable, redacted on output, and available to MCP clients without hosted
|
|
122
|
+
services:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
todos knowledge add decision "Use local SQLite" --decision "Keep OSS knowledge local" --rationale "Agents need offline project memory" --task <task-id> --tag architecture --json
|
|
126
|
+
todos knowledge snapshot --summary "Parser fix is ready for verification" --task <task-id> --agent codex --file src/parser.ts --json
|
|
127
|
+
todos knowledge search "offline project memory" --json
|
|
128
|
+
todos knowledge export --format markdown
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
MCP clients can use `create_knowledge_record`, `create_knowledge_snapshot`,
|
|
132
|
+
`list_knowledge_records`, `search_knowledge_records`, and
|
|
133
|
+
`export_knowledge_records`. The MCP server also publishes `todos://knowledge`
|
|
134
|
+
and `todos://knowledge/decisions` resources for agent context refreshes.
|
|
135
|
+
|
|
136
|
+
## Local Extension Registry
|
|
137
|
+
|
|
138
|
+
Extensions are installed from local manifests, directories with
|
|
139
|
+
`todos.extension.json`, or offline JSON bundles. The registry validates the
|
|
140
|
+
manifest shape, checks `@hasna/todos` compatibility ranges, records requested
|
|
141
|
+
permissions, runs CLI/MCP compatibility checks, dry-runs declared commands
|
|
142
|
+
through the local runner sandbox, verifies optional source checksums or detached
|
|
143
|
+
signatures, and stores trust state in local config only:
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
todos extensions inspect ./todos.extension.json --json
|
|
147
|
+
todos extensions compat ./todos.extension.json --json
|
|
148
|
+
todos extensions install ./todos.extension.json --checksum sha256:... --trust --json
|
|
149
|
+
todos extensions verify ./bundle.todos-extension.json --signature <signature> --public-key "$PUBLIC_KEY"
|
|
150
|
+
todos extensions list
|
|
151
|
+
todos extensions remove my-extension
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
Unsigned extensions are allowed but installed as local records with warnings.
|
|
155
|
+
Without `--trust`, installs remain in `needs_review` so agents can discover
|
|
156
|
+
custom commands, MCP tools, hooks, and permissions without treating them as
|
|
157
|
+
approved. MCP clients can use `inspect_local_extension`,
|
|
158
|
+
`test_local_extension_compatibility`, `install_local_extension`,
|
|
159
|
+
`list_local_extensions`, and `remove_local_extension` for the same offline
|
|
160
|
+
workflow.
|
|
161
|
+
|
|
162
|
+
## Local Workflow Prompts
|
|
163
|
+
|
|
164
|
+
The package includes bundled MCP prompts for common agent workflows:
|
|
165
|
+
`goal_planning`, `task_claiming`, `review`, `verification`, `handoff`,
|
|
166
|
+
`release_prep`, `import_triage`, and `incident_response`. They are static,
|
|
167
|
+
local-only prompt resources that can be listed or rendered without a model call:
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
todos workflows list
|
|
171
|
+
todos workflows show goal_planning --objective "Ship release" --task 1234abcd --json
|
|
172
|
+
todos workflows export --format markdown
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
MCP clients can discover the same catalog at `todos://workflow-prompts` and call
|
|
176
|
+
the matching prompt by ID. Prompt output is deterministic and is intended for
|
|
177
|
+
Codex, Claude Code, Takumi, and other agent-native clients that need reusable
|
|
178
|
+
local guidance for planning, claiming, review, verification, handoff, release,
|
|
179
|
+
triage, and incident workflows.
|
|
180
|
+
|
|
181
|
+
Agent setup recipes for MCP registration, `/goal` planning, task
|
|
182
|
+
claim/update/complete loops, evidence comments, and no-cloud verification live
|
|
183
|
+
in [docs/agent-adapters.md](docs/agent-adapters.md).
|
|
184
|
+
|
|
76
185
|
## Local Policy Packs
|
|
77
186
|
|
|
78
187
|
Policy packs are project-local done gates for agents. They validate task status,
|
|
@@ -99,6 +208,32 @@ MCP clients can use `set_policy_pack`, `list_policy_packs`,
|
|
|
99
208
|
Validation is a dry local read of recorded task evidence; it never calls a
|
|
100
209
|
hosted enforcement service.
|
|
101
210
|
|
|
211
|
+
## Local Source TODO Index
|
|
212
|
+
|
|
213
|
+
Source extraction scans local code for `TODO`, `FIXME`, `HACK`, `BUG`, `XXX`,
|
|
214
|
+
and `NOTE` comments, respects `.gitignore` plus explicit excludes, records
|
|
215
|
+
source files, line anchors, nearby symbols, and stable dedupe fingerprints, and
|
|
216
|
+
can run as a finite local watcher:
|
|
217
|
+
|
|
218
|
+
```bash
|
|
219
|
+
todos extract . --dry-run --index --json
|
|
220
|
+
todos extract . --exclude fixtures/** --tags tech-debt
|
|
221
|
+
todos extract-watch . --dry-run --max-runs 1 --json
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
Created tasks are tagged with `extracted` and linked back to the source file.
|
|
225
|
+
MCP clients can call `extract_todos` and `watch_source_todos` for the same
|
|
226
|
+
offline workflow; no hosted code search, cloud sync, or telemetry is used.
|
|
227
|
+
|
|
228
|
+
## Local Editor Integrations
|
|
229
|
+
|
|
230
|
+
Editor recipes live in `docs/editor-integrations.md` and
|
|
231
|
+
`examples/editor-integrations/`. They include VS Code task definitions,
|
|
232
|
+
JetBrains external tool recipes, Neovim Lua helpers, a shell statusline snippet,
|
|
233
|
+
and a Bun task picker. Every example uses only `todos` CLI JSON output or MCP
|
|
234
|
+
tool names, so editors can claim tasks, inspect local queues, build context
|
|
235
|
+
packs, and link source files without importing private modules or hosted code.
|
|
236
|
+
|
|
102
237
|
## Task Contracts and Reviews
|
|
103
238
|
|
|
104
239
|
Task contracts make acceptance criteria, required verification, expected
|
|
@@ -144,6 +279,50 @@ MCP clients can use `require_approval_gate`, `approve_approval_gate`,
|
|
|
144
279
|
`list_approval_gates`. Gate events are written to task audit history and, when
|
|
145
280
|
a run is linked, to the local run ledger.
|
|
146
281
|
|
|
282
|
+
## Local Review Queues
|
|
283
|
+
|
|
284
|
+
Review queues turn local task review into an explicit agent workflow: request a
|
|
285
|
+
review, route it to a queue, claim it, return it with changes, reopen it, or
|
|
286
|
+
approve it. Routing rules live in local config and can match tags, priorities,
|
|
287
|
+
and projects without hosted users, orgs, or cloud services:
|
|
288
|
+
|
|
289
|
+
```bash
|
|
290
|
+
todos reviews rules set security --queue security-review --reviewers reviewer --tags security --priorities high
|
|
291
|
+
todos reviews request <task-id> --requester codex --reason "security-sensitive change"
|
|
292
|
+
todos reviews claim <task-id> --reviewer reviewer
|
|
293
|
+
todos reviews return <task-id> --reviewer reviewer --changes "Add tests;Record verification"
|
|
294
|
+
todos reviews approve <task-id> --reviewer reviewer
|
|
295
|
+
todos reviews list --queue security-review --json
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
MCP clients can use `list_review_queue`, `request_review_queue`,
|
|
299
|
+
`claim_review_item`, `return_review_item`, `approve_review_item`,
|
|
300
|
+
`reopen_review_item`, `set_review_routing_rule`, `list_review_routing_rules`,
|
|
301
|
+
and `remove_review_routing_rule`. Queue transitions are written to audit
|
|
302
|
+
history and emitted to local event hooks as `review.requested`,
|
|
303
|
+
`review.claimed`, `review.returned`, `review.approved`, and `review.reopened`.
|
|
304
|
+
|
|
305
|
+
## Local Roadmaps
|
|
306
|
+
|
|
307
|
+
Roadmaps group local tasks, plans, runs, milestones, and release labels into a
|
|
308
|
+
portable planning view. They live in local config, summarize dependency
|
|
309
|
+
readiness from the task graph, and export deterministic JSON or Markdown
|
|
310
|
+
bundles:
|
|
311
|
+
|
|
312
|
+
```bash
|
|
313
|
+
todos roadmaps create "Public package launch" --release v1 --json
|
|
314
|
+
todos roadmaps milestones add <roadmap-id> "Docs and examples" --tasks <task-id> --due 2026-06-01 --release v1 --json
|
|
315
|
+
todos roadmaps releases set <roadmap-id> v1 --milestones <milestone-id> --release-version 1.0.0 --json
|
|
316
|
+
todos roadmaps show <roadmap-id> --format markdown
|
|
317
|
+
todos roadmaps export <roadmap-id> --out roadmap.json
|
|
318
|
+
todos roadmaps import roadmap.json --apply --json
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
MCP clients can use `create_roadmap`, `list_roadmaps`,
|
|
322
|
+
`get_roadmap_summary`, `update_roadmap`, `delete_roadmap`,
|
|
323
|
+
`create_milestone`, `update_milestone`, `delete_milestone`,
|
|
324
|
+
`set_release_group`, `export_roadmap`, and `import_roadmap`.
|
|
325
|
+
|
|
147
326
|
## Local Event Hooks
|
|
148
327
|
|
|
149
328
|
Event hooks are local subscriptions for task, plan, run, approval, import, and
|
|
@@ -162,6 +341,28 @@ MCP clients can use `set_local_event_hook`, `list_local_event_hooks`,
|
|
|
162
341
|
`test_local_event_hook`, and `remove_local_event_hook`. Hook delivery is
|
|
163
342
|
local-only; it does not call hosted webhooks or cloud automation services.
|
|
164
343
|
|
|
344
|
+
## Local Terminal Notifications
|
|
345
|
+
|
|
346
|
+
Terminal notification rules are local watch rules for agents that want concise
|
|
347
|
+
event signals in a shell, tmux pane, or editor terminal. Rules match task, run,
|
|
348
|
+
plan, approval, import, and export events by severity, agent, project, priority,
|
|
349
|
+
status, and payload text, then render deterministic line or JSON notifications:
|
|
350
|
+
|
|
351
|
+
```bash
|
|
352
|
+
todos terminal-notifications set blocked --event task.blocked,task.failed --min-severity warning --agent codex --priority high --contains deploy --bell
|
|
353
|
+
todos terminal-notifications set due --event task.due,task.sla_breached --min-severity warning --quiet-hours 22:00-07:00
|
|
354
|
+
todos notifications check --emit-hooks --terminal --quiet-hours 22:00-07:00 --json
|
|
355
|
+
todos terminal-notifications test blocked --event task.failed --payload '{"id":"demo","title":"Deploy failed","agent_id":"codex","priority":"high"}' --json
|
|
356
|
+
todos terminal-notifications list --json
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
MCP clients can use `set_terminal_notification_rule`,
|
|
360
|
+
`list_terminal_notification_rules`, `test_terminal_notification_rule`,
|
|
361
|
+
`evaluate_terminal_watch_rules`, `check_local_notifications`, and
|
|
362
|
+
`remove_terminal_notification_rule`. Notifications are evaluated from local
|
|
363
|
+
event payloads, can respect quiet hours, and do not require a desktop
|
|
364
|
+
notification daemon, hosted queue, or cloud webhook service.
|
|
365
|
+
|
|
165
366
|
## Local Encryption Profiles
|
|
166
367
|
|
|
167
368
|
Encryption profiles are optional local config entries for sensitive fields and
|
|
@@ -207,6 +408,24 @@ MCP clients can use `set_agent_run_adapter`, `queue_agent_run`,
|
|
|
207
408
|
`cancel_agent_run_dispatch`, and `retry_agent_run_dispatch`. These commands
|
|
208
409
|
launch only local processes and do not call hosted runners.
|
|
209
410
|
|
|
411
|
+
## Local Agent Replay Simulation
|
|
412
|
+
|
|
413
|
+
Replay simulation turns a recorded context pack or run fixture into a
|
|
414
|
+
deterministic dry-run snapshot without opening the project database or mutating
|
|
415
|
+
tasks. Use it to debug agent plans, verification commands, task transitions,
|
|
416
|
+
failures, touched files, artifacts, and approval decisions offline:
|
|
417
|
+
|
|
418
|
+
```bash
|
|
419
|
+
todos context-pack <task-id> --format json > replay.json
|
|
420
|
+
todos runs simulate replay.json --agent codex --scenario parser-failure --json
|
|
421
|
+
todos runs simulate replay.json --format markdown
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
MCP clients can use `simulate_agent_replay` with a fixture object and optional
|
|
425
|
+
`agent_id` or `scenario`. The simulator redacts fixture values before hashing
|
|
426
|
+
or rendering, reports `mutates_database: false`, and emits stable command,
|
|
427
|
+
approval, failure, file, artifact, and warning summaries for local debugging.
|
|
428
|
+
|
|
210
429
|
## Local Dependency Workflows
|
|
211
430
|
|
|
212
431
|
Dependencies are stored in the local SQLite database and never require hosted
|
|
@@ -225,6 +444,56 @@ The same workflow is available to MCP clients through
|
|
|
225
444
|
blocked pending tasks, and startup schema repair recreates the local dependency
|
|
226
445
|
table for older databases.
|
|
227
446
|
|
|
447
|
+
## Local Risk Register And Health
|
|
448
|
+
|
|
449
|
+
Risks are stored in local SQLite and can be linked to projects, plans, or tasks
|
|
450
|
+
with an owner, mitigation, due date, severity, probability, tags, and metadata:
|
|
451
|
+
|
|
452
|
+
```bash
|
|
453
|
+
todos risks add "Release blocker" --plan 1234abcd --severity high --owner codex --mitigation "Ship fallback" --json
|
|
454
|
+
todos risks list --plan 1234abcd --json
|
|
455
|
+
todos risks score --plan 1234abcd --json
|
|
456
|
+
todos risks export --project my-project --json
|
|
457
|
+
```
|
|
458
|
+
|
|
459
|
+
Health reports score a plan or project from local evidence only: blocked tasks,
|
|
460
|
+
overdue open work, failed verification records, failed run ledgers, dependency
|
|
461
|
+
depth, and open risks. MCP clients get the same surface through `create_risk`,
|
|
462
|
+
`list_risks`, `update_risk`, `close_risk`, `score_plan_health`,
|
|
463
|
+
`score_project_health`, and `export_risk_register`.
|
|
464
|
+
|
|
465
|
+
## Local Retrospectives
|
|
466
|
+
|
|
467
|
+
Retrospectives summarize a project or plan using local evidence: completed
|
|
468
|
+
plans, missed estimates, repeated blockers, failed verification records,
|
|
469
|
+
lessons learned, and suggested follow-up tasks.
|
|
470
|
+
|
|
471
|
+
```bash
|
|
472
|
+
todos retrospectives create --plan 1234abcd --json
|
|
473
|
+
todos retrospectives list --project my-project --json
|
|
474
|
+
todos retrospectives export --plan 1234abcd --format markdown
|
|
475
|
+
```
|
|
476
|
+
|
|
477
|
+
Use `--create-followups` to create the suggested follow-up tasks locally. MCP
|
|
478
|
+
clients get the same reports through `create_retrospective`,
|
|
479
|
+
`list_retrospectives`, and `export_retrospectives`.
|
|
480
|
+
|
|
481
|
+
## Local Agent Reliability Scorecards
|
|
482
|
+
|
|
483
|
+
Reliability scorecards summarize each agent from local evidence only: completed
|
|
484
|
+
and failed tasks, passed and failed verification records, failed run ledgers,
|
|
485
|
+
stale task/resource locks, retry history, and handoff quality.
|
|
486
|
+
|
|
487
|
+
```bash
|
|
488
|
+
todos reliability show codex --json
|
|
489
|
+
todos reliability list --project my-project --json
|
|
490
|
+
todos reliability export --format markdown
|
|
491
|
+
```
|
|
492
|
+
|
|
493
|
+
MCP clients get the same summaries through `get_agent_reliability_scorecard`,
|
|
494
|
+
`export_agent_reliability_scorecards`, and the `todos://agents/reliability`
|
|
495
|
+
resource.
|
|
496
|
+
|
|
228
497
|
## Local Agent Locking
|
|
229
498
|
|
|
230
499
|
Task claims and locks are local SQLite leases. Agents can claim the next ready
|
|
@@ -293,6 +562,56 @@ MCP clients get the same local data through `link_task_to_commit`,
|
|
|
293
562
|
`add_task_verification`, and `get_task_traceability`, so agents can explain
|
|
294
563
|
which task changed a commit, branch, PR, file, or verification command.
|
|
295
564
|
|
|
565
|
+
## Local Mention Resolution
|
|
566
|
+
|
|
567
|
+
Agents can resolve task references before adding them to descriptions, plans, or
|
|
568
|
+
handoffs. The resolver validates local files and line anchors, scans local source
|
|
569
|
+
declarations for symbols, checks local git commits, branches, and fetched pull
|
|
570
|
+
request refs, and resolves plans, runs, tasks, and agents from the local SQLite
|
|
571
|
+
state:
|
|
572
|
+
|
|
573
|
+
```bash
|
|
574
|
+
todos references resolve file:src/index.ts:12 symbol:createTask branch:main --json
|
|
575
|
+
todos refs resolve plan:release run:abc123 agent:marcus --workspace .
|
|
576
|
+
```
|
|
577
|
+
|
|
578
|
+
The JSON output includes canonical reference keys and validated backlinks such
|
|
579
|
+
as `file:src/index.ts:12`, `symbol:createTask@src/index.ts:40`, `commit:<sha>`,
|
|
580
|
+
`plan:<id>`, and `run:<id>`. MCP clients can call `resolve_mentions` for the
|
|
581
|
+
same local-only report; pull request refs are validated only when present in
|
|
582
|
+
local git refs, and the resolver never calls hosted code search.
|
|
583
|
+
|
|
584
|
+
## Local Branch-Safe Work Plans
|
|
585
|
+
|
|
586
|
+
Before an agent starts a branch, it can ask for a local branch work plan that
|
|
587
|
+
checks the task or plan scope, planned files, active file conflicts, local git
|
|
588
|
+
status, and suggested branch/traceability commands:
|
|
589
|
+
|
|
590
|
+
```bash
|
|
591
|
+
todos branch-plan 1234abcd --branch task/parser-fix --path src/parser.ts --json
|
|
592
|
+
todos branch-plan --plan <plan-id> --branch task/release-plan --no-git-status --json
|
|
593
|
+
```
|
|
594
|
+
|
|
595
|
+
MCP clients can call `create_branch_work_plan` with `task_id` or `plan_id`.
|
|
596
|
+
The result is local-only: it does not create a branch, fetch from a remote, or
|
|
597
|
+
contact hosted code review services. Agents can inspect `safe_to_start`,
|
|
598
|
+
`conflicts`, `reasons`, and `commands` before running any git operation.
|
|
599
|
+
|
|
600
|
+
## Local Release Notes
|
|
601
|
+
|
|
602
|
+
Generate changelogs from completed local tasks and their linked plans, commits,
|
|
603
|
+
verification records, breaking-change notes, and migration notes:
|
|
604
|
+
|
|
605
|
+
```bash
|
|
606
|
+
todos release-notes --project . --format markdown
|
|
607
|
+
todos release-notes --tag release --since 2026-01-01T00:00:00.000Z --json
|
|
608
|
+
```
|
|
609
|
+
|
|
610
|
+
Tasks can add release metadata through `metadata.breaking_change`,
|
|
611
|
+
`metadata.breaking_changes`, `metadata.migration_note`, or
|
|
612
|
+
`metadata.migration_notes`. MCP clients use `generate_release_notes` for the
|
|
613
|
+
same deterministic JSON or Markdown output without hosted release tooling.
|
|
614
|
+
|
|
296
615
|
## Local Verification Providers
|
|
297
616
|
|
|
298
617
|
Optional provider adapters let agents standardize local verification without a
|
|
@@ -327,13 +646,19 @@ todos handoff --unread-for claude --json
|
|
|
327
646
|
todos handoff --read <handoff-id> --json
|
|
328
647
|
todos handoff --ack <handoff-id> --agent claude --json
|
|
329
648
|
todos handoff --recover --agent codex --session codex-42 --json
|
|
649
|
+
todos handoff --export <handoff-id> --output handoff.json --json
|
|
650
|
+
todos handoff --import handoff.json --json
|
|
651
|
+
todos handoff --import handoff.json --apply --json
|
|
330
652
|
```
|
|
331
653
|
|
|
332
654
|
MCP clients can use `create_handoff`, `list_handoffs`, `read_handoff`,
|
|
333
|
-
`
|
|
334
|
-
`get_latest_handoff`. Recovery handoffs
|
|
335
|
-
links, and run evidence for the
|
|
336
|
-
continuation packet; no hosted queue
|
|
655
|
+
`export_handoff`, `import_handoff`, `acknowledge_handoff`,
|
|
656
|
+
`recover_stale_session_handoff`, and `get_latest_handoff`. Recovery handoffs
|
|
657
|
+
inspect local in-progress tasks, file links, and run evidence for the
|
|
658
|
+
agent/session and create a deterministic continuation packet; no hosted queue
|
|
659
|
+
or cloud service is involved. Handoff imports default to a dry-run preview;
|
|
660
|
+
`--apply` writes the local handoff and preserves per-agent acknowledgement
|
|
661
|
+
state.
|
|
337
662
|
|
|
338
663
|
## Local Run Ledger
|
|
339
664
|
|
|
@@ -360,6 +685,81 @@ metadata, redaction status, retention metadata, and metadata-only fallback when
|
|
|
360
685
|
the original path is unavailable. Use `--no-store` to record only artifact
|
|
361
686
|
metadata.
|
|
362
687
|
|
|
688
|
+
## Local Time Tracking
|
|
689
|
+
|
|
690
|
+
Manual time logs and focus sessions stay in the local SQLite database and roll
|
|
691
|
+
up into `task.actual_minutes` for planning and retrospectives:
|
|
692
|
+
|
|
693
|
+
```bash
|
|
694
|
+
todos time log <task-id> 25 --agent codex --notes "reviewed parser"
|
|
695
|
+
SESSION=$(todos time start <task-id> --agent codex --idle-after 30 --json | jq -r .id)
|
|
696
|
+
todos time pause "$SESSION"
|
|
697
|
+
todos time resume "$SESSION"
|
|
698
|
+
todos time stop "$SESSION" --notes "implemented and tested"
|
|
699
|
+
todos time report --include-open --json
|
|
700
|
+
```
|
|
701
|
+
|
|
702
|
+
Focus sessions can be linked to tasks, plans, or run ledgers. Stopping a
|
|
703
|
+
completed task-linked session writes a time log with the session id and run id,
|
|
704
|
+
then recalculates actual minutes from all local logs. `todos time idle` and the
|
|
705
|
+
`get_idle_focus_prompts` MCP tool report active sessions that exceeded their
|
|
706
|
+
local idle threshold; no desktop notification service or hosted telemetry is
|
|
707
|
+
required.
|
|
708
|
+
|
|
709
|
+
## Local Capacity Forecasts
|
|
710
|
+
|
|
711
|
+
Capacity profiles give agents a local way to forecast whether a project or plan
|
|
712
|
+
is realistic from task estimates, actual minutes, due dates, and available
|
|
713
|
+
minutes per day:
|
|
714
|
+
|
|
715
|
+
```bash
|
|
716
|
+
todos capacity set codex --minutes-per-day 240 --days 1,2,3,4,5 --json
|
|
717
|
+
todos capacity forecast --plan <plan-id> --agent codex --start-date 2026-06-01 --json
|
|
718
|
+
todos capacity forecast --project <project-id> --format markdown
|
|
719
|
+
todos capacity list --json
|
|
720
|
+
```
|
|
721
|
+
|
|
722
|
+
Forecasts report remaining estimated minutes, logged actual minutes, forecast
|
|
723
|
+
work days, projected completion date, missing estimates, overdue open tasks,
|
|
724
|
+
and risk flags. MCP clients use `set_capacity_profile`,
|
|
725
|
+
`list_capacity_profiles`, `remove_capacity_profile`, and
|
|
726
|
+
`get_planning_forecast`.
|
|
727
|
+
|
|
728
|
+
## Local Audit Ledger
|
|
729
|
+
|
|
730
|
+
Audit ledger checkpoints hash local evidence into a deterministic chain so an
|
|
731
|
+
agent can seal task, run, verification, approval, and handoff records and verify
|
|
732
|
+
later that the local evidence still matches:
|
|
733
|
+
|
|
734
|
+
```bash
|
|
735
|
+
todos audit-ledger show --task <task-id> --entries --json
|
|
736
|
+
todos audit-ledger seal release-checkpoint --task <task-id> --json
|
|
737
|
+
todos audit-ledger verify release-checkpoint --json
|
|
738
|
+
todos audit-ledger list --json
|
|
739
|
+
```
|
|
740
|
+
|
|
741
|
+
The ledger stores only local checkpoint metadata in config. It does not call a
|
|
742
|
+
hosted service and it does not claim to prevent local deletion; it detects
|
|
743
|
+
changes against a previously sealed root hash. MCP clients use
|
|
744
|
+
`get_audit_ledger`, `seal_audit_ledger`, `list_audit_ledger_checkpoints`, and
|
|
745
|
+
`verify_audit_ledger`.
|
|
746
|
+
|
|
747
|
+
## Release Compatibility
|
|
748
|
+
|
|
749
|
+
Release compatibility checks give agents a local dry-run report before publish
|
|
750
|
+
or update work. They verify the package stays `@hasna/todos`, public, pointed at
|
|
751
|
+
`hasna/todos`, export-stable, migration-compatible from recent local schema
|
|
752
|
+
levels, and ready for Bun global install smoke tests:
|
|
753
|
+
|
|
754
|
+
```bash
|
|
755
|
+
todos release-compat check --json
|
|
756
|
+
todos release-compat check --format markdown
|
|
757
|
+
```
|
|
758
|
+
|
|
759
|
+
The report also includes changelog surfaces and rollback commands. MCP clients
|
|
760
|
+
use `check_release_compatibility` for the same `release_compatibility_report`
|
|
761
|
+
JSON contract.
|
|
762
|
+
|
|
363
763
|
## Local Activity Timeline
|
|
364
764
|
|
|
365
765
|
The timeline command gives agents one ordered, redacted view of local comments,
|
|
@@ -377,6 +777,31 @@ local SQLite store and local bridge exports already include the underlying
|
|
|
377
777
|
comments, runs, run evidence, files, commits, and verification records needed to
|
|
378
778
|
rebuild the same timeline after import.
|
|
379
779
|
|
|
780
|
+
## Local Scheduling and SLA Escalation
|
|
781
|
+
|
|
782
|
+
Tasks can carry local due dates, recurrence rules, and SLA thresholds without a
|
|
783
|
+
hosted scheduler. Recurring tasks spawn their next local task from the previous
|
|
784
|
+
scheduled due date, preserving cadence even when completion happens late:
|
|
785
|
+
|
|
786
|
+
```bash
|
|
787
|
+
todos add "Weekly review" --due 2026-06-01 --recurrence "every week" --sla-minutes 120 --json
|
|
788
|
+
todos update <task-id> --due 2026-06-08 --recurrence "every monday" --sla 90 --json
|
|
789
|
+
todos overdue --json
|
|
790
|
+
todos sla --json
|
|
791
|
+
todos notifications check --due-within-minutes 60 --stale-minutes 30 --terminal --json
|
|
792
|
+
```
|
|
793
|
+
|
|
794
|
+
`todos overdue` returns unfinished tasks past `due_at`. `todos sla` returns
|
|
795
|
+
unfinished tasks that are past `due_at` or whose `sla_minutes` threshold has
|
|
796
|
+
elapsed from `started_at` when present, otherwise `created_at`. MCP clients use
|
|
797
|
+
`create_task` and `update_task` with `deadline`, `recurrence_rule`, and
|
|
798
|
+
`sla_minutes`, and can call `get_sla_breaches` for the same local escalation
|
|
799
|
+
view. `todos notifications check` turns due, due-soon, SLA, stale task,
|
|
800
|
+
completed run, and local reminder records into redacted local alerts; it can
|
|
801
|
+
emit configured file/socket/script/stdout event hooks, evaluate terminal watch
|
|
802
|
+
rules, and suppress delivery during quiet hours without contacting an external
|
|
803
|
+
notification service.
|
|
804
|
+
|
|
380
805
|
## Local Task Fields
|
|
381
806
|
|
|
382
807
|
Tasks can carry local labels, severity, owner, area, and custom metadata while
|
|
@@ -393,6 +818,24 @@ for existing filters, and the metadata is included in local bridge exports.
|
|
|
393
818
|
MCP clients use `get_task_fields`, `set_task_fields`, and
|
|
394
819
|
`query_tasks_by_fields` for the same local-only workflow.
|
|
395
820
|
|
|
821
|
+
## Local Calendar And ICS
|
|
822
|
+
|
|
823
|
+
Calendar events are derived from local tasks, SLA thresholds, run ledgers, and
|
|
824
|
+
authored local reminders, milestones, or work blocks. Exported ICS files are
|
|
825
|
+
deterministic and can be redacted before sharing:
|
|
826
|
+
|
|
827
|
+
```bash
|
|
828
|
+
todos calendar list --from 2026-06-01T00:00:00.000Z --json
|
|
829
|
+
todos calendar add "Release milestone" --kind milestone --start 2026-06-01T09:00:00.000Z --json
|
|
830
|
+
todos calendar export --redact --out todos.ics
|
|
831
|
+
todos calendar import team.ics --json
|
|
832
|
+
```
|
|
833
|
+
|
|
834
|
+
Recurring task rules are mapped into ICS `RRULE` values when possible, and task
|
|
835
|
+
SLA thresholds appear as local calendar events without any Google Calendar,
|
|
836
|
+
hosted API, or cloud sync dependency. MCP clients use `create_calendar_item`,
|
|
837
|
+
`list_calendar_events`, `export_calendar_ics`, and `import_calendar_ics`.
|
|
838
|
+
|
|
396
839
|
## Local Saved Search Views
|
|
397
840
|
|
|
398
841
|
Saved views are local SQLite records for repeatable task, project, plan, run,
|
|
@@ -413,6 +856,26 @@ preserve the filters without any hosted service. MCP clients use
|
|
|
413
856
|
`save_search_view`, `list_search_views`, `run_search_view`, and
|
|
414
857
|
`delete_search_view`.
|
|
415
858
|
|
|
859
|
+
## Local Kanban Boards
|
|
860
|
+
|
|
861
|
+
Boards are local SQLite records for task and plan workflow views. Lanes map to
|
|
862
|
+
workflow statuses, can carry WIP limits, and render blocked/ready badges for
|
|
863
|
+
agent planning:
|
|
864
|
+
|
|
865
|
+
```bash
|
|
866
|
+
todos board create local-flow --lane "Ready=pending" "Doing=in_progress:3" --json
|
|
867
|
+
todos board show local-flow
|
|
868
|
+
todos board tui local-flow --json
|
|
869
|
+
todos board move local-flow <task-id> --lane Doing --json
|
|
870
|
+
todos board export local-flow --json
|
|
871
|
+
```
|
|
872
|
+
|
|
873
|
+
Task boards render tasks; plan boards use `--scope plans` and render plans by
|
|
874
|
+
plan status. Board snapshots include terminal key bindings for keyboard/TUI
|
|
875
|
+
clients, but the state is still just local data and can be exported or imported
|
|
876
|
+
without a hosted web UI. MCP clients use `create_board`, `list_boards`,
|
|
877
|
+
`get_board_snapshot`, and `move_board_card`.
|
|
878
|
+
|
|
416
879
|
## Local Duplicate Detection
|
|
417
880
|
|
|
418
881
|
Agents can scan local tasks for likely duplicates from imported issue URLs,
|
|
@@ -441,11 +904,43 @@ traceability, and run-ledger evidence from the local SQLite database only:
|
|
|
441
904
|
todos context-pack <task-id> --profile codex --format markdown
|
|
442
905
|
todos context-pack <task-id> --profile claude --format json
|
|
443
906
|
todos context-pack <task-id> --profile takumi --run <run-id> --comments 12 --files 40
|
|
907
|
+
todos context-pack <task-id> --profile codex --token-budget 1800 --exclude runs --compact
|
|
444
908
|
```
|
|
445
909
|
|
|
446
910
|
MCP clients can call `build_agent_context_pack` with the same limits and choose
|
|
447
|
-
JSON or Markdown output. Long text and evidence
|
|
448
|
-
and stale or omitted local data is surfaced as
|
|
911
|
+
JSON, Markdown, compact JSON, or compact Markdown output. Long text and evidence
|
|
912
|
+
are redacted and size-limited, and stale or omitted local data is surfaced as
|
|
913
|
+
warnings in the pack.
|
|
914
|
+
|
|
915
|
+
Budget-aware context packing is local and deterministic. Use `--token-budget`
|
|
916
|
+
for an approximate character-based token budget, `--include` or `--exclude` to
|
|
917
|
+
shape sections, and `--summary-chars` to cap the redacted summaries generated
|
|
918
|
+
for omitted evidence. When the pack is too large, lower-priority evidence such
|
|
919
|
+
as runs, traceability, comments, files, dependencies, and plan context is
|
|
920
|
+
summarized in a stable `context_budget` block so agents still know what was left
|
|
921
|
+
out.
|
|
922
|
+
|
|
923
|
+
## Local External Issue Imports
|
|
924
|
+
|
|
925
|
+
Import issue records from pasted JSON, files, stdin, or explicit URLs without
|
|
926
|
+
depending on any hosted Hasna service. Imports default to a dry-run preview;
|
|
927
|
+
`--apply` creates local tasks, stores redacted source metadata, creates linked
|
|
928
|
+
inbox evidence, and skips existing tasks that already have the same source URL,
|
|
929
|
+
GitHub owner/repo/number, or external issue key:
|
|
930
|
+
|
|
931
|
+
```bash
|
|
932
|
+
todos issues import --file issues.json --provider github --json
|
|
933
|
+
todos issues import --file issues.json --provider github --apply --json
|
|
934
|
+
todos issues import --provider linear --apply < linear-export.json
|
|
935
|
+
todos issues import "Title: Fix parser\nURL: https://tracker.example/BUG-42" --apply --json
|
|
936
|
+
```
|
|
937
|
+
|
|
938
|
+
GitHub, Linear, Jira, and plain URL records are normalized into local task
|
|
939
|
+
metadata and tags. Network access is off unless `--allow-network` is passed; for
|
|
940
|
+
GitHub that explicitly shells out through the authenticated `gh` CLI, while
|
|
941
|
+
offline files and pasted exports work without tokens. MCP clients use
|
|
942
|
+
`import_external_issues` with the same dry-run, apply, inbox, and dedupe
|
|
943
|
+
controls.
|
|
449
944
|
|
|
450
945
|
## Local Inbox Intake
|
|
451
946
|
|
|
@@ -456,12 +951,76 @@ deduped inbox and create a linked task:
|
|
|
456
951
|
todos inbox add "bun test failed: parser regression" --source-type ci_log
|
|
457
952
|
todos inbox add --file /tmp/ci.log --source-name "local CI"
|
|
458
953
|
todos inbox add https://github.com/hasna/todos/issues/42 --source-url https://github.com/hasna/todos/issues/42
|
|
954
|
+
todos inbox parse "Add task fix parser priority high @codex #cli due tomorrow" --json
|
|
955
|
+
todos inbox parse --file plan-notes.txt --apply --json
|
|
459
956
|
todos inbox git --diff
|
|
460
957
|
todos inbox list
|
|
461
958
|
```
|
|
462
959
|
|
|
463
960
|
Inbox bodies and metadata are redacted before storage. Repeated input resolves
|
|
464
|
-
to the existing inbox item instead of creating duplicate tasks.
|
|
961
|
+
to the existing inbox item instead of creating duplicate tasks. Natural-language
|
|
962
|
+
intake parsing is deterministic and local-only; it defaults to a dry-run preview
|
|
963
|
+
and creates projects, plans, tasks, dependencies, and acceptance criteria only
|
|
964
|
+
with `--apply`.
|
|
965
|
+
|
|
966
|
+
## Bundled Onboarding Fixtures
|
|
967
|
+
|
|
968
|
+
The package ships deterministic local demo fixtures for first-run onboarding and
|
|
969
|
+
agent integration tests. The default `agent-project-demo` fixture shows the
|
|
970
|
+
simple flow used by the public demo: create a project, add todos, generate a
|
|
971
|
+
plan, run an agent, record command/artifact/verification evidence, review the
|
|
972
|
+
remaining task, and prove export/import with the local bridge bundle.
|
|
973
|
+
|
|
974
|
+
```bash
|
|
975
|
+
todos onboarding --json
|
|
976
|
+
todos onboarding --show agent-project-demo > agent-project-demo.bridge.json
|
|
977
|
+
todos onboarding --import agent-project-demo --json
|
|
978
|
+
todos onboarding --import agent-project-demo --apply
|
|
979
|
+
```
|
|
980
|
+
|
|
981
|
+
Fixtures are bundled with `@hasna/todos`, redacted, offline, and local-only.
|
|
982
|
+
Imports default to dry-run mode and use the same bridge importer as normal
|
|
983
|
+
exports, so CLI, MCP, and SDK consumers can test against the exact project,
|
|
984
|
+
tasks, plan, run ledger, evidence, saved view, and board records.
|
|
985
|
+
|
|
986
|
+
MCP clients can read `todos://onboarding/fixtures` or
|
|
987
|
+
`todos://onboarding/demo`, then use `list_onboarding_fixtures`,
|
|
988
|
+
`get_onboarding_fixture`, and `import_onboarding_fixture`.
|
|
989
|
+
|
|
990
|
+
## Local Agent Snapshots
|
|
991
|
+
|
|
992
|
+
Agents can refresh context through stable local snapshots for projects, tasks,
|
|
993
|
+
plans, runs, dependencies, activity events, and evidence. Snapshots are
|
|
994
|
+
redacted, deterministic, and include cursors plus fingerprints so MCP clients
|
|
995
|
+
can poll for changes without a hosted event stream.
|
|
996
|
+
|
|
997
|
+
```bash
|
|
998
|
+
todos snapshots --json
|
|
999
|
+
todos snapshots --show tasks --json
|
|
1000
|
+
todos snapshots --show evidence --markdown
|
|
1001
|
+
todos snapshots --poll --types tasks,evidence --since 2026-05-22T00:00:00.000Z --json
|
|
1002
|
+
```
|
|
1003
|
+
|
|
1004
|
+
MCP clients can read `todos://snapshots/catalog` and
|
|
1005
|
+
`todos://snapshots/tasks` through `todos://snapshots/evidence`, or use
|
|
1006
|
+
`list_local_snapshots`, `get_local_snapshot`, and `poll_local_snapshots` for
|
|
1007
|
+
JSON or Markdown payloads.
|
|
1008
|
+
|
|
1009
|
+
## SDK Integration Fixtures
|
|
1010
|
+
|
|
1011
|
+
Downstream SDK, CLI JSON, MCP, and agent-adapter tests can generate a complete
|
|
1012
|
+
local fixture pack from the bundled demo project:
|
|
1013
|
+
|
|
1014
|
+
```bash
|
|
1015
|
+
todos sdk-fixtures --json
|
|
1016
|
+
todos sdk-fixtures --show > sdk-fixture-pack.json
|
|
1017
|
+
todos sdk-fixtures --write .todos/sdk-integrations --json
|
|
1018
|
+
```
|
|
1019
|
+
|
|
1020
|
+
The pack includes a local bridge fixture, stable JSON contract snapshots,
|
|
1021
|
+
project/task/plan/run/evidence snapshots, and a context pack. Copy-pasteable
|
|
1022
|
+
examples live in `examples/sdk-integrations/`, and the full guide is in
|
|
1023
|
+
`docs/sdk-integrations.md`.
|
|
465
1024
|
|
|
466
1025
|
## Local Bridge Import/Export
|
|
467
1026
|
|
|
@@ -478,10 +1037,10 @@ todos bridge-import todos-bridge.json --apply --resolve-conflicts
|
|
|
478
1037
|
|
|
479
1038
|
Bridge bundles include local projects, task lists, plans, tasks, dependencies,
|
|
480
1039
|
comments, run ledgers, command evidence, file evidence, artifacts, stored
|
|
481
|
-
artifact contents, commits, refs,
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
explicitly.
|
|
1040
|
+
artifact contents, commits, refs, verification records, saved views, local board
|
|
1041
|
+
definitions, and local calendar items. Imports default to dry-run mode and
|
|
1042
|
+
report conflicts before writing. The package does not upload bundles or call
|
|
1043
|
+
hosted services; any hosted sync must consume the exported JSON explicitly.
|
|
485
1044
|
|
|
486
1045
|
For multi-machine local work, `--resolve-conflicts` performs a safe task merge
|
|
487
1046
|
instead of overwriting local edits. It fills blank local fields from the
|
|
@@ -595,6 +1154,9 @@ Release checks enforce that boundary before publishing:
|
|
|
595
1154
|
- local runtime tests use a no-network fixture for local-only workflows
|
|
596
1155
|
- `bun run verify:release` builds, packs, validates provenance, and runs a clean
|
|
597
1156
|
Bun global install smoke test from the candidate tarball
|
|
1157
|
+
- the install smoke plan itself is covered by tests: it installs only with Bun,
|
|
1158
|
+
verifies `todos`, `todos-mcp`, and `todos-serve`, and rejects private or
|
|
1159
|
+
hosted endpoint references
|
|
598
1160
|
|
|
599
1161
|
## License
|
|
600
1162
|
|