@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 CHANGED
@@ -1,4 +1,4 @@
1
- import { n as inspectDevframe } from "./src-CzzEF2WN.mjs";
1
+ import { n as inspectDevframe } from "./src-DXMxyuay.mjs";
2
2
  import { createCac } from "devframe/adapters/cac";
3
3
  //#region src/cli.ts
4
4
  /**
@@ -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-_vo7QhmS.mjs";
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-_vo7QhmS.mjs";
2
- import { DevframeDefinition } from "devframe/types";
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-_vo7QhmS.mjs";
2
- import { n as createInspectDevframe, r as inspectDevframe, t as InspectDevframeOptions } from "./index-B7KBbd3U.mjs";
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-CzzEF2WN.mjs";
1
+ import { n as inspectDevframe, t as createInspectDevframe } from "./src-DXMxyuay.mjs";
2
2
  export { createInspectDevframe, inspectDevframe as default };
@@ -1,5 +1,5 @@
1
1
  import { serverFunctions } from "../rpc/index.mjs";
2
- import { DevframeNodeContext } from "devframe/types";
2
+ import { DevframeNodeContext } from "devframe";
3
3
  //#region src/node/index.d.ts
4
4
  /**
5
5
  * Register the inspector's introspection RPC functions on a devframe
@@ -1,4 +1,4 @@
1
- import { t as serverFunctions } from "../rpc-BCuMcHnd.mjs";
1
+ import { t as serverFunctions } from "../rpc-YAeJURfa.mjs";
2
2
  //#region src/node/index.ts
3
3
  /**
4
4
  * Register the inspector's introspection RPC functions on a devframe
@@ -1,5 +1,5 @@
1
- import { i as InvokeResult, n as DevframeInspectCommandInfo, o as RpcFunctionInfo, r as DevframeInspectInstanceInfo } from "../types-_vo7QhmS.mjs";
2
- import "../index-B7KBbd3U.mjs";
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
  /**
@@ -1,2 +1,2 @@
1
- import { t as serverFunctions } from "../rpc-BCuMcHnd.mjs";
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/node";
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
- * Prefers the schema's own Standard JSON Schema converter
244
- * (`~standard.jsonSchema`, implemented by e.g. zod 4), then falls back to
245
- * valibot's converter, then to a permissive object — so introspection never
246
- * throws regardless of which validator produced the schema.
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
- if (standard.jsonSchema) return standard.jsonSchema.input({ target: "draft-2020-12" });
252
- return toJsonSchema(schema);
253
+ return standard.jsonSchema.input({ target: "draft-2020-12" });
253
254
  } catch {
254
255
  return FALLBACK_SCHEMA;
255
256
  }