@bryan-thompson/inspector-assessment-client 1.20.9 → 1.20.10

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.
@@ -1,4 +1,4 @@
1
- import { u as useToast, r as reactExports, j as jsxRuntimeExports, p as parseOAuthCallbackParams, g as generateOAuthErrorDescription, S as SESSION_KEYS, I as InspectorOAuthClientProvider, a as auth } from "./index-C6PsNLga.js";
1
+ import { u as useToast, r as reactExports, j as jsxRuntimeExports, p as parseOAuthCallbackParams, g as generateOAuthErrorDescription, S as SESSION_KEYS, I as InspectorOAuthClientProvider, a as auth } from "./index-CzcF1S-Q.js";
2
2
  const OAuthCallback = ({ onConnect }) => {
3
3
  const { toast } = useToast();
4
4
  const hasProcessedRef = reactExports.useRef(false);
@@ -1,4 +1,4 @@
1
- import { r as reactExports, S as SESSION_KEYS, p as parseOAuthCallbackParams, j as jsxRuntimeExports, g as generateOAuthErrorDescription } from "./index-C6PsNLga.js";
1
+ import { r as reactExports, S as SESSION_KEYS, p as parseOAuthCallbackParams, j as jsxRuntimeExports, g as generateOAuthErrorDescription } from "./index-CzcF1S-Q.js";
2
2
  const OAuthDebugCallback = ({ onConnect }) => {
3
3
  reactExports.useEffect(() => {
4
4
  let isProcessed = false;
@@ -16320,7 +16320,7 @@ object({
16320
16320
  token_type_hint: string().optional()
16321
16321
  }).strip();
16322
16322
  const name = "@bryan-thompson/inspector-assessment-client";
16323
- const version$1 = "1.20.8";
16323
+ const version$1 = "1.20.9";
16324
16324
  const packageJson = {
16325
16325
  name,
16326
16326
  version: version$1
@@ -45352,7 +45352,7 @@ const useTheme = () => {
45352
45352
  [theme, setThemeWithSideEffect]
45353
45353
  );
45354
45354
  };
45355
- const version = "1.20.8";
45355
+ const version = "1.20.9";
45356
45356
  var [createTooltipContext] = createContextScope("Tooltip", [
45357
45357
  createPopperScope
45358
45358
  ]);
@@ -59167,13 +59167,13 @@ const App = () => {
59167
59167
  ) });
59168
59168
  if (window.location.pathname === "/oauth/callback") {
59169
59169
  const OAuthCallback = React.lazy(
59170
- () => __vitePreload(() => import("./OAuthCallback-Ey7dyKyq.js"), true ? [] : void 0)
59170
+ () => __vitePreload(() => import("./OAuthCallback-CcMDWMuf.js"), true ? [] : void 0)
59171
59171
  );
59172
59172
  return /* @__PURE__ */ jsxRuntimeExports.jsx(reactExports.Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(OAuthCallback, { onConnect: onOAuthConnect }) });
59173
59173
  }
59174
59174
  if (window.location.pathname === "/oauth/callback/debug") {
59175
59175
  const OAuthDebugCallback = React.lazy(
59176
- () => __vitePreload(() => import("./OAuthDebugCallback-CqX1-dRd.js"), true ? [] : void 0)
59176
+ () => __vitePreload(() => import("./OAuthDebugCallback-B-ZJISI6.js"), true ? [] : void 0)
59177
59177
  );
59178
59178
  return /* @__PURE__ */ jsxRuntimeExports.jsx(reactExports.Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(OAuthDebugCallback, { onConnect: onOAuthDebugConnect }) });
59179
59179
  }
package/dist/index.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/mcp.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>MCP Inspector</title>
8
- <script type="module" crossorigin src="/assets/index-C6PsNLga.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-CzcF1S-Q.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="/assets/index-DiyPO_Zj.css">
10
10
  </head>
11
11
  <body>
@@ -1 +1 @@
1
- {"version":3,"file":"PortabilityAssessor.d.ts","sourceRoot":"","sources":["../../../../src/services/assessment/modules/PortabilityAssessor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EACV,qBAAqB,EAGtB,MAAM,uBAAuB,CAAC;AA2C/B,qBAAa,mBAAoB,SAAQ,YAAY;IACnD;;OAEG;IACG,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAgHxE;;OAEG;IACH,OAAO,CAAC,QAAQ;IAgIhB;;OAEG;IACH,OAAO,CAAC,cAAc;IAkBtB;;OAEG;IACH,OAAO,CAAC,0BAA0B;IAmClC;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAqC3B;;OAEG;IACH,OAAO,CAAC,uBAAuB;CAmDhC"}
1
+ {"version":3,"file":"PortabilityAssessor.d.ts","sourceRoot":"","sources":["../../../../src/services/assessment/modules/PortabilityAssessor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EACV,qBAAqB,EAGtB,MAAM,uBAAuB,CAAC;AA6C/B,qBAAa,mBAAoB,SAAQ,YAAY;IACnD;;OAEG;IACG,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAgHxE;;OAEG;IACH,OAAO,CAAC,QAAQ;IAiIhB;;OAEG;IACH,OAAO,CAAC,cAAc;IAkBtB;;OAEG;IACH,OAAO,CAAC,0BAA0B;IAmClC;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAqC3B;;OAEG;IACH,OAAO,CAAC,uBAAuB;CAmDhC"}
@@ -17,9 +17,11 @@ import { BaseAssessor } from "./BaseAssessor.js";
17
17
  */
18
18
  const ISSUE_PATTERNS = {
19
19
  // Absolute Unix paths (not ${__dirname})
20
- absoluteUnixPath: /(?<!\$\{__dirname\}|['"])\/(?:usr|home|var|etc|opt|tmp|Users|Applications)\/[^\s'"]+/g,
21
- // Absolute Windows paths
22
- absoluteWindowsPath: /[A-Z]:\\[^\s'"]+/gi,
20
+ // Note: /tmp/ excluded as it's a portable Unix standard directory
21
+ absoluteUnixPath: /(?<!\$\{__dirname\}|['"])\/(?:usr|home|var|etc|opt|Users|Applications)\/[^\s'"]+/g,
22
+ // Absolute Windows paths (requires valid path chars, excludes escape sequences like \n, \t)
23
+ // Note: Windows drive letters are always uppercase, so /i flag removed to avoid false positives
24
+ absoluteWindowsPath: /[A-Z]:\\[a-zA-Z0-9_\-.\\]+/g,
23
25
  // User home directory references
24
26
  userHomePath: /(?:~\/|\/Users\/|\/home\/)[^\s'"]+/g,
25
27
  // ${BUNDLE_ROOT} anti-pattern
@@ -150,10 +152,11 @@ export class PortabilityAssessor extends BaseAssessor {
150
152
  const unixPathMatches = cleanLine.match(ISSUE_PATTERNS.absoluteUnixPath);
151
153
  if (unixPathMatches) {
152
154
  for (const match of unixPathMatches) {
153
- // Skip if it looks like a URL or comment
155
+ // Skip if it looks like a URL, comment, or shebang
154
156
  if (match.includes("://") ||
155
157
  line.trim().startsWith("//") ||
156
- line.trim().startsWith("*")) {
158
+ line.trim().startsWith("*") ||
159
+ line.trim().startsWith("#!")) {
157
160
  continue;
158
161
  }
159
162
  issues.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bryan-thompson/inspector-assessment-client",
3
- "version": "1.20.9",
3
+ "version": "1.20.10",
4
4
  "description": "Client-side application for the Enhanced MCP Inspector with assessment capabilities",
5
5
  "license": "MIT",
6
6
  "author": "Bryan Thompson <bryan@triepod.ai>",