@cerebriline/core 4.100.246 → 4.100.247
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/assets/prompt-templates/claude.md +2 -0
- package/assets/prompt-templates/deepseek.md +1 -0
- package/assets/prompt-templates/default.md +2 -1
- package/assets/prompt-templates/kimi-k3.md +1 -0
- package/assets/prompt-templates/kimi.md +1 -0
- package/assets/prompt-templates/minimax.md +2 -0
- package/assets/prompt-templates/nemotron.md +1 -0
- package/assets/skills/browser-automation/SKILL.md +113 -0
- package/dist/ClineCore.d.ts +9 -0
- package/dist/account/index.d.ts +1 -0
- package/dist/account/telemetry.d.ts +22 -0
- package/dist/cloud/api.d.ts +122 -0
- package/dist/cloud/controller.d.ts +172 -0
- package/dist/cloud/index.d.ts +9 -0
- package/dist/cloud/index.js +21 -0
- package/dist/cloud/models.d.ts +9 -0
- package/dist/cloud/repositories.d.ts +21 -0
- package/dist/cloud/snapshots.d.ts +22 -0
- package/dist/cloud/state.d.ts +13 -0
- package/dist/cloud/types.d.ts +84 -0
- package/dist/cron/events/cron-event-ingress.d.ts +4 -2
- package/dist/cron/runner/cron-runner.d.ts +5 -2
- package/dist/cron/service/cron-service.d.ts +2 -1
- package/dist/cron/service/schedule-service.d.ts +2 -1
- package/dist/cron/store/sqlite-cron-store.d.ts +7 -1
- package/dist/extensions/composio/composio-meta-tools.d.ts +39 -0
- package/dist/extensions/composio/composio-tools-extension.d.ts +13 -0
- package/dist/extensions/context/agentic-compaction.d.ts +1 -1
- package/dist/extensions/context/cap-thoughts.d.ts +39 -0
- package/dist/extensions/context/compaction-shared.d.ts +76 -1
- package/dist/extensions/context/compaction.d.ts +75 -3
- package/dist/extensions/mcp/client.d.ts +1 -1
- package/dist/extensions/tools/definitions.d.ts +5 -5
- package/dist/extensions/tools/executors/bash.d.ts +26 -0
- package/dist/extensions/tools/executors/index.d.ts +1 -1
- package/dist/extensions/tools/index.d.ts +1 -1
- package/dist/extensions/tools/task-progress.d.ts +37 -0
- package/dist/extensions/tools/team/index.d.ts +1 -0
- package/dist/extensions/tools/team/multi-agent.d.ts +48 -0
- package/dist/extensions/tools/team/persistence-policy.d.ts +56 -0
- package/dist/extensions/tools/team/runtime.d.ts +1 -1
- package/dist/extensions/tools/team/sanitize-team-name.d.ts +5 -0
- package/dist/extensions/tools/team/team-tools.d.ts +1 -1
- package/dist/hooks/checkpoint-hooks.d.ts +23 -1
- package/dist/hooks/hook-file-hooks.d.ts +27 -0
- package/dist/hooks/subprocess-runner.d.ts +23 -0
- package/dist/hooks/subprocess.d.ts +10 -0
- package/dist/hub/client/index.d.ts +29 -3
- package/dist/hub/client/session-client.d.ts +0 -3
- package/dist/hub/daemon/bind-diagnostics.d.ts +16 -0
- package/dist/hub/daemon/entry.js +689 -640
- package/dist/hub/daemon/index.d.ts +17 -8
- package/dist/hub/discovery/index.d.ts +1 -0
- package/dist/hub/index.js +675 -627
- package/dist/hub/runtime-host/hub-runtime-host.d.ts +4 -2
- package/dist/hub/server/handlers/session-handlers.d.ts +6 -1
- package/dist/index.d.ts +21 -11
- package/dist/index.js +1032 -964
- package/dist/remote/remote-environments.d.ts +155 -0
- package/dist/remote/remote-helper-entry.d.ts +1 -0
- package/dist/remote/remote-helper-entry.js +5 -0
- package/dist/remote/remote-helper.d.ts +29 -0
- package/dist/remote/remote-helper.js +4 -0
- package/dist/remote/shell-path.d.ts +88 -0
- package/dist/runtime/host/local-runtime-host.d.ts +2 -2
- package/dist/runtime/host/runtime-host.d.ts +13 -1
- package/dist/runtime/orchestration/oauth-refresh-lock.d.ts +6 -0
- package/dist/runtime/orchestration/session-runtime-orchestrator.d.ts +7 -0
- package/dist/runtime/orchestration/team-persistence-writer.d.ts +65 -0
- package/dist/runtime/safety/rules.d.ts +11 -0
- package/dist/runtime/turn-queue/pending-prompt-service.d.ts +1 -0
- package/dist/services/agent-events.d.ts +1 -0
- package/dist/services/cloud-handoff/git-preflight.d.ts +24 -0
- package/dist/services/cloud-handoff/index.d.ts +4 -0
- package/dist/services/cloud-handoff/metadata.d.ts +7 -0
- package/dist/services/cloud-handoff/transcript.d.ts +5 -0
- package/dist/services/cloud-handoff/types.d.ts +35 -0
- package/dist/services/feature-flags/FeatureFlagsService.d.ts +2 -0
- package/dist/services/feature-flags/cline-account-feature-flags.d.ts +5 -0
- package/dist/services/llms/cline-recommended-models.d.ts +1 -0
- package/dist/services/llms/handler-factory.d.ts +12 -0
- package/dist/services/llms/provider-defaults.d.ts +1 -1
- package/dist/services/llms/provider-settings.d.ts +19 -17
- package/dist/services/local-runtime-bootstrap.d.ts +7 -0
- package/dist/services/mcp-install.d.ts +9 -0
- package/dist/services/plugin-commands.d.ts +28 -0
- package/dist/services/providers/local-provider-registry.d.ts +8 -3
- package/dist/services/providers/local-provider-service.d.ts +20 -10
- package/dist/services/providers/model-source.d.ts +6 -1
- package/dist/services/providers/provider-config-fields.d.ts +11 -0
- package/dist/services/session-import/claude-code.d.ts +1 -1
- package/dist/services/session-import/paths.d.ts +9 -0
- package/dist/services/storage/file-team-store.d.ts +10 -4
- package/dist/services/storage/sqlite-team-store.d.ts +48 -5
- package/dist/services/storage/team-store.d.ts +1 -0
- package/dist/services/telemetry/core-events.d.ts +97 -5
- package/dist/services/telemetry/index.d.ts +1 -0
- package/dist/services/telemetry/index.js +1 -1
- package/dist/services/telemetry/scoped-telemetry.d.ts +31 -0
- package/dist/services/workspace/workspace-manifest.d.ts +34 -0
- package/dist/services/workspace/workspace-telemetry.d.ts +5 -0
- package/dist/session/fork-metadata.d.ts +7 -0
- package/dist/session/models/session-compaction.d.ts +8 -1
- package/dist/session/services/message-builder.d.ts +8 -1
- package/dist/session/services/persistence-service.d.ts +4 -1
- package/dist/session/services/tool-result-cache.d.ts +30 -0
- package/dist/session/session-versioning-service.d.ts +8 -0
- package/dist/session/stores/session-manifest-store.d.ts +2 -4
- package/dist/session/team/team-session-coordinator.d.ts +3 -1
- package/dist/tasks/task-tool.d.ts +2 -2
- package/dist/types/provider-settings.d.ts +11 -0
- package/dist/types/session.d.ts +2 -0
- package/dist/types/storage.d.ts +22 -1
- package/package.json +16 -4
- package/dist/cron/runner/resource-limiter.d.ts +0 -8
- package/dist/services/storage/team-events-retention.d.ts +0 -25
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AgentResult, ITelemetryService } from "@cerebriline/shared";
|
|
2
2
|
import type { HookEventPayload } from "../../hooks";
|
|
3
3
|
import type { RuntimeCapabilities } from "../../runtime/capabilities";
|
|
4
|
-
import type { PendingPromptsServiceApi, RestoreSessionInput, RestoreSessionResult, RuntimeHost, RuntimeHostSubscribeOptions, SendSessionInput, SessionConnectionUpdate, SessionUsageSummary, StartSessionInput, StartSessionResult } from "../../runtime/host/runtime-host";
|
|
4
|
+
import type { ListSessionsOptions, PendingPromptsServiceApi, RestoreSessionInput, RestoreSessionResult, RuntimeHost, RuntimeHostSubscribeOptions, SendSessionInput, SessionConnectionUpdate, SessionUsageSummary, StartSessionInput, StartSessionResult } from "../../runtime/host/runtime-host";
|
|
5
5
|
import { type SessionCompactionState } from "../../session/models/session-compaction";
|
|
6
6
|
import type { CoreSettingsListInput, CoreSettingsMutationResult, CoreSettingsSnapshot, CoreSettingsToggleInput } from "../../settings";
|
|
7
7
|
import type { CoreSessionEvent } from "../../types/events";
|
|
@@ -43,6 +43,7 @@ export declare class HubRuntimeHost implements RuntimeHost {
|
|
|
43
43
|
restoreSession(input: RestoreSessionInput): Promise<RestoreSessionResult>;
|
|
44
44
|
runTurn(input: SendSessionInput): Promise<AgentResult | undefined>;
|
|
45
45
|
private requestPendingPromptsList;
|
|
46
|
+
private requestSteerFirstPendingPrompt;
|
|
46
47
|
private requestPendingPromptUpdate;
|
|
47
48
|
private requestPendingPromptDelete;
|
|
48
49
|
getAccumulatedUsage(sessionId: string): Promise<SessionUsageSummary | undefined>;
|
|
@@ -51,7 +52,7 @@ export declare class HubRuntimeHost implements RuntimeHost {
|
|
|
51
52
|
stopSession(sessionId: string): Promise<void>;
|
|
52
53
|
dispose(): Promise<void>;
|
|
53
54
|
getSession(sessionId: string): Promise<SessionRecord | undefined>;
|
|
54
|
-
listSessions(limit?: number): Promise<SessionRecord[]>;
|
|
55
|
+
listSessions(limit?: number, options?: ListSessionsOptions): Promise<SessionRecord[]>;
|
|
55
56
|
listSettings(input?: CoreSettingsListInput): Promise<CoreSettingsSnapshot>;
|
|
56
57
|
toggleSetting(input: CoreSettingsToggleInput): Promise<CoreSettingsMutationResult>;
|
|
57
58
|
deleteSession(sessionId: string): Promise<boolean>;
|
|
@@ -70,6 +71,7 @@ export declare class HubRuntimeHost implements RuntimeHost {
|
|
|
70
71
|
readSessionMessages(sessionId: string): Promise<import("@cerebriline/llms").MessageWithMetadata[]>;
|
|
71
72
|
dispatchHookEvent(_payload: HookEventPayload): Promise<void>;
|
|
72
73
|
subscribe(listener: (event: CoreSessionEvent) => void, options?: RuntimeHostSubscribeOptions): () => void;
|
|
74
|
+
hasSessionSubscription(sessionId: string): boolean;
|
|
73
75
|
private ensureSessionSubscription;
|
|
74
76
|
private disposeSessionSubscription;
|
|
75
77
|
private resolveCapabilities;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import type { HubCommandEnvelope, HubReplyEnvelope, ToolApprovalRequest } from "@cerebriline/shared";
|
|
1
|
+
import type { ClientContext, HubCommandEnvelope, HubReplyEnvelope, ToolApprovalRequest, UserContext } from "@cerebriline/shared";
|
|
2
2
|
import type { SessionConnectionUpdate } from "../../../runtime/host/runtime-host";
|
|
3
3
|
import { type HubTransportContext } from "./context";
|
|
4
|
+
/** Parse the serializable subset of ExtensionContext carried by Hub clients. */
|
|
5
|
+
export declare function readHubClientContext(value: unknown): ClientContext | undefined;
|
|
6
|
+
/** Parse authenticated identity separately from the transport-neutral config. */
|
|
7
|
+
export declare function readHubUserContext(value: unknown): UserContext | undefined;
|
|
4
8
|
export declare function selectSessionTools<T extends {
|
|
5
9
|
name: string;
|
|
6
10
|
}>(tools: readonly T[], mode: string, source?: string): T[];
|
|
@@ -26,5 +30,6 @@ export declare function handleSessionUpdateConnection(ctx: HubTransportContext,
|
|
|
26
30
|
export declare function handleSessionCompactionUpdate(ctx: HubTransportContext, envelope: HubCommandEnvelope): Promise<HubReplyEnvelope>;
|
|
27
31
|
export declare function handleSessionDelete(ctx: HubTransportContext, envelope: HubCommandEnvelope): Promise<HubReplyEnvelope>;
|
|
28
32
|
export declare function handleSessionPendingPrompts(ctx: HubTransportContext, envelope: HubCommandEnvelope): Promise<HubReplyEnvelope>;
|
|
33
|
+
export declare function handleSessionSteerFirstPendingPrompt(ctx: HubTransportContext, envelope: HubCommandEnvelope): Promise<HubReplyEnvelope>;
|
|
29
34
|
export declare function handleSessionUpdatePendingPrompt(ctx: HubTransportContext, envelope: HubCommandEnvelope): Promise<HubReplyEnvelope>;
|
|
30
35
|
export declare function handleSessionRemovePendingPrompt(ctx: HubTransportContext, envelope: HubCommandEnvelope): Promise<HubReplyEnvelope>;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* Core contracts, shared state utilities, and Node runtime services.
|
|
5
5
|
*/
|
|
6
6
|
export * as Llms from "@cerebriline/llms";
|
|
7
|
-
export { ClineFreeModelLimitError, ClineNotSubscribedError, ClineOrgIndividualInferenceSubscriptionError, ClinePassLimitError, extractClineFreeModelLimitResetTime, extractClinePassLimitMessage, getClineNotSubscribedMessage, getClineOrgIndividualInferenceSubscriptionMessage, getClinePassSubscriptionUrl, isClineFreeModelLimitError, isClineFreeModelLimitMessage, isClineModelNotFoundMessage, isClineNotSubscribedError, isClineNotSubscribedMessage, isClineOrgIndividualInferenceSubscriptionError, isClineOrgIndividualInferenceSubscriptionMessage, isClinePassLimitError, isClinePassLimitMessage, primeDeclaredNumCtx, readDeclaredFamily, readDeclaredNumCtx, readResolvedOllamaWindow, } from "@cerebriline/llms";
|
|
7
|
+
export { buildClineClientHeaders, ClineFreeModelLimitError, ClineNotSubscribedError, ClineOrgIndividualInferenceSubscriptionError, ClinePassLimitError, extractClineFreeModelLimitResetTime, extractClinePassLimitMessage, getClineNotSubscribedMessage, getClineOrgIndividualInferenceSubscriptionMessage, getClinePassSubscriptionUrl, isClineFreeModelLimitError, isClineFreeModelLimitMessage, isClineModelNotFoundMessage, isClineNotSubscribedError, isClineNotSubscribedMessage, isClineOrgIndividualInferenceSubscriptionError, isClineOrgIndividualInferenceSubscriptionMessage, isClinePassLimitError, isClinePassLimitMessage, primeDeclaredNumCtx, readDeclaredFamily, readDeclaredNumCtx, readResolvedOllamaWindow, } from "@cerebriline/llms";
|
|
8
8
|
export type { AddProviderActionRequest, AgentConfig, AgentEvent, AgentExtension as AgentPlugin, // Public-facing alias for extensions
|
|
9
|
-
AgentExtensionCommand, AgentExtensionCommand as AgentPluginCommand, AgentExtensionCommandResult, AgentHooks, AgentMode, AgentResult, AgentRunResult, AgentRunStatus, AgentTool, AgentToolContext, AutomationEventEnvelope, BasicLogger, BasicLogger as Logger, CaptureSdkErrorInput, ChatRunTurnRequest, ChatRuntimeConfig, ChatStartSessionArtifacts, ChatStartSessionRequest, ChatTurnResult, ClineAccountActionRequest, ConnectorHookEvent, ContentBlock,
|
|
10
|
-
export { buildClineSystemPrompt as getClineDefaultSystemPrompt, buildSdkErrorProperties, ContributionRegistry, captureSdkError, createClineTelemetryServiceConfig, createClineTelemetryServiceMetadata, createContributionRegistry, createTool, emptyWorkspaceManifest, FEATURE_FLAGS, FeatureFlagDefaultValue, formatDisplayUserInput, noopBasicLogger, normalizeSdkError, normalizeUserInput, parseUserCommandEnvelope, registerDisposable, SDK_ERROR_TELEMETRY_EVENT, stripUtf8Bom, } from "@cerebriline/shared";
|
|
9
|
+
AgentExtensionCommand, AgentExtensionCommand as AgentPluginCommand, AgentExtensionCommandResult, AgentHooks, AgentMode, AgentResult, AgentRunResult, AgentRunStatus, AgentTool, AgentToolContext, AutomationEventEnvelope, BasicLogger, BasicLogger as Logger, CaptureSdkErrorInput, ChatRunTurnRequest, ChatRuntimeConfig, ChatStartSessionArtifacts, ChatStartSessionRequest, ChatTurnResult, ClineAccountActionRequest, ConnectorHookEvent, ContentBlock, FeatureFlagPayload, FeatureFlagsAndPayloads, FeatureFlagsContext, FeatureFlagsSettings, FileContent, GetProviderModelsActionRequest, HookSessionContext, IFeatureFlagsProvider, ImageContent, ITelemetryService, ListProvidersActionRequest, Message, MessageWithMetadata, ProviderActionRequest, ProviderCatalogResponse, ProviderListItem, ProviderModel, ProviderOAuthLoginResponse, RuntimeLoggerConfig, SaveProviderSettingsActionRequest, SdkTelemetryErrorComponent, SdkTelemetryErrorSeverity, SessionLineage, TEAM_LIFECYCLE_EVENT_TYPE, TEAM_PROGRESS_EVENT_TYPE, TeamProgressProjectionEvent, TelemetryArray, TelemetryMetadata, TelemetryObject, TelemetryPrimitive, TelemetryProperties, TelemetryValue, TextContent, ThinkingContent, ToolApprovalRequest, ToolApprovalResult, ToolPolicy, ToolResultContent, ToolUseContent, WorkspaceInfo, WorkspaceInfoSchema, WorkspaceManifest, WorkspaceManifestSchema, } from "@cerebriline/shared";
|
|
10
|
+
export { buildClineSystemPrompt as getClineDefaultSystemPrompt, buildSdkErrorProperties, ContributionRegistry, captureSdkError, createClineTelemetryServiceConfig, createClineTelemetryServiceMetadata, createContributionRegistry, createTool, emptyWorkspaceManifest, FEATURE_FLAGS, FeatureFlag, FeatureFlagDefaultValue, formatDisplayUserInput, noopBasicLogger, normalizeSdkError, normalizeUserInput, parseUserCommandEnvelope, registerDisposable, SDK_ERROR_TELEMETRY_EVENT, stripUtf8Bom, } from "@cerebriline/shared";
|
|
11
11
|
export * from "@cerebriline/shared/storage";
|
|
12
|
-
export { type ClineAccountBalance, type ClineAccountOperations, type ClineAccountOrganization, type ClineAccountOrganizationBalance, type ClineAccountOrganizationUsageTransaction, type ClineAccountPaymentTransaction, ClineAccountService, type ClineAccountServiceOptions, type ClineAccountUsageTransaction, type ClineAccountUser, type ClineOrganization, type ClineSubscriptionPlan, executeClineAccountAction, type FeaturebaseTokenResponse, isClineAccountActionRequest, type ProviderActionExecutor, RpcClineAccountService, type UserCurrentPlan, type UserRemoteConfigOrganization, type UserRemoteConfigResponse, } from "./account";
|
|
12
|
+
export { type ClineAccountBalance, type ClineAccountOperations, type ClineAccountOrganization, type ClineAccountOrganizationBalance, type ClineAccountOrganizationUsageTransaction, type ClineAccountPaymentTransaction, ClineAccountService, type ClineAccountServiceOptions, type ClineAccountTelemetryIdentity, type ClineAccountUsageTransaction, type ClineAccountUser, type ClineOrganization, type ClineSubscriptionPlan, executeClineAccountAction, type FeaturebaseTokenResponse, isClineAccountActionRequest, type ProviderActionExecutor, persistClineAccountTelemetryIdentity, RpcClineAccountService, resolveClineAccountTelemetryIdentity, type UserCurrentPlan, type UserRemoteConfigOrganization, type UserRemoteConfigResponse, } from "./account";
|
|
13
13
|
export { createOAuthClientCallbacks, type OAuthClientCallbacksOptions, } from "./auth/client";
|
|
14
14
|
export { completeClineDeviceAuth, getValidClineCredentials, loginClineOAuth, refreshClineToken, startClineDeviceAuth, } from "./auth/cline";
|
|
15
15
|
export { getValidOpenAICodexCredentials, loginOpenAICodex, refreshOpenAICodexToken, } from "./auth/codex";
|
|
@@ -19,6 +19,7 @@ export type { LocalOAuthServer, LocalOAuthServerOptions, OAuthCallbackPayload, O
|
|
|
19
19
|
export { startLocalOAuthServer } from "./auth/server";
|
|
20
20
|
export type { OAuthCredentials, OAuthLoginCallbacks, OAuthPrompt, OAuthProviderInterface, OcaClientMetadata, OcaMode, OcaOAuthConfig, OcaOAuthEnvironmentConfig, OcaOAuthProviderOptions, OcaTokenResolution, } from "./auth/types";
|
|
21
21
|
export { ClineCore } from "./ClineCore";
|
|
22
|
+
export { toClineCoreStartInput } from "./cline-core/start-input";
|
|
22
23
|
export type { ClineAutomationEventIngressResult, ClineAutomationEventLog, ClineAutomationEventSuppression, ClineAutomationListEventsOptions, ClineAutomationListRunsOptions, ClineAutomationListSpecsOptions, ClineAutomationRun, ClineAutomationRunStatus, ClineAutomationSpec, ClineCoreAutomationApi, ClineCoreAutomationOptions, ClineCoreListHistoryOptions, ClineCoreOptions, ClineCoreSettingsApi, ClineCoreStartInput, CompareCheckpointInput, CompareCheckpointResult, HubOptions, RemoteOptions, RestoreInput, RestoreOptions, RestoreResult, } from "./cline-core/types";
|
|
23
24
|
export type { AgentPluginPackageDiagnostic, AgentPluginPackageDiagnosticScope, AgentPluginPackageLoadReport, AgentPluginPackageManifest, AgentPluginPackageMcpServer, AgentPluginPackageSkill, AgentSkillMetadata, LoadAgentPluginFromPathOptions, LoadAgentPluginPackagesOptions, LoadedAgentPluginPackage, ParsedAgentSkill, PluginInitializationFailure, PluginInitializationWarning, PluginLoadDiagnostics, ResolveAgentPluginPathsOptions, } from "./extensions";
|
|
24
25
|
export { AGENT_PLUGINS_V1_MANIFEST_SCHEMA, AGENT_PLUGINS_V1_MCP_SCHEMA, discoverPluginModulePaths, getPluginDisplayName, loadAgentPluginFromPath, loadAgentPluginPackages, loadAgentPluginsFromPaths, loadAgentPluginsFromPathsWithDiagnostics, parseAgentSkillMarkdown, resolveAgentPluginPaths, resolveAndLoadAgentPlugins, resolvePluginConfigSearchPaths, resolvePluginSkillDirectoriesFromPaths, } from "./extensions";
|
|
@@ -48,10 +49,11 @@ export { createTeamName, DefaultRuntimeBuilder, } from "./runtime/orchestration/
|
|
|
48
49
|
export { OAuthReauthRequiredError, type RuntimeOAuthResolution, RuntimeOAuthTokenManager, } from "./runtime/orchestration/runtime-oauth-token-manager";
|
|
49
50
|
export type { BuiltRuntime, RuntimeBuilder, RuntimeBuilderInput, SessionRuntime, } from "./runtime/orchestration/session-runtime";
|
|
50
51
|
export { getProcessStartToken, getProcessStartTokenAsync, type ProcessStartTokenProbeResult, probeProcessStartToken, probeProcessStartTokenAsync, } from "./runtime/process-start-token";
|
|
51
|
-
export { formatRulesForSystemPrompt, isRuleEnabled, mergeRulesForSystemPrompt, } from "./runtime/safety/rules";
|
|
52
|
+
export { formatRulesForSystemPrompt, isRuleEnabled, loadRulesForSystemPromptFromRecords, mergeRulesForSystemPrompt, } from "./runtime/safety/rules";
|
|
52
53
|
export { type ResolvedStruggleThresholds, resolveStruggleThresholds, type StruggleThresholds, } from "./runtime/safety/struggle-detector";
|
|
53
54
|
export { type SandboxCallOptions, SubprocessSandbox, type SubprocessSandboxOptions, } from "./runtime/tools/subprocess-sandbox";
|
|
54
55
|
export { type DesktopToolApprovalOptions, requestDesktopToolApproval, } from "./runtime/tools/tool-approval";
|
|
56
|
+
export * from "./services/cloud-handoff";
|
|
55
57
|
export { listActiveConnectors } from "./services/connectors/active-connectors";
|
|
56
58
|
export { disableConnectorAutostart, getPersistedConnectorConnection, persistConnectorConnection, type ReconnectAttempt, type ReconnectPersistedConnectorsOptions, type ReconnectTarget, reconnectPersistedConnectors, removePersistedConnectorConnection, } from "./services/connectors/connector-autostart";
|
|
57
59
|
export { buildConnectorChildEnv } from "./services/connectors/connector-child-env";
|
|
@@ -63,7 +65,9 @@ export { filterDisabledPluginPaths, filterDisabledTools, filterExtensionToolRegi
|
|
|
63
65
|
export type { MarketplaceActionResult, MarketplaceEntryInput, MarketplacePrimitiveType, MarketplaceSpawnCommand, MarketplaceSpawnResult, UninstallMarketplaceEntryOptions, } from "./services/marketplace";
|
|
64
66
|
export { findInstalledGlobalMarketplaceSkillName, getGlobalMarketplaceSkillPaths, getMarketplaceSkillCandidates, isMarketplaceSkillInstalled, marketplaceEntryKey, resolveMarketplaceMcpServerName, uninstallMarketplaceEntry, uninstallMarketplaceMcpServerFromSettings, uninstallMarketplacePlugin, uninstallMarketplaceSkill, } from "./services/marketplace";
|
|
65
67
|
export type { McpInstallOptions, McpInstallResult, McpUninstallOptions, McpUninstallResult, } from "./services/mcp-install";
|
|
66
|
-
export { buildMcpInstallTransport, installMcpServer, parseMcpInstallArgs, uninstallMcpServer, } from "./services/mcp-install";
|
|
68
|
+
export { buildMcpInstallTransport, installMcpServer, parseMcpHeaders, parseMcpInstallArgs, uninstallMcpServer, } from "./services/mcp-install";
|
|
69
|
+
export type { PluginCommandResult, PluginCommandService, PluginSlashCommand, } from "./services/plugin-commands";
|
|
70
|
+
export { createPluginCommandService, normalizePluginCommandName, } from "./services/plugin-commands";
|
|
67
71
|
export type { ParsedPluginSource, PluginInstallOptions, PluginInstallResult, PluginInstallSourceType, PluginMcpOAuthCandidate, } from "./services/plugin-install";
|
|
68
72
|
export { collectPluginMcpOAuthCandidates, installPlugin, isOfficialPluginSlug, parsePluginSource, } from "./services/plugin-install";
|
|
69
73
|
export type { PluginMcpSettingsMutation, PluginMcpSettingsSyncResult, RemovePluginMcpServersFromSettingsOptions, SyncPluginMcpServersToSettingsOptions, } from "./services/plugin-mcp-settings";
|
|
@@ -73,8 +77,8 @@ export { listPluginTools, listPluginToolsWithDiagnostics, } from "./services/plu
|
|
|
73
77
|
export type { PluginUninstallOptions, PluginUninstallResult, } from "./services/plugin-uninstall";
|
|
74
78
|
export { uninstallPlugin } from "./services/plugin-uninstall";
|
|
75
79
|
export { ensureCustomProvidersLoadedSync, readModelsFileSync, resolveModelsRegistryPath, type StoredModelEntry, type StoredProviderEntry, syncStoredProviderRegistration, writeModelsFileSync, } from "./services/providers/local-provider-registry";
|
|
76
|
-
export { addLocalProvider, type CreateConfiguredStreamingTranscriptionSessionRequest, createConfiguredStreamingTranscriptionSession, type DeleteLocalProviderRequest, deleteLocalProvider, ensureCustomProvidersLoaded, getLocalProviderModels, isDedicatedTranscriptionModel, listLocalProviders, loginAndSaveLocalProviderOAuthCredentials, loginLocalProvider, markLocalProviderEnabled, normalizeOAuthProvider, refreshProviderModelsFromSource, resolveLocalClineAuthToken, saveLocalProviderOAuthCredentials, saveLocalProviderSettings, saveVoiceInputSettings, type TranscribeConfiguredVoiceInputRequest, type TranscribeLocalAudioRequest, transcribeConfiguredVoiceInput, transcribeLocalAudio, type UpdateLocalProviderRequest, updateLocalProvider, } from "./services/providers/local-provider-service";
|
|
77
|
-
export { getProviderConfigFields, type ProviderConfigFieldKey, type ProviderConfigFieldRequirement, type ProviderConfigFields, } from "./services/providers/provider-config-fields";
|
|
80
|
+
export { addLocalProvider, type CreateConfiguredStreamingTranscriptionSessionRequest, createConfiguredStreamingTranscriptionSession, type DeleteLocalProviderRequest, deleteLocalProvider, ensureCustomProvidersLoaded, getLocalProviderModels, getLocalTranscriptionModels, isDedicatedTranscriptionModel, listLocalProviders, loginAndSaveLocalProviderOAuthCredentials, loginLocalProvider, markLocalProviderEnabled, normalizeOAuthProvider, refreshProviderModelsFromSource, resolveLocalClineAuthToken, saveLocalProviderOAuthCredentials, saveLocalProviderSettings, saveVoiceInputSettings, type TranscribeConfiguredVoiceInputRequest, type TranscribeLocalAudioRequest, transcribeConfiguredVoiceInput, transcribeLocalAudio, type UpdateLocalProviderRequest, updateLocalProvider, } from "./services/providers/local-provider-service";
|
|
81
|
+
export { getProviderConfigFields, isLocalAuthProvider, type ProviderConfigFieldKey, type ProviderConfigFieldRequirement, type ProviderConfigFields, } from "./services/providers/provider-config-fields";
|
|
78
82
|
export { isProviderSettingsUsable } from "./services/providers/provider-readiness";
|
|
79
83
|
export * from "./services/session-import";
|
|
80
84
|
export { type MigrateLegacyProviderSettingsOptions, type MigrateLegacyProviderSettingsResult, migrateLegacyProviderSettings, } from "./services/storage/provider-settings-legacy-migration";
|
|
@@ -82,10 +86,11 @@ export { ProviderSettingsManager } from "./services/storage/provider-settings-ma
|
|
|
82
86
|
export { SqliteSessionStore } from "./services/storage/sqlite-session-store";
|
|
83
87
|
export { SqliteTeamStore, type SqliteTeamStoreOptions, } from "./services/storage/team-store";
|
|
84
88
|
export { resolveCoreDeviceId, resolveCoreDistinctId, } from "./services/telemetry";
|
|
85
|
-
export type { CaptureAgentUnexpectedReasoningTokensInput, CaptureCompactionExecutedProperties, CaptureCompactionSkippedProperties, TelemetryAgentIdentityProperties, TelemetryAgentKind, TelemetryCompactionMode, TelemetryCompactionStrategy, WorkspaceInitErrorProperties, WorkspaceInitializedProperties, WorkspacePathResolvedProperties, } from "./services/telemetry/core-events";
|
|
86
|
-
export { CORE_TELEMETRY_EVENTS, captureAgentCreated, captureAgentTeamCreated, captureAgentUnexpectedReasoningTokens, captureAuthFailed, captureAuthLoggedOut, captureAuthRefreshSoftFailure, captureAuthStarted, captureAuthSucceeded, captureCompactionExecuted, captureCompactionSkipped, captureConversationTurnEvent, captureDiffEditFailure, captureExtensionActivated, captureHookDiscovery, captureMentionFailed, captureMentionSearchResults, captureMentionUsed, captureMistakeLimitReached, captureModeSwitch, captureProviderApiError, captureProviderConfigured, captureSkillUsed, captureSubagentExecution, captureTaskCompleted, captureTaskCreated, captureTaskRestarted, captureTokenUsage, captureToolUsage, captureWorkspaceInitError, captureWorkspaceInitialized, captureWorkspacePathResolved, identifyAccount, } from "./services/telemetry/core-events";
|
|
89
|
+
export type { CaptureAgentUnexpectedReasoningTokensInput, CaptureCompactionExecutedProperties, CaptureCompactionSkippedProperties, GitSnapshotProperties, TelemetryAgentIdentityProperties, TelemetryAgentKind, TelemetryCompactionMode, TelemetryCompactionStrategy, WorkspaceInitErrorProperties, WorkspaceInitializedProperties, WorkspacePathResolvedProperties, } from "./services/telemetry/core-events";
|
|
90
|
+
export { CORE_TELEMETRY_EVENTS, captureAgentCreated, captureAgentTeamCreated, captureAgentUnexpectedReasoningTokens, captureAuthFailed, captureAuthLoggedOut, captureAuthRefreshSoftFailure, captureAuthStarted, captureAuthSucceeded, captureCompactionExecuted, captureCompactionSkipped, captureConversationTurnEvent, captureDiffEditFailure, captureExtensionActivated, captureGitSnapshot, captureHookDiscovery, captureMentionFailed, captureMentionSearchResults, captureMentionUsed, captureMistakeLimitReached, captureModeSwitch, captureProviderApiError, captureProviderConfigured, captureSkillUsed, captureSubagentExecution, captureTaskCompleted, captureTaskCreated, captureTaskRestarted, captureTokenUsage, captureToolUsage, captureWorkspaceInitError, captureWorkspaceInitialized, captureWorkspacePathResolved, clearAccountTelemetryIdentity, identifyAccount, } from "./services/telemetry/core-events";
|
|
87
91
|
export type { ITelemetryAdapter } from "./services/telemetry/ITelemetryAdapter";
|
|
88
92
|
export { type ConfiguredTelemetryHandle, type CreateOpenTelemetryTelemetryServiceOptions, createConfiguredTelemetryHandle, createConfiguredTelemetryService, createOpenTelemetryTelemetryService, OpenTelemetryProvider, type OpenTelemetryProviderOptions, } from "./services/telemetry/OpenTelemetryProvider";
|
|
93
|
+
export { type ClientTelemetryContext, createClientScopedTelemetryService, createScopedTelemetryService, resolveClientTelemetryProperties, } from "./services/telemetry/scoped-telemetry";
|
|
89
94
|
export { TelemetryLoggerSink, type TelemetryLoggerSinkOptions, } from "./services/telemetry/TelemetryLoggerSink";
|
|
90
95
|
export { accumulateUsageTotals, createInitialAccumulatedUsage, getCurrentContextSize, summarizeUsageFromMessages, } from "./services/usage";
|
|
91
96
|
export type { FastFileIndexOptions, MentionEnricherOptions, MentionEnrichmentResult, } from "./services/workspace";
|
|
@@ -96,6 +101,7 @@ export { buildWorkspaceMetadata, generateWorkspaceInfo, generateWorkspaceInfoWit
|
|
|
96
101
|
export { buildCheckpointWorkspaceDiff, type CheckpointComparePlan, type CheckpointContentDiff, type CheckpointWorkspaceCompareResult, compareCheckpointToWorkspace, createCheckpointComparePlan, } from "./session/checkpoint-diff";
|
|
97
102
|
export { createRestoredCheckpointMetadata, findCheckpointForRun, readSessionCheckpointHistory, trimMessagesBeforeUserRun, } from "./session/checkpoint-restore";
|
|
98
103
|
export { projectSessionMessagesForDisplay, type SessionDisplayMessage, } from "./session/display-messages";
|
|
104
|
+
export { createForkSessionMetadata } from "./session/fork-metadata";
|
|
99
105
|
export { deriveSubsessionStatus, makeSubSessionId, makeTeamTaskSubSessionId, sanitizeSessionToken, } from "./session/models/session-graph";
|
|
100
106
|
export type { SessionManifest } from "./session/models/session-manifest";
|
|
101
107
|
export type { SessionRow } from "./session/models/session-row";
|
|
@@ -118,6 +124,7 @@ export { CORE_BUILD_VERSION } from "./version";
|
|
|
118
124
|
export declare function loadOpenTelemetryAdapter(): Promise<typeof import("./services/telemetry")>;
|
|
119
125
|
export { Agent, createAgentRuntime } from "@cerebriline/agents";
|
|
120
126
|
export { DEFAULT_LIBRARY_SETTINGS, DEFAULT_MEMORY_SELECTION, DEFAULT_MEMORY_SETTINGS, DEFAULT_SCRAPE_SETTINGS, type LibrarySettings, MAIN_MEMORY, type MemorySelection, type MemorySettings, memorySelectionFor, memoryWorkspaceKey, resolveLibrarySettings, resolveMemorySettings, resolveScrapeSettings, type ScrapeSettings, } from "@cerebriline/shared";
|
|
127
|
+
export { resolveComposioToolsStatePath } from "./extensions/composio/composio-tools-extension";
|
|
121
128
|
export { createCappedThinkingNoteWriter, createCappedThinkingPrepareTurn, DEFAULT_CAPPED_THINKING_PROMPT, findCappedThinkingIndex, } from "./extensions/context/capped-thinking";
|
|
122
129
|
export { createCompactionStateAwarePrepareTurn, createContextCompactionPrepareTurn, } from "./extensions/context/compaction";
|
|
123
130
|
export { COMPACTION_JOURNAL_DEPTH, type CompactionJournal, type CompactionJournalEntry, createCompactionJournal, } from "./extensions/context/compaction-journal";
|
|
@@ -125,7 +132,7 @@ export { DEFAULT_COMPACTION_PROMPT, DEFAULT_THINKING_COMPACTION_PROMPT, FORCE_FU
|
|
|
125
132
|
export { DEFAULT_COUNCIL_CRITIC_PROMPT, DEFAULT_COUNCIL_SYNTHESIZER_PROMPT, DEFAULT_COUNCIL_WRITER_PROMPT, withCouncilWriterPrompt, } from "./extensions/context/council-compaction";
|
|
126
133
|
export { DEFAULT_FULL_COMPACTION_PROMPT, FULL_COMPACTION_SECTIONS, } from "./extensions/context/full-compaction";
|
|
127
134
|
export { DEFAULT_REPLAY_COMPACTION_PROMPT } from "./extensions/context/replay-compaction";
|
|
128
|
-
export { ALL_DEFAULT_TOOL_NAMES, type ApplyPatchExecutor, type ApplyPatchInput, type AskQuestionExecutor, type BuiltinToolAvailabilityContext, CommandExitError, type CreateBuiltinToolsOptions, type CreateDefaultToolsOptions, computePatchChanges, createApplyPatchExecutor, createBuiltinTools, createDefaultExecutors, createDefaultShellExecutor, createDefaultTools, createDefaultToolsWithPreset, createDocumentExtractExecutor, createEditorExecutor, createExtractDocumentTool, createFileReadExecutor, createReadReceipts, createSecretRedactor, createShellExecutor, createShellTool, createToolPoliciesWithPreset, DEFAULT_EXTRACTION_DIR, type DefaultExecutorsOptions, type DefaultToolName, DefaultToolNames, type DefaultToolsConfig, DOCUMENT_EXTENSIONS, type EditFileInput, type EditorExecutor, type EditorExecutorOptions, getCoreAcpToolNames, getCoreBuiltinToolCatalog, getCoreDefaultEnabledToolIds, getCoreHeadlessToolNames, isCoreBuiltinToolAvailable, isSkillsToolAvailable, MAX_COMMAND_OUTPUT_CHARS, MAX_READ_REFUSAL_CHARS, PATCH_MARKERS, PatchActionType, type PatchFileChange, type ReadReceipts, readTaskProgress, resolveCoreSelectedToolIds, resolveToolClientType, type ShellExecutionOptions, type ShellExecutor, type ShellExecutorOptions, type StructuredCommandInput, StructuredCommandInputSchema, TEAM_TOOL_NAMES, type ToolCatalogEntry, type ToolClientType, type ToolExecutors, type ToolPolicyPresetName, type ToolPresetName, ToolPresets, truncateCommandOutput, } from "./extensions/tools";
|
|
135
|
+
export { ALL_DEFAULT_TOOL_NAMES, type ApplyPatchExecutor, type ApplyPatchInput, type AskQuestionExecutor, type BuiltinToolAvailabilityContext, CommandExitError, CommandSpawnError, CommandTerminationError, type CreateBuiltinToolsOptions, type CreateDefaultToolsOptions, computePatchChanges, createApplyPatchExecutor, createBuiltinTools, createDefaultExecutors, createDefaultShellExecutor, createDefaultTools, createDefaultToolsWithPreset, createDocumentExtractExecutor, createEditorExecutor, createExtractDocumentTool, createFileReadExecutor, createReadReceipts, createSecretRedactor, createShellExecutor, createShellTool, createToolPoliciesWithPreset, DEFAULT_EXTRACTION_DIR, type DefaultExecutorsOptions, type DefaultToolName, DefaultToolNames, type DefaultToolsConfig, DOCUMENT_EXTENSIONS, type EditFileInput, type EditorExecutor, type EditorExecutorOptions, getCoreAcpToolNames, getCoreBuiltinToolCatalog, getCoreDefaultEnabledToolIds, getCoreHeadlessToolNames, isCoreBuiltinToolAvailable, isSkillsToolAvailable, MAX_COMMAND_OUTPUT_CHARS, MAX_READ_REFUSAL_CHARS, PATCH_MARKERS, PatchActionType, type PatchFileChange, type ReadReceipts, readTaskProgress, resolveCoreSelectedToolIds, resolveToolClientType, type ShellExecutionOptions, type ShellExecutor, type ShellExecutorOptions, type StructuredCommandInput, StructuredCommandInputSchema, TEAM_TOOL_NAMES, type ToolCatalogEntry, type ToolClientType, type ToolExecutors, type ToolPolicyPresetName, type ToolPresetName, ToolPresets, truncateCommandOutput, } from "./extensions/tools";
|
|
129
136
|
export { ASK_LSP_OPERATIONS, ASK_LSP_TOOL_DESCRIPTION, ASK_LSP_TOOL_INPUT_SCHEMA, ASK_LSP_TOOL_NAME, type AskLspOperation, type AskLspToolOptions, type CodeIntelLocation, type CodeIntelProvider, type CodeIntelSymbol, createAskLspTool, type ParsedAskLspRequest, parseAskLspRequest, } from "./extensions/tools/ask-lsp";
|
|
130
137
|
export { audioExtension, createSynthesizeSpeechTool, createTranscribeAudioTool, listSpeechVoices, type SpeechEndpoint, type SpeechVoices, SYNTHESIZE_SPEECH_TOOL_DESCRIPTION, SYNTHESIZE_SPEECH_TOOL_INPUT_SCHEMA, SYNTHESIZE_SPEECH_TOOL_NAME, type SynthesizeSpeechToolOptions, sniffAudioExtension, TRANSCRIBE_AUDIO_TOOL_DESCRIPTION, TRANSCRIBE_AUDIO_TOOL_INPUT_SCHEMA, TRANSCRIBE_AUDIO_TOOL_NAME, type TranscribeAudioToolOptions, type TranscriptionEndpoint, wavSeconds, } from "./extensions/tools/audio-tools";
|
|
131
138
|
export { BROWSER_ACTIONS, BROWSER_TOOL_DESCRIPTION, BROWSER_TOOL_INPUT_SCHEMA, BROWSER_TOOL_NAME, type BrowserActionResult, type BrowserDriver, type BrowserToolAction, type BrowserToolOptions, createBrowserTool, localPathOf, renderBrowserResult, splitDataUrl, toNavigableUrl, } from "./extensions/tools/browser";
|
|
@@ -152,6 +159,8 @@ export type { ConfiguredAgentDelegationResult, ConfiguredAgentSummary, DelegateT
|
|
|
152
159
|
export type { SemanticSearchExecutor, SemanticSearchOptions, } from "./extensions/tools/types";
|
|
153
160
|
export { createGenerateVideoTool, defaultVideoPath, GENERATE_VIDEO_TOOL_DESCRIPTION, GENERATE_VIDEO_TOOL_INPUT_SCHEMA, GENERATE_VIDEO_TOOL_NAME, type GenerateVideoToolOptions, sniffVideoExtension, type VideoGenerationEndpoint, } from "./extensions/tools/video-generation";
|
|
154
161
|
export { createWebScrapeTools, WEB_SCRAPE_TOOL_NAME, type WebScrapeToolOptions, } from "./extensions/tools/web-scrape-tool";
|
|
162
|
+
export * from "./remote/remote-environments";
|
|
163
|
+
export { ensureLoginShellPath } from "./remote/shell-path";
|
|
155
164
|
export { BASE_REVISION, ESCALATION_REVISION_WORDING, type RevisionWording, TRANSACTION_REVISION_WORDING, withBaseRevisionReads, } from "./runtime/atomic/base-revision-reads";
|
|
156
165
|
export { describeRestoreTarget, type RestoreTarget, } from "./runtime/atomic/file-revisions";
|
|
157
166
|
export type { CheckApproval, CheckApprover, CheckProposal, } from "./runtime/atomic/proposal";
|
|
@@ -159,6 +168,7 @@ export { createRestoreFileTool, MAX_RESTORES_PER_TRANSACTION, RESTORE_FILE_TOOL_
|
|
|
159
168
|
export { createRunCheckTool, describeCheckRun, MAX_CHECKS_PER_TRANSACTION, RUN_CHECK_TOOL_DESCRIPTION, RUN_CHECK_TOOL_NAME, } from "./runtime/atomic/run-check-tool";
|
|
160
169
|
export { DEFAULT_MAX_CHANGES, DEFAULT_MAX_TRANSACTIONS, } from "./runtime/atomic/session-protocol";
|
|
161
170
|
export type { EscalationApproval } from "./runtime/escalation/escalation-session";
|
|
171
|
+
export { isClineAccountFeatureEnabled } from "./services/feature-flags/cline-account-feature-flags";
|
|
162
172
|
export { applyClineFeaturedModels, type ClineRecommendedModel, type ClineRecommendedModelsData, FALLBACK_CLINE_RECOMMENDED_MODELS, type FetchClineRecommendedModelsOptions, fetchClineRecommendedModels, getCachedClineRecommendedModels, peekClineRecommendedModels, resetClineRecommendedModelsCacheForTests, } from "./services/llms/cline-recommended-models";
|
|
163
173
|
export { createAgentModelFromConfig } from "./services/llms/handler-factory";
|
|
164
174
|
export { clearLiveModelsCatalogCache, clearPrivateModelsCatalogCache, DEFAULT_MODELS_CATALOG_URL, getLiveModelsCatalog, getProviderConfig, isPrivateModelCatalogProvider, OPENAI_COMPATIBLE_PROVIDERS, resolveProviderConfig, } from "./services/llms/provider-defaults";
|