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.
Files changed (60) hide show
  1. package/dist/adapters/build.d.mts +1 -1
  2. package/dist/adapters/build.mjs +2 -2
  3. package/dist/adapters/cli.d.mts +1 -1
  4. package/dist/adapters/cli.mjs +9 -6
  5. package/dist/adapters/dev.d.mts +9 -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 -1
  9. package/dist/adapters/mcp.mjs +1 -337
  10. package/dist/build-server-0jWgMrz-.mjs +338 -0
  11. package/dist/client/index.d.mts +2 -2
  12. package/dist/client/index.mjs +56 -22
  13. package/dist/constants.d.mts +31 -1
  14. package/dist/constants.mjs +33 -1
  15. package/dist/{context-3x_bgBgZ.mjs → context-CKJheEtf.mjs} +2 -2
  16. package/dist/{context-BEVByy_Z.d.mts → context-UX9qUDK7.d.mts} +1 -1
  17. package/dist/{dev-BaX8fLH2.mjs → dev-zC5542OV.mjs} +49 -6
  18. package/dist/{devframe-D-gr9sBx.d.mts → devframe-BtVHhmwM.d.mts} +76 -4
  19. package/dist/{dump-DoXkj4ku.mjs → dump-D09PZb7T.mjs} +14 -4
  20. package/dist/{hash-DFc5WwhO.mjs → hash-PAfnyu2k.mjs} +1 -1
  21. package/dist/helpers/vite.d.mts +1 -1
  22. package/dist/helpers/vite.mjs +2 -2
  23. package/dist/{host-h3-C5SZlk03.mjs → host-h3-Dsf-Tgwx.mjs} +37 -11
  24. package/dist/http-COX960WK.mjs +114 -0
  25. package/dist/index-ByaMT1Xp.d.mts +107 -0
  26. package/dist/{index-CxaPKDXX.d.mts → index-Dy6GFDRf.d.mts} +1 -0
  27. package/dist/index.d.mts +2 -2
  28. package/dist/{launch-editor-DPfltGA4.mjs → launch-editor-DIzaS5EG.mjs} +58 -43
  29. package/dist/node/auth.d.mts +2 -64
  30. package/dist/node/auth.mjs +2 -100
  31. package/dist/node/hub-internals.d.mts +2 -2
  32. package/dist/node/hub-internals.mjs +1 -1
  33. package/dist/node/index.d.mts +3 -3
  34. package/dist/node/index.mjs +3 -3
  35. package/dist/recipes/interactive-auth.d.mts +53 -0
  36. package/dist/recipes/interactive-auth.mjs +132 -0
  37. package/dist/recipes/open-helpers.mjs +2 -2
  38. package/dist/{revoke-ENfxWkFK.mjs → revoke-BtQDKTp7.mjs} +1 -1
  39. package/dist/rpc/dump.mjs +1 -1
  40. package/dist/rpc/index.d.mts +2 -2
  41. package/dist/rpc/index.mjs +4 -1
  42. package/dist/rpc/transports/ws-client.mjs +21 -8
  43. package/dist/{server-Dl6TU5LE.mjs → server-CAsvfJNK.mjs} +51 -15
  44. package/dist/{server-rX781kz-.d.mts → server-Cfr1NrGQ.d.mts} +52 -10
  45. package/dist/{shared-state-D4PPieA0.mjs → shared-state-QtMas0NG.mjs} +34 -4
  46. package/dist/state-WX3HT5a3.mjs +101 -0
  47. package/dist/{storage-l2ezeend.mjs → storage-yrUZaiib.mjs} +55 -6
  48. package/dist/types/index.d.mts +2 -2
  49. package/dist/utils/crypto-token.mjs +1 -1
  50. package/dist/utils/events.d.mts +1 -1
  51. package/dist/utils/hash.mjs +1 -1
  52. package/dist/utils/launch-editor.mjs +1 -1
  53. package/dist/utils/open.mjs +1 -1
  54. package/dist/utils/serve-static.mjs +2 -1
  55. package/dist/utils/shared-state.d.mts +1 -1
  56. package/dist/utils/shared-state.mjs +1 -1
  57. package/dist/utils/streaming-channel.d.mts +1 -1
  58. package/dist/utils/when.d.mts +1 -1
  59. package/package.json +10 -9
  60. package/dist/{open-Dusa2Zzd.mjs → open-Deb5xmIT.mjs} +1 -1
@@ -1,2 +1,2 @@
1
- import { B as SharedStatePatch, F as ImmutableObject, I as ImmutableSet, L as SharedState, M as Immutable, N as ImmutableArray, P as ImmutableMap, R as SharedStateEvents, V as createSharedState, z as SharedStateOptions } from "../devframe-D-gr9sBx.mjs";
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-D4PPieA0.mjs";
1
+ import { t as createSharedState } from "../shared-state-QtMas0NG.mjs";
2
2
  export { createSharedState };
@@ -1,2 +1,2 @@
1
- import { A as createStreamReader, C as BufferedChunk, D as StreamReader, E as StreamErrorPayload, O as StreamSink, T as CreateStreamSinkOptions, j as createStreamSink, k as StreamSinkEvents, w as CreateStreamReaderOptions } from "../devframe-D-gr9sBx.mjs";
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 };
@@ -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, type WhenExpression, evaluateWhen, resolveContextValue };
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-beta.2",
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.0",
73
+ "@valibot/to-json-schema": "^1.7.1",
73
74
  "birpc": "^4.0.0",
74
75
  "cac": "^7.0.0",
75
- "crossws": "^0.4.8",
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.1"
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.8",
88
- "launch-editor": "^2.13.2",
88
+ "immer": "^11.1.11",
89
+ "launch-editor": "^2.14.1",
89
90
  "mlly": "^1.8.2",
90
- "obug": "^2.1.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.16",
97
- "tsdown": "^0.22.0",
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";