@vite-hub/source 0.0.3 → 0.1.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 (44) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +302 -31
  3. package/dist/auth-B-tX_rp0.js +1426 -0
  4. package/dist/client-BwstxtdY.js +8280 -0
  5. package/dist/client.d.ts +49 -0
  6. package/dist/client.js +179 -0
  7. package/dist/collection-B_4w_J8h.d.ts +257 -0
  8. package/dist/collection-cursor-WzV1Jd6v.js +124 -0
  9. package/dist/collection-route-BplWPxHR.js +10 -0
  10. package/dist/drizzle.d.ts +41 -0
  11. package/dist/drizzle.js +89 -0
  12. package/dist/error-diagnostics-X0kuFjBT.js +51 -0
  13. package/dist/file-BX0FSvgE.js +60 -0
  14. package/dist/file-DadN9dbN.d.ts +19 -0
  15. package/dist/file.d.ts +2 -0
  16. package/dist/file.js +2 -0
  17. package/dist/files.d.ts +15 -0
  18. package/dist/files.js +38 -0
  19. package/dist/github.d.ts +20 -0
  20. package/dist/github.js +1332 -0
  21. package/dist/glob-BmFqTvJY.js +993 -0
  22. package/dist/glob.d.ts +23 -0
  23. package/dist/glob.js +2 -0
  24. package/dist/index.d.ts +165 -172
  25. package/dist/index.js +600 -1113
  26. package/dist/markdown.d.ts +5 -0
  27. package/dist/markdown.js +10 -0
  28. package/dist/mcp.d.ts +151 -0
  29. package/dist/mcp.js +497 -0
  30. package/dist/mrmime-40h5OOIp.js +448 -0
  31. package/dist/path-BS8rYm0n.js +1956 -0
  32. package/dist/path-DOBpV8ol.js +32 -0
  33. package/dist/server.d.ts +265 -0
  34. package/dist/server.js +149 -0
  35. package/dist/sse-D9gqqNPj.js +448 -0
  36. package/dist/streamableHttp-BL-E7pl5.js +509 -0
  37. package/dist/types-BigOktIj.d.ts +93 -0
  38. package/dist/types-CoWcW8oz.js +7590 -0
  39. package/dist/vite.d.ts +162 -0
  40. package/dist/vite.js +2284 -0
  41. package/package.json +102 -17
  42. package/tsconfig.vite.json +6 -0
  43. package/types/source/fallback.d.ts +1 -0
  44. package/types/source/index.d.ts +1 -0
package/package.json CHANGED
@@ -1,15 +1,17 @@
1
1
  {
2
2
  "name": "@vite-hub/source",
3
- "version": "0.0.3",
3
+ "version": "0.1.0",
4
4
  "description": "Typed source retrieval primitives for ViteHub.",
5
5
  "keywords": [
6
6
  "content",
7
7
  "files",
8
8
  "github",
9
+ "retrieval",
9
10
  "source",
11
+ "typescript",
10
12
  "vitehub"
11
13
  ],
12
- "homepage": "https://github.com/vite-hub/vitehub#readme",
14
+ "homepage": "https://vitehub.dev",
13
15
  "bugs": "https://github.com/vite-hub/vitehub/issues",
14
16
  "license": "Apache-2.0",
15
17
  "author": "onmax <maximogarciamtnez@gmail.com>",
@@ -20,6 +22,8 @@
20
22
  },
21
23
  "files": [
22
24
  "dist",
25
+ "types",
26
+ "tsconfig.vite.json",
23
27
  "package.json"
24
28
  ],
25
29
  "type": "module",
@@ -28,36 +32,117 @@
28
32
  "exports": {
29
33
  ".": {
30
34
  "types": "./dist/index.d.ts",
31
- "import": "./dist/index.js"
35
+ "import": "./dist/index.js",
36
+ "default": "./dist/index.js"
32
37
  },
33
- "./package.json": "./package.json"
38
+ "./client": {
39
+ "types": "./dist/client.d.ts",
40
+ "import": "./dist/client.js",
41
+ "default": "./dist/client.js"
42
+ },
43
+ "./drizzle": {
44
+ "types": "./dist/drizzle.d.ts",
45
+ "import": "./dist/drizzle.js",
46
+ "default": "./dist/drizzle.js"
47
+ },
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
+ "./mcp": {
74
+ "types": "./dist/mcp.d.ts",
75
+ "import": "./dist/mcp.js",
76
+ "default": "./dist/mcp.js"
77
+ },
78
+ "./server": {
79
+ "types": "./dist/server.d.ts",
80
+ "import": "./dist/server.js",
81
+ "default": "./dist/server.js"
82
+ },
83
+ "./vite": {
84
+ "types": "./dist/vite.d.ts",
85
+ "import": "./dist/vite.js",
86
+ "default": "./dist/vite.js"
87
+ },
88
+ "./package.json": "./package.json",
89
+ "./tsconfig": "./tsconfig.vite.json"
34
90
  },
35
91
  "dependencies": {
36
- "@modelcontextprotocol/sdk": "^1.29.0",
37
- "effect": "4.0.0-beta.99",
38
- "mrmime": "^2.0.1",
39
- "ocache": "^0.1.5",
40
- "pathe": "^2.0.3",
41
- "picomatch": "^4.0.5",
42
- "tinyglobby": "^0.2.17",
43
- "@vite-hub/runtime": "0.0.3"
92
+ "@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"
44
99
  },
45
100
  "devDependencies": {
46
- "@types/node": "^24.13.3",
101
+ "@modelcontextprotocol/sdk": "^1.32.1",
102
+ "@types/node": "^24.19.1",
47
103
  "@types/picomatch": "^4.0.3",
48
- "publint": "^0.3.21",
104
+ "drizzle-orm": "^0.45.3",
105
+ "mrmime": "^2.0.1",
106
+ "nitro": "3.0.260903-beta",
107
+ "ocache": "^0.3.0",
108
+ "picomatch": "^4.0.7",
109
+ "publint": "^0.3.25",
110
+ "tinyglobby": "^0.2.17",
49
111
  "typescript": "^6.0.3",
50
- "vite-plus": "^0.1.24",
51
- "vitest": "^4.1.4",
112
+ "vite": "^8.2.2",
113
+ "valibot": "^1.5.0",
114
+ "vite-plus": "^0.3.3",
115
+ "vitest": "^4.1.11",
116
+ "vue": "3.5.44",
52
117
  "@vite-hub/internal": "0.0.1"
53
118
  },
119
+ "peerDependencies": {
120
+ "drizzle-orm": "^0.45.3",
121
+ "nitro": "3.0.260903-beta",
122
+ "vite": ">=8.0.0",
123
+ "vue": "3.5.44"
124
+ },
125
+ "peerDependenciesMeta": {
126
+ "drizzle-orm": {
127
+ "optional": true
128
+ },
129
+ "nitro": {
130
+ "optional": true
131
+ },
132
+ "vite": {
133
+ "optional": true
134
+ },
135
+ "vue": {
136
+ "optional": true
137
+ }
138
+ },
54
139
  "engines": {
55
140
  "node": ">=24.0.0"
56
141
  },
57
142
  "scripts": {
58
143
  "build": "vp pack",
59
144
  "dev": "vp pack --watch",
60
- "typecheck": "tsc --noEmit -p ./tsconfig.json",
145
+ "typecheck": "vp run --cache -t @vite-hub/source#build && node ../../test/package-typecheck.mjs --noEmit -p ./tsconfig.json",
61
146
  "test": "vp run -t @vite-hub/source#build && vp test"
62
147
  }
63
148
  }
@@ -0,0 +1,6 @@
1
+ {
2
+ "compilerOptions": {
3
+ "rootDirs": ["${configDir}/.vitehub/types/source", "./types/source"]
4
+ },
5
+ "files": ["./types/source/index.d.ts", "./types/source/fallback.d.ts"]
6
+ }
@@ -0,0 +1 @@
1
+ declare module "*vitehub-source-registry.js" {}
@@ -0,0 +1 @@
1
+ import "./vitehub-source-registry.js"