Download packages/node-sdk/src/events.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 3.72 kB
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/node-sdk/src/events.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/node-sdk/src/events.ts
-
curl -L -o events.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/node-sdk/src/events.ts
3.72 kB
| import type { | |
| ApprovalRequest, | |
| ApprovalResponse, | |
| QuestionRequest, | |
| QuestionResult, | |
| } from '#/interaction'; | |
| export type { KimiErrorPayload } from '#/errors'; | |
| export type { Event, ToolResultEvent } from '@moonshot-ai/agent-core-v2/events'; | |
| export { MCP_OAUTH_AUTHORIZATION_URL_TOOL_UPDATE } from '@moonshot-ai/agent-core-v2/tool/toolContract'; | |
| export type { AgentStatusUpdatedEvent } from '@moonshot-ai/agent-core-v2/agent/usage/usageEvents'; | |
| export type { SessionMetaUpdatedEvent } from '@moonshot-ai/agent-core-v2/session/sessionMetadata/sessionMetaEvents'; | |
| export type { GoalUpdatedEvent } from '@moonshot-ai/agent-core-v2/features/goal/goalOps'; | |
| export type { SkillActivatedEvent } from '@moonshot-ai/agent-core-v2/features/skill/skillOps'; | |
| export type { PluginCommandActivatedEvent } from '@moonshot-ai/agent-core-v2/agent/pluginCommand/pluginCommand'; | |
| export type { ErrorEvent, WarningEvent } from '@moonshot-ai/agent-core-v2/errors'; | |
| export type { UsageStatus } from '@moonshot-ai/agent-core-v2/agent/usage/usage'; | |
| export type { | |
| TurnStartedEvent, | |
| TurnStepStartedEvent, | |
| TurnStepCompletedEvent, | |
| TurnStepRetryingEvent, | |
| TurnStepInterruptedEvent, | |
| TurnEndReason, | |
| } from '@moonshot-ai/agent-core-v2/agent/loop/turnEvents'; | |
| export type { TurnEndedEvent } from '@moonshot-ai/agent-core-v2/agent/loop/turnOps'; | |
| export type { | |
| AssistantDeltaEvent, | |
| ThinkingDeltaEvent, | |
| } from '@moonshot-ai/agent-core-v2/agent/loop/turnEvents'; | |
| export type { HookResultEvent } from '@moonshot-ai/agent-core-v2/features/externalHooks/agent/agentExternalHooksService'; | |
| export type { | |
| ToolCallStartedEvent, | |
| ToolCallDeltaEvent, | |
| ToolProgressEvent, | |
| } from '@moonshot-ai/agent-core-v2/agent/toolExecutor/toolExecutorEvents'; | |
| export type { ToolUpdate } from '@moonshot-ai/agent-core-v2/tool/toolContract'; | |
| export type { McpOAuthAuthorizationUrlUpdateData } from '@moonshot-ai/agent-core-v2/agent/mcp/tools/auth'; | |
| export type { ToolCallRequest, ToolCallResponse } from '#/interaction'; | |
| export type { | |
| ToolListUpdatedEvent, | |
| McpServerStatusEvent, | |
| } from '@moonshot-ai/agent-core-v2/agent/toolExecutor/toolExecutorEvents'; | |
| export type { | |
| ToolListUpdatedReason, | |
| McpServerStatusPayload, | |
| } from '@moonshot-ai/agent-core-v2/agent/mcp/mcpEvents'; | |
| export type { ApprovalRequest, ApprovalScope } from '#/interaction'; | |
| export type { ApprovalDecision, ApprovalResponse } from '#/interaction'; | |
| export type { ToolInputDisplay } from '@moonshot-ai/agent-core-v2/tool/toolInputDisplay'; | |
| export type { | |
| QuestionRequest, | |
| QuestionItem, | |
| QuestionOption, | |
| QuestionAnswerMethod, | |
| QuestionAnswers, | |
| QuestionResponse, | |
| QuestionResult, | |
| } from '#/interaction'; | |
| export type { | |
| SubagentSpawnedEvent, | |
| SubagentStartedEvent, | |
| SubagentCompletedEvent, | |
| SubagentFailedEvent, | |
| SubagentCancelledEvent, | |
| } from '@moonshot-ai/agent-core-v2/session/subagent/mirrorAgentRun'; | |
| export type { SubagentSuspendedEvent } from '@moonshot-ai/agent-core-v2/features/swarm/session/sessionSwarmService'; | |
| export type { | |
| CompactionStartedEvent, | |
| CompactionBlockedEvent, | |
| CompactionCancelledEvent, | |
| CompactionCompletedEvent, | |
| } from '@moonshot-ai/agent-core-v2/agent/fullCompaction/compactionOps'; | |
| export type { CompactionResult } from '@moonshot-ai/agent-core-v2/agent/fullCompaction/types'; | |
| export type { | |
| BackgroundTaskStartedEvent, | |
| BackgroundTaskTerminatedEvent, | |
| } from '@moonshot-ai/agent-core-v2/agent/task/types'; | |
| export type { CronFiredEvent } from '@moonshot-ai/agent-core-v2/features/cron/cronOps'; | |
| export type MaybePromise<T> = T | Promise<T>; | |
| export type ApprovalHandler = (request: ApprovalRequest) => MaybePromise<ApprovalResponse>; | |
| export type QuestionHandler = (request: QuestionRequest) => MaybePromise<QuestionResult>; | |