perfai-cloud-mcp 0.3.0 → 0.5.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.
Files changed (104) hide show
  1. package/README.md +45 -24
  2. package/dist/auth/bearerAuth.js +53 -0
  3. package/dist/auth/oauthFlow.js +1 -19
  4. package/dist/auth/pkce.js +0 -8
  5. package/dist/auth/tokenValidator.js +77 -67
  6. package/dist/cli.js +85 -52
  7. package/dist/client/apiClient.js +18 -25
  8. package/dist/client/authManager.js +42 -51
  9. package/dist/client/errors.js +42 -14
  10. package/dist/config.js +35 -38
  11. package/dist/env.js +0 -6
  12. package/dist/log-guard.js +0 -9
  13. package/dist/prompts.js +2 -8
  14. package/dist/server.js +45 -176
  15. package/dist/tools/protected/autoFix.js +0 -1
  16. package/dist/tools/protected/autoFixAll.js +4 -7
  17. package/dist/tools/protected/checkAppStatus.js +34 -32
  18. package/dist/tools/protected/checkTaskStatus.js +29 -28
  19. package/dist/tools/protected/getFixSummary.js +41 -11
  20. package/dist/tools/protected/getVulnerabilities.js +58 -8
  21. package/dist/tools/protected/manageOrganizations.js +4 -5
  22. package/dist/tools/protected/registerApp.js +17 -33
  23. package/dist/tools/protected/runSecurityTest.js +82 -26
  24. package/dist/tools/protected/submitAppCredentials.js +4 -3
  25. package/dist/tools/protected/vulnerabilityActions.js +32 -8
  26. package/dist/tools/public/authStatus.js +2 -2
  27. package/dist/tools/public/login.js +3 -27
  28. package/dist/utils/appResolver.js +25 -85
  29. package/dist/utils/formatters.js +9 -9
  30. package/dist/utils/poll.js +0 -7
  31. package/dist/utils/promptBuilder.js +93 -94
  32. package/dist/utils/registrationState.js +28 -0
  33. package/dist/utils/runState.js +129 -0
  34. package/package.json +6 -2
  35. package/dist/auth/oauthFlow.d.ts +0 -23
  36. package/dist/auth/oauthFlow.d.ts.map +0 -1
  37. package/dist/auth/pkce.d.ts +0 -11
  38. package/dist/auth/pkce.d.ts.map +0 -1
  39. package/dist/auth/tokenValidator.d.ts +0 -40
  40. package/dist/auth/tokenValidator.d.ts.map +0 -1
  41. package/dist/cli.d.ts +0 -3
  42. package/dist/cli.d.ts.map +0 -1
  43. package/dist/client/apiClient.d.ts +0 -36
  44. package/dist/client/apiClient.d.ts.map +0 -1
  45. package/dist/client/authManager.d.ts +0 -61
  46. package/dist/client/authManager.d.ts.map +0 -1
  47. package/dist/client/errors.d.ts +0 -10
  48. package/dist/client/errors.d.ts.map +0 -1
  49. package/dist/client/types.d.ts +0 -72
  50. package/dist/client/types.d.ts.map +0 -1
  51. package/dist/config.d.ts +0 -27
  52. package/dist/config.d.ts.map +0 -1
  53. package/dist/env.d.ts +0 -2
  54. package/dist/env.d.ts.map +0 -1
  55. package/dist/log-guard.d.ts +0 -2
  56. package/dist/log-guard.d.ts.map +0 -1
  57. package/dist/prompts.d.ts +0 -31
  58. package/dist/prompts.d.ts.map +0 -1
  59. package/dist/server.d.ts +0 -4
  60. package/dist/server.d.ts.map +0 -1
  61. package/dist/tools/index.d.ts +0 -404
  62. package/dist/tools/index.d.ts.map +0 -1
  63. package/dist/tools/protected/autoFix.d.ts +0 -26
  64. package/dist/tools/protected/autoFix.d.ts.map +0 -1
  65. package/dist/tools/protected/autoFixAll.d.ts +0 -30
  66. package/dist/tools/protected/autoFixAll.d.ts.map +0 -1
  67. package/dist/tools/protected/checkAppStatus.d.ts +0 -21
  68. package/dist/tools/protected/checkAppStatus.d.ts.map +0 -1
  69. package/dist/tools/protected/checkTaskStatus.d.ts +0 -21
  70. package/dist/tools/protected/checkTaskStatus.d.ts.map +0 -1
  71. package/dist/tools/protected/getFixSummary.d.ts +0 -21
  72. package/dist/tools/protected/getFixSummary.d.ts.map +0 -1
  73. package/dist/tools/protected/getVulnerabilities.d.ts +0 -33
  74. package/dist/tools/protected/getVulnerabilities.d.ts.map +0 -1
  75. package/dist/tools/protected/listApps.d.ts +0 -25
  76. package/dist/tools/protected/listApps.d.ts.map +0 -1
  77. package/dist/tools/protected/logout.d.ts +0 -12
  78. package/dist/tools/protected/logout.d.ts.map +0 -1
  79. package/dist/tools/protected/manageOrganizations.d.ts +0 -26
  80. package/dist/tools/protected/manageOrganizations.d.ts.map +0 -1
  81. package/dist/tools/protected/registerApp.d.ts +0 -33
  82. package/dist/tools/protected/registerApp.d.ts.map +0 -1
  83. package/dist/tools/protected/runSecurityTest.d.ts +0 -21
  84. package/dist/tools/protected/runSecurityTest.d.ts.map +0 -1
  85. package/dist/tools/protected/selectApp.d.ts +0 -18
  86. package/dist/tools/protected/selectApp.d.ts.map +0 -1
  87. package/dist/tools/protected/submitAppCredentials.d.ts +0 -22
  88. package/dist/tools/protected/submitAppCredentials.d.ts.map +0 -1
  89. package/dist/tools/protected/suggestFix.d.ts +0 -22
  90. package/dist/tools/protected/suggestFix.d.ts.map +0 -1
  91. package/dist/tools/protected/vulnerabilityActions.d.ts +0 -70
  92. package/dist/tools/protected/vulnerabilityActions.d.ts.map +0 -1
  93. package/dist/tools/public/authStatus.d.ts +0 -12
  94. package/dist/tools/public/authStatus.d.ts.map +0 -1
  95. package/dist/tools/public/login.d.ts +0 -31
  96. package/dist/tools/public/login.d.ts.map +0 -1
  97. package/dist/utils/appResolver.d.ts +0 -24
  98. package/dist/utils/appResolver.d.ts.map +0 -1
  99. package/dist/utils/formatters.d.ts +0 -8
  100. package/dist/utils/formatters.d.ts.map +0 -1
  101. package/dist/utils/poll.d.ts +0 -19
  102. package/dist/utils/poll.d.ts.map +0 -1
  103. package/dist/utils/promptBuilder.d.ts +0 -26
  104. package/dist/utils/promptBuilder.d.ts.map +0 -1
@@ -0,0 +1,129 @@
1
+ import { APP_TERMINAL_STATES, TASK_TERMINAL_STATES } from "../config.js";
2
+ const OUTCOME_BY_STATUS = {
3
+ COMPLETED: "ready",
4
+ COMPLETED_PARTIAL: "partial",
5
+ NEEDS_INPUT: "needs_input",
6
+ AWAITING_INPUT: "needs_input",
7
+ INTERRUPTED: "interrupted",
8
+ FAILED: "interrupted",
9
+ CANCELLED: "cancelled",
10
+ };
11
+ export function normalizeStatus(status) {
12
+ return (status ?? "").trim().toUpperCase();
13
+ }
14
+ export function outcomeOf(status) {
15
+ return OUTCOME_BY_STATUS[normalizeStatus(status)] ?? "pending";
16
+ }
17
+ export function isTerminalAppStatus(status) {
18
+ return APP_TERMINAL_STATES.has(normalizeStatus(status));
19
+ }
20
+ export function isTerminalTaskStatus(status) {
21
+ return TASK_TERMINAL_STATES.has(normalizeStatus(status));
22
+ }
23
+ export function servedStateOf(record) {
24
+ if (!record)
25
+ return undefined;
26
+ for (const key of ["userState", "user_state"]) {
27
+ const value = record[key];
28
+ if (value && typeof value === "object" && !Array.isArray(value))
29
+ return value;
30
+ }
31
+ if (typeof record.message === "string" && "reason" in record) {
32
+ return { reason: record.reason ?? null, message: record.message };
33
+ }
34
+ return undefined;
35
+ }
36
+ const ACCOUNT_PAUSE_CODES = new Set([
37
+ "NO_SIGNUP_PAGE",
38
+ "NO_AUTH_FOUND",
39
+ "SIGNUP_FORM_FAILED",
40
+ "NEED_WORK_EMAIL",
41
+ "PHONE_REQUIRED",
42
+ "MFA_REQUIRED",
43
+ "OAUTH_ONLY",
44
+ "EMAIL_VERIFICATION_TIMEOUT",
45
+ "INVALID_CREDENTIALS",
46
+ "PHONE_OTP_REQUIRED",
47
+ "MFA_OTP_REQUIRED",
48
+ "CAPTCHA_BLOCKED",
49
+ "LOGIN_FAILED",
50
+ "NO_LOGIN_PAGE",
51
+ "USERNAME_TAKEN",
52
+ "NO_PLUS_ALIAS",
53
+ ]);
54
+ const ACCOUNT_INTERVENTION_TYPES = new Set(["manual_credentials", "manual_account", "otp_mfa"]);
55
+ export function reasonOfIntervention(intervention) {
56
+ if (!intervention)
57
+ return null;
58
+ if (intervention.reason && ACCOUNT_PAUSE_CODES.has(intervention.reason))
59
+ return "needs_login";
60
+ if (intervention.reason === "UI_NOT_ACCESSIBLE")
61
+ return "app_unreachable";
62
+ if (intervention.reason === "NO_ROLES_FOUND")
63
+ return "needs_roles";
64
+ if (intervention.type && ACCOUNT_INTERVENTION_TYPES.has(intervention.type))
65
+ return "needs_login";
66
+ return null;
67
+ }
68
+ const FALLBACK_WORDING = {
69
+ ready: {
70
+ default: { label: "Completed", message: "Finished." },
71
+ },
72
+ partial: {
73
+ needs_login: {
74
+ label: "Completed, needs login",
75
+ message: "Security scan completed, but we couldn't sign in to this app — add test accounts to also test logged-in areas",
76
+ },
77
+ default: {
78
+ label: "Completed — partial",
79
+ message: "Security scan completed, but some checks didn't run. We're looking into it.",
80
+ },
81
+ },
82
+ needs_input: {
83
+ needs_login: {
84
+ label: "Needs login",
85
+ message: "We couldn't sign in to this app — add working test accounts, then retry.",
86
+ },
87
+ needs_roles: { label: "Roles needed", message: "Onboarding is waiting for you to name this app's roles." },
88
+ needs_spec: { label: "Needs spec", message: "We couldn't read that spec — please check and re-upload." },
89
+ app_unreachable: {
90
+ label: "Unreachable",
91
+ message: "We couldn't reach this app — check that it is up, then retry.",
92
+ },
93
+ out_of_credits: { label: "Needs credits", message: "Top up credits to continue." },
94
+ default: { label: "Needs input", message: "Onboarding is waiting for you." },
95
+ },
96
+ interrupted: {
97
+ default: { label: "Interrupted", message: "We hit a snag — we're on it. Your results so far are saved." },
98
+ },
99
+ cancelled: {
100
+ default: { label: "Cancelled", message: "This run was cancelled." },
101
+ },
102
+ };
103
+ export function canStartSecurityTest(view) {
104
+ return view.outcome === "ready" || view.outcome === "partial";
105
+ }
106
+ export const PARTIAL_FINDINGS_NOTE = "get_vulnerabilities lists what was found so far — it does not cover everything, so an area with no " +
107
+ "finding was not necessarily tested.";
108
+ export function onboardingStartedMessage(name) {
109
+ return `🚀 Onboarding ${name}. Say perfai issues later to view issues.`;
110
+ }
111
+ export function stillOnboardingMessage(name) {
112
+ return `⏳ ${name} is still onboarding. Check again later.`;
113
+ }
114
+ export function describeStatus(status, record, intervention) {
115
+ const served = servedStateOf(record);
116
+ const outcome = outcomeOf(served?.state ?? status);
117
+ const reason = served?.reason ?? reasonOfIntervention(intervention);
118
+ if (outcome === "pending") {
119
+ return { outcome, reason, label: served?.label ?? (status || "PENDING"), message: served?.message ?? "" };
120
+ }
121
+ const table = FALLBACK_WORDING[outcome];
122
+ const words = (reason && table[reason]) || table.default;
123
+ return {
124
+ outcome,
125
+ reason,
126
+ label: served?.label || words.label,
127
+ message: served?.message || words.message,
128
+ };
129
+ }
package/package.json CHANGED
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "name": "perfai-cloud-mcp",
3
- "version": "0.3.0",
3
+ "version": "0.5.3",
4
4
  "description": "Standalone MCP client for the hosted Perfai cloud API — register an app by URL, run a security test, pull findings, and get fix prompts from Claude Code, Cursor, or any MCP client.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/PerfAI-Inc/mcp-server.git"
8
+ },
5
9
  "main": "dist/server.js",
6
10
  "bin": {
7
11
  "perfai-cloud-mcp": "dist/server.js",
@@ -14,7 +18,7 @@
14
18
  "LICENSE"
15
19
  ],
16
20
  "scripts": {
17
- "build": "tsc",
21
+ "build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc",
18
22
  "dev": "tsc --watch",
19
23
  "start": "node dist/server.js",
20
24
  "start:http": "MCP_TRANSPORT=http node dist/server.js",
@@ -1,23 +0,0 @@
1
- export interface OAuthTokens {
2
- idToken: string;
3
- accessToken: string;
4
- refreshToken?: string;
5
- expiresIn?: number;
6
- email?: string;
7
- }
8
- /**
9
- * Full Auth0 Authorization Code + PKCE flow.
10
- *
11
- * 1. Generates PKCE code_verifier + code_challenge
12
- * 2. Starts a temporary local HTTP server on OAUTH_CALLBACK_PORT (default 5173)
13
- * 3. Opens the browser to Auth0's /authorize endpoint
14
- * 4. Catches the authorization code via redirect to localhost
15
- * 5. Exchanges the code for id_token + access_token at Auth0's /oauth/token
16
- * 6. Returns the tokens
17
- *
18
- * Reuses the existing login token — no new auth mechanism — just the
19
- * standard Auth0 PKCE handshake that produces the same id_token the
20
- * Perfai API already accepts.
21
- */
22
- export declare function startOAuthBrowserFlow(): Promise<OAuthTokens>;
23
- //# sourceMappingURL=oauthFlow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"oauthFlow.d.ts","sourceRoot":"","sources":["../../src/auth/oauthFlow.ts"],"names":[],"mappings":"AAeA,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAUD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,qBAAqB,IAAI,OAAO,CAAC,WAAW,CAAC,CAiH5D"}
@@ -1,11 +0,0 @@
1
- /**
2
- * Generate a cryptographically random code_verifier (43–128 chars, unreserved charset).
3
- * RFC 7636 §4.1
4
- */
5
- export declare function generateCodeVerifier(length?: number): string;
6
- /**
7
- * Derive the code_challenge from a code_verifier using S256.
8
- * RFC 7636 §4.2
9
- */
10
- export declare function generateCodeChallenge(verifier: string): string;
11
- //# sourceMappingURL=pkce.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pkce.d.ts","sourceRoot":"","sources":["../../src/auth/pkce.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,SAAK,GAAG,MAAM,CAIxD;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE9D"}
@@ -1,40 +0,0 @@
1
- /**
2
- * Lightweight JWT validation for the HTTP transport's bearer auth.
3
- *
4
- * Strategy: call Auth0's /userinfo endpoint with the access_token.
5
- * If Auth0 accepts it, the token is valid and we get the user's email.
6
- * This avoids pulling in a JWKS library while still validating tokens
7
- * against the real authorization server.
8
- *
9
- * For id_tokens (which the Perfai API accepts as Bearer), we also
10
- * support a basic structural check + expiry validation without
11
- * signature verification — the Perfai API itself is the final
12
- * authority on token validity.
13
- */
14
- interface TokenValidation {
15
- valid: boolean;
16
- email?: string;
17
- error?: string;
18
- }
19
- /**
20
- * Check if a bearer token is a structurally valid JWT (three base64url segments).
21
- */
22
- export declare function isJWT(token: string): boolean;
23
- /**
24
- * Decode JWT payload without signature verification.
25
- * Returns null if the token is not a valid JWT.
26
- */
27
- export declare function decodeJWTPayload(token: string): Record<string, unknown> | null;
28
- /**
29
- * Validate a bearer token. Supports:
30
- * 1. Cached tokens (skip re-validation for 30 min)
31
- * 2. JWT tokens — decode payload, check expiry, optionally validate via Auth0 /userinfo
32
- * 3. Opaque tokens — validate via Auth0 /userinfo if AUTH0_DOMAIN is configured
33
- */
34
- export declare function validateBearerToken(token: string): Promise<TokenValidation>;
35
- /**
36
- * Clear the validation cache (useful for logout).
37
- */
38
- export declare function clearTokenCache(): void;
39
- export {};
40
- //# sourceMappingURL=tokenValidator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tokenValidator.d.ts","sourceRoot":"","sources":["../../src/auth/tokenValidator.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AAEH,UAAU,eAAe;IACvB,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAMD;;GAEG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAY5C;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAQ9E;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAqDjF;AAsBD;;GAEG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAEtC"}
package/dist/cli.d.ts DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import "./env.js";
3
- //# sourceMappingURL=cli.d.ts.map
package/dist/cli.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,UAAU,CAAC"}
@@ -1,36 +0,0 @@
1
- import { AuthManager } from "./authManager.js";
2
- import type { AppListResponse, AppRecord, TaskRecord, UserOrganizationsResponse, VulnerabilityListResponse, VulnerabilityRecord } from "./types.js";
3
- export interface RegisterAppInput {
4
- appUrl: string;
5
- tenantOneCredentials?: Record<string, unknown>;
6
- createTestAccounts?: boolean;
7
- skipEndpoints?: string[];
8
- }
9
- export declare function registerApp(auth: AuthManager, input: RegisterAppInput): Promise<AppRecord>;
10
- export declare function getApp(auth: AuthManager, appId: string): Promise<AppRecord>;
11
- export declare function listApps(auth: AuthManager, params: {
12
- page?: number;
13
- pageSize?: number;
14
- search?: string;
15
- }, orgId?: string): Promise<AppListResponse>;
16
- export declare function submitAccountSetup(auth: AuthManager, appId: string, credentials: Record<string, unknown>): Promise<TaskRecord>;
17
- export declare function runSecurityAgent(auth: AuthManager, appId: string): Promise<TaskRecord>;
18
- export declare function getTask(auth: AuthManager, taskId: string): Promise<TaskRecord>;
19
- export declare function getVulnerabilities(auth: AuthManager, appId: string, params: {
20
- page?: number;
21
- pageSize?: number;
22
- search?: string;
23
- }): Promise<VulnerabilityListResponse>;
24
- /** Pages through every finding for an app (the API caps pageSize at 100). */
25
- export declare function getAllVulnerabilities(auth: AuthManager, appId: string): Promise<VulnerabilityRecord[]>;
26
- export declare function dismissVulnerability(auth: AuthManager, id: string, comment?: string): Promise<unknown>;
27
- export declare function reopenVulnerability(auth: AuthManager, id: string): Promise<unknown>;
28
- export declare function fixVulnerability(auth: AuthManager, id: string, comment?: string): Promise<unknown>;
29
- /**
30
- * Lists the organizations (tenants) this account belongs to, plus whichever
31
- * one the account was last using. Separate base URL from the rest of the
32
- * API (lives under /api/v1, not /v1), so this bypasses the shared request()
33
- * helper rather than fighting its baseURL binding.
34
- */
35
- export declare function getUserOrganizations(auth: AuthManager): Promise<UserOrganizationsResponse>;
36
- //# sourceMappingURL=apiClient.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apiClient.d.ts","sourceRoot":"","sources":["../../src/client/apiClient.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,KAAK,EACV,eAAe,EACf,SAAS,EACT,UAAU,EACV,yBAAyB,EACzB,yBAAyB,EACzB,mBAAmB,EACpB,MAAM,YAAY,CAAC;AAwDpB,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/C,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,SAAS,CAAC,CAE1F;AAED,wBAAgB,MAAM,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAE3E;AAED,wBAAgB,QAAQ,CACtB,IAAI,EAAE,WAAW,EACjB,MAAM,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,EAC7D,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,eAAe,CAAC,CAE1B;AAED,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACnC,OAAO,CAAC,UAAU,CAAC,CAMrB;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAKtF;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAE9E;AAED,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAC5D,OAAO,CAAC,yBAAyB,CAAC,CAMpC;AAED,6EAA6E;AAC7E,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAO5G;AAQD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAMtG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAEnF;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAMlG;AAED;;;;;GAKG;AACH,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAoBhG"}
@@ -1,61 +0,0 @@
1
- import type { OrganizationRecord, VulnerabilityRecord } from "./types.js";
2
- export type AuthMethod = "credentials" | "token" | "oauth" | "none";
3
- /**
4
- * Holds the auth token plus the small amount of "current selection" state
5
- * (app / task / cached vulnerability sequence numbers) that lets tools refer
6
- * to things by short-lived sequence numbers instead of raw IDs, matching the
7
- * UX of listing something then acting on "#3".
8
- */
9
- export declare class AuthManager {
10
- private email?;
11
- private password?;
12
- private idToken?;
13
- private authenticatedEmail?;
14
- private authMethod;
15
- currentAppId?: string;
16
- currentAppUrl?: string;
17
- currentTaskId?: string;
18
- private vulnCache;
19
- private vulnCacheAppId?;
20
- private organizations;
21
- private selectedOrgId?;
22
- private defaultOrgId?;
23
- /** appId → org it lives in, for apps surfaced by a cross-org name lookup. */
24
- private appOrgHints;
25
- constructor();
26
- hasCredentials(): boolean;
27
- setCredentials(email: string, password: string): void;
28
- /**
29
- * Accept a pre-existing id_token directly — no email/password exchange.
30
- * Used by: PERFAI_TOKEN env var, OAuth PKCE browser flow, HTTP bearer auth.
31
- */
32
- setToken(token: string, email?: string, method?: AuthMethod): void;
33
- isAuthenticated(): boolean;
34
- getToken(): string | undefined;
35
- getAuthenticatedEmail(): string | undefined;
36
- getAuthMethod(): AuthMethod;
37
- login(email?: string, password?: string): Promise<string>;
38
- logout(): void;
39
- /** Returns the cached org list (empty until manage_organizations fetches it). */
40
- getOrganizations(): OrganizationRecord[];
41
- getSelectedOrgId(): string | undefined;
42
- /** Selects an org by ID; subsequent API calls send it as X-Org-ID. */
43
- setSelectedOrgId(orgId: string): void;
44
- /** Caches the org list from get_users_orgs; auto-selects currentOrgId, or
45
- * the first org if nothing is selected yet (mirrors login-time default). */
46
- setOrganizations(organizations: OrganizationRecord[], currentOrgId?: string): void;
47
- /** The org the API falls back to when no X-Org-ID is sent (currentOrg from get_users_orgs). */
48
- getDefaultOrgId(): string | undefined;
49
- /** Caches the org list for app-name resolution WITHOUT changing the selected org. */
50
- cacheOrganizationList(organizations: OrganizationRecord[], defaultOrgId?: string): void;
51
- rememberAppOrg(appId: string, orgId: string): void;
52
- getAppOrg(appId: string): string | undefined;
53
- setCurrentApp(appId: string, appUrl?: string): void;
54
- /** Caches a vulnerability page (keyed by 1-based sequence number) so tools can refer to "#3". */
55
- cacheVulnerabilities(appId: string, vulnerabilities: VulnerabilityRecord[]): void;
56
- /** Looks up a cached vulnerability by sequence number ("3") or raw ID, if it was seen in the last listing. */
57
- getCachedVulnerability(appId: string, idOrSequence: string): VulnerabilityRecord | undefined;
58
- /** Resolves a raw vulnerability ID or a cached sequence number ("3") to an ID. */
59
- resolveVulnerabilityId(appId: string, idOrSequence: string): string;
60
- }
61
- //# sourceMappingURL=authManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"authManager.d.ts","sourceRoot":"","sources":["../../src/client/authManager.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAE1E,MAAM,MAAM,UAAU,GAAG,aAAa,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;AAEpE;;;;;GAKG;AACH,qBAAa,WAAW;IACtB,OAAO,CAAC,KAAK,CAAC,CAAwB;IACtC,OAAO,CAAC,QAAQ,CAAC,CAA2B;IAC5C,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,kBAAkB,CAAC,CAAS;IACpC,OAAO,CAAC,UAAU,CAAsB;IAExC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,OAAO,CAAC,SAAS,CAA0C;IAC3D,OAAO,CAAC,cAAc,CAAC,CAAS;IAEhC,OAAO,CAAC,aAAa,CAA4B;IACjD,OAAO,CAAC,aAAa,CAAC,CAAS;IAC/B,OAAO,CAAC,YAAY,CAAC,CAAS;IAC9B,6EAA6E;IAC7E,OAAO,CAAC,WAAW,CAA6B;;IAWhD,cAAc,IAAI,OAAO;IAIzB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;IAKrD;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,GAAE,UAAoB,GAAG,IAAI;IAgB3E,eAAe,IAAI,OAAO;IAI1B,QAAQ,IAAI,MAAM,GAAG,SAAS;IAI9B,qBAAqB,IAAI,MAAM,GAAG,SAAS;IAI3C,aAAa,IAAI,UAAU;IAIrB,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAyC/D,MAAM,IAAI,IAAI;IAed,iFAAiF;IACjF,gBAAgB,IAAI,kBAAkB,EAAE;IAIxC,gBAAgB,IAAI,MAAM,GAAG,SAAS;IAItC,sEAAsE;IACtE,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAIrC;iFAC6E;IAC7E,gBAAgB,CAAC,aAAa,EAAE,kBAAkB,EAAE,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI;IAUlF,+FAA+F;IAC/F,eAAe,IAAI,MAAM,GAAG,SAAS;IAIrC,qFAAqF;IACrF,qBAAqB,CAAC,aAAa,EAAE,kBAAkB,EAAE,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI;IAKvF,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAIlD,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAI5C,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;IAKnD,iGAAiG;IACjG,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,mBAAmB,EAAE,GAAG,IAAI;IAMjF,8GAA8G;IAC9G,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS;IAa5F,kFAAkF;IAClF,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM;CAKpE"}
@@ -1,10 +0,0 @@
1
- import type { AxiosError } from "axios";
2
- /** An API failure that preserves the status + RFC 9457 Problem Details body, so callers can react to specific fields (e.g. an existing appId on a 409). */
3
- export declare class ApiError extends Error {
4
- readonly status: number | undefined;
5
- readonly data: Record<string, unknown> | undefined;
6
- constructor(message: string, status: number | undefined, data: Record<string, unknown> | undefined);
7
- }
8
- /** Formats an axios error whose body follows RFC 9457 Problem Details into a readable message. */
9
- export declare function formatApiError(error: AxiosError): string;
10
- //# sourceMappingURL=errors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/client/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAExC,2JAA2J;AAC3J,qBAAa,QAAS,SAAQ,KAAK;aAGf,MAAM,EAAE,MAAM,GAAG,SAAS;aAC1B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;gBAFzD,OAAO,EAAE,MAAM,EACC,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;CAK5D;AAED,kGAAkG;AAClG,wBAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAqBxD"}
@@ -1,72 +0,0 @@
1
- export interface ProblemDetails {
2
- type?: string;
3
- title?: string;
4
- status?: number;
5
- [key: string]: unknown;
6
- }
7
- export interface AppRecord {
8
- appId: string;
9
- appUrl?: string;
10
- label?: string;
11
- name?: string;
12
- registrationStatus?: string;
13
- statusUrl?: string;
14
- [key: string]: unknown;
15
- }
16
- export interface OrganizationRecord {
17
- org_id: string;
18
- name?: string;
19
- orgDetails?: {
20
- name?: string;
21
- [key: string]: unknown;
22
- };
23
- [key: string]: unknown;
24
- }
25
- export interface UserOrganizationsResponse {
26
- data?: {
27
- userOrgs?: OrganizationRecord[];
28
- currentOrg?: string;
29
- };
30
- [key: string]: unknown;
31
- }
32
- export interface AppListResponse {
33
- total: number;
34
- page: number;
35
- pageSize: number;
36
- data: AppRecord[];
37
- }
38
- export interface TaskRecord {
39
- taskId: string;
40
- state?: string;
41
- statusUrl?: string;
42
- [key: string]: unknown;
43
- }
44
- export interface VulnerabilityRecord {
45
- id?: string;
46
- _id?: string;
47
- severity?: string;
48
- isFixed?: boolean;
49
- isDismissed?: boolean;
50
- /** A fix was claimed via POST /fix; isFixed only flips once a later scan confirms it. */
51
- fixClaimed?: boolean;
52
- title?: string;
53
- label?: string;
54
- category?: string;
55
- description?: string;
56
- remediation?: string;
57
- recommendation?: string;
58
- method?: string;
59
- path?: string;
60
- [key: string]: unknown;
61
- }
62
- export interface VulnerabilityListResponse {
63
- total: number;
64
- page: number;
65
- pageSize: number;
66
- data: VulnerabilityRecord[];
67
- }
68
- export interface Credentials {
69
- email: string;
70
- password: string;
71
- }
72
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/client/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IACvD,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,CAAC,EAAE;QACL,QAAQ,CAAC,EAAE,kBAAkB,EAAE,CAAC;QAChC,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,SAAS,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,yFAAyF;IACzF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,mBAAmB,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB"}
package/dist/config.d.ts DELETED
@@ -1,27 +0,0 @@
1
- export declare const SERVER_INFO: {
2
- name: string;
3
- version: string;
4
- };
5
- export declare const SERVER_INSTRUCTIONS: string;
6
- export declare const AUTH_TOKEN_URL: string;
7
- export declare const API_BASE_URL: string;
8
- export declare const ORGANIZATIONS_URL: string;
9
- export declare const PERFAI_EMAIL: string | undefined;
10
- export declare const PERFAI_PASSWORD: string | undefined;
11
- export declare const PERFAI_TOKEN: string | undefined;
12
- export declare const AUTH0_DOMAIN: string;
13
- export declare const AUTH0_CLIENT_ID: string;
14
- export declare const AUTH0_AUDIENCE: string;
15
- export declare const OAUTH_CALLBACK_PORT: number;
16
- export declare const OAUTH_SCOPES: string;
17
- export declare const LOGIN_WAIT_MS: number;
18
- export declare const POLL_START_MS = 5000;
19
- export declare const POLL_MAX_INTERVAL_MS = 60000;
20
- export declare const POLL_TASK_TIMEOUT_MS: number;
21
- export declare const POLL_REGISTRATION_TIMEOUT_MS: number;
22
- export declare const DEFAULT_TOOL_POLL_BUDGET_MS = 8000;
23
- export declare const MAX_TOOL_POLL_BUDGET_MS = 240000;
24
- export declare const FIX_BATCH_SIZE = 15;
25
- export declare const TASK_TERMINAL_STATES: Set<string>;
26
- export declare const APP_TERMINAL_STATES: Set<string>;
27
- //# sourceMappingURL=config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,WAAW;;;CAGvB,CAAC;AAGF,eAAO,MAAM,mBAAmB,QAQqB,CAAC;AAOtD,eAAO,MAAM,cAAc,QAA0C,CAAC;AACtE,eAAO,MAAM,YAAY,QAA2B,CAAC;AAIrD,eAAO,MAAM,iBAAiB,QAAwD,CAAC;AAGvF,eAAO,MAAM,YAAY,oBAA2B,CAAC;AACrD,eAAO,MAAM,eAAe,oBAA8B,CAAC;AAI3D,eAAO,MAAM,YAAY,oBAA2B,CAAC;AAKrD,eAAO,MAAM,YAAY,QAA+C,CAAC;AACzE,eAAO,MAAM,eAAe,QAAoE,CAAC;AACjG,eAAO,MAAM,cAAc,QAAmC,CAAC;AAC/D,eAAO,MAAM,mBAAmB,QAA0D,CAAC;AAC3F,eAAO,MAAM,YAAY,QAAoE,CAAC;AAI9F,eAAO,MAAM,aAAa,QAA8D,CAAC;AAIzF,eAAO,MAAM,aAAa,OAAQ,CAAC;AACnC,eAAO,MAAM,oBAAoB,QAAS,CAAC;AAC3C,eAAO,MAAM,oBAAoB,QAAiB,CAAC;AACnD,eAAO,MAAM,4BAA4B,QAAiB,CAAC;AAS3D,eAAO,MAAM,2BAA2B,OAAQ,CAAC;AACjD,eAAO,MAAM,uBAAuB,SAAU,CAAC;AAK/C,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC,eAAO,MAAM,oBAAoB,aAK/B,CAAC;AAEH,eAAO,MAAM,mBAAmB,aAG9B,CAAC"}
package/dist/env.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=env.d.ts.map
package/dist/env.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=log-guard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"log-guard.d.ts","sourceRoot":"","sources":["../src/log-guard.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,CAAC"}
package/dist/prompts.d.ts DELETED
@@ -1,31 +0,0 @@
1
- /**
2
- * MCP prompts — clients that support them (e.g. Claude Code exposes them as
3
- * /mcp__<server>__fix_all) get a real slash command, so the one-line fix
4
- * doesn't depend on how an agent reads a sentence. Each prompt just expands
5
- * into a message that makes a single auto_fix_all call.
6
- */
7
- export declare const PROMPTS: {
8
- name: string;
9
- description: string;
10
- arguments: {
11
- name: string;
12
- description: string;
13
- required: boolean;
14
- }[];
15
- }[];
16
- /** Maps "all" / "critical" / "3" / "top 3" / "#3" onto auto_fix_all arguments. */
17
- export declare function parseFixTarget(target?: string): {
18
- severity?: string;
19
- max_fixes?: number;
20
- };
21
- export declare function getPrompt(name: string, args?: Record<string, string>): {
22
- description: string;
23
- messages: {
24
- role: "user";
25
- content: {
26
- type: "text";
27
- text: string;
28
- };
29
- }[];
30
- } | undefined;
31
- //# sourceMappingURL=prompts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,eAAO,MAAM,OAAO;;;;;;;;GAcnB,CAAC;AAEF,kFAAkF;AAClF,wBAAgB,cAAc,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAMzF;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM;;;;;;;;;cAqBxE"}
package/dist/server.d.ts DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env node
2
- import "./log-guard.js";
3
- import "./env.js";
4
- //# sourceMappingURL=server.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";AAGA,OAAO,gBAAgB,CAAC;AAExB,OAAO,UAAU,CAAC"}