@devframes/plugin-inspect 0.8.2 → 0.9.0-beta.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/cli.mjs +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/{index-B7KBbd3U.d.mts → index-DEz0yTau.d.mts} +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/node/index.d.mts +1 -1
- package/dist/node/index.mjs +1 -1
- package/dist/rpc/index.d.mts +2 -2
- package/dist/rpc/index.mjs +1 -1
- package/dist/{rpc-BCuMcHnd.mjs → rpc-YAeJURfa.mjs} +9 -8
- package/dist/spa/assets/index-CVNDXVYM.js +8 -0
- package/dist/spa/index.html +1 -1
- package/dist/{src-CzzEF2WN.mjs → src-DXMxyuay.mjs} +3 -3
- package/dist/{types-_vo7QhmS.d.mts → types-CiRcsiuh.d.mts} +5 -5
- package/dist/vite.mjs +1 -1
- package/package.json +13 -14
- package/dist/spa/assets/index-BQQo1YFH.js +0 -6
package/dist/cli.mjs
CHANGED
package/dist/client/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as RpcFunctionAgentInfo, i as InvokeResult, n as DevframeInspectCommandInfo, o as RpcFunctionInfo, r as DevframeInspectInstanceInfo, t as AgentManifest } from "../types-
|
|
1
|
+
import { a as RpcFunctionAgentInfo, i as InvokeResult, n as DevframeInspectCommandInfo, o as RpcFunctionInfo, r as DevframeInspectInstanceInfo, t as AgentManifest } from "../types-CiRcsiuh.mjs";
|
|
2
2
|
import { DevframeConnectionStatus, DevframeRpcClient, DevframeRpcClientOptions } from "devframe/client";
|
|
3
3
|
//#region src/client/index.d.ts
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./types-
|
|
2
|
-
import { DevframeDefinition } from "devframe
|
|
1
|
+
import "./types-CiRcsiuh.mjs";
|
|
2
|
+
import { DevframeDefinition } from "devframe";
|
|
3
3
|
//#region src/index.d.ts
|
|
4
4
|
interface InspectDevframeOptions {
|
|
5
5
|
/** Override the devframe id (and default CLI command / mount path). */
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as InvokeResult, o as RpcFunctionInfo } from "./types-
|
|
2
|
-
import { n as createInspectDevframe, r as inspectDevframe, t as InspectDevframeOptions } from "./index-
|
|
1
|
+
import { i as InvokeResult, o as RpcFunctionInfo } from "./types-CiRcsiuh.mjs";
|
|
2
|
+
import { n as createInspectDevframe, r as inspectDevframe, t as InspectDevframeOptions } from "./index-DEz0yTau.mjs";
|
|
3
3
|
export { InspectDevframeOptions, type InvokeResult, type RpcFunctionInfo, createInspectDevframe, inspectDevframe as default };
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as inspectDevframe, t as createInspectDevframe } from "./src-
|
|
1
|
+
import { n as inspectDevframe, t as createInspectDevframe } from "./src-DXMxyuay.mjs";
|
|
2
2
|
export { createInspectDevframe, inspectDevframe as default };
|
package/dist/node/index.d.mts
CHANGED
package/dist/node/index.mjs
CHANGED
package/dist/rpc/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as InvokeResult, n as DevframeInspectCommandInfo, o as RpcFunctionInfo, r as DevframeInspectInstanceInfo } from "../types-
|
|
2
|
-
import "../index-
|
|
1
|
+
import { i as InvokeResult, n as DevframeInspectCommandInfo, o as RpcFunctionInfo, r as DevframeInspectInstanceInfo } from "../types-CiRcsiuh.mjs";
|
|
2
|
+
import "../index-DEz0yTau.mjs";
|
|
3
3
|
import { RpcDefinitionsToFunctions } from "devframe/rpc";
|
|
4
4
|
//#region src/rpc/index.d.ts
|
|
5
5
|
/**
|
package/dist/rpc/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as serverFunctions } from "../rpc-
|
|
1
|
+
import { t as serverFunctions } from "../rpc-YAeJURfa.mjs";
|
|
2
2
|
export { serverFunctions };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { createDefineWrapperWithContext } from "devframe/rpc";
|
|
2
2
|
import { defineDiagnostics } from "nostics";
|
|
3
|
-
import { toJsonSchema } from "@valibot/to-json-schema";
|
|
4
3
|
import process from "node:process";
|
|
5
|
-
import { listLiveDevframeInstances } from "devframe/
|
|
4
|
+
import { listLiveDevframeInstances } from "devframe/internal";
|
|
6
5
|
//#region src/rpc/functions/_define.ts
|
|
7
6
|
/**
|
|
8
7
|
* `defineRpcFunction` pre-bound to the framework-neutral
|
|
@@ -240,16 +239,18 @@ const FALLBACK_SCHEMA = Object.freeze({
|
|
|
240
239
|
/**
|
|
241
240
|
* Convert a schema to JSON Schema for the inspector, vendor-neutrally.
|
|
242
241
|
*
|
|
243
|
-
*
|
|
244
|
-
* (`~standard.jsonSchema`, implemented by e.g. zod 4)
|
|
245
|
-
*
|
|
246
|
-
*
|
|
242
|
+
* Uses the schema's own [Standard JSON Schema](https://standardschema.dev/)
|
|
243
|
+
* converter (`~standard.jsonSchema`, implemented by e.g. zod 4) when the
|
|
244
|
+
* validator provides one, and degrades to a permissive object schema
|
|
245
|
+
* otherwise (e.g. valibot, which has no native converter) — so introspection
|
|
246
|
+
* never throws and never pulls in a converter library for a validator devframe
|
|
247
|
+
* doesn't otherwise depend on.
|
|
247
248
|
*/
|
|
248
249
|
function convert(schema) {
|
|
249
250
|
const standard = schema["~standard"];
|
|
251
|
+
if (!standard.jsonSchema) return FALLBACK_SCHEMA;
|
|
250
252
|
try {
|
|
251
|
-
|
|
252
|
-
return toJsonSchema(schema);
|
|
253
|
+
return standard.jsonSchema.input({ target: "draft-2020-12" });
|
|
253
254
|
} catch {
|
|
254
255
|
return FALLBACK_SCHEMA;
|
|
255
256
|
}
|