dsh-vibe-math 2.0.4 → 2.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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-vibe-math",
|
|
3
3
|
"description": "Multi-agent mathematical problem-solving & verification frameworks for DeepSeek Harness — THREE agent presets in one install: vibe-math-v2 (probability-driven: qs.json + Propos knowledge base + explorer→solver→review/debate verdict), vibe-math-v3 (THIRD-generation, recommended: paper-style Markdown knowledge base with Problems/Progress/Propos/Methods/Verified + planner-agent scheduling that decides the next N actions + universal theory/method invention library + agents write their own Markdown directly via a per-file write lock), and vibe-math-v4 (FOURTH-generation: persistent self-organizing resident subagents that message & meet to decide all tasks, verify only by unanimous consensus, /compact at a context threshold, and stop only when all agree the problem is solved). Installing this bundle auto-installs all three presets (v1 was removed at v2.0.0).",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": "^22.19.0 || >=24.0.0"
|
|
@@ -132,7 +132,7 @@ export function apply(ctx) {
|
|
|
132
132
|
function residentLibraries(){
|
|
133
133
|
const base=frameworkRoot()
|
|
134
134
|
return '你的资料库根目录:'+base+'/\n'
|
|
135
|
-
+' Progress/<你>/progress.md ——
|
|
135
|
+
+' Progress/<你>/progress.md —— 你的研究日志(叙述,可追加。主要内容是尝试过的各方法、路线、历程、进度,当前研究进展/进度、将来的计划与打算,及各路线、过程中遇到的障碍及其原因,对各路线、方法的看法、可行性评估,自己研究过程中的一些有价值看法、感想、猜想、理解。以及其它各种你认为有价值的值得记录的事物、经验、方法/想法、创新等都可进行记录)。\n'
|
|
136
136
|
+' Propos/<你>/<id>.md —— 你的命题/引理。格式:\n'
|
|
137
137
|
+' - ID: p-<id>; - 状态: 未定论; - 概率: <0-1>; - 价值程度: <0-1>; - 动机用途计划: <为何重要/打算怎么用>\n'
|
|
138
138
|
+' 然后 ## 陈述 <陈述>;## 证明尝试;## 证伪尝试。\n'
|
|
@@ -522,8 +522,9 @@ export function apply(ctx) {
|
|
|
522
522
|
// B) stall auto-sync meeting (分级保活 B): the group has been idle with NO progress for
|
|
523
523
|
// stallAutoMeetingMs → convene a sync meeting so the residents coordinate their next move
|
|
524
524
|
// (framework convenes & records; residents decide — never assigns work). Only when no
|
|
525
|
-
// meeting/verify/pending work is
|
|
526
|
-
|
|
525
|
+
// meeting/verify/pending work is active AND no resident is currently working (so it never
|
|
526
|
+
// preempts an in-flight round).
|
|
527
|
+
if(phase==='active' && !meetingState && !verifyState && !pendingVerify && busy.size===0){
|
|
527
528
|
const stallMs=Number(params.stallAutoMeetingMs)||((Number(params.activityTimeoutMs)||120000)*3)
|
|
528
529
|
if(now()-lastProgressAt>=stallMs){
|
|
529
530
|
await startMeeting('团队较长时间没有新进展。请你们自行讨论:当前问题是否已解决、开放难点是什么、谁负责哪部分、下一步如何推进,并自主决定是否继续。框架只负责转达与记录,不替你们决定。','general',null)
|
|
@@ -531,8 +532,9 @@ export function apply(ctx) {
|
|
|
531
532
|
}
|
|
532
533
|
}
|
|
533
534
|
// A) heartbeat / coordination: wake the least-recently-active resident after an idle timeout
|
|
534
|
-
// to SELF-DRIVE (continue solving / message / propose task / meeting / verify). On a
|
|
535
|
-
// wake we re-arm the heartbeat so a single follow-up error NEVER permanently stops the group
|
|
535
|
+
// to SELF-DRIVE (continue solving / message / propose task / meeting / verify). On a FAILED
|
|
536
|
+
// wake we re-arm the heartbeat so a single follow-up error NEVER permanently stops the group
|
|
537
|
+
// (a successful wake re-drives scheduleNext through its own onResidentEnd, which re-arms).
|
|
536
538
|
clearHeartbeat()
|
|
537
539
|
let target=null, oldest=-1
|
|
538
540
|
for(const [,r] of residents){ if(busy.has(r.rId)) continue; const idle=now()-r.lastActiveAt; if(idle>oldest){ oldest=idle; target=r } }
|