@curviate/cli 0.18.0 → 0.18.1

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
@@ -8,6 +8,19 @@ a new command or flag is a minor; a breaking command/flag/exit-code change is a
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [0.18.1] - 2026-07-18
12
+
13
+ A patch aligning `company reply` with the company-inbox chat-id cutover. No breaking changes, built against `@curviate/sdk` 0.18.1.
14
+
15
+ ### Fixed
16
+
17
+ - **`company reply <id> <chat_id> "<text>"`** now takes the normal `2-…` conversation
18
+ id that `company chats` returns; the endpoint resolves the page mailbox internally from
19
+ the company identifier, so the earlier `COMPANY_` chat-id requirement is gone. `--preview`
20
+ now always prints a "Will send as company page `<id>`" notice derived from the resolved
21
+ identifier (previously it went silent for a bare `2-…` id). Reply-only and admin-gated,
22
+ otherwise unchanged.
23
+
11
24
  ## [0.18.0] - 2026-07-17
12
25
 
13
26
  A minor release adding the `company reply` command. No breaking changes, built against `@curviate/sdk` 0.18.0.
package/dist/cli.js CHANGED
@@ -256,7 +256,7 @@ var main = defineCommand({
256
256
  // Noun groups — lazy-loaded on first invocation.
257
257
  // ---------------------------------------------------------------------------
258
258
  profile: () => import("./profile-XWSRUYRW.js").then((m) => m.profileCommand),
259
- company: () => import("./company-BC72KZ5G.js").then((m) => m.companyCommand),
259
+ company: () => import("./company-BVXX4FGX.js").then((m) => m.companyCommand),
260
260
  job: () => import("./job-EIXBJXLW.js").then((m) => m.jobCommand),
261
261
  connect: () => import("./connect-6PU7QCOL.js").then((m) => m.connectCommand),
262
262
  search: () => import("./search-ZQUKLQ6T.js").then((m) => m.searchCommand),
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- sentAsNotice,
4
- willSendAsNotice
3
+ sentAsNotice
5
4
  } from "./chunk-KVV6LZ7E.js";
6
5
  import {
7
6
  resolveTextOrStdin
@@ -295,8 +294,8 @@ async function runCompanyReply(client, flags, out, _readStdin) {
295
294
  }))
296
295
  });
297
296
  out.stdout.write(JSON.stringify(preview) + "\n");
298
- const willSendAs = willSendAsNotice(chatId);
299
- if (willSendAs) out.stderr.write(willSendAs);
297
+ out.stderr.write(`Will send as company page ${identifier}
298
+ `);
300
299
  return;
301
300
  }
302
301
  const attachmentPayloads = attachBuffers.map((buf, i) => toAttachmentPayload(attachPaths[i], buf));
@@ -448,14 +447,14 @@ var companyFollowInviteCommand = defineCommand({
448
447
  var companyReplyCommand = defineCommand({
449
448
  meta: {
450
449
  name: "reply",
451
- description: "Reply to a company-inbox conversation, as the page (write, admin-gated: the account must administer the page). Requires a COMPANY_ chat id from `inboxes chats`, not the 2-\u2026 id `company` reads return (the API rejects a non-COMPANY_ id with a guiding 400 naming the fix). Reply-only, this cannot start a new conversation on the page's behalf. See also: `inboxes chats` and `message send` (the personal equivalent, which also accepts a COMPANY_ chat id)."
450
+ description: "Reply to a company-inbox conversation, as the page (write, admin-gated: the account must administer the page). Takes the normal 2-\u2026 chat id from `company chats`; the endpoint resolves the page mailbox internally from the company id. Reply-only, this cannot start a new conversation on the page's behalf. See also: `company chats` (the read that returns the chat id) and `message send` (the personal equivalent)."
452
451
  },
453
452
  args: {
454
453
  ...WRITE_FLAGS,
455
454
  id: { type: "positional", description: "Company identifier (URL, slug, or numeric id), resolved to the numeric id first, including under --preview." },
456
455
  chatId: {
457
456
  type: "positional",
458
- description: "COMPANY_ chat id (from `inboxes chats`), passed through verbatim, no client-side check."
457
+ description: "The 2-\u2026 chat id from `company chats`, passed through verbatim (no client-side check)."
459
458
  },
460
459
  text: { type: "positional", description: "Reply text. Pass - to read from stdin (e.g. via heredoc or pipe)." },
461
460
  attach: { type: "string", description: "File to attach (repeatable)." }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curviate/cli",
3
- "version": "0.18.0",
3
+ "version": "0.18.1",
4
4
  "private": false,
5
5
  "description": "Official command-line interface for the Curviate API.",
6
6
  "license": "MIT",
@@ -41,7 +41,7 @@
41
41
  "clean": "rm -rf dist *.tsbuildinfo"
42
42
  },
43
43
  "dependencies": {
44
- "@curviate/sdk": "^0.18.0",
44
+ "@curviate/sdk": "^0.18.1",
45
45
  "citty": "^0.1.6",
46
46
  "open": "^10.1.0"
47
47
  },