@thangnm.nip/arouter 0.1.7 → 0.1.9

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 (75) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/app-path-routes-manifest.json +5 -5
  3. package/.next/standalone/.next/build-manifest.json +2 -2
  4. package/.next/standalone/.next/server/app/(dashboard)/mitm/page_client-reference-manifest.js +1 -1
  5. package/.next/standalone/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  6. package/.next/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  7. package/.next/standalone/.next/server/app/_global-error.html +2 -2
  8. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  9. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  10. package/.next/standalone/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  11. package/.next/standalone/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  12. package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  13. package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  14. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  15. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  16. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  17. package/.next/standalone/.next/server/app/_not-found.rsc +3 -3
  18. package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
  19. package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  20. package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +3 -3
  21. package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  22. package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  23. package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  24. package/.next/standalone/.next/server/app/api/cli-tools/antigravity-mitm/alias/route_client-reference-manifest.js +1 -1
  25. package/.next/standalone/.next/server/app/api/cli-tools/antigravity-mitm/console-logs/route_client-reference-manifest.js +1 -1
  26. package/.next/standalone/.next/server/app/api/cli-tools/antigravity-mitm/route_client-reference-manifest.js +1 -1
  27. package/.next/standalone/.next/server/app/api/cli-tools/antigravity-mitm/settings/route.js +1 -1
  28. package/.next/standalone/.next/server/app/api/cli-tools/antigravity-mitm/settings/route_client-reference-manifest.js +1 -1
  29. package/.next/standalone/.next/server/app/api/cli-tools/claude-settings/route_client-reference-manifest.js +1 -1
  30. package/.next/standalone/.next/server/app/api/cli-tools/codex-settings/route_client-reference-manifest.js +1 -1
  31. package/.next/standalone/.next/server/app/api/cli-tools/copilot-settings/route_client-reference-manifest.js +1 -1
  32. package/.next/standalone/.next/server/app/api/cli-tools/droid-settings/route_client-reference-manifest.js +1 -1
  33. package/.next/standalone/.next/server/app/api/cli-tools/openclaw-settings/route_client-reference-manifest.js +1 -1
  34. package/.next/standalone/.next/server/app/api/cli-tools/opencode-settings/route_client-reference-manifest.js +1 -1
  35. package/.next/standalone/.next/server/app/api/keys/[id]/route_client-reference-manifest.js +1 -1
  36. package/.next/standalone/.next/server/app/api/keys/route_client-reference-manifest.js +1 -1
  37. package/.next/standalone/.next/server/app/api/locale/route_client-reference-manifest.js +1 -1
  38. package/.next/standalone/.next/server/app/api/models/alias/route_client-reference-manifest.js +1 -1
  39. package/.next/standalone/.next/server/app/api/models/route_client-reference-manifest.js +1 -1
  40. package/.next/standalone/.next/server/app/api/providers/route_client-reference-manifest.js +1 -1
  41. package/.next/standalone/.next/server/app/api/settings/route_client-reference-manifest.js +1 -1
  42. package/.next/standalone/.next/server/app/api/version/route_client-reference-manifest.js +1 -1
  43. package/.next/standalone/.next/server/app/index.html +1 -1
  44. package/.next/standalone/.next/server/app/index.rsc +4 -4
  45. package/.next/standalone/.next/server/app/index.segments/!KGRhc2hib2FyZCk/__PAGE__.segment.rsc +1 -1
  46. package/.next/standalone/.next/server/app/index.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  47. package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +4 -4
  48. package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
  49. package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +3 -3
  50. package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  51. package/.next/standalone/.next/server/app/mitm.html +1 -1
  52. package/.next/standalone/.next/server/app/mitm.rsc +5 -5
  53. package/.next/standalone/.next/server/app/mitm.segments/!KGRhc2hib2FyZCk/mitm/__PAGE__.segment.rsc +2 -2
  54. package/.next/standalone/.next/server/app/mitm.segments/!KGRhc2hib2FyZCk/mitm.segment.rsc +1 -1
  55. package/.next/standalone/.next/server/app/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  56. package/.next/standalone/.next/server/app/mitm.segments/_full.segment.rsc +5 -5
  57. package/.next/standalone/.next/server/app/mitm.segments/_head.segment.rsc +1 -1
  58. package/.next/standalone/.next/server/app/mitm.segments/_index.segment.rsc +3 -3
  59. package/.next/standalone/.next/server/app/mitm.segments/_tree.segment.rsc +1 -1
  60. package/.next/standalone/.next/server/app-paths-manifest.json +5 -5
  61. package/.next/standalone/.next/server/chunks/182.js +1 -1
  62. package/.next/standalone/.next/server/chunks/411.js +1 -1
  63. package/.next/standalone/.next/server/pages/404.html +1 -1
  64. package/.next/standalone/.next/server/pages/500.html +2 -2
  65. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  66. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  67. package/.next/standalone/.next/static/chunks/{702-95bdd18daf0b487c.js → 702-48478a677dbcb531.js} +1 -1
  68. package/.next/standalone/package.json +3 -1
  69. package/.next/standalone/src/mitm/manager.js +5 -3
  70. package/.next/standalone/src/mitm/server.js +8 -2
  71. package/package.json +3 -1
  72. package/scripts/postinstall.mjs +325 -0
  73. package/scripts/prepare-standalone.mjs +71 -0
  74. /package/.next/standalone/.next/static/{D0LEa5K3p5asRN-XfJyez → RLvllJ-D4tTteJ5JTm91z}/_buildManifest.js +0 -0
  75. /package/.next/standalone/.next/static/{D0LEa5K3p5asRN-XfJyez → RLvllJ-D4tTteJ5JTm91z}/_ssgManifest.js +0 -0
@@ -0,0 +1,71 @@
1
+ import fs from 'fs';
2
+ import path from 'path';
3
+ import { fileURLToPath } from 'url';
4
+
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = path.dirname(__filename);
7
+
8
+ const projectRoot = path.join(__dirname, '..');
9
+ const standaloneDir = path.join(projectRoot, '.next', 'standalone');
10
+
11
+ // Function to copy a directory recursively
12
+ function copyDirSync(src, dest) {
13
+ if (!fs.existsSync(src)) return;
14
+
15
+ if (!fs.existsSync(dest)) {
16
+ fs.mkdirSync(dest, { recursive: true });
17
+ }
18
+
19
+ const entries = fs.readdirSync(src, { withFileTypes: true });
20
+
21
+ for (let entry of entries) {
22
+ const srcPath = path.join(src, entry.name);
23
+ const destPath = path.join(dest, entry.name);
24
+
25
+ if (entry.isDirectory()) {
26
+ copyDirSync(srcPath, destPath);
27
+ } else {
28
+ fs.copyFileSync(srcPath, destPath);
29
+ }
30
+ }
31
+ }
32
+
33
+ console.log('Copying static assets to standalone directory...');
34
+
35
+ // Copy 'src/mitm' directory
36
+ const mitmSrc = path.join(projectRoot, 'src', 'mitm');
37
+ const mitmDest = path.join(standaloneDir, 'src', 'mitm');
38
+ if (fs.existsSync(mitmSrc)) {
39
+ console.log(`Copying ${mitmSrc} to ${mitmDest}`);
40
+ copyDirSync(mitmSrc, mitmDest);
41
+ }
42
+
43
+ // Manually copy untraced dependencies for mitm
44
+ const mitmDeps = ['node-forge', 'node-machine-id'];
45
+ mitmDeps.forEach(dep => {
46
+ const depSrc = path.join(projectRoot, 'node_modules', dep);
47
+ const depDest = path.join(standaloneDir, 'node_modules', dep);
48
+ if (fs.existsSync(depSrc)) {
49
+ console.log(`Copying untraced module: ${dep}`);
50
+ copyDirSync(depSrc, depDest);
51
+ }
52
+ });
53
+
54
+ // Copy 'public' directory
55
+ const publicSrc = path.join(projectRoot, 'public');
56
+ const publicDest = path.join(standaloneDir, 'public');
57
+ if (fs.existsSync(publicSrc)) {
58
+ console.log(`Copying ${publicSrc} to ${publicDest}`);
59
+ copyDirSync(publicSrc, publicDest);
60
+ }
61
+
62
+ // Copy '.next/static' directory
63
+ const staticSrc = path.join(projectRoot, '.next', 'static');
64
+ // Important: Next.js reads static files from .next/standalone/.next/static
65
+ const staticDest = path.join(standaloneDir, '.next', 'static');
66
+ if (fs.existsSync(staticSrc)) {
67
+ console.log(`Copying ${staticSrc} to ${staticDest}`);
68
+ copyDirSync(staticSrc, staticDest);
69
+ }
70
+
71
+ console.log('Standalone preparation complete!');