@stacksjs/actions 0.70.23 → 0.70.26
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.
- package/dist/chunk-2gh7kgpc.js +3 -0
- package/dist/chunk-2kaj93p5.js +3 -0
- package/dist/chunk-2qchdrf9.js +3 -0
- package/dist/chunk-3086k7zk.js +184 -0
- package/dist/chunk-3beht8ja.js +130 -0
- package/dist/chunk-60qjz7zb.js +3 -0
- package/dist/chunk-67y94dzt.js +658 -0
- package/dist/chunk-6x1m5rkr.js +17 -0
- package/dist/chunk-7bpdkc40.js +714 -0
- package/dist/chunk-96b7fcmd.js +3 -0
- package/dist/chunk-aw6d8zr3.js +7 -0
- package/dist/chunk-c8qt2xst.js +3 -0
- package/dist/chunk-d4srk6ma.js +3 -0
- package/dist/chunk-e9tcbk71.js +1 -0
- package/dist/chunk-gt77jmb5.js +46 -0
- package/dist/chunk-h93n2j40.js +95 -0
- package/dist/chunk-jd1yzkq5.js +3 -0
- package/dist/chunk-kzhgexj4.js +3 -0
- package/dist/chunk-n1y0gpv6.js +3 -0
- package/dist/chunk-n2fd1d0m.js +3 -0
- package/dist/chunk-n2x7v39b.js +5 -0
- package/dist/chunk-rdajkt2s.js +88 -0
- package/dist/chunk-s735m9mg.js +1 -0
- package/dist/chunk-schcaf73.js +3 -0
- package/dist/chunk-tc935b45.js +93 -0
- package/dist/chunk-v0wnrnaa.js +7 -0
- package/dist/chunk-w418anbq.js +5 -0
- package/dist/chunk-wnrgcx3d.js +114 -0
- package/dist/chunk-wv5yb5wb.js +101 -0
- package/dist/chunk-x471rxrn.js +7 -0
- package/dist/chunk-xg9xscqz.js +1 -0
- package/dist/src/action.d.ts +60 -0
- package/dist/src/action.js +2 -0
- package/dist/src/actions.d.ts +2 -0
- package/dist/src/actions.js +2 -0
- package/dist/src/add.d.ts +6 -0
- package/dist/src/add.js +2 -0
- package/dist/src/ai/request-model-access.d.ts +1 -0
- package/dist/src/ai/request-model-access.js +2 -0
- package/dist/src/auth/client.d.ts +1 -0
- package/dist/src/auth/client.js +3 -0
- package/dist/src/auth/prune.d.ts +1 -0
- package/dist/src/auth/prune.js +2 -0
- package/dist/src/auth/setup.d.ts +1 -0
- package/dist/src/auth/setup.js +148 -0
- package/dist/src/auth/token.d.ts +1 -0
- package/dist/src/auth/token.js +2 -0
- package/dist/src/build/cli.d.ts +1 -0
- package/dist/src/build/cli.js +2 -0
- package/dist/src/build/component-libs.d.ts +1 -0
- package/dist/src/build/component-libs.js +2 -0
- package/dist/src/build/core.d.ts +1 -0
- package/dist/src/build/core.js +2 -0
- package/dist/src/build/desktop.d.ts +1 -0
- package/dist/src/build/desktop.js +2 -0
- package/dist/src/build/docs.d.ts +1 -0
- package/dist/src/build/docs.js +2 -0
- package/dist/src/build/server.d.ts +1 -0
- package/dist/src/build/server.js +2 -0
- package/dist/src/build/stacks.d.ts +1 -0
- package/dist/src/build/stacks.js +2 -0
- package/dist/src/build/views.d.ts +1 -0
- package/dist/src/build/views.js +2 -0
- package/dist/{build.d.ts → src/build.d.ts} +1 -2
- package/dist/src/build.js +2 -0
- package/dist/src/bump.d.ts +1 -0
- package/dist/src/bump.js +2 -0
- package/dist/src/cdn/invalidate-cache.d.ts +1 -0
- package/dist/src/cdn/invalidate-cache.js +1 -0
- package/dist/src/changelog.d.ts +1 -0
- package/dist/src/changelog.js +2 -0
- package/dist/src/check/ports.d.ts +1 -0
- package/dist/src/check/ports.js +2 -0
- package/dist/src/clean.d.ts +1 -0
- package/dist/src/clean.js +2 -0
- package/dist/{commit.d.ts → src/commit.d.ts} +1 -2
- package/dist/src/commit.js +2 -0
- package/dist/src/copy-types.d.ts +1 -0
- package/dist/src/copy-types.js +3 -0
- package/dist/src/database/seed.d.ts +1 -0
- package/dist/src/database/seed.js +2 -0
- package/dist/src/deploy/create-receipt-rule.d.ts +1 -0
- package/dist/src/deploy/create-receipt-rule.js +2 -0
- package/dist/src/deploy/index.d.ts +1 -0
- package/dist/src/deploy/index.js +307 -0
- package/dist/src/dev/api.d.ts +1 -0
- package/dist/src/dev/api.js +6 -0
- package/dist/src/dev/components.d.ts +1 -0
- package/dist/src/dev/components.js +2 -0
- package/dist/src/dev/dashboard-globals.d.ts +4 -0
- package/dist/src/dev/dashboard-globals.js +3 -0
- package/dist/src/dev/dashboard-utils.d.ts +126 -0
- package/dist/src/dev/dashboard-utils.js +2 -0
- package/dist/src/dev/dashboard.d.ts +12 -0
- package/dist/src/dev/dashboard.js +8 -0
- package/dist/src/dev/desktop.d.ts +1 -0
- package/dist/src/dev/desktop.js +2 -0
- package/dist/src/dev/docs.d.ts +1 -0
- package/dist/src/dev/docs.js +2 -0
- package/dist/src/dev/index.d.ts +10 -0
- package/dist/src/dev/index.js +2 -0
- package/dist/src/dev/system-tray.d.ts +1 -0
- package/dist/src/dev/system-tray.js +2 -0
- package/dist/src/dev/views.d.ts +1 -0
- package/dist/src/dev/views.js +2 -0
- package/dist/src/discover-packages.d.ts +18 -0
- package/dist/src/discover-packages.js +2 -0
- package/dist/src/domains/add.d.ts +1 -0
- package/dist/src/domains/add.js +2 -0
- package/dist/src/domains/purchase.d.ts +1 -0
- package/dist/src/domains/purchase.js +2 -0
- package/dist/src/domains/remove.d.ts +1 -0
- package/dist/src/domains/remove.js +2 -0
- package/dist/{examples.d.ts → src/examples.d.ts} +1 -2
- package/dist/src/examples.js +2 -0
- package/dist/src/find-projects.d.ts +1 -0
- package/dist/src/find-projects.js +2 -0
- package/dist/src/fresh.d.ts +1 -0
- package/dist/src/fresh.js +2 -0
- package/dist/src/generate/action-types.d.ts +1 -0
- package/dist/src/generate/action-types.js +8 -0
- package/dist/src/generate/component-meta.d.ts +1 -0
- package/dist/src/generate/component-meta.js +3 -0
- package/dist/src/generate/custom-cli-file.d.ts +1 -0
- package/dist/src/generate/custom-cli-file.js +4 -0
- package/dist/src/generate/env-files.d.ts +1 -0
- package/dist/src/generate/env-files.js +26 -0
- package/dist/src/generate/ide-helpers.d.ts +1 -0
- package/dist/src/generate/ide-helpers.js +3 -0
- package/dist/src/generate/index.d.ts +36 -0
- package/dist/src/generate/index.js +2 -0
- package/dist/src/generate/lib-entries.d.ts +1 -0
- package/dist/src/generate/lib-entries.js +3 -0
- package/dist/src/generate/pantry-file.d.ts +1 -0
- package/dist/src/generate/pantry-file.js +2 -0
- package/dist/src/generate/symlink-core.d.ts +1 -0
- package/dist/src/generate/symlink-core.js +2 -0
- package/dist/src/generate/types.d.ts +1 -0
- package/dist/src/generate/types.js +2 -0
- package/dist/src/generate/vscode-custom-data.d.ts +1 -0
- package/dist/src/generate/vscode-custom-data.js +3 -0
- package/dist/src/generate/web-types.d.ts +1 -0
- package/dist/src/generate/web-types.js +1 -0
- package/dist/src/helpers/component-meta.d.ts +26 -0
- package/dist/src/helpers/component-meta.js +2 -0
- package/dist/src/helpers/index.d.ts +4 -0
- package/dist/src/helpers/index.js +2 -0
- package/dist/{lib-entries.d.ts → src/helpers/lib-entries.d.ts} +9 -5
- package/dist/src/helpers/lib-entries.js +2 -0
- package/dist/src/helpers/package-json.d.ts +2 -0
- package/dist/src/helpers/package-json.js +43 -0
- package/dist/src/helpers/utils.d.ts +23 -0
- package/dist/src/helpers/utils.js +2 -0
- package/dist/{vscode-custom-data.d.ts → src/helpers/vscode-custom-data.d.ts} +1 -1
- package/dist/src/helpers/vscode-custom-data.js +2 -0
- package/dist/src/index.d.ts +42 -0
- package/dist/src/index.js +2 -0
- package/dist/src/key-generate.d.ts +1 -0
- package/dist/src/key-generate.js +2 -0
- package/dist/src/lint/fix.d.ts +1 -0
- package/dist/src/lint/fix.js +4 -0
- package/dist/src/lint/index.d.ts +1 -0
- package/dist/src/lint/index.js +3 -0
- package/dist/src/make-command.d.ts +10 -0
- package/dist/src/make-command.js +2 -0
- package/dist/src/make-job.d.ts +5 -0
- package/dist/src/make-job.js +2 -0
- package/dist/src/make-policy.d.ts +10 -0
- package/dist/src/make-policy.js +2 -0
- package/dist/src/make-resource.d.ts +10 -0
- package/dist/src/make-resource.js +2 -0
- package/dist/{make.d.ts → src/make.d.ts} +11 -9
- package/dist/src/make.js +2 -0
- package/dist/src/migrate/database.d.ts +1 -0
- package/dist/src/migrate/database.js +2 -0
- package/dist/src/migrate/fresh.d.ts +1 -0
- package/dist/src/migrate/fresh.js +2 -0
- package/dist/src/orm/base.d.ts +1 -0
- package/dist/src/orm/base.js +2 -0
- package/dist/src/orm/test.d.ts +1 -0
- package/dist/src/orm/test.js +1 -0
- package/dist/src/prepublish.d.ts +1 -0
- package/dist/src/prepublish.js +2 -0
- package/dist/src/queue/clear.d.ts +1 -0
- package/dist/src/queue/clear.js +2 -0
- package/dist/src/queue/failed.d.ts +1 -0
- package/dist/src/queue/failed.js +5 -0
- package/dist/src/queue/flush.d.ts +1 -0
- package/dist/src/queue/flush.js +3 -0
- package/dist/src/queue/inspect.d.ts +1 -0
- package/dist/src/queue/inspect.js +8 -0
- package/dist/src/queue/monitor.d.ts +1 -0
- package/dist/src/queue/monitor.js +7 -0
- package/dist/src/queue/retry.d.ts +1 -0
- package/dist/src/queue/retry.js +2 -0
- package/dist/src/queue/schedule-list.d.ts +1 -0
- package/dist/src/queue/schedule-list.js +5 -0
- package/dist/src/queue/schedule.d.ts +1 -0
- package/dist/src/queue/schedule.js +2 -0
- package/dist/src/queue/status.d.ts +1 -0
- package/dist/src/queue/status.js +5 -0
- package/dist/src/queue/table.d.ts +1 -0
- package/dist/src/queue/table.js +2 -0
- package/dist/src/queue/work.d.ts +1 -0
- package/dist/src/queue/work.js +2 -0
- package/dist/src/release.d.ts +1 -0
- package/dist/src/release.js +3 -0
- package/dist/src/route/list.d.ts +1 -0
- package/dist/src/route/list.js +3 -0
- package/dist/src/run-action.d.ts +2 -0
- package/dist/src/run-action.js +2 -0
- package/dist/src/saas/setup.d.ts +1 -0
- package/dist/src/saas/setup.js +2 -0
- package/dist/src/scaffold-crud.d.ts +25 -0
- package/dist/src/scaffold-crud.js +2 -0
- package/dist/src/schedule/run.d.ts +1 -0
- package/dist/src/schedule/run.js +2 -0
- package/dist/src/search/flush.d.ts +1 -0
- package/dist/src/search/flush.js +2 -0
- package/dist/src/search/import.d.ts +1 -0
- package/dist/src/search/import.js +2 -0
- package/dist/src/search/settings-list.d.ts +1 -0
- package/dist/src/search/settings-list.js +2 -0
- package/dist/src/search/settings.d.ts +1 -0
- package/dist/src/search/settings.js +2 -0
- package/dist/src/serve/api.d.ts +1 -0
- package/dist/src/serve/api.js +2 -0
- package/dist/src/setup/index.d.ts +1 -0
- package/dist/src/setup/index.js +2 -0
- package/dist/src/setup/ssl.d.ts +38 -0
- package/dist/src/setup/ssl.js +2 -0
- package/dist/src/stacks.d.ts +4 -0
- package/dist/src/stacks.js +2 -0
- package/dist/src/templates.d.ts +8 -0
- package/dist/src/templates.js +2 -0
- package/dist/src/test/feature.d.ts +1 -0
- package/dist/src/test/feature.js +2 -0
- package/dist/src/test/index.d.ts +1 -0
- package/dist/src/test/index.js +2 -0
- package/dist/src/test/ui.d.ts +1 -0
- package/dist/src/test/ui.js +2 -0
- package/dist/src/test/unit.d.ts +1 -0
- package/dist/src/test/unit.js +2 -0
- package/dist/src/typecheck.d.ts +1 -0
- package/dist/src/typecheck.js +2 -0
- package/dist/{types.d.ts → src/types.d.ts} +1 -2
- package/dist/src/types.js +2 -0
- package/dist/src/upgrade/binary.d.ts +1 -0
- package/dist/src/upgrade/binary.js +2 -0
- package/dist/src/upgrade/bun.d.ts +1 -0
- package/dist/src/upgrade/bun.js +1 -0
- package/dist/src/upgrade/dependencies.d.ts +1 -0
- package/dist/src/upgrade/dependencies.js +2 -0
- package/dist/src/upgrade/framework-utils.d.ts +102 -0
- package/dist/src/upgrade/framework-utils.js +2 -0
- package/dist/src/upgrade/framework.d.ts +1 -0
- package/dist/src/upgrade/framework.js +7 -0
- package/dist/src/upgrade/index.d.ts +1 -0
- package/dist/src/upgrade/index.js +2 -0
- package/dist/src/upgrade/shell.d.ts +1 -0
- package/dist/src/upgrade/shell.js +5 -0
- package/dist/src/upgrade.d.ts +7 -0
- package/dist/src/upgrade.js +2 -0
- package/package.json +39 -23
- package/dist/action-types.d.ts +0 -9
- package/dist/action.d.ts +0 -64
- package/dist/actions.d.ts +0 -2
- package/dist/add.d.ts +0 -5
- package/dist/add.js +0 -33
- package/dist/api.d.ts +0 -1
- package/dist/binary.d.ts +0 -2
- package/dist/build/component-libs.js +0 -9
- package/dist/build/core.js +0 -23
- package/dist/build/stacks.js +0 -8
- package/dist/build.js +0 -108
- package/dist/bump.d.ts +0 -2
- package/dist/bump.js +0 -17
- package/dist/changelog.d.ts +0 -2
- package/dist/changelog.js +0 -17
- package/dist/chunk-2dvnt46s.js +0 -7657
- package/dist/chunk-494jp8d5.js +0 -54
- package/dist/chunk-4axj3j8y.js +0 -34
- package/dist/chunk-56ar3gp7.js +0 -3823
- package/dist/chunk-76zhb40c.js +0 -92
- package/dist/chunk-7s5qcjkt.js +0 -105
- package/dist/chunk-9v6qtbez.js +0 -45
- package/dist/chunk-a13x0e43.js +0 -1180
- package/dist/chunk-a7k3cdby.js +0 -2266
- package/dist/chunk-b5g5w1hh.js +0 -1482
- package/dist/chunk-bf8bq8pc.js +0 -205
- package/dist/chunk-ccnf3w1b.js +0 -2228
- package/dist/chunk-dvkgakrr.js +0 -1283
- package/dist/chunk-frw3va9v.js +0 -69
- package/dist/chunk-hvfeg6n6.js +0 -179248
- package/dist/chunk-mdj7x1vs.js +0 -790
- package/dist/chunk-mdqphqep.js +0 -438
- package/dist/chunk-mmskr8ar.js +0 -212
- package/dist/chunk-nrr524a7.js +0 -658
- package/dist/chunk-p0c688mg.js +0 -729
- package/dist/chunk-pacq2bz6.js +0 -902
- package/dist/chunk-psa9yf21.js +0 -72
- package/dist/chunk-q81mf99q.js +0 -169
- package/dist/chunk-q9dmga3k.js +0 -11
- package/dist/chunk-qhh0v93n.js +0 -73
- package/dist/chunk-qkm8e752.js +0 -51
- package/dist/chunk-saqpg5nd.js +0 -118
- package/dist/chunk-t5em30ak.js +0 -379
- package/dist/chunk-veja9rez.js +0 -5764
- package/dist/chunk-w4bfpxhm.js +0 -311
- package/dist/chunk-w6fdq4hk.js +0 -14425
- package/dist/chunk-wkwtsvym.js +0 -477
- package/dist/chunk-xgsmf4cy.js +0 -410
- package/dist/chunk-ykb33tkv.js +0 -177
- package/dist/chunk-ze46550n.js +0 -0
- package/dist/chunk-zzerxbrm.js +0 -107
- package/dist/clean.js +0 -6
- package/dist/commit.js +0 -22
- package/dist/component-meta.d.ts +0 -15
- package/dist/components.d.ts +0 -3
- package/dist/copy-types.d.ts +0 -1
- package/dist/copy-types.js +0 -14
- package/dist/core.d.ts +0 -1
- package/dist/create-receipt-rule.d.ts +0 -4
- package/dist/database/seed.js +0 -30
- package/dist/database.d.ts +0 -2
- package/dist/deploy/index.js +0 -48
- package/dist/dev/components.js +0 -11
- package/dist/dev/docs.js +0 -7
- package/dist/dev/index.js +0 -58
- package/dist/env-files.d.ts +0 -9
- package/dist/examples.js +0 -46
- package/dist/feature.d.ts +0 -2
- package/dist/find-projects.d.ts +0 -1
- package/dist/fix.d.ts +0 -1
- package/dist/flush.d.ts +0 -2
- package/dist/fresh.d.ts +0 -1
- package/dist/fresh.js +0 -21
- package/dist/generate/component-meta.js +0 -17
- package/dist/generate/ide-helpers.js +0 -18
- package/dist/generate/index.js +0 -216
- package/dist/generate/lib-entries.js +0 -30
- package/dist/generate/vscode-custom-data.js +0 -17
- package/dist/helpers/component-meta.js +0 -204227
- package/dist/helpers/lib-entries.js +0 -122
- package/dist/helpers/package-json.js +0 -96
- package/dist/helpers/utils.js +0 -76
- package/dist/helpers/vscode-custom-data.js +0 -43
- package/dist/import.d.ts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -172
- package/dist/key-generate.js +0 -15
- package/dist/lint/fix.js +0 -18
- package/dist/lint/index.js +0 -5
- package/dist/list.d.ts +0 -1
- package/dist/make.js +0 -349
- package/dist/package-json.d.ts +0 -92
- package/dist/pkgx-file.d.ts +0 -8
- package/dist/ports.d.ts +0 -2
- package/dist/prepublish.d.ts +0 -1
- package/dist/prepublish.js +0 -17
- package/dist/purchase.d.ts +0 -6
- package/dist/release.js +0 -49
- package/dist/remove.d.ts +0 -6
- package/dist/request-model-access.d.ts +0 -1
- package/dist/run.d.ts +0 -1
- package/dist/settings-list.d.ts +0 -2
- package/dist/settings.d.ts +0 -1
- package/dist/setup.d.ts +0 -1
- package/dist/shell.d.ts +0 -2
- package/dist/table.d.ts +0 -1
- package/dist/test/feature.js +0 -14
- package/dist/test/index.js +0 -14
- package/dist/test/ui.js +0 -6
- package/dist/test/unit.js +0 -14
- package/dist/typecheck.js +0 -6
- package/dist/types.js +0 -23
- package/dist/unit.d.ts +0 -2
- package/dist/upgrade/dependencies.js +0 -8
- package/dist/upgrade/index.js +0 -22
- package/dist/upgrade.d.ts +0 -5
- package/dist/upgrade.js +0 -50
- package/dist/utils.d.ts +0 -75
- package/dist/work.d.ts +0 -3
- /package/dist/{upgrade/framework.js → chunk-cdk2r2jd.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DevOptions } from '@stacksjs/types';
|
|
2
|
+
export declare function runDevServer(options: DevOptions): Promise<void>;
|
|
3
|
+
export declare function runFrontendDevServer(options: DevOptions): Promise<void>;
|
|
4
|
+
export declare function runBackendDevServer(options: DevOptions): Promise<void>;
|
|
5
|
+
export declare function runApiDevServer(options: DevOptions): Promise<void>;
|
|
6
|
+
export declare function runComponentsDevServer(options: DevOptions): Promise<void>;
|
|
7
|
+
export declare function runDashboardDevServer(options: DevOptions): Promise<void>;
|
|
8
|
+
export declare function runSystemTrayDevServer(options: DevOptions): Promise<void>;
|
|
9
|
+
export declare function runDesktopDevServer(options: DevOptions): Promise<void>;
|
|
10
|
+
export declare function runDocsDevServer(options: DevOptions): Promise<void>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{ia as a,ja as b,ka as c,la as d,ma as e,na as f,oa as g,pa as h,qa as i}from"../../chunk-60qjz7zb.js";import"../../chunk-s735m9mg.js";import"../../chunk-n1y0gpv6.js";import"../../chunk-96b7fcmd.js";export{g as runSystemTrayDevServer,b as runFrontendDevServer,i as runDocsDevServer,a as runDevServer,h as runDesktopDevServer,f as runDashboardDevServer,e as runComponentsDevServer,c as runBackendDevServer,d as runApiDevServer};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{gb as $}from"../../chunk-96b7fcmd.js";import{AsyncLocalStorage as T}from"async_hooks";import{config as _}from"@stacksjs/config";import{projectPath as Q}from"@stacksjs/path";var U=Q("serve.ts");try{if(await Bun.file(U).exists())await import(U);else await W()}catch{await W()}var R=new T;globalThis.requestContext={cookie(z){return R.getStore()?.cookies?.[z]??null},url(){return R.getStore()?.url??""}};function A(z){let F={},H=z.headers.get("cookie")||"";if(!H)return F;for(let N of H.split(";")){let G=N.trim(),K=G.indexOf("=");if(K===-1)continue;let I=G.slice(0,K).trim(),J=G.slice(K+1).trim();if(!I)continue;try{F[I]=decodeURIComponent(J)}catch{F[I]=J}}return F}async function D(z,F){let H=new URL(z.url),N=`${F}${H.pathname}${H.search}`,G=new Headers(z.headers);G.delete("host"),G.delete("content-length"),G.set("x-forwarded-host",H.host),G.set("x-forwarded-proto",H.protocol.replace(":",""));let K=z.method==="GET"||z.method==="HEAD"?void 0:await z.arrayBuffer(),I=await fetch(N,{method:z.method,headers:G,body:K,redirect:"manual"}),J=new Headers(I.headers);return J.delete("content-length"),J.delete("content-encoding"),new Response(I.body,{status:I.status,statusText:I.statusText,headers:J})}async function W(){let z;try{({serve:z}=await import(Q("pantry/bun-plugin-stx/dist/serve.js")))}catch{({serve:z}=await import("../../chunk-wv5yb5wb.js"))}let F=await E(),H="resources/views",N="storage/framework/defaults/resources/views",G=await X(["resources/views/layouts","resources/layouts"])??"resources/views/layouts",K="storage/framework/defaults/resources/layouts",I=await X(["resources/views/components","resources/components"])??"resources/views/components",J=Number(process.env.PORT)||3000,Y=`http://127.0.0.1:${Number(process.env.PORT_API)||3008}`,Z=_?.auth?.defaultTokenName??"auth-token";await z({patterns:[H,N],port:J,componentsDir:"storage/framework/defaults/resources/components",layoutsDir:G,partialsDir:I,fallbackLayoutsDir:K,fallbackPartialsDir:N,quiet:!0,...F&&{stxModule:F},auth:{cookieName:Z,redirectTo:"/login"},onRequest:async(O)=>{if(new URL(O.url).pathname.startsWith("/api/"))return D(O,Y);return R.enterWith({cookies:A(O),url:O.url}),null}})}async function X(z){for(let F of z)try{if(await Bun.file(Q(F)).exists())return F}catch{}return null}async function E(){try{let z=Q("pantry/@stacksjs/stx/dist/index.js");if(await Bun.file(z).exists())return await import(z)}catch{}return}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { StackDirectory } from '@stacksjs/types';
|
|
2
|
+
export declare function discoverPackages(): Promise<DiscoveredPackagesManifest>;
|
|
3
|
+
export declare interface PackageStacksMeta {
|
|
4
|
+
providers?: string[]
|
|
5
|
+
routes?: string[]
|
|
6
|
+
views?: string[]
|
|
7
|
+
components?: string[]
|
|
8
|
+
commands?: string[]
|
|
9
|
+
middleware?: string[]
|
|
10
|
+
migrations?: string[]
|
|
11
|
+
name?: string
|
|
12
|
+
description?: string
|
|
13
|
+
directories?: StackDirectory[]
|
|
14
|
+
}
|
|
15
|
+
export declare interface DiscoveredPackagesManifest {
|
|
16
|
+
generated_at: string
|
|
17
|
+
packages: Record<string, PackageStacksMeta>
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import A from"process";import{italic as J,log as q,parseOptions as T,runCommand as U}from"@stacksjs/cli";import{createHostedZone as V,getHostedZoneNameservers as W,updateNameservers as X}from"@stacksjs/dns";import{loadEnv as Y}from"@stacksjs/env";import{handleError as L}from"@stacksjs/error-handling";import{projectConfigPath as _}from"@stacksjs/path";import{whois as $}from"@stacksjs/whois";Y({path:[".env",".env.production"],overload:!0});var M=T();function b(G){if(!G)return;return G.replace(/^https?:\/\//,"").replace(/\/$/,"")}var F=b(M.domain??A.env.APP_URL);if(!F)q.error("There was no Domain or App URL provided. Please provide a domain using the --domain flag or add a url to your app config."),A.exit(1);var K=await V(F);if(K.isErr)L(K.error),A.exit(1);var I=await W(F);if(!I||I.length===0)L(`No nameservers found for domain: ${F}. Please ensure the Hosted Zone exists in Route53.`),A.exit(1);await X(I);var Q=(await $(F,!0)).parsedData.Registrar;if(Q.includes("Amazon")){if(M.deploy)await U("buddy deploy");else q.info(""),q.info("You can now continue your deployment process by re-running:"),q.info(""),q.info(` \u27A1\uFE0F ${J("buddy deploy")}`),q.info("");A.exit(0)}q.info("");q.info("\u2139\uFE0F Please note, before continuing your deployment process,");q.info(` update your ${Q} nameservers to the following:`);var y=["1\uFE0F\u20E3","2\uFE0F\u20E3","3\uFE0F\u20E3","4\uFE0F\u20E3"];q.info("");I.forEach((G,R)=>{q.info(` ${y[R]} Nameserver: ${G}`)});q.info("");q.info(J(`stored in ${_("dns.ts")}`));q.info("");q.info("Once the nameservers have been updated, re-run the following command:");q.info("");q.info(` \u27A1\uFE0F ${J("buddy deploy")}`);q.info("");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare type CountryCode = string;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import a from"process";import{log as n,parseOptions as o}from"@stacksjs/cli";import{purchaseDomain as m}from"@stacksjs/cloud";import{config as d}from"@stacksjs/config";import{handleError as r}from"@stacksjs/error-handling";import{ExitCode as i}from"@stacksjs/types";var t=d.dns.contactInfo;if(!t)r("You must provide contact info in your config file."),a.exit(i.FatalError);var c={domain:"",years:1,privacy:!0,autoRenew:!0,registrantFirstName:t.firstName,registrantLastName:t.lastName,registrantOrganization:t.organizationName,registrantAddressLine1:t.addressLine1,registrantAddressLine2:t.addressLine2,registrantCity:t.city,registrantState:t.state,registrantCountry:t.countryCode,registrantZip:t.zip,registrantPhone:t.phoneNumber,registrantEmail:t.email,adminFirstName:t.admin?.firstName||t.firstName,adminLastName:t.admin?.lastName||t.lastName,adminOrganization:t.admin?.organizationName||t.organizationName,adminAddressLine1:t.admin?.addressLine1||t.addressLine1,adminAddressLine2:t.admin?.addressLine2||t.addressLine2,adminCity:t.admin?.city||t.city,adminState:t.admin?.state||t.state,adminCountry:t.admin?.countryCode||t.countryCode,adminZip:t.admin?.zip||t.zip,adminPhone:t.admin?.phoneNumber||t.phoneNumber,adminEmail:t.admin?.email||t.email,techFirstName:t.tech?.firstName||t.firstName,techLastName:t.tech?.lastName||t.lastName,techOrganization:t.tech?.organizationName||t.organizationName,techAddressLine1:t.tech?.addressLine1||t.addressLine1,techAddressLine2:t.tech?.addressLine2||t.addressLine2,techCity:t.tech?.city||t.city,techState:t.tech?.state||t.state,techCountry:t.tech?.countryCode||t.countryCode,techZip:t.tech?.zip||t.zip,techPhone:t.tech?.phoneNumber||t.phoneNumber,techEmail:t.tech?.email||t.email,privacyAdmin:t.privacyAdmin||t.privacy||!0,privacyTech:t.privacyTech||t.privacy||!0,privacyRegistrant:t.privacyRegistrant||t.privacy||!0,contactType:"PERSON",verbose:!1},s={...c,...o()};if(!s.domain)r("You must provide a domain name to purchase."),a.exit(i.FatalError);var e=m(s.domain,s);if(e.isErr)r(e.error),a.exit(i.FatalError);n.info("Domain purchased successfully.");a.exit(i.Success);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import y from"process";import{parseOptions as A}from"@stacksjs/cli";import{app as q}from"@stacksjs/config";import{deleteHostedZoneRecords as B}from"@stacksjs/dns";import{handleError as z}from"@stacksjs/error-handling";import{log as C}from"@stacksjs/logging";var v=A(),b={domain:v.domain,verbose:v.verbose};if(!b.domain)if(q.url)b.domain=q.url;else z("there was no domain provided when"),y.exit(1);if(b.verbose)C.info(`Removing domain: ${b.domain}`);var x=await B(b.domain);if(x.isErr)z(x.error),y.exit(1);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ExamplesOptions } from '@stacksjs/types';
|
|
2
|
-
|
|
3
2
|
export declare function invoke(options: ExamplesOptions): Promise<void>;
|
|
4
3
|
export declare function examples(options: ExamplesOptions): Promise<void>;
|
|
5
4
|
export declare function componentExample(options: ExamplesOptions): Promise<void>;
|
|
6
|
-
export declare function webComponentExample(options: ExamplesOptions): Promise<void>;
|
|
5
|
+
export declare function webComponentExample(options: ExamplesOptions): Promise<void>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import"../chunk-96b7fcmd.js";import D from"process";import{NpmScript as z}from"@stacksjs/enums";import{log as q}from"@stacksjs/logging";import{hasComponents as A}from"@stacksjs/storage";import{ExitCode as F}from"@stacksjs/types";import{runNpmScript as B}from"@stacksjs/utils";async function G(f){if(f.components||f.vue)await H(f);else if(f.webComponents||f.elements)await I(f);else q.error("An unsupported option was used. Please try again, check the documentation & report the issue, if needed.")}async function Q(f){return await G(f)}async function H(f){if(A())await B(z.ExampleVue,f),q.success("Your component library was built successfully");else q.info("No components found.")}async function I(f){if(A())q.info("Building your Web Component library..."),await B(z.BuildWebComponents,f),q.success("Your Web Component library was built successfully");else q.info("No components found."),D.exit(F.FatalError)}export{I as webComponentExample,G as invoke,Q as examples,H as componentExample};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import c from"process";import{parseOptions as e}from"@stacksjs/cli";import{log as r}from"@stacksjs/logging";import{ExitCode as i}from"@stacksjs/types";import{findStacksProjects as n}from"@stacksjs/utils";try{let o=e(),t=await n(void 0,o);if(t.length>0)r.info("Found Projects:"),t.forEach((s)=>console.log(` - ${s}`)),c.exit(i.Success);r.info("No Stacks Projects found.")}catch(o){r.error("Error searching for Stacks projects:",o)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import t from"process";import{runCommand as i}from"@stacksjs/cli";import{handleError as m}from"@stacksjs/error-handling";import{log as o}from"@stacksjs/logging";import{projectPath as e}from"@stacksjs/path";import{ExitCode as n}from"@stacksjs/types";import{cleanProject as a}from"@stacksjs/utils";o.info("Cleaning project...");await a();o.info("Installing dependencies...");var r=await i("bun install",{cwd:e()});if(r.isErr)m(r.error),t.exit(n.FatalError);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{readdir as e}from"fs/promises";import{log as a}from"@stacksjs/logging";import{path as i}from"@stacksjs/path";import{storage as s}from"@stacksjs/storage";a.info("Generating action types...");var o="Actions",r=await e(i.appPath(o),{recursive:!0}),n=`// This file is auto-generated by Stacks. Do not edit this file manually.
|
|
3
|
+
// If you wish to rename an action, please do so by editing the file name.
|
|
4
|
+
//
|
|
5
|
+
// For more information, please visit: https://stacksjs.com/docs
|
|
6
|
+
|
|
7
|
+
export type ActionPath = ${r.filter((t)=>t.endsWith(".ts")).map((t)=>`'${o}/${t.replace(".ts","")}'`).join(" | ")}
|
|
8
|
+
`;await s.writeFile(i.frameworkPath("types/actions.d.ts"),n);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
// @bun
|
|
3
|
+
import{ga as d}from"../../chunk-aw6d8zr3.js";import"../../chunk-96b7fcmd.js";import{log as b}from"@stacksjs/logging";import{hasComponents as f}from"@stacksjs/storage";b.info("Generating component meta...");if(f())d();else b.info("No components found. Skipping component meta generation.");b.success("Generated component meta.");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import o from"process";import{cli as t}from"@stacksjs/config";import{log as r}from"@stacksjs/logging";import{projectPath as m}from"@stacksjs/path";import{writeTextFile as a}from"@stacksjs/storage";import{ExitCode as e}from"@stacksjs/types";r.info("Ensuring Component Library Entry Point...");if(!t.command)r.error("No command defined in the CLI configuration"),o.exit(e.FatalError);await a({path:m(t.command),data:`#!/usr/bin/env bun
|
|
3
|
+
import('./storage/framework/core/buddy/src/custom-cli')
|
|
4
|
+
`}).catch((i)=>{r.error("There was an error generating your custom CLI file.",i),o.exit(e.FatalError)});r.success("Generated custom CLI file");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import"../../chunk-96b7fcmd.js";import{env as P,envEnum as R}from"@stacksjs/env";import{log as T}from"@stacksjs/logging";import{path as I}from"@stacksjs/path";import{storage as D}from"@stacksjs/storage";var O=["APP_NAME","APP_ENV","APP_KEY","APP_URL","APP_DOMAIN","APP_MAINTENANCE","APP_MAINTENANCE_SECRET","APP_COMING_SOON","APP_COMING_SOON_SECRET","APP_ROOT","DEBUG","PORT","PORT_BACKEND","PORT_ADMIN","PORT_LIBRARY","PORT_DESKTOP","PORT_EMAIL","PORT_DOCS","PORT_INSPECT","PORT_API","PORT_SYSTEM_TRAY","API_PREFIX","DOCS_PREFIX","DB_CONNECTION","DB_HOST","DB_PORT","DB_DATABASE","DB_DATABASE_PATH","DB_USERNAME","DB_PASSWORD","DB_PREFIX","DB_SCHEMA","DB_QUERY_LOGGING_ENABLED","DB_QUERY_LOGGING_SLOW_THRESHOLD","DB_QUERY_LOGGING_RETENTION_DAYS","DB_QUERY_LOGGING_PRUNE_FREQUENCY","DB_QUERY_LOGGING_ANALYSIS_ENABLED","DB_QUERY_LOGGING_ANALYZE_ALL","DB_QUERY_LOGGING_EXPLAIN_PLAN","DB_QUERY_LOGGING_SUGGESTIONS","DATABASE_URL","AWS_ACCOUNT_ID","AWS_ACCESS_KEY_ID","AWS_SECRET_ACCESS_KEY","AWS_DEFAULT_REGION","AWS_DEFAULT_PASSWORD","AWS_REGION","AWS_HOSTED_ZONE_ID","AWS_S3_BUCKET","AWS_S3_PREFIX","AWS_SES_REGION","MAIL_MAILER","MAIL_HOST","MAIL_PORT","MAIL_USERNAME","MAIL_PASSWORD","MAIL_ENCRYPTION","MAIL_FROM_NAME","MAIL_FROM_ADDRESS","MAIL_DOMAIN","MAIL_DRIVER","MAIL_SERVER_MODE","MAIL_SERVER_PATH","SEARCH_ENGINE_DRIVER","MEILISEARCH_HOST","MEILISEARCH_KEY","STRIPE_SECRET_KEY","STRIPE_PUBLISHABLE_KEY","FRONTEND_APP_ENV","FRONTEND_APP_URL","REALTIME_MODE","BROADCAST_DRIVER","BROADCAST_HOST","BROADCAST_PORT","BROADCAST_SCHEME","BROADCAST_APP_ID","BROADCAST_APP_KEY","BROADCAST_APP_SECRET","BROADCAST_CORS_ORIGIN","BROADCAST_DEBUG","BROADCAST_REDIS_ENABLED","BROADCAST_REDIS_PREFIX","BROADCAST_RATE_LIMIT_ENABLED","BROADCAST_METRICS_ENABLED","REDIS_HOST","REDIS_PORT","REDIS_PASSWORD","PUSHER_APP_ID","PUSHER_APP_KEY","PUSHER_APP_SECRET","PUSHER_APP_CLUSTER","PUSHER_APP_USE_TLS","SSL_DOMAINS","LETSENCRYPT_EMAIL","CONNECT_INSTANCE_ALIAS","PHONE_NOTIFY_EMAIL","PHONE_FORWARD_NUMBER","STORAGE_DRIVER","STORAGE_ROOT","STORAGE_PUBLIC_URL","QUEUE_DRIVER","AUTH_USERNAME_FIELD","AUTH_PASSWORD_FIELD","AUTH_TOKEN_EXPIRY","AUTH_TOKEN_ROTATION","AUTH_PASSWORD_RESET_EXPIRE","AUTH_PASSWORD_RESET_THROTTLE"];T.info("Generating type env files...");var N=`
|
|
3
|
+
// This file is auto-generated by Stacks. Do not edit this file manually.
|
|
4
|
+
// If you want to change the environment variables, please edit the .env file.
|
|
5
|
+
//
|
|
6
|
+
// For more information, please visit: https://stacksjs.com/docs
|
|
7
|
+
|
|
8
|
+
declare module 'bun' {
|
|
9
|
+
namespace env {
|
|
10
|
+
${O.map((E)=>{let A=typeof P[E],_=P[E];if(!_)if(R[E])A=R[E]?.map((S)=>`'${S}'`).join(" | "),_=R[E]?.[0];else switch(A){case"number":_="0";break;case"boolean":_=!1;break;default:_=""}if(A="string",typeof _==="string"){if(_.toLowerCase()==="true"||_.toLowerCase()==="false")A="boolean";else if(!Number.isNaN(Number.parseFloat(_))&&Number.isFinite(Number(_)))A="number";else if(R[E])A=R[E].map((S)=>`'${S}'`).join(" | ")}else if(typeof _==="number")A="number";else if(typeof _==="boolean")A="boolean";return`const ${E}: ${A}`}).join(`
|
|
11
|
+
`)}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
`;await D.writeFile(I.frameworkPath("types/env.d.ts"),N);T.info(" - ./storage/framework/env.ts");var L=`
|
|
15
|
+
// This file is auto-generated by Stacks. Do not edit this file manually.
|
|
16
|
+
// If you want to change the environment variables, please edit the .env file.
|
|
17
|
+
//
|
|
18
|
+
// For more information, please visit: https://stacksjs.com/docs
|
|
19
|
+
|
|
20
|
+
export const envKeys = [
|
|
21
|
+
${O.map((E)=>`'${E}'`).join(`,
|
|
22
|
+
`)}
|
|
23
|
+
] as const
|
|
24
|
+
|
|
25
|
+
export type EnvKey = typeof envKeys[number]
|
|
26
|
+
`;await D.writeFile(I.frameworkPath("env.ts"),L);T.info(" - ./storage/framework/env.d.ts");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
// @bun
|
|
3
|
+
import{Ua as q,Va as x}from"../../chunk-v0wnrnaa.js";import"../../chunk-n2fd1d0m.js";import"../../chunk-96b7fcmd.js";import{log as z}from"@stacksjs/logging";import{hasComponents as A}from"@stacksjs/storage";if(A())await x(),await q();else z.info("No components found. Skipping IDE helper generation.");
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { GeneratorOptions } from '@stacksjs/types';
|
|
2
|
+
// import { files } from '@stacksjs/storage'
|
|
3
|
+
export declare function invoke(options?: GeneratorOptions): Promise<void>;
|
|
4
|
+
export declare function generate(options: GeneratorOptions): Promise<void>;
|
|
5
|
+
export declare function generateLibEntries(options: GeneratorOptions): Promise<void>;
|
|
6
|
+
export declare function generateWebTypes(options?: GeneratorOptions): Promise<void>;
|
|
7
|
+
export declare function generateVsCodeCustomData(): Promise<void>;
|
|
8
|
+
export declare function generateIdeHelpers(options?: GeneratorOptions): Promise<void>;
|
|
9
|
+
export declare function generateComponentMeta(): Promise<void>;
|
|
10
|
+
export declare function generateTypes(options?: GeneratorOptions): Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* Watch model + config + migration source for changes and re-run
|
|
13
|
+
* `generateTypes()` whenever any of them change. Debounced at 200ms so
|
|
14
|
+
* a refactor that touches a dozen files in one save coalesces into a
|
|
15
|
+
* single regen pass.
|
|
16
|
+
*
|
|
17
|
+
* Watched roots:
|
|
18
|
+
* - `app/Models/` — userland models
|
|
19
|
+
* - `storage/framework/defaults/app/Models/` — framework defaults
|
|
20
|
+
* (Stacks' equivalent of Laravel's vendor/. When you're working on
|
|
21
|
+
* the framework itself you edit here and need fresh types just as
|
|
22
|
+
* much as a userland edit.)
|
|
23
|
+
* - `config/`
|
|
24
|
+
* - `database/migrations/`
|
|
25
|
+
*
|
|
26
|
+
* `inflight` guards against re-entry: a slow regen shouldn't queue up
|
|
27
|
+
* three more behind it. `pending` debounces a burst of saves into one
|
|
28
|
+
* fire. The returned promise only resolves on SIGINT, so the caller
|
|
29
|
+
* either awaits (blocking, like `generate:types --watch`) or fires it
|
|
30
|
+
* non-blocking (sidecar use, like `dev:api`).
|
|
31
|
+
*/
|
|
32
|
+
export declare function watchTypes(options?: GeneratorOptions): Promise<void>;
|
|
33
|
+
export declare function generatePantryConfig(): void;
|
|
34
|
+
export declare function generateSeeder(): Promise<void>;
|
|
35
|
+
export declare function generateCoreSymlink(): Promise<void>;
|
|
36
|
+
export declare function generateOpenApiSpec(): Promise<void>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Ha as a,Ia as b,Ja as c,Ka as d,La as e,Ma as f,Na as g,Oa as h,Pa as i,Qa as j,Ra as k,Sa as l,Ta as m}from"../../chunk-schcaf73.js";import"../../chunk-v0wnrnaa.js";import"../../chunk-n2fd1d0m.js";import"../../chunk-s735m9mg.js";import"../../chunk-n1y0gpv6.js";import"../../chunk-96b7fcmd.js";export{i as watchTypes,a as invoke,d as generateWebTypes,e as generateVsCodeCustomData,h as generateTypes,k as generateSeeder,j as generatePantryConfig,m as generateOpenApiSpec,c as generateLibEntries,f as generateIdeHelpers,l as generateCoreSymlink,g as generateComponentMeta,b as generate};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function generateLibEntries(): Promise<void>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
// @bun
|
|
3
|
+
import{ba as i}from"../../chunk-w418anbq.js";import"../../chunk-n2fd1d0m.js";import"../../chunk-96b7fcmd.js";import{library as o}from"@stacksjs/config";import{log as n}from"@stacksjs/logging";import{hasComponents as e,hasFunctions as t}from"@stacksjs/storage";async function r(){if(n.info("Generating library entry points..."),o.releaseable&&e())await i("web-components");else n.info("No components found. Skipping building component entry points.");if(o.releaseable&&t())await i("functions");else n.info("No functions found. Skipping building function entry point.")}await r();export{r as generateLibEntries};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{log as q,runCommand as v}from"@stacksjs/cli";import{config as z}from"@stacksjs/config";import b from"../../../../../pantry.yaml";if(!b)throw Error("pantry.yaml file not found");if(b.dependencies["aws.amazon.com/cdk"]===void 0){if(q.info("aws.amazon.com/cdk dependency not found in pantry.yaml."),(await v("which cdk")).isErr)throw Error("aws.amazon.com/cdk dependency not found in pantry.yaml. To confirm, run `which cdk`")}if(b.dependencies["aws.amazon.com/cli"]===void 0){if(q.info("aws.amazon.com/cli dependency not found in pantry.yaml."),(await v("which aws")).isErr)throw Error("aws.amazon.com/cli dependency not found in pantry.yaml. To confirm, run `which aws`")}if(b.dependencies["bun.sh"]===void 0){if(q.info("bun.sh dependency not found in pantry.yaml."),(await v("which bun")).isErr)throw Error("bun.sh dependency not found in pantry.yaml. To confirm, run `which bun`")}if(b.dependencies["info-zip.org/zip"]===void 0){if(q.info("info-zip.org/zip dependency not found in pantry.yaml."),(await v("which zip")).isErr)throw Error("info-zip.org/zip dependency not found in pantry.yaml. To confirm, run `which zip`")}if(b.dependencies["info-zip.org/unzip"]===void 0){if(q.info("info-zip.org/unzip dependency not found in pantry.yaml."),(await v("which unzip")).isErr)throw Error("info-zip.org/unzip dependency not found in pantry.yaml. To confirm, run `which unzip`")}if(b.dependencies["mailpit.axllent.org"]===void 0){if(q.info("mailpit.axllent.org dependency not found in pantry.yaml."),(await v("which mailpit")).isErr)throw Error("mailpit.axllent.org dependency not found in pantry.yaml. To confirm, run `which mailpit`")}if(b.dependencies["redis.io"]===void 0){if(q.info("redis.io dependency not found in pantry.yaml."),(await v("which redis")).isErr)throw Error("redis.io dependency not found in pantry.yaml. To confirm, run `which redis`")}if(z.database.default==="sqlite"&&b.dependencies["sqlite.org"]===void 0){if(q.info("sqlite.org dependency not found in pantry.yaml."),(await v("which sqlite")).isErr)throw Error("sqlite.org dependency not found in pantry.yaml. To confirm, run `which sqlite`")}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
// @bun
|
|
3
|
+
import{Ua as x}from"../../chunk-v0wnrnaa.js";import"../../chunk-n2fd1d0m.js";import"../../chunk-96b7fcmd.js";import{log as q}from"@stacksjs/logging";import{hasComponents as z}from"@stacksjs/storage";q.info("Generating VS Code custom data...");if(z())await x();else q.info("No components found. Skipping VS Code custom data generation.");q.success("Generated VS Code custom data.");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare function generateComponentMeta(): Promise<void>;
|
|
2
|
+
/**
|
|
3
|
+
* Read an `.stx` file and return its component API surface.
|
|
4
|
+
*/
|
|
5
|
+
export declare function parseStxComponentMeta(componentPath: string): ComponentApi;
|
|
6
|
+
export declare interface ComponentApiProp {
|
|
7
|
+
name: string
|
|
8
|
+
description: string
|
|
9
|
+
type: string
|
|
10
|
+
default: string
|
|
11
|
+
required: boolean
|
|
12
|
+
}
|
|
13
|
+
export declare interface ComponentApiSlot {
|
|
14
|
+
name: string
|
|
15
|
+
description: string
|
|
16
|
+
}
|
|
17
|
+
export declare interface ComponentApiEvent {
|
|
18
|
+
name: string
|
|
19
|
+
type: string
|
|
20
|
+
description: string
|
|
21
|
+
}
|
|
22
|
+
export declare interface ComponentApi {
|
|
23
|
+
props: ComponentApiProp[]
|
|
24
|
+
events: ComponentApiEvent[]
|
|
25
|
+
slots: ComponentApiSlot[]
|
|
26
|
+
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import type { LibraryType } from '@stacksjs/path';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Based on the config values, this method
|
|
4
|
+
* will generate the library entry points.
|
|
5
|
+
*
|
|
6
|
+
* @param type LibraryType
|
|
7
|
+
*/
|
|
3
8
|
export declare function generateLibEntry(type: LibraryType): Promise<void>;
|
|
4
9
|
export declare function createLibraryEntryPoint(type: LibraryType): Promise<void>;
|
|
5
|
-
export declare function
|
|
6
|
-
export declare function
|
|
7
|
-
export declare function
|
|
8
|
-
export declare function generateEntryPointData(type: LibraryType): string;
|
|
10
|
+
export declare function createWebComponentLibraryEntryPoint(type?: LibraryType): Promise<void>;
|
|
11
|
+
export declare function createFunctionLibraryEntryPoint(type?: LibraryType): Promise<void>;
|
|
12
|
+
export declare function generateEntryPointData(type: LibraryType): string;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{ba as a,ca as b,da as c,ea as d,fa as e}from"../../chunk-w418anbq.js";import"../../chunk-n2fd1d0m.js";import"../../chunk-96b7fcmd.js";export{a as generateLibEntry,e as generateEntryPointData,c as createWebComponentLibraryEntryPoint,b as createLibraryEntryPoint,d as createFunctionLibraryEntryPoint};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Wa as q}from"../../chunk-n2fd1d0m.js";import"../../chunk-96b7fcmd.js";import{log as G}from"@stacksjs/logging";import{packageJsonPath as I}from"@stacksjs/path";import{writeTextFile as K}from"@stacksjs/storage";async function R(v){let B,C,z,D,E,A;if(v==="web-components")B=q.webComponents?.name,C=q.webComponents?.description,z="components",D=q.webComponents?.keywords,E="web-components";else if(v==="functions")B=q.functions?.name,C=q.functions?.description,z="functions",D=q.functions?.keywords,E="functions";try{if(await K({path:I(v),data:`{
|
|
3
|
+
"name": "${B}",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"version": "",
|
|
6
|
+
"packageManager": "bun",
|
|
7
|
+
"description": "${C}",
|
|
8
|
+
"author": "${q.author}",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"homepage": "https://github.com/${q.repository}/tree/main/${z}#readme",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/${q.repository}.git",
|
|
14
|
+
"directory": "${z}"
|
|
15
|
+
},
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/${q.repository}/issues"
|
|
18
|
+
},
|
|
19
|
+
"keywords": ${JSON.stringify(D)},
|
|
20
|
+
"contributors": ${JSON.stringify(q.contributors)},
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"require": "./dist/index.cjs",
|
|
25
|
+
"import": "./dist/index.js"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"main": "dist/index.cjs",
|
|
29
|
+
"module": "dist/index.js",
|
|
30
|
+
"types": "dist/index.d.ts",
|
|
31
|
+
"files": [
|
|
32
|
+
"dist",
|
|
33
|
+
"README.md"
|
|
34
|
+
],
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "vite build -c ../build/${E}.ts",
|
|
37
|
+
"prepublishOnly": "bun run build"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"stacks": "workspace:*"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`}),v==="web-components")A="Web Component library";else if(v==="functions")A="Function Library";G.success(`Created ${A} package.json file`)}catch(H){G.error(`There was an error creating the ${A} package.json`,H)}}export{R as generatePackageJson};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ActionOptions, CommandError, Subprocess } from '@stacksjs/types';
|
|
2
|
+
import type { Result } from '@stacksjs/error-handling';
|
|
3
|
+
/**
|
|
4
|
+
* Run an Action the Stacks way.
|
|
5
|
+
*
|
|
6
|
+
* @param action The action to invoke.
|
|
7
|
+
* @param options The options to pass to the command.
|
|
8
|
+
* @returns The result of the command.
|
|
9
|
+
*/
|
|
10
|
+
export declare function runAction(action: Action, options?: ActionOptions): Promise<Result<Subprocess, CommandError>>;
|
|
11
|
+
/**
|
|
12
|
+
* Run Actions the Stacks way.
|
|
13
|
+
*
|
|
14
|
+
* @param actions The actions to invoke.
|
|
15
|
+
* @param options The options to pass to the command.
|
|
16
|
+
* @returns The result of the command.
|
|
17
|
+
*/
|
|
18
|
+
export declare function runActions(actions: Action[], options?: ActionOptions): Promise<any>;
|
|
19
|
+
// looks in most common locations
|
|
20
|
+
export declare function hasAction(action: Action): boolean;
|
|
21
|
+
declare type ActionPath = string // TODO: narrow this by automating its generation
|
|
22
|
+
type ActionName = string // TODO: narrow this by automating its generation
|
|
23
|
+
type Action = ActionPath | ActionName | string;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export type { CrudField } from './scaffold-crud';
|
|
2
|
+
export type { DiscoveredPackagesManifest, PackageStacksMeta } from './discover-packages';
|
|
3
|
+
export * from './action';
|
|
4
|
+
export { add as runAdd } from './add';
|
|
5
|
+
export { commit as runCommit } from './commit';
|
|
6
|
+
export * from './dev';
|
|
7
|
+
export * from './generate';
|
|
8
|
+
export * from './helpers';
|
|
9
|
+
export * from './setup';
|
|
10
|
+
// makeFactory,
|
|
11
|
+
export {
|
|
12
|
+
createComponent,
|
|
13
|
+
createDatabase,
|
|
14
|
+
createFactory,
|
|
15
|
+
createFunction,
|
|
16
|
+
createLanguage,
|
|
17
|
+
createMiddleware,
|
|
18
|
+
createMigration,
|
|
19
|
+
createModel,
|
|
20
|
+
createNotification,
|
|
21
|
+
createPage,
|
|
22
|
+
isDryRunActive,
|
|
23
|
+
makeAction,
|
|
24
|
+
makeCertificate,
|
|
25
|
+
makeComponent,
|
|
26
|
+
makeDatabase,
|
|
27
|
+
makeFunction,
|
|
28
|
+
makeLanguage,
|
|
29
|
+
makeNotification,
|
|
30
|
+
makePage,
|
|
31
|
+
makeQueueTable,
|
|
32
|
+
makeStack,
|
|
33
|
+
make as runMake,
|
|
34
|
+
setDryRun,
|
|
35
|
+
} from './make';
|
|
36
|
+
export { discoverPackages } from './discover-packages';
|
|
37
|
+
export { parseFields, scaffoldCrud } from './scaffold-crud';
|
|
38
|
+
export { installStack, uninstallStack, listStacks } from './stacks';
|
|
39
|
+
export { makeJob } from './make-job';
|
|
40
|
+
export { makeCommand } from './make-command';
|
|
41
|
+
export { makePolicy } from './make-policy';
|
|
42
|
+
export { makeResource } from './make-resource';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import"../chunk-e9tcbk71.js";import"../chunk-cdk2r2jd.js";import{l as D,m as E,n as F,o as G,p as H,q as I,r as J,s as K}from"../chunk-x471rxrn.js";import{t as ia,u as ja,v as ka}from"../chunk-2qchdrf9.js";import{w as ga,x as ha}from"../chunk-rdajkt2s.js";import{y as ma}from"../chunk-gt77jmb5.js";import{z as la}from"../chunk-3beht8ja.js";import{A as na}from"../chunk-h93n2j40.js";import{B as oa}from"../chunk-wnrgcx3d.js";import{$ as fa,C as L,D as M,F as N,G as O,H as P,J as Q,K as R,L as S,N as T,O as U,P as V,Q as W,R as X,S as Y,T as Z,U as _,V as $,W as aa,X as ba,Y as ca,Z as da,_ as ea}from"../chunk-6x1m5rkr.js";import"../chunk-3086k7zk.js";import{ia as t,ja as u,ka as v,la as w,ma as x,na as y,oa as z,pa as A,qa as B}from"../chunk-60qjz7zb.js";import{ra as C}from"../chunk-c8qt2xst.js";import{Ga as s}from"../chunk-2gh7kgpc.js";import{Ha as f,Ia as g,Ja as h,Ka as i,La as j,Ma as k,Na as l,Oa as m,Pa as n,Qa as o,Ra as p,Sa as q,Ta as r}from"../chunk-schcaf73.js";import"../chunk-v0wnrnaa.js";import"../chunk-n2fd1d0m.js";import"../chunk-s735m9mg.js";import{Xa as a}from"../chunk-d4srk6ma.js";import{Ya as b,Za as c,_a as d}from"../chunk-n1y0gpv6.js";import{bb as e}from"../chunk-jd1yzkq5.js";import"../chunk-96b7fcmd.js";export{n as watchTypes,ja as uninstallStack,H as trustCertificate,F as sslCertificatesExist,J as setupSSL,L as setDryRun,ha as scaffoldCrud,z as runSystemTrayDevServer,N as runMake,u as runFrontendDevServer,B as runDocsDevServer,t as runDevServer,A as runDesktopDevServer,y as runDashboardDevServer,x as runComponentsDevServer,s as runCommit,v as runBackendDevServer,w as runApiDevServer,e as runAdd,c as runActions,b as runAction,ga as parseFields,$ as makeStack,oa as makeResource,ca as makeQueueTable,na as makePolicy,V as makePage,U as makeNotification,Z as makeLanguage,la as makeJob,X as makeFunction,R as makeDatabase,P as makeComponent,ma as makeCommand,da as makeCertificate,O as makeAction,ka as listStacks,K as isSSLSetupComplete,M as isDryRunActive,D as isDomainInHosts,G as isCertificateTrusted,f as invoke,ia as installStack,d as hasAction,i as generateWebTypes,j as generateVsCodeCustomData,m as generateTypes,p as generateSeeder,o as generatePantryConfig,r as generateOpenApiSpec,h as generateLibEntries,k as generateIdeHelpers,q as generateCoreSymlink,l as generateComponentMeta,I as generateCertificates,g as generate,C as discoverPackages,W as createPage,aa as createNotification,ea as createModel,ba as createMigration,fa as createMiddleware,_ as createLanguage,Y as createFunction,T as createFactory,S as createDatabase,Q as createComponent,E as addDomainToHosts,a as Action};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{runCommand as e}from"@stacksjs/cli";import{projectPath as m}from"@stacksjs/path";import{generateAppKey as r}from"@stacksjs/security";import{existsSync as o}from"@stacksjs/storage";import{setEnvValue as t}from"@stacksjs/utils";if(!o(".env"))await e("cp .env.example .env",{cwd:m()});await t("APP_KEY",r());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import H from"process";import{execSync as I,log as A,parseOptions as V,runCommand as K}from"@stacksjs/cli";import{NpmScript as W}from"@stacksjs/enums";import{projectPath as E}from"@stacksjs/path";A.info("Ensuring Code Style...");var M=V(),J=await K(W.LintFix,{cwd:E(),...M});if(J.isErr){let z=await X(E());if(z.length===0)A.warn("Full-project lint failed, and no changed source files were found for a targeted fallback."),console.error(J.error),H.exit(1);A.warn(`Full-project lint failed; retrying only ${z.length} changed file(s).`);let B=await K(`bunx --bun pickier ${z.map(Y).join(" ")} --fix`,{cwd:E(),...M});if(B.isErr)A.error("There was an error fixing your code style."),console.error(B.error),H.exit(1)}A.success("Linted");async function X(z){let B=await I("git diff --name-only --diff-filter=ACMR",{cwd:z,silent:!0}),R=await I("git ls-files --others --exclude-standard",{cwd:z,silent:!0}),U=`${B}
|
|
3
|
+
${R}`.split(`
|
|
4
|
+
`).map((q)=>q.trim()).filter(Boolean),G=new Set;for(let q of U){if(!/\.(?:ts|js|json|md|ya?ml)$/.test(q))continue;if(q.includes("/dist/")||q.startsWith("dist/")||q.startsWith("node_modules/")||q.startsWith("pantry/")||q.includes("/storage/framework/cache/"))continue;G.add(q)}return[...G]}function Y(z){return`'${z.replaceAll("'","'\\''")}'`}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
// @bun
|
|
3
|
+
import{log as e}from"@stacksjs/cli";import{existsSync as r}from"fs";import{execSync as l,spawnSync as f}from"child_process";e.info("Checking Code Style...");var i=process.cwd(),a=/\.(?:ts|js|json|md|yaml|yml)$/i,g=/(?:^|\/)(?:node_modules|dist|pantry|storage\/framework\/cache|\.git|\.stx|\.stx-serve)(?:\/|$)/;function u(){try{return l("git ls-files -z",{cwd:i,encoding:"utf8"}).split("\x00").filter((t)=>a.test(t)&&!g.test(t))}catch{return[]}}var s=u();if(!s.length)e.success("Linted"),process.exit(0);var d=r(`${i}/pickier.config.ts`)?["--config","pickier.config.ts"]:[],n=120,c=!1;for(let t=0;t<s.length;t+=n){let o=s.slice(t,t+n);if(f("bunx",["--bun","pickier","lint",...o,...d,"--max-warnings","9999"],{cwd:i,stdio:"inherit"}).status!==0)c=!0}if(c)process.exit(1);e.success("Linted");
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { MakeOptions } from '@stacksjs/types';
|
|
2
|
+
/**
|
|
3
|
+
* Create a new command file in app/Commands
|
|
4
|
+
*/
|
|
5
|
+
export declare function makeCommand(options: MakeCommandOptions): Promise<boolean>;
|
|
6
|
+
export declare interface MakeCommandOptions extends MakeOptions {
|
|
7
|
+
register?: boolean
|
|
8
|
+
description?: string
|
|
9
|
+
signature?: string
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create a new policy file in app/Policies
|
|
3
|
+
*/
|
|
4
|
+
export declare function makePolicy(options: MakePolicyOptions): Promise<boolean>;
|
|
5
|
+
export declare interface MakePolicyOptions {
|
|
6
|
+
name?: string
|
|
7
|
+
model?: string
|
|
8
|
+
register?: boolean
|
|
9
|
+
[key: string]: any
|
|
10
|
+
}
|