Download packages/agent-core-v2/src/debug/debugLedger.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 790 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/debug/debugLedger.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/agent-core-v2/src/debug/debugLedger.ts
-
curl -L -o debugLedger.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/debug/debugLedger.ts
790 Bytes
| import type { UnitState } from '#/_base/di/cascadeEngine'; | |
| import { createDecorator } from '#/_base/di/instantiation'; | |
| import type { LedgerEntryInfo } from '#/_base/lifecycle/ledger'; | |
| export interface DebugUnit { | |
| readonly token: string; | |
| readonly uid: number; | |
| readonly state?: UnitState; | |
| readonly error?: string; | |
| readonly everActive?: boolean; | |
| readonly inFlight?: boolean; | |
| } | |
| export interface DebugLedgerNode { | |
| readonly path: string; | |
| readonly label: string; | |
| readonly units: DebugUnit[]; | |
| readonly ledger: LedgerEntryInfo[]; | |
| readonly children: DebugLedgerNode[]; | |
| } | |
| export interface IDebugLedgerService { | |
| readonly _serviceBrand: undefined; | |
| tree(): DebugLedgerNode; | |
| } | |
| export const IDebugLedgerService = | |
| createDecorator<IDebugLedgerService>('debugLedgerService'); | |