@stacksjs/actions 0.70.72 → 0.70.74
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/action.d.ts +8 -6
- package/dist/action.js +1 -1
- package/dist/actions.js +1 -1
- package/dist/add.js +1 -1
- package/dist/ai/request-model-access.d.ts +1 -1
- package/dist/ai/request-model-access.js +1 -1
- package/dist/auth/client.d.ts +1 -1
- package/dist/auth/prune.d.ts +1 -1
- package/dist/auth/setup.d.ts +1 -1
- package/dist/auth/token.d.ts +1 -1
- package/dist/blog.js +23 -23
- package/dist/build/cli.d.ts +1 -1
- package/dist/build/component-libs.d.ts +1 -1
- package/dist/build/core.d.ts +1 -1
- package/dist/build/desktop.d.ts +1 -1
- package/dist/build/docs.d.ts +1 -1
- package/dist/build/frontend-static.js +1 -1
- package/dist/build/server.d.ts +1 -1
- package/dist/build/stacks.d.ts +1 -1
- package/dist/build/views.d.ts +1 -1
- package/dist/build.js +1 -1
- package/dist/bump.d.ts +1 -1
- package/dist/bump.js +7 -2
- package/dist/changelog.d.ts +0 -1
- package/dist/changelog.js +2 -1
- package/dist/check/ports.d.ts +1 -1
- package/dist/{chunk-badehrwa.js → chunk-0wyxyqak.js} +1 -1
- package/dist/{chunk-nn1a9b4f.js → chunk-49ry9mgz.js} +1 -1
- package/dist/{chunk-ryz8etwk.js → chunk-73y0wp0s.js} +2 -2
- package/dist/{chunk-xhznkfad.js → chunk-8kvzjd10.js} +2 -2
- package/dist/{chunk-jve1p4dz.js → chunk-8maaf0ze.js} +2 -2
- package/dist/{chunk-5hwp0frq.js → chunk-acyw294f.js} +1 -1
- package/dist/{chunk-vsj8ns4p.js → chunk-ay41a7jn.js} +1 -1
- package/dist/{chunk-aazd6qpv.js → chunk-d5mbs5zz.js} +1 -1
- package/dist/{chunk-zehw6yk8.js → chunk-dxvgx0r7.js} +2 -2
- package/dist/{chunk-8gbewxns.js → chunk-e87s6b8r.js} +1 -1
- package/dist/{chunk-sp5cjdhd.js → chunk-f8z1aft6.js} +1 -1
- package/dist/{chunk-nm9h5rye.js → chunk-gcjrdkq7.js} +2 -2
- package/dist/{chunk-e8505qz8.js → chunk-h10aj7jf.js} +2 -2
- package/dist/{chunk-p601xr03.js → chunk-h63c1v89.js} +1 -1
- package/dist/{chunk-9a8838dc.js → chunk-heh4x32p.js} +2 -2
- package/dist/{chunk-67am4dae.js → chunk-hr9ndn21.js} +1 -1
- package/dist/{chunk-8r76qydb.js → chunk-hv8tkjw2.js} +2 -2
- package/dist/{chunk-jv7ry09n.js → chunk-k7n6c9hm.js} +1 -1
- package/dist/{chunk-63swek9d.js → chunk-n057zfgw.js} +2 -2
- package/dist/chunk-rft5b6wr.js +3 -0
- package/dist/{chunk-pqnzp7x8.js → chunk-t5j470r2.js} +2 -2
- package/dist/chunk-v0hqskdk.js +3 -0
- package/dist/{chunk-z7qb1602.js → chunk-v1dg1jp6.js} +1 -1
- package/dist/{chunk-23thftnv.js → chunk-vv4nqhgg.js} +1 -1
- package/dist/{chunk-mcwfmqzb.js → chunk-w363nwy3.js} +1 -1
- package/dist/{chunk-5pwpk005.js → chunk-w4erevzw.js} +2 -2
- package/dist/{chunk-ag4fy7cx.js → chunk-wtnp31q5.js} +1 -1
- package/dist/{chunk-az3bb5fg.js → chunk-x0cnhg3z.js} +1 -1
- package/dist/clean.d.ts +1 -1
- package/dist/commit.js +1 -1
- package/dist/copy-types.d.ts +1 -1
- package/dist/database/seed.d.ts +1 -1
- package/dist/deploy/create-receipt-rule.d.ts +1 -1
- package/dist/deploy/index.d.ts +1 -1
- package/dist/deploy/index.js +2 -2
- package/dist/dev/api.d.ts +1 -1
- package/dist/dev/api.js +1 -1
- package/dist/dev/components.d.ts +1 -1
- package/dist/dev/dashboard-globals.js +1 -1
- package/dist/dev/dashboard-utils.d.ts +59 -53
- package/dist/dev/dashboard-utils.js +1 -1
- package/dist/dev/dashboard.d.ts +10 -0
- package/dist/dev/dashboard.js +4 -4
- package/dist/dev/desktop.d.ts +1 -1
- package/dist/dev/docs.d.ts +1 -1
- package/dist/dev/docs.js +1 -1
- package/dist/dev/index.js +1 -1
- package/dist/dev/migrate-watcher.js +1 -1
- package/dist/dev/system-tray.d.ts +1 -1
- package/dist/dev/views.d.ts +1 -1
- package/dist/dev/views.js +1 -1
- package/dist/discover-packages.js +1 -1
- package/dist/domains/add.d.ts +1 -1
- package/dist/domains/remove.d.ts +1 -1
- package/dist/examples.js +1 -1
- package/dist/find-projects.d.ts +1 -1
- package/dist/fresh.d.ts +1 -1
- package/dist/generate/action-types.d.ts +1 -1
- package/dist/generate/component-meta.d.ts +1 -1
- package/dist/generate/component-meta.js +1 -1
- package/dist/generate/custom-cli-file.d.ts +1 -1
- package/dist/generate/env-files.d.ts +1 -1
- package/dist/generate/env-files.js +1 -1
- package/dist/generate/ide-helpers.d.ts +1 -1
- package/dist/generate/ide-helpers.js +1 -1
- package/dist/generate/index.js +1 -1
- package/dist/generate/lib-entries.js +1 -1
- package/dist/generate/pantry-file.d.ts +1 -1
- package/dist/generate/symlink-core.d.ts +1 -1
- package/dist/generate/types.d.ts +1 -1
- package/dist/generate/vscode-custom-data.d.ts +1 -1
- package/dist/generate/vscode-custom-data.js +1 -1
- package/dist/helpers/component-meta.js +1 -1
- package/dist/helpers/index.js +1 -1
- package/dist/helpers/lib-entries.js +1 -1
- package/dist/helpers/package-json.js +1 -1
- package/dist/helpers/utils.js +1 -1
- package/dist/helpers/vscode-custom-data.js +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -1
- package/dist/key-generate.d.ts +1 -1
- package/dist/lint/fix.d.ts +1 -1
- package/dist/lint/fix.js +2 -4
- package/dist/lint/index.d.ts +1 -1
- package/dist/lint/index.js +1 -1
- package/dist/lint/lint.d.ts +14 -0
- package/dist/lint/lint.js +2 -0
- package/dist/make-command.js +1 -1
- package/dist/make-job.js +1 -1
- package/dist/make-policy.js +1 -1
- package/dist/make-resource.js +1 -1
- package/dist/make.js +1 -1
- package/dist/migrate/database.d.ts +1 -1
- package/dist/migrate/fresh.d.ts +1 -1
- package/dist/orm/base.js +1 -1
- package/dist/prepublish.d.ts +1 -1
- package/dist/queue/clear.d.ts +1 -1
- package/dist/queue/dlq-purge.d.ts +1 -1
- package/dist/queue/dlq-retry.d.ts +1 -1
- package/dist/queue/dlq.d.ts +1 -1
- package/dist/queue/failed.d.ts +1 -1
- package/dist/queue/flush.d.ts +1 -1
- package/dist/queue/inspect.d.ts +1 -1
- package/dist/queue/list.d.ts +1 -1
- package/dist/queue/monitor.d.ts +1 -1
- package/dist/queue/pause.d.ts +1 -1
- package/dist/queue/quarantine.d.ts +1 -1
- package/dist/queue/resume.d.ts +1 -1
- package/dist/queue/retry.d.ts +1 -1
- package/dist/queue/schedule-list.d.ts +1 -1
- package/dist/queue/schedule.d.ts +1 -1
- package/dist/queue/status.d.ts +1 -1
- package/dist/queue/table.d.ts +1 -1
- package/dist/queue/unquarantine.d.ts +1 -1
- package/dist/queue/work.d.ts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +1 -1
- package/dist/route/list.d.ts +1 -1
- package/dist/run-action.js +1 -1
- package/dist/saas/setup.d.ts +1 -1
- package/dist/scaffold-crud.js +1 -1
- package/dist/schedule/run.d.ts +1 -1
- package/dist/search/flush.d.ts +1 -1
- package/dist/search/import.d.ts +1 -1
- package/dist/search/settings-list.d.ts +1 -1
- package/dist/search/settings.d.ts +1 -1
- package/dist/serve/api.d.ts +1 -1
- package/dist/setup/index.js +1 -1
- package/dist/setup/ssl.js +1 -1
- package/dist/stacks.js +1 -1
- package/dist/templates.d.ts +21 -1
- package/dist/templates.js +1 -1
- package/dist/test/feature.d.ts +1 -1
- package/dist/test/index.d.ts +1 -1
- package/dist/test/ui.d.ts +1 -1
- package/dist/test/unit.d.ts +1 -1
- package/dist/typecheck.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/upgrade/binary.d.ts +1 -1
- package/dist/upgrade/dependencies.js +1 -1
- package/dist/upgrade/framework-utils.js +1 -1
- package/dist/upgrade/framework.d.ts +1 -1
- package/dist/upgrade/framework.js +1 -1
- package/dist/upgrade/index.d.ts +1 -1
- package/dist/upgrade/index.js +1 -1
- package/dist/upgrade/packages.js +8 -8
- package/dist/upgrade/shell.d.ts +1 -1
- package/dist/upgrade.js +1 -1
- package/package.json +30 -19
- package/dist/chunk-4qzb8g3z.js +0 -3
- package/dist/chunk-5dfz9en9.js +0 -920
- package/dist/chunk-tqax3gbq.js +0 -16
- /package/dist/{chunk-e9tcbk71.js → chunk-g6k41p49.js} +0 -0
package/dist/make.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$ as
|
|
2
|
+
import{$ as w,F as a,G as b,H as c,I as d,J as e,K as f,L as g,M as h,N as i,O as j,P as k,Q as l,R as m,S as n,T as o,U as p,V as q,W as r,X as s,Y as t,Z as u,_ as v,aa as x,ba as y,ca as z,da as A,ea as B}from"./chunk-heh4x32p.js";import"./chunk-w363nwy3.js";import"./chunk-s735m9mg.js";import"./chunk-8kvzjd10.js";import"./chunk-v0hqskdk.js";export{a as setDryRun,v as makeStack,y as makeQueueTable,p as makePage,m as makeNotification,o as makeMail,t as makeLanguage,r as makeFunction,i as makeDatabase,f as makeComponent,z as makeCertificate,e as makeAction,d as make,b as isDryRunActive,c as invoke,k as factory,q as createPage,w as createNotification,A as createModel,x as createMigration,B as createMiddleware,n as createMail,u as createLanguage,s as createFunction,l as createFactory,j as createDatabase,h as createComponent,g as createAction};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/migrate/fresh.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/orm/base.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"../chunk-
|
|
2
|
+
import"../chunk-v0hqskdk.js";var c=void 0;export{c as default};
|
package/dist/prepublish.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/queue/clear.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/queue/dlq.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/queue/failed.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/queue/flush.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/queue/inspect.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/queue/list.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/queue/monitor.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/queue/pause.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/queue/resume.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/queue/retry.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/queue/schedule.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/queue/status.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/queue/table.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/queue/work.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/release.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/release.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
// @bun
|
|
3
|
-
import"./chunk-
|
|
3
|
+
import"./chunk-g6k41p49.js";import"./chunk-0wyxyqak.js";import"./chunk-cdk2r2jd.js";import"./chunk-t5j470r2.js";import"./chunk-x0cnhg3z.js";import"./chunk-gcjrdkq7.js";import"./chunk-n057zfgw.js";import"./chunk-heh4x32p.js";import"./chunk-w363nwy3.js";import"./chunk-rft5b6wr.js";import"./chunk-e87s6b8r.js";import"./chunk-acyw294f.js";import"./chunk-ay41a7jn.js";import"./chunk-73y0wp0s.js";import"./chunk-h63c1v89.js";import"./chunk-dxvgx0r7.js";import"./chunk-h10aj7jf.js";import"./chunk-wtnp31q5.js";import"./chunk-s735m9mg.js";import"./chunk-d5mbs5zz.js";import{hb as C}from"./chunk-8kvzjd10.js";import"./chunk-vv4nqhgg.js";import"./chunk-v0hqskdk.js";import{parseOptions as G}from"@stacksjs/cli";import{app as H}from"@stacksjs/config";import{Action as q}from"@stacksjs/enums";import{log as E}from"@stacksjs/logging";import{projectPath as I}from"@stacksjs/path";var J=G()??{},z={};for(let[B,F]of Object.entries(J)){if(B==="--"||B==="_")continue;z[B]=F}var K=z.dryRun===!0||z.dryRun==="true",L=K?[q.GenerateLibraryEntries,q.Bump]:[q.GenerateLibraryEntries,q.LintFix,q.Bump],x=await C(L,{cwd:I(),...z});if(x&&x.isErr)E.error(`Release failed: ${x.error?.message??String(x.error)}`),process.exit(1);E.success(`Successfully released ${H.name}`);
|
package/dist/route/list.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/run-action.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{gb as o}from"./chunk-8kvzjd10.js";import"./chunk-v0hqskdk.js";export{o as runAction};
|
package/dist/saas/setup.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/scaffold-crud.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{B as a,C as b}from"./chunk-
|
|
2
|
+
import{B as a,C as b}from"./chunk-x0cnhg3z.js";import"./chunk-heh4x32p.js";import"./chunk-w363nwy3.js";import"./chunk-s735m9mg.js";import"./chunk-8kvzjd10.js";import"./chunk-v0hqskdk.js";export{b as scaffoldCrud,a as parseFields};
|
package/dist/schedule/run.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/search/flush.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/search/import.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/serve/api.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/setup/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"../chunk-cdk2r2jd.js";import{
|
|
2
|
+
import"../chunk-cdk2r2jd.js";import{A as h,t as a,u as b,v as c,w as d,x as e,y as f,z as g}from"../chunk-t5j470r2.js";import"../chunk-v0hqskdk.js";export{e as trustCertificate,c as sslCertificatesExist,g as setupSSL,h as isSSLSetupComplete,a as isDomainInHosts,d as isCertificateTrusted,f as generateCertificates,b as addDomainToHosts};
|
package/dist/setup/ssl.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{A as h,t as a,u as b,v as c,w as d,x as e,y as f,z as g}from"../chunk-t5j470r2.js";import"../chunk-v0hqskdk.js";export{e as trustCertificate,c as sslCertificatesExist,g as setupSSL,h as isSSLSetupComplete,a as isDomainInHosts,d as isCertificateTrusted,f as generateCertificates,b as addDomainToHosts};
|
package/dist/stacks.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{q as a,r as b,s as c}from"./chunk-0wyxyqak.js";import"./chunk-v0hqskdk.js";export{b as uninstallStack,c as listStacks,a as installStack};
|
package/dist/templates.d.ts
CHANGED
|
@@ -4,5 +4,25 @@
|
|
|
4
4
|
* These templates use the {0}, {1}, etc. format for template substitution
|
|
5
5
|
* which works with the @stacksjs/strings template function
|
|
6
6
|
*/
|
|
7
|
-
export declare const CODE_TEMPLATES:
|
|
7
|
+
export declare const CODE_TEMPLATES: {
|
|
8
|
+
action: string;
|
|
9
|
+
actionWithValidation: string;
|
|
10
|
+
actionWithAuth: string;
|
|
11
|
+
actionWithBoth: string;
|
|
12
|
+
component: string;
|
|
13
|
+
page: string;
|
|
14
|
+
function: string;
|
|
15
|
+
language: string;
|
|
16
|
+
notification: string;
|
|
17
|
+
mail: string;
|
|
18
|
+
mailTemplate: string;
|
|
19
|
+
middleware: string;
|
|
20
|
+
model: string;
|
|
21
|
+
migration: string;
|
|
22
|
+
stackPackageJson: string;
|
|
23
|
+
job: string;
|
|
24
|
+
event: string;
|
|
25
|
+
listener: string;
|
|
26
|
+
command: string
|
|
27
|
+
};
|
|
8
28
|
export type TemplateKey = keyof typeof CODE_TEMPLATES;
|
package/dist/templates.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{fa as a}from"./chunk-w363nwy3.js";import"./chunk-v0hqskdk.js";export{a as CODE_TEMPLATES};
|
package/dist/test/feature.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/test/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/test/ui.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/test/unit.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/typecheck.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/types.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-v0hqskdk.js";import t from"process";import{NpmScript as e}from"@stacksjs/enums";import{log as s}from"@stacksjs/logging";import{ExitCode as i}from"@stacksjs/types";import{runNpmScript as p}from"@stacksjs/utils";async function m(r){let o=await p(e.TypesFix,r);if(o.isErr)s.error("There was an error fixing your types.",o.error),t.exit(i.FatalError);s.success("Types are set")}async function u(r){return await m(r)}export{u as types,m as invoke};
|
package/dist/upgrade/binary.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"../chunk-
|
|
2
|
+
import"../chunk-v0hqskdk.js";var c=void 0;export{c as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{c as a,d as b,e as c,f as d,g as e,h as f,i as g,j as h,k as i,l as j,m as k,n as l,o as m,p as n}from"../chunk-n24m8prb.js";import"../chunk-
|
|
2
|
+
import{c as a,d as b,e as c,f as d,g as e,h as f,i as g,j as h,k as i,l as j,m as k,n as l,o as m,p as n}from"../chunk-n24m8prb.js";import"../chunk-v0hqskdk.js";export{g as writeSyncedVersion,e as writeChannel,m as snapshotTree,h as shouldShortCircuit,i as resolveUpgradeMessage,a as resolveUpgradeContext,j as resolveSuccessMessage,c as readVersion,f as readSyncedVersion,d as readChannel,n as diffSnapshots,l as detectLocalStacks,b as buildTemplateString,k as MANAGED_PATHS};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{c as R,d as x,e as w,f as S,g as u,h as y,i as h,j as p,k as g,l as d,m as D,n as l,o as H,p as m}from"../chunk-n24m8prb.js";import{
|
|
2
|
+
import{c as R,d as x,e as w,f as S,g as u,h as y,i as h,j as p,k as g,l as d,m as D,n as l,o as H,p as m}from"../chunk-n24m8prb.js";import{qb as j}from"../chunk-v0hqskdk.js";import{copyFileSync as i,cpSync as a,existsSync as B,mkdirSync as f,readFileSync as e,rmSync as qq}from"fs";import{dirname as zq,join as U}from"path";import I from"process";import{parseOptions as Kq}from"@stacksjs/cli";import{downloadTemplate as n}from"@stacksjs/gitit";import{path as N}from"@stacksjs/path";import{ExitCode as C}from"@stacksjs/types";var Y=Kq(),O=N.projectPath();if(!B(N.projectPath("storage/framework/core"))){let{upgradeStacksPackages:q}=await import("./packages.js");await q(O,{version:Y.version,canary:Y.canary,stable:Y.stable,force:Y.force,dryRun:Y.dryRun,noPostinstall:Y.noPostinstall??Y.postinstall===!1})}var c=U(O,".stacks-channel"),s=U(O,".stacks-version"),A=S(c),$=R(Y,A),r=N.projectPath("storage/framework/core/buddy/package.json"),Qq=w(r),Wq=Y.from?N.projectPath(Y.from):null,_=Wq??l(O),E=!!_;console.log(g($,A,!!Y.stable));console.log(E?` source: local checkout at ${_}`:` source: github:stacksjs/stacks#${$.ref}`);if(!Y.force){let q=await Jq(O);if(q.length>0){console.warn(`
|
|
3
3
|
\u26A0 The following framework-managed paths have uncommitted changes:`);for(let z of q)console.warn(` - ${z}`);console.warn(`
|
|
4
4
|
Aborting to avoid clobbering your edits.`),console.warn(` Re-run with --force to overwrite, or commit / stash the changes first.
|
|
5
5
|
`),I.exit(C.FatalError)}}var G=null;if(!Y.force&&!$.targetVersion){G=await t($,E,_);let q=y(s);if(p({force:!!Y.force,targetVersion:$.targetVersion,remoteSha:G,synced:q,channel:$.channel}))console.log(`\u2714 Already on the latest ${$.channel} (${G.slice(0,7)}).`),I.exit(C.Success)}var b=N.frameworkPath("core/actions/src/upgrade/framework.ts"),k=await o(b),V={added:0,changed:0,removed:0,unchanged:0},v=[];try{for(let q of D){let z=U(O,q.localPath),K=q.isFile?await T(z):await H(z,q.skip);if(E&&_)await Bq(_,q,z);else{if(q.isFile)continue;await Iq($.ref,q,z,!!Y.force)}let Q=q.isFile?await T(z):await H(z,q.skip),W=m(K,Q);V.added+=W.added,V.changed+=W.changed,V.removed+=W.removed,V.unchanged+=W.unchanged,v.push({managed:q,summary:W})}if(!E)await Uq($.ref)}catch(q){console.error("\u2718 Failed to upgrade Stacks framework:",q?.message||q),I.exit(C.FatalError)}var Xq=w(r),P=await o(b),Yq=I.argv.includes("--__restarted");if(k!==0n&&P!==0n&&k!==P&&!Yq){console.log(`Upgrade pulled a newer version of the upgrade action \u2014 re-running once to pick up new sync paths and hooks.
|
package/dist/upgrade/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/upgrade/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"../chunk-s735m9mg.js";import{
|
|
2
|
+
import"../chunk-s735m9mg.js";import{gb as r}from"../chunk-8kvzjd10.js";import"../chunk-v0hqskdk.js";import e from"process";import{parseArgs as o}from"@stacksjs/cli";import{Action as i}from"@stacksjs/enums";import{ExitCode as t}from"@stacksjs/types";var a=o();if(a?.framework||a?.all)await r(i.UpgradeFramework,a);if(a?.dependencies||a?.all)await r(i.UpgradeDeps,a);if(a?.bun||a?.all)await r(i.UpgradeBun,a);if(a?.shell||a?.all)await r(i.UpgradeShell,a);if(a?.binary||a?.all)await r(i.UpgradeBinary,a);e.exit(t.Success);
|
package/dist/upgrade/packages.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"../chunk-
|
|
2
|
+
import"../chunk-v0hqskdk.js";import{existsSync as U,readFileSync as V,writeFileSync as W}from"fs";import{join as X}from"path";import M from"process";import{runCommand as Y}from"@stacksjs/cli";async function Z(A){let z=await fetch("https://registry.npmjs.org/stacks").catch(()=>null);if(!z||!z.ok)throw Error("Could not reach the npm registry to resolve the target `stacks` version.");let I=await z.json(),J=I["dist-tags"]??{},G=I.versions??{},q;if(A.version){if(!G[A.version])throw Error(`stacks@${A.version} was not found on the npm registry.`);q=A.version}else{let H=A.canary?"canary":"latest",b=J[H];if(!b)throw Error(`The \`${H}\` dist-tag is not published for \`stacks\`.`);q=b}let E=new Set(Object.keys(G[q]?.dependencies??{}));return{version:q,coreDeps:E}}function _(A,z,I){let J=[],G=(q)=>q==="stacks"||q.startsWith("@stacksjs/")&&I.has(q);for(let q of["dependencies","devDependencies"]){let E=A[q];if(!E)continue;for(let[H,b]of Object.entries(E)){if(!G(H))continue;let O=`${/^[\^~]/.test(b)?b[0]:/^\d/.test(b)?"":"^"}${z}`;if(b!==O)J.push({name:H,from:b,to:O}),E[H]=O}}return J}async function T(A,z){let I=X(A,"package.json");if(!U(I))console.error("No package.json found \u2014 nothing to upgrade."),M.exit(1);let J=V(I,"utf-8"),G=JSON.parse(J),q=G.dependencies?.stacks??G.devDependencies?.stacks,{version:E,coreDeps:H}=await Z(z).catch((K)=>{console.error(`\u2717 ${K.message}`),M.exit(1)});if(console.log(`
|
|
3
3
|
Upgrading the Stacks framework${z.canary?" (canary)":""} \u2192 ${E}`),q)console.log(` current \`stacks\` constraint: ${q}
|
|
4
|
-
`);let b=_(
|
|
5
|
-
`),
|
|
6
|
-
`),
|
|
4
|
+
`);let b=_(G,E,H);if(b.length===0&&!z.force)console.log(`\u2714 Already up to date \u2014 every framework dependency matches the target.
|
|
5
|
+
`),M.exit(0);if(b.length>0){console.log(" The following dependencies will be updated:");let K=Math.max(...b.map((N)=>N.name.length));for(let N of b)console.log(` ${N.name.padEnd(K)} ${N.from} \u2192 ${N.to}`);console.log("")}if(z.dryRun)console.log(` --dry-run: no files were written and nothing was installed.
|
|
6
|
+
`),M.exit(0);if(b.length>0){let K=J.endsWith(`
|
|
7
7
|
`)?`
|
|
8
|
-
`:"";W(
|
|
9
|
-
`),
|
|
10
|
-
`)
|
|
8
|
+
`:"";W(I,`${JSON.stringify(G,null,2)}${K}`),console.log("\u2714 Updated package.json")}let Q=["stacks",...[...H].filter((K)=>K.startsWith("@stacksjs/"))];if(z.noPostinstall)console.log(" --no-postinstall: skipping install. Run this to pull the new versions:"),console.log(` bun update ${Q.slice(0,3).join(" ")} \u2026
|
|
9
|
+
`),M.exit(0);if(console.log(` Installing\u2026
|
|
10
|
+
`),(await Y(`bun update ${Q.join(" ")}`,{cwd:A})).isErr)console.error("\n\u2717 The install step failed. Your package.json was updated \u2014 resolve the error and re-run `bun update`.\n"),M.exit(1);console.log(`
|
|
11
11
|
\u2714 Upgraded to stacks@${E}. Review the changelog: https://github.com/stacksjs/stacks/releases/tag/v${E}
|
|
12
|
-
`),
|
|
12
|
+
`),M.exit(0)}export{T as upgradeStacksPackages};
|
package/dist/upgrade/shell.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/upgrade.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-v0hqskdk.js";import{readFileSync as K}from"fs";import A from"process";import{intro as L,outro as B,runCommand as I}from"@stacksjs/cli";import{NpmScript as M}from"@stacksjs/enums";import{log as G}from"@stacksjs/logging";import{projectPath as J}from"@stacksjs/path";import*as w from"@stacksjs/storage";import{ExitCode as H}from"@stacksjs/types";var{version:Q}=JSON.parse(K(new URL("../package.json",import.meta.url),"utf8"));function _(b){try{console.log("checkForUncommittedChanges",b)}catch(q){console.error(q)}}async function $(b){let z=J("updates");if(w.doesFolderExist(z))await w.deleteFolder(z);G.info("Downloading framework updates..."),await I("giget stacks updates",b),G.success(`Your framework updated correctly to version: v${Q}`)}async function v(){let b=await L("buddy upgrade:dependencies"),q=await I(M.UpgradeDependencies,{cwd:J()});if(q.isErr)await B("While running the upgrade:dependencies command, there was an issue",{startTime:b,useSeconds:!0},q.error),A.exit(H.FatalError);await B("Freshly updated your dependencies.",{startTime:b,useSeconds:!0}),A.exit(H.Success)}export{v as updateDependencies,$ as downloadFrameworkUpdate,_ as checkForUncommittedChanges};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/actions",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.70.
|
|
4
|
+
"version": "0.70.74",
|
|
5
5
|
"description": "The Stacks actions.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": [
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"default": "./dist/run-action.js"
|
|
43
43
|
},
|
|
44
44
|
"./*": {
|
|
45
|
+
"types": "./dist/*.d.ts",
|
|
45
46
|
"development": "./src/*",
|
|
46
47
|
"bun": "./dist/*",
|
|
47
48
|
"import": "./dist/*",
|
|
@@ -60,27 +61,37 @@
|
|
|
60
61
|
"prepublishOnly": "bun run build"
|
|
61
62
|
},
|
|
62
63
|
"dependencies": {
|
|
63
|
-
"@stacksjs/
|
|
64
|
-
"@stacksjs/
|
|
64
|
+
"@stacksjs/bumpx": "^0.2.6",
|
|
65
|
+
"@stacksjs/bunpress": "^0.1.12",
|
|
66
|
+
"@stacksjs/logsmith": "^0.2.3",
|
|
67
|
+
"@stacksjs/ts-cloud": "^0.7.14",
|
|
65
68
|
"@stacksjs/ts-md": "^0.1.1"
|
|
66
69
|
},
|
|
67
70
|
"devDependencies": {
|
|
68
|
-
"@stacksjs/api": "0.70.
|
|
69
|
-
"@stacksjs/cli": "0.70.
|
|
70
|
-
"@stacksjs/config": "0.70.
|
|
71
|
-
"@stacksjs/database": "0.70.
|
|
71
|
+
"@stacksjs/api": "0.70.74",
|
|
72
|
+
"@stacksjs/cli": "0.70.74",
|
|
73
|
+
"@stacksjs/config": "0.70.74",
|
|
74
|
+
"@stacksjs/database": "0.70.74",
|
|
72
75
|
"@stacksjs/tlsx": "^0.13.2",
|
|
73
|
-
"better-dx": "^0.2.
|
|
74
|
-
"@stacksjs/dns": "0.70.
|
|
75
|
-
"@stacksjs/enums": "0.70.
|
|
76
|
-
"@stacksjs/env": "0.70.
|
|
77
|
-
"@stacksjs/error-handling": "0.70.
|
|
78
|
-
"@stacksjs/logging": "0.70.
|
|
79
|
-
"@stacksjs/path": "0.70.
|
|
80
|
-
"@stacksjs/security": "0.70.
|
|
81
|
-
"@stacksjs/storage": "0.70.
|
|
82
|
-
"@stacksjs/strings": "0.70.
|
|
83
|
-
"@stacksjs/utils": "0.70.
|
|
84
|
-
"@stacksjs/validation": "0.70.
|
|
76
|
+
"better-dx": "^0.2.16",
|
|
77
|
+
"@stacksjs/dns": "0.70.74",
|
|
78
|
+
"@stacksjs/enums": "0.70.74",
|
|
79
|
+
"@stacksjs/env": "0.70.74",
|
|
80
|
+
"@stacksjs/error-handling": "0.70.74",
|
|
81
|
+
"@stacksjs/logging": "0.70.74",
|
|
82
|
+
"@stacksjs/path": "0.70.74",
|
|
83
|
+
"@stacksjs/security": "0.70.74",
|
|
84
|
+
"@stacksjs/storage": "0.70.74",
|
|
85
|
+
"@stacksjs/strings": "0.70.74",
|
|
86
|
+
"@stacksjs/utils": "0.70.74",
|
|
87
|
+
"@stacksjs/validation": "0.70.74"
|
|
88
|
+
},
|
|
89
|
+
"peerDependencies": {
|
|
90
|
+
"pickier": "^0.1.28"
|
|
91
|
+
},
|
|
92
|
+
"peerDependenciesMeta": {
|
|
93
|
+
"pickier": {
|
|
94
|
+
"optional": true
|
|
95
|
+
}
|
|
85
96
|
}
|
|
86
97
|
}
|
package/dist/chunk-4qzb8g3z.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var j=Object.create;var{getPrototypeOf:k,defineProperty:f,getOwnPropertyNames:l}=Object;var m=Object.prototype.hasOwnProperty;function n(a){return this[a]}var o,p,s=(a,b,c)=>{var g=a!=null&&typeof a==="object";if(g){var h=b?o??=new WeakMap:p??=new WeakMap,i=h.get(a);if(i)return i}c=a!=null?j(k(a)):{};let d=b||!a||!a.__esModule?f(c,"default",{value:a,enumerable:!0}):c;for(let e of l(a))if(!m.call(d,e))f(d,e,{get:n.bind(a,e),enumerable:!0});if(g)h.set(a,d);return d};var t=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var q=(a)=>a;function r(a,b){this[a]=q.bind(null,b)}var u=(a,b)=>{for(var c in b)f(a,c,{get:b[c],enumerable:!0,configurable:!0,set:r.bind(b,c)})};var v=import.meta.require;
|
|
3
|
-
export{s as mb,t as nb,u as ob,v as pb};
|