@xiangyixie/dsh-superagent 0.14.2 → 0.14.4
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 +252 -74
- package/README.en.md +135 -28
- package/README.md +1232 -1167
- package/README.zh.md +1232 -1167
- package/bin/doctor.js +1 -1
- package/cordis.patch.yml +32 -9
- package/docs/DETAIL.md +1 -0
- package/docs/DETAIL.zh.md +1 -0
- package/docs/LONG-GOAL.md +223 -0
- package/lib/board-messages.js +327 -0
- package/lib/board.js +891 -0
- package/lib/client.js +210 -0
- package/lib/console.js +375 -3
- package/lib/doctor.js +1 -0
- package/lib/entry.js +65 -0
- package/lib/index.js +990 -16
- package/lib/long-goal.js +1705 -0
- package/lib/orchestrator.js +498 -25
- package/lib/schedule.js +2 -1
- package/lib/wizard.js +1498 -0
- package/lib/workspace.js +10 -3
- package/package.json +16 -4
- package/public/board.html +1110 -0
- package/public/console.html +1427 -187
package/lib/schedule.js
CHANGED
|
@@ -494,6 +494,7 @@ export function createScheduler({
|
|
|
494
494
|
}
|
|
495
495
|
const open = (run.attention?.items ?? []).find(item => !item.answer) ?? null
|
|
496
496
|
const budgetish = run.goalMode?.stop?.reason === 'budget'
|
|
497
|
+
|| (Boolean(run.budgetStop?.detail) && run.status !== 'completed')
|
|
497
498
|
|| /budget/i.test(String(run.error ?? ''))
|
|
498
499
|
|| /budget/i.test(String(run.goalMode?.stop?.detail ?? ''))
|
|
499
500
|
let outcome
|
|
@@ -513,7 +514,7 @@ export function createScheduler({
|
|
|
513
514
|
}
|
|
514
515
|
if (outcome === 'budget') {
|
|
515
516
|
plan.enabled = false
|
|
516
|
-
plan.pausedReason = `budget reached: ${oneLine(run.error ?? run.goalMode?.stop?.detail ?? 'the run hit its budget', 200)}`
|
|
517
|
+
plan.pausedReason = `budget reached: ${oneLine(run.budgetStop?.detail ?? run.error ?? run.goalMode?.stop?.detail ?? 'the run hit its budget', 200)}`
|
|
517
518
|
plan.lastOutcome = 'budget'
|
|
518
519
|
plan.lastReason = plan.pausedReason
|
|
519
520
|
record(plan, 'budget', plan.pausedReason)
|