Download packages/agent-core-v2/src/wire/wire.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 899 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/wire/wire.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/agent-core-v2/src/wire/wire.ts
-
curl -L -o wire.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/wire/wire.ts
899 Bytes
| import { createDecorator, type ServiceIdentifier } from '#/_base/di/instantiation'; | |
| import type { IAgentJournal } from './journal'; | |
| import type { RecordDehydrator, WireRecord } from './record'; | |
| export { ForkLineError, type ForkLineFailure } from './tree'; | |
| import type { WireLine } from './tree'; | |
| export interface IWireService extends IAgentJournal { | |
| readonly _serviceBrand: undefined; | |
| seal(): Promise<void>; | |
| appendRecord(record: WireRecord, dehydrate?: RecordDehydrator): void; | |
| readJournal(): AsyncIterable<WireRecord>; | |
| readRestorable(): AsyncIterable<WireRecord>; | |
| readHumanChain(): readonly WireLine[]; | |
| flush(): Promise<void>; | |
| drainPersisted(): Promise<void>; | |
| lineCount(): number; | |
| lastContextClearLine(): number | undefined; | |
| journalPath(): string | undefined; | |
| } | |
| export const IWireService: ServiceIdentifier<IWireService> = | |
| createDecorator<IWireService>('wireService'); | |