@zerct/zerct 0.1.7 → 0.1.8

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
@@ -20,9 +20,9 @@ on `0.0.0.0:$PORT` and expose the configured health endpoint.
20
20
  From a full-stack repo root, the same deploy command discovers nested
21
21
  `zerct.toml` files and deploys the whole workspace in one command.
22
22
 
23
- Agents can also inspect API capabilities, account identity, usage, apps,
24
- deploys, builds, app/deploy/build logs, env metadata, custom domains, and
25
- billing portal links through the same CLI.
23
+ Agents can also inspect API capabilities, account identity, usage, account
24
+ activity, apps, complete app overviews, deploys, builds, app/deploy/build logs,
25
+ env metadata, custom domains, and billing portal links through the same CLI.
26
26
 
27
27
  On first deploy, the CLI opens browser login, waits for GitHub or Google, stores
28
28
  the Zerct session in the OS credential store when available, and continues the
package/bin/zerct.js CHANGED
@@ -4,7 +4,7 @@ import { existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSy
4
4
  import { homedir } from 'node:os'
5
5
  import path from 'node:path'
6
6
 
7
- const VERSION = '0.1.7'
7
+ const VERSION = '0.1.8'
8
8
  const DEFAULT_API_URL = 'https://api.zerct.com'
9
9
  const ARCHIVE_LIMIT_BYTES = 48 * 1024 * 1024
10
10
  const SESSION_DIR = '.zerct'
@@ -68,7 +68,9 @@ Usage:
68
68
  zerct capabilities [--api <url>] [--json]
69
69
  zerct me [--api <url>] [--json]
70
70
  zerct usage [--api <url>] [--json]
71
+ zerct activity [--limit <n>] [--cursor <cursor>] [--api <url>] [--json]
71
72
  zerct apps [--api <url>] [--json]
73
+ zerct overview --app <app_id> [--limit <n>] [--cursor <cursor>] [--api <url>] [--json]
72
74
  zerct deploys [--app <app_id>] [--limit <n>] [--cursor <cursor>] [--api <url>] [--json]
73
75
  zerct builds [--app <app_id>] [--limit <n>] [--cursor <cursor>] [--api <url>] [--json]
74
76
  zerct logs --app <app_id> [--deploy <deploy_id>] [--build <build_id>] [--limit <n>] [--cursor <cursor>] [--api <url>] [--json]
@@ -128,9 +130,15 @@ async function main() {
128
130
  case 'usage':
129
131
  await usage(cli)
130
132
  break
133
+ case 'activity':
134
+ await activity(cli)
135
+ break
131
136
  case 'apps':
132
137
  await apps(cli)
133
138
  break
139
+ case 'overview':
140
+ await overview(cli)
141
+ break
134
142
  case 'deploys':
135
143
  await deploys(cli)
136
144
  break
@@ -570,6 +578,19 @@ async function usage(cli) {
570
578
  printJsonOrPretty(cli, response)
571
579
  }
572
580
 
581
+ async function activity(cli) {
582
+ const token = await readOrLoginToken(process.cwd(), cli)
583
+ const response = await apiRequest(cli, 'GET', `/v1/activity${pageQuery(cli)}`, token, null)
584
+ printJsonOrPretty(cli, response)
585
+ }
586
+
587
+ async function overview(cli) {
588
+ const token = await readOrLoginToken(process.cwd(), cli)
589
+ const app = requireApp(cli)
590
+ const response = await apiRequest(cli, 'GET', `/v1/apps/${encodeURIComponent(app)}/overview${pageQuery(cli)}`, token, null)
591
+ printJsonOrPretty(cli, response)
592
+ }
593
+
573
594
  async function deploys(cli) {
574
595
  const token = await readOrLoginToken(process.cwd(), cli)
575
596
  const route = cli.app
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerct/zerct",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Deploy Rust backends and static frontends to Zerct.",
5
5
  "type": "module",
6
6
  "bin": {