@stacksjs/actions 0.75.503 → 0.75.505
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/queue/clear.js +1 -1
- package/dist/queue/dlq-purge.js +1 -1
- package/dist/queue/dlq-retry.js +1 -1
- package/dist/queue/dlq.js +2 -2
- package/dist/queue/failed.js +3 -3
- package/dist/queue/flush.js +2 -2
- package/dist/queue/inspect.js +4 -4
- package/dist/queue/list.js +3 -3
- package/dist/queue/monitor.js +3 -3
- package/dist/queue/options.d.ts +2 -0
- package/dist/queue/options.js +1 -0
- package/dist/queue/pause.js +1 -1
- package/dist/queue/quarantine.js +2 -2
- package/dist/queue/resume.js +1 -1
- package/dist/queue/retry.js +1 -1
- package/dist/queue/status.js +3 -3
- package/dist/queue/unquarantine.js +1 -1
- package/dist/queue/work.js +1 -1
- package/package.json +40 -40
package/dist/queue/clear.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import process from"node:process";import{log}from"@stacksjs/logging";import{
|
|
1
|
+
import{queueActionOptions}from"./options";import process from"node:process";import{log}from"@stacksjs/logging";import{db}from"@stacksjs/database";const options=queueActionOptions(),queueName=options.queue,force=options.force==="true";try{if(!force){log.warn("This will delete all jobs from the queue. Use --force to confirm.");await log.flush();process.exit(1)}let query=db.deleteFrom("jobs");if(queueName)query=query.where("queue","=",queueName);const result=await query.executeTakeFirst(),deletedCount=Number(result.numDeletedRows??0);log.success(`Cleared ${deletedCount} job(s)`);await log.flush();process.exit(0)}catch(error){await log.error("Failed to clear jobs",error);process.exit(1)}
|
package/dist/queue/dlq-purge.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import process from"node:process";import{log}from"@stacksjs/logging";import{purgeDeadLetterJobs}from"@stacksjs/queue";const options=
|
|
1
|
+
import{queueActionOptions}from"./options";import process from"node:process";import{log}from"@stacksjs/logging";import{purgeDeadLetterJobs}from"@stacksjs/queue";const options=queueActionOptions(),days=options.olderThanDays?Number.parseInt(options.olderThanDays,10):options["older-than-days"]?Number.parseInt(options["older-than-days"],10):30;if(!Number.isFinite(days)||days<1){await log.error(`Invalid --older-than-days value '${options.olderThanDays??options["older-than-days"]}'`);process.exit(1)}try{log.info(`Pruning dead-letter rows older than ${days} day(s)...`);const deleted=await purgeDeadLetterJobs(days);log.success(`Deleted ${deleted} dead-letter row(s)`);await log.flush();process.exit(0)}catch(error){await log.error("Failed to purge dead-letter jobs",error);process.exit(1)}
|
package/dist/queue/dlq-retry.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import process from"node:process";import{log}from"@stacksjs/logging";import{retryDeadLetterJob}from"@stacksjs/queue";const options=
|
|
1
|
+
import{queueActionOptions}from"./options";import process from"node:process";import{log}from"@stacksjs/logging";import{retryDeadLetterJob}from"@stacksjs/queue";const options=queueActionOptions(),idArg=options.id;if(!idArg){await log.error("Usage: buddy queue:dlq:retry --id=<id>");process.exit(1)}const id=Number.parseInt(idArg,10);if(Number.isNaN(id)){await log.error("Invalid id provided");process.exit(1)}try{if(!await retryDeadLetterJob(id)){await log.error(`Dead-letter job ${id} not found (or DLQ table missing)`);process.exit(1)}log.success(`Re-enqueued dead-letter job ${id}`);await log.flush();process.exit(0)}catch(error){await log.error("Failed to re-enqueue dead-letter job",error);process.exit(1)}
|
package/dist/queue/dlq.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import process from"node:process";import{log}from"@stacksjs/logging";import{listDeadLetterJobs}from"@stacksjs/queue";const options=
|
|
1
|
+
import{queueActionOptions}from"./options";import process from"node:process";import{log}from"@stacksjs/logging";import{listDeadLetterJobs}from"@stacksjs/queue";const options=queueActionOptions(),queueName=options.queue||void 0,reason=options.reason||void 0,sinceArg=options.since,limit=options.limit?Number.parseInt(options.limit,10):100;try{log.info(`Fetching dead-letter jobs...
|
|
2
2
|
`);const sinceCutoffMs=sinceArg?parseSinceDuration(sinceArg)??void 0:void 0,rows=await listDeadLetterJobs({queue:queueName,reason,sinceCutoffMs,limit});if(rows.length===0){console.log("\u2713 No dead-letter jobs found");process.exit(0)}console.log("\u250C\u2500\u2500\u2500\u2500\u2500\u252C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510");console.log("\u2502 ID \u2502 Queue \u2502 Reason \u2502 Failures \u2502 Dead-Lettered At \u2502");console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u253C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");for(const row of rows){const id=String(row.id).padEnd(3),q=(row.queue||"default").substring(0,32).padEnd(32),r=(row.reason||"unknown").substring(0,16).padEnd(16),f=String(row.total_failures??1).padEnd(8),dt=(row.dead_lettered_at||"N/A").substring(0,24).padEnd(24);console.log(`\u2502 ${id} \u2502 ${q} \u2502 ${r} \u2502 ${f} \u2502 ${dt} \u2502`)}console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518");console.log(`
|
|
3
3
|
Showing ${rows.length} dead-letter job(s)`);process.exit(0)}catch(error){const message=error instanceof Error?error.message:String(error);if(/no such table:\s*dead_letter_jobs\b/i.test(message)){process.stdout.write(`Dead-letter queue table is not set up yet.
|
|
4
|
-
`);process.stdout.write("Run `buddy queue:table` to create the migrations, then `buddy migrate` to apply them.\n");process.exit(0)}await log.error("Failed to fetch dead-letter jobs",error);process.exit(1)}function
|
|
4
|
+
`);process.stdout.write("Run `buddy queue:table` to create the migrations, then `buddy migrate` to apply them.\n");process.exit(0)}await log.error("Failed to fetch dead-letter jobs",error);process.exit(1)}function parseSinceDuration(input){const m=/^(\d+)([smhd])$/.exec(input.trim());if(!m)return null;const n=Number(m[1]);if(!Number.isFinite(n)||n<=0)return null;const mult=m[2]==="s"?1000:m[2]==="m"?60000:m[2]==="h"?3600000:86400000;return Date.now()-n*mult}
|
package/dist/queue/failed.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import process from"node:process";import{log}from"@stacksjs/logging";import{
|
|
2
|
-
`);let failedJobs;if(queueName)failedJobs=await
|
|
1
|
+
import{queueActionOptions}from"./options";import process from"node:process";import{log}from"@stacksjs/logging";import{db}from"@stacksjs/database";const options=queueActionOptions(),{queue:queueName,since:sinceArg}=options,sinceCutoff=sinceArg?parseSinceDuration(sinceArg):null;try{log.info(`Fetching failed jobs...
|
|
2
|
+
`);let failedJobs;if(queueName)failedJobs=await db.selectFrom("failed_jobs").selectAll().where("queue","=",queueName).execute();else failedJobs=await db.selectFrom("failed_jobs").selectAll().execute();if(sinceCutoff)failedJobs=failedJobs.filter((j)=>{if(!j.failed_at)return!1;const ts=Date.parse(String(j.failed_at));return Number.isFinite(ts)&&ts>=sinceCutoff});if(failedJobs.length===0){if(sinceCutoff)console.log(`\u2713 No failed jobs found since ${sinceArg}`);else console.log("\u2713 No failed jobs found");process.exit(0)}console.log("\u250C\u2500\u2500\u2500\u2500\u2500\u252C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510");console.log("\u2502 ID \u2502 Queue \u2502 Failed At \u2502 Exception \u2502");console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u253C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");for(const job of failedJobs){const id=String(job.id).padEnd(3),queue=(job.queue||"default").substring(0,48).padEnd(48),failedAt=String(job.failed_at||"N/A").substring(0,21).padEnd(21),exception=String(job.exception||"Unknown error").substring(0,31).padEnd(31);console.log(`\u2502 ${id} \u2502 ${queue} \u2502 ${failedAt} \u2502 ${exception} \u2502`)}console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518");console.log(`
|
|
3
3
|
Total: ${failedJobs.length} failed job(s)`);process.exit(0)}catch(error){const message=error instanceof Error?error.message:String(error);if(/no such table:\s*(?:jobs|failed_jobs)\b/i.test(message)){process.stdout.write(`Queue tables are not set up yet.
|
|
4
|
-
`);process.stdout.write("Run `buddy queue:table` to create the migrations, then `buddy migrate` to apply them.\n");process.exit(0)}await log.error("Failed to fetch failed jobs",error);process.exit(1)}function
|
|
4
|
+
`);process.stdout.write("Run `buddy queue:table` to create the migrations, then `buddy migrate` to apply them.\n");process.exit(0)}await log.error("Failed to fetch failed jobs",error);process.exit(1)}function parseSinceDuration(input){const m=/^(\d+)([smhd])$/.exec(input.trim());if(!m)return null;const n=Number(m[1]);if(!Number.isFinite(n)||n<=0)return null;const mult=m[2]==="s"?1000:m[2]==="m"?60000:m[2]==="h"?3600000:86400000;return Date.now()-n*mult}
|
package/dist/queue/flush.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import process from"node:process";import{log}from"@stacksjs/logging";import{
|
|
2
|
-
`);process.stdout.write("Run `buddy queue:table` to create the migrations, then `buddy migrate` to apply them.\n");process.exit(0)}await log.error("Failed to flush failed jobs",error);process.exit(1)}
|
|
1
|
+
import{queueActionOptions}from"./options";import process from"node:process";import{log}from"@stacksjs/logging";import{db}from"@stacksjs/database";const options=queueActionOptions(),queueName=options.queue,force=options.force==="true";try{if(!force){log.warn("This will permanently delete all failed jobs. Use --force to confirm.");await log.flush();process.exit(1)}let query=db.deleteFrom("failed_jobs");if(queueName)query=query.where("queue","=",queueName);const result=await query.executeTakeFirst(),deletedCount=Number(result.numDeletedRows??0);log.success(`Flushed ${deletedCount} failed job(s)`);await log.flush();process.exit(0)}catch(error){const message=error instanceof Error?error.message:String(error);if(/no such table:\s*(?:jobs|failed_jobs)\b/i.test(message)){process.stdout.write(`Queue tables are not set up yet.
|
|
2
|
+
`);process.stdout.write("Run `buddy queue:table` to create the migrations, then `buddy migrate` to apply them.\n");process.exit(0)}await log.error("Failed to flush failed jobs",error);process.exit(1)}
|
package/dist/queue/inspect.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import process from"node:process";import{log}from"@stacksjs/logging";import{
|
|
2
|
-
\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510`);console.log("\u2502 Failed Job Details \u2502");console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");console.log(`\u2502 ID: ${String(job.id).padEnd(52)} \u2502`);console.log(`\u2502 Queue: ${(job.queue||"default").padEnd(52)} \u2502`);console.log(`\u2502 Connection: ${(job.connection||"database").padEnd(52)} \u2502`);console.log(`\u2502 Failed At: ${(job.failed_at||"N/A").padEnd(52)} \u2502`);console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");console.log("\u2502 Exception: \u2502");console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");const exception=job.exception||"Unknown error",lines=exception.match(/.{1,62}/g)||[exception];for(const line of lines.slice(0,20))console.log(`\u2502 ${line.padEnd(62)} \u2502`);if(lines.length>20)console.log(`\u2502 ... (${lines.length-20} more lines)`.padEnd(64)+" \u2502");console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");console.log("\u2502 Payload: \u2502");console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");if(job.payload)try{const payload=JSON.parse(job.payload);console.log(`\u2502 Name: ${payload.name.padEnd(52)} \u2502`);console.log(`\u2502 Path: ${payload.path.padEnd(52)} \u2502`);console.log(`\u2502 Max Tries: ${String(payload.maxTries).padEnd(52)} \u2502`);console.log("\u2502 Parameters: \u2502");const paramLines=JSON.stringify(payload.params,null,2).split(`
|
|
1
|
+
import{queueActionOptions}from"./options";import process from"node:process";import{log}from"@stacksjs/logging";import{db}from"@stacksjs/database";const options=queueActionOptions(),jobId=options.id,failedFlag=options.failed==="true";try{if(!jobId){await log.error("Please provide a job ID");log.info("Usage: buddy queue:inspect --id=<jobId> [--failed]");await log.flush();process.exit(1)}const id=Number.parseInt(jobId,10);if(Number.isNaN(id)){await log.error("Invalid job ID provided");process.exit(1)}if(failedFlag){const failedResult=await db.selectFrom("failed_jobs").selectAll().where("id","=",id).executeTakeFirst();if(!failedResult){await log.error(`Failed job with ID ${id} not found`);process.exit(1)}const job=failedResult;console.log(`
|
|
2
|
+
\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510`);console.log("\u2502 Failed Job Details \u2502");console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");console.log(`\u2502 ID: ${String(job.id).padEnd(52)} \u2502`);console.log(`\u2502 Queue: ${(job.queue||"default").padEnd(52)} \u2502`);console.log(`\u2502 Connection: ${(job.connection||"database").padEnd(52)} \u2502`);console.log(`\u2502 Failed At: ${String(job.failed_at||"N/A").padEnd(52)} \u2502`);console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");console.log("\u2502 Exception: \u2502");console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");const exception=job.exception||"Unknown error",lines=exception.match(/.{1,62}/g)||[exception];for(const line of lines.slice(0,20))console.log(`\u2502 ${line.padEnd(62)} \u2502`);if(lines.length>20)console.log(`\u2502 ... (${lines.length-20} more lines)`.padEnd(64)+" \u2502");console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");console.log("\u2502 Payload: \u2502");console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");if(job.payload)try{const payload=JSON.parse(job.payload);console.log(`\u2502 Name: ${payload.name.padEnd(52)} \u2502`);console.log(`\u2502 Path: ${payload.path.padEnd(52)} \u2502`);console.log(`\u2502 Max Tries: ${String(payload.maxTries).padEnd(52)} \u2502`);console.log("\u2502 Parameters: \u2502");const paramLines=JSON.stringify(payload.params,null,2).split(`
|
|
3
3
|
`);for(const line of paramLines.slice(0,15))console.log(`\u2502 ${line.substring(0,60).padEnd(60)} \u2502`);if(paramLines.length>15)console.log(`\u2502 ... (${paramLines.length-15} more lines)`.padEnd(64)+" \u2502")}catch{console.log(`\u2502 Raw: ${job.payload.substring(0,58).padEnd(58)} \u2502`)}else console.log("\u2502 (No payload) \u2502");console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518");console.log(`
|
|
4
|
-
Actions:`);console.log(` Retry this job: buddy queue:retry --id=${id}`);console.log(` Delete this job: buddy queue:flush --id=${id}`)}else{const jobResult=await
|
|
4
|
+
Actions:`);console.log(` Retry this job: buddy queue:retry --id=${id}`);console.log(` Delete this job: buddy queue:flush --id=${id}`)}else{const jobResult=await db.selectFrom("jobs").selectAll().where("id","=",id).executeTakeFirst();if(!jobResult){await log.error(`Job with ID ${id} not found`);log.info("Tip: Use --failed flag to inspect failed jobs");await log.flush();process.exit(1)}const job=jobResult,now=Math.floor(Date.now()/1000);let status="Pending";if(job.reserved_at)status="Processing";else if(job.available_at&&job.available_at>now)status="Delayed";console.log(`
|
|
5
5
|
\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510`);console.log("\u2502 Job Details \u2502");console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");console.log(`\u2502 ID: ${String(job.id).padEnd(50)} \u2502`);console.log(`\u2502 Queue: ${(job.queue||"default").padEnd(50)} \u2502`);console.log(`\u2502 Status: ${status.padEnd(50)} \u2502`);console.log(`\u2502 Attempts: ${String(job.attempts||0).padEnd(50)} \u2502`);console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");if(job.available_at){const availableDate=new Date(job.available_at*1000);console.log(`\u2502 Available At: ${availableDate.toISOString().padEnd(50)} \u2502`)}if(job.reserved_at){const reservedDate=new Date(job.reserved_at*1000);console.log(`\u2502 Reserved At: ${reservedDate.toISOString().padEnd(50)} \u2502`)}if(job.created_at)console.log(`\u2502 Created At: ${String(job.created_at).padEnd(50)} \u2502`);console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");console.log("\u2502 Payload: \u2502");console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");if(job.payload)try{const payload=JSON.parse(job.payload);console.log(`\u2502 Name: ${payload.name.padEnd(52)} \u2502`);console.log(`\u2502 Path: ${payload.path.padEnd(52)} \u2502`);console.log(`\u2502 Max Tries: ${String(payload.maxTries).padEnd(52)} \u2502`);console.log(`\u2502 Timeout: ${String(payload.timeOut||"N/A").padEnd(52)} \u2502`);console.log("\u2502 Parameters: \u2502");const paramLines=JSON.stringify(payload.params,null,2).split(`
|
|
6
6
|
`);for(const line of paramLines.slice(0,15))console.log(`\u2502 ${line.substring(0,60).padEnd(60)} \u2502`);if(paramLines.length>15)console.log(`\u2502 ... (${paramLines.length-15} more lines)`.padEnd(64)+" \u2502");if(payload.classPayload)try{const classConfig=JSON.parse(payload.classPayload);console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");console.log("\u2502 Job Configuration: \u2502");console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");console.log(`\u2502 Tries: ${String(classConfig.tries||3).padEnd(52)} \u2502`);console.log(`\u2502 Timeout: ${String(classConfig.timeout||60).padEnd(52)} \u2502`);if(classConfig.backoff)console.log(`\u2502 Backoff: ${String(JSON.stringify(classConfig.backoff)).substring(0,52).padEnd(52)} \u2502`)}catch{}}catch{console.log(`\u2502 Raw: ${job.payload.substring(0,58).padEnd(58)} \u2502`)}else console.log("\u2502 (No payload) \u2502");console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518");if(status==="Delayed"&&job.available_at){const waitTime=job.available_at-now;console.log(`
|
|
7
|
-
This job will be available in ${waitTime} second(s)`)}}process.exit(0)}catch(error){await log.error("Failed to inspect job",error);process.exit(1)}
|
|
7
|
+
This job will be available in ${waitTime} second(s)`)}}process.exit(0)}catch(error){await log.error("Failed to inspect job",error);process.exit(1)}
|
package/dist/queue/list.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import process from"node:process";import{log}from"@stacksjs/logging";import{
|
|
2
|
-
`);let jobs=queueName?await
|
|
1
|
+
import{queueActionOptions}from"./options";import process from"node:process";import{log}from"@stacksjs/logging";import{db}from"@stacksjs/database";const options=queueActionOptions(),{queue:queueName,status:statusFilter}=options,limit=options.limit?Number.parseInt(options.limit,10):50;try{log.info(`Fetching queued jobs...
|
|
2
|
+
`);let jobs=queueName?await db.selectFrom("jobs").selectAll().where("queue","=",queueName).execute():await db.selectFrom("jobs").selectAll().execute();const nowSec=Math.floor(Date.now()/1000);if(statusFilter==="pending")jobs=jobs.filter((j)=>!j.reserved_at&&(j.available_at??0)<=nowSec);else if(statusFilter==="reserved")jobs=jobs.filter((j)=>Boolean(j.reserved_at));else if(statusFilter==="delayed")jobs=jobs.filter((j)=>!j.reserved_at&&(j.available_at??0)>nowSec);if(Number.isFinite(limit)&&limit>0)jobs=jobs.slice(0,limit);if(jobs.length===0){console.log("\u2713 No queued jobs found");process.exit(0)}console.log("\u250C\u2500\u2500\u2500\u2500\u2500\u252C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510");console.log("\u2502 ID \u2502 Queue \u2502 Job \u2502 Attempts \u2502 Status \u2502 Available At \u2502");console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u253C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");for(const j of jobs){const jobAny=j,id=String(jobAny.id??"").padEnd(3),queue=String(jobAny.queue??"default").substring(0,18).padEnd(18),jobName=extractJobName(jobAny.payload).substring(0,32).padEnd(32),attempts=String(jobAny.attempts??0).padEnd(8),status=(jobAny.reserved_at?"reserved":(jobAny.available_at??0)>nowSec?"delayed":"pending").padEnd(8),avail=formatUnixTime(jobAny.available_at).padEnd(19);console.log(`\u2502 ${id} \u2502 ${queue} \u2502 ${jobName} \u2502 ${attempts} \u2502 ${status} \u2502 ${avail} \u2502`)}console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518");console.log(`
|
|
3
3
|
Showing ${jobs.length} job(s)${queueName?` on queue '${queueName}'`:""}${statusFilter?` (status=${statusFilter})`:""}`);process.exit(0)}catch(error){const message=error instanceof Error?error.message:String(error);if(/no such table:\s*jobs\b/i.test(message)){process.stdout.write(`Queue tables are not set up yet.
|
|
4
|
-
`);process.stdout.write("Run `buddy queue:table` to create the migrations, then `buddy migrate` to apply them.\n");process.exit(0)}await log.error("Failed to list queued jobs",error);process.exit(1)}function extractJobName(payload){if(typeof payload!=="string")return"unknown";try{const parsed=JSON.parse(payload);return parsed.jobName??parsed.name??"unknown"}catch{return"unknown"}}function formatUnixTime(seconds){if(typeof seconds!=="number"||!Number.isFinite(seconds))return"N/A";return new Date(seconds*1000).toISOString().slice(0,19).replace("T"," ")}
|
|
4
|
+
`);process.stdout.write("Run `buddy queue:table` to create the migrations, then `buddy migrate` to apply them.\n");process.exit(0)}await log.error("Failed to list queued jobs",error);process.exit(1)}function extractJobName(payload){if(typeof payload!=="string")return"unknown";try{const parsed=JSON.parse(payload);return parsed.jobName??parsed.name??"unknown"}catch{return"unknown"}}function formatUnixTime(seconds){if(typeof seconds!=="number"||!Number.isFinite(seconds))return"N/A";return new Date(seconds*1000).toISOString().slice(0,19).replace("T"," ")}
|
package/dist/queue/monitor.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import process from"node:process";import{log}from"@stacksjs/logging";import{
|
|
1
|
+
import{queueActionOptions}from"./options";import process from"node:process";import{log}from"@stacksjs/logging";import{db}from"@stacksjs/database";import{getActiveJobCount,isWorkerRunning}from"@stacksjs/queue";const options=queueActionOptions(),queueName=options.queue,refreshInterval=Number(options.interval)||2000;let isRunning=!0;process.on("SIGINT",()=>{isRunning=!1;console.log(`
|
|
2
2
|
|
|
3
|
-
Monitoring stopped.`);process.exit(0)});process.on("SIGTERM",()=>{isRunning=!1;process.exit(0)});async function getStats(){const allJobs=queueName?await
|
|
3
|
+
Monitoring stopped.`);process.exit(0)});process.on("SIGTERM",()=>{isRunning=!1;process.exit(0)});async function getStats(){const allJobs=queueName?await db.selectFrom("jobs").selectAll().where("queue","=",queueName).execute():await db.selectFrom("jobs").selectAll().execute(),failedJobs=queueName?await db.selectFrom("failed_jobs").selectAll().where("queue","=",queueName).execute():await db.selectFrom("failed_jobs").selectAll().execute(),now=Math.floor(Date.now()/1000);let pending=0,processing=0,delayed=0;for(const job of allJobs)if(job.reserved_at)processing++;else if(job.available_at&&Number(job.available_at)>now)delayed++;else pending++;return{pending,processing,delayed,failed:failedJobs.length,total:allJobs.length,workerRunning:isWorkerRunning(),activeJobs:getActiveJobCount()}}async function displayStats(){const stats=await getStats(),timestamp=new Date().toLocaleTimeString();console.clear();console.log("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510");console.log("\u2502 Queue Monitor \u2502");console.log("\u2502 Press Ctrl+C to exit \u2502");console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");console.log(`\u2502 Last Updated: ${timestamp.padEnd(48)} \u2502`);console.log(`\u2502 Queue Filter: ${(queueName||"All Queues").padEnd(48)} \u2502`);console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");console.log("\u2502 \u2502");console.log(`\u2502 Pending Jobs: ${String(stats.pending).padStart(8)} \u2502`);console.log(`\u2502 Processing Jobs: ${String(stats.processing).padStart(8)} \u2502`);console.log(`\u2502 Delayed Jobs: ${String(stats.delayed).padStart(8)} \u2502`);console.log(`\u2502 Failed Jobs: ${String(stats.failed).padStart(8)} \u2502`);console.log("\u2502 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 \u2502");console.log(`\u2502 Total Jobs: ${String(stats.total).padStart(8)} \u2502`);console.log("\u2502 \u2502");console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");console.log("\u2502 Worker Status \u2502");console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");console.log(`\u2502 Worker Running: ${(stats.workerRunning?"Yes":"No").padEnd(8)} \u2502`);console.log(`\u2502 Active Jobs: ${String(stats.activeJobs).padStart(8)} \u2502`);console.log("\u2502 \u2502");console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518");if(stats.failed>0)console.log(`
|
|
4
4
|
\u26A0\uFE0F Warning: ${stats.failed} failed job(s) - run 'buddy queue:failed' for details`);if(!stats.workerRunning&&stats.pending>0)console.log(`
|
|
5
5
|
\u26A0\uFE0F Warning: Worker not running but ${stats.pending} job(s) pending - run 'buddy queue:work'`)}try{log.info(`Starting queue monitor...
|
|
6
|
-
`);await displayStats();while(isRunning){await new Promise((resolve)=>setTimeout(resolve,refreshInterval));if(isRunning)await displayStats()}}catch(error){await log.error("Monitor error:",error);process.exit(1)}
|
|
6
|
+
`);await displayStats();while(isRunning){await new Promise((resolve)=>setTimeout(resolve,refreshInterval));if(isRunning)await displayStats()}}catch(error){await log.error("Monitor error:",error);process.exit(1)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{parseArgv}from"@stacksjs/cli";export function queueActionOptions(argv=process.argv.slice(2)){const{options}=parseArgv(argv,{coerceValues:!1}),values=new Set(["add","queue","id","for","concurrency","interval","limit","name","olderThanDays","reason","since","status"]);for(const[key,value]of Object.entries(options))if(values.has(key)&&typeof value!=="string")throw TypeError(`--${key} requires a value`);return Object.fromEntries(Object.entries(options).map(([key,value])=>[key,String(value)]))}
|
package/dist/queue/pause.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import process from"node:process";import{log}from"@stacksjs/logging";import{pauseQueue}from"@stacksjs/queue";const options=
|
|
1
|
+
import{queueActionOptions}from"./options";import process from"node:process";import{log}from"@stacksjs/logging";import{pauseQueue}from"@stacksjs/queue";const options=queueActionOptions(),queue=options.queue;if(!queue){await log.error("Usage: buddy queue:pause --queue=<name> [--for=300]");process.exit(1)}const pauseSeconds=options.for?Number.parseInt(options.for,10):300;try{await pauseQueue(queue,pauseSeconds);log.success(`Paused queue '${queue}' for ${pauseSeconds}s`);await log.flush();process.exit(0)}catch(error){await log.error("Failed to pause queue",error);process.exit(1)}
|
package/dist/queue/quarantine.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import process from"node:process";import{log}from"@stacksjs/logging";import{listQuarantined,quarantineJob}from"@stacksjs/queue";const options=
|
|
2
|
-
${rows.length} quarantined entrie(s). Use \`queue:unquarantine <JobName>\` to lift.`);process.exit(0)}catch(error){await log.error("Failed to handle queue:quarantine",error);process.exit(1)}
|
|
1
|
+
import{queueActionOptions}from"./options";import process from"node:process";import{log}from"@stacksjs/logging";import{listQuarantined,quarantineJob}from"@stacksjs/queue";const options=queueActionOptions();try{if(options.add){const jobName=options.add;await quarantineJob(jobName);log.success(`Quarantined ${jobName}`);await log.flush();process.exit(0)}const rows=await listQuarantined();if(rows.length===0){console.log("\u2713 No jobs currently quarantined");process.exit(0)}console.log("\u250C\u2500\u2500\u2500\u2500\u2500\u252C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510");console.log("\u2502 ID \u2502 Job Name \u2502 Payload Hash \u2502 Failures \u2502 Quarantined At \u2502");console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u253C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");for(const row of rows){const id=String(row.id).padEnd(3),jn=(row.job_name||"?").substring(0,32).padEnd(32),ph=(row.payload_hash||"?").substring(0,16).padEnd(16),fc=String(row.failure_count??0).padEnd(8),qa=(row.quarantined_at||"N/A").substring(0,24).padEnd(24);console.log(`\u2502 ${id} \u2502 ${jn} \u2502 ${ph} \u2502 ${fc} \u2502 ${qa} \u2502`)}console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518");console.log(`
|
|
2
|
+
${rows.length} quarantined entrie(s). Use \`queue:unquarantine <JobName>\` to lift.`);process.exit(0)}catch(error){await log.error("Failed to handle queue:quarantine",error);process.exit(1)}
|
package/dist/queue/resume.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import process from"node:process";import{log}from"@stacksjs/logging";import{resumeQueue}from"@stacksjs/queue";const options=
|
|
1
|
+
import{queueActionOptions}from"./options";import process from"node:process";import{log}from"@stacksjs/logging";import{resumeQueue}from"@stacksjs/queue";const options=queueActionOptions(),queue=options.queue;if(!queue){await log.error("Usage: buddy queue:resume --queue=<name>");process.exit(1)}try{await resumeQueue(queue);log.success(`Resumed queue '${queue}'`);await log.flush();process.exit(0)}catch(error){await log.error("Failed to resume queue",error);process.exit(1)}
|
package/dist/queue/retry.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import process from"node:process";import{log}from"@stacksjs/logging";import{executeFailedJobs,retryFailedJob}from"@stacksjs/queue";const options=
|
|
1
|
+
import{queueActionOptions}from"./options";import process from"node:process";import{log}from"@stacksjs/logging";import{executeFailedJobs,retryFailedJob}from"@stacksjs/queue";const options=queueActionOptions(),jobId=options.id,all=options.all==="true";try{if(all){log.info("Retrying all failed jobs...");await executeFailedJobs();log.success("All failed jobs have been queued for retry")}else if(jobId){const id=Number.parseInt(jobId,10);if(Number.isNaN(id)){await log.error("Invalid job ID provided");process.exit(1)}log.info(`Retrying failed job ${id}...`);await retryFailedJob(id);log.success(`Failed job ${id} has been queued for retry`)}else{log.warn("Please provide a job ID or use --all to retry all failed jobs");log.info("Usage: buddy queue:retry <id> or buddy queue:retry --all");await log.flush();process.exit(1)}process.exit(0)}catch(error){await log.error("Failed to retry job(s)",error);process.exit(1)}
|
package/dist/queue/status.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import process from"node:process";import{log}from"@stacksjs/logging";import{
|
|
2
|
-
`);const allJobs=queueName?await
|
|
1
|
+
import{queueActionOptions}from"./options";import process from"node:process";import{log}from"@stacksjs/logging";import{db}from"@stacksjs/database";const options=queueActionOptions(),queueName=options.queue;try{log.info(`Fetching queue status...
|
|
2
|
+
`);const allJobs=queueName?await db.selectFrom("jobs").selectAll().where("queue","=",queueName).execute():await db.selectFrom("jobs").selectAll().execute(),failedJobs=queueName?await db.selectFrom("failed_jobs").selectAll().where("queue","=",queueName).execute():await db.selectFrom("failed_jobs").selectAll().execute(),queueStats=new Map;for(const job of allJobs){const queue=job.queue||"default";if(!queueStats.has(queue))queueStats.set(queue,{pending:0,processing:0,delayed:0});const stats=queueStats.get(queue),now=Math.floor(Date.now()/1000);if(job.reserved_at)stats.processing++;else if(job.available_at&&Number(job.available_at)>now)stats.delayed++;else stats.pending++}const failedStats=new Map;for(const job of failedJobs){const queue=job.queue||"default";failedStats.set(queue,(failedStats.get(queue)||0)+1)}console.log("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510");console.log("\u2502 Queue \u2502 Pending \u2502 Processing \u2502 Delayed \u2502 Failed \u2502");console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");const allQueues=new Set([...queueStats.keys(),...failedStats.keys()]);if(allQueues.size===0)console.log("\u2502 No queues found \u2502");else for(const queue of allQueues){const stats=queueStats.get(queue)||{pending:0,processing:0,delayed:0},failed=failedStats.get(queue)||0,queueDisplay=queue.substring(0,48).padEnd(48),pendingDisplay=String(stats.pending).padStart(8),processingDisplay=String(stats.processing).padStart(10),delayedDisplay=String(stats.delayed).padStart(8),failedDisplay=String(failed).padStart(6);console.log(`\u2502 ${queueDisplay} \u2502${pendingDisplay} \u2502${processingDisplay} \u2502${delayedDisplay} \u2502${failedDisplay} \u2502`)}console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518");const totalPending=Array.from(queueStats.values()).reduce((sum,s)=>sum+s.pending,0),totalProcessing=Array.from(queueStats.values()).reduce((sum,s)=>sum+s.processing,0),totalDelayed=Array.from(queueStats.values()).reduce((sum,s)=>sum+s.delayed,0),totalFailed=Array.from(failedStats.values()).reduce((sum,n)=>sum+n,0);console.log(`
|
|
3
3
|
Summary:`);console.log(` Pending: ${totalPending}`);console.log(` Processing: ${totalProcessing}`);console.log(` Delayed: ${totalDelayed}`);console.log(` Failed: ${totalFailed}`);console.log(` Total: ${totalPending+totalProcessing+totalDelayed+totalFailed}`);process.exit(0)}catch(error){const message=error instanceof Error?error.message:String(error);if(/no such table:\s*(?:jobs|failed_jobs)\b/i.test(message)){process.stdout.write(`Queue tables are not set up yet.
|
|
4
|
-
`);process.stdout.write("Run `buddy queue:table` to create the migrations, then `buddy migrate` to apply them.\n");process.exit(0)}await log.error("Failed to get queue status",error);process.exit(1)}
|
|
4
|
+
`);process.stdout.write("Run `buddy queue:table` to create the migrations, then `buddy migrate` to apply them.\n");process.exit(0)}await log.error("Failed to get queue status",error);process.exit(1)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import process from"node:process";import{log}from"@stacksjs/logging";import{unquarantineJob}from"@stacksjs/queue";const options=
|
|
1
|
+
import{queueActionOptions}from"./options";import process from"node:process";import{log}from"@stacksjs/logging";import{unquarantineJob}from"@stacksjs/queue";const options=queueActionOptions(),jobName=options.name;if(!jobName){await log.error("Usage: buddy queue:unquarantine --name=<JobName>");process.exit(1)}try{await unquarantineJob(jobName);log.success(`Lifted quarantine for ${jobName}`);await log.flush();process.exit(0)}catch(error){await log.error("Failed to unquarantine",error);process.exit(1)}
|
package/dist/queue/work.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import process from"node:process";import{log}from"@stacksjs/logging";import{startProcessor,stopProcessor}from"@stacksjs/queue";import{injectGlobalAutoImports}from"@stacksjs/server";process.on("unhandledRejection",(reason)=>{log.error(`Unhandled Rejection in queue worker: ${reason}`)});process.on("uncaughtException",(error)=>{log.error(`Uncaught Exception in queue worker: ${error.message}`)});const SHUTDOWN_GRACE_MS=Number(process.env.STACKS_QUEUE_SHUTDOWN_GRACE_MS)||1e4;let shuttingDown=!1;async function gracefulShutdown(signal){if(shuttingDown)return;shuttingDown=!0;log.info(`[queue] Worker received ${signal}, draining in-flight jobs (max ${SHUTDOWN_GRACE_MS/1000}s)\u2026`);setTimeout(()=>{console.error("[queue] Drain window exceeded - forcing worker exit.");process.exit(1)},SHUTDOWN_GRACE_MS+2000).unref();try{await stopProcessor({graceMs:SHUTDOWN_GRACE_MS})}catch(error){await log.error("[queue] Error while draining worker on shutdown:",error)}process.exit(0)}process.on("SIGTERM",()=>{gracefulShutdown("SIGTERM")});process.on("SIGINT",()=>{gracefulShutdown("SIGINT")});const options=
|
|
1
|
+
import{queueActionOptions}from"./options";import process from"node:process";import{log}from"@stacksjs/logging";import{startProcessor,stopProcessor}from"@stacksjs/queue";import{injectGlobalAutoImports}from"@stacksjs/server";process.on("unhandledRejection",(reason)=>{log.error(`Unhandled Rejection in queue worker: ${reason}`)});process.on("uncaughtException",(error)=>{log.error(`Uncaught Exception in queue worker: ${error.message}`)});const SHUTDOWN_GRACE_MS=Number(process.env.STACKS_QUEUE_SHUTDOWN_GRACE_MS)||1e4;let shuttingDown=!1;async function gracefulShutdown(signal){if(shuttingDown)return;shuttingDown=!0;log.info(`[queue] Worker received ${signal}, draining in-flight jobs (max ${SHUTDOWN_GRACE_MS/1000}s)\u2026`);setTimeout(()=>{console.error("[queue] Drain window exceeded - forcing worker exit.");process.exit(1)},SHUTDOWN_GRACE_MS+2000).unref();try{await stopProcessor({graceMs:SHUTDOWN_GRACE_MS})}catch(error){await log.error("[queue] Error while draining worker on shutdown:",error)}process.exit(0)}process.on("SIGTERM",()=>{gracefulShutdown("SIGTERM")});process.on("SIGINT",()=>{gracefulShutdown("SIGINT")});const options=queueActionOptions(),queue=options.queue,concurrency=Number(options.concurrency)||1;await injectGlobalAutoImports();log.info(`Starting queue worker with ${concurrency} concurrent worker(s)...`);const result=await startProcessor(queue,{concurrency});if(result.isErr){await log.error("Failed to start queue worker:",result.error);process.exit(1)}log.success("Queue worker started successfully!");await new Promise(()=>{});
|
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.505",
|
|
6
6
|
"description": "The Stacks actions.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -66,54 +66,54 @@
|
|
|
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.505",
|
|
70
|
+
"@stacksjs/ai": "0.75.505",
|
|
71
|
+
"@stacksjs/analytics": "0.75.505",
|
|
72
|
+
"@stacksjs/api": "0.75.505",
|
|
73
|
+
"@stacksjs/auth": "0.75.505",
|
|
74
|
+
"@stacksjs/build": "0.75.505",
|
|
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.
|
|
77
|
+
"@stacksjs/cli": "0.75.505",
|
|
78
|
+
"@stacksjs/cloud": "0.75.505",
|
|
79
|
+
"@stacksjs/cms": "0.75.505",
|
|
80
80
|
"@stacksjs/components": "0.2.807",
|
|
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.
|
|
81
|
+
"@stacksjs/config": "0.75.505",
|
|
82
|
+
"@stacksjs/database": "0.75.505",
|
|
83
|
+
"@stacksjs/desktop-build": "0.75.505",
|
|
84
|
+
"@stacksjs/dns": "0.75.505",
|
|
85
|
+
"@stacksjs/enums": "0.75.505",
|
|
86
|
+
"@stacksjs/env": "0.75.505",
|
|
87
|
+
"@stacksjs/error-handling": "0.75.505",
|
|
88
|
+
"@stacksjs/github": "0.75.505",
|
|
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.505",
|
|
91
|
+
"@stacksjs/image": "0.75.505",
|
|
92
|
+
"@stacksjs/logging": "0.75.505",
|
|
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.505",
|
|
95
|
+
"@stacksjs/orm": "0.75.505",
|
|
96
|
+
"@stacksjs/path": "0.75.505",
|
|
97
|
+
"@stacksjs/payments": "0.75.505",
|
|
98
|
+
"@stacksjs/queue": "0.75.505",
|
|
99
|
+
"@stacksjs/registry": "0.75.505",
|
|
100
|
+
"@stacksjs/router": "0.75.505",
|
|
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.
|
|
102
|
+
"@stacksjs/scheduler": "0.75.505",
|
|
103
|
+
"@stacksjs/search-engine": "0.75.505",
|
|
104
|
+
"@stacksjs/security": "0.75.505",
|
|
105
|
+
"@stacksjs/server": "0.75.505",
|
|
106
|
+
"@stacksjs/sites": "0.75.505",
|
|
107
|
+
"@stacksjs/storage": "0.75.505",
|
|
108
|
+
"@stacksjs/strings": "0.75.505",
|
|
109
109
|
"@stacksjs/stx": "0.2.807",
|
|
110
110
|
"@stacksjs/tlsx": "^0.13.19",
|
|
111
111
|
"@stacksjs/ts-cloud": "^0.16.102",
|
|
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.
|
|
113
|
+
"@stacksjs/tunnel": "0.75.505",
|
|
114
|
+
"@stacksjs/types": "0.75.505",
|
|
115
|
+
"@stacksjs/utils": "0.75.505",
|
|
116
|
+
"@stacksjs/whois": "0.75.505",
|
|
117
117
|
"bun-plugin-stx": "0.2.807"
|
|
118
118
|
},
|
|
119
119
|
"peerDependencies": {
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
"devDependencies": {
|
|
132
|
-
"@stacksjs/validation": "0.75.
|
|
132
|
+
"@stacksjs/validation": "0.75.505",
|
|
133
133
|
"better-dx": "^0.2.24"
|
|
134
134
|
}
|
|
135
135
|
}
|