@vite-hub/source 0.1.0 → 0.3.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 (48) hide show
  1. package/README.md +83 -49
  2. package/dist/client.d.ts +1 -1
  3. package/dist/client.js +30 -4
  4. package/dist/{collection-B_4w_J8h.d.ts → collection-B8sgxw5-.d.ts} +52 -19
  5. package/dist/collection-C0Rvrx3p.js +297 -0
  6. package/dist/drizzle.d.ts +11 -4
  7. package/dist/drizzle.js +6 -8
  8. package/dist/error-diagnostics-ClQKdi7c.js +194 -0
  9. package/dist/github-D5S0dEZe.js +1312 -0
  10. package/dist/{glob-BmFqTvJY.js → glob-DmdMVqjx.js} +1 -2
  11. package/dist/index.d.ts +186 -55
  12. package/dist/index.js +152 -207
  13. package/dist/invariant-DolT9EEx.js +22 -0
  14. package/dist/mcp.d.ts +1 -1
  15. package/dist/mcp.js +25 -140
  16. package/dist/object-CtSHeGQO.js +17 -0
  17. package/dist/{path-BS8rYm0n.js → path-DFlSryRA.js} +32 -2
  18. package/dist/root-DJNmqCEW.js +11 -0
  19. package/dist/server.d.ts +7 -244
  20. package/dist/server.js +38 -45
  21. package/dist/{types-BigOktIj.d.ts → types-Ln-FxVFn.d.ts} +6 -1
  22. package/dist/vite.d.ts +77 -10
  23. package/dist/vite.js +619 -713
  24. package/package.json +25 -47
  25. package/dist/auth-B-tX_rp0.js +0 -1426
  26. package/dist/client-BwstxtdY.js +0 -8280
  27. package/dist/collection-cursor-WzV1Jd6v.js +0 -124
  28. package/dist/error-diagnostics-X0kuFjBT.js +0 -51
  29. package/dist/file-BX0FSvgE.js +0 -60
  30. package/dist/file-DadN9dbN.d.ts +0 -19
  31. package/dist/file.d.ts +0 -2
  32. package/dist/file.js +0 -2
  33. package/dist/files.d.ts +0 -15
  34. package/dist/files.js +0 -38
  35. package/dist/github.d.ts +0 -20
  36. package/dist/github.js +0 -1332
  37. package/dist/glob.d.ts +0 -23
  38. package/dist/glob.js +0 -2
  39. package/dist/markdown.d.ts +0 -5
  40. package/dist/markdown.js +0 -10
  41. package/dist/mrmime-40h5OOIp.js +0 -448
  42. package/dist/path-DOBpV8ol.js +0 -32
  43. package/dist/sse-D9gqqNPj.js +0 -448
  44. package/dist/streamableHttp-BL-E7pl5.js +0 -509
  45. package/dist/types-CoWcW8oz.js +0 -7590
  46. package/tsconfig.vite.json +0 -6
  47. package/types/source/fallback.d.ts +0 -1
  48. package/types/source/index.d.ts +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vite-hub/source",
3
- "version": "0.1.0",
3
+ "version": "0.3.1",
4
4
  "description": "Typed source retrieval primitives for ViteHub.",
5
5
  "keywords": [
6
6
  "content",
@@ -22,8 +22,6 @@
22
22
  },
23
23
  "files": [
24
24
  "dist",
25
- "types",
26
- "tsconfig.vite.json",
27
25
  "package.json"
28
26
  ],
29
27
  "type": "module",
@@ -45,31 +43,6 @@
45
43
  "import": "./dist/drizzle.js",
46
44
  "default": "./dist/drizzle.js"
47
45
  },
48
- "./file": {
49
- "types": "./dist/file.d.ts",
50
- "import": "./dist/file.js",
51
- "default": "./dist/file.js"
52
- },
53
- "./files": {
54
- "types": "./dist/files.d.ts",
55
- "import": "./dist/files.js",
56
- "default": "./dist/files.js"
57
- },
58
- "./github": {
59
- "types": "./dist/github.d.ts",
60
- "import": "./dist/github.js",
61
- "default": "./dist/github.js"
62
- },
63
- "./glob": {
64
- "types": "./dist/glob.d.ts",
65
- "import": "./dist/glob.js",
66
- "default": "./dist/glob.js"
67
- },
68
- "./markdown": {
69
- "types": "./dist/markdown.d.ts",
70
- "import": "./dist/markdown.js",
71
- "default": "./dist/markdown.js"
72
- },
73
46
  "./mcp": {
74
47
  "types": "./dist/mcp.d.ts",
75
48
  "import": "./dist/mcp.js",
@@ -85,26 +58,24 @@
85
58
  "import": "./dist/vite.js",
86
59
  "default": "./dist/vite.js"
87
60
  },
88
- "./package.json": "./package.json",
89
- "./tsconfig": "./tsconfig.vite.json"
61
+ "./package.json": "./package.json"
90
62
  },
91
63
  "dependencies": {
92
64
  "@standard-schema/spec": "^1.1.0",
93
- "@vite-hub/forge": "0.1.0",
94
- "@vite-hub/runtime": "0.1.0",
95
- "h3": "2.0.1-rc.33",
96
- "mlly": "^1.8.2",
97
- "nostics": "1.3.0",
98
- "ofetch": "^1.5.1"
65
+ "@vite-hub/runtime": "0.3.1",
66
+ "mrmime": "^2.0.1",
67
+ "nostics": "1.4.0",
68
+ "ocache": "^0.3.1"
99
69
  },
100
70
  "devDependencies": {
101
71
  "@modelcontextprotocol/sdk": "^1.32.1",
102
72
  "@types/node": "^24.19.1",
103
73
  "@types/picomatch": "^4.0.3",
104
- "drizzle-orm": "^0.45.3",
105
- "mrmime": "^2.0.1",
106
- "nitro": "3.0.260903-beta",
107
- "ocache": "^0.3.0",
74
+ "@vite-hub/forge": "0.3.1",
75
+ "@vite-hub/internal": "0.0.1",
76
+ "drizzle-orm": "1.0.0-rc.5",
77
+ "h3": "^2.0.8",
78
+ "nitro": "^3.0.261103-rc",
108
79
  "picomatch": "^4.0.7",
109
80
  "publint": "^0.3.25",
110
81
  "tinyglobby": "^0.2.17",
@@ -113,16 +84,20 @@
113
84
  "valibot": "^1.5.0",
114
85
  "vite-plus": "^0.3.3",
115
86
  "vitest": "^4.1.11",
116
- "vue": "3.5.44",
117
- "@vite-hub/internal": "0.0.1"
87
+ "vue": "3.5.44"
118
88
  },
119
89
  "peerDependencies": {
120
- "drizzle-orm": "^0.45.3",
121
- "nitro": "3.0.260903-beta",
90
+ "@modelcontextprotocol/sdk": "^1.32.1",
91
+ "drizzle-orm": "1.0.0-rc.5 || ^1.0.0",
92
+ "nitro": "3.0.261102-rc || ^3.0.261103-rc",
122
93
  "vite": ">=8.0.0",
123
- "vue": "3.5.44"
94
+ "vue": "^3.5.0",
95
+ "@vite-hub/forge": "0.3.1"
124
96
  },
125
97
  "peerDependenciesMeta": {
98
+ "@modelcontextprotocol/sdk": {
99
+ "optional": true
100
+ },
126
101
  "drizzle-orm": {
127
102
  "optional": true
128
103
  },
@@ -134,15 +109,18 @@
134
109
  },
135
110
  "vue": {
136
111
  "optional": true
112
+ },
113
+ "@vite-hub/forge": {
114
+ "optional": true
137
115
  }
138
116
  },
139
117
  "engines": {
140
- "node": ">=24.0.0"
118
+ "node": ">=22.18.0"
141
119
  },
142
120
  "scripts": {
143
121
  "build": "vp pack",
144
122
  "dev": "vp pack --watch",
145
123
  "typecheck": "vp run --cache -t @vite-hub/source#build && node ../../test/package-typecheck.mjs --noEmit -p ./tsconfig.json",
146
- "test": "vp run -t @vite-hub/source#build && vp test"
124
+ "test": "vp run --cache -t @vite-hub/source#build && vp test"
147
125
  }
148
126
  }