agent-steward 0.0.3 → 0.0.5
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 +154 -2
- package/CROSS_PLATFORM.md +19 -0
- package/README.md +54 -9
- package/ROADMAP-STRATEGY.md +23 -20
- package/ROADMAP.md +140 -143
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +351 -0
- package/dist/core/dlq-api.d.ts +44 -0
- package/dist/core/dlq-api.d.ts.map +1 -0
- package/dist/core/dlq-api.js +68 -0
- package/dist/core/dry-run.d.ts.map +1 -1
- package/dist/core/dry-run.js +18 -1
- package/dist/core/execution.d.ts +203 -0
- package/dist/core/execution.d.ts.map +1 -0
- package/dist/core/execution.js +309 -0
- package/dist/core/gate-integrity.d.ts +35 -0
- package/dist/core/gate-integrity.d.ts.map +1 -0
- package/dist/core/gate-integrity.js +132 -0
- package/dist/core/git-trigger.d.ts.map +1 -1
- package/dist/core/git-trigger.js +14 -2
- package/dist/core/guard-run.d.ts +4 -0
- package/dist/core/guard-run.d.ts.map +1 -0
- package/dist/core/guard-run.js +101 -0
- package/dist/core/guard.d.ts +52 -0
- package/dist/core/guard.d.ts.map +1 -0
- package/dist/core/guard.js +362 -0
- package/dist/core/lock.d.ts +61 -4
- package/dist/core/lock.d.ts.map +1 -1
- package/dist/core/lock.js +213 -26
- package/dist/core/matrix.d.ts.map +1 -1
- package/dist/core/matrix.js +75 -15
- package/dist/core/mission.d.ts +83 -0
- package/dist/core/mission.d.ts.map +1 -0
- package/dist/core/mission.js +334 -0
- package/dist/core/one-shot.d.ts +5 -1
- package/dist/core/one-shot.d.ts.map +1 -1
- package/dist/core/one-shot.js +33 -8
- package/dist/core/opencode-cli.d.ts +28 -0
- package/dist/core/opencode-cli.d.ts.map +1 -0
- package/dist/core/opencode-cli.js +74 -0
- package/dist/core/opencode-models.d.ts +62 -0
- package/dist/core/opencode-models.d.ts.map +1 -0
- package/dist/core/opencode-models.js +277 -0
- package/dist/core/pipeline-apply.d.ts +38 -0
- package/dist/core/pipeline-apply.d.ts.map +1 -0
- package/dist/core/pipeline-apply.js +117 -0
- package/dist/core/pipeline-io.d.ts +13 -0
- package/dist/core/pipeline-io.d.ts.map +1 -0
- package/dist/core/pipeline-io.js +64 -0
- package/dist/core/pipeline-map.d.ts +46 -0
- package/dist/core/pipeline-map.d.ts.map +1 -0
- package/dist/core/pipeline-map.js +196 -0
- package/dist/core/pipeline-spec.d.ts +109 -0
- package/dist/core/pipeline-spec.d.ts.map +1 -0
- package/dist/core/pipeline-spec.js +554 -0
- package/dist/core/ps-wrapper.d.ts +19 -2
- package/dist/core/ps-wrapper.d.ts.map +1 -1
- package/dist/core/ps-wrapper.js +261 -63
- package/dist/core/record-history.d.ts +15 -0
- package/dist/core/record-history.d.ts.map +1 -1
- package/dist/core/record-history.js +183 -58
- package/dist/core/router/dispatch.d.ts +36 -0
- package/dist/core/router/dispatch.d.ts.map +1 -0
- package/dist/core/router/dispatch.js +59 -0
- package/dist/core/router/escalation.d.ts +47 -0
- package/dist/core/router/escalation.d.ts.map +1 -0
- package/dist/core/router/escalation.js +87 -0
- package/dist/core/router/planner.d.ts +53 -0
- package/dist/core/router/planner.d.ts.map +1 -0
- package/dist/core/router/planner.js +113 -0
- package/dist/core/router/rules.d.ts +46 -0
- package/dist/core/router/rules.d.ts.map +1 -0
- package/dist/core/router/rules.js +91 -0
- package/dist/core/run-panel-api.d.ts +94 -0
- package/dist/core/run-panel-api.d.ts.map +1 -0
- package/dist/core/run-panel-api.js +169 -0
- package/dist/core/schedule-gate.js +5 -1
- package/dist/core/schedule-v2.d.ts +34 -0
- package/dist/core/schedule-v2.d.ts.map +1 -1
- package/dist/core/schedule-v2.js +91 -5
- package/dist/core/scheduler/at-fallback.d.ts +55 -2
- package/dist/core/scheduler/at-fallback.d.ts.map +1 -1
- package/dist/core/scheduler/at-fallback.js +135 -5
- package/dist/core/scheduler/linux.d.ts +18 -2
- package/dist/core/scheduler/linux.d.ts.map +1 -1
- package/dist/core/scheduler/linux.js +63 -20
- package/dist/core/scheduler/mac.d.ts +44 -2
- package/dist/core/scheduler/mac.d.ts.map +1 -1
- package/dist/core/scheduler/mac.js +126 -15
- package/dist/core/scheduler/posix.d.ts.map +1 -1
- package/dist/core/scheduler/posix.js +25 -1
- package/dist/core/scheduler/registry.d.ts +11 -0
- package/dist/core/scheduler/registry.d.ts.map +1 -1
- package/dist/core/scheduler/registry.js +83 -21
- package/dist/core/scheduler/run-now.d.ts +16 -0
- package/dist/core/scheduler/run-now.d.ts.map +1 -0
- package/dist/core/scheduler/run-now.js +28 -0
- package/dist/core/scheduler/windows.d.ts.map +1 -1
- package/dist/core/scheduler/windows.js +15 -12
- package/dist/core/secrets.d.ts.map +1 -1
- package/dist/core/secrets.js +125 -28
- package/dist/core/session.d.ts.map +1 -1
- package/dist/core/session.js +18 -11
- package/dist/core/structured-log.d.ts +7 -1
- package/dist/core/structured-log.d.ts.map +1 -1
- package/dist/core/task-name.d.ts +24 -0
- package/dist/core/task-name.d.ts.map +1 -0
- package/dist/core/task-name.js +40 -0
- package/dist/core/worktree-run.d.ts +4 -0
- package/dist/core/worktree-run.d.ts.map +1 -0
- package/dist/core/worktree-run.js +164 -0
- package/dist/core/worktree.d.ts +115 -0
- package/dist/core/worktree.d.ts.map +1 -0
- package/dist/core/worktree.js +462 -0
- package/dist/core/wrappers/bash.d.ts +17 -0
- package/dist/core/wrappers/bash.d.ts.map +1 -1
- package/dist/core/wrappers/bash.js +224 -28
- package/dist/db/capability-repo.d.ts +124 -0
- package/dist/db/capability-repo.d.ts.map +1 -0
- package/dist/db/capability-repo.js +267 -0
- package/dist/db/history-repo.d.ts +46 -5
- package/dist/db/history-repo.d.ts.map +1 -1
- package/dist/db/history-repo.js +107 -25
- package/dist/db/index.d.ts +4 -0
- package/dist/db/index.d.ts.map +1 -1
- package/dist/db/index.js +39 -1
- package/dist/db/metrics-repo.js +2 -2
- package/dist/db/migrate.d.ts.map +1 -1
- package/dist/db/migrate.js +3 -1
- package/dist/db/recovery.d.ts.map +1 -1
- package/dist/db/recovery.js +5 -4
- package/dist/db/run-context.d.ts +103 -0
- package/dist/db/run-context.d.ts.map +1 -0
- package/dist/db/run-context.js +224 -0
- package/dist/db/run-dlq.d.ts +100 -0
- package/dist/db/run-dlq.d.ts.map +1 -0
- package/dist/db/run-dlq.js +191 -0
- package/dist/db/run-journal.d.ts +33 -5
- package/dist/db/run-journal.d.ts.map +1 -1
- package/dist/db/run-journal.js +78 -14
- package/dist/db/run-resume.d.ts +10 -2
- package/dist/db/run-resume.d.ts.map +1 -1
- package/dist/db/run-resume.js +39 -13
- package/dist/db/runs-repo.d.ts +32 -7
- package/dist/db/runs-repo.d.ts.map +1 -1
- package/dist/db/runs-repo.js +50 -11
- package/dist/db/schema.d.ts +2 -2
- package/dist/db/schema.d.ts.map +1 -1
- package/dist/db/schema.js +216 -3
- package/dist/db/settings-repo.d.ts +11 -0
- package/dist/db/settings-repo.d.ts.map +1 -1
- package/dist/db/settings-repo.js +25 -0
- package/dist/db/step-idempotency.d.ts +51 -0
- package/dist/db/step-idempotency.d.ts.map +1 -0
- package/dist/db/step-idempotency.js +136 -0
- package/dist/history.d.ts +1 -1
- package/dist/history.d.ts.map +1 -1
- package/dist/i18n.d.ts +5 -0
- package/dist/i18n.d.ts.map +1 -1
- package/dist/i18n.js +11 -4
- package/dist/index.d.ts +140 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +480 -18
- package/dist/notifications.d.ts +22 -0
- package/dist/notifications.d.ts.map +1 -1
- package/dist/notifications.js +36 -8
- package/dist/profiles.d.ts.map +1 -1
- package/dist/profiles.js +25 -4
- package/dist/rpc.d.ts +924 -0
- package/dist/rpc.d.ts.map +1 -1
- package/dist/rpc.js +352 -0
- package/dist/server.d.ts +46 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +172 -53
- package/dist/settings.d.ts +2 -2
- package/dist/settings.d.ts.map +1 -1
- package/dist/settings.js +3 -3
- package/dist/shared/jobs-view.d.ts +1 -1
- package/dist/shared/jobs-view.d.ts.map +1 -1
- package/dist/shared/jobs-view.js +2 -0
- package/dist/task-transfer.d.ts +16 -0
- package/dist/task-transfer.d.ts.map +1 -1
- package/dist/task-transfer.js +16 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +7 -0
- package/dist/workspaces.d.ts +25 -3
- package/dist/workspaces.d.ts.map +1 -1
- package/dist/workspaces.js +43 -8
- package/docs/ARCHITECTURE.md +498 -58
- package/docs/COMPATIBILITY.md +2 -2
- package/docs/CONCEPT.md +185 -91
- package/docs/CROSS_PLATFORM.ru.md +20 -0
- package/docs/CROSS_PLATFORM.zh.md +18 -0
- package/docs/EXECUTION-LOOP.md +211 -0
- package/docs/FEATURES.md +65 -4
- package/docs/FEATURES.zh.md +52 -4
- package/docs/MIGRATION.md +2 -2
- package/docs/PIPELINE.md +293 -0
- package/docs/README.ru.md +44 -5
- package/docs/README.zh.md +46 -6
- package/docs/SAFETY.md +142 -0
- package/docs/SAVINGS.md +29 -0
- package/docs/SAVINGS.ru.md +29 -0
- package/docs/SAVINGS.zh.md +18 -0
- package/gui-experimental.cjs +9 -8
- package/locales/en.json +84 -1
- package/locales/ru.json +84 -1
- package/locales/zh.json +84 -1
- package/opencode.pipeline.yaml +35 -0
- package/package.json +46 -2
- package/scripts/audit-bundle.mjs +215 -0
- package/scripts/test-home.mjs +83 -0
- package/src/cli.ts +412 -0
- package/src/core/dlq-api.ts +98 -0
- package/src/core/dry-run.ts +27 -3
- package/src/core/execution.ts +538 -0
- package/src/core/file-watcher.ts +2 -2
- package/src/core/gate-integrity.ts +160 -0
- package/src/core/git-trigger.ts +18 -5
- package/src/core/guard-run.ts +119 -0
- package/src/core/guard.ts +431 -0
- package/src/core/lock.ts +244 -30
- package/src/core/matrix.ts +95 -50
- package/src/core/mission.ts +485 -0
- package/src/core/native-notify.ts +1 -1
- package/src/core/one-shot.ts +36 -8
- package/src/core/opencode-cli.ts +103 -0
- package/src/core/opencode-models.ts +315 -0
- package/src/core/pipeline-apply.ts +158 -0
- package/src/core/pipeline-io.ts +79 -0
- package/src/core/pipeline-map.ts +264 -0
- package/src/core/pipeline-spec.ts +775 -0
- package/src/core/ps-wrapper.ts +274 -64
- package/src/core/record-history.ts +229 -104
- package/src/core/router/dispatch.ts +94 -0
- package/src/core/router/escalation.ts +129 -0
- package/src/core/router/planner.ts +166 -0
- package/src/core/router/rules.ts +115 -0
- package/src/core/run-panel-api.ts +262 -0
- package/src/core/schedule-gate.ts +7 -3
- package/src/core/schedule-v2.ts +114 -5
- package/src/core/scheduler/at-fallback.ts +190 -5
- package/src/core/scheduler/linux.ts +72 -21
- package/src/core/scheduler/logs.ts +2 -2
- package/src/core/scheduler/mac.ts +174 -14
- package/src/core/scheduler/posix.ts +20 -1
- package/src/core/scheduler/registry.ts +107 -26
- package/src/core/scheduler/run-now.ts +32 -0
- package/src/core/scheduler/windows.ts +19 -15
- package/src/core/secrets.ts +131 -31
- package/src/core/session.ts +23 -10
- package/src/core/structured-log.ts +22 -5
- package/src/core/task-name.ts +67 -0
- package/src/core/telegram.ts +2 -2
- package/src/core/triage-worker.ts +7 -7
- package/src/core/triage.ts +2 -2
- package/src/core/worktree-run.ts +199 -0
- package/src/core/worktree.ts +600 -0
- package/src/core/wrappers/bash.ts +239 -27
- package/src/db/capability-repo.ts +402 -0
- package/src/db/history-repo.ts +151 -22
- package/src/db/index.ts +37 -1
- package/src/db/metrics-repo.ts +2 -2
- package/src/db/migrate.ts +3 -1
- package/src/db/recovery.ts +5 -4
- package/src/db/run-context.ts +370 -0
- package/src/db/run-dlq.ts +310 -0
- package/src/db/run-journal.ts +100 -13
- package/src/db/run-resume.ts +65 -13
- package/src/db/runs-repo.ts +66 -13
- package/src/db/schema.ts +218 -3
- package/src/db/settings-repo.ts +31 -0
- package/src/db/step-idempotency.ts +185 -0
- package/src/gui.tsx +692 -13
- package/src/history.ts +1 -1
- package/src/i18n.ts +12 -4
- package/src/index.ts +648 -8
- package/src/notifications.ts +38 -8
- package/src/profiles.ts +26 -4
- package/src/rpc.ts +379 -0
- package/src/server.ts +206 -54
- package/src/settings.ts +5 -5
- package/src/shared/jobs-view.ts +3 -1
- package/src/task-transfer.ts +31 -0
- package/src/types.ts +9 -0
- package/src/workspaces.ts +58 -9
package/dist/rpc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":"AAm8DA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;gCAx4DrB,6EAA6E;;;;;;;;;;gCAI7E,+DAA+D;;;;gCAE/D,+CAA+C;;;;gCAE/C,oDAAoD;;;;gCAEpD,wDAAwD;;;;gCAExD,qDAAqD;;;;gCAErD,sCAAsC;;;;gCAEtC,qDAAqD;;;;gCAErD,+EAA+E;;;;;;;gCAE/E,2DAA2D;;;;gCAE3D,6CAA6C;;;;gCAE7C,8CAA8C;;;;gCAE9C,2EAA2E;;;;gCAE3E,qFAAqF;;;;gCAErF,yGAAyG;;;;gCAEzG,kGAAkG;;;;gCAElG,mFAAmF;;;;gCAEnF,qDAAqD;;;;;;;;;;;;;;;;gCAErD,iDAAiD;;;;gCAEjD,8DAA8D;;;;gCAE9D,qDAAqD;;;;gCAErD,oDAAoD;;;;gCAEpD,qEAAqE;;;;;;;gCAKrE,oEAAoE;;;;gCAEpE,8DAA8D;;;;;;;gCAK9D,gDAAgD;;;;;;;gCAKhD,uDAAuD;;;;gCAEvD,sEAAsE;;;;;;;gCAKtE,6CAA6C;;;;;;;gCAK7C,yDAAyD;;;;gCAEzD,qEAAqE;;;;gCAErE,qEAAqE;;;;gCAErE,8DAA8D;;;;gCAE9D,4DAA4D;;;;gCAE5D,8BAA8B;;;;gCAE9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put = {
|
|
297
|
+
type: "object",
|
|
298
|
+
properties: {
|
|
299
|
+
prompt: { type: "string" },
|
|
300
|
+
cwd: { type: "string" },
|
|
301
|
+
taskName: { type: "string" },
|
|
302
|
+
taskType: { type: "string" },
|
|
303
|
+
model: { type: "string" },
|
|
304
|
+
session: { type: "string", enum: ["new", "reuse", "last"] },
|
|
305
|
+
sessionId: { type: "string" },
|
|
306
|
+
timeoutSeconds: { type: "number" },
|
|
307
|
+
gate: { type: "string" },
|
|
308
|
+
gateTimeoutSeconds: { type: "number" },
|
|
309
|
+
policy: { type: "string", enum: ["hybrid", "secure", "legacy"] },
|
|
310
|
+
allowedTools: { type: "array", items: { type: "string" } },
|
|
311
|
+
deniedTools: { type: "array", items: { type: "string" } },
|
|
312
|
+
dryRun: { type: "boolean" },
|
|
313
|
+
},
|
|
314
|
+
required: ["prompt"],
|
|
315
|
+
};
|
|
316
|
+
const RunMissionOutput = {
|
|
317
|
+
type: "object",
|
|
318
|
+
properties: {
|
|
319
|
+
success: { type: "boolean" },
|
|
320
|
+
dryRun: { type: "boolean" },
|
|
321
|
+
runId: { type: "string" },
|
|
322
|
+
status: { type: "string" },
|
|
323
|
+
description: { type: "string" },
|
|
324
|
+
error: { type: "string" },
|
|
325
|
+
steps: {
|
|
326
|
+
type: "array",
|
|
327
|
+
items: {
|
|
328
|
+
type: "object",
|
|
329
|
+
properties: {
|
|
330
|
+
stepName: { type: "string" },
|
|
331
|
+
taskType: { type: "string" },
|
|
332
|
+
target: { type: "string" },
|
|
333
|
+
status: { type: "string" },
|
|
334
|
+
attempt: { type: "number" },
|
|
335
|
+
error: { type: "string" },
|
|
336
|
+
},
|
|
337
|
+
},
|
|
338
|
+
},
|
|
339
|
+
},
|
|
340
|
+
required: ["success", "dryRun", "status", "description"],
|
|
341
|
+
};
|
|
296
342
|
const GetTaskLogsInput = NameOnly;
|
|
297
343
|
const GetTaskLogsOutput = {
|
|
298
344
|
type: "object",
|
|
@@ -842,6 +888,235 @@ const GetAuditOutput = {
|
|
|
842
888
|
},
|
|
843
889
|
required: ["success", "records", "total"],
|
|
844
890
|
};
|
|
891
|
+
/** Запись dead-letter queue (Спринт 36.6). */
|
|
892
|
+
const DlqEntrySchema = {
|
|
893
|
+
type: "object",
|
|
894
|
+
properties: {
|
|
895
|
+
id: { type: "string" },
|
|
896
|
+
runId: { type: "string" },
|
|
897
|
+
stepName: { type: "string" },
|
|
898
|
+
status: { type: "string" },
|
|
899
|
+
reason: { type: ["string", "null"] },
|
|
900
|
+
error: { type: ["string", "null"] },
|
|
901
|
+
attempts: { type: "number" },
|
|
902
|
+
createdAt: { type: "string" },
|
|
903
|
+
updatedAt: { type: "string" },
|
|
904
|
+
resolvedAt: { type: ["string", "null"] },
|
|
905
|
+
resolution: { type: ["string", "null"] },
|
|
906
|
+
},
|
|
907
|
+
required: [
|
|
908
|
+
"id",
|
|
909
|
+
"runId",
|
|
910
|
+
"stepName",
|
|
911
|
+
"status",
|
|
912
|
+
"reason",
|
|
913
|
+
"error",
|
|
914
|
+
"attempts",
|
|
915
|
+
"createdAt",
|
|
916
|
+
"updatedAt",
|
|
917
|
+
"resolvedAt",
|
|
918
|
+
"resolution",
|
|
919
|
+
],
|
|
920
|
+
};
|
|
921
|
+
const ListDlqInput = {
|
|
922
|
+
type: "object",
|
|
923
|
+
properties: {
|
|
924
|
+
/** open (по умолчанию) | retried | discarded | all. */
|
|
925
|
+
status: { type: "string" },
|
|
926
|
+
/** Сколько записей вернуть (по умолчанию 100, максимум 500). */
|
|
927
|
+
limit: { type: "number" },
|
|
928
|
+
},
|
|
929
|
+
additionalProperties: false,
|
|
930
|
+
};
|
|
931
|
+
const ListDlqOutput = {
|
|
932
|
+
type: "object",
|
|
933
|
+
properties: {
|
|
934
|
+
success: { type: "boolean" },
|
|
935
|
+
entries: { type: "array", items: DlqEntrySchema },
|
|
936
|
+
open: { type: "number" },
|
|
937
|
+
error: { type: "string" },
|
|
938
|
+
},
|
|
939
|
+
required: ["success", "entries", "open"],
|
|
940
|
+
additionalProperties: false,
|
|
941
|
+
};
|
|
942
|
+
const RetryDlqInput = {
|
|
943
|
+
type: "object",
|
|
944
|
+
properties: {
|
|
945
|
+
id: { type: "string" },
|
|
946
|
+
},
|
|
947
|
+
required: ["id"],
|
|
948
|
+
additionalProperties: false,
|
|
949
|
+
};
|
|
950
|
+
const RetryDlqOutput = {
|
|
951
|
+
type: "object",
|
|
952
|
+
properties: {
|
|
953
|
+
success: { type: "boolean" },
|
|
954
|
+
error: { type: "string" },
|
|
955
|
+
entry: DlqEntrySchema,
|
|
956
|
+
runId: { type: "string" },
|
|
957
|
+
stepName: { type: "string" },
|
|
958
|
+
runReopened: { type: "boolean" },
|
|
959
|
+
},
|
|
960
|
+
required: ["success"],
|
|
961
|
+
additionalProperties: false,
|
|
962
|
+
};
|
|
963
|
+
const DiscardDlqInput = {
|
|
964
|
+
type: "object",
|
|
965
|
+
properties: {
|
|
966
|
+
id: { type: "string" },
|
|
967
|
+
/** Причина отказа для журнала (по умолчанию discarded). */
|
|
968
|
+
resolution: { type: "string" },
|
|
969
|
+
},
|
|
970
|
+
required: ["id"],
|
|
971
|
+
additionalProperties: false,
|
|
972
|
+
};
|
|
973
|
+
const DiscardDlqOutput = {
|
|
974
|
+
type: "object",
|
|
975
|
+
properties: {
|
|
976
|
+
success: { type: "boolean" },
|
|
977
|
+
error: { type: "string" },
|
|
978
|
+
entry: DlqEntrySchema,
|
|
979
|
+
},
|
|
980
|
+
required: ["success"],
|
|
981
|
+
additionalProperties: false,
|
|
982
|
+
};
|
|
983
|
+
/** Шаг durable-запуска для панели (Спринт 36.8). */
|
|
984
|
+
const RunPanelStepSchema = {
|
|
985
|
+
type: "object",
|
|
986
|
+
properties: {
|
|
987
|
+
stepName: { type: "string" },
|
|
988
|
+
position: { type: "number" },
|
|
989
|
+
status: { type: "string" },
|
|
990
|
+
attempt: { type: "number" },
|
|
991
|
+
error: { type: ["string", "null"] },
|
|
992
|
+
anchor: { type: "string" },
|
|
993
|
+
},
|
|
994
|
+
required: ["stepName", "position", "status", "attempt", "error", "anchor"],
|
|
995
|
+
};
|
|
996
|
+
/** Вставка контекста в истории запуска. */
|
|
997
|
+
const RunPanelInjectionSchema = {
|
|
998
|
+
type: "object",
|
|
999
|
+
properties: {
|
|
1000
|
+
id: { type: "string" },
|
|
1001
|
+
kind: { type: "string" },
|
|
1002
|
+
content: { type: "string" },
|
|
1003
|
+
contentLength: { type: "number" },
|
|
1004
|
+
author: { type: "string" },
|
|
1005
|
+
createdAt: { type: "string" },
|
|
1006
|
+
consumedAt: { type: ["string", "null"] },
|
|
1007
|
+
consumedByStep: { type: ["string", "null"] },
|
|
1008
|
+
},
|
|
1009
|
+
required: [
|
|
1010
|
+
"id",
|
|
1011
|
+
"kind",
|
|
1012
|
+
"content",
|
|
1013
|
+
"contentLength",
|
|
1014
|
+
"author",
|
|
1015
|
+
"createdAt",
|
|
1016
|
+
"consumedAt",
|
|
1017
|
+
"consumedByStep",
|
|
1018
|
+
],
|
|
1019
|
+
};
|
|
1020
|
+
/** Durable-запуск в панели паузы/resume. */
|
|
1021
|
+
const RunPanelRunSchema = {
|
|
1022
|
+
type: "object",
|
|
1023
|
+
properties: {
|
|
1024
|
+
id: { type: "string" },
|
|
1025
|
+
taskName: { type: "string" },
|
|
1026
|
+
status: { type: "string" },
|
|
1027
|
+
createdAt: { type: "string" },
|
|
1028
|
+
startedAt: { type: ["string", "null"] },
|
|
1029
|
+
finishedAt: { type: ["string", "null"] },
|
|
1030
|
+
error: { type: ["string", "null"] },
|
|
1031
|
+
steps: { type: "array", items: RunPanelStepSchema },
|
|
1032
|
+
currentStep: { type: ["object", "null"], properties: RunPanelStepSchema.properties },
|
|
1033
|
+
doneSteps: { type: "number" },
|
|
1034
|
+
totalSteps: { type: "number" },
|
|
1035
|
+
injections: { type: "array", items: RunPanelInjectionSchema },
|
|
1036
|
+
pendingInjections: { type: "number" },
|
|
1037
|
+
},
|
|
1038
|
+
required: [
|
|
1039
|
+
"id",
|
|
1040
|
+
"taskName",
|
|
1041
|
+
"status",
|
|
1042
|
+
"createdAt",
|
|
1043
|
+
"startedAt",
|
|
1044
|
+
"finishedAt",
|
|
1045
|
+
"error",
|
|
1046
|
+
"steps",
|
|
1047
|
+
"currentStep",
|
|
1048
|
+
"doneSteps",
|
|
1049
|
+
"totalSteps",
|
|
1050
|
+
"injections",
|
|
1051
|
+
"pendingInjections",
|
|
1052
|
+
],
|
|
1053
|
+
};
|
|
1054
|
+
const ListDurableRunsInput = {
|
|
1055
|
+
type: "object",
|
|
1056
|
+
properties: {
|
|
1057
|
+
/** active (по умолчанию) | all | pending | running | paused | passed | failed | cancelled. */
|
|
1058
|
+
filter: { type: "string" },
|
|
1059
|
+
/** Сколько запусков вернуть (по умолчанию 20, максимум 100). */
|
|
1060
|
+
limit: { type: "number" },
|
|
1061
|
+
},
|
|
1062
|
+
additionalProperties: false,
|
|
1063
|
+
};
|
|
1064
|
+
const ListDurableRunsOutput = {
|
|
1065
|
+
type: "object",
|
|
1066
|
+
properties: {
|
|
1067
|
+
success: { type: "boolean" },
|
|
1068
|
+
runs: { type: "array", items: RunPanelRunSchema },
|
|
1069
|
+
active: { type: "number" },
|
|
1070
|
+
error: { type: "string" },
|
|
1071
|
+
},
|
|
1072
|
+
required: ["success", "runs", "active"],
|
|
1073
|
+
additionalProperties: false,
|
|
1074
|
+
};
|
|
1075
|
+
const PauseDurableRunInput = {
|
|
1076
|
+
type: "object",
|
|
1077
|
+
properties: {
|
|
1078
|
+
runId: { type: "string" },
|
|
1079
|
+
/** Явный шаг-получатель; по умолчанию первый незавершённый. */
|
|
1080
|
+
stepName: { type: "string" },
|
|
1081
|
+
/** Комментарий, который получит шаг при resume. */
|
|
1082
|
+
comment: { type: "string" },
|
|
1083
|
+
/** Автор комментария (по умолчанию local-user). */
|
|
1084
|
+
author: { type: "string" },
|
|
1085
|
+
},
|
|
1086
|
+
required: ["runId"],
|
|
1087
|
+
additionalProperties: false,
|
|
1088
|
+
};
|
|
1089
|
+
const PauseDurableRunOutput = {
|
|
1090
|
+
type: "object",
|
|
1091
|
+
properties: {
|
|
1092
|
+
success: { type: "boolean" },
|
|
1093
|
+
error: { type: "string" },
|
|
1094
|
+
run: RunPanelRunSchema,
|
|
1095
|
+
stepName: { type: ["string", "null"] },
|
|
1096
|
+
},
|
|
1097
|
+
required: ["success"],
|
|
1098
|
+
additionalProperties: false,
|
|
1099
|
+
};
|
|
1100
|
+
const ResumeDurableRunInput = {
|
|
1101
|
+
type: "object",
|
|
1102
|
+
properties: {
|
|
1103
|
+
runId: { type: "string" },
|
|
1104
|
+
},
|
|
1105
|
+
required: ["runId"],
|
|
1106
|
+
additionalProperties: false,
|
|
1107
|
+
};
|
|
1108
|
+
const ResumeDurableRunOutput = {
|
|
1109
|
+
type: "object",
|
|
1110
|
+
properties: {
|
|
1111
|
+
success: { type: "boolean" },
|
|
1112
|
+
error: { type: "string" },
|
|
1113
|
+
run: RunPanelRunSchema,
|
|
1114
|
+
stepName: { type: ["string", "null"] },
|
|
1115
|
+
prepared: { type: "boolean" },
|
|
1116
|
+
},
|
|
1117
|
+
required: ["success"],
|
|
1118
|
+
additionalProperties: false,
|
|
1119
|
+
};
|
|
845
1120
|
/** Сравнение триажа «до/после» (Спринт 31.5). */
|
|
846
1121
|
const CompareTriageInput = {
|
|
847
1122
|
type: "object",
|
|
@@ -1331,6 +1606,73 @@ const DryRunAllOutput = {
|
|
|
1331
1606
|
},
|
|
1332
1607
|
required: ["success", "reports"],
|
|
1333
1608
|
};
|
|
1609
|
+
/* === Pipeline-as-code (спринт 32) === */
|
|
1610
|
+
const PipelineValidateInput = {
|
|
1611
|
+
type: "object",
|
|
1612
|
+
properties: {
|
|
1613
|
+
path: { type: "string" },
|
|
1614
|
+
source: { type: "string" },
|
|
1615
|
+
dryRun: { type: "boolean" },
|
|
1616
|
+
},
|
|
1617
|
+
additionalProperties: false,
|
|
1618
|
+
};
|
|
1619
|
+
const PipelineIssue = {
|
|
1620
|
+
type: "object",
|
|
1621
|
+
properties: {
|
|
1622
|
+
path: { type: "string" },
|
|
1623
|
+
message: { type: "string" },
|
|
1624
|
+
},
|
|
1625
|
+
required: ["path", "message"],
|
|
1626
|
+
};
|
|
1627
|
+
const PipelineValidationOutput = {
|
|
1628
|
+
type: "object",
|
|
1629
|
+
properties: {
|
|
1630
|
+
ok: { type: "boolean" },
|
|
1631
|
+
errors: { type: "array", items: PipelineIssue },
|
|
1632
|
+
warnings: { type: "array", items: PipelineIssue },
|
|
1633
|
+
spec: {},
|
|
1634
|
+
},
|
|
1635
|
+
required: ["ok", "errors", "warnings"],
|
|
1636
|
+
};
|
|
1637
|
+
const PipelineApplyInput = {
|
|
1638
|
+
type: "object",
|
|
1639
|
+
properties: {
|
|
1640
|
+
path: { type: "string" },
|
|
1641
|
+
source: { type: "string" },
|
|
1642
|
+
dryRun: { type: "boolean" },
|
|
1643
|
+
},
|
|
1644
|
+
additionalProperties: false,
|
|
1645
|
+
};
|
|
1646
|
+
const PipelineApplyOutput = {
|
|
1647
|
+
type: "object",
|
|
1648
|
+
properties: {
|
|
1649
|
+
created: { type: "number" },
|
|
1650
|
+
updated: { type: "number" },
|
|
1651
|
+
unchanged: { type: "number" },
|
|
1652
|
+
stale: { type: "number" },
|
|
1653
|
+
warnings: { type: "array", items: { type: "string" } },
|
|
1654
|
+
errors: { type: "array", items: PipelineIssue },
|
|
1655
|
+
},
|
|
1656
|
+
required: ["created", "updated", "unchanged", "stale"],
|
|
1657
|
+
};
|
|
1658
|
+
const PipelineExportInput = {
|
|
1659
|
+
type: "object",
|
|
1660
|
+
properties: {
|
|
1661
|
+
pipeline: { type: "string" },
|
|
1662
|
+
},
|
|
1663
|
+
required: ["pipeline"],
|
|
1664
|
+
additionalProperties: false,
|
|
1665
|
+
};
|
|
1666
|
+
const PipelineExportOutput = {
|
|
1667
|
+
type: "object",
|
|
1668
|
+
properties: {
|
|
1669
|
+
ok: { type: "boolean" },
|
|
1670
|
+
spec: {},
|
|
1671
|
+
error: { type: "string" },
|
|
1672
|
+
},
|
|
1673
|
+
required: ["ok"],
|
|
1674
|
+
};
|
|
1675
|
+
/* === end Pipeline-as-code === */
|
|
1334
1676
|
/** Детальный отчёт по одному клону матрицы. */
|
|
1335
1677
|
const MatrixCloneResult = {
|
|
1336
1678
|
type: "object",
|
|
@@ -1521,6 +1863,7 @@ export const SchedulerRpc = Rpc.define({
|
|
|
1521
1863
|
create_task: { input: CreateTaskInput, output: CreateTaskOutput },
|
|
1522
1864
|
delete_task: { input: DeleteTaskInput, output: DeleteTaskOutput },
|
|
1523
1865
|
run_task: { input: RunTaskInput, output: RunTaskOutput },
|
|
1866
|
+
run_mission: { input: RunMissionInput, output: RunMissionOutput },
|
|
1524
1867
|
pause_task: { input: PauseResumeInput, output: DeleteTaskOutput },
|
|
1525
1868
|
resume_task: { input: PauseResumeInput, output: DeleteTaskOutput },
|
|
1526
1869
|
update_task: { input: UpdateTaskInput, output: UpdateTaskOutput },
|
|
@@ -1531,6 +1874,9 @@ export const SchedulerRpc = Rpc.define({
|
|
|
1531
1874
|
get_platform: { input: GetPlatformInput, output: GetPlatformOutput },
|
|
1532
1875
|
dry_run: { input: DryRunInput, output: DryRunReportOutput },
|
|
1533
1876
|
dry_run_all: { input: GetTasksInput, output: DryRunAllOutput },
|
|
1877
|
+
pipeline_validate: { input: PipelineValidateInput, output: PipelineValidationOutput },
|
|
1878
|
+
pipeline_apply: { input: PipelineApplyInput, output: PipelineApplyOutput },
|
|
1879
|
+
pipeline_export: { input: PipelineExportInput, output: PipelineExportOutput },
|
|
1534
1880
|
get_matrix_results: {
|
|
1535
1881
|
input: GetMatrixResultsInput,
|
|
1536
1882
|
output: GetMatrixResultsOutput,
|
|
@@ -1575,6 +1921,12 @@ export const SchedulerRpc = Rpc.define({
|
|
|
1575
1921
|
save_secret: { input: SaveSecretInput, output: SaveSecretOutput },
|
|
1576
1922
|
delete_secret: { input: DeleteSecretInput, output: DeleteSecretOutput },
|
|
1577
1923
|
get_audit: { input: GetAuditInput, output: GetAuditOutput },
|
|
1924
|
+
list_dlq: { input: ListDlqInput, output: ListDlqOutput },
|
|
1925
|
+
retry_dlq: { input: RetryDlqInput, output: RetryDlqOutput },
|
|
1926
|
+
discard_dlq: { input: DiscardDlqInput, output: DiscardDlqOutput },
|
|
1927
|
+
list_durable_runs: { input: ListDurableRunsInput, output: ListDurableRunsOutput },
|
|
1928
|
+
pause_durable_run: { input: PauseDurableRunInput, output: PauseDurableRunOutput },
|
|
1929
|
+
resume_durable_run: { input: ResumeDurableRunInput, output: ResumeDurableRunOutput },
|
|
1578
1930
|
compare_triage: {
|
|
1579
1931
|
input: CompareTriageInput,
|
|
1580
1932
|
output: CompareTriageOutput,
|
package/dist/server.d.ts
CHANGED
|
@@ -88,6 +88,37 @@ export interface ModelAnalysis {
|
|
|
88
88
|
avgDuration: number;
|
|
89
89
|
successRate: number;
|
|
90
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* Цена модели за 1M токенов.
|
|
93
|
+
*
|
|
94
|
+
* Порядок: ручное переопределение → каталог цен OpenCode (models.dev) →
|
|
95
|
+
* встроенная таблица → средняя оценка.
|
|
96
|
+
*/
|
|
97
|
+
export declare function modelPrice(model: string | undefined): number;
|
|
98
|
+
/**
|
|
99
|
+
* Агрегирует историю по моделям и считает сценарии What-If.
|
|
100
|
+
* Возвращает данные для GET /api/models-analysis и блока дашборда.
|
|
101
|
+
*/
|
|
102
|
+
export declare function aggregateModels(history: {
|
|
103
|
+
status: string;
|
|
104
|
+
durationMs: number;
|
|
105
|
+
tokens?: number;
|
|
106
|
+
costUsd?: number;
|
|
107
|
+
model?: string;
|
|
108
|
+
}[]): {
|
|
109
|
+
models: ModelAnalysis[];
|
|
110
|
+
totals: {
|
|
111
|
+
totalRuns: number;
|
|
112
|
+
totalTokens: number;
|
|
113
|
+
totalCost: number;
|
|
114
|
+
};
|
|
115
|
+
whatIf: {
|
|
116
|
+
model: string;
|
|
117
|
+
pricePerMillion: number;
|
|
118
|
+
cost: number;
|
|
119
|
+
}[];
|
|
120
|
+
whatIfSource: "env" | import("./core/opencode-models.js").WhatIfSource;
|
|
121
|
+
};
|
|
91
122
|
/** Запущен ли дашборд прямо сейчас. */
|
|
92
123
|
export declare function isDashboardRunning(): boolean;
|
|
93
124
|
/** Порт, на котором слушает дашборд (или null, если не запущен). */
|
|
@@ -120,6 +151,21 @@ export declare function needsDashboardSourceCheck(pathname: string): boolean;
|
|
|
120
151
|
export declare function startDashboardServer(deps: DashboardDeps, ports?: DashboardPorts): Promise<{
|
|
121
152
|
port: number;
|
|
122
153
|
} | null>;
|
|
154
|
+
export interface DashboardProbe {
|
|
155
|
+
/** На порту отвечает наш дашборд (маркер-заголовок совпал). */
|
|
156
|
+
dashboard: boolean;
|
|
157
|
+
/** Профиль ответившего дашборда; null, если это не дашборд. */
|
|
158
|
+
profile: string | null;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Проверяет по маркер-заголовку, что на порту отвечает наш дашборд,
|
|
162
|
+
* и определяет его профиль (B4.1).
|
|
163
|
+
*
|
|
164
|
+
* Заголовок профиля появился в B4.1. Более старые сборки его не отдают —
|
|
165
|
+
* таких считаем профилем `default`: до появления профилей база была одна,
|
|
166
|
+
* а значит старый процесс работал именно с default.
|
|
167
|
+
*/
|
|
168
|
+
export declare function probeDashboardOn(port: number): Promise<DashboardProbe>;
|
|
123
169
|
/**
|
|
124
170
|
* Останавливает сервер (вызывается при выгрузке плагина).
|
|
125
171
|
* Возвращает true, если сервер действительно работал и был закрыт.
|
package/dist/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAgF7B,8EAA8E;AAC9E,MA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