feat: 白龙马数字意识框架 v2.2.0 - 3D意识空间、多技能协同、自我进化系统

This commit is contained in:
xiaoyuanda666-ship-it
2026-06-07 19:43:22 +08:00
commit bf73366e81
234 changed files with 219763 additions and 0 deletions

50
scripts/acui-probe.mjs Normal file
View File

@@ -0,0 +1,50 @@
// ACUI ws 通道探针:连接 /acui期望 acui:hello发一条 ui.signal2s 后退出
import { WebSocket } from 'ws'
const url = 'ws://127.0.0.1:3721/acui'
const ws = new WebSocket(url)
let gotHello = false
const timer = setTimeout(() => {
console.log(JSON.stringify({ ok: false, reason: 'timeout', gotHello }))
process.exit(2)
}, 5000)
ws.on('open', () => {
console.log('[probe] open')
})
ws.on('message', (raw) => {
const text = raw.toString()
console.log('[probe] recv:', text)
let msg
try { msg = JSON.parse(text) } catch { return }
if (msg.kind === 'acui:hello') {
gotHello = true
ws.send(JSON.stringify({
v: 1,
kind: 'ui.signal',
type: 'card.dismissed',
target: 'probe-card',
payload: { by: 'probe', dwell_ms: 1234 },
ts: Date.now(),
}))
console.log('[probe] sent ui.signal')
setTimeout(() => {
console.log(JSON.stringify({ ok: true, gotHello }))
clearTimeout(timer)
ws.close()
process.exit(0)
}, 800)
}
})
ws.on('error', (e) => {
console.log('[probe] error:', e.message)
clearTimeout(timer)
process.exit(3)
})
ws.on('close', () => {
console.log('[probe] closed')
})