@stacksjs/actions 0.75.389 → 0.75.397
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/build/desktop-macos.d.ts +1 -0
- package/dist/build/desktop-macos.js +3 -0
- package/dist/build/macos-native.d.ts +59 -0
- package/dist/build/macos-native.js +4 -0
- package/dist/dev/exit-with-parent.d.ts +1 -0
- package/dist/dev/exit-with-parent.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/package.json +44 -44
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{createHash}from"node:crypto";import{existsSync,readFileSync,writeFileSync}from"node:fs";import{join}from"node:path";import process from"node:process";import{log}from"@stacksjs/cli";import{assembleMacosApp,findDevelopmentIdentity,loadMacosDesktop,renderAgentEntry}from"@stacksjs/desktop-build";import{projectPath}from"@stacksjs/path";import{macosAgentDevFiles,macosAgentDevManifest,macosAgentEntry,prepareMacosAgent,prepareMacosNative}from"./macos-native";process.exitCode=1;const root=projectPath(),pkg=existsSync(join(root,"package.json"))?JSON.parse(readFileSync(join(root,"package.json"),"utf8")):{},config=await loadMacosDesktop(root,pkg.version);if(!config)throw Error("config/desktop.ts has no macos section. Add one, or build the Craft web-view app with `buddy build:desktop` without it.");const prepared=await prepareMacosNative(config,{root});if(config.agent&&process.env.STACKS_DESKTOP_LAUNCH==="1"){const files=macosAgentDevFiles(prepared);writeFileSync(files.entry,renderAgentEntry({agentEntry:macosAgentEntry(root,config)}));writeFileSync(files.manifest,`${JSON.stringify(macosAgentDevManifest(config,prepared),null,2)}
|
|
2
|
+
`);await log.info(`Starting ${config.appName} with its agent (Ctrl-C quits)`);const child=Bun.spawn(["bun",files.entry],{cwd:root,env:{...process.env,STACKS_DESKTOP_AGENT_MANIFEST:files.manifest},stdio:["inherit","inherit","inherit"]});process.exitCode=await child.exited;process.exit()}const agent=config.agent?await prepareMacosAgent(config,prepared,"development"):void 0,identity=process.env.DESKTOP_SIGNING_IDENTITY||process.env.APPLE_DEVELOPMENT_IDENTITY||findDevelopmentIdentity()||"-",assembled=assembleMacosApp({config,root,host:prepared.host,nativeBundle:prepared.nativeBundle,output:prepared.output,distribution:"development",signingIdentity:identity,unsandboxed:process.env.DESKTOP_SANDBOX!=="1",agent});for(const note of assembled.notes)await log.warn(note);for(const key of assembled.ignoredPlistKeys)await log.warn(`macos.infoPlist: ${key} is set by the build and was ignored`);writeFileSync(join(prepared.output,`${config.appName}.build.json`),`${JSON.stringify({appName:config.appName,bundleId:config.bundleId,version:config.version,buildNumber:config.buildNumber,url:config.agent?null:config.url,agent:Boolean(config.agent),webkit:config.webkit===!0,host:{key:prepared.hostKey,sha256:createHash("sha256").update(readFileSync(prepared.host)).digest("hex")},signedWith:identity==="-"?"ad hoc":identity,sandboxed:process.env.DESKTOP_SANDBOX==="1"},null,2)}
|
|
3
|
+
`);await log.success(`Built ${assembled.appPath}`);if(process.env.STACKS_DESKTOP_LAUNCH==="1"){await log.info(config.agent?`Opening ${config.appName} with its agent`:`Opening ${config.appName} against ${config.url}`);Bun.spawn(["open","-n",assembled.appPath],{stdout:"inherit",stderr:"inherit"})}process.exitCode=0;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { DesktopAgentManifest, MacosAgentBundle, MacosDistribution, ResolvedMacosDesktop } from '@stacksjs/desktop-build';
|
|
2
|
+
/**
|
|
3
|
+
* Whether this Craft's `buildMacOSNative` takes `webkit`. Read from its source
|
|
4
|
+
* rather than assumed from a version: the option lands in a checkout before it
|
|
5
|
+
* lands in a release, and a Craft that does not know it would build a host
|
|
6
|
+
* without WebKit and say nothing, leaving every `<WebView>` blank.
|
|
7
|
+
*/
|
|
8
|
+
export declare function craftSupportsWebkit(source: string): boolean;
|
|
9
|
+
/** What the host binary depends on, so a rebuilt screen reuses it and a new Craft does not. */
|
|
10
|
+
declare function hostKey(entry: string, root: string, webkit?: boolean): string;
|
|
11
|
+
export declare function prepareMacosNative(config: ResolvedMacosDesktop, options?: { root?: string }): Promise<PreparedMacosNative>;
|
|
12
|
+
/** Where the agent's own routes are: `macos.agent.entry`, else `app/Desktop/Agent.ts` when the project has one. */
|
|
13
|
+
export declare function macosAgentEntry(root: string, config: Pick<ResolvedMacosDesktop, 'agent'>): string | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* The manifest the agent launcher reads, for a run from the project
|
|
16
|
+
* (`buddy dev:desktop`): absolute paths to the host and screens just built,
|
|
17
|
+
* and the project's route registry loaded unless the config says otherwise.
|
|
18
|
+
*/
|
|
19
|
+
export declare function macosAgentDevManifest(config: ResolvedMacosDesktop, prepared: Pick<PreparedMacosNative, 'host' | 'nativeBundle' | 'root'>): DesktopAgentManifest;
|
|
20
|
+
/**
|
|
21
|
+
* The project's route files, as `app/Routes.ts` names and mounts them (the
|
|
22
|
+
* same rules as the router's `loadRoutes`): the key is the prefix unless the
|
|
23
|
+
* entry sets one, `web` and `prefix: ''` mount at the root.
|
|
24
|
+
*/
|
|
25
|
+
export declare function macosAgentRouteFiles(root: string): Promise<Array<{ file: string, prefix?: string, middleware?: string[] }>>;
|
|
26
|
+
/**
|
|
27
|
+
* The actions the given source files name by string (`'Actions/SaveTab'`),
|
|
28
|
+
* resolved the way the router resolves them: the app's `app/Actions` first,
|
|
29
|
+
* then the framework defaults. A name that resolves nowhere is left out; the
|
|
30
|
+
* router reports it on the request that uses it, as it would in development.
|
|
31
|
+
*/
|
|
32
|
+
export declare function macosAgentActionFiles(root: string, sources: string[]): Record<string, string>;
|
|
33
|
+
/**
|
|
34
|
+
* The agent launcher, written and compiled for the bundle. A compiled binary
|
|
35
|
+
* cannot read route files off disk (the router refuses: they could not
|
|
36
|
+
* resolve the framework packages from there), so the project's route files
|
|
37
|
+
* are imported statically and travel inside the launcher, the same in a
|
|
38
|
+
* development build and a Mac App Store one. So are the actions those files
|
|
39
|
+
* name by string, which the router would otherwise import off disk too.
|
|
40
|
+
*/
|
|
41
|
+
export declare function prepareMacosAgent(config: ResolvedMacosDesktop, prepared: PreparedMacosNative, _distribution: MacosDistribution): Promise<MacosAgentBundle>;
|
|
42
|
+
/** Where `buddy dev:desktop` writes the manifest it runs the launcher from source with. */
|
|
43
|
+
export declare function macosAgentDevFiles(prepared: Pick<PreparedMacosNative, 'output'>): { entry: string, manifest: string };
|
|
44
|
+
export declare interface PreparedMacosNative {
|
|
45
|
+
root: string
|
|
46
|
+
output: string
|
|
47
|
+
nativeBundle: string
|
|
48
|
+
host: string
|
|
49
|
+
hostKey: string
|
|
50
|
+
}
|
|
51
|
+
declare type CompileNativeBundle = (options: {
|
|
52
|
+
screens: Record<string, string>
|
|
53
|
+
initialScreen?: string
|
|
54
|
+
minify?: boolean
|
|
55
|
+
outFile?: string
|
|
56
|
+
root?: string
|
|
57
|
+
app?: string
|
|
58
|
+
shareStorage?: Record<string, string>
|
|
59
|
+
}) => Promise<{ outFile?: string, diagnostics?: Array<{ level?: string, message: string, file?: string }> }>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{createHash}from"node:crypto";import{existsSync,mkdirSync,readdirSync,readFileSync,writeFileSync}from"node:fs";import{dirname,join,resolve}from"node:path";import process from"node:process";import{pathToFileURL}from"node:url";import{log}from"@stacksjs/cli";import{AGENT_MANIFEST,agentHostArguments,desktopLauncherCompileArgs,macosOutputDirectory,macosScreens,renderAgentEntry,validateMacosDesktop}from"@stacksjs/desktop-build";import{projectPath,storagePath}from"@stacksjs/path";import{craftBuilderVersion}from"./craft-entry";function entryFile(entry,root){try{return entry.startsWith("file:")?new URL(entry).pathname:Bun.resolveSync(entry,root)}catch{return null}}export function craftSupportsWebkit(source){return/\.webkit\b|[{,]\s*webkit\s*[,}=]/.test(source)}function craftMacosEntry(root){if(process.env.CRAFT_MACOS_SRC)return pathToFileURL(process.env.CRAFT_MACOS_SRC).href;try{const desktop=Bun.resolveSync("@stacksjs/desktop-build/package.json",root);return pathToFileURL(Bun.resolveSync("craft-native/macos",dirname(desktop))).href}catch{return"craft-native/macos"}}function hostKey(entry,root,webkit=!1){const hash=createHash("sha256");if(webkit)hash.update("webkit");const path=entry.startsWith("file:")?new URL(entry).pathname:entry,version=craftBuilderVersion(entry,root)?.version;hash.update(version??"unversioned");if(process.env.CRAFT_MACOS_SRC||!version){const templates=join(dirname(path),"../templates");if(existsSync(templates))for(const file of readdirSync(templates).sort())hash.update(readFileSync(join(templates,file)))}return hash.digest("hex").slice(0,16)}export async function prepareMacosNative(config,options={}){const root=options.root??projectPath(),errors=validateMacosDesktop(config);if(errors.length)throw Error(`config/desktop.ts macos is not buildable:
|
|
2
|
+
${errors.map((error)=>` - ${error}`).join(`
|
|
3
|
+
`)}`);if(process.platform!=="darwin")throw Error("The native macOS app builds on macOS");const output=macosOutputDirectory(root,config),work=join(output,".build");mkdirSync(work,{recursive:!0});const screens=Object.fromEntries(Object.entries(macosScreens(config)).map(([name,file])=>[name,join(root,file)]));for(const[name,file]of Object.entries(screens))if(!existsSync(file))throw Error(`macos.nativeScreens: screen "${name}" is ${file}, which does not exist`);const{compileNativeBundle}=await(process.env.STX_NATIVE_SRC?import(pathToFileURL(process.env.STX_NATIVE_SRC).href):import("@stacksjs/stx/native")),app=config.nativeApp?join(root,config.nativeApp):void 0,compiled=await compileNativeBundle({screens,initialScreen:config.initialScreen,minify:!0,outFile:join(work,"native-screen.js"),root,...app?{app}:{},...config.shareStorage&&Object.keys(config.shareStorage).length?{shareStorage:{...config.shareStorage}}:{}}),problems=(compiled.diagnostics??[]).filter((item)=>item.message!=="dropped-subtree: script");for(const item of problems)await log.warn(`${item.file?`${item.file}: `:""}${item.message}`);if(problems.some((item)=>item.level==="error"))throw Error("The native screens did not compile");const nativeBundle=compiled.outFile??join(work,"native-screen.js"),entry=craftMacosEntry(root),webkit=config.webkit===!0;if(webkit){const file=entryFile(entry,root);if(!file||!existsSync(file)||!craftSupportsWebkit(readFileSync(file,"utf8")))throw Error(`macos.webkit needs a Craft whose buildMacOSNative links WebKit, and ${file??entry} does not. Upgrade craft-native, or point CRAFT_MACOS_SRC at a Craft checkout that has it.`)}const key=hostKey(entry,root,webkit),hostDirectory=storagePath(`framework/desktop/host/${key}`),host=join(hostDirectory,"craft-native-macos");if(!existsSync(host)){await log.info(`Building the AppKit host${webkit?" with WebKit":""} (first build for this Craft; the toolchain installs through Pantry)`);const builder=await import(entry);mkdirSync(hostDirectory,{recursive:!0});await builder.buildMacOSNative({outdir:hostDirectory,nativeBundle,...webkit?{webkit:!0}:{}})}return{root,output,nativeBundle,host,hostKey:key}}export function macosAgentEntry(root,config){if(!config.agent)return;if(config.agent.entry){const entry=resolve(root,config.agent.entry);if(!existsSync(entry))throw Error(`macos.agent.entry does not exist: ${entry}`);return entry}const conventional=join(root,"app/Desktop/Agent.ts");return existsSync(conventional)?conventional:void 0}export function macosAgentDevManifest(config,prepared){return{appName:config.appName,bundleId:config.bundleId,version:config.version,host:prepared.host,nativeBundle:prepared.nativeBundle,hostArguments:agentHostArguments(config),...config.agent?.port?{port:config.agent.port}:{},...config.agent?.staticDir?{staticDir:resolve(prepared.root,config.agent.staticDir)}:{},projectRoot:prepared.root,appRoutes:config.agent?.appRoutes!==!1}}export async function macosAgentRouteFiles(root){const manifest=join(root,"app/Routes.ts"),loaded=existsSync(manifest)?(await import(pathToFileURL(manifest).href)).default:void 0,registry=loaded&&typeof loaded==="object"&&Object.keys(loaded).length?loaded:{api:"api"},files=[];for(const[key,definition]of Object.entries(registry)){const config=typeof definition==="string"?{path:definition}:definition,file=[".ts",".js"].map((extension)=>join(root,"routes",`${config.path}${extension}`)).find((candidate)=>existsSync(candidate));if(!file)continue;const prefix=config.prefix!==void 0?config.prefix?config.prefix.startsWith("/")?config.prefix:`/${config.prefix}`:void 0:key==="web"?void 0:`/${key}`,middleware=config.middleware===void 0?[]:Array.isArray(config.middleware)?config.middleware:[config.middleware];files.push({file,...prefix?{prefix}:{},...middleware.length?{middleware}:{}})}return files}export function macosAgentActionFiles(root,sources){const actions={};for(const source of sources){if(!existsSync(source))continue;for(const match of readFileSync(source,"utf8").matchAll(/['"`](Actions\/[\w/-]+?)(?:\.ts)?['"`]/g)){const name=match[1];if(actions[name])continue;const file=[join(root,"app",`${name}.ts`),join(root,"storage/framework/defaults/app",`${name}.ts`)].find((candidate)=>existsSync(candidate));if(file)actions[name]=file}}return actions}export async function prepareMacosAgent(config,prepared,_distribution){if(!config.agent)throw Error("config/desktop.ts has no macos.agent");const work=join(prepared.output,".build"),entry=join(work,"agent-entry.ts"),routes=config.agent.appRoutes===!1?[]:await macosAgentRouteFiles(prepared.root),agentEntry=macosAgentEntry(prepared.root,config),actions=macosAgentActionFiles(prepared.root,[...routes.map((route)=>route.file),...agentEntry?[agentEntry]:[]]);writeFileSync(entry,renderAgentEntry({agentEntry,routes,actions}));const launcher=join(work,`${config.executable}-agent`),compile=Bun.spawnSync(["bun",...desktopLauncherCompileArgs({entry,outfile:launcher})],{cwd:prepared.root,stdout:"pipe",stderr:"pipe"});if(compile.exitCode!==0)throw Error(`Compiling the agent launcher failed:
|
|
4
|
+
${compile.stderr.toString().trim()||compile.stdout.toString().trim()}`);return{launcher,manifest:{appName:config.appName,bundleId:config.bundleId,version:config.version,hostArguments:agentHostArguments(config),...config.agent.port?{port:config.agent.port}:{},...config.agent.staticDir?{staticDir:resolve(prepared.root,config.agent.staticDir)}:{},appRoutes:!1}}}export function macosAgentDevFiles(prepared){const work=join(prepared.output,".build");return{entry:join(work,"agent-entry.ts"),manifest:join(work,AGENT_MANIFEST)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import process from"node:process";const SIGNALS=["SIGINT","SIGTERM","SIGHUP"];export function exitWithParent(options={}){const{intervalMs=2000,onExit}=options,parentPid=process.ppid;let stopped=!1;const stop=()=>{if(stopped)return;stopped=!0;clearInterval(timer);for(const signal of SIGNALS)process.off(signal,handleSignal)},quit=(reason)=>{stop();console.log(` stacks ${reason} - stopping this dev process`);try{onExit?.()}catch{}process.exit(0)},handleSignal=(signal)=>quit(`received ${signal}`),timer=setInterval(()=>{if(process.ppid===parentPid&&process.ppid!==1)return;quit(parentPid===1?"started with no parent to watch (ppid 1)":`saw the parent process (pid ${parentPid}) go away`)},intervalMs);timer.unref?.();for(const signal of SIGNALS)process.on(signal,handleSignal);return stop}
|
|
1
|
+
import process from"node:process";const SIGNALS=["SIGINT","SIGTERM","SIGHUP"];export function exitWithParent(options={}){const{intervalMs=2000,onExit}=options,detach=options.detach??process.env.STACKS_DEV_DETACH==="1",parentPid=process.ppid;let stopped=!1,timer;const stop=()=>{if(stopped)return;stopped=!0;if(timer)clearInterval(timer);for(const signal of SIGNALS)process.off(signal,handleSignal)},quit=(reason)=>{stop();console.log(` stacks ${reason} - stopping this dev process`);try{onExit?.()}catch{}process.exit(0)},handleSignal=(signal)=>quit(`received ${signal}`);if(detach){for(const signal of SIGNALS)process.on(signal,handleSignal);return stop}timer=setInterval(()=>{if(process.ppid===parentPid&&process.ppid!==1)return;quit(parentPid===1?"started with no parent to watch (ppid 1; pass --detach to `buddy dev` to run it in the background)":`saw the parent process (pid ${parentPid}) go away`)},intervalMs);timer.unref?.();for(const signal of SIGNALS)process.on(signal,handleSignal);return stop}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export type { GitHubReleaseResult, PublishGitHubReleaseOptions } from './github-
|
|
|
2
2
|
export type { ReleaseEvidenceOptions, ReleaseEvidencePlan, ReleaseEvidenceReceipt, ReleaseSource } from './release-evidence';
|
|
3
3
|
export type { PublicationChannel } from './publication-preflight';
|
|
4
4
|
export type { PantryTool } from './build/ios-toolchain';
|
|
5
|
+
export type { PreparedMacosNative } from './build/macos-native';
|
|
5
6
|
export type { StxLintConfig, StxLintReport, StxLintResult } from './lint/stx-gate';
|
|
6
7
|
export type { RouteActionReference } from './upgrade/route-actions';
|
|
7
8
|
export type { ProjectStructureChange } from './upgrade/package-project';
|
|
@@ -42,6 +43,7 @@ export { describeGitHubRelease, parseGitHubRemote, publishGitHubRelease } from '
|
|
|
42
43
|
export { validateReleaseEvidencePlan, verifyReleaseEvidence } from './release-evidence';
|
|
43
44
|
export { assertPublicationAllowed, PUBLICATION_CHECK_SCRIPT, publicationChannels } from './publication-preflight';
|
|
44
45
|
export { DEFAULT_IOS_DEPENDENCIES, IosToolchainError, loadIosDependencies, pantryExecutable, pantryInstallArgs, resolveXcodegen, XCODE_NOTE, xcodeDeveloperDir } from './build/ios-toolchain';
|
|
46
|
+
export { craftSupportsWebkit, macosAgentActionFiles, macosAgentDevFiles, macosAgentDevManifest, macosAgentEntry, macosAgentRouteFiles, prepareMacosAgent, prepareMacosNative } from './build/macos-native';
|
|
45
47
|
// stx conformance checks behind `buddy lint --stx`. Pure - returns a report
|
|
46
48
|
// and never exits, so the command owns rendering and the exit code.
|
|
47
49
|
export { DEFAULT_STX_LINT_CONFIG, loadStxLintConfig, runStxLint } from './lint/stx-gate';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{setActionRunner}from"@stacksjs/action-runner";import{runAction}from"./helpers";setActionRunner((action,options)=>runAction(action,options));export*from"./action";export{add as runAdd}from"./add";export{BlogAdminError,deleteBlogPost,getBlogPost,listBlogPosts,saveBlogPost,slugify as blogSlugify}from"./blog-admin";export{commit as runCommit}from"./commit";export*from"./dev";export*from"./generate";export*from"./helpers";export*from"./library";export{formatProject,lintFix,lintProject}from"./lint/lint";export{describeGitHubRelease,parseGitHubRemote,publishGitHubRelease}from"./github-release";export{validateReleaseEvidencePlan,verifyReleaseEvidence}from"./release-evidence";export{assertPublicationAllowed,PUBLICATION_CHECK_SCRIPT,publicationChannels}from"./publication-preflight";export{DEFAULT_IOS_DEPENDENCIES,IosToolchainError,loadIosDependencies,pantryExecutable,pantryInstallArgs,resolveXcodegen,XCODE_NOTE,xcodeDeveloperDir}from"./build/ios-toolchain";export{DEFAULT_STX_LINT_CONFIG,loadStxLintConfig,runStxLint}from"./lint/stx-gate";export{measureDefaultsDrift,summarizeStructureChanges}from"./upgrade/package-project";export{describeDanglingRouteActions,findDanglingRouteActions}from"./upgrade/route-actions";export*from"./setup";export{createComponent,createDatabase,createFactory,createFunction,createLanguage,createMiddleware,createMigration,createModel,createMail,createNotification,createPage,isDryRunActive,makeAction,makeCertificate,makeComponent,makeDatabase,makeFunction,makeLanguage,makeMail,makeNotification,makePage,makeQueueTable,makeStack,make as runMake,setDryRun}from"./make";export{discoverPackages,ensureDiscoveredPackages}from"./discover-packages";export{parseFields,scaffoldCrud}from"./scaffold-crud";export{installStack,uninstallStack,listStacks}from"./stacks";export{makeJob}from"./make-job";export{makeCommand}from"./make-command";export{makePolicy}from"./make-policy";export{makeResource}from"./make-resource";export{resolveStxSource}from"./stx-source";
|
|
1
|
+
import{setActionRunner}from"@stacksjs/action-runner";import{runAction}from"./helpers";setActionRunner((action,options)=>runAction(action,options));export*from"./action";export{add as runAdd}from"./add";export{BlogAdminError,deleteBlogPost,getBlogPost,listBlogPosts,saveBlogPost,slugify as blogSlugify}from"./blog-admin";export{commit as runCommit}from"./commit";export*from"./dev";export*from"./generate";export*from"./helpers";export*from"./library";export{formatProject,lintFix,lintProject}from"./lint/lint";export{describeGitHubRelease,parseGitHubRemote,publishGitHubRelease}from"./github-release";export{validateReleaseEvidencePlan,verifyReleaseEvidence}from"./release-evidence";export{assertPublicationAllowed,PUBLICATION_CHECK_SCRIPT,publicationChannels}from"./publication-preflight";export{DEFAULT_IOS_DEPENDENCIES,IosToolchainError,loadIosDependencies,pantryExecutable,pantryInstallArgs,resolveXcodegen,XCODE_NOTE,xcodeDeveloperDir}from"./build/ios-toolchain";export{craftSupportsWebkit,macosAgentActionFiles,macosAgentDevFiles,macosAgentDevManifest,macosAgentEntry,macosAgentRouteFiles,prepareMacosAgent,prepareMacosNative}from"./build/macos-native";export{DEFAULT_STX_LINT_CONFIG,loadStxLintConfig,runStxLint}from"./lint/stx-gate";export{measureDefaultsDrift,summarizeStructureChanges}from"./upgrade/package-project";export{describeDanglingRouteActions,findDanglingRouteActions}from"./upgrade/route-actions";export*from"./setup";export{createComponent,createDatabase,createFactory,createFunction,createLanguage,createMiddleware,createMigration,createModel,createMail,createNotification,createPage,isDryRunActive,makeAction,makeCertificate,makeComponent,makeDatabase,makeFunction,makeLanguage,makeMail,makeNotification,makePage,makeQueueTable,makeStack,make as runMake,setDryRun}from"./make";export{discoverPackages,ensureDiscoveredPackages}from"./discover-packages";export{parseFields,scaffoldCrud}from"./scaffold-crud";export{installStack,uninstallStack,listStacks}from"./stacks";export{makeJob}from"./make-job";export{makeCommand}from"./make-command";export{makePolicy}from"./make-policy";export{makeResource}from"./make-resource";export{resolveStxSource}from"./stx-source";
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/actions",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.397",
|
|
6
6
|
"description": "The Stacks actions.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -66,55 +66,55 @@
|
|
|
66
66
|
"prepublishOnly": "bun run build"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@stacksjs/action-runner": "0.75.
|
|
70
|
-
"@stacksjs/ai": "0.75.
|
|
71
|
-
"@stacksjs/analytics": "0.75.
|
|
72
|
-
"@stacksjs/api": "0.75.
|
|
73
|
-
"@stacksjs/auth": "0.75.
|
|
74
|
-
"@stacksjs/build": "0.75.
|
|
69
|
+
"@stacksjs/action-runner": "0.75.397",
|
|
70
|
+
"@stacksjs/ai": "0.75.397",
|
|
71
|
+
"@stacksjs/analytics": "0.75.397",
|
|
72
|
+
"@stacksjs/api": "0.75.397",
|
|
73
|
+
"@stacksjs/auth": "0.75.397",
|
|
74
|
+
"@stacksjs/build": "0.75.397",
|
|
75
75
|
"@stacksjs/bumpx": "^0.2.26",
|
|
76
76
|
"@stacksjs/bunpress": "^0.2.15",
|
|
77
|
-
"@stacksjs/cli": "0.75.
|
|
78
|
-
"@stacksjs/cloud": "0.75.
|
|
79
|
-
"@stacksjs/cms": "0.75.
|
|
80
|
-
"@stacksjs/components": "0.2.
|
|
81
|
-
"@stacksjs/config": "0.75.
|
|
82
|
-
"@stacksjs/database": "0.75.
|
|
83
|
-
"@stacksjs/desktop-build": "0.75.
|
|
84
|
-
"@stacksjs/dns": "0.75.
|
|
85
|
-
"@stacksjs/enums": "0.75.
|
|
86
|
-
"@stacksjs/env": "0.75.
|
|
87
|
-
"@stacksjs/error-handling": "0.75.
|
|
88
|
-
"@stacksjs/github": "0.75.
|
|
77
|
+
"@stacksjs/cli": "0.75.397",
|
|
78
|
+
"@stacksjs/cloud": "0.75.397",
|
|
79
|
+
"@stacksjs/cms": "0.75.397",
|
|
80
|
+
"@stacksjs/components": "0.2.769",
|
|
81
|
+
"@stacksjs/config": "0.75.397",
|
|
82
|
+
"@stacksjs/database": "0.75.397",
|
|
83
|
+
"@stacksjs/desktop-build": "0.75.397",
|
|
84
|
+
"@stacksjs/dns": "0.75.397",
|
|
85
|
+
"@stacksjs/enums": "0.75.397",
|
|
86
|
+
"@stacksjs/env": "0.75.397",
|
|
87
|
+
"@stacksjs/error-handling": "0.75.397",
|
|
88
|
+
"@stacksjs/github": "0.75.397",
|
|
89
89
|
"@stacksjs/gitit": "^0.2.5",
|
|
90
|
-
"@stacksjs/i18n": "0.75.
|
|
91
|
-
"@stacksjs/image": "0.75.
|
|
92
|
-
"@stacksjs/logging": "0.75.
|
|
90
|
+
"@stacksjs/i18n": "0.75.397",
|
|
91
|
+
"@stacksjs/image": "0.75.397",
|
|
92
|
+
"@stacksjs/logging": "0.75.397",
|
|
93
93
|
"@stacksjs/logsmith": "^0.2.11",
|
|
94
|
-
"@stacksjs/mobile": "0.75.
|
|
95
|
-
"@stacksjs/orm": "0.75.
|
|
96
|
-
"@stacksjs/path": "0.75.
|
|
97
|
-
"@stacksjs/payments": "0.75.
|
|
98
|
-
"@stacksjs/queue": "0.75.
|
|
99
|
-
"@stacksjs/registry": "0.75.
|
|
100
|
-
"@stacksjs/router": "0.75.
|
|
94
|
+
"@stacksjs/mobile": "0.75.397",
|
|
95
|
+
"@stacksjs/orm": "0.75.397",
|
|
96
|
+
"@stacksjs/path": "0.75.397",
|
|
97
|
+
"@stacksjs/payments": "0.75.397",
|
|
98
|
+
"@stacksjs/queue": "0.75.397",
|
|
99
|
+
"@stacksjs/registry": "0.75.397",
|
|
100
|
+
"@stacksjs/router": "0.75.397",
|
|
101
101
|
"@stacksjs/rpx": "^0.11.54",
|
|
102
|
-
"@stacksjs/scheduler": "0.75.
|
|
103
|
-
"@stacksjs/search-engine": "0.75.
|
|
104
|
-
"@stacksjs/security": "0.75.
|
|
105
|
-
"@stacksjs/server": "0.75.
|
|
106
|
-
"@stacksjs/sites": "0.75.
|
|
107
|
-
"@stacksjs/storage": "0.75.
|
|
108
|
-
"@stacksjs/strings": "0.75.
|
|
109
|
-
"@stacksjs/stx": "0.2.
|
|
102
|
+
"@stacksjs/scheduler": "0.75.397",
|
|
103
|
+
"@stacksjs/search-engine": "0.75.397",
|
|
104
|
+
"@stacksjs/security": "0.75.397",
|
|
105
|
+
"@stacksjs/server": "0.75.397",
|
|
106
|
+
"@stacksjs/sites": "0.75.397",
|
|
107
|
+
"@stacksjs/storage": "0.75.397",
|
|
108
|
+
"@stacksjs/strings": "0.75.397",
|
|
109
|
+
"@stacksjs/stx": "0.2.769",
|
|
110
110
|
"@stacksjs/tlsx": "^0.13.19",
|
|
111
|
-
"@stacksjs/ts-cloud": "^0.16.
|
|
111
|
+
"@stacksjs/ts-cloud": "^0.16.91",
|
|
112
112
|
"@stacksjs/ts-md": "^0.1.1",
|
|
113
|
-
"@stacksjs/tunnel": "0.75.
|
|
114
|
-
"@stacksjs/types": "0.75.
|
|
115
|
-
"@stacksjs/utils": "0.75.
|
|
116
|
-
"@stacksjs/whois": "0.75.
|
|
117
|
-
"bun-plugin-stx": "0.2.
|
|
113
|
+
"@stacksjs/tunnel": "0.75.397",
|
|
114
|
+
"@stacksjs/types": "0.75.397",
|
|
115
|
+
"@stacksjs/utils": "0.75.397",
|
|
116
|
+
"@stacksjs/whois": "0.75.397",
|
|
117
|
+
"bun-plugin-stx": "0.2.769"
|
|
118
118
|
},
|
|
119
119
|
"peerDependencies": {
|
|
120
120
|
"craft-native": ">=0.0.341",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
"devDependencies": {
|
|
132
|
-
"@stacksjs/validation": "0.75.
|
|
132
|
+
"@stacksjs/validation": "0.75.397",
|
|
133
133
|
"better-dx": "^0.2.24"
|
|
134
134
|
}
|
|
135
135
|
}
|