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
@@ -1,404 +0,0 @@
1
- import { handleLogin } from "./public/login.js";
2
- import { handleAuthStatus } from "./public/authStatus.js";
3
- import { handleLogout } from "./protected/logout.js";
4
- import { handleManageOrganizations } from "./protected/manageOrganizations.js";
5
- import { handleRegisterApp } from "./protected/registerApp.js";
6
- import { handleCheckAppStatus } from "./protected/checkAppStatus.js";
7
- import { handleListApps } from "./protected/listApps.js";
8
- import { handleSelectApp } from "./protected/selectApp.js";
9
- import { handleSubmitAppCredentials } from "./protected/submitAppCredentials.js";
10
- import { handleRunSecurityTest } from "./protected/runSecurityTest.js";
11
- import { handleCheckTaskStatus } from "./protected/checkTaskStatus.js";
12
- import { handleGetVulnerabilities } from "./protected/getVulnerabilities.js";
13
- import { handleSuggestFix } from "./protected/suggestFix.js";
14
- import { handleAutoFix } from "./protected/autoFix.js";
15
- import { handleAutoFixAll } from "./protected/autoFixAll.js";
16
- import { handleGetFixSummary } from "./protected/getFixSummary.js";
17
- import { handleDismissVulnerability, handleReopenVulnerability, handleMarkVulnerabilityFixed } from "./protected/vulnerabilityActions.js";
18
- export declare const PUBLIC_TOOLS: {
19
- readonly login: {
20
- readonly name: "login";
21
- readonly description: string;
22
- readonly inputSchema: {
23
- readonly type: "object";
24
- readonly properties: {
25
- readonly email: {
26
- readonly type: "string";
27
- readonly description: "Perfai account email (optional)";
28
- };
29
- readonly password: {
30
- readonly type: "string";
31
- readonly description: "Perfai account password (optional)";
32
- };
33
- };
34
- readonly additionalProperties: false;
35
- };
36
- };
37
- readonly auth_status: {
38
- readonly name: "auth_status";
39
- readonly description: "🔎 Check whether the server currently holds a valid Perfai session.";
40
- readonly inputSchema: {
41
- readonly type: "object";
42
- readonly properties: {};
43
- readonly additionalProperties: false;
44
- };
45
- };
46
- };
47
- export declare const PROTECTED_TOOLS: {
48
- readonly logout: {
49
- readonly name: "logout";
50
- readonly description: "🚪 Clear the current Perfai session and selected app/task state.";
51
- readonly inputSchema: {
52
- readonly type: "object";
53
- readonly properties: {};
54
- readonly additionalProperties: false;
55
- };
56
- };
57
- readonly manage_organizations: {
58
- readonly name: "manage_organizations";
59
- readonly description: string;
60
- readonly inputSchema: {
61
- readonly type: "object";
62
- readonly properties: {
63
- readonly action: {
64
- readonly type: "string";
65
- readonly enum: readonly ["list", "select", "refresh"];
66
- readonly description: string;
67
- };
68
- readonly sequence: {
69
- readonly type: "number";
70
- readonly description: "Sequence number from the list output (use instead of org_id)";
71
- };
72
- readonly org_id: {
73
- readonly type: "string";
74
- readonly description: "Organization ID to select directly";
75
- };
76
- };
77
- readonly additionalProperties: false;
78
- };
79
- };
80
- readonly register_app: {
81
- readonly name: "register_app";
82
- readonly description: string;
83
- readonly inputSchema: {
84
- readonly type: "object";
85
- readonly properties: {
86
- readonly appUrl: {
87
- readonly type: "string";
88
- readonly description: "Fully-qualified URL of the deployed app, e.g. https://app.example.com";
89
- };
90
- readonly createTestAccounts: {
91
- readonly type: "boolean";
92
- readonly description: "Let Perfai auto sign-up test accounts during onboarding (default: true)";
93
- };
94
- readonly skipEndpoints: {
95
- readonly type: "array";
96
- readonly items: {
97
- readonly type: "string";
98
- };
99
- readonly description: "Optional list of endpoints to exclude from onboarding";
100
- };
101
- readonly tenantOneCredentials: {
102
- readonly type: "object";
103
- readonly description: "Optional credentials to use instead of auto sign-up";
104
- };
105
- };
106
- readonly required: readonly ["appUrl"];
107
- readonly additionalProperties: false;
108
- };
109
- };
110
- readonly check_app_status: {
111
- readonly name: "check_app_status";
112
- readonly description: string;
113
- readonly inputSchema: {
114
- readonly type: "object";
115
- readonly properties: {
116
- readonly appId: {
117
- readonly type: "string";
118
- readonly description: "App ID (defaults to the most recently registered/selected app)";
119
- };
120
- readonly wait_seconds: {
121
- readonly type: "number";
122
- readonly description: "Max seconds to poll before returning current status (default 20, max 240)";
123
- };
124
- };
125
- readonly additionalProperties: false;
126
- };
127
- };
128
- readonly list_apps: {
129
- readonly name: "list_apps";
130
- readonly description: string;
131
- readonly inputSchema: {
132
- readonly type: "object";
133
- readonly properties: {
134
- readonly search: {
135
- readonly type: "string";
136
- readonly description: "Case-insensitive partial match on label/name";
137
- };
138
- readonly page: {
139
- readonly type: "number";
140
- readonly description: "Page number (default 1)";
141
- };
142
- readonly pageSize: {
143
- readonly type: "number";
144
- readonly description: "Results per page, 1-100 (default 20)";
145
- };
146
- };
147
- readonly additionalProperties: false;
148
- };
149
- };
150
- readonly select_app: {
151
- readonly name: "select_app";
152
- readonly description: string;
153
- readonly inputSchema: {
154
- readonly type: "object";
155
- readonly properties: {
156
- readonly appId: {
157
- readonly type: "string";
158
- readonly description: "App ID, e.g. from list_apps";
159
- };
160
- };
161
- readonly required: readonly ["appId"];
162
- readonly additionalProperties: false;
163
- };
164
- };
165
- readonly submit_app_credentials: {
166
- readonly name: "submit_app_credentials";
167
- readonly description: string;
168
- readonly inputSchema: {
169
- readonly type: "object";
170
- readonly properties: {
171
- readonly appId: {
172
- readonly type: "string";
173
- readonly description: "App ID (defaults to the current app)";
174
- };
175
- readonly credentials: {
176
- readonly type: "object";
177
- readonly description: "Credential payload — shape depends on the app's login type (e.g. {\"username\":..., \"password\":...})";
178
- };
179
- };
180
- readonly required: readonly ["credentials"];
181
- readonly additionalProperties: false;
182
- };
183
- };
184
- readonly run_security_test: {
185
- readonly name: "run_security_test";
186
- readonly description: string;
187
- readonly inputSchema: {
188
- readonly type: "object";
189
- readonly properties: {
190
- readonly app: {
191
- readonly type: "string";
192
- readonly description: string;
193
- };
194
- readonly appId: {
195
- readonly type: "string";
196
- readonly description: "App ID (alternative to app; defaults to the current app)";
197
- };
198
- };
199
- readonly additionalProperties: false;
200
- };
201
- };
202
- readonly check_task_status: {
203
- readonly name: "check_task_status";
204
- readonly description: string;
205
- readonly inputSchema: {
206
- readonly type: "object";
207
- readonly properties: {
208
- readonly taskId: {
209
- readonly type: "string";
210
- readonly description: "Task ID (defaults to the most recently started task)";
211
- };
212
- readonly wait_seconds: {
213
- readonly type: "number";
214
- readonly description: "Max seconds to poll before returning current status (default 20, max 240)";
215
- };
216
- };
217
- readonly additionalProperties: false;
218
- };
219
- };
220
- readonly get_vulnerabilities: {
221
- readonly name: "get_vulnerabilities";
222
- readonly description: string;
223
- readonly inputSchema: {
224
- readonly type: "object";
225
- readonly properties: {
226
- readonly app: {
227
- readonly type: "string";
228
- readonly description: string;
229
- };
230
- readonly appId: {
231
- readonly type: "string";
232
- readonly description: "App ID (alternative to app; defaults to the current app)";
233
- };
234
- readonly search: {
235
- readonly type: "string";
236
- readonly description: "Case-insensitive keyword search";
237
- };
238
- readonly page: {
239
- readonly type: "number";
240
- readonly description: "Page number (default 1)";
241
- };
242
- readonly pageSize: {
243
- readonly type: "number";
244
- readonly description: "Results per page, 1-100 (default 20)";
245
- };
246
- };
247
- readonly additionalProperties: false;
248
- };
249
- };
250
- readonly suggest_fix: {
251
- readonly name: "suggest_fix";
252
- readonly description: string;
253
- readonly inputSchema: {
254
- readonly type: "object";
255
- readonly properties: {
256
- readonly vulnerability_id: {
257
- readonly type: "string";
258
- readonly description: "Sequence number from get_vulnerabilities (e.g. '3') or raw vulnerability id";
259
- };
260
- readonly appId: {
261
- readonly type: "string";
262
- readonly description: "App ID (defaults to the current app)";
263
- };
264
- };
265
- readonly required: readonly ["vulnerability_id"];
266
- readonly additionalProperties: false;
267
- };
268
- };
269
- readonly auto_fix: {
270
- readonly name: "auto_fix";
271
- readonly description: string;
272
- readonly inputSchema: {
273
- readonly type: "object";
274
- readonly properties: {
275
- readonly vulnerability_id: {
276
- readonly type: "string";
277
- readonly description: "Sequence number from get_vulnerabilities (e.g. '3') or raw vulnerability id";
278
- };
279
- readonly app: {
280
- readonly type: "string";
281
- readonly description: string;
282
- };
283
- readonly appId: {
284
- readonly type: "string";
285
- readonly description: "App ID (alternative to app; defaults to the current app)";
286
- };
287
- };
288
- readonly required: readonly ["vulnerability_id"];
289
- readonly additionalProperties: false;
290
- };
291
- };
292
- readonly auto_fix_all: {
293
- readonly name: "auto_fix_all";
294
- readonly description: string;
295
- readonly inputSchema: {
296
- readonly type: "object";
297
- readonly properties: {
298
- readonly app: {
299
- readonly type: "string";
300
- readonly description: string;
301
- };
302
- readonly appId: {
303
- readonly type: "string";
304
- readonly description: "App ID (alternative to app; defaults to the current app)";
305
- };
306
- readonly severity: {
307
- readonly type: "string";
308
- readonly enum: readonly ["critical", "high", "medium", "low"];
309
- readonly description: "Only fix vulnerabilities of this severity level";
310
- };
311
- readonly max_fixes: {
312
- readonly type: "number";
313
- readonly description: "Fix only the N most severe open vulnerabilities (default: all)";
314
- };
315
- };
316
- readonly additionalProperties: false;
317
- };
318
- };
319
- readonly get_fix_summary: {
320
- readonly name: "get_fix_summary";
321
- readonly description: string;
322
- readonly inputSchema: {
323
- readonly type: "object";
324
- readonly properties: {
325
- readonly app: {
326
- readonly type: "string";
327
- readonly description: string;
328
- };
329
- readonly appId: {
330
- readonly type: "string";
331
- readonly description: "App ID (alternative to app; defaults to the current app)";
332
- };
333
- };
334
- readonly additionalProperties: false;
335
- };
336
- };
337
- readonly dismiss_vulnerability: {
338
- readonly name: "dismiss_vulnerability";
339
- readonly description: string;
340
- readonly inputSchema: {
341
- readonly properties: {
342
- readonly reason: {
343
- readonly type: "string";
344
- readonly description: string;
345
- };
346
- readonly vulnerability_id: {
347
- readonly type: "string";
348
- readonly description: "Sequence number from get_vulnerabilities (e.g. '3') or raw vulnerability id";
349
- };
350
- readonly appId: {
351
- readonly type: "string";
352
- readonly description: "App ID (defaults to the current app)";
353
- };
354
- };
355
- readonly type: "object";
356
- readonly required: readonly ["vulnerability_id"];
357
- readonly additionalProperties: false;
358
- };
359
- };
360
- readonly reopen_vulnerability: {
361
- readonly name: "reopen_vulnerability";
362
- readonly description: "🔁 Reopen a dismissed/fixed finding (POST /v1/vulnerabilities/{id}/reopen).";
363
- readonly inputSchema: {
364
- readonly type: "object";
365
- readonly properties: {
366
- readonly vulnerability_id: {
367
- readonly type: "string";
368
- readonly description: "Sequence number from get_vulnerabilities (e.g. '3') or raw vulnerability id";
369
- };
370
- readonly appId: {
371
- readonly type: "string";
372
- readonly description: "App ID (defaults to the current app)";
373
- };
374
- };
375
- readonly required: readonly ["vulnerability_id"];
376
- readonly additionalProperties: false;
377
- };
378
- };
379
- readonly mark_vulnerability_fixed: {
380
- readonly name: "mark_vulnerability_fixed";
381
- readonly description: string;
382
- readonly inputSchema: {
383
- readonly properties: {
384
- readonly comment: {
385
- readonly type: "string";
386
- readonly description: "Optional short note on what was changed";
387
- };
388
- readonly vulnerability_id: {
389
- readonly type: "string";
390
- readonly description: "Sequence number from get_vulnerabilities (e.g. '3') or raw vulnerability id";
391
- };
392
- readonly appId: {
393
- readonly type: "string";
394
- readonly description: "App ID (defaults to the current app)";
395
- };
396
- };
397
- readonly type: "object";
398
- readonly required: readonly ["vulnerability_id"];
399
- readonly additionalProperties: false;
400
- };
401
- };
402
- };
403
- export { handleLogin, handleAuthStatus, handleLogout, handleManageOrganizations, handleRegisterApp, handleCheckAppStatus, handleListApps, handleSelectApp, handleSubmitAppCredentials, handleRunSecurityTest, handleCheckTaskStatus, handleGetVulnerabilities, handleSuggestFix, handleAutoFix, handleAutoFixAll, handleGetFixSummary, handleDismissVulnerability, handleReopenVulnerability, handleMarkVulnerabilityFixed, };
404
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAkB,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1E,OAAO,EAAc,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAA2B,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AACxG,OAAO,EAAmB,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAAsB,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,EAAgB,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAiB,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAA4B,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAC3G,OAAO,EAAuB,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5F,OAAO,EAAuB,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5F,OAAO,EAA0B,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AACrG,OAAO,EAAkB,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7E,OAAO,EAAe,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAkB,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7E,OAAO,EAAqB,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,EAEL,0BAA0B,EAE1B,yBAAyB,EAEzB,4BAA4B,EAC7B,MAAM,qCAAqC,CAAC;AAE7C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGf,CAAC;AAEX,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBlB,CAAC;AAEX,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,yBAAyB,EACzB,iBAAiB,EACjB,oBAAoB,EACpB,cAAc,EACd,eAAe,EACf,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,0BAA0B,EAC1B,yBAAyB,EACzB,4BAA4B,GAC7B,CAAC"}
@@ -1,26 +0,0 @@
1
- import { AuthManager } from "../../client/authManager.js";
2
- export declare const autoFixTool: {
3
- readonly name: "auto_fix";
4
- readonly description: string;
5
- readonly inputSchema: {
6
- readonly type: "object";
7
- readonly properties: {
8
- readonly vulnerability_id: {
9
- readonly type: "string";
10
- readonly description: "Sequence number from get_vulnerabilities (e.g. '3') or raw vulnerability id";
11
- };
12
- readonly app: {
13
- readonly type: "string";
14
- readonly description: string;
15
- };
16
- readonly appId: {
17
- readonly type: "string";
18
- readonly description: "App ID (alternative to app; defaults to the current app)";
19
- };
20
- };
21
- readonly required: readonly ["vulnerability_id"];
22
- readonly additionalProperties: false;
23
- };
24
- };
25
- export declare function handleAutoFix(auth: AuthManager, args: any): Promise<any>;
26
- //# sourceMappingURL=autoFix.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"autoFix.d.ts","sourceRoot":"","sources":["../../../src/tools/protected/autoFix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAM1D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;CAuBd,CAAC;AAEX,wBAAsB,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAuD9E"}
@@ -1,30 +0,0 @@
1
- import { AuthManager } from "../../client/authManager.js";
2
- export declare const autoFixAllTool: {
3
- readonly name: "auto_fix_all";
4
- readonly description: string;
5
- readonly inputSchema: {
6
- readonly type: "object";
7
- readonly properties: {
8
- readonly app: {
9
- readonly type: "string";
10
- readonly description: string;
11
- };
12
- readonly appId: {
13
- readonly type: "string";
14
- readonly description: "App ID (alternative to app; defaults to the current app)";
15
- };
16
- readonly severity: {
17
- readonly type: "string";
18
- readonly enum: readonly ["critical", "high", "medium", "low"];
19
- readonly description: "Only fix vulnerabilities of this severity level";
20
- };
21
- readonly max_fixes: {
22
- readonly type: "number";
23
- readonly description: "Fix only the N most severe open vulnerabilities (default: all)";
24
- };
25
- };
26
- readonly additionalProperties: false;
27
- };
28
- };
29
- export declare function handleAutoFixAll(auth: AuthManager, args: any): Promise<any>;
30
- //# sourceMappingURL=autoFixAll.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"autoFixAll.d.ts","sourceRoot":"","sources":["../../../src/tools/protected/autoFixAll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAM1D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BjB,CAAC;AAEX,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CA8CjF"}
@@ -1,21 +0,0 @@
1
- import { AuthManager } from "../../client/authManager.js";
2
- export declare const checkAppStatusTool: {
3
- readonly name: "check_app_status";
4
- readonly description: string;
5
- readonly inputSchema: {
6
- readonly type: "object";
7
- readonly properties: {
8
- readonly appId: {
9
- readonly type: "string";
10
- readonly description: "App ID (defaults to the most recently registered/selected app)";
11
- };
12
- readonly wait_seconds: {
13
- readonly type: "number";
14
- readonly description: "Max seconds to poll before returning current status (default 20, max 240)";
15
- };
16
- };
17
- readonly additionalProperties: false;
18
- };
19
- };
20
- export declare function handleCheckAppStatus(auth: AuthManager, args: any): Promise<any>;
21
- //# sourceMappingURL=checkAppStatus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkAppStatus.d.ts","sourceRoot":"","sources":["../../../src/tools/protected/checkAppStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAM1D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;CAiBrB,CAAC;AAEX,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAuCrF"}
@@ -1,21 +0,0 @@
1
- import { AuthManager } from "../../client/authManager.js";
2
- export declare const checkTaskStatusTool: {
3
- readonly name: "check_task_status";
4
- readonly description: string;
5
- readonly inputSchema: {
6
- readonly type: "object";
7
- readonly properties: {
8
- readonly taskId: {
9
- readonly type: "string";
10
- readonly description: "Task ID (defaults to the most recently started task)";
11
- };
12
- readonly wait_seconds: {
13
- readonly type: "number";
14
- readonly description: "Max seconds to poll before returning current status (default 20, max 240)";
15
- };
16
- };
17
- readonly additionalProperties: false;
18
- };
19
- };
20
- export declare function handleCheckTaskStatus(auth: AuthManager, args: any): Promise<any>;
21
- //# sourceMappingURL=checkTaskStatus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkTaskStatus.d.ts","sourceRoot":"","sources":["../../../src/tools/protected/checkTaskStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAM1D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;CAiBtB,CAAC;AAEX,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAmCtF"}
@@ -1,21 +0,0 @@
1
- import { AuthManager } from "../../client/authManager.js";
2
- export declare const getFixSummaryTool: {
3
- readonly name: "get_fix_summary";
4
- readonly description: string;
5
- readonly inputSchema: {
6
- readonly type: "object";
7
- readonly properties: {
8
- readonly app: {
9
- readonly type: "string";
10
- readonly description: string;
11
- };
12
- readonly appId: {
13
- readonly type: "string";
14
- readonly description: "App ID (alternative to app; defaults to the current app)";
15
- };
16
- };
17
- readonly additionalProperties: false;
18
- };
19
- };
20
- export declare function handleGetFixSummary(auth: AuthManager, args: any): Promise<any>;
21
- //# sourceMappingURL=getFixSummary.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getFixSummary.d.ts","sourceRoot":"","sources":["../../../src/tools/protected/getFixSummary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAM1D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;CAgBpB,CAAC;AAaX,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAgEpF"}
@@ -1,33 +0,0 @@
1
- import { AuthManager } from "../../client/authManager.js";
2
- export declare const getVulnerabilitiesTool: {
3
- readonly name: "get_vulnerabilities";
4
- readonly description: string;
5
- readonly inputSchema: {
6
- readonly type: "object";
7
- readonly properties: {
8
- readonly app: {
9
- readonly type: "string";
10
- readonly description: string;
11
- };
12
- readonly appId: {
13
- readonly type: "string";
14
- readonly description: "App ID (alternative to app; defaults to the current app)";
15
- };
16
- readonly search: {
17
- readonly type: "string";
18
- readonly description: "Case-insensitive keyword search";
19
- };
20
- readonly page: {
21
- readonly type: "number";
22
- readonly description: "Page number (default 1)";
23
- };
24
- readonly pageSize: {
25
- readonly type: "number";
26
- readonly description: "Results per page, 1-100 (default 20)";
27
- };
28
- };
29
- readonly additionalProperties: false;
30
- };
31
- };
32
- export declare function handleGetVulnerabilities(auth: AuthManager, args: any): Promise<any>;
33
- //# sourceMappingURL=getVulnerabilities.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getVulnerabilities.d.ts","sourceRoot":"","sources":["../../../src/tools/protected/getVulnerabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAK1D,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBzB,CAAC;AAEX,wBAAsB,wBAAwB,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAwBzF"}
@@ -1,25 +0,0 @@
1
- import { AuthManager } from "../../client/authManager.js";
2
- export declare const listAppsTool: {
3
- readonly name: "list_apps";
4
- readonly description: string;
5
- readonly inputSchema: {
6
- readonly type: "object";
7
- readonly properties: {
8
- readonly search: {
9
- readonly type: "string";
10
- readonly description: "Case-insensitive partial match on label/name";
11
- };
12
- readonly page: {
13
- readonly type: "number";
14
- readonly description: "Page number (default 1)";
15
- };
16
- readonly pageSize: {
17
- readonly type: "number";
18
- readonly description: "Results per page, 1-100 (default 20)";
19
- };
20
- };
21
- readonly additionalProperties: false;
22
- };
23
- };
24
- export declare function handleListApps(auth: AuthManager, args: any): Promise<any>;
25
- //# sourceMappingURL=listApps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listApps.d.ts","sourceRoot":"","sources":["../../../src/tools/protected/listApps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAI1D,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;CAcf,CAAC;AAEX,wBAAsB,cAAc,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAe/E"}
@@ -1,12 +0,0 @@
1
- import { AuthManager } from "../../client/authManager.js";
2
- export declare const logoutTool: {
3
- readonly name: "logout";
4
- readonly description: "🚪 Clear the current Perfai session and selected app/task state.";
5
- readonly inputSchema: {
6
- readonly type: "object";
7
- readonly properties: {};
8
- readonly additionalProperties: false;
9
- };
10
- };
11
- export declare function handleLogout(auth: AuthManager): Promise<any>;
12
- //# sourceMappingURL=logout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logout.d.ts","sourceRoot":"","sources":["../../../src/tools/protected/logout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,eAAO,MAAM,UAAU;;;;;;;;CAIb,CAAC;AAEX,wBAAsB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,CAGlE"}
@@ -1,26 +0,0 @@
1
- import { AuthManager } from "../../client/authManager.js";
2
- export declare const manageOrganizationsTool: {
3
- readonly name: "manage_organizations";
4
- readonly description: string;
5
- readonly inputSchema: {
6
- readonly type: "object";
7
- readonly properties: {
8
- readonly action: {
9
- readonly type: "string";
10
- readonly enum: readonly ["list", "select", "refresh"];
11
- readonly description: string;
12
- };
13
- readonly sequence: {
14
- readonly type: "number";
15
- readonly description: "Sequence number from the list output (use instead of org_id)";
16
- };
17
- readonly org_id: {
18
- readonly type: "string";
19
- readonly description: "Organization ID to select directly";
20
- };
21
- };
22
- readonly additionalProperties: false;
23
- };
24
- };
25
- export declare function handleManageOrganizations(auth: AuthManager, args: any): Promise<any>;
26
- //# sourceMappingURL=manageOrganizations.d.ts.map