@carrierllc/mcp 0.2.6 → 0.2.7
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/.metadata_never_index +0 -0
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
File without changes
|
package/dist/index.js
CHANGED
|
@@ -3128,9 +3128,20 @@ function registerIntelligenceTools(server2, ctx) {
|
|
|
3128
3128
|
annotations: { readOnlyHint: true }
|
|
3129
3129
|
}, async ({ accountId }) => {
|
|
3130
3130
|
const token2 = await ctx.getUserToken(ctx.props.sub);
|
|
3131
|
+
const resellerId = await getDefaultResellerId(ctx.env, token2).catch(() => void 0);
|
|
3131
3132
|
const [statusResult, accountsResult] = await Promise.all([
|
|
3132
|
-
safeCall(
|
|
3133
|
-
|
|
3133
|
+
safeCall(
|
|
3134
|
+
ctx.env,
|
|
3135
|
+
token2,
|
|
3136
|
+
"esimStatusPerAccount",
|
|
3137
|
+
accountId !== void 0 ? { accountId } : resellerId !== void 0 ? { resellerId } : {}
|
|
3138
|
+
),
|
|
3139
|
+
safeCall(
|
|
3140
|
+
ctx.env,
|
|
3141
|
+
token2,
|
|
3142
|
+
"listResellerAccount",
|
|
3143
|
+
resellerId !== void 0 ? { resellerId } : {}
|
|
3144
|
+
)
|
|
3134
3145
|
]);
|
|
3135
3146
|
const sections = ["# Fleet Health Dashboard\n"];
|
|
3136
3147
|
let totalActive = 0, totalSuspended = 0, totalInventory = 0, totalOther = 0;
|