donebear 0.4.2 → 0.4.4

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
@@ -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
@@ -121,16 +121,16 @@ src/
121
121
  import/
122
122
  things-runner.ts # orchestrates full Things 3 import pipeline
123
123
  things-sqlite.ts # reads Things 3 SQLite database
124
- things-mapper.ts # maps Things rows to Done Bear sync transactions
125
- things-values.ts # Things date/field value decoders
126
- things-labels.ts # label normalization for import dedup
127
- things-recurrence.ts # Things recurrence to RRule conversion
128
124
  things-output.ts # import result summary formatting
129
- model-id.ts # import + idempotency-key UUIDs (composite sync ids come from @donebear/sync-ids)
130
- time-zone.ts # calendar date/time zone helpers
125
+ model-id.ts # idempotency-key UUIDs (Things import ids come from @donebear/import-core/things)
131
126
  tests/ # Vitest: npm run test --workspace=apps/cli
132
127
  ```
133
128
 
129
+ The pure Things snapshot types, mapper, recurrence conversion, date decoding,
130
+ label normalization and stable import IDs live at the explicit browser-safe
131
+ `@donebear/import-core/things` subpath. The CLI owns only SQLite file access,
132
+ execution and output.
133
+
134
134
  ## Gotchas
135
135
 
136
136
  - OAuth callback defaults to `http://127.0.0.1:8787/auth/callback`; it must be allow-listed in Supabase redirect URLs.
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