stacks 0.56.24 → 0.58.18

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 (1580) hide show
  1. package/buddy +2 -0
  2. package/core/.env +38 -0
  3. package/core/.simple-git-hooks.js +3 -0
  4. package/core/Caddyfile +23 -0
  5. package/core/README.md +415 -0
  6. package/core/buddy +2 -0
  7. package/core/env.ts +42 -0
  8. package/core/playwright.config.ts +109 -0
  9. package/core/scripts/build +84 -0
  10. package/core/scripts/ensure +33 -0
  11. package/core/scripts/fresh +14 -0
  12. package/core/scripts/link +14 -0
  13. package/core/scripts/move-built-src-files.ts +28 -0
  14. package/core/scripts/move-dts-files.ts +35 -0
  15. package/core/scripts/publish +37 -0
  16. package/core/scripts/setup +176 -0
  17. package/core/src/actions/README.md +58 -0
  18. package/core/src/actions/build.ts +5 -0
  19. package/core/src/actions/dist/src/add.js +29 -0
  20. package/core/src/actions/dist/src/build/component-libs.js +6 -0
  21. package/core/src/actions/dist/src/build/core.js +25 -0
  22. package/core/src/actions/dist/src/build/stacks.js +8 -0
  23. package/core/src/actions/dist/src/build.js +226 -0
  24. package/core/src/actions/dist/src/bump.js +8 -0
  25. package/core/src/actions/dist/src/changelog.js +9 -0
  26. package/core/src/actions/dist/src/clean.js +6 -0
  27. package/core/src/actions/dist/src/commit.js +17 -0
  28. package/core/src/actions/dist/src/copy-types.js +14 -0
  29. package/core/src/actions/dist/src/database/seed.js +4 -0
  30. package/core/src/actions/dist/src/deploy/index.js +31 -0
  31. package/core/src/actions/dist/src/dev/components.js +11 -0
  32. package/core/src/actions/dist/src/dev/docs.js +7 -0
  33. package/core/src/actions/dist/src/dev/index.js +90 -0
  34. package/core/src/actions/dist/src/examples.js +43 -0
  35. package/core/src/actions/dist/src/fresh.js +18 -0
  36. package/core/src/actions/dist/src/generate/component-meta.js +57 -0
  37. package/core/src/actions/dist/src/generate/ide-helpers.js +83 -0
  38. package/core/src/actions/dist/src/generate/index.js +161 -0
  39. package/core/src/actions/dist/src/generate/lib-entries.js +168 -0
  40. package/core/src/actions/dist/src/generate/vscode-custom-data.js +82 -0
  41. package/core/src/actions/dist/src/generate/vue-compat.js +18 -0
  42. package/core/src/actions/dist/src/helpers/component-meta.js +50 -0
  43. package/core/src/actions/dist/src/helpers/index.js +56 -0
  44. package/core/src/actions/dist/src/helpers/lib-entries.js +160 -0
  45. package/core/src/actions/dist/src/helpers/package-json.js +135 -0
  46. package/core/src/actions/dist/src/helpers/utils.js +56 -0
  47. package/core/src/actions/dist/src/helpers/vscode-custom-data.js +75 -0
  48. package/core/src/actions/dist/src/helpers/vue-compat.js +16 -0
  49. package/core/src/actions/dist/src/index.js +577 -0
  50. package/core/src/actions/dist/src/key-generate.js +10 -0
  51. package/core/src/actions/dist/src/lint/fix.js +8 -0
  52. package/core/src/actions/dist/src/lint/index.js +21 -0
  53. package/core/src/actions/dist/src/make.js +291 -0
  54. package/core/src/actions/dist/src/prepublish.js +14 -0
  55. package/core/src/actions/dist/src/release.js +545 -0
  56. package/core/src/actions/dist/src/test/coverage.js +6 -0
  57. package/core/src/actions/dist/src/test/feature.js +6 -0
  58. package/core/src/actions/dist/src/test/ui.js +6 -0
  59. package/core/src/actions/dist/src/test/unit.js +6 -0
  60. package/core/src/actions/dist/src/test.js +6 -0
  61. package/core/src/actions/dist/src/tinker.js +5 -0
  62. package/core/src/actions/dist/src/typecheck.js +6 -0
  63. package/core/src/actions/dist/src/types.js +21 -0
  64. package/core/src/actions/dist/src/upgrade/dependencies.js +6 -0
  65. package/core/src/actions/dist/src/upgrade/framework.js +1 -0
  66. package/core/src/actions/dist/src/upgrade/index.js +1 -0
  67. package/core/src/actions/dist/src/upgrade.js +39 -0
  68. package/core/src/actions/package.json +89 -0
  69. package/core/src/actions/src/action.ts +11 -0
  70. package/core/src/actions/src/actions.ts +2 -0
  71. package/core/src/actions/src/add.ts +27 -0
  72. package/core/src/actions/src/ai/request-model-access.ts +74 -0
  73. package/core/src/actions/src/build/component-libs.ts +5 -0
  74. package/core/src/actions/src/build/core.ts +66 -0
  75. package/core/src/actions/src/build/desktop.ts +7 -0
  76. package/core/src/actions/src/build/stacks.ts +7 -0
  77. package/core/src/actions/src/build.ts +89 -0
  78. package/core/src/actions/src/bump.ts +11 -0
  79. package/core/src/actions/src/cdn/invalidate-cache.ts +27 -0
  80. package/core/src/actions/src/changelog.ts +11 -0
  81. package/core/src/actions/src/clean.ts +6 -0
  82. package/core/src/actions/src/commit.ts +14 -0
  83. package/core/src/actions/src/copy-types.ts +22 -0
  84. package/core/src/actions/src/database/fields.ts +111 -0
  85. package/core/src/actions/src/database/migration-mysql.ts +72 -0
  86. package/core/src/actions/src/database/migration-sqlite.ts +67 -0
  87. package/core/src/actions/src/database/migration.ts +10 -0
  88. package/core/src/actions/src/database/mydb.sqlite +0 -0
  89. package/core/src/actions/src/database/seed.ts +4 -0
  90. package/core/src/actions/src/database/stacks.sqlite +0 -0
  91. package/core/src/actions/src/database/user-migration.ts +20 -0
  92. package/core/src/actions/src/deploy/create-receipt-rule.ts +55 -0
  93. package/core/src/actions/src/deploy/index.ts +46 -0
  94. package/core/src/actions/src/dev/api.ts +19 -0
  95. package/core/src/actions/src/dev/components.ts +14 -0
  96. package/core/src/actions/src/dev/desktop.ts +7 -0
  97. package/core/src/actions/src/dev/docs.ts +7 -0
  98. package/core/src/actions/src/dev/index.ts +38 -0
  99. package/core/src/actions/src/dev/views.ts +7 -0
  100. package/core/src/actions/src/domains/add.ts +82 -0
  101. package/core/src/actions/src/domains/purchase.ts +76 -0
  102. package/core/src/actions/src/domains/remove.ts +38 -0
  103. package/core/src/actions/src/examples.ts +46 -0
  104. package/core/src/actions/src/fresh.ts +20 -0
  105. package/core/src/actions/src/generate/caddyfile.ts +1 -0
  106. package/core/src/actions/src/generate/component-meta.ts +15 -0
  107. package/core/src/actions/src/generate/env-files.ts +89 -0
  108. package/core/src/actions/src/generate/ide-helpers.ts +20 -0
  109. package/core/src/actions/src/generate/index.ts +141 -0
  110. package/core/src/actions/src/generate/lib-entries.ts +17 -0
  111. package/core/src/actions/src/generate/model-classes.ts +299 -0
  112. package/core/src/actions/src/generate/model-generate.ts +12 -0
  113. package/core/src/actions/src/generate/pkgx-file.ts +72 -0
  114. package/core/src/actions/src/generate/vscode-custom-data.ts +16 -0
  115. package/core/src/actions/src/generate/vue-compat.ts +10 -0
  116. package/core/src/actions/src/helpers/component-meta.ts +93 -0
  117. package/core/src/actions/src/helpers/index.ts +1 -0
  118. package/core/src/actions/src/helpers/lib-entries.ts +139 -0
  119. package/core/src/actions/src/helpers/package-json.ts +96 -0
  120. package/core/src/actions/src/helpers/utils.ts +82 -0
  121. package/core/src/actions/src/helpers/vscode-custom-data.ts +28 -0
  122. package/core/src/actions/src/helpers/vue-compat.ts +16 -0
  123. package/core/src/actions/src/index.ts +29 -0
  124. package/core/src/actions/src/key-generate.ts +10 -0
  125. package/core/src/actions/src/lint/fix.ts +7 -0
  126. package/core/src/actions/src/lint/index.ts +19 -0
  127. package/core/src/actions/src/make.ts +322 -0
  128. package/core/src/actions/src/migrate/database.ts +1 -0
  129. package/core/src/actions/src/migrate/dns.ts +3 -0
  130. package/core/src/actions/src/prepublish.ts +17 -0
  131. package/core/src/actions/src/release.ts +15 -0
  132. package/core/src/actions/src/start-caddy.ts +13 -0
  133. package/core/src/actions/src/test/coverage.ts +5 -0
  134. package/core/src/actions/src/test/feature.ts +5 -0
  135. package/core/src/actions/src/test/ui.ts +5 -0
  136. package/core/src/actions/src/test/unit.ts +5 -0
  137. package/core/src/actions/src/test.ts +5 -0
  138. package/core/src/actions/src/tinker.ts +10 -0
  139. package/core/src/actions/src/typecheck.ts +5 -0
  140. package/core/src/actions/src/types.ts +20 -0
  141. package/core/src/actions/src/upgrade/bun.ts +4 -0
  142. package/core/src/actions/src/upgrade/framework.ts +30 -0
  143. package/core/src/actions/src/upgrade/index.ts +25 -0
  144. package/core/src/actions/src/upgrade.ts +65 -0
  145. package/core/src/actions/src/zip/api.ts +22 -0
  146. package/core/src/actions/tests/example.test.ts +5 -0
  147. package/core/src/ai/README.md +67 -0
  148. package/core/src/ai/build.ts +9 -0
  149. package/core/src/ai/package.json +59 -0
  150. package/core/src/ai/src/index.ts +8 -0
  151. package/core/src/ai/src/text-generation.ts +0 -0
  152. package/core/src/ai/src/text-summary.ts +0 -0
  153. package/core/src/ai/src/utils/client-bedrock-runtime.ts +38 -0
  154. package/core/src/ai/src/utils/client-bedrock.ts +53 -0
  155. package/core/src/ai/tests/example.test.ts +5 -0
  156. package/core/src/alias/README.md +53 -0
  157. package/core/src/alias/build.ts +8 -0
  158. package/core/src/alias/dist/index.js +218 -0
  159. package/core/src/alias/package.json +51 -0
  160. package/core/src/alias/src/index.ts +220 -0
  161. package/core/src/alias/tests/example.test.ts +5 -0
  162. package/core/src/analytics/README.md +55 -0
  163. package/core/src/analytics/build.ts +8 -0
  164. package/core/src/analytics/dist/index.js +5 -0
  165. package/core/src/analytics/package.json +54 -0
  166. package/core/src/analytics/src/drivers/fathom.ts +1 -0
  167. package/core/src/analytics/src/drivers/index.ts +1 -0
  168. package/core/src/analytics/src/index.ts +1 -0
  169. package/core/src/analytics/tests/example.test.ts +5 -0
  170. package/core/src/api/build.ts +7 -0
  171. package/core/src/api/package.json +61 -0
  172. package/core/src/api/src/index.ts +114 -0
  173. package/core/src/arrays/README.md +59 -0
  174. package/core/src/arrays/build.ts +8 -0
  175. package/core/src/arrays/dist/index.js +469 -0
  176. package/core/src/arrays/package.json +59 -0
  177. package/core/src/arrays/src/arr.ts +3 -0
  178. package/core/src/arrays/src/contains.ts +87 -0
  179. package/core/src/arrays/src/helpers.ts +272 -0
  180. package/core/src/arrays/src/index.ts +3 -0
  181. package/core/src/arrays/src/macro.ts +131 -0
  182. package/core/src/arrays/src/math.ts +220 -0
  183. package/core/src/arrays/tests/example.test.ts +5 -0
  184. package/core/src/auth/README.md +59 -0
  185. package/core/src/auth/build.ts +8 -0
  186. package/core/src/auth/dist/index.js +5 -0
  187. package/core/src/auth/package.json +50 -0
  188. package/core/src/auth/tests/example.test.ts +5 -0
  189. package/core/src/bud +2 -0
  190. package/core/src/buddy/README.md +390 -0
  191. package/core/src/buddy/art/social.jpg +0 -0
  192. package/core/src/buddy/build.ts +8 -0
  193. package/core/src/buddy/dist/chunk-815e657d8c6ba584.js +1677 -0
  194. package/core/src/buddy/dist/chunk-b75e6db0012faa55.js +22 -0
  195. package/core/src/buddy/dist/cli.js +49 -0
  196. package/core/src/buddy/dist/index.js +70 -0
  197. package/core/src/buddy/package.json +174 -0
  198. package/core/src/buddy/src/cli.ts +51 -0
  199. package/core/src/buddy/src/commands/add.ts +65 -0
  200. package/core/src/buddy/src/commands/build.ts +172 -0
  201. package/core/src/buddy/src/commands/changelog.ts +36 -0
  202. package/core/src/buddy/src/commands/clean.ts +34 -0
  203. package/core/src/buddy/src/commands/cloud.ts +299 -0
  204. package/core/src/buddy/src/commands/commit.ts +22 -0
  205. package/core/src/buddy/src/commands/configure.ts +65 -0
  206. package/core/src/buddy/src/commands/create.ts +131 -0
  207. package/core/src/buddy/src/commands/deploy.ts +99 -0
  208. package/core/src/buddy/src/commands/dev.ts +228 -0
  209. package/core/src/buddy/src/commands/dns.ts +78 -0
  210. package/core/src/buddy/src/commands/domains.ts +156 -0
  211. package/core/src/buddy/src/commands/example.ts +62 -0
  212. package/core/src/buddy/src/commands/fresh.ts +34 -0
  213. package/core/src/buddy/src/commands/generate.ts +142 -0
  214. package/core/src/buddy/src/commands/http.ts +53 -0
  215. package/core/src/buddy/src/commands/index.ts +30 -0
  216. package/core/src/buddy/src/commands/inspire.ts +24 -0
  217. package/core/src/buddy/src/commands/install.ts +26 -0
  218. package/core/src/buddy/src/commands/key.ts +32 -0
  219. package/core/src/buddy/src/commands/lint.ts +49 -0
  220. package/core/src/buddy/src/commands/make.ts +259 -0
  221. package/core/src/buddy/src/commands/migrate.ts +55 -0
  222. package/core/src/buddy/src/commands/prepublish.ts +23 -0
  223. package/core/src/buddy/src/commands/release.ts +33 -0
  224. package/core/src/buddy/src/commands/seed.ts +36 -0
  225. package/core/src/buddy/src/commands/setup.ts +116 -0
  226. package/core/src/buddy/src/commands/test.ts +122 -0
  227. package/core/src/buddy/src/commands/tinker.ts +34 -0
  228. package/core/src/buddy/src/commands/types.ts +30 -0
  229. package/core/src/buddy/src/commands/upgrade.ts +109 -0
  230. package/core/src/buddy/src/commands/version.ts +24 -0
  231. package/core/src/buddy/src/compile.ts +9 -0
  232. package/core/src/build/README.md +59 -0
  233. package/core/src/build/build.ts +8 -0
  234. package/core/src/build/dist/index.js +19 -0
  235. package/core/src/build/package.json +63 -0
  236. package/core/src/build/src/index.ts +11 -0
  237. package/core/src/build/tests/example.test.ts +5 -0
  238. package/core/src/build/web-types.ts +15 -0
  239. package/core/src/bun-create/bud/README.md +45 -0
  240. package/core/src/bun-create/bud/package.json +152 -0
  241. package/core/src/bun-create/buddy/README.md +45 -0
  242. package/core/src/bun-create/buddy/package.json +152 -0
  243. package/core/src/bun-create/stack/README.md +45 -0
  244. package/core/src/bun-create/stack/package.json +152 -0
  245. package/core/src/bun-create/stacks/README.md +45 -0
  246. package/core/src/bun-create/stacks/package.json +152 -0
  247. package/core/src/bun-create/stx/README.md +45 -0
  248. package/core/src/bun-create/stx/package.json +152 -0
  249. package/core/src/bun-plugin-yaml/README.md +56 -0
  250. package/core/src/bun-plugin-yaml/build.ts +8 -0
  251. package/core/src/bun-plugin-yaml/dist/index.js +2781 -0
  252. package/core/src/bun-plugin-yaml/package.json +57 -0
  253. package/core/src/bun-plugin-yaml/src/index.ts +22 -0
  254. package/core/src/bun-plugin-yaml/tests/example.test.ts +5 -0
  255. package/core/src/cache/README.md +59 -0
  256. package/core/src/cache/build.ts +8 -0
  257. package/core/src/cache/dist/index.js +88 -0
  258. package/core/src/cache/package.json +65 -0
  259. package/core/src/cache/src/drivers/index.ts +2 -0
  260. package/core/src/cache/src/drivers/redis.ts +37 -0
  261. package/core/src/cache/src/index.ts +1 -0
  262. package/core/src/cache/tests/DynamoDB.test.ts +135 -0
  263. package/core/src/cache/tests/Memcached.test.ts +51 -0
  264. package/core/src/cache/tests/Redis.test.ts +84 -0
  265. package/core/src/chat/README.md +83 -0
  266. package/core/src/chat/build.ts +8 -0
  267. package/core/src/chat/dist/index.js +42 -0
  268. package/core/src/chat/package.json +73 -0
  269. package/core/src/chat/tests/example.test.ts +5 -0
  270. package/core/src/cli/README.md +168 -0
  271. package/core/src/cli/build.ts +8 -0
  272. package/core/src/cli/dist/index.js +372 -0
  273. package/core/src/cli/package.json +90 -0
  274. package/core/src/cli/src/actions/install.ts +40 -0
  275. package/core/src/cli/src/cli.ts +52 -0
  276. package/core/src/cli/src/command.ts +47 -0
  277. package/core/src/cli/src/console.ts +79 -0
  278. package/core/src/cli/src/exec.ts +89 -0
  279. package/core/src/cli/src/helpers.ts +90 -0
  280. package/core/src/cli/src/index.ts +10 -0
  281. package/core/src/cli/src/parse.ts +101 -0
  282. package/core/src/cli/src/run.ts +97 -0
  283. package/core/src/cli/src/utilities.ts +2 -0
  284. package/core/src/cli/tests/example.test.ts +5 -0
  285. package/core/src/cloud/README.md +67 -0
  286. package/core/src/cloud/build-server.ts +8 -0
  287. package/core/src/cloud/build.ts +8 -0
  288. package/core/src/cloud/cdk.json +62 -0
  289. package/core/src/cloud/deploy.ts +75 -0
  290. package/core/src/cloud/dist/origin-request.js +27 -0
  291. package/core/src/cloud/package.json +119 -0
  292. package/core/src/cloud/src/cloud/ai.ts +115 -0
  293. package/core/src/cloud/src/cloud/aws-sdk-layer/nodejs/package-lock.json +386 -0
  294. package/core/src/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +15 -0
  295. package/core/src/cloud/src/cloud/cache.ts +0 -0
  296. package/core/src/cloud/src/cloud/cdn.ts +335 -0
  297. package/core/src/cloud/src/cloud/compute.ts +79 -0
  298. package/core/src/cloud/src/cloud/dashboard.ts +85 -0
  299. package/core/src/cloud/src/cloud/database.ts +0 -0
  300. package/core/src/cloud/src/cloud/deployment.ts +41 -0
  301. package/core/src/cloud/src/cloud/dns.ts +34 -0
  302. package/core/src/cloud/src/cloud/docs.ts +51 -0
  303. package/core/src/cloud/src/cloud/email.ts +339 -0
  304. package/core/src/cloud/src/cloud/file-system.ts +35 -0
  305. package/core/src/cloud/src/cloud/index.ts +93 -0
  306. package/core/src/cloud/src/cloud/jump-box.ts +48 -0
  307. package/core/src/cloud/src/cloud/lambda/ask/index.js +35 -0
  308. package/core/src/cloud/src/cloud/lambda/summarize/index.js +35 -0
  309. package/core/src/cloud/src/cloud/network.ts +52 -0
  310. package/core/src/cloud/src/cloud/permissions.ts +33 -0
  311. package/core/src/cloud/src/cloud/queue.ts +0 -0
  312. package/core/src/cloud/src/cloud/redirects.ts +45 -0
  313. package/core/src/cloud/src/cloud/search-engine.ts +108 -0
  314. package/core/src/cloud/src/cloud/security.ts +259 -0
  315. package/core/src/cloud/src/cloud/storage.ts +168 -0
  316. package/core/src/cloud/src/edge/origin-request.ts +49 -0
  317. package/core/src/cloud/src/helpers.ts +597 -0
  318. package/core/src/cloud/src/index.ts +2 -0
  319. package/core/src/cloud/src/runtime/README.md +116 -0
  320. package/core/src/cloud/src/runtime/bootstrap +3 -0
  321. package/core/src/cloud/src/runtime/example/lambda.ts +36 -0
  322. package/core/src/cloud/src/runtime/runtime.ts +829 -0
  323. package/core/src/cloud/src/runtime/scripts/build-layer.ts +104 -0
  324. package/core/src/cloud/src/runtime/scripts/publish-layer.ts +110 -0
  325. package/core/src/cloud/src/runtime/server.ts +39 -0
  326. package/core/src/cloud/src/server/.dockerignore +15 -0
  327. package/core/src/cloud/src/server/Dockerfile +20 -0
  328. package/core/src/cloud/src/server/index.ts +39 -0
  329. package/core/src/cloud/src/server/package.json +12 -0
  330. package/core/src/cloud/src/server/runtime.ts +828 -0
  331. package/core/src/cloud/src/types.ts +28 -0
  332. package/core/src/cloud/tests/example.test.ts +5 -0
  333. package/core/src/cloud/zip.ts +8 -0
  334. package/core/src/collections/README.md +71 -0
  335. package/core/src/collections/build.ts +8 -0
  336. package/core/src/collections/dist/index.js +6 -0
  337. package/core/src/collections/package.json +57 -0
  338. package/core/src/collections/tests/example.test.ts +5 -0
  339. package/core/src/config/README.md +71 -0
  340. package/core/src/config/build.ts +8 -0
  341. package/core/src/config/dist/index.js +1670 -0
  342. package/core/src/config/package.json +55 -0
  343. package/core/src/config/src/config.ts +38 -0
  344. package/core/src/config/src/defaults.ts +460 -0
  345. package/core/src/config/src/helpers.ts +256 -0
  346. package/core/src/config/src/index.ts +2 -0
  347. package/core/src/config/src/overrides.ts +49 -0
  348. package/core/src/config/tests/example.test.ts +5 -0
  349. package/core/src/database/README.md +59 -0
  350. package/core/src/database/build.ts +8 -0
  351. package/core/src/database/dist/index.js +200 -0
  352. package/core/src/database/package.json +78 -0
  353. package/core/src/database/src/index.ts +63 -0
  354. package/core/src/database/src/kysely-bun-worker/driver.ts +143 -0
  355. package/core/src/database/src/kysely-bun-worker/index.ts +46 -0
  356. package/core/src/database/src/kysely-bun-worker/mitt.ts +24 -0
  357. package/core/src/database/src/kysely-bun-worker/type.ts +40 -0
  358. package/core/src/database/src/kysely-bun-worker/worker.ts +53 -0
  359. package/core/src/database/src/migrations/index.ts +73 -0
  360. package/core/src/database/src/seeder/index.ts +79 -0
  361. package/core/src/database/tests/example.test.ts +5 -0
  362. package/core/src/datetime/README.md +66 -0
  363. package/core/src/datetime/build.ts +8 -0
  364. package/core/src/datetime/dist/index.js +9 -0
  365. package/core/src/datetime/package.json +56 -0
  366. package/core/src/datetime/tests/example.test.ts +5 -0
  367. package/core/src/desktop/README.md +49 -0
  368. package/core/src/desktop/build.ts +8 -0
  369. package/core/src/desktop/dist/index.js +3075 -0
  370. package/core/src/desktop/package.json +84 -0
  371. package/core/src/desktop/src/index.ts +41 -0
  372. package/core/src/desktop/tests/example.test.ts +5 -0
  373. package/core/src/development/README.md +27 -0
  374. package/core/src/development/build.ts +8 -0
  375. package/core/src/development/dist/index.js +6 -0
  376. package/core/src/development/package.json +77 -0
  377. package/core/src/development/src/index.ts +0 -0
  378. package/core/src/development/tests/example.test.ts +5 -0
  379. package/core/src/dns/README.md +56 -0
  380. package/core/src/dns/build.ts +8 -0
  381. package/core/src/dns/dist/index.js +166 -0
  382. package/core/src/dns/package.json +76 -0
  383. package/core/src/dns/src/drivers/aws.ts +224 -0
  384. package/core/src/dns/src/index.ts +20 -0
  385. package/core/src/dns/tests/example.test.ts +5 -0
  386. package/core/src/docs/README.md +59 -0
  387. package/core/src/docs/build.ts +8 -0
  388. package/core/src/docs/dist/index.js +214608 -0
  389. package/core/src/docs/package.json +68 -0
  390. package/core/src/docs/src/index.ts +61 -0
  391. package/core/src/docs/src/plugins.ts +4 -0
  392. package/core/src/docs/tests/example.test.ts +5 -0
  393. package/core/src/email/README.md +155 -0
  394. package/core/src/email/build-inbound.ts +8 -0
  395. package/core/src/email/build.ts +8 -0
  396. package/core/src/email/dist/index.js +325 -0
  397. package/core/src/email/email-forwarder.cjs +406 -0
  398. package/core/src/email/email-forwarder.zip +0 -0
  399. package/core/src/email/package.json +94 -0
  400. package/core/src/email/src/drivers/emailjs.ts +23 -0
  401. package/core/src/email/src/drivers/index.ts +9 -0
  402. package/core/src/email/src/drivers/mailgun.ts +21 -0
  403. package/core/src/email/src/drivers/mailjet.ts +21 -0
  404. package/core/src/email/src/drivers/mandrill.ts +19 -0
  405. package/core/src/email/src/drivers/netcore.ts +19 -0
  406. package/core/src/email/src/drivers/nodemailer.ts +23 -0
  407. package/core/src/email/src/drivers/postmark.ts +19 -0
  408. package/core/src/email/src/drivers/sendgrid.ts +20 -0
  409. package/core/src/email/src/drivers/ses.ts +22 -0
  410. package/core/src/email/src/index.ts +1 -0
  411. package/core/src/email/src/send.ts +37 -0
  412. package/core/src/email/src/server/converter.ts +304 -0
  413. package/core/src/email/src/server/inbound.ts +389 -0
  414. package/core/src/email/src/server/outbound.ts +294 -0
  415. package/core/src/email/tests/example.test.ts +5 -0
  416. package/core/src/enums/README.md +54 -0
  417. package/core/src/enums/build.ts +8 -0
  418. package/core/src/enums/dist/index.js +98 -0
  419. package/core/src/enums/package.json +50 -0
  420. package/core/src/enums/src/index.ts +95 -0
  421. package/core/src/enums/tests/example.test.ts +5 -0
  422. package/core/src/env/README.md +71 -0
  423. package/core/src/env/build.ts +8 -0
  424. package/core/src/env/dist/index.js +221 -0
  425. package/core/src/env/package.json +55 -0
  426. package/core/src/env/src/index.ts +76 -0
  427. package/core/src/env/src/types.ts +54 -0
  428. package/core/src/env/tests/example.test.ts +5 -0
  429. package/core/src/error-handling/README.md +131 -0
  430. package/core/src/error-handling/build.ts +8 -0
  431. package/core/src/error-handling/dist/index.js +432 -0
  432. package/core/src/error-handling/package.json +62 -0
  433. package/core/src/error-handling/src/handler.ts +51 -0
  434. package/core/src/error-handling/src/index.ts +2 -0
  435. package/core/src/error-handling/tests/example.test.ts +5 -0
  436. package/core/src/eslint-config/.gitattributes +2 -0
  437. package/core/src/eslint-config/README.md +587 -0
  438. package/core/src/eslint-config/build.ts +8 -0
  439. package/core/src/eslint-config/package.json +119 -0
  440. package/core/src/eslint-config/src/configs/comments.ts +19 -0
  441. package/core/src/eslint-config/src/configs/formatters.ts +187 -0
  442. package/core/src/eslint-config/src/configs/ignores.ts +10 -0
  443. package/core/src/eslint-config/src/configs/imports.ts +37 -0
  444. package/core/src/eslint-config/src/configs/index.ts +21 -0
  445. package/core/src/eslint-config/src/configs/javascript.ts +226 -0
  446. package/core/src/eslint-config/src/configs/jsdoc.ts +42 -0
  447. package/core/src/eslint-config/src/configs/jsonc.ts +86 -0
  448. package/core/src/eslint-config/src/configs/markdown.ts +110 -0
  449. package/core/src/eslint-config/src/configs/node.ts +23 -0
  450. package/core/src/eslint-config/src/configs/perfectionist.ts +18 -0
  451. package/core/src/eslint-config/src/configs/react.ts +111 -0
  452. package/core/src/eslint-config/src/configs/sort.ts +223 -0
  453. package/core/src/eslint-config/src/configs/stylistic.ts +57 -0
  454. package/core/src/eslint-config/src/configs/svelte.ts +106 -0
  455. package/core/src/eslint-config/src/configs/test.ts +54 -0
  456. package/core/src/eslint-config/src/configs/toml.ts +72 -0
  457. package/core/src/eslint-config/src/configs/typescript.ts +156 -0
  458. package/core/src/eslint-config/src/configs/unicorn.ts +41 -0
  459. package/core/src/eslint-config/src/configs/unocss.ts +43 -0
  460. package/core/src/eslint-config/src/configs/vue.ts +169 -0
  461. package/core/src/eslint-config/src/configs/yaml.ts +72 -0
  462. package/core/src/eslint-config/src/factory.ts +260 -0
  463. package/core/src/eslint-config/src/globs.ts +92 -0
  464. package/core/src/eslint-config/src/index.ts +9 -0
  465. package/core/src/eslint-config/src/plugins.ts +10 -0
  466. package/core/src/eslint-config/src/stub.d.ts +3 -0
  467. package/core/src/eslint-config/src/types.ts +366 -0
  468. package/core/src/eslint-config/src/utils.ts +72 -0
  469. package/core/src/eslint-config/src/vendor/prettier-types.ts +136 -0
  470. package/core/src/eslint-config/test/cli.spec.ts +90 -0
  471. package/core/src/eslint-config/test/fixtures.test.ts +125 -0
  472. package/core/src/eslint-config/tsconfig.json +17 -0
  473. package/core/src/eslint-config/tsup.config.ts +8 -0
  474. package/core/src/events/README.md +76 -0
  475. package/core/src/events/build.ts +8 -0
  476. package/core/src/events/dist/index.js +63 -0
  477. package/core/src/events/package.json +52 -0
  478. package/core/src/events/src/index.ts +170 -0
  479. package/core/src/events/tests/example.test.ts +5 -0
  480. package/core/src/faker/README.md +53 -0
  481. package/core/src/faker/build.ts +8 -0
  482. package/core/src/faker/dist/index.js +6 -0
  483. package/core/src/faker/package.json +61 -0
  484. package/core/src/faker/tests/example.test.ts +5 -0
  485. package/core/src/git/README.md +65 -0
  486. package/core/src/git/build.ts +8 -0
  487. package/core/src/git/dist/index.js +6 -0
  488. package/core/src/git/package.json +68 -0
  489. package/core/src/git/src/index.ts +1 -0
  490. package/core/src/git/tests/example.test.ts +5 -0
  491. package/core/src/health/README.md +56 -0
  492. package/core/src/health/build.ts +8 -0
  493. package/core/src/health/dist/index.js +9 -0
  494. package/core/src/health/package.json +58 -0
  495. package/core/src/health/src/drivers/index.ts +1 -0
  496. package/core/src/health/src/drivers/ohdear.ts +1 -0
  497. package/core/src/health/src/index.ts +2 -0
  498. package/core/src/health/src/notifications/index.ts +1 -0
  499. package/core/src/health/tests/example.test.ts +5 -0
  500. package/core/src/http/README.md +59 -0
  501. package/core/src/http/build.ts +8 -0
  502. package/core/src/http/dist/index.js +65 -0
  503. package/core/src/http/package.json +52 -0
  504. package/core/src/http/src/index.ts +71 -0
  505. package/core/src/index.ts +57 -0
  506. package/core/src/lint/.eslintrc.json +3 -0
  507. package/core/src/lint/README.md +73 -0
  508. package/core/src/lint/build.ts +8 -0
  509. package/core/src/lint/dist/index.js +6 -0
  510. package/core/src/lint/package.json +69 -0
  511. package/core/src/lint/tests/example.test.ts +5 -0
  512. package/core/src/logging/README.md +58 -0
  513. package/core/src/logging/build.ts +8 -0
  514. package/core/src/logging/dist/index.js +1809 -0
  515. package/core/src/logging/package.json +61 -0
  516. package/core/src/logging/src/index.ts +27 -0
  517. package/core/src/logging/tests/example.test.ts +5 -0
  518. package/core/src/music/package.json +46 -0
  519. package/core/src/music/src/components/SampleComponent.stx +5 -0
  520. package/core/src/music/src/layouts/default.stx +3 -0
  521. package/core/src/music/src/pages/index.stx +10 -0
  522. package/core/src/music/src/pages/music.stx +10 -0
  523. package/core/src/music/src/styles/main.css +1 -0
  524. package/core/src/notifications/README.md +272 -0
  525. package/core/src/notifications/build.ts +8 -0
  526. package/core/src/notifications/dist/index.js +54 -0
  527. package/core/src/notifications/package.json +103 -0
  528. package/core/src/notifications/src/drivers/index.ts +4 -0
  529. package/core/src/notifications/src/index.ts +51 -0
  530. package/core/src/notifications/src/tailwind.config.ts +39 -0
  531. package/core/src/notifications/src/utils/config.ts +5 -0
  532. package/core/src/notifications/tests/chat/Slack.test.ts +34 -0
  533. package/core/src/notifications/tests/email/Mailgun.test.ts +40 -0
  534. package/core/src/notifications/tests/email/Sendgrid.test.ts +40 -0
  535. package/core/src/notifications/tests/sms/Twilio.test.ts +37 -0
  536. package/core/src/objects/README.md +71 -0
  537. package/core/src/objects/build.ts +8 -0
  538. package/core/src/objects/dist/index.js +64 -0
  539. package/core/src/objects/package.json +63 -0
  540. package/core/src/objects/src/index.ts +145 -0
  541. package/core/src/objects/tests/example.test.ts +5 -0
  542. package/core/src/orm/README.md +48 -0
  543. package/core/src/orm/build.ts +8 -0
  544. package/core/src/orm/dist/index.js +6 -0
  545. package/core/src/orm/package.json +59 -0
  546. package/core/src/orm/src/index.ts +49 -0
  547. package/core/src/orm/tests/example.test.ts +5 -0
  548. package/core/src/path/README.md +64 -0
  549. package/core/src/path/build.ts +8 -0
  550. package/core/src/path/dist/index.js +495 -0
  551. package/core/src/path/package.json +54 -0
  552. package/core/src/path/src/index.ts +529 -0
  553. package/core/src/path/tests/example.test.ts +5 -0
  554. package/core/src/payments/README.md +64 -0
  555. package/core/src/payments/build.ts +8 -0
  556. package/core/src/payments/dist/index.js +6261 -0
  557. package/core/src/payments/package.json +60 -0
  558. package/core/src/payments/src/drivers/stripe.ts +116 -0
  559. package/core/src/payments/tests/example.test.ts +5 -0
  560. package/core/src/push/README.md +71 -0
  561. package/core/src/push/build.ts +9 -0
  562. package/core/src/push/package.json +64 -0
  563. package/core/src/push/src/drivers/expo.ts +21 -0
  564. package/core/src/push/src/drivers/fcm.ts +21 -0
  565. package/core/src/push/src/drivers/index.ts +2 -0
  566. package/core/src/push/src/index.ts +1 -0
  567. package/core/src/push/tests/example.test.ts +5 -0
  568. package/core/src/query-builder/README.md +48 -0
  569. package/core/src/query-builder/build.ts +8 -0
  570. package/core/src/query-builder/dist/index.js +18 -0
  571. package/core/src/query-builder/package.json +59 -0
  572. package/core/src/query-builder/src/kysely.ts +38 -0
  573. package/core/src/query-builder/tests/example.test.ts +5 -0
  574. package/core/src/queue/README.md +59 -0
  575. package/core/src/queue/build.ts +8 -0
  576. package/core/src/queue/dist/index.js +19 -0
  577. package/core/src/queue/package.json +55 -0
  578. package/core/src/queue/src/index.ts +17 -0
  579. package/core/src/queue/tests/example.test.ts +5 -0
  580. package/core/src/realtime/README.md +59 -0
  581. package/core/src/realtime/build.ts +8 -0
  582. package/core/src/realtime/dist/index.js +6 -0
  583. package/core/src/realtime/package.json +52 -0
  584. package/core/src/realtime/src/drivers/index.ts +1 -0
  585. package/core/src/realtime/src/index.ts +1 -0
  586. package/core/src/realtime/tests/example.test.ts +5 -0
  587. package/core/src/repl/README.md +53 -0
  588. package/core/src/repl/build.ts +8 -0
  589. package/core/src/repl/dist/index.js +6 -0
  590. package/core/src/repl/package.json +59 -0
  591. package/core/src/repl/tests/example.test.ts +5 -0
  592. package/core/src/router/README.md +59 -0
  593. package/core/src/router/build.ts +8 -0
  594. package/core/src/router/dist/index.js +841 -0
  595. package/core/src/router/package.json +62 -0
  596. package/core/src/router/src/index.ts +4 -0
  597. package/core/src/router/src/middleware.ts +34 -0
  598. package/core/src/router/src/request.ts +44 -0
  599. package/core/src/router/src/router.ts +162 -0
  600. package/core/src/router/src/server.ts +154 -0
  601. package/core/src/router/tests/example.test.ts +5 -0
  602. package/core/src/scheduler/README.md +137 -0
  603. package/core/src/scheduler/build.ts +8 -0
  604. package/core/src/scheduler/dist/index.js +208 -0
  605. package/core/src/scheduler/package.json +56 -0
  606. package/core/src/scheduler/src/index.ts +321 -0
  607. package/core/src/scheduler/tests/example.test.ts +5 -0
  608. package/core/src/search-engine/README.md +66 -0
  609. package/core/src/search-engine/build.ts +8 -0
  610. package/core/src/search-engine/dist/index.js +89 -0
  611. package/core/src/search-engine/package.json +67 -0
  612. package/core/src/search-engine/src/drivers/index.ts +1 -0
  613. package/core/src/search-engine/src/drivers/meilisearch.ts +124 -0
  614. package/core/src/search-engine/src/drivers/opensearch.ts +59 -0
  615. package/core/src/search-engine/src/helpers.ts +138 -0
  616. package/core/src/search-engine/src/index.ts +69 -0
  617. package/core/src/search-engine/tests/example.test.ts +5 -0
  618. package/core/src/security/README.md +66 -0
  619. package/core/src/security/build.ts +8 -0
  620. package/core/src/security/dist/index.js +3288 -0
  621. package/core/src/security/package.json +65 -0
  622. package/core/src/security/src/crypt.ts +23 -0
  623. package/core/src/security/src/hash.ts +54 -0
  624. package/core/src/security/src/key.ts +11 -0
  625. package/core/src/security/tests/example.test.ts +5 -0
  626. package/core/src/server/README.md +51 -0
  627. package/core/src/server/build.ts +8 -0
  628. package/core/src/server/dist/index.js +48 -0
  629. package/core/src/server/package.json +67 -0
  630. package/core/src/server/src/api.ts +5 -0
  631. package/core/src/server/src/config.ts +59 -0
  632. package/core/src/server/src/index.ts +1 -0
  633. package/core/src/server/tests/example.test.ts +5 -0
  634. package/core/src/signals/README.md +105 -0
  635. package/core/src/signals/build.ts +8 -0
  636. package/core/src/signals/dist/index.js +9 -0
  637. package/core/src/signals/package.json +63 -0
  638. package/core/src/signals/tests/example.test.ts +5 -0
  639. package/core/src/slug/README.md +59 -0
  640. package/core/src/slug/build.ts +8 -0
  641. package/core/src/slug/dist/index.js +5 -0
  642. package/core/src/slug/package.json +65 -0
  643. package/core/src/slug/src/index.ts +56 -0
  644. package/core/src/slug/tests/example.test.ts +5 -0
  645. package/core/src/sms/README.md +137 -0
  646. package/core/src/sms/build.ts +9 -0
  647. package/core/src/sms/package.json +82 -0
  648. package/core/src/sms/src/drivers/index.ts +8 -0
  649. package/core/src/sms/src/index.ts +1 -0
  650. package/core/src/sms/tests/example.test.ts +5 -0
  651. package/core/src/storage/README.md +74 -0
  652. package/core/src/storage/build.ts +8 -0
  653. package/core/src/storage/dist/index.js +798 -0
  654. package/core/src/storage/package.json +77 -0
  655. package/core/src/storage/src/copy.ts +42 -0
  656. package/core/src/storage/src/delete.ts +131 -0
  657. package/core/src/storage/src/drivers/aws.ts +15 -0
  658. package/core/src/storage/src/drivers/index.ts +1 -0
  659. package/core/src/storage/src/files.ts +182 -0
  660. package/core/src/storage/src/folders.ts +51 -0
  661. package/core/src/storage/src/fs.ts +9 -0
  662. package/core/src/storage/src/glob.ts +1 -0
  663. package/core/src/storage/src/hash.ts +39 -0
  664. package/core/src/storage/src/helpers.ts +29 -0
  665. package/core/src/storage/src/index.ts +11 -0
  666. package/core/src/storage/src/move.ts +84 -0
  667. package/core/src/storage/src/storage.ts +10 -0
  668. package/core/src/storage/src/visibility.ts +6 -0
  669. package/core/src/storage/src/zip.ts +55 -0
  670. package/core/src/storage/tests/example.test.ts +5 -0
  671. package/core/src/strings/README.md +137 -0
  672. package/core/src/strings/build.ts +9 -0
  673. package/core/src/strings/dist/index.js +393 -0
  674. package/core/src/strings/package.json +81 -0
  675. package/core/src/strings/src/case.ts +27 -0
  676. package/core/src/strings/src/helpers.ts +3 -0
  677. package/core/src/strings/src/index.ts +2 -0
  678. package/core/src/strings/src/macro.ts +131 -0
  679. package/core/src/strings/src/pluralize.ts +26 -0
  680. package/core/src/strings/src/string.ts +5 -0
  681. package/core/src/strings/src/types.ts +4 -0
  682. package/core/src/strings/src/utils.ts +117 -0
  683. package/core/src/strings/tests/example.test.ts +5 -0
  684. package/core/src/tables/README.md +110 -0
  685. package/core/src/tables/examples/vue/App.stx +12 -0
  686. package/core/src/tables/examples/vue/favicon.png +0 -0
  687. package/core/src/tables/examples/vue/index.html +20 -0
  688. package/core/src/tables/examples/web/favicon.png +0 -0
  689. package/core/src/tables/examples/web/index.html +13 -0
  690. package/core/src/tables/package.json +57 -0
  691. package/core/src/tables/src/App.stx +23 -0
  692. package/core/src/tables/src/components/README.md +109 -0
  693. package/core/src/tables/src/components/Table.stx +342 -0
  694. package/core/src/tables/src/components/TableBody.stx +32 -0
  695. package/core/src/tables/src/components/TableFilters.stx +704 -0
  696. package/core/src/tables/src/components/TableHead.stx +60 -0
  697. package/core/src/tables/src/components/TablePagination.stx +131 -0
  698. package/core/src/tables/src/components/TableRow.stx +73 -0
  699. package/core/src/tables/src/components/TableSearch.stx +39 -0
  700. package/core/src/tables/src/components/Tooltip.stx +10 -0
  701. package/core/src/tables/src/components.d.ts +24 -0
  702. package/core/src/tables/src/config/tables.ts +2 -0
  703. package/core/src/tables/src/docs/index.md +0 -0
  704. package/core/src/tables/src/main.ts +4 -0
  705. package/core/src/tables/tests/example.test.ts +5 -0
  706. package/core/src/tables/vite.config.ts +84 -0
  707. package/core/src/testing/README.md +59 -0
  708. package/core/src/testing/build.ts +8 -0
  709. package/core/src/testing/dist/index.js +6 -0
  710. package/core/src/testing/package.json +62 -0
  711. package/core/src/testing/src/index.ts +3 -0
  712. package/core/src/tinker/package.json +46 -0
  713. package/core/src/tunnel/README.md +53 -0
  714. package/core/src/tunnel/build.ts +8 -0
  715. package/core/src/tunnel/dist/index.js +10 -0
  716. package/core/src/tunnel/package.json +57 -0
  717. package/core/src/tunnel/src/index.ts +6 -0
  718. package/core/src/tunnel/tests/example.test.ts +5 -0
  719. package/core/src/types/README.md +59 -0
  720. package/core/src/types/build.ts +8 -0
  721. package/core/src/types/dist/index.js +501 -0
  722. package/core/src/types/package.json +86 -0
  723. package/core/src/types/src/ai.ts +25 -0
  724. package/core/src/types/src/analytics.ts +21 -0
  725. package/core/src/types/src/api.ts +63 -0
  726. package/core/src/types/src/app.ts +172 -0
  727. package/core/src/types/src/binary.ts +12 -0
  728. package/core/src/types/src/cache.ts +98 -0
  729. package/core/src/types/src/cdn.ts +17 -0
  730. package/core/src/types/src/chat.ts +5 -0
  731. package/core/src/types/src/cli.ts +305 -0
  732. package/core/src/types/src/cloud.ts +82 -0
  733. package/core/src/types/src/components.ts +64 -0
  734. package/core/src/types/src/configure.ts +6 -0
  735. package/core/src/types/src/cron-jobs.ts +44 -0
  736. package/core/src/types/src/database.ts +45 -0
  737. package/core/src/types/src/dependencies.ts +69 -0
  738. package/core/src/types/src/deploy.ts +13 -0
  739. package/core/src/types/src/dns.ts +186 -0
  740. package/core/src/types/src/docs.ts +22 -0
  741. package/core/src/types/src/email.ts +16 -0
  742. package/core/src/types/src/env.ts +1 -0
  743. package/core/src/types/src/errors.ts +11 -0
  744. package/core/src/types/src/events.ts +30 -0
  745. package/core/src/types/src/file-systems.ts +70 -0
  746. package/core/src/types/src/git.ts +133 -0
  747. package/core/src/types/src/hashing.ts +131 -0
  748. package/core/src/types/src/helpers.ts +11 -0
  749. package/core/src/types/src/index.ts +58 -0
  750. package/core/src/types/src/layout.ts +8 -0
  751. package/core/src/types/src/library.ts +154 -0
  752. package/core/src/types/src/model.ts +72 -0
  753. package/core/src/types/src/money.ts +3 -0
  754. package/core/src/types/src/notifications.ts +147 -0
  755. package/core/src/types/src/payments.ts +65 -0
  756. package/core/src/types/src/push.ts +36 -0
  757. package/core/src/types/src/queue.ts +36 -0
  758. package/core/src/types/src/router.ts +70 -0
  759. package/core/src/types/src/scheduler.ts +1 -0
  760. package/core/src/types/src/search-engine.ts +136 -0
  761. package/core/src/types/src/security.ts +23 -0
  762. package/core/src/types/src/services.ts +44 -0
  763. package/core/src/types/src/sms.ts +5 -0
  764. package/core/src/types/src/ssg.ts +3 -0
  765. package/core/src/types/src/stacks.ts +236 -0
  766. package/core/src/types/src/storage.ts +13 -0
  767. package/core/src/types/src/team.ts +8 -0
  768. package/core/src/types/src/ui.ts +197 -0
  769. package/core/src/types/src/utils.ts +47 -0
  770. package/core/src/ui/README.md +66 -0
  771. package/core/src/ui/build.ts +8 -0
  772. package/core/src/ui/dist/components.js +68 -0
  773. package/core/src/ui/dist/index.js +69 -0
  774. package/core/src/ui/package.json +91 -0
  775. package/core/src/ui/src/components/autocomplete.ts +0 -0
  776. package/core/src/ui/src/components/disclosure.ts +5 -0
  777. package/core/src/ui/src/components/menu.ts +1 -0
  778. package/core/src/ui/src/components/modal.ts +6 -0
  779. package/core/src/ui/src/components/popover.ts +1 -0
  780. package/core/src/ui/src/components/radio-group.ts +5 -0
  781. package/core/src/ui/src/components/select.ts +6 -0
  782. package/core/src/ui/src/components/tabs.ts +1 -0
  783. package/core/src/ui/src/components/toggle.ts +1 -0
  784. package/core/src/ui/src/components/transition.ts +1 -0
  785. package/core/src/ui/src/components.ts +10 -0
  786. package/core/src/ui/src/index.ts +15 -0
  787. package/core/src/ui/src/uno.config.ts +64 -0
  788. package/core/src/ui/tests/example.test.ts +5 -0
  789. package/core/src/utils/build.ts +8 -0
  790. package/core/src/utils/dist/index.js +1276 -0
  791. package/core/src/utils/package.json +110 -0
  792. package/core/src/utils/scripts/export-size.ts +94 -0
  793. package/core/src/utils/src/base.ts +12 -0
  794. package/core/src/utils/src/clean.ts +17 -0
  795. package/core/src/utils/src/config.ts +25 -0
  796. package/core/src/utils/src/delete.ts +1 -0
  797. package/core/src/utils/src/equal.ts +27 -0
  798. package/core/src/utils/src/export-size.ts +1 -0
  799. package/core/src/utils/src/git.ts +11 -0
  800. package/core/src/utils/src/glob.ts +1 -0
  801. package/core/src/utils/src/hash.ts +17 -0
  802. package/core/src/utils/src/helpers.ts +187 -0
  803. package/core/src/utils/src/index.ts +22 -0
  804. package/core/src/utils/src/macroable.ts +1 -0
  805. package/core/src/utils/src/math.ts +30 -0
  806. package/core/src/utils/src/promise.ts +117 -0
  807. package/core/src/utils/src/regex.ts +2 -0
  808. package/core/src/utils/src/sleep.ts +60 -0
  809. package/core/src/utils/src/throttle.ts +44 -0
  810. package/core/src/utils/src/vendors.ts +258 -0
  811. package/core/src/utils/src/versions.ts +6 -0
  812. package/core/src/utils/tests/example.test.ts +5 -0
  813. package/core/src/validation/README.md +53 -0
  814. package/core/src/validation/build.ts +5 -0
  815. package/core/src/validation/dist/index.js +187 -0
  816. package/core/src/validation/package.json +63 -0
  817. package/core/src/validation/src/is.ts +111 -0
  818. package/core/src/validation/src/rules.ts +126 -0
  819. package/core/src/validation/src/types/index.ts +7 -0
  820. package/core/src/validation/src/types/money.ts +17 -0
  821. package/core/src/validation/src/validate.ts +33 -0
  822. package/core/src/validation/tests/example.test.ts +5 -0
  823. package/core/src/vite/README.md +59 -0
  824. package/core/src/vite/build.ts +9 -0
  825. package/core/src/vite/dist/index.js +649 -0
  826. package/core/src/vite/package.json +122 -0
  827. package/core/src/vite/src/api.ts +19 -0
  828. package/core/src/vite/src/components.ts +79 -0
  829. package/core/src/vite/src/desktop.ts +59 -0
  830. package/core/src/vite/src/example-vue.ts +27 -0
  831. package/core/src/vite/src/example-wc.ts +27 -0
  832. package/core/src/vite/src/functions.ts +55 -0
  833. package/core/src/vite/src/index.ts +20 -0
  834. package/core/src/vite/src/plugin/auto-imports.ts +40 -0
  835. package/core/src/vite/src/plugin/components.ts +18 -0
  836. package/core/src/vite/src/plugin/css-engine.ts +16 -0
  837. package/core/src/vite/src/plugin/devtools.ts +1 -0
  838. package/core/src/vite/src/plugin/docs.ts +16 -0
  839. package/core/src/vite/src/plugin/fonts.ts +6 -0
  840. package/core/src/vite/src/plugin/i18n.ts +13 -0
  841. package/core/src/vite/src/plugin/index.ts +21 -0
  842. package/core/src/vite/src/plugin/inspect.ts +6 -0
  843. package/core/src/vite/src/plugin/layouts.ts +21 -0
  844. package/core/src/vite/src/plugin/markdown.ts +26 -0
  845. package/core/src/vite/src/plugin/pages.ts +34 -0
  846. package/core/src/vite/src/plugin/presets.ts +17 -0
  847. package/core/src/vite/src/plugin/pwa.ts +33 -0
  848. package/core/src/vite/src/plugin/router.ts +15 -0
  849. package/core/src/vite/src/plugin/stacks.ts +149 -0
  850. package/core/src/vite/src/plugin/ui-engine.ts +19 -0
  851. package/core/src/vite/src/stacks.ts +12 -0
  852. package/core/src/vite/src/views.ts +86 -0
  853. package/core/src/vite/src/web-components.ts +67 -0
  854. package/core/src/vite/tests/example.test.ts +5 -0
  855. package/core/src/vite-plugin-vue-layouts/README.md +59 -0
  856. package/core/src/vite-plugin-vue-layouts/build.ts +8 -0
  857. package/core/src/vite-plugin-vue-layouts/client.d.ts +5 -0
  858. package/core/src/vite-plugin-vue-layouts/dist/index.js +271 -0
  859. package/core/src/vite-plugin-vue-layouts/package.json +64 -0
  860. package/core/src/vite-plugin-vue-layouts/src/RouteLayout.ts +26 -0
  861. package/core/src/vite-plugin-vue-layouts/src/clientSide.ts +99 -0
  862. package/core/src/vite-plugin-vue-layouts/src/files.ts +24 -0
  863. package/core/src/vite-plugin-vue-layouts/src/importCode.ts +32 -0
  864. package/core/src/vite-plugin-vue-layouts/src/index.ts +150 -0
  865. package/core/src/vite-plugin-vue-layouts/src/types.ts +53 -0
  866. package/core/src/vite-plugin-vue-layouts/src/utils.ts +15 -0
  867. package/core/src/vite-plugin-vue-layouts/tests/example.test.ts +5 -0
  868. package/core/src/whois/README.md +55 -0
  869. package/core/src/whois/build.ts +8 -0
  870. package/core/src/whois/dist/index.js +601 -0
  871. package/core/src/whois/package.json +60 -0
  872. package/core/src/whois/src/index.ts +497 -0
  873. package/core/src/whois/src/parameters.ts +4 -0
  874. package/core/src/whois/src/servers.ts +318 -0
  875. package/core/src/whois/src/test.ts +5 -0
  876. package/core/src/whois/tests/example.test.ts +5 -0
  877. package/core/src/x-ray/README.md +55 -0
  878. package/core/src/x-ray/package.json +53 -0
  879. package/core/src/x-ray/src/client.ts +14 -0
  880. package/core/src/x-ray/src/desktop/api/nitro.config.ts +19 -0
  881. package/core/src/x-ray/src/desktop/api/storage/index.ts +7 -0
  882. package/core/src/x-ray/src/desktop/app.stx +377 -0
  883. package/core/src/x-ray/src/desktop/functions/http.ts +26 -0
  884. package/core/src/x-ray/src/desktop/main.ts +14 -0
  885. package/core/src/x-ray/src/desktop/plugins/unified/unified-styles.scss +0 -0
  886. package/core/src/x-ray/src/desktop/styles/app.scss +0 -0
  887. package/core/src/x-ray/src/http.ts +26 -0
  888. package/core/src/x-ray/src/index.ts +42 -0
  889. package/core/src/x-ray/tests/example.test.ts +5 -0
  890. package/core/tsconfig.json +73 -0
  891. package/core/web-types.json +67 -0
  892. package/ide/dictionary.txt +306 -0
  893. package/ide/jetbrains/.idea/jsLinters/eslint.xml +1 -1
  894. package/ide/jetbrains/.idea/stacks.iml +56 -56
  895. package/ide/jetbrains/options/nodejs.xml +3 -3
  896. package/ide/vscode/.vscode/settings.json +55 -51
  897. package/ide/vscode/LICENSE.md +1 -1
  898. package/ide/vscode/README.md +1 -2
  899. package/ide/vscode/package.json +10 -9
  900. package/package.json +477 -201
  901. package/stubs/.gitkeep +0 -0
  902. package/stubs/TODO.md +18 -0
  903. package/vcs/github/CODE_OF_CONDUCT.md +1 -1
  904. package/vcs/github/CONTRIBUTING.md +6 -8
  905. package/vcs/github/EXPLANATIONS.md +2 -2
  906. package/vcs/github/ISSUE_TEMPLATE/bug_report.yml +1 -14
  907. package/vcs/github/ISSUE_TEMPLATE/config.yml +1 -1
  908. package/vcs/github/SECURITY.md +1 -1
  909. package/vcs/github/workflows/README.md +1 -1
  910. package/vcs/github/workflows/ci.yml +26 -47
  911. package/vcs/github/workflows/export-size.yml +5 -14
  912. package/vcs/github/workflows/labeler.yml +13 -0
  913. package/vcs/github/workflows/release.yml +21 -21
  914. package/.gitignore +0 -18
  915. package/README.md +0 -416
  916. package/api/nitro.config.ts +0 -17
  917. package/api/package.json +0 -43
  918. package/api/routes/index.ts +0 -1
  919. package/art/logo-dark.svg +0 -11
  920. package/art/logo.svg +0 -11
  921. package/auto-imports.d.ts +0 -2572
  922. package/components.d.ts +0 -19
  923. package/core/actions/README.md +0 -58
  924. package/core/actions/build.config.ts +0 -187
  925. package/core/actions/package.json +0 -276
  926. package/core/actions/src/add.ts +0 -32
  927. package/core/actions/src/build/component-libs.ts +0 -5
  928. package/core/actions/src/build/core.ts +0 -6
  929. package/core/actions/src/build/stacks.ts +0 -9
  930. package/core/actions/src/build.ts +0 -93
  931. package/core/actions/src/bump.ts +0 -7
  932. package/core/actions/src/changelog.ts +0 -7
  933. package/core/actions/src/clean.ts +0 -12
  934. package/core/actions/src/commit.ts +0 -19
  935. package/core/actions/src/copy-types.ts +0 -22
  936. package/core/actions/src/deploy/domains.ts +0 -8
  937. package/core/actions/src/deploy.ts +0 -8
  938. package/core/actions/src/dev/components.ts +0 -5
  939. package/core/actions/src/dev/docs.ts +0 -5
  940. package/core/actions/src/dev/index.ts +0 -25
  941. package/core/actions/src/examples.ts +0 -48
  942. package/core/actions/src/fresh.ts +0 -7
  943. package/core/actions/src/generate/component-meta.ts +0 -15
  944. package/core/actions/src/generate/ide-helpers.ts +0 -20
  945. package/core/actions/src/generate/index.ts +0 -134
  946. package/core/actions/src/generate/lib-entries.ts +0 -17
  947. package/core/actions/src/generate/settings.ts +0 -4
  948. package/core/actions/src/generate/vscode-custom-data.ts +0 -16
  949. package/core/actions/src/generate/vue-compat.ts +0 -10
  950. package/core/actions/src/helpers/component-meta.ts +0 -93
  951. package/core/actions/src/helpers/index.ts +0 -6
  952. package/core/actions/src/helpers/lib-entries.ts +0 -138
  953. package/core/actions/src/helpers/package-json.ts +0 -96
  954. package/core/actions/src/helpers/utils.ts +0 -76
  955. package/core/actions/src/helpers/vscode-custom-data.ts +0 -28
  956. package/core/actions/src/helpers/vue-compat.ts +0 -17
  957. package/core/actions/src/index.ts +0 -1
  958. package/core/actions/src/key-generate.ts +0 -10
  959. package/core/actions/src/lint/fix.ts +0 -5
  960. package/core/actions/src/lint/index.ts +0 -17
  961. package/core/actions/src/make.ts +0 -328
  962. package/core/actions/src/migrate.ts +0 -3
  963. package/core/actions/src/preinstall.ts +0 -27
  964. package/core/actions/src/prepublish.ts +0 -16
  965. package/core/actions/src/release.ts +0 -15
  966. package/core/actions/src/seed.ts +0 -3
  967. package/core/actions/src/test/coverage.ts +0 -5
  968. package/core/actions/src/test/feature.ts +0 -5
  969. package/core/actions/src/test/ui.ts +0 -5
  970. package/core/actions/src/test/unit.ts +0 -5
  971. package/core/actions/src/test.ts +0 -5
  972. package/core/actions/src/tinker.ts +0 -10
  973. package/core/actions/src/typecheck.ts +0 -5
  974. package/core/actions/src/types.ts +0 -23
  975. package/core/actions/src/upgrade/framework.ts +0 -29
  976. package/core/actions/src/upgrade/index.ts +0 -25
  977. package/core/actions/src/upgrade/node.ts +0 -4
  978. package/core/actions/src/upgrade/package-manager.ts +0 -4
  979. package/core/actions/src/upgrade.ts +0 -75
  980. package/core/actions/tests/example.test.ts +0 -7
  981. package/core/ai/README.md +0 -62
  982. package/core/ai/build.config.ts +0 -13
  983. package/core/ai/package.json +0 -54
  984. package/core/ai/src/drivers/openai.ts +0 -1
  985. package/core/ai/tests/example.test.ts +0 -7
  986. package/core/alias/README.md +0 -62
  987. package/core/alias/build.config.ts +0 -13
  988. package/core/alias/package.json +0 -51
  989. package/core/alias/src/index.ts +0 -108
  990. package/core/alias/tests/example.test.ts +0 -7
  991. package/core/analytics/README.md +0 -62
  992. package/core/analytics/build.config.ts +0 -13
  993. package/core/analytics/package.json +0 -64
  994. package/core/analytics/src/drivers/fathom.ts +0 -1
  995. package/core/analytics/tests/example.test.ts +0 -7
  996. package/core/arrays/README.md +0 -59
  997. package/core/arrays/build.config.ts +0 -12
  998. package/core/arrays/package.json +0 -60
  999. package/core/arrays/src/contains.ts +0 -23
  1000. package/core/arrays/src/helpers.ts +0 -206
  1001. package/core/arrays/src/index.ts +0 -4
  1002. package/core/arrays/src/macro.ts +0 -135
  1003. package/core/arrays/src/math.ts +0 -19
  1004. package/core/arrays/tests/example.test.ts +0 -7
  1005. package/core/auth/README.md +0 -59
  1006. package/core/auth/build.config.ts +0 -12
  1007. package/core/auth/package.json +0 -48
  1008. package/core/auth/tests/example.test.ts +0 -7
  1009. package/core/buddy/README.md +0 -416
  1010. package/core/buddy/art/social.png +0 -0
  1011. package/core/buddy/build.config.ts +0 -14
  1012. package/core/buddy/package.json +0 -128
  1013. package/core/buddy/src/cli.ts +0 -65
  1014. package/core/buddy/src/commands/add.ts +0 -62
  1015. package/core/buddy/src/commands/build.ts +0 -149
  1016. package/core/buddy/src/commands/changelog.ts +0 -31
  1017. package/core/buddy/src/commands/clean.ts +0 -29
  1018. package/core/buddy/src/commands/commit.ts +0 -18
  1019. package/core/buddy/src/commands/create.ts +0 -126
  1020. package/core/buddy/src/commands/deploy.ts +0 -29
  1021. package/core/buddy/src/commands/dev.ts +0 -142
  1022. package/core/buddy/src/commands/example.ts +0 -59
  1023. package/core/buddy/src/commands/fresh.ts +0 -29
  1024. package/core/buddy/src/commands/generate.ts +0 -118
  1025. package/core/buddy/src/commands/index.ts +0 -27
  1026. package/core/buddy/src/commands/inspire.ts +0 -24
  1027. package/core/buddy/src/commands/key.ts +0 -28
  1028. package/core/buddy/src/commands/lint.ts +0 -45
  1029. package/core/buddy/src/commands/make.ts +0 -257
  1030. package/core/buddy/src/commands/migrate.ts +0 -31
  1031. package/core/buddy/src/commands/onboarding.ts +0 -22
  1032. package/core/buddy/src/commands/preinstall.ts +0 -18
  1033. package/core/buddy/src/commands/prepublish.ts +0 -19
  1034. package/core/buddy/src/commands/release.ts +0 -28
  1035. package/core/buddy/src/commands/seed.ts +0 -31
  1036. package/core/buddy/src/commands/setting.ts +0 -26
  1037. package/core/buddy/src/commands/setup.ts +0 -26
  1038. package/core/buddy/src/commands/test.ts +0 -118
  1039. package/core/buddy/src/commands/tinker.ts +0 -29
  1040. package/core/buddy/src/commands/types.ts +0 -26
  1041. package/core/buddy/src/commands/upgrade.ts +0 -134
  1042. package/core/buddy/src/commands/version.ts +0 -28
  1043. package/core/build/README.md +0 -59
  1044. package/core/build/build.config.ts +0 -27
  1045. package/core/build/package.json +0 -77
  1046. package/core/build/src/desktop.ts +0 -152
  1047. package/core/build/src/example-vue.ts +0 -25
  1048. package/core/build/src/example-wc.ts +0 -25
  1049. package/core/build/src/functions.ts +0 -54
  1050. package/core/build/src/index.ts +0 -7
  1051. package/core/build/src/stacks.ts +0 -200
  1052. package/core/build/src/views.ts +0 -50
  1053. package/core/build/src/vue-components.ts +0 -137
  1054. package/core/build/src/web-components.ts +0 -62
  1055. package/core/build/tests/example.test.ts +0 -7
  1056. package/core/build/web-types.ts +0 -14
  1057. package/core/cache/README.md +0 -59
  1058. package/core/cache/build.config.ts +0 -15
  1059. package/core/cache/package.json +0 -77
  1060. package/core/cache/src/drivers/memcached.ts +0 -21
  1061. package/core/cache/src/drivers/redis.ts +0 -44
  1062. package/core/cache/src/drivers/upstash.ts +0 -2
  1063. package/core/cache/src/index.ts +0 -4
  1064. package/core/cache/tests/DynamoDB.test.ts +0 -135
  1065. package/core/cache/tests/Memcached.test.ts +0 -52
  1066. package/core/cache/tests/Redis.test.ts +0 -82
  1067. package/core/cache/vite.config.ts +0 -7
  1068. package/core/chat/README.md +0 -83
  1069. package/core/chat/build.config.ts +0 -13
  1070. package/core/chat/package.json +0 -60
  1071. package/core/chat/tests/example.test.ts +0 -7
  1072. package/core/cli/README.md +0 -129
  1073. package/core/cli/build.config.ts +0 -12
  1074. package/core/cli/package.json +0 -71
  1075. package/core/cli/src/actions/install.ts +0 -40
  1076. package/core/cli/src/command.ts +0 -2
  1077. package/core/cli/src/console.ts +0 -78
  1078. package/core/cli/src/helpers.ts +0 -74
  1079. package/core/cli/src/index.ts +0 -10
  1080. package/core/cli/src/parse.ts +0 -99
  1081. package/core/cli/src/run.ts +0 -100
  1082. package/core/cli/src/utilities.ts +0 -1
  1083. package/core/cli/tests/example.test.ts +0 -7
  1084. package/core/cloud/README.md +0 -59
  1085. package/core/cloud/build.config.ts +0 -12
  1086. package/core/cloud/netlify.toml +0 -18
  1087. package/core/cloud/package.json +0 -66
  1088. package/core/cloud/src/aws/index.ts +0 -9
  1089. package/core/cloud/src/aws/logger.ts +0 -8
  1090. package/core/cloud/src/aws/metrics.ts +0 -8
  1091. package/core/cloud/src/aws/stack.ts +0 -12
  1092. package/core/cloud/src/aws/tracer.ts +0 -3
  1093. package/core/cloud/src/index.ts +0 -1
  1094. package/core/cloud/src/runtime/nodejs/bootstrap.ts +0 -16
  1095. package/core/cloud/src/runtime/nodejs/build.sh +0 -1
  1096. package/core/cloud/tests/example.test.ts +0 -7
  1097. package/core/collections/README.md +0 -71
  1098. package/core/collections/build.config.ts +0 -11
  1099. package/core/collections/package.json +0 -55
  1100. package/core/collections/tests/example.test.ts +0 -7
  1101. package/core/config/README.md +0 -71
  1102. package/core/config/build.config.ts +0 -46
  1103. package/core/config/package.json +0 -54
  1104. package/core/config/src/defaults.ts +0 -17
  1105. package/core/config/src/index.ts +0 -4
  1106. package/core/config/src/stacks.ts +0 -48
  1107. package/core/config/tests/example.test.ts +0 -7
  1108. package/core/database/README.md +0 -59
  1109. package/core/database/build.config.ts +0 -16
  1110. package/core/database/package.json +0 -64
  1111. package/core/database/src/factory/index.ts +0 -24
  1112. package/core/database/src/index.ts +0 -3
  1113. package/core/database/src/migrations/index.ts +0 -148
  1114. package/core/database/src/seeder/index.ts +0 -79
  1115. package/core/database/tests/example.test.ts +0 -7
  1116. package/core/datetime/README.md +0 -66
  1117. package/core/datetime/build.config.ts +0 -12
  1118. package/core/datetime/package.json +0 -54
  1119. package/core/datetime/tests/example.test.ts +0 -7
  1120. package/core/desktop/README.md +0 -49
  1121. package/core/desktop/build.config.ts +0 -16
  1122. package/core/desktop/package.json +0 -68
  1123. package/core/desktop/src/drivers/tauri/index.ts +0 -1
  1124. package/core/desktop/src/index.ts +0 -1
  1125. package/core/desktop/tests/example.test.ts +0 -7
  1126. package/core/development/README.md +0 -27
  1127. package/core/development/build.config.ts +0 -25
  1128. package/core/development/package.json +0 -68
  1129. package/core/development/src/index.ts +0 -4
  1130. package/core/development/tests/example.test.ts +0 -7
  1131. package/core/dns/README.md +0 -56
  1132. package/core/dns/build.config.ts +0 -18
  1133. package/core/dns/package.json +0 -55
  1134. package/core/dns/src/index.ts +0 -18
  1135. package/core/dns/tests/example.test.ts +0 -7
  1136. package/core/docs/README.md +0 -59
  1137. package/core/docs/build.config.ts +0 -15
  1138. package/core/docs/package.json +0 -54
  1139. package/core/docs/src/index.ts +0 -5
  1140. package/core/docs/tests/example.test.ts +0 -7
  1141. package/core/email/README.md +0 -155
  1142. package/core/email/build.config.ts +0 -12
  1143. package/core/email/package.json +0 -82
  1144. package/core/email/src/actions/send.ts +0 -38
  1145. package/core/email/src/drivers/emailjs.ts +0 -23
  1146. package/core/email/src/drivers/mailgun.ts +0 -21
  1147. package/core/email/src/drivers/mailjet.ts +0 -21
  1148. package/core/email/src/drivers/mandrill.ts +0 -19
  1149. package/core/email/src/drivers/netcore.ts +0 -19
  1150. package/core/email/src/drivers/nodemailer.ts +0 -23
  1151. package/core/email/src/drivers/postmark.ts +0 -19
  1152. package/core/email/src/drivers/sendgrid.ts +0 -20
  1153. package/core/email/src/drivers/ses.ts +0 -22
  1154. package/core/email/src/index.ts +0 -9
  1155. package/core/email/tests/example.test.ts +0 -7
  1156. package/core/error-handling/README.md +0 -131
  1157. package/core/error-handling/build.config.ts +0 -19
  1158. package/core/error-handling/package.json +0 -58
  1159. package/core/error-handling/src/index.ts +0 -58
  1160. package/core/error-handling/tests/example.test.ts +0 -7
  1161. package/core/events/README.md +0 -76
  1162. package/core/events/build.config.ts +0 -12
  1163. package/core/events/package.json +0 -53
  1164. package/core/events/src/index.ts +0 -38
  1165. package/core/events/tests/example.test.ts +0 -7
  1166. package/core/faker/README.md +0 -62
  1167. package/core/faker/build.config.ts +0 -17
  1168. package/core/faker/package.json +0 -55
  1169. package/core/faker/tests/example.test.ts +0 -7
  1170. package/core/git/README.md +0 -69
  1171. package/core/git/build.config.ts +0 -17
  1172. package/core/git/package.json +0 -58
  1173. package/core/git/src/index.ts +0 -1
  1174. package/core/git/tests/example.test.ts +0 -7
  1175. package/core/health/README.md +0 -56
  1176. package/core/health/build.config.ts +0 -17
  1177. package/core/health/package.json +0 -53
  1178. package/core/health/src/drivers/ohdear.ts +0 -1
  1179. package/core/health/src/index.ts +0 -1
  1180. package/core/health/src/notifications/index.ts +0 -1
  1181. package/core/health/tests/example.test.ts +0 -7
  1182. package/core/lint/README.md +0 -73
  1183. package/core/lint/build.config.ts +0 -17
  1184. package/core/lint/package.json +0 -58
  1185. package/core/lint/tests/example.test.ts +0 -7
  1186. package/core/logging/README.md +0 -58
  1187. package/core/logging/build.config.ts +0 -26
  1188. package/core/logging/package.json +0 -61
  1189. package/core/logging/src/index.ts +0 -11
  1190. package/core/logging/tests/example.test.ts +0 -7
  1191. package/core/modules/README.md +0 -51
  1192. package/core/modules/build.config.ts +0 -18
  1193. package/core/modules/package.json +0 -61
  1194. package/core/modules/src/i18n.ts +0 -23
  1195. package/core/modules/src/nprogress.ts +0 -14
  1196. package/core/modules/src/pwa.ts +0 -12
  1197. package/core/modules/tests/example.test.ts +0 -7
  1198. package/core/notifications/README.md +0 -272
  1199. package/core/notifications/build.config.ts +0 -16
  1200. package/core/notifications/package.json +0 -93
  1201. package/core/notifications/src/index.ts +0 -51
  1202. package/core/notifications/src/tailwind.config.ts +0 -39
  1203. package/core/notifications/src/utils/config.ts +0 -5
  1204. package/core/notifications/tests/chat/Slack.test.ts +0 -35
  1205. package/core/notifications/tests/email/Mailgun.test.ts +0 -41
  1206. package/core/notifications/tests/email/Sendgrid.test.ts +0 -41
  1207. package/core/notifications/tests/sms/Twilio.test.ts +0 -38
  1208. package/core/objects/README.md +0 -71
  1209. package/core/objects/build.config.ts +0 -19
  1210. package/core/objects/package.json +0 -55
  1211. package/core/objects/src/index.ts +0 -147
  1212. package/core/objects/tests/example.test.ts +0 -7
  1213. package/core/orm/README.md +0 -48
  1214. package/core/orm/build.config.ts +0 -12
  1215. package/core/orm/package.json +0 -52
  1216. package/core/orm/src/index.ts +0 -43
  1217. package/core/orm/tests/example.test.ts +0 -7
  1218. package/core/pages/build.config.ts +0 -12
  1219. package/core/pages/package.json +0 -57
  1220. package/core/pages/src/index.ts +0 -39
  1221. package/core/pages/tests/example.test.ts +0 -7
  1222. package/core/path/README.md +0 -64
  1223. package/core/path/build.config.ts +0 -16
  1224. package/core/path/package.json +0 -55
  1225. package/core/path/src/index.ts +0 -486
  1226. package/core/path/tests/example.test.ts +0 -7
  1227. package/core/payments/README.md +0 -64
  1228. package/core/payments/build.config.ts +0 -12
  1229. package/core/payments/package.json +0 -58
  1230. package/core/payments/src/drivers/stripe.ts +0 -137
  1231. package/core/payments/tests/example.test.ts +0 -7
  1232. package/core/push/README.md +0 -71
  1233. package/core/push/build.config.ts +0 -12
  1234. package/core/push/package.json +0 -56
  1235. package/core/push/src/drivers/expo.ts +0 -21
  1236. package/core/push/src/drivers/fcm.ts +0 -21
  1237. package/core/push/src/index.ts +0 -2
  1238. package/core/push/tests/example.test.ts +0 -7
  1239. package/core/query-builder/README.md +0 -48
  1240. package/core/query-builder/build.config.ts +0 -12
  1241. package/core/query-builder/package.json +0 -56
  1242. package/core/query-builder/src/kysely.ts +0 -37
  1243. package/core/query-builder/tests/example.test.ts +0 -7
  1244. package/core/queue/README.md +0 -59
  1245. package/core/queue/build.config.ts +0 -12
  1246. package/core/queue/package.json +0 -53
  1247. package/core/queue/src/index.ts +0 -1
  1248. package/core/queue/tests/example.test.ts +0 -7
  1249. package/core/realtime/README.md +0 -59
  1250. package/core/realtime/build.config.ts +0 -12
  1251. package/core/realtime/package.json +0 -50
  1252. package/core/realtime/src/drivers/index.ts +0 -3
  1253. package/core/realtime/src/index.ts +0 -5
  1254. package/core/realtime/tests/example.test.ts +0 -7
  1255. package/core/repl/README.md +0 -53
  1256. package/core/repl/build.config.ts +0 -12
  1257. package/core/repl/package.json +0 -56
  1258. package/core/repl/tests/example.test.ts +0 -7
  1259. package/core/router/README.md +0 -59
  1260. package/core/router/build.config.ts +0 -17
  1261. package/core/router/package.json +0 -53
  1262. package/core/router/src/index.ts +0 -120
  1263. package/core/router/tests/example.test.ts +0 -7
  1264. package/core/scheduler/README.md +0 -137
  1265. package/core/scheduler/build.config.ts +0 -12
  1266. package/core/scheduler/package.json +0 -51
  1267. package/core/scheduler/src/index.ts +0 -120
  1268. package/core/scheduler/tests/example.test.ts +0 -7
  1269. package/core/search-engine/README.md +0 -66
  1270. package/core/search-engine/build.config.ts +0 -20
  1271. package/core/search-engine/package.json +0 -65
  1272. package/core/search-engine/src/drivers/meilisearch.ts +0 -39
  1273. package/core/search-engine/src/helpers.ts +0 -134
  1274. package/core/search-engine/src/index.ts +0 -67
  1275. package/core/search-engine/tests/example.test.ts +0 -7
  1276. package/core/security/README.md +0 -66
  1277. package/core/security/build.config.ts +0 -21
  1278. package/core/security/package.json +0 -57
  1279. package/core/security/src/crypt.ts +0 -23
  1280. package/core/security/src/hash.ts +0 -52
  1281. package/core/security/src/key.ts +0 -11
  1282. package/core/security/tests/example.test.ts +0 -7
  1283. package/core/server/README.md +0 -51
  1284. package/core/server/build.config.ts +0 -11
  1285. package/core/server/package.json +0 -59
  1286. package/core/server/src/config.ts +0 -7
  1287. package/core/server/src/index.ts +0 -2
  1288. package/core/server/src/nitro.config.ts +0 -7
  1289. package/core/server/tests/example.test.ts +0 -7
  1290. package/core/signals/README.md +0 -105
  1291. package/core/signals/build.config.ts +0 -12
  1292. package/core/signals/package.json +0 -55
  1293. package/core/signals/tests/example.test.ts +0 -7
  1294. package/core/slug/README.md +0 -59
  1295. package/core/slug/build.config.ts +0 -12
  1296. package/core/slug/package.json +0 -55
  1297. package/core/slug/src/index.ts +0 -57
  1298. package/core/slug/tests/example.test.ts +0 -7
  1299. package/core/sms/README.md +0 -137
  1300. package/core/sms/build.config.ts +0 -17
  1301. package/core/sms/package.json +0 -72
  1302. package/core/sms/src/index.ts +0 -8
  1303. package/core/sms/tests/example.test.ts +0 -7
  1304. package/core/storage/README.md +0 -74
  1305. package/core/storage/build.config.ts +0 -12
  1306. package/core/storage/package.json +0 -61
  1307. package/core/storage/src/index.ts +0 -208
  1308. package/core/storage/tests/example.test.ts +0 -7
  1309. package/core/strings/README.md +0 -77
  1310. package/core/strings/build.config.ts +0 -12
  1311. package/core/strings/package.json +0 -78
  1312. package/core/strings/src/case.ts +0 -27
  1313. package/core/strings/src/index.ts +0 -4
  1314. package/core/strings/src/macro.ts +0 -139
  1315. package/core/strings/src/pluralize.ts +0 -5
  1316. package/core/strings/src/utils.ts +0 -120
  1317. package/core/strings/tests/example.test.ts +0 -7
  1318. package/core/testing/README.md +0 -59
  1319. package/core/testing/build.config.ts +0 -17
  1320. package/core/testing/package.json +0 -62
  1321. package/core/testing/src/index.ts +0 -3
  1322. package/core/tinker/README.md +0 -61
  1323. package/core/tinker/build.config.ts +0 -13
  1324. package/core/tinker/package.json +0 -58
  1325. package/core/tinker/src/index.ts +0 -1
  1326. package/core/tinker/src/tinker.ts +0 -2
  1327. package/core/types/README.md +0 -59
  1328. package/core/types/build.config.ts +0 -37
  1329. package/core/types/package.json +0 -88
  1330. package/core/types/src/app.ts +0 -119
  1331. package/core/types/src/cache.ts +0 -78
  1332. package/core/types/src/cdn.ts +0 -15
  1333. package/core/types/src/cli.ts +0 -303
  1334. package/core/types/src/components.ts +0 -64
  1335. package/core/types/src/cron-jobs.ts +0 -38
  1336. package/core/types/src/database.ts +0 -49
  1337. package/core/types/src/debug.ts +0 -6
  1338. package/core/types/src/deploy.ts +0 -8
  1339. package/core/types/src/dns.ts +0 -49
  1340. package/core/types/src/docs.ts +0 -5
  1341. package/core/types/src/errors.ts +0 -24
  1342. package/core/types/src/events.ts +0 -30
  1343. package/core/types/src/fs.ts +0 -30
  1344. package/core/types/src/git.ts +0 -131
  1345. package/core/types/src/hashing.ts +0 -122
  1346. package/core/types/src/index.ts +0 -40
  1347. package/core/types/src/layout.ts +0 -8
  1348. package/core/types/src/library.ts +0 -146
  1349. package/core/types/src/model.ts +0 -59
  1350. package/core/types/src/money.ts +0 -3
  1351. package/core/types/src/notifications.ts +0 -205
  1352. package/core/types/src/payments.ts +0 -63
  1353. package/core/types/src/queue.ts +0 -34
  1354. package/core/types/src/router.ts +0 -52
  1355. package/core/types/src/search-engine.ts +0 -166
  1356. package/core/types/src/ssg.ts +0 -3
  1357. package/core/types/src/stacks.ts +0 -192
  1358. package/core/types/src/ui.ts +0 -193
  1359. package/core/types/src/utils.ts +0 -43
  1360. package/core/ui/README.md +0 -66
  1361. package/core/ui/build.config.ts +0 -13
  1362. package/core/ui/package.json +0 -69
  1363. package/core/ui/src/index.ts +0 -20
  1364. package/core/ui/src/unocss.config.ts +0 -47
  1365. package/core/ui/src/unocss.ts +0 -45
  1366. package/core/ui/tests/example.test.ts +0 -7
  1367. package/core/utils/build.config.ts +0 -36
  1368. package/core/utils/package.json +0 -102
  1369. package/core/utils/src/base.ts +0 -25
  1370. package/core/utils/src/config.ts +0 -135
  1371. package/core/utils/src/delete.ts +0 -1
  1372. package/core/utils/src/equal.ts +0 -27
  1373. package/core/utils/src/helpers.ts +0 -169
  1374. package/core/utils/src/index.ts +0 -15
  1375. package/core/utils/src/math.ts +0 -30
  1376. package/core/utils/src/promise.ts +0 -124
  1377. package/core/utils/src/throttle.ts +0 -42
  1378. package/core/utils/src/vendors.ts +0 -222
  1379. package/core/utils/src/versions.ts +0 -1
  1380. package/core/utils/tests/example.test.ts +0 -7
  1381. package/core/validation/README.md +0 -53
  1382. package/core/validation/build.config.ts +0 -21
  1383. package/core/validation/package.json +0 -56
  1384. package/core/validation/src/is.ts +0 -110
  1385. package/core/validation/src/rules.ts +0 -126
  1386. package/core/validation/src/types/env.ts +0 -147
  1387. package/core/validation/src/types/index.ts +0 -2
  1388. package/core/validation/src/types/money.ts +0 -17
  1389. package/core/validation/src/validate.ts +0 -18
  1390. package/core/validation/tests/example.test.ts +0 -7
  1391. package/core/vite-plugin/README.md +0 -59
  1392. package/core/vite-plugin/build.config.ts +0 -17
  1393. package/core/vite-plugin/package.json +0 -51
  1394. package/core/vite-plugin/src/index.ts +0 -23
  1395. package/core/vite-plugin/tests/example.test.ts +0 -7
  1396. package/dictionary.txt +0 -228
  1397. package/docs/.vitepress/config.ts +0 -9
  1398. package/docs/README.md +0 -13
  1399. package/docs/package.json +0 -47
  1400. package/env.d.ts +0 -7
  1401. package/ide/jetbrains/.idea/.gitignore +0 -5
  1402. package/libs/components/vue/index.html +0 -13
  1403. package/libs/components/vue/main.ts +0 -19
  1404. package/libs/components/vue/package.json +0 -41
  1405. package/libs/components/web/package.json +0 -41
  1406. package/libs/examples/vue/App.vue +0 -12
  1407. package/libs/examples/vue/favicon.png +0 -0
  1408. package/libs/examples/vue/index.html +0 -20
  1409. package/libs/examples/web/favicon.png +0 -0
  1410. package/libs/examples/web/index.html +0 -13
  1411. package/libs/functions/package.json +0 -41
  1412. package/reset.d.ts +0 -1
  1413. package/scripts/ensure.sh +0 -33
  1414. package/scripts/publish.sh +0 -18
  1415. package/scripts/setup.sh +0 -540
  1416. package/shims.d.ts +0 -17
  1417. package/simple-git-hooks.cjs +0 -5
  1418. package/stacks/dashboard/README.md +0 -74
  1419. package/stacks/dashboard/build.config.ts +0 -15
  1420. package/stacks/dashboard/package.json +0 -47
  1421. package/stacks/dashboard/tests/example.test.ts +0 -7
  1422. package/stacks/tables/README.md +0 -109
  1423. package/stacks/tables/build.config.ts +0 -14
  1424. package/stacks/tables/examples/vue/App.vue +0 -12
  1425. package/stacks/tables/examples/vue/favicon.png +0 -0
  1426. package/stacks/tables/examples/vue/index.html +0 -20
  1427. package/stacks/tables/examples/web/favicon.png +0 -0
  1428. package/stacks/tables/examples/web/index.html +0 -13
  1429. package/stacks/tables/package.json +0 -57
  1430. package/stacks/tables/src/App.vue +0 -23
  1431. package/stacks/tables/src/cli/index.ts +0 -1
  1432. package/stacks/tables/src/components/README.md +0 -110
  1433. package/stacks/tables/src/components/Table.vue +0 -342
  1434. package/stacks/tables/src/components/TableBody.vue +0 -32
  1435. package/stacks/tables/src/components/TableFilters.vue +0 -704
  1436. package/stacks/tables/src/components/TableHead.vue +0 -60
  1437. package/stacks/tables/src/components/TablePagination.vue +0 -131
  1438. package/stacks/tables/src/components/TableRow.vue +0 -73
  1439. package/stacks/tables/src/components/TableSearch.vue +0 -39
  1440. package/stacks/tables/src/components/Tooltip.vue +0 -10
  1441. package/stacks/tables/src/config/tables.ts +0 -1
  1442. package/stacks/tables/src/main.ts +0 -4
  1443. package/stacks/tables/tests/example.test.ts +0 -7
  1444. package/stacks/tables/vite.config.ts +0 -26
  1445. package/stacks/tinker/package.json +0 -49
  1446. package/stacks/tinker/src/index.ts +0 -1
  1447. package/stacks/x-ray/README.md +0 -55
  1448. package/stacks/x-ray/build.config.ts +0 -15
  1449. package/stacks/x-ray/package.json +0 -56
  1450. package/stacks/x-ray/src/client.ts +0 -14
  1451. package/stacks/x-ray/src/desktop/api/nitro.config.ts +0 -19
  1452. package/stacks/x-ray/src/desktop/api/storage/index.ts +0 -7
  1453. package/stacks/x-ray/src/desktop/app.vue +0 -377
  1454. package/stacks/x-ray/src/desktop/functions/http.ts +0 -26
  1455. package/stacks/x-ray/src/desktop/main.ts +0 -14
  1456. package/stacks/x-ray/src/http.ts +0 -26
  1457. package/stacks/x-ray/src/index.ts +0 -42
  1458. package/stacks/x-ray/tests/example.test.ts +0 -7
  1459. package/stacks.d.ts +0 -22
  1460. package/tsconfig.json +0 -159
  1461. package/views/desktop/.gitignore +0 -24
  1462. package/views/desktop/README.md +0 -73
  1463. package/views/desktop/index.html +0 -13
  1464. package/views/desktop/package.json +0 -29
  1465. package/views/desktop/public/favicon.svg +0 -1
  1466. package/views/desktop/src/.gitignore +0 -3
  1467. package/views/desktop/src/Cargo.lock +0 -3916
  1468. package/views/desktop/src/Cargo.toml +0 -28
  1469. package/views/desktop/src/build.rs +0 -3
  1470. package/views/desktop/src/icons/128x128.png +0 -0
  1471. package/views/desktop/src/icons/128x128@2x.png +0 -0
  1472. package/views/desktop/src/icons/32x32.png +0 -0
  1473. package/views/desktop/src/icons/Square107x107Logo.png +0 -0
  1474. package/views/desktop/src/icons/Square142x142Logo.png +0 -0
  1475. package/views/desktop/src/icons/Square150x150Logo.png +0 -0
  1476. package/views/desktop/src/icons/Square284x284Logo.png +0 -0
  1477. package/views/desktop/src/icons/Square30x30Logo.png +0 -0
  1478. package/views/desktop/src/icons/Square310x310Logo.png +0 -0
  1479. package/views/desktop/src/icons/Square44x44Logo.png +0 -0
  1480. package/views/desktop/src/icons/Square71x71Logo.png +0 -0
  1481. package/views/desktop/src/icons/Square89x89Logo.png +0 -0
  1482. package/views/desktop/src/icons/StoreLogo.png +0 -0
  1483. package/views/desktop/src/icons/icon.icns +0 -0
  1484. package/views/desktop/src/icons/icon.ico +0 -0
  1485. package/views/desktop/src/icons/icon.png +0 -0
  1486. package/views/desktop/src/src/main.rs +0 -10
  1487. package/views/desktop/src/tauri.conf.json +0 -73
  1488. package/views/web/App.vue +0 -26
  1489. package/views/web/index.html +0 -23
  1490. package/views/web/main.ts +0 -26
  1491. package/views/web/public/_headers +0 -3
  1492. package/views/web/public/favicon-dark.svg +0 -3
  1493. package/views/web/public/favicon.svg +0 -3
  1494. package/views/web/public/pwa-192x192.png +0 -0
  1495. package/views/web/public/pwa-512x512.png +0 -0
  1496. package/views/web/public/safari-pinned-tab.svg +0 -41
  1497. package/views/web/styles/main.css +0 -29
  1498. package/views/web/styles/markdown.css +0 -28
  1499. package/vitest.config.ts +0 -31
  1500. package/web-types.json +0 -67
  1501. /package/{custom-elements.json → core/custom-elements.json} +0 -0
  1502. /package/core/{actions → src/actions}/src/upgrade/dependencies.ts +0 -0
  1503. /package/{stacks/dashboard/src/index.ts → core/src/ai/src/chatbots.ts} +0 -0
  1504. /package/{stacks/tables/src/docs/index.md → core/src/ai/src/image-generation.ts} +0 -0
  1505. /package/{stacks/x-ray/src/desktop/plugins/unified/unified-styles.scss → core/src/ai/src/personalization.ts} +0 -0
  1506. /package/{stacks/x-ray/src/desktop/styles/app.scss → core/src/ai/src/search.ts} +0 -0
  1507. /package/core/{auth → src/auth}/src/index.ts +0 -0
  1508. /package/core/{buddy → src/buddy}/src/index.ts +0 -0
  1509. /package/core/{build → src/build}/web-types.config.cjs +0 -0
  1510. /package/core/{cache → src/cache}/src/drivers/dynamodb.ts +0 -0
  1511. /package/core/{chat → src/chat}/src/drivers/discord.ts +0 -0
  1512. /package/core/{chat → src/chat}/src/drivers/slack.ts +0 -0
  1513. /package/core/{chat → src/chat}/src/drivers/teams.ts +0 -0
  1514. /package/core/{chat → src/chat}/src/index.ts +0 -0
  1515. /package/core/{cli → src/cli}/src/actions/index.ts +0 -0
  1516. /package/core/{cli → src/cli}/src/spinner.ts +0 -0
  1517. /package/core/{collections → src/collections}/src/index.ts +0 -0
  1518. /package/core/{datetime → src/datetime}/src/index.ts +0 -0
  1519. /package/core/{email → src/email}/src/tailwind.config.ts +0 -0
  1520. /package/core/{email → src/email}/src/utils/config.ts +0 -0
  1521. /package/core/{email → src/email}/src/utils/template.html +0 -0
  1522. /package/core/{faker → src/faker}/src/index.ts +0 -0
  1523. /package/core/{lint → src/lint}/src/index.ts +0 -0
  1524. /package/core/{notifications → src/notifications}/src/drivers/chat.ts +0 -0
  1525. /package/core/{notifications → src/notifications}/src/drivers/email.ts +0 -0
  1526. /package/core/{notifications → src/notifications}/src/drivers/push.ts +0 -0
  1527. /package/core/{notifications → src/notifications}/src/drivers/sms.ts +0 -0
  1528. /package/core/{notifications → src/notifications}/src/utils/template.html +0 -0
  1529. /package/core/{payments → src/payments}/src/index.ts +0 -0
  1530. /package/core/{query-builder → src/query-builder}/src/index.ts +0 -0
  1531. /package/core/{repl → src/repl}/src/index.ts +0 -0
  1532. /package/core/{security → src/security}/src/index.ts +0 -0
  1533. /package/core/{signals → src/signals}/src/index.ts +0 -0
  1534. /package/core/{sms → src/sms}/src/drivers/gupshup.ts +0 -0
  1535. /package/core/{sms → src/sms}/src/drivers/nexmo.ts +0 -0
  1536. /package/core/{sms → src/sms}/src/drivers/plivo.ts +0 -0
  1537. /package/core/{sms → src/sms}/src/drivers/sms77.ts +0 -0
  1538. /package/core/{sms → src/sms}/src/drivers/sns.ts +0 -0
  1539. /package/core/{sms → src/sms}/src/drivers/telnyx.ts +0 -0
  1540. /package/core/{sms → src/sms}/src/drivers/termii.ts +0 -0
  1541. /package/core/{sms → src/sms}/src/drivers/twilio.ts +0 -0
  1542. /package/core/{strings → src/strings}/src/is.ts +0 -0
  1543. /package/{stacks → core/src}/tables/index.html +0 -0
  1544. /package/core/{ai/src → src/tables/src/commands}/index.ts +0 -0
  1545. /package/{stacks/tables/src/components/Demo.vue → core/src/tables/src/components/Demo.stx} +0 -0
  1546. /package/{stacks/tables/src/components/TableCellActionItems.vue → core/src/tables/src/components/TableCellActionItems.stx} +0 -0
  1547. /package/{stacks → core/src}/tables/src/functions/README.md +0 -0
  1548. /package/{stacks → core/src}/tables/src/functions/dark.ts +0 -0
  1549. /package/{stacks → core/src}/tables/src/functions/index.ts +0 -0
  1550. /package/{stacks → core/src}/tables/src/functions/table.ts +0 -0
  1551. /package/core/{analytics → src/tinker}/src/index.ts +0 -0
  1552. /package/core/{types → src/types}/src/auto-imports.ts +0 -0
  1553. /package/core/{types → src/types}/src/build.ts +0 -0
  1554. /package/core/{types → src/types}/src/exit-code.ts +0 -0
  1555. /package/core/{types → src/types}/src/i18n.ts +0 -0
  1556. /package/core/{types → src/types}/src/inspect.ts +0 -0
  1557. /package/core/{types → src/types}/src/manifest.ts +0 -0
  1558. /package/core/{types → src/types}/src/pages.ts +0 -0
  1559. /package/core/{types → src/types}/src/promise.ts +0 -0
  1560. /package/core/{types → src/types}/src/pwa.ts +0 -0
  1561. /package/core/{types → src/types}/src/reactivity.ts +0 -0
  1562. /package/core/{types → src/types}/src/tables.ts +0 -0
  1563. /package/core/{utils → src/utils}/src/currency.ts +0 -0
  1564. /package/core/{utils → src/utils}/src/debounce.ts +0 -0
  1565. /package/core/{utils → src/utils}/src/function.ts +0 -0
  1566. /package/core/{utils → src/utils}/src/guards.ts +0 -0
  1567. /package/core/{utils → src/utils}/src/p.ts +0 -0
  1568. /package/core/{validation → src/validation}/src/index.ts +0 -0
  1569. /package/{stacks → core/src}/x-ray/index.html +0 -0
  1570. /package/{stacks → core/src}/x-ray/routes/index.ts +0 -0
  1571. /package/{stacks → core/src}/x-ray/src/desktop/api/routes/api/logs.ts +0 -0
  1572. /package/{stacks → core/src}/x-ray/src/desktop/api/routes/api/store-logs.ts +0 -0
  1573. /package/{stacks → core/src}/x-ray/src/desktop/api/src/types.ts +0 -0
  1574. /package/{stacks → core/src}/x-ray/src/desktop/functions/types.ts +0 -0
  1575. /package/{stacks/x-ray/src/desktop/modules/counter/mod.vue → core/src/x-ray/src/desktop/modules/counter/mod.stx} +0 -0
  1576. /package/{stacks/x-ray/src/desktop/modules/fetcher/mod.vue → core/src/x-ray/src/desktop/modules/fetcher/mod.stx} +0 -0
  1577. /package/{stacks → core/src}/x-ray/src/desktop/plugins/unified/unified-app.ts +0 -0
  1578. /package/{stacks → core/src}/x-ray/src/desktop/services/http.ts +0 -0
  1579. /package/{stacks → core/src}/x-ray/src/ray.config.ts +0 -0
  1580. /package/{stacks → core/src}/x-ray/src/types.ts +0 -0
@@ -0,0 +1,3075 @@
1
+ // @bun
2
+ var __defProp = Object.defineProperty;
3
+ var __export = (target, all) => {
4
+ for (var name in all)
5
+ __defProp(target, name, {
6
+ get: all[name],
7
+ enumerable: true,
8
+ configurable: true,
9
+ set: (newValue) => all[name] = () => newValue
10
+ });
11
+ };
12
+
13
+ // /Users/chrisbreuer/Code/stacks/node_modules/@tauri-apps/api/shell.js
14
+ var exports_shell = {};
15
+ __export(exports_shell, {
16
+ open: () => {
17
+ {
18
+ return open;
19
+ }
20
+ },
21
+ EventEmitter: () => {
22
+ {
23
+ return EventEmitter;
24
+ }
25
+ },
26
+ Command: () => {
27
+ {
28
+ return Command;
29
+ }
30
+ },
31
+ Child: () => {
32
+ {
33
+ return Child;
34
+ }
35
+ }
36
+ });
37
+
38
+ // /Users/chrisbreuer/Code/stacks/node_modules/@tauri-apps/api/tauri.js
39
+ var exports_tauri = {};
40
+ __export(exports_tauri, {
41
+ transformCallback: () => {
42
+ {
43
+ return transformCallback;
44
+ }
45
+ },
46
+ invoke: () => {
47
+ {
48
+ return invoke;
49
+ }
50
+ },
51
+ convertFileSrc: () => {
52
+ {
53
+ return convertFileSrc;
54
+ }
55
+ }
56
+ });
57
+ var uid = function() {
58
+ return window.crypto.getRandomValues(new Uint32Array(1))[0];
59
+ };
60
+ var transformCallback = function(callback, once = false) {
61
+ const identifier = uid();
62
+ const prop = `_${identifier}`;
63
+ Object.defineProperty(window, prop, {
64
+ value: (result) => {
65
+ if (once) {
66
+ Reflect.deleteProperty(window, prop);
67
+ }
68
+ return callback?.(result);
69
+ },
70
+ writable: false,
71
+ configurable: true
72
+ });
73
+ return identifier;
74
+ };
75
+ async function invoke(cmd, args = {}) {
76
+ return new Promise((resolve, reject) => {
77
+ const callback = transformCallback((e) => {
78
+ resolve(e);
79
+ Reflect.deleteProperty(window, `_${error}`);
80
+ }, true);
81
+ const error = transformCallback((e) => {
82
+ reject(e);
83
+ Reflect.deleteProperty(window, `_${callback}`);
84
+ }, true);
85
+ window.__TAURI_IPC__({
86
+ cmd,
87
+ callback,
88
+ error,
89
+ ...args
90
+ });
91
+ });
92
+ }
93
+ var convertFileSrc = function(filePath, protocol = "asset") {
94
+ return window.__TAURI__.convertFileSrc(filePath, protocol);
95
+ };
96
+
97
+ // /Users/chrisbreuer/Code/stacks/node_modules/@tauri-apps/api/helpers/tauri.js
98
+ async function invokeTauriCommand(command) {
99
+ return invoke("tauri", command);
100
+ }
101
+
102
+ // /Users/chrisbreuer/Code/stacks/node_modules/@tauri-apps/api/shell.js
103
+ async function execute(onEvent, program, args = [], options) {
104
+ if (typeof args === "object") {
105
+ Object.freeze(args);
106
+ }
107
+ return invokeTauriCommand({
108
+ __tauriModule: "Shell",
109
+ message: {
110
+ cmd: "execute",
111
+ program,
112
+ args,
113
+ options,
114
+ onEventFn: transformCallback(onEvent)
115
+ }
116
+ });
117
+ }
118
+ async function open(path, openWith) {
119
+ return invokeTauriCommand({
120
+ __tauriModule: "Shell",
121
+ message: {
122
+ cmd: "open",
123
+ path,
124
+ with: openWith
125
+ }
126
+ });
127
+ }
128
+
129
+ class EventEmitter {
130
+ constructor() {
131
+ this.eventListeners = Object.create(null);
132
+ }
133
+ addListener(eventName, listener) {
134
+ return this.on(eventName, listener);
135
+ }
136
+ removeListener(eventName, listener) {
137
+ return this.off(eventName, listener);
138
+ }
139
+ on(eventName, listener) {
140
+ if (eventName in this.eventListeners) {
141
+ this.eventListeners[eventName].push(listener);
142
+ } else {
143
+ this.eventListeners[eventName] = [listener];
144
+ }
145
+ return this;
146
+ }
147
+ once(eventName, listener) {
148
+ const wrapper = (...args) => {
149
+ this.removeListener(eventName, wrapper);
150
+ listener(...args);
151
+ };
152
+ return this.addListener(eventName, wrapper);
153
+ }
154
+ off(eventName, listener) {
155
+ if (eventName in this.eventListeners) {
156
+ this.eventListeners[eventName] = this.eventListeners[eventName].filter((l) => l !== listener);
157
+ }
158
+ return this;
159
+ }
160
+ removeAllListeners(event) {
161
+ if (event) {
162
+ delete this.eventListeners[event];
163
+ } else {
164
+ this.eventListeners = Object.create(null);
165
+ }
166
+ return this;
167
+ }
168
+ emit(eventName, ...args) {
169
+ if (eventName in this.eventListeners) {
170
+ const listeners = this.eventListeners[eventName];
171
+ for (const listener of listeners)
172
+ listener(...args);
173
+ return true;
174
+ }
175
+ return false;
176
+ }
177
+ listenerCount(eventName) {
178
+ if (eventName in this.eventListeners)
179
+ return this.eventListeners[eventName].length;
180
+ return 0;
181
+ }
182
+ prependListener(eventName, listener) {
183
+ if (eventName in this.eventListeners) {
184
+ this.eventListeners[eventName].unshift(listener);
185
+ } else {
186
+ this.eventListeners[eventName] = [listener];
187
+ }
188
+ return this;
189
+ }
190
+ prependOnceListener(eventName, listener) {
191
+ const wrapper = (...args) => {
192
+ this.removeListener(eventName, wrapper);
193
+ listener(...args);
194
+ };
195
+ return this.prependListener(eventName, wrapper);
196
+ }
197
+ }
198
+
199
+ class Child {
200
+ constructor(pid) {
201
+ this.pid = pid;
202
+ }
203
+ async write(data) {
204
+ return invokeTauriCommand({
205
+ __tauriModule: "Shell",
206
+ message: {
207
+ cmd: "stdinWrite",
208
+ pid: this.pid,
209
+ buffer: typeof data === "string" ? data : Array.from(data)
210
+ }
211
+ });
212
+ }
213
+ async kill() {
214
+ return invokeTauriCommand({
215
+ __tauriModule: "Shell",
216
+ message: {
217
+ cmd: "killChild",
218
+ pid: this.pid
219
+ }
220
+ });
221
+ }
222
+ }
223
+
224
+ class Command extends EventEmitter {
225
+ constructor(program, args = [], options) {
226
+ super();
227
+ this.stdout = new EventEmitter;
228
+ this.stderr = new EventEmitter;
229
+ this.program = program;
230
+ this.args = typeof args === "string" ? [args] : args;
231
+ this.options = options ?? {};
232
+ }
233
+ static sidecar(program, args = [], options) {
234
+ const instance = new Command(program, args, options);
235
+ instance.options.sidecar = true;
236
+ return instance;
237
+ }
238
+ async spawn() {
239
+ return execute((event) => {
240
+ switch (event.event) {
241
+ case "Error":
242
+ this.emit("error", event.payload);
243
+ break;
244
+ case "Terminated":
245
+ this.emit("close", event.payload);
246
+ break;
247
+ case "Stdout":
248
+ this.stdout.emit("data", event.payload);
249
+ break;
250
+ case "Stderr":
251
+ this.stderr.emit("data", event.payload);
252
+ break;
253
+ }
254
+ }, this.program, this.args, this.options).then((pid) => new Child(pid));
255
+ }
256
+ async execute() {
257
+ return new Promise((resolve, reject) => {
258
+ this.on("error", reject);
259
+ const stdout = [];
260
+ const stderr = [];
261
+ this.stdout.on("data", (line) => {
262
+ stdout.push(line);
263
+ });
264
+ this.stderr.on("data", (line) => {
265
+ stderr.push(line);
266
+ });
267
+ this.on("close", (payload) => {
268
+ resolve({
269
+ code: payload.code,
270
+ signal: payload.signal,
271
+ stdout: stdout.join("\n"),
272
+ stderr: stderr.join("\n")
273
+ });
274
+ });
275
+ this.spawn().catch(reject);
276
+ });
277
+ }
278
+ }
279
+
280
+ // /Users/chrisbreuer/Code/stacks/node_modules/@tauri-apps/api/app.js
281
+ var exports_app = {};
282
+ __export(exports_app, {
283
+ show: () => {
284
+ {
285
+ return show;
286
+ }
287
+ },
288
+ hide: () => {
289
+ {
290
+ return hide;
291
+ }
292
+ },
293
+ getVersion: () => {
294
+ {
295
+ return getVersion;
296
+ }
297
+ },
298
+ getTauriVersion: () => {
299
+ {
300
+ return getTauriVersion;
301
+ }
302
+ },
303
+ getName: () => {
304
+ {
305
+ return getName;
306
+ }
307
+ }
308
+ });
309
+ async function getVersion() {
310
+ return invokeTauriCommand({
311
+ __tauriModule: "App",
312
+ message: {
313
+ cmd: "getAppVersion"
314
+ }
315
+ });
316
+ }
317
+ async function getName() {
318
+ return invokeTauriCommand({
319
+ __tauriModule: "App",
320
+ message: {
321
+ cmd: "getAppName"
322
+ }
323
+ });
324
+ }
325
+ async function getTauriVersion() {
326
+ return invokeTauriCommand({
327
+ __tauriModule: "App",
328
+ message: {
329
+ cmd: "getTauriVersion"
330
+ }
331
+ });
332
+ }
333
+ async function show() {
334
+ return invokeTauriCommand({
335
+ __tauriModule: "App",
336
+ message: {
337
+ cmd: "show"
338
+ }
339
+ });
340
+ }
341
+ async function hide() {
342
+ return invokeTauriCommand({
343
+ __tauriModule: "App",
344
+ message: {
345
+ cmd: "hide"
346
+ }
347
+ });
348
+ }
349
+
350
+ // /Users/chrisbreuer/Code/stacks/node_modules/@tauri-apps/api/event.js
351
+ var exports_event = {};
352
+ __export(exports_event, {
353
+ once: () => {
354
+ {
355
+ return once2;
356
+ }
357
+ },
358
+ listen: () => {
359
+ {
360
+ return listen2;
361
+ }
362
+ },
363
+ emit: () => {
364
+ {
365
+ return emit2;
366
+ }
367
+ },
368
+ TauriEvent: () => {
369
+ {
370
+ return TauriEvent;
371
+ }
372
+ }
373
+ });
374
+
375
+ // /Users/chrisbreuer/Code/stacks/node_modules/@tauri-apps/api/helpers/event.js
376
+ async function _unlisten(event, eventId) {
377
+ return invokeTauriCommand({
378
+ __tauriModule: "Event",
379
+ message: {
380
+ cmd: "unlisten",
381
+ event,
382
+ eventId
383
+ }
384
+ });
385
+ }
386
+ async function emit(event, windowLabel, payload) {
387
+ await invokeTauriCommand({
388
+ __tauriModule: "Event",
389
+ message: {
390
+ cmd: "emit",
391
+ event,
392
+ windowLabel,
393
+ payload
394
+ }
395
+ });
396
+ }
397
+ async function listen(event, windowLabel, handler) {
398
+ return invokeTauriCommand({
399
+ __tauriModule: "Event",
400
+ message: {
401
+ cmd: "listen",
402
+ event,
403
+ windowLabel,
404
+ handler: transformCallback(handler)
405
+ }
406
+ }).then((eventId) => {
407
+ return async () => _unlisten(event, eventId);
408
+ });
409
+ }
410
+ async function once(event, windowLabel, handler) {
411
+ return listen(event, windowLabel, (eventData) => {
412
+ handler(eventData);
413
+ _unlisten(event, eventData.id).catch(() => {
414
+ });
415
+ });
416
+ }
417
+
418
+ // /Users/chrisbreuer/Code/stacks/node_modules/@tauri-apps/api/event.js
419
+ async function listen2(event2, handler) {
420
+ return listen(event2, null, handler);
421
+ }
422
+ async function once2(event2, handler) {
423
+ return once(event2, null, handler);
424
+ }
425
+ async function emit2(event2, payload) {
426
+ return emit(event2, undefined, payload);
427
+ }
428
+ var TauriEvent;
429
+ (function(TauriEvent2) {
430
+ TauriEvent2["WINDOW_RESIZED"] = "tauri://resize";
431
+ TauriEvent2["WINDOW_MOVED"] = "tauri://move";
432
+ TauriEvent2["WINDOW_CLOSE_REQUESTED"] = "tauri://close-requested";
433
+ TauriEvent2["WINDOW_CREATED"] = "tauri://window-created";
434
+ TauriEvent2["WINDOW_DESTROYED"] = "tauri://destroyed";
435
+ TauriEvent2["WINDOW_FOCUS"] = "tauri://focus";
436
+ TauriEvent2["WINDOW_BLUR"] = "tauri://blur";
437
+ TauriEvent2["WINDOW_SCALE_FACTOR_CHANGED"] = "tauri://scale-change";
438
+ TauriEvent2["WINDOW_THEME_CHANGED"] = "tauri://theme-changed";
439
+ TauriEvent2["WINDOW_FILE_DROP"] = "tauri://file-drop";
440
+ TauriEvent2["WINDOW_FILE_DROP_HOVER"] = "tauri://file-drop-hover";
441
+ TauriEvent2["WINDOW_FILE_DROP_CANCELLED"] = "tauri://file-drop-cancelled";
442
+ TauriEvent2["MENU"] = "tauri://menu";
443
+ TauriEvent2["CHECK_UPDATE"] = "tauri://update";
444
+ TauriEvent2["UPDATE_AVAILABLE"] = "tauri://update-available";
445
+ TauriEvent2["INSTALL_UPDATE"] = "tauri://update-install";
446
+ TauriEvent2["STATUS_UPDATE"] = "tauri://update-status";
447
+ TauriEvent2["DOWNLOAD_PROGRESS"] = "tauri://update-download-progress";
448
+ })(TauriEvent || (TauriEvent = {}));
449
+
450
+ // /Users/chrisbreuer/Code/stacks/node_modules/@tauri-apps/api/clipboard.js
451
+ var exports_clipboard = {};
452
+ __export(exports_clipboard, {
453
+ writeText: () => {
454
+ {
455
+ return writeText;
456
+ }
457
+ },
458
+ readText: () => {
459
+ {
460
+ return readText;
461
+ }
462
+ }
463
+ });
464
+ async function writeText(text) {
465
+ return invokeTauriCommand({
466
+ __tauriModule: "Clipboard",
467
+ message: {
468
+ cmd: "writeText",
469
+ data: text
470
+ }
471
+ });
472
+ }
473
+ async function readText() {
474
+ return invokeTauriCommand({
475
+ __tauriModule: "Clipboard",
476
+ message: {
477
+ cmd: "readText",
478
+ data: null
479
+ }
480
+ });
481
+ }
482
+
483
+ // /Users/chrisbreuer/Code/stacks/node_modules/@tauri-apps/api/dialog.js
484
+ var exports_dialog = {};
485
+ __export(exports_dialog, {
486
+ save: () => {
487
+ {
488
+ return save;
489
+ }
490
+ },
491
+ open: () => {
492
+ {
493
+ return open2;
494
+ }
495
+ },
496
+ message: () => {
497
+ {
498
+ return message;
499
+ }
500
+ },
501
+ confirm: () => {
502
+ {
503
+ return confirm;
504
+ }
505
+ },
506
+ ask: () => {
507
+ {
508
+ return ask;
509
+ }
510
+ }
511
+ });
512
+ async function open2(options = {}) {
513
+ if (typeof options === "object") {
514
+ Object.freeze(options);
515
+ }
516
+ return invokeTauriCommand({
517
+ __tauriModule: "Dialog",
518
+ message: {
519
+ cmd: "openDialog",
520
+ options
521
+ }
522
+ });
523
+ }
524
+ async function save(options = {}) {
525
+ if (typeof options === "object") {
526
+ Object.freeze(options);
527
+ }
528
+ return invokeTauriCommand({
529
+ __tauriModule: "Dialog",
530
+ message: {
531
+ cmd: "saveDialog",
532
+ options
533
+ }
534
+ });
535
+ }
536
+ async function message(message2, options) {
537
+ const opts = typeof options === "string" ? { title: options } : options;
538
+ return invokeTauriCommand({
539
+ __tauriModule: "Dialog",
540
+ message: {
541
+ cmd: "messageDialog",
542
+ message: message2.toString(),
543
+ title: opts?.title?.toString(),
544
+ type: opts?.type,
545
+ buttonLabel: opts?.okLabel?.toString()
546
+ }
547
+ });
548
+ }
549
+ async function ask(message2, options) {
550
+ const opts = typeof options === "string" ? { title: options } : options;
551
+ return invokeTauriCommand({
552
+ __tauriModule: "Dialog",
553
+ message: {
554
+ cmd: "askDialog",
555
+ message: message2.toString(),
556
+ title: opts?.title?.toString(),
557
+ type: opts?.type,
558
+ buttonLabels: [
559
+ opts?.okLabel?.toString() ?? "Yes",
560
+ opts?.cancelLabel?.toString() ?? "No"
561
+ ]
562
+ }
563
+ });
564
+ }
565
+ async function confirm(message2, options) {
566
+ const opts = typeof options === "string" ? { title: options } : options;
567
+ return invokeTauriCommand({
568
+ __tauriModule: "Dialog",
569
+ message: {
570
+ cmd: "confirmDialog",
571
+ message: message2.toString(),
572
+ title: opts?.title?.toString(),
573
+ type: opts?.type,
574
+ buttonLabels: [
575
+ opts?.okLabel?.toString() ?? "Ok",
576
+ opts?.cancelLabel?.toString() ?? "Cancel"
577
+ ]
578
+ }
579
+ });
580
+ }
581
+
582
+ // /Users/chrisbreuer/Code/stacks/node_modules/@tauri-apps/api/fs.js
583
+ var exports_fs = {};
584
+ __export(exports_fs, {
585
+ writeTextFile: () => {
586
+ {
587
+ return writeTextFile;
588
+ }
589
+ },
590
+ writeFile: () => {
591
+ {
592
+ return writeTextFile;
593
+ }
594
+ },
595
+ writeBinaryFile: () => {
596
+ {
597
+ return writeBinaryFile;
598
+ }
599
+ },
600
+ renameFile: () => {
601
+ {
602
+ return renameFile;
603
+ }
604
+ },
605
+ removeFile: () => {
606
+ {
607
+ return removeFile;
608
+ }
609
+ },
610
+ removeDir: () => {
611
+ {
612
+ return removeDir;
613
+ }
614
+ },
615
+ readTextFile: () => {
616
+ {
617
+ return readTextFile;
618
+ }
619
+ },
620
+ readDir: () => {
621
+ {
622
+ return readDir;
623
+ }
624
+ },
625
+ readBinaryFile: () => {
626
+ {
627
+ return readBinaryFile;
628
+ }
629
+ },
630
+ exists: () => {
631
+ {
632
+ return exists;
633
+ }
634
+ },
635
+ createDir: () => {
636
+ {
637
+ return createDir;
638
+ }
639
+ },
640
+ copyFile: () => {
641
+ {
642
+ return copyFile;
643
+ }
644
+ },
645
+ Dir: () => {
646
+ {
647
+ return BaseDirectory;
648
+ }
649
+ },
650
+ BaseDirectory: () => {
651
+ {
652
+ return BaseDirectory;
653
+ }
654
+ }
655
+ });
656
+ async function readTextFile(filePath, options = {}) {
657
+ return invokeTauriCommand({
658
+ __tauriModule: "Fs",
659
+ message: {
660
+ cmd: "readTextFile",
661
+ path: filePath,
662
+ options
663
+ }
664
+ });
665
+ }
666
+ async function readBinaryFile(filePath, options = {}) {
667
+ const arr = await invokeTauriCommand({
668
+ __tauriModule: "Fs",
669
+ message: {
670
+ cmd: "readFile",
671
+ path: filePath,
672
+ options
673
+ }
674
+ });
675
+ return Uint8Array.from(arr);
676
+ }
677
+ async function writeTextFile(path, contents, options) {
678
+ if (typeof options === "object") {
679
+ Object.freeze(options);
680
+ }
681
+ if (typeof path === "object") {
682
+ Object.freeze(path);
683
+ }
684
+ const file = { path: "", contents: "" };
685
+ let fileOptions = options;
686
+ if (typeof path === "string") {
687
+ file.path = path;
688
+ } else {
689
+ file.path = path.path;
690
+ file.contents = path.contents;
691
+ }
692
+ if (typeof contents === "string") {
693
+ file.contents = contents ?? "";
694
+ } else {
695
+ fileOptions = contents;
696
+ }
697
+ return invokeTauriCommand({
698
+ __tauriModule: "Fs",
699
+ message: {
700
+ cmd: "writeFile",
701
+ path: file.path,
702
+ contents: Array.from(new TextEncoder().encode(file.contents)),
703
+ options: fileOptions
704
+ }
705
+ });
706
+ }
707
+ async function writeBinaryFile(path, contents, options) {
708
+ if (typeof options === "object") {
709
+ Object.freeze(options);
710
+ }
711
+ if (typeof path === "object") {
712
+ Object.freeze(path);
713
+ }
714
+ const file = { path: "", contents: [] };
715
+ let fileOptions = options;
716
+ if (typeof path === "string") {
717
+ file.path = path;
718
+ } else {
719
+ file.path = path.path;
720
+ file.contents = path.contents;
721
+ }
722
+ if (contents && "dir" in contents) {
723
+ fileOptions = contents;
724
+ } else if (typeof path === "string") {
725
+ file.contents = contents ?? [];
726
+ }
727
+ return invokeTauriCommand({
728
+ __tauriModule: "Fs",
729
+ message: {
730
+ cmd: "writeFile",
731
+ path: file.path,
732
+ contents: Array.from(file.contents instanceof ArrayBuffer ? new Uint8Array(file.contents) : file.contents),
733
+ options: fileOptions
734
+ }
735
+ });
736
+ }
737
+ async function readDir(dir, options = {}) {
738
+ return invokeTauriCommand({
739
+ __tauriModule: "Fs",
740
+ message: {
741
+ cmd: "readDir",
742
+ path: dir,
743
+ options
744
+ }
745
+ });
746
+ }
747
+ async function createDir(dir, options = {}) {
748
+ return invokeTauriCommand({
749
+ __tauriModule: "Fs",
750
+ message: {
751
+ cmd: "createDir",
752
+ path: dir,
753
+ options
754
+ }
755
+ });
756
+ }
757
+ async function removeDir(dir, options = {}) {
758
+ return invokeTauriCommand({
759
+ __tauriModule: "Fs",
760
+ message: {
761
+ cmd: "removeDir",
762
+ path: dir,
763
+ options
764
+ }
765
+ });
766
+ }
767
+ async function copyFile(source, destination, options = {}) {
768
+ return invokeTauriCommand({
769
+ __tauriModule: "Fs",
770
+ message: {
771
+ cmd: "copyFile",
772
+ source,
773
+ destination,
774
+ options
775
+ }
776
+ });
777
+ }
778
+ async function removeFile(file, options = {}) {
779
+ return invokeTauriCommand({
780
+ __tauriModule: "Fs",
781
+ message: {
782
+ cmd: "removeFile",
783
+ path: file,
784
+ options
785
+ }
786
+ });
787
+ }
788
+ async function renameFile(oldPath, newPath, options = {}) {
789
+ return invokeTauriCommand({
790
+ __tauriModule: "Fs",
791
+ message: {
792
+ cmd: "renameFile",
793
+ oldPath,
794
+ newPath,
795
+ options
796
+ }
797
+ });
798
+ }
799
+ async function exists(path, options = {}) {
800
+ return invokeTauriCommand({
801
+ __tauriModule: "Fs",
802
+ message: {
803
+ cmd: "exists",
804
+ path,
805
+ options
806
+ }
807
+ });
808
+ }
809
+ var BaseDirectory;
810
+ (function(BaseDirectory2) {
811
+ BaseDirectory2[BaseDirectory2["Audio"] = 1] = "Audio";
812
+ BaseDirectory2[BaseDirectory2["Cache"] = 2] = "Cache";
813
+ BaseDirectory2[BaseDirectory2["Config"] = 3] = "Config";
814
+ BaseDirectory2[BaseDirectory2["Data"] = 4] = "Data";
815
+ BaseDirectory2[BaseDirectory2["LocalData"] = 5] = "LocalData";
816
+ BaseDirectory2[BaseDirectory2["Desktop"] = 6] = "Desktop";
817
+ BaseDirectory2[BaseDirectory2["Document"] = 7] = "Document";
818
+ BaseDirectory2[BaseDirectory2["Download"] = 8] = "Download";
819
+ BaseDirectory2[BaseDirectory2["Executable"] = 9] = "Executable";
820
+ BaseDirectory2[BaseDirectory2["Font"] = 10] = "Font";
821
+ BaseDirectory2[BaseDirectory2["Home"] = 11] = "Home";
822
+ BaseDirectory2[BaseDirectory2["Picture"] = 12] = "Picture";
823
+ BaseDirectory2[BaseDirectory2["Public"] = 13] = "Public";
824
+ BaseDirectory2[BaseDirectory2["Runtime"] = 14] = "Runtime";
825
+ BaseDirectory2[BaseDirectory2["Template"] = 15] = "Template";
826
+ BaseDirectory2[BaseDirectory2["Video"] = 16] = "Video";
827
+ BaseDirectory2[BaseDirectory2["Resource"] = 17] = "Resource";
828
+ BaseDirectory2[BaseDirectory2["App"] = 18] = "App";
829
+ BaseDirectory2[BaseDirectory2["Log"] = 19] = "Log";
830
+ BaseDirectory2[BaseDirectory2["Temp"] = 20] = "Temp";
831
+ BaseDirectory2[BaseDirectory2["AppConfig"] = 21] = "AppConfig";
832
+ BaseDirectory2[BaseDirectory2["AppData"] = 22] = "AppData";
833
+ BaseDirectory2[BaseDirectory2["AppLocalData"] = 23] = "AppLocalData";
834
+ BaseDirectory2[BaseDirectory2["AppCache"] = 24] = "AppCache";
835
+ BaseDirectory2[BaseDirectory2["AppLog"] = 25] = "AppLog";
836
+ })(BaseDirectory || (BaseDirectory = {}));
837
+
838
+ // /Users/chrisbreuer/Code/stacks/node_modules/@tauri-apps/api/globalShortcut.js
839
+ var exports_globalShortcut = {};
840
+ __export(exports_globalShortcut, {
841
+ unregisterAll: () => {
842
+ {
843
+ return unregisterAll;
844
+ }
845
+ },
846
+ unregister: () => {
847
+ {
848
+ return unregister;
849
+ }
850
+ },
851
+ registerAll: () => {
852
+ {
853
+ return registerAll;
854
+ }
855
+ },
856
+ register: () => {
857
+ {
858
+ return register;
859
+ }
860
+ },
861
+ isRegistered: () => {
862
+ {
863
+ return isRegistered;
864
+ }
865
+ }
866
+ });
867
+ async function register(shortcut, handler) {
868
+ return invokeTauriCommand({
869
+ __tauriModule: "GlobalShortcut",
870
+ message: {
871
+ cmd: "register",
872
+ shortcut,
873
+ handler: transformCallback(handler)
874
+ }
875
+ });
876
+ }
877
+ async function registerAll(shortcuts, handler) {
878
+ return invokeTauriCommand({
879
+ __tauriModule: "GlobalShortcut",
880
+ message: {
881
+ cmd: "registerAll",
882
+ shortcuts,
883
+ handler: transformCallback(handler)
884
+ }
885
+ });
886
+ }
887
+ async function isRegistered(shortcut) {
888
+ return invokeTauriCommand({
889
+ __tauriModule: "GlobalShortcut",
890
+ message: {
891
+ cmd: "isRegistered",
892
+ shortcut
893
+ }
894
+ });
895
+ }
896
+ async function unregister(shortcut) {
897
+ return invokeTauriCommand({
898
+ __tauriModule: "GlobalShortcut",
899
+ message: {
900
+ cmd: "unregister",
901
+ shortcut
902
+ }
903
+ });
904
+ }
905
+ async function unregisterAll() {
906
+ return invokeTauriCommand({
907
+ __tauriModule: "GlobalShortcut",
908
+ message: {
909
+ cmd: "unregisterAll"
910
+ }
911
+ });
912
+ }
913
+
914
+ // /Users/chrisbreuer/Code/stacks/node_modules/@tauri-apps/api/http.js
915
+ var exports_http = {};
916
+ __export(exports_http, {
917
+ getClient: () => {
918
+ {
919
+ return getClient;
920
+ }
921
+ },
922
+ fetch: () => {
923
+ {
924
+ return fetch;
925
+ }
926
+ },
927
+ ResponseType: () => {
928
+ {
929
+ return ResponseType;
930
+ }
931
+ },
932
+ Response: () => {
933
+ {
934
+ return Response;
935
+ }
936
+ },
937
+ Client: () => {
938
+ {
939
+ return Client;
940
+ }
941
+ },
942
+ Body: () => {
943
+ {
944
+ return Body;
945
+ }
946
+ }
947
+ });
948
+ async function formBody(data) {
949
+ const form = {};
950
+ const append = async (key, v) => {
951
+ if (v !== null) {
952
+ let r;
953
+ if (typeof v === "string") {
954
+ r = v;
955
+ } else if (v instanceof Uint8Array || Array.isArray(v)) {
956
+ r = Array.from(v);
957
+ } else if (v instanceof File) {
958
+ r = {
959
+ file: Array.from(new Uint8Array(await v.arrayBuffer())),
960
+ mime: v.type,
961
+ fileName: v.name
962
+ };
963
+ } else if (typeof v.file === "string") {
964
+ r = { file: v.file, mime: v.mime, fileName: v.fileName };
965
+ } else {
966
+ r = { file: Array.from(v.file), mime: v.mime, fileName: v.fileName };
967
+ }
968
+ form[String(key)] = r;
969
+ }
970
+ };
971
+ if (data instanceof FormData) {
972
+ for (const [key, value] of data) {
973
+ await append(key, value);
974
+ }
975
+ } else {
976
+ for (const [key, value] of Object.entries(data)) {
977
+ await append(key, value);
978
+ }
979
+ }
980
+ return form;
981
+ }
982
+ async function getClient(options) {
983
+ return invokeTauriCommand({
984
+ __tauriModule: "Http",
985
+ message: {
986
+ cmd: "createClient",
987
+ options
988
+ }
989
+ }).then((id) => new Client(id));
990
+ }
991
+ async function fetch(url, options) {
992
+ if (defaultClient === null) {
993
+ defaultClient = await getClient();
994
+ }
995
+ return defaultClient.request({
996
+ url,
997
+ method: options?.method ?? "GET",
998
+ ...options
999
+ });
1000
+ }
1001
+ var ResponseType;
1002
+ (function(ResponseType2) {
1003
+ ResponseType2[ResponseType2["JSON"] = 1] = "JSON";
1004
+ ResponseType2[ResponseType2["Text"] = 2] = "Text";
1005
+ ResponseType2[ResponseType2["Binary"] = 3] = "Binary";
1006
+ })(ResponseType || (ResponseType = {}));
1007
+
1008
+ class Body {
1009
+ constructor(type, payload) {
1010
+ this.type = type;
1011
+ this.payload = payload;
1012
+ }
1013
+ static form(data) {
1014
+ return new Body("Form", data);
1015
+ }
1016
+ static json(data) {
1017
+ return new Body("Json", data);
1018
+ }
1019
+ static text(value) {
1020
+ return new Body("Text", value);
1021
+ }
1022
+ static bytes(bytes) {
1023
+ return new Body("Bytes", Array.from(bytes instanceof ArrayBuffer ? new Uint8Array(bytes) : bytes));
1024
+ }
1025
+ }
1026
+
1027
+ class Response {
1028
+ constructor(response) {
1029
+ this.url = response.url;
1030
+ this.status = response.status;
1031
+ this.ok = this.status >= 200 && this.status < 300;
1032
+ this.headers = response.headers;
1033
+ this.rawHeaders = response.rawHeaders;
1034
+ this.data = response.data;
1035
+ }
1036
+ }
1037
+
1038
+ class Client {
1039
+ constructor(id) {
1040
+ this.id = id;
1041
+ }
1042
+ async drop() {
1043
+ return invokeTauriCommand({
1044
+ __tauriModule: "Http",
1045
+ message: {
1046
+ cmd: "dropClient",
1047
+ client: this.id
1048
+ }
1049
+ });
1050
+ }
1051
+ async request(options) {
1052
+ const jsonResponse = !options.responseType || options.responseType === ResponseType.JSON;
1053
+ if (jsonResponse) {
1054
+ options.responseType = ResponseType.Text;
1055
+ }
1056
+ if (options.body?.type === "Form") {
1057
+ options.body.payload = await formBody(options.body.payload);
1058
+ }
1059
+ return invokeTauriCommand({
1060
+ __tauriModule: "Http",
1061
+ message: {
1062
+ cmd: "httpRequest",
1063
+ client: this.id,
1064
+ options
1065
+ }
1066
+ }).then((res) => {
1067
+ const response = new Response(res);
1068
+ if (jsonResponse) {
1069
+ try {
1070
+ response.data = JSON.parse(response.data);
1071
+ } catch (e) {
1072
+ if (response.ok && response.data === "") {
1073
+ response.data = {};
1074
+ } else if (response.ok) {
1075
+ throw Error(`Failed to parse response \`${response.data}\` as JSON: ${e};
1076
+ try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`);
1077
+ }
1078
+ }
1079
+ return response;
1080
+ }
1081
+ return response;
1082
+ });
1083
+ }
1084
+ async get(url, options) {
1085
+ return this.request({
1086
+ method: "GET",
1087
+ url,
1088
+ ...options
1089
+ });
1090
+ }
1091
+ async post(url, body, options) {
1092
+ return this.request({
1093
+ method: "POST",
1094
+ url,
1095
+ body,
1096
+ ...options
1097
+ });
1098
+ }
1099
+ async put(url, body, options) {
1100
+ return this.request({
1101
+ method: "PUT",
1102
+ url,
1103
+ body,
1104
+ ...options
1105
+ });
1106
+ }
1107
+ async patch(url, options) {
1108
+ return this.request({
1109
+ method: "PATCH",
1110
+ url,
1111
+ ...options
1112
+ });
1113
+ }
1114
+ async delete(url, options) {
1115
+ return this.request({
1116
+ method: "DELETE",
1117
+ url,
1118
+ ...options
1119
+ });
1120
+ }
1121
+ }
1122
+ var defaultClient = null;
1123
+
1124
+ // /Users/chrisbreuer/Code/stacks/node_modules/@tauri-apps/api/mocks.js
1125
+ var exports_mocks = {};
1126
+ __export(exports_mocks, {
1127
+ mockWindows: () => {
1128
+ {
1129
+ return mockWindows;
1130
+ }
1131
+ },
1132
+ mockIPC: () => {
1133
+ {
1134
+ return mockIPC;
1135
+ }
1136
+ },
1137
+ mockConvertFileSrc: () => {
1138
+ {
1139
+ return mockConvertFileSrc;
1140
+ }
1141
+ },
1142
+ clearMocks: () => {
1143
+ {
1144
+ return clearMocks;
1145
+ }
1146
+ }
1147
+ });
1148
+ var mockIPC = function(cb) {
1149
+ window.__TAURI_IPC__ = async ({ cmd, callback, error, ...args }) => {
1150
+ try {
1151
+ window[`_${callback}`](await cb(cmd, args));
1152
+ } catch (err) {
1153
+ window[`_${error}`](err);
1154
+ }
1155
+ };
1156
+ };
1157
+ var mockWindows = function(current, ...additionalWindows) {
1158
+ window.__TAURI_METADATA__ = {
1159
+ __windows: [current, ...additionalWindows].map((label) => ({ label })),
1160
+ __currentWindow: { label: current }
1161
+ };
1162
+ };
1163
+ var mockConvertFileSrc = function(osName, windowsProtocolScheme = "https") {
1164
+ window.__TAURI__ = window.__TAURI__ ?? {};
1165
+ window.__TAURI__.convertFileSrc = function(filePath, protocol = "asset") {
1166
+ const path = encodeURIComponent(filePath);
1167
+ return osName === "windows" ? `${windowsProtocolScheme}://${protocol}.localhost/${path}` : `${protocol}://localhost/${path}`;
1168
+ };
1169
+ };
1170
+ var clearMocks = function() {
1171
+ if (window.__TAURI__?.convertFileSrc)
1172
+ delete window.__TAURI__.convertFileSrc;
1173
+ if (window.__TAURI_IPC__)
1174
+ delete window.__TAURI_IPC__;
1175
+ if (window.__TAURI_METADATA__)
1176
+ delete window.__TAURI_METADATA__;
1177
+ };
1178
+
1179
+ // /Users/chrisbreuer/Code/stacks/node_modules/@tauri-apps/api/notification.js
1180
+ var exports_notification = {};
1181
+ __export(exports_notification, {
1182
+ sendNotification: () => {
1183
+ {
1184
+ return sendNotification;
1185
+ }
1186
+ },
1187
+ requestPermission: () => {
1188
+ {
1189
+ return requestPermission;
1190
+ }
1191
+ },
1192
+ isPermissionGranted: () => {
1193
+ {
1194
+ return isPermissionGranted;
1195
+ }
1196
+ }
1197
+ });
1198
+ async function isPermissionGranted() {
1199
+ if (window.Notification.permission !== "default") {
1200
+ return Promise.resolve(window.Notification.permission === "granted");
1201
+ }
1202
+ return invokeTauriCommand({
1203
+ __tauriModule: "Notification",
1204
+ message: {
1205
+ cmd: "isNotificationPermissionGranted"
1206
+ }
1207
+ });
1208
+ }
1209
+ async function requestPermission() {
1210
+ return window.Notification.requestPermission();
1211
+ }
1212
+ var sendNotification = function(options) {
1213
+ if (typeof options === "string") {
1214
+ new window.Notification(options);
1215
+ } else {
1216
+ new window.Notification(options.title, options);
1217
+ }
1218
+ };
1219
+
1220
+ // /Users/chrisbreuer/Code/stacks/node_modules/@tauri-apps/api/os.js
1221
+ var exports_os = {};
1222
+ __export(exports_os, {
1223
+ version: () => {
1224
+ {
1225
+ return version;
1226
+ }
1227
+ },
1228
+ type: () => {
1229
+ {
1230
+ return type;
1231
+ }
1232
+ },
1233
+ tempdir: () => {
1234
+ {
1235
+ return tempdir;
1236
+ }
1237
+ },
1238
+ platform: () => {
1239
+ {
1240
+ return platform;
1241
+ }
1242
+ },
1243
+ locale: () => {
1244
+ {
1245
+ return locale;
1246
+ }
1247
+ },
1248
+ arch: () => {
1249
+ {
1250
+ return arch;
1251
+ }
1252
+ },
1253
+ EOL: () => {
1254
+ {
1255
+ return EOL;
1256
+ }
1257
+ }
1258
+ });
1259
+
1260
+ // /Users/chrisbreuer/Code/stacks/node_modules/@tauri-apps/api/helpers/os-check.js
1261
+ var isWindows = function() {
1262
+ return navigator.appVersion.includes("Win");
1263
+ };
1264
+
1265
+ // /Users/chrisbreuer/Code/stacks/node_modules/@tauri-apps/api/os.js
1266
+ async function platform() {
1267
+ return invokeTauriCommand({
1268
+ __tauriModule: "Os",
1269
+ message: {
1270
+ cmd: "platform"
1271
+ }
1272
+ });
1273
+ }
1274
+ async function version() {
1275
+ return invokeTauriCommand({
1276
+ __tauriModule: "Os",
1277
+ message: {
1278
+ cmd: "version"
1279
+ }
1280
+ });
1281
+ }
1282
+ async function type() {
1283
+ return invokeTauriCommand({
1284
+ __tauriModule: "Os",
1285
+ message: {
1286
+ cmd: "osType"
1287
+ }
1288
+ });
1289
+ }
1290
+ async function arch() {
1291
+ return invokeTauriCommand({
1292
+ __tauriModule: "Os",
1293
+ message: {
1294
+ cmd: "arch"
1295
+ }
1296
+ });
1297
+ }
1298
+ async function tempdir() {
1299
+ return invokeTauriCommand({
1300
+ __tauriModule: "Os",
1301
+ message: {
1302
+ cmd: "tempdir"
1303
+ }
1304
+ });
1305
+ }
1306
+ async function locale() {
1307
+ return invokeTauriCommand({
1308
+ __tauriModule: "Os",
1309
+ message: {
1310
+ cmd: "locale"
1311
+ }
1312
+ });
1313
+ }
1314
+ var EOL = isWindows() ? "\r\n" : "\n";
1315
+
1316
+ // /Users/chrisbreuer/Code/stacks/node_modules/@tauri-apps/api/path.js
1317
+ var exports_path = {};
1318
+ __export(exports_path, {
1319
+ videoDir: () => {
1320
+ {
1321
+ return videoDir;
1322
+ }
1323
+ },
1324
+ templateDir: () => {
1325
+ {
1326
+ return templateDir;
1327
+ }
1328
+ },
1329
+ sep: () => {
1330
+ {
1331
+ return sep;
1332
+ }
1333
+ },
1334
+ runtimeDir: () => {
1335
+ {
1336
+ return runtimeDir;
1337
+ }
1338
+ },
1339
+ resourceDir: () => {
1340
+ {
1341
+ return resourceDir;
1342
+ }
1343
+ },
1344
+ resolveResource: () => {
1345
+ {
1346
+ return resolveResource;
1347
+ }
1348
+ },
1349
+ resolve: () => {
1350
+ {
1351
+ return resolve;
1352
+ }
1353
+ },
1354
+ publicDir: () => {
1355
+ {
1356
+ return publicDir;
1357
+ }
1358
+ },
1359
+ pictureDir: () => {
1360
+ {
1361
+ return pictureDir;
1362
+ }
1363
+ },
1364
+ normalize: () => {
1365
+ {
1366
+ return normalize;
1367
+ }
1368
+ },
1369
+ logDir: () => {
1370
+ {
1371
+ return logDir;
1372
+ }
1373
+ },
1374
+ localDataDir: () => {
1375
+ {
1376
+ return localDataDir;
1377
+ }
1378
+ },
1379
+ join: () => {
1380
+ {
1381
+ return join;
1382
+ }
1383
+ },
1384
+ isAbsolute: () => {
1385
+ {
1386
+ return isAbsolute;
1387
+ }
1388
+ },
1389
+ homeDir: () => {
1390
+ {
1391
+ return homeDir;
1392
+ }
1393
+ },
1394
+ fontDir: () => {
1395
+ {
1396
+ return fontDir;
1397
+ }
1398
+ },
1399
+ extname: () => {
1400
+ {
1401
+ return extname;
1402
+ }
1403
+ },
1404
+ executableDir: () => {
1405
+ {
1406
+ return executableDir;
1407
+ }
1408
+ },
1409
+ downloadDir: () => {
1410
+ {
1411
+ return downloadDir;
1412
+ }
1413
+ },
1414
+ documentDir: () => {
1415
+ {
1416
+ return documentDir;
1417
+ }
1418
+ },
1419
+ dirname: () => {
1420
+ {
1421
+ return dirname;
1422
+ }
1423
+ },
1424
+ desktopDir: () => {
1425
+ {
1426
+ return desktopDir;
1427
+ }
1428
+ },
1429
+ delimiter: () => {
1430
+ {
1431
+ return delimiter;
1432
+ }
1433
+ },
1434
+ dataDir: () => {
1435
+ {
1436
+ return dataDir;
1437
+ }
1438
+ },
1439
+ configDir: () => {
1440
+ {
1441
+ return configDir;
1442
+ }
1443
+ },
1444
+ cacheDir: () => {
1445
+ {
1446
+ return cacheDir;
1447
+ }
1448
+ },
1449
+ basename: () => {
1450
+ {
1451
+ return basename;
1452
+ }
1453
+ },
1454
+ audioDir: () => {
1455
+ {
1456
+ return audioDir;
1457
+ }
1458
+ },
1459
+ appLogDir: () => {
1460
+ {
1461
+ return appLogDir;
1462
+ }
1463
+ },
1464
+ appLocalDataDir: () => {
1465
+ {
1466
+ return appLocalDataDir;
1467
+ }
1468
+ },
1469
+ appDir: () => {
1470
+ {
1471
+ return appDir;
1472
+ }
1473
+ },
1474
+ appDataDir: () => {
1475
+ {
1476
+ return appDataDir;
1477
+ }
1478
+ },
1479
+ appConfigDir: () => {
1480
+ {
1481
+ return appConfigDir;
1482
+ }
1483
+ },
1484
+ appCacheDir: () => {
1485
+ {
1486
+ return appCacheDir;
1487
+ }
1488
+ },
1489
+ BaseDirectory: () => {
1490
+ {
1491
+ return BaseDirectory;
1492
+ }
1493
+ }
1494
+ });
1495
+ async function appDir() {
1496
+ return appConfigDir();
1497
+ }
1498
+ async function appConfigDir() {
1499
+ return invokeTauriCommand({
1500
+ __tauriModule: "Path",
1501
+ message: {
1502
+ cmd: "resolvePath",
1503
+ path: "",
1504
+ directory: BaseDirectory.AppConfig
1505
+ }
1506
+ });
1507
+ }
1508
+ async function appDataDir() {
1509
+ return invokeTauriCommand({
1510
+ __tauriModule: "Path",
1511
+ message: {
1512
+ cmd: "resolvePath",
1513
+ path: "",
1514
+ directory: BaseDirectory.AppData
1515
+ }
1516
+ });
1517
+ }
1518
+ async function appLocalDataDir() {
1519
+ return invokeTauriCommand({
1520
+ __tauriModule: "Path",
1521
+ message: {
1522
+ cmd: "resolvePath",
1523
+ path: "",
1524
+ directory: BaseDirectory.AppLocalData
1525
+ }
1526
+ });
1527
+ }
1528
+ async function appCacheDir() {
1529
+ return invokeTauriCommand({
1530
+ __tauriModule: "Path",
1531
+ message: {
1532
+ cmd: "resolvePath",
1533
+ path: "",
1534
+ directory: BaseDirectory.AppCache
1535
+ }
1536
+ });
1537
+ }
1538
+ async function audioDir() {
1539
+ return invokeTauriCommand({
1540
+ __tauriModule: "Path",
1541
+ message: {
1542
+ cmd: "resolvePath",
1543
+ path: "",
1544
+ directory: BaseDirectory.Audio
1545
+ }
1546
+ });
1547
+ }
1548
+ async function cacheDir() {
1549
+ return invokeTauriCommand({
1550
+ __tauriModule: "Path",
1551
+ message: {
1552
+ cmd: "resolvePath",
1553
+ path: "",
1554
+ directory: BaseDirectory.Cache
1555
+ }
1556
+ });
1557
+ }
1558
+ async function configDir() {
1559
+ return invokeTauriCommand({
1560
+ __tauriModule: "Path",
1561
+ message: {
1562
+ cmd: "resolvePath",
1563
+ path: "",
1564
+ directory: BaseDirectory.Config
1565
+ }
1566
+ });
1567
+ }
1568
+ async function dataDir() {
1569
+ return invokeTauriCommand({
1570
+ __tauriModule: "Path",
1571
+ message: {
1572
+ cmd: "resolvePath",
1573
+ path: "",
1574
+ directory: BaseDirectory.Data
1575
+ }
1576
+ });
1577
+ }
1578
+ async function desktopDir() {
1579
+ return invokeTauriCommand({
1580
+ __tauriModule: "Path",
1581
+ message: {
1582
+ cmd: "resolvePath",
1583
+ path: "",
1584
+ directory: BaseDirectory.Desktop
1585
+ }
1586
+ });
1587
+ }
1588
+ async function documentDir() {
1589
+ return invokeTauriCommand({
1590
+ __tauriModule: "Path",
1591
+ message: {
1592
+ cmd: "resolvePath",
1593
+ path: "",
1594
+ directory: BaseDirectory.Document
1595
+ }
1596
+ });
1597
+ }
1598
+ async function downloadDir() {
1599
+ return invokeTauriCommand({
1600
+ __tauriModule: "Path",
1601
+ message: {
1602
+ cmd: "resolvePath",
1603
+ path: "",
1604
+ directory: BaseDirectory.Download
1605
+ }
1606
+ });
1607
+ }
1608
+ async function executableDir() {
1609
+ return invokeTauriCommand({
1610
+ __tauriModule: "Path",
1611
+ message: {
1612
+ cmd: "resolvePath",
1613
+ path: "",
1614
+ directory: BaseDirectory.Executable
1615
+ }
1616
+ });
1617
+ }
1618
+ async function fontDir() {
1619
+ return invokeTauriCommand({
1620
+ __tauriModule: "Path",
1621
+ message: {
1622
+ cmd: "resolvePath",
1623
+ path: "",
1624
+ directory: BaseDirectory.Font
1625
+ }
1626
+ });
1627
+ }
1628
+ async function homeDir() {
1629
+ return invokeTauriCommand({
1630
+ __tauriModule: "Path",
1631
+ message: {
1632
+ cmd: "resolvePath",
1633
+ path: "",
1634
+ directory: BaseDirectory.Home
1635
+ }
1636
+ });
1637
+ }
1638
+ async function localDataDir() {
1639
+ return invokeTauriCommand({
1640
+ __tauriModule: "Path",
1641
+ message: {
1642
+ cmd: "resolvePath",
1643
+ path: "",
1644
+ directory: BaseDirectory.LocalData
1645
+ }
1646
+ });
1647
+ }
1648
+ async function pictureDir() {
1649
+ return invokeTauriCommand({
1650
+ __tauriModule: "Path",
1651
+ message: {
1652
+ cmd: "resolvePath",
1653
+ path: "",
1654
+ directory: BaseDirectory.Picture
1655
+ }
1656
+ });
1657
+ }
1658
+ async function publicDir() {
1659
+ return invokeTauriCommand({
1660
+ __tauriModule: "Path",
1661
+ message: {
1662
+ cmd: "resolvePath",
1663
+ path: "",
1664
+ directory: BaseDirectory.Public
1665
+ }
1666
+ });
1667
+ }
1668
+ async function resourceDir() {
1669
+ return invokeTauriCommand({
1670
+ __tauriModule: "Path",
1671
+ message: {
1672
+ cmd: "resolvePath",
1673
+ path: "",
1674
+ directory: BaseDirectory.Resource
1675
+ }
1676
+ });
1677
+ }
1678
+ async function resolveResource(resourcePath) {
1679
+ return invokeTauriCommand({
1680
+ __tauriModule: "Path",
1681
+ message: {
1682
+ cmd: "resolvePath",
1683
+ path: resourcePath,
1684
+ directory: BaseDirectory.Resource
1685
+ }
1686
+ });
1687
+ }
1688
+ async function runtimeDir() {
1689
+ return invokeTauriCommand({
1690
+ __tauriModule: "Path",
1691
+ message: {
1692
+ cmd: "resolvePath",
1693
+ path: "",
1694
+ directory: BaseDirectory.Runtime
1695
+ }
1696
+ });
1697
+ }
1698
+ async function templateDir() {
1699
+ return invokeTauriCommand({
1700
+ __tauriModule: "Path",
1701
+ message: {
1702
+ cmd: "resolvePath",
1703
+ path: "",
1704
+ directory: BaseDirectory.Template
1705
+ }
1706
+ });
1707
+ }
1708
+ async function videoDir() {
1709
+ return invokeTauriCommand({
1710
+ __tauriModule: "Path",
1711
+ message: {
1712
+ cmd: "resolvePath",
1713
+ path: "",
1714
+ directory: BaseDirectory.Video
1715
+ }
1716
+ });
1717
+ }
1718
+ async function logDir() {
1719
+ return appLogDir();
1720
+ }
1721
+ async function appLogDir() {
1722
+ return invokeTauriCommand({
1723
+ __tauriModule: "Path",
1724
+ message: {
1725
+ cmd: "resolvePath",
1726
+ path: "",
1727
+ directory: BaseDirectory.AppLog
1728
+ }
1729
+ });
1730
+ }
1731
+ async function resolve(...paths) {
1732
+ return invokeTauriCommand({
1733
+ __tauriModule: "Path",
1734
+ message: {
1735
+ cmd: "resolve",
1736
+ paths
1737
+ }
1738
+ });
1739
+ }
1740
+ async function normalize(path) {
1741
+ return invokeTauriCommand({
1742
+ __tauriModule: "Path",
1743
+ message: {
1744
+ cmd: "normalize",
1745
+ path
1746
+ }
1747
+ });
1748
+ }
1749
+ async function join(...paths) {
1750
+ return invokeTauriCommand({
1751
+ __tauriModule: "Path",
1752
+ message: {
1753
+ cmd: "join",
1754
+ paths
1755
+ }
1756
+ });
1757
+ }
1758
+ async function dirname(path) {
1759
+ return invokeTauriCommand({
1760
+ __tauriModule: "Path",
1761
+ message: {
1762
+ cmd: "dirname",
1763
+ path
1764
+ }
1765
+ });
1766
+ }
1767
+ async function extname(path) {
1768
+ return invokeTauriCommand({
1769
+ __tauriModule: "Path",
1770
+ message: {
1771
+ cmd: "extname",
1772
+ path
1773
+ }
1774
+ });
1775
+ }
1776
+ async function basename(path, ext) {
1777
+ return invokeTauriCommand({
1778
+ __tauriModule: "Path",
1779
+ message: {
1780
+ cmd: "basename",
1781
+ path,
1782
+ ext
1783
+ }
1784
+ });
1785
+ }
1786
+ async function isAbsolute(path) {
1787
+ return invokeTauriCommand({
1788
+ __tauriModule: "Path",
1789
+ message: {
1790
+ cmd: "isAbsolute",
1791
+ path
1792
+ }
1793
+ });
1794
+ }
1795
+ var sep = isWindows() ? "\\" : "/";
1796
+ var delimiter = isWindows() ? ";" : ":";
1797
+
1798
+ // /Users/chrisbreuer/Code/stacks/node_modules/@tauri-apps/api/process.js
1799
+ var exports_process = {};
1800
+ __export(exports_process, {
1801
+ relaunch: () => {
1802
+ {
1803
+ return relaunch;
1804
+ }
1805
+ },
1806
+ exit: () => {
1807
+ {
1808
+ return exit;
1809
+ }
1810
+ }
1811
+ });
1812
+ async function exit(exitCode = 0) {
1813
+ return invokeTauriCommand({
1814
+ __tauriModule: "Process",
1815
+ message: {
1816
+ cmd: "exit",
1817
+ exitCode
1818
+ }
1819
+ });
1820
+ }
1821
+ async function relaunch() {
1822
+ return invokeTauriCommand({
1823
+ __tauriModule: "Process",
1824
+ message: {
1825
+ cmd: "relaunch"
1826
+ }
1827
+ });
1828
+ }
1829
+
1830
+ // /Users/chrisbreuer/Code/stacks/node_modules/@tauri-apps/api/updater.js
1831
+ var exports_updater = {};
1832
+ __export(exports_updater, {
1833
+ onUpdaterEvent: () => {
1834
+ {
1835
+ return onUpdaterEvent;
1836
+ }
1837
+ },
1838
+ installUpdate: () => {
1839
+ {
1840
+ return installUpdate;
1841
+ }
1842
+ },
1843
+ checkUpdate: () => {
1844
+ {
1845
+ return checkUpdate;
1846
+ }
1847
+ }
1848
+ });
1849
+ async function onUpdaterEvent(handler) {
1850
+ return listen2(TauriEvent.STATUS_UPDATE, (data) => {
1851
+ handler(data?.payload);
1852
+ });
1853
+ }
1854
+ async function installUpdate() {
1855
+ let unlistenerFn;
1856
+ function cleanListener() {
1857
+ if (unlistenerFn) {
1858
+ unlistenerFn();
1859
+ }
1860
+ unlistenerFn = undefined;
1861
+ }
1862
+ return new Promise((resolve2, reject) => {
1863
+ function onStatusChange(statusResult) {
1864
+ if (statusResult.error) {
1865
+ cleanListener();
1866
+ reject(statusResult.error);
1867
+ return;
1868
+ }
1869
+ if (statusResult.status === "DONE") {
1870
+ cleanListener();
1871
+ resolve2();
1872
+ }
1873
+ }
1874
+ onUpdaterEvent(onStatusChange).then((fn) => {
1875
+ unlistenerFn = fn;
1876
+ }).catch((e) => {
1877
+ cleanListener();
1878
+ throw e;
1879
+ });
1880
+ emit2(TauriEvent.INSTALL_UPDATE).catch((e) => {
1881
+ cleanListener();
1882
+ throw e;
1883
+ });
1884
+ });
1885
+ }
1886
+ async function checkUpdate() {
1887
+ let unlistenerFn;
1888
+ function cleanListener() {
1889
+ if (unlistenerFn) {
1890
+ unlistenerFn();
1891
+ }
1892
+ unlistenerFn = undefined;
1893
+ }
1894
+ return new Promise((resolve2, reject) => {
1895
+ function onUpdateAvailable(manifest) {
1896
+ cleanListener();
1897
+ resolve2({
1898
+ manifest,
1899
+ shouldUpdate: true
1900
+ });
1901
+ }
1902
+ function onStatusChange(statusResult) {
1903
+ if (statusResult.error) {
1904
+ cleanListener();
1905
+ reject(statusResult.error);
1906
+ return;
1907
+ }
1908
+ if (statusResult.status === "UPTODATE") {
1909
+ cleanListener();
1910
+ resolve2({
1911
+ shouldUpdate: false
1912
+ });
1913
+ }
1914
+ }
1915
+ once2(TauriEvent.UPDATE_AVAILABLE, (data) => {
1916
+ onUpdateAvailable(data?.payload);
1917
+ }).catch((e) => {
1918
+ cleanListener();
1919
+ throw e;
1920
+ });
1921
+ onUpdaterEvent(onStatusChange).then((fn) => {
1922
+ unlistenerFn = fn;
1923
+ }).catch((e) => {
1924
+ cleanListener();
1925
+ throw e;
1926
+ });
1927
+ emit2(TauriEvent.CHECK_UPDATE).catch((e) => {
1928
+ cleanListener();
1929
+ throw e;
1930
+ });
1931
+ });
1932
+ }
1933
+
1934
+ // /Users/chrisbreuer/Code/stacks/node_modules/@tauri-apps/api/window.js
1935
+ var exports_window = {};
1936
+ __export(exports_window, {
1937
+ primaryMonitor: () => {
1938
+ {
1939
+ return primaryMonitor;
1940
+ }
1941
+ },
1942
+ getCurrent: () => {
1943
+ {
1944
+ return getCurrent;
1945
+ }
1946
+ },
1947
+ getAll: () => {
1948
+ {
1949
+ return getAll;
1950
+ }
1951
+ },
1952
+ currentMonitor: () => {
1953
+ {
1954
+ return currentMonitor;
1955
+ }
1956
+ },
1957
+ availableMonitors: () => {
1958
+ {
1959
+ return availableMonitors;
1960
+ }
1961
+ },
1962
+ appWindow: () => {
1963
+ {
1964
+ return appWindow;
1965
+ }
1966
+ },
1967
+ WindowManager: () => {
1968
+ {
1969
+ return WindowManager;
1970
+ }
1971
+ },
1972
+ WebviewWindowHandle: () => {
1973
+ {
1974
+ return WebviewWindowHandle;
1975
+ }
1976
+ },
1977
+ WebviewWindow: () => {
1978
+ {
1979
+ return WebviewWindow;
1980
+ }
1981
+ },
1982
+ UserAttentionType: () => {
1983
+ {
1984
+ return UserAttentionType;
1985
+ }
1986
+ },
1987
+ PhysicalSize: () => {
1988
+ {
1989
+ return PhysicalSize;
1990
+ }
1991
+ },
1992
+ PhysicalPosition: () => {
1993
+ {
1994
+ return PhysicalPosition;
1995
+ }
1996
+ },
1997
+ LogicalSize: () => {
1998
+ {
1999
+ return LogicalSize;
2000
+ }
2001
+ },
2002
+ LogicalPosition: () => {
2003
+ {
2004
+ return LogicalPosition;
2005
+ }
2006
+ },
2007
+ CloseRequestedEvent: () => {
2008
+ {
2009
+ return CloseRequestedEvent;
2010
+ }
2011
+ }
2012
+ });
2013
+ var getCurrent = function() {
2014
+ return new WebviewWindow(window.__TAURI_METADATA__.__currentWindow.label, {
2015
+ skip: true
2016
+ });
2017
+ };
2018
+ var getAll = function() {
2019
+ return window.__TAURI_METADATA__.__windows.map((w) => new WebviewWindow(w.label, {
2020
+ skip: true
2021
+ }));
2022
+ };
2023
+ var mapMonitor = function(m) {
2024
+ return m === null ? null : {
2025
+ name: m.name,
2026
+ scaleFactor: m.scaleFactor,
2027
+ position: mapPhysicalPosition(m.position),
2028
+ size: mapPhysicalSize(m.size)
2029
+ };
2030
+ };
2031
+ var mapPhysicalPosition = function(m) {
2032
+ return new PhysicalPosition(m.x, m.y);
2033
+ };
2034
+ var mapPhysicalSize = function(m) {
2035
+ return new PhysicalSize(m.width, m.height);
2036
+ };
2037
+ async function currentMonitor() {
2038
+ return invokeTauriCommand({
2039
+ __tauriModule: "Window",
2040
+ message: {
2041
+ cmd: "manage",
2042
+ data: {
2043
+ cmd: {
2044
+ type: "currentMonitor"
2045
+ }
2046
+ }
2047
+ }
2048
+ }).then(mapMonitor);
2049
+ }
2050
+ async function primaryMonitor() {
2051
+ return invokeTauriCommand({
2052
+ __tauriModule: "Window",
2053
+ message: {
2054
+ cmd: "manage",
2055
+ data: {
2056
+ cmd: {
2057
+ type: "primaryMonitor"
2058
+ }
2059
+ }
2060
+ }
2061
+ }).then(mapMonitor);
2062
+ }
2063
+ async function availableMonitors() {
2064
+ return invokeTauriCommand({
2065
+ __tauriModule: "Window",
2066
+ message: {
2067
+ cmd: "manage",
2068
+ data: {
2069
+ cmd: {
2070
+ type: "availableMonitors"
2071
+ }
2072
+ }
2073
+ }
2074
+ }).then((ms) => ms.map(mapMonitor));
2075
+ }
2076
+
2077
+ class LogicalSize {
2078
+ constructor(width, height) {
2079
+ this.type = "Logical";
2080
+ this.width = width;
2081
+ this.height = height;
2082
+ }
2083
+ }
2084
+
2085
+ class PhysicalSize {
2086
+ constructor(width, height) {
2087
+ this.type = "Physical";
2088
+ this.width = width;
2089
+ this.height = height;
2090
+ }
2091
+ toLogical(scaleFactor) {
2092
+ return new LogicalSize(this.width / scaleFactor, this.height / scaleFactor);
2093
+ }
2094
+ }
2095
+
2096
+ class LogicalPosition {
2097
+ constructor(x, y) {
2098
+ this.type = "Logical";
2099
+ this.x = x;
2100
+ this.y = y;
2101
+ }
2102
+ }
2103
+
2104
+ class PhysicalPosition {
2105
+ constructor(x, y) {
2106
+ this.type = "Physical";
2107
+ this.x = x;
2108
+ this.y = y;
2109
+ }
2110
+ toLogical(scaleFactor) {
2111
+ return new LogicalPosition(this.x / scaleFactor, this.y / scaleFactor);
2112
+ }
2113
+ }
2114
+ var UserAttentionType;
2115
+ (function(UserAttentionType2) {
2116
+ UserAttentionType2[UserAttentionType2["Critical"] = 1] = "Critical";
2117
+ UserAttentionType2[UserAttentionType2["Informational"] = 2] = "Informational";
2118
+ })(UserAttentionType || (UserAttentionType = {}));
2119
+ var localTauriEvents = ["tauri://created", "tauri://error"];
2120
+
2121
+ class WebviewWindowHandle {
2122
+ constructor(label) {
2123
+ this.label = label;
2124
+ this.listeners = Object.create(null);
2125
+ }
2126
+ async listen(event5, handler) {
2127
+ if (this._handleTauriEvent(event5, handler)) {
2128
+ return Promise.resolve(() => {
2129
+ const listeners = this.listeners[event5];
2130
+ listeners.splice(listeners.indexOf(handler), 1);
2131
+ });
2132
+ }
2133
+ return listen(event5, this.label, handler);
2134
+ }
2135
+ async once(event5, handler) {
2136
+ if (this._handleTauriEvent(event5, handler)) {
2137
+ return Promise.resolve(() => {
2138
+ const listeners = this.listeners[event5];
2139
+ listeners.splice(listeners.indexOf(handler), 1);
2140
+ });
2141
+ }
2142
+ return once(event5, this.label, handler);
2143
+ }
2144
+ async emit(event5, payload) {
2145
+ if (localTauriEvents.includes(event5)) {
2146
+ for (const handler of this.listeners[event5] || []) {
2147
+ handler({ event: event5, id: -1, windowLabel: this.label, payload });
2148
+ }
2149
+ return Promise.resolve();
2150
+ }
2151
+ return emit(event5, this.label, payload);
2152
+ }
2153
+ _handleTauriEvent(event5, handler) {
2154
+ if (localTauriEvents.includes(event5)) {
2155
+ if (!(event5 in this.listeners)) {
2156
+ this.listeners[event5] = [handler];
2157
+ } else {
2158
+ this.listeners[event5].push(handler);
2159
+ }
2160
+ return true;
2161
+ }
2162
+ return false;
2163
+ }
2164
+ }
2165
+
2166
+ class WindowManager extends WebviewWindowHandle {
2167
+ async scaleFactor() {
2168
+ return invokeTauriCommand({
2169
+ __tauriModule: "Window",
2170
+ message: {
2171
+ cmd: "manage",
2172
+ data: {
2173
+ label: this.label,
2174
+ cmd: {
2175
+ type: "scaleFactor"
2176
+ }
2177
+ }
2178
+ }
2179
+ });
2180
+ }
2181
+ async innerPosition() {
2182
+ return invokeTauriCommand({
2183
+ __tauriModule: "Window",
2184
+ message: {
2185
+ cmd: "manage",
2186
+ data: {
2187
+ label: this.label,
2188
+ cmd: {
2189
+ type: "innerPosition"
2190
+ }
2191
+ }
2192
+ }
2193
+ }).then(({ x, y }) => new PhysicalPosition(x, y));
2194
+ }
2195
+ async outerPosition() {
2196
+ return invokeTauriCommand({
2197
+ __tauriModule: "Window",
2198
+ message: {
2199
+ cmd: "manage",
2200
+ data: {
2201
+ label: this.label,
2202
+ cmd: {
2203
+ type: "outerPosition"
2204
+ }
2205
+ }
2206
+ }
2207
+ }).then(({ x, y }) => new PhysicalPosition(x, y));
2208
+ }
2209
+ async innerSize() {
2210
+ return invokeTauriCommand({
2211
+ __tauriModule: "Window",
2212
+ message: {
2213
+ cmd: "manage",
2214
+ data: {
2215
+ label: this.label,
2216
+ cmd: {
2217
+ type: "innerSize"
2218
+ }
2219
+ }
2220
+ }
2221
+ }).then(({ width, height }) => new PhysicalSize(width, height));
2222
+ }
2223
+ async outerSize() {
2224
+ return invokeTauriCommand({
2225
+ __tauriModule: "Window",
2226
+ message: {
2227
+ cmd: "manage",
2228
+ data: {
2229
+ label: this.label,
2230
+ cmd: {
2231
+ type: "outerSize"
2232
+ }
2233
+ }
2234
+ }
2235
+ }).then(({ width, height }) => new PhysicalSize(width, height));
2236
+ }
2237
+ async isFullscreen() {
2238
+ return invokeTauriCommand({
2239
+ __tauriModule: "Window",
2240
+ message: {
2241
+ cmd: "manage",
2242
+ data: {
2243
+ label: this.label,
2244
+ cmd: {
2245
+ type: "isFullscreen"
2246
+ }
2247
+ }
2248
+ }
2249
+ });
2250
+ }
2251
+ async isMinimized() {
2252
+ return invokeTauriCommand({
2253
+ __tauriModule: "Window",
2254
+ message: {
2255
+ cmd: "manage",
2256
+ data: {
2257
+ label: this.label,
2258
+ cmd: {
2259
+ type: "isMinimized"
2260
+ }
2261
+ }
2262
+ }
2263
+ });
2264
+ }
2265
+ async isMaximized() {
2266
+ return invokeTauriCommand({
2267
+ __tauriModule: "Window",
2268
+ message: {
2269
+ cmd: "manage",
2270
+ data: {
2271
+ label: this.label,
2272
+ cmd: {
2273
+ type: "isMaximized"
2274
+ }
2275
+ }
2276
+ }
2277
+ });
2278
+ }
2279
+ async isFocused() {
2280
+ return invokeTauriCommand({
2281
+ __tauriModule: "Window",
2282
+ message: {
2283
+ cmd: "manage",
2284
+ data: {
2285
+ label: this.label,
2286
+ cmd: {
2287
+ type: "isFocused"
2288
+ }
2289
+ }
2290
+ }
2291
+ });
2292
+ }
2293
+ async isDecorated() {
2294
+ return invokeTauriCommand({
2295
+ __tauriModule: "Window",
2296
+ message: {
2297
+ cmd: "manage",
2298
+ data: {
2299
+ label: this.label,
2300
+ cmd: {
2301
+ type: "isDecorated"
2302
+ }
2303
+ }
2304
+ }
2305
+ });
2306
+ }
2307
+ async isResizable() {
2308
+ return invokeTauriCommand({
2309
+ __tauriModule: "Window",
2310
+ message: {
2311
+ cmd: "manage",
2312
+ data: {
2313
+ label: this.label,
2314
+ cmd: {
2315
+ type: "isResizable"
2316
+ }
2317
+ }
2318
+ }
2319
+ });
2320
+ }
2321
+ async isMaximizable() {
2322
+ return invokeTauriCommand({
2323
+ __tauriModule: "Window",
2324
+ message: {
2325
+ cmd: "manage",
2326
+ data: {
2327
+ label: this.label,
2328
+ cmd: {
2329
+ type: "isMaximizable"
2330
+ }
2331
+ }
2332
+ }
2333
+ });
2334
+ }
2335
+ async isMinimizable() {
2336
+ return invokeTauriCommand({
2337
+ __tauriModule: "Window",
2338
+ message: {
2339
+ cmd: "manage",
2340
+ data: {
2341
+ label: this.label,
2342
+ cmd: {
2343
+ type: "isMinimizable"
2344
+ }
2345
+ }
2346
+ }
2347
+ });
2348
+ }
2349
+ async isClosable() {
2350
+ return invokeTauriCommand({
2351
+ __tauriModule: "Window",
2352
+ message: {
2353
+ cmd: "manage",
2354
+ data: {
2355
+ label: this.label,
2356
+ cmd: {
2357
+ type: "isClosable"
2358
+ }
2359
+ }
2360
+ }
2361
+ });
2362
+ }
2363
+ async isVisible() {
2364
+ return invokeTauriCommand({
2365
+ __tauriModule: "Window",
2366
+ message: {
2367
+ cmd: "manage",
2368
+ data: {
2369
+ label: this.label,
2370
+ cmd: {
2371
+ type: "isVisible"
2372
+ }
2373
+ }
2374
+ }
2375
+ });
2376
+ }
2377
+ async title() {
2378
+ return invokeTauriCommand({
2379
+ __tauriModule: "Window",
2380
+ message: {
2381
+ cmd: "manage",
2382
+ data: {
2383
+ label: this.label,
2384
+ cmd: {
2385
+ type: "title"
2386
+ }
2387
+ }
2388
+ }
2389
+ });
2390
+ }
2391
+ async theme() {
2392
+ return invokeTauriCommand({
2393
+ __tauriModule: "Window",
2394
+ message: {
2395
+ cmd: "manage",
2396
+ data: {
2397
+ label: this.label,
2398
+ cmd: {
2399
+ type: "theme"
2400
+ }
2401
+ }
2402
+ }
2403
+ });
2404
+ }
2405
+ async center() {
2406
+ return invokeTauriCommand({
2407
+ __tauriModule: "Window",
2408
+ message: {
2409
+ cmd: "manage",
2410
+ data: {
2411
+ label: this.label,
2412
+ cmd: {
2413
+ type: "center"
2414
+ }
2415
+ }
2416
+ }
2417
+ });
2418
+ }
2419
+ async requestUserAttention(requestType) {
2420
+ let requestType_ = null;
2421
+ if (requestType) {
2422
+ if (requestType === UserAttentionType.Critical) {
2423
+ requestType_ = { type: "Critical" };
2424
+ } else {
2425
+ requestType_ = { type: "Informational" };
2426
+ }
2427
+ }
2428
+ return invokeTauriCommand({
2429
+ __tauriModule: "Window",
2430
+ message: {
2431
+ cmd: "manage",
2432
+ data: {
2433
+ label: this.label,
2434
+ cmd: {
2435
+ type: "requestUserAttention",
2436
+ payload: requestType_
2437
+ }
2438
+ }
2439
+ }
2440
+ });
2441
+ }
2442
+ async setResizable(resizable) {
2443
+ return invokeTauriCommand({
2444
+ __tauriModule: "Window",
2445
+ message: {
2446
+ cmd: "manage",
2447
+ data: {
2448
+ label: this.label,
2449
+ cmd: {
2450
+ type: "setResizable",
2451
+ payload: resizable
2452
+ }
2453
+ }
2454
+ }
2455
+ });
2456
+ }
2457
+ async setMaximizable(maximizable) {
2458
+ return invokeTauriCommand({
2459
+ __tauriModule: "Window",
2460
+ message: {
2461
+ cmd: "manage",
2462
+ data: {
2463
+ label: this.label,
2464
+ cmd: {
2465
+ type: "setMaximizable",
2466
+ payload: maximizable
2467
+ }
2468
+ }
2469
+ }
2470
+ });
2471
+ }
2472
+ async setMinimizable(minimizable) {
2473
+ return invokeTauriCommand({
2474
+ __tauriModule: "Window",
2475
+ message: {
2476
+ cmd: "manage",
2477
+ data: {
2478
+ label: this.label,
2479
+ cmd: {
2480
+ type: "setMinimizable",
2481
+ payload: minimizable
2482
+ }
2483
+ }
2484
+ }
2485
+ });
2486
+ }
2487
+ async setClosable(closable) {
2488
+ return invokeTauriCommand({
2489
+ __tauriModule: "Window",
2490
+ message: {
2491
+ cmd: "manage",
2492
+ data: {
2493
+ label: this.label,
2494
+ cmd: {
2495
+ type: "setClosable",
2496
+ payload: closable
2497
+ }
2498
+ }
2499
+ }
2500
+ });
2501
+ }
2502
+ async setTitle(title) {
2503
+ return invokeTauriCommand({
2504
+ __tauriModule: "Window",
2505
+ message: {
2506
+ cmd: "manage",
2507
+ data: {
2508
+ label: this.label,
2509
+ cmd: {
2510
+ type: "setTitle",
2511
+ payload: title
2512
+ }
2513
+ }
2514
+ }
2515
+ });
2516
+ }
2517
+ async maximize() {
2518
+ return invokeTauriCommand({
2519
+ __tauriModule: "Window",
2520
+ message: {
2521
+ cmd: "manage",
2522
+ data: {
2523
+ label: this.label,
2524
+ cmd: {
2525
+ type: "maximize"
2526
+ }
2527
+ }
2528
+ }
2529
+ });
2530
+ }
2531
+ async unmaximize() {
2532
+ return invokeTauriCommand({
2533
+ __tauriModule: "Window",
2534
+ message: {
2535
+ cmd: "manage",
2536
+ data: {
2537
+ label: this.label,
2538
+ cmd: {
2539
+ type: "unmaximize"
2540
+ }
2541
+ }
2542
+ }
2543
+ });
2544
+ }
2545
+ async toggleMaximize() {
2546
+ return invokeTauriCommand({
2547
+ __tauriModule: "Window",
2548
+ message: {
2549
+ cmd: "manage",
2550
+ data: {
2551
+ label: this.label,
2552
+ cmd: {
2553
+ type: "toggleMaximize"
2554
+ }
2555
+ }
2556
+ }
2557
+ });
2558
+ }
2559
+ async minimize() {
2560
+ return invokeTauriCommand({
2561
+ __tauriModule: "Window",
2562
+ message: {
2563
+ cmd: "manage",
2564
+ data: {
2565
+ label: this.label,
2566
+ cmd: {
2567
+ type: "minimize"
2568
+ }
2569
+ }
2570
+ }
2571
+ });
2572
+ }
2573
+ async unminimize() {
2574
+ return invokeTauriCommand({
2575
+ __tauriModule: "Window",
2576
+ message: {
2577
+ cmd: "manage",
2578
+ data: {
2579
+ label: this.label,
2580
+ cmd: {
2581
+ type: "unminimize"
2582
+ }
2583
+ }
2584
+ }
2585
+ });
2586
+ }
2587
+ async show() {
2588
+ return invokeTauriCommand({
2589
+ __tauriModule: "Window",
2590
+ message: {
2591
+ cmd: "manage",
2592
+ data: {
2593
+ label: this.label,
2594
+ cmd: {
2595
+ type: "show"
2596
+ }
2597
+ }
2598
+ }
2599
+ });
2600
+ }
2601
+ async hide() {
2602
+ return invokeTauriCommand({
2603
+ __tauriModule: "Window",
2604
+ message: {
2605
+ cmd: "manage",
2606
+ data: {
2607
+ label: this.label,
2608
+ cmd: {
2609
+ type: "hide"
2610
+ }
2611
+ }
2612
+ }
2613
+ });
2614
+ }
2615
+ async close() {
2616
+ return invokeTauriCommand({
2617
+ __tauriModule: "Window",
2618
+ message: {
2619
+ cmd: "manage",
2620
+ data: {
2621
+ label: this.label,
2622
+ cmd: {
2623
+ type: "close"
2624
+ }
2625
+ }
2626
+ }
2627
+ });
2628
+ }
2629
+ async setDecorations(decorations) {
2630
+ return invokeTauriCommand({
2631
+ __tauriModule: "Window",
2632
+ message: {
2633
+ cmd: "manage",
2634
+ data: {
2635
+ label: this.label,
2636
+ cmd: {
2637
+ type: "setDecorations",
2638
+ payload: decorations
2639
+ }
2640
+ }
2641
+ }
2642
+ });
2643
+ }
2644
+ async setAlwaysOnTop(alwaysOnTop) {
2645
+ return invokeTauriCommand({
2646
+ __tauriModule: "Window",
2647
+ message: {
2648
+ cmd: "manage",
2649
+ data: {
2650
+ label: this.label,
2651
+ cmd: {
2652
+ type: "setAlwaysOnTop",
2653
+ payload: alwaysOnTop
2654
+ }
2655
+ }
2656
+ }
2657
+ });
2658
+ }
2659
+ async setContentProtected(protected_) {
2660
+ return invokeTauriCommand({
2661
+ __tauriModule: "Window",
2662
+ message: {
2663
+ cmd: "manage",
2664
+ data: {
2665
+ label: this.label,
2666
+ cmd: {
2667
+ type: "setContentProtected",
2668
+ payload: protected_
2669
+ }
2670
+ }
2671
+ }
2672
+ });
2673
+ }
2674
+ async setSize(size) {
2675
+ if (!size || size.type !== "Logical" && size.type !== "Physical") {
2676
+ throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");
2677
+ }
2678
+ return invokeTauriCommand({
2679
+ __tauriModule: "Window",
2680
+ message: {
2681
+ cmd: "manage",
2682
+ data: {
2683
+ label: this.label,
2684
+ cmd: {
2685
+ type: "setSize",
2686
+ payload: {
2687
+ type: size.type,
2688
+ data: {
2689
+ width: size.width,
2690
+ height: size.height
2691
+ }
2692
+ }
2693
+ }
2694
+ }
2695
+ }
2696
+ });
2697
+ }
2698
+ async setMinSize(size) {
2699
+ if (size && size.type !== "Logical" && size.type !== "Physical") {
2700
+ throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");
2701
+ }
2702
+ return invokeTauriCommand({
2703
+ __tauriModule: "Window",
2704
+ message: {
2705
+ cmd: "manage",
2706
+ data: {
2707
+ label: this.label,
2708
+ cmd: {
2709
+ type: "setMinSize",
2710
+ payload: size ? {
2711
+ type: size.type,
2712
+ data: {
2713
+ width: size.width,
2714
+ height: size.height
2715
+ }
2716
+ } : null
2717
+ }
2718
+ }
2719
+ }
2720
+ });
2721
+ }
2722
+ async setMaxSize(size) {
2723
+ if (size && size.type !== "Logical" && size.type !== "Physical") {
2724
+ throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");
2725
+ }
2726
+ return invokeTauriCommand({
2727
+ __tauriModule: "Window",
2728
+ message: {
2729
+ cmd: "manage",
2730
+ data: {
2731
+ label: this.label,
2732
+ cmd: {
2733
+ type: "setMaxSize",
2734
+ payload: size ? {
2735
+ type: size.type,
2736
+ data: {
2737
+ width: size.width,
2738
+ height: size.height
2739
+ }
2740
+ } : null
2741
+ }
2742
+ }
2743
+ }
2744
+ });
2745
+ }
2746
+ async setPosition(position) {
2747
+ if (!position || position.type !== "Logical" && position.type !== "Physical") {
2748
+ throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");
2749
+ }
2750
+ return invokeTauriCommand({
2751
+ __tauriModule: "Window",
2752
+ message: {
2753
+ cmd: "manage",
2754
+ data: {
2755
+ label: this.label,
2756
+ cmd: {
2757
+ type: "setPosition",
2758
+ payload: {
2759
+ type: position.type,
2760
+ data: {
2761
+ x: position.x,
2762
+ y: position.y
2763
+ }
2764
+ }
2765
+ }
2766
+ }
2767
+ }
2768
+ });
2769
+ }
2770
+ async setFullscreen(fullscreen) {
2771
+ return invokeTauriCommand({
2772
+ __tauriModule: "Window",
2773
+ message: {
2774
+ cmd: "manage",
2775
+ data: {
2776
+ label: this.label,
2777
+ cmd: {
2778
+ type: "setFullscreen",
2779
+ payload: fullscreen
2780
+ }
2781
+ }
2782
+ }
2783
+ });
2784
+ }
2785
+ async setFocus() {
2786
+ return invokeTauriCommand({
2787
+ __tauriModule: "Window",
2788
+ message: {
2789
+ cmd: "manage",
2790
+ data: {
2791
+ label: this.label,
2792
+ cmd: {
2793
+ type: "setFocus"
2794
+ }
2795
+ }
2796
+ }
2797
+ });
2798
+ }
2799
+ async setIcon(icon) {
2800
+ return invokeTauriCommand({
2801
+ __tauriModule: "Window",
2802
+ message: {
2803
+ cmd: "manage",
2804
+ data: {
2805
+ label: this.label,
2806
+ cmd: {
2807
+ type: "setIcon",
2808
+ payload: {
2809
+ icon: typeof icon === "string" ? icon : Array.from(icon)
2810
+ }
2811
+ }
2812
+ }
2813
+ }
2814
+ });
2815
+ }
2816
+ async setSkipTaskbar(skip) {
2817
+ return invokeTauriCommand({
2818
+ __tauriModule: "Window",
2819
+ message: {
2820
+ cmd: "manage",
2821
+ data: {
2822
+ label: this.label,
2823
+ cmd: {
2824
+ type: "setSkipTaskbar",
2825
+ payload: skip
2826
+ }
2827
+ }
2828
+ }
2829
+ });
2830
+ }
2831
+ async setCursorGrab(grab) {
2832
+ return invokeTauriCommand({
2833
+ __tauriModule: "Window",
2834
+ message: {
2835
+ cmd: "manage",
2836
+ data: {
2837
+ label: this.label,
2838
+ cmd: {
2839
+ type: "setCursorGrab",
2840
+ payload: grab
2841
+ }
2842
+ }
2843
+ }
2844
+ });
2845
+ }
2846
+ async setCursorVisible(visible) {
2847
+ return invokeTauriCommand({
2848
+ __tauriModule: "Window",
2849
+ message: {
2850
+ cmd: "manage",
2851
+ data: {
2852
+ label: this.label,
2853
+ cmd: {
2854
+ type: "setCursorVisible",
2855
+ payload: visible
2856
+ }
2857
+ }
2858
+ }
2859
+ });
2860
+ }
2861
+ async setCursorIcon(icon) {
2862
+ return invokeTauriCommand({
2863
+ __tauriModule: "Window",
2864
+ message: {
2865
+ cmd: "manage",
2866
+ data: {
2867
+ label: this.label,
2868
+ cmd: {
2869
+ type: "setCursorIcon",
2870
+ payload: icon
2871
+ }
2872
+ }
2873
+ }
2874
+ });
2875
+ }
2876
+ async setCursorPosition(position) {
2877
+ if (!position || position.type !== "Logical" && position.type !== "Physical") {
2878
+ throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");
2879
+ }
2880
+ return invokeTauriCommand({
2881
+ __tauriModule: "Window",
2882
+ message: {
2883
+ cmd: "manage",
2884
+ data: {
2885
+ label: this.label,
2886
+ cmd: {
2887
+ type: "setCursorPosition",
2888
+ payload: {
2889
+ type: position.type,
2890
+ data: {
2891
+ x: position.x,
2892
+ y: position.y
2893
+ }
2894
+ }
2895
+ }
2896
+ }
2897
+ }
2898
+ });
2899
+ }
2900
+ async setIgnoreCursorEvents(ignore) {
2901
+ return invokeTauriCommand({
2902
+ __tauriModule: "Window",
2903
+ message: {
2904
+ cmd: "manage",
2905
+ data: {
2906
+ label: this.label,
2907
+ cmd: {
2908
+ type: "setIgnoreCursorEvents",
2909
+ payload: ignore
2910
+ }
2911
+ }
2912
+ }
2913
+ });
2914
+ }
2915
+ async startDragging() {
2916
+ return invokeTauriCommand({
2917
+ __tauriModule: "Window",
2918
+ message: {
2919
+ cmd: "manage",
2920
+ data: {
2921
+ label: this.label,
2922
+ cmd: {
2923
+ type: "startDragging"
2924
+ }
2925
+ }
2926
+ }
2927
+ });
2928
+ }
2929
+ async onResized(handler) {
2930
+ return this.listen(TauriEvent.WINDOW_RESIZED, (e) => {
2931
+ e.payload = mapPhysicalSize(e.payload);
2932
+ handler(e);
2933
+ });
2934
+ }
2935
+ async onMoved(handler) {
2936
+ return this.listen(TauriEvent.WINDOW_MOVED, (e) => {
2937
+ e.payload = mapPhysicalPosition(e.payload);
2938
+ handler(e);
2939
+ });
2940
+ }
2941
+ async onCloseRequested(handler) {
2942
+ return this.listen(TauriEvent.WINDOW_CLOSE_REQUESTED, (event5) => {
2943
+ const evt = new CloseRequestedEvent(event5);
2944
+ Promise.resolve(handler(evt)).then(() => {
2945
+ if (!evt.isPreventDefault()) {
2946
+ return this.close();
2947
+ }
2948
+ });
2949
+ });
2950
+ }
2951
+ async onFocusChanged(handler) {
2952
+ const unlistenFocus = await this.listen(TauriEvent.WINDOW_FOCUS, (event5) => {
2953
+ handler({ ...event5, payload: true });
2954
+ });
2955
+ const unlistenBlur = await this.listen(TauriEvent.WINDOW_BLUR, (event5) => {
2956
+ handler({ ...event5, payload: false });
2957
+ });
2958
+ return () => {
2959
+ unlistenFocus();
2960
+ unlistenBlur();
2961
+ };
2962
+ }
2963
+ async onScaleChanged(handler) {
2964
+ return this.listen(TauriEvent.WINDOW_SCALE_FACTOR_CHANGED, handler);
2965
+ }
2966
+ async onMenuClicked(handler) {
2967
+ return this.listen(TauriEvent.MENU, handler);
2968
+ }
2969
+ async onFileDropEvent(handler) {
2970
+ const unlistenFileDrop = await this.listen(TauriEvent.WINDOW_FILE_DROP, (event5) => {
2971
+ handler({ ...event5, payload: { type: "drop", paths: event5.payload } });
2972
+ });
2973
+ const unlistenFileHover = await this.listen(TauriEvent.WINDOW_FILE_DROP_HOVER, (event5) => {
2974
+ handler({ ...event5, payload: { type: "hover", paths: event5.payload } });
2975
+ });
2976
+ const unlistenCancel = await this.listen(TauriEvent.WINDOW_FILE_DROP_CANCELLED, (event5) => {
2977
+ handler({ ...event5, payload: { type: "cancel" } });
2978
+ });
2979
+ return () => {
2980
+ unlistenFileDrop();
2981
+ unlistenFileHover();
2982
+ unlistenCancel();
2983
+ };
2984
+ }
2985
+ async onThemeChanged(handler) {
2986
+ return this.listen(TauriEvent.WINDOW_THEME_CHANGED, handler);
2987
+ }
2988
+ }
2989
+
2990
+ class CloseRequestedEvent {
2991
+ constructor(event5) {
2992
+ this._preventDefault = false;
2993
+ this.event = event5.event;
2994
+ this.windowLabel = event5.windowLabel;
2995
+ this.id = event5.id;
2996
+ }
2997
+ preventDefault() {
2998
+ this._preventDefault = true;
2999
+ }
3000
+ isPreventDefault() {
3001
+ return this._preventDefault;
3002
+ }
3003
+ }
3004
+
3005
+ class WebviewWindow extends WindowManager {
3006
+ constructor(label, options = {}) {
3007
+ super(label);
3008
+ if (!options?.skip) {
3009
+ invokeTauriCommand({
3010
+ __tauriModule: "Window",
3011
+ message: {
3012
+ cmd: "createWebview",
3013
+ data: {
3014
+ options: {
3015
+ label,
3016
+ ...options
3017
+ }
3018
+ }
3019
+ }
3020
+ }).then(async () => this.emit("tauri://created")).catch(async (e) => this.emit("tauri://error", e));
3021
+ }
3022
+ }
3023
+ static getByLabel(label) {
3024
+ if (getAll().some((w) => w.label === label)) {
3025
+ return new WebviewWindow(label, { skip: true });
3026
+ }
3027
+ return null;
3028
+ }
3029
+ static async getFocusedWindow() {
3030
+ for (const w of getAll()) {
3031
+ if (await w.isFocused()) {
3032
+ return w;
3033
+ }
3034
+ }
3035
+ return null;
3036
+ }
3037
+ }
3038
+ var appWindow;
3039
+ if ("__TAURI_METADATA__" in window) {
3040
+ appWindow = new WebviewWindow(window.__TAURI_METADATA__.__currentWindow.label, {
3041
+ skip: true
3042
+ });
3043
+ } else {
3044
+ console.warn(`Could not find "window.__TAURI_METADATA__". The "appWindow" value will reference the "main" window label.\nNote that this is not an issue if running this frontend on a browser instead of a Tauri window.`);
3045
+ appWindow = new WebviewWindow("main", {
3046
+ skip: true
3047
+ });
3048
+ }
3049
+
3050
+ // src/index.ts
3051
+ async function openShell(link) {
3052
+ await open(link);
3053
+ }
3054
+ var desktop = {
3055
+ app: exports_app,
3056
+ event: exports_event,
3057
+ clipboard: exports_clipboard,
3058
+ dialog: exports_dialog,
3059
+ fs: exports_fs,
3060
+ globalShortcut: exports_globalShortcut,
3061
+ http: exports_http,
3062
+ mocks: exports_mocks,
3063
+ notification: exports_notification,
3064
+ os: exports_os,
3065
+ path: exports_path,
3066
+ process: exports_process,
3067
+ shell: exports_shell,
3068
+ tauri: exports_tauri,
3069
+ updater: exports_updater,
3070
+ window: exports_window
3071
+ };
3072
+ export {
3073
+ openShell,
3074
+ desktop
3075
+ };