@cline/shared 0.0.85 → 0.0.86-nightly.1790303239
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents/types.d.ts +2 -0
- package/dist/index.browser.d.ts +3 -2
- package/dist/index.browser.js +24 -19
- package/dist/index.d.ts +4 -2
- package/dist/index.js +49 -44
- package/dist/llms/gateway.d.ts +1 -1
- package/dist/llms/model-info.d.ts +10 -0
- package/dist/llms/transcription.d.ts +13 -0
- package/dist/parse/path.d.ts +14 -0
- package/dist/prompt/system/yolo.d.ts +1 -1
- package/dist/services/telemetry.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export { EMPTY_CONTENT_TEXT, formatMessagesForAiSdk, sanitizeSurrogates, toAiSdk
|
|
|
23
23
|
export * from "./llms/gateway";
|
|
24
24
|
export { type Base64MediaValidationFailure, type Base64MediaValidationResult, type Base64MediaValidationSuccess, createMediaBudgetState, DEFAULT_MAX_IMAGE_BASE64_BYTES, DEFAULT_MAX_IMAGE_DECODED_BYTES, DEFAULT_MAX_IMAGE_ENCODED_BYTES, DEFAULT_MAX_TOTAL_MEDIA_BYTES, type GeneratedMedia, type GeneratedMediaModality, GeneratedMediaModalitySchema, GeneratedMediaSchema, type GeneratedMediaSource, GeneratedMediaSourceSchema, generatedMediaModalityFromMediaType, IMAGE_OMITTED_PLACEHOLDER, IMAGE_UNSUPPORTED_PLACEHOLDER, type ImageMediaLimits, type ImageMediaValidationFailure, type ImageMediaValidationResult, type ImageMediaValidationSuccess, imageBase64DecodedByteLength, imageBase64EncodedByteLength, imageBase64LengthForDecodedBytes, imageFileMaxDecodedBytesForBase64Limit, isBase64Char, isCanonicalBase64, isGeneratedMedia, type MediaBudgetOptions, type MediaBudgetState, type ResolvedMediaBudget, reserveImageMediaBytes, resolveMediaBudget, SUPPORTED_IMAGE_MEDIA_TYPES, validateAndReserveBase64Media, validateAndReserveImageMedia, validateImageMedia, } from "./llms/media";
|
|
25
25
|
export type { ContentBlock, FileContent, ImageContent, MediaContent, Message, MessageRole, MessageWithMetadata, RedactedThinkingContent, TextContent, ThinkingContent, ToolDefinition, ToolResultContent, ToolUseContent, } from "./llms/messages";
|
|
26
|
-
export { ApiFormat, ApiFormatSchema, type ChatCompatibleModelDescriptor, type ChatModelModalities, isChatCompatibleModel, type ModelCapability, ModelCapabilitySchema, type ModelInfo, ModelInfoSchema, type ModelMetadata, ModelMetadataSchema, type ModelModalities, ModelModalitiesSchema, type ModelModality, ModelModalitySchema, type ModelOperation, type ModelOperationMode, ModelOperationModeSchema, ModelOperationSchema, type ModelPricing, ModelPricingSchema, type ModelStatus, ModelStatusSchema, modelHasCapability, modelProducesImages, modelSupportsImageInput, modelSupportsToolCalling, supportsChatModalities, type ThinkingConfig, ThinkingConfigSchema, usesImageGenerationOperation, } from "./llms/model-info";
|
|
26
|
+
export { ApiFormat, ApiFormatSchema, type ChatCompatibleModelDescriptor, type ChatModelModalities, isChatCompatibleModel, isTranscriptionModel, type ModelCapability, ModelCapabilitySchema, type ModelInfo, ModelInfoSchema, type ModelMetadata, ModelMetadataSchema, type ModelModalities, ModelModalitiesSchema, type ModelModality, ModelModalitySchema, type ModelOperation, type ModelOperationMode, ModelOperationModeSchema, ModelOperationSchema, type ModelPricing, ModelPricingSchema, type ModelStatus, ModelStatusSchema, modelHasCapability, modelProducesImages, modelSupportsImageInput, modelSupportsToolCalling, supportsChatModalities, type ThinkingConfig, ThinkingConfigSchema, usesImageGenerationOperation, } from "./llms/model-info";
|
|
27
27
|
export { mergeModelOptions } from "./llms/model-options";
|
|
28
28
|
export * from "./llms/model-tools";
|
|
29
29
|
export { DEFAULT_REASONING_EFFORT, REASONING_EFFORT_RATIOS, resolveEffectiveReasoningEffort, resolveReasoningBudgetFromRatio, resolveReasoningEffortRatio, } from "./llms/reasoning-effort";
|
|
@@ -32,12 +32,14 @@ export { serializeAbortReason } from "./llms/requests";
|
|
|
32
32
|
export { CHARS_PER_TOKEN, estimateRequestInputTokens, estimateTokens, type TokenEstimatedRequest, } from "./llms/tokens";
|
|
33
33
|
export type { ToolApprovalRequest, ToolApprovalResult, ToolCallRecord, ToolPolicy, } from "./llms/tools";
|
|
34
34
|
export { TOOL_REJECTION_SUFFIX, ToolCallRecordSchema, USER_REJECTED_TOOL_REASON, } from "./llms/tools";
|
|
35
|
+
export type { StreamingAudioTranscriptionSession } from "./llms/transcription";
|
|
35
36
|
export { type BasicLogger, type BasicLogMetadata, noopBasicLogger, } from "./logging/logger";
|
|
36
37
|
export * from "./mcp";
|
|
37
38
|
export { getErrorCode, getErrorMessage } from "./parse/error";
|
|
38
39
|
export { normalizeJsonLikeStringsForSchema, parseJsonStream, safeJsonParse, safeJsonStringify, } from "./parse/json";
|
|
39
40
|
export { decodeJwtPayload } from "./parse/jwt";
|
|
40
41
|
export { type OmitUndefinedValues, omitUndefinedValues } from "./parse/object";
|
|
42
|
+
export { toPosixSeparators } from "./parse/path";
|
|
41
43
|
export { getDefaultShell, getPowerShellEdition, getShellArgs, getShellInvocation, getShellKind, type ShellInvocation, type ShellKind, } from "./parse/shell";
|
|
42
44
|
export { maskSecret, sanitizeFileName, stripUtf8Bom, trimNonEmpty, truncateSplit, truncateStr, } from "./parse/string";
|
|
43
45
|
export { formatHumanReadableDate, formatUptime } from "./parse/time";
|
|
@@ -68,7 +70,7 @@ export type { ConnectorCliLaunchSpec, ConnectorInstanceRef, } from "./runtime/hu
|
|
|
68
70
|
export { CLINE_CONNECTOR_CLI_LAUNCH_ENV, CLINE_CONNECTOR_STARTING_INSTANCE_ENV, CLINE_CONNECTOR_SUPERVISED_ENV, CLINE_RUN_AS_HUB_DAEMON_ENV, claimHubDaemonProcess, claimSupervisedConnectorProcess, isHubDaemonProcess, isSupervisedConnectorProcess, readConnectorCliLaunchSpec, readStartingConnectorInstance, setConnectorCliLaunchSpec, setStartingConnectorInstance, } from "./runtime/hub-daemon-env";
|
|
69
71
|
export { disableCurrentDirectoryExecutableSearch, NO_DEFAULT_CURRENT_DIRECTORY_IN_EXE_PATH_ENV, } from "./runtime/windows-exe-path";
|
|
70
72
|
export type { CaptureAgentUnexpectedReasoningTokensInput, CaptureSdkErrorInput, CaptureTaskLifecycleEventInput, CoreSpawnReason, ITelemetryService, OpenTelemetryClientConfig, SdkTelemetryErrorComponent, SdkTelemetryErrorSeverity, TelemetryArray, TelemetryMetadata, TelemetryObject, TelemetryPrimitive, TelemetryProperties, TelemetryValue, } from "./services/telemetry";
|
|
71
|
-
export { AGENT_UNEXPECTED_REASONING_TOKENS_EVENT, buildSdkErrorProperties, CORE_SPAWN_REASONS, captureAgentUnexpectedReasoningTokens, captureSdkError, captureTaskLifecycleEvent, isOtlpTraceRelayProvider, markOtlpTraceRelayProvider, normalizeSdkError, OTLP_TRACE_RELAY_MARKER, resetSdkErrorRateLimiterForTests, SDK_ERROR_TELEMETRY_EVENT, TASK_CANCELLED_EVENT, TASK_FIRST_CHUNK_RECEIVED_EVENT, TASK_PROVIDER_REQUEST_STARTED_EVENT, TASK_PROVIDER_STREAM_FAILED_EVENT, TASK_PROVIDER_STREAM_STARTED_EVENT, } from "./services/telemetry";
|
|
73
|
+
export { AGENT_UNEXPECTED_REASONING_TOKENS_EVENT, buildSdkErrorProperties, CORE_SPAWN_REASONS, captureAgentUnexpectedReasoningTokens, captureSdkError, captureTaskLifecycleEvent, isOtlpTraceRelayProvider, markOtlpTraceRelayProvider, normalizeSdkError, OTLP_TRACE_RELAY_MARKER, resetSdkErrorRateLimiterForTests, SDK_ERROR_TELEMETRY_EVENT, TASK_CANCELLED_EVENT, TASK_FIRST_CHUNK_RECEIVED_EVENT, TASK_MAX_TOKENS_RECOVERY_EVENT, TASK_PROVIDER_REQUEST_STARTED_EVENT, TASK_PROVIDER_STREAM_FAILED_EVENT, TASK_PROVIDER_STREAM_STARTED_EVENT, } from "./services/telemetry";
|
|
72
74
|
export type { ClineTelemetryServiceConfig } from "./services/telemetry-config";
|
|
73
75
|
export { createClineTelemetryServiceConfig, createClineTelemetryServiceMetadata, } from "./services/telemetry-config";
|
|
74
76
|
export type { HookSessionContext, HookSessionContextLookup, HookSessionContextProvider, } from "./session/hook-context";
|