@patodo/localapp 0.2.1 → 0.2.6

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 (77) hide show
  1. package/.localapp-artifact.json +109 -109
  2. package/README.md +12 -2
  3. package/bin/localapp.mjs +645 -184
  4. package/package.json +1 -1
  5. package/runtime/native/adapter-manifest.json +10 -10
  6. package/runtime/native/darwin-arm64/LocalAppBridge.app/Contents/MacOS/LocalAppBridge +0 -0
  7. package/runtime/native/darwin-arm64/LocalAppBridge.app/Contents/Resources/localapp-native-ipc-client.mjs +57 -5
  8. package/runtime/native/darwin-arm64/LocalAppBridge.app/Contents/_CodeSignature/CodeResources +2 -2
  9. package/runtime/native/darwin-x64/LocalAppBridge.app/Contents/MacOS/LocalAppBridge +0 -0
  10. package/runtime/native/darwin-x64/LocalAppBridge.app/Contents/Resources/localapp-native-ipc-client.mjs +57 -5
  11. package/runtime/native/darwin-x64/LocalAppBridge.app/Contents/_CodeSignature/CodeResources +2 -2
  12. package/runtime/native/linux-x64/localapp-native-ipc-client.mjs +57 -5
  13. package/runtime/native/linux-x64/localapp-notifications +0 -0
  14. package/runtime/native/win32-x64/localapp-native-ipc-client.mjs +57 -5
  15. package/runtime/native/win32-x64/localapp-native.exe +0 -0
  16. package/runtime/server/.localapp-server-runtime.json +59 -59
  17. package/runtime/server/bin/worker.cjs +110 -2
  18. package/runtime/server/web/404.html +1 -1
  19. package/runtime/server/web/_next/static/chunks/app/(dashboard)/page-3252f21360e42fa1.js +1 -0
  20. package/runtime/server/web/_next/static/css/b8973d29c0d3fd9b.css +3 -0
  21. package/runtime/server/web/inbox.html +1 -1
  22. package/runtime/server/web/inbox.txt +2 -2
  23. package/runtime/server/web/index.html +1 -1
  24. package/runtime/server/web/index.txt +3 -3
  25. package/runtime/server/web/my/analytics.html +1 -1
  26. package/runtime/server/web/my/analytics.txt +2 -2
  27. package/runtime/server/web/my/apps/placeholder/settings.html +1 -1
  28. package/runtime/server/web/my/apps/placeholder/settings.txt +2 -2
  29. package/runtime/server/web/my/apps.html +1 -1
  30. package/runtime/server/web/my/apps.txt +2 -2
  31. package/runtime/server/web/my/dashboard.html +1 -1
  32. package/runtime/server/web/my/dashboard.txt +2 -2
  33. package/runtime/server/web/my/device-actions.html +1 -1
  34. package/runtime/server/web/my/device-actions.txt +2 -2
  35. package/runtime/server/web/my/device-notifications.html +1 -1
  36. package/runtime/server/web/my/device-notifications.txt +2 -2
  37. package/runtime/server/web/my/favorites.html +1 -1
  38. package/runtime/server/web/my/favorites.txt +2 -2
  39. package/runtime/server/web/my/groups.html +1 -1
  40. package/runtime/server/web/my/groups.txt +2 -2
  41. package/runtime/server/web/my/info.html +1 -1
  42. package/runtime/server/web/my/info.txt +2 -2
  43. package/runtime/server/web/my/keys.html +1 -1
  44. package/runtime/server/web/my/keys.txt +2 -2
  45. package/runtime/server/web/my/orgs.html +1 -1
  46. package/runtime/server/web/my/orgs.txt +2 -2
  47. package/runtime/server/web/my/pages.html +1 -1
  48. package/runtime/server/web/my/pages.txt +2 -2
  49. package/runtime/server/web/my/peers.html +1 -1
  50. package/runtime/server/web/my/peers.txt +2 -2
  51. package/runtime/server/web/my/recent.html +1 -1
  52. package/runtime/server/web/my/recent.txt +2 -2
  53. package/runtime/server/web/my/settings.html +1 -1
  54. package/runtime/server/web/my/settings.txt +2 -2
  55. package/runtime/server/web/my/studio.html +1 -1
  56. package/runtime/server/web/my/studio.txt +2 -2
  57. package/runtime/server/web/my/subscriptions.html +1 -1
  58. package/runtime/server/web/my/subscriptions.txt +2 -2
  59. package/runtime/server/web/my/system.html +1 -1
  60. package/runtime/server/web/my/system.txt +2 -2
  61. package/runtime/server/web/my/tasks.html +1 -1
  62. package/runtime/server/web/my/tasks.txt +2 -2
  63. package/runtime/server/web/my/users.html +1 -1
  64. package/runtime/server/web/my/users.txt +2 -2
  65. package/runtime/server/web/my.html +1 -1
  66. package/runtime/server/web/my.txt +2 -2
  67. package/runtime/server/web/platform-shell/placeholder/placeholder.html +1 -1
  68. package/runtime/server/web/platform-shell/placeholder/placeholder.txt +2 -2
  69. package/runtime/server/web/platform-shell-preview.html +1 -1
  70. package/runtime/server/web/platform-shell-preview.txt +2 -2
  71. package/runtime/server/web/setup.html +1 -1
  72. package/runtime/server/web/setup.txt +2 -2
  73. package/template/runtime/version.json +1 -1
  74. package/runtime/server/web/_next/static/chunks/app/(dashboard)/page-f4641be7b88818a2.js +0 -1
  75. package/runtime/server/web/_next/static/css/7618766dbe836b27.css +0 -3
  76. /package/runtime/server/web/_next/static/{GyUKT-hZbRN2iexOBXTTr → qBns-ZRUDtxsd4XX5SLLK}/_buildManifest.js +0 -0
  77. /package/runtime/server/web/_next/static/{GyUKT-hZbRN2iexOBXTTr → qBns-ZRUDtxsd4XX5SLLK}/_ssgManifest.js +0 -0
@@ -5,11 +5,11 @@
5
5
  "nodeMajor": 24,
6
6
  "entrypoint": "bin/server.mjs",
7
7
  "worker": "bin/worker.cjs",
8
- "bundleDigest": "a0085412ffbb3840f9100f54a96ab91cfbe3c2e0c985fb445122452f08cdc119",
8
+ "bundleDigest": "c54cb8a0aad90cf97af0690fdb6d120ad15956b048dd1bb960d074ad4beab8ab",
9
9
  "files": {
10
10
  "bin/server-cli.cjs": "1834d3c7956ef948b0b4607c2f4d6c016f83218b7d637cb27847836445495d6a",
11
11
  "bin/server.mjs": "169c9fb9fc8aebafb1bffa08f968d28d3d5ac90ea49c3ef0e919a9d3751ef46e",
12
- "bin/worker.cjs": "f8842777d480c6d94b5f6322571974ffb6c5d746243d23f0cf5d44dbeed761bf",
12
+ "bin/worker.cjs": "0086e48d7876750dbfdbb03512adbacc56efd5566b33c75a4a39bca1372bc793",
13
13
  "node_modules/sql.js/dist/sql-wasm.js": "77d6435bac506af0e3c59636dce9d22b1b14156348bc327f41a1577f3212360f",
14
14
  "node_modules/sql.js/dist/sql-wasm.wasm": "438c88f666dc054ce4e9395f80fe9db4218b1a3c379960454880f048a7898aed",
15
15
  "node_modules/sql.js/package.json": "4c661e7817ffe4076bcc3f79f3a8085cb0a87685e6c21d50fd203a85b0c80bc2",
@@ -49,7 +49,7 @@
49
49
  "web/_next/static/chunks/app/(dashboard)/my/system/page-96d2e1f8c2fb22b0.js": "eede49e5df7538101336a261249c6109239a1a37cb7c5e9d7de6f2bece90703c",
50
50
  "web/_next/static/chunks/app/(dashboard)/my/tasks/page-bf16b78ed6749d78.js": "4918a469034c5409edae622938e6ef2e01dc119fbefe4c8ec53b129dd5da7d0d",
51
51
  "web/_next/static/chunks/app/(dashboard)/my/users/page-c47d4524d2a156b8.js": "769c068e083edbc767423f08f5884ec15f9736c589bfbd8d5852d362b49587a1",
52
- "web/_next/static/chunks/app/(dashboard)/page-f4641be7b88818a2.js": "b4848d8da714078254afc119494f06abf297ca8f9dffd42ca2b306eac8881396",
52
+ "web/_next/static/chunks/app/(dashboard)/page-3252f21360e42fa1.js": "8e0bd72e157f826d48e88949328570df0d0c9841adaef2b33bcd0c8ee789b70d",
53
53
  "web/_next/static/chunks/app/layout-2231382739460b63.js": "1e4583dd8a32156939bf9be60f21d39c5feb794c4a52f2f4ebbf46fb306e9593",
54
54
  "web/_next/static/chunks/app/platform-shell/[userId]/[name]/page-da0d5e71857f33d1.js": "c83cc9e3a64d836499c90e8fe2654d3dc17540269795b6ecff3146421879a0ec",
55
55
  "web/_next/static/chunks/app/platform-shell-preview/page-52fa7e8c8b480934.js": "ce4cdcfc34d40d23a742a89ee37983f28ab65b0ee9b6bc68098eba2c2594c8de",
@@ -61,9 +61,7 @@
61
61
  "web/_next/static/chunks/pages/_error-64e3bd84e2ecae08.js": "db6c1abd75bd697b5e842e7dc3207b4589bc2e6a149d252a44e412a151d0a66e",
62
62
  "web/_next/static/chunks/polyfills-42372ed130431b0a.js": "0973c1d64c88adc8e3c950410cb58b288f72118d5965b78049438deb8f2f9683",
63
63
  "web/_next/static/chunks/webpack-0bed2fdf6baa566e.js": "0c81222531b99e5a1ba049065536321abe79d06a7c4ca359655faebb9516b26b",
64
- "web/_next/static/css/7618766dbe836b27.css": "e6c0ab02a4fc9e5e515d5dd1c81a08dc0b8c7effa0deb252c9a0e3b76bce9ec4",
65
- "web/_next/static/GyUKT-hZbRN2iexOBXTTr/_buildManifest.js": "1579cca2cfb60767afbd3bf6d816c7aace6546c08ecad3ef14013e372a601b77",
66
- "web/_next/static/GyUKT-hZbRN2iexOBXTTr/_ssgManifest.js": "aa399ebd05ef75d6e93cfaba1c116b730fd190817293523ef7d4e16510d9571b",
64
+ "web/_next/static/css/b8973d29c0d3fd9b.css": "501da8d62fc85a503c64bae6336d161b0f557564d4d6fc440e3489d155ae6919",
67
65
  "web/_next/static/media/013b72fa676f92e0-s.woff2": "e27f657e38d52887baa3b6b2f812bef93dfdd356f0810e40edd4ee284cc7e9f6",
68
66
  "web/_next/static/media/22a5144ee8d83bca-s.p.woff2": "9b6f5ff45b278c744b5f379a2c4ecbaf858a842b8eaf82ac8d21b699ca16c608",
69
67
  "web/_next/static/media/2b5b02fc7e511755-s.woff2": "745994b5cd950ec201b66526375f057d540847cccfc70f4f24f5f571d26d3923",
@@ -75,59 +73,61 @@
75
73
  "web/_next/static/media/b9408752a0c24fb9-s.woff2": "75b3bedbebc35f347c0ae3b416aa871941555357e7b0f83767eb5987875589ed",
76
74
  "web/_next/static/media/e038a29029a234f2-s.woff2": "16e1d48b6dd29eb240aec5db36184eb182933c082cd43de7f35af686d58087d2",
77
75
  "web/_next/static/media/f639721981034f88-s.woff2": "b7a545bbb08256bd809f11cfe66d88da3e22d169ea4407737b1ef0ec1ed3d791",
78
- "web/404.html": "aaa39ecf291ef9ed02418e35c38b868e220c27956612531a340aa35975d44c26",
76
+ "web/_next/static/qBns-ZRUDtxsd4XX5SLLK/_buildManifest.js": "1579cca2cfb60767afbd3bf6d816c7aace6546c08ecad3ef14013e372a601b77",
77
+ "web/_next/static/qBns-ZRUDtxsd4XX5SLLK/_ssgManifest.js": "aa399ebd05ef75d6e93cfaba1c116b730fd190817293523ef7d4e16510d9571b",
78
+ "web/404.html": "e3ff73dec8306beac9995c63302ce50b4da0f269c9e7c073d75ea91830cabe95",
79
79
  "web/home/redline-launch-hero.png": "4498c4aee99b2a6ffd706f8115153525542d3a0f76fbcdc4a47b77ec92b93547",
80
- "web/inbox.html": "76eea2f6103c0e1447678005ed3faa1825b9ddfc6a79c2664818b1b46c59345f",
81
- "web/inbox.txt": "7937bfb2198cac306c1d010fb1ab0dc521c701182400dc2f08eb7991ba1c6fe1",
82
- "web/index.html": "4cbd968ff42dd8473c379efb00f712271a547d91e3f0cbf004ec3a02af3f11bf",
83
- "web/index.txt": "ccca37f2a036917651488aee3fffb76b7ea68283d86400c2a1a9a3d5bd352166",
84
- "web/my/analytics.html": "70a981139e2c4330a5a6fd4d5fc1ae092c5393a51e761795a43de5ad976d6bef",
85
- "web/my/analytics.txt": "3c9102b0f2f182e610f704ff4786932503612c5bb39350a78d3ab792843e59b7",
86
- "web/my/apps/placeholder/settings.html": "746f2b55783a37e2303053e74a23c0e9ce259c53d23236a1871a081c33bd4dbe",
87
- "web/my/apps/placeholder/settings.txt": "7594ad0052a60dc93848ccf43f51bc7c4f08d890405790f1054ea3d89d5aa80d",
88
- "web/my/apps.html": "1008d1101de356f31c522737b4f9e646f5936c8f940e1b409ec460c04258edb6",
89
- "web/my/apps.txt": "cb10f7658b3ef0f1473accc1d581dc00f03eea6f6c3190a14a322ee783b3131e",
90
- "web/my/dashboard.html": "fa7bce32c3de1421b467db9a7b115a12accd9ff5308aad1cb925ec7a90e70dd2",
91
- "web/my/dashboard.txt": "2af38fceeee7436f9beacb3abe3801e0d90f1abac02743637956e825290672c4",
92
- "web/my/device-actions.html": "a0efe01530f2216b5d64bed4f125f83e705b20d4cec0b722afa552a87e03ae16",
93
- "web/my/device-actions.txt": "6533ffc9bbaae481381448046a42266e54232af2baa3aa5b0fec6ed3715105db",
94
- "web/my/device-notifications.html": "cd6cf79078ce381a125792532cf04d9f8c14f819c1ba42b233deab6f6a575ff3",
95
- "web/my/device-notifications.txt": "2f4f07c5980b9bed90a861fd3d3085fc6b543b5ffad1a6fcf1204c0a2b338d58",
96
- "web/my/favorites.html": "8f9692c7afe7f5c8127268a62ad69f8736a083207355d6ed8668de39a74631b2",
97
- "web/my/favorites.txt": "2cb3343c63724baf2926cb8c7535425067e8cf2524ba4009f98b8939a8171610",
98
- "web/my/groups.html": "681c457f794516414af1bd8b805710fa0e943b5a80711529d12a481159bfc21c",
99
- "web/my/groups.txt": "6596420d7efe13cc1e90f5e2c60ffd4c91b0b606e240de8c09bd3fa44eb3675a",
100
- "web/my/info.html": "70a255d8bbb0ff02778a5b693eac566e78f313d9023c2aab6be054768221bf8d",
101
- "web/my/info.txt": "51d83cd2c09b5c331de46af27981dbf2c2f39ae80f69cd4a78df1ec9549159ee",
102
- "web/my/keys.html": "b09b333e698248327c8eb397df3910653d4b0f726f00e996b82d807b8c9130cc",
103
- "web/my/keys.txt": "8ded6f7608d7f8daba88b9d191a9f4f473d324fcdbcc2e65d1dd8efbb23b20d4",
104
- "web/my/orgs.html": "5caf95c3fe119b8668bb9e06e6e4e30364f93e4975c7b43032f85aca4c72905f",
105
- "web/my/orgs.txt": "dc8697712b2b6285a73091c7e6d00715c4bb4418d4c3ac5f280690a6f1b59fdc",
106
- "web/my/pages.html": "b9cb135efc2ef26a512127c45e8e4924cb768ef3bf4a5405de3e9cc35500736e",
107
- "web/my/pages.txt": "6cdd8515448113d17693a64a8c6ca58cf859a28aa2f0e2707a88e29b899414be",
108
- "web/my/peers.html": "9405a17d83403eb716a737375c81f8ffd19673c05772dd57dfedd25d4bbe703e",
109
- "web/my/peers.txt": "19ba72b3ac059042007ce1d779c8a53fb2718dddae7baf9915adde741504935b",
110
- "web/my/recent.html": "b9465f0d09862d4ff720fdbd6a1a50e49bdf177b4759c6cd223607b1bd7bae68",
111
- "web/my/recent.txt": "de72af9c01d3ccdb9c8aac61fdb6e5b116e069d4f55f0a5f6ce248a47aded0d0",
112
- "web/my/settings.html": "64e7af7aa9433e0543817b80ddc13d2039add207b6f663c4ddf1f6e43645349c",
113
- "web/my/settings.txt": "1e34824bc83152b56a3f244642cd6a1519085000b25389d9fe6a275b6a659617",
114
- "web/my/studio.html": "156225aab532d2168fe8de5a2cde960b65f2563cb4d4631e445f89533ffd0b15",
115
- "web/my/studio.txt": "e86d859be9948663f40989634f8f517a592bd5181e0e7a32717427e3ed5cc538",
116
- "web/my/subscriptions.html": "b5f433c82af0f666609bbb525db99a3cc0c95fe6d0e1a8bcc53e0f3bc8bb91de",
117
- "web/my/subscriptions.txt": "2d9f63f937f671a1d109450464f40b57d3e59d430a97be1395aae23f2f163638",
118
- "web/my/system.html": "6c542564ac7a82a56c11bdc3af597b0ac2c4bb9a82df61fca82ba87fa8316ec8",
119
- "web/my/system.txt": "62cc63c8b2934231e333871e4bd74822bde09d7a3d1ab2d422dd3c9cb89c39a5",
120
- "web/my/tasks.html": "a57de9a599c3b2fdbb7a44f51816499353c004e0aa99f6c8c57d5b9b1bd32621",
121
- "web/my/tasks.txt": "ffc868bd54dfb5d81cbb7c543b1f3b04430559987e6906f134d5c256bd191a1c",
122
- "web/my/users.html": "959be3ffe1b5b98b814f9d386ad202cbbd430eca827e63b8c3b4052906302457",
123
- "web/my/users.txt": "547874d7d61abb40af1d87e83716a480aa49cda2dc92ecc61e3730ea6d67994a",
124
- "web/my.html": "de8415616c03de6bfbb8b6c2e16b139badc50db42c3b01f807806763b2baad26",
125
- "web/my.txt": "b493bdba79046609f0110321d7aaeb99e5d741b2fb3de8082868accbc8d6fefd",
126
- "web/platform-shell/placeholder/placeholder.html": "10be87f3a277abae444516f10cb82dac398208b90b27ef1ddb6f8568881120d0",
127
- "web/platform-shell/placeholder/placeholder.txt": "e7171cd07a2cd0f1207bcba70d28eef7b0f98cabaeb434fbb6ebc2508fcb02cc",
128
- "web/platform-shell-preview.html": "774e6a1d5706942bedb7cecaf75e12c7d123ad7049ec17e1cfc569a1d5f02858",
129
- "web/platform-shell-preview.txt": "ace68dfefe46fdaa1034648c1b30f9b38875b2676154e2e43d1e48998cd378b3",
130
- "web/setup.html": "88cfd68c18921cbc2a0414f25c5c4a7e4dbc7a9cf6adaa7dde4fdadbdc616c96",
131
- "web/setup.txt": "fb632ed2949a799722518b51c0363b7fb543eb45ac50cd6a0279cc8026d0761a"
80
+ "web/inbox.html": "f04529a192d7406ba578a0bb6edb08af2a1b1ec16192a16688cd0877b71f630c",
81
+ "web/inbox.txt": "66babd5d21ec313eea502cee88c487571fa9d1a6718cc13ce5457783f868a04d",
82
+ "web/index.html": "213ef52836f5774cd2d9ba8970354e8c9f97b6dca18e3d59a7575cf070b906ae",
83
+ "web/index.txt": "9d2347f5b3abd52fb98d82a5a15486d283d73a4e85c5bb10261ac0264e4a13ed",
84
+ "web/my/analytics.html": "fa6a253c976ed72bb61c70205c18b1cb74c863325f6d5633683cf7b166007a1b",
85
+ "web/my/analytics.txt": "bb66ce8cc72aa1b05d7e9e5e082302b2c998e7ffa6dac7ebedac0fb870234096",
86
+ "web/my/apps/placeholder/settings.html": "f47a161886e8f94890d1fa167695e4a5f297717b8d4ffbc1388071ed76ab8f90",
87
+ "web/my/apps/placeholder/settings.txt": "592e79c8b3ba6bdfa4e08573f0fd9728e8e95078d6572ca6da65785c01afe420",
88
+ "web/my/apps.html": "4cee87bc707ec262311c376a8f43ffbb9fc917ef6e6ab9157a5f4105ad847c3e",
89
+ "web/my/apps.txt": "de93e1fb5dd0e689bc8daa30941ac4a4969c7025b21d7408a0c53a2c7064f3fa",
90
+ "web/my/dashboard.html": "a434ad88d2af6e06e338aeb3b904176224b0556e2f9b9735962c92e5ce319d9d",
91
+ "web/my/dashboard.txt": "32a24a0fba6645528564583dbcda80aad2e553555b3a83872879e4d8d5297814",
92
+ "web/my/device-actions.html": "755e51e5f24f5bdf6b83e02bf30d51ee95c58a8951f7b91108c36937f5d8d2fb",
93
+ "web/my/device-actions.txt": "c555ba6dc309f0c31e6609e2b63c3d1b4bf824776ec680b69ebbd989c3e9638b",
94
+ "web/my/device-notifications.html": "bd24f26ac699d9f19c247b1ba6d869fdc86c2456c41070f1461a4c2bdb5426f6",
95
+ "web/my/device-notifications.txt": "ef8d34607c8a7c6d60c44b7b9a6727f01253c7283969b95b1c421cd2716fa855",
96
+ "web/my/favorites.html": "d47a9dc40c8fd320f383fdfda935d2e0d13b770c200fba43bd866cb9a586de2a",
97
+ "web/my/favorites.txt": "49746274d69be4d801be9a1db07fb9b9c6bb3ef8f12a348dc495529bc74bf3ae",
98
+ "web/my/groups.html": "52992213ad7c4f79565f5e147c7b7f4529d94dba1082cc552d9883b76bbdffb7",
99
+ "web/my/groups.txt": "4e1270bc4929610dde70415d536cd2b6b19fb1e403b33de222c87bcf574ef525",
100
+ "web/my/info.html": "5ac7cd9c44ad09c8469e677f08520c2ab394febb8c5112ef13e1bc340e7e1c91",
101
+ "web/my/info.txt": "334344dd0335c5281963d1b133fbf7d7ac7c03e3c848cdf4fde935cae3b9b28e",
102
+ "web/my/keys.html": "aa6265d4a4ea1206800fcd9b15cde9e9573687feb6947ab3aaa573e7662a548a",
103
+ "web/my/keys.txt": "bdf9b2521749c56a03a9c0d3cfe32f2c0ffd8f0d317d6e31e52145f70b97cb75",
104
+ "web/my/orgs.html": "07c895567bed8c577916a0531c9e6e6811191a0c18d5acd55dd189201c73ce56",
105
+ "web/my/orgs.txt": "722c650e8b58cfe950bdcf0892f2753fdd49ff5e82d536a2b49907a80890be61",
106
+ "web/my/pages.html": "c0bf28bcc30a7d90126d239501dee1cc2b3c3f65966cf3cf558ee163000746ac",
107
+ "web/my/pages.txt": "67df387feb97c76feaf85a8c93cec9dddcd92ee75714509bc8fcbf98c6b20407",
108
+ "web/my/peers.html": "bd0533571f27b06920943e1b554bcee57a2eacfba2fcac01777dd2ad7648a9d8",
109
+ "web/my/peers.txt": "b95255e050a682592b4c818a9cf1b47109f50fa1282cde49fe6c92f7e7c43630",
110
+ "web/my/recent.html": "8be979a56537271beb7160f248c7ac4f71b9472dc1a2c6257127ba49f0614b0a",
111
+ "web/my/recent.txt": "bdc19ce4fab0b0fa45a7ae238d0995e903f834641ffb551926c2ffb7b329aca6",
112
+ "web/my/settings.html": "97ecfe042ea42cd55214dd9717829cf6ac2f4bdd07b3170a50d87ef2fad5de12",
113
+ "web/my/settings.txt": "a148b03df924a854e21ea705938e790881a60f3ded62e4ebc8e63f1e01aba8c7",
114
+ "web/my/studio.html": "2fa3f0c09a85f3cfc206c00b39f939035f02f344bf53c7bd99fe6c51c0629293",
115
+ "web/my/studio.txt": "2bd3a215adec3ba5c91b1b31e7ad4319f3a2d511bc6194183f0e43868176a3b3",
116
+ "web/my/subscriptions.html": "66e210ae0957f093980c522207052585cbb3613a27c358910101a8a9927f2536",
117
+ "web/my/subscriptions.txt": "61d5f1f62ecaf080e42e849e2aab0c72fd938ffb7d1871d2da3ff01afaa98058",
118
+ "web/my/system.html": "e272b9443c345f969f3da454822cf4f12dc36a3eb0f5a033a3045a5b132814e2",
119
+ "web/my/system.txt": "b25422a15d8aaea24f5328619a2177b172edce1e4620c07282e19cd7b7fbc79d",
120
+ "web/my/tasks.html": "c1734a2e17442d02229d4013b01a7d690a5e8d21f100a9961fcc165b55a41153",
121
+ "web/my/tasks.txt": "9a48b0536d52279906c643fa6557bba2e4455813b8cdf804ece16e73c3f0f1df",
122
+ "web/my/users.html": "2d4c1ea6627be27303d98ce9635eac1780c7363c5a26a41ce9f702be592f8cb3",
123
+ "web/my/users.txt": "9610e832b8c90e7b722f8d9d89388dda2a218d7a4ce69c7bc2eac2b8263c4a87",
124
+ "web/my.html": "aeae974ee3289eae67d176a56a33eaabf7ef5a77833a8a47c6f987e016aefc47",
125
+ "web/my.txt": "353768ce8bea1590487ef00a04e3b924527dd1d6b4adff77684e1843a0466406",
126
+ "web/platform-shell/placeholder/placeholder.html": "dfa9a8227977cfa902fda9484f01b5e86bdf35a2587aec52c8491456f74d8d38",
127
+ "web/platform-shell/placeholder/placeholder.txt": "b72a17132e73e6ac99d935c881413efad2cd8bb1d777bcfe2b234d66839aa81a",
128
+ "web/platform-shell-preview.html": "d98392c9507096420e4fc48a529cbb5ed8194946c31b45273bf3cb5ff43d1570",
129
+ "web/platform-shell-preview.txt": "88401fa1865ec3172dc7531721b70b029617b221c58a4ab51dfddac58d6929df",
130
+ "web/setup.html": "abb9dd884a49d56b174e1993e9650b7b31e19606708215cefda3e90417d7866b",
131
+ "web/setup.txt": "b01081ff431c9a956242226bdadf1ddd31cbd36dd3bba8b8997103e22ee7d15e"
132
132
  }
133
133
  }
@@ -136506,9 +136506,17 @@ function syncTree(directory) {
136506
136506
  syncDirectory3(directory);
136507
136507
  }
136508
136508
  function syncFile(filePath) {
136509
- const descriptor = import_node_fs8.default.openSync(filePath, "r");
136509
+ let descriptor;
136510
+ try {
136511
+ descriptor = import_node_fs8.default.openSync(filePath, "r+");
136512
+ } catch (error5) {
136513
+ if (["EPERM", "EACCES", "EROFS", "EINVAL"].includes(error5.code ?? "")) return;
136514
+ throw error5;
136515
+ }
136510
136516
  try {
136511
136517
  import_node_fs8.default.fsyncSync(descriptor);
136518
+ } catch (error5) {
136519
+ if (!["EPERM", "EACCES", "EROFS", "EINVAL"].includes(error5.code ?? "")) throw error5;
136512
136520
  } finally {
136513
136521
  import_node_fs8.default.closeSync(descriptor);
136514
136522
  }
@@ -137107,9 +137115,17 @@ function durableCopyFile(source, target) {
137107
137115
  }
137108
137116
  }
137109
137117
  function syncFile2(filePath) {
137110
- const descriptor = import_node_fs9.default.openSync(filePath, "r");
137118
+ let descriptor;
137119
+ try {
137120
+ descriptor = import_node_fs9.default.openSync(filePath, "r+");
137121
+ } catch (error5) {
137122
+ if (["EPERM", "EACCES", "EROFS", "EINVAL"].includes(error5.code ?? "")) return;
137123
+ throw error5;
137124
+ }
137111
137125
  try {
137112
137126
  import_node_fs9.default.fsyncSync(descriptor);
137127
+ } catch (error5) {
137128
+ if (!["EPERM", "EACCES", "EROFS", "EINVAL"].includes(error5.code ?? "")) throw error5;
137113
137129
  } finally {
137114
137130
  import_node_fs9.default.closeSync(descriptor);
137115
137131
  }
@@ -141331,6 +141347,97 @@ function isVerificationCheck(value) {
141331
141347
  return ["http", "api", "dom", "console", "interaction", "identity"].includes(String(value.phase)) && ["passed", "failed", "pending"].includes(String(value.status)) && typeof value.summary === "string" && (value.suggestion === void 0 || typeof value.suggestion === "string");
141332
141348
  }
141333
141349
 
141350
+ // packages/server/src/routes/starter-doc.ts
141351
+ var STARTER_DOC = `# LocalApp \u5FEB\u901F\u4E0A\u624B\uFF08\u9762\u5411 AI Agent \u4E0E\u5F00\u53D1\u8005\uFF09
141352
+
141353
+ \u672C\u6587\u4EF6\u7531 LocalApp Server \u63D0\u4F9B\uFF0C\u5F53\u524D\u5B9E\u4F8B\uFF1A{{origin}}
141354
+
141355
+ LocalApp \u662F\u4E00\u4E2A\u672C\u673A\u5E94\u7528\u5E73\u53F0\uFF1AAI Agent \u6216\u5F00\u53D1\u8005\u7528 React + TypeScript \u7F16\u5199\u4E1A\u52A1\u5E94\u7528\uFF0C
141356
+ \u5E73\u53F0\u7EDF\u4E00\u6258\u7BA1\u8BA4\u8BC1\u3001\u6570\u636E\u5951\u7EA6\u3001\u6587\u4EF6\u3001\u901A\u77E5\u4E0E\u8FD0\u7EF4\u3002CLI \u8D1F\u8D23\u521B\u5EFA\u3001\u6821\u9A8C\u548C\u5B89\u88C5\u5E94\u7528\u3002
141357
+
141358
+ ## \u524D\u7F6E\u6761\u4EF6
141359
+
141360
+ - Node.js >= 24
141361
+ - \u5B89\u88C5 CLI\uFF1A\`npm install -g @patodo/localapp\`\uFF08\u4E5F\u53EF\u4EE5\u5728 {{origin}} \u9996\u9875\u4E0B\u8F7D\u5BF9\u5E94\u5E73\u53F0\u7684 CLI\uFF09
141362
+ - \u8FD0\u884C \`localapp --version\` \u786E\u8BA4\u5B89\u88C5\u6210\u529F
141363
+
141364
+ ## \u7B2C\u4E00\u6B65\uFF1A\u83B7\u53D6 API Key \u5E76\u8FDE\u63A5\u672C\u5B9E\u4F8B
141365
+
141366
+ 1. \u5728\u6D4F\u89C8\u5668\u6253\u5F00 {{origin}}\uFF0C\u767B\u5F55\u8D26\u53F7\uFF08\u65B0\u5B9E\u4F8B\u9996\u6B21\u4F7F\u7528\u8BF7\u6309 {{origin}}/setup \u5F15\u5BFC\u521B\u5EFA\u7BA1\u7406\u5458\uFF09
141367
+ 2. \u8FDB\u5165\u5BC6\u94A5\u9875 {{origin}}/my/keys \u521B\u5EFA\u4E00\u4E2A API Key
141368
+ 3. \u5728\u672C\u673A\u6267\u884C\uFF1A
141369
+
141370
+ \`\`\`bash
141371
+ localapp login {{origin}} --api-key <\u4F60\u7684APIKey>
141372
+ \`\`\`
141373
+
141374
+ \u6210\u529F\u540E\u51ED\u636E\u4FDD\u5B58\u5728\u540D\u4E3A default \u7684 profile\uFF1B\u7528 \`localapp whoami\` \u9A8C\u8BC1\u8EAB\u4EFD\u3002
141375
+
141376
+ ## \u7B2C\u4E8C\u6B65\uFF1A\u521D\u59CB\u5316\u5E94\u7528
141377
+
141378
+ \`\`\`bash
141379
+ mkdir -p ~/localapp-apps && cd ~/localapp-apps
141380
+ localapp init my-app
141381
+ cd my-app
141382
+ \`\`\`
141383
+
141384
+ \u521D\u59CB\u5316\u4F1A\u751F\u6210\u4E00\u4E2A\u5B8C\u6574\u7684 React + TypeScript \u9879\u76EE\uFF0C\u5E76\u9ED8\u8BA4\u5B89\u88C5\u5230\u5F53\u524D\u8FDE\u63A5\u7684 Server
141385
+ \uFF08\u52A0 \`--skip-deploy\` \u53EF\u53EA\u751F\u6210\u9879\u76EE\uFF09\u3002
141386
+
141387
+ ## \u7B2C\u4E09\u6B65\uFF1A\u5B9E\u73B0\u5E94\u7528
141388
+
141389
+ **\u5982\u4F55\u5199\u4E00\u4E2A\u5E94\u7528\u3001\u5982\u4F55\u4E0A\u4F20\uFF0C\u5168\u90E8\u8BF4\u660E\u90FD\u5728\u521D\u59CB\u5316\u751F\u6210\u7684\u9879\u76EE\u91CC**\uFF1A
141390
+
141391
+ - \`AGENTS.md\` \u2014 \u5F00\u53D1\u4E0E\u9A8C\u6536\u7EA6\u5B9A\uFF08\u5FC5\u8BFB\uFF09
141392
+ - \`.claude/skills/localapp*/SKILL.md\` \u2014 \u5E73\u53F0\u80FD\u529B\u624B\u518C\uFF1Aauth \u767B\u5F55\u3001business \u4E1A\u52A1\u5EFA\u6A21\u3001
141393
+ data \u6570\u636E\u5E93\u3001upload \u6587\u4EF6\u4E0A\u4F20\u3001notify \u901A\u77E5\u3001ui \u7EC4\u4EF6\u3001device-actions \u672C\u673A\u64CD\u4F5C\u3001
141394
+ collaboration \u5B9E\u65F6\u534F\u4F5C
141395
+
141396
+ \u5728\u9879\u76EE\u76EE\u5F55\u5185\u7684\u65E5\u5E38\u95ED\u73AF\uFF1A
141397
+
141398
+ \`\`\`bash
141399
+ localapp dev # \u672C\u5730\u5F00\u53D1\u8C03\u8BD5
141400
+ npm run build && localapp check # \u6784\u5EFA + \u5951\u7EA6\u4E0E\u8FC1\u79FB\u6821\u9A8C
141401
+ localapp app install # \u5B89\u88C5/\u66F4\u65B0\u5230\u5F53\u524D profile \u7684 Server
141402
+ \`\`\`
141403
+
141404
+ ## \u7B2C\u56DB\u6B65\uFF1A\u9A8C\u6536
141405
+
141406
+ \u5B89\u88C5\u540E\u4ECE\u6B63\u5F0F\u8DEF\u5F84\u8BBF\u95EE\uFF1A\`{{origin}}/<owner>/<app>/\`\u3002
141407
+ \u5E94\u7528\u529F\u80FD\u5FC5\u987B\u4ECE\u6B63\u5F0F\u8DEF\u5F84\u9A8C\u6536\uFF1B\`/serve/<owner>/<app>/\` \u4EC5\u7528\u4E8E\u8D44\u6E90\u4E0E API \u8BCA\u65AD\u3002
141408
+
141409
+ ## CLI \u901F\u67E5
141410
+
141411
+ | \u547D\u4EE4 | \u8BF4\u660E |
141412
+ | --- | --- |
141413
+ | \`localapp login <url> --api-key <key>\` | \u4FDD\u5B58\u67D0\u5B9E\u4F8B\u7684\u51ED\u636E\uFF08\`--profile\` \u547D\u540D\uFF09 |
141414
+ | \`localapp whoami\` / \`localapp logout\` | \u67E5\u770B / \u79FB\u9664\u5F53\u524D\u51ED\u636E |
141415
+ | \`localapp init [name]\` | \u521D\u59CB\u5316\u5E94\u7528\u9879\u76EE |
141416
+ | \`localapp dev\` | \u672C\u5730\u5F00\u53D1 |
141417
+ | \`localapp check [--json]\` | \u6821\u9A8C\u5E94\u7528\u3001\u5951\u7EA6\u4E0E\u8FC1\u79FB |
141418
+ | \`localapp app install [--target <profile>]\` | \u6784\u5EFA\u5E76\u5B89\u88C5\u5230 Server |
141419
+ | \`localapp app sync --peer <name>\` | \u540C\u6B65\u5E94\u7528\u5230 peer Server |
141420
+ | \`localapp server [start\\|stop\\|status\\|logs]\` | \u7BA1\u7406\u672C\u673A daemon |
141421
+ | \`localapp help [command]\` | \u67E5\u770B\u5E2E\u52A9 |
141422
+
141423
+ ## \u7ED9 AI Agent \u7684\u63D0\u793A
141424
+
141425
+ - \u7528\u6237\u6CA1\u6709\u8BF4\u660E\u5E94\u7528\u4E3B\u9898\u65F6\uFF0C\u76F4\u63A5\u91C7\u7528\u5185\u7F6E\u6A21\u677F\u7684\u9ED8\u8BA4\u793A\u4F8B\u5F00\u59CB\uFF0C**\u4E0D\u8981\u5411\u7528\u6237\u63D0\u95EE**\u3002
141426
+ - \u53EA\u521B\u5EFA\u548C\u4FEE\u6539\u9879\u76EE\u76EE\u5F55\u5185\u7684\u6587\u4EF6\uFF1B**\u4E0D\u8981\u4FEE\u6539\u3001\u91CD\u88C5\u6216\u8C03\u8BD5\u5168\u5C40 localapp CLI\u3001Server \u6216\u7CFB\u7EDF\u914D\u7F6E**\u3002\u9047\u5230\u73AF\u5883\u6545\u969C\uFF08\u547D\u4EE4\u4E0D\u5B58\u5728\u3001Server \u4E0D\u53EF\u8FBE\u3001\u5B89\u88C5\u5931\u8D25\uFF09\u65F6\uFF0C\u505C\u6B62\u91CD\u8BD5\u5E76\u628A\u9519\u8BEF\u539F\u6837\u62A5\u544A\u7528\u6237\u3002
141427
+ - \u4E34\u65F6\u4EA7\u7269\u653E\u5728\u9879\u76EE\u81EA\u5DF1\u7684 \`tmp/\` \u76EE\u5F55\uFF0C\u4E0D\u8981\u5199\u7CFB\u7EDF\u4E34\u65F6\u76EE\u5F55\u3002
141428
+ - \u4E0D\u8981\u5B9E\u73B0\u7B2C\u4E8C\u5957\u540E\u7AEF\uFF1B\u6570\u636E\u3001\u6587\u4EF6\u3001\u901A\u77E5\u4E00\u5F8B\u4F7F\u7528\u5E73\u53F0 SDK \u4E0E named SQL\u3002
141429
+ - \u4FEE\u6539\u540E\u5148 \`localapp check\` \u518D \`localapp app install\`\uFF0C\u5E76\u4ECE\u6B63\u5F0F\u8DEF\u5F84\u9A8C\u6536\u3002
141430
+ `;
141431
+ function renderStarterDoc(origin) {
141432
+ return STARTER_DOC.replaceAll("{{origin}}", origin);
141433
+ }
141434
+ function starterDocRoutes(app) {
141435
+ app.get("/starter.md", async (request, reply) => {
141436
+ const origin = `${request.protocol}://${request.hostname}`;
141437
+ return reply.type("text/markdown; charset=utf-8").send(renderStarterDoc(origin));
141438
+ });
141439
+ }
141440
+
141334
141441
  // packages/server/src/lib/transitions.ts
141335
141442
  var transitions_exports = {};
141336
141443
  __reExport(transitions_exports, __toESM(require_dist5()));
@@ -153936,6 +154043,7 @@ async function registerServerPluginsAndRoutes(app, options2) {
153936
154043
  await peerProtocolRoutes(app);
153937
154044
  await syncTargetRoutes(app, syncTarget);
153938
154045
  app.get("/health", async () => ({ status: "ok" }));
154046
+ starterDocRoutes(app);
153939
154047
  const webRoot = options2.webRoot ?? path42.resolve(__dirname, "../../web/out");
153940
154048
  await app.register(import_static.default, { root: path42.join(webRoot, "_next"), prefix: "/_next", decorateReply: false });
153941
154049
  await app.register(import_static.default, { root: path42.join(webRoot, "home"), prefix: "/home", decorateReply: false });
@@ -1 +1 @@
1
- <!DOCTYPE html><!--GyUKT_hZbRN2iexOBXTTr--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/22a5144ee8d83bca-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/7d4881bb7e1bf84d-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/7618766dbe836b27.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-0bed2fdf6baa566e.js"/><script src="/_next/static/chunks/740d80ee-6c0a9504f1fd46f8.js" async=""></script><script src="/_next/static/chunks/66-6f6658280a10fbca.js" async=""></script><script src="/_next/static/chunks/main-app-5b3c67453d8c5b99.js" async=""></script><script src="/_next/static/chunks/308-d74213c6f5179bf0.js" async=""></script><script src="/_next/static/chunks/app/layout-2231382739460b63.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>LocalApp</title><meta name="description" content="Build and share apps"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="__variable_246ccd __variable_c29908 font-sans antialiased"><div hidden=""><!--$--><!--/$--></div><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("class","theme","system",null,["light","dark"],null,true,true)</script><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><section aria-label="Notifications alt+T" tabindex="-1" aria-live="polite" aria-relevant="additions text" aria-atomic="false"></section><script src="/_next/static/chunks/webpack-0bed2fdf6baa566e.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[6249,[\"308\",\"static/chunks/308-d74213c6f5179bf0.js\",\"177\",\"static/chunks/app/layout-2231382739460b63.js\"],\"ThemeProvider\"]\n3:I[8172,[\"308\",\"static/chunks/308-d74213c6f5179bf0.js\",\"177\",\"static/chunks/app/layout-2231382739460b63.js\"],\"AuthProvider\"]\n4:I[6461,[],\"\"]\n5:I[1129,[],\"\"]\n6:I[2388,[\"308\",\"static/chunks/308-d74213c6f5179bf0.js\",\"177\",\"static/chunks/app/layout-2231382739460b63.js\"],\"LoginDialog\"]\n7:I[1467,[\"308\",\"static/chunks/308-d74213c6f5179bf0.js\",\"177\",\"static/chunks/app/layout-2231382739460b63.js\"],\"ChangePasswordDialog\"]\n8:I[3690,[\"308\",\"static/chunks/308-d74213c6f5179bf0.js\",\"177\",\"static/chunks/app/layout-2231382739460b63.js\"],\"Toaster\"]\n9:I[6032,[],\"OutletBoundary\"]\nb:I[9769,[],\"AsyncMetadataOutlet\"]\nd:I[6032,[],\"ViewportBoundary\"]\nf:I[6032,[],\"MetadataBoundary\"]\n10:\"$Sreact.suspense\"\n12:I[9247,[],\"\"]\n:HL[\"/_next/static/media/22a5144ee8d83bca-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/7d4881bb7e1bf84d-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/7618766dbe836b27.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"GyUKT-hZbRN2iexOBXTTr\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/7618766dbe836b27.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[\"$\",\"body\",null,{\"className\":\"__variable_246ccd __variable_c29908 font-sans antialiased\",\"children\":[\"$\",\"$L2\",null,{\"attribute\":\"class\",\"defaultTheme\":\"system\",\"enableSystem\":true,\"disableTransitionOnChange\":true,\"children\":[[\"$\",\"$L3\",null,{\"children\":[[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}],[\"$\",\"$L6\",null,{}],[\"$\",\"$L7\",null,{}]]}],[\"$\",\"$L8\",null,{}]]}]}]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L9\",null,{\"children\":[\"$La\",[\"$\",\"$Lb\",null,{\"promise\":\"$@c\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$Ld\",null,{\"children\":\"$Le\"}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]],[\"$\",\"$Lf\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$10\",null,{\"fallback\":null,\"children\":\"$L11\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$12\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"e:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\na:null\n"])</script><script>self.__next_f.push([1,"c:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"LocalApp\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Build and share apps\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"11:\"$c:metadata\"\n"])</script></body></html>
1
+ <!DOCTYPE html><!--qBns_ZRUDtxsd4XX5SLLK--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/22a5144ee8d83bca-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/7d4881bb7e1bf84d-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/b8973d29c0d3fd9b.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-0bed2fdf6baa566e.js"/><script src="/_next/static/chunks/740d80ee-6c0a9504f1fd46f8.js" async=""></script><script src="/_next/static/chunks/66-6f6658280a10fbca.js" async=""></script><script src="/_next/static/chunks/main-app-5b3c67453d8c5b99.js" async=""></script><script src="/_next/static/chunks/308-d74213c6f5179bf0.js" async=""></script><script src="/_next/static/chunks/app/layout-2231382739460b63.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>LocalApp</title><meta name="description" content="Build and share apps"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="__variable_246ccd __variable_c29908 font-sans antialiased"><div hidden=""><!--$--><!--/$--></div><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("class","theme","system",null,["light","dark"],null,true,true)</script><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><section aria-label="Notifications alt+T" tabindex="-1" aria-live="polite" aria-relevant="additions text" aria-atomic="false"></section><script src="/_next/static/chunks/webpack-0bed2fdf6baa566e.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[6249,[\"308\",\"static/chunks/308-d74213c6f5179bf0.js\",\"177\",\"static/chunks/app/layout-2231382739460b63.js\"],\"ThemeProvider\"]\n3:I[8172,[\"308\",\"static/chunks/308-d74213c6f5179bf0.js\",\"177\",\"static/chunks/app/layout-2231382739460b63.js\"],\"AuthProvider\"]\n4:I[6461,[],\"\"]\n5:I[1129,[],\"\"]\n6:I[2388,[\"308\",\"static/chunks/308-d74213c6f5179bf0.js\",\"177\",\"static/chunks/app/layout-2231382739460b63.js\"],\"LoginDialog\"]\n7:I[1467,[\"308\",\"static/chunks/308-d74213c6f5179bf0.js\",\"177\",\"static/chunks/app/layout-2231382739460b63.js\"],\"ChangePasswordDialog\"]\n8:I[3690,[\"308\",\"static/chunks/308-d74213c6f5179bf0.js\",\"177\",\"static/chunks/app/layout-2231382739460b63.js\"],\"Toaster\"]\n9:I[6032,[],\"OutletBoundary\"]\nb:I[9769,[],\"AsyncMetadataOutlet\"]\nd:I[6032,[],\"ViewportBoundary\"]\nf:I[6032,[],\"MetadataBoundary\"]\n10:\"$Sreact.suspense\"\n12:I[9247,[],\"\"]\n:HL[\"/_next/static/media/22a5144ee8d83bca-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/7d4881bb7e1bf84d-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/b8973d29c0d3fd9b.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"qBns-ZRUDtxsd4XX5SLLK\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/b8973d29c0d3fd9b.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[\"$\",\"body\",null,{\"className\":\"__variable_246ccd __variable_c29908 font-sans antialiased\",\"children\":[\"$\",\"$L2\",null,{\"attribute\":\"class\",\"defaultTheme\":\"system\",\"enableSystem\":true,\"disableTransitionOnChange\":true,\"children\":[[\"$\",\"$L3\",null,{\"children\":[[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}],[\"$\",\"$L6\",null,{}],[\"$\",\"$L7\",null,{}]]}],[\"$\",\"$L8\",null,{}]]}]}]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L9\",null,{\"children\":[\"$La\",[\"$\",\"$Lb\",null,{\"promise\":\"$@c\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$Ld\",null,{\"children\":\"$Le\"}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]],[\"$\",\"$Lf\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$10\",null,{\"fallback\":null,\"children\":\"$L11\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$12\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"e:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\na:null\n"])</script><script>self.__next_f.push([1,"c:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"LocalApp\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Build and share apps\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"11:\"$c:metadata\"\n"])</script></body></html>
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[966],{555:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(6621).A)("log-in",[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]])},1104:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(6621).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},1705:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(6621).A)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},1743:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(6621).A)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]])},2053:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(6621).A)("rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]])},2211:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(6621).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},2737:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(6621).A)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]])},3783:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>q});var s=a(6472),r=a(2212),l=a(448),c=a.n(l),n=a(5993),i=a(555),d=a(1743),o=a(6621);let x=(0,o.A)("cloud-upload",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]]),m=(0,o.A)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);var h=a(4196);let p=(0,o.A)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);var b=a(2053),u=a(1705),g=a(8522),f=a(2211),j=a(1104),k=a(2737);let v=(0,o.A)("monitor-down",[["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"m15 10-3 3-3-3",key:"lzhmyn"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}]]),N=(0,o.A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);var w=a(4721),y=a(9481),A=a(8172);let _=(0,o.A)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);function M(e){var t;let{compact:a=!1}=e,[l,c]=(0,r.useState)(!1),n=(t=window.location.origin,"阅读 ".concat(t,"/starter.md 的说明创建应用"));return(0,s.jsxs)("div",{className:"text-left",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(_,{className:"h-4 w-4 shrink-0"}),(0,s.jsx)("p",{className:"text-sm font-semibold",children:"交给 Agent 一句话"})]}),(0,s.jsx)("p",{className:"mt-1 text-xs leading-5 text-black/55",children:"把下面这句话发给你的 AI Agent(或粘贴到对话里),它会阅读 starter.md 并自动完成创建、实现和安装。"}),(0,s.jsxs)("div",{className:"mt-3 grid gap-2 sm:grid-cols-[1fr_auto] sm:items-center",children:[(0,s.jsx)("code",{className:"min-w-0 break-all rounded-md border border-black/10 bg-white px-3 py-2 font-mono text-xs font-semibold text-black",children:n}),(0,s.jsx)("button",{type:"button",onClick:()=>{navigator.clipboard.writeText(n).then(()=>{c(!0),setTimeout(()=>c(!1),1500)})},className:"inline-flex items-center justify-center gap-1.5 rounded-md border px-3 py-2 text-xs font-bold transition ".concat(l?"border-black/20 bg-black/5 text-black":"border-black/10 bg-white text-black/50 hover:bg-black/5 hover:text-black"),children:l?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{children:"已复制"}),(0,s.jsx)(f.A,{className:"h-4 w-4"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{children:"复制"}),(0,s.jsx)(j.A,{className:"h-4 w-4"})]})})]}),(0,s.jsx)("a",{href:"/starter.md",target:"_blank",rel:"noreferrer",className:"mt-2 inline-block text-xs underline decoration-black/25 underline-offset-4 hover:decoration-current",children:"查看 starter.md 完整说明"})]})}let C={"windows/x86_64":"Windows x64","linux/x86_64":"Linux x64","macos/aarch64":"macOS ARM","macos/x86_64":"macOS x64"};function z(e){let t=new Date(e).getTime();if(Number.isNaN(t))return"刚刚";let a=Math.floor((Date.now()-t)/6e4);if(a<1)return"刚刚";if(a<60)return"".concat(a," 分钟前");let s=Math.floor(a/60);if(s<24)return"".concat(s," 小时前");let r=Math.floor(s/24);return"".concat(r," 天前")}async function S(e){var t;let a=await fetch(e,{credentials:"include"}),s=await a.json();if(!a.ok||!s.success)throw Error(s.error||"请求失败");return null!=(t=s.data)?t:[]}function L(e){return e.replace(/^\//,"").split("/").join(" / ")}function P(e){let{children:t}=e;return(0,s.jsx)("div",{className:"rounded-lg border border-dashed bg-card p-6 text-center text-sm text-muted-foreground",children:t})}function E(){return(0,s.jsx)("div",{className:"rounded-lg border bg-card p-6 text-center text-sm text-muted-foreground",children:"加载中..."})}function I(){let{openLogin:e}=(0,A.M)(),[t,a]=(0,r.useState)(!1),[l,c]=(0,r.useState)(0),[o,N]=(0,r.useState)(null),[w,y]=(0,r.useState)([]),_=function(){let e=navigator.platform||"";return e.includes("Win")?"windows/x86_64":e.includes("Mac")&&(e.includes("arm")||e.includes("ARM"))?"macos/aarch64":e.includes("Mac")?"macos/x86_64":e.includes("Linux")?"linux/x86_64":null}(),z=window.location.origin,S=[{command:"localapp --version",title:"下载 CLI",text:"从下方选择对应平台下载命令行工具,并确认安装版本。",icon:n.A},{command:"localapp login ".concat(z),title:"连接实例",text:"使用 API Key 将 CLI 绑定到当前 LocalApp 实例。",icon:i.A},{command:"localapp init my-app",title:"创建并开发",text:"从内置模板开始,让 Agent 直接实现可维护的 React 业务应用。",icon:d.A},{command:"localapp check && localapp app install",title:"检查并发布",text:"一次完成契约、测试、构建、安装和正式路径验收。",icon:x}],L=[{num:"01",title:"代码可控",text:"React 与 TypeScript 源码始终属于应用,Agent 和开发者都能直接维护。",icon:m},{num:"02",title:"声明式后端",text:"用 migration、Named SQL 和事务 mutation 承载稳定业务逻辑。",icon:h.A},{num:"03",title:"平台能力",text:"认证、权限、文件、通知、Issue、AI Shell 和运维能力统一托管。",icon:p}],P=[["已发布应用",null==o?void 0:o.pages,b.A],["开发者",null==o?void 0:o.users,u.A],["数据模型",null==o?void 0:o.schemas,g.A],["本月部署",null==o?void 0:o.monthDeploys,x]];(0,r.useEffect)(()=>{fetch("/api/home/stats").then(e=>e.json()).then(e=>{e.success&&N(e.data)}).catch(()=>N(null))},[]),(0,r.useEffect)(()=>{fetch("/api/cli/version").then(e=>e.ok?e.json():null).then(e=>{if(!(null==e?void 0:e.versions))return;let t=e.versions[e.latest];(null==t?void 0:t.platforms)&&y(Object.keys(t.platforms).map(e=>({os:e.split("/")[0],arch:e.split("/")[1],label:C[e]||e})))}).catch(()=>y([]))},[]);let E=S[l],I=E.icon;return(0,s.jsx)("main",{className:"min-h-screen overflow-hidden bg-[#f8f8f6] text-[#111111]",children:(0,s.jsxs)("section",{className:"relative min-h-screen bg-[#f8f8f6]",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-[linear-gradient(rgba(192,0,0,0.052)_1px,transparent_1px),linear-gradient(90deg,rgba(17,17,17,0.045)_1px,transparent_1px)] bg-[size:40px_40px]"}),(0,s.jsx)("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_15%_8%,rgba(192,0,0,0.12),transparent_28%),linear-gradient(90deg,#f8f8f6_0%,rgba(248,248,246,0.96)_34%,rgba(248,248,246,0.38)_66%,rgba(248,248,246,0.92)_100%)]"}),(0,s.jsx)("img",{src:"/home/redline-launch-hero.png",alt:"",className:"absolute bottom-[7.75rem] right-0 top-16 hidden w-[160vw] -translate-x-[38vw] object-cover object-left opacity-95 min-[960px]:block"}),(0,s.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-56 bg-gradient-to-t from-[#f8f8f6] via-[#f8f8f6]/92 to-transparent"}),(0,s.jsxs)("div",{className:"relative flex min-h-screen w-full flex-col px-5 py-3 sm:px-8 xl:px-12 2xl:px-16",children:[(0,s.jsxs)("nav",{className:"flex h-11 items-center justify-between gap-5 border-b border-black/10 bg-[#f8f8f6]/84 pb-3 backdrop-blur",children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,s.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-md bg-[#c00000] text-base font-black text-white shadow-[0_12px_28px_rgba(192,0,0,0.24)]",children:"Q"}),(0,s.jsx)("span",{className:"truncate text-xl font-black tracking-normal",children:"LocalApp"})]}),(0,s.jsxs)("button",{type:"button",onClick:()=>e(),className:"inline-flex h-10 shrink-0 items-center justify-center gap-2 rounded-md bg-[#c00000] px-5 text-sm font-semibold text-white shadow-[0_10px_24px_rgba(192,0,0,0.24)] transition hover:bg-[#9f0000]",children:[(0,s.jsx)(i.A,{className:"h-4 w-4"}),"登录"]})]}),(0,s.jsxs)("div",{className:"grid flex-1 gap-5 pt-20 min-[960px]:grid-cols-12 min-[960px]:items-start xl:pt-24",children:[(0,s.jsxs)("div",{className:"relative z-10 min-[960px]:col-span-5",children:[(0,s.jsx)("div",{className:"mb-4 inline-flex items-center gap-2 border-l-4 border-[#c00000] bg-white/72 px-3 py-2 text-xs font-bold uppercase tracking-normal text-[#c00000] shadow-sm",children:"Agent application platform"}),(0,s.jsx)("h1",{className:"text-6xl font-black leading-[0.9] tracking-normal text-[#c00000] sm:text-8xl min-[960px]:text-[clamp(4.5rem,6vw,8.4rem)]",children:"LocalApp"}),(0,s.jsxs)("h2",{className:"mt-4 max-w-2xl text-2xl font-black leading-tight tracking-normal text-black sm:text-3xl min-[960px]:text-[clamp(2rem,2.2vw,2.6rem)]",children:[(0,s.jsx)("span",{className:"block",children:"让 Agent 交付真正可运行的"}),(0,s.jsx)("span",{className:"block",children:"业务应用"})]}),(0,s.jsx)("p",{className:"mt-4 max-w-xl text-base leading-7 text-black/64",children:"保留 React / TypeScript 的完整定制能力,由平台承接认证、数据契约、文件、协作和运维,让应用从创建到上线形成一条可验证的交付路径。"}),(0,s.jsxs)("div",{className:"mt-6 flex flex-col gap-3 sm:flex-row sm:items-center",children:[w.length>0?w.map(e=>{let t=_==="".concat(e.os,"/").concat(e.arch);return(0,s.jsxs)("a",{href:"/api/cli/download?os=".concat(e.os,"&arch=").concat(e.arch),className:"inline-flex h-12 items-center justify-center gap-2 rounded-md px-5 text-sm font-bold shadow-[0_18px_42px_rgba(192,0,0,0.25)] transition ".concat(t?"bg-[#c00000] text-white hover:bg-[#a30000]":"border border-black/18 bg-white/78 text-black shadow-sm backdrop-blur hover:border-[#c00000]/60 hover:text-[#c00000]"),children:[(0,s.jsx)(n.A,{className:"h-4 w-4"}),"下载 ",e.label]},"".concat(e.os,"/").concat(e.arch))}):(0,s.jsx)("span",{className:"text-sm text-black/52",children:"暂无 CLI 可供下载,请联系管理员"}),(0,s.jsxs)("button",{type:"button",onClick:()=>e(),className:"inline-flex h-12 items-center justify-center gap-2 rounded-md border border-black/18 bg-white/78 px-5 text-sm font-semibold text-black shadow-sm backdrop-blur transition hover:border-[#c00000]/60 hover:text-[#c00000]",children:[(0,s.jsx)(i.A,{className:"h-4 w-4"}),"登录进入平台"]})]}),(0,s.jsxs)("div",{className:"mt-5 flex flex-wrap gap-x-6 gap-y-2 text-sm text-black/62",children:[(0,s.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,s.jsx)(m,{className:"h-4 w-4"})," React 可定制"]}),(0,s.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,s.jsx)(h.A,{className:"h-4 w-4"})," Named SQL"]}),(0,s.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,s.jsx)(u.A,{className:"h-4 w-4"})," 上传即验收"]})]})]}),(0,s.jsx)("div",{className:"relative z-10 min-[960px]:col-span-7",children:(0,s.jsxs)("div",{id:"workflow",className:"ml-auto max-w-[760px] overflow-hidden rounded-xl border border-black/10 bg-white/86 shadow-[0_24px_80px_rgba(17,17,17,0.14)] backdrop-blur",children:[(0,s.jsx)("div",{className:"grid grid-cols-2 border-b border-black/10 bg-white/72 min-[640px]:grid-cols-4",children:S.map((e,t)=>{let a=e.icon;return(0,s.jsxs)("button",{type:"button",onClick:()=>c(t),className:"group relative flex min-h-[5.8rem] items-center gap-3 border-b border-r border-black/10 px-4 py-3 text-left transition [@media(min-width:640px)]:border-b-0 last:border-r-0 ".concat(l===t?"bg-white text-black":"bg-white/45 text-black/62 hover:bg-white/80 hover:text-black"),children:[(0,s.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full border ".concat(l===t?"border-[#c00000] bg-[#c00000] text-white":"border-black/16 bg-white text-black/48"),children:(0,s.jsx)(a,{className:"h-4 w-4"})}),(0,s.jsxs)("span",{className:"min-w-0",children:[(0,s.jsxs)("span",{className:"block text-sm font-black ".concat(l===t?"text-[#c00000]":"text-black/55"),children:["0",t+1]}),(0,s.jsx)("span",{className:"block truncate text-sm font-black",children:e.title})]}),l===t&&(0,s.jsx)("span",{className:"absolute inset-x-0 bottom-0 h-1 bg-[#c00000]"})]},e.command)})}),(0,s.jsx)("div",{className:"p-5",children:(0,s.jsxs)("div",{className:"relative min-h-[18rem] overflow-hidden rounded-lg bg-[#f8f8f6]/72 p-5",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-[linear-gradient(rgba(192,0,0,0.065)_1px,transparent_1px),linear-gradient(90deg,rgba(17,17,17,0.035)_1px,transparent_1px)] bg-[size:28px_28px]"}),(0,s.jsxs)("div",{className:"relative flex h-full flex-col justify-between",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-xs font-black uppercase tracking-normal text-[#c00000]",children:"active sequence"}),(0,s.jsx)("h2",{className:"mt-2 text-3xl font-black leading-tight text-black",children:E.title}),(0,s.jsx)("p",{className:"mt-3 max-w-xl text-sm leading-6 text-black/58",children:E.text})]}),(0,s.jsx)("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-md bg-[#c00000] text-white shadow-[0_16px_34px_rgba(192,0,0,0.22)]",children:(0,s.jsx)(I,{className:"h-6 w-6"})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"mb-4 h-1.5 overflow-hidden rounded-full bg-black/10",children:(0,s.jsx)("div",{className:"h-full rounded-full bg-[#c00000] transition-all",style:{width:"".concat((l+1)/S.length*100,"%")}})}),(0,s.jsxs)("div",{className:"grid gap-3 md:grid-cols-[1fr_auto] md:items-center",children:[(0,s.jsx)("code",{className:"min-w-0 break-all rounded-md border border-black/10 bg-white px-4 py-3 font-mono text-sm font-semibold text-black shadow-sm",children:E.command}),(0,s.jsx)("button",{type:"button",onClick:()=>{navigator.clipboard.writeText(E.command).then(()=>{a(!0),setTimeout(()=>a(!1),1500)})},className:"group inline-flex items-center gap-1.5 rounded-md border px-3 py-2.5 text-xs font-bold transition-all duration-200 ".concat(t?"border-[#c00000]/30 bg-[#c00000]/8 text-[#c00000] shadow-sm":"border-black/10 bg-white text-black/45 hover:border-[#c00000]/40 hover:bg-[#c00000]/5 hover:text-[#c00000] hover:shadow-md active:scale-95"),children:t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{children:"已复制"}),(0,s.jsx)(f.A,{className:"h-4 w-4"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{children:"复制"}),(0,s.jsx)(j.A,{className:"h-4 w-4 transition-transform group-hover:scale-110"})]})})]})]})]})]})})]})}),(0,s.jsx)("div",{className:"relative z-10 min-[960px]:col-span-7",children:(0,s.jsx)("div",{className:"ml-auto max-w-[760px] rounded-xl border border-black/10 bg-white/86 p-5 shadow-[0_18px_54px_rgba(17,17,17,0.1)] backdrop-blur",children:(0,s.jsx)(M,{})})})]}),(0,s.jsxs)("div",{className:"mb-3 grid overflow-hidden rounded-xl border border-black/10 bg-white/90 shadow-[0_18px_54px_rgba(17,17,17,0.1)] backdrop-blur min-[960px]:grid-cols-[1.15fr_1.2fr_1.05fr]",children:[(0,s.jsx)("div",{className:"border-b border-black/10 p-4 min-[960px]:border-b-0 min-[960px]:border-r",children:(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"flex h-16 w-20 items-center justify-center rounded-lg border border-[#c00000]/18 bg-[#c00000]/8",children:(0,s.jsx)(k.A,{className:"h-8 w-8 text-[#c00000]"})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("h2",{className:"text-lg font-black",children:"LocalApp CLI"}),(0,s.jsx)("div",{className:"mt-2 flex flex-wrap gap-2",children:w.length>0?w.map(e=>{let t=_==="".concat(e.os,"/").concat(e.arch);return(0,s.jsxs)("a",{href:"/api/cli/download?os=".concat(e.os,"&arch=").concat(e.arch),className:"inline-flex items-center gap-1.5 rounded-md border px-3 py-2 text-xs font-semibold transition ".concat(t?"border-[#c00000]/40 bg-[#c00000]/8 text-[#c00000]":"border-black/10 bg-white text-black hover:border-[#c00000]/60 hover:text-[#c00000]"),children:[(0,s.jsx)(v,{className:"h-4 w-4 shrink-0"}),e.label,(0,s.jsx)(n.A,{className:"h-3 w-3 shrink-0 opacity-36"})]},"".concat(e.os,"/").concat(e.arch))}):(0,s.jsx)("span",{className:"text-xs text-black/52",children:"暂无 CLI 可供下载,请联系管理员"})})]})]})}),(0,s.jsx)("div",{className:"grid grid-cols-4 border-b border-black/10 min-[960px]:border-b-0 min-[960px]:border-r",children:P.map(e=>{let[t,a,r]=e;return(0,s.jsxs)("div",{className:"border-r border-black/10 px-5 py-4 last:border-r-0",children:[(0,s.jsx)(r,{className:"mb-1 h-4 w-4 text-black/42"}),(0,s.jsx)("p",{className:"truncate text-xs text-black/48",children:t}),(0,s.jsx)("strong",{className:"text-3xl font-black text-[#c00000]",children:null==a?"...":new Intl.NumberFormat("zh-CN").format(a)})]},t)})}),(0,s.jsx)("div",{className:"grid grid-cols-3 gap-2",children:L.map(e=>{let t=e.icon;return(0,s.jsxs)("div",{className:"p-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(t,{className:"h-5 w-5 shrink-0 text-[#c00000]"}),(0,s.jsx)("p",{className:"text-xs font-black text-[#c00000]",children:e.num})]}),(0,s.jsx)("h3",{className:"mt-2 truncate text-sm font-black",children:e.title}),(0,s.jsx)("p",{className:"mt-1 line-clamp-2 text-xs leading-5 text-black/52",children:e.text})]},e.num)})})]})]})]})})}function V(e){let{user:t}=e,[a,l]=(0,r.useState)({data:[],loading:!0,error:!1}),[n,i]=(0,r.useState)({data:[],loading:!0,error:!1}),[o,x]=(0,r.useState)({data:[],loading:!0,error:!1});(0,r.useEffect)(()=>{S("/api/me/pages?limit=8").then(e=>l({data:e,loading:!1,error:!1})).catch(()=>l({data:[],loading:!1,error:!0})),S("/api/me/favorites?limit=5").then(e=>i({data:e,loading:!1,error:!1})).catch(()=>i({data:[],loading:!1,error:!0})),S("/api/me/recent?limit=5").then(e=>x({data:e,loading:!1,error:!1})).catch(()=>x({data:[],loading:!1,error:!0}))},[]);let m=t.displayName||t.name||"朋友";return(0,s.jsxs)("div",{className:"space-y-8",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("h1",{className:"text-2xl font-bold tracking-normal",children:["欢迎回来,",m]}),(0,s.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"从这里继续管理、访问和回看你的应用。"})]}),(0,s.jsxs)(c(),{href:"/my/apps",className:"inline-flex items-center gap-1 text-sm font-medium text-primary hover:underline",children:["管理应用 ",(0,s.jsx)(N,{className:"h-4 w-4"})]})]}),(0,s.jsxs)("section",{children:[(0,s.jsxs)("div",{className:"mb-3 flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(d.A,{className:"h-4 w-4 text-muted-foreground"}),(0,s.jsx)("h2",{className:"text-sm font-semibold",children:"我的应用"}),a.data.length>0&&(0,s.jsx)("span",{className:"rounded-full bg-muted px-2 py-0.5 text-xs text-muted-foreground",children:a.data.length})]}),(0,s.jsxs)(c(),{href:"/my/apps",className:"inline-flex items-center gap-1 text-xs text-primary hover:underline",children:["查看全部 ",(0,s.jsx)(N,{className:"h-3 w-3"})]})]}),a.loading?(0,s.jsx)(E,{}):a.error?(0,s.jsx)(P,{children:"应用列表暂时加载失败。"}):0===a.data.length?(0,s.jsx)(P,{children:(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("p",{children:["暂无应用。使用 ",(0,s.jsx)("code",{className:"rounded bg-muted px-1 py-0.5 text-xs",children:"localapp init"})," 创建第一个应用, 或者直接把下面这句话发给你的 AI Agent:"]}),(0,s.jsx)(M,{compact:!0})]})}):(0,s.jsx)("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-4",children:a.data.map(e=>(0,s.jsxs)(c(),{href:"/".concat(t.name,"/").concat(e.name),prefetch:!1,className:"rounded-lg border bg-card p-4 transition-colors hover:bg-accent/50",children:[(0,s.jsx)("div",{className:"mb-3 flex h-9 w-9 items-center justify-center rounded-md bg-muted",children:(0,s.jsx)(g.A,{className:"h-4 w-4 text-primary"})}),(0,s.jsx)("p",{className:"truncate text-sm font-medium",children:e.name}),(0,s.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:["v",e.currentVersion," \xb7 更新于 ",z(e.updatedAt)]})]},e.name))})]}),(0,s.jsxs)("div",{className:"grid gap-6 md:grid-cols-2",children:[(0,s.jsxs)("section",{children:[(0,s.jsxs)("div",{className:"mb-3 flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(w.A,{className:"h-4 w-4 text-amber-500"}),(0,s.jsx)("h2",{className:"text-sm font-semibold",children:"收藏应用"})]}),(0,s.jsxs)(c(),{href:"/my/favorites",className:"inline-flex items-center gap-1 text-xs text-primary hover:underline",children:["查看全部 ",(0,s.jsx)(N,{className:"h-3 w-3"})]})]}),n.loading?(0,s.jsx)(E,{}):n.error?(0,s.jsx)(P,{children:"收藏应用暂时加载失败。"}):0===n.data.length?(0,s.jsx)(P,{children:"暂无收藏应用。"}):(0,s.jsx)("div",{className:"divide-y rounded-lg border bg-card",children:n.data.map(e=>(0,s.jsxs)(c(),{prefetch:!1,href:e.pagePath.startsWith("/")?e.pagePath:"/".concat(e.pagePath),className:"flex items-center justify-between gap-3 px-4 py-3 transition-colors first:rounded-t-lg last:rounded-b-lg hover:bg-accent/50",children:[(0,s.jsx)("span",{className:"truncate text-sm",children:e.pageName||L(e.pagePath)}),(0,s.jsx)("span",{className:"shrink-0 text-xs text-muted-foreground",children:z(e.createdAt)})]},e.pagePath))})]}),(0,s.jsxs)("section",{children:[(0,s.jsxs)("div",{className:"mb-3 flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(y.A,{className:"h-4 w-4 text-muted-foreground"}),(0,s.jsx)("h2",{className:"text-sm font-semibold",children:"最近访问"})]}),(0,s.jsxs)(c(),{href:"/my/recent",className:"inline-flex items-center gap-1 text-xs text-primary hover:underline",children:["查看全部 ",(0,s.jsx)(N,{className:"h-3 w-3"})]})]}),o.loading?(0,s.jsx)(E,{}):o.error?(0,s.jsx)(P,{children:"最近访问暂时加载失败。"}):0===o.data.length?(0,s.jsx)(P,{children:"暂无最近访问记录。"}):(0,s.jsx)("div",{className:"divide-y rounded-lg border bg-card",children:o.data.map(e=>(0,s.jsxs)(c(),{prefetch:!1,href:e.pagePath.startsWith("/")?e.pagePath:"/".concat(e.pagePath),className:"flex items-center justify-between gap-3 px-4 py-3 transition-colors first:rounded-t-lg last:rounded-b-lg hover:bg-accent/50",children:[(0,s.jsx)("span",{className:"truncate text-sm",children:L(e.pagePath)}),(0,s.jsx)("span",{className:"shrink-0 text-xs text-muted-foreground",children:z(e.lastVisitedAt)})]},e.pagePath))})]})]})]})}function q(){let[e,t]=(0,r.useState)(null),[a,l]=(0,r.useState)(!0);return((0,r.useEffect)(()=>{fetch("/api/me",{credentials:"include"}).then(e=>e.json()).then(e=>{t(e.success&&e.data?e.data:null)}).catch(()=>t(null)).finally(()=>l(!1))},[]),a)?null:e?(0,s.jsx)(V,{user:e}):(0,s.jsx)(I,{})}},4196:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(6621).A)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},4534:(e,t,a)=>{Promise.resolve().then(a.bind(a,3783))},4721:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(6621).A)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},5993:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(6621).A)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]])},6621:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(2212);let r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,a)=>a?a.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},l=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.filter((e,t,a)=>!!e&&""!==e.trim()&&a.indexOf(e)===t).join(" ").trim()};var c={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let n=(0,s.forwardRef)((e,t)=>{let{color:a="currentColor",size:r=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:d="",children:o,iconNode:x,...m}=e;return(0,s.createElement)("svg",{ref:t,...c,width:r,height:r,stroke:a,strokeWidth:i?24*Number(n)/Number(r):n,className:l("lucide",d),...!o&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(m)&&{"aria-hidden":"true"},...m},[...x.map(e=>{let[t,a]=e;return(0,s.createElement)(t,a)}),...Array.isArray(o)?o:[o]])}),i=(e,t)=>{let a=(0,s.forwardRef)((a,c)=>{let{className:i,...d}=a;return(0,s.createElement)(n,{ref:c,iconNode:t,className:l("lucide-".concat(r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),i),...d})});return a.displayName=r(e),a}},8172:(e,t,a)=>{"use strict";a.d(t,{AuthProvider:()=>c,M:()=>n});var s=a(6472),r=a(2212);let l=(0,r.createContext)(null);function c(e){let{children:t}=e,[a,c]=(0,r.useState)(!1),[n,i]=(0,r.useState)(null),[d,o]=(0,r.useState)(!1),[x,m]=(0,r.useState)("profile"),[h,p]=(0,r.useState)(null),[b,u]=(0,r.useState)(null),g=(0,r.useCallback)(e=>{var t;let a="".concat(window.location.pathname).concat(window.location.search).concat(window.location.hash);i(null!=(t=null==e?void 0:e.returnTo)?t:a),c(!0)},[]),f=(0,r.useCallback)(()=>c(!1),[]),j=(0,r.useCallback)(e=>{var t;m(e.mode),p(null!=(t=e.userId)?t:null),o(!0)},[]),k=(0,r.useCallback)(()=>{o(!1),u(null)},[]),v=(0,r.useMemo)(()=>({loginOpen:a,loginReturnTo:n,changePasswordOpen:d,changePasswordMode:x,changePasswordUserId:h,pendingOldPassword:b,openLogin:g,closeLogin:f,openChangePassword:j,closeChangePassword:k,setPendingOldPassword:u}),[a,n,d,x,h,b,g,f,j,k,u]);return(0,s.jsx)(l.Provider,{value:v,children:t})}function n(){let e=(0,r.useContext)(l);if(!e)throw Error("useAuthModals must be used within an AuthProvider");return e}},8522:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(6621).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9481:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(6621).A)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])}},e=>{e.O(0,[448,856,66,358],()=>e(e.s=4534)),_N_E=e.O()}]);