@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
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { BasicLogger, FeatureFlagPayload, FeatureFlagsContext, IFeatureFlagsProvider, ITelemetryService } from "@cline/shared";
|
|
2
|
+
import { type FeatureFlag } from "@cline/shared";
|
|
3
|
+
export interface FeatureFlagsServiceOptions {
|
|
4
|
+
provider: IFeatureFlagsProvider;
|
|
5
|
+
telemetry?: ITelemetryService;
|
|
6
|
+
logger?: BasicLogger;
|
|
7
|
+
cacheTtlMs?: number;
|
|
8
|
+
context?: FeatureFlagsContext;
|
|
9
|
+
}
|
|
10
|
+
export declare class FeatureFlagsService {
|
|
11
|
+
private readonly provider;
|
|
12
|
+
private readonly telemetry?;
|
|
13
|
+
private readonly logger?;
|
|
14
|
+
private readonly cacheTtlMs;
|
|
15
|
+
private context;
|
|
16
|
+
private cache;
|
|
17
|
+
private cacheInfo;
|
|
18
|
+
constructor(options: FeatureFlagsServiceOptions);
|
|
19
|
+
setContext(context: FeatureFlagsContext): void;
|
|
20
|
+
poll(userId?: string | null): Promise<void>;
|
|
21
|
+
private getReturnedFlagKeys;
|
|
22
|
+
private getFeatureFlag;
|
|
23
|
+
getBooleanFlagEnabled(flagName: FeatureFlag): boolean;
|
|
24
|
+
getFlagPayload(flagName: FeatureFlag): FeatureFlagPayload | undefined;
|
|
25
|
+
getProvider(): IFeatureFlagsProvider;
|
|
26
|
+
get enabled(): boolean;
|
|
27
|
+
getSettings(): import("@cline/shared").FeatureFlagsSettings;
|
|
28
|
+
test(flagName: FeatureFlag, value: boolean): void;
|
|
29
|
+
dispose(): Promise<void>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FeatureFlagsAndPayloads, FeatureFlagsSettings, IFeatureFlagsProvider } from "@cline/shared";
|
|
2
|
+
export declare class NoOpFeatureFlagsProvider implements IFeatureFlagsProvider {
|
|
3
|
+
getAllFlagsAndPayloads(): Promise<FeatureFlagsAndPayloads>;
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
getSettings(): FeatureFlagsSettings;
|
|
6
|
+
dispose(): Promise<void>;
|
|
7
|
+
}
|
|
@@ -61,6 +61,9 @@ export declare const CORE_TELEMETRY_EVENTS: {
|
|
|
61
61
|
readonly ERROR: "sdk.error";
|
|
62
62
|
readonly TOOL_TIMEOUT: "sdk.tool_timeout";
|
|
63
63
|
};
|
|
64
|
+
readonly FEATURE_FLAGS: {
|
|
65
|
+
readonly FLAG_CALLED: "$feature_flag_called";
|
|
66
|
+
};
|
|
64
67
|
};
|
|
65
68
|
export interface RunCommandsTimeoutTelemetryProperties {
|
|
66
69
|
tool_name: "run_commands";
|
|
@@ -59,6 +59,13 @@ export declare class MessageBuilder {
|
|
|
59
59
|
private isReadTool;
|
|
60
60
|
private shouldTruncateTool;
|
|
61
61
|
private truncateToolResultContent;
|
|
62
|
+
/**
|
|
63
|
+
* Deep-truncates string values inside structured tool outputs (e.g.
|
|
64
|
+
* `ToolOperationResult[]` from run_commands/read_files), which carry the
|
|
65
|
+
* payload in untyped `{query, result, ...}` fields rather than text
|
|
66
|
+
* blocks. Image blocks are left intact so base64 payloads survive.
|
|
67
|
+
*/
|
|
68
|
+
private truncateNestedStrings;
|
|
62
69
|
private truncateMiddle;
|
|
63
70
|
private truncateToTotalTextBudget;
|
|
64
71
|
private countMessageTextBytes;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export type { AgentRunResult, AgentRunStatus, WorkspaceInfo, WorkspaceManifest, } from "@cline/shared";
|
|
1
|
+
export type { AgentRunResult, AgentRunStatus, FeatureFlag, FeatureFlagPayload, FeatureFlagsAndPayloads, FeatureFlagsContext, FeatureFlagsSettings, IFeatureFlagsProvider, WorkspaceInfo, WorkspaceManifest, } from "@cline/shared";
|
|
2
|
+
export { FEATURE_FLAGS, FeatureFlagDefaultValue, } from "@cline/shared";
|
|
2
3
|
export { ClineCore } from "./ClineCore";
|
|
3
4
|
export type { ClineCoreListHistoryOptions, ClineCoreOptions, ClineCoreStartInput, HubOptions, RemoteOptions, } from "./cline-core/types";
|
|
4
5
|
export type { LoadAgentPluginFromPathOptions, ResolveAgentPluginPathsOptions, } from "./extensions";
|
|
@@ -13,6 +14,7 @@ export type { PendingPromptMutationResult, PendingPromptsDeleteInput, PendingPro
|
|
|
13
14
|
export type { BuiltRuntime as RuntimeEnvironment, RuntimeBuilder, RuntimeBuilderInput, SessionRuntime, } from "./runtime/orchestration/session-runtime";
|
|
14
15
|
export type { SandboxCallOptions, SubprocessSandboxOptions, } from "./runtime/tools/subprocess-sandbox";
|
|
15
16
|
export { SubprocessSandbox } from "./runtime/tools/subprocess-sandbox";
|
|
17
|
+
export { FeatureFlagsService, type FeatureFlagsServiceOptions, NoOpFeatureFlagsProvider, } from "./services/feature-flags";
|
|
16
18
|
export type { GlobalSettings } from "./services/global-settings";
|
|
17
19
|
export { filterDisabledPluginPaths, filterDisabledTools, filterExtensionToolRegistrations, GlobalSettingsSchema, isAutoUpdateEnabledGlobally, isPluginDisabledGlobally, isTelemetryOptedOutGlobally, isToolDisabledGlobally, readGlobalSettings, resolveDisabledPluginPaths, resolveDisabledToolNames, setAutoUpdateEnabledGlobally, setDisabledPlugin, setDisabledTools, setTelemetryOptOutGlobally, toggleDisabledTool, writeGlobalSettings, } from "./services/global-settings";
|
|
18
20
|
export type { ListPluginToolsResult, PluginToolSummary, } from "./services/plugin-tools";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cline/core",
|
|
3
3
|
"description": "Cline Core SDK for Node Runtime",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.47",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/cline/cline",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"test:watch": "vitest --config vitest.config.ts"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@cline/agents": "0.0.
|
|
48
|
-
"@cline/shared": "0.0.
|
|
49
|
-
"@cline/llms": "0.0.
|
|
47
|
+
"@cline/agents": "0.0.47",
|
|
48
|
+
"@cline/shared": "0.0.47",
|
|
49
|
+
"@cline/llms": "0.0.47",
|
|
50
50
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
51
51
|
"@opentelemetry/api": "^1.9.0",
|
|
52
52
|
"@opentelemetry/api-logs": "^0.214.0",
|