stacks 0.58.72 → 0.59.1

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 (1109) hide show
  1. package/buddy/bin/cli.ts +90 -0
  2. package/buddy/build.ts +38 -0
  3. package/buddy/compile.ts +9 -0
  4. package/{core/buddy/dist/chunk-94f0ae38d2d27d78.js → buddy/dist/chunk-32440b2561f1e29c.js} +568 -485
  5. package/buddy/dist/cli.d.ts +1 -0
  6. package/buddy/dist/cli.js +107 -0
  7. package/buddy/dist/commands/build.d.ts +2 -0
  8. package/buddy/dist/commands/changelog.d.ts +2 -0
  9. package/buddy/dist/commands/clean.d.ts +2 -0
  10. package/buddy/dist/commands/cloud.d.ts +2 -0
  11. package/buddy/dist/commands/commit.d.ts +2 -0
  12. package/buddy/dist/commands/configure.d.ts +2 -0
  13. package/buddy/dist/commands/create.d.ts +2 -0
  14. package/buddy/dist/commands/deploy.d.ts +2 -0
  15. package/buddy/dist/commands/dev.d.ts +3 -0
  16. package/buddy/dist/commands/dns.d.ts +2 -0
  17. package/buddy/dist/commands/domains.d.ts +2 -0
  18. package/buddy/dist/commands/fresh.d.ts +2 -0
  19. package/buddy/dist/commands/generate.d.ts +2 -0
  20. package/buddy/dist/commands/http.d.ts +2 -0
  21. package/buddy/dist/commands/index.d.ts +31 -0
  22. package/buddy/dist/commands/install.d.ts +2 -0
  23. package/buddy/dist/commands/key.d.ts +2 -0
  24. package/buddy/dist/commands/lint.d.ts +2 -0
  25. package/buddy/dist/commands/list.d.ts +2 -0
  26. package/buddy/dist/commands/make.d.ts +2 -0
  27. package/buddy/dist/commands/migrate.d.ts +2 -0
  28. package/buddy/dist/commands/ports.d.ts +2 -0
  29. package/buddy/dist/commands/prepublish.d.ts +2 -0
  30. package/buddy/dist/commands/projects.d.ts +2 -0
  31. package/buddy/dist/commands/release.d.ts +2 -0
  32. package/buddy/dist/commands/seed.d.ts +2 -0
  33. package/buddy/dist/commands/setup.d.ts +4 -0
  34. package/buddy/dist/commands/test.d.ts +2 -0
  35. package/buddy/dist/commands/tinker.d.ts +2 -0
  36. package/buddy/dist/commands/types.d.ts +2 -0
  37. package/buddy/dist/commands/upgrade.d.ts +2 -0
  38. package/buddy/dist/commands/version.d.ts +2 -0
  39. package/buddy/dist/index.d.ts +1 -0
  40. package/{core/buddy → buddy}/dist/index.js +6 -3
  41. package/buddy/dist/stacks +0 -0
  42. package/{core/buddy → buddy}/package.json +3 -5
  43. package/{core/buddy → buddy}/src/cli.ts +36 -31
  44. package/{core/buddy → buddy}/src/commands/add.ts +1 -1
  45. package/{core/buddy → buddy}/src/commands/commit.ts +1 -1
  46. package/{core/buddy → buddy}/src/commands/create.ts +6 -0
  47. package/{core/buddy → buddy}/src/commands/deploy.ts +1 -1
  48. package/{core/buddy → buddy}/src/commands/dev.ts +1 -3
  49. package/{core/buddy → buddy}/src/commands/generate.ts +10 -0
  50. package/{core/buddy → buddy}/src/commands/index.ts +2 -0
  51. package/{core/buddy → buddy}/src/commands/list.ts +1 -1
  52. package/{core/buddy → buddy}/src/commands/make.ts +28 -2
  53. package/buddy/src/commands/ports.ts +180 -0
  54. package/{core/buddy → buddy}/src/commands/prepublish.ts +1 -1
  55. package/buddy/src/commands/projects.ts +58 -0
  56. package/{core/buddy → buddy}/src/commands/setup.ts +8 -54
  57. package/{core/buddy → buddy}/src/commands/types.ts +1 -1
  58. package/{core/buddy → buddy}/src/commands/upgrade.ts +51 -4
  59. package/buddy/tsconfig.tsbuildinfo +1 -0
  60. package/package.json +285 -285
  61. package/core/.simple-git-hooks.js +0 -3
  62. package/core/Caddyfile +0 -23
  63. package/core/actions/README.md +0 -58
  64. package/core/actions/build.ts +0 -5
  65. package/core/actions/dist/src/add.js +0 -29
  66. package/core/actions/dist/src/build/component-libs.js +0 -6
  67. package/core/actions/dist/src/build/core.js +0 -21
  68. package/core/actions/dist/src/build/stacks.js +0 -8
  69. package/core/actions/dist/src/build.js +0 -213
  70. package/core/actions/dist/src/bump.js +0 -14
  71. package/core/actions/dist/src/changelog.js +0 -17
  72. package/core/actions/dist/src/clean.js +0 -6
  73. package/core/actions/dist/src/commit.js +0 -17
  74. package/core/actions/dist/src/copy-types.js +0 -14
  75. package/core/actions/dist/src/database/seed.js +0 -1
  76. package/core/actions/dist/src/deploy/index.js +0 -31
  77. package/core/actions/dist/src/dev/components.js +0 -11
  78. package/core/actions/dist/src/dev/docs.js +0 -7
  79. package/core/actions/dist/src/dev/index.js +0 -92
  80. package/core/actions/dist/src/examples.js +0 -43
  81. package/core/actions/dist/src/fresh.js +0 -18
  82. package/core/actions/dist/src/generate/component-meta.js +0 -59
  83. package/core/actions/dist/src/generate/ide-helpers.js +0 -91
  84. package/core/actions/dist/src/generate/index.js +0 -147
  85. package/core/actions/dist/src/generate/lib-entries.js +0 -170
  86. package/core/actions/dist/src/generate/vscode-custom-data.js +0 -91
  87. package/core/actions/dist/src/helpers/component-meta.js +0 -50
  88. package/core/actions/dist/src/helpers/index.js +0 -48
  89. package/core/actions/dist/src/helpers/lib-entries.js +0 -161
  90. package/core/actions/dist/src/helpers/package-json.js +0 -136
  91. package/core/actions/dist/src/helpers/utils.js +0 -48
  92. package/core/actions/dist/src/helpers/vscode-custom-data.js +0 -83
  93. package/core/actions/dist/src/index.js +0 -583
  94. package/core/actions/dist/src/key-generate.js +0 -10
  95. package/core/actions/dist/src/lint/fix.js +0 -12
  96. package/core/actions/dist/src/lint/index.js +0 -17
  97. package/core/actions/dist/src/make.js +0 -291
  98. package/core/actions/dist/src/prepublish.js +0 -14
  99. package/core/actions/dist/src/release.js +0 -553
  100. package/core/actions/dist/src/test/coverage.js +0 -6
  101. package/core/actions/dist/src/test/feature.js +0 -6
  102. package/core/actions/dist/src/test/ui.js +0 -6
  103. package/core/actions/dist/src/test/unit.js +0 -6
  104. package/core/actions/dist/src/test.js +0 -6
  105. package/core/actions/dist/src/tinker.js +0 -5
  106. package/core/actions/dist/src/typecheck.js +0 -6
  107. package/core/actions/dist/src/types.js +0 -21
  108. package/core/actions/dist/src/upgrade/dependencies.js +0 -6
  109. package/core/actions/dist/src/upgrade/framework.js +0 -1
  110. package/core/actions/dist/src/upgrade/index.js +0 -54
  111. package/core/actions/dist/src/upgrade.js +0 -47
  112. package/core/actions/package.json +0 -92
  113. package/core/actions/src/action.ts +0 -52
  114. package/core/actions/src/actions.ts +0 -2
  115. package/core/actions/src/add.ts +0 -27
  116. package/core/actions/src/ai/request-model-access.ts +0 -74
  117. package/core/actions/src/build/cli.ts +0 -7
  118. package/core/actions/src/build/component-libs.ts +0 -5
  119. package/core/actions/src/build/core.ts +0 -34
  120. package/core/actions/src/build/desktop.ts +0 -7
  121. package/core/actions/src/build/docs.ts +0 -7
  122. package/core/actions/src/build/server.ts +0 -9
  123. package/core/actions/src/build/stacks.ts +0 -7
  124. package/core/actions/src/build.ts +0 -89
  125. package/core/actions/src/bump.ts +0 -18
  126. package/core/actions/src/cdn/invalidate-cache.ts +0 -27
  127. package/core/actions/src/changelog.ts +0 -21
  128. package/core/actions/src/clean.ts +0 -6
  129. package/core/actions/src/commit.ts +0 -14
  130. package/core/actions/src/copy-types.ts +0 -22
  131. package/core/actions/src/database/fields.ts +0 -111
  132. package/core/actions/src/database/migration-mysql.ts +0 -72
  133. package/core/actions/src/database/migration-sqlite.ts +0 -67
  134. package/core/actions/src/database/migration.ts +0 -10
  135. package/core/actions/src/database/seed.ts +0 -4
  136. package/core/actions/src/database/user-migration.ts +0 -20
  137. package/core/actions/src/deploy/create-receipt-rule.ts +0 -55
  138. package/core/actions/src/deploy/index.ts +0 -46
  139. package/core/actions/src/dev/api.ts +0 -18
  140. package/core/actions/src/dev/components.ts +0 -14
  141. package/core/actions/src/dev/dashboard.ts +0 -7
  142. package/core/actions/src/dev/desktop.ts +0 -7
  143. package/core/actions/src/dev/docs.ts +0 -7
  144. package/core/actions/src/dev/index.ts +0 -48
  145. package/core/actions/src/dev/system-tray.ts +0 -6
  146. package/core/actions/src/dev/views.ts +0 -7
  147. package/core/actions/src/domains/add.ts +0 -67
  148. package/core/actions/src/domains/purchase.ts +0 -76
  149. package/core/actions/src/domains/remove.ts +0 -38
  150. package/core/actions/src/examples.ts +0 -46
  151. package/core/actions/src/fresh.ts +0 -20
  152. package/core/actions/src/generate/action-types.ts +0 -89
  153. package/core/actions/src/generate/caddyfile.ts +0 -1
  154. package/core/actions/src/generate/component-meta.ts +0 -19
  155. package/core/actions/src/generate/custom-cli-file.ts +0 -24
  156. package/core/actions/src/generate/env-files.ts +0 -89
  157. package/core/actions/src/generate/ide-helpers.ts +0 -18
  158. package/core/actions/src/generate/index.ts +0 -132
  159. package/core/actions/src/generate/lib-entries.ts +0 -18
  160. package/core/actions/src/generate/model-classes.ts +0 -299
  161. package/core/actions/src/generate/model-generate.ts +0 -12
  162. package/core/actions/src/generate/pkgx-file.ts +0 -72
  163. package/core/actions/src/generate/types.ts +0 -6
  164. package/core/actions/src/generate/vscode-custom-data.ts +0 -19
  165. package/core/actions/src/generate/web-types.ts +0 -2
  166. package/core/actions/src/helpers/component-meta.ts +0 -93
  167. package/core/actions/src/helpers/index.ts +0 -1
  168. package/core/actions/src/helpers/lib-entries.ts +0 -139
  169. package/core/actions/src/helpers/package-json.ts +0 -96
  170. package/core/actions/src/helpers/utils.ts +0 -70
  171. package/core/actions/src/helpers/vscode-custom-data.ts +0 -35
  172. package/core/actions/src/index.ts +0 -29
  173. package/core/actions/src/key-generate.ts +0 -10
  174. package/core/actions/src/lint/fix.ts +0 -13
  175. package/core/actions/src/lint/index.ts +0 -27
  176. package/core/actions/src/make.ts +0 -322
  177. package/core/actions/src/migrate/database.ts +0 -1
  178. package/core/actions/src/migrate/dns.ts +0 -3
  179. package/core/actions/src/prepublish.ts +0 -17
  180. package/core/actions/src/release.ts +0 -18
  181. package/core/actions/src/start-caddy.ts +0 -13
  182. package/core/actions/src/test/coverage.ts +0 -5
  183. package/core/actions/src/test/feature.ts +0 -5
  184. package/core/actions/src/test/ui.ts +0 -5
  185. package/core/actions/src/test/unit.ts +0 -5
  186. package/core/actions/src/test.ts +0 -5
  187. package/core/actions/src/tinker.ts +0 -10
  188. package/core/actions/src/typecheck.ts +0 -5
  189. package/core/actions/src/types.ts +0 -20
  190. package/core/actions/src/upgrade/bun.ts +0 -4
  191. package/core/actions/src/upgrade/dependencies.ts +0 -0
  192. package/core/actions/src/upgrade/framework.ts +0 -30
  193. package/core/actions/src/upgrade/index.ts +0 -22
  194. package/core/actions/src/upgrade.ts +0 -68
  195. package/core/actions/tests/example.test.ts +0 -5
  196. package/core/ai/README.md +0 -67
  197. package/core/ai/build.ts +0 -9
  198. package/core/ai/dist/index.js +0 -10624
  199. package/core/ai/package.json +0 -60
  200. package/core/ai/src/chatbots.ts +0 -0
  201. package/core/ai/src/image-generation.ts +0 -0
  202. package/core/ai/src/index.ts +0 -8
  203. package/core/ai/src/personalization.ts +0 -0
  204. package/core/ai/src/search.ts +0 -0
  205. package/core/ai/src/text-generation.ts +0 -0
  206. package/core/ai/src/text-summary.ts +0 -0
  207. package/core/ai/src/utils/client-bedrock-runtime.ts +0 -38
  208. package/core/ai/src/utils/client-bedrock.ts +0 -53
  209. package/core/ai/tests/example.test.ts +0 -5
  210. package/core/ai/tsconfig.json +0 -3
  211. package/core/alias/README.md +0 -53
  212. package/core/alias/build.ts +0 -8
  213. package/core/alias/dist/index.js +0 -218
  214. package/core/alias/package.json +0 -52
  215. package/core/alias/src/index.ts +0 -220
  216. package/core/alias/tests/example.test.ts +0 -5
  217. package/core/alias/tsconfig.json +0 -3
  218. package/core/analytics/README.md +0 -55
  219. package/core/analytics/build.ts +0 -8
  220. package/core/analytics/dist/index.js +0 -5
  221. package/core/analytics/package.json +0 -55
  222. package/core/analytics/src/drivers/fathom.ts +0 -1
  223. package/core/analytics/src/drivers/index.ts +0 -1
  224. package/core/analytics/src/index.ts +0 -1
  225. package/core/analytics/tests/example.test.ts +0 -5
  226. package/core/analytics/tsconfig.json +0 -3
  227. package/core/api/build.ts +0 -7
  228. package/core/api/dist/index.js +0 -639
  229. package/core/api/package.json +0 -61
  230. package/core/api/src/index.ts +0 -115
  231. package/core/api/tsconfig.json +0 -3
  232. package/core/arrays/README.md +0 -59
  233. package/core/arrays/build.ts +0 -8
  234. package/core/arrays/dist/index.js +0 -469
  235. package/core/arrays/package.json +0 -60
  236. package/core/arrays/src/arr.ts +0 -3
  237. package/core/arrays/src/contains.ts +0 -87
  238. package/core/arrays/src/helpers.ts +0 -272
  239. package/core/arrays/src/index.ts +0 -3
  240. package/core/arrays/src/macro.ts +0 -131
  241. package/core/arrays/src/math.ts +0 -220
  242. package/core/arrays/tests/example.test.ts +0 -5
  243. package/core/arrays/tsconfig.json +0 -3
  244. package/core/auth/README.md +0 -59
  245. package/core/auth/build.ts +0 -8
  246. package/core/auth/dist/index.js +0 -5
  247. package/core/auth/package.json +0 -51
  248. package/core/auth/src/index.ts +0 -1
  249. package/core/auth/tests/example.test.ts +0 -5
  250. package/core/auth/tsconfig.json +0 -3
  251. package/core/buddy/bin/cli.ts +0 -46
  252. package/core/buddy/build.ts +0 -8
  253. package/core/buddy/compile.ts +0 -8
  254. package/core/buddy/dist/chunk-59a9de11428ba763.js +0 -993
  255. package/core/buddy/dist/cli.js +0 -676
  256. package/core/buddy/tsconfig.json +0 -3
  257. package/core/build/README.md +0 -59
  258. package/core/build/build.ts +0 -8
  259. package/core/build/dist/index.js +0 -19
  260. package/core/build/package.json +0 -64
  261. package/core/build/src/index.ts +0 -11
  262. package/core/build/tests/example.test.ts +0 -5
  263. package/core/build/tsconfig.json +0 -3
  264. package/core/build/web-types.config.cjs +0 -5
  265. package/core/build/web-types.ts +0 -15
  266. package/core/bun-create/bud/README.md +0 -45
  267. package/core/bun-create/bud/package.json +0 -151
  268. package/core/bun-create/buddy/README.md +0 -45
  269. package/core/bun-create/buddy/package.json +0 -150
  270. package/core/bun-create/stack/README.md +0 -45
  271. package/core/bun-create/stack/package.json +0 -150
  272. package/core/bun-create/stacks/README.md +0 -45
  273. package/core/bun-create/stacks/package.json +0 -150
  274. package/core/bun-create/stx/README.md +0 -45
  275. package/core/bun-create/stx/package.json +0 -151
  276. package/core/bun-plugin-yaml/README.md +0 -56
  277. package/core/bun-plugin-yaml/build.ts +0 -8
  278. package/core/bun-plugin-yaml/dist/index.js +0 -2763
  279. package/core/bun-plugin-yaml/package.json +0 -58
  280. package/core/bun-plugin-yaml/src/index.ts +0 -22
  281. package/core/bun-plugin-yaml/tests/example.test.ts +0 -5
  282. package/core/bun-plugin-yaml/tsconfig.json +0 -3
  283. package/core/cache/README.md +0 -59
  284. package/core/cache/build.ts +0 -8
  285. package/core/cache/dist/index.js +0 -88
  286. package/core/cache/package.json +0 -66
  287. package/core/cache/src/drivers/dynamodb.ts +0 -119
  288. package/core/cache/src/drivers/index.ts +0 -2
  289. package/core/cache/src/drivers/redis.ts +0 -37
  290. package/core/cache/src/index.ts +0 -1
  291. package/core/cache/tests/DynamoDB.test.ts +0 -135
  292. package/core/cache/tests/Memcached.test.ts +0 -51
  293. package/core/cache/tests/Redis.test.ts +0 -84
  294. package/core/cache/tsconfig.json +0 -3
  295. package/core/chat/README.md +0 -83
  296. package/core/chat/build.ts +0 -8
  297. package/core/chat/dist/index.js +0 -42
  298. package/core/chat/package.json +0 -74
  299. package/core/chat/src/drivers/discord.ts +0 -15
  300. package/core/chat/src/drivers/slack.ts +0 -24
  301. package/core/chat/src/drivers/teams.ts +0 -24
  302. package/core/chat/src/index.ts +0 -3
  303. package/core/chat/tests/example.test.ts +0 -5
  304. package/core/chat/tsconfig.json +0 -3
  305. package/core/cli/README.md +0 -168
  306. package/core/cli/build.ts +0 -8
  307. package/core/cli/dist/index.js +0 -780
  308. package/core/cli/package.json +0 -92
  309. package/core/cli/src/actions/index.ts +0 -1
  310. package/core/cli/src/actions/install.ts +0 -40
  311. package/core/cli/src/cli.ts +0 -30
  312. package/core/cli/src/command.ts +0 -47
  313. package/core/cli/src/console.ts +0 -79
  314. package/core/cli/src/exec.ts +0 -114
  315. package/core/cli/src/helpers.ts +0 -80
  316. package/core/cli/src/index.ts +0 -10
  317. package/core/cli/src/parse.ts +0 -179
  318. package/core/cli/src/run.ts +0 -99
  319. package/core/cli/src/spinner.ts +0 -3
  320. package/core/cli/src/utils.ts +0 -82
  321. package/core/cli/tests/example.test.ts +0 -5
  322. package/core/cli/tsconfig.json +0 -3
  323. package/core/cloud/README.md +0 -67
  324. package/core/cloud/build.ts +0 -12
  325. package/core/cloud/dist/index.js +0 -2013
  326. package/core/cloud/dist/origin-request.js +0 -27
  327. package/core/cloud/package.json +0 -119
  328. package/core/cloud/src/cloud/ai.ts +0 -94
  329. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package-lock.json +0 -386
  330. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +0 -15
  331. package/core/cloud/src/cloud/cache.ts +0 -0
  332. package/core/cloud/src/cloud/cdn.ts +0 -427
  333. package/core/cloud/src/cloud/cli.ts +0 -45
  334. package/core/cloud/src/cloud/compute.ts +0 -212
  335. package/core/cloud/src/cloud/dashboard.ts +0 -86
  336. package/core/cloud/src/cloud/database.ts +0 -0
  337. package/core/cloud/src/cloud/deployment.ts +0 -41
  338. package/core/cloud/src/cloud/dns.ts +0 -42
  339. package/core/cloud/src/cloud/docs.ts +0 -51
  340. package/core/cloud/src/cloud/email.ts +0 -339
  341. package/core/cloud/src/cloud/file-system.ts +0 -35
  342. package/core/cloud/src/cloud/index.ts +0 -135
  343. package/core/cloud/src/cloud/jump-box.ts +0 -48
  344. package/core/cloud/src/cloud/lambda/ask/index.js +0 -35
  345. package/core/cloud/src/cloud/lambda/cli-setup/index.js +0 -67
  346. package/core/cloud/src/cloud/lambda/summarize/index.js +0 -35
  347. package/core/cloud/src/cloud/network.ts +0 -32
  348. package/core/cloud/src/cloud/permissions.ts +0 -33
  349. package/core/cloud/src/cloud/queue.ts +0 -142
  350. package/core/cloud/src/cloud/redirects.ts +0 -45
  351. package/core/cloud/src/cloud/router-layer/nodejs/package.json +0 -15
  352. package/core/cloud/src/cloud/search-engine.ts +0 -108
  353. package/core/cloud/src/cloud/security.ts +0 -259
  354. package/core/cloud/src/cloud/storage.ts +0 -168
  355. package/core/cloud/src/edge/origin-request.ts +0 -49
  356. package/core/cloud/src/helpers.ts +0 -609
  357. package/core/cloud/src/index.ts +0 -2
  358. package/core/cloud/src/types.ts +0 -28
  359. package/core/cloud/tests/example.test.ts +0 -5
  360. package/core/cloud/tsconfig.json +0 -3
  361. package/core/cloud/zip.ts +0 -17
  362. package/core/collections/README.md +0 -71
  363. package/core/collections/build.ts +0 -8
  364. package/core/collections/dist/index.js +0 -6
  365. package/core/collections/package.json +0 -58
  366. package/core/collections/src/index.ts +0 -1
  367. package/core/collections/tests/example.test.ts +0 -5
  368. package/core/collections/tsconfig.json +0 -3
  369. package/core/config/README.md +0 -71
  370. package/core/config/build.ts +0 -8
  371. package/core/config/dist/index.js +0 -1807
  372. package/core/config/package.json +0 -54
  373. package/core/config/src/config.ts +0 -38
  374. package/core/config/src/defaults.ts +0 -478
  375. package/core/config/src/helpers.ts +0 -256
  376. package/core/config/src/index.ts +0 -2
  377. package/core/config/src/overrides.ts +0 -49
  378. package/core/config/tests/example.test.ts +0 -5
  379. package/core/config/tsconfig.json +0 -3
  380. package/core/custom-elements.json +0 -4
  381. package/core/database/README.md +0 -59
  382. package/core/database/build.ts +0 -8
  383. package/core/database/dist/index.js +0 -200
  384. package/core/database/package.json +0 -79
  385. package/core/database/src/index.ts +0 -63
  386. package/core/database/src/kysely-bun-worker/driver.ts +0 -144
  387. package/core/database/src/kysely-bun-worker/index.ts +0 -46
  388. package/core/database/src/kysely-bun-worker/mitt.ts +0 -24
  389. package/core/database/src/kysely-bun-worker/type.ts +0 -40
  390. package/core/database/src/kysely-bun-worker/worker.ts +0 -52
  391. package/core/database/src/migrations/index.ts +0 -73
  392. package/core/database/src/seeder/index.ts +0 -79
  393. package/core/database/tests/example.test.ts +0 -5
  394. package/core/database/tsconfig.json +0 -3
  395. package/core/datetime/README.md +0 -66
  396. package/core/datetime/build.ts +0 -8
  397. package/core/datetime/dist/index.js +0 -9
  398. package/core/datetime/package.json +0 -57
  399. package/core/datetime/src/index.ts +0 -7
  400. package/core/datetime/tests/example.test.ts +0 -5
  401. package/core/datetime/tsconfig.json +0 -3
  402. package/core/desktop/README.md +0 -49
  403. package/core/desktop/build.ts +0 -8
  404. package/core/desktop/dist/index.js +0 -3081
  405. package/core/desktop/package.json +0 -83
  406. package/core/desktop/src/index.ts +0 -43
  407. package/core/desktop/src/system-tray.ts +0 -1
  408. package/core/desktop/tests/example.test.ts +0 -5
  409. package/core/desktop/tsconfig.json +0 -3
  410. package/core/development/README.md +0 -27
  411. package/core/development/build.ts +0 -8
  412. package/core/development/dist/index.js +0 -6
  413. package/core/development/package.json +0 -77
  414. package/core/development/src/index.ts +0 -0
  415. package/core/development/tests/example.test.ts +0 -5
  416. package/core/development/tsconfig.json +0 -3
  417. package/core/dns/README.md +0 -56
  418. package/core/dns/build.ts +0 -8
  419. package/core/dns/dist/index.js +0 -166
  420. package/core/dns/package.json +0 -77
  421. package/core/dns/src/drivers/aws.ts +0 -224
  422. package/core/dns/src/index.ts +0 -20
  423. package/core/dns/tests/example.test.ts +0 -5
  424. package/core/dns/tsconfig.json +0 -3
  425. package/core/docs/README.md +0 -59
  426. package/core/docs/build.ts +0 -8
  427. package/core/docs/dist/index.js +0 -205
  428. package/core/docs/package.json +0 -70
  429. package/core/docs/src/index.ts +0 -67
  430. package/core/docs/src/meta.ts +0 -32
  431. package/core/docs/src/plugins.ts +0 -4
  432. package/core/docs/src/scripts/pwa.ts +0 -116
  433. package/core/docs/tests/example.test.ts +0 -5
  434. package/core/docs/tsconfig.json +0 -3
  435. package/core/email/README.md +0 -155
  436. package/core/email/build-inbound.ts +0 -8
  437. package/core/email/build.ts +0 -8
  438. package/core/email/dist/index.js +0 -287
  439. package/core/email/email-forwarder.cjs +0 -407
  440. package/core/email/email-forwarder.zip +0 -0
  441. package/core/email/package.json +0 -96
  442. package/core/email/src/drivers/emailjs.ts +0 -23
  443. package/core/email/src/drivers/index.ts +0 -9
  444. package/core/email/src/drivers/mailgun.ts +0 -21
  445. package/core/email/src/drivers/mailjet.ts +0 -21
  446. package/core/email/src/drivers/mandrill.ts +0 -19
  447. package/core/email/src/drivers/netcore.ts +0 -19
  448. package/core/email/src/drivers/nodemailer.ts +0 -23
  449. package/core/email/src/drivers/postmark.ts +0 -19
  450. package/core/email/src/drivers/sendgrid.ts +0 -20
  451. package/core/email/src/drivers/ses.ts +0 -22
  452. package/core/email/src/index.ts +0 -1
  453. package/core/email/src/send.ts +0 -37
  454. package/core/email/src/server/converter.ts +0 -305
  455. package/core/email/src/server/inbound.ts +0 -406
  456. package/core/email/src/server/outbound.ts +0 -296
  457. package/core/email/src/tailwind.config.ts +0 -39
  458. package/core/email/src/utils/config.ts +0 -7
  459. package/core/email/src/utils/template.html +0 -8
  460. package/core/email/tests/example.test.ts +0 -5
  461. package/core/email/tsconfig.json +0 -3
  462. package/core/enums/README.md +0 -54
  463. package/core/enums/build.ts +0 -8
  464. package/core/enums/dist/index.js +0 -101
  465. package/core/enums/package.json +0 -49
  466. package/core/enums/src/index.ts +0 -98
  467. package/core/enums/tests/example.test.ts +0 -5
  468. package/core/enums/tsconfig.json +0 -3
  469. package/core/env/README.md +0 -71
  470. package/core/env/build.ts +0 -8
  471. package/core/env/dist/index.js +0 -229
  472. package/core/env/package.json +0 -55
  473. package/core/env/src/index.ts +0 -76
  474. package/core/env/src/types.ts +0 -54
  475. package/core/env/src/utils.ts +0 -1
  476. package/core/env/tests/example.test.ts +0 -5
  477. package/core/env/tsconfig.json +0 -3
  478. package/core/error-handling/README.md +0 -131
  479. package/core/error-handling/build.ts +0 -8
  480. package/core/error-handling/dist/index.js +0 -432
  481. package/core/error-handling/package.json +0 -63
  482. package/core/error-handling/src/handler.ts +0 -51
  483. package/core/error-handling/src/index.ts +0 -2
  484. package/core/error-handling/tests/example.test.ts +0 -5
  485. package/core/error-handling/tsconfig.json +0 -3
  486. package/core/eslint-config/.gitattributes +0 -2
  487. package/core/eslint-config/README.md +0 -587
  488. package/core/eslint-config/build.ts +0 -8
  489. package/core/eslint-config/package.json +0 -122
  490. package/core/eslint-config/src/configs/comments.ts +0 -19
  491. package/core/eslint-config/src/configs/formatters.ts +0 -187
  492. package/core/eslint-config/src/configs/ignores.ts +0 -10
  493. package/core/eslint-config/src/configs/imports.ts +0 -46
  494. package/core/eslint-config/src/configs/index.ts +0 -21
  495. package/core/eslint-config/src/configs/javascript.ts +0 -226
  496. package/core/eslint-config/src/configs/jsdoc.ts +0 -42
  497. package/core/eslint-config/src/configs/jsonc.ts +0 -86
  498. package/core/eslint-config/src/configs/markdown.ts +0 -110
  499. package/core/eslint-config/src/configs/node.ts +0 -23
  500. package/core/eslint-config/src/configs/perfectionist.ts +0 -18
  501. package/core/eslint-config/src/configs/react.ts +0 -111
  502. package/core/eslint-config/src/configs/sort.ts +0 -223
  503. package/core/eslint-config/src/configs/stylistic.ts +0 -57
  504. package/core/eslint-config/src/configs/svelte.ts +0 -107
  505. package/core/eslint-config/src/configs/test.ts +0 -54
  506. package/core/eslint-config/src/configs/toml.ts +0 -72
  507. package/core/eslint-config/src/configs/typescript.ts +0 -157
  508. package/core/eslint-config/src/configs/unicorn.ts +0 -41
  509. package/core/eslint-config/src/configs/unocss.ts +0 -43
  510. package/core/eslint-config/src/configs/vue.ts +0 -168
  511. package/core/eslint-config/src/configs/yaml.ts +0 -72
  512. package/core/eslint-config/src/factory.ts +0 -255
  513. package/core/eslint-config/src/globs.ts +0 -91
  514. package/core/eslint-config/src/index.ts +0 -9
  515. package/core/eslint-config/src/plugins.ts +0 -10
  516. package/core/eslint-config/src/stub.d.ts +0 -3
  517. package/core/eslint-config/src/types.ts +0 -366
  518. package/core/eslint-config/src/utils.ts +0 -72
  519. package/core/eslint-config/src/vendor/prettier-types.ts +0 -136
  520. package/core/eslint-config/test/cli.spec.ts +0 -91
  521. package/core/eslint-config/test/fixtures.test.ts +0 -125
  522. package/core/eslint-config/tsconfig.json +0 -17
  523. package/core/eslint-config/tsup.config.ts +0 -8
  524. package/core/events/README.md +0 -76
  525. package/core/events/build.ts +0 -8
  526. package/core/events/dist/index.js +0 -63
  527. package/core/events/package.json +0 -53
  528. package/core/events/src/index.ts +0 -167
  529. package/core/events/tests/example.test.ts +0 -5
  530. package/core/events/tsconfig.json +0 -3
  531. package/core/faker/README.md +0 -53
  532. package/core/faker/build.ts +0 -8
  533. package/core/faker/dist/index.js +0 -6
  534. package/core/faker/package.json +0 -62
  535. package/core/faker/src/index.ts +0 -1
  536. package/core/faker/tests/example.test.ts +0 -5
  537. package/core/faker/tsconfig.json +0 -3
  538. package/core/git/README.md +0 -65
  539. package/core/git/build.ts +0 -8
  540. package/core/git/dist/index.js +0 -46
  541. package/core/git/package.json +0 -69
  542. package/core/git/src/index.ts +0 -63
  543. package/core/git/tests/example.test.ts +0 -5
  544. package/core/git/tsconfig.json +0 -3
  545. package/core/health/README.md +0 -56
  546. package/core/health/build.ts +0 -8
  547. package/core/health/dist/index.js +0 -9
  548. package/core/health/package.json +0 -59
  549. package/core/health/src/drivers/index.ts +0 -1
  550. package/core/health/src/drivers/ohdear.ts +0 -1
  551. package/core/health/src/index.ts +0 -2
  552. package/core/health/src/notifications/index.ts +0 -1
  553. package/core/health/tests/example.test.ts +0 -5
  554. package/core/health/tsconfig.json +0 -3
  555. package/core/http/README.md +0 -59
  556. package/core/http/build.ts +0 -8
  557. package/core/http/dist/index.js +0 -65
  558. package/core/http/package.json +0 -53
  559. package/core/http/src/index.ts +0 -71
  560. package/core/http/tsconfig.json +0 -3
  561. package/core/index.ts +0 -57
  562. package/core/lint/.eslintrc.json +0 -3
  563. package/core/lint/README.md +0 -73
  564. package/core/lint/build.ts +0 -8
  565. package/core/lint/dist/index.js +0 -6
  566. package/core/lint/package.json +0 -70
  567. package/core/lint/src/index.ts +0 -3
  568. package/core/lint/tests/example.test.ts +0 -5
  569. package/core/lint/tsconfig.json +0 -3
  570. package/core/logging/README.md +0 -58
  571. package/core/logging/build.ts +0 -8
  572. package/core/logging/dist/index.js +0 -89
  573. package/core/logging/package.json +0 -62
  574. package/core/logging/src/index.ts +0 -136
  575. package/core/logging/tests/example.test.ts +0 -5
  576. package/core/logging/tsconfig.json +0 -3
  577. package/core/notifications/README.md +0 -272
  578. package/core/notifications/build.ts +0 -8
  579. package/core/notifications/dist/index.js +0 -54
  580. package/core/notifications/package.json +0 -104
  581. package/core/notifications/src/drivers/chat.ts +0 -1
  582. package/core/notifications/src/drivers/email.ts +0 -1
  583. package/core/notifications/src/drivers/index.ts +0 -4
  584. package/core/notifications/src/drivers/push.ts +0 -1
  585. package/core/notifications/src/drivers/sms.ts +0 -1
  586. package/core/notifications/src/index.ts +0 -51
  587. package/core/notifications/src/tailwind.config.ts +0 -39
  588. package/core/notifications/src/utils/config.ts +0 -5
  589. package/core/notifications/src/utils/template.html +0 -8
  590. package/core/notifications/tests/chat/Slack.test.ts +0 -34
  591. package/core/notifications/tests/email/Mailgun.test.ts +0 -40
  592. package/core/notifications/tests/email/Sendgrid.test.ts +0 -40
  593. package/core/notifications/tests/sms/Twilio.test.ts +0 -37
  594. package/core/notifications/tsconfig.json +0 -3
  595. package/core/objects/README.md +0 -71
  596. package/core/objects/build.ts +0 -8
  597. package/core/objects/dist/index.js +0 -64
  598. package/core/objects/package.json +0 -64
  599. package/core/objects/src/index.ts +0 -145
  600. package/core/objects/tests/example.test.ts +0 -5
  601. package/core/objects/tsconfig.json +0 -3
  602. package/core/orm/README.md +0 -48
  603. package/core/orm/build.ts +0 -8
  604. package/core/orm/dist/index.js +0 -6
  605. package/core/orm/package.json +0 -60
  606. package/core/orm/src/index.ts +0 -49
  607. package/core/orm/tests/example.test.ts +0 -5
  608. package/core/orm/tsconfig.json +0 -3
  609. package/core/path/README.md +0 -64
  610. package/core/path/build.ts +0 -8
  611. package/core/path/dist/index.js +0 -573
  612. package/core/path/package.json +0 -55
  613. package/core/path/src/index.ts +0 -615
  614. package/core/path/tests/example.test.ts +0 -5
  615. package/core/path/tsconfig.json +0 -3
  616. package/core/payments/README.md +0 -64
  617. package/core/payments/build.ts +0 -8
  618. package/core/payments/dist/index.js +0 -6296
  619. package/core/payments/package.json +0 -61
  620. package/core/payments/src/drivers/stripe.ts +0 -116
  621. package/core/payments/src/index.ts +0 -1
  622. package/core/payments/tests/example.test.ts +0 -5
  623. package/core/payments/tsconfig.json +0 -3
  624. package/core/playwright.config.ts +0 -109
  625. package/core/push/README.md +0 -71
  626. package/core/push/build.ts +0 -9
  627. package/core/push/dist/index.js +0 -35
  628. package/core/push/package.json +0 -65
  629. package/core/push/src/drivers/expo.ts +0 -21
  630. package/core/push/src/drivers/fcm.ts +0 -21
  631. package/core/push/src/drivers/index.ts +0 -2
  632. package/core/push/src/index.ts +0 -1
  633. package/core/push/tests/example.test.ts +0 -5
  634. package/core/push/tsconfig.json +0 -3
  635. package/core/query-builder/README.md +0 -48
  636. package/core/query-builder/build.ts +0 -8
  637. package/core/query-builder/dist/index.js +0 -18
  638. package/core/query-builder/package.json +0 -60
  639. package/core/query-builder/src/index.ts +0 -1
  640. package/core/query-builder/src/kysely.ts +0 -38
  641. package/core/query-builder/tests/example.test.ts +0 -5
  642. package/core/query-builder/tsconfig.json +0 -3
  643. package/core/queue/README.md +0 -59
  644. package/core/queue/build.ts +0 -8
  645. package/core/queue/dist/index.js +0 -25
  646. package/core/queue/package.json +0 -56
  647. package/core/queue/src/index.ts +0 -23
  648. package/core/queue/tests/example.test.ts +0 -5
  649. package/core/queue/tsconfig.json +0 -3
  650. package/core/raycast/package.json +0 -9
  651. package/core/raycast/src/index.ts +0 -0
  652. package/core/realtime/README.md +0 -59
  653. package/core/realtime/build.ts +0 -8
  654. package/core/realtime/dist/index.js +0 -6
  655. package/core/realtime/package.json +0 -53
  656. package/core/realtime/src/drivers/index.ts +0 -1
  657. package/core/realtime/src/index.ts +0 -1
  658. package/core/realtime/tests/example.test.ts +0 -5
  659. package/core/realtime/tsconfig.json +0 -3
  660. package/core/repl/README.md +0 -53
  661. package/core/repl/build.ts +0 -8
  662. package/core/repl/dist/index.js +0 -6
  663. package/core/repl/package.json +0 -60
  664. package/core/repl/src/index.ts +0 -1
  665. package/core/repl/tests/example.test.ts +0 -5
  666. package/core/repl/tsconfig.json +0 -3
  667. package/core/router/README.md +0 -59
  668. package/core/router/build.ts +0 -8
  669. package/core/router/dist/index.js +0 -1524
  670. package/core/router/package.json +0 -64
  671. package/core/router/src/index.ts +0 -4
  672. package/core/router/src/middleware.ts +0 -34
  673. package/core/router/src/request.ts +0 -44
  674. package/core/router/src/router.ts +0 -294
  675. package/core/router/src/server.ts +0 -173
  676. package/core/router/tests/example.test.ts +0 -5
  677. package/core/router/tsconfig.json +0 -3
  678. package/core/scheduler/README.md +0 -137
  679. package/core/scheduler/build.ts +0 -8
  680. package/core/scheduler/dist/index.js +0 -742
  681. package/core/scheduler/package.json +0 -62
  682. package/core/scheduler/src/constants.ts +0 -81
  683. package/core/scheduler/src/errors.ts +0 -7
  684. package/core/scheduler/src/index.ts +0 -20
  685. package/core/scheduler/src/job.ts +0 -315
  686. package/core/scheduler/src/schedule.ts +0 -116
  687. package/core/scheduler/src/time.ts +0 -823
  688. package/core/scheduler/src/types/cron.ts +0 -98
  689. package/core/scheduler/src/types/utils.ts +0 -14
  690. package/core/scheduler/src/utils.ts +0 -19
  691. package/core/scheduler/tests/cron.fuzz.ts +0 -120
  692. package/core/scheduler/tests/cron.test.ts +0 -1243
  693. package/core/scheduler/tests/crontime.test.ts +0 -780
  694. package/core/scheduler/tsconfig.json +0 -3
  695. package/core/search-engine/README.md +0 -66
  696. package/core/search-engine/build.ts +0 -8
  697. package/core/search-engine/dist/index.js +0 -87
  698. package/core/search-engine/package.json +0 -68
  699. package/core/search-engine/src/drivers/index.ts +0 -1
  700. package/core/search-engine/src/drivers/meilisearch.ts +0 -124
  701. package/core/search-engine/src/drivers/opensearch.ts +0 -59
  702. package/core/search-engine/src/helpers.ts +0 -138
  703. package/core/search-engine/src/index.ts +0 -69
  704. package/core/search-engine/tests/example.test.ts +0 -5
  705. package/core/search-engine/tsconfig.json +0 -3
  706. package/core/security/README.md +0 -66
  707. package/core/security/build.ts +0 -8
  708. package/core/security/dist/index.js +0 -3285
  709. package/core/security/package.json +0 -66
  710. package/core/security/src/crypt.ts +0 -23
  711. package/core/security/src/hash.ts +0 -54
  712. package/core/security/src/index.ts +0 -3
  713. package/core/security/src/key.ts +0 -11
  714. package/core/security/tests/example.test.ts +0 -5
  715. package/core/security/tsconfig.json +0 -3
  716. package/core/server/README.md +0 -51
  717. package/core/server/build.ts +0 -8
  718. package/core/server/dist/index.js +0 -52
  719. package/core/server/package.json +0 -68
  720. package/core/server/src/config.ts +0 -64
  721. package/core/server/src/index.ts +0 -1
  722. package/core/server/tests/example.test.ts +0 -5
  723. package/core/server/tsconfig.json +0 -3
  724. package/core/signals/README.md +0 -105
  725. package/core/signals/build.ts +0 -8
  726. package/core/signals/dist/index.js +0 -9
  727. package/core/signals/package.json +0 -64
  728. package/core/signals/src/index.ts +0 -1
  729. package/core/signals/tests/example.test.ts +0 -5
  730. package/core/signals/tsconfig.json +0 -3
  731. package/core/slug/README.md +0 -59
  732. package/core/slug/build.ts +0 -8
  733. package/core/slug/dist/index.js +0 -5
  734. package/core/slug/package.json +0 -66
  735. package/core/slug/src/index.ts +0 -56
  736. package/core/slug/tests/example.test.ts +0 -5
  737. package/core/slug/tsconfig.json +0 -3
  738. package/core/sms/README.md +0 -137
  739. package/core/sms/build.ts +0 -9
  740. package/core/sms/dist/index.js +0 -240
  741. package/core/sms/package.json +0 -83
  742. package/core/sms/src/drivers/gupshup.ts +0 -21
  743. package/core/sms/src/drivers/index.ts +0 -8
  744. package/core/sms/src/drivers/nexmo.ts +0 -23
  745. package/core/sms/src/drivers/plivo.ts +0 -23
  746. package/core/sms/src/drivers/sms77.ts +0 -22
  747. package/core/sms/src/drivers/sns.ts +0 -22
  748. package/core/sms/src/drivers/telnyx.ts +0 -23
  749. package/core/sms/src/drivers/termii.ts +0 -22
  750. package/core/sms/src/drivers/twilio.ts +0 -23
  751. package/core/sms/src/index.ts +0 -1
  752. package/core/sms/tests/example.test.ts +0 -5
  753. package/core/sms/tsconfig.json +0 -3
  754. package/core/stacks +0 -2
  755. package/core/storage/README.md +0 -74
  756. package/core/storage/build.ts +0 -8
  757. package/core/storage/dist/index.js +0 -816
  758. package/core/storage/package.json +0 -78
  759. package/core/storage/src/copy.ts +0 -42
  760. package/core/storage/src/delete.ts +0 -131
  761. package/core/storage/src/drivers/aws.ts +0 -15
  762. package/core/storage/src/drivers/index.ts +0 -1
  763. package/core/storage/src/files.ts +0 -187
  764. package/core/storage/src/folders.ts +0 -51
  765. package/core/storage/src/fs.ts +0 -9
  766. package/core/storage/src/glob.ts +0 -1
  767. package/core/storage/src/hash.ts +0 -39
  768. package/core/storage/src/helpers.ts +0 -29
  769. package/core/storage/src/index.ts +0 -11
  770. package/core/storage/src/move.ts +0 -84
  771. package/core/storage/src/storage.ts +0 -10
  772. package/core/storage/src/visibility.ts +0 -6
  773. package/core/storage/src/zip.ts +0 -55
  774. package/core/storage/tests/example.test.ts +0 -5
  775. package/core/storage/tsconfig.json +0 -3
  776. package/core/strings/README.md +0 -137
  777. package/core/strings/build.ts +0 -9
  778. package/core/strings/dist/index.js +0 -393
  779. package/core/strings/package.json +0 -82
  780. package/core/strings/src/case.ts +0 -27
  781. package/core/strings/src/helpers.ts +0 -3
  782. package/core/strings/src/index.ts +0 -2
  783. package/core/strings/src/is.ts +0 -170
  784. package/core/strings/src/macro.ts +0 -131
  785. package/core/strings/src/pluralize.ts +0 -26
  786. package/core/strings/src/string.ts +0 -5
  787. package/core/strings/src/types.ts +0 -4
  788. package/core/strings/src/utils.ts +0 -117
  789. package/core/strings/tests/example.test.ts +0 -5
  790. package/core/strings/tsconfig.json +0 -3
  791. package/core/stx +0 -2
  792. package/core/tables/README.md +0 -110
  793. package/core/tables/examples/vue/App.stx +0 -12
  794. package/core/tables/examples/vue/favicon.png +0 -0
  795. package/core/tables/examples/vue/index.html +0 -20
  796. package/core/tables/examples/web/favicon.png +0 -0
  797. package/core/tables/examples/web/index.html +0 -13
  798. package/core/tables/index.html +0 -13
  799. package/core/tables/package.json +0 -57
  800. package/core/tables/src/App.stx +0 -23
  801. package/core/tables/src/commands/index.ts +0 -1
  802. package/core/tables/src/components/Demo.stx +0 -84
  803. package/core/tables/src/components/README.md +0 -109
  804. package/core/tables/src/components/Table.stx +0 -342
  805. package/core/tables/src/components/TableBody.stx +0 -32
  806. package/core/tables/src/components/TableCellActionItems.stx +0 -9
  807. package/core/tables/src/components/TableFilters.stx +0 -704
  808. package/core/tables/src/components/TableHead.stx +0 -60
  809. package/core/tables/src/components/TablePagination.stx +0 -131
  810. package/core/tables/src/components/TableRow.stx +0 -73
  811. package/core/tables/src/components/TableSearch.stx +0 -39
  812. package/core/tables/src/components/Tooltip.stx +0 -10
  813. package/core/tables/src/components.d.ts +0 -24
  814. package/core/tables/src/config/tables.ts +0 -2
  815. package/core/tables/src/docs/index.md +0 -0
  816. package/core/tables/src/functions/README.md +0 -8
  817. package/core/tables/src/functions/dark.ts +0 -3
  818. package/core/tables/src/functions/index.ts +0 -2
  819. package/core/tables/src/functions/table.ts +0 -207
  820. package/core/tables/src/main.ts +0 -4
  821. package/core/tables/tests/example.test.ts +0 -5
  822. package/core/tables/tsconfig.json +0 -3
  823. package/core/testing/README.md +0 -59
  824. package/core/testing/build.ts +0 -8
  825. package/core/testing/dist/index.js +0 -14983
  826. package/core/testing/package.json +0 -65
  827. package/core/testing/src/index.ts +0 -13
  828. package/core/testing/tsconfig.json +0 -3
  829. package/core/tinker/package.json +0 -47
  830. package/core/tinker/src/index.ts +0 -1
  831. package/core/tinker/tsconfig.json +0 -3
  832. package/core/tmp.json +0 -0
  833. package/core/tsconfig.json +0 -70
  834. package/core/tunnel/README.md +0 -53
  835. package/core/tunnel/build.ts +0 -8
  836. package/core/tunnel/dist/index.js +0 -10
  837. package/core/tunnel/package.json +0 -58
  838. package/core/tunnel/src/index.ts +0 -6
  839. package/core/tunnel/tests/example.test.ts +0 -5
  840. package/core/tunnel/tsconfig.json +0 -3
  841. package/core/types/README.md +0 -59
  842. package/core/types/build.ts +0 -8
  843. package/core/types/dist/index.js +0 -2285
  844. package/core/types/package.json +0 -87
  845. package/core/types/src/ai.ts +0 -26
  846. package/core/types/src/analytics.ts +0 -21
  847. package/core/types/src/api.ts +0 -65
  848. package/core/types/src/app.ts +0 -172
  849. package/core/types/src/auto-imports.ts +0 -1
  850. package/core/types/src/binary.ts +0 -13
  851. package/core/types/src/build.ts +0 -2
  852. package/core/types/src/cache.ts +0 -98
  853. package/core/types/src/cdn.ts +0 -17
  854. package/core/types/src/chat.ts +0 -5
  855. package/core/types/src/cli.ts +0 -315
  856. package/core/types/src/cloud.ts +0 -105
  857. package/core/types/src/components.ts +0 -64
  858. package/core/types/src/configure.ts +0 -13
  859. package/core/types/src/cron-jobs.ts +0 -51
  860. package/core/types/src/database.ts +0 -45
  861. package/core/types/src/dependencies.ts +0 -69
  862. package/core/types/src/deploy.ts +0 -13
  863. package/core/types/src/dns.ts +0 -186
  864. package/core/types/src/docs.ts +0 -26
  865. package/core/types/src/email.ts +0 -16
  866. package/core/types/src/env.ts +0 -1
  867. package/core/types/src/errors.ts +0 -11
  868. package/core/types/src/events.ts +0 -30
  869. package/core/types/src/exit-code.ts +0 -10
  870. package/core/types/src/file-systems.ts +0 -70
  871. package/core/types/src/git.ts +0 -133
  872. package/core/types/src/hashing.ts +0 -131
  873. package/core/types/src/helpers.ts +0 -11
  874. package/core/types/src/i18n.ts +0 -19
  875. package/core/types/src/index.ts +0 -60
  876. package/core/types/src/inspect.ts +0 -10
  877. package/core/types/src/layout.ts +0 -8
  878. package/core/types/src/library.ts +0 -156
  879. package/core/types/src/logger.ts +0 -54
  880. package/core/types/src/manifest.ts +0 -9
  881. package/core/types/src/model.ts +0 -72
  882. package/core/types/src/money.ts +0 -3
  883. package/core/types/src/native.ts +0 -0
  884. package/core/types/src/notifications.ts +0 -147
  885. package/core/types/src/pages.ts +0 -10
  886. package/core/types/src/payments.ts +0 -65
  887. package/core/types/src/promise.ts +0 -1
  888. package/core/types/src/push.ts +0 -36
  889. package/core/types/src/pwa.ts +0 -8
  890. package/core/types/src/queue.ts +0 -38
  891. package/core/types/src/reactivity.ts +0 -1
  892. package/core/types/src/request.ts +0 -3
  893. package/core/types/src/router.ts +0 -73
  894. package/core/types/src/scheduler.ts +0 -1
  895. package/core/types/src/search-engine.ts +0 -136
  896. package/core/types/src/security.ts +0 -23
  897. package/core/types/src/services.ts +0 -44
  898. package/core/types/src/sms.ts +0 -5
  899. package/core/types/src/ssg.ts +0 -3
  900. package/core/types/src/stacks.ts +0 -236
  901. package/core/types/src/storage.ts +0 -13
  902. package/core/types/src/tables.ts +0 -57
  903. package/core/types/src/team.ts +0 -8
  904. package/core/types/src/ui.ts +0 -189
  905. package/core/types/src/utils.ts +0 -47
  906. package/core/types/tsconfig.json +0 -3
  907. package/core/ui/README.md +0 -66
  908. package/core/ui/build.ts +0 -8
  909. package/core/ui/dist/components.js +0 -68
  910. package/core/ui/dist/index.js +0 -121
  911. package/core/ui/package.json +0 -93
  912. package/core/ui/src/components/autocomplete.ts +0 -0
  913. package/core/ui/src/components/disclosure.ts +0 -5
  914. package/core/ui/src/components/menu.ts +0 -1
  915. package/core/ui/src/components/modal.ts +0 -6
  916. package/core/ui/src/components/popover.ts +0 -1
  917. package/core/ui/src/components/radio-group.ts +0 -5
  918. package/core/ui/src/components/select.ts +0 -6
  919. package/core/ui/src/components/tabs.ts +0 -1
  920. package/core/ui/src/components/toggle.ts +0 -1
  921. package/core/ui/src/components/transition.ts +0 -1
  922. package/core/ui/src/components.ts +0 -10
  923. package/core/ui/src/index.ts +0 -15
  924. package/core/ui/src/uno.config.ts +0 -66
  925. package/core/ui/tests/example.test.ts +0 -5
  926. package/core/ui/tsconfig.json +0 -3
  927. package/core/utils/build.ts +0 -8
  928. package/core/utils/dist/index.js +0 -1311
  929. package/core/utils/package.json +0 -111
  930. package/core/utils/scripts/export-size.ts +0 -94
  931. package/core/utils/src/base.ts +0 -12
  932. package/core/utils/src/clean.ts +0 -17
  933. package/core/utils/src/config.ts +0 -25
  934. package/core/utils/src/currency.ts +0 -29
  935. package/core/utils/src/debounce.ts +0 -1
  936. package/core/utils/src/delete.ts +0 -1
  937. package/core/utils/src/equal.ts +0 -27
  938. package/core/utils/src/export-size.ts +0 -1
  939. package/core/utils/src/function.ts +0 -32
  940. package/core/utils/src/git.ts +0 -11
  941. package/core/utils/src/glob.ts +0 -1
  942. package/core/utils/src/guards.ts +0 -39
  943. package/core/utils/src/hash.ts +0 -26
  944. package/core/utils/src/helpers.ts +0 -187
  945. package/core/utils/src/index.ts +0 -23
  946. package/core/utils/src/macroable.ts +0 -1
  947. package/core/utils/src/math.ts +0 -30
  948. package/core/utils/src/p.ts +0 -119
  949. package/core/utils/src/promise.ts +0 -117
  950. package/core/utils/src/regex.ts +0 -2
  951. package/core/utils/src/retry.ts +0 -33
  952. package/core/utils/src/sleep.ts +0 -60
  953. package/core/utils/src/throttle.ts +0 -44
  954. package/core/utils/src/vendors.ts +0 -258
  955. package/core/utils/src/versions.ts +0 -6
  956. package/core/utils/tests/example.test.ts +0 -5
  957. package/core/utils/tsconfig.json +0 -3
  958. package/core/validation/README.md +0 -53
  959. package/core/validation/build.ts +0 -5
  960. package/core/validation/dist/index.js +0 -187
  961. package/core/validation/package.json +0 -64
  962. package/core/validation/src/index.ts +0 -4
  963. package/core/validation/src/is.ts +0 -111
  964. package/core/validation/src/rules.ts +0 -126
  965. package/core/validation/src/types/index.ts +0 -7
  966. package/core/validation/src/types/money.ts +0 -17
  967. package/core/validation/src/validate.ts +0 -33
  968. package/core/validation/tests/example.test.ts +0 -5
  969. package/core/validation/tsconfig.json +0 -3
  970. package/core/vite/README.md +0 -59
  971. package/core/vite/build.ts +0 -9
  972. package/core/vite/dist/index.js +0 -644
  973. package/core/vite/package.json +0 -122
  974. package/core/vite/src/api.ts +0 -17
  975. package/core/vite/src/components.ts +0 -79
  976. package/core/vite/src/dashboard.ts +0 -100
  977. package/core/vite/src/desktop.ts +0 -3
  978. package/core/vite/src/example-vue.ts +0 -20
  979. package/core/vite/src/example-wc.ts +0 -24
  980. package/core/vite/src/functions.ts +0 -54
  981. package/core/vite/src/index.ts +0 -18
  982. package/core/vite/src/plugin/auto-imports.ts +0 -39
  983. package/core/vite/src/plugin/components.ts +0 -17
  984. package/core/vite/src/plugin/css-engine.ts +0 -18
  985. package/core/vite/src/plugin/devtools.ts +0 -1
  986. package/core/vite/src/plugin/docs.ts +0 -18
  987. package/core/vite/src/plugin/fonts.ts +0 -6
  988. package/core/vite/src/plugin/i18n.ts +0 -13
  989. package/core/vite/src/plugin/inspect.ts +0 -6
  990. package/core/vite/src/plugin/layouts.ts +0 -17
  991. package/core/vite/src/plugin/markdown.ts +0 -26
  992. package/core/vite/src/plugin/pages.ts +0 -34
  993. package/core/vite/src/plugin/presets.ts +0 -17
  994. package/core/vite/src/plugin/pwa.ts +0 -33
  995. package/core/vite/src/plugin/router.ts +0 -17
  996. package/core/vite/src/plugin/stacks.ts +0 -150
  997. package/core/vite/src/plugin/ui-engine.ts +0 -19
  998. package/core/vite/src/plugins.ts +0 -12
  999. package/core/vite/src/system-tray.ts +0 -100
  1000. package/core/vite/src/views.ts +0 -97
  1001. package/core/vite/src/web-components.ts +0 -67
  1002. package/core/vite/tests/example.test.ts +0 -5
  1003. package/core/vite/tsconfig.json +0 -3
  1004. package/core/web-types.json +0 -67
  1005. package/core/whois/README.md +0 -55
  1006. package/core/whois/build.ts +0 -8
  1007. package/core/whois/dist/index.js +0 -600
  1008. package/core/whois/package.json +0 -61
  1009. package/core/whois/src/index.ts +0 -499
  1010. package/core/whois/src/parameters.ts +0 -4
  1011. package/core/whois/src/servers.ts +0 -318
  1012. package/core/whois/src/test.ts +0 -5
  1013. package/core/whois/tests/example.test.ts +0 -5
  1014. package/core/whois/tsconfig.json +0 -3
  1015. package/core/x-ray/README.md +0 -55
  1016. package/core/x-ray/index.html +0 -13
  1017. package/core/x-ray/package.json +0 -53
  1018. package/core/x-ray/routes/index.ts +0 -19
  1019. package/core/x-ray/src/client.ts +0 -14
  1020. package/core/x-ray/src/desktop/api/nitro.config.ts +0 -19
  1021. package/core/x-ray/src/desktop/api/routes/api/logs.ts +0 -7
  1022. package/core/x-ray/src/desktop/api/routes/api/store-logs.ts +0 -22
  1023. package/core/x-ray/src/desktop/api/src/types.ts +0 -7
  1024. package/core/x-ray/src/desktop/api/storage/index.ts +0 -7
  1025. package/core/x-ray/src/desktop/app.stx +0 -377
  1026. package/core/x-ray/src/desktop/functions/http.ts +0 -26
  1027. package/core/x-ray/src/desktop/functions/types.ts +0 -7
  1028. package/core/x-ray/src/desktop/main.ts +0 -8
  1029. package/core/x-ray/src/desktop/modules/counter/mod.stx +0 -44
  1030. package/core/x-ray/src/desktop/modules/fetcher/mod.stx +0 -63
  1031. package/core/x-ray/src/desktop/plugins/unified/unified-app.ts +0 -5
  1032. package/core/x-ray/src/desktop/plugins/unified/unified-styles.scss +0 -0
  1033. package/core/x-ray/src/desktop/services/http.ts +0 -45
  1034. package/core/x-ray/src/desktop/styles/app.scss +0 -0
  1035. package/core/x-ray/src/http.ts +0 -26
  1036. package/core/x-ray/src/index.ts +0 -42
  1037. package/core/x-ray/src/ray.config.ts +0 -27
  1038. package/core/x-ray/src/types.ts +0 -8
  1039. package/core/x-ray/tests/example.test.ts +0 -5
  1040. package/core/x-ray/tsconfig.json +0 -3
  1041. package/core/zsh-buddy/README.md +0 -55
  1042. package/core/zsh-buddy/buddy.plugin.zsh +0 -113
  1043. package/core/zsh-buddy/package.json +0 -35
  1044. package/ide/dictionary.txt +0 -331
  1045. package/ide/jetbrains/.fleet/settings.json +0 -4
  1046. package/ide/jetbrains/.idea/inspectionProfiles/Project_Default.xml +0 -6
  1047. package/ide/jetbrains/.idea/jsLibraryMappings.xml +0 -6
  1048. package/ide/jetbrains/.idea/jsLinters/eslint.xml +0 -7
  1049. package/ide/jetbrains/.idea/modules.xml +0 -8
  1050. package/ide/jetbrains/.idea/stacks.iml +0 -68
  1051. package/ide/jetbrains/.idea/vcs.xml +0 -6
  1052. package/ide/jetbrains/.idea/webResources.xml +0 -14
  1053. package/ide/jetbrains/IntelliJ IDEA Global Settings +0 -0
  1054. package/ide/jetbrains/installed.txt +0 -4
  1055. package/ide/jetbrains/options/github-copilot.xml +0 -5
  1056. package/ide/jetbrains/options/nodejs.xml +0 -7
  1057. package/ide/jetbrains/options/templates.xml +0 -124
  1058. package/ide/jetbrains/templates/JavaScript.xml +0 -6
  1059. package/ide/jetbrains/templates/Stacks.xml +0 -8
  1060. package/ide/vscode/.vscode/README.md +0 -23
  1061. package/ide/vscode/.vscode/extensions.json +0 -5
  1062. package/ide/vscode/.vscode/settings.json +0 -132
  1063. package/ide/vscode/.vscode/stacks.code-snippets +0 -182
  1064. package/ide/vscode/LICENSE.md +0 -21
  1065. package/ide/vscode/README.md +0 -37
  1066. package/ide/vscode/logo.png +0 -0
  1067. package/ide/vscode/package.json +0 -63
  1068. package/stubs/.gitkeep +0 -0
  1069. package/stubs/TODO.md +0 -18
  1070. package/vcs/github/CODE_OF_CONDUCT.md +0 -83
  1071. package/vcs/github/CONTRIBUTING.md +0 -188
  1072. package/vcs/github/EXPLANATIONS.md +0 -41
  1073. package/vcs/github/FUNDING.yml +0 -1
  1074. package/vcs/github/ISSUE_TEMPLATE/bug_report.yml +0 -49
  1075. package/vcs/github/ISSUE_TEMPLATE/config.yml +0 -10
  1076. package/vcs/github/ISSUE_TEMPLATE/feature_request.yml +0 -44
  1077. package/vcs/github/SECURITY.md +0 -70
  1078. package/vcs/github/renovate.json +0 -5
  1079. package/vcs/github/stale.yml +0 -14
  1080. package/vcs/github/workflows/README.md +0 -16
  1081. package/vcs/github/workflows/ci.yml +0 -174
  1082. package/vcs/github/workflows/export-size.yml +0 -23
  1083. package/vcs/github/workflows/labeler.yml +0 -13
  1084. package/vcs/github/workflows/release.yml +0 -69
  1085. package/{core/README.md → README.md} +0 -0
  1086. package/{core/buddy → buddy}/README.md +0 -0
  1087. package/{core/buddy → buddy}/art/social.jpg +0 -0
  1088. package/{core/buddy/dist/chunk-0455e53fab4244b1.js → buddy/dist/chunk-970e033f764e29fc.js} +0 -0
  1089. package/{core/buddy → buddy}/src/commands/build.ts +0 -0
  1090. package/{core/buddy → buddy}/src/commands/changelog.ts +0 -0
  1091. package/{core/buddy → buddy}/src/commands/clean.ts +0 -0
  1092. package/{core/buddy → buddy}/src/commands/cloud.ts +0 -0
  1093. package/{core/buddy → buddy}/src/commands/configure.ts +0 -0
  1094. package/{core/buddy → buddy}/src/commands/dns.ts +0 -0
  1095. package/{core/buddy → buddy}/src/commands/domains.ts +0 -0
  1096. package/{core/buddy → buddy}/src/commands/fresh.ts +0 -0
  1097. package/{core/buddy → buddy}/src/commands/http.ts +0 -0
  1098. package/{core/buddy → buddy}/src/commands/install.ts +0 -0
  1099. package/{core/buddy → buddy}/src/commands/key.ts +1 -1
  1100. /package/{core/buddy → buddy}/src/commands/lint.ts +0 -0
  1101. /package/{core/buddy → buddy}/src/commands/migrate.ts +0 -0
  1102. /package/{core/buddy → buddy}/src/commands/release.ts +0 -0
  1103. /package/{core/buddy → buddy}/src/commands/seed.ts +0 -0
  1104. /package/{core/buddy → buddy}/src/commands/test.ts +0 -0
  1105. /package/{core/buddy → buddy}/src/commands/tinker.ts +0 -0
  1106. /package/{core/buddy → buddy}/src/commands/version.ts +0 -0
  1107. /package/{core/buddy → buddy}/src/custom-cli.ts +0 -0
  1108. /package/{core/buddy → buddy}/src/index.ts +0 -0
  1109. /package/{core/actions → buddy}/tsconfig.json +0 -0
@@ -1,1524 +0,0 @@
1
- // @bun
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getProtoOf = Object.getPrototypeOf;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __toESM = (mod, isNodeMode, target) => {
8
- target = mod != null ? __create(__getProtoOf(mod)) : {};
9
- const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
10
- for (let key of __getOwnPropNames(mod))
11
- if (!__hasOwnProp.call(to, key))
12
- __defProp(to, key, {
13
- get: () => mod[key],
14
- enumerable: true
15
- });
16
- return to;
17
- };
18
- var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
19
-
20
- // /home/runner/work/stacks/stacks/node_modules/slugify/slugify.js
21
- var require_slugify = __commonJS((exports, module) => {
22
- (function(name, root, factory) {
23
- if (typeof exports === "object") {
24
- module.exports = factory();
25
- module.exports["default"] = factory();
26
- } else if (typeof define === "function" && define.amd) {
27
- define(factory);
28
- } else {
29
- root[name] = factory();
30
- }
31
- })("slugify", exports, function() {
32
- var charMap = JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xA2":"cent","\xA3":"pound","\xA4":"currency","\xA5":"yen","\xA9":"(c)","\xAA":"a","\xAE":"(r)","\xBA":"o","\xC0":"A","\xC1":"A","\xC2":"A","\xC3":"A","\xC4":"A","\xC5":"A","\xC6":"AE","\xC7":"C","\xC8":"E","\xC9":"E","\xCA":"E","\xCB":"E","\xCC":"I","\xCD":"I","\xCE":"I","\xCF":"I","\xD0":"D","\xD1":"N","\xD2":"O","\xD3":"O","\xD4":"O","\xD5":"O","\xD6":"O","\xD8":"O","\xD9":"U","\xDA":"U","\xDB":"U","\xDC":"U","\xDD":"Y","\xDE":"TH","\xDF":"ss","\xE0":"a","\xE1":"a","\xE2":"a","\xE3":"a","\xE4":"a","\xE5":"a","\xE6":"ae","\xE7":"c","\xE8":"e","\xE9":"e","\xEA":"e","\xEB":"e","\xEC":"i","\xED":"i","\xEE":"i","\xEF":"i","\xF0":"d","\xF1":"n","\xF2":"o","\xF3":"o","\xF4":"o","\xF5":"o","\xF6":"o","\xF8":"o","\xF9":"u","\xFA":"u","\xFB":"u","\xFC":"u","\xFD":"y","\xFE":"th","\xFF":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010C":"C","\u010D":"c","\u010E":"D","\u010F":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011A":"E","\u011B":"e","\u011E":"G","\u011F":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012A":"i","\u012B":"i","\u012E":"I","\u012F":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013B":"L","\u013C":"l","\u013D":"L","\u013E":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014C":"O","\u014D":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015A":"S","\u015B":"s","\u015E":"S","\u015F":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016A":"u","\u016B":"u","\u016E":"U","\u016F":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017A":"z","\u017B":"Z","\u017C":"z","\u017D":"Z","\u017E":"z","\u018F":"E","\u0192":"f","\u01A0":"O","\u01A1":"o","\u01AF":"U","\u01B0":"u","\u01C8":"LJ","\u01C9":"lj","\u01CB":"NJ","\u01CC":"nj","\u0218":"S","\u0219":"s","\u021A":"T","\u021B":"t","\u0259":"e","\u02DA":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038A":"I","\u038C":"O","\u038E":"Y","\u038F":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039A":"K","\u039B":"L","\u039C":"M","\u039D":"N","\u039E":"3","\u039F":"O","\u03A0":"P","\u03A1":"R","\u03A3":"S","\u03A4":"T","\u03A5":"Y","\u03A6":"F","\u03A7":"X","\u03A8":"PS","\u03A9":"W","\u03AA":"I","\u03AB":"Y","\u03AC":"a","\u03AD":"e","\u03AE":"h","\u03AF":"i","\u03B0":"y","\u03B1":"a","\u03B2":"b","\u03B3":"g","\u03B4":"d","\u03B5":"e","\u03B6":"z","\u03B7":"h","\u03B8":"8","\u03B9":"i","\u03BA":"k","\u03BB":"l","\u03BC":"m","\u03BD":"n","\u03BE":"3","\u03BF":"o","\u03C0":"p","\u03C1":"r","\u03C2":"s","\u03C3":"s","\u03C4":"t","\u03C5":"y","\u03C6":"f","\u03C7":"x","\u03C8":"ps","\u03C9":"w","\u03CA":"i","\u03CB":"y","\u03CC":"o","\u03CD":"y","\u03CE":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040A":"NJ","\u040B":"C","\u040F":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041A":"K","\u041B":"L","\u041C":"M","\u041D":"N","\u041E":"O","\u041F":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042A":"U","\u042B":"Y","\u042C":"","\u042D":"E","\u042E":"Yu","\u042F":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043A":"k","\u043B":"l","\u043C":"m","\u043D":"n","\u043E":"o","\u043F":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044A":"u","\u044B":"y","\u044C":"","\u044D":"e","\u044E":"yu","\u044F":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045A":"nj","\u045B":"c","\u045D":"u","\u045F":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049A":"KH","\u049B":"kh","\u04A2":"NG","\u04A3":"ng","\u04AE":"UE","\u04AF":"ue","\u04B0":"U","\u04B1":"u","\u04BA":"H","\u04BB":"h","\u04D8":"AE","\u04D9":"ae","\u04E8":"OE","\u04E9":"oe","\u0531":"A","\u0532":"B","\u0533":"G","\u0534":"D","\u0535":"E","\u0536":"Z","\u0537":"E'","\u0538":"Y'","\u0539":"T'","\u053A":"JH","\u053B":"I","\u053C":"L","\u053D":"X","\u053E":"C'","\u053F":"K","\u0540":"H","\u0541":"D'","\u0542":"GH","\u0543":"TW","\u0544":"M","\u0545":"Y","\u0546":"N","\u0547":"SH","\u0549":"CH","\u054A":"P","\u054B":"J","\u054C":"R'","\u054D":"S","\u054E":"V","\u054F":"T","\u0550":"R","\u0551":"C","\u0553":"P'","\u0554":"Q'","\u0555":"O''","\u0556":"F","\u0587":"EV","\u0621":"a","\u0622":"aa","\u0623":"a","\u0624":"u","\u0625":"i","\u0626":"e","\u0627":"a","\u0628":"b","\u0629":"h","\u062A":"t","\u062B":"th","\u062C":"j","\u062D":"h","\u062E":"kh","\u062F":"d","\u0630":"th","\u0631":"r","\u0632":"z","\u0633":"s","\u0634":"sh","\u0635":"s","\u0636":"dh","\u0637":"t","\u0638":"z","\u0639":"a","\u063A":"gh","\u0641":"f","\u0642":"q","\u0643":"k","\u0644":"l","\u0645":"m","\u0646":"n","\u0647":"h","\u0648":"w","\u0649":"a","\u064A":"y","\u064B":"an","\u064C":"on","\u064D":"en","\u064E":"a","\u064F":"u","\u0650":"e","\u0652":"","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u067E":"p","\u0686":"ch","\u0698":"zh","\u06A9":"k","\u06AF":"g","\u06CC":"y","\u06F0":"0","\u06F1":"1","\u06F2":"2","\u06F3":"3","\u06F4":"4","\u06F5":"5","\u06F6":"6","\u06F7":"7","\u06F8":"8","\u06F9":"9","\u0E3F":"baht","\u10D0":"a","\u10D1":"b","\u10D2":"g","\u10D3":"d","\u10D4":"e","\u10D5":"v","\u10D6":"z","\u10D7":"t","\u10D8":"i","\u10D9":"k","\u10DA":"l","\u10DB":"m","\u10DC":"n","\u10DD":"o","\u10DE":"p","\u10DF":"zh","\u10E0":"r","\u10E1":"s","\u10E2":"t","\u10E3":"u","\u10E4":"f","\u10E5":"k","\u10E6":"gh","\u10E7":"q","\u10E8":"sh","\u10E9":"ch","\u10EA":"ts","\u10EB":"dz","\u10EC":"ts","\u10ED":"ch","\u10EE":"kh","\u10EF":"j","\u10F0":"h","\u1E62":"S","\u1E63":"s","\u1E80":"W","\u1E81":"w","\u1E82":"W","\u1E83":"w","\u1E84":"W","\u1E85":"w","\u1E9E":"SS","\u1EA0":"A","\u1EA1":"a","\u1EA2":"A","\u1EA3":"a","\u1EA4":"A","\u1EA5":"a","\u1EA6":"A","\u1EA7":"a","\u1EA8":"A","\u1EA9":"a","\u1EAA":"A","\u1EAB":"a","\u1EAC":"A","\u1EAD":"a","\u1EAE":"A","\u1EAF":"a","\u1EB0":"A","\u1EB1":"a","\u1EB2":"A","\u1EB3":"a","\u1EB4":"A","\u1EB5":"a","\u1EB6":"A","\u1EB7":"a","\u1EB8":"E","\u1EB9":"e","\u1EBA":"E","\u1EBB":"e","\u1EBC":"E","\u1EBD":"e","\u1EBE":"E","\u1EBF":"e","\u1EC0":"E","\u1EC1":"e","\u1EC2":"E","\u1EC3":"e","\u1EC4":"E","\u1EC5":"e","\u1EC6":"E","\u1EC7":"e","\u1EC8":"I","\u1EC9":"i","\u1ECA":"I","\u1ECB":"i","\u1ECC":"O","\u1ECD":"o","\u1ECE":"O","\u1ECF":"o","\u1ED0":"O","\u1ED1":"o","\u1ED2":"O","\u1ED3":"o","\u1ED4":"O","\u1ED5":"o","\u1ED6":"O","\u1ED7":"o","\u1ED8":"O","\u1ED9":"o","\u1EDA":"O","\u1EDB":"o","\u1EDC":"O","\u1EDD":"o","\u1EDE":"O","\u1EDF":"o","\u1EE0":"O","\u1EE1":"o","\u1EE2":"O","\u1EE3":"o","\u1EE4":"U","\u1EE5":"u","\u1EE6":"U","\u1EE7":"u","\u1EE8":"U","\u1EE9":"u","\u1EEA":"U","\u1EEB":"u","\u1EEC":"U","\u1EED":"u","\u1EEE":"U","\u1EEF":"u","\u1EF0":"U","\u1EF1":"u","\u1EF2":"Y","\u1EF3":"y","\u1EF4":"Y","\u1EF5":"y","\u1EF6":"Y","\u1EF7":"y","\u1EF8":"Y","\u1EF9":"y","\u2013":"-","\u2018":"'","\u2019":"'","\u201C":"\\"","\u201D":"\\"","\u201E":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20A0":"ecu","\u20A2":"cruzeiro","\u20A3":"french franc","\u20A4":"lira","\u20A5":"mill","\u20A6":"naira","\u20A7":"peseta","\u20A8":"rupee","\u20A9":"won","\u20AA":"new shequel","\u20AB":"dong","\u20AC":"euro","\u20AD":"kip","\u20AE":"tugrik","\u20AF":"drachma","\u20B0":"penny","\u20B1":"peso","\u20B2":"guarani","\u20B3":"austral","\u20B4":"hryvnia","\u20B5":"cedi","\u20B8":"kazakhstani tenge","\u20B9":"indian rupee","\u20BA":"turkish lira","\u20BD":"russian ruble","\u20BF":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221E":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\uFDFC":"rial","\uFEF5":"laa","\uFEF7":"laa","\uFEF9":"lai","\uFEFB":"la"}`);
33
- var locales = JSON.parse('{"bg":{"\u0419":"Y","\u0426":"Ts","\u0429":"Sht","\u042A":"A","\u042C":"Y","\u0439":"y","\u0446":"ts","\u0449":"sht","\u044A":"a","\u044C":"y"},"de":{"\xC4":"AE","\xE4":"ae","\xD6":"OE","\xF6":"oe","\xDC":"UE","\xFC":"ue","\xDF":"ss","%":"prozent","&":"und","|":"oder","\u2211":"summe","\u221E":"unendlich","\u2665":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xA2":"centavos","\xA3":"libras","\xA4":"moneda","\u20A3":"francos","\u2211":"suma","\u221E":"infinito","\u2665":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xA2":"centime","\xA3":"livre","\xA4":"devise","\u20A3":"franc","\u2211":"somme","\u221E":"infini","\u2665":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xA2":"centavo","\u2211":"soma","\xA3":"libra","\u221E":"infinito","\u2665":"amor"},"uk":{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"},"vi":{"\u0110":"D","\u0111":"d"},"da":{"\xD8":"OE","\xF8":"oe","\xC5":"AA","\xE5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xF8rre end"},"nb":{"&":"og","\xC5":"AA","\xC6":"AE","\xD8":"OE","\xE5":"aa","\xE6":"ae","\xF8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xC5":"AA","\xC4":"AE","\xD6":"OE","\xE5":"aa","\xE4":"ae","\xF6":"oe"}}');
34
- function replace(string, options) {
35
- if (typeof string !== "string") {
36
- throw new Error("slugify: string argument expected");
37
- }
38
- options = typeof options === "string" ? { replacement: options } : options || {};
39
- var locale = locales[options.locale] || {};
40
- var replacement = options.replacement === undefined ? "-" : options.replacement;
41
- var trim = options.trim === undefined ? true : options.trim;
42
- var slug = string.normalize().split("").reduce(function(result, ch) {
43
- var appendChar = locale[ch];
44
- if (appendChar === undefined)
45
- appendChar = charMap[ch];
46
- if (appendChar === undefined)
47
- appendChar = ch;
48
- if (appendChar === replacement)
49
- appendChar = " ";
50
- return result + appendChar.replace(options.remove || /[^\w\s$*_+~.()'"!\-:@]+/g, "");
51
- }, "");
52
- if (options.strict) {
53
- slug = slug.replace(/[^A-Za-z0-9\s]/g, "");
54
- }
55
- if (trim) {
56
- slug = slug.trim();
57
- }
58
- slug = slug.replace(/\s+/g, replacement);
59
- if (options.lower) {
60
- slug = slug.toLowerCase();
61
- }
62
- return slug;
63
- }
64
- replace.extend = function(customMap) {
65
- Object.assign(charMap, customMap);
66
- };
67
- return replace;
68
- });
69
- });
70
-
71
- // /home/runner/work/stacks/stacks/node_modules/pluralize/pluralize.js
72
- var require_pluralize = __commonJS((exports, module) => {
73
- (function(root, pluralize) {
74
- if (typeof import.meta.require === "function" && typeof exports === "object" && typeof module === "object") {
75
- module.exports = pluralize();
76
- } else if (typeof define === "function" && define.amd) {
77
- define(function() {
78
- return pluralize();
79
- });
80
- } else {
81
- root.pluralize = pluralize();
82
- }
83
- })(exports, function() {
84
- var pluralRules = [];
85
- var singularRules = [];
86
- var uncountables = {};
87
- var irregularPlurals = {};
88
- var irregularSingles = {};
89
- function sanitizeRule(rule) {
90
- if (typeof rule === "string") {
91
- return new RegExp("^" + rule + "$", "i");
92
- }
93
- return rule;
94
- }
95
- function restoreCase(word, token) {
96
- if (word === token)
97
- return token;
98
- if (word === word.toLowerCase())
99
- return token.toLowerCase();
100
- if (word === word.toUpperCase())
101
- return token.toUpperCase();
102
- if (word[0] === word[0].toUpperCase()) {
103
- return token.charAt(0).toUpperCase() + token.substr(1).toLowerCase();
104
- }
105
- return token.toLowerCase();
106
- }
107
- function interpolate(str, args) {
108
- return str.replace(/\$(\d{1,2})/g, function(match, index) {
109
- return args[index] || "";
110
- });
111
- }
112
- function replace(word, rule) {
113
- return word.replace(rule[0], function(match, index) {
114
- var result = interpolate(rule[1], arguments);
115
- if (match === "") {
116
- return restoreCase(word[index - 1], result);
117
- }
118
- return restoreCase(match, result);
119
- });
120
- }
121
- function sanitizeWord(token, word, rules) {
122
- if (!token.length || uncountables.hasOwnProperty(token)) {
123
- return word;
124
- }
125
- var len = rules.length;
126
- while (len--) {
127
- var rule = rules[len];
128
- if (rule[0].test(word))
129
- return replace(word, rule);
130
- }
131
- return word;
132
- }
133
- function replaceWord(replaceMap, keepMap, rules) {
134
- return function(word) {
135
- var token = word.toLowerCase();
136
- if (keepMap.hasOwnProperty(token)) {
137
- return restoreCase(word, token);
138
- }
139
- if (replaceMap.hasOwnProperty(token)) {
140
- return restoreCase(word, replaceMap[token]);
141
- }
142
- return sanitizeWord(token, word, rules);
143
- };
144
- }
145
- function checkWord(replaceMap, keepMap, rules, bool) {
146
- return function(word) {
147
- var token = word.toLowerCase();
148
- if (keepMap.hasOwnProperty(token))
149
- return true;
150
- if (replaceMap.hasOwnProperty(token))
151
- return false;
152
- return sanitizeWord(token, token, rules) === token;
153
- };
154
- }
155
- function pluralize(word, count, inclusive) {
156
- var pluralized = count === 1 ? pluralize.singular(word) : pluralize.plural(word);
157
- return (inclusive ? count + " " : "") + pluralized;
158
- }
159
- pluralize.plural = replaceWord(irregularSingles, irregularPlurals, pluralRules);
160
- pluralize.isPlural = checkWord(irregularSingles, irregularPlurals, pluralRules);
161
- pluralize.singular = replaceWord(irregularPlurals, irregularSingles, singularRules);
162
- pluralize.isSingular = checkWord(irregularPlurals, irregularSingles, singularRules);
163
- pluralize.addPluralRule = function(rule, replacement) {
164
- pluralRules.push([sanitizeRule(rule), replacement]);
165
- };
166
- pluralize.addSingularRule = function(rule, replacement) {
167
- singularRules.push([sanitizeRule(rule), replacement]);
168
- };
169
- pluralize.addUncountableRule = function(word) {
170
- if (typeof word === "string") {
171
- uncountables[word.toLowerCase()] = true;
172
- return;
173
- }
174
- pluralize.addPluralRule(word, "$0");
175
- pluralize.addSingularRule(word, "$0");
176
- };
177
- pluralize.addIrregularRule = function(single, plural) {
178
- plural = plural.toLowerCase();
179
- single = single.toLowerCase();
180
- irregularSingles[single] = plural;
181
- irregularPlurals[plural] = single;
182
- };
183
- [
184
- ["I", "we"],
185
- ["me", "us"],
186
- ["he", "they"],
187
- ["she", "they"],
188
- ["them", "them"],
189
- ["myself", "ourselves"],
190
- ["yourself", "yourselves"],
191
- ["itself", "themselves"],
192
- ["herself", "themselves"],
193
- ["himself", "themselves"],
194
- ["themself", "themselves"],
195
- ["is", "are"],
196
- ["was", "were"],
197
- ["has", "have"],
198
- ["this", "these"],
199
- ["that", "those"],
200
- ["echo", "echoes"],
201
- ["dingo", "dingoes"],
202
- ["volcano", "volcanoes"],
203
- ["tornado", "tornadoes"],
204
- ["torpedo", "torpedoes"],
205
- ["genus", "genera"],
206
- ["viscus", "viscera"],
207
- ["stigma", "stigmata"],
208
- ["stoma", "stomata"],
209
- ["dogma", "dogmata"],
210
- ["lemma", "lemmata"],
211
- ["schema", "schemata"],
212
- ["anathema", "anathemata"],
213
- ["ox", "oxen"],
214
- ["axe", "axes"],
215
- ["die", "dice"],
216
- ["yes", "yeses"],
217
- ["foot", "feet"],
218
- ["eave", "eaves"],
219
- ["goose", "geese"],
220
- ["tooth", "teeth"],
221
- ["quiz", "quizzes"],
222
- ["human", "humans"],
223
- ["proof", "proofs"],
224
- ["carve", "carves"],
225
- ["valve", "valves"],
226
- ["looey", "looies"],
227
- ["thief", "thieves"],
228
- ["groove", "grooves"],
229
- ["pickaxe", "pickaxes"],
230
- ["passerby", "passersby"]
231
- ].forEach(function(rule) {
232
- return pluralize.addIrregularRule(rule[0], rule[1]);
233
- });
234
- [
235
- [/s?$/i, "s"],
236
- [/[^\u0000-\u007F]$/i, "$0"],
237
- [/([^aeiou]ese)$/i, "$1"],
238
- [/(ax|test)is$/i, "$1es"],
239
- [/(alias|[^aou]us|t[lm]as|gas|ris)$/i, "$1es"],
240
- [/(e[mn]u)s?$/i, "$1s"],
241
- [/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i, "$1"],
242
- [/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1i"],
243
- [/(alumn|alg|vertebr)(?:a|ae)$/i, "$1ae"],
244
- [/(seraph|cherub)(?:im)?$/i, "$1im"],
245
- [/(her|at|gr)o$/i, "$1oes"],
246
- [/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i, "$1a"],
247
- [/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i, "$1a"],
248
- [/sis$/i, "ses"],
249
- [/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i, "$1$2ves"],
250
- [/([^aeiouy]|qu)y$/i, "$1ies"],
251
- [/([^ch][ieo][ln])ey$/i, "$1ies"],
252
- [/(x|ch|ss|sh|zz)$/i, "$1es"],
253
- [/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i, "$1ices"],
254
- [/\b((?:tit)?m|l)(?:ice|ouse)$/i, "$1ice"],
255
- [/(pe)(?:rson|ople)$/i, "$1ople"],
256
- [/(child)(?:ren)?$/i, "$1ren"],
257
- [/eaux$/i, "$0"],
258
- [/m[ae]n$/i, "men"],
259
- ["thou", "you"]
260
- ].forEach(function(rule) {
261
- return pluralize.addPluralRule(rule[0], rule[1]);
262
- });
263
- [
264
- [/s$/i, ""],
265
- [/(ss)$/i, "$1"],
266
- [/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i, "$1fe"],
267
- [/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, "$1f"],
268
- [/ies$/i, "y"],
269
- [/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i, "$1ie"],
270
- [/\b(mon|smil)ies$/i, "$1ey"],
271
- [/\b((?:tit)?m|l)ice$/i, "$1ouse"],
272
- [/(seraph|cherub)im$/i, "$1"],
273
- [/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i, "$1"],
274
- [/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i, "$1sis"],
275
- [/(movie|twelve|abuse|e[mn]u)s$/i, "$1"],
276
- [/(test)(?:is|es)$/i, "$1is"],
277
- [/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1us"],
278
- [/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i, "$1um"],
279
- [/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i, "$1on"],
280
- [/(alumn|alg|vertebr)ae$/i, "$1a"],
281
- [/(cod|mur|sil|vert|ind)ices$/i, "$1ex"],
282
- [/(matr|append)ices$/i, "$1ix"],
283
- [/(pe)(rson|ople)$/i, "$1rson"],
284
- [/(child)ren$/i, "$1"],
285
- [/(eau)x?$/i, "$1"],
286
- [/men$/i, "man"]
287
- ].forEach(function(rule) {
288
- return pluralize.addSingularRule(rule[0], rule[1]);
289
- });
290
- [
291
- "adulthood",
292
- "advice",
293
- "agenda",
294
- "aid",
295
- "aircraft",
296
- "alcohol",
297
- "ammo",
298
- "analytics",
299
- "anime",
300
- "athletics",
301
- "audio",
302
- "bison",
303
- "blood",
304
- "bream",
305
- "buffalo",
306
- "butter",
307
- "carp",
308
- "cash",
309
- "chassis",
310
- "chess",
311
- "clothing",
312
- "cod",
313
- "commerce",
314
- "cooperation",
315
- "corps",
316
- "debris",
317
- "diabetes",
318
- "digestion",
319
- "elk",
320
- "energy",
321
- "equipment",
322
- "excretion",
323
- "expertise",
324
- "firmware",
325
- "flounder",
326
- "fun",
327
- "gallows",
328
- "garbage",
329
- "graffiti",
330
- "hardware",
331
- "headquarters",
332
- "health",
333
- "herpes",
334
- "highjinks",
335
- "homework",
336
- "housework",
337
- "information",
338
- "jeans",
339
- "justice",
340
- "kudos",
341
- "labour",
342
- "literature",
343
- "machinery",
344
- "mackerel",
345
- "mail",
346
- "media",
347
- "mews",
348
- "moose",
349
- "music",
350
- "mud",
351
- "manga",
352
- "news",
353
- "only",
354
- "personnel",
355
- "pike",
356
- "plankton",
357
- "pliers",
358
- "police",
359
- "pollution",
360
- "premises",
361
- "rain",
362
- "research",
363
- "rice",
364
- "salmon",
365
- "scissors",
366
- "series",
367
- "sewage",
368
- "shambles",
369
- "shrimp",
370
- "software",
371
- "species",
372
- "staff",
373
- "swine",
374
- "tennis",
375
- "traffic",
376
- "transportation",
377
- "trout",
378
- "tuna",
379
- "wealth",
380
- "welfare",
381
- "whiting",
382
- "wildebeest",
383
- "wildlife",
384
- "you",
385
- /pok[e\u00E9]mon$/i,
386
- /[^aeiou]ese$/i,
387
- /deer$/i,
388
- /fish$/i,
389
- /measles$/i,
390
- /o[iu]s$/i,
391
- /pox$/i,
392
- /sheep$/i
393
- ].forEach(pluralize.addUncountableRule);
394
- return pluralize;
395
- });
396
- });
397
-
398
- // /home/runner/work/stacks/stacks/storage/framework/core/path/src/index.ts
399
- import process2 from "process";
400
-
401
- // /home/runner/work/stacks/stacks/node_modules/pathe/dist/shared/pathe.ff20891b.mjs
402
- var normalizeWindowsPath = function(input = "") {
403
- if (!input) {
404
- return input;
405
- }
406
- return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
407
- };
408
- var cwd = function() {
409
- if (typeof process !== "undefined" && typeof process.cwd === "function") {
410
- return process.cwd().replace(/\\/g, "/");
411
- }
412
- return "/";
413
- };
414
- var normalizeString = function(path, allowAboveRoot) {
415
- let res = "";
416
- let lastSegmentLength = 0;
417
- let lastSlash = -1;
418
- let dots = 0;
419
- let char = null;
420
- for (let index = 0;index <= path.length; ++index) {
421
- if (index < path.length) {
422
- char = path[index];
423
- } else if (char === "/") {
424
- break;
425
- } else {
426
- char = "/";
427
- }
428
- if (char === "/") {
429
- if (lastSlash === index - 1 || dots === 1)
430
- ;
431
- else if (dots === 2) {
432
- if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
433
- if (res.length > 2) {
434
- const lastSlashIndex = res.lastIndexOf("/");
435
- if (lastSlashIndex === -1) {
436
- res = "";
437
- lastSegmentLength = 0;
438
- } else {
439
- res = res.slice(0, lastSlashIndex);
440
- lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
441
- }
442
- lastSlash = index;
443
- dots = 0;
444
- continue;
445
- } else if (res.length > 0) {
446
- res = "";
447
- lastSegmentLength = 0;
448
- lastSlash = index;
449
- dots = 0;
450
- continue;
451
- }
452
- }
453
- if (allowAboveRoot) {
454
- res += res.length > 0 ? "/.." : "..";
455
- lastSegmentLength = 2;
456
- }
457
- } else {
458
- if (res.length > 0) {
459
- res += `/${path.slice(lastSlash + 1, index)}`;
460
- } else {
461
- res = path.slice(lastSlash + 1, index);
462
- }
463
- lastSegmentLength = index - lastSlash - 1;
464
- }
465
- lastSlash = index;
466
- dots = 0;
467
- } else if (char === "." && dots !== -1) {
468
- ++dots;
469
- } else {
470
- dots = -1;
471
- }
472
- }
473
- return res;
474
- };
475
- var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
476
- var _UNC_REGEX = /^[/\\]{2}/;
477
- var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
478
- var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
479
- var _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
480
- var sep = "/";
481
- var delimiter = ":";
482
- var normalize = function(path) {
483
- if (path.length === 0) {
484
- return ".";
485
- }
486
- path = normalizeWindowsPath(path);
487
- const isUNCPath = path.match(_UNC_REGEX);
488
- const isPathAbsolute = isAbsolute(path);
489
- const trailingSeparator = path[path.length - 1] === "/";
490
- path = normalizeString(path, !isPathAbsolute);
491
- if (path.length === 0) {
492
- if (isPathAbsolute) {
493
- return "/";
494
- }
495
- return trailingSeparator ? "./" : ".";
496
- }
497
- if (trailingSeparator) {
498
- path += "/";
499
- }
500
- if (_DRIVE_LETTER_RE.test(path)) {
501
- path += "/";
502
- }
503
- if (isUNCPath) {
504
- if (!isPathAbsolute) {
505
- return `//./${path}`;
506
- }
507
- return `//${path}`;
508
- }
509
- return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
510
- };
511
- var join = function(...arguments_) {
512
- if (arguments_.length === 0) {
513
- return ".";
514
- }
515
- let joined;
516
- for (const argument of arguments_) {
517
- if (argument && argument.length > 0) {
518
- if (joined === undefined) {
519
- joined = argument;
520
- } else {
521
- joined += `/${argument}`;
522
- }
523
- }
524
- }
525
- if (joined === undefined) {
526
- return ".";
527
- }
528
- return normalize(joined.replace(/\/\/+/g, "/"));
529
- };
530
- var resolve = function(...arguments_) {
531
- arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
532
- let resolvedPath = "";
533
- let resolvedAbsolute = false;
534
- for (let index = arguments_.length - 1;index >= -1 && !resolvedAbsolute; index--) {
535
- const path = index >= 0 ? arguments_[index] : cwd();
536
- if (!path || path.length === 0) {
537
- continue;
538
- }
539
- resolvedPath = `${path}/${resolvedPath}`;
540
- resolvedAbsolute = isAbsolute(path);
541
- }
542
- resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
543
- if (resolvedAbsolute && !isAbsolute(resolvedPath)) {
544
- return `/${resolvedPath}`;
545
- }
546
- return resolvedPath.length > 0 ? resolvedPath : ".";
547
- };
548
- var isAbsolute = function(p) {
549
- return _IS_ABSOLUTE_RE.test(p);
550
- };
551
- var toNamespacedPath = function(p) {
552
- return normalizeWindowsPath(p);
553
- };
554
- var _EXTNAME_RE = /.(\.[^./]+)$/;
555
- var extname2 = function(p) {
556
- const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));
557
- return match && match[1] || "";
558
- };
559
- var relative = function(from, to) {
560
- const _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/");
561
- const _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
562
- if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0]) {
563
- return _to.join("/");
564
- }
565
- const _fromCopy = [..._from];
566
- for (const segment of _fromCopy) {
567
- if (_to[0] !== segment) {
568
- break;
569
- }
570
- _from.shift();
571
- _to.shift();
572
- }
573
- return [..._from.map(() => ".."), ..._to].join("/");
574
- };
575
- var dirname = function(p) {
576
- const segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1);
577
- if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {
578
- segments[0] += "/";
579
- }
580
- return segments.join("/") || (isAbsolute(p) ? "/" : ".");
581
- };
582
- var format = function(p) {
583
- const segments = [p.root, p.dir, p.base ?? p.name + p.ext].filter(Boolean);
584
- return normalizeWindowsPath(p.root ? resolve(...segments) : segments.join("/"));
585
- };
586
- var basename = function(p, extension) {
587
- const lastSegment = normalizeWindowsPath(p).split("/").pop();
588
- return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
589
- };
590
- var parse = function(p) {
591
- const root = normalizeWindowsPath(p).split("/").shift() || "/";
592
- const base = basename(p);
593
- const extension = extname2(base);
594
- return {
595
- root,
596
- dir: dirname(p),
597
- base,
598
- ext: extension,
599
- name: base.slice(0, base.length - extension.length)
600
- };
601
- };
602
- // /home/runner/work/stacks/stacks/storage/framework/core/path/src/index.ts
603
- function actionsPath(path2) {
604
- return corePath(`actions/src/${path2 || ""}`);
605
- }
606
- function relativeActionsPath(path2) {
607
- return relative(projectPath(), actionsPath(path2));
608
- }
609
- function userActionsPath(path2) {
610
- return appPath(`Actions/${path2 || ""}`);
611
- }
612
- function userJobsPath(path2) {
613
- return appPath(`Jobs/${path2 || ""}`);
614
- }
615
- function userListenersPath(path2) {
616
- return appPath(`Listeners/${path2 || ""}`);
617
- }
618
- function userMiddlewarePath(path2) {
619
- return appPath(`Middleware/${path2 || ""}`);
620
- }
621
- function userModelsPath(path2) {
622
- return appPath(`Models/${path2 || ""}`);
623
- }
624
- function userNotificationsPath(path2) {
625
- return appPath(`Notifications/${path2 || ""}`);
626
- }
627
- function userEventsPath() {
628
- return appPath(`Events.ts`);
629
- }
630
- function aiPath(path2) {
631
- return corePath(`ai/${path2 || ""}`);
632
- }
633
- function assetsPath(path2) {
634
- return resourcesPath(`assets/${path2 || ""}`);
635
- }
636
- function aliasPath() {
637
- return corePath("alias/src/index.ts");
638
- }
639
- function buddyPath(path2, options) {
640
- const absolutePath = corePath(`buddy/${path2 || ""}`);
641
- if (options?.relative)
642
- return relative(process2.cwd(), absolutePath);
643
- return absolutePath;
644
- }
645
- function runtimePath(path2) {
646
- return frameworkPath(`buddy/${path2 || ""}`);
647
- }
648
- function analyticsPath(path2) {
649
- return corePath(`analytics/${path2 || ""}`);
650
- }
651
- function arraysPath(path2) {
652
- return corePath(`arrays/${path2 || ""}`);
653
- }
654
- function appPath(path2) {
655
- return projectPath(`app/${path2 || ""}`);
656
- }
657
- function authPath(path2) {
658
- return corePath(`auth/${path2 || ""}`);
659
- }
660
- function buildPath(path2) {
661
- return corePath(`build/${path2 || ""}`);
662
- }
663
- function buildEnginePath(path2) {
664
- return buildPath(`${path2 || ""}`);
665
- }
666
- function libsPath(path2) {
667
- return frameworkPath(`libs/${path2 || ""}`);
668
- }
669
- function libsEntriesPath(path2) {
670
- return libsPath(`entries/${path2 || ""}`);
671
- }
672
- function cachePath(path2) {
673
- return corePath(`cache/${path2 || ""}`);
674
- }
675
- function chatPath(path2) {
676
- return corePath(`chat/${path2 || ""}`);
677
- }
678
- function cliPath(path2) {
679
- return corePath(`cli/${path2 || ""}`);
680
- }
681
- function cloudPath(path2) {
682
- return corePath(`cloud/${path2 || ""}`);
683
- }
684
- function frameworkCloudPath(path2) {
685
- return frameworkPath(`cloud/${path2 || ""}`);
686
- }
687
- function collectionsPath(path2) {
688
- return corePath(`collections/${path2 || ""}`);
689
- }
690
- function commandsPath(path2) {
691
- return appPath(`Commands/${path2 || ""}`);
692
- }
693
- function componentsPath(path2) {
694
- return resourcesPath(`components/${path2 || ""}`);
695
- }
696
- function configPath(path2) {
697
- return corePath(`config/${path2 || ""}`);
698
- }
699
- function corePath(path2) {
700
- return frameworkPath(`core/${path2 || ""}`);
701
- }
702
- function customElementsDataPath() {
703
- return frameworkPath("core/custom-elements.json");
704
- }
705
- function databasePath(path2) {
706
- return corePath(`database/${path2 || ""}`);
707
- }
708
- function datetimePath(path2) {
709
- return corePath(`datetime/${path2 || ""}`);
710
- }
711
- function developmentPath(path2) {
712
- return corePath(`development/${path2 || ""}`);
713
- }
714
- function desktopPath(path2) {
715
- return corePath(`desktop/${path2 || ""}`);
716
- }
717
- function docsPath(path2) {
718
- return corePath(`docs/${path2 || ""}`);
719
- }
720
- function dnsPath(path2) {
721
- return corePath(`domains/${path2 || ""}`);
722
- }
723
- function emailPath(path2) {
724
- return notificationsPath(`email/${path2 || ""}`);
725
- }
726
- function enumsPath(path2) {
727
- return corePath(`enums/${path2 || ""}`);
728
- }
729
- function errorHandlingPath(path2) {
730
- return corePath(`error-handling/${path2 || ""}`);
731
- }
732
- function eventsPath(path2) {
733
- return corePath(`events/${path2 || ""}`);
734
- }
735
- function coreEnvPath(path2) {
736
- return corePath(`env/${path2 || ""}`);
737
- }
738
- function examplesPath(type) {
739
- return frameworkPath(`examples/${type || ""}`);
740
- }
741
- function fakerPath(path2) {
742
- return corePath(`faker/${path2 || ""}`);
743
- }
744
- function frameworkPath(path2, options) {
745
- const absolutePath = projectStoragePath(`framework/${path2 || ""}`);
746
- if (options?.relative)
747
- return relative(options.cwd || process2.cwd(), absolutePath);
748
- return absolutePath;
749
- }
750
- function healthPath(path2) {
751
- return corePath(`health/${path2 || ""}`);
752
- }
753
- function functionsPath(path2) {
754
- return resourcesPath(`functions/${path2 || ""}`);
755
- }
756
- function gitPath(path2) {
757
- return corePath(`git/${path2 || ""}`);
758
- }
759
- function langPath(path2) {
760
- return projectPath(`lang/${path2 || ""}`);
761
- }
762
- function layoutsPath(path2, options) {
763
- const absolutePath = resourcesPath(`layouts/${path2 || ""}`);
764
- if (options?.relative)
765
- return relative(process2.cwd(), absolutePath);
766
- return absolutePath;
767
- }
768
- function libraryEntryPath(type) {
769
- return libsEntriesPath(`${type}.ts`);
770
- }
771
- function lintPath(path2) {
772
- return corePath(`lint/${path2 || ""}`);
773
- }
774
- function listenersPath(path2) {
775
- return appPath(`Listeners/${path2 || ""}`);
776
- }
777
- function jobsPath(path2) {
778
- return appPath(`Jobs/${path2 || ""}`);
779
- }
780
- function loggingPath(path2) {
781
- return corePath(`logging/${path2 || ""}`);
782
- }
783
- function modulesPath(path2) {
784
- return resourcesPath(`modules/${path2 || ""}`);
785
- }
786
- function notificationsPath(path2) {
787
- return corePath(`notifications/${path2 || ""}`);
788
- }
789
- function ormPath(path2) {
790
- return corePath(`orm/${path2 || ""}`);
791
- }
792
- function objectsPath(path2) {
793
- return corePath(`objects/${path2 || ""}`);
794
- }
795
- function onboardingPath(path2) {
796
- return projectPath(`${path2 || "views/dashboard/onboarding"}`);
797
- }
798
- function packageJsonPath(type) {
799
- if (type === "vue-components")
800
- return frameworkPath("libs/components/vue/package.json");
801
- if (type === "web-components")
802
- return frameworkPath("libs/components/web/package.json");
803
- return frameworkPath(`libs/${type}/package.json`);
804
- }
805
- function viewsPath(path2) {
806
- return resourcesPath(`views/${path2 || ""}`);
807
- }
808
- function pathPath(path2) {
809
- return corePath(`path/${path2 || ""}`);
810
- }
811
- function paymentsPath(path2) {
812
- return corePath(`payments/${path2 || ""}`);
813
- }
814
- function projectPath(filePath = "") {
815
- let path2 = process2.cwd();
816
- while (path2.includes("storage"))
817
- path2 = resolve(path2, "..");
818
- return resolve(path2, filePath);
819
- }
820
- function projectConfigPath(path2) {
821
- return projectPath(`config/${path2 || ""}`);
822
- }
823
- function projectStoragePath(path2) {
824
- return projectPath(`storage/${path2 || ""}`);
825
- }
826
- function publicPath(path2) {
827
- return projectPath(`public/${path2 || ""}`);
828
- }
829
- function pushPath(path2) {
830
- return notificationsPath(`push/${path2 || ""}`);
831
- }
832
- function queryBuilderPath(path2) {
833
- return corePath(`query-builder/${path2 || ""}`);
834
- }
835
- function queuePath(path2) {
836
- return corePath(`queue/${path2 || ""}`);
837
- }
838
- function realtimePath(path2) {
839
- return corePath(`realtime/${path2 || ""}`);
840
- }
841
- function resourcesPath(path2) {
842
- return projectPath(`resources/${path2 || ""}`);
843
- }
844
- function replPath(path2) {
845
- return corePath(`repl/${path2 || ""}`);
846
- }
847
- function routerPath(path2) {
848
- return corePath(`router/${path2 || ""}`);
849
- }
850
- function routesPath(path2, options) {
851
- const absolutePath = resourcesPath(`routes/${path2 || ""}`);
852
- if (options?.relative)
853
- return relative(process2.cwd(), absolutePath);
854
- return projectPath(`routes/${path2 || ""}`);
855
- }
856
- function searchEnginePath(path2) {
857
- return corePath(`search-engine/${path2 || ""}`);
858
- }
859
- function settingsPath(path2) {
860
- return projectPath(`${path2 || "views/dashboard/settings"}`);
861
- }
862
- function scriptsPath(path2) {
863
- return frameworkPath(`scripts/${path2 || ""}`);
864
- }
865
- function schedulerPath(path2) {
866
- return corePath(`scheduler/${path2 || ""}`);
867
- }
868
- function signalsPath(path2) {
869
- return corePath(`signals/${path2 || ""}`);
870
- }
871
- function slugPath(path2) {
872
- return corePath(`slug/${path2 || ""}`);
873
- }
874
- function smsPath(path2) {
875
- return notificationsPath(`sms/${path2 || ""}`);
876
- }
877
- function storagePath(path2) {
878
- return corePath(`storage/${path2 || ""}`);
879
- }
880
- function storesPath(path2) {
881
- return resourcesPath(`stores/${path2 || ""}`);
882
- }
883
- function securityPath(path2) {
884
- return corePath(`security/${path2 || ""}`);
885
- }
886
- function serverPath(path2) {
887
- return corePath(`server/${path2 || ""}`);
888
- }
889
- function serverlessPath(path2) {
890
- return corePath(`serverless/${path2 || ""}`);
891
- }
892
- function stacksPath(path2) {
893
- return frameworkPath(`src/${path2 || ""}`);
894
- }
895
- function stringsPath(path2) {
896
- return corePath(`strings/${path2 || ""}`);
897
- }
898
- function testingPath(path2) {
899
- return corePath(`testing/${path2 || ""}`);
900
- }
901
- function tinkerPath(path2) {
902
- return corePath(`tinker/${path2 || ""}`);
903
- }
904
- function testsPath(path2) {
905
- return frameworkPath(`tests/${path2 || ""}`);
906
- }
907
- function typesPath(path2) {
908
- return corePath(`types/${path2 || ""}`);
909
- }
910
- function uiPath(path2) {
911
- return corePath(`ui/${path2 || ""}`);
912
- }
913
- function utilsPath(path2) {
914
- return corePath(`utils/${path2 || ""}`);
915
- }
916
- function validationPath(path2) {
917
- return corePath(`validation/${path2 || ""}`);
918
- }
919
- function vitePath(path2) {
920
- return corePath(`vite/${path2 || ""}`);
921
- }
922
- function xRayPath(path2) {
923
- return frameworkPath(`stacks/x-ray/${path2 || ""}`);
924
- }
925
- var path2 = {
926
- actionsPath,
927
- userActionsPath,
928
- aiPath,
929
- assetsPath,
930
- relativeActionsPath,
931
- aliasPath,
932
- analyticsPath,
933
- arraysPath,
934
- appPath,
935
- authPath,
936
- buddyPath,
937
- buildEnginePath,
938
- libsEntriesPath,
939
- buildPath,
940
- cachePath,
941
- chatPath,
942
- cliPath,
943
- cloudPath,
944
- frameworkCloudPath,
945
- collectionsPath,
946
- commandsPath,
947
- componentsPath,
948
- configPath,
949
- projectConfigPath,
950
- corePath,
951
- customElementsDataPath,
952
- databasePath,
953
- datetimePath,
954
- developmentPath,
955
- desktopPath,
956
- docsPath,
957
- dnsPath,
958
- emailPath,
959
- enumsPath,
960
- errorHandlingPath,
961
- eventsPath,
962
- coreEnvPath,
963
- healthPath,
964
- examplesPath,
965
- fakerPath,
966
- frameworkPath,
967
- storagePath,
968
- functionsPath,
969
- gitPath,
970
- langPath,
971
- layoutsPath,
972
- libsPath,
973
- libraryEntryPath,
974
- lintPath,
975
- listenersPath,
976
- loggingPath,
977
- jobsPath,
978
- modulesPath,
979
- ormPath,
980
- objectsPath,
981
- onboardingPath,
982
- notificationsPath,
983
- packageJsonPath,
984
- viewsPath,
985
- pathPath,
986
- paymentsPath,
987
- projectPath,
988
- projectStoragePath,
989
- publicPath,
990
- pushPath,
991
- queryBuilderPath,
992
- queuePath,
993
- realtimePath,
994
- resourcesPath,
995
- replPath,
996
- routerPath,
997
- routesPath,
998
- runtimePath,
999
- searchEnginePath,
1000
- schedulerPath,
1001
- settingsPath,
1002
- smsPath,
1003
- signalsPath,
1004
- slugPath,
1005
- scriptsPath,
1006
- securityPath,
1007
- serverPath,
1008
- serverlessPath,
1009
- stacksPath,
1010
- stringsPath,
1011
- storesPath,
1012
- testingPath,
1013
- testsPath,
1014
- tinkerPath,
1015
- typesPath,
1016
- uiPath,
1017
- userEventsPath,
1018
- userJobsPath,
1019
- userListenersPath,
1020
- userMiddlewarePath,
1021
- userModelsPath,
1022
- userNotificationsPath,
1023
- utilsPath,
1024
- validationPath,
1025
- vitePath,
1026
- xRayPath,
1027
- basename,
1028
- delimiter,
1029
- dirname,
1030
- extname: extname2,
1031
- format,
1032
- isAbsolute,
1033
- join,
1034
- normalize,
1035
- normalizeString,
1036
- parse,
1037
- relative,
1038
- resolve,
1039
- sep,
1040
- toNamespacedPath
1041
- };
1042
-
1043
- // src/middleware.ts
1044
- async function importMiddlewares(directory) {
1045
- return [directory];
1046
- }
1047
-
1048
- class Middleware {
1049
- name;
1050
- priority;
1051
- handle;
1052
- constructor(data) {
1053
- this.name = data.name;
1054
- this.priority = data.priority;
1055
- this.handle = data.handle;
1056
- }
1057
- }
1058
- var middlewares = await importMiddlewares(appPath("middleware"));
1059
- // src/request.ts
1060
- class Request {
1061
- query = {};
1062
- params = null;
1063
- addQuery(url) {
1064
- this.query = Object.fromEntries(url.searchParams);
1065
- }
1066
- get(element) {
1067
- return this.query[element];
1068
- }
1069
- all() {
1070
- return this.query;
1071
- }
1072
- has(element) {
1073
- return element in this.query;
1074
- }
1075
- isEmpty() {
1076
- return Object.keys(this.query).length === 0;
1077
- }
1078
- extractParamsFromRoute(routePattern, pathname) {
1079
- const pattern = new RegExp(`^${routePattern.replace(/:(\w+)/g, (match2, paramName) => `(?<${paramName}>\\w+)`)}\$`);
1080
- const match = pattern.exec(pathname);
1081
- if (match?.groups)
1082
- this.params = match?.groups;
1083
- }
1084
- getParams(key) {
1085
- return this.params ? this.params[key] || null : null;
1086
- }
1087
- }
1088
- var request = new Request;
1089
- // src/server.ts
1090
- import {URL} from "url";
1091
- import process3 from "process";
1092
- import {log} from "@stacksjs/logging";
1093
- async function serve(options = {}) {
1094
- const hostname = options.host || "localhost";
1095
- const port = options.port || 3000;
1096
- const development = options.debug ? true : process3.env.APP_ENV !== "production" && process3.env.APP_ENV !== "prod";
1097
- if (options.timezone)
1098
- process3.env.TZ = options.timezone;
1099
- Bun.serve({
1100
- hostname,
1101
- port,
1102
- development,
1103
- fetch(req) {
1104
- return serverResponse(req);
1105
- }
1106
- });
1107
- }
1108
- async function serverResponse(req) {
1109
- log.info(`Incoming Request: ${req.method} ${req.url}`);
1110
- log.info(`Headers: ${JSON.stringify(req.headers)}`);
1111
- log.info(`Body: ${JSON.stringify(req.body)}`);
1112
- const trimmedUrl = req.url.endsWith("/") && req.url.length > 1 ? req.url.slice(0, -1) : req.url;
1113
- const routesList = await route.getRoutes();
1114
- log.info(`Routes List: ${JSON.stringify(routesList)}`);
1115
- const url = new URL(trimmedUrl);
1116
- log.info(`URL: ${JSON.stringify(url)}`);
1117
- const foundRoute = routesList.find((route2) => {
1118
- const pattern = new RegExp(`^${route2.uri.replace(/:\w+/g, "\\w+")}\$`);
1119
- return pattern.test(url.pathname);
1120
- });
1121
- log.info(`Found Route: ${JSON.stringify(foundRoute)}`);
1122
- if (!foundRoute)
1123
- return new Response("Pretty 404 page coming soon", { status: 404 });
1124
- addRouteParamsAndQuery(url, foundRoute);
1125
- executeMiddleware(foundRoute);
1126
- return execute(foundRoute, req, { statusCode: foundRoute?.statusCode });
1127
- }
1128
- var addRouteParamsAndQuery = function(url, route2) {
1129
- if (!isObjectNotEmpty(url.searchParams))
1130
- request.addQuery(url);
1131
- request.extractParamsFromRoute(route2.uri, url.pathname);
1132
- };
1133
- var executeMiddleware = function(route2) {
1134
- const { middleware: middleware2 = null } = route2;
1135
- if (middleware2 && middlewares && isObjectNotEmpty(middlewares)) {
1136
- if (isString(middleware2)) {
1137
- const middlewareItem = middlewares.find((middlewareItem2) => {
1138
- return middlewareItem2.name === middleware2;
1139
- });
1140
- if (middlewareItem)
1141
- middlewareItem.handle();
1142
- } else {
1143
- middleware2.forEach((m) => {
1144
- const middlewareItem = middlewares.find((middlewareItem2) => {
1145
- return middlewareItem2.name === m;
1146
- });
1147
- if (middlewareItem)
1148
- middlewareItem.handle();
1149
- });
1150
- }
1151
- }
1152
- };
1153
- var execute = function(route2, request3, { statusCode }) {
1154
- if (!statusCode)
1155
- statusCode = 200;
1156
- if (route2?.method === "GET" && (statusCode === 301 || statusCode === 302)) {
1157
- const callback = String(route2.callback);
1158
- const response = Response.redirect(callback, statusCode);
1159
- return noCache(response);
1160
- }
1161
- if (route2?.method !== request3.method)
1162
- return new Response("Method not allowed", { status: 405 });
1163
- if (isString(route2.callback) && extname(route2.callback) === ".html") {
1164
- try {
1165
- const fileContent = Bun.file(route2.callback);
1166
- return new Response(fileContent, { headers: { "Content-Type": "text/html" } });
1167
- } catch (error) {
1168
- return new Response("Error reading the HTML file", { status: 500 });
1169
- }
1170
- }
1171
- if (isString(route2.callback))
1172
- return new Response(route2.callback);
1173
- if (isFunction(route2.callback)) {
1174
- const result = route2.callback();
1175
- return new Response(JSON.stringify(result));
1176
- }
1177
- if (isObject(route2.callback))
1178
- return new Response(JSON.stringify(route2.callback));
1179
- return new Response("Unknown callback type.", { status: 500 });
1180
- };
1181
- var noCache = function(response) {
1182
- response.headers.set("Cache-Control", "no-store, no-cache, must-revalidate, proxy-revalidate");
1183
- response.headers.set("Pragma", "no-cache");
1184
- response.headers.set("Expires", "0");
1185
- return response;
1186
- };
1187
- var isString = function(val) {
1188
- return typeof val === "string";
1189
- };
1190
- var isObjectNotEmpty = function(obj) {
1191
- return Object.keys(obj).length > 0;
1192
- };
1193
- var isFunction = function(val) {
1194
- return typeof val === "function";
1195
- };
1196
- var isObject = function(val) {
1197
- return val !== null && typeof val === "object" && !Array.isArray(val);
1198
- };
1199
- // src/router.ts
1200
- import {log as log2} from "@stacksjs/logging";
1201
-
1202
- // /home/runner/work/stacks/stacks/storage/framework/core/strings/src/utils.ts
1203
- var import_slugify = __toESM(require_slugify(), 1);
1204
- // /home/runner/work/stacks/stacks/node_modules/change-case/dist/index.js
1205
- function split(value) {
1206
- let result = value.trim();
1207
- result = result.replace(SPLIT_LOWER_UPPER_RE, SPLIT_REPLACE_VALUE).replace(SPLIT_UPPER_UPPER_RE, SPLIT_REPLACE_VALUE);
1208
- result = result.replace(DEFAULT_STRIP_REGEXP, "\0");
1209
- let start = 0;
1210
- let end = result.length;
1211
- while (result.charAt(start) === "\0")
1212
- start++;
1213
- if (start === end)
1214
- return [];
1215
- while (result.charAt(end - 1) === "\0")
1216
- end--;
1217
- return result.slice(start, end).split(/\0/g);
1218
- }
1219
- function splitSeparateNumbers(value) {
1220
- const words = split(value);
1221
- for (let i = 0;i < words.length; i++) {
1222
- const word = words[i];
1223
- const match = SPLIT_SEPARATE_NUMBER_RE.exec(word);
1224
- if (match) {
1225
- const offset = match.index + (match[1] ?? match[2]).length;
1226
- words.splice(i, 1, word.slice(0, offset), word.slice(offset));
1227
- }
1228
- }
1229
- return words;
1230
- }
1231
- function pascalCase(input, options) {
1232
- const [prefix, words, suffix] = splitPrefixSuffix(input, options);
1233
- const lower = lowerFactory(options?.locale);
1234
- const upper = upperFactory(options?.locale);
1235
- const transform = options?.mergeAmbiguousCharacters ? capitalCaseTransformFactory(lower, upper) : pascalCaseTransformFactory(lower, upper);
1236
- return prefix + words.map(transform).join(options?.delimiter ?? "") + suffix;
1237
- }
1238
- var lowerFactory = function(locale) {
1239
- return locale === false ? (input) => input.toLowerCase() : (input) => input.toLocaleLowerCase(locale);
1240
- };
1241
- var upperFactory = function(locale) {
1242
- return locale === false ? (input) => input.toUpperCase() : (input) => input.toLocaleUpperCase(locale);
1243
- };
1244
- var capitalCaseTransformFactory = function(lower, upper) {
1245
- return (word) => `${upper(word[0])}${lower(word.slice(1))}`;
1246
- };
1247
- var pascalCaseTransformFactory = function(lower, upper) {
1248
- return (word, index) => {
1249
- const char0 = word[0];
1250
- const initial = index > 0 && char0 >= "0" && char0 <= "9" ? "_" + char0 : upper(char0);
1251
- return initial + lower(word.slice(1));
1252
- };
1253
- };
1254
- var splitPrefixSuffix = function(input, options = {}) {
1255
- const splitFn = options.split ?? (options.separateNumbers ? splitSeparateNumbers : split);
1256
- const prefixCharacters = options.prefixCharacters ?? DEFAULT_PREFIX_SUFFIX_CHARACTERS;
1257
- const suffixCharacters = options.suffixCharacters ?? DEFAULT_PREFIX_SUFFIX_CHARACTERS;
1258
- let prefixIndex = 0;
1259
- let suffixIndex = input.length;
1260
- while (prefixIndex < input.length) {
1261
- const char = input.charAt(prefixIndex);
1262
- if (!prefixCharacters.includes(char))
1263
- break;
1264
- prefixIndex++;
1265
- }
1266
- while (suffixIndex > prefixIndex) {
1267
- const index = suffixIndex - 1;
1268
- const char = input.charAt(index);
1269
- if (!suffixCharacters.includes(char))
1270
- break;
1271
- suffixIndex = index;
1272
- }
1273
- return [
1274
- input.slice(0, prefixIndex),
1275
- splitFn(input.slice(prefixIndex, suffixIndex)),
1276
- input.slice(suffixIndex)
1277
- ];
1278
- };
1279
- var SPLIT_LOWER_UPPER_RE = /([\p{Ll}\d])(\p{Lu})/gu;
1280
- var SPLIT_UPPER_UPPER_RE = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
1281
- var SPLIT_SEPARATE_NUMBER_RE = /(\d)\p{Ll}|(\p{L})\d/u;
1282
- var DEFAULT_STRIP_REGEXP = /[^\p{L}\d]+/giu;
1283
- var SPLIT_REPLACE_VALUE = "$1\0$2";
1284
- var DEFAULT_PREFIX_SUFFIX_CHARACTERS = "";
1285
- // /home/runner/work/stacks/stacks/node_modules/title-case/dist/index.js
1286
- var WORD_SEPARATORS = new Set(["\u2014", "\u2013", "-", "\u2015", "/"]);
1287
- var SENTENCE_TERMINATORS = new Set([".", "!", "?"]);
1288
- var TITLE_TERMINATORS = new Set([
1289
- ...SENTENCE_TERMINATORS,
1290
- ":",
1291
- '"',
1292
- "'",
1293
- "\u201D"
1294
- ]);
1295
- var SMALL_WORDS = new Set([
1296
- "a",
1297
- "an",
1298
- "and",
1299
- "as",
1300
- "at",
1301
- "because",
1302
- "but",
1303
- "by",
1304
- "en",
1305
- "for",
1306
- "if",
1307
- "in",
1308
- "neither",
1309
- "nor",
1310
- "of",
1311
- "on",
1312
- "only",
1313
- "or",
1314
- "over",
1315
- "per",
1316
- "so",
1317
- "some",
1318
- "than",
1319
- "that",
1320
- "the",
1321
- "to",
1322
- "up",
1323
- "upon",
1324
- "v",
1325
- "versus",
1326
- "via",
1327
- "vs",
1328
- "when",
1329
- "with",
1330
- "without",
1331
- "yet"
1332
- ]);
1333
- // /home/runner/work/stacks/stacks/storage/framework/core/strings/src/pluralize.ts
1334
- var pluralize = __toESM(require_pluralize(), 1);
1335
- // src/router.ts
1336
- class Router {
1337
- routes = [];
1338
- apiPrefix = "/api";
1339
- groupPrefix = "";
1340
- path = "";
1341
- addRoute(method, uri, callback, statusCode) {
1342
- const name = uri.replace(/\//g, ".").replace(/:/g, "");
1343
- const pattern = new RegExp(`^${uri.replace(/:[a-zA-Z]+/g, (_match) => {
1344
- return "([a-zA-Z0-9-]+)";
1345
- })}\$`);
1346
- let routeCallback;
1347
- if (typeof callback === "string" || typeof callback === "object") {
1348
- routeCallback = () => callback;
1349
- } else {
1350
- routeCallback = callback;
1351
- }
1352
- log2.debug(`Adding route: ${method} ${uri} with name ${name}`);
1353
- this.routes.push({
1354
- name,
1355
- method,
1356
- url: uri,
1357
- uri,
1358
- callback: routeCallback,
1359
- pattern,
1360
- statusCode,
1361
- paramNames: []
1362
- });
1363
- return this;
1364
- }
1365
- async get(path5, callback) {
1366
- this.path = this.normalizePath(path5);
1367
- log2.debug(`Normalized Path: ${this.path}`);
1368
- callback = await this.resolveCallback(callback);
1369
- const uri = this.prepareUri(this.path);
1370
- log2.debug(`Prepared URI: ${uri}`);
1371
- return this.addRoute("GET", uri, callback, 200);
1372
- }
1373
- async health() {
1374
- const healthModule = await import(path2.userActionsPath("HealthAction.ts"));
1375
- const callback = healthModule.default.handle;
1376
- const path5 = healthModule.default.path ?? `${this.apiPrefix}/health`;
1377
- this.addRoute("GET", path5, callback, 200);
1378
- return this;
1379
- }
1380
- async job(path5) {
1381
- path5 = pascalCase(path5);
1382
- const jobModule = await import(path2.userJobsPath(`${path5}Job.ts`.replace(/JobJob/, "Job")));
1383
- const callback = jobModule.default.handle;
1384
- path5 = this.prepareUri(path5);
1385
- this.addRoute("GET", path5, callback, 200);
1386
- return this;
1387
- }
1388
- async action(path5) {
1389
- path5 = pascalCase(path5);
1390
- const actionModule = await import(path2.userActionsPath(`${path5}Action.ts`.replace(/ActionAction/, "Action")));
1391
- const callback = actionModule.default.handle;
1392
- path5 = this.prepareUri(path5);
1393
- this.addRoute("GET", path5, callback, 200);
1394
- return this;
1395
- }
1396
- post(path5, callback) {
1397
- path5 = this.prepareUri(path5);
1398
- this.addRoute("POST", path5, callback, 201);
1399
- return this;
1400
- }
1401
- view(path5, callback) {
1402
- this.addRoute("GET", path5, callback, 200);
1403
- return this;
1404
- }
1405
- redirect(path5, callback, _status) {
1406
- this.addRoute("GET", path5, callback, 302);
1407
- return this;
1408
- }
1409
- delete(path5, callback) {
1410
- this.addRoute("DELETE", path5, callback, 204);
1411
- return this;
1412
- }
1413
- patch(path5, callback) {
1414
- this.addRoute("PATCH", path5, callback, 202);
1415
- return this;
1416
- }
1417
- put(path5, callback) {
1418
- this.addRoute("PUT", path5, callback, 202);
1419
- return this;
1420
- }
1421
- group(options, callback) {
1422
- if (typeof options === "string")
1423
- options = options.startsWith("/") ? options.slice(1) : options;
1424
- let cb;
1425
- this.prepareGroupPrefix(options);
1426
- if (typeof options === "function") {
1427
- cb = options;
1428
- options = {};
1429
- }
1430
- if (!callback)
1431
- throw new Error("Missing callback function for your route group.");
1432
- cb = callback;
1433
- const { prefix, middleware: middleware2 = [] } = options;
1434
- const originalRoutes = this.routes;
1435
- this.routes = [];
1436
- cb();
1437
- this.routes.forEach((r) => {
1438
- r.uri = `${prefix}${r.uri}`;
1439
- if (middleware2.length)
1440
- r.middleware = middleware2;
1441
- originalRoutes.push(r);
1442
- return this;
1443
- });
1444
- this.routes = originalRoutes;
1445
- return this;
1446
- }
1447
- name(name) {
1448
- this.routes[this.routes.length - 1].name = name;
1449
- return this;
1450
- }
1451
- middleware(middleware2) {
1452
- this.routes[this.routes.length - 1].middleware = middleware2;
1453
- return this;
1454
- }
1455
- prefix(prefix) {
1456
- this.routes[this.routes.length - 1].prefix = prefix;
1457
- return this;
1458
- }
1459
- async getRoutes() {
1460
- await import(routesPath("api.ts"));
1461
- return this.routes;
1462
- }
1463
- setGroupPrefix(prefix, options = {}) {
1464
- if (prefix !== "") {
1465
- prefix = `/${this.groupPrefix}/${prefix}`.replace(/\/\//g, "/");
1466
- this.groupPrefix = prefix;
1467
- return;
1468
- }
1469
- const effectiveOptions = typeof options === "object" ? options : {};
1470
- this.groupPrefix = effectiveOptions.prefix ?? prefix ?? "";
1471
- }
1472
- prepareGroupPrefix(options) {
1473
- if (this.groupPrefix !== "" && typeof options !== "string")
1474
- return this.setGroupPrefix(this.groupPrefix, options);
1475
- if (typeof options === "string")
1476
- return this.setGroupPrefix(options);
1477
- return this.setGroupPrefix("", options);
1478
- }
1479
- async resolveCallback(callback) {
1480
- if (callback instanceof Promise) {
1481
- const actionModule = await callback;
1482
- return actionModule.default;
1483
- }
1484
- if (typeof callback === "string")
1485
- return this.importCallbackFromPath(callback, this.path);
1486
- return callback;
1487
- }
1488
- async importCallbackFromPath(callbackPath, originalPath) {
1489
- let modulePath = callbackPath;
1490
- let importPathFunction = path2.appPath;
1491
- if (callbackPath.startsWith("../"))
1492
- importPathFunction = path2.routesPath;
1493
- modulePath = modulePath.endsWith(".ts") ? modulePath.slice(0, -3) : modulePath;
1494
- const actionModule = await import(importPathFunction(`${modulePath}.ts`));
1495
- const newPath = actionModule.default.path ?? originalPath;
1496
- this.updatePathIfNeeded(newPath, originalPath);
1497
- return actionModule.default.handle;
1498
- }
1499
- normalizePath(path5) {
1500
- return path5.endsWith("/") ? path5.slice(0, -1) : path5;
1501
- }
1502
- prepareUri(path5) {
1503
- if (path5.startsWith("/"))
1504
- path5 = path5.slice(1);
1505
- path5 = `${this.apiPrefix}${this.groupPrefix}/${path5}`;
1506
- return path5.endsWith("/") ? path5.slice(0, -1) : path5;
1507
- }
1508
- updatePathIfNeeded(newPath, originalPath) {
1509
- if (newPath !== originalPath) {
1510
- this.path = newPath;
1511
- }
1512
- }
1513
- }
1514
- var route = new Router;
1515
- export {
1516
- serverResponse,
1517
- serve,
1518
- route,
1519
- request,
1520
- middlewares,
1521
- Router,
1522
- Request,
1523
- Middleware
1524
- };