devframe 0.3.0 → 0.4.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.
Files changed (47) hide show
  1. package/dist/adapters/build.d.mts +1 -1
  2. package/dist/adapters/build.mjs +3 -3
  3. package/dist/adapters/cli.d.mts +2 -2
  4. package/dist/adapters/cli.mjs +1 -1
  5. package/dist/adapters/dev.d.mts +2 -2
  6. package/dist/adapters/dev.mjs +1 -1
  7. package/dist/adapters/embedded.d.mts +1 -1
  8. package/dist/adapters/mcp.d.mts +1 -3
  9. package/dist/adapters/mcp.mjs +3 -3
  10. package/dist/client/index.d.mts +4 -18
  11. package/dist/client/index.mjs +6 -6
  12. package/dist/{context-CwjX6sCG.d.mts → context-C9oW88gr.d.mts} +1 -1
  13. package/dist/{dev-BbmanqL7.mjs → dev-C2wjXjGB.mjs} +1 -1
  14. package/dist/{devframe-sc4cb5xr.d.mts → devframe-K4IxpM4a.d.mts} +64 -13
  15. package/dist/{dump-zMleojnD.mjs → dump-B1wd4u68.mjs} +6 -6
  16. package/dist/helpers/vite.d.mts +1 -1
  17. package/dist/helpers/vite.mjs +2 -2
  18. package/dist/{host-h3-TTunNr_n.mjs → host-h3-Div5Vp8R.mjs} +13 -13
  19. package/dist/{index-C5PmWqBf.d.mts → index-BhtRKN7X.d.mts} +1 -1
  20. package/dist/{index-CTK6fuXs.d.mts → index-CBSBvT9K.d.mts} +2 -2
  21. package/dist/index.d.mts +3 -3
  22. package/dist/node/auth.d.mts +2 -2
  23. package/dist/node/index.d.mts +5 -5
  24. package/dist/node/index.mjs +2 -2
  25. package/dist/node/internal.d.mts +2 -2
  26. package/dist/node/internal.mjs +1 -1
  27. package/dist/recipes/open-helpers.d.mts +1 -1
  28. package/dist/rpc/dump.d.mts +1 -1
  29. package/dist/rpc/dump.mjs +1 -1
  30. package/dist/rpc/index.d.mts +2 -2
  31. package/dist/rpc/index.mjs +6 -6
  32. package/dist/rpc/transports/ws-client.d.mts +1 -25
  33. package/dist/rpc/transports/ws-client.mjs +1 -1
  34. package/dist/rpc/transports/ws-server.d.mts +1 -1
  35. package/dist/rpc/transports/ws-server.mjs +1 -1
  36. package/dist/{serialization-BlqLh4_J.mjs → serialization-BD_qXGjd.mjs} +1 -1
  37. package/dist/{server-ouL4gZbu.d.mts → server-KzCqriO9.d.mts} +1 -1
  38. package/dist/{storage-K-OxR1xf.mjs → storage-CZVTPKsw.mjs} +1 -1
  39. package/dist/types/index.d.mts +3 -3
  40. package/dist/{types-BXL7EIDM.d.mts → types-dNW3UmMl.d.mts} +1 -1
  41. package/dist/utils/events.d.mts +1 -1
  42. package/dist/utils/shared-state.d.mts +1 -1
  43. package/dist/utils/streaming-channel.d.mts +1 -1
  44. package/dist/ws-client-BZptK_Mf.d.mts +26 -0
  45. package/dist/{ws-server-DOwLJL23.d.mts → ws-server-CTeMCO1r.d.mts} +2 -2
  46. package/package.json +4 -3
  47. package/dist/index-DTeZXHSi.d.mts +0 -639
@@ -1,3 +1,3 @@
1
- import { C as RpcFunctionsCollector, S as RpcFunctionType, T as Thenable, _ as RpcFunctionDefinitionAny, a as RpcDefinitionsFilter, b as RpcFunctionDefinitionToFunction, c as RpcDumpClientOptions, d as RpcDumpGetter, f as RpcDumpRecord, g as RpcFunctionDefinition, h as RpcFunctionAgentOptions, i as RpcArgsSchema, l as RpcDumpCollectionOptions, m as RpcDumpStore, n as BirpcReturn, o as RpcDefinitionsToFunctions, p as RpcDumpRecordError, r as EntriesToObject, s as RpcDump, t as BirpcFn, u as RpcDumpDefinition, v as RpcFunctionDefinitionAnyWithContext, w as RpcReturnSchema, x as RpcFunctionSetupResult, y as RpcFunctionDefinitionBase } from "../types-BXL7EIDM.mjs";
2
- import { C as RpcCacheManager, S as RpcFunctionsCollectorBase, _ as strictJsonStringify, a as StaticRpcDumpManifestStaticEntry, b as createDefineWrapperWithContext, c as collectStaticRpcDump, d as getDefinitionsWithDumps, f as reviveDumpError, g as STRUCTURED_CLONE_PREFIX, h as validateDefinitions, i as StaticRpcDumpManifestQueryEntry, l as createClientFromDump, m as validateDefinition, n as StaticRpcDumpFile, o as StaticRpcDumpManifestValue, p as serializeDumpError, r as StaticRpcDumpManifest, s as StaticRpcDumpSerialization, t as StaticRpcDumpCollection, u as dumpFunctions, v as getRpcHandler, w as RpcCacheOptions, x as defineRpcFunction, y as getRpcResolvedSetupResult } from "../index-CTK6fuXs.mjs";
1
+ import { C as RpcFunctionsCollector, S as RpcFunctionType, T as Thenable, _ as RpcFunctionDefinitionAny, a as RpcDefinitionsFilter, b as RpcFunctionDefinitionToFunction, c as RpcDumpClientOptions, d as RpcDumpGetter, f as RpcDumpRecord, g as RpcFunctionDefinition, h as RpcFunctionAgentOptions, i as RpcArgsSchema, l as RpcDumpCollectionOptions, m as RpcDumpStore, n as BirpcReturn, o as RpcDefinitionsToFunctions, p as RpcDumpRecordError, r as EntriesToObject, s as RpcDump, t as BirpcFn, u as RpcDumpDefinition, v as RpcFunctionDefinitionAnyWithContext, w as RpcReturnSchema, x as RpcFunctionSetupResult, y as RpcFunctionDefinitionBase } from "../types-dNW3UmMl.mjs";
2
+ import { C as RpcCacheManager, S as RpcFunctionsCollectorBase, _ as strictJsonStringify, a as StaticRpcDumpManifestStaticEntry, b as createDefineWrapperWithContext, c as collectStaticRpcDump, d as getDefinitionsWithDumps, f as reviveDumpError, g as STRUCTURED_CLONE_PREFIX, h as validateDefinitions, i as StaticRpcDumpManifestQueryEntry, l as createClientFromDump, m as validateDefinition, n as StaticRpcDumpFile, o as StaticRpcDumpManifestValue, p as serializeDumpError, r as StaticRpcDumpManifest, s as StaticRpcDumpSerialization, t as StaticRpcDumpCollection, u as dumpFunctions, v as getRpcHandler, w as RpcCacheOptions, x as defineRpcFunction, y as getRpcResolvedSetupResult } from "../index-CBSBvT9K.mjs";
3
3
  export { BirpcFn, BirpcReturn, EntriesToObject, RpcArgsSchema, RpcCacheManager, RpcCacheOptions, RpcDefinitionsFilter, RpcDefinitionsToFunctions, RpcDump, RpcDumpClientOptions, RpcDumpCollectionOptions, RpcDumpDefinition, RpcDumpGetter, RpcDumpRecord, RpcDumpRecordError, RpcDumpStore, RpcFunctionAgentOptions, RpcFunctionDefinition, RpcFunctionDefinitionAny, RpcFunctionDefinitionAnyWithContext, RpcFunctionDefinitionBase, RpcFunctionDefinitionToFunction, RpcFunctionSetupResult, RpcFunctionType, RpcFunctionsCollector, RpcFunctionsCollectorBase, RpcReturnSchema, STRUCTURED_CLONE_PREFIX, StaticRpcDumpCollection, StaticRpcDumpFile, StaticRpcDumpManifest, StaticRpcDumpManifestQueryEntry, StaticRpcDumpManifestStaticEntry, StaticRpcDumpManifestValue, StaticRpcDumpSerialization, Thenable, collectStaticRpcDump, createClientFromDump, createDefineWrapperWithContext, defineRpcFunction, dumpFunctions, getDefinitionsWithDumps, getRpcHandler, getRpcResolvedSetupResult, reviveDumpError, serializeDumpError, strictJsonStringify, validateDefinition, validateDefinitions };
@@ -1,7 +1,7 @@
1
- import { a as dumpFunctions$1, c as serializeDumpError$1, d as hash, i as createClientFromDump$1, l as validateDefinition, n as getRpcHandler, o as getDefinitionsWithDumps$1, r as getRpcResolvedSetupResult, s as reviveDumpError$1, t as collectStaticRpcDump$1, u as validateDefinitions } from "../dump-zMleojnD.mjs";
1
+ import { a as dumpFunctions$1, c as serializeDumpError$1, d as hash, i as createClientFromDump$1, l as validateDefinition, n as getRpcHandler, o as getDefinitionsWithDumps$1, r as getRpcResolvedSetupResult, s as reviveDumpError$1, t as collectStaticRpcDump$1, u as validateDefinitions } from "../dump-B1wd4u68.mjs";
2
2
  import { t as diagnostics } from "../diagnostics-GitRGKbr.mjs";
3
3
  import { n as defineRpcFunction, t as createDefineWrapperWithContext } from "../define-CW9gLnyG.mjs";
4
- import { n as strictJsonStringify, t as STRUCTURED_CLONE_PREFIX } from "../serialization-BlqLh4_J.mjs";
4
+ import { n as strictJsonStringify, t as STRUCTURED_CLONE_PREFIX } from "../serialization-BD_qXGjd.mjs";
5
5
  //#region src/rpc/cache.ts
6
6
  /**
7
7
  * @experimental API is expected to change.
@@ -70,13 +70,13 @@ var RpcFunctionsCollectorBase = class {
70
70
  });
71
71
  }
72
72
  register(fn, force = false) {
73
- if (this.definitions.has(fn.name) && !force) throw diagnostics.DF0021.throw({ name: fn.name });
73
+ if (this.definitions.has(fn.name) && !force) throw diagnostics.DF0021({ name: fn.name });
74
74
  assertAgentJsonSerializable(fn);
75
75
  this.definitions.set(fn.name, fn);
76
76
  this._onChanged.forEach((cb) => cb(fn.name));
77
77
  }
78
78
  update(fn, force = false) {
79
- if (!this.definitions.has(fn.name) && !force) throw diagnostics.DF0022.throw({ name: fn.name });
79
+ if (!this.definitions.has(fn.name) && !force) throw diagnostics.DF0022({ name: fn.name });
80
80
  assertAgentJsonSerializable(fn);
81
81
  this.definitions.set(fn.name, fn);
82
82
  this._onChanged.forEach((cb) => cb(fn.name));
@@ -93,7 +93,7 @@ var RpcFunctionsCollectorBase = class {
93
93
  }
94
94
  getSchema(name) {
95
95
  const definition = this.definitions.get(name);
96
- if (!definition) throw diagnostics.DF0023.throw({ name: String(name) });
96
+ if (!definition) throw diagnostics.DF0023({ name: String(name) });
97
97
  return {
98
98
  args: definition.args,
99
99
  returns: definition.returns
@@ -110,7 +110,7 @@ var RpcFunctionsCollectorBase = class {
110
110
  }
111
111
  };
112
112
  function assertAgentJsonSerializable(fn) {
113
- if (fn.agent && fn.jsonSerializable !== true) throw diagnostics.DF0019.throw({ name: fn.name });
113
+ if (fn.agent && fn.jsonSerializable !== true) throw diagnostics.DF0019({ name: fn.name });
114
114
  }
115
115
  //#endregion
116
116
  //#region src/rpc/index.ts
@@ -1,26 +1,2 @@
1
- import { _ as RpcFunctionDefinitionAny } from "../../types-BXL7EIDM.mjs";
2
- import { ChannelOptions } from "birpc";
3
-
4
- //#region src/rpc/transports/ws-client.d.ts
5
- interface WsRpcChannelOptions {
6
- url: string;
7
- onConnected?: (e: Event) => void;
8
- onError?: (e: Error) => void;
9
- onDisconnected?: (e: CloseEvent) => void;
10
- authToken?: string;
11
- /**
12
- * RPC function definitions (or just the `jsonSerializable` flag per
13
- * method) used to dispatch the per-call wire serializer. Pass an
14
- * empty / partial map on clients that don't have the full registry —
15
- * encoding falls back to structured-clone (the safer superset) and
16
- * decoding still routes correctly via the wire prefix.
17
- */
18
- definitions?: ReadonlyMap<string, Pick<RpcFunctionDefinitionAny, 'jsonSerializable'>>;
19
- }
20
- /**
21
- * Build a birpc `ChannelOptions` object backed by a browser `WebSocket`.
22
- * Pass the result straight to `createRpcClient`'s `channel` option.
23
- */
24
- declare function createWsRpcChannel(options: WsRpcChannelOptions): ChannelOptions;
25
- //#endregion
1
+ import { n as createWsRpcChannel, t as WsRpcChannelOptions } from "../../ws-client-BZptK_Mf.mjs";
26
2
  export { WsRpcChannelOptions, createWsRpcChannel };
@@ -1,4 +1,4 @@
1
- import { n as strictJsonStringify } from "../../serialization-BlqLh4_J.mjs";
1
+ import { n as strictJsonStringify } from "../../serialization-BD_qXGjd.mjs";
2
2
  import { n as structuredCloneStringify, t as structuredCloneParse } from "../../structured-clone-jegjz0hM.mjs";
3
3
  //#region src/rpc/transports/ws-client.ts
4
4
  function NOOP() {}
@@ -1,2 +1,2 @@
1
- import { n as WsRpcTransportOptions, r as attachWsRpcTransport, t as DevToolsNodeRpcSessionMeta } from "../../ws-server-DOwLJL23.mjs";
1
+ import { n as WsRpcTransportOptions, r as attachWsRpcTransport, t as DevToolsNodeRpcSessionMeta } from "../../ws-server-CTeMCO1r.mjs";
2
2
  export { DevToolsNodeRpcSessionMeta, WsRpcTransportOptions, attachWsRpcTransport };
@@ -1,4 +1,4 @@
1
- import { n as strictJsonStringify } from "../../serialization-BlqLh4_J.mjs";
1
+ import { n as strictJsonStringify } from "../../serialization-BD_qXGjd.mjs";
2
2
  import { n as structuredCloneStringify, t as structuredCloneParse } from "../../structured-clone-jegjz0hM.mjs";
3
3
  import { createServer } from "node:https";
4
4
  import { WebSocketServer } from "ws";
@@ -62,7 +62,7 @@ function strictJsonStringify(value, fnName = "") {
62
62
  }
63
63
  function nonJsonAt(fnName, type, parent, key) {
64
64
  const path = formatPath(parent, key);
65
- return diagnostics.DF0020.throw({
65
+ return diagnostics.DF0020({
66
66
  name: fnName || "<anonymous>",
67
67
  type,
68
68
  path
@@ -1,4 +1,4 @@
1
- import { E as DevToolsRpcServerFunctions, T as DevToolsRpcClientFunctions, d as DevToolsNodeContext } from "./devframe-sc4cb5xr.mjs";
1
+ import { U as DevToolsRpcClientFunctions, W as DevToolsRpcServerFunctions, d as DevToolsNodeContext } from "./devframe-K4IxpM4a.mjs";
2
2
  import { BirpcGroup } from "birpc";
3
3
  import { WebSocketServer } from "ws";
4
4
  import { H3 } from "h3";
@@ -99,7 +99,7 @@ function createStorage(options) {
99
99
  const savedValue = JSON.parse(fs.readFileSync(options.filepath, "utf-8"));
100
100
  initialValue = mergeInitialValue ? mergeInitialValue(options.initialValue, savedValue) : savedValue;
101
101
  } catch (error) {
102
- diagnostics.DF0012.report({
102
+ diagnostics.DF0012({
103
103
  filepath: options.filepath,
104
104
  cause: error
105
105
  }, { method: "warn" });
@@ -1,4 +1,4 @@
1
- import { A as DevToolsDiagnosticsDefinition, B as DevToolsAgentHost, C as PartialWithoutId, D as DevToolsRpcSharedStates, E as DevToolsRpcServerFunctions, F as AgentResource, H as EventEmitter, I as AgentResourceContent, L as AgentResourceInput, M as DevToolsDiagnosticsLogger, N as AgentHandle, O as DevToolsHost, P as AgentManifest, R as AgentTool, S as EntriesToObject, T as DevToolsRpcClientFunctions, U as EventUnsubscribe, V as DevToolsAgentHostEvents, W as EventsMap, _ as RpcStreamingChannel, a as DevframeRuntime, c as defineDevframe, d as DevToolsNodeContext, f as DevToolsNodeRpcSession, g as RpcSharedStateHost, h as RpcSharedStateGetOptions, i as DevframeDeploymentKind, j as DevToolsDiagnosticsHost, k as DevToolsDefineDiagnosticsOptions, l as ConnectionMeta, m as RpcFunctionsHost, n as DevframeCliOptions, o as DevframeSetupInfo, p as RpcBroadcastOptions, r as DevframeDefinition, s as DevframeSpaOptions, t as DevframeBrowserContext, u as DevToolsCapabilities, v as RpcStreamingChannelOptions, w as Thenable, x as DevToolsViewHost, y as RpcStreamingHost, z as AgentToolInput } from "../devframe-sc4cb5xr.mjs";
2
- import { h as RpcFunctionAgentOptions } from "../types-BXL7EIDM.mjs";
3
- import { t as DevToolsNodeRpcSessionMeta } from "../ws-server-DOwLJL23.mjs";
1
+ import { $ as AgentResource, B as EntriesToObject, G as DevToolsRpcSharedStates, H as Thenable, J as DevToolsDiagnosticsDefinition, K as DevToolsHost, Q as AgentManifest, U as DevToolsRpcClientFunctions, V as PartialWithoutId, W as DevToolsRpcServerFunctions, X as DevToolsDiagnosticsLogger, Y as DevToolsDiagnosticsHost, Z as AgentHandle, _ as RpcStreamingChannel, a as DevframeRuntime, at as DevToolsAgentHostEvents, c as defineDevframe, ct as EventsMap, d as DevToolsNodeContext, et as AgentResourceContent, f as DevToolsNodeRpcSession, g as RpcSharedStateHost, h as RpcSharedStateGetOptions, i as DevframeDeploymentKind, it as DevToolsAgentHost, l as ConnectionMeta, m as RpcFunctionsHost, n as DevframeCliOptions, nt as AgentTool, o as DevframeSetupInfo, ot as EventEmitter, p as RpcBroadcastOptions, q as DevToolsDefineDiagnosticsOptions, r as DevframeDefinition, rt as AgentToolInput, s as DevframeSpaOptions, st as EventUnsubscribe, t as DevframeBrowserContext, tt as AgentResourceInput, u as DevToolsCapabilities, v as RpcStreamingChannelOptions, y as RpcStreamingHost, z as DevToolsViewHost } from "../devframe-K4IxpM4a.mjs";
2
+ import { h as RpcFunctionAgentOptions } from "../types-dNW3UmMl.mjs";
3
+ import { t as DevToolsNodeRpcSessionMeta } from "../ws-server-CTeMCO1r.mjs";
4
4
  export { AgentHandle, AgentManifest, AgentResource, AgentResourceContent, AgentResourceInput, AgentTool, AgentToolInput, ConnectionMeta, DevToolsAgentHost, DevToolsAgentHostEvents, DevToolsCapabilities, DevToolsDefineDiagnosticsOptions, DevToolsDiagnosticsDefinition, DevToolsDiagnosticsHost, DevToolsDiagnosticsLogger, DevToolsHost, DevToolsNodeContext, DevToolsNodeRpcSession, DevToolsNodeRpcSessionMeta, DevToolsRpcClientFunctions, DevToolsRpcServerFunctions, DevToolsRpcSharedStates, DevToolsViewHost, DevframeBrowserContext, DevframeCliOptions, DevframeDefinition, DevframeDeploymentKind, DevframeRuntime, DevframeSetupInfo, DevframeSpaOptions, EntriesToObject, EventEmitter, EventUnsubscribe, EventsMap, PartialWithoutId, RpcBroadcastOptions, RpcFunctionAgentOptions, RpcFunctionsHost, RpcSharedStateGetOptions, RpcSharedStateHost, RpcStreamingChannel, RpcStreamingChannelOptions, RpcStreamingHost, Thenable, defineDevframe };
@@ -1,5 +1,5 @@
1
- import { BirpcFn, BirpcReturn as BirpcReturn$1 } from "birpc";
2
1
  import { GenericSchema, InferInput } from "valibot";
2
+ import { BirpcFn, BirpcReturn as BirpcReturn$1 } from "birpc";
3
3
 
4
4
  //#region src/rpc/utils.d.ts
5
5
  /** Infers TypeScript tuple type from Valibot schema array */
@@ -1,4 +1,4 @@
1
- import { T as EventsMap, w as EventEmitter } from "../index-DTeZXHSi.mjs";
1
+ import { ct as EventsMap, ot as EventEmitter } from "../devframe-K4IxpM4a.mjs";
2
2
 
3
3
  //#region src/utils/events.d.ts
4
4
  /**
@@ -1,2 +1,2 @@
1
- import { C as createSharedState, S as SharedStatePatch, _ as ImmutableObject, b as SharedStateEvents, g as ImmutableMap, h as ImmutableArray, m as Immutable, v as ImmutableSet, x as SharedStateOptions, y as SharedState } from "../index-DTeZXHSi.mjs";
1
+ import { A as ImmutableArray, F as SharedStateEvents, I as SharedStateOptions, L as SharedStatePatch, M as ImmutableObject, N as ImmutableSet, P as SharedState, R as createSharedState, j as ImmutableMap, k as Immutable } from "../devframe-K4IxpM4a.mjs";
2
2
  export { Immutable, ImmutableArray, ImmutableMap, ImmutableObject, ImmutableSet, SharedState, SharedStateEvents, SharedStateOptions, SharedStatePatch, createSharedState };
@@ -1,2 +1,2 @@
1
- import { a as BufferedChunk, c as StreamErrorPayload, d as StreamSinkEvents, f as createStreamReader, l as StreamReader, o as CreateStreamReaderOptions, p as createStreamSink, s as CreateStreamSinkOptions, u as StreamSink } from "../index-DTeZXHSi.mjs";
1
+ import { C as StreamErrorPayload, D as createStreamReader, E as StreamSinkEvents, O as createStreamSink, S as CreateStreamSinkOptions, T as StreamSink, b as BufferedChunk, w as StreamReader, x as CreateStreamReaderOptions } from "../devframe-K4IxpM4a.mjs";
2
2
  export { BufferedChunk, CreateStreamReaderOptions, CreateStreamSinkOptions, StreamErrorPayload, StreamReader, StreamSink, StreamSinkEvents, createStreamReader, createStreamSink };
@@ -0,0 +1,26 @@
1
+ import { _ as RpcFunctionDefinitionAny } from "./types-dNW3UmMl.mjs";
2
+ import { ChannelOptions } from "birpc";
3
+
4
+ //#region src/rpc/transports/ws-client.d.ts
5
+ interface WsRpcChannelOptions {
6
+ url: string;
7
+ onConnected?: (e: Event) => void;
8
+ onError?: (e: Error) => void;
9
+ onDisconnected?: (e: CloseEvent) => void;
10
+ authToken?: string;
11
+ /**
12
+ * RPC function definitions (or just the `jsonSerializable` flag per
13
+ * method) used to dispatch the per-call wire serializer. Pass an
14
+ * empty / partial map on clients that don't have the full registry —
15
+ * encoding falls back to structured-clone (the safer superset) and
16
+ * decoding still routes correctly via the wire prefix.
17
+ */
18
+ definitions?: ReadonlyMap<string, Pick<RpcFunctionDefinitionAny, 'jsonSerializable'>>;
19
+ }
20
+ /**
21
+ * Build a birpc `ChannelOptions` object backed by a browser `WebSocket`.
22
+ * Pass the result straight to `createRpcClient`'s `channel` option.
23
+ */
24
+ declare function createWsRpcChannel(options: WsRpcChannelOptions): ChannelOptions;
25
+ //#endregion
26
+ export { createWsRpcChannel as n, WsRpcChannelOptions as t };
@@ -1,8 +1,8 @@
1
- import { _ as RpcFunctionDefinitionAny } from "./types-BXL7EIDM.mjs";
1
+ import { _ as RpcFunctionDefinitionAny } from "./types-dNW3UmMl.mjs";
2
2
  import { BirpcGroup, ChannelOptions } from "birpc";
3
+ import { IncomingMessage } from "node:http";
3
4
  import { ServerOptions } from "node:https";
4
5
  import { WebSocket, WebSocketServer } from "ws";
5
- import { IncomingMessage } from "node:http";
6
6
 
7
7
  //#region src/rpc/transports/ws-server.d.ts
8
8
  interface DevToolsNodeRpcSessionMeta {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "devframe",
3
3
  "type": "module",
4
- "version": "0.3.0",
4
+ "version": "0.4.1",
5
5
  "description": "Framework for building generic DevTools",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -54,7 +54,7 @@
54
54
  "./utils/when": "./dist/utils/when.mjs",
55
55
  "./package.json": "./package.json"
56
56
  },
57
- "types": "./dist/index.d.ts",
57
+ "types": "./dist/index.d.mts",
58
58
  "files": [
59
59
  "dist",
60
60
  "skills"
@@ -73,7 +73,7 @@
73
73
  "cac": "^7.0.0",
74
74
  "h3": "2.0.1-rc.22",
75
75
  "mrmime": "^2.0.1",
76
- "nostics": "^0.1.0",
76
+ "nostics": "^0.2.0",
77
77
  "pathe": "^2.0.3",
78
78
  "valibot": "^1.4.0",
79
79
  "ws": "^8.20.0"
@@ -90,6 +90,7 @@
90
90
  "p-limit": "^7.3.0",
91
91
  "perfect-debounce": "^2.1.0",
92
92
  "structured-clone-es": "^2.0.0",
93
+ "tinyglobby": "^0.2.16",
93
94
  "tsdown": "^0.22.0",
94
95
  "ua-parser-modern": "^0.1.1",
95
96
  "whenexpr": "^0.1.2"