Commit 6c7ad7d
authored
feat(cli): standardize JSON output and sanitize error responses across toolkit packages (#652)
* feat: Add standardized --json output support across all CLI commands.
* feat(cli): standardize --json output and implement security sanitization for error logs and audit events
* security(cli): implement strict input validation and JSON sanitization to prevent information disclosure
* feat(cli): standardize and harden secure JSON output across all ecosystem tools
* Docs Updation
* feat(cli): sanitize error messages and standardize JSON output formats across all toolkit packages
* fix(cli): restore init-integration implementation and fix bare exceptions in main.py patterns
* docs: update CLI documentation to reflect new --json support across toolkit
* fix(cli): fully sanitize error messages and types in JSON output to prevent information leakage
* fix(cli): centralize error handling and normalize identifiers to ensure sanitized, secure CLI output1 parent f811375 commit 6c7ad7d
File tree
15 files changed
+1404
-2030
lines changed- docs/tutorials
- packages
- agent-compliance/src/agent_compliance/cli
- agent-mesh
- docs
- src/agentmesh/cli
- agent-os
- docs
- modules
- control-plane
- iatp/iatp
- mcp-kernel-server/src/mcp_kernel_server
- src/agent_os
- cli
- policies
15 files changed
+1404
-2030
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 14 | | |
48 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
49 | 18 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
53 | 22 | | |
54 | 23 | | |
55 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
182 | 196 | | |
183 | 197 | | |
184 | 198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
478 | 492 | | |
479 | 493 | | |
480 | 494 | | |
| |||
Lines changed: 33 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
18 | 36 | | |
19 | 37 | | |
20 | 38 | | |
21 | 39 | | |
22 | 40 | | |
23 | 41 | | |
24 | | - | |
25 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
26 | 45 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
33 | 52 | | |
34 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
35 | 57 | | |
36 | 58 | | |
37 | 59 | | |
| |||
73 | 95 | | |
74 | 96 | | |
75 | 97 | | |
76 | | - | |
| 98 | + | |
77 | 99 | | |
78 | 100 | | |
79 | 101 | | |
| |||
99 | 121 | | |
100 | 122 | | |
101 | 123 | | |
102 | | - | |
| 124 | + | |
103 | 125 | | |
104 | 126 | | |
105 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| 226 | + | |
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
| |||
0 commit comments