@i4ctime/q-ring 0.16.0 → 0.16.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/mcp.js CHANGED
@@ -40,7 +40,7 @@ import {
40
40
  tunnelList,
41
41
  tunnelRead,
42
42
  verifyAuditChain
43
- } from "./chunk-NCM5GHNW.js";
43
+ } from "./chunk-KFILBHOY.js";
44
44
 
45
45
  // src/mcp.ts
46
46
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
@@ -1651,11 +1651,18 @@ function registerAuditTools(server2) {
1651
1651
  "tunnel",
1652
1652
  "teleport",
1653
1653
  "collapse",
1654
- "canary",
1654
+ "approve",
1655
+ "revoke",
1656
+ "policy_deny",
1657
+ "rotate",
1658
+ "push",
1655
1659
  "wrap"
1656
1660
  ]).optional().describe(
1657
1661
  "Limit to a single action verb (e.g. 'read' to see only reads). Omit for all actions."
1658
1662
  ),
1663
+ agent: z6.string().optional().describe(
1664
+ "Limit to events stamped with this agent label (clientInfo name@version). Omit for all agents."
1665
+ ),
1659
1666
  limit: z6.number().optional().default(20).describe(
1660
1667
  "Maximum events to return, newest first. Defaults to 20. Increase for deeper investigations."
1661
1668
  )
@@ -1666,14 +1673,15 @@ function registerAuditTools(server2) {
1666
1673
  const events = queryAudit({
1667
1674
  key: params.key,
1668
1675
  action: params.action,
1669
- limit: params.limit
1670
- });
1676
+ agent: params.agent
1677
+ }).filter((e) => e.action !== "canary").slice(0, params.limit);
1671
1678
  if (events.length === 0) return text("No audit events found");
1672
1679
  const lines = events.map((e) => {
1673
1680
  const parts = [e.timestamp, e.action];
1674
1681
  if (e.key) parts.push(e.key);
1675
1682
  if (e.scope) parts.push(`[${e.scope}]`);
1676
1683
  if (e.env) parts.push(`env:${e.env}`);
1684
+ if (e.agent) parts.push(`agent:${e.agent}`);
1677
1685
  if (e.detail) parts.push(e.detail);
1678
1686
  return parts.join(" | ");
1679
1687
  });
@@ -1798,7 +1806,9 @@ function registerAuditTools(server2) {
1798
1806
  const output = exportAudit({
1799
1807
  since: params.since,
1800
1808
  until: params.until,
1801
- format: params.format
1809
+ format: params.format,
1810
+ // Same rationale as audit_log: trip records stay operator-facing.
1811
+ excludeActions: ["canary"]
1802
1812
  });
1803
1813
  return text(output);
1804
1814
  }
@@ -2798,7 +2808,7 @@ ${result.stderr}`);
2798
2808
  `Dashboard already running at ${dashboardInstance.url}`
2799
2809
  );
2800
2810
  }
2801
- const { startDashboardServer } = await import("./dashboard-R3FWTFFW.js");
2811
+ const { startDashboardServer } = await import("./dashboard-WVPR5BQO.js");
2802
2812
  dashboardInstance = startDashboardServer({ port: params.port });
2803
2813
  return text(
2804
2814
  `Dashboard started at ${dashboardInstance.url}