@jupiterone/jupiterone-mcp 0.6.1 → 0.6.2
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/dist/generated/description-map.js +1 -1
- package/dist/generated/description-map.js.map +1 -1
- package/dist/server/mcp-server.d.ts.map +1 -1
- package/dist/server/mcp-server.js +9 -3
- package/dist/server/mcp-server.js.map +1 -1
- package/dist/server/tools/account.js +2 -2
- package/dist/server/tools/account.js.map +1 -1
- package/dist/server/tools/errors.d.ts +10 -3
- package/dist/server/tools/errors.d.ts.map +1 -1
- package/dist/server/tools/errors.js +17 -18
- package/dist/server/tools/errors.js.map +1 -1
- package/package.json +1 -1
|
@@ -1664,7 +1664,7 @@ Test the connection:
|
|
|
1664
1664
|
## Returns
|
|
1665
1665
|
- \`connected\`: whether the account could be reached and authorized.
|
|
1666
1666
|
- \`account\`: account details when \`connected\` is true.
|
|
1667
|
-
- \`reason\`: when \`connected\` is false, why. A "Not authorized" reason means your access to that account may have been revoked or the account requires a different sign-in (e.g. SSO)
|
|
1667
|
+
- \`reason\`: when \`connected\` is false, why. A "Not authorized" reason means your access to that account may have been revoked or the account requires a different sign-in (e.g. SSO); the \`reason\` text includes guidance on what to try next.`,
|
|
1668
1668
|
"update-dashboard.md": `Patch an existing dashboard's layout configuration. This tool is primarily used for modifying the layout of widgets on a dashboard after they have been created.
|
|
1669
1669
|
You will always want to call this after creating a dashboard and all its widgets so you can give a favorable layout to the user. Widgets should always have a size specified.
|
|
1670
1670
|
The layout configuration is organized by screen breakpoint sizes (xs, sm, md, lg, xl) and includes positioning information for each widget. Each layout item contains:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description-map.js","sourceRoot":"","sources":["../../src/generated/description-map.ts"],"names":[],"mappings":";;;AAAA,2CAA2C;AAC9B,QAAA,cAAc,GAA2B;IACpD,4BAA4B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gHA6a4E;CAC/G,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../../src/server/mcp-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAIpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAM1D,OAAO,KAAK,EAAE,eAAe,EAA2C,MAAM,kBAAkB,CAAC;AACjG,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAsB3E,MAAM,WAAW,0BAA0B;IACzC,6EAA6E;IAC7E,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAED,qBAAa,mBAAmB;IACvB,MAAM,EAAE,SAAS,CAAC;IACzB,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,SAAS,CAAgB;IACjC,OAAO,CAAC,aAAa,CAAU;IAC/B,OAAO,CAAC,SAAS,CAAgB;IACjC,OAAO,CAAC,YAAY,CAAC,CAAS;IAC9B,OAAO,CAAC,eAAe,CAAC,CAAkB;gBAE9B,MAAM,EAAE,gBAAgB,EAAE,OAAO,GAAE,0BAA+B;IAoB9E;;;OAGG;IACH,OAAO,CAAC,WAAW;IAInB;;;;OAIG;IACH,OAAO,CAAC,QAAQ;YAmCF,MAAM;
|
|
1
|
+
{"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../../src/server/mcp-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAIpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAM1D,OAAO,KAAK,EAAE,eAAe,EAA2C,MAAM,kBAAkB,CAAC;AACjG,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAsB3E,MAAM,WAAW,0BAA0B;IACzC,6EAA6E;IAC7E,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAED,qBAAa,mBAAmB;IACvB,MAAM,EAAE,SAAS,CAAC;IACzB,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,SAAS,CAAgB;IACjC,OAAO,CAAC,aAAa,CAAU;IAC/B,OAAO,CAAC,SAAS,CAAgB;IACjC,OAAO,CAAC,YAAY,CAAC,CAAS;IAC9B,OAAO,CAAC,eAAe,CAAC,CAAkB;gBAE9B,MAAM,EAAE,gBAAgB,EAAE,OAAO,GAAE,0BAA+B;IAoB9E;;;OAGG;IACH,OAAO,CAAC,WAAW;IAInB;;;;OAIG;IACH,OAAO,CAAC,QAAQ;YAmCF,MAAM;IAiEd,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAKtB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
|
|
@@ -114,9 +114,15 @@ class JupiterOneMcpServer {
|
|
|
114
114
|
catch (error) {
|
|
115
115
|
outcome = 'error';
|
|
116
116
|
errorClass = error instanceof Error ? error.constructor.name : 'UnknownError';
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
// Frame auth/permission failures once, here, so the message can reflect whether account
|
|
118
|
+
// discovery is available (multi-tenant) — ahead of any tool-specific formatError.
|
|
119
|
+
const deniedStatus = (0, errors_js_1.accessDeniedStatus)(error);
|
|
120
|
+
result =
|
|
121
|
+
deniedStatus !== null
|
|
122
|
+
? (0, errors_js_1.accessDeniedResult)(deniedStatus, !!this.resolveAccounts)
|
|
123
|
+
: tool.formatError
|
|
124
|
+
? tool.formatError(error, toolParams, validator)
|
|
125
|
+
: (0, errors_js_1.toErrorResponse)(error, tool.errorContext);
|
|
120
126
|
return result;
|
|
121
127
|
}
|
|
122
128
|
finally {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-server.js","sourceRoot":"","sources":["../../src/server/mcp-server.ts"],"names":[],"mappings":";;;AAAA,oEAAoE;AACpE,wEAAiF;AACjF,6BAAwB;AACxB,yEAAkE;AAElE,qDAA6C;AAE7C,kEAA2D;AAC3D,+CAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"mcp-server.js","sourceRoot":"","sources":["../../src/server/mcp-server.ts"],"names":[],"mappings":";;;AAAA,oEAAoE;AACpE,wEAAiF;AACjF,6BAAwB;AACxB,yEAAkE;AAElE,qDAA6C;AAE7C,kEAA2D;AAC3D,+CAA4C;AAC5C,iDAA4F;AAE5F,uDAA2E;AAC3E,+CAAmF;AAgCnF,MAAa,mBAAmB;IACvB,MAAM,CAAY;IACjB,MAAM,CAAmB;IACzB,SAAS,CAAgB;IACzB,aAAa,CAAU;IACvB,SAAS,CAAgB;IACzB,YAAY,CAAU;IACtB,eAAe,CAAmB;IAE1C,YAAY,MAAwB,EAAE,UAAsC,EAAE;QAC5E,IAAI,CAAC,MAAM,GAAG,IAAI,uCAAgB,CAAC,MAAM,CAAC,CAAC;QAC3C,IAAI,CAAC,SAAS,GAAG,IAAI,iCAAa,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAC5D,IAAI,CAAC,MAAM,GAAG,IAAI,kBAAS,CAAC;YAC1B,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAP,sBAAO;SACR,CAAC,CAAC;QACH,IAAI,CAAC,aAAa,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC;QACvC,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,SAAS,IAAI,SAAS,CAAC;QAClD,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,8BAAe,CAAC;QACtD,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;QAE/C,KAAK,MAAM,IAAI,IAAI,mBAAQ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AK;QACT,MAAM,SAAS,GAAG,IAAI,+BAAoB,EAAE,CAAC;QAC7C,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACvC,CAAC;IAED,KAAK,CAAC,IAAI;QACR,oBAAoB;IACtB,CAAC;CACF;AAtJD,kDAsJC"}
|
|
@@ -29,7 +29,7 @@ exports.accountTools = [
|
|
|
29
29
|
outputSchema: testConnectionOutput,
|
|
30
30
|
annotations: types_js_1.READ_ONLY,
|
|
31
31
|
errorContext: 'Connection test failed',
|
|
32
|
-
handler: async (_params, client) => {
|
|
32
|
+
handler: async (_params, client, _validator, context) => {
|
|
33
33
|
try {
|
|
34
34
|
const account = await client.getAccountInfo();
|
|
35
35
|
return (0, result_js_1.structuredResult)({ connected: true, account, version: package_json_1.version });
|
|
@@ -37,7 +37,7 @@ exports.accountTools = [
|
|
|
37
37
|
catch (error) {
|
|
38
38
|
const deniedStatus = (0, errors_js_1.accessDeniedStatus)(error);
|
|
39
39
|
const reason = deniedStatus !== null
|
|
40
|
-
? (0, errors_js_1.accessDeniedMessage)(deniedStatus)
|
|
40
|
+
? (0, errors_js_1.accessDeniedMessage)(deniedStatus, !!context.resolveAccounts)
|
|
41
41
|
: error instanceof Error
|
|
42
42
|
? error.message
|
|
43
43
|
: 'Unknown error';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../src/server/tools/account.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wDAAgD;AAChD,yEAAkE;AAClE,2CAAsE;AACtE,2CAA+C;AAC/C,yCAAwE;AAExE,MAAM,oBAAoB,GAAG;IAC3B,SAAS,EAAE,OAAC,CAAC,OAAO,EAAE;IACtB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC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EAAE,eAAe;QACtB,WAAW,EAAE,IAAA,qCAAe,EAAC,kBAAkB,CAAC;QAChD,WAAW,EAAE,EAAE;QACf,YAAY,EAAE,kBAAkB;QAChC,WAAW,EAAE,oBAAS;QACtB,eAAe,EAAE,IAAI;QACrB,uBAAuB,EAAE,IAAI;QAC7B,YAAY,EAAE,yBAAyB;QACvC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE;YACvD,MAAM,QAAQ,GAAG,CAAC,MAAM,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;YAC3D,OAAO,IAAA,4BAAgB,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;QACxC,CAAC;KACF,CAAC;CACH,CAAC"}
|
|
@@ -7,11 +7,18 @@ import type { ToolResult } from './types.js';
|
|
|
7
7
|
* — revoked, disabled, or gated behind SSO — so these need their own message, not a raw envelope.
|
|
8
8
|
*/
|
|
9
9
|
export declare function accessDeniedStatus(error: unknown): number | null;
|
|
10
|
-
/**
|
|
11
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Agent-facing message for an access-denied upstream response. The guidance is tenancy-aware:
|
|
12
|
+
* `list-accounts` and "try another accountId" only make sense when the host supplies an account
|
|
13
|
+
* resolver (multi-tenant). With a fixed account (single-tenant subdomain / env account) there is
|
|
14
|
+
* no discovery tool and no account to switch to, so steer the caller to re-authenticate instead.
|
|
15
|
+
*/
|
|
16
|
+
export declare function accessDeniedMessage(statusCode: number, hasAccountDiscovery: boolean): string;
|
|
17
|
+
export declare function accessDeniedResult(statusCode: number, hasAccountDiscovery: boolean): ToolResult;
|
|
12
18
|
/**
|
|
13
19
|
* Generic error envelope for a thrown handler. Upstream GraphQL errors are already sanitized at
|
|
14
|
-
* the shared client (S9), so `error.message` is safe to surface here.
|
|
20
|
+
* the shared client (S9), so `error.message` is safe to surface here. Access-denied (401/403)
|
|
21
|
+
* errors are framed by the registration chokepoint before this is reached.
|
|
15
22
|
*/
|
|
16
23
|
export declare function toErrorResponse(error: unknown, context: string): ToolResult;
|
|
17
24
|
/** Validate each J1QL query in a rule/widget definition before the create/update call. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/server/tools/errors.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAI7C;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAShE;AAED
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/server/tools/errors.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAI7C;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAShE;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,mBAAmB,EAAE,OAAO,GAAG,MAAM,CAS5F;AAED,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAK/F;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,UAAU,CAM3E;AAED,0FAA0F;AAC1F,wBAAsB,eAAe,CACnC,OAAO,EAAE,KAAK,EAAE,GAAG,SAAS,EAC5B,SAAS,EAAE,aAAa,GACvB,OAAO,CAAC,KAAK,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAiB1E;AAED,+FAA+F;AAC/F,wBAAgB,6BAA6B,CAC3C,iBAAiB,EAAE,KAAK,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,GACjF,UAAU,CAYZ;AAED,qGAAqG;AACrG,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,OAAO,EACd,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,aAAa,GACvB,UAAU,CAYZ"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.accessDeniedStatus = accessDeniedStatus;
|
|
4
4
|
exports.accessDeniedMessage = accessDeniedMessage;
|
|
5
|
+
exports.accessDeniedResult = accessDeniedResult;
|
|
5
6
|
exports.toErrorResponse = toErrorResponse;
|
|
6
7
|
exports.validateQueries = validateQueries;
|
|
7
8
|
exports.createValidationErrorResponse = createValidationErrorResponse;
|
|
@@ -21,28 +22,32 @@ function accessDeniedStatus(error) {
|
|
|
21
22
|
}
|
|
22
23
|
return null;
|
|
23
24
|
}
|
|
24
|
-
/**
|
|
25
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Agent-facing message for an access-denied upstream response. The guidance is tenancy-aware:
|
|
27
|
+
* `list-accounts` and "try another accountId" only make sense when the host supplies an account
|
|
28
|
+
* resolver (multi-tenant). With a fixed account (single-tenant subdomain / env account) there is
|
|
29
|
+
* no discovery tool and no account to switch to, so steer the caller to re-authenticate instead.
|
|
30
|
+
*/
|
|
31
|
+
function accessDeniedMessage(statusCode, hasAccountDiscovery) {
|
|
32
|
+
const guidance = hasAccountDiscovery
|
|
33
|
+
? 'Use `list-accounts` to review your account memberships and try another accountId — note ' +
|
|
34
|
+
'that a listed account is not a guarantee of live access.'
|
|
35
|
+
: 'Verify your access to this account and re-authenticate if needed.';
|
|
26
36
|
return (`Not authorized for this account (HTTP ${statusCode}). Your access may have been revoked, ` +
|
|
27
|
-
`or the account may require a different sign-in method such as SSO.
|
|
28
|
-
`review your account memberships and try another accountId — note that a listed account is ` +
|
|
29
|
-
`not a guarantee of live access.`);
|
|
37
|
+
`or the account may require a different sign-in method such as SSO. ${guidance}`);
|
|
30
38
|
}
|
|
31
|
-
function accessDeniedResult(statusCode) {
|
|
39
|
+
function accessDeniedResult(statusCode, hasAccountDiscovery) {
|
|
32
40
|
return {
|
|
33
|
-
content: [{ type: 'text', text: accessDeniedMessage(statusCode) }],
|
|
41
|
+
content: [{ type: 'text', text: accessDeniedMessage(statusCode, hasAccountDiscovery) }],
|
|
34
42
|
isError: true,
|
|
35
43
|
};
|
|
36
44
|
}
|
|
37
45
|
/**
|
|
38
46
|
* Generic error envelope for a thrown handler. Upstream GraphQL errors are already sanitized at
|
|
39
|
-
* the shared client (S9), so `error.message` is safe to surface here.
|
|
47
|
+
* the shared client (S9), so `error.message` is safe to surface here. Access-denied (401/403)
|
|
48
|
+
* errors are framed by the registration chokepoint before this is reached.
|
|
40
49
|
*/
|
|
41
50
|
function toErrorResponse(error, context) {
|
|
42
|
-
const deniedStatus = accessDeniedStatus(error);
|
|
43
|
-
if (deniedStatus !== null) {
|
|
44
|
-
return accessDeniedResult(deniedStatus);
|
|
45
|
-
}
|
|
46
51
|
const message = error instanceof Error ? error.message : 'Unknown error';
|
|
47
52
|
return {
|
|
48
53
|
content: [{ type: 'text', text: `${context}: ${message}` }],
|
|
@@ -84,12 +89,6 @@ function createValidationErrorResponse(validationResults) {
|
|
|
84
89
|
}
|
|
85
90
|
/** Validator-aware error for execute-j1ql-query: maps execution errors to actionable suggestions. */
|
|
86
91
|
function createQueryErrorResponse(error, query, validator) {
|
|
87
|
-
// An auth failure is not a query-authoring problem — short-circuit before the validator dresses
|
|
88
|
-
// it up with J1QL syntax suggestions.
|
|
89
|
-
const deniedStatus = accessDeniedStatus(error);
|
|
90
|
-
if (deniedStatus !== null) {
|
|
91
|
-
return accessDeniedResult(deniedStatus);
|
|
92
|
-
}
|
|
93
92
|
const errorResult = validator.handleQueryError(error, query);
|
|
94
93
|
return {
|
|
95
94
|
content: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/server/tools/errors.ts"],"names":[],"mappings":";;AAYA,gDASC;
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/server/tools/errors.ts"],"names":[],"mappings":";;AAYA,gDASC;AAQD,kDASC;AAED,gDAKC;AAOD,0CAMC;AAGD,0CAoBC;AAGD,sEAcC;AAGD,4DAgBC;AArHD,sEAAoE;AAKpE,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;AAEjD;;;;GAIG;AACH,SAAgB,kBAAkB,CAAC,KAAc;IAC/C,IACE,KAAK,YAAY,sCAAkB;QACnC,KAAK,CAAC,UAAU,KAAK,SAAS;QAC9B,oBAAoB,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,EAC1C,CAAC;QACD,OAAO,KAAK,CAAC,UAAU,CAAC;IAC1B,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;GAKG;AACH,SAAgB,mBAAmB,CAAC,UAAkB,EAAE,mBAA4B;IAClF,MAAM,QAAQ,GAAG,mBAAmB;QAClC,CAAC,CAAC,0FAA0F;YAC1F,0DAA0D;QAC5D,CAAC,CAAC,mEAAmE,CAAC;IACxE,OAAO,CACL,yCAAyC,UAAU,wCAAwC;QAC3F,sEAAsE,QAAQ,EAAE,CACjF,CAAC;AACJ,CAAC;AAED,SAAgB,kBAAkB,CAAC,UAAkB,EAAE,mBAA4B;IACjF,OAAO;QACL,OAAO,EAAE,CAAC,EAAE,I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