infrawise 0.16.0 → 0.16.1
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.
|
@@ -234,13 +234,15 @@ function servicesFromDoc(doc) {
|
|
|
234
234
|
}
|
|
235
235
|
async function extractAllowedServices(roleArn, cfg) {
|
|
236
236
|
const client = new IAMClient(clientConfig(cfg));
|
|
237
|
-
const roleName = roleArn.split('/').pop();
|
|
237
|
+
const roleName = roleArn.split('/').pop() ?? roleArn;
|
|
238
238
|
const services = new Set();
|
|
239
239
|
try {
|
|
240
240
|
let marker;
|
|
241
241
|
do {
|
|
242
242
|
const res = await client.send(new ListAttachedRolePoliciesCommand({ RoleName: roleName, Marker: marker }));
|
|
243
243
|
for (const policy of res.AttachedPolicies ?? []) {
|
|
244
|
+
if (!policy.PolicyArn)
|
|
245
|
+
continue;
|
|
244
246
|
try {
|
|
245
247
|
const meta = await client.send(new GetPolicyCommand({ PolicyArn: policy.PolicyArn }));
|
|
246
248
|
const versionId = meta.Policy?.DefaultVersionId;
|
package/dist/server/index.js
CHANGED
|
@@ -501,8 +501,7 @@ export function createMcpServer() {
|
|
|
501
501
|
const indexNamesFor = (nodeId) => currentGraph.edges
|
|
502
502
|
.filter((e) => e.from === nodeId && e.type === 'uses_index')
|
|
503
503
|
.map((e) => currentGraph.nodes.find((n) => n.id === e.to))
|
|
504
|
-
.
|
|
505
|
-
.map((n) => n.name);
|
|
504
|
+
.flatMap((n) => (n?.type === 'index' ? [n.name] : []));
|
|
506
505
|
const results = tables.map((requested) => {
|
|
507
506
|
const lower = requested.toLowerCase();
|
|
508
507
|
const matches = tableNodes.filter((t) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "infrawise",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"mcpName": "io.github.Sidd27/infrawise",
|
|
5
5
|
"description": "CLI-first infrastructure intelligence platform — analyzes DynamoDB, PostgreSQL, MySQL, MongoDB, SQS, SNS, SSM, Secrets Manager, Lambda, S3, API Gateway, CloudWatch Logs and exposes findings as an MCP server for Claude Code",
|
|
6
6
|
"keywords": [
|