@stacksjs/buddy 0.75.636 → 0.75.639
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/commands/daemon.js +1 -1
- package/dist/commands/generate.js +2 -2
- package/dist/generation-approval.d.ts +6 -0
- package/dist/generation-approval.js +5 -0
- package/dist/generation-changes.d.ts +34 -0
- package/dist/generation-changes.js +1 -0
- package/dist/project-generation.js +2 -2
- package/package.json +57 -57
package/dist/commands/daemon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import{existsSync,readFileSync}from"node:fs";import process from"node:process";import{bold,dim,green,onUnknownSubcommand}from"@stacksjs/cli";import{ExitCode}from"@stacksjs/types";function uptime(since){const minutes=Math.max(0,Math.round((Date.now()-Date.parse(since))/60000));if(minutes<1)return"just now";if(minutes<60)return`${minutes}m`;return`${Math.floor(minutes/60)}h ${minutes%60}m`}function memoryMb(pid){const result=Bun.spawnSync(["ps","-o","rss=","-p",String(pid)],{stdout:"pipe",stderr:"ignore"});const kilobytes=Number(result.stdout.toString().trim());return result.exitCode===0&&kilobytes>0?Math.round(kilobytes/1024):null}export function daemon(buddy){const descriptions={status:"Show whether buddy is running in the background and what it is running",start:"Start buddy in the background",stop:"Stop background generation and the dashboards buddy started",restart:"Restart the background buddy",logs:"Print the background buddy's log",json:"Print the status as JSON"};async function status(options){const{daemonStatus}=await import("@stacksjs/actions/daemon/client");const running=await daemonStatus();if(options.json){process.stdout.write(`${JSON.stringify(running,null,2)}
|
|
2
|
-
`);return}if(!running){console.log(`buddy is not running in the background. ${dim("It starts when something needs it: buddy dashboard")}`);return}const memory=memoryMb(running.pid);console.log(`${green("●")} buddy is running in the background ${dim(`(pid ${running.pid}, up ${uptime(running.startedAt)}${memory?`, ${memory} MB`:""})`)}`);if(running.generation){const{watched,queued,running:active,failures}=running.generation;console.log(` Generation ${watched} watched, ${queued} queued${active?`, running for ${active}`:""}`);for(const failure of failures)console.log(` ${failure.path} ${failure.error}`)}if(running.dashboards.length===0){console.log(dim(" No dashboards running."));return}const width=Math.max(...running.dashboards.map((dashboard)=>dashboard.name.length));for(const dashboard of running.dashboards){const state=dashboard.state==="ready"?dashboard.url:dim("starting");console.log(` ${bold(dashboard.name.padEnd(width))} ${state} ${dim(`up ${uptime(dashboard.startedAt)}`)}`)}}for(const name of["daemon","daemon:status"]){buddy.command(name,descriptions.status).option("--json",descriptions.json,{default:false}).action(async(options)=>{await status(options);process.exit(ExitCode.Success)})}buddy.command("daemon:start",descriptions.start).action(async()=>{const{startDaemon}=await import("@stacksjs/actions/daemon/client");const{status:running,started}=await startDaemon();console.log(started?`${green("●")} buddy is now running in the background ${dim(`(pid ${running.pid})`)}`:`buddy is already running in the background ${dim(`(pid ${running.pid})`)}`);process.exit(ExitCode.Success)});buddy.command("daemon:stop",descriptions.stop).action(async()=>{const{stopDaemon}=await import("@stacksjs/actions/daemon/client");console.log(await stopDaemon()?"Stopped the background buddy.":"buddy was not running in the background.");process.exit(ExitCode.Success)});buddy.command("daemon:restart",descriptions.restart).action(async()=>{const{startDaemon,stopDaemon}=await import("@stacksjs/actions/daemon/client");await stopDaemon();const{status:running}=await startDaemon();console.log(`${green("●")} buddy is running in the background ${dim(`(pid ${running.pid})`)}`);process.exit(ExitCode.Success)});buddy.command("daemon:logs",descriptions.logs).option("--lines <count>","How many lines from the end to print",{default:50}).action(async(options)=>{const{daemonLogFile}=await import("@stacksjs/actions/daemon/paths");const file=daemonLogFile();if(!existsSync(file)){console.log("The background buddy has not written a log yet.");process.exit(ExitCode.Success)}const lines=readFileSync(file,"utf8").trimEnd().split(`
|
|
2
|
+
`);return}if(!running){console.log(`buddy is not running in the background. ${dim("It starts when something needs it: buddy dashboard")}`);return}const memory=memoryMb(running.pid);console.log(`${green("●")} buddy is running in the background ${dim(`(pid ${running.pid}, up ${uptime(running.startedAt)}${memory?`, ${memory} MB`:""})`)}`);if(running.generation){const{watched,queued,running:active,failures}=running.generation;console.log(` Generation ${watched} watched, ${queued} queued${active?`, running for ${active}`:""}`);for(const failure of failures)console.log(` ${failure.path} ${failure.error}`);for(const approval of running.generation.approvals??[])console.log(` Approval ${approval.path} ${approval.files} generated file${approval.files===1?"":"s"} awaiting review`)}if(running.dashboards.length===0){console.log(dim(" No dashboards running."));return}const width=Math.max(...running.dashboards.map((dashboard)=>dashboard.name.length));for(const dashboard of running.dashboards){const state=dashboard.state==="ready"?dashboard.url:dim("starting");console.log(` ${bold(dashboard.name.padEnd(width))} ${state} ${dim(`up ${uptime(dashboard.startedAt)}`)}`)}}for(const name of["daemon","daemon:status"]){buddy.command(name,descriptions.status).option("--json",descriptions.json,{default:false}).action(async(options)=>{await status(options);process.exit(ExitCode.Success)})}buddy.command("daemon:start",descriptions.start).action(async()=>{const{startDaemon}=await import("@stacksjs/actions/daemon/client");const{status:running,started}=await startDaemon();console.log(started?`${green("●")} buddy is now running in the background ${dim(`(pid ${running.pid})`)}`:`buddy is already running in the background ${dim(`(pid ${running.pid})`)}`);process.exit(ExitCode.Success)});buddy.command("daemon:stop",descriptions.stop).action(async()=>{const{stopDaemon}=await import("@stacksjs/actions/daemon/client");console.log(await stopDaemon()?"Stopped the background buddy.":"buddy was not running in the background.");process.exit(ExitCode.Success)});buddy.command("daemon:restart",descriptions.restart).action(async()=>{const{startDaemon,stopDaemon}=await import("@stacksjs/actions/daemon/client");await stopDaemon();const{status:running}=await startDaemon();console.log(`${green("●")} buddy is running in the background ${dim(`(pid ${running.pid})`)}`);process.exit(ExitCode.Success)});buddy.command("daemon:logs",descriptions.logs).option("--lines <count>","How many lines from the end to print",{default:50}).action(async(options)=>{const{daemonLogFile}=await import("@stacksjs/actions/daemon/paths");const file=daemonLogFile();if(!existsSync(file)){console.log("The background buddy has not written a log yet.");process.exit(ExitCode.Success)}const lines=readFileSync(file,"utf8").trimEnd().split(`
|
|
3
3
|
`);process.stdout.write(`${lines.slice(-(Number(options.lines)||50)).join(`
|
|
4
4
|
`)}
|
|
5
5
|
`);process.exit(ExitCode.Success)});onUnknownSubcommand(buddy,"daemon")}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import process from"node:process";import{generateComponentMeta,generateCoreSymlink,generateIdeHelpers,generateLibEntries,generateOpenApiSpec,generatePantryConfig,generateProjectImages,generateTypes,generateVsCodeCustomData,generateWebTypes,invoke as startGenerationProcess,watchTypes}from"@stacksjs/actions";import{intro,log,onUnknownSubcommand,outro}from"@stacksjs/cli";import{frameworkPath,projectPath}from"@stacksjs/path";import{ExitCode}from"@stacksjs/types";import{reportFailure,resultFailed}from"../result";export async function runTypeGeneration(options){await generateTypes(options);try{const{buildDatabaseSchema}=await import("@stacksjs/orm");await buildDatabaseSchema()}catch(err){log.warn(`[generate:db-types] skipped: ${err.message}`)}if(options.watch)await watchTypes(options)}export function generate(buddy){const descriptions={command:"Automagically build any of your libraries/packages for production use. Select any of the following packages",types:"Generate your TypeScript types",entries:"Generate your function & Component Library Entry Points",webTypes:"Generate web-types.json for IDEs",customData:"Generate VS Code custom data (custom-elements.json) for IDEs",ideHelpers:"Generate IDE helpers",componentMeta:"Generate component meta information",coreSymlink:"Generate symlink of the core framework to the project root",pantry:"Generate the pantry configuration file",openApi:"Generate the OpenAPI specification",images:"Generate every image declared in config/images.ts",og:"Generate the social cards used by link previews",appStore:"Generate the App Store screenshot set",appIcons:"Generate the app icon and favicon sets",select:"What are you trying to generate?",project:"Target a specific project",verbose:"Enable verbose output"};buddy.command("generate",descriptions.command).option("-t, --types",descriptions.types).option("-e, --entries",descriptions.entries).option("-w, --web-types",descriptions.webTypes).option("-d, --custom-data",descriptions.customData).option("-i, --ide-helpers",descriptions.ideHelpers).option("-c, --component-meta",descriptions.componentMeta).option("-r, --pantry",descriptions.pantry).option("-o, --openapi",descriptions.openApi).option("--images",descriptions.images).option("-p, --project [project]",descriptions.project,{default:false}).option("--core-symlink",descriptions.coreSymlink).option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate` ...",options);await startGenerationProcess(options);process.exit(ExitCode.Success)});buddy.command("generate:types",descriptions.types).option("-p, --project [project]",descriptions.project,{default:false}).option("-w, --watch","Re-run on changes to models/ and config/",{default:false}).option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate:types` ...",options);await runTypeGeneration(options)});buddy.command("generate:db-types","Refresh database/types.d.ts for db.selectFrom autocomplete (stacksjs/stacks#1923)").option("--dry-run","Print the would-be file content without writing",{default:false}).option("--framework","Write the framework's own FrameworkSchema instead of the app's DatabaseSchema",{default:false}).option("--dialect <dialect>","Raw column dialect: sqlite, mysql, or postgres").action(async(options)=>{if(options.dialect&&!["sqlite","mysql","postgres"].includes(options.dialect))throw new Error("Database types require dialect sqlite, mysql, or postgres");const{buildDatabaseSchema}=await import("@stacksjs/orm");const result=await buildDatabaseSchema(options.framework?{dryRun:options.dryRun,target:"framework",dialect:options.dialect,outFile:frameworkPath("core/database/src/framework-schema.ts"),migrationsDir:projectPath("database/migrations")}:{dryRun:options.dryRun,dialect:options.dialect});if(options.dryRun)console.log(result.content);for(const e of result.errors)log.warn(`[generate:db-types] ${e.file}: ${e.error}`);log.info(`[generate:db-types] resolved ${result.tables.length} table(s)`)});buddy.command("generate:vschema","Derive a Vitess VSchema from your models (writes database/vschema.json)").option("--dry-run","Print the VSchema without writing it",{default:false}).option("--out [path]","Where to write the VSchema",{default:"database/vschema.json"}).action(async(options)=>{const{generateVSchema}=await import("@stacksjs/actions");const result=await generateVSchema({dryRun:options.dryRun,out:options.out});if(!result.ok){console.error(`
|
|
1
|
+
import process from"node:process";import{generateComponentMeta,generateCoreSymlink,generateIdeHelpers,generateLibEntries,generateOpenApiSpec,generatePantryConfig,generateProjectImages,generateTypes,generateVsCodeCustomData,generateWebTypes,invoke as startGenerationProcess,watchTypes}from"@stacksjs/actions";import{confirmOrNull,intro,log,onUnknownSubcommand,outro}from"@stacksjs/cli";import{frameworkPath,projectPath}from"@stacksjs/path";import{ExitCode}from"@stacksjs/types";import{reportFailure,resultFailed}from"../result";export async function runTypeGeneration(options){await generateTypes(options);try{const{buildDatabaseSchema}=await import("@stacksjs/orm");await buildDatabaseSchema()}catch(err){log.warn(`[generate:db-types] skipped: ${err.message}`)}if(options.watch)await watchTypes(options)}export function generate(buddy){const descriptions={command:"Automagically build any of your libraries/packages for production use. Select any of the following packages",types:"Generate your TypeScript types",entries:"Generate your function & Component Library Entry Points",webTypes:"Generate web-types.json for IDEs",customData:"Generate VS Code custom data (custom-elements.json) for IDEs",ideHelpers:"Generate IDE helpers",componentMeta:"Generate component meta information",coreSymlink:"Generate symlink of the core framework to the project root",pantry:"Generate the pantry configuration file",openApi:"Generate the OpenAPI specification",images:"Generate every image declared in config/images.ts",og:"Generate the social cards used by link previews",appStore:"Generate the App Store screenshot set",appIcons:"Generate the app icon and favicon sets",select:"What are you trying to generate?",project:"Target a specific project",verbose:"Enable verbose output"};buddy.command("generate",descriptions.command).option("-t, --types",descriptions.types).option("-e, --entries",descriptions.entries).option("-w, --web-types",descriptions.webTypes).option("-d, --custom-data",descriptions.customData).option("-i, --ide-helpers",descriptions.ideHelpers).option("-c, --component-meta",descriptions.componentMeta).option("-r, --pantry",descriptions.pantry).option("-o, --openapi",descriptions.openApi).option("--images",descriptions.images).option("-p, --project [project]",descriptions.project,{default:false}).option("--core-symlink",descriptions.coreSymlink).option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate` ...",options);await startGenerationProcess(options);process.exit(ExitCode.Success)});buddy.command("generate:types",descriptions.types).option("-p, --project [project]",descriptions.project,{default:false}).option("-w, --watch","Re-run on changes to models/ and config/",{default:false}).option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate:types` ...",options);await runTypeGeneration(options)});buddy.command("generate:db-types","Refresh database/types.d.ts for db.selectFrom autocomplete (stacksjs/stacks#1923)").option("--dry-run","Print the would-be file content without writing",{default:false}).option("--framework","Write the framework's own FrameworkSchema instead of the app's DatabaseSchema",{default:false}).option("--dialect <dialect>","Raw column dialect: sqlite, mysql, or postgres").action(async(options)=>{if(options.dialect&&!["sqlite","mysql","postgres"].includes(options.dialect))throw new Error("Database types require dialect sqlite, mysql, or postgres");const{buildDatabaseSchema}=await import("@stacksjs/orm");const result=await buildDatabaseSchema(options.framework?{dryRun:options.dryRun,target:"framework",dialect:options.dialect,outFile:frameworkPath("core/database/src/framework-schema.ts"),migrationsDir:projectPath("database/migrations")}:{dryRun:options.dryRun,dialect:options.dialect});if(options.dryRun)console.log(result.content);for(const e of result.errors)log.warn(`[generate:db-types] ${e.file}: ${e.error}`);log.info(`[generate:db-types] resolved ${result.tables.length} table(s)`)});buddy.command("generate:vschema","Derive a Vitess VSchema from your models (writes database/vschema.json)").option("--dry-run","Print the VSchema without writing it",{default:false}).option("--out [path]","Where to write the VSchema",{default:"database/vschema.json"}).action(async(options)=>{const{generateVSchema}=await import("@stacksjs/actions");const result=await generateVSchema({dryRun:options.dryRun,out:options.out});if(!result.ok){console.error(`
|
|
2
2
|
❌ ${result.error}
|
|
3
3
|
`);process.exit(ExitCode.FatalError)}console.log(result.report);if(options.dryRun)console.log(JSON.stringify(result.vschema,null,2));else log.success(`Wrote ${result.path} (${result.tableCount} tables)`)});buddy.command("generate:erd-diagram","Derive an entity-relationship diagram from your models (writes docs/erd.md)").alias("generate:erd").option("--dry-run","Print the diagram without writing it",{default:false}).option("--out [path]","Where to write the diagram; a .md target gets a fenced mermaid block",{default:"docs/erd.md"}).option("--no-columns","Relationships only, without the column lists",{default:true}).option("--only [tables]","Comma-separated tables or model names to include",{default:""}).action(async(options)=>{const{generateErd}=await import("@stacksjs/actions");const only=(options.only??"").split(",").map((entry)=>entry.trim()).filter(Boolean);const result=await generateErd({dryRun:options.dryRun,out:options.out,noColumns:options.columns===false,only});if(!result.ok){console.error(`
|
|
4
4
|
❌ ${result.error}
|
|
5
|
-
`);process.exit(ExitCode.FatalError)}if(options.dryRun){console.log(result.diagram);return}log.success(`Wrote ${result.path} (${result.modelCount} models)`);if(result.skipped.length>0)log.warn(`${result.skipped.length} model(s) could not be read and are missing from the diagram`)});buddy.command("generate:entries",descriptions.entries).option("-p, --project [project]",descriptions.project,{default:false}).option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate:entries` ...",options);await generateLibEntries(options)});buddy.command("generate:web-types",descriptions.webTypes).option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate:web-types` ...",options);await generateWebTypes()});buddy.command("generate:vscode-custom-data",descriptions.customData).option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate:vscode-custom-data` ...",options);await generateVsCodeCustomData()});buddy.command("generate:ide-helpers",descriptions.ideHelpers).option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate:ide-helpers` ...",options);await generateIdeHelpers()});buddy.command("generate:component-meta",descriptions.componentMeta).option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate:component-meta` ...",options);await generateComponentMeta()});buddy.command("generate:pantry-config",descriptions.pantry).option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate:pantry-config` ...",options);await generatePantryConfig()});buddy.command("generate:openapi-spec",descriptions.openApi).alias("generate:openapi").option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate:openapi-spec` ...",options);const perf=await intro("buddy generate:openapi-spec");await generateOpenApiSpec();await outro("Generated OpenAPI specification",{startTime:perf,useSeconds:true})});buddy.command("generate:migrations","Generate Migrations").option("--dialect <dialect>","Generate into this dialect's corpus instead of the connected one (sqlite, mysql, singlestore, vitess, postgres), or `all` for the connected dialect and every other one that keeps a corpus. No database of that dialect is needed").action(async(options)=>{log.debug("Running `buddy generate:migrations` ...",options);const{dialectsBehindModels,generateMigrations,siblingMigrationDialects}=await import("@stacksjs/database");const targets=options.dialect==="all"?[undefined,...await siblingMigrationDialects()]:[options.dialect];for(const dialect of targets){const result=await generateMigrations(dialect?{dialect}:{});if(resultFailed(result))reportFailure(result,"generateMigrations failed")}if(!options.dialect){for(const dialect of await dialectsBehindModels())log.warn(`The ${dialect} migrations are behind these models. Run \`./buddy generate:migrations --dialect ${dialect}\` (or \`--dialect all\`) and commit the result.`)}});buddy.command("generate:auto-imports","Regenerate the auto-import barrels and name registries in storage/framework/auto-imports").action(async(options)=>{log.debug("Running `buddy generate:auto-imports` ...",options);const perf=await intro("buddy generate:auto-imports");const{generateAutoImportFiles}=await import("@stacksjs/server");await generateAutoImportFiles();await outro("Regenerated storage/framework/auto-imports",{startTime:perf,useSeconds:true})});buddy.command("generate:project","Refresh the generated files enabled in config/buddy.json").option("--tasks <tasks>","Comma-separated generators to run: imports,migrations,types",{default:"imports,migrations,types"}).action(async(options)=>{const{generateProject}=await import("../project-generation");try{await generateProject(projectPath(),options.tasks)}catch(error){reportFailure({error})}});buddy.command("generate:core-symlink","Symlink `.framework` -> storage/framework. A shortcut for core developers.").action(async(options)=>{log.debug("Running `buddy generate:core-symlink` ...",options);await generateCoreSymlink()});buddy.command("generate:images",descriptions.images).alias("images:generate").option("--social","Only build the social cards").option("--app-store","Only build the App Store screenshots").option("--app-icons","Only build the app icons and favicons").option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate:images` ...",options);const perf=await intro("buddy generate:images");const only=[];if(options.social)only.push("social");if(options.appStore)only.push("app-store");if(options.appIcons)only.push("app-icons");await generateProjectImages({only,verbose:options.verbose});await outro("Generated images",{startTime:perf,useSeconds:true})});buddy.command("generate:og",descriptions.og).alias("generate:social").option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate:og` ...",options);const perf=await intro("buddy generate:og");await generateProjectImages({only:["social"],verbose:options.verbose});await outro("Generated social cards",{startTime:perf,useSeconds:true})});buddy.command("generate:app-store",descriptions.appStore).alias("generate:screenshots").option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate:app-store` ...",options);const perf=await intro("buddy generate:app-store");await generateProjectImages({only:["app-store"],verbose:options.verbose});await outro("Generated App Store screenshots",{startTime:perf,useSeconds:true})});buddy.command("generate:app-icons",descriptions.appIcons).option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate:app-icons` ...",options);const perf=await intro("buddy generate:app-icons");await generateProjectImages({only:["app-icons"],verbose:options.verbose});await outro("Generated app icons",{startTime:perf,useSeconds:true})});onUnknownSubcommand(buddy,"generate")}
|
|
5
|
+
`);process.exit(ExitCode.FatalError)}if(options.dryRun){console.log(result.diagram);return}log.success(`Wrote ${result.path} (${result.modelCount} models)`);if(result.skipped.length>0)log.warn(`${result.skipped.length} model(s) could not be read and are missing from the diagram`)});buddy.command("generate:entries",descriptions.entries).option("-p, --project [project]",descriptions.project,{default:false}).option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate:entries` ...",options);await generateLibEntries(options)});buddy.command("generate:web-types",descriptions.webTypes).option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate:web-types` ...",options);await generateWebTypes()});buddy.command("generate:vscode-custom-data",descriptions.customData).option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate:vscode-custom-data` ...",options);await generateVsCodeCustomData()});buddy.command("generate:ide-helpers",descriptions.ideHelpers).option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate:ide-helpers` ...",options);await generateIdeHelpers()});buddy.command("generate:component-meta",descriptions.componentMeta).option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate:component-meta` ...",options);await generateComponentMeta()});buddy.command("generate:pantry-config",descriptions.pantry).option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate:pantry-config` ...",options);await generatePantryConfig()});buddy.command("generate:openapi-spec",descriptions.openApi).alias("generate:openapi").option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate:openapi-spec` ...",options);const perf=await intro("buddy generate:openapi-spec");await generateOpenApiSpec();await outro("Generated OpenAPI specification",{startTime:perf,useSeconds:true})});buddy.command("generate:migrations","Generate Migrations").option("--dialect <dialect>","Generate into this dialect's corpus instead of the connected one (sqlite, mysql, singlestore, vitess, postgres), or `all` for the connected dialect and every other one that keeps a corpus. No database of that dialect is needed").action(async(options)=>{log.debug("Running `buddy generate:migrations` ...",options);const{dialectsBehindModels,generateMigrations,siblingMigrationDialects}=await import("@stacksjs/database");const targets=options.dialect==="all"?[undefined,...await siblingMigrationDialects()]:[options.dialect];for(const dialect of targets){const result=await generateMigrations(dialect?{dialect}:{});if(resultFailed(result))reportFailure(result,"generateMigrations failed")}if(!options.dialect){for(const dialect of await dialectsBehindModels())log.warn(`The ${dialect} migrations are behind these models. Run \`./buddy generate:migrations --dialect ${dialect}\` (or \`--dialect all\`) and commit the result.`)}});buddy.command("generate:auto-imports","Regenerate the auto-import barrels and name registries in storage/framework/auto-imports").action(async(options)=>{log.debug("Running `buddy generate:auto-imports` ...",options);const perf=await intro("buddy generate:auto-imports");const{generateAutoImportFiles}=await import("@stacksjs/server");await generateAutoImportFiles();await outro("Regenerated storage/framework/auto-imports",{startTime:perf,useSeconds:true})});buddy.command("generate:project","Refresh the generated files enabled in config/buddy.json").option("--tasks <tasks>","Comma-separated generators to run: imports,migrations,types",{default:"imports,migrations,types"}).action(async(options)=>{const{generateProject}=await import("../project-generation");try{await generateProject(projectPath(),options.tasks)}catch(error){reportFailure({error})}});buddy.command("generate:review","Review Buddy’s generated changes and approve a local commit").option("-p, --project [project]",descriptions.project,{default:false}).action(async()=>{const{reviewGeneratedCommit}=await import("../generation-approval");try{const result=await reviewGeneratedCommit(projectPath(),async(diff)=>{process.stdout.write(diff);const approved=await confirmOrNull({message:"Commit these generated changes locally?",initial:false});process.stdin.pause();return approved===true});if(result==="empty")log.info("There are no generated changes awaiting approval.");else if(result==="pending")log.info("Generated changes are still awaiting approval.");else log.success(`Committed generated changes as ${result.slice(0,12)}.`)}catch(error){reportFailure({error})}});buddy.command("generate:core-symlink","Symlink `.framework` -> storage/framework. A shortcut for core developers.").action(async(options)=>{log.debug("Running `buddy generate:core-symlink` ...",options);await generateCoreSymlink()});buddy.command("generate:images",descriptions.images).alias("images:generate").option("--social","Only build the social cards").option("--app-store","Only build the App Store screenshots").option("--app-icons","Only build the app icons and favicons").option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate:images` ...",options);const perf=await intro("buddy generate:images");const only=[];if(options.social)only.push("social");if(options.appStore)only.push("app-store");if(options.appIcons)only.push("app-icons");await generateProjectImages({only,verbose:options.verbose});await outro("Generated images",{startTime:perf,useSeconds:true})});buddy.command("generate:og",descriptions.og).alias("generate:social").option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate:og` ...",options);const perf=await intro("buddy generate:og");await generateProjectImages({only:["social"],verbose:options.verbose});await outro("Generated social cards",{startTime:perf,useSeconds:true})});buddy.command("generate:app-store",descriptions.appStore).alias("generate:screenshots").option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate:app-store` ...",options);const perf=await intro("buddy generate:app-store");await generateProjectImages({only:["app-store"],verbose:options.verbose});await outro("Generated App Store screenshots",{startTime:perf,useSeconds:true})});buddy.command("generate:app-icons",descriptions.appIcons).option("--verbose",descriptions.verbose,{default:false}).action(async(options)=>{log.debug("Running `buddy generate:app-icons` ...",options);const perf=await intro("buddy generate:app-icons");await generateProjectImages({only:["app-icons"],verbose:options.verbose});await outro("Generated app icons",{startTime:perf,useSeconds:true})});onUnknownSubcommand(buddy,"generate")}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { GenerationFileGuard } from '@stacksjs/path';
|
|
2
|
+
import type { GenerationTask } from '@stacksjs/actions/daemon/generation-config';
|
|
3
|
+
/** Generation and approved commits share the proposal and its working-tree files. */
|
|
4
|
+
export declare function withApprovalLock<T>(root: string, run: () => T | Promise<T>): Promise<T>;
|
|
5
|
+
export declare function prepareCommitApproval(root: string, task: GenerationTask, enabledTasks: GenerationTask[]): { guard: GenerationFileGuard, finish: (success: boolean) => void } | undefined;
|
|
6
|
+
export declare function reviewGeneratedCommit(root: string, review: (diff: string) => Promise<boolean>): Promise<string | 'empty' | 'pending'>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{createHash}from"node:crypto";import{closeSync,existsSync,fsyncSync,lstatSync,mkdirSync,mkdtempSync,openSync,readFileSync,renameSync,rmSync,writeFileSync}from"node:fs";import{dirname,join,relative}from"node:path";import{approvalPath,readApproval,writeApprovalState}from"@stacksjs/actions/daemon/approval-state";import{readGenerationConfig}from"@stacksjs/actions/daemon/generation-config";import{acquireMigrationLock}from"@stacksjs/database/migration-lock";import{generatedChanges,generationRevision,git,gitCommand,gitRevision}from"./generation-changes";const staleApproval="The proposal changed. Run buddy generate:project and review the current changes again.";const commitMessage="chore: regenerate Stacks artifacts";function fingerprint(root,file){const path=join(root,file);const stat=lstatSync(path,{throwIfNoEntry:false});if(!stat)return;if(!stat.isFile())return"not a regular file";return createHash("sha256").update(`${stat.mode}:`).update(readFileSync(path)).digest("hex")}function branchOf(revision){const branch=revision?.trim().split(`
|
|
2
|
+
`)[1];return branch?.startsWith("refs/heads/")?branch:undefined}export async function withApprovalLock(root,run){const path=approvalPath(root);mkdirSync(dirname(path),{recursive:true,mode:448});const lock=await acquireMigrationLock("sqlite",null,{sqliteLockPath:`${path}.lock`});try{return await run()}finally{await lock.release()}}export function prepareCommitApproval(root,task,enabledTasks){const revision=generationRevision(root);const branch=branchOf(revision);if(!revision)return;const path=approvalPath(root);const{read,eligible}=generatedChanges(root,enabledTasks,true);const selected=generatedChanges(root,[task],true);const before=read();const previous=readApproval(path);const sameBranch=branch!==undefined&&branchOf(previous?.revision)===branch;const pending=new Map(Object.entries(sameBranch?previous?.files??{}:{}));const incomplete=new Map(Object.entries(sameBranch?previous?.incomplete??{}:{}));const expected=new Map([...selected.writable].map((file)=>[file,fingerprint(root,file)]));const writes=new Map;const guard={beforeWrite(path){const file=relative(root,path);if(!selected.writable.has(file))return;const hash=fingerprint(root,file);const status=before.get(file);const owned=hash!==undefined&&(pending.get(file)===hash||incomplete.get(file)===hash||writes.get(file)===hash);if(expected.get(file)!==hash||hash==="not a regular file"||status&&!(owned&&eligible(file,status))){throw new Error(`Local edits in ${file}. Resolve them before Buddy regenerates this file.`)}},afterWrite(path){const file=relative(root,path);const hash=fingerprint(root,file);if(hash&&hash!=="not a regular file"){writes.set(file,hash);expected.set(file,hash)}}};return{guard,finish(success){if(!branch||branchOf(gitRevision(root))!==branch||JSON.stringify(readApproval(path))!==JSON.stringify(previous))return;const files={};const unfinished={};for(const[file,status]of[...read()].sort(([a],[b])=>a.localeCompare(b))){if(!eligible(file,status))continue;const hash=fingerprint(root,file);if(!hash||hash==="not a regular file")continue;if(writes.get(file)===hash||incomplete.get(file)===hash){if(success&&selected.eligible(file,status))files[file]=hash;else unfinished[file]=hash}else if(pending.get(file)===hash){files[file]=hash}}if(Object.keys(files).length+Object.keys(unfinished).length===0){if(previous&&sameBranch)rmSync(path,{force:true});return}const proposal={revision,files,notify:true,...Object.keys(unfinished).length?{incomplete:unfinished}:{}};if(JSON.stringify(proposal)!==JSON.stringify(previous))writeApprovalState(path,proposal)}}}function commitReviewedTree(root,revision,files,tree,workIndex,validate){const[head,branch]=revision.trim().split(`
|
|
3
|
+
`);if(!head||!branch?.startsWith("refs/heads/"))throw new Error(staleApproval);const ongoing=["MERGE_HEAD","CHERRY_PICK_HEAD","REVERT_HEAD","rebase-apply","rebase-merge","sequencer","BISECT_START"];if(ongoing.some((state)=>existsSync(git(root,"rev-parse","--path-format=absolute","--git-path",state).trim())))throw new Error("Finish the current Git operation before approving generated changes.");const index=git(root,"rev-parse","--path-format=absolute","--git-path","index").trim();const indexLock=`${index}.lock`;const fd=openSync(indexLock,"wx",lstatSync(index).mode&511);let installed=false;try{validate();writeFileSync(workIndex,readFileSync(index));const entries=git(root,"ls-tree","-rz",tree,"--",...files);gitCommand(root,["update-index","-z","--index-info"],{env:{...process.env,GIT_INDEX_FILE:workIndex},input:entries});const sign=git(root,"config","--type=bool","--default=false","--get","commit.gpgSign").trim()==="true";const commit=git(root,"commit-tree",tree,"-p",head,"-m",commitMessage,...sign?["-S"]:[]).trim();writeFileSync(fd,readFileSync(workIndex));fsyncSync(fd);validate();git(root,"update-ref","-m",`commit: ${commitMessage}`,branch,commit,head);renameSync(indexLock,index);installed=true;return commit}finally{closeSync(fd);if(!installed)rmSync(indexLock,{force:true})}}export async function reviewGeneratedCommit(root,review){const config=readGenerationConfig(root);if(!config?.commitApproval)throw new Error("Enable generation.commitApproval in config/buddy.json to review generated commits.");const path=approvalPath(root);const proposal=readApproval(path);if(!proposal||Object.keys(proposal.files).length===0)return"empty";const{read,eligible}=generatedChanges(root,config.tasks,true);const files=Object.keys(proposal.files);const validate=()=>{const latest=readGenerationConfig(root);if(!latest?.commitApproval||latest.tasks.join()!==config.tasks.join()||gitRevision(root)!==proposal.revision||!proposal.revision.includes(`
|
|
4
|
+
refs/heads/`)||JSON.stringify(readApproval(path))!==JSON.stringify(proposal))throw new Error(staleApproval);const status=read();for(const file of files){const state=status.get(file);if(!state||!eligible(file,state)||fingerprint(root,file)!==proposal.files[file])throw new Error(staleApproval)}};const workspace=mkdtempSync(join(dirname(path),"review-"));try{const previewIndex=join(workspace,"preview-index");const preview=(...args)=>gitCommand(root,args,{env:{...process.env,GIT_INDEX_FILE:previewIndex}});validate();const[head]=proposal.revision.split(`
|
|
5
|
+
`);preview("read-tree",head);preview("add","--force","--",...files);const tree=preview("write-tree").trim();const diff=git(root,"diff","--binary","--no-ext-diff","--no-textconv","--no-color",head,tree,"--");validate();if(!diff)return"empty";if(!await review(diff))return"pending";return await withApprovalLock(root,()=>{const commit=commitReviewedTree(root,proposal.revision,files,tree,join(workspace,"real-index"),validate);if(proposal.incomplete)writeApprovalState(path,{...proposal,revision:gitRevision(root),files:{}});else rmSync(path,{force:true});return commit})}finally{rmSync(workspace,{recursive:true,force:true})}}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { GenerationTask } from '@stacksjs/actions/daemon/generation-config';
|
|
2
|
+
import type { SpawnSyncOptionsWithStringEncoding } from 'node:child_process';
|
|
3
|
+
export declare function gitCommand(root: string, args: string[], options?: Partial<SpawnSyncOptionsWithStringEncoding>): string;
|
|
4
|
+
export declare function git(root: string, ...args: string[]): string;
|
|
5
|
+
export declare function gitRevision(root: string): string;
|
|
6
|
+
export declare function generationRevision(root: string): string | undefined;
|
|
7
|
+
export declare function generatedChanges(root: string, tasks: GenerationTask[], includeIgnored?: boolean): {
|
|
8
|
+
read: __dtsx_return_0.__dtsx_return_0_result_0;
|
|
9
|
+
eligible: __dtsx_return_0.__dtsx_return_0_result_1;
|
|
10
|
+
writable: __dtsx_return_0.__dtsx_return_0_result_2
|
|
11
|
+
};
|
|
12
|
+
/** Commit only clean-before paths whose contents the requested generators own. */
|
|
13
|
+
export declare function prepareAutomaticCommit(root: string, tasks: GenerationTask[]): (() => void) | undefined;
|
|
14
|
+
declare namespace __dtsx_return_0 {
|
|
15
|
+
/** @defaultValue `[...(tasks.includes('imports') ? importFiles : []), ...(tasks.includes('types') ? typeFiles : [])]` */
|
|
16
|
+
const files: unknown[];
|
|
17
|
+
const migrations: ReturnType<typeof tasks.includes>;
|
|
18
|
+
const writable: Set<any>;
|
|
19
|
+
/** @defaultValue `[...files, ...(migrations ? migrationDirectories : [])]` */
|
|
20
|
+
const scope: ((typeof files)[number] | unknown)[];
|
|
21
|
+
const read: () => Map<any, any>;
|
|
22
|
+
const generatedSql: (file: string) => unknown;
|
|
23
|
+
const eligible: (file: string, status: string) => boolean;
|
|
24
|
+
namespace __dtsx_return_0_scope_0 {
|
|
25
|
+
type __dtsx_return_0_result_0 = typeof read
|
|
26
|
+
type __dtsx_return_0_result_1 = typeof eligible
|
|
27
|
+
type __dtsx_return_0_result_2 = typeof writable
|
|
28
|
+
}
|
|
29
|
+
type __dtsx_return_0_result_0 = __dtsx_return_0_scope_0.__dtsx_return_0_result_0
|
|
30
|
+
type __dtsx_return_0_result_1 = __dtsx_return_0_scope_0.__dtsx_return_0_result_1
|
|
31
|
+
type __dtsx_return_0_result_2 = __dtsx_return_0_scope_0.__dtsx_return_0_result_2
|
|
32
|
+
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{spawnSync}from"node:child_process";import{lstatSync}from"node:fs";import{basename,dirname,join}from"node:path";import{isGeneratedMigration}from"@stacksjs/database/generated-migration-marker";const importFiles=["RUNTIME.md","actions.ts","controllers.ts","emails.ts","functions.ts","globals.ts","index.ts","jobs.ts","listeners.ts","middleware.ts","models.ts","policies.ts","sources.json"].map((file)=>`storage/framework/auto-imports/${file}`).concat(["storage/framework/types/browser-auto-imports.d.ts","storage/framework/types/server-auto-imports.d.ts","storage/framework/browser-auto-imports.json","storage/framework/server-auto-imports.json"]);const typeFiles=["storage/framework/auto-imports/routes.ts","database/types.d.ts"];const migrationDirectories=["database/migrations","storage/framework/database"];const snapshotFiles=["sqlite","mysql","postgres","singlestore","vitess"].map((dialect)=>`storage/framework/database/model-snapshot.${dialect}.json`);export function gitCommand(root,args,options){const result=spawnSync("git",["--literal-pathspecs",...args],{cwd:root,encoding:"utf8",timeout:30000,maxBuffer:32*1024*1024,...options});if(result.status!==0)throw new Error(result.error?.message??(result.stderr.trim()||`git ${args[0]} failed`));return result.stdout}export function git(root,...args){return gitCommand(root,args)}export function gitRevision(root){return git(root,"rev-parse","HEAD","--symbolic-full-name","HEAD")}export function generationRevision(root){try{if(!git(root,"rev-parse","--show-prefix").trim())return gitRevision(root)}catch{}}export function generatedChanges(root,tasks,includeIgnored=false){const files=[...tasks.includes("imports")?importFiles:[],...tasks.includes("types")?typeFiles:[]];const migrations=tasks.includes("migrations");const writable=new Set([...files,...migrations?snapshotFiles:[]]);const scope=[...files,...migrations?migrationDirectories:[]];const read=()=>{const status=git(root,"--no-optional-locks","status","--porcelain=v1","-z","--no-renames","--untracked-files=all",...includeIgnored&&migrations?["--ignored=traditional"]:[],"--",...scope);return new Map(status.split("\x00").filter(Boolean).map((entry)=>[entry.slice(3),entry.slice(0,2)]))};const generatedSql=(file)=>{const fullPath=join(root,file);return migrations&&/^database\/migrations\/(?:[^/]+\/)?\d{10}-.+\.sql$/.test(file)&&isGeneratedMigration(dirname(fullPath),basename(fullPath))};const eligible=(file,status)=>{if(status==="!!"?!generatedSql(file):!writable.has(file)&&!generatedSql(file))return false;return(status===" M"||status==="??"||status==="!!")&&lstatSync(join(root,file),{throwIfNoEntry:false})?.isFile()===true};return{read,eligible,writable}}export function prepareAutomaticCommit(root,tasks){const revision=generationRevision(root);if(!revision)return;const{read,eligible}=generatedChanges(root,tasks);const before=read();return()=>{if(gitRevision(root)!==revision)return;const changes=[...read()].filter(([file,status])=>!before.has(file)&&eligible(file,status));if(changes.length===0)return;const newFiles=changes.filter(([,status])=>status==="??").map(([file])=>file);if(newFiles.length>0)git(root,"add","--intent-to-add","--",...newFiles);git(root,"commit","--only","-m","chore: regenerate Stacks artifacts","--",...changes.map(([file])=>file))}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
`));if(readGenerationConfig(root)?.autoCommit)
|
|
1
|
+
import{generationTasks,readGenerationConfig}from"@stacksjs/actions/daemon/generation-config";import{prepareCommitApproval,withApprovalLock}from"./generation-approval";import{prepareAutomaticCommit}from"./generation-changes";import{resultError,resultFailed}from"./result";export async function generateProject(root,selection){const config=readGenerationConfig(root);if(!config)return;const requested=new Set(selection.split(","));const tasks=generationTasks.filter((task)=>requested.has(task)&&config.tasks.includes(task));if(tasks.length===0)return;if(config.commitApproval)await withApprovalLock(root,()=>runGeneration(root,tasks,config));else await runGeneration(root,tasks,config)}async function runGeneration(root,tasks,config){const commit=config.autoCommit?prepareAutomaticCommit(root,tasks):undefined;const failures=[];for(const task of tasks){const firstFailure=failures.length;const approval=config.commitApproval?prepareCommitApproval(root,task,config.tasks):undefined;const guard=approval?.guard;try{if(task==="imports"){const{generateAutoImportFiles}=await import("@stacksjs/server");await generateAutoImportFiles({guard})}else if(task==="migrations"){const{generateMigrations,siblingMigrationDialects}=await import("@stacksjs/database");for(const dialect of[undefined,...await siblingMigrationDialects()]){const result=await generateMigrations({dialect,fromDb:false,allowDestructive:false,trackIgnored:false,guard});if(resultFailed(result))failures.push(`${dialect??"configured dialect"} migrations: ${resultError(result)}`)}}else{const{generateRouteNames}=await import("@stacksjs/actions/generate/action-types");const{buildDatabaseSchema}=await import("@stacksjs/orm");await generateRouteNames({strict:true,guard});const{errors}=await buildDatabaseSchema({strict:true,guard});failures.push(...errors.map((error)=>`${error.file}: ${error.error}`))}}catch(error){failures.push(`${task}: ${error instanceof Error?error.message:String(error)}`)}if(approval){const current=readGenerationConfig(root);approval.finish(failures.length===firstFailure&¤t?.commitApproval===true&¤t.tasks.includes(task))}}if(failures.length>0)throw new Error(failures.join(`
|
|
2
|
+
`));if(readGenerationConfig(root)?.autoCommit)commit?.()}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/buddy",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.639",
|
|
6
6
|
"description": "Meet Buddy. The Stacks runtime.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -95,71 +95,71 @@
|
|
|
95
95
|
"prepublishOnly": "bun run build"
|
|
96
96
|
},
|
|
97
97
|
"dependencies": {
|
|
98
|
-
"@stacksjs/actions": "0.75.
|
|
99
|
-
"@stacksjs/docs": "0.75.
|
|
100
|
-
"@stacksjs/ai": "0.75.
|
|
101
|
-
"@stacksjs/alias": "0.75.
|
|
102
|
-
"@stacksjs/analytics": "0.75.
|
|
103
|
-
"@stacksjs/api": "0.75.
|
|
104
|
-
"@stacksjs/arrays": "0.75.
|
|
105
|
-
"@stacksjs/auth": "0.75.
|
|
106
|
-
"@stacksjs/browser-extension": "0.75.
|
|
107
|
-
"@stacksjs/build": "0.75.
|
|
98
|
+
"@stacksjs/actions": "0.75.639",
|
|
99
|
+
"@stacksjs/docs": "0.75.639",
|
|
100
|
+
"@stacksjs/ai": "0.75.639",
|
|
101
|
+
"@stacksjs/alias": "0.75.639",
|
|
102
|
+
"@stacksjs/analytics": "0.75.639",
|
|
103
|
+
"@stacksjs/api": "0.75.639",
|
|
104
|
+
"@stacksjs/arrays": "0.75.639",
|
|
105
|
+
"@stacksjs/auth": "0.75.639",
|
|
106
|
+
"@stacksjs/browser-extension": "0.75.639",
|
|
107
|
+
"@stacksjs/build": "0.75.639",
|
|
108
108
|
"@stacksjs/bumpx": "^0.2.32",
|
|
109
|
-
"@stacksjs/cache": "0.75.
|
|
110
|
-
"@stacksjs/chat": "0.75.
|
|
109
|
+
"@stacksjs/cache": "0.75.639",
|
|
110
|
+
"@stacksjs/chat": "0.75.639",
|
|
111
111
|
"@stacksjs/clapp": "^0.2.17",
|
|
112
|
-
"@stacksjs/cli": "0.75.
|
|
113
|
-
"@stacksjs/cloud": "0.75.
|
|
114
|
-
"@stacksjs/cms": "0.75.
|
|
115
|
-
"@stacksjs/collections": "0.75.
|
|
116
|
-
"@stacksjs/commerce": "0.75.
|
|
117
|
-
"@stacksjs/config": "0.75.
|
|
118
|
-
"@stacksjs/database": "0.75.
|
|
119
|
-
"@stacksjs/desktop-build": "0.75.
|
|
120
|
-
"@stacksjs/dns": "0.75.
|
|
112
|
+
"@stacksjs/cli": "0.75.639",
|
|
113
|
+
"@stacksjs/cloud": "0.75.639",
|
|
114
|
+
"@stacksjs/cms": "0.75.639",
|
|
115
|
+
"@stacksjs/collections": "0.75.639",
|
|
116
|
+
"@stacksjs/commerce": "0.75.639",
|
|
117
|
+
"@stacksjs/config": "0.75.639",
|
|
118
|
+
"@stacksjs/database": "0.75.639",
|
|
119
|
+
"@stacksjs/desktop-build": "0.75.639",
|
|
120
|
+
"@stacksjs/dns": "0.75.639",
|
|
121
121
|
"@stacksjs/dnsx": "^0.2.3",
|
|
122
|
-
"@stacksjs/email": "0.75.
|
|
123
|
-
"@stacksjs/enums": "0.75.
|
|
124
|
-
"@stacksjs/env": "0.75.
|
|
125
|
-
"@stacksjs/error-handling": "0.75.
|
|
126
|
-
"@stacksjs/events": "0.75.
|
|
127
|
-
"@stacksjs/features": "0.75.
|
|
128
|
-
"@stacksjs/git": "0.75.
|
|
122
|
+
"@stacksjs/email": "0.75.639",
|
|
123
|
+
"@stacksjs/enums": "0.75.639",
|
|
124
|
+
"@stacksjs/env": "0.75.639",
|
|
125
|
+
"@stacksjs/error-handling": "0.75.639",
|
|
126
|
+
"@stacksjs/events": "0.75.639",
|
|
127
|
+
"@stacksjs/features": "0.75.639",
|
|
128
|
+
"@stacksjs/git": "0.75.639",
|
|
129
129
|
"@stacksjs/gitit": "^0.2.5",
|
|
130
|
-
"@stacksjs/health": "0.75.
|
|
131
|
-
"@stacksjs/hq": "0.75.
|
|
130
|
+
"@stacksjs/health": "0.75.639",
|
|
131
|
+
"@stacksjs/hq": "0.75.639",
|
|
132
132
|
"@stacksjs/httx": "^0.1.10",
|
|
133
|
-
"@stacksjs/image": "0.75.
|
|
134
|
-
"@stacksjs/lint": "0.75.
|
|
135
|
-
"@stacksjs/logging": "0.75.
|
|
136
|
-
"@stacksjs/notifications": "0.75.
|
|
137
|
-
"@stacksjs/objects": "0.75.
|
|
138
|
-
"@stacksjs/orm": "0.75.
|
|
139
|
-
"@stacksjs/path": "0.75.
|
|
140
|
-
"@stacksjs/payments": "0.75.
|
|
141
|
-
"@stacksjs/realtime": "0.75.
|
|
142
|
-
"@stacksjs/router": "0.75.
|
|
133
|
+
"@stacksjs/image": "0.75.639",
|
|
134
|
+
"@stacksjs/lint": "0.75.639",
|
|
135
|
+
"@stacksjs/logging": "0.75.639",
|
|
136
|
+
"@stacksjs/notifications": "0.75.639",
|
|
137
|
+
"@stacksjs/objects": "0.75.639",
|
|
138
|
+
"@stacksjs/orm": "0.75.639",
|
|
139
|
+
"@stacksjs/path": "0.75.639",
|
|
140
|
+
"@stacksjs/payments": "0.75.639",
|
|
141
|
+
"@stacksjs/realtime": "0.75.639",
|
|
142
|
+
"@stacksjs/router": "0.75.639",
|
|
143
143
|
"@stacksjs/rpx": "^0.11.54",
|
|
144
|
-
"@stacksjs/scheduler": "0.75.
|
|
145
|
-
"@stacksjs/search-engine": "0.75.
|
|
146
|
-
"@stacksjs/security": "0.75.
|
|
147
|
-
"@stacksjs/server": "0.75.
|
|
148
|
-
"@stacksjs/sites": "0.75.
|
|
149
|
-
"@stacksjs/skills": "0.75.
|
|
150
|
-
"@stacksjs/socials": "0.75.
|
|
151
|
-
"@stacksjs/storage": "0.75.
|
|
152
|
-
"@stacksjs/strings": "0.75.
|
|
144
|
+
"@stacksjs/scheduler": "0.75.639",
|
|
145
|
+
"@stacksjs/search-engine": "0.75.639",
|
|
146
|
+
"@stacksjs/security": "0.75.639",
|
|
147
|
+
"@stacksjs/server": "0.75.639",
|
|
148
|
+
"@stacksjs/sites": "0.75.639",
|
|
149
|
+
"@stacksjs/skills": "0.75.639",
|
|
150
|
+
"@stacksjs/socials": "0.75.639",
|
|
151
|
+
"@stacksjs/storage": "0.75.639",
|
|
152
|
+
"@stacksjs/strings": "0.75.639",
|
|
153
153
|
"@stacksjs/stx": "^0.2.908",
|
|
154
|
-
"@stacksjs/testing": "0.75.
|
|
155
|
-
"@stacksjs/tinker": "0.75.
|
|
154
|
+
"@stacksjs/testing": "0.75.639",
|
|
155
|
+
"@stacksjs/tinker": "0.75.639",
|
|
156
156
|
"@stacksjs/tlsx": "^0.13.19",
|
|
157
157
|
"@stacksjs/ts-cloud": "^0.16.144",
|
|
158
|
-
"@stacksjs/tunnel": "0.75.
|
|
159
|
-
"@stacksjs/types": "0.75.
|
|
160
|
-
"@stacksjs/ui": "0.75.
|
|
161
|
-
"@stacksjs/utils": "0.75.
|
|
162
|
-
"@stacksjs/validation": "0.75.
|
|
158
|
+
"@stacksjs/tunnel": "0.75.639",
|
|
159
|
+
"@stacksjs/types": "0.75.639",
|
|
160
|
+
"@stacksjs/ui": "0.75.639",
|
|
161
|
+
"@stacksjs/utils": "0.75.639",
|
|
162
|
+
"@stacksjs/validation": "0.75.639",
|
|
163
163
|
"ajv": "^8.20.0",
|
|
164
164
|
"ajv-formats": "^3.0.1",
|
|
165
165
|
"bun-plugin-stx": "^0.2.908",
|