@dypt/cli 0.1.22 → 0.1.23

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 CHANGED
@@ -16,6 +16,18 @@ npm install -g @dypt/cli
16
16
 
17
17
  ## Basic usage
18
18
 
19
+ For a single admin diagnostic request, set `DYPT_DB_MEASUREMENT` to an opaque
20
+ `m_` identifier (12–64 letters, digits, underscores, or hyphens after the
21
+ prefix). For example:
22
+
23
+ ```bash
24
+ DYPT_DB_MEASUREMENT=m_cli_usage_20260927 dypt task list --limit 10
25
+ ```
26
+
27
+ The server accepts the header only for the authenticated admin CLI actor and
28
+ emits one Sentry measurement event for that request. Use a distinct identifier
29
+ for each invocation, including an idempotent replay.
30
+
19
31
  ### Sign in
20
32
 
21
33
  Authenticate the CLI with your dypt account:
@@ -325,3 +337,11 @@ email [support@dypt.app](mailto:support@dypt.app).
325
337
 
326
338
  This package is distributed under a custom proprietary license. See
327
339
  [LICENSE](./LICENSE).
340
+
341
+ ### Note-search workload limit
342
+
343
+ `dypt note search` returns a complete array for searches with at most 1,000
344
+ candidate notes. Broader searches fail with `CLI_NOTE_SEARCH_TOO_BROAD` and ask
345
+ you to narrow the query; results are never silently truncated. This is a fixed
346
+ workload limit, so retrying the same broad query will not help. Candidates
347
+ subsequently rejected by current permissions also count toward this limit.
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import { Argument, Command, Option } from "commander";
9
9
  // package.json
10
10
  var package_default = {
11
11
  name: "@dypt/cli",
12
- version: "0.1.22",
12
+ version: "0.1.23",
13
13
  description: "Command-line interface for dypt task management",
14
14
  license: "SEE LICENSE IN LICENSE",
15
15
  homepage: "https://dypt.app",
@@ -521,9 +521,11 @@ async function createCliTrpcClient(options = {}) {
521
521
  transformer: superjson,
522
522
  fetch: fetchWithMaintenanceCheck,
523
523
  headers() {
524
- return accessToken ? {
525
- Authorization: `Bearer ${accessToken}`
526
- } : {};
524
+ const measurementId = process.env.DYPT_DB_MEASUREMENT;
525
+ return {
526
+ ...accessToken ? { Authorization: `Bearer ${accessToken}` } : {},
527
+ ...measurementId ? { "x-dypt-db-measurement": measurementId } : {}
528
+ };
527
529
  }
528
530
  })
529
531
  ]