@tenderprompt/cli 0.1.25 → 0.1.27

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.
Files changed (3) hide show
  1. package/README.md +27 -0
  2. package/dist/index.js +3909 -1278
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -39,6 +39,8 @@ session:
39
39
  - inspect artifact-scoped analytics without SQL or platform credentials
40
40
  - inspect artifact-scoped app database tables, schema, and bounded read-only
41
41
  query output
42
+ - create private app admin dashboard, resource, view, and widget definitions
43
+ from structured app database specs
42
44
  - share app setup between Tender accounts without copying customer data,
43
45
  analytics history, app database rows, secrets, or release history
44
46
  - run server-validated chart specs and export aggregate rows
@@ -156,6 +158,11 @@ tender app db tables artifact_123 --env published --json
156
158
  tender app db schema artifact_123 --env published --table votes --json
157
159
  tender app db query artifact_123 --env published --sql "select * from votes limit 20" --json
158
160
  tender app db query artifact_123 --env published --sql "select * from votes order by created_at" --limit 50 --offset 50 --json
161
+ tender app db dashboards artifact_123 --create "App admin" --default-env published --dry-run --json
162
+ tender app db resources suggest artifact_123 --env published --json
163
+ tender app db dashboards render artifact_123 --dashboard app_db_dashboard_123 --env published --json
164
+ tender app db resources create artifact_123 --dashboard app_db_dashboard_123 --spec resource.json --dry-run --json
165
+ tender app db widgets create artifact_123 --dashboard app_db_dashboard_123 --title "Total signups" --spec widget.json --dry-run --json
159
166
  ```
160
167
 
161
168
  ## Shared app setup
@@ -340,6 +347,26 @@ Client and server limits include a 100 KB statement cap and at most 100 bound
340
347
  parameters. The server enforces the final policy, row limits, response limits,
341
348
  artifact scope, and audit logging.
342
349
 
350
+ Private app admin dashboards are definition-only in the CLI. Use the same
351
+ artifact-scoped `db-read` profile to save dashboards, table-backed resources,
352
+ saved views, and widgets; raw app rows stay in the generated app database.
353
+ Logged-in users can open saved dashboards at `/#/workspace/<artifact-id>/admin`.
354
+
355
+ ```bash
356
+ tender app db resources suggest artifact_123 --profile db --env published --json
357
+ tender app db dashboards artifact_123 --profile db --create "Coffee Matcher Admin" --default-env published --json
358
+ tender app db resources create artifact_123 --profile db --dashboard app_db_dashboard_123 --spec resource.json --view recent.json --json
359
+ tender app db widgets create artifact_123 --profile db --dashboard app_db_dashboard_123 --title "Votes by choice" --spec widget.json --json
360
+ tender app db dashboards render artifact_123 --profile db --dashboard app_db_dashboard_123 --env published --json
361
+ ```
362
+
363
+ Suggested app database resources may include `dateRange: { "source":
364
+ "dashboard", "column": "created_at" }` so saved admin dashboards behave like a
365
+ Grafana dashboard: one top-level date range applies to charts and tables by
366
+ default, while resource filters stay available for local drill-downs. Use
367
+ `dateRange: { "source": "off" }` or a fixed override only for panels that should
368
+ not follow the dashboard date range.
369
+
343
370
  ## Safety Model
344
371
 
345
372
  - Local agents run in the user's environment, not in Tender.