@cline/core 0.0.76 → 0.0.78
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/extensions/tools/index.d.ts +1 -1
- package/dist/extensions/tools/runtime.d.ts +5 -0
- package/dist/extensions/tools/team/delegated-agent.d.ts +10 -0
- package/dist/hub/client/index.d.ts +20 -0
- package/dist/hub/daemon/entry.js +258 -216
- package/dist/hub/daemon/index.d.ts +21 -0
- package/dist/hub/discovery/instance-lock.d.ts +51 -0
- package/dist/hub/index.d.ts +3 -0
- package/dist/hub/index.js +275 -234
- package/dist/hub/server/command-transport.d.ts +9 -0
- package/dist/hub/server/handlers/approval-handlers.d.ts +8 -1
- package/dist/hub/server/handlers/context.d.ts +13 -0
- package/dist/hub/server/handlers/run-queue-handlers.d.ts +33 -0
- package/dist/hub/server/handlers/session-handlers.d.ts +1 -1
- package/dist/hub/server/hub-event-log.d.ts +52 -0
- package/dist/hub/server/hub-run-queue.d.ts +82 -0
- package/dist/hub/server/hub-server-options.d.ts +10 -0
- package/dist/hub/server/hub-server-transport.d.ts +25 -0
- package/dist/hub/server/native-transport.d.ts +9 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +277 -236
- package/dist/runtime/host/local-runtime-host.d.ts +1 -0
- package/dist/runtime/orchestration/session-runtime.d.ts +5 -0
- package/dist/types.d.ts +1 -1
- package/package.json +4 -4
|
@@ -11,7 +11,7 @@ export { type ApplyPatchExecutorOptions, CommandExitError, computePatchChanges,
|
|
|
11
11
|
export { MAX_COMMAND_OUTPUT_CHARS, truncateCommandOutput, } from "./executors/output-limits";
|
|
12
12
|
export { DEFAULT_MODEL_TOOL_ROUTING_RULES, resolveToolRoutingConfig, type ToolRoutingRule, } from "./model-tool-routing";
|
|
13
13
|
export { createDefaultToolsWithPreset, createToolPoliciesWithPreset, resolveToolPresetName, type ToolPolicyPresetName, type ToolPresetName, ToolPresets, } from "./presets";
|
|
14
|
-
export { type BuiltinToolAvailabilityContext, getCoreAcpToolNames, getCoreBuiltinToolCatalog, getCoreDefaultEnabledToolIds, getCoreHeadlessToolNames, isSkillsToolAvailable, resolveCoreSelectedToolIds, type ToolCatalogEntry, } from "./runtime";
|
|
14
|
+
export { type BuiltinToolAvailabilityContext, getCoreAcpToolNames, getCoreBuiltinToolCatalog, getCoreDefaultEnabledToolIds, getCoreHeadlessToolNames, isCoreBuiltinToolAvailable, isSkillsToolAvailable, resolveCoreSelectedToolIds, resolveToolClientType, type ToolCatalogEntry, type ToolClientType, } from "./runtime";
|
|
15
15
|
export { type ApplyPatchInput, ApplyPatchInputSchema, type AskQuestionInput, AskQuestionInputSchema, type EditFileInput, EditFileInputSchema, type FetchWebContentInput, FetchWebContentInputSchema, type ReadFileRequest, ReadFileRequestSchema, type ReadFilesInput, ReadFilesInputSchema, type RunCommandsInput, RunCommandsInputSchema, type SearchCodebaseInput, SearchCodebaseInputSchema, type SkillsInput, SkillsInputSchema, type StructuredCommandInput, StructuredCommandInputSchema, type SubmitInput, SubmitInputSchema, type WebFetchRequest, WebFetchRequestSchema, } from "./schemas";
|
|
16
16
|
export { TEAM_TOOL_NAMES } from "./team/team-tools";
|
|
17
17
|
export type { ApplyPatchExecutor, AskQuestionExecutor, CreateDefaultToolsOptions, DefaultToolName, DefaultToolsConfig, EditorExecutor, FileReadExecutor, SearchExecutor, ShellExecutor, SkillsExecutor, SkillsExecutorSkillMetadata, SkillsExecutorWithMetadata, ToolExecutors, ToolOperationResult, VerifySubmitExecutor, WebFetchExecutor, } from "./types";
|
|
@@ -4,9 +4,13 @@ export interface ToolCatalogEntry {
|
|
|
4
4
|
description: string;
|
|
5
5
|
defaultEnabled: boolean;
|
|
6
6
|
headlessToolNames: string[];
|
|
7
|
+
unavailableClientTypes?: readonly ToolClientType[];
|
|
7
8
|
}
|
|
9
|
+
export type ToolClientType = "cli" | "vscode";
|
|
10
|
+
export declare function resolveToolClientType(source?: string): ToolClientType | undefined;
|
|
8
11
|
export interface BuiltinToolAvailabilityContext {
|
|
9
12
|
mode?: CoreAgentMode;
|
|
13
|
+
clientType?: ToolClientType;
|
|
10
14
|
providerId?: string;
|
|
11
15
|
modelId?: string;
|
|
12
16
|
enableSpawnAgent?: boolean;
|
|
@@ -14,6 +18,7 @@ export interface BuiltinToolAvailabilityContext {
|
|
|
14
18
|
disabledToolIds?: ReadonlySet<string>;
|
|
15
19
|
enabledModelToolIds?: ReadonlySet<string>;
|
|
16
20
|
}
|
|
21
|
+
export declare function isCoreBuiltinToolAvailable(toolName: string, clientType?: ToolClientType): boolean;
|
|
17
22
|
export declare function getCoreBuiltinToolCatalog(context?: BuiltinToolAvailabilityContext): ToolCatalogEntry[];
|
|
18
23
|
/**
|
|
19
24
|
* Whether the `skills` tool is part of a session's default toolset for this
|
|
@@ -13,6 +13,16 @@ export interface DelegatedAgentRuntimeConfig extends DelegatedAgentConnectionCon
|
|
|
13
13
|
logger?: BasicLogger;
|
|
14
14
|
telemetry?: ITelemetryService;
|
|
15
15
|
workspaceMetadata?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Stable end-user identity inherited from the parent session so
|
|
18
|
+
* delegated-agent telemetry (Langfuse `userId`) groups with the user.
|
|
19
|
+
*/
|
|
20
|
+
distinctId?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Root core session id inherited from the parent session so
|
|
23
|
+
* delegated-agent telemetry (Langfuse `sessionId`) groups with it.
|
|
24
|
+
*/
|
|
25
|
+
sessionId?: string;
|
|
16
26
|
}
|
|
17
27
|
export interface DelegatedAgentConfigProvider {
|
|
18
28
|
getRuntimeConfig(): DelegatedAgentRuntimeConfig;
|
|
@@ -46,6 +46,14 @@ export declare class NodeHubClient {
|
|
|
46
46
|
private readonly pendingReplies;
|
|
47
47
|
private readonly listeners;
|
|
48
48
|
private readonly subscriptionCounts;
|
|
49
|
+
/**
|
|
50
|
+
* Highest durable event sequence observed per subscription key. Sent as
|
|
51
|
+
* `sinceSequence` when a subscription frame is (re)issued, so a hub with a
|
|
52
|
+
* durable event log replays exactly what this client missed while
|
|
53
|
+
* disconnected. Hubs without a log ignore the cursor (live-only, the
|
|
54
|
+
* legacy behavior).
|
|
55
|
+
*/
|
|
56
|
+
private readonly lastEventSequenceByKey;
|
|
49
57
|
private reconnectTimer;
|
|
50
58
|
private reconnectAttempt;
|
|
51
59
|
private closedByClient;
|
|
@@ -100,6 +108,18 @@ export declare function hasActiveHubSessions(payload: unknown): boolean;
|
|
|
100
108
|
export declare function localHubHasNoActiveSessions(url: string, authToken?: string, options?: Pick<HubClientOptions, "workspaceRoot" | "cwd">): Promise<boolean>;
|
|
101
109
|
export declare function resolveCompatibleLocalHubUrl(options?: LocalHubResolutionOptions): Promise<string | undefined>;
|
|
102
110
|
export declare function ensureCompatibleLocalHubUrl(options?: LocalHubResolutionOptions): Promise<string | undefined>;
|
|
111
|
+
/**
|
|
112
|
+
* Ask a hub to stop admitting new mutating work (sessions, runs) while its
|
|
113
|
+
* accepted work finishes. Best-effort: pre-drain hubs answer 404 and the
|
|
114
|
+
* caller proceeds without it.
|
|
115
|
+
*
|
|
116
|
+
* Pass `{ off: true }` to lift a drain (`POST /drain?off`): an aborted
|
|
117
|
+
* upgrade must be able to hand the hub back instead of leaving it refusing
|
|
118
|
+
* work until a restart.
|
|
119
|
+
*/
|
|
120
|
+
export declare function requestHubDrain(url: string, authToken?: string, reason?: string, options?: {
|
|
121
|
+
off?: boolean;
|
|
122
|
+
}): Promise<boolean>;
|
|
103
123
|
export declare function requestHubShutdown(url: string, authToken?: string): Promise<boolean>;
|
|
104
124
|
export declare function stopLocalHubServerGracefully(owner?: HubOwnerContext): Promise<boolean>;
|
|
105
125
|
export declare function restartLocalHubIfIdleAfterStartupTimeout(options: {
|