opencode-supertask 0.2.1 → 0.3.1
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/CHANGELOG.md +34 -0
- package/README.md +10 -0
- package/README.zh-CN.md +10 -0
- package/dist/cli/{chunk-NCT3ETTK.js → chunk-7BATA4DM.js} +20 -1
- package/dist/cli/chunk-7BATA4DM.js.map +1 -0
- package/dist/cli/{chunk-J34FWHQU.js → chunk-ETLJ4YXW.js} +3 -2
- package/dist/cli/chunk-ETLJ4YXW.js.map +1 -0
- package/dist/cli/{chunk-AZM76ISG.js → chunk-INW2NH3O.js} +6 -5
- package/dist/cli/chunk-INW2NH3O.js.map +1 -0
- package/dist/cli/{chunk-CMEP6IB4.js → chunk-K6UTYKN5.js} +19 -5
- package/dist/cli/{chunk-CMEP6IB4.js.map → chunk-K6UTYKN5.js.map} +1 -1
- package/dist/cli/{chunk-ZBH7YWXF.js → chunk-KC34M3F3.js} +2 -2
- package/dist/cli/{chunk-DF56RPNL.js → chunk-MZLIVCEU.js} +10 -2
- package/dist/cli/{chunk-DF56RPNL.js.map → chunk-MZLIVCEU.js.map} +1 -1
- package/dist/cli/{chunk-5VKFECHP.js → chunk-OJLDJVHB.js} +3 -3
- package/dist/cli/{chunk-LX5CBJLP.js → chunk-WHGCKWMR.js} +26 -3
- package/dist/cli/chunk-WHGCKWMR.js.map +1 -0
- package/dist/cli/{chunk-EQWICVCJ.js → chunk-XUCZLWCB.js} +48 -6
- package/dist/cli/chunk-XUCZLWCB.js.map +1 -0
- package/dist/cli/{chunk-YB7MYTE5.js → chunk-XWTKMNNI.js} +3 -1
- package/dist/cli/chunk-XWTKMNNI.js.map +1 -0
- package/dist/cli/{chunk-DIJEKFBV.js → chunk-YADLWDYK.js} +4 -4
- package/dist/cli/{chunk-YGELD2E5.js → chunk-ZIR7RA5B.js} +7 -4
- package/dist/cli/{chunk-YGELD2E5.js.map → chunk-ZIR7RA5B.js.map} +1 -1
- package/dist/cli/database-maintenance.service-NQBZ5VJT.js +16 -0
- package/dist/cli/{db-H7GIFWS2.js → db-KWSXP22E.js} +2 -2
- package/dist/cli/{doctor-smoke-QXHF7UNN.js → doctor-smoke-6VU2KCRK.js} +7 -7
- package/dist/cli/{gateway-BYLLK72W.js → gateway-I2SQOXWB.js} +686 -24
- package/dist/cli/gateway-I2SQOXWB.js.map +1 -0
- package/dist/cli/{gateway-wake-U4HTV56Q.js → gateway-wake-M5EXAIGD.js} +2 -2
- package/dist/cli/index.js +38 -38
- package/dist/cli/{job-templates-RPQJ4XXW.js → job-templates-FH7SGS34.js} +5 -5
- package/dist/cli/{logs-QD2N62KK.js → logs-HB5RV7HD.js} +7 -7
- package/dist/cli/{pm2-WY644BUO.js → pm2-YSCAIIBU.js} +2 -2
- package/dist/cli/task-run.service-R45W2VID.js +15 -0
- package/dist/cli/task-template.service-VA4WBJA4.js +12 -0
- package/dist/cli/{task.service-ZVDJ6VSQ.js → task.service-RB6RKV7T.js} +3 -3
- package/dist/cli/{update-FYD546I2.js → update-FMCBRTHT.js} +4 -4
- package/dist/cli/{web-J3FJ23FE.js → web-4QWJ4Z5K.js} +157 -17
- package/dist/cli/{web-J3FJ23FE.js.map → web-4QWJ4Z5K.js.map} +1 -1
- package/dist/daemon/gateway-diagnostic-runner.js.map +1 -1
- package/dist/gateway/index.d.ts +1 -0
- package/dist/gateway/index.js +929 -31
- package/dist/gateway/index.js.map +1 -1
- package/dist/plugin/supertask.js +106 -11
- package/dist/plugin/supertask.js.map +1 -1
- package/dist/web/index.js +235 -16
- package/dist/web/index.js.map +1 -1
- package/dist/worker/index.d.ts +492 -1
- package/dist/worker/index.js +728 -20
- package/dist/worker/index.js.map +1 -1
- package/dist/worker/launcher.js.map +1 -1
- package/drizzle/0010_task_metadata.sql +2 -0
- package/drizzle/meta/0010_snapshot.json +695 -0
- package/drizzle/meta/_journal.json +7 -0
- package/package.json +1 -1
- package/dist/cli/chunk-AZM76ISG.js.map +0 -1
- package/dist/cli/chunk-EQWICVCJ.js.map +0 -1
- package/dist/cli/chunk-J34FWHQU.js.map +0 -1
- package/dist/cli/chunk-LX5CBJLP.js.map +0 -1
- package/dist/cli/chunk-NCT3ETTK.js.map +0 -1
- package/dist/cli/chunk-YB7MYTE5.js.map +0 -1
- package/dist/cli/database-maintenance.service-F3IZU52F.js +0 -16
- package/dist/cli/gateway-BYLLK72W.js.map +0 -1
- package/dist/cli/task-run.service-QMDINJKG.js +0 -15
- package/dist/cli/task-template.service-SZBKGLCB.js +0 -12
- /package/dist/cli/{chunk-ZBH7YWXF.js.map → chunk-KC34M3F3.js.map} +0 -0
- /package/dist/cli/{chunk-5VKFECHP.js.map → chunk-OJLDJVHB.js.map} +0 -0
- /package/dist/cli/{chunk-DIJEKFBV.js.map → chunk-YADLWDYK.js.map} +0 -0
- /package/dist/cli/{database-maintenance.service-F3IZU52F.js.map → database-maintenance.service-NQBZ5VJT.js.map} +0 -0
- /package/dist/cli/{db-H7GIFWS2.js.map → db-KWSXP22E.js.map} +0 -0
- /package/dist/cli/{doctor-smoke-QXHF7UNN.js.map → doctor-smoke-6VU2KCRK.js.map} +0 -0
- /package/dist/cli/{gateway-wake-U4HTV56Q.js.map → gateway-wake-M5EXAIGD.js.map} +0 -0
- /package/dist/cli/{job-templates-RPQJ4XXW.js.map → job-templates-FH7SGS34.js.map} +0 -0
- /package/dist/cli/{logs-QD2N62KK.js.map → logs-HB5RV7HD.js.map} +0 -0
- /package/dist/cli/{pm2-WY644BUO.js.map → pm2-YSCAIIBU.js.map} +0 -0
- /package/dist/cli/{task-run.service-QMDINJKG.js.map → task-run.service-R45W2VID.js.map} +0 -0
- /package/dist/cli/{task-template.service-SZBKGLCB.js.map → task-template.service-VA4WBJA4.js.map} +0 -0
- /package/dist/cli/{task.service-ZVDJ6VSQ.js.map → task.service-RB6RKV7T.js.map} +0 -0
- /package/dist/cli/{update-FYD546I2.js.map → update-FMCBRTHT.js.map} +0 -0
package/dist/cli/index.js
CHANGED
|
@@ -3371,7 +3371,7 @@ var t = (zh, en) => cliText(cliLocale, zh, en);
|
|
|
3371
3371
|
async function withDb(fn, formatError = (error) => JSON.stringify({
|
|
3372
3372
|
error: error instanceof Error ? error.message : String(error)
|
|
3373
3373
|
})) {
|
|
3374
|
-
const { closeDb } = await import("./db-
|
|
3374
|
+
const { closeDb } = await import("./db-KWSXP22E.js");
|
|
3375
3375
|
try {
|
|
3376
3376
|
return await fn();
|
|
3377
3377
|
} catch (error) {
|
|
@@ -3397,13 +3397,13 @@ async function resolvePromptInput(options) {
|
|
|
3397
3397
|
return void 0;
|
|
3398
3398
|
}
|
|
3399
3399
|
async function notifyGateway(reason) {
|
|
3400
|
-
const { wakeGateway } = await import("./gateway-wake-
|
|
3400
|
+
const { wakeGateway } = await import("./gateway-wake-M5EXAIGD.js");
|
|
3401
3401
|
await wakeGateway(reason);
|
|
3402
3402
|
}
|
|
3403
3403
|
async function runDestructiveDatabaseMaintenance(keepStopped, operation) {
|
|
3404
3404
|
const [{ DatabaseMaintenanceService }, { withGatewayMaintenance }] = await Promise.all([
|
|
3405
|
-
import("./database-maintenance.service-
|
|
3406
|
-
import("./pm2-
|
|
3405
|
+
import("./database-maintenance.service-NQBZ5VJT.js"),
|
|
3406
|
+
import("./pm2-YSCAIIBU.js")
|
|
3407
3407
|
]);
|
|
3408
3408
|
const maintenance = withGatewayMaintenance(keepStopped, operation, {
|
|
3409
3409
|
assertIdleBeforeStop: () => DatabaseMaintenanceService.assertIdleBeforeGatewayStop(),
|
|
@@ -3427,7 +3427,7 @@ if (cliLocale === "zh-CN") {
|
|
|
3427
3427
|
}
|
|
3428
3428
|
program2.command("add").description(t("\u521B\u5EFA\u65B0\u4EFB\u52A1", "create a queued task")).requiredOption("-n, --name <name>", t("\u4EFB\u52A1\u540D\u79F0", "task name")).requiredOption("-a, --agent <agent>", t("\u4E3B Agent \u540D\u79F0", "primary agent name")).option("-p, --prompt <prompt>", t("\u63D0\u793A\u8BCD\uFF08\u4E0E --prompt-file \u4E8C\u9009\u4E00\uFF09", "prompt (mutually exclusive with --prompt-file)")).option("--prompt-file <path>", t("\u4ECE\u6587\u4EF6\u8BFB\u53D6\u63D0\u793A\u8BCD\uFF08\u4E0E --prompt \u4E8C\u9009\u4E00\uFF09", "read prompt from a file (mutually exclusive with --prompt)")).option("-m, --model <model>", t("\u6A21\u578B", "model")).option("--variant <variant>", t("\u6A21\u578B variant\uFF0C\u5982 high / xhigh", "model variant, e.g. high / xhigh")).option("-c, --category <category>", t("\u5206\u7C7B", "category"), "general").option("-i, --importance <number>", t("\u91CD\u8981\u7A0B\u5EA6 (1-5)", "importance (1-5)"), "3").option("-u, --urgency <number>", t("\u7D27\u6025\u7A0B\u5EA6 (1-5)", "urgency (1-5)"), "3").option("-b, --batch <batchId>", t("\u6279\u6B21 ID", "batch ID")).option("-d, --depends <taskId>", t("\u4F9D\u8D56\u7684\u4EFB\u52A1 ID", "dependency task ID")).option("--max-retries <number>", t("\u9996\u6B21\u6267\u884C\u4E4B\u5916\u5141\u8BB8\u7684\u91CD\u8BD5\u6B21\u6570", "retries allowed after the first attempt"), "3").option("--retry-backoff <duration>", t("\u91CD\u8BD5\u9000\u907F\u57FA\u7840\u95F4\u9694\uFF0C\u5982 30s / 5min", "retry backoff base, e.g. 30s / 5min"), "30s").option("--timeout <duration>", t("\u4EFB\u52A1\u786C\u8D85\u65F6\uFF0C\u5982 30min / 2h", "hard timeout, e.g. 30min / 2h")).option("-w, --cwd <path>", t("(\u5DF2\u5E9F\u5F03) \u7CFB\u7EDF\u4F1A\u81EA\u52A8\u8BB0\u5F55\u63D0\u4EA4\u65F6\u7684\u5F53\u524D\u76EE\u5F55", "(deprecated) the submission directory is recorded automatically")).action(async (options) => withDb(async () => {
|
|
3429
3429
|
const [{ TaskService }, { parseDuration }] = await Promise.all([
|
|
3430
|
-
import("./task.service-
|
|
3430
|
+
import("./task.service-RB6RKV7T.js"),
|
|
3431
3431
|
import("./duration-Q3UMLO6F.js")
|
|
3432
3432
|
]);
|
|
3433
3433
|
const prompt = await resolvePromptInput({
|
|
@@ -3471,7 +3471,7 @@ program2.command("edit").description(t("\u4FEE\u6539\u5F53\u524D\u9879\u76EE\u4E
|
|
|
3471
3471
|
throw new Error("variant \u548C clear-variant \u4E0D\u80FD\u540C\u65F6\u4F7F\u7528");
|
|
3472
3472
|
}
|
|
3473
3473
|
const [{ TaskService }, { parseDuration }] = await Promise.all([
|
|
3474
|
-
import("./task.service-
|
|
3474
|
+
import("./task.service-RB6RKV7T.js"),
|
|
3475
3475
|
import("./duration-Q3UMLO6F.js")
|
|
3476
3476
|
]);
|
|
3477
3477
|
const prompt = await resolvePromptInput({
|
|
@@ -3529,7 +3529,7 @@ program2.command("clone").description(t("\u514B\u9686\u5F53\u524D\u9879\u76EE\u4
|
|
|
3529
3529
|
throw new Error("variant \u548C clear-variant \u4E0D\u80FD\u540C\u65F6\u4F7F\u7528");
|
|
3530
3530
|
}
|
|
3531
3531
|
const [{ TaskService }, { parseDuration }] = await Promise.all([
|
|
3532
|
-
import("./task.service-
|
|
3532
|
+
import("./task.service-RB6RKV7T.js"),
|
|
3533
3533
|
import("./duration-Q3UMLO6F.js")
|
|
3534
3534
|
]);
|
|
3535
3535
|
const prompt = await resolvePromptInput({
|
|
@@ -3582,7 +3582,7 @@ program2.command("clone").description(t("\u514B\u9686\u5F53\u524D\u9879\u76EE\u4
|
|
|
3582
3582
|
console.log(JSON.stringify({ id: cloned.id, clonedFrom: id, status: cloned.status }, null, 2));
|
|
3583
3583
|
}));
|
|
3584
3584
|
program2.command("next").description(t("\u83B7\u53D6\u4E0B\u4E00\u4E2A\u5F85\u6267\u884C\u7684\u4EFB\u52A1", "show the next runnable task")).action(async () => withDb(async () => {
|
|
3585
|
-
const { TaskService } = await import("./task.service-
|
|
3585
|
+
const { TaskService } = await import("./task.service-RB6RKV7T.js");
|
|
3586
3586
|
const task = await TaskService.next({ cwd: process.cwd() });
|
|
3587
3587
|
if (task) {
|
|
3588
3588
|
console.log(JSON.stringify({
|
|
@@ -3602,7 +3602,7 @@ program2.command("next").description(t("\u83B7\u53D6\u4E0B\u4E00\u4E2A\u5F85\u62
|
|
|
3602
3602
|
}
|
|
3603
3603
|
}));
|
|
3604
3604
|
program2.command("cancel").description(t("\u53D6\u6D88\u4EFB\u52A1", "cancel a task")).requiredOption("--id <id>", t("\u4EFB\u52A1 ID", "task ID")).action(async (options) => withDb(async () => {
|
|
3605
|
-
const { TaskService } = await import("./task.service-
|
|
3605
|
+
const { TaskService } = await import("./task.service-RB6RKV7T.js");
|
|
3606
3606
|
const task = await TaskService.cancel(parsePositiveInteger(options.id, "id"), { cwd: process.cwd() });
|
|
3607
3607
|
if (task) {
|
|
3608
3608
|
await notifyGateway("cli:cancel");
|
|
@@ -3617,7 +3617,7 @@ runCommand.command("abandon").description(t("\u4EBA\u5DE5\u5173\u95ED\u5DF2\u786
|
|
|
3617
3617
|
if (options.confirm !== "ABANDON") {
|
|
3618
3618
|
throw new Error("\u5173\u95ED\u65E7\u7248\u9694\u79BB run \u5FC5\u987B\u663E\u5F0F\u4F20\u5165 --confirm ABANDON");
|
|
3619
3619
|
}
|
|
3620
|
-
const { TaskRunService } = await import("./task-run.service-
|
|
3620
|
+
const { TaskRunService } = await import("./task-run.service-R45W2VID.js");
|
|
3621
3621
|
const runId = parsePositiveInteger(options.id, "id");
|
|
3622
3622
|
const result = await TaskRunService.abandonLegacyRun(runId);
|
|
3623
3623
|
if (!result) throw new Error(`run #${runId} \u4E0D\u5B58\u5728`);
|
|
@@ -3625,7 +3625,7 @@ runCommand.command("abandon").description(t("\u4EBA\u5DE5\u5173\u95ED\u5DF2\u786
|
|
|
3625
3625
|
}));
|
|
3626
3626
|
program2.addCommand(runCommand);
|
|
3627
3627
|
program2.command("retry").description(t("\u91CD\u8BD5\u5931\u8D25\u7684\u4EFB\u52A1", "retry failed tasks")).option("--id <id>", t("\u4EFB\u52A1 ID", "task ID")).option("-b, --batch <batchId>", t("\u6279\u6B21 ID\uFF08\u6279\u91CF\u91CD\u8BD5\uFF09", "batch ID for bulk retry")).action(async (options) => withDb(async () => {
|
|
3628
|
-
const { TaskService } = await import("./task.service-
|
|
3628
|
+
const { TaskService } = await import("./task.service-RB6RKV7T.js");
|
|
3629
3629
|
if (options.id) {
|
|
3630
3630
|
const task = await TaskService.retry(parsePositiveInteger(options.id, "id"), { cwd: process.cwd() });
|
|
3631
3631
|
if (task) {
|
|
@@ -3646,7 +3646,7 @@ program2.command("retry").description(t("\u91CD\u8BD5\u5931\u8D25\u7684\u4EFB\u5
|
|
|
3646
3646
|
}));
|
|
3647
3647
|
program2.command("status").description(t("\u67E5\u770B\u4EFB\u52A1\u7EDF\u8BA1", "show task counts")).option("-b, --batch <batchId>", t("\u6309\u6279\u6B21\u7EDF\u8BA1", "filter counts by batch")).option("--json", t("\u5F3A\u5236\u8F93\u51FA JSON", "force JSON output")).action(async (options) => withDb(async () => {
|
|
3648
3648
|
const [{ TaskService }, { renderTaskStatus }] = await Promise.all([
|
|
3649
|
-
import("./task.service-
|
|
3649
|
+
import("./task.service-RB6RKV7T.js"),
|
|
3650
3650
|
import("./output-2INTEUFQ.js")
|
|
3651
3651
|
]);
|
|
3652
3652
|
const stats = await TaskService.stats({ batchId: options.batch, cwd: process.cwd() });
|
|
@@ -3658,7 +3658,7 @@ program2.command("status").description(t("\u67E5\u770B\u4EFB\u52A1\u7EDF\u8BA1",
|
|
|
3658
3658
|
}));
|
|
3659
3659
|
program2.command("list").description(t("\u5217\u51FA\u4EFB\u52A1", "list tasks")).option("-s, --status <status>", t("\u6309\u72B6\u6001\u7B5B\u9009", "filter by status")).option("-b, --batch <batchId>", t("\u6309\u6279\u6B21\u7B5B\u9009", "filter by batch")).option("-c, --category <category>", t("\u6309\u5206\u7C7B\u7B5B\u9009", "filter by category")).option("-a, --agent <name>", t("\u6309 Agent \u7B5B\u9009", "filter by agent")).option("--template <id>", t("\u6309\u5B9A\u65F6\u6A21\u677F ID \u7B5B\u9009", "filter by template ID")).option("--search <query>", t("\u6309\u540D\u79F0\u3001\u63D0\u793A\u8BCD\u3001\u6279\u6B21\u6216 ID \u641C\u7D22", "search by name, prompt, batch, or ID")).option("--all", t("\u5217\u51FA\u6240\u6709\u9879\u76EE\u7684\u4EFB\u52A1\uFF08\u9ED8\u8BA4\u4EC5\u5F53\u524D\u76EE\u5F55\uFF09", "list tasks across all projects")).option("-l, --limit <number>", t("\u9650\u5236\u6570\u91CF", "maximum rows"), "20").option("--json", t("\u5F3A\u5236\u8F93\u51FA JSON", "force JSON output")).action(async (options) => withDb(async () => {
|
|
3660
3660
|
const [{ TaskService }, { renderTaskList }] = await Promise.all([
|
|
3661
|
-
import("./task.service-
|
|
3661
|
+
import("./task.service-RB6RKV7T.js"),
|
|
3662
3662
|
import("./output-2INTEUFQ.js")
|
|
3663
3663
|
]);
|
|
3664
3664
|
const tasks = await TaskService.list({
|
|
@@ -3676,7 +3676,7 @@ program2.command("list").description(t("\u5217\u51FA\u4EFB\u52A1", "list tasks")
|
|
|
3676
3676
|
}));
|
|
3677
3677
|
program2.command("get").description(t("\u83B7\u53D6\u5355\u4E2A\u4EFB\u52A1\u8BE6\u60C5", "show one task")).requiredOption("--id <id>", t("\u4EFB\u52A1 ID", "task ID")).option("--json", t("\u5F3A\u5236\u8F93\u51FA JSON", "force JSON output")).action(async (options) => withDb(async () => {
|
|
3678
3678
|
const [{ TaskService }, { renderTaskDetail }] = await Promise.all([
|
|
3679
|
-
import("./task.service-
|
|
3679
|
+
import("./task.service-RB6RKV7T.js"),
|
|
3680
3680
|
import("./output-2INTEUFQ.js")
|
|
3681
3681
|
]);
|
|
3682
3682
|
const task = await TaskService.getById(parsePositiveInteger(options.id, "id"), { cwd: process.cwd() });
|
|
@@ -3688,7 +3688,7 @@ program2.command("get").description(t("\u83B7\u53D6\u5355\u4E2A\u4EFB\u52A1\u8BE
|
|
|
3688
3688
|
}
|
|
3689
3689
|
}));
|
|
3690
3690
|
program2.command("logs").description(t("\u67E5\u770B\u4EFB\u52A1\u6700\u65B0\u6216\u6307\u5B9A\u6267\u884C\u8BB0\u5F55\u7684\u65E5\u5FD7", "show or follow task run logs")).option("--id <id>", t("\u4EFB\u52A1 ID\uFF08\u9ED8\u8BA4\u8BFB\u53D6\u6700\u65B0\u4E00\u6B21\u6267\u884C\u8BB0\u5F55\uFF09", "task ID (uses the latest run by default)")).option("--run-id <runId>", t("\u6267\u884C\u8BB0\u5F55 run ID", "run ID")).option("-n, --tail <lines>", t("\u663E\u793A\u5C3E\u90E8\u884C\u6570", "number of trailing lines"), "100").option("-f, --follow", t("\u5B9E\u65F6\u5C3E\u968F\u8FD0\u884C\u4E2D\u7684\u65E5\u5FD7\u8F93\u51FA", "follow live log output while running")).option("--json", t("\u5F3A\u5236\u8F93\u51FA JSON", "force JSON output")).action(async (options) => withDb(async () => {
|
|
3691
|
-
const { runLogsCommand } = await import("./logs-
|
|
3691
|
+
const { runLogsCommand } = await import("./logs-HB5RV7HD.js");
|
|
3692
3692
|
await runLogsCommand({
|
|
3693
3693
|
taskId: options.id !== void 0 ? parsePositiveInteger(options.id, "id") : void 0,
|
|
3694
3694
|
runId: options.runId !== void 0 ? parsePositiveInteger(options.runId, "run-id") : void 0,
|
|
@@ -3700,7 +3700,7 @@ program2.command("logs").description(t("\u67E5\u770B\u4EFB\u52A1\u6700\u65B0\u62
|
|
|
3700
3700
|
});
|
|
3701
3701
|
}));
|
|
3702
3702
|
program2.command("delete").description(t("\u5220\u9664\u4EFB\u52A1", "delete a task")).requiredOption("--id <id>", t("\u4EFB\u52A1 ID", "task ID")).action(async (options) => withDb(async () => {
|
|
3703
|
-
const { TaskService } = await import("./task.service-
|
|
3703
|
+
const { TaskService } = await import("./task.service-RB6RKV7T.js");
|
|
3704
3704
|
const id = parsePositiveInteger(options.id, "id");
|
|
3705
3705
|
const deleted = await TaskService.delete(id, { cwd: process.cwd() });
|
|
3706
3706
|
console.log(JSON.stringify({ deleted, id }));
|
|
@@ -3709,7 +3709,7 @@ program2.command("delete").description(t("\u5220\u9664\u4EFB\u52A1", "delete a t
|
|
|
3709
3709
|
program2.command("template").description(t("\u7BA1\u7406\u5B9A\u65F6\u4EFB\u52A1\u6A21\u677F", "manage scheduled task templates")).addCommand(
|
|
3710
3710
|
new Command("add").description(t("\u521B\u5EFA\u5B9A\u65F6\u4EFB\u52A1\u6A21\u677F", "create a scheduled task template")).requiredOption("-n, --name <name>", t("\u6A21\u677F\u540D\u79F0", "template name")).requiredOption("-a, --agent <agent>", t("Agent \u540D\u79F0", "agent name")).option("-p, --prompt <prompt>", t("\u63D0\u793A\u8BCD\uFF08\u4E0E --prompt-file \u4E8C\u9009\u4E00\uFF09", "prompt (mutually exclusive with --prompt-file)")).option("--prompt-file <path>", t("\u4ECE\u6587\u4EF6\u8BFB\u53D6\u63D0\u793A\u8BCD\uFF08\u4E0E --prompt \u4E8C\u9009\u4E00\uFF09", "read prompt from a file (mutually exclusive with --prompt)")).requiredOption("-t, --type <type>", t("\u5B9A\u65F6\u7C7B\u578B\uFF1Acron/delayed/recurring", "schedule type: cron/delayed/recurring")).option("--cron <expr>", t("cron \u8868\u8FBE\u5F0F\uFF08cron \u7C7B\u578B\u5FC5\u586B\uFF09", "cron expression (required for cron)")).option("--delay <duration>", t("\u5EF6\u8FDF\u65F6\u95F4\uFF08delayed \u5FC5\u586B\uFF09\uFF0C\u5982 30s / 5min / 1h / 2d", "delay (required for delayed), e.g. 30s / 5min / 1h / 2d")).option("--interval <duration>", t("\u5FAA\u73AF\u95F4\u9694\uFF08recurring \u5FC5\u586B\uFF09\uFF0C\u5982 1h / 30min / 5s", "interval (required for recurring), e.g. 1h / 30min / 5s")).option("-m, --model <model>", t("\u6A21\u578B", "model")).option("--variant <variant>", t("\u6A21\u578B variant\uFF0C\u5982 high / xhigh", "model variant, e.g. high / xhigh")).option("-c, --category <category>", t("\u5206\u7C7B", "category"), "general").option("-i, --importance <number>", t("\u91CD\u8981\u7A0B\u5EA6 1-5", "importance 1-5"), "3").option("-u, --urgency <number>", t("\u7D27\u6025\u7A0B\u5EA6 1-5", "urgency 1-5"), "3").option("-b, --batch <batchId>", t("\u6A21\u677F\u751F\u6210\u4EFB\u52A1\u7684\u6279\u6B21 ID", "batch ID for generated tasks")).option("--max-instances <number>", t("\u81EA\u52A8\u5B9A\u65F6\u4EFB\u52A1\u7684\u6D3B\u8DC3\u5B9E\u4F8B\u4E0A\u9650\uFF08\u7ACB\u5373\u89E6\u53D1\u4E0D\u53D7\u9650\uFF09", "active instance limit for automatic scheduling (Run now is unrestricted)"), "1").option("--max-retries <number>", t("\u6700\u5927\u91CD\u8BD5\u6B21\u6570", "maximum retries"), "3").option("--retry-backoff <duration>", t("\u9000\u907F\u57FA\u7840\u95F4\u9694\uFF0C\u5982 30s / 5min", "retry backoff base, e.g. 30s / 5min"), "30s").option("--timeout <duration>", t("\u6BCF\u6B21\u4EFB\u52A1\u786C\u8D85\u65F6\uFF0C\u5982 30min / 2h", "hard timeout per task, e.g. 30min / 2h")).action(async (options) => withDb(async () => {
|
|
3711
3711
|
const [{ TaskTemplateService }, { parseDuration }] = await Promise.all([
|
|
3712
|
-
import("./task-template.service-
|
|
3712
|
+
import("./task-template.service-VA4WBJA4.js"),
|
|
3713
3713
|
import("./duration-Q3UMLO6F.js")
|
|
3714
3714
|
]);
|
|
3715
3715
|
const prompt = await resolvePromptInput({
|
|
@@ -3774,7 +3774,7 @@ program2.command("template").description(t("\u7BA1\u7406\u5B9A\u65F6\u4EFB\u52A1
|
|
|
3774
3774
|
throw new Error("variant \u548C clear-variant \u4E0D\u80FD\u540C\u65F6\u4F7F\u7528");
|
|
3775
3775
|
}
|
|
3776
3776
|
const [{ TaskTemplateService }, { parseDuration }] = await Promise.all([
|
|
3777
|
-
import("./task-template.service-
|
|
3777
|
+
import("./task-template.service-VA4WBJA4.js"),
|
|
3778
3778
|
import("./duration-Q3UMLO6F.js")
|
|
3779
3779
|
]);
|
|
3780
3780
|
const id = parsePositiveInteger(options.id, "id");
|
|
@@ -3857,7 +3857,7 @@ program2.command("template").description(t("\u7BA1\u7406\u5B9A\u65F6\u4EFB\u52A1
|
|
|
3857
3857
|
}))
|
|
3858
3858
|
).addCommand(
|
|
3859
3859
|
new Command("trigger").description(t("\u7ACB\u5373\u6839\u636E\u6A21\u677F\u521B\u5EFA\u4E00\u6761\u4EFB\u52A1\u5E76\u5165\u961F", "immediately enqueue one task from a template")).requiredOption("--id <id>", t("\u6A21\u677F ID", "template ID")).action(async (options) => withDb(async () => {
|
|
3860
|
-
const { triggerTaskFromTemplate } = await import("./job-templates-
|
|
3860
|
+
const { triggerTaskFromTemplate } = await import("./job-templates-FH7SGS34.js");
|
|
3861
3861
|
const id = parsePositiveInteger(options.id, "id");
|
|
3862
3862
|
const task = await triggerTaskFromTemplate(id);
|
|
3863
3863
|
if (!task) {
|
|
@@ -3874,13 +3874,13 @@ program2.command("template").description(t("\u7BA1\u7406\u5B9A\u65F6\u4EFB\u52A1
|
|
|
3874
3874
|
}))
|
|
3875
3875
|
).addCommand(
|
|
3876
3876
|
new Command("list").description(t("\u5217\u51FA\u5B9A\u65F6\u4EFB\u52A1\u6A21\u677F", "list scheduled task templates")).action(async () => withDb(async () => {
|
|
3877
|
-
const { TaskTemplateService } = await import("./task-template.service-
|
|
3877
|
+
const { TaskTemplateService } = await import("./task-template.service-VA4WBJA4.js");
|
|
3878
3878
|
const templates = await TaskTemplateService.list();
|
|
3879
3879
|
console.log(JSON.stringify(templates, null, 2));
|
|
3880
3880
|
}))
|
|
3881
3881
|
).addCommand(
|
|
3882
3882
|
new Command("enable").description(t("\u542F\u7528\u6A21\u677F", "enable a template")).requiredOption("--id <id>", t("\u6A21\u677F ID", "template ID")).action(async (options) => withDb(async () => {
|
|
3883
|
-
const { TaskTemplateService } = await import("./task-template.service-
|
|
3883
|
+
const { TaskTemplateService } = await import("./task-template.service-VA4WBJA4.js");
|
|
3884
3884
|
const tmpl = await TaskTemplateService.enable(parsePositiveInteger(options.id, "id"));
|
|
3885
3885
|
if (tmpl) {
|
|
3886
3886
|
await notifyGateway("cli:template-enable");
|
|
@@ -3892,7 +3892,7 @@ program2.command("template").description(t("\u7BA1\u7406\u5B9A\u65F6\u4EFB\u52A1
|
|
|
3892
3892
|
}))
|
|
3893
3893
|
).addCommand(
|
|
3894
3894
|
new Command("disable").description(t("\u7981\u7528\u6A21\u677F", "disable a template")).requiredOption("--id <id>", t("\u6A21\u677F ID", "template ID")).action(async (options) => withDb(async () => {
|
|
3895
|
-
const { TaskTemplateService } = await import("./task-template.service-
|
|
3895
|
+
const { TaskTemplateService } = await import("./task-template.service-VA4WBJA4.js");
|
|
3896
3896
|
const tmpl = await TaskTemplateService.disable(parsePositiveInteger(options.id, "id"));
|
|
3897
3897
|
if (tmpl) {
|
|
3898
3898
|
console.log(JSON.stringify({ id: tmpl.id, enabled: false }));
|
|
@@ -3903,7 +3903,7 @@ program2.command("template").description(t("\u7BA1\u7406\u5B9A\u65F6\u4EFB\u52A1
|
|
|
3903
3903
|
}))
|
|
3904
3904
|
).addCommand(
|
|
3905
3905
|
new Command("delete").description(t("\u5220\u9664\u6A21\u677F", "delete a template")).requiredOption("--id <id>", t("\u6A21\u677F ID", "template ID")).action(async (options) => withDb(async () => {
|
|
3906
|
-
const { TaskTemplateService } = await import("./task-template.service-
|
|
3906
|
+
const { TaskTemplateService } = await import("./task-template.service-VA4WBJA4.js");
|
|
3907
3907
|
const id = parsePositiveInteger(options.id, "id");
|
|
3908
3908
|
const deleted = await TaskTemplateService.delete(id);
|
|
3909
3909
|
console.log(JSON.stringify({ deleted, id }));
|
|
@@ -3913,7 +3913,7 @@ program2.command("template").description(t("\u7BA1\u7406\u5B9A\u65F6\u4EFB\u52A1
|
|
|
3913
3913
|
var databaseCommand = new Command("db").description(t("\u6570\u636E\u5E93\u68C0\u67E5\u3001\u5907\u4EFD\u3001\u6E05\u7A7A\u4E0E\u6062\u590D", "check, back up, clear, and restore the database"));
|
|
3914
3914
|
databaseCommand.command("check").description(t("\u68C0\u67E5\u6570\u636E\u5E93\u5B8C\u6574\u6027\u3001\u5916\u952E\u548C\u4E1A\u52A1\u8868\u7EDF\u8BA1", "check integrity, foreign keys, and table counts")).option("--json", t("\u5F3A\u5236\u8F93\u51FA JSON\uFF08\u975E\u4EA4\u4E92\u8C03\u7528\u9ED8\u8BA4\u5DF2\u8F93\u51FA JSON\uFF09", "force JSON output (already the default when non-interactive)")).action(async (options) => {
|
|
3915
3915
|
const [{ DatabaseMaintenanceService }, { renderDatabaseError, renderDatabaseResult }] = await Promise.all([
|
|
3916
|
-
import("./database-maintenance.service-
|
|
3916
|
+
import("./database-maintenance.service-NQBZ5VJT.js"),
|
|
3917
3917
|
import("./database-output-GH7F6X6D.js")
|
|
3918
3918
|
]);
|
|
3919
3919
|
await withDb(async () => {
|
|
@@ -3924,7 +3924,7 @@ databaseCommand.command("check").description(t("\u68C0\u67E5\u6570\u636E\u5E93\u
|
|
|
3924
3924
|
});
|
|
3925
3925
|
databaseCommand.command("backup").description(t("\u521B\u5EFA\u7ECF\u8FC7\u5B8C\u6574\u6027\u6821\u9A8C\u7684\u4E00\u81F4\u6027\u5907\u4EFD", "create a consistent, integrity-checked backup")).option("-o, --output <path>", t("\u5907\u4EFD\u6587\u4EF6\u8DEF\u5F84\uFF08\u9ED8\u8BA4\u5199\u5165\u6570\u636E\u5E93\u76EE\u5F55\uFF09", "backup path (defaults to the database directory)")).option("--json", t("\u5F3A\u5236\u8F93\u51FA JSON\uFF08\u975E\u4EA4\u4E92\u8C03\u7528\u9ED8\u8BA4\u5DF2\u8F93\u51FA JSON\uFF09", "force JSON output (already the default when non-interactive)")).action(async (options) => {
|
|
3926
3926
|
const [{ DatabaseMaintenanceService }, { renderDatabaseError, renderDatabaseResult }] = await Promise.all([
|
|
3927
|
-
import("./database-maintenance.service-
|
|
3927
|
+
import("./database-maintenance.service-NQBZ5VJT.js"),
|
|
3928
3928
|
import("./database-output-GH7F6X6D.js")
|
|
3929
3929
|
]);
|
|
3930
3930
|
await withDb(async () => {
|
|
@@ -3934,7 +3934,7 @@ databaseCommand.command("backup").description(t("\u521B\u5EFA\u7ECF\u8FC7\u5B8C\
|
|
|
3934
3934
|
});
|
|
3935
3935
|
databaseCommand.command("clear").description(t("\u5907\u4EFD\u540E\u4E8B\u52A1\u6027\u6E05\u7A7A\u4EFB\u52A1\u3001\u6267\u884C\u8BB0\u5F55\u548C\u5B9A\u65F6\u4EFB\u52A1\u6A21\u677F", "back up, then transactionally clear tasks, runs, and scheduled templates")).option("--confirm <word>", t("\u5371\u9669\u64CD\u4F5C\u786E\u8BA4\uFF0C\u5FC5\u987B\u586B\u5199 CLEAR", "confirmation word; must be CLEAR")).option("--keep-stopped", t("\u7EF4\u62A4\u7ED3\u675F\u540E\u4E0D\u91CD\u542F\u539F\u672C\u7531 PM2 \u7BA1\u7406\u7684 Gateway", "leave a previously managed Gateway stopped")).option("--json", t("\u5F3A\u5236\u8F93\u51FA JSON\uFF08\u975E\u4EA4\u4E92\u8C03\u7528\u9ED8\u8BA4\u5DF2\u8F93\u51FA JSON\uFF09", "force JSON output (already the default when non-interactive)")).action(async (options) => {
|
|
3936
3936
|
const [{ DatabaseMaintenanceService }, { renderDatabaseError, renderDatabaseResult }] = await Promise.all([
|
|
3937
|
-
import("./database-maintenance.service-
|
|
3937
|
+
import("./database-maintenance.service-NQBZ5VJT.js"),
|
|
3938
3938
|
import("./database-output-GH7F6X6D.js")
|
|
3939
3939
|
]);
|
|
3940
3940
|
await withDb(async () => {
|
|
@@ -3950,7 +3950,7 @@ databaseCommand.command("clear").description(t("\u5907\u4EFD\u540E\u4E8B\u52A1\u
|
|
|
3950
3950
|
});
|
|
3951
3951
|
databaseCommand.command("restore").description(t("\u81EA\u52A8\u5907\u4EFD\u5F53\u524D\u5E93\u540E\uFF0C\u4ECE\u6307\u5B9A\u5907\u4EFD\u6062\u590D\u6570\u636E\u5E93", "back up the live database, then restore from a backup")).requiredOption("--from <path>", t("\u8981\u6062\u590D\u7684 SQLite \u5907\u4EFD\u6587\u4EF6", "SQLite backup to restore")).option("--confirm <word>", t("\u5371\u9669\u64CD\u4F5C\u786E\u8BA4\uFF0C\u5FC5\u987B\u586B\u5199 RESTORE", "confirmation word; must be RESTORE")).option("--keep-stopped", t("\u7EF4\u62A4\u7ED3\u675F\u540E\u4E0D\u91CD\u542F\u539F\u672C\u7531 PM2 \u7BA1\u7406\u7684 Gateway", "leave a previously managed Gateway stopped")).option("--json", t("\u5F3A\u5236\u8F93\u51FA JSON\uFF08\u975E\u4EA4\u4E92\u8C03\u7528\u9ED8\u8BA4\u5DF2\u8F93\u51FA JSON\uFF09", "force JSON output (already the default when non-interactive)")).action(async (options) => {
|
|
3952
3952
|
const [{ DatabaseMaintenanceService }, { renderDatabaseError, renderDatabaseResult }] = await Promise.all([
|
|
3953
|
-
import("./database-maintenance.service-
|
|
3953
|
+
import("./database-maintenance.service-NQBZ5VJT.js"),
|
|
3954
3954
|
import("./database-output-GH7F6X6D.js")
|
|
3955
3955
|
]);
|
|
3956
3956
|
await withDb(async () => {
|
|
@@ -3970,7 +3970,7 @@ program2.command("init").description(t("\u521D\u59CB\u5316 SuperTask\uFF08\u521B
|
|
|
3970
3970
|
import("fs"),
|
|
3971
3971
|
import("path"),
|
|
3972
3972
|
import("./config-ED56ZLHY.js"),
|
|
3973
|
-
import("./db-
|
|
3973
|
+
import("./db-KWSXP22E.js")
|
|
3974
3974
|
]);
|
|
3975
3975
|
const configPath = getConfigPath();
|
|
3976
3976
|
if (!existsSync(configPath)) {
|
|
@@ -3989,12 +3989,12 @@ program2.command("init").description(t("\u521D\u59CB\u5316 SuperTask\uFF08\u521B
|
|
|
3989
3989
|
console.log(JSON.stringify({ migrated: true }));
|
|
3990
3990
|
}));
|
|
3991
3991
|
program2.command("migrate").description(t("\u6267\u884C\u6570\u636E\u5E93\u8FC1\u79FB", "run database migrations")).action(async () => withDb(async () => {
|
|
3992
|
-
const { getDb } = await import("./db-
|
|
3992
|
+
const { getDb } = await import("./db-KWSXP22E.js");
|
|
3993
3993
|
getDb();
|
|
3994
3994
|
console.log(JSON.stringify({ migrated: true }));
|
|
3995
3995
|
}));
|
|
3996
3996
|
program2.command("gateway").description(t("\u5728\u524D\u53F0\u542F\u52A8 Gateway", "start the Gateway in the foreground")).action(async () => {
|
|
3997
|
-
const { main } = await import("./gateway-
|
|
3997
|
+
const { main } = await import("./gateway-I2SQOXWB.js");
|
|
3998
3998
|
await main();
|
|
3999
3999
|
});
|
|
4000
4000
|
program2.command("ui").description(t("\u6253\u5F00 Gateway \u5185\u7F6E\u7684 Web \u7BA1\u7406\u754C\u9762", "open the Web Dashboard embedded in the Gateway")).action(async () => {
|
|
@@ -4023,10 +4023,10 @@ program2.command("doctor").description(t("\u68C0\u67E5 OpenCode\u3001\u6570\u636
|
|
|
4023
4023
|
{ getOpenCodePluginDiagnostic }
|
|
4024
4024
|
] = await Promise.all([
|
|
4025
4025
|
import("./config-ED56ZLHY.js"),
|
|
4026
|
-
import("./database-maintenance.service-
|
|
4027
|
-
import("./task-run.service-
|
|
4028
|
-
import("./pm2-
|
|
4029
|
-
import("./update-
|
|
4026
|
+
import("./database-maintenance.service-NQBZ5VJT.js"),
|
|
4027
|
+
import("./task-run.service-R45W2VID.js"),
|
|
4028
|
+
import("./pm2-YSCAIIBU.js"),
|
|
4029
|
+
import("./update-FMCBRTHT.js")
|
|
4030
4030
|
]);
|
|
4031
4031
|
const config = loadConfig();
|
|
4032
4032
|
const database = DatabaseMaintenanceService.check();
|
|
@@ -4137,7 +4137,7 @@ program2.command("doctor").description(t("\u68C0\u67E5 OpenCode\u3001\u6570\u636
|
|
|
4137
4137
|
} else {
|
|
4138
4138
|
const [{ parseDuration }, { runDoctorSmoke }] = await Promise.all([
|
|
4139
4139
|
import("./duration-Q3UMLO6F.js"),
|
|
4140
|
-
import("./doctor-smoke-
|
|
4140
|
+
import("./doctor-smoke-6VU2KCRK.js")
|
|
4141
4141
|
]);
|
|
4142
4142
|
const smokeTimeoutMs = parseDuration(options.smokeTimeout);
|
|
4143
4143
|
if (smokeTimeoutMs === null) throw new Error("smoke-timeout \u683C\u5F0F\u65E0\u6548");
|
|
@@ -4188,7 +4188,7 @@ program2.command("doctor").description(t("\u68C0\u67E5 OpenCode\u3001\u6570\u636
|
|
|
4188
4188
|
}));
|
|
4189
4189
|
program2.command("install").description(t("\u7528 PM2 \u5B89\u88C5 Gateway\uFF08\u5F00\u673A\u542F\u52A8\u3001\u5D29\u6E83\u6062\u590D\u3001\u65E5\u5FD7\u8F6E\u8F6C\uFF09", "install the Gateway with PM2 (startup, crash recovery, log rotation)")).action(async () => {
|
|
4190
4190
|
try {
|
|
4191
|
-
const { install: pm2Install } = await import("./pm2-
|
|
4191
|
+
const { install: pm2Install } = await import("./pm2-YSCAIIBU.js");
|
|
4192
4192
|
pm2Install();
|
|
4193
4193
|
} catch (err) {
|
|
4194
4194
|
console.error(err instanceof Error ? err.message : String(err));
|
|
@@ -4197,7 +4197,7 @@ program2.command("install").description(t("\u7528 PM2 \u5B89\u88C5 Gateway\uFF08
|
|
|
4197
4197
|
});
|
|
4198
4198
|
program2.command("uninstall").description(t("\u505C\u6B62\u5E76\u79FB\u9664 PM2 Gateway", "stop and remove the PM2 Gateway")).action(async () => {
|
|
4199
4199
|
try {
|
|
4200
|
-
const { uninstall: pm2Uninstall } = await import("./pm2-
|
|
4200
|
+
const { uninstall: pm2Uninstall } = await import("./pm2-YSCAIIBU.js");
|
|
4201
4201
|
pm2Uninstall();
|
|
4202
4202
|
} catch (err) {
|
|
4203
4203
|
console.error(err instanceof Error ? err.message : String(err));
|
|
@@ -4205,7 +4205,7 @@ program2.command("uninstall").description(t("\u505C\u6B62\u5E76\u79FB\u9664 PM2
|
|
|
4205
4205
|
}
|
|
4206
4206
|
});
|
|
4207
4207
|
program2.command("upgrade").description(t("\u66F4\u65B0 OpenCode \u63D2\u4EF6\u3001CLI \u548C Gateway\uFF1B\u5DF2\u662F\u6700\u65B0\u7248\u672C\u65F6\u4E0D\u91CD\u542F", "update the OpenCode plugin, CLI, and Gateway without restarting when already current")).option("--force", t("\u5373\u4F7F\u5DF2\u662F\u6700\u65B0\u7248\u672C\u4E5F\u91CD\u65B0\u5B89\u88C5\u5E76\u91CD\u542F Gateway", "reinstall and restart the Gateway even when already current")).action(async (options) => {
|
|
4208
|
-
const { executeUpgrade } = await import("./update-
|
|
4208
|
+
const { executeUpgrade } = await import("./update-FMCBRTHT.js");
|
|
4209
4209
|
const result = executeUpgrade({
|
|
4210
4210
|
force: options.force,
|
|
4211
4211
|
packageVersion: getPackageVersion(),
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
getDueTemplates,
|
|
7
7
|
initializeNextRunAt,
|
|
8
8
|
triggerTaskFromTemplate
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-INW2NH3O.js";
|
|
10
|
+
import "./chunk-K6UTYKN5.js";
|
|
11
|
+
import "./chunk-XUCZLWCB.js";
|
|
12
|
+
import "./chunk-ZIR7RA5B.js";
|
|
13
13
|
import "./chunk-3PIYMBV3.js";
|
|
14
14
|
export {
|
|
15
15
|
DUE_TEMPLATE_BATCH_SIZE,
|
|
@@ -18,4 +18,4 @@ export {
|
|
|
18
18
|
initializeNextRunAt,
|
|
19
19
|
triggerTaskFromTemplate
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=job-templates-
|
|
21
|
+
//# sourceMappingURL=job-templates-FH7SGS34.js.map
|
|
@@ -5,20 +5,20 @@ import {
|
|
|
5
5
|
} from "./chunk-4FK5KE6G.js";
|
|
6
6
|
import {
|
|
7
7
|
TaskRunService
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OJLDJVHB.js";
|
|
9
9
|
import "./chunk-IYYBJHZF.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveDashboardBaseUrl
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-MZLIVCEU.js";
|
|
13
|
+
import "./chunk-KC34M3F3.js";
|
|
14
|
+
import "./chunk-XWTKMNNI.js";
|
|
15
15
|
import {
|
|
16
16
|
TaskService
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XUCZLWCB.js";
|
|
18
18
|
import {
|
|
19
19
|
DB_FILE_PATH,
|
|
20
20
|
getSqlite
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ZIR7RA5B.js";
|
|
22
22
|
import "./chunk-3PIYMBV3.js";
|
|
23
23
|
|
|
24
24
|
// src/cli/logs.ts
|
|
@@ -313,4 +313,4 @@ export {
|
|
|
313
313
|
tryFollowViaSse,
|
|
314
314
|
verifyGatewayMatchesLocalDb
|
|
315
315
|
};
|
|
316
|
-
//# sourceMappingURL=logs-
|
|
316
|
+
//# sourceMappingURL=logs-HB5RV7HD.js.map
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
uninstall,
|
|
20
20
|
upgrade,
|
|
21
21
|
withGatewayMaintenance
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-7BATA4DM.js";
|
|
23
23
|
import {
|
|
24
24
|
getPackageVersion
|
|
25
25
|
} from "./chunk-DYXFSX5J.js";
|
|
@@ -46,4 +46,4 @@ export {
|
|
|
46
46
|
upgrade,
|
|
47
47
|
withGatewayMaintenance
|
|
48
48
|
};
|
|
49
|
-
//# sourceMappingURL=pm2-
|
|
49
|
+
//# sourceMappingURL=pm2-YSCAIIBU.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
LegacyRunAbandonConflictError,
|
|
5
|
+
TaskRunService
|
|
6
|
+
} from "./chunk-OJLDJVHB.js";
|
|
7
|
+
import "./chunk-KC34M3F3.js";
|
|
8
|
+
import "./chunk-XWTKMNNI.js";
|
|
9
|
+
import "./chunk-ZIR7RA5B.js";
|
|
10
|
+
import "./chunk-3PIYMBV3.js";
|
|
11
|
+
export {
|
|
12
|
+
LegacyRunAbandonConflictError,
|
|
13
|
+
TaskRunService
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=task-run.service-R45W2VID.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
TaskTemplateService
|
|
5
|
+
} from "./chunk-K6UTYKN5.js";
|
|
6
|
+
import "./chunk-XUCZLWCB.js";
|
|
7
|
+
import "./chunk-ZIR7RA5B.js";
|
|
8
|
+
import "./chunk-3PIYMBV3.js";
|
|
9
|
+
export {
|
|
10
|
+
TaskTemplateService
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=task-template.service-VA4WBJA4.js.map
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
invalidateDashboardOverviewCache,
|
|
7
7
|
validateCommonTaskFields,
|
|
8
8
|
validateIntegerField
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-XUCZLWCB.js";
|
|
10
|
+
import "./chunk-ZIR7RA5B.js";
|
|
11
11
|
import "./chunk-3PIYMBV3.js";
|
|
12
12
|
export {
|
|
13
13
|
TaskDeletionConflictError,
|
|
@@ -16,4 +16,4 @@ export {
|
|
|
16
16
|
validateCommonTaskFields,
|
|
17
17
|
validateIntegerField
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=task.service-
|
|
19
|
+
//# sourceMappingURL=task.service-RB6RKV7T.js.map
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
import {
|
|
4
4
|
detectOpenCodeVersionSync,
|
|
5
5
|
openCodeExecutable
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WHGCKWMR.js";
|
|
7
7
|
import {
|
|
8
8
|
MANAGED_RUN_ENV,
|
|
9
9
|
MANAGED_RUN_ENV_VALUE
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XWTKMNNI.js";
|
|
11
11
|
import {
|
|
12
12
|
getGatewayDiagnostic,
|
|
13
13
|
upgrade
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7BATA4DM.js";
|
|
15
15
|
import {
|
|
16
16
|
getPackageVersion
|
|
17
17
|
} from "./chunk-DYXFSX5J.js";
|
|
@@ -2055,4 +2055,4 @@ export {
|
|
|
2055
2055
|
resolveInstalledPluginVersion,
|
|
2056
2056
|
updateGlobalCli
|
|
2057
2057
|
};
|
|
2058
|
-
//# sourceMappingURL=update-
|
|
2058
|
+
//# sourceMappingURL=update-FMCBRTHT.js.map
|