devframe 0.1.18 → 0.1.20
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/README.md +2 -2
- package/dist/{_shared-Bxa2_kq7.mjs → _shared-S-Ujqz_L.mjs} +1 -1
- package/dist/adapters/build.d.mts +1 -1
- package/dist/adapters/build.mjs +9 -5
- package/dist/adapters/cli.d.mts +2 -2
- package/dist/adapters/cli.mjs +78 -292
- package/dist/adapters/dev.d.mts +83 -0
- package/dist/adapters/dev.mjs +2 -0
- package/dist/adapters/embedded.d.mts +1 -1
- package/dist/adapters/kit.d.mts +1 -1
- package/dist/adapters/mcp.d.mts +1 -1
- package/dist/adapters/mcp.mjs +6 -3
- package/dist/adapters/vite.d.mts +1 -1
- package/dist/adapters/vite.mjs +1 -1
- package/dist/client/index.d.mts +41 -5
- package/dist/client/index.mjs +1673 -2
- package/dist/constants.d.mts +1 -1
- package/dist/{context-xQo1FcxX.mjs → context-BfvbAyGk.mjs} +429 -41
- package/dist/dev-B8i_CBlQ.mjs +325 -0
- package/dist/{devtool-CHT-4_OU.d.mts → devtool-Bm6zZAw5.d.mts} +371 -28
- package/dist/host-h3-BMvrFzIJ.mjs +24 -0
- package/dist/{index-Cei8vVcd.d.mts → index-BCo03GEF.d.mts} +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +11 -2
- package/dist/node/index.d.mts +41 -53
- package/dist/node/index.mjs +5 -4
- package/dist/recipes/open-helpers.d.mts +1 -1
- package/dist/recipes/open-helpers.mjs +4 -2
- package/dist/rpc/index.d.mts +2 -2
- package/dist/rpc/index.mjs +3 -3
- package/dist/rpc/transports/ws-client.d.mts +1 -1
- package/dist/rpc/transports/ws-client.mjs +1 -1
- package/dist/rpc/transports/ws-server.d.mts +1 -1
- package/dist/rpc/transports/ws-server.mjs +1 -1
- package/dist/{rpc-hbRk8qtt.mjs → rpc-INbWfHoX.mjs} +1 -1
- package/dist/{serialization-CWcWE7x7.mjs → serialization-DwKi05Pn.mjs} +1 -1
- package/dist/server-DksyT-um.d.mts +54 -0
- package/dist/{server-DkJ2-s0Y.mjs → server-qRRM8t3v.mjs} +27 -2
- package/dist/{static-dump-DwFfj4U_.mjs → static-dump-C1aVSwxY.mjs} +2 -19
- package/dist/types/index.d.mts +4 -4
- package/dist/{types-BkyzI9r4.d.mts → types-ag029cAe.d.mts} +1 -1
- package/dist/utils/events.d.mts +1 -1
- package/dist/utils/shared-state.d.mts +2 -2
- package/dist/utils/shared-state.mjs +1 -1
- package/dist/utils/state.d.mts +2 -1
- package/dist/utils/state.mjs +1 -1
- package/dist/utils/streaming-channel.d.mts +2 -0
- package/dist/utils/streaming-channel.mjs +255 -0
- package/dist/{ws-client-CDGmViwt.d.mts → ws-client-DQySVfF_.d.mts} +1 -1
- package/dist/{ws-server-Cu8tmZcF.d.mts → ws-server-VQqESKAs.d.mts} +13 -1
- package/package.json +10 -17
- package/skills/devframe/README.md +13 -0
- package/skills/devframe/SKILL.md +452 -0
- package/skills/devframe/templates/counter-devtool.ts +29 -0
- package/skills/devframe/templates/spa-devtool.ts +33 -0
- package/skills/devframe/templates/vite-client.ts +11 -0
- package/dist/client-CsR1_h3o.mjs +0 -1569
- package/dist/helpers/nuxt/index.d.mts +0 -46
- package/dist/helpers/nuxt/index.mjs +0 -58
- package/dist/helpers/nuxt/runtime/plugin.client.d.mts +0 -8
- package/dist/helpers/nuxt/runtime/plugin.client.mjs +0 -12
- package/dist/immer-DEqg5kOd.mjs +0 -894
- package/dist/src-DIKqQIjp.mjs +0 -85
- /package/dist/{define-CW9gLnyG.mjs → define-Bb4zh-Dc.mjs} +0 -0
- /package/dist/{main-BJD9t8dk.mjs → main-DpINGndA.mjs} +0 -0
- /package/dist/{open-BMO2_-wC.mjs → open-BtOOEldu.mjs} +0 -0
- /package/dist/{transports-4bqw6Fqg.mjs → transports-BPUzHhI2.mjs} +0 -0
package/dist/client/index.d.mts
CHANGED
|
@@ -1,10 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as RpcCacheManager, v as RpcCacheOptions } from "../index-
|
|
3
|
-
import { S as RpcFunctionsCollector } from "../types-
|
|
1
|
+
import { $ as DevToolsRpcServerFunctions, D as StreamSink, Dt as DevToolsDockUserEntry, E as StreamReader, Ht as DevToolsClientCommand, I as SharedState, Kt as DevToolsCommandKeybinding, Q as DevToolsRpcClientFunctions, St as DevToolsDockEntry, Wt as DevToolsCommandEntry, Z as DevToolsDocksUserSettings, l as ConnectionMeta, sn as EventEmitter, v as RpcSharedStateHost, xt as DevToolsDockEntriesGrouped } from "../devtool-Bm6zZAw5.mjs";
|
|
2
|
+
import { _ as RpcCacheManager, v as RpcCacheOptions } from "../index-BCo03GEF.mjs";
|
|
3
|
+
import { S as RpcFunctionsCollector } from "../types-ag029cAe.mjs";
|
|
4
4
|
import { t as WhenContext } from "../when-aBBXAEh5.mjs";
|
|
5
|
-
import { t as WsRpcChannelOptions } from "../ws-client-
|
|
5
|
+
import { t as WsRpcChannelOptions } from "../ws-client-DQySVfF_.mjs";
|
|
6
6
|
import { BirpcOptions, BirpcReturn } from "birpc";
|
|
7
7
|
|
|
8
|
+
//#region src/client/rpc-streaming.d.ts
|
|
9
|
+
interface StreamingSubscribeOptions {
|
|
10
|
+
/** Maximum buffered chunks before the oldest is dropped. Default 256. */
|
|
11
|
+
highWaterMark?: number;
|
|
12
|
+
}
|
|
13
|
+
interface RpcStreamingClientHost {
|
|
14
|
+
/**
|
|
15
|
+
* Subscribe to a server-side stream by channel + id. Returns a reader
|
|
16
|
+
* that's both an `AsyncIterable<T>` (`for await`) and exposes
|
|
17
|
+
* `readable: ReadableStream<T>` for `pipeTo`-style consumption.
|
|
18
|
+
*/
|
|
19
|
+
subscribe: <T = unknown>(channel: string, id: string, options?: StreamingSubscribeOptions) => StreamReader<T>;
|
|
20
|
+
/**
|
|
21
|
+
* Open the client side of a client-to-server upload. The id is
|
|
22
|
+
* typically obtained from a prior action call that ran
|
|
23
|
+
* `channel.openInbound()` on the server. Returns a `StreamSink<T>`
|
|
24
|
+
* that mirrors the server-side producer surface (write / close /
|
|
25
|
+
* error / writable / signal).
|
|
26
|
+
*
|
|
27
|
+
* The sink's `signal` aborts when the server cancels the upload.
|
|
28
|
+
*/
|
|
29
|
+
upload: <T = unknown>(channel: string, id: string) => StreamSink<T>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Client-side streaming host. Mirrors `createRpcSharedStateClientHost`:
|
|
33
|
+
* registers the two `:chunk` / `:end` event handlers once, then per-stream
|
|
34
|
+
* state lives in a `Map<streamKey, StreamReader>`.
|
|
35
|
+
*/
|
|
36
|
+
declare function createRpcStreamingClientHost(rpc: DevToolsRpcClient): RpcStreamingClientHost;
|
|
37
|
+
//#endregion
|
|
8
38
|
//#region src/client/rpc.d.ts
|
|
9
39
|
interface DevToolsRpcClientOptions {
|
|
10
40
|
connectionMeta?: ConnectionMeta;
|
|
@@ -70,6 +100,12 @@ interface DevToolsRpcClient {
|
|
|
70
100
|
* The shared state host
|
|
71
101
|
*/
|
|
72
102
|
sharedState: RpcSharedStateHost;
|
|
103
|
+
/**
|
|
104
|
+
* The streaming channel host. Subscribe to a server-side stream by
|
|
105
|
+
* channel + id; the returned reader is both `AsyncIterable<T>` and
|
|
106
|
+
* exposes `.readable: ReadableStream<T>` for `pipeTo` consumption.
|
|
107
|
+
*/
|
|
108
|
+
streaming: RpcStreamingClientHost;
|
|
73
109
|
/**
|
|
74
110
|
* The RPC cache manager
|
|
75
111
|
*/
|
|
@@ -225,4 +261,4 @@ declare const CLIENT_CONTEXT_KEY = "__VITE_DEVTOOLS_CLIENT_CONTEXT__";
|
|
|
225
261
|
*/
|
|
226
262
|
declare function getDevToolsClientContext(): DevToolsClientContext | undefined;
|
|
227
263
|
//#endregion
|
|
228
|
-
export { CLIENT_CONTEXT_KEY, CommandsContext, DevToolsClientContext, DevToolsClientRpcHost, DevToolsRpcClient, DevToolsRpcClientCall, DevToolsRpcClientCallEvent, DevToolsRpcClientCallOptional, DevToolsRpcClientMode, DevToolsRpcClientOptions, DevToolsRpcContext, DockClientType, DockEntryState, DockEntryStateEvents, DockPanelStorage, DocksContext, DocksEntriesContext, DocksPanelContext, RpcClientEvents, WhenClauseContext, getDevToolsRpcClient as connectDevtool, getDevToolsRpcClient, getDevToolsClientContext };
|
|
264
|
+
export { CLIENT_CONTEXT_KEY, CommandsContext, DevToolsClientContext, DevToolsClientRpcHost, DevToolsRpcClient, DevToolsRpcClientCall, DevToolsRpcClientCallEvent, DevToolsRpcClientCallOptional, DevToolsRpcClientMode, DevToolsRpcClientOptions, DevToolsRpcContext, DockClientType, DockEntryState, DockEntryStateEvents, DockPanelStorage, DocksContext, DocksEntriesContext, DocksPanelContext, RpcClientEvents, RpcStreamingClientHost, StreamingSubscribeOptions, WhenClauseContext, getDevToolsRpcClient as connectDevtool, getDevToolsRpcClient, createRpcStreamingClientHost, getDevToolsClientContext };
|