feat: expose codex runtime lifecycle events
This commit is contained in:
@@ -231,6 +231,28 @@ test("codex app-server discovery includes governance and MCP summaries without l
|
||||
userInitiatedOnly: true,
|
||||
labels: ["Guardian 放行", "权限请求"],
|
||||
});
|
||||
assert.deepEqual(metadata.runtimeEventSummary, {
|
||||
eventCount: 3,
|
||||
processEventCount: 2,
|
||||
rawResponseEventAvailable: true,
|
||||
notificationOnly: true,
|
||||
labels: ["进程输出", "进程退出", "原始响应完成"],
|
||||
});
|
||||
assert.deepEqual(metadata.extensionEventSummary, {
|
||||
eventCount: 2,
|
||||
skillChangeEventAvailable: true,
|
||||
pluginInstallEventAvailable: true,
|
||||
notificationOnly: true,
|
||||
labels: ["Skill 变更", "插件安装"],
|
||||
});
|
||||
assert.deepEqual(metadata.threadLifecycleEventSummary, {
|
||||
eventCount: 5,
|
||||
archiveEventCount: 2,
|
||||
nameEventAvailable: true,
|
||||
closeEventAvailable: true,
|
||||
notificationOnly: true,
|
||||
labels: ["线程启动", "线程关闭", "已归档", "已恢复", "改名完成"],
|
||||
});
|
||||
|
||||
const serialized = JSON.stringify(metadata);
|
||||
assert.equal(serialized.includes("sk-secret-should-not-leak"), false);
|
||||
|
||||
Reference in New Issue
Block a user