agent-steward 0.0.4 → 0.0.6

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.
Files changed (279) hide show
  1. package/CHANGELOG.md +309 -2
  2. package/CROSS_PLATFORM.md +19 -0
  3. package/README.md +55 -8
  4. package/ROADMAP-STRATEGY.md +22 -19
  5. package/ROADMAP.md +230 -159
  6. package/dist/cli.d.ts +3 -0
  7. package/dist/cli.d.ts.map +1 -0
  8. package/dist/cli.js +356 -0
  9. package/dist/core/analytics.d.ts +6 -0
  10. package/dist/core/analytics.d.ts.map +1 -1
  11. package/dist/core/analytics.js +20 -3
  12. package/dist/core/audit.d.ts +6 -0
  13. package/dist/core/audit.d.ts.map +1 -1
  14. package/dist/core/audit.js +24 -0
  15. package/dist/core/budget.d.ts +118 -0
  16. package/dist/core/budget.d.ts.map +1 -0
  17. package/dist/core/budget.js +206 -0
  18. package/dist/core/cron-to-schtasks.d.ts.map +1 -1
  19. package/dist/core/cron-to-schtasks.js +38 -0
  20. package/dist/core/dry-run.d.ts +26 -1
  21. package/dist/core/dry-run.d.ts.map +1 -1
  22. package/dist/core/dry-run.js +199 -8
  23. package/dist/core/execution.d.ts +203 -0
  24. package/dist/core/execution.d.ts.map +1 -0
  25. package/dist/core/execution.js +309 -0
  26. package/dist/core/feedback.d.ts +192 -0
  27. package/dist/core/feedback.d.ts.map +1 -0
  28. package/dist/core/feedback.js +426 -0
  29. package/dist/core/gate-integrity.d.ts +71 -0
  30. package/dist/core/gate-integrity.d.ts.map +1 -0
  31. package/dist/core/gate-integrity.js +275 -0
  32. package/dist/core/git-trigger.d.ts.map +1 -1
  33. package/dist/core/git-trigger.js +14 -2
  34. package/dist/core/guard-run.d.ts +4 -0
  35. package/dist/core/guard-run.d.ts.map +1 -0
  36. package/dist/core/guard-run.js +101 -0
  37. package/dist/core/guard.d.ts +52 -0
  38. package/dist/core/guard.d.ts.map +1 -0
  39. package/dist/core/guard.js +362 -0
  40. package/dist/core/local-ai.d.ts.map +1 -1
  41. package/dist/core/local-ai.js +7 -3
  42. package/dist/core/lock.d.ts +41 -0
  43. package/dist/core/lock.d.ts.map +1 -1
  44. package/dist/core/lock.js +141 -29
  45. package/dist/core/matrix.d.ts +8 -0
  46. package/dist/core/matrix.d.ts.map +1 -1
  47. package/dist/core/matrix.js +132 -17
  48. package/dist/core/mission.d.ts +103 -0
  49. package/dist/core/mission.d.ts.map +1 -0
  50. package/dist/core/mission.js +374 -0
  51. package/dist/core/opencode-models.d.ts +2 -2
  52. package/dist/core/opencode-models.d.ts.map +1 -1
  53. package/dist/core/opencode-models.js +28 -21
  54. package/dist/core/opencode-usage.d.ts +35 -0
  55. package/dist/core/opencode-usage.d.ts.map +1 -0
  56. package/dist/core/opencode-usage.js +132 -0
  57. package/dist/core/pipeline-apply.d.ts +38 -0
  58. package/dist/core/pipeline-apply.d.ts.map +1 -0
  59. package/dist/core/pipeline-apply.js +117 -0
  60. package/dist/core/pipeline-io.d.ts +13 -0
  61. package/dist/core/pipeline-io.d.ts.map +1 -0
  62. package/dist/core/pipeline-io.js +78 -0
  63. package/dist/core/pipeline-map.d.ts +52 -0
  64. package/dist/core/pipeline-map.d.ts.map +1 -0
  65. package/dist/core/pipeline-map.js +208 -0
  66. package/dist/core/pipeline-spec.d.ts +109 -0
  67. package/dist/core/pipeline-spec.d.ts.map +1 -0
  68. package/dist/core/pipeline-spec.js +554 -0
  69. package/dist/core/ps-wrapper.d.ts +27 -2
  70. package/dist/core/ps-wrapper.d.ts.map +1 -1
  71. package/dist/core/ps-wrapper.js +424 -65
  72. package/dist/core/record-history.d.ts.map +1 -1
  73. package/dist/core/record-history.js +206 -33
  74. package/dist/core/router/rules.d.ts.map +1 -1
  75. package/dist/core/router/rules.js +6 -0
  76. package/dist/core/run-mode.d.ts +12 -0
  77. package/dist/core/run-mode.d.ts.map +1 -0
  78. package/dist/core/run-mode.js +17 -0
  79. package/dist/core/scheduler/linux.d.ts +8 -1
  80. package/dist/core/scheduler/linux.d.ts.map +1 -1
  81. package/dist/core/scheduler/linux.js +34 -9
  82. package/dist/core/scheduler/logs.d.ts +4 -0
  83. package/dist/core/scheduler/logs.d.ts.map +1 -1
  84. package/dist/core/scheduler/logs.js +25 -1
  85. package/dist/core/scheduler/mac.d.ts +44 -2
  86. package/dist/core/scheduler/mac.d.ts.map +1 -1
  87. package/dist/core/scheduler/mac.js +126 -15
  88. package/dist/core/scheduler/windows.d.ts.map +1 -1
  89. package/dist/core/scheduler/windows.js +15 -12
  90. package/dist/core/secrets.d.ts.map +1 -1
  91. package/dist/core/secrets.js +18 -8
  92. package/dist/core/self-analysis.d.ts +32 -2
  93. package/dist/core/self-analysis.d.ts.map +1 -1
  94. package/dist/core/self-analysis.js +38 -27
  95. package/dist/core/shutdown.d.ts +33 -2
  96. package/dist/core/shutdown.d.ts.map +1 -1
  97. package/dist/core/shutdown.js +58 -2
  98. package/dist/core/structured-log.d.ts +37 -1
  99. package/dist/core/structured-log.d.ts.map +1 -1
  100. package/dist/core/structured-log.js +37 -0
  101. package/dist/core/usage-surface.d.ts +25 -0
  102. package/dist/core/usage-surface.d.ts.map +1 -0
  103. package/dist/core/usage-surface.js +41 -0
  104. package/dist/core/worktree-run.d.ts +4 -0
  105. package/dist/core/worktree-run.d.ts.map +1 -0
  106. package/dist/core/worktree-run.js +164 -0
  107. package/dist/core/worktree.d.ts +115 -0
  108. package/dist/core/worktree.d.ts.map +1 -0
  109. package/dist/core/worktree.js +462 -0
  110. package/dist/core/wrappers/bash.d.ts +19 -0
  111. package/dist/core/wrappers/bash.d.ts.map +1 -1
  112. package/dist/core/wrappers/bash.js +230 -27
  113. package/dist/db/capability-repo.d.ts +43 -2
  114. package/dist/db/capability-repo.d.ts.map +1 -1
  115. package/dist/db/capability-repo.js +96 -11
  116. package/dist/db/history-repo.d.ts +70 -5
  117. package/dist/db/history-repo.d.ts.map +1 -1
  118. package/dist/db/history-repo.js +170 -29
  119. package/dist/db/metrics-repo.d.ts +20 -2
  120. package/dist/db/metrics-repo.d.ts.map +1 -1
  121. package/dist/db/metrics-repo.js +35 -13
  122. package/dist/db/migrate.d.ts.map +1 -1
  123. package/dist/db/migrate.js +37 -17
  124. package/dist/db/recovery.d.ts +3 -1
  125. package/dist/db/recovery.d.ts.map +1 -1
  126. package/dist/db/recovery.js +11 -5
  127. package/dist/db/run-journal.d.ts +33 -5
  128. package/dist/db/run-journal.d.ts.map +1 -1
  129. package/dist/db/run-journal.js +78 -14
  130. package/dist/db/run-resume.d.ts +5 -0
  131. package/dist/db/run-resume.d.ts.map +1 -1
  132. package/dist/db/run-resume.js +9 -2
  133. package/dist/db/runs-repo.d.ts +19 -2
  134. package/dist/db/runs-repo.d.ts.map +1 -1
  135. package/dist/db/runs-repo.js +91 -60
  136. package/dist/db/schema.d.ts +2 -2
  137. package/dist/db/schema.d.ts.map +1 -1
  138. package/dist/db/schema.js +132 -2
  139. package/dist/db/templates-repo.d.ts +2 -2
  140. package/dist/db/templates-repo.d.ts.map +1 -1
  141. package/dist/db/templates-repo.js +5 -3
  142. package/dist/history.d.ts +7 -2
  143. package/dist/history.d.ts.map +1 -1
  144. package/dist/history.js +4 -2
  145. package/dist/hook-output.d.ts +2 -0
  146. package/dist/hook-output.d.ts.map +1 -0
  147. package/dist/hook-output.js +31 -0
  148. package/dist/i18n.d.ts +5 -0
  149. package/dist/i18n.d.ts.map +1 -1
  150. package/dist/i18n.js +11 -4
  151. package/dist/index.d.ts +375 -47
  152. package/dist/index.d.ts.map +1 -1
  153. package/dist/index.js +1344 -192
  154. package/dist/notifications.d.ts +53 -2
  155. package/dist/notifications.d.ts.map +1 -1
  156. package/dist/notifications.js +168 -21
  157. package/dist/profiles.d.ts.map +1 -1
  158. package/dist/profiles.js +82 -10
  159. package/dist/rpc.d.ts +354 -0
  160. package/dist/rpc.d.ts.map +1 -1
  161. package/dist/rpc.js +145 -0
  162. package/dist/server.d.ts +32 -2
  163. package/dist/server.d.ts.map +1 -1
  164. package/dist/server.js +154 -30
  165. package/dist/settings.d.ts +44 -2
  166. package/dist/settings.d.ts.map +1 -1
  167. package/dist/settings.js +85 -3
  168. package/dist/shared/jobs-view.d.ts +1 -1
  169. package/dist/shared/jobs-view.d.ts.map +1 -1
  170. package/dist/shared/jobs-view.js +2 -0
  171. package/dist/task-transfer.d.ts +21 -0
  172. package/dist/task-transfer.d.ts.map +1 -1
  173. package/dist/task-transfer.js +64 -3
  174. package/dist/templates.d.ts +2 -2
  175. package/dist/templates.d.ts.map +1 -1
  176. package/dist/templates.js +3 -3
  177. package/dist/types.d.ts +22 -2
  178. package/dist/types.d.ts.map +1 -1
  179. package/dist/workspaces.d.ts.map +1 -1
  180. package/dist/workspaces.js +34 -11
  181. package/docs/ARCHITECTURE.md +319 -66
  182. package/docs/COMPATIBILITY.md +2 -2
  183. package/docs/CONCEPT.md +18 -4
  184. package/docs/CROSS_PLATFORM.ru.md +20 -0
  185. package/docs/CROSS_PLATFORM.zh.md +18 -0
  186. package/docs/EXECUTION-LOOP.md +28 -10
  187. package/docs/FEATURES.md +129 -7
  188. package/docs/FEATURES.zh.md +97 -6
  189. package/docs/MIGRATION.md +2 -2
  190. package/docs/PIPELINE.md +293 -0
  191. package/docs/QA-A2-GUI-TUI.md +205 -0
  192. package/docs/README.ru.md +43 -4
  193. package/docs/README.zh.md +44 -4
  194. package/docs/SAFETY.md +23 -3
  195. package/gui-experimental.cjs +9 -8
  196. package/locales/en.json +58 -3
  197. package/locales/ru.json +58 -3
  198. package/locales/zh.json +58 -3
  199. package/opencode.pipeline.yaml +35 -0
  200. package/package.json +36 -4
  201. package/scripts/check-eslint-baseline.mjs +139 -0
  202. package/scripts/gen-test-plan-counters.mjs +117 -0
  203. package/scripts/github-ci-fetch.ps1 +37 -0
  204. package/scripts/pl-commit.ps1 +112 -0
  205. package/scripts/qa-a2-commit.ps1 +104 -0
  206. package/scripts/test-home.mjs +107 -0
  207. package/skills/scheduled-job-best-practices/SKILL.md +95 -1
  208. package/skills/scheduled-job-best-practices/references/recipes.md +139 -0
  209. package/src/cli.ts +417 -0
  210. package/src/core/analytics.ts +27 -4
  211. package/src/core/audit.ts +25 -0
  212. package/src/core/budget.ts +340 -0
  213. package/src/core/cron-to-schtasks.ts +42 -0
  214. package/src/core/dry-run.ts +235 -12
  215. package/src/core/execution.ts +538 -0
  216. package/src/core/feedback.ts +582 -0
  217. package/src/core/file-watcher.ts +2 -2
  218. package/src/core/gate-integrity.ts +330 -0
  219. package/src/core/git-trigger.ts +18 -5
  220. package/src/core/guard-run.ts +119 -0
  221. package/src/core/guard.ts +431 -0
  222. package/src/core/local-ai.ts +7 -3
  223. package/src/core/lock.ts +178 -37
  224. package/src/core/matrix.ts +158 -52
  225. package/src/core/mission.ts +531 -0
  226. package/src/core/native-notify.ts +1 -1
  227. package/src/core/opencode-models.ts +30 -21
  228. package/src/core/opencode-usage.ts +182 -0
  229. package/src/core/pipeline-apply.ts +158 -0
  230. package/src/core/pipeline-io.ts +96 -0
  231. package/src/core/pipeline-map.ts +283 -0
  232. package/src/core/pipeline-spec.ts +775 -0
  233. package/src/core/ps-wrapper.ts +435 -66
  234. package/src/core/record-history.ts +258 -81
  235. package/src/core/router/rules.ts +6 -0
  236. package/src/core/run-mode.ts +19 -0
  237. package/src/core/schedule-gate.ts +1 -1
  238. package/src/core/scheduler/at-fallback.ts +1 -1
  239. package/src/core/scheduler/linux.ts +40 -11
  240. package/src/core/scheduler/logs.ts +34 -3
  241. package/src/core/scheduler/mac.ts +174 -14
  242. package/src/core/scheduler/registry.ts +2 -2
  243. package/src/core/scheduler/windows.ts +19 -15
  244. package/src/core/secrets.ts +26 -19
  245. package/src/core/self-analysis.ts +75 -29
  246. package/src/core/shutdown.ts +90 -4
  247. package/src/core/structured-log.ts +89 -5
  248. package/src/core/telegram.ts +2 -2
  249. package/src/core/triage-worker.ts +7 -7
  250. package/src/core/triage.ts +2 -2
  251. package/src/core/usage-surface.ts +70 -0
  252. package/src/core/worktree-run.ts +199 -0
  253. package/src/core/worktree.ts +600 -0
  254. package/src/core/wrappers/bash.ts +248 -26
  255. package/src/db/capability-repo.ts +127 -10
  256. package/src/db/history-repo.ts +281 -40
  257. package/src/db/metrics-repo.ts +40 -13
  258. package/src/db/migrate.ts +57 -32
  259. package/src/db/recovery.ts +12 -5
  260. package/src/db/run-journal.ts +100 -13
  261. package/src/db/run-resume.ts +17 -1
  262. package/src/db/runs-repo.ts +147 -65
  263. package/src/db/schema.ts +134 -2
  264. package/src/db/templates-repo.ts +5 -3
  265. package/src/gui.tsx +438 -18
  266. package/src/history.ts +11 -4
  267. package/src/hook-output.ts +39 -0
  268. package/src/i18n.ts +12 -4
  269. package/src/index.ts +1902 -320
  270. package/src/notifications.ts +227 -47
  271. package/src/profiles.ts +88 -10
  272. package/src/rpc.ts +158 -0
  273. package/src/server.ts +201 -41
  274. package/src/settings.ts +125 -5
  275. package/src/shared/jobs-view.ts +3 -1
  276. package/src/task-transfer.ts +90 -6
  277. package/src/templates.ts +3 -3
  278. package/src/types.ts +23 -2
  279. package/src/workspaces.ts +37 -14
package/locales/en.json CHANGED
@@ -38,6 +38,18 @@
38
38
  "dryRun.window.reason.neverFires": "the cron never fires",
39
39
  "dryRun.window.reason.neverInWindow": "no run falls inside the window",
40
40
  "dryRun.window.reason.postponeTooFar": "the nearest window opening is more than 12 hours away",
41
+ "feedback.dryRun": "Preview only: nothing was sent. Review the payload above before sending.",
42
+ "feedback.sent": "Report sent to the author via the receiver. Thank you!",
43
+ "feedback.outbox": "Receiver unavailable — the report was saved locally and will be retried on startup. Plugin startup was not blocked.",
44
+ "feedback.duplicate": "An identical report was sent recently — skipped to prevent spam.",
45
+ "feedback.local": "Report sent to local notification channels.",
46
+ "feedback.settingsTitle": "Author feedback (bug reports)",
47
+ "feedback.settingsEnabled": "Send reports to the author",
48
+ "feedback.settingsEndpoint": "Receiver URL (POST /report)",
49
+ "feedback.settingsIncludeLogs": "Attach logs by default",
50
+ "feedback.settingsContactEmail": "Contact email (optional)",
51
+ "feedback.settingsMaxPerHour": "Reports per hour limit",
52
+ "feedback.settingsHint": "The GitHub token lives only in the receiver secrets. Secrets, home paths and emails are redacted from logs.",
41
53
  "gitTrigger.baseline": "Remembered current commit {commit} — the task will run on the next change.",
42
54
  "gitTrigger.branchMismatch": "Branch {branch} does not match the filter \"{pattern}\".",
43
55
  "gitTrigger.changed": "New commit {commit}: {count} files changed ({files}).",
@@ -189,10 +201,19 @@
189
201
  "gui.history.error": "❌ Error",
190
202
  "gui.history.modelTitle": "Model: {model}",
191
203
  "gui.history.nextTaskTitle": "Next task in the chain was started",
204
+ "gui.history.skipped": "⏭ Skipped",
192
205
  "gui.history.success": "✅ Success",
193
206
  "gui.historyCleanupHint": "Only finished records are deleted; unfinished runs are kept.",
194
207
  "gui.historyDeleteOlderLabel": "Delete records older than, days",
195
208
  "gui.historyHeading": "🧹 History & retention",
209
+ "gui.budgetsHeading": "Budgets (daily / weekly)",
210
+ "gui.budgetsEnabled": "enabled",
211
+ "gui.budgetsDisabled": "disabled",
212
+ "gui.budgetsHint": "When a limit is reached, new runs are skipped. 0 means no limit.",
213
+ "gui.budgetsEnabledLabel": "Enable budget control",
214
+ "gui.budgetsDailyLabel": "Daily limit, USD:",
215
+ "gui.budgetsWeeklyLabel": "Weekly limit, USD:",
216
+ "gui.budgetsZeroNoLimit": "0 means no limit",
196
217
  "gui.historyKeepMaxLabel": "Keep at most records",
197
218
  "gui.historyNoExpiry": "no expiry",
198
219
  "gui.historyNoLimit": "no limit",
@@ -256,6 +277,7 @@
256
277
  "gui.jobStatus.partial": "🟠 Partial",
257
278
  "gui.jobStatus.paused": "⏸ Paused",
258
279
  "gui.jobStatus.running": "🟡 Running: {seconds} s",
280
+ "gui.jobStatus.skipped": "⏭ Skipped",
259
281
  "gui.jobStatus.success": "🟢 Done",
260
282
  "gui.jobStatus.unknown": "⚪ Unknown",
261
283
  "gui.jobsTitle": "Scheduler",
@@ -304,7 +326,9 @@
304
326
  "gui.mcpFilterPlaceholder": "e.g. repo=\"my-project\" or regex",
305
327
  "gui.mcpSourceLabel": "MCP server / source",
306
328
  "gui.mcpSourcePlaceholder": "e.g. github",
307
- "gui.metricsTotalsLine": "📊 Total across all tasks: {total} · ✅ {success} · ❌ {error}",
329
+ "gui.metricsTotalsLine": "📊 Runs in history: {total} · ✅ {success} · ❌ {error} · ⏭ {skipped} · ⏸ {interrupted}",
330
+ "gui.metricsToolBlockedLine": "🛡 Tool blocks (14 days): {count}",
331
+ "gui.metricsToolBlockedTitle": "Hybrid policy working as intended, not a run failure",
308
332
  "gui.metricsTotalsTitle": "Total metrics across all tasks (including archived metric records)",
309
333
  "gui.modalShortcutHint": "Ctrl+Enter — save, Escape — cancel",
310
334
  "gui.modelHint": "Empty — the default OpenCode model. Otherwise the --model flag is passed.",
@@ -739,7 +763,7 @@
739
763
  "tool.error.matrixNotMatrix": "Task \"{name}\" is not a matrix.",
740
764
  "tool.error.matrixOverride": "Task \"{task}\": matrix.overrides contains workspace \"{workspace}\" that is not listed in workspaceIds.",
741
765
  "tool.error.modelInvalid": "Invalid model \"{model}\": {error}",
742
- "tool.error.mcpEventRequired": "An MCP trigger requires an event name (mcpEvent.event).",
766
+ "tool.error.mcpEventRequired": "An MCP trigger requires an event name (mcpEvent.event or mcpEvent.eventName).",
743
767
  "tool.error.onceFields": "runAt/delaySeconds are only allowed with triggerType=once.",
744
768
  "tool.error.onceMatrixSchema": "One-shot cannot be combined with matrix: a matrix is started manually only.",
745
769
  "tool.error.onceMatrixUpdate": "One-shot cannot be combined with matrix.",
@@ -772,6 +796,7 @@
772
796
  "tool.event.none": "No tasks are subscribed to event \"{event}\".",
773
797
  "tool.event.processed": "Event \"{event}\" processed. Tasks started: {count}.",
774
798
  "tool.event.triggered": "Tasks started: {count}.",
799
+ "tool.event.startFailed": "Failed to start tasks: {count}.",
775
800
  "tool.history.cleanFailed": "Failed to clean history: {error}",
776
801
  "tool.history.cleaned": "Deleted {deleted} records (by age: {byAge}, by limit: {byCount}), {kept} left.",
777
802
  "tool.localAi.unchanged": "Settings unchanged.",
@@ -844,5 +869,35 @@
844
869
  "tool.workspace.needDeleteId": "action=delete requires id.",
845
870
  "tool.workspace.needPath": "action=add requires path.",
846
871
  "tool.workspace.needUpdateId": "action=update requires id.",
847
- "tool.workspace.notFound": "Workspace not found."
872
+ "tool.workspace.notFound": "Workspace not found.",
873
+ "gui.missionHeading": "Ad-hoc mission",
874
+ "gui.missionHint": "Runs without OS registration through the same runtime, GATE and ledger.",
875
+ "gui.missionCwdPlaceholder": "Working directory (defaults to current)",
876
+ "gui.missionTimeout": "Timeout, sec",
877
+ "gui.missionPolicy": "Permission policy",
878
+ "gui.missionPolicyHybrid": "hybrid",
879
+ "gui.missionPolicySecure": "secure",
880
+ "gui.missionPolicyLegacy": "legacy",
881
+ "gui.missionDryRun": "Plan only (dry-run)",
882
+ "gui.missionRun": "Run mission",
883
+ "gui.missionTitle": "Ad-hoc mission",
884
+ "gui.missionEmptyPrompt": "Enter a mission prompt.",
885
+ "gui.missionStarted": "Mission completed",
886
+ "gui.missionFailed": "Mission failed",
887
+ "selfAnalysis.level.excellent": "excellent",
888
+ "selfAnalysis.level.good": "good",
889
+ "selfAnalysis.level.fair": "fair",
890
+ "selfAnalysis.level.poor": "poor",
891
+ "selfAnalysis.level.critical": "critical",
892
+ "selfAnalysis.health": "System health: {level} ({score}/100)",
893
+ "selfAnalysis.anomaliesHigh": "{count, plural, one {Detected # critical anomaly} other {Detected # critical anomalies}}",
894
+ "selfAnalysis.anomaliesAll": "{count, plural, one {Detected # anomaly (all non-critical)} other {Detected # anomalies (all non-critical)}}",
895
+ "selfAnalysis.noAnomalies": "No critical anomalies detected",
896
+ "selfAnalysis.degrading": "{count, plural, one {# metric is degrading} other {# metrics are degrading}}",
897
+ "selfAnalysis.highPriority": "{count, plural, one {# high-priority recommendation} other {# high-priority recommendations}}",
898
+ "selfAnalysis.rec.successRate": "Improve run success rate: check Quality Gate and error logs",
899
+ "selfAnalysis.rec.errorRate": "Reduce error rate: add retryCount for flaky tasks",
900
+ "selfAnalysis.rec.duration": "Optimize duration: split long tasks or increase timeoutSeconds",
901
+ "selfAnalysis.rec.timeouts": "Reduce timeouts: increase timeoutSeconds or simplify prompts",
902
+ "selfAnalysis.rec.crashes": "Reduce interrupted runs: check system stability"
848
903
  }
package/locales/ru.json CHANGED
@@ -38,6 +38,18 @@
38
38
  "dryRun.window.reason.neverFires": "cron не даёт ни одного запуска",
39
39
  "dryRun.window.reason.neverInWindow": "ни один запуск не попадает в окно",
40
40
  "dryRun.window.reason.postponeTooFar": "ближайшее открытие окна позже 12 часов",
41
+ "feedback.dryRun": "Предпросмотр: ничего не отправлено. Проверьте показанный payload перед отправкой.",
42
+ "feedback.sent": "Отчёт отправлен автору через приёмник. Спасибо!",
43
+ "feedback.outbox": "Приёмник недоступен — отчёт сохранён локально и будет отправлен повторно при старте. Запуск плагина не заблокирован.",
44
+ "feedback.duplicate": "Такой отчёт уже был отправлен недавно — повтор пропущен для защиты от спама.",
45
+ "feedback.local": "Отчёт отправлен в локальные каналы уведомлений.",
46
+ "feedback.settingsTitle": "Обратная связь с автором (bug reports)",
47
+ "feedback.settingsEnabled": "Отправлять отчёты автору",
48
+ "feedback.settingsEndpoint": "URL приёмника (POST /report)",
49
+ "feedback.settingsIncludeLogs": "Прикладывать логи по умолчанию",
50
+ "feedback.settingsContactEmail": "Обратный адрес (необязательно)",
51
+ "feedback.settingsMaxPerHour": "Лимит отчётов в час",
52
+ "feedback.settingsHint": "Токен GitHub живёт только в секретах приёмника. Из логов вырезаются секреты, пути home и email.",
41
53
  "gitTrigger.baseline": "Запомнен текущий коммит {commit} — задача запустится на следующем изменении.",
42
54
  "gitTrigger.branchMismatch": "Ветка {branch} не подходит под фильтр «{pattern}».",
43
55
  "gitTrigger.changed": "Новый коммит {commit}: изменено файлов {count} ({files}).",
@@ -189,10 +201,19 @@
189
201
  "gui.history.error": "❌ Ошибка",
190
202
  "gui.history.modelTitle": "Модель: {model}",
191
203
  "gui.history.nextTaskTitle": "Запущена следующая задача в цепочке",
204
+ "gui.history.skipped": "⏭ Пропущено",
192
205
  "gui.history.success": "✅ Успех",
193
206
  "gui.historyCleanupHint": "Удаляются только завершённые записи; незавершённые запуски не трогаются.",
194
207
  "gui.historyDeleteOlderLabel": "Удалять записи старше, дней",
195
208
  "gui.historyHeading": "🧹 История и ретеншн",
209
+ "gui.budgetsHeading": "Бюджеты (день / неделя)",
210
+ "gui.budgetsEnabled": "включены",
211
+ "gui.budgetsDisabled": "выключены",
212
+ "gui.budgetsHint": "При достижении лимита новые запуски пропускаются. 0 — без лимита.",
213
+ "gui.budgetsEnabledLabel": "Включить контроль бюджетов",
214
+ "gui.budgetsDailyLabel": "Лимит на день, USD:",
215
+ "gui.budgetsWeeklyLabel": "Лимит на неделю, USD:",
216
+ "gui.budgetsZeroNoLimit": "0 — без лимита",
196
217
  "gui.historyKeepMaxLabel": "Хранить не более записей",
197
218
  "gui.historyNoExpiry": "без срока",
198
219
  "gui.historyNoLimit": "без лимита",
@@ -256,6 +277,7 @@
256
277
  "gui.jobStatus.partial": "🟠 Частично",
257
278
  "gui.jobStatus.paused": "⏸ Пауза",
258
279
  "gui.jobStatus.running": "🟡 Выполняется: {seconds} сек",
280
+ "gui.jobStatus.skipped": "⏭ Пропущено",
259
281
  "gui.jobStatus.success": "🟢 Готова",
260
282
  "gui.jobStatus.unknown": "⚪ Неизвестно",
261
283
  "gui.jobsTitle": "Планировщик",
@@ -304,7 +326,9 @@
304
326
  "gui.mcpFilterPlaceholder": "например, repo=\"my-project\" или regex",
305
327
  "gui.mcpSourceLabel": "MCP-сервер / источник",
306
328
  "gui.mcpSourcePlaceholder": "например, github",
307
- "gui.metricsTotalsLine": "📊 Всего по всем задачам: {total} · ✅ {success} · ❌ {error}",
329
+ "gui.metricsTotalsLine": "📊 Запусков в истории: {total} · ✅ {success} · ❌ {error} · ⏭ {skipped} · ⏸ {interrupted}",
330
+ "gui.metricsToolBlockedLine": "🛡 Блокировок инструментов (14 дней): {count}",
331
+ "gui.metricsToolBlockedTitle": "Счётчик корректной работы hybrid-политики прав, а не ошибок запуска",
308
332
  "gui.metricsTotalsTitle": "Суммарные метрики по всем задачам (включая архивные записи метрик)",
309
333
  "gui.modalShortcutHint": "Ctrl+Enter — сохранить, Escape — отмена",
310
334
  "gui.modelHint": "Пусто — модель OpenCode по умолчанию. Иначе будет передан флаг --model.",
@@ -739,7 +763,7 @@
739
763
  "tool.error.matrixNotMatrix": "Задача \"{name}\" не является матрицей.",
740
764
  "tool.error.matrixOverride": "Задача \"{task}\": matrix.overrides содержит workspace \"{workspace}\", которого нет в workspaceIds.",
741
765
  "tool.error.modelInvalid": "Недопустимая модель «{model}»: {error}",
742
- "tool.error.mcpEventRequired": "Для MCP-триггера нужно указать имя события (mcpEvent.event).",
766
+ "tool.error.mcpEventRequired": "Для MCP-триггера нужно указать имя события (mcpEvent.event или mcpEvent.eventName).",
743
767
  "tool.error.onceFields": "runAt/delaySeconds допустимы только при triggerType=once.",
744
768
  "tool.error.onceMatrixSchema": "One-shot нельзя комбинировать с matrix: матрица запускается только вручную.",
745
769
  "tool.error.onceMatrixUpdate": "One-shot нельзя комбинировать с matrix.",
@@ -772,6 +796,7 @@
772
796
  "tool.event.none": "Нет задач, подписанных на событие \"{event}\".",
773
797
  "tool.event.processed": "Событие \"{event}\" обработано. Запущено задач: {count}.",
774
798
  "tool.event.triggered": "Запущено задач: {count}.",
799
+ "tool.event.startFailed": "Не удалось запустить задач: {count}.",
775
800
  "tool.history.cleanFailed": "Не удалось очистить историю: {error}",
776
801
  "tool.history.cleaned": "Удалено {deleted} записей (по возрасту: {byAge}, по лимиту: {byCount}), осталось {kept}.",
777
802
  "tool.localAi.unchanged": "Настройки не изменились.",
@@ -844,5 +869,35 @@
844
869
  "tool.workspace.needDeleteId": "Для action=delete нужен id.",
845
870
  "tool.workspace.needPath": "Для action=add нужен path.",
846
871
  "tool.workspace.needUpdateId": "Для action=update нужен id.",
847
- "tool.workspace.notFound": "Workspace не найден."
872
+ "tool.workspace.notFound": "Workspace не найден.",
873
+ "gui.missionHeading": "Ad-hoc миссия",
874
+ "gui.missionHint": "Запуск без регистрации в ОС: единый runtime, GATE и ledger.",
875
+ "gui.missionCwdPlaceholder": "Рабочая директория (по умолчанию — текущая)",
876
+ "gui.missionTimeout": "Таймаут, сек",
877
+ "gui.missionPolicy": "Политика прав",
878
+ "gui.missionPolicyHybrid": "hybrid",
879
+ "gui.missionPolicySecure": "secure",
880
+ "gui.missionPolicyLegacy": "legacy",
881
+ "gui.missionDryRun": "Только план (dry-run)",
882
+ "gui.missionRun": "Запустить миссию",
883
+ "gui.missionTitle": "Ad-hoc миссия",
884
+ "gui.missionEmptyPrompt": "Введите промпт миссии.",
885
+ "gui.missionStarted": "Миссия выполнена",
886
+ "gui.missionFailed": "Миссия не выполнена",
887
+ "selfAnalysis.level.excellent": "отличное",
888
+ "selfAnalysis.level.good": "хорошее",
889
+ "selfAnalysis.level.fair": "удовлетворительное",
890
+ "selfAnalysis.level.poor": "плохое",
891
+ "selfAnalysis.level.critical": "критическое",
892
+ "selfAnalysis.health": "Здоровье системы: {level} ({score}/100)",
893
+ "selfAnalysis.anomaliesHigh": "{count, plural, one {Обнаружена # критическая аномалия} few {Обнаружено # критические аномалии} many {Обнаружено # критических аномалий} other {Обнаружено # критических аномалий}}",
894
+ "selfAnalysis.anomaliesAll": "{count, plural, one {Обнаружена # аномалия (некритическая)} few {Обнаружено # аномалии (все некритические)} many {Обнаружено # аномалий (все некритические)} other {Обнаружено # аномалии (все некритические)}}",
895
+ "selfAnalysis.noAnomalies": "Критических аномалий не обнаружено",
896
+ "selfAnalysis.degrading": "{count, plural, one {# метрика ухудшается} few {# метрики ухудшаются} many {# метрик ухудшаются} other {# метрики ухудшаются}}",
897
+ "selfAnalysis.highPriority": "{count, plural, one {# рекомендация высокого приоритета} few {# рекомендации высокого приоритета} many {# рекомендаций высокого приоритета} other {# рекомендации высокого приоритета}}",
898
+ "selfAnalysis.rec.successRate": "Повысьте успешность запусков: проверьте Quality Gate и логи ошибок",
899
+ "selfAnalysis.rec.errorRate": "Снизьте частоту ошибок: добавьте retryCount для флакких задач",
900
+ "selfAnalysis.rec.duration": "Оптимизируйте длительность: разбейте длинные задачи или увеличьте timeoutSeconds",
901
+ "selfAnalysis.rec.timeouts": "Уменьшите количество таймаутов: увеличьте timeoutSeconds или упростите промпты",
902
+ "selfAnalysis.rec.crashes": "Снизьте количество прерванных запусков: проверьте стабильность системы"
848
903
  }
package/locales/zh.json CHANGED
@@ -38,6 +38,18 @@
38
38
  "dryRun.window.reason.neverFires": "cron 不会触发任何运行",
39
39
  "dryRun.window.reason.neverInWindow": "没有任何运行落在时间窗内",
40
40
  "dryRun.window.reason.postponeTooFar": "最近的时间窗开放时间超过 12 小时",
41
+ "feedback.dryRun": "仅预览:未发送任何内容。发送前请检查上面的 payload。",
42
+ "feedback.sent": "报告已通过接收端发送给作者,谢谢!",
43
+ "feedback.outbox": "接收端不可用——报告已保存在本地,启动时会自动重试。插件启动未被阻塞。",
44
+ "feedback.duplicate": "最近已发送过相同的报告——为防止刷屏已跳过。",
45
+ "feedback.local": "报告已发送至本地通知渠道。",
46
+ "feedback.settingsTitle": "向作者反馈(bug 报告)",
47
+ "feedback.settingsEnabled": "向作者发送报告",
48
+ "feedback.settingsEndpoint": "接收端 URL(POST /report)",
49
+ "feedback.settingsIncludeLogs": "默认附带日志",
50
+ "feedback.settingsContactEmail": "联系邮箱(可选)",
51
+ "feedback.settingsMaxPerHour": "每小时报告上限",
52
+ "feedback.settingsHint": "GitHub token 仅保存在接收端的 secrets 中。日志中的密钥、home 路径和邮箱会被脱敏。",
41
53
  "gitTrigger.baseline": "已记录当前提交 {commit}——任务将在下次变更时运行。",
42
54
  "gitTrigger.branchMismatch": "分支 {branch} 与筛选条件 “{pattern}” 不匹配。",
43
55
  "gitTrigger.changed": "新提交 {commit}:{count} 个文件已更改({files})。",
@@ -189,10 +201,19 @@
189
201
  "gui.history.error": "❌ 失败",
190
202
  "gui.history.modelTitle": "模型:{model}",
191
203
  "gui.history.nextTaskTitle": "链中的下一个任务已启动",
204
+ "gui.history.skipped": "⏭ 已跳过",
192
205
  "gui.history.success": "✅ 成功",
193
206
  "gui.historyCleanupHint": "仅删除已完成的记录;未完成的运行会保留。",
194
207
  "gui.historyDeleteOlderLabel": "删除早于以下天数的记录",
195
208
  "gui.historyHeading": "🧹 历史记录与保留策略",
209
+ "gui.budgetsHeading": "预算(每日 / 每周)",
210
+ "gui.budgetsEnabled": "已启用",
211
+ "gui.budgetsDisabled": "已禁用",
212
+ "gui.budgetsHint": "达到限额后将跳过新任务。0 表示不限制。",
213
+ "gui.budgetsEnabledLabel": "启用预算控制",
214
+ "gui.budgetsDailyLabel": "每日限额(美元):",
215
+ "gui.budgetsWeeklyLabel": "每周限额(美元):",
216
+ "gui.budgetsZeroNoLimit": "0 表示不限制",
196
217
  "gui.historyKeepMaxLabel": "最多保留记录数",
197
218
  "gui.historyNoExpiry": "无期限",
198
219
  "gui.historyNoLimit": "无限制",
@@ -256,6 +277,7 @@
256
277
  "gui.jobStatus.partial": "🟠 部分",
257
278
  "gui.jobStatus.paused": "⏸ 暂停",
258
279
  "gui.jobStatus.running": "🟡 正在运行:{seconds} 秒",
280
+ "gui.jobStatus.skipped": "⏭ 已跳过",
259
281
  "gui.jobStatus.success": "🟢 完成",
260
282
  "gui.jobStatus.unknown": "⚪ 未知",
261
283
  "gui.jobsTitle": "调度器",
@@ -304,7 +326,9 @@
304
326
  "gui.mcpFilterPlaceholder": "例如 repo=\"my-project\" 或正则",
305
327
  "gui.mcpSourceLabel": "MCP 服务器 / 来源",
306
328
  "gui.mcpSourcePlaceholder": "例如 github",
307
- "gui.metricsTotalsLine": "📊 所有任务合计:{total} · ✅ {success} · ❌ {error}",
329
+ "gui.metricsTotalsLine": "📊 历史运行数:{total} · ✅ {success} · ❌ {error} · ⏭ {skipped} · ⏸ {interrupted}",
330
+ "gui.metricsToolBlockedLine": "🛡 工具拦截次数(14 天):{count}",
331
+ "gui.metricsToolBlockedTitle": "混合权限策略正常工作的指标,不是运行失败",
308
332
  "gui.metricsTotalsTitle": "所有任务的汇总指标(包括归档的指标记录)",
309
333
  "gui.modalShortcutHint": "Ctrl+Enter——保存,Escape——取消",
310
334
  "gui.modelHint": "留空——使用 OpenCode 默认模型。否则会传入 --model 标志。",
@@ -739,7 +763,7 @@
739
763
  "tool.error.matrixNotMatrix": "任务 “{name}” 不是矩阵。",
740
764
  "tool.error.matrixOverride": "任务 “{task}”:matrix.overrides 包含未在 workspaceIds 中列出的工作区 “{workspace}”。",
741
765
  "tool.error.modelInvalid": "无效的模型 “{model}”:{error}",
742
- "tool.error.mcpEventRequired": "MCP 触发器需要事件名称(mcpEvent.event)。",
766
+ "tool.error.mcpEventRequired": "MCP 触发器需要事件名称(mcpEvent.event 或 mcpEvent.eventName)。",
743
767
  "tool.error.onceFields": "runAt/delaySeconds 仅在 triggerType=once 时允许。",
744
768
  "tool.error.onceMatrixSchema": "One-shot 不能与矩阵组合:矩阵仅可手动启动。",
745
769
  "tool.error.onceMatrixUpdate": "One-shot 不能与矩阵组合。",
@@ -772,6 +796,7 @@
772
796
  "tool.event.none": "没有任务订阅事件 “{event}”。",
773
797
  "tool.event.processed": "事件 “{event}” 已处理。启动的任务数:{count}。",
774
798
  "tool.event.triggered": "启动的任务数:{count}。",
799
+ "tool.event.startFailed": "启动失败的任务数:{count}。",
775
800
  "tool.history.cleanFailed": "清理历史失败:{error}",
776
801
  "tool.history.cleaned": "已删除 {deleted} 条记录(按年龄:{byAge},按上限:{byCount}),剩余 {kept} 条。",
777
802
  "tool.localAi.unchanged": "设置未更改。",
@@ -844,5 +869,35 @@
844
869
  "tool.workspace.needDeleteId": "action=delete 需要 id。",
845
870
  "tool.workspace.needPath": "action=add 需要 path。",
846
871
  "tool.workspace.needUpdateId": "action=update 需要 id。",
847
- "tool.workspace.notFound": "未找到工作区。"
872
+ "tool.workspace.notFound": "未找到工作区。",
873
+ "gui.missionHeading": "Ad-hoc 任务",
874
+ "gui.missionHint": "无需在操作系统中注册,使用同一 runtime、GATE 和 ledger。",
875
+ "gui.missionCwdPlaceholder": "工作目录(默认为当前目录)",
876
+ "gui.missionTimeout": "超时,秒",
877
+ "gui.missionPolicy": "权限策略",
878
+ "gui.missionPolicyHybrid": "hybrid",
879
+ "gui.missionPolicySecure": "secure",
880
+ "gui.missionPolicyLegacy": "legacy",
881
+ "gui.missionDryRun": "仅计划(dry-run)",
882
+ "gui.missionRun": "运行任务",
883
+ "gui.missionTitle": "Ad-hoc 任务",
884
+ "gui.missionEmptyPrompt": "请输入任务提示词。",
885
+ "gui.missionStarted": "任务已完成",
886
+ "gui.missionFailed": "任务失败",
887
+ "selfAnalysis.level.excellent": "优秀",
888
+ "selfAnalysis.level.good": "良好",
889
+ "selfAnalysis.level.fair": "一般",
890
+ "selfAnalysis.level.poor": "较差",
891
+ "selfAnalysis.level.critical": "严重",
892
+ "selfAnalysis.health": "系统健康度:{level} ({score}/100)",
893
+ "selfAnalysis.anomaliesHigh": "检测到 # 个严重异常",
894
+ "selfAnalysis.anomaliesAll": "检测到 # 个异常(均为非严重)",
895
+ "selfAnalysis.noAnomalies": "未检测到严重异常",
896
+ "selfAnalysis.degrading": "# 个指标正在恶化",
897
+ "selfAnalysis.highPriority": "# 条高优先级建议",
898
+ "selfAnalysis.rec.successRate": "提高运行成功率:检查 Quality Gate 和错误日志",
899
+ "selfAnalysis.rec.errorRate": "降低错误率:为不稳定的任务添加 retryCount",
900
+ "selfAnalysis.rec.duration": "优化耗时:拆分长任务或增加 timeoutSeconds",
901
+ "selfAnalysis.rec.timeouts": "减少超时:增加 timeoutSeconds 或简化提示词",
902
+ "selfAnalysis.rec.crashes": "减少中断的运行:检查系统稳定性"
848
903
  }
@@ -0,0 +1,35 @@
1
+ version: 1
2
+ name: nightly-release
3
+
4
+ description: Lint, test and build the repository every night after the last commit.
5
+
6
+ defaults:
7
+ timeoutSeconds: 1800
8
+ retryCount: 1
9
+ retryDelay: 120
10
+ allowedTools: [read, edit, glob, grep]
11
+
12
+ steps:
13
+ - id: lint
14
+ schedule: "0 2 * * *"
15
+ prompt: >
16
+ Run the linter and fix every reported problem in the changed files.
17
+ Do not change behaviour, only style and obvious defects.
18
+ qualityGate: npm run lint
19
+
20
+ - id: test
21
+ needs: [lint]
22
+ trigger: dag
23
+ prompt: >
24
+ Run the test suite, find the cause of any failure and fix it.
25
+ Add a regression test when the fix changes behaviour.
26
+ qualityGate: npm test
27
+
28
+ - id: build
29
+ needs: [test]
30
+ trigger: dag
31
+ timeoutSeconds: 3600
32
+ prompt: >
33
+ Build the package and verify that dist/ contains the CLI entry point.
34
+ Report the build output size.
35
+ qualityGate: npm run build
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-steward",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "OpenCode plugin for V1 and V2: scheduling and orchestrating AI agent jobs — cron, one-shot runs, DAG pipelines, matrix builds, quality gates, SQLite history, metrics and a local web dashboard. Windows, macOS and Linux. Free and open source (MIT).",
5
5
  "license": "MIT",
6
6
  "author": "agent-steward contributors",
@@ -36,6 +36,9 @@
36
36
  ],
37
37
  "main": "dist/index.js",
38
38
  "types": "dist/index.d.ts",
39
+ "bin": {
40
+ "agent-steward": "dist/cli.js"
41
+ },
39
42
  "type": "module",
40
43
  "exports": {
41
44
  ".": {
@@ -43,6 +46,10 @@
43
46
  "default": "./dist/index.js"
44
47
  },
45
48
  "./tui": "./src/tui.tsx",
49
+ "./rpc": {
50
+ "types": "./dist/rpc.d.ts",
51
+ "default": "./dist/rpc.js"
52
+ },
46
53
  "./gui-experimental": "./gui-experimental.cjs",
47
54
  "./package.json": "./package.json"
48
55
  },
@@ -56,6 +63,7 @@
56
63
  "scripts",
57
64
  "docs",
58
65
  "README.md",
66
+ "opencode.pipeline.yaml",
59
67
  "LICENSE",
60
68
  "CHANGELOG.md",
61
69
  "CROSS_PLATFORM.md",
@@ -72,13 +80,16 @@
72
80
  "build": "tsc",
73
81
  "lint": "eslint src",
74
82
  "lint-job": "eslint src",
83
+ "lint:strict": "eslint src --max-warnings=0",
84
+ "lint:baseline": "node scripts/check-eslint-baseline.mjs",
85
+ "lint:baseline:update": "node scripts/check-eslint-baseline.mjs --update",
75
86
  "build:gui": "vite build",
76
87
  "demo": "node scripts/demo-dashboard.mjs",
77
88
  "bench:local": "node scripts/bench-local.mjs",
78
89
  "prepare": "npm run build",
79
90
  "prepublishOnly": "npm run build && npm run build:gui",
80
91
  "pretest": "npm run build",
81
- "test": "node test-sqlite.mjs && node test-user-version.mjs && node test-run-state.mjs && node test-run-journal.mjs && node test-run-resume.mjs && node test-step-idempotency.mjs && node test-run-dlq.mjs && node test-run-context.mjs && node test-dlq-gui.mjs && node test-pause-gui.mjs && node test-router-rules.mjs && node test-capability-map.mjs && node test-planner.mjs && node test-escalation.mjs && node test-router-dispatch.mjs && node test-crash-recovery.mjs && node test-workspaces.mjs && node test-role-scoped.mjs && node test-permissions-policy.mjs && node test-dry-run.mjs && node test-matrix.mjs && node test-matrix-lifecycle.mjs && node test-matrix-sync.mjs && node test-retention.mjs && node test-metrics.mjs && node test-savings.mjs && node test-schedule-v2.mjs && node test-notifications-v2.mjs && node test-notifications-dedup.mjs && node test-notifications-embedding.mjs && node test-notifications-summary.mjs && node test-settings.mjs && node test-notifications-v3.mjs && node test-triage.mjs && node test-triage-rules.mjs && node test-triage-compare.mjs && node test-triage-chain.mjs && node test-triage-shadow.mjs && node test-triage-audit.mjs && node test-triage-async.mjs && node test-local-ai.mjs && node test-secrets.mjs && node test-audit.mjs && node test-profiles.mjs && node test-env.mjs && node test-agent-tools.mjs && node test-self-analysis.mjs && node test-skill.mjs && node test-integrations.mjs && node test-one-shot.mjs && node test-session-continuity.mjs && node test-task-status.mjs && node test-jobs-view.mjs && node test-dag.mjs && node test-dashboard.mjs && node test-dashboard-trust.mjs && node test-dashboard-dag.mjs && node test-dashboard-json.mjs && node test-docs.mjs && node test-glob.mjs && node test-git-trigger.mjs && node test-window-v3.mjs && node test-i18n.mjs && node test-gui-bundle.mjs && node test-stale-lock.mjs && node test-task-name-limit.mjs && node test-task-name-limit-profile.mjs && node test-delete-profile.mjs && node test-execution-hardening.mjs && node test-path-safety.mjs && node test-watch-paths.mjs && node test-windows-oem.mjs && node test-schtasks-errors.mjs && node test-schtasks-locales.mjs && node test-cron-to-schtasks.mjs && node test-mac-cron.mjs && node test-at-fallback.mjs && node test-shutdown.mjs && node test-dual-entry.mjs && node test-v1-integration.mjs && node test-usage-from-log.mjs && node test-posix-e2e.mjs && node test-model-validation.mjs && node test-run-now.mjs && node test-task-name-collision.mjs && node test-pause-one-shot.mjs && node test-package-exports.mjs && node test-registry-resilience.mjs && node test-posix-create-rollback.mjs && node test-workflows.mjs && node test-dag-latest-history.mjs && node test-retry-counter.mjs && node test-models-config.mjs && node test-posix-cron.mjs && node test-migrate-partial.mjs && node test-windows-locales.mjs && node test-at-e2e.mjs",
92
+ "test": "node test-sqlite.mjs && node test-user-version.mjs && node test-run-state.mjs && node test-run-journal.mjs && node test-run-resume.mjs && node test-step-idempotency.mjs && node test-run-dlq.mjs && node test-run-context.mjs && node test-dlq-gui.mjs && node test-pause-gui.mjs && node test-router-rules.mjs && node test-capability-map.mjs && node test-planner.mjs && node test-escalation.mjs && node test-router-dispatch.mjs && node test-execution-pipeline.mjs && node test-mission-run.mjs && node test-crash-recovery.mjs && node test-prompt-argv.mjs && node test-ps-watchdog.mjs && node test-workspaces.mjs && node test-role-scoped.mjs && node test-permissions-policy.mjs && node test-dry-run.mjs && node test-matrix.mjs && node test-matrix-lifecycle.mjs && node test-matrix-sync.mjs && node test-retention.mjs && node test-metrics.mjs && node test-budget.mjs && node test-savings.mjs && node test-schedule-v2.mjs && node test-notifications-v2.mjs && node test-notifications-dedup.mjs && node test-notifications-embedding.mjs && node test-notifications-summary.mjs && node test-settings.mjs && node test-notifications-v3.mjs && node test-triage.mjs && node test-triage-rules.mjs && node test-triage-compare.mjs && node test-triage-chain.mjs && node test-triage-shadow.mjs && node test-triage-audit.mjs && node test-triage-async.mjs && node test-local-ai.mjs && node test-secrets.mjs && node test-audit.mjs && node test-profiles.mjs && node test-env.mjs && node test-agent-tools.mjs && node test-self-analysis.mjs && node test-skill.mjs && node test-integrations.mjs && node test-one-shot.mjs && node test-session-continuity.mjs && node test-task-status.mjs && node test-jobs-view.mjs && node test-dag.mjs && node test-dashboard.mjs && node test-dashboard-trust.mjs && node test-dashboard-dag.mjs && node test-dashboard-json.mjs && node test-dashboard-xss.mjs && node test-profile-isolation.mjs && node test-docs.mjs && node test-feedback.mjs && node test-feedback-worker.mjs && node test-glob.mjs && node test-git-trigger.mjs && node test-window-v3.mjs && node test-i18n.mjs && node test-gui-bundle.mjs && node test-lock-format.mjs && node test-stale-lock.mjs && node test-task-name-limit.mjs && node test-task-name-limit-profile.mjs && node test-delete-profile.mjs && node test-execution-hardening.mjs && node test-path-safety.mjs && node test-watch-paths.mjs && node test-windows-oem.mjs && node test-schtasks-errors.mjs && node test-schtasks-locales.mjs && node test-cron-to-schtasks.mjs && node test-mac-cron.mjs && node test-mac-launchctl.mjs && node test-at-fallback.mjs && node test-shutdown.mjs && node test-dual-entry.mjs && node test-v1-integration.mjs && node test-usage-from-log.mjs && node test-posix-e2e.mjs && node test-model-validation.mjs && node test-run-now.mjs && node test-task-name-collision.mjs && node test-pause-one-shot.mjs && node test-package-exports.mjs && node test-registry-resilience.mjs && node test-posix-create-rollback.mjs && node test-workflows.mjs && node test-dag-latest-history.mjs && node test-retry-counter.mjs && node test-models-config.mjs && node test-posix-cron.mjs && node test-migrate-partial.mjs && node test-windows-locales.mjs && node test-pipeline.mjs && node test-at-e2e.mjs && node test-worktree.mjs && node test-guards.mjs && node test-w4.mjs && node test-validation.mjs && node test-eslint-baseline.mjs && node test-test-plan.mjs",
82
93
  "test:sqlite": "node test-sqlite.mjs",
83
94
  "test:user-version": "node test-user-version.mjs",
84
95
  "test:run-state": "node test-run-state.mjs",
@@ -95,6 +106,10 @@
95
106
  "test:escalation": "node test-escalation.mjs",
96
107
  "test:router-dispatch": "node test-router-dispatch.mjs",
97
108
  "test:crash": "node test-crash-recovery.mjs",
109
+ "test:prompt-argv": "node test-prompt-argv.mjs",
110
+ "test:execution-pipeline": "node test-execution-pipeline.mjs",
111
+ "test:mission-run": "node test-mission-run.mjs",
112
+ "test:ps-watchdog": "node test-ps-watchdog.mjs",
98
113
  "test:chaos": "node test-chaos-dag.mjs",
99
114
  "test:workspaces": "node test-workspaces.mjs",
100
115
  "test:role": "node test-role-scoped.mjs",
@@ -103,11 +118,17 @@
103
118
  "test:matrix-lifecycle": "node test-matrix-lifecycle.mjs",
104
119
  "test:matrix-sync": "node test-matrix-sync.mjs",
105
120
  "test:retention": "node test-retention.mjs",
121
+ "test:history-load": "node test-history-load.mjs",
106
122
  "test:metrics": "node test-metrics.mjs",
123
+ "test:budget": "node test-budget.mjs",
124
+ "test:validation": "node test-validation.mjs",
107
125
  "test:schedule-v2": "node test-schedule-v2.mjs",
108
126
  "test:posix-cron": "node test-posix-cron.mjs",
109
127
  "test:migrate-partial": "node test-migrate-partial.mjs",
110
128
  "test:at-e2e": "node test-at-e2e.mjs",
129
+ "test:worktree": "node test-worktree.mjs",
130
+ "test:guards": "node test-guards.mjs",
131
+ "test:w4": "node test-w4.mjs",
111
132
  "test:notifications-v2": "node test-notifications-v2.mjs",
112
133
  "test:notifications-v3": "node test-notifications-v3.mjs",
113
134
  "test:settings": "node test-settings.mjs",
@@ -124,6 +145,7 @@
124
145
  "test:profiles": "node test-profiles.mjs",
125
146
  "test:env": "node test-env.mjs",
126
147
  "test:agent": "node test-agent-tools.mjs",
148
+ "test:shutdown-gate": "node test-shutdown-gate.mjs",
127
149
  "test:skill": "node test-skill.mjs",
128
150
  "test:integrations": "node test-integrations.mjs",
129
151
  "test:session-continuity": "node test-session-continuity.mjs",
@@ -134,10 +156,16 @@
134
156
  "test:dag-latest-history": "node test-dag-latest-history.mjs",
135
157
  "test:retry-counter": "node test-retry-counter.mjs",
136
158
  "test:models-config": "node test-models-config.mjs",
159
+ "test:models-analysis": "node test-models-analysis.mjs",
137
160
  "test:dashboard": "node test-dashboard.mjs",
138
161
  "test:dashboard-dag": "node test-dashboard-dag.mjs",
139
162
  "test:dashboard-json": "node test-dashboard-json.mjs",
163
+ "test:dashboard-xss": "node test-dashboard-xss.mjs",
164
+ "test:profile-isolation": "node test-profile-isolation.mjs",
140
165
  "test:docs": "node test-docs.mjs",
166
+ "test:feedback": "node test-feedback.mjs",
167
+ "test:feedback-worker": "node test-feedback-worker.mjs",
168
+ "test:eslint-baseline": "node test-eslint-baseline.mjs",
141
169
  "test:glob": "node test-glob.mjs",
142
170
  "test:git-trigger": "node test-git-trigger.mjs",
143
171
  "test:window-v3": "node test-window-v3.mjs",
@@ -152,6 +180,8 @@
152
180
  "test:schtasks-errors": "node test-schtasks-errors.mjs",
153
181
  "test:cron-to-schtasks": "node test-cron-to-schtasks.mjs",
154
182
  "test:mac-cron": "node test-mac-cron.mjs",
183
+ "test:mac-launchctl": "node test-mac-launchctl.mjs",
184
+ "test:lock-format": "node test-lock-format.mjs",
155
185
  "test:at-fallback": "node test-at-fallback.mjs",
156
186
  "test:shutdown": "node test-shutdown.mjs",
157
187
  "test:usage-from-log": "node test-usage-from-log.mjs",
@@ -161,6 +191,7 @@
161
191
  "test:task-name-collision": "node test-task-name-collision.mjs",
162
192
  "test:pause-one-shot": "node test-pause-one-shot.mjs",
163
193
  "test:package-exports": "node test-package-exports.mjs",
194
+ "test:prod-install": "node test-prod-install.mjs",
164
195
  "test:registry-resilience": "node test-registry-resilience.mjs",
165
196
  "test:posix-create-rollback": "node test-posix-create-rollback.mjs",
166
197
  "test:workflows": "node test-workflows.mjs",
@@ -177,6 +208,7 @@
177
208
  "@opencode/schema": "^2.2.7",
178
209
  "chokidar": "^6.0.0",
179
210
  "iconv-lite": "^0.7.3",
211
+ "yaml": "^2.9.1",
180
212
  "zod": "^4.6.7"
181
213
  },
182
214
  "devDependencies": {
@@ -187,11 +219,11 @@
187
219
  "@typescript-eslint/eslint-plugin": "^8.73.0",
188
220
  "@typescript-eslint/parser": "^8.73.0",
189
221
  "eslint": "^10.15.0",
222
+ "gpt-tokenizer": "^4.1.2",
190
223
  "solid-js": "^1.9.0",
191
224
  "typescript": "^5.9.3",
192
225
  "typescript-eslint": "^8.73.0",
193
226
  "vite": "^7.0.0",
194
- "vite-plugin-solid": "^2.11.0",
195
- "yaml": "^2.9.1"
227
+ "vite-plugin-solid": "^2.11.0"
196
228
  }
197
229
  }