@chainpatrol/cli 1.13.0 → 1.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
@@ -1,5 +1,35 @@
1
1
  # @chainpatrol/cli
2
2
 
3
+ ## 1.14.0
4
+
5
+ ### Minor Changes
6
+
7
+ - da80cde: Trademark registrations now carry a lifecycle `status` of `ACTIVE`, `PENDING`,
8
+ `EXPIRED`, `ABANDONED` or `CANCELLED`.
9
+
10
+ `status` is added to the trademark registration objects returned by
11
+ `listOrganizationBrands()` and the user-org endpoints. Every registration is
12
+ still returned whatever its status — filter on the new field if you only want
13
+ marks currently in force. Existing rows report `ACTIVE`, so responses are
14
+ unchanged for anyone who has not set a status.
15
+
16
+ The CLI shows the status on each trademark in `chainpatrol brands list` and
17
+ `chainpatrol orgs get`, and `orgs get` now reports how many of an organization's
18
+ marks are active.
19
+
20
+ Only `ACTIVE` registrations are used by ChainPatrol's takedown and enforcement
21
+ workflows. That gating lives in @chainpatrol/trpc and @chainpatrol/core, and the
22
+ column itself in @chainpatrol/database — all private packages that do not need
23
+ version bumps.
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [a90b542]
28
+ - Updated dependencies [1333cf9]
29
+ - Updated dependencies [da80cde]
30
+ - @chainpatrol/mcp@1.12.1
31
+ - @chainpatrol/sdk@1.13.0
32
+
3
33
  ## 1.13.0
4
34
 
5
35
  ### Minor Changes
package/dist/cli.js CHANGED
@@ -1838,7 +1838,7 @@ async function main() {
1838
1838
  if (subcommand === "get") {
1839
1839
  const positionalSlug = action;
1840
1840
  const slug = positionalSlug ?? await tryResolveOrg();
1841
- const { runOrgsGet } = await import("./get-NDEY54AO.js");
1841
+ const { runOrgsGet } = await import("./get-OFLQ5BXP.js");
1842
1842
  await runOrgsGet({
1843
1843
  slug,
1844
1844
  json: jsonMode,
@@ -1889,7 +1889,7 @@ async function main() {
1889
1889
  "brands list --type must be ORGANIZATION, INDIVIDUAL, or PRODUCT (case-insensitive)."
1890
1890
  );
1891
1891
  }
1892
- const { runBrandsList } = await import("./list-YFBZVQWK.js");
1892
+ const { runBrandsList } = await import("./list-3HCKDPIK.js");
1893
1893
  await runBrandsList({
1894
1894
  type: rawType,
1895
1895
  json: jsonMode,
@@ -81,8 +81,12 @@ function summarizePortalCustomization(org) {
81
81
  function summarizeTrademarks(org) {
82
82
  const count = org.trademarkRegistrations.length;
83
83
  if (count === 0) return "none";
84
+ const activeCount = org.trademarkRegistrations.filter(
85
+ (tm) => tm.status === "ACTIVE"
86
+ ).length;
84
87
  const labels = org.trademarkRegistrations.slice(0, 3).map((tm) => `${tm.brandName} (${tm.trademarkOffice} #${tm.registrationNumber})`);
85
- return count > labels.length ? `${count} on file \u2014 ${labels.join(", ")}, +${count - labels.length} more` : `${count} on file \u2014 ${labels.join(", ")}`;
88
+ const onFile = `${count} on file (${activeCount} active)`;
89
+ return count > labels.length ? `${onFile} \u2014 ${labels.join(", ")}, +${count - labels.length} more` : `${onFile} \u2014 ${labels.join(", ")}`;
86
90
  }
87
91
  async function runOrgsGet(options) {
88
92
  const slug = options.slug?.trim();
@@ -118,7 +122,7 @@ async function runOrgsGet(options) {
118
122
  organization.legalDocuments.powerOfAttorney.fileUrl ? ` - POA: ${organization.legalDocuments.powerOfAttorney.fileUrl}` : "",
119
123
  `- Trademarks: ${summarizeTrademarks(organization)}`,
120
124
  ...organization.trademarkRegistrations.map(
121
- (tm) => ` - #${tm.id} ${tm.brandName} \u2014 ${tm.trademarkOffice} #${tm.registrationNumber}` + (tm.registrationPageUrl ? ` \u2014 page: ${tm.registrationPageUrl}` : "") + (tm.certificateFileUrl ? ` \u2014 certificate: ${tm.certificateFileUrl}` : "")
125
+ (tm) => ` - #${tm.id} ${tm.brandName} [${tm.status}] \u2014 ${tm.trademarkOffice} #${tm.registrationNumber}` + (tm.registrationPageUrl ? ` \u2014 page: ${tm.registrationPageUrl}` : "") + (tm.certificateFileUrl ? ` \u2014 certificate: ${tm.certificateFileUrl}` : "")
122
126
  )
123
127
  ].filter((line) => line !== "").join("\n"),
124
128
  csv: toCsvRows([
@@ -38,7 +38,10 @@ function toRow(brand) {
38
38
  powerOfAttorneyPresent: brand.legalDocuments.powerOfAttorney.present,
39
39
  powerOfAttorneyFileUrl: brand.legalDocuments.powerOfAttorney.fileUrl ?? "",
40
40
  trademarkRegistrationCount: brand.trademarkRegistrations.length,
41
- trademarkBrandNames: brand.trademarkRegistrations.map((tm) => tm.brandName).join("|")
41
+ trademarkBrandNames: brand.trademarkRegistrations.map((tm) => tm.brandName).join("|"),
42
+ trademarkActiveCount: brand.trademarkRegistrations.filter(
43
+ (tm) => tm.status === "ACTIVE"
44
+ ).length
42
45
  };
43
46
  }
44
47
  async function runBrandsList(options) {
@@ -82,7 +85,7 @@ async function runBrandsList(options) {
82
85
  if (tm.certificateFileUrl) extras.push(`certificate: ${tm.certificateFileUrl}`);
83
86
  const extraStr = extras.length > 0 ? ` \u2014 ${extras.join(", ")}` : "";
84
87
  lines.push(
85
- ` - trademark #${tm.id} ${tm.brandName} \u2014 ${tm.trademarkOffice} #${tm.registrationNumber}${extraStr}`
88
+ ` - trademark #${tm.id} ${tm.brandName} [${tm.status}] \u2014 ${tm.trademarkOffice} #${tm.registrationNumber}${extraStr}`
86
89
  );
87
90
  }
88
91
  return lines;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@chainpatrol/cli",
3
3
  "description": "The official ChainPatrol CLI — terminal interface for threat detection",
4
4
  "author": "Umar Ahmed <umar@chainpatrol.io>",
5
- "version": "1.13.0",
5
+ "version": "1.14.0",
6
6
  "license": "UNLICENSED",
7
7
  "homepage": "https://chainpatrol.com/docs/cli",
8
8
  "keywords": [
@@ -33,8 +33,8 @@
33
33
  "lint": "npx oxlint ."
34
34
  },
35
35
  "dependencies": {
36
- "@chainpatrol/mcp": "1.12.0",
37
- "@chainpatrol/sdk": "1.12.0",
36
+ "@chainpatrol/mcp": "1.12.1",
37
+ "@chainpatrol/sdk": "1.13.0",
38
38
  "@modelcontextprotocol/sdk": "^1.30.0",
39
39
  "ink": "^7.0.1",
40
40
  "meow": "^14.1.0",