@devframes/plugin-inspect 0.9.11 → 0.9.12
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/node/cli.mjs
CHANGED
package/dist/node/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createInspectDevframe } from "../node-
|
|
1
|
+
import { t as createInspectDevframe } from "../node-BvkEPG3A.mjs";
|
|
2
2
|
export { createInspectDevframe, createInspectDevframe as default };
|
package/dist/node/rpc/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as serverFunctions } from "../../rpc-
|
|
1
|
+
import { t as serverFunctions } from "../../rpc-Crj317XM.mjs";
|
|
2
2
|
export { serverFunctions };
|
package/dist/node/setup.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { setupInspect } from "./node/setup.mjs";
|
|
|
2
2
|
import { defineDevframe } from "devframe";
|
|
3
3
|
//#region package.json
|
|
4
4
|
var name = "@devframes/plugin-inspect";
|
|
5
|
-
var version = "0.9.
|
|
5
|
+
var version = "0.9.12";
|
|
6
6
|
var description = "Devframe plugin that inspects the RPC registry, shared state, and agent surface of a connection.";
|
|
7
7
|
var homepage = "https://github.com/devframes/devframe#readme";
|
|
8
8
|
//#endregion
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineRpcFunction } from "devframe";
|
|
2
2
|
import { defineDiagnostics } from "devframe/utils/nostics";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
import { listLiveDevframeInstances } from "devframe/internal";
|
|
5
|
-
//#region src/node/rpc/functions/_define.ts
|
|
6
|
-
/**
|
|
7
|
-
* `defineRpcFunction` pre-bound to the framework-neutral
|
|
8
|
-
* {@link DevframeNodeContext}, so each inspector function's `setup(ctx)`
|
|
9
|
-
* receives the typed node context (`ctx.rpc`, `ctx.agent`, …) instead of
|
|
10
|
-
* the default `undefined` context.
|
|
11
|
-
*/
|
|
12
|
-
const defineInspectRpc = createDefineWrapperWithContext();
|
|
13
|
-
//#endregion
|
|
14
5
|
//#region src/node/rpc/functions/describe-agent.ts
|
|
15
6
|
/**
|
|
16
7
|
* Surface the agent-exposed surface of the connection: the unified
|
|
@@ -18,7 +9,7 @@ const defineInspectRpc = createDefineWrapperWithContext();
|
|
|
18
9
|
* host-registered tools) and readable resources. `snapshot: true` bakes
|
|
19
10
|
* the manifest into the static dump for `build`/`spa` mode.
|
|
20
11
|
*/
|
|
21
|
-
const describeAgent =
|
|
12
|
+
const describeAgent = defineRpcFunction({
|
|
22
13
|
name: "devframes:plugin:inspect:describe-agent",
|
|
23
14
|
type: "query",
|
|
24
15
|
jsonSerializable: true,
|
|
@@ -104,7 +95,7 @@ function projectCommand(cmd) {
|
|
|
104
95
|
* group-only command with no handler, surfaces as `{ ok: false, error }`
|
|
105
96
|
* from the hub's own `commands.execute()` instead of throwing.
|
|
106
97
|
*/
|
|
107
|
-
const executeCommand =
|
|
98
|
+
const executeCommand = defineRpcFunction({
|
|
108
99
|
name: "devframes:plugin:inspect:execute-command",
|
|
109
100
|
type: "action",
|
|
110
101
|
setup: (ctx) => ({ handler: async (id, args = []) => {
|
|
@@ -143,7 +134,7 @@ const INVOKABLE_TYPES$1 = /* @__PURE__ */ new Set(["query", "static"]);
|
|
|
143
134
|
* (default) so arbitrary return values round-trip without the strict-JSON
|
|
144
135
|
* constraints that `jsonSerializable: true` would impose.
|
|
145
136
|
*/
|
|
146
|
-
const invoke =
|
|
137
|
+
const invoke = defineRpcFunction({
|
|
147
138
|
name: "devframes:plugin:inspect:invoke",
|
|
148
139
|
type: "action",
|
|
149
140
|
setup: (ctx) => ({ handler: async (name, args = []) => {
|
|
@@ -177,7 +168,7 @@ const invoke = defineInspectRpc({
|
|
|
177
168
|
});
|
|
178
169
|
//#endregion
|
|
179
170
|
//#region src/node/rpc/functions/invoke-agent-tool.ts
|
|
180
|
-
const invokeAgentTool =
|
|
171
|
+
const invokeAgentTool = defineRpcFunction({
|
|
181
172
|
name: "devframes:plugin:inspect:invoke-agent-tool",
|
|
182
173
|
type: "action",
|
|
183
174
|
setup: (ctx) => ({ handler: async (id, args) => {
|
|
@@ -213,7 +204,7 @@ const invokeAgentTool = defineInspectRpc({
|
|
|
213
204
|
* `snapshot: true` bakes the (possibly empty) list into the static dump so
|
|
214
205
|
* the inspector still lists commands in `build`/`spa` mode.
|
|
215
206
|
*/
|
|
216
|
-
const listCommands =
|
|
207
|
+
const listCommands = defineRpcFunction({
|
|
217
208
|
name: "devframes:plugin:inspect:list-commands",
|
|
218
209
|
type: "query",
|
|
219
210
|
jsonSerializable: true,
|
|
@@ -284,7 +275,7 @@ const INVOKABLE_TYPES = /* @__PURE__ */ new Set(["query", "static"]);
|
|
|
284
275
|
* `snapshot: true` bakes the registry into the static dump so the
|
|
285
276
|
* inspector still lists functions in `build`/`spa` mode.
|
|
286
277
|
*/
|
|
287
|
-
const listFunctions =
|
|
278
|
+
const listFunctions = defineRpcFunction({
|
|
288
279
|
name: "devframes:plugin:inspect:list-functions",
|
|
289
280
|
type: "query",
|
|
290
281
|
jsonSerializable: true,
|
|
@@ -339,7 +330,7 @@ const listFunctions = defineInspectRpc({
|
|
|
339
330
|
* instance discovery to agents over MCP, so exposing it here would duplicate
|
|
340
331
|
* that surface).
|
|
341
332
|
*/
|
|
342
|
-
const listInstances =
|
|
333
|
+
const listInstances = defineRpcFunction({
|
|
343
334
|
name: "devframes:plugin:inspect:list-instances",
|
|
344
335
|
type: "query",
|
|
345
336
|
jsonSerializable: true,
|
|
@@ -370,7 +361,7 @@ const listInstances = defineInspectRpc({
|
|
|
370
361
|
const serverFunctions = [
|
|
371
362
|
listFunctions,
|
|
372
363
|
invoke,
|
|
373
|
-
|
|
364
|
+
defineRpcFunction({
|
|
374
365
|
name: "devframes:plugin:inspect:list-state-keys",
|
|
375
366
|
type: "query",
|
|
376
367
|
jsonSerializable: true,
|
|
@@ -385,7 +376,7 @@ const serverFunctions = [
|
|
|
385
376
|
}),
|
|
386
377
|
describeAgent,
|
|
387
378
|
invokeAgentTool,
|
|
388
|
-
|
|
379
|
+
defineRpcFunction({
|
|
389
380
|
name: "devframes:plugin:inspect:read-agent-resource",
|
|
390
381
|
type: "action",
|
|
391
382
|
setup: (ctx) => ({ handler: async (id) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devframes/plugin-inspect",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.12",
|
|
5
5
|
"description": "Devframe plugin that inspects the RPC registry, shared state, and agent surface of a connection.",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"dist"
|
|
36
36
|
],
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@devframes/plugin-inspect--assets": "0.9.
|
|
39
|
-
"devframe": "0.9.
|
|
38
|
+
"@devframes/plugin-inspect--assets": "0.9.12",
|
|
39
|
+
"devframe": "0.9.12",
|
|
40
40
|
"vite": "^7.0.0 || ^8.0.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependenciesMeta": {
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@antfu/design": "^0.4.0",
|
|
55
|
-
"@devframes/hub": "0.9.
|
|
56
|
-
"@devframes/plugin-inspect--assets": "0.9.
|
|
57
|
-
"@devframes/vite": "0.9.
|
|
55
|
+
"@devframes/hub": "0.9.12",
|
|
56
|
+
"@devframes/plugin-inspect--assets": "0.9.12",
|
|
57
|
+
"@devframes/vite": "0.9.12",
|
|
58
58
|
"@iconify-json/ph": "^1.2.2",
|
|
59
59
|
"@standard-schema/spec": "^1.1.0",
|
|
60
60
|
"@storybook/addon-docs": "^10.5.10",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@unocss/preset-icons": "^66.8.1",
|
|
63
63
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
64
64
|
"colorjs.io": "^0.7.1",
|
|
65
|
-
"devframe": "0.9.
|
|
65
|
+
"devframe": "0.9.12",
|
|
66
66
|
"floating-vue": "^5.2.2",
|
|
67
67
|
"h3": "^2.0.1-rc.29",
|
|
68
68
|
"reka-ui": "^2.10.4",
|