backup: preserve pre-native-foundation runtime work

This commit is contained in:
冰朔 2026-08-21 14:10:13 +08:00
commit 71dbcd62ec
23 changed files with 3647 additions and 196 deletions

View file

@ -22,6 +22,7 @@ test('release center records every shipped HoloLake line from 0.4.0 through curr
test('one engine exposes Guanghu and standard workbench projections with a human default', async () => {
const source = await read('src/main.tsx')
const styles = await read('src/styles.css')
assert.match(source, /type PresentationMode = 'guanghu' \| 'workbench'/)
assert.match(source, /type AudienceLayer = 'human' \| 'execution'/)
assert.match(source, /hololake-presentation-mode/)
@ -33,6 +34,12 @@ test('one engine exposes Guanghu and standard workbench projections with a human
assert.match(source, /renderWorkbenchHuman()/)
assert.match(source, /renderExecutionProjection\(\)/)
assert.match(source, /人格体结构化执行界面/)
assert.match(source, /presentationMode !== 'workbench' \|\| view !== 'persona'/)
assert.match(source, /void refreshPersonaBodyModule\(\)/)
assert.match(source, /<PersonaChannelBody onBack=\{\(\) => \{ setView\('overview'\); setWorldStage\(toolReturnStage\) \}\}/)
assert.match(styles, /\.standard-workbench\s*\{[^}]*display:\s*grid;[^}]*grid-template-columns:\s*52px 244px minmax\(0, 1fr\);/s)
assert.match(styles, /@media \(max-width: 640px\)\s*\{[^}]*\.standard-workbench\s*\{[^}]*grid-template-columns:\s*46px minmax\(0, 1fr\);/s)
assert.ok(styles.indexOf('.workbench-sidebar { display: none; }') > styles.indexOf('@media (max-width: 640px)'))
})
test('main domain routes to the public release center instead of a descriptive popup', async () => {
@ -45,7 +52,8 @@ test('main domain routes to the public release center instead of a descriptive p
test('public language persona copy is formal and keeps a visible human composer', async () => {
const source = await read('src/modules/persona-channel-body/index.tsx')
assert.match(source, /<h1>\{embedded \? '对话与知识协作' : '语言人格频道'\}<\/h1>/)
assert.match(source, /<h1>\{conversation\?\.title \|\| \(embedded \? '对话与知识协作' : '语言人格频道'\)\}<\/h1>/)
assert.match(source, /冰朔 · ICE-GL∞/)
assert.match(source, /输入消息;需要知识时可直接提问。/)
assert.match(source, /<textarea/)
assert.match(source, /send_message/)