@cline/shared 0.0.69 → 0.0.70
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 +38 -0
- package/dist/agents/types.d.ts +9 -1
- package/dist/connectors/options.d.ts +2 -0
- package/dist/connectors/supervision.d.ts +68 -0
- package/dist/db/index.js +13 -13
- package/dist/hub.d.ts +2 -2
- package/dist/index.browser.d.ts +3 -3
- package/dist/index.browser.js +23 -21
- package/dist/index.d.ts +6 -5
- package/dist/index.js +58 -56
- package/dist/llms/ai-sdk-format.d.ts +12 -1
- package/dist/llms/gateway.d.ts +1 -1
- package/dist/llms/media.d.ts +6 -0
- package/dist/prompt/cline.d.ts +14 -6
- package/dist/rpc/runtime.d.ts +1 -0
- package/dist/runtime/hub-daemon-env.d.ts +73 -0
- package/dist/services/telemetry.d.ts +28 -1
- package/dist/storage/index.d.ts +1 -1
- package/dist/storage/index.js +1 -1
- package/dist/storage/paths.d.ts +15 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export { ConnectorAuthorizationDecisionSchema, ConnectorAuthorizationRequestSche
|
|
|
5
5
|
export type * from "./connectors/options";
|
|
6
6
|
export type { ActiveConnectorRecord, ConfiguredConnectorRecord, ConnectorCatalogEntry, ConnectorChannel, ConnectorChannelsResponse, ConnectorFieldCondition, ConnectorFieldDef, ConnectorPlatformDef, ConnectorSecurityDef, ConnectorSecurityFieldDef, } from "./connectors/platforms";
|
|
7
7
|
export { buildConnectorConnectArgs, CONNECTOR_CATALOG, CONNECTOR_PLATFORMS, connectorChannelsFromPlatforms, listConnectorCatalog, mergeConnectorConnectArgs, shouldIncludeConnectorField, } from "./connectors/platforms";
|
|
8
|
+
export type { ConnectorStartRequest, ConnectorStartResult, ConnectorStopRequest, ConnectorStopResultPayload, SupervisedConnectorOrigin, SupervisedConnectorRecord, SupervisedConnectorState, } from "./connectors/supervision";
|
|
8
9
|
export type { AutomationEventEnvelope, CronEventSpec, CronOneOffSpec, CronScheduleSpec, CronSpec, CronSpecCommonFields, CronSpecExtensionKind, CronSpecMode, CronSpecModelSelection, CronSpecParseResult, CronTriggerKind, } from "./cron";
|
|
9
10
|
export type { Disposable } from "./dispose";
|
|
10
11
|
export { disposeAll, registerDisposable } from "./dispose";
|
|
@@ -20,7 +21,7 @@ export * from "./hub";
|
|
|
20
21
|
export type { AiSdkFormatterMessage, AiSdkFormatterMessageRole, AiSdkFormatterPart, AiSdkMessage, AiSdkMessagePart, } from "./llms/ai-sdk-format";
|
|
21
22
|
export { EMPTY_CONTENT_TEXT, formatMessagesForAiSdk, sanitizeSurrogates, toAiSdkToolResultOutput, } from "./llms/ai-sdk-format";
|
|
22
23
|
export * from "./llms/gateway";
|
|
23
|
-
export { createMediaBudgetState, DEFAULT_MAX_IMAGE_BASE64_BYTES, DEFAULT_MAX_IMAGE_DECODED_BYTES, DEFAULT_MAX_IMAGE_ENCODED_BYTES, DEFAULT_MAX_TOTAL_MEDIA_BYTES, IMAGE_OMITTED_PLACEHOLDER, type ImageMediaLimits, type ImageMediaValidationFailure, type ImageMediaValidationResult, type ImageMediaValidationSuccess, imageBase64DecodedByteLength, imageBase64EncodedByteLength, imageBase64LengthForDecodedBytes, imageFileMaxDecodedBytesForBase64Limit, isBase64Char, isCanonicalBase64, type MediaBudgetOptions, type MediaBudgetState, type ResolvedMediaBudget, reserveImageMediaBytes, resolveMediaBudget, SUPPORTED_IMAGE_MEDIA_TYPES, validateAndReserveImageMedia, validateImageMedia, } from "./llms/media";
|
|
24
|
+
export { createMediaBudgetState, DEFAULT_MAX_IMAGE_BASE64_BYTES, DEFAULT_MAX_IMAGE_DECODED_BYTES, DEFAULT_MAX_IMAGE_ENCODED_BYTES, DEFAULT_MAX_TOTAL_MEDIA_BYTES, IMAGE_OMITTED_PLACEHOLDER, IMAGE_UNSUPPORTED_PLACEHOLDER, type ImageMediaLimits, type ImageMediaValidationFailure, type ImageMediaValidationResult, type ImageMediaValidationSuccess, imageBase64DecodedByteLength, imageBase64EncodedByteLength, imageBase64LengthForDecodedBytes, imageFileMaxDecodedBytesForBase64Limit, isBase64Char, isCanonicalBase64, type MediaBudgetOptions, type MediaBudgetState, type ResolvedMediaBudget, reserveImageMediaBytes, resolveMediaBudget, SUPPORTED_IMAGE_MEDIA_TYPES, validateAndReserveImageMedia, validateImageMedia, } from "./llms/media";
|
|
24
25
|
export type { ContentBlock, FileContent, ImageContent, Message, MessageRole, MessageWithMetadata, RedactedThinkingContent, TextContent, ThinkingContent, ToolDefinition, ToolResultContent, ToolUseContent, } from "./llms/messages";
|
|
25
26
|
export { ApiFormat, ApiFormatSchema, type ModelCapability, ModelCapabilitySchema, type ModelInfo, ModelInfoSchema, type ModelMetadata, ModelMetadataSchema, type ModelPricing, ModelPricingSchema, type ModelStatus, ModelStatusSchema, type ThinkingConfig, ThinkingConfigSchema, } from "./llms/model-info";
|
|
26
27
|
export { mergeModelOptions } from "./llms/model-options";
|
|
@@ -41,7 +42,7 @@ export { maskSecret, sanitizeFileName, stripUtf8Bom, trimNonEmpty, truncateSplit
|
|
|
41
42
|
export { formatHumanReadableDate, formatUptime } from "./parse/time";
|
|
42
43
|
export { validateWithZod, zodToJsonSchema } from "./parse/zod";
|
|
43
44
|
export type { ClineSystemPromptOptions } from "./prompt/cline";
|
|
44
|
-
export { buildClineSystemPrompt, MODE_TAG_INSTRUCTIONS, PLAN_MODE_INSTRUCTIONS, processWorkspaceInfo, } from "./prompt/cline";
|
|
45
|
+
export { buildClineSystemPrompt, MODE_TAG_INSTRUCTIONS, PLAN_MODE_INSTRUCTIONS, PLAN_MODE_INSTRUCTIONS_MANUAL_SWITCH, processWorkspaceInfo, } from "./prompt/cline";
|
|
45
46
|
export type { ModeSwitchNotice, ModeSwitchNoticeTracker, } from "./prompt/format";
|
|
46
47
|
export { createModeSwitchNoticeTracker, formatDisplayUserInput, formatFileContentBlock, formatModeSwitchNotice, formatUserCommandBlock, formatUserInputBlock, normalizeUserInput, parseUserCommandEnvelope, parseUserInputMode, stripModeNotices, xmlTagsRemoval, } from "./prompt/format";
|
|
47
48
|
export { CLINE_DEFAULT_MODEL_ID } from "./providers/defaults";
|
|
@@ -60,10 +61,10 @@ export type { ClineBuildEnv, ClineDebugRole, ResolveClineBuildEnvOptions, } from
|
|
|
60
61
|
export { augmentNodeCommandForDebug, CLINE_BUILD_ENV_ENV, CLINE_DEBUG_HOST_ENV, CLINE_DEBUG_PORT_BASE_ENV, resolveClineBuildEnv, withResolvedClineBuildEnv, } from "./runtime/build-env";
|
|
61
62
|
export type { ClineEnvironment, ClineEnvironmentConfig, ResolveClineEnvironmentOptions, } from "./runtime/cline-environment";
|
|
62
63
|
export { CLINE_ENVIRONMENT_ENV, CLINE_ENVIRONMENT_OVERRIDE_ENV, CLINE_ENVIRONMENTS, DEFAULT_CLINE_ENVIRONMENT, getClineEnvironmentConfig, resolveClineEnvironment, } from "./runtime/cline-environment";
|
|
63
|
-
export type { ConnectorCliLaunchSpec } from "./runtime/hub-daemon-env";
|
|
64
|
-
export { CLINE_CONNECTOR_CLI_LAUNCH_ENV, CLINE_RUN_AS_HUB_DAEMON_ENV, isHubDaemonProcess, readConnectorCliLaunchSpec, setConnectorCliLaunchSpec, } from "./runtime/hub-daemon-env";
|
|
64
|
+
export type { ConnectorCliLaunchSpec, ConnectorInstanceRef, } from "./runtime/hub-daemon-env";
|
|
65
|
+
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";
|
|
65
66
|
export type { CaptureAgentUnexpectedReasoningTokensInput, CaptureSdkErrorInput, CaptureTaskLifecycleEventInput, ITelemetryService, OpenTelemetryClientConfig, SdkTelemetryErrorComponent, SdkTelemetryErrorSeverity, TelemetryArray, TelemetryMetadata, TelemetryObject, TelemetryPrimitive, TelemetryProperties, TelemetryValue, } from "./services/telemetry";
|
|
66
|
-
export { AGENT_UNEXPECTED_REASONING_TOKENS_EVENT, buildSdkErrorProperties, captureAgentUnexpectedReasoningTokens, captureSdkError, captureTaskLifecycleEvent, normalizeSdkError, 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";
|
|
67
|
+
export { AGENT_UNEXPECTED_REASONING_TOKENS_EVENT, buildSdkErrorProperties, captureAgentUnexpectedReasoningTokens, captureSdkError, captureTaskLifecycleEvent, normalizeSdkError, 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";
|
|
67
68
|
export type { ClineTelemetryServiceConfig } from "./services/telemetry-config";
|
|
68
69
|
export { createClineTelemetryServiceConfig, createClineTelemetryServiceMetadata, } from "./services/telemetry-config";
|
|
69
70
|
export type { HookSessionContext, HookSessionContextLookup, HookSessionContextProvider, } from "./session/hook-context";
|