donebear 0.4.3 → 0.5.0

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/AGENTS.md CHANGED
@@ -6,16 +6,16 @@ Done Bear command-line interface for OAuth auth, workspace management, and task
6
6
 
7
7
  Run from repo root:
8
8
 
9
- - `npm run build --workspace=apps/cli`: build with tsdown
10
- - `npm run dev --workspace=apps/cli`: watch build
11
- - `npm run lint`: lint all workspaces (run from root)
12
- - `npm run check-types --workspace=apps/cli`: TypeScript check
13
- - `npm run test --workspace=apps/cli`: Vitest tests
14
- - `npm run lint:fix`: format/autofix before commit
9
+ - `pnpm --filter donebear run build`: build with tsdown
10
+ - `pnpm --filter donebear run dev`: watch build
11
+ - `pnpm run lint`: lint all workspaces (run from root)
12
+ - `pnpm --filter donebear run check-types`: TypeScript check
13
+ - `pnpm --filter donebear run test`: Vitest tests
14
+ - `pnpm run lint:fix`: format/autofix before commit
15
15
 
16
16
  Run CLI locally from repo root:
17
17
 
18
- - `npm exec --workspace=apps/cli donebear -- --help`
18
+ - `pnpm --filter donebear exec donebear -- --help`
19
19
 
20
20
  ## Agent Quickstart
21
21
 
@@ -40,7 +40,7 @@ donebear context --markdown # Markdown for system prompt injection
40
40
 
41
41
  ### Non-interactive / CI use
42
42
 
43
- Set `DONEBEAR_TOKEN` instead of running `donebear auth login`:
43
+ Set `DONEBEAR_TOKEN` instead of running `donebear auth login`. New accounts: `donebear auth signup --email <human-email> --json --no-interactive` (do not invent the address).
44
44
 
45
45
  ```bash
46
46
  export DONEBEAR_TOKEN=<your-token>
@@ -96,7 +96,7 @@ src/
96
96
  http.ts # base fetch wrapper, NDJSON streaming, error handling
97
97
  bootstrap.ts # /sync/bootstrap fetch + the content-model allowlist
98
98
  commands/
99
- auth.ts # auth login/status/logout
99
+ auth.ts # auth login/signup/status/logout
100
100
  whoami.ts # current user output
101
101
  workspace.ts # workspace list/current/use/clear/create/join
102
102
  task.ts # task list/show/add/edit/done/reopen/archive/unarchive
@@ -123,7 +123,7 @@ src/
123
123
  things-sqlite.ts # reads Things 3 SQLite database
124
124
  things-output.ts # import result summary formatting
125
125
  model-id.ts # idempotency-key UUIDs (Things import ids come from @donebear/import-core/things)
126
- tests/ # Vitest: npm run test --workspace=apps/cli
126
+ tests/ # Vitest: pnpm --filter donebear run test
127
127
  ```
128
128
 
129
129
  The pure Things snapshot types, mapper, recurrence conversion, date decoding,
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Matthew Blode
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 CHANGED
@@ -5,7 +5,7 @@ task manager for the web, macOS, Windows, Linux, and
5
5
  [iOS](https://donebear.com/ios).
6
6
 
7
7
  Docs: [donebear.com/docs/cli](https://donebear.com/docs/cli) ·
8
- Account: [app.donebear.com](https://app.donebear.com)
8
+ Account: [donebear.com](https://donebear.com)
9
9
 
10
10
  ## Quick start
11
11
 
@@ -34,6 +34,12 @@ No environment variables are needed; the CLI connects to production by default.
34
34
 
35
35
  ## Authentication
36
36
 
37
+ Create an account from a coding agent (the human verifies email; do not invent one):
38
+
39
+ ```bash
40
+ npx donebear auth signup --email person@example.com --json --no-interactive
41
+ ```
42
+
37
43
  Log in via browser OAuth:
38
44
 
39
45
  ```bash
@@ -129,7 +135,8 @@ npx donebear workspace use <id-or-slug>
129
135
  npx donebear workspace create "Personal" --slug personal
130
136
  npx donebear workspace join <invite-code>
131
137
  npx donebear workspace members <workspace-id>
132
- npx donebear workspace invite <workspace-id> --email user@example.com
138
+ npx donebear workspace invite --email user@example.com
139
+ npx donebear workspace invite --share --copy
133
140
  ```
134
141
 
135
142
  ## Output formats
@@ -190,6 +197,11 @@ These are optional; the CLI works out of the box for production use.
190
197
  | `DONEBEAR_SUPABASE_PUBLISHABLE_KEY` | Supabase publishable key | production key |
191
198
  | `DONEBEAR_CONFIG_DIR` | Config/cache directory | `~/.config/donebear` |
192
199
  | `DONEBEAR_DEBUG` | Enable debug logging (`1`) | disabled |
200
+ | `DO_NOT_TRACK` | Turn off crash reports (`1`) | reports on |
201
+
202
+ ## Crash reports
203
+
204
+ When the CLI hits a bug (a `TypeError`, `ReferenceError` or `RangeError` in its own code), it sends the error's type and stack trace to Done Bear's PostHog error tracking, with the CLI, Node and OS versions. Nothing else goes with it: not the error message, no arguments, no task data, no workspace or account, and paths under your home directory are shortened to `~`. Usage errors, failed sign-ins and network failures are never sent. Set `DO_NOT_TRACK=1` to turn crash reports off. Crash reports need Node 20.20+ or 22.22+; on older Node the reporter is skipped at install and nothing is sent.
193
205
 
194
206
  ## Exit codes
195
207
 
@@ -214,15 +226,15 @@ These are optional; the CLI works out of the box for production use.
214
226
  Build from a checkout of the monorepo:
215
227
 
216
228
  ```bash
217
- npm install
218
- npm run build --workspace=apps/cli
229
+ pnpm install
230
+ pnpm --filter donebear run build
219
231
  ```
220
232
 
221
233
  Then, from repo root:
222
234
 
223
235
  ```bash
224
- npm run lint --workspace=apps/cli
225
- npm run check-types --workspace=apps/cli
226
- npm run test --workspace=apps/cli
227
- npm run build --workspace=apps/cli
236
+ pnpm --filter donebear run lint
237
+ pnpm --filter donebear run check-types
238
+ pnpm --filter donebear run test
239
+ pnpm --filter donebear run build
228
240
  ```
package/dist/cli.d.mts CHANGED
@@ -1,2 +1,2 @@
1
1
 
2
- export { };
2
+ export {}