@vistagenic/vista 0.3.0 → 0.3.3

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 (101) hide show
  1. package/bin/vista.js +79 -109
  2. package/dist/ai/embeddings.d.ts +11 -11
  3. package/dist/ai/embeddings.js +71 -71
  4. package/dist/ai/index.d.ts +10 -10
  5. package/dist/ai/index.js +26 -26
  6. package/dist/ai/providers/base.js +85 -85
  7. package/dist/ai/react/react-server.d.ts +1 -1
  8. package/dist/ai/react/react-server.js +17 -17
  9. package/dist/ai/react/use-agent.js +138 -138
  10. package/dist/auth/core.d.ts +140 -140
  11. package/dist/auth/core.js +165 -165
  12. package/dist/auth/index.d.ts +20 -20
  13. package/dist/auth/index.js +369 -369
  14. package/dist/auth/react-server.d.ts +1 -1
  15. package/dist/auth/react-server.js +10 -10
  16. package/dist/auth/react.d.ts +18 -18
  17. package/dist/auth/react.js +71 -71
  18. package/dist/bin/build-rsc-flashpack.js +6 -0
  19. package/dist/bin/build-rsc.js +537 -492
  20. package/dist/bin/build.js +355 -353
  21. package/dist/bin/dev-error-overlay-snippet.js +379 -153
  22. package/dist/bin/generate.js +513 -510
  23. package/dist/bin/webpack.config.js +4 -3
  24. package/dist/build/manifest.d.ts +169 -169
  25. package/dist/build/manifest.js +423 -423
  26. package/dist/build/rsc/client-manifest.d.ts +62 -62
  27. package/dist/build/rsc/client-manifest.js +295 -295
  28. package/dist/build/rsc/compiler.js +5 -4
  29. package/dist/build/rsc/native-scanner.d.ts +135 -135
  30. package/dist/build/rsc/native-scanner.js +203 -203
  31. package/dist/build/rsc/react-client-reference-manifest.d.ts +28 -28
  32. package/dist/build/rsc/react-client-reference-manifest.js +240 -240
  33. package/dist/build/standalone.js +260 -254
  34. package/dist/client/dynamic.react-server.d.ts +2 -2
  35. package/dist/client/dynamic.react-server.js +23 -23
  36. package/dist/client/link.react-server.d.ts +2 -2
  37. package/dist/client/link.react-server.js +11 -11
  38. package/dist/client/navigation.react-server.d.ts +1 -1
  39. package/dist/client/navigation.react-server.js +17 -17
  40. package/dist/client/router.react-server.d.ts +1 -1
  41. package/dist/client/router.react-server.js +17 -17
  42. package/dist/client/rsc-router.react-server.d.ts +1 -1
  43. package/dist/client/rsc-router.react-server.js +17 -17
  44. package/dist/client/script.react-server.d.ts +2 -2
  45. package/dist/client/script.react-server.js +23 -23
  46. package/dist/config.d.ts +1 -1
  47. package/dist/config.js +1 -7
  48. package/dist/deploy/adapters/cloudflare.js +43 -19
  49. package/dist/deploy/adapters/docker.d.ts +1 -0
  50. package/dist/deploy/adapters/docker.js +5 -4
  51. package/dist/deploy/adapters/netlify.js +62 -17
  52. package/dist/deploy/adapters/vercel.js +80 -50
  53. package/dist/deploy/preflight.js +4 -3
  54. package/dist/deploy/runtime-pack.d.ts +11 -0
  55. package/dist/deploy/runtime-pack.js +300 -0
  56. package/dist/deploy/utils.d.ts +1 -1
  57. package/dist/deploy/utils.js +31 -2
  58. package/dist/dev-error.d.ts +14 -0
  59. package/dist/dev-error.js +1394 -336
  60. package/dist/flashpack/command.js +1 -0
  61. package/dist/flashpack/runtime.js +2 -1
  62. package/dist/index.d.ts +23 -23
  63. package/dist/index.js +61 -61
  64. package/dist/server/app-dir.d.ts +22 -0
  65. package/dist/server/app-dir.js +77 -0
  66. package/dist/server/cookie-parse.d.ts +4 -4
  67. package/dist/server/cookie-parse.js +14 -14
  68. package/dist/server/engine.js +6 -12
  69. package/dist/server/image-optimizer.js +2 -1
  70. package/dist/server/index.d.ts +109 -109
  71. package/dist/server/index.js +315 -315
  72. package/dist/server/middleware-runner.d.ts +125 -125
  73. package/dist/server/middleware-runner.js +607 -615
  74. package/dist/server/middleware-security.d.ts +36 -36
  75. package/dist/server/middleware-security.js +183 -183
  76. package/dist/server/module-compile-hook.js +695 -695
  77. package/dist/server/root-resolver.js +6 -5
  78. package/dist/server/rsc-engine-flashpack.d.ts +3 -1
  79. package/dist/server/rsc-engine-flashpack.js +12 -1
  80. package/dist/server/rsc-engine.d.ts +6 -1
  81. package/dist/server/rsc-engine.js +203 -229
  82. package/dist/server/rsc-upstream.js +893 -892
  83. package/dist/server/static-generator.js +4 -3
  84. package/dist/server/structure-validator.js +2 -1
  85. package/dist/server/structure-watch.js +2 -0
  86. package/dist/server/typed-api-runtime.js +639 -635
  87. package/dist/server/vista-import-map.js +134 -134
  88. package/dist/stack/index.d.ts +34 -34
  89. package/dist/stack/index.js +49 -49
  90. package/dist/stack/server/caller.d.ts +13 -13
  91. package/dist/stack/server/caller.js +42 -42
  92. package/dist/stack/server/executor.d.ts +40 -40
  93. package/dist/stack/server/executor.js +222 -222
  94. package/dist/stack/server/index.d.ts +11 -11
  95. package/dist/stack/server/index.js +24 -24
  96. package/dist/stack/server/procedure.d.ts +20 -20
  97. package/dist/stack/server/procedure.js +66 -66
  98. package/dist/stack/server/types.d.ts +113 -113
  99. package/dist/theme/react-server.d.ts +10 -10
  100. package/dist/theme/react-server.js +16 -16
  101. package/package.json +178 -178
@@ -1,62 +1,62 @@
1
- /**
2
- * Client Component Manifest Generator
3
- *
4
- * Scans the app directory and builds a manifest of all Client Components.
5
- * Client components are those with 'use client' directive.
6
- *
7
- * The manifest maps component paths to their chunk names for client-side loading.
8
- */
9
- /**
10
- * Top-level app directories that may contain `'use client'` modules.
11
- * Discovery is directory membership, not the import graph, so `utils/`,
12
- * `lib/`, and `src/` have to be scanned explicitly or they never enter
13
- * the React Client Manifest.
14
- */
15
- export declare function discoverProjectClientRoots(cwd: string): Array<{
16
- dir: string;
17
- prefix: string;
18
- }>;
19
- export interface ClientComponentEntry {
20
- /** Unique ID for this component */
21
- id: string;
22
- /** Relative path from app directory */
23
- path: string;
24
- /** Absolute file path */
25
- absolutePath: string;
26
- /** Generated chunk name */
27
- chunkName: string;
28
- /** Exported names from this module */
29
- exports: string[];
30
- /** Is async/lazy loaded */
31
- async: boolean;
32
- }
33
- export interface ClientManifest {
34
- /** Build ID for cache busting */
35
- buildId: string;
36
- /** Map of module ID to client component info */
37
- clientModules: Record<string, ClientComponentEntry>;
38
- /** Map of module path to module ID (for lookups) */
39
- pathToId: Record<string, string>;
40
- /** SSR module mapping (server paths to client chunks) */
41
- ssrModuleMapping: Record<string, string>;
42
- }
43
- /**
44
- * Generate the client component manifest
45
- */
46
- export declare function generateClientManifest(cwd: string, appDir: string): ClientManifest;
47
- export declare function generateClientManifestWithRoots(cwd: string, appDir: string, additionalRoots?: Array<{
48
- dir: string;
49
- prefix?: string;
50
- }>): ClientManifest;
51
- /**
52
- * Get client component info by module ID
53
- */
54
- export declare function getClientComponent(manifest: ClientManifest, moduleId: string): ClientComponentEntry | undefined;
55
- /**
56
- * Get client component by file path
57
- */
58
- export declare function getClientComponentByPath(manifest: ClientManifest, filePath: string): ClientComponentEntry | undefined;
59
- /**
60
- * Check if a path is a client component
61
- */
62
- export declare function isClientComponentPath(manifest: ClientManifest, filePath: string): boolean;
1
+ /**
2
+ * Client Component Manifest Generator
3
+ *
4
+ * Scans the app directory and builds a manifest of all Client Components.
5
+ * Client components are those with 'use client' directive.
6
+ *
7
+ * The manifest maps component paths to their chunk names for client-side loading.
8
+ */
9
+ /**
10
+ * Top-level app directories that may contain `'use client'` modules.
11
+ * Discovery is directory membership, not the import graph, so `utils/`,
12
+ * `lib/`, and `src/` have to be scanned explicitly or they never enter
13
+ * the React Client Manifest.
14
+ */
15
+ export declare function discoverProjectClientRoots(cwd: string): Array<{
16
+ dir: string;
17
+ prefix: string;
18
+ }>;
19
+ export interface ClientComponentEntry {
20
+ /** Unique ID for this component */
21
+ id: string;
22
+ /** Relative path from app directory */
23
+ path: string;
24
+ /** Absolute file path */
25
+ absolutePath: string;
26
+ /** Generated chunk name */
27
+ chunkName: string;
28
+ /** Exported names from this module */
29
+ exports: string[];
30
+ /** Is async/lazy loaded */
31
+ async: boolean;
32
+ }
33
+ export interface ClientManifest {
34
+ /** Build ID for cache busting */
35
+ buildId: string;
36
+ /** Map of module ID to client component info */
37
+ clientModules: Record<string, ClientComponentEntry>;
38
+ /** Map of module path to module ID (for lookups) */
39
+ pathToId: Record<string, string>;
40
+ /** SSR module mapping (server paths to client chunks) */
41
+ ssrModuleMapping: Record<string, string>;
42
+ }
43
+ /**
44
+ * Generate the client component manifest
45
+ */
46
+ export declare function generateClientManifest(cwd: string, appDir: string): ClientManifest;
47
+ export declare function generateClientManifestWithRoots(cwd: string, appDir: string, additionalRoots?: Array<{
48
+ dir: string;
49
+ prefix?: string;
50
+ }>): ClientManifest;
51
+ /**
52
+ * Get client component info by module ID
53
+ */
54
+ export declare function getClientComponent(manifest: ClientManifest, moduleId: string): ClientComponentEntry | undefined;
55
+ /**
56
+ * Get client component by file path
57
+ */
58
+ export declare function getClientComponentByPath(manifest: ClientManifest, filePath: string): ClientComponentEntry | undefined;
59
+ /**
60
+ * Check if a path is a client component
61
+ */
62
+ export declare function isClientComponentPath(manifest: ClientManifest, filePath: string): boolean;