@voltro/cli 0.24.0 → 0.26.0

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 (90) hide show
  1. package/CHANGELOG.md +670 -0
  2. package/THIRD-PARTY-NOTICES.md +2 -2
  3. package/dist/{apiBuild-B2m4XK_8.js → apiBuild-BtrTyKnF.js} +15 -15
  4. package/dist/apiBuild-DDJ0It4j.js +2 -0
  5. package/dist/bin.js +3 -3
  6. package/dist/{commands-CaIhTsC2.js → commands-D-9iYF2D.js} +1889 -1591
  7. package/dist/dbCommand-DrzXimKf.js +2 -0
  8. package/dist/{dbCommand-CC61CsAc.js → dbCommand-uuNCrFAb.js} +172 -163
  9. package/dist/{dev-DPkQVUTP.js → dev-BnWq4jeA.js} +1 -1
  10. package/dist/{dev-NCuEhNxs.js → dev-Dbm6SWtn.js} +2369 -1774
  11. package/dist/fileConventions-3bffWssN.js +30 -0
  12. package/dist/{frameworkTableAssembly-sg41s14F.js → frameworkTableAssembly-BwHU9Euq.js} +12 -8
  13. package/dist/frameworkTableAssembly-lrjZtk0G.js +2 -0
  14. package/dist/index.js +1 -1
  15. package/dist/{inspect-_ldwsAwH.js → inspect-CUCCzw2I.js} +20 -4
  16. package/dist/inspect-gt8bq-Tz.js +2 -0
  17. package/dist/{inspectMetrics-dcC7gnxu.js → inspectMetrics-BU90mvJN.js} +15 -15
  18. package/dist/{manifestBuild-Bs1Uw22_.js → manifestBuild-BnzAxp2O.js} +1 -1
  19. package/dist/manifestBuild-ifczArzr.js +2 -0
  20. package/dist/serveCommand-XBXuwJty.js +1294 -0
  21. package/dist/serveEntry.js +2 -2
  22. package/dist/{start-C_4VUDT8.js → start-BGXIf6zT.js} +2 -2
  23. package/dist/startEntry.js +2 -2
  24. package/package.json +17 -17
  25. package/templates/AGENTS.core.md +12 -5
  26. package/templates/AGENTS.md +14 -7
  27. package/templates/agent-docs/_index.md +2 -2
  28. package/templates/agent-docs/_manifest.json +3 -3
  29. package/templates/agent-docs/cli.md +15 -0
  30. package/templates/agent-docs/data.md +339 -2
  31. package/templates/agent-docs/database/migrations.md +40 -0
  32. package/templates/agent-docs/database/schema.md +127 -0
  33. package/templates/agent-docs/deployment.md +28 -0
  34. package/templates/agent-docs/plugins.md +26 -4
  35. package/templates/agent-docs/reference.md +2 -2
  36. package/templates/agent-docs/security.md +18 -0
  37. package/templates/agent-docs/templates/apibackends.md +5 -5
  38. package/templates/agent-docs/templates/overview.md +1 -1
  39. package/templates/agent-docs/whats-new.md +278 -168
  40. package/templates/agent-docs/workflows.md +160 -42
  41. package/templates/apps/api-ai/package.json +7 -7
  42. package/templates/apps/api-auth/package.json +8 -8
  43. package/templates/apps/api-backend/package.json +7 -7
  44. package/templates/apps/api-backend-deactivation/package.json +7 -7
  45. package/templates/apps/api-backend-mail/package.json +8 -8
  46. package/templates/apps/api-backend-mariadb/package.json +9 -9
  47. package/templates/apps/api-backend-storage/package.json +8 -8
  48. package/templates/apps/api-data-advanced/package.json +8 -8
  49. package/templates/apps/api-durable/README.md +2 -1
  50. package/templates/apps/api-durable/events/orders.event.ts +18 -0
  51. package/templates/apps/api-durable/mutations/orders.place.mutation.server.ts +17 -15
  52. package/templates/apps/api-durable/package.json +8 -8
  53. package/templates/apps/api-durable/triggers/order.placed.trigger.tsx +6 -4
  54. package/templates/apps/api-feature-flags/package.json +9 -9
  55. package/templates/apps/api-governance/package.json +8 -8
  56. package/templates/apps/api-kv/package.json +8 -8
  57. package/templates/apps/api-moderation/package.json +8 -8
  58. package/templates/apps/api-observability/package.json +8 -8
  59. package/templates/apps/api-ratelimit/package.json +8 -8
  60. package/templates/apps/api-rbac/package.json +8 -8
  61. package/templates/apps/api-rest/package.json +7 -7
  62. package/templates/apps/api-saas/package.json +11 -11
  63. package/templates/apps/api-search/package.json +8 -8
  64. package/templates/apps/api-versioning/package.json +8 -8
  65. package/templates/apps/api-webhooks/README.md +2 -2
  66. package/templates/apps/api-webhooks/events/orders.event.ts +35 -0
  67. package/templates/apps/api-webhooks/package.json +9 -9
  68. package/templates/apps/api-webhooks/template.json +1 -1
  69. package/templates/apps/changelog/package.json +6 -6
  70. package/templates/apps/edge-functions/package.json +2 -2
  71. package/templates/apps/frontend-admin/package.json +8 -8
  72. package/templates/apps/frontend-app/package.json +8 -8
  73. package/templates/apps/frontend-blank/package.json +7 -7
  74. package/templates/apps/frontend-contact/package.json +7 -7
  75. package/templates/apps/frontend-dashboard/package.json +7 -7
  76. package/templates/apps/frontend-docs/package.json +7 -7
  77. package/templates/apps/frontend-i18n/package.json +6 -6
  78. package/templates/apps/frontend-landing/package.json +7 -7
  79. package/templates/apps/frontend-spa/package.json +7 -7
  80. package/templates/apps/frontend-ssr/package.json +7 -7
  81. package/templates/apps/frontend-ssr-api/package.json +8 -8
  82. package/templates/apps/frontend-static-blog/package.json +6 -6
  83. package/dist/apiBuild-UEM3QBke.js +0 -2
  84. package/dist/dbCommand-Cr__4ATv.js +0 -2
  85. package/dist/fileConventions-CBNPZVOV.js +0 -29
  86. package/dist/frameworkTableAssembly-DRJrAVr1.js +0 -2
  87. package/dist/inspect-BA67TF6v.js +0 -2
  88. package/dist/manifestBuild-i-fRHg_H.js +0 -2
  89. package/dist/serveCommand-C4gzDZzc.js +0 -1175
  90. package/templates/apps/api-webhooks/events/order.completed.webhook.tsx +0 -22
@@ -10914,7 +10914,7 @@ programs and associated documentation files created by the
10914
10914
  Original Author, when distributed with the Software.
10915
10915
  ```
10916
10916
 
10917
- ## brace-expansion@5.0.8
10917
+ ## brace-expansion@5.0.9
10918
10918
 
10919
10919
  License: MIT
10920
10920
 
@@ -14150,7 +14150,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
14150
14150
  THE SOFTWARE.
14151
14151
  ```
14152
14152
 
14153
- ## postcss@8.5.21
14153
+ ## postcss@8.5.25
14154
14154
 
14155
14155
  License: MIT
14156
14156
 
@@ -1,6 +1,6 @@
1
- import { lt as e } from "./inspectMetrics-dcC7gnxu.js";
1
+ import { lt as e } from "./inspectMetrics-BU90mvJN.js";
2
2
  import { a as t } from "./seedRunner-D6eu-u5U.js";
3
- import { h as n } from "./dev-NCuEhNxs.js";
3
+ import { h as n } from "./dev-Dbm6SWtn.js";
4
4
  import { dirname as r, isAbsolute as i, join as a, relative as o, resolve as s } from "node:path";
5
5
  import { fileURLToPath as c } from "node:url";
6
6
  import { createLogger as l } from "@voltro/logger";
@@ -41,7 +41,7 @@ var p = l({ scope: "voltro:build" }), m = (e) => {
41
41
  return !1;
42
42
  }
43
43
  });
44
- }, g = /(?:\.(?:query|mutation|action|stream)(?:\.server)?\.ts|\.workflow(?:\.server)?\.tsx|\.(?:subscribe|reaction|aggregate|agent|tool|webhook|cron|trigger|outbox|connection|email)(?:\.server)?\.tsx?|\.(?:startup|seed)\.tsx?|\.(?:entity|schema|relations|migration)\.ts|(?:^|\/)schema\.ts)$/, _ = (e) => /\.(ts|tsx)$/.test(e) && !/\.(test|spec)\.[tj]sx?$/.test(e), v = async (e) => (await n(e)).filter((t) => g.test(t) && _(t) && !t.includes(`${e}/.framework/`)), y = {
44
+ }, g = /(?:\.(?:query|mutation|action|stream)(?:\.server)?\.ts|\.workflow(?:\.server)?\.tsx|\.(?:subscribe|reaction|aggregate|agent|tool|webhook|cron|trigger|outbox|connection|email)(?:\.server)?\.tsx?|\.(?:startup|seed)\.tsx?|\.(?:entity|schema|relations|migration|event)\.ts|(?:^|\/)schema\.ts)$/, _ = (e) => /\.(ts|tsx)$/.test(e) && !/\.(test|spec)\.[tj]sx?$/.test(e), v = async (e) => (await n(e)).filter((t) => g.test(t) && _(t) && !t.includes(`${e}/.framework/`)), y = {
45
45
  name: "externalize-bare",
46
46
  setup(e) {
47
47
  e.onResolve({ filter: /.*/ }, (e) => {
@@ -144,27 +144,27 @@ const drivers = ${JSON.stringify(t)}\nlet mod\nfor (const d of drivers) {\n try
144
144
  loader: "js"
145
145
  }));
146
146
  }
147
- }), D = (e) => a(e, ".framework", "dist-api", "serveBundle", "serveEntry.js"), O = async (e, t) => {
148
- let n = 0, r = async (e) => {
149
- let i;
147
+ }), D = (e) => a(e, ".framework", "dist-api", "serveBundle", "serveEntry.js"), O = 1e3, k = async (e, t) => {
148
+ let n = t - O, r = 0, i = async (e) => {
149
+ let t;
150
150
  try {
151
- i = await d.readdir(e, { withFileTypes: !0 });
151
+ t = await d.readdir(e, { withFileTypes: !0 });
152
152
  } catch {
153
153
  return;
154
154
  }
155
- for (let o of i) {
156
- let i = a(e, o.name);
155
+ for (let o of t) {
156
+ let t = a(e, o.name);
157
157
  if (o.isDirectory()) {
158
- await r(i);
158
+ await i(t);
159
159
  continue;
160
160
  }
161
161
  try {
162
- (await d.stat(i)).mtimeMs < t && (await d.rm(i, { force: !0 }), n += 1);
162
+ (await d.stat(t)).mtimeMs < n && (await d.rm(t, { force: !0 }), r += 1);
163
163
  } catch {}
164
164
  }
165
165
  };
166
- return await r(e), n;
167
- }, k = async (t) => {
166
+ return await i(e), r;
167
+ }, A = async (t) => {
168
168
  let n = await e("esbuild", () => import("esbuild")), r = a(t, ".framework"), i = a(r, "dist-api", "serveBundle");
169
169
  await d.mkdir(r, { recursive: !0 });
170
170
  let c = Date.now(), l = [...await v(t)], f = a(t, "app.config.ts");
@@ -218,7 +218,7 @@ const drivers = ${JSON.stringify(t)}\nlet mod\nfor (const d of drivers) {\n try
218
218
  alias: m("serveEntry"),
219
219
  ...u(g) ? { tsconfig: g } : {}
220
220
  });
221
- let D = await O(i, c);
221
+ let D = await k(i, c);
222
222
  return p.info("api build: serve bundle written", {
223
223
  appModules: x.length,
224
224
  drivers: S.length > 0 ? S.join(", ") : "none (memory)",
@@ -228,4 +228,4 @@ const drivers = ${JSON.stringify(t)}\nlet mod\nfor (const d of drivers) {\n try
228
228
  }), a(i, "serveEntry.js");
229
229
  };
230
230
  //#endregion
231
- export { v as a, b as c, m as i, k as l, S as n, E as o, x as r, O as s, g as t, D as u };
231
+ export { v as a, b as c, m as i, A as l, S as n, E as o, x as r, k as s, g as t, D as u };
@@ -0,0 +1,2 @@
1
+ import { c as e, l as t } from "./apiBuild-BtrTyKnF.js";
2
+ export { e as runApiBuild, t as runServeBundleBuild };
package/dist/bin.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import { Z as e } from "./inspectMetrics-dcC7gnxu.js";
3
- import { r as t } from "./commands-CaIhTsC2.js";
4
- import { l as n } from "./dbCommand-CC61CsAc.js";
2
+ import { Z as e } from "./inspectMetrics-BU90mvJN.js";
3
+ import { r as t } from "./commands-D-9iYF2D.js";
4
+ import { l as n } from "./dbCommand-uuNCrFAb.js";
5
5
  import { createLogger as r } from "@voltro/logger";
6
6
  //#region src/sqlErrorDetail.ts
7
7
  var i = (e) => typeof e == "object" && !!e, a = (e) => {