@cline/shared 0.0.81 → 0.0.82
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/agent.d.ts +5 -2
- package/dist/automation/index.js +38 -46
- package/dist/db/index.js +10 -10
- package/dist/feature-flags.d.ts +2 -0
- package/dist/hub.d.ts +21 -1
- package/dist/index.browser.d.ts +3 -3
- package/dist/index.browser.js +21 -21
- package/dist/index.d.ts +3 -3
- package/dist/index.js +80 -88
- package/dist/llms/model-info.d.ts +10 -0
- package/dist/llms/tools.d.ts +14 -0
- package/dist/prompt/format.d.ts +4 -0
- package/dist/remote-config/index.js +45 -53
- package/dist/rpc/runtime.d.ts +6 -0
- package/dist/storage/index.d.ts +1 -1
- package/dist/storage/index.js +1 -1
- package/dist/storage/paths.d.ts +40 -0
- package/dist/team/schema.d.ts +37 -37
- 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, modelSupportsToolCalling, supportsChatModalities, type ThinkingConfig, ThinkingConfigSchema, usesImageGenerationOperation, } from "./llms/model-info";
|
|
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";
|
|
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";
|
|
@@ -31,7 +31,7 @@ export { type ModelReasoningOption, ModelReasoningOptionSchema, REASONING_LEVELS
|
|
|
31
31
|
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
|
-
export { ToolCallRecordSchema } from "./llms/tools";
|
|
34
|
+
export { TOOL_REJECTION_SUFFIX, ToolCallRecordSchema, USER_REJECTED_TOOL_REASON, } from "./llms/tools";
|
|
35
35
|
export { type BasicLogger, type BasicLogMetadata, noopBasicLogger, } from "./logging/logger";
|
|
36
36
|
export * from "./mcp";
|
|
37
37
|
export { getErrorCode, getErrorMessage } from "./parse/error";
|
|
@@ -45,7 +45,7 @@ export { validateWithZod, zodToJsonSchema } from "./parse/zod";
|
|
|
45
45
|
export type { ClineSystemPromptOptions } from "./prompt/cline";
|
|
46
46
|
export { buildClineSystemPrompt, MODE_TAG_INSTRUCTIONS, PLAN_MODE_INSTRUCTIONS, PLAN_MODE_INSTRUCTIONS_MANUAL_SWITCH, processWorkspaceInfo, } from "./prompt/cline";
|
|
47
47
|
export type { ModeSwitchNotice, ModeSwitchNoticeTracker, } from "./prompt/format";
|
|
48
|
-
export { createModeSwitchNoticeTracker, formatDisplayUserInput, formatFileContentBlock, formatModeSwitchNotice, formatUserCommandBlock, formatUserInputBlock, normalizeUserInput, parseUserCommandEnvelope, parseUserInputMode, stripModeNotices, xmlTagsRemoval, } from "./prompt/format";
|
|
48
|
+
export { createModeSwitchNoticeTracker, formatDisplayUserInput, formatFileContentBlock, formatModeSwitchNotice, formatSessionSearchPreview, formatSessionSearchTitle, formatUserCommandBlock, formatUserInputBlock, normalizeUserInput, parseUserCommandEnvelope, parseUserInputMode, SESSION_SEARCH_PREVIEW_MAX_LENGTH, SESSION_SEARCH_TITLE_MAX_LENGTH, stripModeNotices, xmlTagsRemoval, } from "./prompt/format";
|
|
49
49
|
export { CLINE_DEFAULT_MODEL_ID } from "./providers/defaults";
|
|
50
50
|
export { isClineProvider } from "./providers/utils";
|
|
51
51
|
export { buildRemoteConfigSessionBlobUploadMetadata, clearMaterializedRemoteConfigRuntime, clearRemoteConfigSessionBlobUpload, createRemoteConfigSessionMessagesArtifactUploader, prepareRemoteConfigRuntime, REMOTE_CONFIG_SESSION_BLOB_UPLOAD_METADATA_KEY, readRemoteConfigSessionBlobUploadMetadata, registerRemoteConfigSessionBlobUpload, } from "./remote-config";
|