kimi-code/packages/agent-core-v2/test/modelRuntime
haozhe.yang ddb3a7609f feat(agent-core-v2): add session lifecycle events and semanticize onDid events
Rename bare `onDidChange` to semantic `onDidChange<Facet>` following the
VSCode event-naming convention (the event name carries what changed), and
carry a payload so consumers know what changed without re-reading:

- IConfigService.onDidChangeConfiguration
- IProviderService.onDidChangeProviders ({ added, removed, changed })
- IModelService.onDidChangeModels ({ added, removed, changed })
- ISessionMetadata.onDidChangeMetadata ({ changed: (keyof SessionMeta)[] })
- ISessionInteractionService.onDidChangePending ({ pending: string[] })

Add ISessionLifecycleService session-lifecycle events (parity with v1):
onDidCreateSession / onDidCloseSession / onDidArchiveSession /
onDidForkSession, fired from create / close / archive / fork.

Add IEventService.onDidPublish: Event<DomainEvent> so the bus matches the
typed Event<T> convention used elsewhere (publish/subscribe retained).

Update tests, examples, and docs to the new names; add payload and
lifecycle-event assertions.
2026-07-01 18:12:58 +08:00
..
modelResolver.test.ts feat(agent-core-v2): add session lifecycle events and semanticize onDid events 2026-07-01 18:12:58 +08:00
stubs.ts feat(agent-core-v2): add session lifecycle events and semanticize onDid events 2026-07-01 18:12:58 +08:00