File size: 3,636 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 | export { KimiHarness } from '#/kimi-harness';
export type { KimiHarnessRuntimeOptions } from '#/kimi-harness';
export { Session } from '#/session';
export { KimiAuthFacade } from '#/auth';
export {
createKimiHarness,
SDKRpcClientV2,
type SDKRpcClientV2Options,
} from '#/sdk-rpc-client-v2';
export {
createKimiConfigRpc,
KimiConfigRpcClient,
type KimiConfigRpc,
type KimiConfigValidationIssue,
type KimiConfigValidationPathSegment,
type ResolveKimiConfigPathInput,
type ValidateKimiConfigTomlInput,
} from '#/config-rpc';
export { SDKRpcClientBase } from '#/rpc';
export { KimiForCodingProvider } from '#/kimi-code-model-provider';
export type { KimiForCodingProviderOptions } from '#/kimi-code-model-provider';
export { removeProviderFromConfig } from '#/v2/config-mapper';
export {
applyCatalogProvider,
catalogBaseUrl,
catalogModelToAlias,
catalogProviderModels,
CatalogFetchError,
DEFAULT_CATALOG_URL,
fetchCatalog,
inferWireType,
loadBuiltInCatalog,
resolveCatalogImport,
} from '#/catalog';
export type {
ApplyCatalogProviderOptions,
Catalog,
CatalogImportInvalidReason,
CatalogImportResolution,
CatalogModel,
CatalogProviderEntry,
FetchCatalogOptions,
} from '#/catalog';
export {
ErrorCodes,
KimiError,
type KimiErrorCode,
type KimiErrorInfo,
type KimiErrorOptions,
type KimiErrorPayload,
KIMI_ERROR_INFO,
fromKimiErrorPayload,
isKimiError,
toKimiErrorPayload,
} from '#/errors';
export {
flushDiagnosticLogs,
flushDiagnosticLogsSync,
log,
redact,
resolveGlobalLogPath,
} from '#/logging/index';
export { resolveKimiHome } from '@moonshot-ai/agent-core-v2';
export type { LogContext, LogLevel, LogPayload, Logger } from '#/logging/index';
export { effectiveModelAlias, loadRuntimeConfigSafe } from '#/config/index';
export { resolveConfigPath } from '@moonshot-ai/agent-core-v2';
export { limitAgentReplayByTurns } from '#/replay';
export { parseAgentFileText, resolveAgentPath } from '@moonshot-ai/agent-core-v2';
export { SECONDARY_DERIVED_MODEL_ALIAS } from '#/config/index';
export { PRIMARY_SUBAGENT_MODEL_CHOICE } from '@moonshot-ai/agent-core-v2/session/subagent/configSection';
export { installGlobalProxyDispatcher } from '#/proxy';
export {
buildImageCompressionCaption,
buildUnsupportedImageNotice,
gateImageFormatParts,
isModelAcceptedImageMime,
normalizeImageMime,
parseImageDataUrl,
persistOriginalImage,
sessionMediaOriginalsDir,
IMAGE_BYTE_BUDGET,
MAX_IMAGE_EDGE_PX,
} from '@moonshot-ai/agent-core-v2';
export { compressBase64ForModel, compressImageForModel, ImageLimits } from '#/image';
export type {
CompressImageOptions,
CompressImageResult,
CompressBase64Result,
ImageCompressionCaptionInput,
ImageCompressionTelemetry,
} from '#/image';
export type {
ExperimentalFeatureState,
ExperimentalFlagMap,
ExperimentalFlagSource,
FlagDefinition,
FlagDefinitionInput,
FlagId,
FlagSurface,
} from '#/flag';
export {
buildDaemonFileUrl,
buildMediaPathTag,
isDaemonFileUrl,
matchSingleMediaPathTag,
parseDaemonFileUrl,
} from '@moonshot-ai/agent-core-v2/agent/media/mediaRef';
export type {
DaemonFileRef,
MediaKind,
} from '@moonshot-ai/agent-core-v2/agent/media/mediaRef';
export type {
KimiAuthCompleteFeedbackUploadInput,
KimiAuthCompleteFeedbackUploadPart,
KimiAuthCreateFeedbackUploadUrlInput,
KimiAuthCreateFeedbackUploadUrlOk,
KimiAuthCreateFeedbackUploadUrlResult,
KimiAuthFeedbackUploadPart,
KimiAuthLoginResult,
KimiAuthLogoutResult,
KimiAuthSubmitFeedbackInput,
} from '#/auth';
export * from '#/events';
export type * from '#/types';
|