@tooluminati/diagnostics 0.1.0 → 0.1.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.
package/dist/index.cjs CHANGED
@@ -614,13 +614,14 @@ function createWebMcpEnvironmentSummary(options = {}) {
614
614
  const toolCount = options.registry?.getRegisteredToolNames().length ?? 0;
615
615
  const checks = [];
616
616
  const warnings = [];
617
+ const documentContextStatus = documentContext ? "ok" : supported ? "warn" : "fail";
617
618
  checks.push({
618
619
  id: "document.modelContext",
619
620
  label: "document.modelContext",
620
- value: documentContext ? "available" : "missing",
621
- status: documentContext ? "ok" : "fail",
621
+ value: documentContext ? "available" : supported ? "missing; using fallback" : "missing",
622
+ status: documentContextStatus,
622
623
  ...documentContext ? {} : {
623
- hint: "No document.modelContext on this page. Enable WebMCP in Chrome or attach the Model Context Inspector Extension."
624
+ hint: supported ? "No document.modelContext on this page, but WebMCP is available through navigator.modelContext in this Chrome build." : "No document.modelContext on this page. Enable WebMCP in Chrome or attach the Model Context Inspector Extension."
624
625
  }
625
626
  });
626
627
  checks.push({
package/dist/index.js CHANGED
@@ -557,13 +557,14 @@ function createWebMcpEnvironmentSummary(options = {}) {
557
557
  const toolCount = options.registry?.getRegisteredToolNames().length ?? 0;
558
558
  const checks = [];
559
559
  const warnings = [];
560
+ const documentContextStatus = documentContext ? "ok" : supported ? "warn" : "fail";
560
561
  checks.push({
561
562
  id: "document.modelContext",
562
563
  label: "document.modelContext",
563
- value: documentContext ? "available" : "missing",
564
- status: documentContext ? "ok" : "fail",
564
+ value: documentContext ? "available" : supported ? "missing; using fallback" : "missing",
565
+ status: documentContextStatus,
565
566
  ...documentContext ? {} : {
566
- hint: "No document.modelContext on this page. Enable WebMCP in Chrome or attach the Model Context Inspector Extension."
567
+ hint: supported ? "No document.modelContext on this page, but WebMCP is available through navigator.modelContext in this Chrome build." : "No document.modelContext on this page. Enable WebMCP in Chrome or attach the Model Context Inspector Extension."
567
568
  }
568
569
  });
569
570
  checks.push({
@@ -1 +1 @@
1
- {"version":3,"file":"webmcp-environment.d.ts","sourceRoot":"","sources":["../src/webmcp-environment.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,oBAAoB,EAC1B,MAAM,mBAAmB,CAAC;AAE3B,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACzC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,sBAAsB,EAAE,OAAO,CAAC;IAChC,MAAM,EAAE,sBAAsB,EAAE,CAAC;IACjC,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IACtC,YAAY,CAAC,EAAE,OAAO,UAAU,CAAC;CAClC;AAED,wBAAgB,8BAA8B,CAC5C,OAAO,GAAE,+BAAoC,GAC5C,wBAAwB,CAoG1B;AA8ED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,wBAAwB,EAC1C,IAAI,SAA2B,GAC9B,oBAAoB,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,wBAAwB,CAAC,CAavE"}
1
+ {"version":3,"file":"webmcp-environment.d.ts","sourceRoot":"","sources":["../src/webmcp-environment.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,oBAAoB,EAC1B,MAAM,mBAAmB,CAAC;AAE3B,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACzC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,sBAAsB,EAAE,OAAO,CAAC;IAChC,MAAM,EAAE,sBAAsB,EAAE,CAAC;IACjC,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IACtC,YAAY,CAAC,EAAE,OAAO,UAAU,CAAC;CAClC;AAED,wBAAgB,8BAA8B,CAC5C,OAAO,GAAE,+BAAoC,GAC5C,wBAAwB,CAgH1B;AA8ED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,wBAAwB,EAC1C,IAAI,SAA2B,GAC9B,oBAAoB,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,wBAAwB,CAAC,CAavE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tooluminati/diagnostics",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Runtime diagnostic tool factories for Tooluminati.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -15,7 +15,7 @@
15
15
  }
16
16
  },
17
17
  "dependencies": {
18
- "@tooluminati/core": "0.1.0"
18
+ "@tooluminati/core": "0.1.1"
19
19
  },
20
20
  "files": [
21
21
  "dist"