feat: add tiered channel agent and mobile Codex bridge

This commit is contained in:
冰朔 2026-08-21 08:21:03 +08:00
commit 71db11e7e8
35 changed files with 2242 additions and 76 deletions

View file

@ -9,6 +9,7 @@ test('personal skill algorithm is native while every pack remains private and ch
const runtime = read('src-tauri/src/personal_skill_runtime.rs')
const channel = read('src-tauri/src/personal_channel.rs')
assert.equal(contract.source.local_commit, '1d7fe6c')
assert.equal(contract.source.remote_canonical_state, 'LOCAL_COMMIT_VERIFIED_NOT_REMOTE_CANON')
assert.equal(contract.privacy.default_visibility, 'PRIVATE')
assert.equal(contract.privacy.share_state, 'NOT_AUTHORIZED')
@ -28,12 +29,28 @@ test('only provisioned channels receive current packs and Shiyu Yaochu stays def
const runtime = read('src-tauri/src/personal_skill_runtime.rs')
const installed = Object.values(contract.initialized_channels).flat()
assert.equal(installed.length, 9)
assert.equal(installed.length, 13)
assert.equal(contract.deferred['SYS-SY'].state, 'DEFERRED_SERVER_AND_INITIAL_CHANNEL_NOT_PROVISIONED')
assert.doesNotMatch(runtime, /skill!\("SY-YC-METRIC-CALIBER-001\.json"/)
assert.match(runtime, /"channelNumber": "SYS-SY"/)
})
test('EarEarDan and See You Tomorrow skill closures keep exact private subject boundaries', () => {
const contract = JSON.parse(read('contracts/personal-skill-runtime.json'))
const runtime = read('src-tauri/src/personal_skill_runtime.rs')
assert.deepEqual(contract.initialized_channels['SYS-GLW-PTS-0001'], [
'CE-EED-MANJU-PRODUCTION-001',
'CE-EED-CAUSAL-PIPELINE-DIAGNOSTIC-001',
])
assert.ok(contract.initialized_channels['SYS-ZZ'].includes('ZZ-AN-SOURCE-FACT-CLOSURE-001'))
assert.ok(contract.initialized_channels['SYS-ZZ'].includes('ZZ-QW-ROLE-CAUSAL-ARCHITECTURE-001'))
assert.equal(contract.admission_boundaries['ICE-BB-0004_is_ICE-GL-CA001'], false)
assert.equal(contract.admission_boundaries.earerdan_historical_labels_are_aliases, false)
assert.equal(contract.admission_boundaries.qiuqiu_relationship_memory_is_exportable_skill, false)
assert.match(runtime, /INSTALLED_PRIVATE_CANDIDATE_NOT_EXECUTABLE_REGISTRATION_PENDING/)
})
test('the worker UI presents personal skill brain separately from persona worker and tool executor', () => {
const panel = read('src/modules/knowledge-agent/LocalWorkerPanel.tsx')
assert.match(panel, /本频道私有技能/)