@curviate/cli 0.13.0 → 0.14.0

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/CHANGELOG.md CHANGED
@@ -6,6 +6,18 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6
6
  Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html):
7
7
  a new command or flag is a minor; a breaking command/flag/exit-code change is a major; a fix is a patch.
8
8
 
9
+ ## [0.14.0] - 2026-07-07
10
+
11
+ Webhooks surface cascade — the coupled release with `@curviate/sdk` 0.14.0. Additive minor.
12
+
13
+ ### Added
14
+
15
+ - **`webhook get <id>`** — get a single webhook owned by the calling tenant (`webhooks.get`). Read command; `--preview` is a usage error (nothing to mutate), matching `webhook state-diff`.
16
+
17
+ ### Changed
18
+
19
+ - **`@curviate/sdk` bumped to `^0.14.0`.** The SDK's webhook event catalogue expanded 21 → 27 (`chat.updated`, `chat.deleted`, `connection.new`, `account.initial_sync.*`, and account-lifecycle renames) and its `CurviateEvent` union re-keyed to match — this CLI never imports `CurviateEvent` directly, so `webhook verify`'s offline HMAC verification is unaffected; only the dependency range changed.
20
+
9
21
  ## [0.13.0] - 2026-07-05
10
22
 
11
23
  Accounts/Auth surface migration — the coupled release with `@curviate/sdk` 0.13.0. This is a
package/dist/cli.js CHANGED
@@ -153,7 +153,7 @@ var main = defineCommand({
153
153
  message: () => import("./message-6K5E3CUF.js").then((m) => m.messageCommand),
154
154
  post: () => import("./post-2JQZ3OSF.js").then((m) => m.postCommand),
155
155
  account: () => import("./account-7AUDAMIK.js").then((m) => m.accountCommand),
156
- webhook: () => import("./webhook-XPWBI675.js").then((m) => m.webhookCommand),
156
+ webhook: () => import("./webhook-EIY5WWTE.js").then((m) => m.webhookCommand),
157
157
  "sales-nav": () => import("./sales-nav-QTSTJMKA.js").then((m) => m.salesNavCommand),
158
158
  recruiter: () => import("./recruiter-XHVMQWK6.js").then((m) => m.recruiterCommand)
159
159
  },
@@ -134,6 +134,17 @@ async function runWebhookEvents(client, flags, out) {
134
134
  await handleError(err, outOpts, out);
135
135
  }
136
136
  }
137
+ async function runWebhookGet(client, flags, out) {
138
+ rejectPreviewOnRead(flags.preview, out);
139
+ const id = flags.id ?? "";
140
+ const outOpts = resolveOutputOpts(flags);
141
+ try {
142
+ const result = await client.webhooks.get(id);
143
+ renderSuccess(result, outOpts, out);
144
+ } catch (err) {
145
+ await handleError(err, outOpts, out);
146
+ }
147
+ }
137
148
  async function runWebhookUpdate(client, flags, out) {
138
149
  if (flags.source !== void 0) {
139
150
  out.stderr.write("error: --source cannot be changed after creation (source is immutable).\n");
@@ -302,6 +313,29 @@ var webhookEventsCommand = defineCommand({
302
313
  await runWebhookEvents(client, flags, out);
303
314
  }
304
315
  });
316
+ var webhookGetCommand = defineCommand({
317
+ meta: { name: "get", description: "Get a single webhook owned by the calling tenant." },
318
+ args: {
319
+ ...GLOBAL_FLAGS,
320
+ id: { type: "positional", description: "Webhook id (wh_\u2026)." }
321
+ },
322
+ async run({ args }) {
323
+ const flags = args;
324
+ const cfg = await resolveEffectiveConfig({
325
+ apiKey: flags["api-key"],
326
+ baseUrl: flags["base-url"],
327
+ timeout: flags.timeout,
328
+ profile: flags.profile
329
+ });
330
+ if (!cfg.apiKey) {
331
+ process.stderr.write("error: no API key \u2014 run `curviate login` or pass --api-key.\n");
332
+ process.exit(3);
333
+ }
334
+ const client = createClient({ apiKey: cfg.apiKey, baseUrl: cfg.baseUrl, timeout: cfg.timeout });
335
+ const out = buildOutputStreams();
336
+ await runWebhookGet(client, flags, out);
337
+ }
338
+ });
305
339
  var webhookUpdateCommand = defineCommand({
306
340
  meta: { name: "update", description: "Update a webhook in place (source is immutable)." },
307
341
  args: {
@@ -423,6 +457,7 @@ var webhookCommand = defineCommand({
423
457
  create: webhookCreateCommand,
424
458
  list: webhookListCommand,
425
459
  events: webhookEventsCommand,
460
+ get: webhookGetCommand,
426
461
  update: webhookUpdateCommand,
427
462
  delete: webhookDeleteCommand,
428
463
  "state-diff": webhookStateDiffCommand,
@@ -430,7 +465,7 @@ var webhookCommand = defineCommand({
430
465
  },
431
466
  async run() {
432
467
  process.stderr.write(
433
- "Usage: curviate webhook <subcommand>\n create | list | events | update | delete | state-diff | verify\n"
468
+ "Usage: curviate webhook <subcommand>\n create | list | events | get | update | delete | state-diff | verify\n"
434
469
  );
435
470
  }
436
471
  });
@@ -438,6 +473,7 @@ export {
438
473
  runWebhookCreate,
439
474
  runWebhookDelete,
440
475
  runWebhookEvents,
476
+ runWebhookGet,
441
477
  runWebhookList,
442
478
  runWebhookStateDiff,
443
479
  runWebhookUpdate,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curviate/cli",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "private": false,
5
5
  "description": "Official command-line interface for the Curviate API.",
6
6
  "license": "MIT",
@@ -40,7 +40,7 @@
40
40
  "clean": "rm -rf dist *.tsbuildinfo"
41
41
  },
42
42
  "dependencies": {
43
- "@curviate/sdk": "^0.13.0",
43
+ "@curviate/sdk": "^0.14.0",
44
44
  "citty": "^0.1.6",
45
45
  "open": "^10.1.0"
46
46
  },