File size: 4,641 Bytes
4e23b01 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | /**
* `@moonshot-ai/klient` public surface — the transport-agnostic client facade
* over the agent-core-v2 engine. Create a klient with one of the transport
* entry points (`@moonshot-ai/klient/ipc` or `/memory`); everything
* exported here behaves identically regardless of which one carried the
* bytes.
*/
export type {
CallOptions,
EventSourceRef,
IDisposable,
KlientChannel,
ScopeRef,
} from './core/channel.js';
export { RPCError } from './core/errors.js';
export { KlientValidationError, type ValidationPhase } from './core/validation.js';
export {
createKlientFromChannel,
type AgentHandle,
type Klient,
type KlientOptions,
type SessionHandle,
} from './core/klient.js';
export type { KlientEvents } from './core/events/hub.js';
export type { Caller, ScopedCaller, ScopedStreamCaller } from './core/facade/global.js';
export type {
ConfigTargetLiteral,
FileDownload,
GlobalAuthFacade,
GlobalConfigFacade,
GlobalFacade,
GlobalFilesFacade,
GlobalFlagsFacade,
GlobalHostFsFacade,
GlobalKosongFacade,
GlobalMcpFacade,
GlobalPluginsFacade,
GlobalSessionsFacade,
GlobalWorkspacesFacade,
KlientEnvInfo,
ModelCatalogItem,
OAuthFlowSnapshot,
OAuthFlowStart,
OAuthLoginCancelResponse,
OAuthLogoutResponse,
ProviderCatalogItem,
RefreshProviderModelsOptions,
RefreshProviderModelsResponse,
SetDefaultModelResponse,
} from './core/facade/global.js';
export type {
AnonymousProviderInput,
GenerateEvent,
GenerateInput,
GenerateParams,
ProviderAuth,
ProviderInput,
} from './core/facade/kosong-types.js';
export type {
SessionApprovalsFacade,
SessionFacade,
SessionInteractionsFacade,
SessionQuestionsFacade,
SessionRestoreOptions,
SessionSkillsFacade,
SessionStatus,
} from './core/facade/session.js';
export type {
AgentCommandInfo,
AgentContextData,
AgentFacade,
AgentTaskInfo,
McpServerEntry,
PlanData,
PromptLaunchResult,
PromptWithSkillsInput,
PromptWithSkillsResult,
SetModelResult,
ShellCommandResult,
ThinkingLevel,
UsageStatus,
} from './core/facade/agent.js';
export type {
CatalogChangedPayload,
KlientEventName,
KlientEventPayloads,
SessionArchivedPayload,
SessionMetaUpdatedPayload,
} from './contract/global/events.js';
export type { SessionEventPayloads } from './contract/session/events.js';
export type { AgentEventPayloads } from './contract/agent/events.js';
// Wire types re-exported for consumer convenience (type-only; the engine is
// not pulled in at runtime for http consumers).
export type {
SessionListQuery,
SessionSummary,
} from '@moonshot-ai/agent-core-v2/app/sessionIndex/sessionIndex';
export type { Page } from '@moonshot-ai/agent-core-v2/persistence/interface/queryStore';
export type {
Workspace,
WorkspaceUpdate,
} from '@moonshot-ai/agent-core-v2/app/workspace/workspace';
export type {
ConfigDiagnostic,
ConfigInspectValue,
} from '@moonshot-ai/agent-core-v2/app/config/config';
export type { ProviderConfig } from '@moonshot-ai/agent-core-v2/llm-adapter/provider/provider';
export type { AuthStatus } from '@moonshot-ai/agent-core-v2/app/auth/auth';
export type { ExperimentalFeatureState } from '@moonshot-ai/agent-core-v2/app/flag/flag';
export type {
FsBrowseResponse,
FsHomeResponse,
} from '@moonshot-ai/agent-core-v2/app/hostFolderBrowser/hostFolderBrowser';
export type { FileMeta } from '@moonshot-ai/agent-core-v2/app/file/fileService';
export type {
PluginCommandDef,
PluginInfo,
PluginSummary,
PluginUpdateStatus,
ReloadSummary,
} from '@moonshot-ai/agent-core-v2/app/plugin/types';
export type {
AgentMeta,
SessionMeta,
SessionMetaPatch,
} from '@moonshot-ai/agent-core-v2/session/sessionMetadata/sessionMetadata';
export type {
ApprovalRequest,
ApprovalResponse,
} from '@moonshot-ai/agent-core-v2/agent/interaction/approval';
export type {
QuestionRequest,
QuestionResult,
} from '@moonshot-ai/agent-core-v2/agent/interaction/question';
export type {
Interaction,
InteractionKind,
} from '@moonshot-ai/agent-core-v2/human/interaction/interaction';
export type { SkillSummary } from '@moonshot-ai/agent-core-v2/features/skill/catalog/types';
export type {
GlobalMcpServerConfig,
McpManagedServer,
McpServerAuthBeginResult,
McpServerAuthState,
McpServerAuthStatus,
McpServerInspection,
McpServerLocator,
McpServerTestResult,
McpServerTestTarget,
} from '@moonshot-ai/agent-core-v2/app/mcpManagement/mcpManagement';
export type { ContentPart } from '@moonshot-ai/agent-core-v2/human/llm/message';
export type { PermissionMode } from '@moonshot-ai/agent-core-v2/agent/permissionPolicy/types';
|