devframe 0.6.0-beta.2 → 0.6.0
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/adapters/build.d.mts +1 -1
- package/dist/adapters/build.mjs +2 -2
- package/dist/adapters/cli.d.mts +1 -1
- package/dist/adapters/cli.mjs +9 -6
- package/dist/adapters/dev.d.mts +9 -2
- package/dist/adapters/dev.mjs +1 -1
- package/dist/adapters/embedded.d.mts +1 -1
- package/dist/adapters/mcp.d.mts +1 -1
- package/dist/adapters/mcp.mjs +1 -337
- package/dist/build-server-0jWgMrz-.mjs +338 -0
- package/dist/client/index.d.mts +2 -2
- package/dist/client/index.mjs +56 -22
- package/dist/constants.d.mts +31 -1
- package/dist/constants.mjs +33 -1
- package/dist/{context-3x_bgBgZ.mjs → context-CKJheEtf.mjs} +2 -2
- package/dist/{context-BEVByy_Z.d.mts → context-UX9qUDK7.d.mts} +1 -1
- package/dist/{dev-BaX8fLH2.mjs → dev-zC5542OV.mjs} +49 -6
- package/dist/{devframe-D-gr9sBx.d.mts → devframe-BtVHhmwM.d.mts} +76 -4
- package/dist/{dump-DoXkj4ku.mjs → dump-D09PZb7T.mjs} +14 -4
- package/dist/{hash-DFc5WwhO.mjs → hash-PAfnyu2k.mjs} +1 -1
- package/dist/helpers/vite.d.mts +1 -1
- package/dist/helpers/vite.mjs +2 -2
- package/dist/{host-h3-C5SZlk03.mjs → host-h3-Dsf-Tgwx.mjs} +37 -11
- package/dist/http-COX960WK.mjs +114 -0
- package/dist/index-ByaMT1Xp.d.mts +107 -0
- package/dist/{index-CxaPKDXX.d.mts → index-Dy6GFDRf.d.mts} +1 -0
- package/dist/index.d.mts +2 -2
- package/dist/{launch-editor-DPfltGA4.mjs → launch-editor-DIzaS5EG.mjs} +58 -43
- package/dist/node/auth.d.mts +2 -64
- package/dist/node/auth.mjs +2 -100
- package/dist/node/hub-internals.d.mts +2 -2
- package/dist/node/hub-internals.mjs +1 -1
- package/dist/node/index.d.mts +3 -3
- package/dist/node/index.mjs +3 -3
- package/dist/recipes/interactive-auth.d.mts +53 -0
- package/dist/recipes/interactive-auth.mjs +132 -0
- package/dist/recipes/open-helpers.mjs +2 -2
- package/dist/{revoke-ENfxWkFK.mjs → revoke-BtQDKTp7.mjs} +1 -1
- package/dist/rpc/dump.mjs +1 -1
- package/dist/rpc/index.d.mts +2 -2
- package/dist/rpc/index.mjs +4 -1
- package/dist/rpc/transports/ws-client.mjs +21 -8
- package/dist/{server-Dl6TU5LE.mjs → server-CAsvfJNK.mjs} +51 -15
- package/dist/{server-rX781kz-.d.mts → server-Cfr1NrGQ.d.mts} +52 -10
- package/dist/{shared-state-D4PPieA0.mjs → shared-state-QtMas0NG.mjs} +34 -4
- package/dist/state-WX3HT5a3.mjs +101 -0
- package/dist/{storage-l2ezeend.mjs → storage-yrUZaiib.mjs} +55 -6
- package/dist/types/index.d.mts +2 -2
- package/dist/utils/crypto-token.mjs +1 -1
- package/dist/utils/events.d.mts +1 -1
- package/dist/utils/hash.mjs +1 -1
- package/dist/utils/launch-editor.mjs +1 -1
- package/dist/utils/open.mjs +1 -1
- package/dist/utils/serve-static.mjs +2 -1
- package/dist/utils/shared-state.d.mts +1 -1
- package/dist/utils/shared-state.mjs +1 -1
- package/dist/utils/streaming-channel.d.mts +1 -1
- package/dist/utils/when.d.mts +1 -1
- package/package.json +10 -9
- package/dist/{open-Dusa2Zzd.mjs → open-Deb5xmIT.mjs} +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { B as
|
|
1
|
+
import { B as SharedStateOptions, F as ImmutableMap, H as createSharedState, I as ImmutableObject, L as ImmutableSet, N as Immutable, P as ImmutableArray, R as SharedState, V as SharedStatePatch, z as SharedStateEvents } from "../devframe-BtVHhmwM.mjs";
|
|
2
2
|
export { Immutable, ImmutableArray, ImmutableMap, ImmutableObject, ImmutableSet, SharedState, SharedStateEvents, SharedStateOptions, SharedStatePatch, createSharedState };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createSharedState } from "../shared-state-
|
|
1
|
+
import { t as createSharedState } from "../shared-state-QtMas0NG.mjs";
|
|
2
2
|
export { createSharedState };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as StreamSinkEvents, D as StreamErrorPayload, E as CreateStreamSinkOptions, M as createStreamSink, O as StreamReader, T as CreateStreamReaderOptions, j as createStreamReader, k as StreamSink, w as BufferedChunk } from "../devframe-BtVHhmwM.mjs";
|
|
2
2
|
export { BufferedChunk, CreateStreamReaderOptions, CreateStreamSinkOptions, StreamErrorPayload, StreamReader, StreamSink, StreamSinkEvents, createStreamReader, createStreamSink };
|
package/dist/utils/when.d.mts
CHANGED
|
@@ -381,4 +381,4 @@ declare function evaluateWhen<T extends object, const E extends string>(expressi
|
|
|
381
381
|
*/
|
|
382
382
|
declare function resolveContextValue<T extends Record<string, unknown>>(key: string, context: T): unknown;
|
|
383
383
|
//#endregion
|
|
384
|
-
export { EvaluateWhenOptions, WhenContext,
|
|
384
|
+
export { EvaluateWhenOptions, WhenContext, WhenExpression, evaluateWhen, resolveContextValue };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "devframe",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.0
|
|
4
|
+
"version": "0.6.0",
|
|
5
5
|
"description": "Framework for building generic devframes",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"./node": "./dist/node/index.mjs",
|
|
32
32
|
"./node/auth": "./dist/node/auth.mjs",
|
|
33
33
|
"./node/hub-internals": "./dist/node/hub-internals.mjs",
|
|
34
|
+
"./recipes/interactive-auth": "./dist/recipes/interactive-auth.mjs",
|
|
34
35
|
"./recipes/open-helpers": "./dist/recipes/open-helpers.mjs",
|
|
35
36
|
"./rpc": "./dist/rpc/index.mjs",
|
|
36
37
|
"./rpc/client": "./dist/rpc/client.mjs",
|
|
@@ -69,32 +70,32 @@
|
|
|
69
70
|
}
|
|
70
71
|
},
|
|
71
72
|
"dependencies": {
|
|
72
|
-
"@valibot/to-json-schema": "^1.7.
|
|
73
|
+
"@valibot/to-json-schema": "^1.7.1",
|
|
73
74
|
"birpc": "^4.0.0",
|
|
74
75
|
"cac": "^7.0.0",
|
|
75
|
-
"crossws": "^0.4.
|
|
76
|
+
"crossws": "^0.4.9",
|
|
76
77
|
"destr": "^2.0.5",
|
|
77
78
|
"h3": "2.0.1-rc.22",
|
|
78
79
|
"mrmime": "^2.0.1",
|
|
79
80
|
"nostics": "^1.1.4",
|
|
80
81
|
"pathe": "^2.0.3",
|
|
81
82
|
"ufo": "^1.6.4",
|
|
82
|
-
"valibot": "^1.4.
|
|
83
|
+
"valibot": "^1.4.2"
|
|
83
84
|
},
|
|
84
85
|
"devDependencies": {
|
|
85
86
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
86
87
|
"get-port-please": "^3.2.0",
|
|
87
|
-
"immer": "^11.1.
|
|
88
|
-
"launch-editor": "^2.
|
|
88
|
+
"immer": "^11.1.11",
|
|
89
|
+
"launch-editor": "^2.14.1",
|
|
89
90
|
"mlly": "^1.8.2",
|
|
90
|
-
"obug": "^2.1.
|
|
91
|
+
"obug": "^2.1.3",
|
|
91
92
|
"ohash": "^2.0.11",
|
|
92
93
|
"open": "^11.0.0",
|
|
93
94
|
"p-limit": "^7.3.0",
|
|
94
95
|
"perfect-debounce": "^2.1.0",
|
|
95
96
|
"structured-clone-es": "^2.0.0",
|
|
96
|
-
"tinyglobby": "^0.2.
|
|
97
|
-
"tsdown": "^0.22.
|
|
97
|
+
"tinyglobby": "^0.2.17",
|
|
98
|
+
"tsdown": "^0.22.3",
|
|
98
99
|
"ua-parser-modern": "^0.1.1",
|
|
99
100
|
"whenexpr": "^0.1.2",
|
|
100
101
|
"ws": "^8.21.0"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { promisify } from "node:util";
|
|
2
2
|
import fs from "node:fs";
|
|
3
|
-
import os from "node:os";
|
|
4
3
|
import process from "node:process";
|
|
4
|
+
import os from "node:os";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
7
|
import childProcess, { execFile } from "node:child_process";
|