@cline/core 0.0.46 → 0.0.47
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/ClineCore.d.ts +2 -0
- package/dist/cline-core/types.d.ts +7 -1
- package/dist/extensions/tools/helpers.d.ts +13 -0
- package/dist/hub/client/index.d.ts +2 -1
- package/dist/hub/daemon/entry.js +190 -190
- package/dist/hub/daemon/index.d.ts +6 -2
- package/dist/hub/daemon/start-shared-server.d.ts +4 -4
- package/dist/hub/discovery/index.d.ts +23 -1
- package/dist/hub/discovery/workspace.d.ts +1 -0
- package/dist/hub/index.js +189 -189
- package/dist/hub/server/hub-websocket-server.d.ts +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +189 -189
- package/dist/services/feature-flags/FeatureFlagsService.d.ts +30 -0
- package/dist/services/feature-flags/index.d.ts +2 -0
- package/dist/services/feature-flags/providers.d.ts +7 -0
- package/dist/services/telemetry/core-events.d.ts +3 -0
- package/dist/session/services/message-builder.d.ts +7 -0
- package/dist/types.d.ts +3 -1
- package/package.json +4 -4
package/dist/ClineCore.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ClineCoreAutomationApi, ClineCoreListHistoryOptions, ClineCoreOptions, ClineCoreSettingsApi, ClineCoreStartInput, RestoreInput, RestoreResult } from "./cline-core/types";
|
|
2
2
|
import type { PendingPromptsServiceApi, RuntimeHost, RuntimeHostSubscribeOptions, SessionModelRuntimeService, SessionUsageRuntimeService, StartSessionInput, StartSessionResult } from "./runtime/host/runtime-host";
|
|
3
|
+
import { FeatureFlagsService } from "./services/feature-flags";
|
|
3
4
|
import type { CoreSessionEvent } from "./types/events";
|
|
4
5
|
import type { SessionHistoryRecord } from "./types/sessions";
|
|
5
6
|
export type { ClineAutomationEventIngressResult, ClineAutomationEventLog, ClineAutomationEventSuppression, ClineAutomationListEventsOptions, ClineAutomationListRunsOptions, ClineAutomationListSpecsOptions, ClineAutomationRun, ClineAutomationRunStatus, ClineAutomationSpec, ClineCoreAutomationApi, ClineCoreAutomationOptions, ClineCoreListHistoryOptions, ClineCoreOptions, ClineCoreSettingsApi, ClineCoreStartInput, HubOptions, RemoteOptions, RestoreInput, RestoreOptions, RestoreResult, RuntimeHostMode, StartSessionBootstrap, } from "./cline-core/types";
|
|
@@ -19,6 +20,7 @@ export declare class ClineCore {
|
|
|
19
20
|
readonly runtimeAddress: string | undefined;
|
|
20
21
|
readonly automation: ClineCoreAutomationApi;
|
|
21
22
|
readonly settings: ClineCoreSettingsApi;
|
|
23
|
+
readonly featureFlags: FeatureFlagsService;
|
|
22
24
|
readonly pendingPrompts: PendingPromptsServiceApi;
|
|
23
25
|
private readonly host;
|
|
24
26
|
private readonly prepare;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Message } from "@cline/llms";
|
|
2
|
-
import type { AgentConfig, AutomationEventEnvelope, BasicLogger, ITelemetryService } from "@cline/shared";
|
|
2
|
+
import type { AgentConfig, AutomationEventEnvelope, BasicLogger, IFeatureFlagsProvider, ITelemetryService } from "@cline/shared";
|
|
3
3
|
import type { CronEventSuppression } from "../cron/events/cron-event-ingress";
|
|
4
4
|
import type { CronEventLogRecord, CronRunRecord, CronSpecRecord } from "../cron/store/sqlite-cron-store";
|
|
5
5
|
import type { CheckpointEntry } from "../hooks/checkpoint-hooks";
|
|
@@ -160,6 +160,12 @@ export interface ClineCoreOptions {
|
|
|
160
160
|
* If omitted, telemetry is a no-op.
|
|
161
161
|
*/
|
|
162
162
|
telemetry?: ITelemetryService;
|
|
163
|
+
/**
|
|
164
|
+
* Feature flags provider for this ClineCore instance. Core wraps the provider
|
|
165
|
+
* in a cached FeatureFlagsService and exposes it as `cline.featureFlags`.
|
|
166
|
+
* If omitted, Core uses a no-op provider with default flag values.
|
|
167
|
+
*/
|
|
168
|
+
featureFlags?: IFeatureFlagsProvider;
|
|
163
169
|
/**
|
|
164
170
|
* Optional structured logger for core-side operational diagnostics such as
|
|
165
171
|
* runtime-host selection and fallback decisions.
|
|
@@ -16,3 +16,16 @@ export declare function formatReadFileQuery(request: ReadFileRequest): string;
|
|
|
16
16
|
export declare function getReadFileRangeError(request: ReadFileRequest): string | null;
|
|
17
17
|
export declare function normalizeRunCommandsInput(input: unknown): Array<string | StructuredCommandInput>;
|
|
18
18
|
export declare function formatRunCommandQuery(command: string | StructuredCommandInput): string;
|
|
19
|
+
/**
|
|
20
|
+
* Max characters of the executed command echoed back in the tool result's
|
|
21
|
+
* `query` field. The full command already exists in the assistant tool-call
|
|
22
|
+
* input, so repeating it in the result only duplicates tokens in the
|
|
23
|
+
* provider request (expensive for large heredoc/file-generation commands).
|
|
24
|
+
*/
|
|
25
|
+
export declare const RUN_COMMAND_QUERY_PREVIEW_LIMIT = 200;
|
|
26
|
+
/**
|
|
27
|
+
* Bound the command echo placed in a provider-facing tool result.
|
|
28
|
+
* Short commands pass through unchanged; long commands keep a short
|
|
29
|
+
* prefix plus a truncation note so the result is still identifiable.
|
|
30
|
+
*/
|
|
31
|
+
export declare function formatRunCommandQueryPreview(command: string | StructuredCommandInput): string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type HubCommandEnvelope, type HubEventEnvelope, type HubReplyEnvelope } from "@cline/shared";
|
|
2
|
+
import { type HubOwnerContext } from "../discovery";
|
|
2
3
|
export interface HubClientOptions {
|
|
3
4
|
url: string;
|
|
4
5
|
clientId?: string;
|
|
@@ -80,7 +81,7 @@ export declare function verifyHubConnection(url: string, options?: Pick<HubClien
|
|
|
80
81
|
export declare function resolveCompatibleLocalHubUrl(options?: LocalHubResolutionOptions): Promise<string | undefined>;
|
|
81
82
|
export declare function ensureCompatibleLocalHubUrl(options?: LocalHubResolutionOptions): Promise<string | undefined>;
|
|
82
83
|
export declare function requestHubShutdown(url: string, authToken?: string): Promise<boolean>;
|
|
83
|
-
export declare function stopLocalHubServerGracefully(): Promise<boolean>;
|
|
84
|
+
export declare function stopLocalHubServerGracefully(owner?: HubOwnerContext): Promise<boolean>;
|
|
84
85
|
export declare function restartLocalHubIfIdleAfterStartupTimeout(options: {
|
|
85
86
|
url: string;
|
|
86
87
|
workspaceRoot?: string;
|