dblx 0.1.47 → 0.1.49

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 ADDED
@@ -0,0 +1,79 @@
1
+ # dblx
2
+
3
+ CLI for [dblebox](https://app.dblebox.com) — thread-first communication.
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ bunx dblx <command>
9
+ ```
10
+
11
+ ## Authentication
12
+
13
+ Generate an API key from **Settings > API Keys** in the dblebox web app, then:
14
+
15
+ ```
16
+ dblx auth login
17
+ ```
18
+
19
+ You'll be prompted for your key (starts with `dblx_`). Credentials are saved to `~/.config/dblx.json`.
20
+
21
+ ```
22
+ dblx auth whoami # show current user
23
+ dblx auth logout # remove saved credentials
24
+ ```
25
+
26
+ You can also set `DBLEBOX_API_KEY` and `DBLEBOX_API_URL` environment variables instead of using `auth login`.
27
+
28
+ ## Threads
29
+
30
+ ```
31
+ dblx threads list # list your threads
32
+ dblx threads list --archived # include archived
33
+ dblx threads list --snoozed # include snoozed
34
+ dblx threads create --title "New thread" # create a thread
35
+ dblx threads create --title "..." --comment "First message"
36
+ dblx threads update <id> --title "New title"
37
+ dblx threads archive <id>
38
+ dblx threads unarchive <id>
39
+ dblx threads snooze <id> --until 2026-03-01T09:00:00
40
+ dblx threads unsnooze <id>
41
+ dblx threads set-parent <id> --parent <parent-id>
42
+ dblx threads set-today <id> # assign to today
43
+ dblx threads set-today <id> --date 2026-03-01
44
+ dblx threads unset-today <id>
45
+ ```
46
+
47
+ ## Comments
48
+
49
+ ```
50
+ dblx comments list --thread <id>
51
+ dblx comments add --thread <id> --body "Hello"
52
+ dblx comments edit <comment-id> --body "Updated text"
53
+ ```
54
+
55
+ ## Members
56
+
57
+ ```
58
+ dblx members list <thread-id>
59
+ dblx members invite <thread-id> --user alice@example.com
60
+ ```
61
+
62
+ ## Today
63
+
64
+ ```
65
+ dblx today # show today's threads and note
66
+ dblx today --date 2026-03-01 # show a specific date
67
+ dblx today note # read today's daily note
68
+ dblx today note --set "My note" # update today's daily note
69
+ dblx today note --date 2026-03-01
70
+ ```
71
+
72
+ ## JSON output
73
+
74
+ All read commands support `--json` for machine-readable output:
75
+
76
+ ```
77
+ dblx threads list --json
78
+ dblx today --json
79
+ ```
package/dist/index.js CHANGED
@@ -2714,7 +2714,7 @@ function localDate(dateArg) {
2714
2714
  const d2 = String(now.getDate()).padStart(2, "0");
2715
2715
  return `${y}-${m}-${d2}`;
2716
2716
  }
2717
- var todayCommand = new Command("today").description("Today view — threads and daily note").option("--date <date>", "Date (YYYY-MM-DD)").option("--json", "Output as JSON").action(async (opts) => {
2717
+ var todayCommand = new Command("today").description("Today view — threads and daily note").enablePositionalOptions().passThroughOptions().option("--date <date>", "Date (YYYY-MM-DD)").option("--json", "Output as JSON").action(async (opts) => {
2718
2718
  const date = localDate(opts.date);
2719
2719
  const api = getApi();
2720
2720
  const { data, error } = await api.api.cli.v1.today.get({
@@ -2776,7 +2776,7 @@ var todayCommand = new Command("today").description("Today view — threads and
2776
2776
  // package.json
2777
2777
  var package_default = {
2778
2778
  name: "dblx",
2779
- version: "0.1.47",
2779
+ version: "0.1.49",
2780
2780
  description: "CLI for dblebox — thread-first communication",
2781
2781
  type: "module",
2782
2782
  bin: {
@@ -2801,7 +2801,7 @@ var package_default = {
2801
2801
  };
2802
2802
 
2803
2803
  // src/index.ts
2804
- var program2 = new Command().name("dblx").description("CLI for dblebox — thread-first communication").version(package_default.version);
2804
+ var program2 = new Command().name("dblx").description("CLI for dblebox — thread-first communication").version(package_default.version).enablePositionalOptions();
2805
2805
  program2.addCommand(authCommand);
2806
2806
  program2.addCommand(threadsCommand);
2807
2807
  program2.addCommand(commentsCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dblx",
3
- "version": "0.1.47",
3
+ "version": "0.1.49",
4
4
  "description": "CLI for dblebox — thread-first communication",
5
5
  "type": "module",
6
6
  "bin": {