@tooluminati/devtools 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 jitterbox
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,2 @@
1
+ export declare function WebMcpDebugPanel(): import("react").JSX.Element;
2
+ //# sourceMappingURL=WebMcpDebugPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebMcpDebugPanel.d.ts","sourceRoot":"","sources":["../src/WebMcpDebugPanel.tsx"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,gCAkC/B"}
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useRegisteredTools } from './useRegisteredTools';
3
+ export function WebMcpDebugPanel() {
4
+ const tools = useRegisteredTools();
5
+ return (_jsxs("section", { "aria-label": "WebMCP debug panel", style: {
6
+ border: '1px solid #ddd',
7
+ borderRadius: '4px',
8
+ marginTop: '1rem',
9
+ padding: '0.75rem 1rem',
10
+ fontFamily: 'monospace',
11
+ fontSize: '0.875rem',
12
+ }, children: [_jsx("h2", { style: { margin: '0 0 0.5rem', fontSize: '1rem' }, children: "WebMCP Debug Panel" }), tools.length === 0 ? (_jsx("p", { style: { margin: 0 }, children: "No tools registered." })) : (_jsx("ul", { style: { margin: 0, paddingLeft: '1.25rem' }, children: tools.map((tool) => (_jsxs("li", { children: [_jsx("strong", { children: tool.name }), tool.annotations?.readOnlyHint === true ? ' (read-only)' : null, ' — ', tool.description] }, tool.name))) }))] }));
13
+ }
@@ -0,0 +1,8 @@
1
+ export interface WebMcpComponentCatalogEntry {
2
+ name: string;
3
+ packageName: string;
4
+ description: string;
5
+ category: 'provider' | 'hook' | 'ui' | 'adapter';
6
+ }
7
+ export declare const webMcpComponentCatalog: WebMcpComponentCatalogEntry[];
8
+ //# sourceMappingURL=component-catalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-catalog.d.ts","sourceRoot":"","sources":["../src/component-catalog.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAClD;AAED,eAAO,MAAM,sBAAsB,EAAE,2BAA2B,EA2E/D,CAAC"}
@@ -0,0 +1,74 @@
1
+ export const webMcpComponentCatalog = [
2
+ {
3
+ name: 'WebMcpProvider',
4
+ packageName: '@tooluminati/react',
5
+ description: 'Registers tools and applies WebMCP policies for a React tree.',
6
+ category: 'provider',
7
+ },
8
+ {
9
+ name: 'WebMcpScope',
10
+ packageName: '@tooluminati/react',
11
+ description: 'Registers scoped tools with optional namespace segments.',
12
+ category: 'provider',
13
+ },
14
+ {
15
+ name: 'WebMcpSecurityBanner',
16
+ packageName: '@tooluminati/react',
17
+ description: 'Shows when diagnostics mode is enabled and lists tool names.',
18
+ category: 'ui',
19
+ },
20
+ {
21
+ name: 'useWebMcpTool',
22
+ packageName: '@tooluminati/react',
23
+ description: 'Registers a single tool for the lifetime of a component.',
24
+ category: 'hook',
25
+ },
26
+ {
27
+ name: 'WebMcpDebugPanel',
28
+ packageName: '@tooluminati/devtools',
29
+ description: 'Inspects registered tools and their safe metadata.',
30
+ category: 'ui',
31
+ },
32
+ {
33
+ name: 'provideWebMcpRegistry',
34
+ packageName: '@tooluminati/angular',
35
+ description: 'Registers tools and applies WebMCP policies for an Angular app.',
36
+ category: 'provider',
37
+ },
38
+ {
39
+ name: 'WebMcpScopeComponent',
40
+ packageName: '@tooluminati/angular',
41
+ description: 'Registers scoped tools with optional namespace segments.',
42
+ category: 'provider',
43
+ },
44
+ {
45
+ name: 'WebMcpSecurityBannerComponent',
46
+ packageName: '@tooluminati/angular',
47
+ description: 'Shows when diagnostics mode is enabled and lists tool names.',
48
+ category: 'ui',
49
+ },
50
+ {
51
+ name: 'registerWebMcpTool',
52
+ packageName: '@tooluminati/angular',
53
+ description: 'Registers a single tool for the lifetime of a component.',
54
+ category: 'hook',
55
+ },
56
+ {
57
+ name: 'WebMcpDebugPanelComponent',
58
+ packageName: '@tooluminati/angular-devtools',
59
+ description: 'Inspects registered tools and their safe metadata.',
60
+ category: 'ui',
61
+ },
62
+ {
63
+ name: 'WebMcpTroubleshootingPanel',
64
+ packageName: '@tooluminati/react-troubleshooting',
65
+ description: 'Dev-only docked panel for WebMCP support, timeline, and errors.',
66
+ category: 'ui',
67
+ },
68
+ {
69
+ name: 'WebMcpTroubleshootingPanelComponent',
70
+ packageName: '@tooluminati/angular-troubleshooting',
71
+ description: 'Angular dev panel mirroring WebMcpTroubleshootingPanel.',
72
+ category: 'ui',
73
+ },
74
+ ];
package/dist/index.cjs ADDED
@@ -0,0 +1,149 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ WebMcpDebugPanel: () => WebMcpDebugPanel,
24
+ useRegisteredTools: () => useRegisteredTools,
25
+ webMcpComponentCatalog: () => webMcpComponentCatalog
26
+ });
27
+ module.exports = __toCommonJS(index_exports);
28
+
29
+ // src/component-catalog.ts
30
+ var webMcpComponentCatalog = [
31
+ {
32
+ name: "WebMcpProvider",
33
+ packageName: "@tooluminati/react",
34
+ description: "Registers tools and applies WebMCP policies for a React tree.",
35
+ category: "provider"
36
+ },
37
+ {
38
+ name: "WebMcpScope",
39
+ packageName: "@tooluminati/react",
40
+ description: "Registers scoped tools with optional namespace segments.",
41
+ category: "provider"
42
+ },
43
+ {
44
+ name: "WebMcpSecurityBanner",
45
+ packageName: "@tooluminati/react",
46
+ description: "Shows when diagnostics mode is enabled and lists tool names.",
47
+ category: "ui"
48
+ },
49
+ {
50
+ name: "useWebMcpTool",
51
+ packageName: "@tooluminati/react",
52
+ description: "Registers a single tool for the lifetime of a component.",
53
+ category: "hook"
54
+ },
55
+ {
56
+ name: "WebMcpDebugPanel",
57
+ packageName: "@tooluminati/devtools",
58
+ description: "Inspects registered tools and their safe metadata.",
59
+ category: "ui"
60
+ },
61
+ {
62
+ name: "provideWebMcpRegistry",
63
+ packageName: "@tooluminati/angular",
64
+ description: "Registers tools and applies WebMCP policies for an Angular app.",
65
+ category: "provider"
66
+ },
67
+ {
68
+ name: "WebMcpScopeComponent",
69
+ packageName: "@tooluminati/angular",
70
+ description: "Registers scoped tools with optional namespace segments.",
71
+ category: "provider"
72
+ },
73
+ {
74
+ name: "WebMcpSecurityBannerComponent",
75
+ packageName: "@tooluminati/angular",
76
+ description: "Shows when diagnostics mode is enabled and lists tool names.",
77
+ category: "ui"
78
+ },
79
+ {
80
+ name: "registerWebMcpTool",
81
+ packageName: "@tooluminati/angular",
82
+ description: "Registers a single tool for the lifetime of a component.",
83
+ category: "hook"
84
+ },
85
+ {
86
+ name: "WebMcpDebugPanelComponent",
87
+ packageName: "@tooluminati/angular-devtools",
88
+ description: "Inspects registered tools and their safe metadata.",
89
+ category: "ui"
90
+ },
91
+ {
92
+ name: "WebMcpTroubleshootingPanel",
93
+ packageName: "@tooluminati/react-troubleshooting",
94
+ description: "Dev-only docked panel for WebMCP support, timeline, and errors.",
95
+ category: "ui"
96
+ },
97
+ {
98
+ name: "WebMcpTroubleshootingPanelComponent",
99
+ packageName: "@tooluminati/angular-troubleshooting",
100
+ description: "Angular dev panel mirroring WebMcpTroubleshootingPanel.",
101
+ category: "ui"
102
+ }
103
+ ];
104
+
105
+ // src/useRegisteredTools.ts
106
+ var import_react = require("react");
107
+ var import_react2 = require("@tooluminati/react");
108
+ function useRegisteredTools() {
109
+ const registry = (0, import_react2.useWebMcpRegistry)();
110
+ return (0, import_react.useMemo)(
111
+ () => registry.getVisibleToolSummaries(),
112
+ [registry]
113
+ );
114
+ }
115
+
116
+ // src/WebMcpDebugPanel.tsx
117
+ var import_jsx_runtime = require("react/jsx-runtime");
118
+ function WebMcpDebugPanel() {
119
+ const tools = useRegisteredTools();
120
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
121
+ "section",
122
+ {
123
+ "aria-label": "WebMCP debug panel",
124
+ style: {
125
+ border: "1px solid #ddd",
126
+ borderRadius: "4px",
127
+ marginTop: "1rem",
128
+ padding: "0.75rem 1rem",
129
+ fontFamily: "monospace",
130
+ fontSize: "0.875rem"
131
+ },
132
+ children: [
133
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { style: { margin: "0 0 0.5rem", fontSize: "1rem" }, children: "WebMCP Debug Panel" }),
134
+ tools.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { style: { margin: 0 }, children: "No tools registered." }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ul", { style: { margin: 0, paddingLeft: "1.25rem" }, children: tools.map((tool) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("li", { children: [
135
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: tool.name }),
136
+ tool.annotations?.readOnlyHint === true ? " (read-only)" : null,
137
+ " \u2014 ",
138
+ tool.description
139
+ ] }, tool.name)) })
140
+ ]
141
+ }
142
+ );
143
+ }
144
+ // Annotate the CommonJS export names for ESM import in node:
145
+ 0 && (module.exports = {
146
+ WebMcpDebugPanel,
147
+ useRegisteredTools,
148
+ webMcpComponentCatalog
149
+ });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @experimental Tooluminati devtools — public APIs may change.
3
+ */
4
+ export * from './component-catalog';
5
+ export * from './useRegisteredTools';
6
+ export * from './WebMcpDebugPanel';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,120 @@
1
+ // src/component-catalog.ts
2
+ var webMcpComponentCatalog = [
3
+ {
4
+ name: "WebMcpProvider",
5
+ packageName: "@tooluminati/react",
6
+ description: "Registers tools and applies WebMCP policies for a React tree.",
7
+ category: "provider"
8
+ },
9
+ {
10
+ name: "WebMcpScope",
11
+ packageName: "@tooluminati/react",
12
+ description: "Registers scoped tools with optional namespace segments.",
13
+ category: "provider"
14
+ },
15
+ {
16
+ name: "WebMcpSecurityBanner",
17
+ packageName: "@tooluminati/react",
18
+ description: "Shows when diagnostics mode is enabled and lists tool names.",
19
+ category: "ui"
20
+ },
21
+ {
22
+ name: "useWebMcpTool",
23
+ packageName: "@tooluminati/react",
24
+ description: "Registers a single tool for the lifetime of a component.",
25
+ category: "hook"
26
+ },
27
+ {
28
+ name: "WebMcpDebugPanel",
29
+ packageName: "@tooluminati/devtools",
30
+ description: "Inspects registered tools and their safe metadata.",
31
+ category: "ui"
32
+ },
33
+ {
34
+ name: "provideWebMcpRegistry",
35
+ packageName: "@tooluminati/angular",
36
+ description: "Registers tools and applies WebMCP policies for an Angular app.",
37
+ category: "provider"
38
+ },
39
+ {
40
+ name: "WebMcpScopeComponent",
41
+ packageName: "@tooluminati/angular",
42
+ description: "Registers scoped tools with optional namespace segments.",
43
+ category: "provider"
44
+ },
45
+ {
46
+ name: "WebMcpSecurityBannerComponent",
47
+ packageName: "@tooluminati/angular",
48
+ description: "Shows when diagnostics mode is enabled and lists tool names.",
49
+ category: "ui"
50
+ },
51
+ {
52
+ name: "registerWebMcpTool",
53
+ packageName: "@tooluminati/angular",
54
+ description: "Registers a single tool for the lifetime of a component.",
55
+ category: "hook"
56
+ },
57
+ {
58
+ name: "WebMcpDebugPanelComponent",
59
+ packageName: "@tooluminati/angular-devtools",
60
+ description: "Inspects registered tools and their safe metadata.",
61
+ category: "ui"
62
+ },
63
+ {
64
+ name: "WebMcpTroubleshootingPanel",
65
+ packageName: "@tooluminati/react-troubleshooting",
66
+ description: "Dev-only docked panel for WebMCP support, timeline, and errors.",
67
+ category: "ui"
68
+ },
69
+ {
70
+ name: "WebMcpTroubleshootingPanelComponent",
71
+ packageName: "@tooluminati/angular-troubleshooting",
72
+ description: "Angular dev panel mirroring WebMcpTroubleshootingPanel.",
73
+ category: "ui"
74
+ }
75
+ ];
76
+
77
+ // src/useRegisteredTools.ts
78
+ import { useMemo } from "react";
79
+ import { useWebMcpRegistry } from "@tooluminati/react";
80
+ function useRegisteredTools() {
81
+ const registry = useWebMcpRegistry();
82
+ return useMemo(
83
+ () => registry.getVisibleToolSummaries(),
84
+ [registry]
85
+ );
86
+ }
87
+
88
+ // src/WebMcpDebugPanel.tsx
89
+ import { jsx, jsxs } from "react/jsx-runtime";
90
+ function WebMcpDebugPanel() {
91
+ const tools = useRegisteredTools();
92
+ return /* @__PURE__ */ jsxs(
93
+ "section",
94
+ {
95
+ "aria-label": "WebMCP debug panel",
96
+ style: {
97
+ border: "1px solid #ddd",
98
+ borderRadius: "4px",
99
+ marginTop: "1rem",
100
+ padding: "0.75rem 1rem",
101
+ fontFamily: "monospace",
102
+ fontSize: "0.875rem"
103
+ },
104
+ children: [
105
+ /* @__PURE__ */ jsx("h2", { style: { margin: "0 0 0.5rem", fontSize: "1rem" }, children: "WebMCP Debug Panel" }),
106
+ tools.length === 0 ? /* @__PURE__ */ jsx("p", { style: { margin: 0 }, children: "No tools registered." }) : /* @__PURE__ */ jsx("ul", { style: { margin: 0, paddingLeft: "1.25rem" }, children: tools.map((tool) => /* @__PURE__ */ jsxs("li", { children: [
107
+ /* @__PURE__ */ jsx("strong", { children: tool.name }),
108
+ tool.annotations?.readOnlyHint === true ? " (read-only)" : null,
109
+ " \u2014 ",
110
+ tool.description
111
+ ] }, tool.name)) })
112
+ ]
113
+ }
114
+ );
115
+ }
116
+ export {
117
+ WebMcpDebugPanel,
118
+ useRegisteredTools,
119
+ webMcpComponentCatalog
120
+ };
@@ -0,0 +1,3 @@
1
+ import type { VisibleToolSummary } from '@tooluminati/core';
2
+ export declare function useRegisteredTools(): VisibleToolSummary[];
3
+ //# sourceMappingURL=useRegisteredTools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRegisteredTools.d.ts","sourceRoot":"","sources":["../src/useRegisteredTools.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAG5D,wBAAgB,kBAAkB,IAAI,kBAAkB,EAAE,CAOzD"}
@@ -0,0 +1,6 @@
1
+ import { useMemo } from 'react';
2
+ import { useWebMcpRegistry } from '@tooluminati/react';
3
+ export function useRegisteredTools() {
4
+ const registry = useWebMcpRegistry();
5
+ return useMemo(() => registry.getVisibleToolSummaries(), [registry]);
6
+ }
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "@tooluminati/devtools",
3
+ "version": "0.1.0",
4
+ "description": "Developer tools panel for Tooluminati.",
5
+ "type": "module",
6
+ "sideEffects": false,
7
+ "main": "./dist/index.cjs",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js",
14
+ "require": "./dist/index.cjs"
15
+ }
16
+ },
17
+ "dependencies": {
18
+ "@tooluminati/core": "0.1.0",
19
+ "@tooluminati/react": "0.1.0"
20
+ },
21
+ "peerDependencies": {
22
+ "react": ">=18.0.0"
23
+ },
24
+ "files": [
25
+ "dist"
26
+ ],
27
+ "license": "MIT",
28
+ "publishConfig": {
29
+ "access": "public"
30
+ },
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "git+https://github.com/jitterbox/Tooluminati.git",
34
+ "directory": "packages/devtools"
35
+ },
36
+ "bugs": {
37
+ "url": "https://github.com/jitterbox/Tooluminati/issues"
38
+ },
39
+ "homepage": "https://github.com/jitterbox/Tooluminati#readme",
40
+ "keywords": [
41
+ "tooluminati",
42
+ "webmcp",
43
+ "react",
44
+ "devtools",
45
+ "debug"
46
+ ],
47
+ "engines": {
48
+ "node": ">=18"
49
+ },
50
+ "scripts": {
51
+ "build": "tsup src/index.ts --format esm,cjs && tsc -p tsconfig.json --emitDeclarationOnly",
52
+ "typecheck": "tsc --noEmit"
53
+ }
54
+ }