opencode-supertask 0.2.0 → 0.3.0
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 +28 -0
- package/README.md +10 -1
- package/README.zh-CN.md +10 -1
- package/dist/cli/{chunk-5VKFECHP.js → chunk-764OMIPC.js} +2 -2
- 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-DF56RPNL.js → chunk-MZLIVCEU.js} +10 -2
- package/dist/cli/{chunk-DF56RPNL.js.map → chunk-MZLIVCEU.js.map} +1 -1
- package/dist/cli/{chunk-DIJEKFBV.js → chunk-USBQGFQZ.js} +3 -3
- package/dist/cli/{chunk-EQWICVCJ.js → chunk-XUCZLWCB.js} +48 -6
- package/dist/cli/chunk-XUCZLWCB.js.map +1 -0
- 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-F3IZU52F.js → database-maintenance.service-VZCH7ZEV.js} +4 -4
- package/dist/cli/{db-H7GIFWS2.js → db-KWSXP22E.js} +2 -2
- package/dist/cli/{doctor-smoke-QXHF7UNN.js → doctor-smoke-ZKWNHC3O.js} +5 -5
- package/dist/cli/{gateway-HNMX5ZTO.js → gateway-HUXVEDMU.js} +183 -14
- package/dist/cli/gateway-HUXVEDMU.js.map +1 -0
- package/dist/cli/{gateway-wake-U4HTV56Q.js → gateway-wake-M5EXAIGD.js} +2 -2
- package/dist/cli/index.js +32 -32
- package/dist/cli/{job-templates-RPQJ4XXW.js → job-templates-FH7SGS34.js} +5 -5
- package/dist/cli/{logs-QD2N62KK.js → logs-XNLR23TK.js} +5 -5
- package/dist/cli/{task-run.service-QMDINJKG.js → task-run.service-HCMHWOGW.js} +3 -3
- 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/{web-2S7DW7XA.js → web-TQO6JLBN.js} +1262 -693
- package/dist/cli/web-TQO6JLBN.js.map +1 -0
- package/dist/gateway/index.js +1617 -786
- package/dist/gateway/index.js.map +1 -1
- package/dist/plugin/supertask.js +64 -10
- package/dist/plugin/supertask.js.map +1 -1
- package/dist/web/index.js +1321 -694
- package/dist/web/index.js.map +1 -1
- package/dist/worker/index.js +221 -13
- package/dist/worker/index.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/gateway-HNMX5ZTO.js.map +0 -1
- package/dist/cli/task-template.service-SZBKGLCB.js +0 -12
- package/dist/cli/web-2S7DW7XA.js.map +0 -1
- /package/dist/cli/{chunk-5VKFECHP.js.map → chunk-764OMIPC.js.map} +0 -0
- /package/dist/cli/{chunk-DIJEKFBV.js.map → chunk-USBQGFQZ.js.map} +0 -0
- /package/dist/cli/{database-maintenance.service-F3IZU52F.js.map → database-maintenance.service-VZCH7ZEV.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-ZKWNHC3O.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-XNLR23TK.js.map} +0 -0
- /package/dist/cli/{task-run.service-QMDINJKG.js.map → task-run.service-HCMHWOGW.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/web/index.js
CHANGED
|
@@ -11229,6 +11229,9 @@ var Hono2 = class extends Hono {
|
|
|
11229
11229
|
}
|
|
11230
11230
|
};
|
|
11231
11231
|
|
|
11232
|
+
// src/web/index.tsx
|
|
11233
|
+
import { timingSafeEqual } from "crypto";
|
|
11234
|
+
|
|
11232
11235
|
// node_modules/drizzle-orm/entity.js
|
|
11233
11236
|
var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
|
|
11234
11237
|
function is(value, type) {
|
|
@@ -16420,7 +16423,9 @@ var tasks = sqliteTable("tasks", {
|
|
|
16420
16423
|
retryAfter: integer("retry_after"),
|
|
16421
16424
|
timeoutMs: integer("timeout_ms"),
|
|
16422
16425
|
templateId: integer("template_id"),
|
|
16423
|
-
scheduledAt: integer("scheduled_at")
|
|
16426
|
+
scheduledAt: integer("scheduled_at"),
|
|
16427
|
+
// 调用方不透明元数据(JSON 对象字符串,供上层平台存储归属/应用标识等)
|
|
16428
|
+
metadata: text("metadata")
|
|
16424
16429
|
}, (table) => [
|
|
16425
16430
|
index("tasks_queue_idx").on(table.status, table.retryAfter, table.urgency, table.importance, table.createdAt, table.id),
|
|
16426
16431
|
index("tasks_batch_status_idx").on(table.batchId, table.status),
|
|
@@ -16500,7 +16505,8 @@ var taskTemplates = sqliteTable("task_templates", {
|
|
|
16500
16505
|
nextRunAt: integer("next_run_at"),
|
|
16501
16506
|
enabled: integer("enabled", { mode: "boolean" }).default(true),
|
|
16502
16507
|
createdAt: integer("created_at").default(0),
|
|
16503
|
-
updatedAt: integer("updated_at").default(0)
|
|
16508
|
+
updatedAt: integer("updated_at").default(0),
|
|
16509
|
+
metadata: text("metadata")
|
|
16504
16510
|
}, (table) => [
|
|
16505
16511
|
index("task_templates_due_idx").on(table.enabled, table.nextRunAt, table.id),
|
|
16506
16512
|
index("task_templates_retention_idx").on(
|
|
@@ -16518,7 +16524,7 @@ import { join, dirname } from "path";
|
|
|
16518
16524
|
import { fileURLToPath } from "url";
|
|
16519
16525
|
var DEFAULT_DB_PATH = join(homedir(), ".local/share/opencode/tasks.db");
|
|
16520
16526
|
var DB_FILE_PATH = process.env.SUPERTASK_DB_PATH || DEFAULT_DB_PATH;
|
|
16521
|
-
var EXPECTED_SCHEMA_USER_VERSION =
|
|
16527
|
+
var EXPECTED_SCHEMA_USER_VERSION = 11;
|
|
16522
16528
|
var _sqlite = null;
|
|
16523
16529
|
var _db = null;
|
|
16524
16530
|
var _migrationRan = false;
|
|
@@ -16671,6 +16677,41 @@ var sqlite = new Proxy({}, {
|
|
|
16671
16677
|
}
|
|
16672
16678
|
});
|
|
16673
16679
|
|
|
16680
|
+
// src/core/metadata.ts
|
|
16681
|
+
var MAX_METADATA_BYTES = 16 * 1024;
|
|
16682
|
+
function normalizeTaskMetadata(input) {
|
|
16683
|
+
if (input === void 0) return void 0;
|
|
16684
|
+
if (input === null || input === "") return null;
|
|
16685
|
+
let parsed = input;
|
|
16686
|
+
if (typeof input === "string") {
|
|
16687
|
+
const trimmed = input.trim();
|
|
16688
|
+
if (!trimmed) return null;
|
|
16689
|
+
try {
|
|
16690
|
+
parsed = JSON.parse(trimmed);
|
|
16691
|
+
} catch {
|
|
16692
|
+
throw new Error("metadata \u5FC5\u987B\u662F\u5408\u6CD5\u7684 JSON \u5BF9\u8C61");
|
|
16693
|
+
}
|
|
16694
|
+
}
|
|
16695
|
+
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
16696
|
+
throw new Error("metadata \u5FC5\u987B\u662F JSON \u5BF9\u8C61");
|
|
16697
|
+
}
|
|
16698
|
+
const serialized = JSON.stringify(parsed);
|
|
16699
|
+
if (Buffer.byteLength(serialized, "utf8") > MAX_METADATA_BYTES) {
|
|
16700
|
+
throw new Error(`metadata \u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7 ${MAX_METADATA_BYTES} \u5B57\u8282`);
|
|
16701
|
+
}
|
|
16702
|
+
return serialized;
|
|
16703
|
+
}
|
|
16704
|
+
function parseTaskMetadata(raw2) {
|
|
16705
|
+
if (!raw2 || typeof raw2 !== "string") return null;
|
|
16706
|
+
try {
|
|
16707
|
+
const parsed = JSON.parse(raw2);
|
|
16708
|
+
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) return null;
|
|
16709
|
+
return parsed;
|
|
16710
|
+
} catch {
|
|
16711
|
+
return null;
|
|
16712
|
+
}
|
|
16713
|
+
}
|
|
16714
|
+
|
|
16674
16715
|
// src/core/opencode-catalog.ts
|
|
16675
16716
|
import { spawn as spawn2 } from "child_process";
|
|
16676
16717
|
|
|
@@ -17537,7 +17578,8 @@ var TaskService = class {
|
|
|
17537
17578
|
const normalizedData = {
|
|
17538
17579
|
...data,
|
|
17539
17580
|
batchId: normalizeTaskBatchId(data.batchId),
|
|
17540
|
-
variant: normalizeModelVariant(data.variant)
|
|
17581
|
+
variant: normalizeModelVariant(data.variant),
|
|
17582
|
+
metadata: normalizeTaskMetadata(data.metadata) ?? null
|
|
17541
17583
|
};
|
|
17542
17584
|
this.validateNewTask(normalizedData);
|
|
17543
17585
|
return db.transaction((tx) => {
|
|
@@ -17580,7 +17622,8 @@ var TaskService = class {
|
|
|
17580
17622
|
dependsOn: overrides.dependsOn === void 0 ? null : overrides.dependsOn,
|
|
17581
17623
|
maxRetries: overrides.maxRetries ?? original.maxRetries ?? 3,
|
|
17582
17624
|
retryBackoffMs: overrides.retryBackoffMs ?? original.retryBackoffMs ?? 3e4,
|
|
17583
|
-
timeoutMs: overrides.timeoutMs === void 0 ? original.timeoutMs : overrides.timeoutMs
|
|
17625
|
+
timeoutMs: overrides.timeoutMs === void 0 ? original.timeoutMs : overrides.timeoutMs,
|
|
17626
|
+
metadata: overrides.metadata === void 0 ? original.metadata : overrides.metadata
|
|
17584
17627
|
});
|
|
17585
17628
|
}
|
|
17586
17629
|
static async update(id, data, scope = {}) {
|
|
@@ -17588,7 +17631,8 @@ var TaskService = class {
|
|
|
17588
17631
|
const normalizedData = {
|
|
17589
17632
|
...data,
|
|
17590
17633
|
...data.batchId === void 0 ? {} : { batchId: normalizeTaskBatchId(data.batchId) ?? null },
|
|
17591
|
-
...data.variant === void 0 ? {} : { variant: normalizeModelVariant(data.variant) ?? null }
|
|
17634
|
+
...data.variant === void 0 ? {} : { variant: normalizeModelVariant(data.variant) ?? null },
|
|
17635
|
+
...data.metadata === void 0 ? {} : { metadata: normalizeTaskMetadata(data.metadata) ?? null }
|
|
17592
17636
|
};
|
|
17593
17637
|
return db.transaction((tx) => {
|
|
17594
17638
|
const task = tx.select().from(tasks2).where(and(
|
|
@@ -18181,7 +18225,8 @@ var TaskService = class {
|
|
|
18181
18225
|
retryAfter: tasks2.retryAfter,
|
|
18182
18226
|
timeoutMs: tasks2.timeoutMs,
|
|
18183
18227
|
templateId: tasks2.templateId,
|
|
18184
|
-
scheduledAt: tasks2.scheduledAt
|
|
18228
|
+
scheduledAt: tasks2.scheduledAt,
|
|
18229
|
+
metadata: tasks2.metadata
|
|
18185
18230
|
}).from(tasks2) : db.select().from(tasks2)).$dynamic();
|
|
18186
18231
|
if (conditions.length > 0) {
|
|
18187
18232
|
query = query.where(and(...conditions));
|
|
@@ -18221,6 +18266,7 @@ var TaskService = class {
|
|
|
18221
18266
|
timeoutMs: tasks2.timeoutMs,
|
|
18222
18267
|
templateId: tasks2.templateId,
|
|
18223
18268
|
scheduledAt: tasks2.scheduledAt,
|
|
18269
|
+
metadata: tasks2.metadata,
|
|
18224
18270
|
hasResultLog: sql`CASE WHEN ${tasks2.resultLog} IS NOT NULL AND length(${tasks2.resultLog}) > 0 THEN 1 ELSE 0 END`,
|
|
18225
18271
|
resultLogPreview: sql`CASE WHEN ${tasks2.resultLog} IS NULL THEN NULL WHEN ${tasks2.status} IN ('failed', 'dead_letter') THEN substr(${tasks2.resultLog}, -512) ELSE substr(${tasks2.resultLog}, 1, 512) END`
|
|
18226
18272
|
}).from(tasks2).$dynamic();
|
|
@@ -19625,7 +19671,8 @@ var TaskTemplateService = class {
|
|
|
19625
19671
|
const normalizedData = {
|
|
19626
19672
|
...data,
|
|
19627
19673
|
batchId: normalizeTaskBatchId(data.batchId),
|
|
19628
|
-
variant: normalizeModelVariant(data.variant)
|
|
19674
|
+
variant: normalizeModelVariant(data.variant),
|
|
19675
|
+
metadata: normalizeTaskMetadata(data.metadata) ?? null
|
|
19629
19676
|
};
|
|
19630
19677
|
this.validate(normalizedData);
|
|
19631
19678
|
const now = Date.now();
|
|
@@ -19661,6 +19708,17 @@ var TaskTemplateService = class {
|
|
|
19661
19708
|
static async list(limit = 50, offset = 0) {
|
|
19662
19709
|
return await db.select().from(taskTemplates2).orderBy(desc(taskTemplates2.createdAt), desc(taskTemplates2.id)).limit(limit).offset(offset);
|
|
19663
19710
|
}
|
|
19711
|
+
static async listFiltered(options = {}) {
|
|
19712
|
+
const conditions = [];
|
|
19713
|
+
if (options.cwd) conditions.push(eq(taskTemplates2.cwd, options.cwd));
|
|
19714
|
+
if (options.enabled !== void 0) conditions.push(eq(taskTemplates2.enabled, options.enabled));
|
|
19715
|
+
let query = db.select().from(taskTemplates2).$dynamic();
|
|
19716
|
+
if (conditions.length > 0) query = query.where(and(...conditions));
|
|
19717
|
+
query = query.orderBy(desc(taskTemplates2.enabled), desc(taskTemplates2.id));
|
|
19718
|
+
if (options.limit) query = query.limit(options.limit);
|
|
19719
|
+
if (options.offset) query = query.offset(options.offset);
|
|
19720
|
+
return await query;
|
|
19721
|
+
}
|
|
19664
19722
|
static async stats() {
|
|
19665
19723
|
const result = await db.select({
|
|
19666
19724
|
total: sql`count(*)`,
|
|
@@ -19678,7 +19736,8 @@ var TaskTemplateService = class {
|
|
|
19678
19736
|
const normalizedData = {
|
|
19679
19737
|
...data,
|
|
19680
19738
|
batchId: normalizeTaskBatchId(data.batchId) ?? null,
|
|
19681
|
-
...data.variant === void 0 ? {} : { variant: normalizeModelVariant(data.variant) ?? null }
|
|
19739
|
+
...data.variant === void 0 ? {} : { variant: normalizeModelVariant(data.variant) ?? null },
|
|
19740
|
+
...data.metadata === void 0 ? {} : { metadata: normalizeTaskMetadata(data.metadata) ?? null }
|
|
19682
19741
|
};
|
|
19683
19742
|
this.validate(normalizedData);
|
|
19684
19743
|
const now = Date.now();
|
|
@@ -20212,6 +20271,7 @@ function getGatewayHealth(now = Date.now()) {
|
|
|
20212
20271
|
pid: process.pid,
|
|
20213
20272
|
dbPath: DB_FILE_PATH,
|
|
20214
20273
|
uptimeMs: state ? Math.max(0, now - state.startedAt) : 0,
|
|
20274
|
+
maxConcurrency: state?.config.workerMaxConcurrency ?? 0,
|
|
20215
20275
|
lock,
|
|
20216
20276
|
components: { worker, scheduler, watchdog, watchdogCleanup }
|
|
20217
20277
|
};
|
|
@@ -20277,7 +20337,8 @@ function createTaskFromTemplate(templateId, options) {
|
|
|
20277
20337
|
retryBackoffMs: tmpl.retryBackoffMs ?? 3e4,
|
|
20278
20338
|
timeoutMs: tmpl.timeoutMs,
|
|
20279
20339
|
templateId: tmpl.id,
|
|
20280
|
-
scheduledAt: options.advanceSchedule ? tmpl.nextRunAt ?? nowMs : nowMs
|
|
20340
|
+
scheduledAt: options.advanceSchedule ? tmpl.nextRunAt ?? nowMs : nowMs,
|
|
20341
|
+
metadata: tmpl.metadata ?? null
|
|
20281
20342
|
}).returning().get();
|
|
20282
20343
|
if (options.advanceSchedule) {
|
|
20283
20344
|
tx.update(taskTemplates3).set({
|
|
@@ -20625,36 +20686,28 @@ code, pre, .mono, .m {
|
|
|
20625
20686
|
align-items: center;
|
|
20626
20687
|
gap: 6px;
|
|
20627
20688
|
}
|
|
20628
|
-
.
|
|
20629
|
-
display: inline-flex;
|
|
20630
|
-
padding: 2px;
|
|
20631
|
-
border: 1px solid var(--border);
|
|
20632
|
-
border-radius: var(--radius-sm);
|
|
20633
|
-
background: var(--surface);
|
|
20634
|
-
}
|
|
20635
|
-
.lang-switch button {
|
|
20636
|
-
height: 24px; min-width: 28px; padding: 0 6px;
|
|
20637
|
-
border: 0; border-radius: 5px; background: transparent;
|
|
20638
|
-
color: var(--text-3); font-size: 11px; font-weight: 650; cursor: pointer;
|
|
20639
|
-
}
|
|
20640
|
-
.lang-switch button.active { background: var(--surface-3); color: var(--text); }
|
|
20641
|
-
.theme-select-wrap {
|
|
20689
|
+
.sidebar-select-wrap {
|
|
20642
20690
|
position: relative;
|
|
20643
20691
|
flex: 1;
|
|
20644
20692
|
min-width: 0;
|
|
20645
20693
|
display: flex;
|
|
20646
20694
|
align-items: center;
|
|
20647
20695
|
}
|
|
20648
|
-
.
|
|
20696
|
+
.sidebar-select-wrap .icon {
|
|
20649
20697
|
position: absolute; left: 8px; width: 13px; height: 13px;
|
|
20650
20698
|
color: var(--text-3); pointer-events: none;
|
|
20651
20699
|
}
|
|
20652
|
-
.
|
|
20700
|
+
.sidebar-select-wrap select {
|
|
20653
20701
|
width: 100%; height: 28px;
|
|
20654
|
-
padding: 0
|
|
20702
|
+
padding: 0 18px 0 25px;
|
|
20655
20703
|
border: 1px solid var(--border); border-radius: var(--radius-sm);
|
|
20656
20704
|
background: var(--surface); color: var(--text-2);
|
|
20657
20705
|
font-size: 11.5px; appearance: none; cursor: pointer;
|
|
20706
|
+
text-overflow: ellipsis;
|
|
20707
|
+
}
|
|
20708
|
+
.sidebar-select-wrap select:hover {
|
|
20709
|
+
border-color: var(--border-strong);
|
|
20710
|
+
color: var(--text);
|
|
20658
20711
|
}
|
|
20659
20712
|
|
|
20660
20713
|
/* Main area */
|
|
@@ -21455,702 +21508,1139 @@ dialog::backdrop { background: rgba(8, 12, 20, 0.56); backdrop-filter: blur(2px)
|
|
|
21455
21508
|
}
|
|
21456
21509
|
`.trim();
|
|
21457
21510
|
|
|
21458
|
-
// src/web/
|
|
21459
|
-
var
|
|
21511
|
+
// src/web/locales/en.ts
|
|
21512
|
+
var EN = {
|
|
21460
21513
|
"app.name": "SuperTask",
|
|
21461
|
-
"app.local": "
|
|
21462
|
-
"nav.tasks": "
|
|
21463
|
-
"nav.templates": "
|
|
21464
|
-
"nav.runs": "
|
|
21465
|
-
"nav.system": "
|
|
21466
|
-
"page.tasks.title": "
|
|
21467
|
-
"page.templates.title": "
|
|
21468
|
-
"page.runs.title": "
|
|
21469
|
-
"page.system.title": "
|
|
21470
|
-
"theme.label": "
|
|
21471
|
-
"theme.system": "
|
|
21472
|
-
"theme.light": "
|
|
21473
|
-
"theme.dark": "
|
|
21474
|
-
"language.label": "
|
|
21475
|
-
"action.refresh": "
|
|
21476
|
-
"action.createTask": "
|
|
21477
|
-
"action.createTemplate": "
|
|
21478
|
-
"action.saveTask": "
|
|
21479
|
-
"action.updateTask": "
|
|
21480
|
-
"action.saveTemplate": "
|
|
21481
|
-
"action.edit": "
|
|
21482
|
-
"action.clone": "
|
|
21483
|
-
"action.details": "
|
|
21484
|
-
"action.retry": "
|
|
21485
|
-
"action.cancel": "
|
|
21486
|
-
"action.delete": "
|
|
21487
|
-
"action.trigger": "
|
|
21488
|
-
"action.enable": "
|
|
21489
|
-
"action.disable": "
|
|
21490
|
-
"action.logs": "
|
|
21491
|
-
"action.hideLogs": "
|
|
21492
|
-
"action.save": "
|
|
21493
|
-
"action.saveAndRestart": "
|
|
21494
|
-
"action.clearDatabase": "
|
|
21495
|
-
"action.copy": "
|
|
21496
|
-
"action.copyCommand": "
|
|
21497
|
-
"action.continueSession": "
|
|
21498
|
-
"action.chooseFolder": "
|
|
21499
|
-
"action.home": "
|
|
21500
|
-
"action.up": "
|
|
21501
|
-
"action.showHidden": "
|
|
21502
|
-
"action.hideHidden": "
|
|
21503
|
-
"action.chooseThisFolder": "
|
|
21504
|
-
"action.close": "
|
|
21505
|
-
"action.confirm": "
|
|
21506
|
-
"action.clearSelection": "
|
|
21507
|
-
"action.viewTasks": "
|
|
21508
|
-
"action.more": "
|
|
21509
|
-
"action.selectAll": "
|
|
21510
|
-
"action.openMenu": "
|
|
21511
|
-
"filter.all": "
|
|
21512
|
-
"filter.searchTasks": "
|
|
21513
|
-
"filter.allAgents": "
|
|
21514
|
-
"filter.allBatches": "
|
|
21515
|
-
"filter.noResults": "
|
|
21516
|
-
"filter.templateScope": "
|
|
21517
|
-
"filter.clearFilter": "
|
|
21518
|
-
"projects.title": "
|
|
21519
|
-
"projects.all": "
|
|
21520
|
-
"projects.legacy": "
|
|
21521
|
-
"projects.counts": "
|
|
21514
|
+
"app.local": "Local",
|
|
21515
|
+
"nav.tasks": "Tasks",
|
|
21516
|
+
"nav.templates": "Schedules",
|
|
21517
|
+
"nav.runs": "Runs",
|
|
21518
|
+
"nav.system": "System",
|
|
21519
|
+
"page.tasks.title": "Task queue",
|
|
21520
|
+
"page.templates.title": "Scheduled tasks",
|
|
21521
|
+
"page.runs.title": "Execution runs",
|
|
21522
|
+
"page.system.title": "System",
|
|
21523
|
+
"theme.label": "Theme",
|
|
21524
|
+
"theme.system": "System",
|
|
21525
|
+
"theme.light": "Light",
|
|
21526
|
+
"theme.dark": "Dark",
|
|
21527
|
+
"language.label": "Language",
|
|
21528
|
+
"action.refresh": "Refresh",
|
|
21529
|
+
"action.createTask": "New task",
|
|
21530
|
+
"action.createTemplate": "New schedule",
|
|
21531
|
+
"action.saveTask": "Enqueue",
|
|
21532
|
+
"action.updateTask": "Save",
|
|
21533
|
+
"action.saveTemplate": "Save",
|
|
21534
|
+
"action.edit": "Edit",
|
|
21535
|
+
"action.clone": "Clone",
|
|
21536
|
+
"action.details": "Inspect",
|
|
21537
|
+
"action.retry": "Retry",
|
|
21538
|
+
"action.cancel": "Cancel",
|
|
21539
|
+
"action.delete": "Delete",
|
|
21540
|
+
"action.trigger": "Run now",
|
|
21541
|
+
"action.enable": "Enable",
|
|
21542
|
+
"action.disable": "Disable",
|
|
21543
|
+
"action.logs": "Logs",
|
|
21544
|
+
"action.hideLogs": "Hide",
|
|
21545
|
+
"action.save": "Save config",
|
|
21546
|
+
"action.saveAndRestart": "Save & restart",
|
|
21547
|
+
"action.clearDatabase": "Clear data",
|
|
21548
|
+
"action.copy": "Copy",
|
|
21549
|
+
"action.copyCommand": "Copy command",
|
|
21550
|
+
"action.continueSession": "Resume",
|
|
21551
|
+
"action.chooseFolder": "Browse",
|
|
21552
|
+
"action.home": "Home",
|
|
21553
|
+
"action.up": "Up",
|
|
21554
|
+
"action.showHidden": "Show hidden",
|
|
21555
|
+
"action.hideHidden": "Hide dotfiles",
|
|
21556
|
+
"action.chooseThisFolder": "Select folder",
|
|
21557
|
+
"action.close": "Close",
|
|
21558
|
+
"action.confirm": "Confirm",
|
|
21559
|
+
"action.clearSelection": "Clear",
|
|
21560
|
+
"action.viewTasks": "View tasks",
|
|
21561
|
+
"action.more": "More",
|
|
21562
|
+
"action.selectAll": "Select all",
|
|
21563
|
+
"action.openMenu": "Menu",
|
|
21564
|
+
"filter.all": "All",
|
|
21565
|
+
"filter.searchTasks": "Search tasks, batch, or #ID\u2026",
|
|
21566
|
+
"filter.allAgents": "All agents",
|
|
21567
|
+
"filter.allBatches": "All batches",
|
|
21568
|
+
"filter.noResults": "No matching tasks",
|
|
21569
|
+
"filter.templateScope": "Template #{id}",
|
|
21570
|
+
"filter.clearFilter": "Clear",
|
|
21571
|
+
"projects.title": "Projects",
|
|
21572
|
+
"projects.all": "All projects",
|
|
21573
|
+
"projects.legacy": "Ungrouped",
|
|
21574
|
+
"projects.counts": "{running} running \xB7 {pending} queued \xB7 {failed} issues",
|
|
21522
21575
|
"projects.successRate": "{rate}%",
|
|
21523
|
-
"
|
|
21524
|
-
"stats.
|
|
21525
|
-
"stats.
|
|
21526
|
-
"stats.
|
|
21527
|
-
"stats.
|
|
21528
|
-
"stats.
|
|
21529
|
-
"stats.
|
|
21530
|
-
"stats.
|
|
21531
|
-
"stats.
|
|
21532
|
-
"stats.
|
|
21533
|
-
"stats.
|
|
21576
|
+
"projects.rate7d": "7d success rate",
|
|
21577
|
+
"stats.pending": "Queued",
|
|
21578
|
+
"stats.running": "Running",
|
|
21579
|
+
"stats.done": "Done",
|
|
21580
|
+
"stats.failedDead": "Issues",
|
|
21581
|
+
"stats.templates": "Total",
|
|
21582
|
+
"stats.enabled": "Enabled",
|
|
21583
|
+
"stats.disabled": "Disabled",
|
|
21584
|
+
"stats.records": "Total",
|
|
21585
|
+
"stats.pageDone": "Done",
|
|
21586
|
+
"stats.pageFailed": "Failed",
|
|
21587
|
+
"stats.pageRunning": "Running",
|
|
21534
21588
|
"table.id": "ID",
|
|
21535
|
-
"table.task": "
|
|
21536
|
-
"table.name": "
|
|
21589
|
+
"table.task": "Task",
|
|
21590
|
+
"table.name": "Name",
|
|
21537
21591
|
"table.agent": "Agent",
|
|
21538
|
-
"table.model": "
|
|
21539
|
-
"table.status": "
|
|
21540
|
-
"table.duration": "
|
|
21541
|
-
"table.retries": "
|
|
21542
|
-
"table.actions": "
|
|
21543
|
-
"table.type": "
|
|
21544
|
-
"table.rule": "
|
|
21545
|
-
"table.lastRun": "
|
|
21546
|
-
"table.nextRun": "
|
|
21547
|
-
"table.run": "
|
|
21548
|
-
"table.session": "
|
|
21549
|
-
"table.heartbeat": "
|
|
21550
|
-
"table.startedAt": "
|
|
21551
|
-
"table.pid": "
|
|
21552
|
-
"
|
|
21553
|
-
"status.
|
|
21554
|
-
"status.
|
|
21555
|
-
"status.
|
|
21556
|
-
"status.
|
|
21557
|
-
"status.
|
|
21558
|
-
"status.
|
|
21559
|
-
"status.
|
|
21560
|
-
"status.
|
|
21561
|
-
"status.
|
|
21562
|
-
"status.
|
|
21563
|
-
"
|
|
21564
|
-
"runStatus.
|
|
21565
|
-
"runStatus.
|
|
21592
|
+
"table.model": "Model",
|
|
21593
|
+
"table.status": "Status",
|
|
21594
|
+
"table.duration": "Duration",
|
|
21595
|
+
"table.retries": "Retries",
|
|
21596
|
+
"table.actions": "Actions",
|
|
21597
|
+
"table.type": "Type",
|
|
21598
|
+
"table.rule": "Rule",
|
|
21599
|
+
"table.lastRun": "Last run",
|
|
21600
|
+
"table.nextRun": "Next run",
|
|
21601
|
+
"table.run": "Run",
|
|
21602
|
+
"table.session": "Session",
|
|
21603
|
+
"table.heartbeat": "Heartbeat",
|
|
21604
|
+
"table.startedAt": "Started",
|
|
21605
|
+
"table.pid": "PID",
|
|
21606
|
+
"table.pidTooltip": "Worker \u203A Guardian",
|
|
21607
|
+
"status.pending": "Queued",
|
|
21608
|
+
"status.running": "Running",
|
|
21609
|
+
"status.done": "Done",
|
|
21610
|
+
"status.failed": "Retrying",
|
|
21611
|
+
"status.dead_letter": "Stopped",
|
|
21612
|
+
"status.cancelled": "Cancelled",
|
|
21613
|
+
"status.unknown": "Unknown",
|
|
21614
|
+
"status.executionStillActive": "Stopping",
|
|
21615
|
+
"status.waitingDep": "Wait #{id}",
|
|
21616
|
+
"status.batchBusy": "Batch busy",
|
|
21617
|
+
"status.retryIn": "Retry in {duration}",
|
|
21618
|
+
"runStatus.running": "Running",
|
|
21619
|
+
"runStatus.done": "Done",
|
|
21620
|
+
"runStatus.failed": "Failed",
|
|
21566
21621
|
"schedule.cron": "Cron",
|
|
21567
|
-
"schedule.recurring": "
|
|
21568
|
-
"schedule.delayed": "
|
|
21569
|
-
"schedule.unknown": "
|
|
21570
|
-
"schedule.enabled": "
|
|
21571
|
-
"schedule.disabled": "
|
|
21572
|
-
"schedule.overdue": "
|
|
21573
|
-
"schedule.seconds": "{count}
|
|
21574
|
-
"schedule.minutes": "{count}
|
|
21575
|
-
"schedule.hours": "{count}
|
|
21576
|
-
"schedule.days": "{count}
|
|
21577
|
-
"schedule.cronPreset.hourly": "
|
|
21578
|
-
"schedule.cronPreset.daily9": "
|
|
21579
|
-
"schedule.cronPreset.weekday9": "
|
|
21580
|
-
"schedule.cronPreset.weeklyMon": "
|
|
21581
|
-
"duration.seconds": "
|
|
21582
|
-
"duration.minutes": "
|
|
21583
|
-
"duration.hours": "
|
|
21584
|
-
"duration.days": "
|
|
21585
|
-
"duration.every": "
|
|
21586
|
-
"duration.immediate": "
|
|
21587
|
-
"duration.systemDefault": "
|
|
21588
|
-
"duration.custom": "
|
|
21589
|
-
"duration.unit": "
|
|
21590
|
-
"pagination.previous": "
|
|
21591
|
-
"pagination.next": "
|
|
21592
|
-
"pagination.summary": "{page} / {pages} \xB7
|
|
21593
|
-
"empty.tasks": "
|
|
21594
|
-
"empty.templates": "
|
|
21595
|
-
"empty.runs": "
|
|
21596
|
-
"empty.running": "
|
|
21597
|
-
"task.createTitle": "
|
|
21598
|
-
"task.editTitle": "
|
|
21599
|
-
"task.projectExisting": "
|
|
21600
|
-
"task.projectNew": "
|
|
21601
|
-
"template.createTitle": "
|
|
21602
|
-
"template.editTitle": "
|
|
21603
|
-
"template.name": "
|
|
21604
|
-
"template.cwd": "
|
|
21622
|
+
"schedule.recurring": "Recurring",
|
|
21623
|
+
"schedule.delayed": "One-off",
|
|
21624
|
+
"schedule.unknown": "Unknown",
|
|
21625
|
+
"schedule.enabled": "Enabled",
|
|
21626
|
+
"schedule.disabled": "Disabled",
|
|
21627
|
+
"schedule.overdue": "Due now",
|
|
21628
|
+
"schedule.seconds": "{count}s",
|
|
21629
|
+
"schedule.minutes": "{count}m",
|
|
21630
|
+
"schedule.hours": "{count}h",
|
|
21631
|
+
"schedule.days": "{count}d",
|
|
21632
|
+
"schedule.cronPreset.hourly": "Hourly",
|
|
21633
|
+
"schedule.cronPreset.daily9": "Daily 09:00",
|
|
21634
|
+
"schedule.cronPreset.weekday9": "Weekdays 09:00",
|
|
21635
|
+
"schedule.cronPreset.weeklyMon": "Mon 09:00",
|
|
21636
|
+
"duration.seconds": "s",
|
|
21637
|
+
"duration.minutes": "min",
|
|
21638
|
+
"duration.hours": "h",
|
|
21639
|
+
"duration.days": "d",
|
|
21640
|
+
"duration.every": "Every {duration}",
|
|
21641
|
+
"duration.immediate": "Immediate",
|
|
21642
|
+
"duration.systemDefault": "Default",
|
|
21643
|
+
"duration.custom": "Custom",
|
|
21644
|
+
"duration.unit": "Unit",
|
|
21645
|
+
"pagination.previous": "Prev",
|
|
21646
|
+
"pagination.next": "Next",
|
|
21647
|
+
"pagination.summary": "{page} / {pages} \xB7 {total} total",
|
|
21648
|
+
"empty.tasks": "No tasks",
|
|
21649
|
+
"empty.templates": "No schedules",
|
|
21650
|
+
"empty.runs": "No runs",
|
|
21651
|
+
"empty.running": "No active runs",
|
|
21652
|
+
"task.createTitle": "New task",
|
|
21653
|
+
"task.editTitle": "Edit task",
|
|
21654
|
+
"task.projectExisting": "{running} running \xB7 {pending} queued \xB7 {failed} issues",
|
|
21655
|
+
"task.projectNew": "New project directory",
|
|
21656
|
+
"template.createTitle": "New schedule",
|
|
21657
|
+
"template.editTitle": "Edit schedule",
|
|
21658
|
+
"template.name": "Name",
|
|
21659
|
+
"template.cwd": "Project directory",
|
|
21605
21660
|
"template.agent": "Agent",
|
|
21606
|
-
"template.model": "
|
|
21661
|
+
"template.model": "Model",
|
|
21607
21662
|
"template.variant": "Variant",
|
|
21608
|
-
"template.prompt": "
|
|
21609
|
-
"template.dependsOn": "
|
|
21610
|
-
"template.dependsOnNone": "
|
|
21611
|
-
"template.scheduleType": "
|
|
21612
|
-
"template.cronExpr": "Cron
|
|
21613
|
-
"template.interval": "
|
|
21614
|
-
"template.runAt": "
|
|
21615
|
-
"template.advanced": "
|
|
21616
|
-
"template.category": "
|
|
21617
|
-
"template.batchId": "
|
|
21618
|
-
"template.importance": "
|
|
21619
|
-
"template.urgency": "
|
|
21620
|
-
"template.maxInstances": "
|
|
21621
|
-
"template.maxRetries": "
|
|
21622
|
-
"template.retryBackoff": "
|
|
21623
|
-
"template.timeout": "
|
|
21624
|
-
"catalog.chooseProject": "
|
|
21625
|
-
"catalog.defaultProvider": "
|
|
21626
|
-
"catalog.defaultModel": "
|
|
21627
|
-
"catalog.defaultVariant": "
|
|
21628
|
-
"catalog.loading": "\
|
|
21629
|
-
"catalog.loaded": "{agents}
|
|
21630
|
-
"catalog.failed": "
|
|
21631
|
-
"catalog.primary": "
|
|
21632
|
-
"catalog.subagent": "
|
|
21633
|
-
"catalog.all": "
|
|
21634
|
-
"directory.title": "
|
|
21635
|
-
"directory.empty": "
|
|
21663
|
+
"template.prompt": "Prompt",
|
|
21664
|
+
"template.dependsOn": "Depends on",
|
|
21665
|
+
"template.dependsOnNone": "None",
|
|
21666
|
+
"template.scheduleType": "Schedule type",
|
|
21667
|
+
"template.cronExpr": "Cron expression",
|
|
21668
|
+
"template.interval": "Interval",
|
|
21669
|
+
"template.runAt": "Run at",
|
|
21670
|
+
"template.advanced": "Advanced",
|
|
21671
|
+
"template.category": "Category",
|
|
21672
|
+
"template.batchId": "Batch",
|
|
21673
|
+
"template.importance": "Importance",
|
|
21674
|
+
"template.urgency": "Urgency",
|
|
21675
|
+
"template.maxInstances": "Max instances",
|
|
21676
|
+
"template.maxRetries": "Max retries",
|
|
21677
|
+
"template.retryBackoff": "Retry backoff",
|
|
21678
|
+
"template.timeout": "Timeout",
|
|
21679
|
+
"catalog.chooseProject": "Select directory first",
|
|
21680
|
+
"catalog.defaultProvider": "Default",
|
|
21681
|
+
"catalog.defaultModel": "Default model",
|
|
21682
|
+
"catalog.defaultVariant": "Default",
|
|
21683
|
+
"catalog.loading": "Loading catalog\u2026",
|
|
21684
|
+
"catalog.loaded": "{agents} agents \xB7 {models} models",
|
|
21685
|
+
"catalog.failed": "Failed: {error}",
|
|
21686
|
+
"catalog.primary": "primary",
|
|
21687
|
+
"catalog.subagent": "subagent",
|
|
21688
|
+
"catalog.all": "all",
|
|
21689
|
+
"directory.title": "Select project directory",
|
|
21690
|
+
"directory.empty": "No subdirectories",
|
|
21636
21691
|
"system.worker": "Worker",
|
|
21637
21692
|
"system.scheduler": "Scheduler",
|
|
21638
21693
|
"system.watchdog": "Watchdog",
|
|
21639
|
-
"system.watchdogCleanup": "
|
|
21640
|
-
"system.health": "
|
|
21641
|
-
"system.healthy": "
|
|
21642
|
-
"system.degraded": "
|
|
21643
|
-
"system.reconnecting": "
|
|
21644
|
-
"system.disabled": "
|
|
21645
|
-
"system.uptime": "
|
|
21646
|
-
"system.failures": "
|
|
21647
|
-
"system.lastActivity": "
|
|
21648
|
-
"system.lock": "
|
|
21649
|
-
"system.concurrency": "
|
|
21650
|
-
"system.maxConcurrency": "
|
|
21651
|
-
"system.pollInterval": "
|
|
21652
|
-
"system.heartbeatInterval": "
|
|
21653
|
-
"system.taskTimeout": "
|
|
21654
|
-
"system.schedulerEnabled": "
|
|
21655
|
-
"system.checkInterval": "
|
|
21656
|
-
"system.activeTemplates": "
|
|
21657
|
-
"system.heartbeatTimeout": "
|
|
21658
|
-
"system.cleanupInterval": "
|
|
21659
|
-
"system.retentionDays": "
|
|
21694
|
+
"system.watchdogCleanup": "Cleanup",
|
|
21695
|
+
"system.health": "Gateway health",
|
|
21696
|
+
"system.healthy": "Healthy",
|
|
21697
|
+
"system.degraded": "Degraded",
|
|
21698
|
+
"system.reconnecting": "Reconnecting",
|
|
21699
|
+
"system.disabled": "Disabled",
|
|
21700
|
+
"system.uptime": "Uptime",
|
|
21701
|
+
"system.failures": "Failures",
|
|
21702
|
+
"system.lastActivity": "Last active",
|
|
21703
|
+
"system.lock": "Lock",
|
|
21704
|
+
"system.concurrency": "Concurrency",
|
|
21705
|
+
"system.maxConcurrency": "Max concurrency",
|
|
21706
|
+
"system.pollInterval": "Poll interval",
|
|
21707
|
+
"system.heartbeatInterval": "Heartbeat interval",
|
|
21708
|
+
"system.taskTimeout": "Default timeout",
|
|
21709
|
+
"system.schedulerEnabled": "Enable scheduler",
|
|
21710
|
+
"system.checkInterval": "Check interval",
|
|
21711
|
+
"system.activeTemplates": "Active templates",
|
|
21712
|
+
"system.heartbeatTimeout": "Heartbeat timeout",
|
|
21713
|
+
"system.cleanupInterval": "Cleanup interval",
|
|
21714
|
+
"system.retentionDays": "Retention",
|
|
21660
21715
|
"system.milliseconds": "ms",
|
|
21661
21716
|
"system.seconds": "s",
|
|
21662
21717
|
"system.minutes": "min",
|
|
21663
21718
|
"system.hours": "h",
|
|
21664
21719
|
"system.days": "d",
|
|
21665
|
-
"system.configForeground": "
|
|
21666
|
-
"system.configApplied": "
|
|
21667
|
-
"system.configPending": "
|
|
21668
|
-
"system.configRestartManually": "
|
|
21669
|
-
"system.savedValue": "
|
|
21670
|
-
"system.runtimeValue": "
|
|
21671
|
-
"system.runningTasks": "
|
|
21672
|
-
"system.configFile": "
|
|
21673
|
-
"system.path": "
|
|
21674
|
-
"system.fileExists": "
|
|
21675
|
-
"system.yes": "
|
|
21676
|
-
"system.noDefault": "
|
|
21677
|
-
"system.danger": "
|
|
21678
|
-
"system.dangerDescription": "
|
|
21679
|
-
"logs.command": "
|
|
21680
|
-
"logs.output": "
|
|
21681
|
-
"logs.error": "
|
|
21682
|
-
"logs.tools": "
|
|
21683
|
-
"logs.raw": "
|
|
21684
|
-
"logs.noText": "
|
|
21685
|
-
"logs.loading": "\
|
|
21686
|
-
"logs.live": "
|
|
21687
|
-
"logs.steps": "
|
|
21720
|
+
"system.configForeground": "Foreground \xB7 restart required",
|
|
21721
|
+
"system.configApplied": "Runtime matches saved config",
|
|
21722
|
+
"system.configPending": "Pending changes \xB7 restart Gateway to apply",
|
|
21723
|
+
"system.configRestartManually": "Pending changes \xB7 restart Gateway manually",
|
|
21724
|
+
"system.savedValue": "Saved",
|
|
21725
|
+
"system.runtimeValue": "Runtime",
|
|
21726
|
+
"system.runningTasks": "Active runs \xB7 {running} / {limit}",
|
|
21727
|
+
"system.configFile": "Config file",
|
|
21728
|
+
"system.path": "Path",
|
|
21729
|
+
"system.fileExists": "Status",
|
|
21730
|
+
"system.yes": "Exists",
|
|
21731
|
+
"system.noDefault": "Default",
|
|
21732
|
+
"system.danger": "Danger zone",
|
|
21733
|
+
"system.dangerDescription": "Clears all tasks, runs, and schedules after creating a verified backup.",
|
|
21734
|
+
"logs.command": "Command",
|
|
21735
|
+
"logs.output": "Output",
|
|
21736
|
+
"logs.error": "Error",
|
|
21737
|
+
"logs.tools": "Tool calls",
|
|
21738
|
+
"logs.raw": "Raw JSONL",
|
|
21739
|
+
"logs.noText": "No text output",
|
|
21740
|
+
"logs.loading": "Loading log\u2026",
|
|
21741
|
+
"logs.live": "Live",
|
|
21742
|
+
"logs.steps": "Steps",
|
|
21688
21743
|
"logs.tokens": "Tokens",
|
|
21689
|
-
"logs.tokInput": "
|
|
21690
|
-
"logs.tokOutput": "
|
|
21691
|
-
"logs.tokReasoning": "
|
|
21692
|
-
"logs.tokCache": "
|
|
21693
|
-
"logs.tokCacheRead": "
|
|
21694
|
-
"logs.tokCacheWrite": "
|
|
21695
|
-
"logs.cost": "
|
|
21696
|
-
"logs.autoScroll": "
|
|
21697
|
-
"logs.rootCause": "
|
|
21698
|
-
"
|
|
21699
|
-
"
|
|
21700
|
-
"inspector.tab.
|
|
21701
|
-
"inspector.
|
|
21702
|
-
"inspector.
|
|
21703
|
-
"inspector.
|
|
21704
|
-
"inspector.
|
|
21705
|
-
"
|
|
21706
|
-
"
|
|
21707
|
-
"details.
|
|
21708
|
-
"details.
|
|
21709
|
-
"details.
|
|
21710
|
-
"details.
|
|
21711
|
-
"details.raw": "\u539F\u59CB JSON",
|
|
21712
|
-
"details.copySuccess": "\u5DF2\u590D\u5236",
|
|
21744
|
+
"logs.tokInput": "In",
|
|
21745
|
+
"logs.tokOutput": "Out",
|
|
21746
|
+
"logs.tokReasoning": "Reasoning",
|
|
21747
|
+
"logs.tokCache": "Cache",
|
|
21748
|
+
"logs.tokCacheRead": "R",
|
|
21749
|
+
"logs.tokCacheWrite": "W",
|
|
21750
|
+
"logs.cost": "Cost",
|
|
21751
|
+
"logs.autoScroll": "Auto-scroll",
|
|
21752
|
+
"logs.rootCause": "Root cause",
|
|
21753
|
+
"inspector.tab.overview": "Overview",
|
|
21754
|
+
"inspector.tab.output": "Live output",
|
|
21755
|
+
"inspector.tab.history": "History",
|
|
21756
|
+
"inspector.dependencies": "Dependencies",
|
|
21757
|
+
"inspector.upstream": "Upstream",
|
|
21758
|
+
"inspector.downstream": "Downstream",
|
|
21759
|
+
"inspector.failureSummary": "Failure",
|
|
21760
|
+
"details.title": "Inspector",
|
|
21761
|
+
"details.taskTitle": "Task #{id}",
|
|
21762
|
+
"details.runTitle": "Run #{id}",
|
|
21763
|
+
"details.templateTitle": "Schedule #{id}",
|
|
21764
|
+
"details.raw": "Raw JSON",
|
|
21765
|
+
"details.copySuccess": "Copied",
|
|
21713
21766
|
"details.id": "ID",
|
|
21714
|
-
"details.project": "
|
|
21767
|
+
"details.project": "Project",
|
|
21715
21768
|
"details.variant": "Variant",
|
|
21716
|
-
"details.prompt": "
|
|
21717
|
-
"details.result": "
|
|
21718
|
-
"details.category": "
|
|
21719
|
-
"details.batch": "
|
|
21720
|
-
"details.dependency": "
|
|
21721
|
-
"details.importance": "
|
|
21722
|
-
"details.urgency": "
|
|
21723
|
-
"details.retryCount": "
|
|
21724
|
-
"details.retryBackoff": "
|
|
21725
|
-
"details.timeout": "
|
|
21726
|
-
"details.createdAt": "
|
|
21727
|
-
"details.updatedAt": "
|
|
21728
|
-
"details.startedAt": "
|
|
21729
|
-
"details.finishedAt": "
|
|
21730
|
-
"details.scheduledAt": "
|
|
21731
|
-
"details.enabled": "
|
|
21732
|
-
"details.scheduleRule": "
|
|
21733
|
-
"details.maxInstances": "
|
|
21734
|
-
"details.maxRetries": "
|
|
21735
|
-
"details.lastRun": "
|
|
21736
|
-
"details.nextRun": "
|
|
21737
|
-
"details.taskId": "
|
|
21738
|
-
"details.session": "
|
|
21739
|
-
"details.heartbeat": "
|
|
21740
|
-
"details.process": "
|
|
21741
|
-
"details.history": "
|
|
21742
|
-
"details.noHistory": "
|
|
21769
|
+
"details.prompt": "Prompt",
|
|
21770
|
+
"details.result": "Result",
|
|
21771
|
+
"details.category": "Category",
|
|
21772
|
+
"details.batch": "Batch",
|
|
21773
|
+
"details.dependency": "Dependency",
|
|
21774
|
+
"details.importance": "Importance",
|
|
21775
|
+
"details.urgency": "Urgency",
|
|
21776
|
+
"details.retryCount": "Retries",
|
|
21777
|
+
"details.retryBackoff": "Backoff",
|
|
21778
|
+
"details.timeout": "Timeout",
|
|
21779
|
+
"details.createdAt": "Created",
|
|
21780
|
+
"details.updatedAt": "Updated",
|
|
21781
|
+
"details.startedAt": "Started",
|
|
21782
|
+
"details.finishedAt": "Finished",
|
|
21783
|
+
"details.scheduledAt": "Scheduled",
|
|
21784
|
+
"details.enabled": "Enabled",
|
|
21785
|
+
"details.scheduleRule": "Rule",
|
|
21786
|
+
"details.maxInstances": "Max instances",
|
|
21787
|
+
"details.maxRetries": "Max retries",
|
|
21788
|
+
"details.lastRun": "Last run",
|
|
21789
|
+
"details.nextRun": "Next run",
|
|
21790
|
+
"details.taskId": "Task",
|
|
21791
|
+
"details.session": "Session",
|
|
21792
|
+
"details.heartbeat": "Heartbeat",
|
|
21793
|
+
"details.process": "Process",
|
|
21794
|
+
"details.history": "Run history",
|
|
21795
|
+
"details.noHistory": "No runs yet",
|
|
21743
21796
|
"details.none": "\u2014",
|
|
21744
|
-
"details.default": "
|
|
21745
|
-
"details.enabledYes": "
|
|
21746
|
-
"details.enabledNo": "
|
|
21747
|
-
"batch.selected": "
|
|
21748
|
-
"batch.retry": "
|
|
21749
|
-
"batch.cancel": "
|
|
21750
|
-
"batch.delete": "
|
|
21751
|
-
"dialog.cancelTask": "
|
|
21752
|
-
"dialog.cancelTaskBody": "
|
|
21753
|
-
"dialog.retryTask": "
|
|
21754
|
-
"dialog.retryTaskBody": "
|
|
21755
|
-
"dialog.deleteTask": "
|
|
21756
|
-
"dialog.deleteTaskBody": "
|
|
21757
|
-
"dialog.batchRetry": "
|
|
21758
|
-
"dialog.batchRetryBody": "
|
|
21759
|
-
"dialog.batchCancel": "
|
|
21760
|
-
"dialog.batchCancelBody": "
|
|
21761
|
-
"dialog.batchDelete": "
|
|
21762
|
-
"dialog.batchDeleteBody": "
|
|
21763
|
-
"dialog.disableTemplate": "
|
|
21764
|
-
"dialog.disableTemplateBody": "
|
|
21765
|
-
"dialog.deleteTemplate": "
|
|
21766
|
-
"dialog.deleteTemplateBody": "
|
|
21767
|
-
"dialog.triggerTemplate": "
|
|
21768
|
-
"dialog.triggerTemplateBody": "
|
|
21769
|
-
"dialog.clearTitle": "
|
|
21770
|
-
"dialog.clearBody": "
|
|
21771
|
-
"dialog.clearInstruction": "
|
|
21772
|
-
"dialog.restartGateway": "
|
|
21773
|
-
"dialog.restartGatewayBody": "
|
|
21774
|
-
"dialog.restartGatewayRunningBody": "
|
|
21775
|
-
"dialog.copyManualTitle": "
|
|
21776
|
-
"dialog.copyManualBody": "
|
|
21777
|
-
"feedback.retryFailed": "
|
|
21778
|
-
"feedback.cancelFailed": "
|
|
21779
|
-
"feedback.deleteFailed": "
|
|
21780
|
-
"feedback.requestFailed": "
|
|
21781
|
-
"feedback.triggered": "
|
|
21782
|
-
"feedback.taskCreated": "
|
|
21783
|
-
"feedback.taskUpdated": "
|
|
21784
|
-
"feedback.taskCloned": "
|
|
21785
|
-
"feedback.taskRetried": "
|
|
21786
|
-
"feedback.taskCancelled": "
|
|
21787
|
-
"feedback.taskDeleted": "
|
|
21788
|
-
"feedback.batchDone": "
|
|
21789
|
-
"feedback.templateCreated": "
|
|
21790
|
-
"feedback.templateUpdated": "
|
|
21791
|
-
"feedback.configSaved": "
|
|
21792
|
-
"feedback.sessionCommandCopied": "
|
|
21793
|
-
"feedback.commandCopied": "
|
|
21794
|
-
"feedback.restarting": "Gateway
|
|
21795
|
-
"feedback.restartTimeout": "Gateway
|
|
21796
|
-
"feedback.databaseCleared": "
|
|
21797
|
-
"feedback.copyFailed": "
|
|
21798
|
-
"a11y.skip": "
|
|
21799
|
-
"a11y.refreshing": "
|
|
21797
|
+
"details.default": "Default",
|
|
21798
|
+
"details.enabledYes": "Enabled",
|
|
21799
|
+
"details.enabledNo": "Disabled",
|
|
21800
|
+
"batch.selected": "{count} selected",
|
|
21801
|
+
"batch.retry": "Retry",
|
|
21802
|
+
"batch.cancel": "Cancel",
|
|
21803
|
+
"batch.delete": "Delete",
|
|
21804
|
+
"dialog.cancelTask": "Cancel task #{id}",
|
|
21805
|
+
"dialog.cancelTaskBody": "Stop queuing or terminate the active process group.",
|
|
21806
|
+
"dialog.retryTask": "Retry task #{id}",
|
|
21807
|
+
"dialog.retryTaskBody": "Reset retry counter and re-enqueue.",
|
|
21808
|
+
"dialog.deleteTask": "Delete task #{id}",
|
|
21809
|
+
"dialog.deleteTaskBody": "Permanently delete this task and its runs.",
|
|
21810
|
+
"dialog.batchRetry": "Retry {count} tasks",
|
|
21811
|
+
"dialog.batchRetryBody": "Re-enqueue failed and stopped tasks in selection.",
|
|
21812
|
+
"dialog.batchCancel": "Cancel {count} tasks",
|
|
21813
|
+
"dialog.batchCancelBody": "Cancel queued, running, and retrying tasks in selection.",
|
|
21814
|
+
"dialog.batchDelete": "Delete {count} tasks",
|
|
21815
|
+
"dialog.batchDeleteBody": "Permanently delete non-running tasks in selection.",
|
|
21816
|
+
"dialog.disableTemplate": "Disable schedule",
|
|
21817
|
+
"dialog.disableTemplateBody": "Stop creating new tasks automatically.",
|
|
21818
|
+
"dialog.deleteTemplate": "Delete schedule",
|
|
21819
|
+
"dialog.deleteTemplateBody": "Delete template without removing past tasks.",
|
|
21820
|
+
"dialog.triggerTemplate": "Run schedule now",
|
|
21821
|
+
"dialog.triggerTemplateBody": "Create and enqueue a task immediately.",
|
|
21822
|
+
"dialog.clearTitle": "Clear database",
|
|
21823
|
+
"dialog.clearBody": "This removes all tasks, runs, and schedules.",
|
|
21824
|
+
"dialog.clearInstruction": "Type CLEAR to confirm:",
|
|
21825
|
+
"dialog.restartGateway": "Restart Gateway",
|
|
21826
|
+
"dialog.restartGatewayBody": "Save config and restart PM2 Gateway.",
|
|
21827
|
+
"dialog.restartGatewayRunningBody": "{count} task(s) are running and will be interrupted. Continue?",
|
|
21828
|
+
"dialog.copyManualTitle": "Copy manually",
|
|
21829
|
+
"dialog.copyManualBody": "Clipboard access was blocked. Press \u2318C or Ctrl+C.",
|
|
21830
|
+
"feedback.retryFailed": "Retry failed",
|
|
21831
|
+
"feedback.cancelFailed": "Cancel failed",
|
|
21832
|
+
"feedback.deleteFailed": "Delete failed",
|
|
21833
|
+
"feedback.requestFailed": "Request failed",
|
|
21834
|
+
"feedback.triggered": "Enqueued task #{id}",
|
|
21835
|
+
"feedback.taskCreated": "Enqueued task #{id}",
|
|
21836
|
+
"feedback.taskUpdated": "Updated task #{id}",
|
|
21837
|
+
"feedback.taskCloned": "Cloned task #{id}",
|
|
21838
|
+
"feedback.taskRetried": "Task #{id} re-enqueued",
|
|
21839
|
+
"feedback.taskCancelled": "Task #{id} cancelled",
|
|
21840
|
+
"feedback.taskDeleted": "Task #{id} deleted",
|
|
21841
|
+
"feedback.batchDone": "Batch complete ({count})",
|
|
21842
|
+
"feedback.templateCreated": "Schedule created",
|
|
21843
|
+
"feedback.templateUpdated": "Schedule updated",
|
|
21844
|
+
"feedback.configSaved": "Config saved",
|
|
21845
|
+
"feedback.sessionCommandCopied": "Session command copied",
|
|
21846
|
+
"feedback.commandCopied": "Command copied",
|
|
21847
|
+
"feedback.restarting": "Restarting Gateway\u2026",
|
|
21848
|
+
"feedback.restartTimeout": "Gateway has not recovered yet.",
|
|
21849
|
+
"feedback.databaseCleared": "Database cleared. Backup: {path}",
|
|
21850
|
+
"feedback.copyFailed": "Copy failed",
|
|
21851
|
+
"a11y.skip": "Skip to content",
|
|
21852
|
+
"a11y.refreshing": "Refreshing"
|
|
21800
21853
|
};
|
|
21801
|
-
|
|
21854
|
+
|
|
21855
|
+
// src/web/locales/es.ts
|
|
21856
|
+
var ES = {
|
|
21802
21857
|
"app.name": "SuperTask",
|
|
21803
21858
|
"app.local": "Local",
|
|
21804
|
-
"nav.tasks": "
|
|
21805
|
-
"nav.templates": "
|
|
21806
|
-
"nav.runs": "
|
|
21807
|
-
"nav.system": "
|
|
21808
|
-
"page.tasks.title": "
|
|
21809
|
-
"page.templates.title": "
|
|
21810
|
-
"page.runs.title": "
|
|
21811
|
-
"page.system.title": "
|
|
21812
|
-
"theme.label": "
|
|
21813
|
-
"theme.system": "
|
|
21814
|
-
"theme.light": "
|
|
21815
|
-
"theme.dark": "
|
|
21816
|
-
"language.label": "
|
|
21817
|
-
"action.refresh": "
|
|
21818
|
-
"action.createTask": "
|
|
21819
|
-
"action.createTemplate": "
|
|
21820
|
-
"action.saveTask": "
|
|
21821
|
-
"action.updateTask": "
|
|
21822
|
-
"action.saveTemplate": "
|
|
21823
|
-
"action.edit": "
|
|
21824
|
-
"action.clone": "
|
|
21825
|
-
"action.details": "
|
|
21826
|
-
"action.retry": "
|
|
21827
|
-
"action.cancel": "
|
|
21828
|
-
"action.delete": "
|
|
21829
|
-
"action.trigger": "
|
|
21830
|
-
"action.enable": "
|
|
21831
|
-
"action.disable": "
|
|
21832
|
-
"action.logs": "
|
|
21833
|
-
"action.hideLogs": "
|
|
21834
|
-
"action.save": "
|
|
21835
|
-
"action.saveAndRestart": "
|
|
21836
|
-
"action.clearDatabase": "
|
|
21837
|
-
"action.copy": "
|
|
21838
|
-
"action.copyCommand": "
|
|
21839
|
-
"action.continueSession": "
|
|
21840
|
-
"action.chooseFolder": "
|
|
21841
|
-
"action.home": "
|
|
21842
|
-
"action.up": "
|
|
21843
|
-
"action.showHidden": "
|
|
21844
|
-
"action.hideHidden": "
|
|
21845
|
-
"action.chooseThisFolder": "
|
|
21846
|
-
"action.close": "
|
|
21847
|
-
"action.confirm": "
|
|
21848
|
-
"action.clearSelection": "
|
|
21849
|
-
"action.viewTasks": "
|
|
21850
|
-
"action.more": "
|
|
21851
|
-
"action.selectAll": "
|
|
21852
|
-
"action.openMenu": "
|
|
21853
|
-
"filter.all": "
|
|
21854
|
-
"filter.searchTasks": "
|
|
21855
|
-
"filter.allAgents": "
|
|
21856
|
-
"filter.allBatches": "
|
|
21857
|
-
"filter.noResults": "
|
|
21858
|
-
"filter.templateScope": "
|
|
21859
|
-
"filter.clearFilter": "
|
|
21860
|
-
"projects.title": "
|
|
21861
|
-
"projects.all": "
|
|
21862
|
-
"projects.legacy": "
|
|
21863
|
-
"projects.counts": "{running}
|
|
21859
|
+
"nav.tasks": "Tareas",
|
|
21860
|
+
"nav.templates": "Programadas",
|
|
21861
|
+
"nav.runs": "Ejecuciones",
|
|
21862
|
+
"nav.system": "Sistema",
|
|
21863
|
+
"page.tasks.title": "Cola de tareas",
|
|
21864
|
+
"page.templates.title": "Tareas programadas",
|
|
21865
|
+
"page.runs.title": "Historial de ejecuci\xF3n",
|
|
21866
|
+
"page.system.title": "Sistema",
|
|
21867
|
+
"theme.label": "Tema",
|
|
21868
|
+
"theme.system": "Sistema",
|
|
21869
|
+
"theme.light": "Claro",
|
|
21870
|
+
"theme.dark": "Oscuro",
|
|
21871
|
+
"language.label": "Idioma",
|
|
21872
|
+
"action.refresh": "Actualizar",
|
|
21873
|
+
"action.createTask": "Nueva tarea",
|
|
21874
|
+
"action.createTemplate": "Nueva programaci\xF3n",
|
|
21875
|
+
"action.saveTask": "Encolar",
|
|
21876
|
+
"action.updateTask": "Guardar",
|
|
21877
|
+
"action.saveTemplate": "Guardar",
|
|
21878
|
+
"action.edit": "Editar",
|
|
21879
|
+
"action.clone": "Clonar",
|
|
21880
|
+
"action.details": "Detalles",
|
|
21881
|
+
"action.retry": "Reintentar",
|
|
21882
|
+
"action.cancel": "Cancelar",
|
|
21883
|
+
"action.delete": "Eliminar",
|
|
21884
|
+
"action.trigger": "Ejecutar ahora",
|
|
21885
|
+
"action.enable": "Activar",
|
|
21886
|
+
"action.disable": "Desactivar",
|
|
21887
|
+
"action.logs": "Registro",
|
|
21888
|
+
"action.hideLogs": "Ocultar",
|
|
21889
|
+
"action.save": "Guardar ajustes",
|
|
21890
|
+
"action.saveAndRestart": "Guardar y reiniciar",
|
|
21891
|
+
"action.clearDatabase": "Vaciar datos",
|
|
21892
|
+
"action.copy": "Copiar",
|
|
21893
|
+
"action.copyCommand": "Copiar comando",
|
|
21894
|
+
"action.continueSession": "Continuar",
|
|
21895
|
+
"action.chooseFolder": "Explorar",
|
|
21896
|
+
"action.home": "Inicio",
|
|
21897
|
+
"action.up": "Subir",
|
|
21898
|
+
"action.showHidden": "Mostrar ocultas",
|
|
21899
|
+
"action.hideHidden": "Ocultar ocultas",
|
|
21900
|
+
"action.chooseThisFolder": "Elegir carpeta",
|
|
21901
|
+
"action.close": "Cerrar",
|
|
21902
|
+
"action.confirm": "Confirmar",
|
|
21903
|
+
"action.clearSelection": "Limpiar",
|
|
21904
|
+
"action.viewTasks": "Ver tareas",
|
|
21905
|
+
"action.more": "M\xE1s",
|
|
21906
|
+
"action.selectAll": "Seleccionar todo",
|
|
21907
|
+
"action.openMenu": "Men\xFA",
|
|
21908
|
+
"filter.all": "Todas",
|
|
21909
|
+
"filter.searchTasks": "Buscar tareas, lote o #ID\u2026",
|
|
21910
|
+
"filter.allAgents": "Todos los agentes",
|
|
21911
|
+
"filter.allBatches": "Todos los lotes",
|
|
21912
|
+
"filter.noResults": "Sin tareas coincidentes",
|
|
21913
|
+
"filter.templateScope": "Plantilla #{id}",
|
|
21914
|
+
"filter.clearFilter": "Limpiar",
|
|
21915
|
+
"projects.title": "Proyectos",
|
|
21916
|
+
"projects.all": "Todos los proyectos",
|
|
21917
|
+
"projects.legacy": "Sin agrupar",
|
|
21918
|
+
"projects.counts": "{running} en ejecuci\xF3n \xB7 {pending} en cola \xB7 {failed} con problemas",
|
|
21864
21919
|
"projects.successRate": "{rate}%",
|
|
21865
|
-
"
|
|
21866
|
-
"stats.
|
|
21867
|
-
"stats.
|
|
21868
|
-
"stats.
|
|
21920
|
+
"projects.rate7d": "Tasa de \xE9xito (7d)",
|
|
21921
|
+
"stats.pending": "En cola",
|
|
21922
|
+
"stats.running": "En ejecuci\xF3n",
|
|
21923
|
+
"stats.done": "Completadas",
|
|
21924
|
+
"stats.failedDead": "Problemas",
|
|
21869
21925
|
"stats.templates": "Total",
|
|
21870
|
-
"stats.enabled": "
|
|
21871
|
-
"stats.disabled": "
|
|
21926
|
+
"stats.enabled": "Activadas",
|
|
21927
|
+
"stats.disabled": "Desactivadas",
|
|
21872
21928
|
"stats.records": "Total",
|
|
21873
|
-
"stats.pageDone": "
|
|
21874
|
-
"stats.pageFailed": "
|
|
21875
|
-
"stats.pageRunning": "
|
|
21929
|
+
"stats.pageDone": "Correctas",
|
|
21930
|
+
"stats.pageFailed": "Fallidas",
|
|
21931
|
+
"stats.pageRunning": "En ejecuci\xF3n",
|
|
21876
21932
|
"table.id": "ID",
|
|
21877
|
-
"table.task": "
|
|
21878
|
-
"table.name": "
|
|
21879
|
-
"table.agent": "
|
|
21880
|
-
"table.model": "
|
|
21881
|
-
"table.status": "
|
|
21882
|
-
"table.duration": "
|
|
21883
|
-
"table.retries": "
|
|
21884
|
-
"table.actions": "
|
|
21885
|
-
"table.type": "
|
|
21886
|
-
"table.rule": "
|
|
21887
|
-
"table.lastRun": "
|
|
21888
|
-
"table.nextRun": "
|
|
21889
|
-
"table.run": "
|
|
21890
|
-
"table.session": "
|
|
21933
|
+
"table.task": "Tarea",
|
|
21934
|
+
"table.name": "Nombre",
|
|
21935
|
+
"table.agent": "Agente",
|
|
21936
|
+
"table.model": "Modelo",
|
|
21937
|
+
"table.status": "Estado",
|
|
21938
|
+
"table.duration": "Duraci\xF3n",
|
|
21939
|
+
"table.retries": "Reintentos",
|
|
21940
|
+
"table.actions": "Acciones",
|
|
21941
|
+
"table.type": "Tipo",
|
|
21942
|
+
"table.rule": "Regla",
|
|
21943
|
+
"table.lastRun": "\xDAltima ejecuci\xF3n",
|
|
21944
|
+
"table.nextRun": "Pr\xF3xima ejecuci\xF3n",
|
|
21945
|
+
"table.run": "Ejecuci\xF3n",
|
|
21946
|
+
"table.session": "Sesi\xF3n",
|
|
21891
21947
|
"table.heartbeat": "Heartbeat",
|
|
21892
|
-
"table.startedAt": "
|
|
21948
|
+
"table.startedAt": "Inicio",
|
|
21893
21949
|
"table.pid": "PID",
|
|
21894
|
-
"
|
|
21895
|
-
"status.
|
|
21896
|
-
"status.
|
|
21897
|
-
"status.
|
|
21898
|
-
"status.
|
|
21899
|
-
"status.
|
|
21900
|
-
"status.
|
|
21901
|
-
"status.
|
|
21902
|
-
"status.
|
|
21903
|
-
"status.
|
|
21904
|
-
"status.
|
|
21905
|
-
"
|
|
21906
|
-
"runStatus.
|
|
21907
|
-
"runStatus.
|
|
21950
|
+
"table.pidTooltip": "Worker \u203A Guardian",
|
|
21951
|
+
"status.pending": "En cola",
|
|
21952
|
+
"status.running": "En ejecuci\xF3n",
|
|
21953
|
+
"status.done": "Completada",
|
|
21954
|
+
"status.failed": "Reintentando",
|
|
21955
|
+
"status.dead_letter": "Detenida",
|
|
21956
|
+
"status.cancelled": "Cancelada",
|
|
21957
|
+
"status.unknown": "Desconocido",
|
|
21958
|
+
"status.executionStillActive": "Deteniendo",
|
|
21959
|
+
"status.waitingDep": "Espera #{id}",
|
|
21960
|
+
"status.batchBusy": "Lote ocupado",
|
|
21961
|
+
"status.retryIn": "Reintento en {duration}",
|
|
21962
|
+
"runStatus.running": "En ejecuci\xF3n",
|
|
21963
|
+
"runStatus.done": "Correcta",
|
|
21964
|
+
"runStatus.failed": "Fallida",
|
|
21965
|
+
"schedule.cron": "Cron",
|
|
21966
|
+
"schedule.recurring": "Intervalo",
|
|
21967
|
+
"schedule.delayed": "Una vez",
|
|
21968
|
+
"schedule.unknown": "Desconocido",
|
|
21969
|
+
"schedule.enabled": "Activada",
|
|
21970
|
+
"schedule.disabled": "Desactivada",
|
|
21971
|
+
"schedule.overdue": "Vencida",
|
|
21972
|
+
"schedule.seconds": "{count} s",
|
|
21973
|
+
"schedule.minutes": "{count} min",
|
|
21974
|
+
"schedule.hours": "{count} h",
|
|
21975
|
+
"schedule.days": "{count} d",
|
|
21976
|
+
"schedule.cronPreset.hourly": "Cada hora",
|
|
21977
|
+
"schedule.cronPreset.daily9": "Diario 09:00",
|
|
21978
|
+
"schedule.cronPreset.weekday9": "Laborables 09:00",
|
|
21979
|
+
"schedule.cronPreset.weeklyMon": "Lunes 09:00",
|
|
21980
|
+
"duration.seconds": "s",
|
|
21981
|
+
"duration.minutes": "min",
|
|
21982
|
+
"duration.hours": "h",
|
|
21983
|
+
"duration.days": "d",
|
|
21984
|
+
"duration.every": "Cada {duration}",
|
|
21985
|
+
"duration.immediate": "Inmediato",
|
|
21986
|
+
"duration.systemDefault": "Predeterminado",
|
|
21987
|
+
"duration.custom": "Personalizado",
|
|
21988
|
+
"duration.unit": "Unidad",
|
|
21989
|
+
"pagination.previous": "Anterior",
|
|
21990
|
+
"pagination.next": "Siguiente",
|
|
21991
|
+
"pagination.summary": "{page} / {pages} \xB7 {total} en total",
|
|
21992
|
+
"empty.tasks": "Sin tareas",
|
|
21993
|
+
"empty.templates": "Sin tareas programadas",
|
|
21994
|
+
"empty.runs": "Sin ejecuciones",
|
|
21995
|
+
"empty.running": "Sin ejecuciones activas",
|
|
21996
|
+
"task.createTitle": "Nueva tarea",
|
|
21997
|
+
"task.editTitle": "Editar tarea",
|
|
21998
|
+
"task.projectExisting": "{running} en ejecuci\xF3n \xB7 {pending} en cola \xB7 {failed} con problemas",
|
|
21999
|
+
"task.projectNew": "Nuevo directorio de proyecto",
|
|
22000
|
+
"template.createTitle": "Nueva programaci\xF3n",
|
|
22001
|
+
"template.editTitle": "Editar programaci\xF3n",
|
|
22002
|
+
"template.name": "Nombre",
|
|
22003
|
+
"template.cwd": "Directorio del proyecto",
|
|
22004
|
+
"template.agent": "Agente",
|
|
22005
|
+
"template.model": "Modelo",
|
|
22006
|
+
"template.variant": "Variante",
|
|
22007
|
+
"template.prompt": "Prompt",
|
|
22008
|
+
"template.dependsOn": "Depende de",
|
|
22009
|
+
"template.dependsOnNone": "Ninguna",
|
|
22010
|
+
"template.scheduleType": "Tipo",
|
|
22011
|
+
"template.cronExpr": "Expresi\xF3n cron",
|
|
22012
|
+
"template.interval": "Intervalo",
|
|
22013
|
+
"template.runAt": "Ejecutar a las",
|
|
22014
|
+
"template.advanced": "Avanzado",
|
|
22015
|
+
"template.category": "Categor\xEDa",
|
|
22016
|
+
"template.batchId": "Lote",
|
|
22017
|
+
"template.importance": "Importancia",
|
|
22018
|
+
"template.urgency": "Urgencia",
|
|
22019
|
+
"template.maxInstances": "Instancias m\xE1x.",
|
|
22020
|
+
"template.maxRetries": "Reintentos m\xE1x.",
|
|
22021
|
+
"template.retryBackoff": "Espera entre reintentos",
|
|
22022
|
+
"template.timeout": "Timeout",
|
|
22023
|
+
"catalog.chooseProject": "Elige un directorio primero",
|
|
22024
|
+
"catalog.defaultProvider": "Predeterminado",
|
|
22025
|
+
"catalog.defaultModel": "Modelo predeterminado",
|
|
22026
|
+
"catalog.defaultVariant": "Predeterminada",
|
|
22027
|
+
"catalog.loading": "Cargando cat\xE1logo\u2026",
|
|
22028
|
+
"catalog.loaded": "{agents} agentes \xB7 {models} modelos",
|
|
22029
|
+
"catalog.failed": "Error: {error}",
|
|
22030
|
+
"catalog.primary": "principal",
|
|
22031
|
+
"catalog.subagent": "subagente",
|
|
22032
|
+
"catalog.all": "general",
|
|
22033
|
+
"directory.title": "Elegir directorio del proyecto",
|
|
22034
|
+
"directory.empty": "Sin subcarpetas",
|
|
22035
|
+
"system.worker": "Worker",
|
|
22036
|
+
"system.scheduler": "Scheduler",
|
|
22037
|
+
"system.watchdog": "Watchdog",
|
|
22038
|
+
"system.watchdogCleanup": "Limpieza",
|
|
22039
|
+
"system.health": "Estado del Gateway",
|
|
22040
|
+
"system.healthy": "Saludable",
|
|
22041
|
+
"system.degraded": "Degradado",
|
|
22042
|
+
"system.reconnecting": "Reconectando",
|
|
22043
|
+
"system.disabled": "Desactivado",
|
|
22044
|
+
"system.uptime": "Tiempo activo",
|
|
22045
|
+
"system.failures": "Fallos",
|
|
22046
|
+
"system.lastActivity": "\xDAltima actividad",
|
|
22047
|
+
"system.lock": "Bloqueo",
|
|
22048
|
+
"system.concurrency": "Concurrencia",
|
|
22049
|
+
"system.maxConcurrency": "Concurrencia m\xE1x.",
|
|
22050
|
+
"system.pollInterval": "Intervalo de sondeo",
|
|
22051
|
+
"system.heartbeatInterval": "Intervalo de heartbeat",
|
|
22052
|
+
"system.taskTimeout": "Timeout predeterminado",
|
|
22053
|
+
"system.schedulerEnabled": "Activar programador",
|
|
22054
|
+
"system.checkInterval": "Intervalo de comprobaci\xF3n",
|
|
22055
|
+
"system.activeTemplates": "Plantillas activas",
|
|
22056
|
+
"system.heartbeatTimeout": "Timeout de heartbeat",
|
|
22057
|
+
"system.cleanupInterval": "Intervalo de limpieza",
|
|
22058
|
+
"system.retentionDays": "Retenci\xF3n",
|
|
22059
|
+
"system.milliseconds": "ms",
|
|
22060
|
+
"system.seconds": "s",
|
|
22061
|
+
"system.minutes": "min",
|
|
22062
|
+
"system.hours": "h",
|
|
22063
|
+
"system.days": "d",
|
|
22064
|
+
"system.configForeground": "Primer plano \xB7 requiere reinicio",
|
|
22065
|
+
"system.configApplied": "El entorno coincide con la configuraci\xF3n guardada",
|
|
22066
|
+
"system.configPending": "Cambios pendientes \xB7 reinicia el Gateway para aplicar",
|
|
22067
|
+
"system.configRestartManually": "Cambios pendientes \xB7 reinicia el Gateway manualmente",
|
|
22068
|
+
"system.savedValue": "Guardado",
|
|
22069
|
+
"system.runtimeValue": "En curso",
|
|
22070
|
+
"system.runningTasks": "Ejecuciones activas \xB7 {running} / {limit}",
|
|
22071
|
+
"system.configFile": "Archivo de configuraci\xF3n",
|
|
22072
|
+
"system.path": "Ruta",
|
|
22073
|
+
"system.fileExists": "Estado",
|
|
22074
|
+
"system.yes": "Existe",
|
|
22075
|
+
"system.noDefault": "Predeterminado",
|
|
22076
|
+
"system.danger": "Zona de peligro",
|
|
22077
|
+
"system.dangerDescription": "Vac\xEDa todas las tareas, ejecuciones y programaciones tras crear una copia de seguridad verificada.",
|
|
22078
|
+
"logs.command": "Comando",
|
|
22079
|
+
"logs.output": "Salida",
|
|
22080
|
+
"logs.error": "Error",
|
|
22081
|
+
"logs.tools": "Herramientas",
|
|
22082
|
+
"logs.raw": "JSONL en bruto",
|
|
22083
|
+
"logs.noText": "Sin salida de texto",
|
|
22084
|
+
"logs.loading": "Cargando registro\u2026",
|
|
22085
|
+
"logs.live": "En vivo",
|
|
22086
|
+
"logs.steps": "Pasos",
|
|
22087
|
+
"logs.tokens": "Tokens",
|
|
22088
|
+
"logs.tokInput": "Ent.",
|
|
22089
|
+
"logs.tokOutput": "Sal.",
|
|
22090
|
+
"logs.tokReasoning": "Razon.",
|
|
22091
|
+
"logs.tokCache": "Cach\xE9",
|
|
22092
|
+
"logs.tokCacheRead": "L",
|
|
22093
|
+
"logs.tokCacheWrite": "E",
|
|
22094
|
+
"logs.cost": "Coste",
|
|
22095
|
+
"logs.autoScroll": "Autodesplazar",
|
|
22096
|
+
"logs.rootCause": "Causa ra\xEDz",
|
|
22097
|
+
"inspector.tab.overview": "Resumen",
|
|
22098
|
+
"inspector.tab.output": "Salida en vivo",
|
|
22099
|
+
"inspector.tab.history": "Historial",
|
|
22100
|
+
"inspector.dependencies": "Dependencias",
|
|
22101
|
+
"inspector.upstream": "Predecesor",
|
|
22102
|
+
"inspector.downstream": "Dependientes",
|
|
22103
|
+
"inspector.failureSummary": "Fallo",
|
|
22104
|
+
"details.title": "Inspector",
|
|
22105
|
+
"details.taskTitle": "Tarea #{id}",
|
|
22106
|
+
"details.runTitle": "Ejecuci\xF3n #{id}",
|
|
22107
|
+
"details.templateTitle": "Programaci\xF3n #{id}",
|
|
22108
|
+
"details.raw": "JSON en bruto",
|
|
22109
|
+
"details.copySuccess": "Copiado",
|
|
22110
|
+
"details.id": "ID",
|
|
22111
|
+
"details.project": "Proyecto",
|
|
22112
|
+
"details.variant": "Variante",
|
|
22113
|
+
"details.prompt": "Prompt",
|
|
22114
|
+
"details.result": "Resultado",
|
|
22115
|
+
"details.category": "Categor\xEDa",
|
|
22116
|
+
"details.batch": "Lote",
|
|
22117
|
+
"details.dependency": "Dependencia",
|
|
22118
|
+
"details.importance": "Importancia",
|
|
22119
|
+
"details.urgency": "Urgencia",
|
|
22120
|
+
"details.retryCount": "Reintentos",
|
|
22121
|
+
"details.retryBackoff": "Espera",
|
|
22122
|
+
"details.timeout": "Timeout",
|
|
22123
|
+
"details.createdAt": "Creada",
|
|
22124
|
+
"details.updatedAt": "Actualizada",
|
|
22125
|
+
"details.startedAt": "Iniciada",
|
|
22126
|
+
"details.finishedAt": "Finalizada",
|
|
22127
|
+
"details.scheduledAt": "Programada",
|
|
22128
|
+
"details.enabled": "Estado",
|
|
22129
|
+
"details.scheduleRule": "Regla",
|
|
22130
|
+
"details.maxInstances": "Instancias m\xE1x.",
|
|
22131
|
+
"details.maxRetries": "Reintentos m\xE1x.",
|
|
22132
|
+
"details.lastRun": "\xDAltima ejecuci\xF3n",
|
|
22133
|
+
"details.nextRun": "Pr\xF3xima ejecuci\xF3n",
|
|
22134
|
+
"details.taskId": "Tarea",
|
|
22135
|
+
"details.session": "Sesi\xF3n",
|
|
22136
|
+
"details.heartbeat": "Heartbeat",
|
|
22137
|
+
"details.process": "Procesos",
|
|
22138
|
+
"details.history": "Historial de ejecuciones",
|
|
22139
|
+
"details.noHistory": "Sin ejecuciones a\xFAn",
|
|
22140
|
+
"details.none": "\u2014",
|
|
22141
|
+
"details.default": "Predeterminado",
|
|
22142
|
+
"details.enabledYes": "Activada",
|
|
22143
|
+
"details.enabledNo": "Desactivada",
|
|
22144
|
+
"batch.selected": "{count} seleccionadas",
|
|
22145
|
+
"batch.retry": "Reintentar",
|
|
22146
|
+
"batch.cancel": "Cancelar",
|
|
22147
|
+
"batch.delete": "Eliminar",
|
|
22148
|
+
"dialog.cancelTask": "Cancelar tarea #{id}",
|
|
22149
|
+
"dialog.cancelTaskBody": "Detiene la espera en cola o finaliza el grupo de procesos activo.",
|
|
22150
|
+
"dialog.retryTask": "Reintentar tarea #{id}",
|
|
22151
|
+
"dialog.retryTaskBody": "Restablece los reintentos y vuelve a encolar la tarea.",
|
|
22152
|
+
"dialog.deleteTask": "Eliminar tarea #{id}",
|
|
22153
|
+
"dialog.deleteTaskBody": "Elimina permanentemente la tarea y su historial de ejecuci\xF3n.",
|
|
22154
|
+
"dialog.batchRetry": "Reintentar {count} tareas",
|
|
22155
|
+
"dialog.batchRetryBody": "Vuelve a encolar las tareas fallidas y detenidas de la selecci\xF3n.",
|
|
22156
|
+
"dialog.batchCancel": "Cancelar {count} tareas",
|
|
22157
|
+
"dialog.batchCancelBody": "Cancela las tareas en cola, en ejecuci\xF3n y en reintento de la selecci\xF3n.",
|
|
22158
|
+
"dialog.batchDelete": "Eliminar {count} tareas",
|
|
22159
|
+
"dialog.batchDeleteBody": "Elimina permanentemente las tareas inactivas de la selecci\xF3n.",
|
|
22160
|
+
"dialog.disableTemplate": "Desactivar programaci\xF3n",
|
|
22161
|
+
"dialog.disableTemplateBody": "Dejar\xE1 de crear tareas nuevas autom\xE1ticamente.",
|
|
22162
|
+
"dialog.deleteTemplate": "Eliminar programaci\xF3n",
|
|
22163
|
+
"dialog.deleteTemplateBody": "Elimina la plantilla sin borrar las tareas pasadas.",
|
|
22164
|
+
"dialog.triggerTemplate": "Ejecutar ahora",
|
|
22165
|
+
"dialog.triggerTemplateBody": "Crea y encola una tarea de inmediato.",
|
|
22166
|
+
"dialog.clearTitle": "Vaciar base de datos",
|
|
22167
|
+
"dialog.clearBody": "Se eliminar\xE1n todas las tareas, ejecuciones y programaciones.",
|
|
22168
|
+
"dialog.clearInstruction": "Escribe CLEAR para confirmar:",
|
|
22169
|
+
"dialog.restartGateway": "Reiniciar Gateway",
|
|
22170
|
+
"dialog.restartGatewayBody": "Guarda la configuraci\xF3n y reinicia el Gateway con PM2.",
|
|
22171
|
+
"dialog.restartGatewayRunningBody": "Hay {count} tarea(s) en ejecuci\xF3n que se interrumpir\xE1n. \xBFContinuar?",
|
|
22172
|
+
"dialog.copyManualTitle": "Copiar manualmente",
|
|
22173
|
+
"dialog.copyManualBody": "El navegador bloque\xF3 el portapapeles. Pulsa \u2318C o Ctrl+C.",
|
|
22174
|
+
"feedback.retryFailed": "El reintento fall\xF3",
|
|
22175
|
+
"feedback.cancelFailed": "La cancelaci\xF3n fall\xF3",
|
|
22176
|
+
"feedback.deleteFailed": "La eliminaci\xF3n fall\xF3",
|
|
22177
|
+
"feedback.requestFailed": "La solicitud fall\xF3",
|
|
22178
|
+
"feedback.triggered": "Tarea #{id} encolada",
|
|
22179
|
+
"feedback.taskCreated": "Tarea #{id} encolada",
|
|
22180
|
+
"feedback.taskUpdated": "Tarea #{id} actualizada",
|
|
22181
|
+
"feedback.taskCloned": "Tarea #{id} clonada",
|
|
22182
|
+
"feedback.taskRetried": "Tarea #{id} reencolada",
|
|
22183
|
+
"feedback.taskCancelled": "Tarea #{id} cancelada",
|
|
22184
|
+
"feedback.taskDeleted": "Tarea #{id} eliminada",
|
|
22185
|
+
"feedback.batchDone": "Lote completado ({count})",
|
|
22186
|
+
"feedback.templateCreated": "Programaci\xF3n creada",
|
|
22187
|
+
"feedback.templateUpdated": "Programaci\xF3n actualizada",
|
|
22188
|
+
"feedback.configSaved": "Ajustes guardados",
|
|
22189
|
+
"feedback.sessionCommandCopied": "Comando de sesi\xF3n copiado",
|
|
22190
|
+
"feedback.commandCopied": "Comando copiado",
|
|
22191
|
+
"feedback.restarting": "Reiniciando Gateway\u2026",
|
|
22192
|
+
"feedback.restartTimeout": "El Gateway a\xFAn no se ha recuperado.",
|
|
22193
|
+
"feedback.databaseCleared": "Base de datos vaciada. Copia de seguridad: {path}",
|
|
22194
|
+
"feedback.copyFailed": "La copia fall\xF3",
|
|
22195
|
+
"a11y.skip": "Saltar al contenido",
|
|
22196
|
+
"a11y.refreshing": "Actualizando"
|
|
22197
|
+
};
|
|
22198
|
+
|
|
22199
|
+
// src/web/locales/zh-CN.ts
|
|
22200
|
+
var ZH_CN = {
|
|
22201
|
+
"app.name": "SuperTask",
|
|
22202
|
+
"app.local": "\u672C\u5730",
|
|
22203
|
+
"nav.tasks": "\u4EFB\u52A1",
|
|
22204
|
+
"nav.templates": "\u5B9A\u65F6",
|
|
22205
|
+
"nav.runs": "\u6267\u884C",
|
|
22206
|
+
"nav.system": "\u7CFB\u7EDF",
|
|
22207
|
+
"page.tasks.title": "\u4EFB\u52A1\u961F\u5217",
|
|
22208
|
+
"page.templates.title": "\u5B9A\u65F6\u4EFB\u52A1",
|
|
22209
|
+
"page.runs.title": "\u6267\u884C\u8BB0\u5F55",
|
|
22210
|
+
"page.system.title": "\u7CFB\u7EDF\u8BBE\u7F6E",
|
|
22211
|
+
"theme.label": "\u4E3B\u9898",
|
|
22212
|
+
"theme.system": "\u8DDF\u968F\u7CFB\u7EDF",
|
|
22213
|
+
"theme.light": "\u6D45\u8272",
|
|
22214
|
+
"theme.dark": "\u6DF1\u8272",
|
|
22215
|
+
"language.label": "\u8BED\u8A00",
|
|
22216
|
+
"action.refresh": "\u5237\u65B0",
|
|
22217
|
+
"action.createTask": "\u65B0\u5EFA\u4EFB\u52A1",
|
|
22218
|
+
"action.createTemplate": "\u65B0\u5EFA\u5B9A\u65F6",
|
|
22219
|
+
"action.saveTask": "\u52A0\u5165\u961F\u5217",
|
|
22220
|
+
"action.updateTask": "\u4FDD\u5B58",
|
|
22221
|
+
"action.saveTemplate": "\u4FDD\u5B58",
|
|
22222
|
+
"action.edit": "\u7F16\u8F91",
|
|
22223
|
+
"action.clone": "\u514B\u9686\u518D\u8DD1",
|
|
22224
|
+
"action.details": "\u8BE6\u60C5",
|
|
22225
|
+
"action.retry": "\u91CD\u8BD5",
|
|
22226
|
+
"action.cancel": "\u53D6\u6D88",
|
|
22227
|
+
"action.delete": "\u5220\u9664",
|
|
22228
|
+
"action.trigger": "\u7ACB\u5373\u8FD0\u884C",
|
|
22229
|
+
"action.enable": "\u542F\u7528",
|
|
22230
|
+
"action.disable": "\u7981\u7528",
|
|
22231
|
+
"action.logs": "\u65E5\u5FD7",
|
|
22232
|
+
"action.hideLogs": "\u6536\u8D77",
|
|
22233
|
+
"action.save": "\u4FDD\u5B58\u914D\u7F6E",
|
|
22234
|
+
"action.saveAndRestart": "\u4FDD\u5B58\u5E76\u91CD\u542F",
|
|
22235
|
+
"action.clearDatabase": "\u6E05\u7A7A\u6570\u636E",
|
|
22236
|
+
"action.copy": "\u590D\u5236",
|
|
22237
|
+
"action.copyCommand": "\u590D\u5236\u547D\u4EE4",
|
|
22238
|
+
"action.continueSession": "\u7EE7\u7EED\u4F1A\u8BDD",
|
|
22239
|
+
"action.chooseFolder": "\u6D4F\u89C8",
|
|
22240
|
+
"action.home": "\u4E3B\u76EE\u5F55",
|
|
22241
|
+
"action.up": "\u4E0A\u7EA7",
|
|
22242
|
+
"action.showHidden": "\u663E\u793A\u9690\u85CF",
|
|
22243
|
+
"action.hideHidden": "\u9690\u85CF\u70B9\u76EE\u5F55",
|
|
22244
|
+
"action.chooseThisFolder": "\u9009\u62E9\u6B64\u76EE\u5F55",
|
|
22245
|
+
"action.close": "\u5173\u95ED",
|
|
22246
|
+
"action.confirm": "\u786E\u8BA4",
|
|
22247
|
+
"action.clearSelection": "\u53D6\u6D88\u9009\u62E9",
|
|
22248
|
+
"action.viewTasks": "\u67E5\u770B\u4EFB\u52A1",
|
|
22249
|
+
"action.more": "\u66F4\u591A",
|
|
22250
|
+
"action.selectAll": "\u5168\u9009",
|
|
22251
|
+
"action.openMenu": "\u6253\u5F00\u5BFC\u822A",
|
|
22252
|
+
"filter.all": "\u5168\u90E8",
|
|
22253
|
+
"filter.searchTasks": "\u641C\u7D22\u4EFB\u52A1\u3001\u6279\u6B21\u6216 #ID\u2026",
|
|
22254
|
+
"filter.allAgents": "\u5168\u90E8 Agent",
|
|
22255
|
+
"filter.allBatches": "\u5168\u90E8\u6279\u6B21",
|
|
22256
|
+
"filter.noResults": "\u65E0\u5339\u914D\u4EFB\u52A1",
|
|
22257
|
+
"filter.templateScope": "\u6A21\u677F #{id}",
|
|
22258
|
+
"filter.clearFilter": "\u6E05\u9664\u7B5B\u9009",
|
|
22259
|
+
"projects.title": "\u9879\u76EE",
|
|
22260
|
+
"projects.all": "\u5168\u90E8\u9879\u76EE",
|
|
22261
|
+
"projects.legacy": "\u672A\u5206\u7EC4",
|
|
22262
|
+
"projects.counts": "\u8FD0\u884C {running} \xB7 \u6392\u961F {pending} \xB7 \u5F02\u5E38 {failed}",
|
|
22263
|
+
"projects.successRate": "{rate}%",
|
|
22264
|
+
"projects.rate7d": "\u8FD1 7 \u5929\u6210\u529F\u7387",
|
|
22265
|
+
"stats.pending": "\u6392\u961F\u4E2D",
|
|
22266
|
+
"stats.running": "\u8FD0\u884C\u4E2D",
|
|
22267
|
+
"stats.done": "\u5DF2\u5B8C\u6210",
|
|
22268
|
+
"stats.failedDead": "\u5F02\u5E38",
|
|
22269
|
+
"stats.templates": "\u5168\u90E8",
|
|
22270
|
+
"stats.enabled": "\u5DF2\u542F\u7528",
|
|
22271
|
+
"stats.disabled": "\u5DF2\u7981\u7528",
|
|
22272
|
+
"stats.records": "\u603B\u8BB0\u5F55",
|
|
22273
|
+
"stats.pageDone": "\u6210\u529F",
|
|
22274
|
+
"stats.pageFailed": "\u5931\u8D25",
|
|
22275
|
+
"stats.pageRunning": "\u8FD0\u884C\u4E2D",
|
|
22276
|
+
"table.id": "ID",
|
|
22277
|
+
"table.task": "\u4EFB\u52A1",
|
|
22278
|
+
"table.name": "\u540D\u79F0",
|
|
22279
|
+
"table.agent": "Agent",
|
|
22280
|
+
"table.model": "\u6A21\u578B",
|
|
22281
|
+
"table.status": "\u72B6\u6001",
|
|
22282
|
+
"table.duration": "\u8017\u65F6",
|
|
22283
|
+
"table.retries": "\u91CD\u8BD5",
|
|
22284
|
+
"table.actions": "\u64CD\u4F5C",
|
|
22285
|
+
"table.type": "\u7C7B\u578B",
|
|
22286
|
+
"table.rule": "\u89C4\u5219",
|
|
22287
|
+
"table.lastRun": "\u4E0A\u6B21\u6267\u884C",
|
|
22288
|
+
"table.nextRun": "\u4E0B\u6B21\u6267\u884C",
|
|
22289
|
+
"table.run": "\u6267\u884C",
|
|
22290
|
+
"table.session": "\u4F1A\u8BDD",
|
|
22291
|
+
"table.heartbeat": "\u5FC3\u8DF3",
|
|
22292
|
+
"table.startedAt": "\u5F00\u59CB\u65F6\u95F4",
|
|
22293
|
+
"table.pid": "\u8FDB\u7A0B",
|
|
22294
|
+
"table.pidTooltip": "Worker \u203A Guardian",
|
|
22295
|
+
"status.pending": "\u6392\u961F\u4E2D",
|
|
22296
|
+
"status.running": "\u8FD0\u884C\u4E2D",
|
|
22297
|
+
"status.done": "\u5DF2\u5B8C\u6210",
|
|
22298
|
+
"status.failed": "\u7B49\u5F85\u91CD\u8BD5",
|
|
22299
|
+
"status.dead_letter": "\u5DF2\u505C\u6B62",
|
|
22300
|
+
"status.cancelled": "\u5DF2\u53D6\u6D88",
|
|
22301
|
+
"status.unknown": "\u672A\u77E5",
|
|
22302
|
+
"status.executionStillActive": "\u8FDB\u7A0B\u9000\u51FA\u4E2D",
|
|
22303
|
+
"status.waitingDep": "\u7B49 #{id}",
|
|
22304
|
+
"status.batchBusy": "\u6279\u6B21\u5360\u7528",
|
|
22305
|
+
"status.retryIn": "{duration}\u540E\u91CD\u8BD5",
|
|
22306
|
+
"runStatus.running": "\u8FD0\u884C\u4E2D",
|
|
22307
|
+
"runStatus.done": "\u6210\u529F",
|
|
22308
|
+
"runStatus.failed": "\u5931\u8D25",
|
|
21908
22309
|
"schedule.cron": "Cron",
|
|
21909
|
-
"schedule.recurring": "
|
|
21910
|
-
"schedule.delayed": "
|
|
21911
|
-
"schedule.unknown": "
|
|
21912
|
-
"schedule.enabled": "
|
|
21913
|
-
"schedule.disabled": "
|
|
21914
|
-
"schedule.overdue": "
|
|
21915
|
-
"schedule.seconds": "{count}
|
|
21916
|
-
"schedule.minutes": "{count}
|
|
21917
|
-
"schedule.hours": "{count}
|
|
21918
|
-
"schedule.days": "{count}
|
|
21919
|
-
"schedule.cronPreset.hourly": "
|
|
21920
|
-
"schedule.cronPreset.daily9": "
|
|
21921
|
-
"schedule.cronPreset.weekday9": "
|
|
21922
|
-
"schedule.cronPreset.weeklyMon": "
|
|
21923
|
-
"duration.seconds": "
|
|
21924
|
-
"duration.minutes": "
|
|
21925
|
-
"duration.hours": "
|
|
21926
|
-
"duration.days": "
|
|
21927
|
-
"duration.every": "
|
|
21928
|
-
"duration.immediate": "
|
|
21929
|
-
"duration.systemDefault": "
|
|
21930
|
-
"duration.custom": "
|
|
21931
|
-
"duration.unit": "
|
|
21932
|
-
"pagination.previous": "
|
|
21933
|
-
"pagination.next": "
|
|
21934
|
-
"pagination.summary": "{page} / {pages} \xB7 {total}
|
|
21935
|
-
"empty.tasks": "
|
|
21936
|
-
"empty.templates": "
|
|
21937
|
-
"empty.runs": "
|
|
21938
|
-
"empty.running": "
|
|
21939
|
-
"task.createTitle": "
|
|
21940
|
-
"task.editTitle": "
|
|
21941
|
-
"task.projectExisting": "{running}
|
|
21942
|
-
"task.projectNew": "
|
|
21943
|
-
"template.createTitle": "
|
|
21944
|
-
"template.editTitle": "
|
|
21945
|
-
"template.name": "
|
|
21946
|
-
"template.cwd": "
|
|
22310
|
+
"schedule.recurring": "\u5FAA\u73AF",
|
|
22311
|
+
"schedule.delayed": "\u4E00\u6B21\u6027",
|
|
22312
|
+
"schedule.unknown": "\u672A\u77E5",
|
|
22313
|
+
"schedule.enabled": "\u542F\u7528",
|
|
22314
|
+
"schedule.disabled": "\u7981\u7528",
|
|
22315
|
+
"schedule.overdue": "\u5373\u5C06\u6267\u884C",
|
|
22316
|
+
"schedule.seconds": "{count} \u79D2",
|
|
22317
|
+
"schedule.minutes": "{count} \u5206\u949F",
|
|
22318
|
+
"schedule.hours": "{count} \u5C0F\u65F6",
|
|
22319
|
+
"schedule.days": "{count} \u5929",
|
|
22320
|
+
"schedule.cronPreset.hourly": "\u6BCF\u5C0F\u65F6",
|
|
22321
|
+
"schedule.cronPreset.daily9": "\u6BCF\u5929 09:00",
|
|
22322
|
+
"schedule.cronPreset.weekday9": "\u5DE5\u4F5C\u65E5 09:00",
|
|
22323
|
+
"schedule.cronPreset.weeklyMon": "\u6BCF\u5468\u4E00 09:00",
|
|
22324
|
+
"duration.seconds": "\u79D2",
|
|
22325
|
+
"duration.minutes": "\u5206\u949F",
|
|
22326
|
+
"duration.hours": "\u5C0F\u65F6",
|
|
22327
|
+
"duration.days": "\u5929",
|
|
22328
|
+
"duration.every": "\u6BCF {duration}",
|
|
22329
|
+
"duration.immediate": "\u7ACB\u5373",
|
|
22330
|
+
"duration.systemDefault": "\u9ED8\u8BA4\u8D85\u65F6",
|
|
22331
|
+
"duration.custom": "\u81EA\u5B9A\u4E49",
|
|
22332
|
+
"duration.unit": "\u5355\u4F4D",
|
|
22333
|
+
"pagination.previous": "\u4E0A\u4E00\u9875",
|
|
22334
|
+
"pagination.next": "\u4E0B\u4E00\u9875",
|
|
22335
|
+
"pagination.summary": "{page} / {pages} \xB7 \u5171 {total} \u6761",
|
|
22336
|
+
"empty.tasks": "\u6682\u65E0\u4EFB\u52A1",
|
|
22337
|
+
"empty.templates": "\u6682\u65E0\u5B9A\u65F6\u4EFB\u52A1",
|
|
22338
|
+
"empty.runs": "\u6682\u65E0\u6267\u884C\u8BB0\u5F55",
|
|
22339
|
+
"empty.running": "\u5F53\u524D\u65E0\u8FD0\u884C\u4E2D\u4EFB\u52A1",
|
|
22340
|
+
"task.createTitle": "\u65B0\u5EFA\u4EFB\u52A1",
|
|
22341
|
+
"task.editTitle": "\u7F16\u8F91\u4EFB\u52A1",
|
|
22342
|
+
"task.projectExisting": "\u8FD0\u884C {running} \xB7 \u6392\u961F {pending} \xB7 \u5F02\u5E38 {failed}",
|
|
22343
|
+
"task.projectNew": "\u65B0\u9879\u76EE\u76EE\u5F55",
|
|
22344
|
+
"template.createTitle": "\u65B0\u5EFA\u5B9A\u65F6\u4EFB\u52A1",
|
|
22345
|
+
"template.editTitle": "\u7F16\u8F91\u5B9A\u65F6\u4EFB\u52A1",
|
|
22346
|
+
"template.name": "\u540D\u79F0",
|
|
22347
|
+
"template.cwd": "\u9879\u76EE\u76EE\u5F55",
|
|
21947
22348
|
"template.agent": "Agent",
|
|
21948
|
-
"template.model": "
|
|
22349
|
+
"template.model": "\u6A21\u578B",
|
|
21949
22350
|
"template.variant": "Variant",
|
|
21950
|
-
"template.prompt": "
|
|
21951
|
-
"template.dependsOn": "
|
|
21952
|
-
"template.dependsOnNone": "
|
|
21953
|
-
"template.scheduleType": "
|
|
21954
|
-
"template.cronExpr": "Cron
|
|
21955
|
-
"template.interval": "
|
|
21956
|
-
"template.runAt": "
|
|
21957
|
-
"template.advanced": "
|
|
21958
|
-
"template.category": "
|
|
21959
|
-
"template.batchId": "
|
|
21960
|
-
"template.importance": "
|
|
21961
|
-
"template.urgency": "
|
|
21962
|
-
"template.maxInstances": "
|
|
21963
|
-
"template.maxRetries": "
|
|
21964
|
-
"template.retryBackoff": "
|
|
21965
|
-
"template.timeout": "
|
|
21966
|
-
"catalog.chooseProject": "
|
|
21967
|
-
"catalog.defaultProvider": "
|
|
21968
|
-
"catalog.defaultModel": "
|
|
21969
|
-
"catalog.defaultVariant": "
|
|
21970
|
-
"catalog.loading": "
|
|
21971
|
-
"catalog.loaded": "{agents}
|
|
21972
|
-
"catalog.failed": "
|
|
21973
|
-
"catalog.primary": "
|
|
21974
|
-
"catalog.subagent": "
|
|
21975
|
-
"catalog.all": "
|
|
21976
|
-
"directory.title": "
|
|
21977
|
-
"directory.empty": "
|
|
22351
|
+
"template.prompt": "\u63D0\u793A\u8BCD",
|
|
22352
|
+
"template.dependsOn": "\u524D\u7F6E\u4F9D\u8D56",
|
|
22353
|
+
"template.dependsOnNone": "\u65E0\u4F9D\u8D56",
|
|
22354
|
+
"template.scheduleType": "\u8C03\u5EA6\u7C7B\u578B",
|
|
22355
|
+
"template.cronExpr": "Cron \u8868\u8FBE\u5F0F",
|
|
22356
|
+
"template.interval": "\u6267\u884C\u95F4\u9694",
|
|
22357
|
+
"template.runAt": "\u6267\u884C\u65F6\u95F4",
|
|
22358
|
+
"template.advanced": "\u9AD8\u7EA7\u9009\u9879",
|
|
22359
|
+
"template.category": "\u5206\u7C7B",
|
|
22360
|
+
"template.batchId": "\u6279\u6B21",
|
|
22361
|
+
"template.importance": "\u91CD\u8981\u5EA6",
|
|
22362
|
+
"template.urgency": "\u7D27\u6025\u5EA6",
|
|
22363
|
+
"template.maxInstances": "\u5E76\u53D1\u4E0A\u9650",
|
|
22364
|
+
"template.maxRetries": "\u91CD\u8BD5\u6B21\u6570",
|
|
22365
|
+
"template.retryBackoff": "\u9000\u907F\u57FA\u51C6",
|
|
22366
|
+
"template.timeout": "\u8D85\u65F6",
|
|
22367
|
+
"catalog.chooseProject": "\u8BF7\u5148\u9009\u76EE\u5F55",
|
|
22368
|
+
"catalog.defaultProvider": "\u9ED8\u8BA4",
|
|
22369
|
+
"catalog.defaultModel": "\u9ED8\u8BA4\u6A21\u578B",
|
|
22370
|
+
"catalog.defaultVariant": "\u9ED8\u8BA4",
|
|
22371
|
+
"catalog.loading": "\u52A0\u8F7D\u76EE\u5F55\u80FD\u529B\u2026",
|
|
22372
|
+
"catalog.loaded": "{agents} \u4E2A Agent \xB7 {models} \u4E2A\u6A21\u578B",
|
|
22373
|
+
"catalog.failed": "\u8BFB\u53D6\u5931\u8D25\uFF1A{error}",
|
|
22374
|
+
"catalog.primary": "\u4E3B",
|
|
22375
|
+
"catalog.subagent": "\u5B50",
|
|
22376
|
+
"catalog.all": "\u901A\u7528",
|
|
22377
|
+
"directory.title": "\u9009\u62E9\u9879\u76EE\u76EE\u5F55",
|
|
22378
|
+
"directory.empty": "\u65E0\u5B50\u76EE\u5F55",
|
|
21978
22379
|
"system.worker": "Worker",
|
|
21979
22380
|
"system.scheduler": "Scheduler",
|
|
21980
22381
|
"system.watchdog": "Watchdog",
|
|
21981
|
-
"system.watchdogCleanup": "
|
|
21982
|
-
"system.health": "
|
|
21983
|
-
"system.healthy": "
|
|
21984
|
-
"system.degraded": "
|
|
21985
|
-
"system.reconnecting": "
|
|
21986
|
-
"system.disabled": "
|
|
21987
|
-
"system.uptime": "
|
|
21988
|
-
"system.failures": "
|
|
21989
|
-
"system.lastActivity": "
|
|
21990
|
-
"system.lock": "
|
|
21991
|
-
"system.concurrency": "
|
|
21992
|
-
"system.maxConcurrency": "
|
|
21993
|
-
"system.pollInterval": "
|
|
21994
|
-
"system.heartbeatInterval": "
|
|
21995
|
-
"system.taskTimeout": "
|
|
21996
|
-
"system.schedulerEnabled": "
|
|
21997
|
-
"system.checkInterval": "
|
|
21998
|
-
"system.activeTemplates": "
|
|
21999
|
-
"system.heartbeatTimeout": "
|
|
22000
|
-
"system.cleanupInterval": "
|
|
22001
|
-
"system.retentionDays": "
|
|
22382
|
+
"system.watchdogCleanup": "\u5386\u53F2\u6E05\u7406",
|
|
22383
|
+
"system.health": "\u8FD0\u884C\u5065\u5EB7",
|
|
22384
|
+
"system.healthy": "\u6B63\u5E38",
|
|
22385
|
+
"system.degraded": "\u964D\u7EA7",
|
|
22386
|
+
"system.reconnecting": "\u91CD\u8FDE\u4E2D",
|
|
22387
|
+
"system.disabled": "\u505C\u7528",
|
|
22388
|
+
"system.uptime": "\u8FD0\u884C\u65F6\u957F",
|
|
22389
|
+
"system.failures": "\u8FDE\u7EED\u5931\u8D25",
|
|
22390
|
+
"system.lastActivity": "\u6700\u8FD1\u6D3B\u8DC3",
|
|
22391
|
+
"system.lock": "\u5B9E\u4F8B\u9501",
|
|
22392
|
+
"system.concurrency": "\u5E76\u53D1",
|
|
22393
|
+
"system.maxConcurrency": "\u6700\u5927\u5E76\u53D1",
|
|
22394
|
+
"system.pollInterval": "\u8F6E\u8BE2\u95F4\u9694",
|
|
22395
|
+
"system.heartbeatInterval": "\u5FC3\u8DF3\u95F4\u9694",
|
|
22396
|
+
"system.taskTimeout": "\u9ED8\u8BA4\u8D85\u65F6",
|
|
22397
|
+
"system.schedulerEnabled": "\u542F\u7528\u8C03\u5EA6\u5668",
|
|
22398
|
+
"system.checkInterval": "\u68C0\u67E5\u95F4\u9694",
|
|
22399
|
+
"system.activeTemplates": "\u542F\u7528\u6A21\u677F",
|
|
22400
|
+
"system.heartbeatTimeout": "\u5FC3\u8DF3\u8D85\u65F6",
|
|
22401
|
+
"system.cleanupInterval": "\u6E05\u7406\u95F4\u9694",
|
|
22402
|
+
"system.retentionDays": "\u4FDD\u7559\u5929\u6570",
|
|
22002
22403
|
"system.milliseconds": "ms",
|
|
22003
22404
|
"system.seconds": "s",
|
|
22004
22405
|
"system.minutes": "min",
|
|
22005
22406
|
"system.hours": "h",
|
|
22006
22407
|
"system.days": "d",
|
|
22007
|
-
"system.configForeground": "
|
|
22008
|
-
"system.configApplied": "
|
|
22009
|
-
"system.configPending": "
|
|
22010
|
-
"system.configRestartManually": "
|
|
22011
|
-
"system.savedValue": "
|
|
22012
|
-
"system.runtimeValue": "
|
|
22013
|
-
"system.runningTasks": "
|
|
22014
|
-
"system.configFile": "
|
|
22015
|
-
"system.path": "
|
|
22016
|
-
"system.fileExists": "
|
|
22017
|
-
"system.yes": "
|
|
22018
|
-
"system.noDefault": "
|
|
22019
|
-
"system.danger": "
|
|
22020
|
-
"system.dangerDescription": "
|
|
22021
|
-
"logs.command": "
|
|
22022
|
-
"logs.output": "
|
|
22023
|
-
"logs.error": "
|
|
22024
|
-
"logs.tools": "
|
|
22025
|
-
"logs.raw": "
|
|
22026
|
-
"logs.noText": "
|
|
22027
|
-
"logs.loading": "
|
|
22028
|
-
"logs.live": "
|
|
22029
|
-
"logs.steps": "
|
|
22408
|
+
"system.configForeground": "\u524D\u53F0\u8FD0\u884C \xB7 \u91CD\u542F\u540E\u751F\u6548",
|
|
22409
|
+
"system.configApplied": "\u8FD0\u884C\u503C\u4E0E\u5DF2\u4FDD\u5B58\u914D\u7F6E\u4E00\u81F4",
|
|
22410
|
+
"system.configPending": "\u5B58\u5728\u5F85\u751F\u6548\u6539\u52A8 \xB7 \u91CD\u542F Gateway \u540E\u5E94\u7528",
|
|
22411
|
+
"system.configRestartManually": "\u5B58\u5728\u5F85\u751F\u6548\u6539\u52A8 \xB7 \u8BF7\u624B\u52A8\u91CD\u542F Gateway",
|
|
22412
|
+
"system.savedValue": "\u5DF2\u4FDD\u5B58",
|
|
22413
|
+
"system.runtimeValue": "\u8FD0\u884C\u4E2D",
|
|
22414
|
+
"system.runningTasks": "\u8FD0\u884C\u4E2D\u6267\u884C \xB7 {running} / {limit}",
|
|
22415
|
+
"system.configFile": "\u914D\u7F6E\u6587\u4EF6",
|
|
22416
|
+
"system.path": "\u8DEF\u5F84",
|
|
22417
|
+
"system.fileExists": "\u6587\u4EF6\u72B6\u6001",
|
|
22418
|
+
"system.yes": "\u5DF2\u5B58\u5728",
|
|
22419
|
+
"system.noDefault": "\u9ED8\u8BA4\u914D\u7F6E",
|
|
22420
|
+
"system.danger": "\u5371\u9669\u64CD\u4F5C",
|
|
22421
|
+
"system.dangerDescription": "\u6E05\u7A7A\u5168\u90E8\u4EFB\u52A1\u3001\u6267\u884C\u8BB0\u5F55\u4E0E\u5B9A\u65F6\u6A21\u677F\uFF1B\u64CD\u4F5C\u524D\u81EA\u52A8\u5907\u4EFD\u6570\u636E\u5E93\u3002",
|
|
22422
|
+
"logs.command": "\u6267\u884C\u547D\u4EE4",
|
|
22423
|
+
"logs.output": "\u8F93\u51FA",
|
|
22424
|
+
"logs.error": "\u9519\u8BEF",
|
|
22425
|
+
"logs.tools": "\u5DE5\u5177\u8C03\u7528",
|
|
22426
|
+
"logs.raw": "\u539F\u59CB JSONL",
|
|
22427
|
+
"logs.noText": "\u6682\u65E0\u6587\u672C\u8F93\u51FA",
|
|
22428
|
+
"logs.loading": "\u52A0\u8F7D\u65E5\u5FD7\u2026",
|
|
22429
|
+
"logs.live": "\u5B9E\u65F6\u6D41",
|
|
22430
|
+
"logs.steps": "\u6B65\u9AA4",
|
|
22030
22431
|
"logs.tokens": "Tokens",
|
|
22031
|
-
"logs.tokInput": "
|
|
22032
|
-
"logs.tokOutput": "
|
|
22033
|
-
"logs.tokReasoning": "
|
|
22034
|
-
"logs.tokCache": "
|
|
22035
|
-
"logs.tokCacheRead": "
|
|
22036
|
-
"logs.tokCacheWrite": "
|
|
22037
|
-
"logs.cost": "
|
|
22038
|
-
"logs.autoScroll": "
|
|
22039
|
-
"logs.rootCause": "
|
|
22040
|
-
"
|
|
22041
|
-
"
|
|
22042
|
-
"inspector.tab.
|
|
22043
|
-
"inspector.
|
|
22044
|
-
"inspector.
|
|
22045
|
-
"inspector.
|
|
22046
|
-
"inspector.
|
|
22047
|
-
"
|
|
22048
|
-
"
|
|
22049
|
-
"details.
|
|
22050
|
-
"details.
|
|
22051
|
-
"details.
|
|
22052
|
-
"details.
|
|
22053
|
-
"details.raw": "Raw JSON",
|
|
22054
|
-
"details.copySuccess": "Copied",
|
|
22432
|
+
"logs.tokInput": "\u8F93\u5165",
|
|
22433
|
+
"logs.tokOutput": "\u8F93\u51FA",
|
|
22434
|
+
"logs.tokReasoning": "\u63A8\u7406",
|
|
22435
|
+
"logs.tokCache": "\u7F13\u5B58",
|
|
22436
|
+
"logs.tokCacheRead": "\u8BFB",
|
|
22437
|
+
"logs.tokCacheWrite": "\u5199",
|
|
22438
|
+
"logs.cost": "\u8D39\u7528",
|
|
22439
|
+
"logs.autoScroll": "\u81EA\u52A8\u6EDA\u5E95",
|
|
22440
|
+
"logs.rootCause": "\u6839\u56E0",
|
|
22441
|
+
"inspector.tab.overview": "\u6982\u89C8",
|
|
22442
|
+
"inspector.tab.output": "\u5B9E\u65F6\u8F93\u51FA",
|
|
22443
|
+
"inspector.tab.history": "\u6267\u884C\u5386\u53F2",
|
|
22444
|
+
"inspector.dependencies": "\u4F9D\u8D56\u5173\u7CFB",
|
|
22445
|
+
"inspector.upstream": "\u524D\u7F6E",
|
|
22446
|
+
"inspector.downstream": "\u4E0B\u6E38",
|
|
22447
|
+
"inspector.failureSummary": "\u5931\u8D25\u539F\u56E0",
|
|
22448
|
+
"details.title": "\u8BE6\u60C5",
|
|
22449
|
+
"details.taskTitle": "\u4EFB\u52A1 #{id}",
|
|
22450
|
+
"details.runTitle": "\u6267\u884C #{id}",
|
|
22451
|
+
"details.templateTitle": "\u6A21\u677F #{id}",
|
|
22452
|
+
"details.raw": "\u539F\u59CB JSON",
|
|
22453
|
+
"details.copySuccess": "\u5DF2\u590D\u5236",
|
|
22055
22454
|
"details.id": "ID",
|
|
22056
|
-
"details.project": "
|
|
22455
|
+
"details.project": "\u9879\u76EE\u76EE\u5F55",
|
|
22057
22456
|
"details.variant": "Variant",
|
|
22058
|
-
"details.prompt": "
|
|
22059
|
-
"details.result": "
|
|
22060
|
-
"details.category": "
|
|
22061
|
-
"details.batch": "
|
|
22062
|
-
"details.dependency": "
|
|
22063
|
-
"details.importance": "
|
|
22064
|
-
"details.urgency": "
|
|
22065
|
-
"details.retryCount": "
|
|
22066
|
-
"details.retryBackoff": "
|
|
22067
|
-
"details.timeout": "
|
|
22068
|
-
"details.createdAt": "
|
|
22069
|
-
"details.updatedAt": "
|
|
22070
|
-
"details.startedAt": "
|
|
22071
|
-
"details.finishedAt": "
|
|
22072
|
-
"details.scheduledAt": "
|
|
22073
|
-
"details.enabled": "
|
|
22074
|
-
"details.scheduleRule": "
|
|
22075
|
-
"details.maxInstances": "
|
|
22076
|
-
"details.maxRetries": "
|
|
22077
|
-
"details.lastRun": "
|
|
22078
|
-
"details.nextRun": "
|
|
22079
|
-
"details.taskId": "
|
|
22080
|
-
"details.session": "
|
|
22081
|
-
"details.heartbeat": "
|
|
22082
|
-
"details.process": "
|
|
22083
|
-
"details.history": "
|
|
22084
|
-
"details.noHistory": "
|
|
22457
|
+
"details.prompt": "\u63D0\u793A\u8BCD",
|
|
22458
|
+
"details.result": "\u8F93\u51FA",
|
|
22459
|
+
"details.category": "\u5206\u7C7B",
|
|
22460
|
+
"details.batch": "\u6279\u6B21",
|
|
22461
|
+
"details.dependency": "\u4F9D\u8D56",
|
|
22462
|
+
"details.importance": "\u91CD\u8981\u5EA6",
|
|
22463
|
+
"details.urgency": "\u7D27\u6025\u5EA6",
|
|
22464
|
+
"details.retryCount": "\u91CD\u8BD5",
|
|
22465
|
+
"details.retryBackoff": "\u9000\u907F\u57FA\u51C6",
|
|
22466
|
+
"details.timeout": "\u8D85\u65F6",
|
|
22467
|
+
"details.createdAt": "\u521B\u5EFA\u65F6\u95F4",
|
|
22468
|
+
"details.updatedAt": "\u66F4\u65B0\u65F6\u95F4",
|
|
22469
|
+
"details.startedAt": "\u5F00\u59CB\u65F6\u95F4",
|
|
22470
|
+
"details.finishedAt": "\u5B8C\u6210\u65F6\u95F4",
|
|
22471
|
+
"details.scheduledAt": "\u8BA1\u5212\u65F6\u95F4",
|
|
22472
|
+
"details.enabled": "\u542F\u7528",
|
|
22473
|
+
"details.scheduleRule": "\u8C03\u5EA6\u89C4\u5219",
|
|
22474
|
+
"details.maxInstances": "\u5E76\u53D1\u4E0A\u9650",
|
|
22475
|
+
"details.maxRetries": "\u91CD\u8BD5\u4E0A\u9650",
|
|
22476
|
+
"details.lastRun": "\u4E0A\u6B21\u6267\u884C",
|
|
22477
|
+
"details.nextRun": "\u4E0B\u6B21\u6267\u884C",
|
|
22478
|
+
"details.taskId": "\u4EFB\u52A1",
|
|
22479
|
+
"details.session": "\u4F1A\u8BDD",
|
|
22480
|
+
"details.heartbeat": "\u5FC3\u8DF3",
|
|
22481
|
+
"details.process": "\u8FDB\u7A0B",
|
|
22482
|
+
"details.history": "\u6267\u884C\u5386\u53F2",
|
|
22483
|
+
"details.noHistory": "\u6682\u65E0\u6267\u884C\u8BB0\u5F55",
|
|
22085
22484
|
"details.none": "\u2014",
|
|
22086
|
-
"details.default": "
|
|
22087
|
-
"details.enabledYes": "
|
|
22088
|
-
"details.enabledNo": "
|
|
22089
|
-
"batch.selected": "{count}
|
|
22090
|
-
"batch.retry": "
|
|
22091
|
-
"batch.cancel": "
|
|
22092
|
-
"batch.delete": "
|
|
22093
|
-
"dialog.cancelTask": "
|
|
22094
|
-
"dialog.cancelTaskBody": "
|
|
22095
|
-
"dialog.retryTask": "
|
|
22096
|
-
"dialog.retryTaskBody": "
|
|
22097
|
-
"dialog.deleteTask": "
|
|
22098
|
-
"dialog.deleteTaskBody": "
|
|
22099
|
-
"dialog.batchRetry": "
|
|
22100
|
-
"dialog.batchRetryBody": "
|
|
22101
|
-
"dialog.batchCancel": "
|
|
22102
|
-
"dialog.batchCancelBody": "
|
|
22103
|
-
"dialog.batchDelete": "
|
|
22104
|
-
"dialog.batchDeleteBody": "
|
|
22105
|
-
"dialog.disableTemplate": "
|
|
22106
|
-
"dialog.disableTemplateBody": "
|
|
22107
|
-
"dialog.deleteTemplate": "
|
|
22108
|
-
"dialog.deleteTemplateBody": "
|
|
22109
|
-
"dialog.triggerTemplate": "
|
|
22110
|
-
"dialog.triggerTemplateBody": "
|
|
22111
|
-
"dialog.clearTitle": "
|
|
22112
|
-
"dialog.clearBody": "
|
|
22113
|
-
"dialog.clearInstruction": "
|
|
22114
|
-
"dialog.restartGateway": "
|
|
22115
|
-
"dialog.restartGatewayBody": "
|
|
22116
|
-
"dialog.restartGatewayRunningBody": "{count}
|
|
22117
|
-
"dialog.copyManualTitle": "
|
|
22118
|
-
"dialog.copyManualBody": "
|
|
22119
|
-
"feedback.retryFailed": "
|
|
22120
|
-
"feedback.cancelFailed": "
|
|
22121
|
-
"feedback.deleteFailed": "
|
|
22122
|
-
"feedback.requestFailed": "
|
|
22123
|
-
"feedback.triggered": "
|
|
22124
|
-
"feedback.taskCreated": "
|
|
22125
|
-
"feedback.taskUpdated": "
|
|
22126
|
-
"feedback.taskCloned": "
|
|
22127
|
-
"feedback.taskRetried": "
|
|
22128
|
-
"feedback.taskCancelled": "
|
|
22129
|
-
"feedback.taskDeleted": "
|
|
22130
|
-
"feedback.batchDone": "
|
|
22131
|
-
"feedback.templateCreated": "
|
|
22132
|
-
"feedback.templateUpdated": "
|
|
22133
|
-
"feedback.configSaved": "
|
|
22134
|
-
"feedback.sessionCommandCopied": "
|
|
22135
|
-
"feedback.commandCopied": "
|
|
22136
|
-
"feedback.restarting": "
|
|
22137
|
-
"feedback.restartTimeout": "Gateway
|
|
22138
|
-
"feedback.databaseCleared": "
|
|
22139
|
-
"feedback.copyFailed": "
|
|
22140
|
-
"a11y.skip": "
|
|
22141
|
-
"a11y.refreshing": "
|
|
22485
|
+
"details.default": "\u9ED8\u8BA4",
|
|
22486
|
+
"details.enabledYes": "\u5DF2\u542F\u7528",
|
|
22487
|
+
"details.enabledNo": "\u5DF2\u7981\u7528",
|
|
22488
|
+
"batch.selected": "\u5DF2\u9009 {count} \u9879",
|
|
22489
|
+
"batch.retry": "\u6279\u91CF\u91CD\u8BD5",
|
|
22490
|
+
"batch.cancel": "\u6279\u91CF\u53D6\u6D88",
|
|
22491
|
+
"batch.delete": "\u6279\u91CF\u5220\u9664",
|
|
22492
|
+
"dialog.cancelTask": "\u53D6\u6D88\u4EFB\u52A1 #{id}",
|
|
22493
|
+
"dialog.cancelTaskBody": "\u4EFB\u52A1\u5C06\u505C\u6B62\u6392\u961F\u6216\u7EC8\u6B62\u5F53\u524D\u6267\u884C\u3002",
|
|
22494
|
+
"dialog.retryTask": "\u91CD\u8BD5\u4EFB\u52A1 #{id}",
|
|
22495
|
+
"dialog.retryTaskBody": "\u91CD\u7F6E\u91CD\u8BD5\u8BA1\u6570\u5E76\u91CD\u65B0\u52A0\u5165\u961F\u5217\u3002",
|
|
22496
|
+
"dialog.deleteTask": "\u5220\u9664\u4EFB\u52A1 #{id}",
|
|
22497
|
+
"dialog.deleteTaskBody": "\u5220\u9664\u8BE5\u4EFB\u52A1\u53CA\u5176\u5168\u90E8\u6267\u884C\u8BB0\u5F55\uFF0C\u4E0D\u53EF\u6062\u590D\u3002",
|
|
22498
|
+
"dialog.batchRetry": "\u6279\u91CF\u91CD\u8BD5 {count} \u4E2A\u4EFB\u52A1",
|
|
22499
|
+
"dialog.batchRetryBody": "\u4EC5\u5931\u8D25\u6216\u5DF2\u505C\u6B62\u7684\u4EFB\u52A1\u4F1A\u88AB\u91CD\u65B0\u5165\u961F\u3002",
|
|
22500
|
+
"dialog.batchCancel": "\u6279\u91CF\u53D6\u6D88 {count} \u4E2A\u4EFB\u52A1",
|
|
22501
|
+
"dialog.batchCancelBody": "\u6392\u961F\u4E2D\u3001\u8FD0\u884C\u4E2D\u6216\u7B49\u5F85\u91CD\u8BD5\u7684\u4EFB\u52A1\u5C06\u88AB\u53D6\u6D88\u3002",
|
|
22502
|
+
"dialog.batchDelete": "\u6279\u91CF\u5220\u9664 {count} \u4E2A\u4EFB\u52A1",
|
|
22503
|
+
"dialog.batchDeleteBody": "\u5220\u9664\u6240\u9009\u975E\u8FD0\u884C\u4E2D\u4EFB\u52A1\u53CA\u5176\u6267\u884C\u8BB0\u5F55\uFF0C\u4E0D\u53EF\u6062\u590D\u3002",
|
|
22504
|
+
"dialog.disableTemplate": "\u7981\u7528\u5B9A\u65F6\u4EFB\u52A1",
|
|
22505
|
+
"dialog.disableTemplateBody": "\u7981\u7528\u540E\u4E0D\u518D\u81EA\u52A8\u521B\u5EFA\u65B0\u4EFB\u52A1\u3002",
|
|
22506
|
+
"dialog.deleteTemplate": "\u5220\u9664\u5B9A\u65F6\u4EFB\u52A1",
|
|
22507
|
+
"dialog.deleteTemplateBody": "\u5220\u9664\u6A21\u677F\u914D\u7F6E\uFF0C\u4E0D\u5F71\u54CD\u5DF2\u751F\u6210\u7684\u5386\u53F2\u4EFB\u52A1\u3002",
|
|
22508
|
+
"dialog.triggerTemplate": "\u7ACB\u5373\u8FD0\u884C\u5B9A\u65F6\u4EFB\u52A1",
|
|
22509
|
+
"dialog.triggerTemplateBody": "\u7ACB\u5373\u751F\u6210\u4E00\u6761\u4EFB\u52A1\u5E76\u52A0\u5165\u961F\u5217\u3002",
|
|
22510
|
+
"dialog.clearTitle": "\u6E05\u7A7A\u6570\u636E\u5E93",
|
|
22511
|
+
"dialog.clearBody": "\u6B64\u64CD\u4F5C\u4F1A\u6E05\u7A7A\u6240\u6709\u4EFB\u52A1\u3001\u6267\u884C\u8BB0\u5F55\u548C\u5B9A\u65F6\u6A21\u677F\u3002",
|
|
22512
|
+
"dialog.clearInstruction": "\u8BF7\u8F93\u5165 CLEAR \u4EE5\u786E\u8BA4\uFF1A",
|
|
22513
|
+
"dialog.restartGateway": "\u91CD\u542F Gateway",
|
|
22514
|
+
"dialog.restartGatewayBody": "\u4FDD\u5B58\u914D\u7F6E\u5E76\u7531 PM2 \u91CD\u542F Gateway \u4F7F\u65B0\u914D\u7F6E\u751F\u6548\u3002",
|
|
22515
|
+
"dialog.restartGatewayRunningBody": "\u5F53\u524D\u6709 {count} \u4E2A\u4EFB\u52A1\u6B63\u5728\u8FD0\u884C\uFF0C\u91CD\u542F\u4F1A\u4E2D\u65AD\u5E76\u91CD\u65B0\u6392\u961F\u3002\u786E\u8BA4\u7EE7\u7EED\uFF1F",
|
|
22516
|
+
"dialog.copyManualTitle": "\u624B\u52A8\u590D\u5236",
|
|
22517
|
+
"dialog.copyManualBody": "\u6D4F\u89C8\u5668\u62E6\u622A\u4E86\u526A\u8D34\u677F\u8BBF\u95EE\uFF0C\u8BF7\u6309 \u2318C / Ctrl+C \u590D\u5236\u3002",
|
|
22518
|
+
"feedback.retryFailed": "\u91CD\u8BD5\u5931\u8D25",
|
|
22519
|
+
"feedback.cancelFailed": "\u53D6\u6D88\u5931\u8D25",
|
|
22520
|
+
"feedback.deleteFailed": "\u5220\u9664\u5931\u8D25",
|
|
22521
|
+
"feedback.requestFailed": "\u8BF7\u6C42\u5931\u8D25",
|
|
22522
|
+
"feedback.triggered": "\u5DF2\u5165\u961F\u4EFB\u52A1 #{id}",
|
|
22523
|
+
"feedback.taskCreated": "\u5DF2\u5165\u961F\u4EFB\u52A1 #{id}",
|
|
22524
|
+
"feedback.taskUpdated": "\u5DF2\u66F4\u65B0\u4EFB\u52A1 #{id}",
|
|
22525
|
+
"feedback.taskCloned": "\u5DF2\u514B\u9686\u4EFB\u52A1 #{id}",
|
|
22526
|
+
"feedback.taskRetried": "\u4EFB\u52A1 #{id} \u5DF2\u91CD\u65B0\u5165\u961F",
|
|
22527
|
+
"feedback.taskCancelled": "\u4EFB\u52A1 #{id} \u5DF2\u53D6\u6D88",
|
|
22528
|
+
"feedback.taskDeleted": "\u4EFB\u52A1 #{id} \u5DF2\u5220\u9664",
|
|
22529
|
+
"feedback.batchDone": "\u6279\u91CF\u64CD\u4F5C\u5B8C\u6210\uFF08\u6210\u529F {count}\uFF09",
|
|
22530
|
+
"feedback.templateCreated": "\u5B9A\u65F6\u4EFB\u52A1\u5DF2\u521B\u5EFA",
|
|
22531
|
+
"feedback.templateUpdated": "\u5B9A\u65F6\u4EFB\u52A1\u5DF2\u66F4\u65B0",
|
|
22532
|
+
"feedback.configSaved": "\u914D\u7F6E\u5DF2\u4FDD\u5B58",
|
|
22533
|
+
"feedback.sessionCommandCopied": "\u4F1A\u8BDD\u547D\u4EE4\u5DF2\u590D\u5236",
|
|
22534
|
+
"feedback.commandCopied": "\u6267\u884C\u547D\u4EE4\u5DF2\u590D\u5236",
|
|
22535
|
+
"feedback.restarting": "Gateway \u91CD\u542F\u4E2D\u2026",
|
|
22536
|
+
"feedback.restartTimeout": "Gateway \u5C1A\u672A\u6062\u590D\uFF0C\u8BF7\u7A0D\u540E\u5237\u65B0\u68C0\u67E5\u3002",
|
|
22537
|
+
"feedback.databaseCleared": "\u6570\u636E\u5E93\u5DF2\u6E05\u7A7A\uFF0C\u5907\u4EFD\uFF1A{path}",
|
|
22538
|
+
"feedback.copyFailed": "\u590D\u5236\u5931\u8D25",
|
|
22539
|
+
"a11y.skip": "\u8DF3\u81F3\u4E3B\u5185\u5BB9",
|
|
22540
|
+
"a11y.refreshing": "\u5237\u65B0\u4E2D"
|
|
22142
22541
|
};
|
|
22542
|
+
|
|
22543
|
+
// src/web/locales/index.ts
|
|
22544
|
+
var LOCALE_REGISTRY = [
|
|
22545
|
+
{
|
|
22546
|
+
code: "zh-CN",
|
|
22547
|
+
htmlLang: "zh-CN",
|
|
22548
|
+
intlLocale: "zh-CN",
|
|
22549
|
+
shortLabel: "\u4E2D",
|
|
22550
|
+
nativeLabel: "\u4E2D\u6587",
|
|
22551
|
+
aliases: ["zh", "zh-cn", "zh-hans", "zh-sg"],
|
|
22552
|
+
messages: ZH_CN
|
|
22553
|
+
},
|
|
22554
|
+
{
|
|
22555
|
+
code: "en",
|
|
22556
|
+
htmlLang: "en",
|
|
22557
|
+
intlLocale: "en-US",
|
|
22558
|
+
shortLabel: "EN",
|
|
22559
|
+
nativeLabel: "English",
|
|
22560
|
+
aliases: ["en", "en-us", "en-gb", "en-au", "en-ca"],
|
|
22561
|
+
messages: EN
|
|
22562
|
+
},
|
|
22563
|
+
{
|
|
22564
|
+
code: "es",
|
|
22565
|
+
htmlLang: "es",
|
|
22566
|
+
intlLocale: "es-ES",
|
|
22567
|
+
shortLabel: "ES",
|
|
22568
|
+
nativeLabel: "Espa\xF1ol",
|
|
22569
|
+
aliases: ["es", "es-es", "es-mx", "es-419", "es-ar", "es-co", "es-cl"],
|
|
22570
|
+
messages: ES
|
|
22571
|
+
}
|
|
22572
|
+
];
|
|
22573
|
+
var DEFAULT_LOCALE = "zh-CN";
|
|
22574
|
+
var SUPPORTED_LOCALES = LOCALE_REGISTRY.map((entry) => entry.code);
|
|
22575
|
+
var DEFINITIONS_BY_CODE = new Map(
|
|
22576
|
+
LOCALE_REGISTRY.map((entry) => [entry.code, entry])
|
|
22577
|
+
);
|
|
22578
|
+
var EXACT_ALIAS_MAP = /* @__PURE__ */ new Map();
|
|
22579
|
+
var PRIMARY_SUBTAG_MAP = /* @__PURE__ */ new Map();
|
|
22580
|
+
for (const entry of LOCALE_REGISTRY) {
|
|
22581
|
+
const codeKey = entry.code.toLowerCase();
|
|
22582
|
+
EXACT_ALIAS_MAP.set(codeKey, entry.code);
|
|
22583
|
+
for (const alias of entry.aliases) {
|
|
22584
|
+
EXACT_ALIAS_MAP.set(alias.toLowerCase(), entry.code);
|
|
22585
|
+
}
|
|
22586
|
+
const primary = codeKey.split("-")[0];
|
|
22587
|
+
if (primary && !PRIMARY_SUBTAG_MAP.has(primary)) {
|
|
22588
|
+
PRIMARY_SUBTAG_MAP.set(primary, entry.code);
|
|
22589
|
+
}
|
|
22590
|
+
}
|
|
22591
|
+
function getLocaleDefinition(locale) {
|
|
22592
|
+
return DEFINITIONS_BY_CODE.get(locale) ?? DEFINITIONS_BY_CODE.get(DEFAULT_LOCALE);
|
|
22593
|
+
}
|
|
22594
|
+
function parseLocale(raw2) {
|
|
22595
|
+
if (!raw2) return null;
|
|
22596
|
+
const normalized = raw2.trim().replace(/_/g, "-").toLowerCase();
|
|
22597
|
+
if (!normalized) return null;
|
|
22598
|
+
const exact = EXACT_ALIAS_MAP.get(normalized);
|
|
22599
|
+
if (exact) return exact;
|
|
22600
|
+
const primary = normalized.split("-")[0];
|
|
22601
|
+
return primary ? PRIMARY_SUBTAG_MAP.get(primary) ?? null : null;
|
|
22602
|
+
}
|
|
22603
|
+
function negotiateLocale(acceptLanguage, fallback = DEFAULT_LOCALE) {
|
|
22604
|
+
if (!acceptLanguage) return fallback;
|
|
22605
|
+
const candidates = acceptLanguage.split(",").map((part, index2) => {
|
|
22606
|
+
const [tagPart, ...params] = part.trim().split(";");
|
|
22607
|
+
let weight = 1;
|
|
22608
|
+
for (const param of params) {
|
|
22609
|
+
const match2 = /^q=([0-9.]+)$/i.exec(param.trim());
|
|
22610
|
+
if (match2) {
|
|
22611
|
+
const parsed = Number(match2[1]);
|
|
22612
|
+
if (Number.isFinite(parsed)) weight = parsed;
|
|
22613
|
+
}
|
|
22614
|
+
}
|
|
22615
|
+
return { tag: tagPart?.trim() ?? "", weight, index: index2 };
|
|
22616
|
+
}).filter((item) => item.tag.length > 0 && item.weight > 0).sort((left, right) => right.weight - left.weight || left.index - right.index);
|
|
22617
|
+
for (const candidate of candidates) {
|
|
22618
|
+
const matched = parseLocale(candidate.tag);
|
|
22619
|
+
if (matched) return matched;
|
|
22620
|
+
}
|
|
22621
|
+
return fallback;
|
|
22622
|
+
}
|
|
22623
|
+
function resolveMessage(locale, key) {
|
|
22624
|
+
const def = getLocaleDefinition(locale);
|
|
22625
|
+
return def.messages[key] ?? EN[key];
|
|
22626
|
+
}
|
|
22627
|
+
function isKnownMessageKey(key) {
|
|
22628
|
+
return key in EN;
|
|
22629
|
+
}
|
|
22630
|
+
var ALL_MESSAGE_KEYS = Object.keys(EN);
|
|
22631
|
+
|
|
22632
|
+
// src/web/i18n.ts
|
|
22143
22633
|
function t(locale, key, values = {}) {
|
|
22144
|
-
const template = (locale
|
|
22634
|
+
const template = resolveMessage(locale, key);
|
|
22145
22635
|
return template.replace(/\{([a-zA-Z]+)\}/g, (_, name) => String(values[name] ?? `{${name}}`));
|
|
22146
22636
|
}
|
|
22147
22637
|
function statusText(locale, status) {
|
|
22148
22638
|
const key = `status.${status}`;
|
|
22149
|
-
return key
|
|
22639
|
+
return isKnownMessageKey(key) ? t(locale, key) : t(locale, "status.unknown");
|
|
22150
22640
|
}
|
|
22151
22641
|
function runStatusText(locale, status) {
|
|
22152
22642
|
const key = `runStatus.${status}`;
|
|
22153
|
-
return key
|
|
22643
|
+
return isKnownMessageKey(key) ? t(locale, key) : t(locale, "status.unknown");
|
|
22154
22644
|
}
|
|
22155
22645
|
function resolveEditedRunAt(originalEpoch, originalLocal, currentLocal) {
|
|
22156
22646
|
if (originalEpoch !== null && originalLocal === currentLocal) return originalEpoch;
|
|
@@ -22160,8 +22650,8 @@ function formatRelative(timestamp2, locale) {
|
|
|
22160
22650
|
if (!timestamp2) return "\u2014";
|
|
22161
22651
|
const deltaMs = timestamp2 - Date.now();
|
|
22162
22652
|
const abs = Math.abs(deltaMs);
|
|
22163
|
-
const
|
|
22164
|
-
const formatter = new Intl.RelativeTimeFormat(
|
|
22653
|
+
const { intlLocale } = getLocaleDefinition(locale);
|
|
22654
|
+
const formatter = new Intl.RelativeTimeFormat(intlLocale, { numeric: "auto" });
|
|
22165
22655
|
if (abs < 6e4) return formatter.format(Math.round(deltaMs / 1e3), "second");
|
|
22166
22656
|
if (abs < 36e5) return formatter.format(Math.round(deltaMs / 6e4), "minute");
|
|
22167
22657
|
if (abs < 864e5) return formatter.format(Math.round(deltaMs / 36e5), "hour");
|
|
@@ -22175,7 +22665,8 @@ function formatFuture(timestamp2, locale) {
|
|
|
22175
22665
|
function formatDateTime(value, locale) {
|
|
22176
22666
|
if (!value) return "\u2014";
|
|
22177
22667
|
const date = value instanceof Date ? value : new Date(value);
|
|
22178
|
-
|
|
22668
|
+
const { intlLocale } = getLocaleDefinition(locale);
|
|
22669
|
+
return new Intl.DateTimeFormat(intlLocale, {
|
|
22179
22670
|
month: "short",
|
|
22180
22671
|
day: "2-digit",
|
|
22181
22672
|
hour: "2-digit",
|
|
@@ -22183,7 +22674,8 @@ function formatDateTime(value, locale) {
|
|
|
22183
22674
|
}).format(date);
|
|
22184
22675
|
}
|
|
22185
22676
|
function formatInterval(milliseconds, locale) {
|
|
22186
|
-
const
|
|
22677
|
+
const { intlLocale } = getLocaleDefinition(locale);
|
|
22678
|
+
const formatter = new Intl.NumberFormat(intlLocale, {
|
|
22187
22679
|
maximumFractionDigits: 1
|
|
22188
22680
|
});
|
|
22189
22681
|
if (milliseconds < 6e4) {
|
|
@@ -22216,7 +22708,7 @@ function formatCountdown(targetMs, locale) {
|
|
|
22216
22708
|
}
|
|
22217
22709
|
function clientMessages(locale) {
|
|
22218
22710
|
return Object.fromEntries(
|
|
22219
|
-
|
|
22711
|
+
ALL_MESSAGE_KEYS.map((key) => [key, t(locale, key)])
|
|
22220
22712
|
);
|
|
22221
22713
|
}
|
|
22222
22714
|
function esc(value) {
|
|
@@ -24820,10 +25312,9 @@ function buildI18nBundle(locale) {
|
|
|
24820
25312
|
url: `/assets/i18n-${locale}.js?v=${hash}`
|
|
24821
25313
|
};
|
|
24822
25314
|
}
|
|
24823
|
-
var I18N_BUNDLES =
|
|
24824
|
-
|
|
24825
|
-
|
|
24826
|
-
};
|
|
25315
|
+
var I18N_BUNDLES = Object.fromEntries(
|
|
25316
|
+
SUPPORTED_LOCALES.map((locale) => [locale, buildI18nBundle(locale)])
|
|
25317
|
+
);
|
|
24827
25318
|
var CSS_HASH = hashContent(APP_CSS);
|
|
24828
25319
|
var JS_HASH = hashContent(APP_JS);
|
|
24829
25320
|
var CSS_URL = `/assets/app.css?v=${CSS_HASH}`;
|
|
@@ -24994,7 +25485,7 @@ function renderSidebarProjects(locale, activeTab, sidebar) {
|
|
|
24994
25485
|
function renderLayout(options) {
|
|
24995
25486
|
const { locale, activeTab, topbar, body, sidebar } = options;
|
|
24996
25487
|
const pageTitle = options.title || t(locale, PAGE_TITLE_KEYS[activeTab]);
|
|
24997
|
-
const language = locale
|
|
25488
|
+
const language = getLocaleDefinition(locale).htmlLang;
|
|
24998
25489
|
const runningCount = sidebar.overview.global.activeExecution;
|
|
24999
25490
|
const issueCount = sidebar.overview.global.failed + sidebar.overview.global.dead_letter;
|
|
25000
25491
|
const healthOk = sidebar.health.status === "ok";
|
|
@@ -25033,7 +25524,7 @@ function renderLayout(options) {
|
|
|
25033
25524
|
activeTab,
|
|
25034
25525
|
activeProject: sidebar.activeProject
|
|
25035
25526
|
}).replace(/</g, "\\u003c");
|
|
25036
|
-
return `<!DOCTYPE html><html lang="${language}"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover"><meta name="color-scheme" content="light dark"><meta name="theme-color" content="#f6f7f9"><link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='2' width='20' height='20' rx='6' fill='%234f46e5'/%3E%3Cpath d='m7 12 3 3 7-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"><title>${esc(pageTitle)} \xB7 SuperTask</title><script>(function(){try{var p=localStorage.getItem('supertask-theme')||'system';var d=p==='system'?(matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light'):p;document.documentElement.dataset.theme=d;document.documentElement.dataset.themePreference=p}catch(e){}})();</script><link rel="stylesheet" href="${CSS_URL}"></head><body>${iconSprite()}<a class="skip-link" href="#main">${t(locale, "a11y.skip")}</a><div id="sidebar-backdrop" class="sidebar-backdrop" onclick="toggleSidebar(false)"></div><div class="workspace"><aside id="sidebar" class="sidebar" aria-label="Sidebar"><div class="sidebar-head"><a class="brand" href="/"><span class="brand-mark">${icon("brand")}</span><span>${t(locale, "app.name")}</span></a><button type="button" class="icon-btn sidebar-close" onclick="toggleSidebar(false)" aria-label="${t(locale, "action.close")}">${icon("close")}</button></div><nav id="sidebar-nav" class="sidebar-nav" aria-label="Primary">` + navItems.map((item) => `<a href="${item.href}" class="nav-item${activeTab === item.id ? " active" : ""}"${activeTab === item.id ? ' aria-current="page"' : ""}>${icon(item.icon)}<span class="nav-label">${t(locale, `nav.${item.id}`)}</span><span class="nav-badges">${item.badges}</span></a>`).join("") + `</nav><div class="sidebar-section-head"><span>${t(locale, "projects.title")}</span><span class="num">${sidebar.overview.projects.length}</span></div><div id="sidebar-projects" class="project-list">${renderSidebarProjects(locale, activeTab, sidebar)}</div><div class="sidebar-foot"><a id="gateway-pulse" class="pulse-box" href="/system"><div class="pulse-row"><span class="pulse-status"><span class="pulse-dot${healthOk ? "" : " degraded"}"></span>${t(locale, healthOk ? "system.healthy" : "system.degraded")}</span><span class="pulse-meta" title="${esc(t(locale, "system.concurrency"))}">${runningCount} / ${sidebar.maxConcurrency}</span></div><div class="pulse-bar"><div class="pulse-bar-fill" style="width:${concurrencyPct}%"></div></div></a><div class="sidebar-controls"><
|
|
25527
|
+
return `<!DOCTYPE html><html lang="${language}"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover"><meta name="color-scheme" content="light dark"><meta name="theme-color" content="#f6f7f9"><link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='2' width='20' height='20' rx='6' fill='%234f46e5'/%3E%3Cpath d='m7 12 3 3 7-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"><title>${esc(pageTitle)} \xB7 SuperTask</title><script>(function(){try{var p=localStorage.getItem('supertask-theme')||'system';var d=p==='system'?(matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light'):p;document.documentElement.dataset.theme=d;document.documentElement.dataset.themePreference=p}catch(e){}})();</script><link rel="stylesheet" href="${CSS_URL}"></head><body>${iconSprite()}<a class="skip-link" href="#main">${t(locale, "a11y.skip")}</a><div id="sidebar-backdrop" class="sidebar-backdrop" onclick="toggleSidebar(false)"></div><div class="workspace"><aside id="sidebar" class="sidebar" aria-label="Sidebar"><div class="sidebar-head"><a class="brand" href="/"><span class="brand-mark">${icon("brand")}</span><span>${t(locale, "app.name")}</span></a><button type="button" class="icon-btn sidebar-close" onclick="toggleSidebar(false)" aria-label="${t(locale, "action.close")}">${icon("close")}</button></div><nav id="sidebar-nav" class="sidebar-nav" aria-label="Primary">` + navItems.map((item) => `<a href="${item.href}" class="nav-item${activeTab === item.id ? " active" : ""}"${activeTab === item.id ? ' aria-current="page"' : ""}>${icon(item.icon)}<span class="nav-label">${t(locale, `nav.${item.id}`)}</span><span class="nav-badges">${item.badges}</span></a>`).join("") + `</nav><div class="sidebar-section-head"><span>${t(locale, "projects.title")}</span><span class="num">${sidebar.overview.projects.length}</span></div><div id="sidebar-projects" class="project-list">${renderSidebarProjects(locale, activeTab, sidebar)}</div><div class="sidebar-foot"><a id="gateway-pulse" class="pulse-box" href="/system"><div class="pulse-row"><span class="pulse-status"><span class="pulse-dot${healthOk ? "" : " degraded"}"></span>${t(locale, healthOk ? "system.healthy" : "system.degraded")}</span><span class="pulse-meta" title="${esc(t(locale, "system.concurrency"))}">${runningCount} / ${sidebar.maxConcurrency}</span></div><div class="pulse-bar"><div class="pulse-bar-fill" style="width:${concurrencyPct}%"></div></div></a><div class="sidebar-controls"><label class="sidebar-select-wrap lang-select-wrap" aria-label="${t(locale, "language.label")}">${icon("globe")}<select id="lang-select" onchange="setLocale(this.value)" title="${t(locale, "language.label")}">` + LOCALE_REGISTRY.map((entry) => `<option value="${esc(entry.code)}"${entry.code === locale ? " selected" : ""}>${esc(entry.nativeLabel)}</option>`).join("") + `</select></label><label class="sidebar-select-wrap theme-select-wrap" aria-label="${t(locale, "theme.label")}">${icon("sun")}<select id="theme-select" onchange="setTheme(this.value)" title="${t(locale, "theme.label")}"><option value="system">${t(locale, "theme.system")}</option><option value="light">${t(locale, "theme.light")}</option><option value="dark">${t(locale, "theme.dark")}</option></select></label></div></div></aside><div class="main-area"><header id="main-topbar" class="topbar"><div class="topbar-left"><button type="button" class="icon-btn menu-btn" onclick="toggleSidebar(true)" aria-label="${t(locale, "action.openMenu")}">${icon("menu")}</button>${topbar}</div></header><main id="main" tabindex="-1"><div id="page-content" class="content-body">${body}</div></main></div></div><div id="inspector-backdrop" class="inspector-backdrop" onclick="closeInspector()"></div><aside id="inspector-drawer" class="inspector" aria-label="${t(locale, "details.title")}"><div class="inspector-head"><div class="inspector-title-row"><div class="inspector-title-group"><h2 id="inspector-title">${t(locale, "details.title")}</h2><span id="inspector-badge" class="badge" hidden></span></div><button type="button" class="icon-btn" onclick="closeInspector()" aria-label="${t(locale, "action.close")}">${icon("close")}</button></div><div id="inspector-actions" class="inspector-actions"></div></div><div id="inspector-tabs" class="inspector-tabs" hidden></div><div id="inspector-body" class="inspector-body"></div></aside><div id="global-row-menu" class="menu-dropdown menu-floating" role="menu" hidden></div><div id="toast-region" class="toast-region" popover="manual" role="status" aria-live="polite"></div>` + (activeTab === "tasks" || activeTab === "templates" ? `<dialog id="directory-dialog" class="directory-dialog"><div class="dialog-head"><h2>${t(locale, "directory.title")}</h2><button type="button" class="icon-btn" onclick="document.getElementById('directory-dialog').close()" aria-label="${t(locale, "action.close")}">${icon("close")}</button></div><div class="dialog-body"><div class="directory-toolbar"><button id="directory-home" type="button" class="btn btn-xs">${t(locale, "action.home")}</button><button id="directory-up" type="button" class="btn btn-xs">${t(locale, "action.up")}</button><button id="directory-hidden" type="button" class="btn btn-xs">${t(locale, "action.showHidden")}</button><div id="directory-path" class="directory-path mono"></div></div><div id="directory-list" class="directory-list"></div></div><div class="dialog-actions"><button type="button" class="btn" onclick="document.getElementById('directory-dialog').close()">${t(locale, "action.cancel")}</button><button id="directory-choose" type="button" class="btn btn-primary">${icon("folder")}${t(locale, "action.chooseThisFolder")}</button></div></dialog>` : "") + `<dialog id="copy-dialog"><div class="dialog-head"><div><h2>${t(locale, "dialog.copyManualTitle")}</h2><p>${t(locale, "dialog.copyManualBody")}</p></div><button type="button" class="icon-btn" onclick="document.getElementById('copy-dialog').close()" aria-label="${t(locale, "action.close")}">${icon("close")}</button></div><div class="dialog-body"><textarea id="copy-manual" class="json-view copy-manual mono" readonly rows="4" spellcheck="false"></textarea></div><div class="dialog-actions"><button type="button" class="btn btn-primary" onclick="document.getElementById('copy-dialog').close()">${t(locale, "action.close")}</button></div></dialog><dialog id="confirm-dialog"><div class="dialog-head"><h2 id="confirm-title"></h2><button type="button" class="icon-btn" onclick="document.getElementById('confirm-dialog').close('cancel')" aria-label="${t(locale, "action.close")}">${icon("close")}</button></div><div class="dialog-body"><p id="confirm-body" class="confirm-copy"></p></div><div class="dialog-actions"><button type="button" class="btn" onclick="document.getElementById('confirm-dialog').close('cancel')">${t(locale, "action.cancel")}</button><button id="confirm-ok" type="button" class="btn btn-primary" onclick="document.getElementById('confirm-dialog').close('confirm')">${t(locale, "action.confirm")}</button></div></dialog>` + (activeTab === "system" ? `<dialog id="danger-dialog"><div class="dialog-head"><h2>${t(locale, "dialog.clearTitle")}</h2><button type="button" class="icon-btn" onclick="document.getElementById('danger-dialog').close('cancel')" aria-label="${t(locale, "action.close")}">${icon("close")}</button></div><div class="dialog-body"><p class="confirm-copy"><strong>${t(locale, "dialog.clearBody")}</strong>${t(locale, "dialog.clearInstruction")}</p><input id="danger-confirmation" class="danger-input mono" autocomplete="off" spellcheck="false" placeholder="CLEAR" oninput="document.getElementById('danger-ok').disabled=this.value!=='CLEAR'"></div><div class="dialog-actions"><button type="button" class="btn" onclick="document.getElementById('danger-dialog').close('cancel')">${t(locale, "action.cancel")}</button><button id="danger-ok" type="button" class="btn btn-danger" disabled onclick="document.getElementById('danger-dialog').close('confirm')">${t(locale, "action.clearDatabase")}</button></div></dialog>` : "") + `<script type="application/json" id="supertask-boot">${bootPayload}</script><script defer src="${i18nAssetUrl(locale)}"></script><script defer src="${JS_URL}"></script></body></html>`;
|
|
25037
25528
|
}
|
|
25038
25529
|
function emptyState(title) {
|
|
25039
25530
|
return `<div class="empty-state"><div><div class="empty-icon">${icon("inbox")}</div><h3>${esc(title)}</h3></div></div>`;
|
|
@@ -25426,7 +25917,8 @@ function parseTaskPayload(value) {
|
|
|
25426
25917
|
urgency: integer2("urgency", 3),
|
|
25427
25918
|
maxRetries: integer2("maxRetries", 3),
|
|
25428
25919
|
retryBackoffMs: duration("retryBackoff", "30s", true),
|
|
25429
|
-
timeoutMs: duration("timeout", null)
|
|
25920
|
+
timeoutMs: duration("timeout", null),
|
|
25921
|
+
...Object.hasOwn(input, "metadata") ? { metadata: normalizeTaskMetadata(input.metadata) } : {}
|
|
25430
25922
|
};
|
|
25431
25923
|
}
|
|
25432
25924
|
function editableTaskPayload(input) {
|
|
@@ -25442,7 +25934,8 @@ function editableTaskPayload(input) {
|
|
|
25442
25934
|
urgency: input.urgency ?? 3,
|
|
25443
25935
|
maxRetries: input.maxRetries ?? 3,
|
|
25444
25936
|
retryBackoffMs: input.retryBackoffMs ?? 3e4,
|
|
25445
|
-
timeoutMs: input.timeoutMs ?? null
|
|
25937
|
+
timeoutMs: input.timeoutMs ?? null,
|
|
25938
|
+
...input.metadata === void 0 ? {} : { metadata: input.metadata }
|
|
25446
25939
|
};
|
|
25447
25940
|
}
|
|
25448
25941
|
function parseCloneOverrides(value) {
|
|
@@ -25505,6 +25998,9 @@ function parseCloneOverrides(value) {
|
|
|
25505
25998
|
if (Object.hasOwn(input, "timeout")) {
|
|
25506
25999
|
overrides.timeoutMs = duration("timeout", null);
|
|
25507
26000
|
}
|
|
26001
|
+
if (Object.hasOwn(input, "metadata")) {
|
|
26002
|
+
overrides.metadata = normalizeTaskMetadata(input.metadata);
|
|
26003
|
+
}
|
|
25508
26004
|
return overrides;
|
|
25509
26005
|
}
|
|
25510
26006
|
function parseTemplatePayload(value) {
|
|
@@ -25531,7 +26027,8 @@ function parseTemplatePayload(value) {
|
|
|
25531
26027
|
maxInstances: integer2("maxInstances", 1),
|
|
25532
26028
|
maxRetries: integer2("maxRetries", 3),
|
|
25533
26029
|
retryBackoffMs: duration("retryBackoff", "30s", true),
|
|
25534
|
-
timeoutMs: duration("timeout", null)
|
|
26030
|
+
timeoutMs: duration("timeout", null),
|
|
26031
|
+
...Object.hasOwn(input, "metadata") ? { metadata: normalizeTaskMetadata(input.metadata) } : {}
|
|
25535
26032
|
};
|
|
25536
26033
|
}
|
|
25537
26034
|
function parseIdArray(value) {
|
|
@@ -26099,19 +26596,18 @@ function parseRunStatus(value) {
|
|
|
26099
26596
|
return RUN_STATUSES.has(value) ? value : null;
|
|
26100
26597
|
}
|
|
26101
26598
|
function resolveLocale(c) {
|
|
26102
|
-
const requested = c.req.query("lang");
|
|
26103
|
-
if (requested
|
|
26599
|
+
const requested = parseLocale(c.req.query("lang"));
|
|
26600
|
+
if (requested) return requested;
|
|
26104
26601
|
const cookie = c.req.header("Cookie") ?? "";
|
|
26105
26602
|
const match2 = /(?:^|;\s*)supertask_locale=([^;]+)/.exec(cookie);
|
|
26106
26603
|
if (match2) {
|
|
26107
26604
|
try {
|
|
26108
|
-
const saved = decodeURIComponent(match2[1]);
|
|
26109
|
-
if (saved
|
|
26605
|
+
const saved = parseLocale(decodeURIComponent(match2[1]));
|
|
26606
|
+
if (saved) return saved;
|
|
26110
26607
|
} catch {
|
|
26111
26608
|
}
|
|
26112
26609
|
}
|
|
26113
|
-
|
|
26114
|
-
return accepted.startsWith("en") ? "en" : "zh-CN";
|
|
26610
|
+
return negotiateLocale(c.req.header("Accept-Language"));
|
|
26115
26611
|
}
|
|
26116
26612
|
function listChildDirectories(path) {
|
|
26117
26613
|
return readdirSync(path, { withFileTypes: true }).flatMap((entry) => {
|
|
@@ -26254,10 +26750,28 @@ app.use("/api/*", async (c, next) => {
|
|
|
26254
26750
|
}
|
|
26255
26751
|
return next();
|
|
26256
26752
|
});
|
|
26753
|
+
function isValidApiBearerToken(headerValue, expected) {
|
|
26754
|
+
if (!headerValue) return false;
|
|
26755
|
+
const match2 = /^Bearer\s+(.+)$/i.exec(headerValue.trim());
|
|
26756
|
+
if (!match2) return false;
|
|
26757
|
+
const provided = Buffer.from(match2[1], "utf8");
|
|
26758
|
+
const target = Buffer.from(expected, "utf8");
|
|
26759
|
+
if (provided.length !== target.length) return false;
|
|
26760
|
+
return timingSafeEqual(provided, target);
|
|
26761
|
+
}
|
|
26762
|
+
app.use("/api/*", async (c, next) => {
|
|
26763
|
+
const configured = process.env.SUPERTASK_API_TOKEN?.trim();
|
|
26764
|
+
if (!configured) return next();
|
|
26765
|
+
if (!isValidApiBearerToken(c.req.header("Authorization"), configured)) {
|
|
26766
|
+
return c.json({ error: "Unauthorized" }, 401);
|
|
26767
|
+
}
|
|
26768
|
+
return next();
|
|
26769
|
+
});
|
|
26257
26770
|
app.get("/assets/app.css", (c) => serveAppCss(c));
|
|
26258
26771
|
app.get("/assets/app.js", (c) => serveAppJs(c));
|
|
26259
|
-
|
|
26260
|
-
app.get(
|
|
26772
|
+
for (const locale of SUPPORTED_LOCALES) {
|
|
26773
|
+
app.get(`/assets/i18n-${locale}.js`, (c) => serveI18nJs(c, locale));
|
|
26774
|
+
}
|
|
26261
26775
|
app.get("/health", (c) => {
|
|
26262
26776
|
const health = getGatewayHealth();
|
|
26263
26777
|
return c.json(health, health.status === "ok" ? 200 : 503);
|
|
@@ -26269,6 +26783,7 @@ app.post("/api/internal/wake", async (c) => {
|
|
|
26269
26783
|
return c.body(null, 204);
|
|
26270
26784
|
});
|
|
26271
26785
|
app.get("/api/events", (c) => {
|
|
26786
|
+
const scopeCwd = c.req.query("cwd")?.trim() || "";
|
|
26272
26787
|
const encoder = new TextEncoder();
|
|
26273
26788
|
let cleanup = null;
|
|
26274
26789
|
const stream = new ReadableStream({
|
|
@@ -26283,6 +26798,10 @@ app.get("/api/events", (c) => {
|
|
|
26283
26798
|
}
|
|
26284
26799
|
};
|
|
26285
26800
|
const unsubscribe = gatewayEvents.subscribe((event) => {
|
|
26801
|
+
if (scopeCwd) {
|
|
26802
|
+
const eventCwd = "cwd" in event ? event.cwd : void 0;
|
|
26803
|
+
if (eventCwd !== void 0 && eventCwd !== scopeCwd) return;
|
|
26804
|
+
}
|
|
26286
26805
|
safeEnqueue(formatSseFrame(event.type, event));
|
|
26287
26806
|
}, { excludeRunLogs: true });
|
|
26288
26807
|
const keepalive = setInterval(() => {
|
|
@@ -26643,12 +27162,28 @@ app.get("/api/tasks", async (c) => {
|
|
|
26643
27162
|
TaskService.listCompact(listOptions),
|
|
26644
27163
|
countFilteredTasks(listOptions)
|
|
26645
27164
|
]);
|
|
26646
|
-
const
|
|
27165
|
+
const taskIds = tasks4.map((task) => task.id);
|
|
27166
|
+
const latestRuns = await TaskRunService.getLatestMetaByTaskIds(taskIds);
|
|
27167
|
+
const runCountMap = /* @__PURE__ */ new Map();
|
|
27168
|
+
if (taskIds.length > 0) {
|
|
27169
|
+
const placeholders = taskIds.map(() => "?").join(",");
|
|
27170
|
+
const countRows = sqlite.prepare(
|
|
27171
|
+
`SELECT task_id AS taskId, COUNT(*) AS cnt FROM task_runs WHERE task_id IN (${placeholders}) GROUP BY task_id`
|
|
27172
|
+
).all(...taskIds);
|
|
27173
|
+
for (const row of countRows) {
|
|
27174
|
+
runCountMap.set(Number(row.taskId), Number(row.cnt));
|
|
27175
|
+
}
|
|
27176
|
+
}
|
|
26647
27177
|
return c.json({
|
|
26648
27178
|
tasks: tasks4.map((task) => {
|
|
26649
27179
|
const run = latestRuns.get(task.id);
|
|
27180
|
+
const runCount = runCountMap.get(task.id) ?? 0;
|
|
27181
|
+
const actualRetries = Math.max(0, runCount - 1);
|
|
27182
|
+
const displayStatus = task.status === "cancelled" && run?.status === "running" ? "cancelling" : task.status ?? "pending";
|
|
26650
27183
|
return {
|
|
26651
27184
|
...task,
|
|
27185
|
+
actualRetries,
|
|
27186
|
+
displayStatus,
|
|
26652
27187
|
latestRun: run ? {
|
|
26653
27188
|
id: run.id,
|
|
26654
27189
|
status: run.status,
|
|
@@ -26667,6 +27202,98 @@ app.get("/api/tasks", async (c) => {
|
|
|
26667
27202
|
totalPages: Math.max(1, Math.ceil(total / parsedLimit))
|
|
26668
27203
|
});
|
|
26669
27204
|
});
|
|
27205
|
+
app.get("/api/stats", (c) => {
|
|
27206
|
+
const cwd = c.req.query("cwd")?.trim() || "";
|
|
27207
|
+
const params = cwd ? [cwd] : [];
|
|
27208
|
+
const whereClause = cwd ? "WHERE cwd = ?" : "";
|
|
27209
|
+
const andClause = cwd ? "AND cwd = ?" : "";
|
|
27210
|
+
const joinAndClause = cwd ? "AND t.cwd = ?" : "";
|
|
27211
|
+
const byStatus = {};
|
|
27212
|
+
let total = 0;
|
|
27213
|
+
const statusRows = sqlite.prepare(
|
|
27214
|
+
`SELECT status, COUNT(*) AS c FROM tasks ${whereClause} GROUP BY status`
|
|
27215
|
+
).all(...params);
|
|
27216
|
+
for (const row of statusRows) {
|
|
27217
|
+
const count = Number(row.c ?? 0);
|
|
27218
|
+
byStatus[String(row.status ?? "pending")] = count;
|
|
27219
|
+
total += count;
|
|
27220
|
+
}
|
|
27221
|
+
const avgRow = sqlite.prepare(
|
|
27222
|
+
`SELECT AVG((finished_at - started_at) * 1000) AS ms FROM tasks WHERE started_at > 0 AND finished_at > started_at ${andClause}`
|
|
27223
|
+
).get(...params);
|
|
27224
|
+
const runRows = sqlite.prepare(
|
|
27225
|
+
`SELECT r.started_at AS startedAt, r.finished_at AS finishedAt, r.status AS status
|
|
27226
|
+
FROM task_runs r JOIN tasks t ON t.id = r.task_id
|
|
27227
|
+
WHERE r.started_at > 0 ${joinAndClause}
|
|
27228
|
+
ORDER BY r.started_at ASC, r.id ASC`
|
|
27229
|
+
).all(...params);
|
|
27230
|
+
const points = [];
|
|
27231
|
+
const nowMs = Date.now();
|
|
27232
|
+
for (const row of runRows) {
|
|
27233
|
+
const s = Number(row.startedAt) * 1e3;
|
|
27234
|
+
const finished = row.finishedAt ? Number(row.finishedAt) * 1e3 : 0;
|
|
27235
|
+
const end = finished || (row.status === "running" ? nowMs : s);
|
|
27236
|
+
points.push({ t: s, delta: 1 });
|
|
27237
|
+
points.push({ t: Math.max(s + 1, end), delta: -1 });
|
|
27238
|
+
}
|
|
27239
|
+
points.sort((a, b) => a.t - b.t || a.delta - b.delta);
|
|
27240
|
+
let cur = 0;
|
|
27241
|
+
let peakConcurrency = 0;
|
|
27242
|
+
for (const point of points) {
|
|
27243
|
+
cur += point.delta;
|
|
27244
|
+
if (cur > peakConcurrency) peakConcurrency = cur;
|
|
27245
|
+
}
|
|
27246
|
+
const runningRow = sqlite.prepare(
|
|
27247
|
+
`SELECT COUNT(*) AS c FROM task_runs r JOIN tasks t ON t.id = r.task_id WHERE r.status = 'running' ${joinAndClause}`
|
|
27248
|
+
).get(...params);
|
|
27249
|
+
return c.json({
|
|
27250
|
+
byStatus,
|
|
27251
|
+
total,
|
|
27252
|
+
running: Number(runningRow?.c ?? 0),
|
|
27253
|
+
peakConcurrency,
|
|
27254
|
+
avgDurationMs: Math.round(Number(avgRow?.ms ?? 0))
|
|
27255
|
+
});
|
|
27256
|
+
});
|
|
27257
|
+
app.get("/api/runs/by-session/:sessionId", (c) => {
|
|
27258
|
+
const sessionId = c.req.param("sessionId")?.trim() || "";
|
|
27259
|
+
if (!isValidSessionId(sessionId)) {
|
|
27260
|
+
return c.json({ error: "invalid sessionId" }, 400);
|
|
27261
|
+
}
|
|
27262
|
+
const row = sqlite.prepare(
|
|
27263
|
+
`SELECT r.id AS runId, r.task_id AS taskId, r.status AS runStatus,
|
|
27264
|
+
t.template_id AS templateId, t.cwd AS cwd, t.metadata AS metadata, t.status AS taskStatus
|
|
27265
|
+
FROM task_runs r
|
|
27266
|
+
JOIN tasks t ON t.id = r.task_id
|
|
27267
|
+
WHERE r.session_id = ?
|
|
27268
|
+
ORDER BY r.id DESC
|
|
27269
|
+
LIMIT 1`
|
|
27270
|
+
).get(sessionId);
|
|
27271
|
+
if (!row) return c.json({ error: "not found" }, 404);
|
|
27272
|
+
const templateId = row.templateId != null && Number(row.templateId) > 0 ? Number(row.templateId) : null;
|
|
27273
|
+
return c.json({
|
|
27274
|
+
runId: Number(row.runId),
|
|
27275
|
+
taskId: Number(row.taskId),
|
|
27276
|
+
templateId,
|
|
27277
|
+
cwd: row.cwd ?? null,
|
|
27278
|
+
metadata: parseTaskMetadata(row.metadata),
|
|
27279
|
+
status: row.taskStatus ?? row.runStatus ?? "running"
|
|
27280
|
+
});
|
|
27281
|
+
});
|
|
27282
|
+
app.get("/api/templates", async (c) => {
|
|
27283
|
+
const cwd = c.req.query("cwd")?.trim() || void 0;
|
|
27284
|
+
const enabledParam = c.req.query("enabled");
|
|
27285
|
+
let enabled;
|
|
27286
|
+
if (enabledParam === "true" || enabledParam === "1") enabled = true;
|
|
27287
|
+
else if (enabledParam === "false" || enabledParam === "0") enabled = false;
|
|
27288
|
+
else if (enabledParam !== void 0 && enabledParam !== "") {
|
|
27289
|
+
return c.json({ error: "invalid enabled filter" }, 400);
|
|
27290
|
+
}
|
|
27291
|
+
const limitParam = c.req.query("limit") || "200";
|
|
27292
|
+
const limit = parsePositiveInteger(limitParam);
|
|
27293
|
+
if (limit === null || limit > 500) return c.json({ error: "invalid limit" }, 400);
|
|
27294
|
+
const templates = await TaskTemplateService.listFiltered({ cwd, enabled, limit });
|
|
27295
|
+
return c.json({ templates });
|
|
27296
|
+
});
|
|
26670
27297
|
app.post("/api/tasks", async (c) => {
|
|
26671
27298
|
try {
|
|
26672
27299
|
const task = await TaskService.add(parseTaskPayload(await c.req.json()));
|