stacks 0.58.73 → 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 (1112) hide show
  1. package/buddy/build.ts +38 -0
  2. package/{core/buddy → buddy}/compile.ts +1 -1
  3. package/buddy/dist/chunk-32440b2561f1e29c.js +2015 -0
  4. package/buddy/dist/cli.d.ts +1 -0
  5. package/{core/buddy → buddy}/dist/cli.js +23 -9
  6. package/buddy/dist/commands/build.d.ts +2 -0
  7. package/buddy/dist/commands/changelog.d.ts +2 -0
  8. package/buddy/dist/commands/clean.d.ts +2 -0
  9. package/buddy/dist/commands/cloud.d.ts +2 -0
  10. package/buddy/dist/commands/commit.d.ts +2 -0
  11. package/buddy/dist/commands/configure.d.ts +2 -0
  12. package/buddy/dist/commands/create.d.ts +2 -0
  13. package/buddy/dist/commands/deploy.d.ts +2 -0
  14. package/buddy/dist/commands/dev.d.ts +3 -0
  15. package/buddy/dist/commands/dns.d.ts +2 -0
  16. package/buddy/dist/commands/domains.d.ts +2 -0
  17. package/buddy/dist/commands/fresh.d.ts +2 -0
  18. package/buddy/dist/commands/generate.d.ts +2 -0
  19. package/buddy/dist/commands/http.d.ts +2 -0
  20. package/buddy/dist/commands/index.d.ts +31 -0
  21. package/buddy/dist/commands/install.d.ts +2 -0
  22. package/buddy/dist/commands/key.d.ts +2 -0
  23. package/buddy/dist/commands/lint.d.ts +2 -0
  24. package/buddy/dist/commands/list.d.ts +2 -0
  25. package/buddy/dist/commands/make.d.ts +2 -0
  26. package/buddy/dist/commands/migrate.d.ts +2 -0
  27. package/buddy/dist/commands/ports.d.ts +2 -0
  28. package/buddy/dist/commands/prepublish.d.ts +2 -0
  29. package/buddy/dist/commands/projects.d.ts +2 -0
  30. package/buddy/dist/commands/release.d.ts +2 -0
  31. package/buddy/dist/commands/seed.d.ts +2 -0
  32. package/buddy/dist/commands/setup.d.ts +4 -0
  33. package/buddy/dist/commands/test.d.ts +2 -0
  34. package/buddy/dist/commands/tinker.d.ts +2 -0
  35. package/buddy/dist/commands/types.d.ts +2 -0
  36. package/buddy/dist/commands/upgrade.d.ts +2 -0
  37. package/buddy/dist/commands/version.d.ts +2 -0
  38. package/buddy/dist/index.d.ts +1 -0
  39. package/{core/buddy → buddy}/dist/index.js +2 -5
  40. package/{core/buddy → buddy}/dist/stacks +0 -0
  41. package/{core/buddy → buddy}/package.json +1 -3
  42. package/{core/buddy → buddy}/src/cli.ts +18 -13
  43. package/{core/buddy → buddy}/src/commands/add.ts +1 -1
  44. package/{core/buddy → buddy}/src/commands/commit.ts +1 -1
  45. package/{core/buddy → buddy}/src/commands/deploy.ts +1 -1
  46. package/{core/buddy → buddy}/src/commands/dev.ts +1 -3
  47. package/{core/buddy → buddy}/src/commands/index.ts +0 -1
  48. package/{core/buddy → buddy}/src/commands/list.ts +1 -1
  49. package/{core/buddy → buddy}/src/commands/make.ts +28 -2
  50. package/buddy/src/commands/ports.ts +180 -0
  51. package/{core/buddy → buddy}/src/commands/prepublish.ts +1 -1
  52. package/{core/buddy → buddy}/src/commands/projects.ts +2 -3
  53. package/{core/buddy → buddy}/src/commands/types.ts +1 -1
  54. package/buddy/tsconfig.tsbuildinfo +1 -0
  55. package/package.json +285 -285
  56. package/core/.simple-git-hooks.js +0 -3
  57. package/core/actions/README.md +0 -58
  58. package/core/actions/build.ts +0 -5
  59. package/core/actions/dist/src/add.js +0 -29
  60. package/core/actions/dist/src/build/component-libs.js +0 -6
  61. package/core/actions/dist/src/build/core.js +0 -21
  62. package/core/actions/dist/src/build/stacks.js +0 -8
  63. package/core/actions/dist/src/build.js +0 -219
  64. package/core/actions/dist/src/bump.js +0 -14
  65. package/core/actions/dist/src/changelog.js +0 -17
  66. package/core/actions/dist/src/clean.js +0 -6
  67. package/core/actions/dist/src/commit.js +0 -17
  68. package/core/actions/dist/src/copy-types.js +0 -14
  69. package/core/actions/dist/src/database/seed.js +0 -1
  70. package/core/actions/dist/src/deploy/index.js +0 -31
  71. package/core/actions/dist/src/dev/components.js +0 -11
  72. package/core/actions/dist/src/dev/docs.js +0 -7
  73. package/core/actions/dist/src/dev/index.js +0 -92
  74. package/core/actions/dist/src/examples.js +0 -43
  75. package/core/actions/dist/src/fresh.js +0 -18
  76. package/core/actions/dist/src/generate/component-meta.js +0 -59
  77. package/core/actions/dist/src/generate/ide-helpers.js +0 -91
  78. package/core/actions/dist/src/generate/index.js +0 -154
  79. package/core/actions/dist/src/generate/lib-entries.js +0 -170
  80. package/core/actions/dist/src/generate/vscode-custom-data.js +0 -91
  81. package/core/actions/dist/src/helpers/component-meta.js +0 -50
  82. package/core/actions/dist/src/helpers/index.js +0 -48
  83. package/core/actions/dist/src/helpers/lib-entries.js +0 -161
  84. package/core/actions/dist/src/helpers/package-json.js +0 -136
  85. package/core/actions/dist/src/helpers/utils.js +0 -48
  86. package/core/actions/dist/src/helpers/vscode-custom-data.js +0 -83
  87. package/core/actions/dist/src/index.js +0 -590
  88. package/core/actions/dist/src/key-generate.js +0 -10
  89. package/core/actions/dist/src/lint/fix.js +0 -12
  90. package/core/actions/dist/src/lint/index.js +0 -17
  91. package/core/actions/dist/src/make.js +0 -291
  92. package/core/actions/dist/src/prepublish.js +0 -14
  93. package/core/actions/dist/src/release.js +0 -559
  94. package/core/actions/dist/src/test/coverage.js +0 -6
  95. package/core/actions/dist/src/test/feature.js +0 -6
  96. package/core/actions/dist/src/test/ui.js +0 -6
  97. package/core/actions/dist/src/test/unit.js +0 -6
  98. package/core/actions/dist/src/test.js +0 -6
  99. package/core/actions/dist/src/tinker.js +0 -5
  100. package/core/actions/dist/src/typecheck.js +0 -6
  101. package/core/actions/dist/src/types.js +0 -21
  102. package/core/actions/dist/src/upgrade/dependencies.js +0 -6
  103. package/core/actions/dist/src/upgrade/framework.js +0 -1
  104. package/core/actions/dist/src/upgrade/index.js +0 -58
  105. package/core/actions/dist/src/upgrade.js +0 -47
  106. package/core/actions/package.json +0 -92
  107. package/core/actions/src/action.ts +0 -52
  108. package/core/actions/src/actions.ts +0 -2
  109. package/core/actions/src/add.ts +0 -27
  110. package/core/actions/src/ai/request-model-access.ts +0 -74
  111. package/core/actions/src/build/cli.ts +0 -7
  112. package/core/actions/src/build/component-libs.ts +0 -5
  113. package/core/actions/src/build/core.ts +0 -34
  114. package/core/actions/src/build/desktop.ts +0 -7
  115. package/core/actions/src/build/docs.ts +0 -7
  116. package/core/actions/src/build/server.ts +0 -9
  117. package/core/actions/src/build/stacks.ts +0 -7
  118. package/core/actions/src/build.ts +0 -89
  119. package/core/actions/src/bump.ts +0 -18
  120. package/core/actions/src/cdn/invalidate-cache.ts +0 -27
  121. package/core/actions/src/changelog.ts +0 -21
  122. package/core/actions/src/check/ports.ts +0 -24
  123. package/core/actions/src/clean.ts +0 -6
  124. package/core/actions/src/commit.ts +0 -14
  125. package/core/actions/src/copy-types.ts +0 -22
  126. package/core/actions/src/database/fields.ts +0 -111
  127. package/core/actions/src/database/migration-mysql.ts +0 -72
  128. package/core/actions/src/database/migration-sqlite.ts +0 -67
  129. package/core/actions/src/database/migration.ts +0 -10
  130. package/core/actions/src/database/seed.ts +0 -4
  131. package/core/actions/src/database/user-migration.ts +0 -20
  132. package/core/actions/src/deploy/create-receipt-rule.ts +0 -55
  133. package/core/actions/src/deploy/index.ts +0 -46
  134. package/core/actions/src/dev/api.ts +0 -18
  135. package/core/actions/src/dev/components.ts +0 -14
  136. package/core/actions/src/dev/dashboard.ts +0 -7
  137. package/core/actions/src/dev/desktop.ts +0 -7
  138. package/core/actions/src/dev/docs.ts +0 -7
  139. package/core/actions/src/dev/index.ts +0 -48
  140. package/core/actions/src/dev/system-tray.ts +0 -6
  141. package/core/actions/src/dev/views.ts +0 -7
  142. package/core/actions/src/domains/add.ts +0 -67
  143. package/core/actions/src/domains/purchase.ts +0 -76
  144. package/core/actions/src/domains/remove.ts +0 -38
  145. package/core/actions/src/examples.ts +0 -46
  146. package/core/actions/src/find-projects.ts +0 -21
  147. package/core/actions/src/fresh.ts +0 -20
  148. package/core/actions/src/generate/action-types.ts +0 -25
  149. package/core/actions/src/generate/caddyfile.ts +0 -44
  150. package/core/actions/src/generate/component-meta.ts +0 -19
  151. package/core/actions/src/generate/custom-cli-file.ts +0 -24
  152. package/core/actions/src/generate/env-files.ts +0 -89
  153. package/core/actions/src/generate/ide-helpers.ts +0 -18
  154. package/core/actions/src/generate/index.ts +0 -140
  155. package/core/actions/src/generate/lib-entries.ts +0 -18
  156. package/core/actions/src/generate/model-classes.ts +0 -299
  157. package/core/actions/src/generate/model-generate.ts +0 -12
  158. package/core/actions/src/generate/pkgx-file.ts +0 -72
  159. package/core/actions/src/generate/symlink-core.ts +0 -3
  160. package/core/actions/src/generate/types.ts +0 -6
  161. package/core/actions/src/generate/vscode-custom-data.ts +0 -19
  162. package/core/actions/src/generate/web-types.ts +0 -2
  163. package/core/actions/src/helpers/component-meta.ts +0 -93
  164. package/core/actions/src/helpers/index.ts +0 -1
  165. package/core/actions/src/helpers/lib-entries.ts +0 -139
  166. package/core/actions/src/helpers/package-json.ts +0 -96
  167. package/core/actions/src/helpers/utils.ts +0 -70
  168. package/core/actions/src/helpers/vscode-custom-data.ts +0 -35
  169. package/core/actions/src/index.ts +0 -29
  170. package/core/actions/src/key-generate.ts +0 -10
  171. package/core/actions/src/lint/fix.ts +0 -13
  172. package/core/actions/src/lint/index.ts +0 -27
  173. package/core/actions/src/make.ts +0 -322
  174. package/core/actions/src/migrate/database.ts +0 -1
  175. package/core/actions/src/migrate/dns.ts +0 -3
  176. package/core/actions/src/prepublish.ts +0 -17
  177. package/core/actions/src/release.ts +0 -18
  178. package/core/actions/src/start-caddy.ts +0 -13
  179. package/core/actions/src/test/coverage.ts +0 -5
  180. package/core/actions/src/test/feature.ts +0 -5
  181. package/core/actions/src/test/ui.ts +0 -5
  182. package/core/actions/src/test/unit.ts +0 -5
  183. package/core/actions/src/test.ts +0 -5
  184. package/core/actions/src/tinker.ts +0 -10
  185. package/core/actions/src/typecheck.ts +0 -5
  186. package/core/actions/src/types.ts +0 -20
  187. package/core/actions/src/upgrade/binary.ts +0 -43
  188. package/core/actions/src/upgrade/bun.ts +0 -4
  189. package/core/actions/src/upgrade/dependencies.ts +0 -0
  190. package/core/actions/src/upgrade/framework.ts +0 -30
  191. package/core/actions/src/upgrade/index.ts +0 -28
  192. package/core/actions/src/upgrade/shell.ts +0 -64
  193. package/core/actions/src/upgrade.ts +0 -68
  194. package/core/actions/tests/example.test.ts +0 -5
  195. package/core/ai/README.md +0 -67
  196. package/core/ai/build.ts +0 -9
  197. package/core/ai/dist/index.js +0 -10624
  198. package/core/ai/package.json +0 -60
  199. package/core/ai/src/chatbots.ts +0 -0
  200. package/core/ai/src/image-generation.ts +0 -0
  201. package/core/ai/src/index.ts +0 -8
  202. package/core/ai/src/personalization.ts +0 -0
  203. package/core/ai/src/search.ts +0 -0
  204. package/core/ai/src/text-generation.ts +0 -0
  205. package/core/ai/src/text-summary.ts +0 -0
  206. package/core/ai/src/utils/client-bedrock-runtime.ts +0 -38
  207. package/core/ai/src/utils/client-bedrock.ts +0 -53
  208. package/core/ai/tests/example.test.ts +0 -5
  209. package/core/ai/tsconfig.json +0 -3
  210. package/core/alias/README.md +0 -53
  211. package/core/alias/build.ts +0 -8
  212. package/core/alias/dist/index.js +0 -218
  213. package/core/alias/package.json +0 -52
  214. package/core/alias/src/index.ts +0 -220
  215. package/core/alias/tests/example.test.ts +0 -5
  216. package/core/alias/tsconfig.json +0 -3
  217. package/core/analytics/README.md +0 -55
  218. package/core/analytics/build.ts +0 -8
  219. package/core/analytics/dist/index.js +0 -5
  220. package/core/analytics/package.json +0 -55
  221. package/core/analytics/src/drivers/fathom.ts +0 -1
  222. package/core/analytics/src/drivers/index.ts +0 -1
  223. package/core/analytics/src/index.ts +0 -1
  224. package/core/analytics/tests/example.test.ts +0 -5
  225. package/core/analytics/tsconfig.json +0 -3
  226. package/core/api/build.ts +0 -7
  227. package/core/api/dist/index.js +0 -639
  228. package/core/api/package.json +0 -61
  229. package/core/api/src/index.ts +0 -115
  230. package/core/api/tsconfig.json +0 -3
  231. package/core/arrays/README.md +0 -59
  232. package/core/arrays/build.ts +0 -8
  233. package/core/arrays/dist/index.js +0 -469
  234. package/core/arrays/package.json +0 -60
  235. package/core/arrays/src/arr.ts +0 -3
  236. package/core/arrays/src/contains.ts +0 -87
  237. package/core/arrays/src/helpers.ts +0 -272
  238. package/core/arrays/src/index.ts +0 -3
  239. package/core/arrays/src/macro.ts +0 -131
  240. package/core/arrays/src/math.ts +0 -220
  241. package/core/arrays/tests/example.test.ts +0 -5
  242. package/core/arrays/tsconfig.json +0 -3
  243. package/core/auth/README.md +0 -59
  244. package/core/auth/build.ts +0 -8
  245. package/core/auth/dist/index.js +0 -5
  246. package/core/auth/package.json +0 -51
  247. package/core/auth/src/index.ts +0 -1
  248. package/core/auth/tests/example.test.ts +0 -5
  249. package/core/auth/tsconfig.json +0 -3
  250. package/core/buddy/build.ts +0 -8
  251. package/core/buddy/dist/chunk-1a569f35f66ae151.js +0 -10945
  252. package/core/buddy/dist/chunk-bf054cfbc9cf2201.js +0 -993
  253. package/core/buddy/src/commands/check.ts +0 -45
  254. package/core/buddy/src/commands/ports.ts +0 -73
  255. package/core/buddy/tsconfig.json +0 -3
  256. package/core/build/README.md +0 -59
  257. package/core/build/build.ts +0 -8
  258. package/core/build/dist/index.js +0 -19
  259. package/core/build/package.json +0 -64
  260. package/core/build/src/index.ts +0 -11
  261. package/core/build/tests/example.test.ts +0 -5
  262. package/core/build/tsconfig.json +0 -3
  263. package/core/build/web-types.config.cjs +0 -5
  264. package/core/build/web-types.ts +0 -15
  265. package/core/bun-create/bud/README.md +0 -45
  266. package/core/bun-create/bud/package.json +0 -151
  267. package/core/bun-create/buddy/README.md +0 -45
  268. package/core/bun-create/buddy/package.json +0 -150
  269. package/core/bun-create/stack/README.md +0 -45
  270. package/core/bun-create/stack/package.json +0 -150
  271. package/core/bun-create/stacks/README.md +0 -45
  272. package/core/bun-create/stacks/package.json +0 -150
  273. package/core/bun-create/stx/README.md +0 -45
  274. package/core/bun-create/stx/package.json +0 -151
  275. package/core/bun-plugin-yml/README.md +0 -56
  276. package/core/bun-plugin-yml/TODO.md +0 -1
  277. package/core/bun-plugin-yml/build.ts +0 -8
  278. package/core/bun-plugin-yml/dist/index.js +0 -2762
  279. package/core/bun-plugin-yml/package.json +0 -62
  280. package/core/bun-plugin-yml/src/index.ts +0 -21
  281. package/core/bun-plugin-yml/tests/example.test.ts +0 -5
  282. package/core/bun-plugin-yml/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 -113
  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 -1823
  372. package/core/config/package.json +0 -54
  373. package/core/config/src/config.ts +0 -39
  374. package/core/config/src/defaults.ts +0 -481
  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 -51
  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 -306735
  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 -69
  442. package/core/email/src/drivers/index.ts +0 -3
  443. package/core/email/src/drivers/mailgun.ts +0 -21
  444. package/core/email/src/drivers/nodemailer.ts +0 -23
  445. package/core/email/src/drivers/ses.ts +0 -22
  446. package/core/email/src/email.ts +0 -84
  447. package/core/email/src/index.ts +0 -3
  448. package/core/email/src/send.ts +0 -37
  449. package/core/email/src/server/converter.ts +0 -305
  450. package/core/email/src/server/inbound.ts +0 -406
  451. package/core/email/src/server/outbound.ts +0 -296
  452. package/core/email/src/template.ts +0 -18
  453. package/core/email/src/types.ts +0 -39
  454. package/core/email/src/utils/config.ts +0 -7
  455. package/core/email/tests/example.test.ts +0 -5
  456. package/core/email/tsconfig.json +0 -3
  457. package/core/enums/README.md +0 -54
  458. package/core/enums/build.ts +0 -8
  459. package/core/enums/dist/index.js +0 -105
  460. package/core/enums/package.json +0 -49
  461. package/core/enums/src/index.ts +0 -102
  462. package/core/enums/tests/example.test.ts +0 -5
  463. package/core/enums/tsconfig.json +0 -3
  464. package/core/env/README.md +0 -71
  465. package/core/env/build.ts +0 -8
  466. package/core/env/dist/index.js +0 -238
  467. package/core/env/package.json +0 -55
  468. package/core/env/src/index.ts +0 -76
  469. package/core/env/src/types.ts +0 -54
  470. package/core/env/src/utils.ts +0 -1
  471. package/core/env/tests/example.test.ts +0 -5
  472. package/core/env/tsconfig.json +0 -3
  473. package/core/error-handling/README.md +0 -131
  474. package/core/error-handling/build.ts +0 -8
  475. package/core/error-handling/dist/index.js +0 -432
  476. package/core/error-handling/package.json +0 -63
  477. package/core/error-handling/src/handler.ts +0 -51
  478. package/core/error-handling/src/index.ts +0 -2
  479. package/core/error-handling/tests/example.test.ts +0 -5
  480. package/core/error-handling/tsconfig.json +0 -3
  481. package/core/eslint-config/.gitattributes +0 -2
  482. package/core/eslint-config/README.md +0 -587
  483. package/core/eslint-config/build.ts +0 -8
  484. package/core/eslint-config/package.json +0 -122
  485. package/core/eslint-config/src/configs/comments.ts +0 -19
  486. package/core/eslint-config/src/configs/formatters.ts +0 -187
  487. package/core/eslint-config/src/configs/ignores.ts +0 -10
  488. package/core/eslint-config/src/configs/imports.ts +0 -46
  489. package/core/eslint-config/src/configs/index.ts +0 -21
  490. package/core/eslint-config/src/configs/javascript.ts +0 -226
  491. package/core/eslint-config/src/configs/jsdoc.ts +0 -42
  492. package/core/eslint-config/src/configs/jsonc.ts +0 -86
  493. package/core/eslint-config/src/configs/markdown.ts +0 -110
  494. package/core/eslint-config/src/configs/node.ts +0 -23
  495. package/core/eslint-config/src/configs/perfectionist.ts +0 -18
  496. package/core/eslint-config/src/configs/react.ts +0 -111
  497. package/core/eslint-config/src/configs/sort.ts +0 -223
  498. package/core/eslint-config/src/configs/stylistic.ts +0 -57
  499. package/core/eslint-config/src/configs/svelte.ts +0 -107
  500. package/core/eslint-config/src/configs/test.ts +0 -54
  501. package/core/eslint-config/src/configs/toml.ts +0 -72
  502. package/core/eslint-config/src/configs/typescript.ts +0 -157
  503. package/core/eslint-config/src/configs/unicorn.ts +0 -41
  504. package/core/eslint-config/src/configs/unocss.ts +0 -43
  505. package/core/eslint-config/src/configs/vue.ts +0 -168
  506. package/core/eslint-config/src/configs/yaml.ts +0 -72
  507. package/core/eslint-config/src/factory.ts +0 -255
  508. package/core/eslint-config/src/globs.ts +0 -91
  509. package/core/eslint-config/src/index.ts +0 -9
  510. package/core/eslint-config/src/plugins.ts +0 -10
  511. package/core/eslint-config/src/stub.d.ts +0 -3
  512. package/core/eslint-config/src/types.ts +0 -366
  513. package/core/eslint-config/src/utils.ts +0 -72
  514. package/core/eslint-config/src/vendor/prettier-types.ts +0 -136
  515. package/core/eslint-config/test/cli.spec.ts +0 -91
  516. package/core/eslint-config/test/fixtures.test.ts +0 -125
  517. package/core/eslint-config/tsconfig.json +0 -17
  518. package/core/eslint-config/tsup.config.ts +0 -8
  519. package/core/events/README.md +0 -76
  520. package/core/events/build.ts +0 -8
  521. package/core/events/dist/index.js +0 -63
  522. package/core/events/package.json +0 -53
  523. package/core/events/src/index.ts +0 -167
  524. package/core/events/tests/example.test.ts +0 -5
  525. package/core/events/tsconfig.json +0 -3
  526. package/core/faker/README.md +0 -53
  527. package/core/faker/build.ts +0 -8
  528. package/core/faker/dist/index.js +0 -6
  529. package/core/faker/package.json +0 -62
  530. package/core/faker/src/index.ts +0 -1
  531. package/core/faker/tests/example.test.ts +0 -5
  532. package/core/faker/tsconfig.json +0 -3
  533. package/core/git/README.md +0 -65
  534. package/core/git/build.ts +0 -8
  535. package/core/git/dist/index.js +0 -46
  536. package/core/git/package.json +0 -69
  537. package/core/git/src/index.ts +0 -63
  538. package/core/git/tests/example.test.ts +0 -5
  539. package/core/git/tsconfig.json +0 -3
  540. package/core/health/README.md +0 -56
  541. package/core/health/build.ts +0 -8
  542. package/core/health/dist/index.js +0 -9
  543. package/core/health/package.json +0 -59
  544. package/core/health/src/drivers/index.ts +0 -1
  545. package/core/health/src/drivers/ohdear.ts +0 -1
  546. package/core/health/src/index.ts +0 -2
  547. package/core/health/src/notifications/index.ts +0 -1
  548. package/core/health/tests/example.test.ts +0 -5
  549. package/core/health/tsconfig.json +0 -3
  550. package/core/http/README.md +0 -59
  551. package/core/http/build.ts +0 -8
  552. package/core/http/dist/index.js +0 -65
  553. package/core/http/package.json +0 -53
  554. package/core/http/src/index.ts +0 -71
  555. package/core/http/tsconfig.json +0 -3
  556. package/core/index.ts +0 -57
  557. package/core/lint/.eslintrc.json +0 -3
  558. package/core/lint/README.md +0 -73
  559. package/core/lint/build.ts +0 -8
  560. package/core/lint/dist/index.js +0 -6
  561. package/core/lint/package.json +0 -70
  562. package/core/lint/src/index.ts +0 -3
  563. package/core/lint/tests/example.test.ts +0 -5
  564. package/core/lint/tsconfig.json +0 -3
  565. package/core/logging/README.md +0 -58
  566. package/core/logging/build.ts +0 -8
  567. package/core/logging/dist/index.js +0 -90
  568. package/core/logging/package.json +0 -62
  569. package/core/logging/src/index.ts +0 -137
  570. package/core/logging/tests/example.test.ts +0 -5
  571. package/core/logging/tsconfig.json +0 -3
  572. package/core/notifications/README.md +0 -272
  573. package/core/notifications/build.ts +0 -8
  574. package/core/notifications/dist/index.js +0 -54
  575. package/core/notifications/package.json +0 -104
  576. package/core/notifications/src/drivers/chat.ts +0 -1
  577. package/core/notifications/src/drivers/email.ts +0 -1
  578. package/core/notifications/src/drivers/index.ts +0 -4
  579. package/core/notifications/src/drivers/push.ts +0 -1
  580. package/core/notifications/src/drivers/sms.ts +0 -1
  581. package/core/notifications/src/index.ts +0 -51
  582. package/core/notifications/src/tailwind.config.ts +0 -39
  583. package/core/notifications/src/utils/config.ts +0 -5
  584. package/core/notifications/src/utils/template.html +0 -8
  585. package/core/notifications/tests/chat/Slack.test.ts +0 -34
  586. package/core/notifications/tests/email/Mailgun.test.ts +0 -40
  587. package/core/notifications/tests/email/Sendgrid.test.ts +0 -40
  588. package/core/notifications/tests/sms/Twilio.test.ts +0 -37
  589. package/core/notifications/tsconfig.json +0 -3
  590. package/core/objects/README.md +0 -71
  591. package/core/objects/build.ts +0 -8
  592. package/core/objects/dist/index.js +0 -64
  593. package/core/objects/package.json +0 -64
  594. package/core/objects/src/index.ts +0 -145
  595. package/core/objects/tests/example.test.ts +0 -5
  596. package/core/objects/tsconfig.json +0 -3
  597. package/core/orm/README.md +0 -48
  598. package/core/orm/build.ts +0 -8
  599. package/core/orm/dist/index.js +0 -6
  600. package/core/orm/package.json +0 -60
  601. package/core/orm/src/index.ts +0 -49
  602. package/core/orm/tests/example.test.ts +0 -5
  603. package/core/orm/tsconfig.json +0 -3
  604. package/core/path/README.md +0 -64
  605. package/core/path/build.ts +0 -8
  606. package/core/path/dist/index.js +0 -587
  607. package/core/path/package.json +0 -55
  608. package/core/path/src/index.ts +0 -632
  609. package/core/path/tests/example.test.ts +0 -5
  610. package/core/path/tsconfig.json +0 -3
  611. package/core/payments/README.md +0 -64
  612. package/core/payments/build.ts +0 -8
  613. package/core/payments/dist/index.js +0 -6297
  614. package/core/payments/package.json +0 -61
  615. package/core/payments/src/drivers/stripe.ts +0 -116
  616. package/core/payments/src/index.ts +0 -1
  617. package/core/payments/tests/example.test.ts +0 -5
  618. package/core/payments/tsconfig.json +0 -3
  619. package/core/playwright.config.ts +0 -109
  620. package/core/push/README.md +0 -71
  621. package/core/push/build.ts +0 -9
  622. package/core/push/dist/index.js +0 -35
  623. package/core/push/package.json +0 -65
  624. package/core/push/src/drivers/expo.ts +0 -21
  625. package/core/push/src/drivers/fcm.ts +0 -21
  626. package/core/push/src/drivers/index.ts +0 -2
  627. package/core/push/src/index.ts +0 -1
  628. package/core/push/tests/example.test.ts +0 -5
  629. package/core/push/tsconfig.json +0 -3
  630. package/core/query-builder/README.md +0 -48
  631. package/core/query-builder/build.ts +0 -8
  632. package/core/query-builder/dist/index.js +0 -18
  633. package/core/query-builder/package.json +0 -60
  634. package/core/query-builder/src/index.ts +0 -1
  635. package/core/query-builder/src/kysely.ts +0 -38
  636. package/core/query-builder/tests/example.test.ts +0 -5
  637. package/core/query-builder/tsconfig.json +0 -3
  638. package/core/queue/README.md +0 -59
  639. package/core/queue/build.ts +0 -8
  640. package/core/queue/dist/index.js +0 -25
  641. package/core/queue/package.json +0 -56
  642. package/core/queue/src/index.ts +0 -23
  643. package/core/queue/tests/example.test.ts +0 -5
  644. package/core/queue/tsconfig.json +0 -3
  645. package/core/raycast/package.json +0 -9
  646. package/core/raycast/src/index.ts +0 -0
  647. package/core/realtime/README.md +0 -59
  648. package/core/realtime/build.ts +0 -8
  649. package/core/realtime/dist/index.js +0 -6
  650. package/core/realtime/package.json +0 -53
  651. package/core/realtime/src/drivers/index.ts +0 -1
  652. package/core/realtime/src/index.ts +0 -1
  653. package/core/realtime/tests/example.test.ts +0 -5
  654. package/core/realtime/tsconfig.json +0 -3
  655. package/core/repl/README.md +0 -53
  656. package/core/repl/build.ts +0 -8
  657. package/core/repl/dist/index.js +0 -6
  658. package/core/repl/package.json +0 -60
  659. package/core/repl/src/index.ts +0 -1
  660. package/core/repl/tests/example.test.ts +0 -5
  661. package/core/repl/tsconfig.json +0 -3
  662. package/core/router/README.md +0 -59
  663. package/core/router/build.ts +0 -8
  664. package/core/router/dist/index.js +0 -1544
  665. package/core/router/package.json +0 -64
  666. package/core/router/src/index.ts +0 -4
  667. package/core/router/src/middleware.ts +0 -34
  668. package/core/router/src/request.ts +0 -44
  669. package/core/router/src/router.ts +0 -310
  670. package/core/router/src/server.ts +0 -173
  671. package/core/router/tests/example.test.ts +0 -5
  672. package/core/router/tsconfig.json +0 -3
  673. package/core/scheduler/README.md +0 -137
  674. package/core/scheduler/build.ts +0 -8
  675. package/core/scheduler/dist/index.js +0 -742
  676. package/core/scheduler/package.json +0 -62
  677. package/core/scheduler/src/constants.ts +0 -81
  678. package/core/scheduler/src/errors.ts +0 -7
  679. package/core/scheduler/src/index.ts +0 -20
  680. package/core/scheduler/src/job.ts +0 -315
  681. package/core/scheduler/src/schedule.ts +0 -116
  682. package/core/scheduler/src/time.ts +0 -823
  683. package/core/scheduler/src/types/cron.ts +0 -98
  684. package/core/scheduler/src/types/utils.ts +0 -14
  685. package/core/scheduler/src/utils.ts +0 -19
  686. package/core/scheduler/tests/cron.fuzz.ts +0 -120
  687. package/core/scheduler/tests/cron.test.ts +0 -1243
  688. package/core/scheduler/tests/crontime.test.ts +0 -780
  689. package/core/scheduler/tsconfig.json +0 -3
  690. package/core/search-engine/README.md +0 -66
  691. package/core/search-engine/build.ts +0 -8
  692. package/core/search-engine/dist/index.js +0 -87
  693. package/core/search-engine/package.json +0 -68
  694. package/core/search-engine/src/drivers/index.ts +0 -1
  695. package/core/search-engine/src/drivers/meilisearch.ts +0 -124
  696. package/core/search-engine/src/drivers/opensearch.ts +0 -59
  697. package/core/search-engine/src/helpers.ts +0 -138
  698. package/core/search-engine/src/index.ts +0 -69
  699. package/core/search-engine/tests/example.test.ts +0 -5
  700. package/core/search-engine/tsconfig.json +0 -3
  701. package/core/security/README.md +0 -66
  702. package/core/security/build.ts +0 -8
  703. package/core/security/dist/index.js +0 -3285
  704. package/core/security/package.json +0 -66
  705. package/core/security/src/crypt.ts +0 -23
  706. package/core/security/src/hash.ts +0 -54
  707. package/core/security/src/index.ts +0 -3
  708. package/core/security/src/key.ts +0 -11
  709. package/core/security/tests/example.test.ts +0 -5
  710. package/core/security/tsconfig.json +0 -3
  711. package/core/server/README.md +0 -51
  712. package/core/server/build.ts +0 -8
  713. package/core/server/dist/index.js +0 -13591
  714. package/core/server/package.json +0 -68
  715. package/core/server/src/config.ts +0 -76
  716. package/core/server/src/index.ts +0 -1
  717. package/core/server/tests/example.test.ts +0 -5
  718. package/core/server/tsconfig.json +0 -3
  719. package/core/shell/README.md +0 -55
  720. package/core/shell/build.ts +0 -8
  721. package/core/shell/dist/index.js +0 -6
  722. package/core/shell/package.json +0 -39
  723. package/core/shell/src/buddy.plugin.zsh +0 -120
  724. package/core/shell/src/index.ts +0 -1
  725. package/core/signals/README.md +0 -105
  726. package/core/signals/build.ts +0 -8
  727. package/core/signals/dist/index.js +0 -9
  728. package/core/signals/package.json +0 -64
  729. package/core/signals/src/index.ts +0 -1
  730. package/core/signals/tests/example.test.ts +0 -5
  731. package/core/signals/tsconfig.json +0 -3
  732. package/core/slug/README.md +0 -59
  733. package/core/slug/build.ts +0 -8
  734. package/core/slug/dist/index.js +0 -5
  735. package/core/slug/package.json +0 -66
  736. package/core/slug/src/index.ts +0 -56
  737. package/core/slug/tests/example.test.ts +0 -5
  738. package/core/slug/tsconfig.json +0 -3
  739. package/core/sms/README.md +0 -137
  740. package/core/sms/build.ts +0 -9
  741. package/core/sms/dist/index.js +0 -240
  742. package/core/sms/package.json +0 -83
  743. package/core/sms/src/drivers/gupshup.ts +0 -21
  744. package/core/sms/src/drivers/index.ts +0 -8
  745. package/core/sms/src/drivers/nexmo.ts +0 -23
  746. package/core/sms/src/drivers/plivo.ts +0 -23
  747. package/core/sms/src/drivers/sms77.ts +0 -22
  748. package/core/sms/src/drivers/sns.ts +0 -22
  749. package/core/sms/src/drivers/telnyx.ts +0 -23
  750. package/core/sms/src/drivers/termii.ts +0 -22
  751. package/core/sms/src/drivers/twilio.ts +0 -23
  752. package/core/sms/src/index.ts +0 -1
  753. package/core/sms/tests/example.test.ts +0 -5
  754. package/core/sms/tsconfig.json +0 -3
  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/tables/README.md +0 -110
  792. package/core/tables/examples/vue/App.stx +0 -12
  793. package/core/tables/examples/vue/favicon.png +0 -0
  794. package/core/tables/examples/vue/index.html +0 -20
  795. package/core/tables/examples/web/favicon.png +0 -0
  796. package/core/tables/examples/web/index.html +0 -13
  797. package/core/tables/index.html +0 -13
  798. package/core/tables/package.json +0 -57
  799. package/core/tables/src/App.stx +0 -23
  800. package/core/tables/src/commands/index.ts +0 -1
  801. package/core/tables/src/components/Demo.stx +0 -84
  802. package/core/tables/src/components/README.md +0 -109
  803. package/core/tables/src/components/Table.stx +0 -342
  804. package/core/tables/src/components/TableBody.stx +0 -32
  805. package/core/tables/src/components/TableCellActionItems.stx +0 -9
  806. package/core/tables/src/components/TableFilters.stx +0 -704
  807. package/core/tables/src/components/TableHead.stx +0 -60
  808. package/core/tables/src/components/TablePagination.stx +0 -131
  809. package/core/tables/src/components/TableRow.stx +0 -73
  810. package/core/tables/src/components/TableSearch.stx +0 -39
  811. package/core/tables/src/components/Tooltip.stx +0 -10
  812. package/core/tables/src/components.d.ts +0 -24
  813. package/core/tables/src/config/tables.ts +0 -2
  814. package/core/tables/src/docs/index.md +0 -0
  815. package/core/tables/src/functions/README.md +0 -8
  816. package/core/tables/src/functions/dark.ts +0 -3
  817. package/core/tables/src/functions/index.ts +0 -2
  818. package/core/tables/src/functions/table.ts +0 -207
  819. package/core/tables/src/main.ts +0 -4
  820. package/core/tables/tests/example.test.ts +0 -5
  821. package/core/tables/tsconfig.json +0 -3
  822. package/core/testing/README.md +0 -59
  823. package/core/testing/build.ts +0 -8
  824. package/core/testing/dist/index.js +0 -15025
  825. package/core/testing/package.json +0 -65
  826. package/core/testing/src/index.ts +0 -13
  827. package/core/testing/tsconfig.json +0 -3
  828. package/core/tinker/package.json +0 -47
  829. package/core/tinker/src/index.ts +0 -1
  830. package/core/tinker/tsconfig.json +0 -3
  831. package/core/tmp.json +0 -0
  832. package/core/tsconfig.json +0 -83
  833. package/core/tunnel/README.md +0 -53
  834. package/core/tunnel/build.ts +0 -8
  835. package/core/tunnel/dist/index.js +0 -10
  836. package/core/tunnel/package.json +0 -58
  837. package/core/tunnel/src/index.ts +0 -6
  838. package/core/tunnel/tests/example.test.ts +0 -5
  839. package/core/tunnel/tsconfig.json +0 -3
  840. package/core/types/README.md +0 -59
  841. package/core/types/build.ts +0 -8
  842. package/core/types/dist/index.js +0 -2285
  843. package/core/types/package.json +0 -87
  844. package/core/types/src/ai.ts +0 -26
  845. package/core/types/src/analytics.ts +0 -21
  846. package/core/types/src/api.ts +0 -65
  847. package/core/types/src/app.ts +0 -151
  848. package/core/types/src/auto-imports.ts +0 -1
  849. package/core/types/src/binary.ts +0 -13
  850. package/core/types/src/build.ts +0 -2
  851. package/core/types/src/cache.ts +0 -98
  852. package/core/types/src/cdn.ts +0 -17
  853. package/core/types/src/chat.ts +0 -5
  854. package/core/types/src/cli.ts +0 -333
  855. package/core/types/src/cloud.ts +0 -105
  856. package/core/types/src/components.ts +0 -64
  857. package/core/types/src/configure.ts +0 -13
  858. package/core/types/src/cron-jobs.ts +0 -51
  859. package/core/types/src/database.ts +0 -45
  860. package/core/types/src/dependencies.ts +0 -69
  861. package/core/types/src/deploy.ts +0 -13
  862. package/core/types/src/dns.ts +0 -186
  863. package/core/types/src/docs.ts +0 -26
  864. package/core/types/src/email.ts +0 -19
  865. package/core/types/src/env.ts +0 -1
  866. package/core/types/src/errors.ts +0 -11
  867. package/core/types/src/events.ts +0 -30
  868. package/core/types/src/exit-code.ts +0 -10
  869. package/core/types/src/file-systems.ts +0 -70
  870. package/core/types/src/git.ts +0 -133
  871. package/core/types/src/hashing.ts +0 -131
  872. package/core/types/src/helpers.ts +0 -11
  873. package/core/types/src/i18n.ts +0 -19
  874. package/core/types/src/index.ts +0 -61
  875. package/core/types/src/inspect.ts +0 -10
  876. package/core/types/src/layout.ts +0 -8
  877. package/core/types/src/library.ts +0 -156
  878. package/core/types/src/logger.ts +0 -54
  879. package/core/types/src/manifest.ts +0 -9
  880. package/core/types/src/model.ts +0 -72
  881. package/core/types/src/money.ts +0 -3
  882. package/core/types/src/native.ts +0 -0
  883. package/core/types/src/notifications.ts +0 -147
  884. package/core/types/src/pages.ts +0 -10
  885. package/core/types/src/payments.ts +0 -65
  886. package/core/types/src/ports.ts +0 -19
  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 -246
  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 -3240
  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/find.ts +0 -91
  940. package/core/utils/src/function.ts +0 -32
  941. package/core/utils/src/git.ts +0 -11
  942. package/core/utils/src/glob.ts +0 -1
  943. package/core/utils/src/guards.ts +0 -39
  944. package/core/utils/src/hash.ts +0 -26
  945. package/core/utils/src/helpers.ts +0 -187
  946. package/core/utils/src/index.ts +0 -24
  947. package/core/utils/src/macroable.ts +0 -1
  948. package/core/utils/src/math.ts +0 -30
  949. package/core/utils/src/p.ts +0 -119
  950. package/core/utils/src/promise.ts +0 -117
  951. package/core/utils/src/regex.ts +0 -2
  952. package/core/utils/src/retry.ts +0 -33
  953. package/core/utils/src/sleep.ts +0 -60
  954. package/core/utils/src/throttle.ts +0 -44
  955. package/core/utils/src/vendors.ts +0 -258
  956. package/core/utils/src/versions.ts +0 -6
  957. package/core/utils/tests/example.test.ts +0 -5
  958. package/core/utils/tsconfig.json +0 -3
  959. package/core/validation/README.md +0 -53
  960. package/core/validation/build.ts +0 -5
  961. package/core/validation/dist/index.js +0 -187
  962. package/core/validation/package.json +0 -64
  963. package/core/validation/src/index.ts +0 -4
  964. package/core/validation/src/is.ts +0 -111
  965. package/core/validation/src/rules.ts +0 -126
  966. package/core/validation/src/types/index.ts +0 -7
  967. package/core/validation/src/types/money.ts +0 -17
  968. package/core/validation/src/validate.ts +0 -33
  969. package/core/validation/tests/example.test.ts +0 -5
  970. package/core/validation/tsconfig.json +0 -3
  971. package/core/vite/README.md +0 -59
  972. package/core/vite/build.ts +0 -9
  973. package/core/vite/dist/index.js +0 -644
  974. package/core/vite/package.json +0 -122
  975. package/core/vite/src/api.ts +0 -18
  976. package/core/vite/src/components.ts +0 -79
  977. package/core/vite/src/dashboard.ts +0 -100
  978. package/core/vite/src/desktop.ts +0 -3
  979. package/core/vite/src/example-vue.ts +0 -20
  980. package/core/vite/src/example-wc.ts +0 -24
  981. package/core/vite/src/functions.ts +0 -54
  982. package/core/vite/src/index.ts +0 -18
  983. package/core/vite/src/plugin/auto-imports.ts +0 -39
  984. package/core/vite/src/plugin/components.ts +0 -17
  985. package/core/vite/src/plugin/css-engine.ts +0 -18
  986. package/core/vite/src/plugin/devtools.ts +0 -1
  987. package/core/vite/src/plugin/docs.ts +0 -18
  988. package/core/vite/src/plugin/fonts.ts +0 -6
  989. package/core/vite/src/plugin/i18n.ts +0 -13
  990. package/core/vite/src/plugin/inspect.ts +0 -6
  991. package/core/vite/src/plugin/layouts.ts +0 -17
  992. package/core/vite/src/plugin/markdown.ts +0 -26
  993. package/core/vite/src/plugin/pages.ts +0 -34
  994. package/core/vite/src/plugin/presets.ts +0 -17
  995. package/core/vite/src/plugin/pwa.ts +0 -33
  996. package/core/vite/src/plugin/router.ts +0 -17
  997. package/core/vite/src/plugin/stacks.ts +0 -150
  998. package/core/vite/src/plugin/ui-engine.ts +0 -19
  999. package/core/vite/src/plugins.ts +0 -12
  1000. package/core/vite/src/system-tray.ts +0 -100
  1001. package/core/vite/src/views.ts +0 -97
  1002. package/core/vite/src/web-components.ts +0 -67
  1003. package/core/vite/tests/example.test.ts +0 -5
  1004. package/core/vite/tsconfig.json +0 -3
  1005. package/core/web-types.json +0 -67
  1006. package/core/whois/README.md +0 -55
  1007. package/core/whois/build.ts +0 -8
  1008. package/core/whois/dist/index.js +0 -600
  1009. package/core/whois/package.json +0 -61
  1010. package/core/whois/src/index.ts +0 -499
  1011. package/core/whois/src/parameters.ts +0 -4
  1012. package/core/whois/src/servers.ts +0 -318
  1013. package/core/whois/src/test.ts +0 -5
  1014. package/core/whois/tests/example.test.ts +0 -5
  1015. package/core/whois/tsconfig.json +0 -3
  1016. package/core/x-ray/README.md +0 -55
  1017. package/core/x-ray/index.html +0 -13
  1018. package/core/x-ray/package.json +0 -53
  1019. package/core/x-ray/routes/index.ts +0 -19
  1020. package/core/x-ray/src/client.ts +0 -14
  1021. package/core/x-ray/src/desktop/api/nitro.config.ts +0 -19
  1022. package/core/x-ray/src/desktop/api/routes/api/logs.ts +0 -7
  1023. package/core/x-ray/src/desktop/api/routes/api/store-logs.ts +0 -22
  1024. package/core/x-ray/src/desktop/api/src/types.ts +0 -7
  1025. package/core/x-ray/src/desktop/api/storage/index.ts +0 -7
  1026. package/core/x-ray/src/desktop/app.stx +0 -377
  1027. package/core/x-ray/src/desktop/functions/http.ts +0 -26
  1028. package/core/x-ray/src/desktop/functions/types.ts +0 -7
  1029. package/core/x-ray/src/desktop/main.ts +0 -8
  1030. package/core/x-ray/src/desktop/modules/counter/mod.stx +0 -44
  1031. package/core/x-ray/src/desktop/modules/fetcher/mod.stx +0 -63
  1032. package/core/x-ray/src/desktop/plugins/unified/unified-app.ts +0 -5
  1033. package/core/x-ray/src/desktop/plugins/unified/unified-styles.scss +0 -0
  1034. package/core/x-ray/src/desktop/services/http.ts +0 -45
  1035. package/core/x-ray/src/desktop/styles/app.scss +0 -0
  1036. package/core/x-ray/src/http.ts +0 -26
  1037. package/core/x-ray/src/index.ts +0 -42
  1038. package/core/x-ray/src/ray.config.ts +0 -27
  1039. package/core/x-ray/src/types.ts +0 -8
  1040. package/core/x-ray/tests/example.test.ts +0 -5
  1041. package/core/x-ray/tsconfig.json +0 -3
  1042. package/ide/dictionary.txt +0 -333
  1043. package/ide/jetbrains/.fleet/settings.json +0 -4
  1044. package/ide/jetbrains/.idea/.name +0 -1
  1045. package/ide/jetbrains/.idea/inspectionProfiles/Project_Default.xml +0 -6
  1046. package/ide/jetbrains/.idea/jsLinters/eslint.xml +0 -7
  1047. package/ide/jetbrains/.idea/modules.xml +0 -8
  1048. package/ide/jetbrains/.idea/stacks.iml +0 -22
  1049. package/ide/jetbrains/.idea/vcs.xml +0 -6
  1050. package/ide/jetbrains/.idea/webResources.xml +0 -14
  1051. package/ide/jetbrains/IntelliJ IDEA Global Settings +0 -0
  1052. package/ide/jetbrains/installed.txt +0 -4
  1053. package/ide/jetbrains/options/github-copilot.xml +0 -5
  1054. package/ide/jetbrains/options/nodejs.xml +0 -7
  1055. package/ide/jetbrains/options/templates.xml +0 -124
  1056. package/ide/jetbrains/templates/JavaScript.xml +0 -6
  1057. package/ide/jetbrains/templates/Stacks.xml +0 -8
  1058. package/ide/vscode/.vscode/README.md +0 -23
  1059. package/ide/vscode/.vscode/extensions.json +0 -5
  1060. package/ide/vscode/.vscode/settings.json +0 -135
  1061. package/ide/vscode/.vscode/stacks.code-snippets +0 -182
  1062. package/ide/vscode/LICENSE.md +0 -21
  1063. package/ide/vscode/README.md +0 -37
  1064. package/ide/vscode/logo.png +0 -0
  1065. package/ide/vscode/package.json +0 -63
  1066. package/stubs/.gitkeep +0 -0
  1067. package/stubs/TODO.md +0 -18
  1068. package/vcs/github/CODE_OF_CONDUCT.md +0 -83
  1069. package/vcs/github/CONTRIBUTING.md +0 -188
  1070. package/vcs/github/EXPLANATIONS.md +0 -41
  1071. package/vcs/github/FUNDING.yml +0 -1
  1072. package/vcs/github/ISSUE_TEMPLATE/bug_report.yml +0 -49
  1073. package/vcs/github/ISSUE_TEMPLATE/config.yml +0 -10
  1074. package/vcs/github/ISSUE_TEMPLATE/feature_request.yml +0 -44
  1075. package/vcs/github/SECURITY.md +0 -70
  1076. package/vcs/github/renovate.json +0 -5
  1077. package/vcs/github/stale.yml +0 -14
  1078. package/vcs/github/workflows/README.md +0 -16
  1079. package/vcs/github/workflows/ci.yml +0 -174
  1080. package/vcs/github/workflows/export-size.yml +0 -23
  1081. package/vcs/github/workflows/labeler.yml +0 -13
  1082. package/vcs/github/workflows/release.yml +0 -69
  1083. package/{core/README.md → README.md} +0 -0
  1084. package/{core/buddy → buddy}/README.md +0 -0
  1085. package/{core/buddy → buddy}/art/social.jpg +0 -0
  1086. package/{core/buddy → buddy}/bin/cli.ts +0 -0
  1087. package/{core/buddy/dist/chunk-0455e53fab4244b1.js → buddy/dist/chunk-970e033f764e29fc.js} +0 -0
  1088. package/{core/buddy → buddy}/src/commands/build.ts +0 -0
  1089. package/{core/buddy → buddy}/src/commands/changelog.ts +0 -0
  1090. package/{core/buddy → buddy}/src/commands/clean.ts +0 -0
  1091. package/{core/buddy → buddy}/src/commands/cloud.ts +0 -0
  1092. package/{core/buddy → buddy}/src/commands/configure.ts +0 -0
  1093. package/{core/buddy → buddy}/src/commands/create.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/generate.ts +0 -0
  1098. package/{core/buddy → buddy}/src/commands/http.ts +0 -0
  1099. package/{core/buddy → buddy}/src/commands/install.ts +0 -0
  1100. package/{core/buddy → buddy}/src/commands/key.ts +1 -1
  1101. /package/{core/buddy → buddy}/src/commands/lint.ts +0 -0
  1102. /package/{core/buddy → buddy}/src/commands/migrate.ts +0 -0
  1103. /package/{core/buddy → buddy}/src/commands/release.ts +0 -0
  1104. /package/{core/buddy → buddy}/src/commands/seed.ts +0 -0
  1105. /package/{core/buddy → buddy}/src/commands/setup.ts +0 -0
  1106. /package/{core/buddy → buddy}/src/commands/test.ts +0 -0
  1107. /package/{core/buddy → buddy}/src/commands/tinker.ts +0 -0
  1108. /package/{core/buddy → buddy}/src/commands/upgrade.ts +0 -0
  1109. /package/{core/buddy → buddy}/src/commands/version.ts +0 -0
  1110. /package/{core/buddy → buddy}/src/custom-cli.ts +0 -0
  1111. /package/{core/buddy → buddy}/src/index.ts +0 -0
  1112. /package/{core/actions → buddy}/tsconfig.json +0 -0
@@ -1,590 +0,0 @@
1
- // @bun
2
- // src/helpers/utils.ts
3
- import * as storage from "@stacksjs/storage";
4
- import {buddyOptions, runCommand, runCommands} from "@stacksjs/cli";
5
- import {log} from "@stacksjs/logging";
6
- import * as p from "@stacksjs/path";
7
- import {err, handleError} from "@stacksjs/error-handling";
8
- async function runAction(action, options) {
9
- const opts = buddyOptions();
10
- const path = p.relativeActionsPath(`${action}.ts`);
11
- const cmd = `bun --bun ${path} ${opts}`.trimEnd();
12
- const optionsWithCwd = {
13
- cwd: options?.cwd || p.projectPath(),
14
- ...options
15
- };
16
- log.debug("runAction:", cmd);
17
- log.debug("action options:", optionsWithCwd);
18
- if (!hasAction(action))
19
- return err(handleError(`The specified action "${action}" does not exist`));
20
- return await runCommand(cmd, optionsWithCwd);
21
- }
22
- async function runActions(actions, options) {
23
- log.debug("runActions:", actions);
24
- log.debug("actions options:", options);
25
- if (!actions.length)
26
- return err("No actions were specified");
27
- for (const action of actions) {
28
- if (!hasAction(action))
29
- return err(`The specified action "${action}" does not exist`);
30
- }
31
- const opts = buddyOptions();
32
- const o = {
33
- cwd: options?.cwd || p.projectPath(),
34
- ...options
35
- };
36
- const commands = actions.map((action) => `bun --bun ${p.relativeActionsPath(`${action}.ts`)} ${opts}`);
37
- return await runCommands(commands, o);
38
- }
39
- function hasAction(action) {
40
- if (storage.isFile(p.functionsPath(`actions/${action}.ts`)))
41
- return true;
42
- return storage.isFile(p.actionsPath(`${action}.ts`));
43
- }
44
- // src/dev/index.ts
45
- import {log as log2} from "@stacksjs/logging";
46
- import {Action} from "@stacksjs/enums";
47
- async function runDevServer(options) {
48
- log2.info("Starting your Frontend Engine...");
49
- await runAction(Action.Dev, options);
50
- }
51
- async function runFrontendDevServer(options) {
52
- log2.info("Starting your UI Engine...");
53
- await runAction(Action.Dev, options);
54
- }
55
- async function runBackendDevServer(options) {
56
- runApiDevServer(options);
57
- }
58
- async function runApiDevServer(options) {
59
- log2.info("Starting your API...");
60
- await runAction(Action.DevApi, options);
61
- }
62
- async function runComponentsDevServer(options) {
63
- log2.info("Starting your Library Engine...");
64
- await runAction(Action.DevComponents, options);
65
- }
66
- async function runDashboardDevServer(options) {
67
- log2.info("Starting your Dashboard...");
68
- await runAction(Action.DevDashboard, options);
69
- }
70
- async function runSystemTrayDevServer(options) {
71
- log2.info("Starting your System Tray...");
72
- await runAction(Action.DevSystemTray, options);
73
- }
74
- async function runDesktopDevServer(options) {
75
- log2.info("Starting your Desktop Engine...");
76
- await runAction(Action.DevDesktop, options);
77
- }
78
- async function runDocsDevServer(options) {
79
- log2.info("Starting your Docs Engine...");
80
- await runAction(Action.DevDocs, options);
81
- }
82
-
83
- // src/generate/index.ts
84
- import process from "process";
85
- import {log as log3} from "@stacksjs/logging";
86
- import {Action as Action2, NpmScript} from "@stacksjs/enums";
87
- import {runCommand as runCommand2} from "@stacksjs/cli";
88
- import {runNpmScript} from "@stacksjs/utils";
89
- import {frameworkPath, projectPath as projectPath2} from "@stacksjs/path";
90
- async function invoke(options) {
91
- if (options?.types)
92
- await generateTypes(options);
93
- else if (options?.entries)
94
- await generateLibEntries(options);
95
- else if (options?.webTypes)
96
- await generateWebTypes(options);
97
- else if (options?.customData)
98
- await generateVsCodeCustomData(options);
99
- else if (options?.ideHelpers)
100
- await generateIdeHelpers(options);
101
- else if (options?.componentMeta)
102
- await generateComponentMeta(options);
103
- else if (options?.coreSymlink)
104
- await generateCoreSymlink();
105
- }
106
- function generate(options) {
107
- return invoke(options);
108
- }
109
- async function generateLibEntries(options) {
110
- const result = await runAction(Action2.GenerateLibraryEntries, {
111
- ...options,
112
- cwd: projectPath2()
113
- });
114
- if (result.isErr()) {
115
- log3.error("There was an error generating your library entry points", result.error);
116
- process.exit();
117
- }
118
- log3.success("Library entry points generated successfully");
119
- }
120
- async function generateWebTypes(options) {
121
- const result = await runNpmScript(NpmScript.GenerateWebTypes, options);
122
- if (result.isErr()) {
123
- log3.error("There was an error generating the web-types.json file.", result.error);
124
- process.exit();
125
- }
126
- log3.success("Successfully generated the web-types.json file");
127
- }
128
- async function generateVsCodeCustomData(options) {
129
- const result = await runNpmScript(NpmScript.GenerateVsCodeCustomData, {
130
- cwd: frameworkPath(),
131
- ...options
132
- });
133
- if (result.isErr()) {
134
- log3.error("There was an error generating the custom-elements.json file.", result.error);
135
- process.exit();
136
- }
137
- await runAction(Action2.LintFix, { verbose: true });
138
- log3.success("Successfully generated the custom-elements.json file");
139
- }
140
- async function generateIdeHelpers(options) {
141
- const result = await runNpmScript(NpmScript.GenerateIdeHelpers, options);
142
- if (result.isErr()) {
143
- log3.error("There was an error generating IDE helpers.", result.error);
144
- process.exit();
145
- }
146
- await runAction(Action2.LintFix, { verbose: true });
147
- log3.success("Successfully generated IDE helpers");
148
- }
149
- async function generateComponentMeta(options) {
150
- const result = await runNpmScript(NpmScript.GenerateComponentMeta, options);
151
- if (result.isErr()) {
152
- log3.error("There was an error generating your component meta information.", result.error);
153
- process.exit();
154
- }
155
- await runAction(Action2.LintFix, { verbose: true });
156
- log3.success("Successfully generated component meta information");
157
- }
158
- async function generateTypes(options) {
159
- const result = await runNpmScript(NpmScript.GenerateTypes, {
160
- cwd: frameworkPath(),
161
- ...options
162
- });
163
- if (result.isErr()) {
164
- log3.error("There was an error generating your types.", result.error);
165
- process.exit();
166
- }
167
- log3.success("Types were generated successfully");
168
- }
169
- function generateMigrations() {
170
- log3.success("Successfully updated migrations");
171
- }
172
- function generatePkgxConfig() {
173
- log3.success("Successfully generated `./pkgx.yaml` based on your config");
174
- }
175
- async function generateSeeder() {
176
- }
177
- async function generateCoreSymlink() {
178
- await runCommand2(`ln -s ${frameworkPath()} ${projectPath2(".stacks")}`);
179
- }
180
-
181
- // src/examples.ts
182
- import process2 from "process";
183
- import {log as log4} from "@stacksjs/logging";
184
- import {hasComponents} from "@stacksjs/storage";
185
- import {runNpmScript as runNpmScript2} from "@stacksjs/utils";
186
- import {ExitCode} from "@stacksjs/types";
187
- import {NpmScript as NpmScript2} from "@stacksjs/enums";
188
- async function invoke2(options) {
189
- if (options.components || options.vue)
190
- await componentExample(options);
191
- else if (options.webComponents || options.elements)
192
- await webComponentExample(options);
193
- else
194
- log4.error("An unsupported option was used. Please try again, check the documentation & report the issue, if needed.");
195
- }
196
- async function examples(options) {
197
- return invoke2(options);
198
- }
199
- async function componentExample(options) {
200
- if (hasComponents()) {
201
- await runNpmScript2(NpmScript2.ExampleVue, options);
202
- log4.success("Your component library was built successfully");
203
- } else {
204
- log4.info("No components found.");
205
- }
206
- }
207
- async function webComponentExample(options) {
208
- if (hasComponents()) {
209
- log4.info("Building your Web Component library...");
210
- await runNpmScript2(NpmScript2.BuildWebComponents, options);
211
- log4.success("Your Web Component library was built successfully");
212
- } else {
213
- log4.info("No components found.");
214
- process2.exit(ExitCode.FatalError);
215
- }
216
- }
217
-
218
- // src/commit.ts
219
- import {log as log5} from "@stacksjs/logging";
220
- import {runNpmScript as runNpmScript3} from "@stacksjs/utils";
221
- import {NpmScript as NpmScript3} from "@stacksjs/enums";
222
- async function invoke3(options) {
223
- log5.info("Committing...");
224
- await runNpmScript3(NpmScript3.Commit, options);
225
- log5.success("Committed");
226
- }
227
- async function commit(options) {
228
- return invoke3(options);
229
- }
230
-
231
- // src/add.ts
232
- import {installPackage} from "@stacksjs/cli";
233
- async function invoke4(options) {
234
- if (options?.table)
235
- await addTable();
236
- if (options?.calendar)
237
- await addCalendar();
238
- }
239
- async function add(options) {
240
- return invoke4(options);
241
- }
242
- async function addTable() {
243
- await installPackage("@stacksjs/table");
244
- }
245
- async function addCalendar() {
246
- await installPackage("@stacksjs/calendar");
247
- }
248
- async function installPackages(names) {
249
- for (const name of names)
250
- await installPackage(name);
251
- }
252
-
253
- // src/make.ts
254
- import process3 from "process";
255
- import {italic} from "@stacksjs/cli";
256
- import {log as log6} from "@stacksjs/logging";
257
- import {createFolder, doesFolderExist, writeTextFile} from "@stacksjs/storage";
258
- import {frameworkPath as frameworkPath2, projectPath as projectPath3, resolve} from "@stacksjs/path";
259
- async function invoke5(options) {
260
- if (options.component)
261
- await makeComponent(options);
262
- if (options.database)
263
- makeDatabase(options);
264
- if (options.function)
265
- await makeFunction(options);
266
- if (options.language)
267
- await makeLanguage(options);
268
- if (options.notification)
269
- await makeNotification(options);
270
- if (options.page)
271
- await makePage(options);
272
- if (options.stack)
273
- makeStack(options);
274
- }
275
- async function make(options) {
276
- return invoke5(options);
277
- }
278
- async function makeComponent(options) {
279
- try {
280
- const name = options.name;
281
- log6.info("Creating your component...");
282
- await createComponent(options);
283
- log6.success(`Created ${italic(name)} component`);
284
- } catch (error) {
285
- log6.error("There was an error creating your component", error);
286
- process3.exit();
287
- }
288
- }
289
- async function createComponent(options) {
290
- const name = options.name;
291
- await writeTextFile({
292
- path: `./components/${name}.stx`,
293
- data: `<script setup lang="ts">
294
- // eslint-disable-next-line no-console
295
- console.log('Hello World component created')
296
- </script>
297
-
298
- <template>
299
- <div>
300
- Some HTML block
301
- </div>
302
- </template>
303
- `
304
- });
305
- }
306
- function makeDatabase(options) {
307
- try {
308
- const name = options.name;
309
- log6.info(`Creating your ${italic(name)} database...`);
310
- createDatabase(options);
311
- log6.success(`Created ${italic(name)} database`);
312
- } catch (error) {
313
- log6.error("There was an error creating your database", error);
314
- process3.exit();
315
- }
316
- }
317
- function createDatabase(options) {
318
- console.log("options", options);
319
- }
320
- function factory(options) {
321
- try {
322
- const name = options.name;
323
- log6.info(`Creating your ${italic(name)} factory...`);
324
- createDatabase(options);
325
- log6.success(`Created ${italic(name)} factory`);
326
- } catch (error) {
327
- log6.error("There was an error creating your factory", error);
328
- process3.exit();
329
- }
330
- }
331
- function createFactory(options) {
332
- console.log("options", options);
333
- }
334
- async function makeNotification(options) {
335
- try {
336
- const name = options.name;
337
- log6.info(`Creating your ${italic(name)} notification...`);
338
- await createNotification(options);
339
- log6.success(`Created ${italic(name)} notification`);
340
- } catch (error) {
341
- log6.error("There was an error creating your notification", error);
342
- process3.exit();
343
- }
344
- }
345
- async function makePage(options) {
346
- try {
347
- const name = options.name;
348
- log6.info("Creating your page...");
349
- await createPage(options);
350
- log6.success(`Created ${name} page`);
351
- } catch (error) {
352
- log6.error("There was an error creating your page", error);
353
- process3.exit();
354
- }
355
- }
356
- async function createPage(options) {
357
- const name = options.name;
358
- await writeTextFile({
359
- path: `./pages/${name}.stx`,
360
- data: `<script setup lang="ts">
361
- // eslint-disable-next-line no-console
362
- console.log('Hello World page created')
363
- </script>
364
-
365
- <template>
366
- <div>
367
- Visit http://127.0.0.1/${name}
368
- </div>
369
- </template>
370
- `
371
- });
372
- }
373
- async function makeFunction(options) {
374
- try {
375
- const name = options.name;
376
- log6.info("Creating your function...");
377
- await createFunction(options);
378
- log6.success(`Created ${name} function`);
379
- } catch (error) {
380
- log6.error("There was an error creating your function", error);
381
- process3.exit();
382
- }
383
- }
384
- async function createFunction(options) {
385
- const name = options.name;
386
- await writeTextFile({
387
- path: `./functions/${name}.ts`,
388
- data: `// reactive state
389
- const ${name} = ref(0)
390
-
391
- // functions that mutate state and trigger updates
392
- function increment() {
393
- ${name}.value++
394
- }
395
-
396
- export {
397
- ${name},
398
- increment,
399
- }
400
- `
401
- });
402
- }
403
- async function makeLanguage(options) {
404
- try {
405
- const name = options.name;
406
- log6.info("Creating your translation file...");
407
- await createLanguage(options);
408
- log6.success(`Created ${name} translation file`);
409
- } catch (error) {
410
- log6.error("There was an error creating your language.", error);
411
- process3.exit();
412
- }
413
- }
414
- async function createLanguage(options) {
415
- const name = options.name;
416
- await writeTextFile({
417
- path: `./lang/${name}.yml`,
418
- data: `button:
419
- text: Copy
420
- `
421
- });
422
- }
423
- function makeStack(options) {
424
- try {
425
- const name = options.name;
426
- log6.info(`Creating your ${name} stack...`);
427
- const path3 = resolve(process3.cwd(), name);
428
- log6.success("Successfully scaffolded your project");
429
- log6.info(`cd ${path3} && bun install`);
430
- } catch (error) {
431
- log6.error("There was an error creating your stack", error);
432
- process3.exit();
433
- }
434
- }
435
- async function createNotification(options) {
436
- const name = options.name;
437
- try {
438
- let importOption = "EmailOptions";
439
- if (!doesFolderExist("notifications"))
440
- await createFolder("./notifications");
441
- if (options.chat)
442
- importOption = "ChatOptions";
443
- if (options.sms)
444
- importOption = "SMSOptions";
445
- await writeTextFile({
446
- path: `./notifications/${name}.ts`,
447
- data: `import type { ${importOption} } from \'@stacksjs/types\'
448
-
449
- function content(): string {
450
- return 'example'
451
- }
452
-
453
- function send(): ${importOption} {
454
- return {
455
- content: content(),
456
- }
457
- }`
458
- });
459
- return true;
460
- } catch (error) {
461
- return false;
462
- }
463
- }
464
- async function createMigration(options) {
465
- const optionName = options.name;
466
- const table = "dummy-name";
467
- const name = optionName[0].toUpperCase() + optionName.slice(1);
468
- const path3 = frameworkPath2(`database/migrations/${name}.ts`);
469
- try {
470
- await writeTextFile({
471
- path: `${path3}`,
472
- data: `import { Kysely } from 'kysely'
473
-
474
- export async function up(db: Kysely<any>): Promise<void> {
475
- await db.schema
476
- .createTable('${table}')
477
- .addColumn('id', 'integer', (col) => col.autoIncrement().primaryKey())
478
- .execute()
479
- }`
480
- });
481
- log6.success(`Successfully created your migration file at stacks/database/migrations/${name}.ts`);
482
- } catch (error) {
483
- log6.error(error);
484
- }
485
- }
486
- async function createModel(options) {
487
- const optionName = options.name;
488
- const name = optionName[0].toUpperCase() + optionName.slice(1);
489
- const path3 = projectPath3(`app/Models/${name}.ts`);
490
- try {
491
- await writeTextFile({
492
- path: `${path3}`,
493
- data: `import { faker } from '@stacksjs/faker'
494
- import { validate } from '@stacksjs/validation'
495
- import type { Model } from '@stacksjs/types'
496
-
497
- export default <Model> {
498
- name: '${name}',
499
-
500
- searchable: true, // boolean | IndexSettings,
501
- authenticatable: true, // boolean | AuthSettings,
502
-
503
- seeder: {
504
- count: 10,
505
- },
506
-
507
- fields: {
508
- name: {
509
- validation: validate.string().min(3).max(255),
510
- factory: () => faker.person,
511
- },
512
-
513
- // more fields here
514
- },
515
- }`
516
- });
517
- log6.success(`Successfully created your model at app/Models/${name}.ts`);
518
- } catch (error) {
519
- log6.error(error);
520
- }
521
- }
522
-
523
- // src/action.ts
524
- class Action3 {
525
- name;
526
- description;
527
- fields;
528
- rate;
529
- tries;
530
- backoff;
531
- enabled;
532
- handle;
533
- constructor({ name, description, fields, handle, rate, tries, backoff, enabled }) {
534
- this.name = name;
535
- this.description = description;
536
- this.fields = fields;
537
- this.rate = rate;
538
- this.tries = tries;
539
- this.backoff = backoff;
540
- this.enabled = enabled;
541
- this.handle = handle;
542
- }
543
- }
544
- export {
545
- runSystemTrayDevServer,
546
- make as runMake,
547
- runFrontendDevServer,
548
- examples as runExample,
549
- runDocsDevServer,
550
- runDevServer,
551
- runDesktopDevServer,
552
- runDashboardDevServer,
553
- runComponentsDevServer,
554
- commit as runCommit,
555
- runBackendDevServer,
556
- runApiDevServer,
557
- add as runAdd,
558
- runActions,
559
- runAction,
560
- makeStack,
561
- makePage,
562
- makeNotification,
563
- makeLanguage,
564
- makeFunction,
565
- makeDatabase,
566
- makeComponent,
567
- invoke,
568
- hasAction,
569
- generateWebTypes,
570
- generateVsCodeCustomData,
571
- generateTypes,
572
- generateSeeder,
573
- generatePkgxConfig,
574
- generateMigrations,
575
- generateLibEntries,
576
- generateIdeHelpers,
577
- generateCoreSymlink,
578
- generateComponentMeta,
579
- generate,
580
- createPage,
581
- createNotification,
582
- createModel,
583
- createMigration,
584
- createLanguage,
585
- createFunction,
586
- createFactory,
587
- createDatabase,
588
- createComponent,
589
- Action3 as Action
590
- };
@@ -1,10 +0,0 @@
1
- // @bun
2
- // src/key-generate.ts
3
- import {runCommand} from "@stacksjs/cli";
4
- import {isFile} from "@stacksjs/storage";
5
- import {setEnvValue} from "@stacksjs/utils";
6
- import {projectPath} from "@stacksjs/path";
7
- import {generateAppKey} from "@stacksjs/security";
8
- if (!isFile(".env"))
9
- await runCommand("cp .env.example .env", { cwd: projectPath() });
10
- await setEnvValue("APP_KEY", generateAppKey());
@@ -1,12 +0,0 @@
1
- // @bun
2
- // src/lint/fix.ts
3
- import {log, parseOptions, runCommand} from "@stacksjs/cli";
4
- import {projectPath} from "@stacksjs/path";
5
- import {NpmScript} from "@stacksjs/enums";
6
- log.info("Ensuring Code Style...");
7
- var options = parseOptions();
8
- await runCommand(NpmScript.LintFix, {
9
- cwd: projectPath(),
10
- ...options
11
- });
12
- log.success("Linted");
@@ -1,17 +0,0 @@
1
- // @bun
2
- // src/lint/index.ts
3
- import process from "process";
4
- import {ExitCode} from "@stacksjs/types";
5
- import {NpmScript} from "@stacksjs/enums";
6
- import {log, runCommands} from "@stacksjs/cli";
7
- import {projectPath} from "@stacksjs/path";
8
- log.info("Ensuring Code Style...");
9
- var result = await runCommands([
10
- NpmScript.Lint,
11
- NpmScript.LintPackageJson
12
- ], { cwd: projectPath() });
13
- if (Array.isArray(result)) {
14
- if (result.map((r) => r.isErr()).includes(true))
15
- process.exit(ExitCode.FatalError);
16
- }
17
- log.success("Linted");