@chainpatrol/cli 1.20.1 → 1.20.3
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,24 @@
|
|
|
1
1
|
# @chainpatrol/cli
|
|
2
2
|
|
|
3
|
+
## 1.20.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5bcacff: The Letter of Authorization is now the only legal document. The `legalDocuments.powerOfAttorney` field on organizations and brands is deprecated: it still returns a Power of Attorney uploaded before this change, and will be removed in a future version, so read `letterOfAuthorization` instead. The SDK marks the field `@deprecated`, the MCP tool descriptions say so, and the CLI no longer prints POA in its text and Markdown output (the field stays in `--json` output, and the `powerOfAttorneyPresent` and `powerOfAttorneyFileUrl` columns stay in CSV output, until the field is removed). Server-side work in @chainpatrol/validation and @chainpatrol/external-trpc supports it; those are private packages.
|
|
8
|
+
- Updated dependencies [5bcacff]
|
|
9
|
+
- Updated dependencies [c36f715]
|
|
10
|
+
- Updated dependencies [f4e588b]
|
|
11
|
+
- @chainpatrol/sdk@1.22.1
|
|
12
|
+
- @chainpatrol/mcp@1.19.1
|
|
13
|
+
|
|
14
|
+
## 1.20.2
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [38382ed]
|
|
19
|
+
- @chainpatrol/sdk@1.22.0
|
|
20
|
+
- @chainpatrol/mcp@1.19.0
|
|
21
|
+
|
|
3
22
|
## 1.20.1
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/dist/cli.js
CHANGED
|
@@ -1897,7 +1897,7 @@ async function main() {
|
|
|
1897
1897
|
}
|
|
1898
1898
|
case "orgs": {
|
|
1899
1899
|
if (subcommand === "list") {
|
|
1900
|
-
const { runOrgsList } = await import("./list-
|
|
1900
|
+
const { runOrgsList } = await import("./list-3EK33ZNM.js");
|
|
1901
1901
|
await runOrgsList({
|
|
1902
1902
|
query: cli.flags.query,
|
|
1903
1903
|
subscriptionStatus: cli.flags.subscriptionStatus,
|
|
@@ -1919,7 +1919,7 @@ async function main() {
|
|
|
1919
1919
|
if (subcommand === "get") {
|
|
1920
1920
|
const positionalSlug = action;
|
|
1921
1921
|
const slug = positionalSlug ?? await tryResolveOrg();
|
|
1922
|
-
const { runOrgsGet } = await import("./get-
|
|
1922
|
+
const { runOrgsGet } = await import("./get-C3ZTNMCO.js");
|
|
1923
1923
|
await runOrgsGet({
|
|
1924
1924
|
slug,
|
|
1925
1925
|
json: jsonMode,
|
|
@@ -2009,7 +2009,7 @@ async function main() {
|
|
|
2009
2009
|
"brands list --type must be ORGANIZATION, INDIVIDUAL, or PRODUCT (case-insensitive)."
|
|
2010
2010
|
);
|
|
2011
2011
|
}
|
|
2012
|
-
const { runBrandsList } = await import("./list-
|
|
2012
|
+
const { runBrandsList } = await import("./list-2PZX4EHO.js");
|
|
2013
2013
|
await runBrandsList({
|
|
2014
2014
|
slug: await tryResolveOrg(),
|
|
2015
2015
|
type: rawType,
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
letterOfAuthorizationOnFile
|
|
3
|
+
} from "./chunk-QZDUVWIQ.js";
|
|
1
4
|
import {
|
|
2
5
|
CliExitError,
|
|
3
6
|
ExitCode
|
|
@@ -53,12 +56,11 @@ function summarizeIntegrations(org) {
|
|
|
53
56
|
return parts.length > 0 ? parts.join(" ") : "(none)";
|
|
54
57
|
}
|
|
55
58
|
function summarizeLegalDocuments(org) {
|
|
56
|
-
const loa = org.legalDocuments.
|
|
57
|
-
const poa = org.legalDocuments.powerOfAttorney.present ? "yes" : "no";
|
|
59
|
+
const loa = letterOfAuthorizationOnFile(org.legalDocuments).present ? "yes" : "no";
|
|
58
60
|
const brands = org.legalDocuments.brands.map(
|
|
59
|
-
(brand) => `${brand.brandSlug}(LOA=${brand.
|
|
61
|
+
(brand) => `${brand.brandSlug}(LOA=${letterOfAuthorizationOnFile(brand).present ? "yes" : "no"})`
|
|
60
62
|
);
|
|
61
|
-
return brands.length > 0 ? `LOA=${loa}
|
|
63
|
+
return brands.length > 0 ? `LOA=${loa} brands=${brands.join(",")}` : `LOA=${loa}`;
|
|
62
64
|
}
|
|
63
65
|
function summarizeVisibility(org) {
|
|
64
66
|
return `portal=${org.portalVisibility} reports=${org.reportVisibility} metrics=${org.metricsVisibility}`;
|
|
@@ -121,11 +123,9 @@ async function runOrgsGet(options) {
|
|
|
121
123
|
`- Obligatory admin approval: ${summarizeObligatoryAdminApproval(organization)}`,
|
|
122
124
|
`- Pending service approvals: ${summarizePendingApprovals(organization)}`,
|
|
123
125
|
`- Legal documents: ${summarizeLegalDocuments(organization)}`,
|
|
124
|
-
organization.legalDocuments.
|
|
125
|
-
organization.legalDocuments.powerOfAttorney.fileUrl ? ` - POA: ${organization.legalDocuments.powerOfAttorney.fileUrl}` : "",
|
|
126
|
+
letterOfAuthorizationOnFile(organization.legalDocuments).fileUrl ? ` - LOA: ${letterOfAuthorizationOnFile(organization.legalDocuments).fileUrl}` : "",
|
|
126
127
|
...organization.legalDocuments.brands.flatMap((brand) => [
|
|
127
|
-
brand.
|
|
128
|
-
brand.powerOfAttorney.fileUrl ? ` - ${brand.brandSlug} POA: ${brand.powerOfAttorney.fileUrl}` : ""
|
|
128
|
+
letterOfAuthorizationOnFile(brand).fileUrl ? ` - ${brand.brandSlug} LOA: ${letterOfAuthorizationOnFile(brand).fileUrl}` : ""
|
|
129
129
|
]),
|
|
130
130
|
`- Trademarks: ${summarizeTrademarks(organization)}`,
|
|
131
131
|
...organization.trademarkRegistrations.map(
|
|
@@ -207,23 +207,17 @@ async function runOrgsGet(options) {
|
|
|
207
207
|
` pendingServiceApprovals: ${summarizePendingApprovals(organization)}`
|
|
208
208
|
);
|
|
209
209
|
console.log(` legalDocuments: ${summarizeLegalDocuments(organization)}`);
|
|
210
|
-
if (organization.legalDocuments.
|
|
210
|
+
if (letterOfAuthorizationOnFile(organization.legalDocuments).fileUrl) {
|
|
211
211
|
console.log(
|
|
212
|
-
` LOA: ${organization.legalDocuments.
|
|
212
|
+
` LOA: ${letterOfAuthorizationOnFile(organization.legalDocuments).fileUrl}`
|
|
213
213
|
);
|
|
214
214
|
}
|
|
215
|
-
if (organization.legalDocuments.powerOfAttorney.fileUrl) {
|
|
216
|
-
console.log(` POA: ${organization.legalDocuments.powerOfAttorney.fileUrl}`);
|
|
217
|
-
}
|
|
218
215
|
for (const brand of organization.legalDocuments.brands) {
|
|
219
|
-
if (brand.
|
|
216
|
+
if (letterOfAuthorizationOnFile(brand).fileUrl) {
|
|
220
217
|
console.log(
|
|
221
|
-
` ${brand.brandSlug} LOA: ${brand.
|
|
218
|
+
` ${brand.brandSlug} LOA: ${letterOfAuthorizationOnFile(brand).fileUrl}`
|
|
222
219
|
);
|
|
223
220
|
}
|
|
224
|
-
if (brand.powerOfAttorney.fileUrl) {
|
|
225
|
-
console.log(` ${brand.brandSlug} POA: ${brand.powerOfAttorney.fileUrl}`);
|
|
226
|
-
}
|
|
227
221
|
}
|
|
228
222
|
console.log(` trademarks: ${summarizeTrademarks(organization)}`);
|
|
229
223
|
for (const tm of organization.trademarkRegistrations) {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
letterOfAuthorizationOnFile
|
|
3
|
+
} from "./chunk-QZDUVWIQ.js";
|
|
1
4
|
import {
|
|
2
5
|
printOutput,
|
|
3
6
|
toCsvRows
|
|
@@ -11,10 +14,9 @@ import "./chunk-K4RAUZSD.js";
|
|
|
11
14
|
|
|
12
15
|
// src/commands/brands/list.ts
|
|
13
16
|
function summarizeLegalDocs(brand) {
|
|
14
|
-
const loa = brand.legalDocuments.
|
|
15
|
-
const poa = brand.legalDocuments.powerOfAttorney.present ? "yes" : "no";
|
|
17
|
+
const loa = letterOfAuthorizationOnFile(brand.legalDocuments).present ? "yes" : "no";
|
|
16
18
|
const inheritance = brand.useOrganizationDocs ? " (inherits org docs)" : "";
|
|
17
|
-
return `LOA=${loa}
|
|
19
|
+
return `LOA=${loa}${inheritance}`;
|
|
18
20
|
}
|
|
19
21
|
function toRow(brand) {
|
|
20
22
|
return {
|
|
@@ -73,11 +75,10 @@ async function runBrandsList(options) {
|
|
|
73
75
|
parts.push(`legal=${summarizeLegalDocs(brand)}`);
|
|
74
76
|
parts.push(`trademarks=${brand.trademarkRegistrations.length}`);
|
|
75
77
|
const lines = [`- #${brand.id} ${brand.name} (${parts.join(", ")})`];
|
|
76
|
-
if (brand.legalDocuments.
|
|
77
|
-
lines.push(
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
lines.push(` - POA: ${brand.legalDocuments.powerOfAttorney.fileUrl}`);
|
|
78
|
+
if (letterOfAuthorizationOnFile(brand.legalDocuments).fileUrl) {
|
|
79
|
+
lines.push(
|
|
80
|
+
` - LOA: ${letterOfAuthorizationOnFile(brand.legalDocuments).fileUrl}`
|
|
81
|
+
);
|
|
81
82
|
}
|
|
82
83
|
for (const tm of brand.trademarkRegistrations) {
|
|
83
84
|
const extras = [];
|
|
@@ -117,11 +118,10 @@ async function runBrandsList(options) {
|
|
|
117
118
|
parts.push(`legal=${summarizeLegalDocs(brand)}`);
|
|
118
119
|
parts.push(`trademarks=${brand.trademarkRegistrations.length}`);
|
|
119
120
|
console.log(`#${brand.id} ${brand.name} (${parts.join(", ")})`);
|
|
120
|
-
if (brand.legalDocuments.
|
|
121
|
-
console.log(
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
console.log(` POA: ${brand.legalDocuments.powerOfAttorney.fileUrl}`);
|
|
121
|
+
if (letterOfAuthorizationOnFile(brand.legalDocuments).fileUrl) {
|
|
122
|
+
console.log(
|
|
123
|
+
` LOA: ${letterOfAuthorizationOnFile(brand.legalDocuments).fileUrl}`
|
|
124
|
+
);
|
|
125
125
|
}
|
|
126
126
|
for (const tm of brand.trademarkRegistrations) {
|
|
127
127
|
const extras = [];
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
letterOfAuthorizationOnFile
|
|
3
|
+
} from "./chunk-QZDUVWIQ.js";
|
|
1
4
|
import {
|
|
2
5
|
CliExitError,
|
|
3
6
|
ExitCode
|
|
@@ -216,12 +219,11 @@ function summarizeIntegrations(org) {
|
|
|
216
219
|
return parts.length > 0 ? parts.join(" ") : "(none)";
|
|
217
220
|
}
|
|
218
221
|
function summarizeLegalDocuments(org) {
|
|
219
|
-
const loa = org.legalDocuments.
|
|
220
|
-
const poa = org.legalDocuments.powerOfAttorney.present ? "yes" : "no";
|
|
222
|
+
const loa = letterOfAuthorizationOnFile(org.legalDocuments).present ? "yes" : "no";
|
|
221
223
|
const brands = org.legalDocuments.brands.map(
|
|
222
|
-
(brand) => `${brand.brandSlug}(LOA=${brand.
|
|
224
|
+
(brand) => `${brand.brandSlug}(LOA=${letterOfAuthorizationOnFile(brand).present ? "yes" : "no"})`
|
|
223
225
|
);
|
|
224
|
-
return brands.length > 0 ? `LOA=${loa}
|
|
226
|
+
return brands.length > 0 ? `LOA=${loa} brands=${brands.join(",")}` : `LOA=${loa}`;
|
|
225
227
|
}
|
|
226
228
|
function summarizeVisibility(org) {
|
|
227
229
|
return `portal=${org.portalVisibility} reports=${org.reportVisibility} metrics=${org.metricsVisibility}`;
|
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.20.
|
|
5
|
+
"version": "1.20.3",
|
|
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.
|
|
37
|
-
"@chainpatrol/sdk": "1.
|
|
36
|
+
"@chainpatrol/mcp": "1.19.1",
|
|
37
|
+
"@chainpatrol/sdk": "1.22.1",
|
|
38
38
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
39
39
|
"ink": "^7.0.1",
|
|
40
40
|
"meow": "^14.1.0",
|