@cline/core 0.0.38-nightly.1778113663

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.
Files changed (227) hide show
  1. package/README.md +108 -0
  2. package/dist/ClineCore.d.ts +282 -0
  3. package/dist/account/cline-account-service.d.ts +37 -0
  4. package/dist/account/index.d.ts +3 -0
  5. package/dist/account/rpc.d.ts +40 -0
  6. package/dist/account/types.d.ts +98 -0
  7. package/dist/auth/bounded-ttl-cache.d.ts +13 -0
  8. package/dist/auth/client.d.ts +30 -0
  9. package/dist/auth/cline.d.ts +64 -0
  10. package/dist/auth/codex.d.ts +43 -0
  11. package/dist/auth/oca.d.ts +28 -0
  12. package/dist/auth/server.d.ts +54 -0
  13. package/dist/auth/types.d.ts +103 -0
  14. package/dist/auth/utils.d.ts +32 -0
  15. package/dist/cline-core/automation.d.ts +34 -0
  16. package/dist/cline-core/runtime-services.d.ts +5 -0
  17. package/dist/cline-core/start-input.d.ts +10 -0
  18. package/dist/cline-core/telemetry.d.ts +10 -0
  19. package/dist/cline-core/types.d.ts +221 -0
  20. package/dist/cron/events/cron-event-ingress.d.ts +37 -0
  21. package/dist/cron/reports/cron-report-writer.d.ts +40 -0
  22. package/dist/cron/runner/cron-materializer.d.ts +35 -0
  23. package/dist/cron/runner/cron-runner.d.ts +45 -0
  24. package/dist/cron/runner/resource-limiter.d.ts +8 -0
  25. package/dist/cron/schedule/scheduler.d.ts +12 -0
  26. package/dist/cron/service/cron-service.d.ts +56 -0
  27. package/dist/cron/service/schedule-command-service.d.ts +9 -0
  28. package/dist/cron/service/schedule-service.d.ts +98 -0
  29. package/dist/cron/specs/cron-reconciler.d.ts +61 -0
  30. package/dist/cron/specs/cron-spec-parser.d.ts +26 -0
  31. package/dist/cron/specs/cron-watcher.d.ts +22 -0
  32. package/dist/cron/store/cron-schema.d.ts +2 -0
  33. package/dist/cron/store/sqlite-cron-store.d.ts +240 -0
  34. package/dist/extensions/config/index.d.ts +7 -0
  35. package/dist/extensions/config/runtime-commands.d.ts +11 -0
  36. package/dist/extensions/config/skill-frontmatter-toggle.d.ts +11 -0
  37. package/dist/extensions/config/unified-config-file-watcher.d.ts +77 -0
  38. package/dist/extensions/config/user-instruction-config-loader.d.ts +64 -0
  39. package/dist/extensions/config/user-instruction-plugin.d.ts +25 -0
  40. package/dist/extensions/config/user-instruction-service.d.ts +23 -0
  41. package/dist/extensions/context/agentic-compaction.d.ts +12 -0
  42. package/dist/extensions/context/basic-compaction.d.ts +8 -0
  43. package/dist/extensions/context/compaction-shared.d.ts +60 -0
  44. package/dist/extensions/context/compaction.d.ts +24 -0
  45. package/dist/extensions/index.d.ts +5 -0
  46. package/dist/extensions/mcp/client.d.ts +2 -0
  47. package/dist/extensions/mcp/config-loader.d.ts +15 -0
  48. package/dist/extensions/mcp/index.d.ts +8 -0
  49. package/dist/extensions/mcp/manager.d.ts +23 -0
  50. package/dist/extensions/mcp/name-transform.d.ts +2 -0
  51. package/dist/extensions/mcp/policies.d.ts +14 -0
  52. package/dist/extensions/mcp/tools.d.ts +3 -0
  53. package/dist/extensions/mcp/types.d.ts +94 -0
  54. package/dist/extensions/plugin/plugin-config-loader.d.ts +40 -0
  55. package/dist/extensions/plugin/plugin-load-report.d.ts +18 -0
  56. package/dist/extensions/plugin/plugin-loader.d.ts +22 -0
  57. package/dist/extensions/plugin/plugin-module-import.d.ts +4 -0
  58. package/dist/extensions/plugin/plugin-sandbox.d.ts +36 -0
  59. package/dist/extensions/plugin/plugin-targeting.d.ts +6 -0
  60. package/dist/extensions/plugin-sandbox-bootstrap.js +1 -0
  61. package/dist/extensions/tools/constants.d.ts +24 -0
  62. package/dist/extensions/tools/definitions.d.ts +102 -0
  63. package/dist/extensions/tools/executors/apply-patch-parser.d.ts +68 -0
  64. package/dist/extensions/tools/executors/apply-patch.d.ts +28 -0
  65. package/dist/extensions/tools/executors/bash.d.ts +49 -0
  66. package/dist/extensions/tools/executors/editor.d.ts +31 -0
  67. package/dist/extensions/tools/executors/file-read.d.ts +40 -0
  68. package/dist/extensions/tools/executors/index.d.ts +50 -0
  69. package/dist/extensions/tools/executors/search.d.ts +50 -0
  70. package/dist/extensions/tools/executors/web-fetch.d.ts +58 -0
  71. package/dist/extensions/tools/helpers.d.ts +15 -0
  72. package/dist/extensions/tools/index.d.ts +59 -0
  73. package/dist/extensions/tools/model-tool-routing.d.ts +33 -0
  74. package/dist/extensions/tools/presets.d.ts +132 -0
  75. package/dist/extensions/tools/runtime.d.ts +24 -0
  76. package/dist/extensions/tools/schemas.d.ts +241 -0
  77. package/dist/extensions/tools/team/delegated-agent.d.ts +43 -0
  78. package/dist/extensions/tools/team/index.d.ts +2 -0
  79. package/dist/extensions/tools/team/multi-agent.d.ts +230 -0
  80. package/dist/extensions/tools/team/projections.d.ts +8 -0
  81. package/dist/extensions/tools/team/runtime.d.ts +4 -0
  82. package/dist/extensions/tools/team/spawn-agent-tool.d.ts +83 -0
  83. package/dist/extensions/tools/team/subagent-prompts.d.ts +3 -0
  84. package/dist/extensions/tools/team/team-tools.d.ts +35 -0
  85. package/dist/extensions/tools/types.d.ts +254 -0
  86. package/dist/hooks/checkpoint-hooks.d.ts +45 -0
  87. package/dist/hooks/hook-extension.d.ts +2 -0
  88. package/dist/hooks/hook-file-config.d.ts +24 -0
  89. package/dist/hooks/hook-file-hooks.d.ts +21 -0
  90. package/dist/hooks/index.d.ts +5 -0
  91. package/dist/hooks/subprocess-runner.d.ts +21 -0
  92. package/dist/hooks/subprocess.d.ts +68 -0
  93. package/dist/hub/client/connect.d.ts +14 -0
  94. package/dist/hub/client/index.d.ts +88 -0
  95. package/dist/hub/client/session-client.d.ts +118 -0
  96. package/dist/hub/client/ui-client.d.ts +45 -0
  97. package/dist/hub/daemon/entry.d.ts +1 -0
  98. package/dist/hub/daemon/entry.js +720 -0
  99. package/dist/hub/daemon/index.d.ts +8 -0
  100. package/dist/hub/daemon/runtime-handlers.d.ts +12 -0
  101. package/dist/hub/daemon/start-shared-server.d.ts +18 -0
  102. package/dist/hub/discovery/defaults.d.ts +16 -0
  103. package/dist/hub/discovery/index.d.ts +30 -0
  104. package/dist/hub/discovery/workspace.d.ts +3 -0
  105. package/dist/hub/index.d.ts +32 -0
  106. package/dist/hub/index.js +717 -0
  107. package/dist/hub/runtime-host/hub-runtime-host.d.ts +73 -0
  108. package/dist/hub/runtime-host/remote-runtime-host.d.ts +9 -0
  109. package/dist/hub/server/browser-websocket.d.ts +17 -0
  110. package/dist/hub/server/command-transport.d.ts +7 -0
  111. package/dist/hub/server/handlers/approval-handlers.d.ts +17 -0
  112. package/dist/hub/server/handlers/capability-handlers.d.ts +12 -0
  113. package/dist/hub/server/handlers/client-handlers.d.ts +6 -0
  114. package/dist/hub/server/handlers/context.d.ts +56 -0
  115. package/dist/hub/server/handlers/run-handlers.d.ts +5 -0
  116. package/dist/hub/server/handlers/session-event-projector.d.ts +7 -0
  117. package/dist/hub/server/handlers/session-handlers.d.ts +20 -0
  118. package/dist/hub/server/hub-client-contributions.d.ts +19 -0
  119. package/dist/hub/server/hub-notifications.d.ts +7 -0
  120. package/dist/hub/server/hub-schedule-events.d.ts +2 -0
  121. package/dist/hub/server/hub-server-logging.d.ts +2 -0
  122. package/dist/hub/server/hub-server-options.d.ts +55 -0
  123. package/dist/hub/server/hub-server-transport.d.ts +34 -0
  124. package/dist/hub/server/hub-session-records.d.ts +8 -0
  125. package/dist/hub/server/hub-websocket-server.d.ts +6 -0
  126. package/dist/hub/server/index.d.ts +4 -0
  127. package/dist/hub/server/native-transport.d.ts +16 -0
  128. package/dist/index.d.ts +102 -0
  129. package/dist/index.js +715 -0
  130. package/dist/runtime/capabilities/index.d.ts +2 -0
  131. package/dist/runtime/capabilities/normalize-runtime-capabilities.d.ts +2 -0
  132. package/dist/runtime/capabilities/runtime-capabilities.d.ts +6 -0
  133. package/dist/runtime/config/agent-message-codec.d.ts +6 -0
  134. package/dist/runtime/config/agent-runtime-config-builder.d.ts +87 -0
  135. package/dist/runtime/host/history.d.ts +18 -0
  136. package/dist/runtime/host/host.d.ts +7 -0
  137. package/dist/runtime/host/local/agent-event-bridge.d.ts +29 -0
  138. package/dist/runtime/host/local/session-record.d.ts +6 -0
  139. package/dist/runtime/host/local/session-service-invoker.d.ts +4 -0
  140. package/dist/runtime/host/local/spawn-tool.d.ts +15 -0
  141. package/dist/runtime/host/local/user-files.d.ts +1 -0
  142. package/dist/runtime/host/local-runtime-host.d.ts +119 -0
  143. package/dist/runtime/host/runtime-host-support.d.ts +20 -0
  144. package/dist/runtime/host/runtime-host.d.ts +163 -0
  145. package/dist/runtime/orchestration/runtime-builder.d.ts +6 -0
  146. package/dist/runtime/orchestration/runtime-event-adapter.d.ts +101 -0
  147. package/dist/runtime/orchestration/runtime-oauth-token-manager.d.ts +30 -0
  148. package/dist/runtime/orchestration/session-runtime-orchestrator.d.ts +218 -0
  149. package/dist/runtime/orchestration/session-runtime.d.ts +58 -0
  150. package/dist/runtime/orchestration/user-input-builder.d.ts +15 -0
  151. package/dist/runtime/safety/loop-detection.d.ts +58 -0
  152. package/dist/runtime/safety/mistake-tracker.d.ts +68 -0
  153. package/dist/runtime/safety/rules.d.ts +6 -0
  154. package/dist/runtime/tools/subprocess-sandbox.d.ts +43 -0
  155. package/dist/runtime/tools/tool-approval.d.ts +9 -0
  156. package/dist/runtime/turn-queue/pending-prompt-service.d.ts +64 -0
  157. package/dist/services/agent-events.d.ts +33 -0
  158. package/dist/services/config.d.ts +2 -0
  159. package/dist/services/global-settings.d.ts +34 -0
  160. package/dist/services/llms/cline-recommended-models.d.ts +19 -0
  161. package/dist/services/llms/configured-provider-registry.d.ts +27 -0
  162. package/dist/services/llms/handler-factory.d.ts +3 -0
  163. package/dist/services/llms/provider-defaults.d.ts +28 -0
  164. package/dist/services/llms/provider-settings.d.ts +247 -0
  165. package/dist/services/llms/runtime-config.d.ts +3 -0
  166. package/dist/services/llms/runtime-registry.d.ts +19 -0
  167. package/dist/services/llms/runtime-types.d.ts +84 -0
  168. package/dist/services/local-runtime-bootstrap.d.ts +45 -0
  169. package/dist/services/plugin-tools.d.ts +15 -0
  170. package/dist/services/providers/local-provider-registry.d.ts +218 -0
  171. package/dist/services/providers/local-provider-service.d.ts +99 -0
  172. package/dist/services/providers/model-source.d.ts +3 -0
  173. package/dist/services/session-artifacts.d.ts +17 -0
  174. package/dist/services/session-data.d.ts +51 -0
  175. package/dist/services/session-telemetry.d.ts +15 -0
  176. package/dist/services/storage/file-team-store.d.ts +28 -0
  177. package/dist/services/storage/provider-settings-legacy-migration.d.ts +38 -0
  178. package/dist/services/storage/provider-settings-manager.d.ts +23 -0
  179. package/dist/services/storage/sqlite-session-store.d.ts +30 -0
  180. package/dist/services/storage/sqlite-team-store.d.ts +34 -0
  181. package/dist/services/storage/team-store.d.ts +15 -0
  182. package/dist/services/telemetry/ITelemetryAdapter.d.ts +54 -0
  183. package/dist/services/telemetry/OpenTelemetryAdapter.d.ts +43 -0
  184. package/dist/services/telemetry/OpenTelemetryProvider.d.ts +83 -0
  185. package/dist/services/telemetry/TelemetryLoggerSink.d.ts +27 -0
  186. package/dist/services/telemetry/TelemetryService.d.ts +34 -0
  187. package/dist/services/telemetry/core-events.d.ts +198 -0
  188. package/dist/services/telemetry/distinct-id.d.ts +1 -0
  189. package/dist/services/telemetry/index.d.ts +3 -0
  190. package/dist/services/telemetry/index.js +1 -0
  191. package/dist/services/usage.d.ts +18 -0
  192. package/dist/services/workspace/file-indexer.d.ts +5 -0
  193. package/dist/services/workspace/index.d.ts +4 -0
  194. package/dist/services/workspace/mention-enricher.d.ts +13 -0
  195. package/dist/services/workspace/workspace-manager.d.ts +27 -0
  196. package/dist/services/workspace/workspace-manifest.d.ts +31 -0
  197. package/dist/services/workspace/workspace-telemetry.d.ts +18 -0
  198. package/dist/session/checkpoint-restore.d.ts +20 -0
  199. package/dist/session/models/session-graph.d.ts +15 -0
  200. package/dist/session/models/session-manifest.d.ts +29 -0
  201. package/dist/session/models/session-row.d.ts +92 -0
  202. package/dist/session/services/file-session-service.d.ts +8 -0
  203. package/dist/session/services/message-builder.d.ts +66 -0
  204. package/dist/session/services/persistence-service.d.ts +58 -0
  205. package/dist/session/services/session-service.d.ts +13 -0
  206. package/dist/session/session-snapshot.d.ts +57 -0
  207. package/dist/session/session-versioning-service.d.ts +48 -0
  208. package/dist/session/stores/conversation-store.d.ts +29 -0
  209. package/dist/session/stores/session-manifest-store.d.ts +21 -0
  210. package/dist/session/stores/team-persistence-store.d.ts +23 -0
  211. package/dist/session/team/index.d.ts +2 -0
  212. package/dist/session/team/team-child-session-manager.d.ts +35 -0
  213. package/dist/session/team/team-session-coordinator.d.ts +13 -0
  214. package/dist/settings/index.d.ts +2 -0
  215. package/dist/settings/settings-service.d.ts +6 -0
  216. package/dist/settings/types.d.ts +42 -0
  217. package/dist/types/chat-schema.d.ts +161 -0
  218. package/dist/types/common.d.ts +19 -0
  219. package/dist/types/config.d.ts +167 -0
  220. package/dist/types/events.d.ts +89 -0
  221. package/dist/types/provider-settings.d.ts +19 -0
  222. package/dist/types/session.d.ts +116 -0
  223. package/dist/types/sessions.d.ts +28 -0
  224. package/dist/types/storage.d.ts +36 -0
  225. package/dist/types.d.ts +32 -0
  226. package/dist/version.d.ts +1 -0
  227. package/package.json +83 -0
@@ -0,0 +1,118 @@
1
+ import type * as LlmsProviders from "@cline/llms";
2
+ import type { ChatRunTurnRequest, ChatStartSessionRequest, ChatStartSessionResponse, ChatTurnResult, TeamProgressProjectionEvent } from "@cline/shared";
3
+ import type { CheckpointEntry } from "../../hooks/checkpoint-hooks";
4
+ type ScheduleClientRecord = Record<string, unknown> & {
5
+ metadata?: Record<string, unknown>;
6
+ };
7
+ export interface HubSessionClientOptions {
8
+ address: string;
9
+ authToken?: string;
10
+ clientId?: string;
11
+ clientType?: string;
12
+ displayName?: string;
13
+ workspaceRoot?: string;
14
+ cwd?: string;
15
+ metadata?: Record<string, unknown>;
16
+ }
17
+ export interface HubSessionRow {
18
+ sessionId: string;
19
+ parentSessionId?: string;
20
+ metadata?: Record<string, unknown>;
21
+ messagesPath?: string;
22
+ }
23
+ export interface HubStreamEvent {
24
+ sessionId: string;
25
+ eventType: string;
26
+ payload: Record<string, unknown>;
27
+ }
28
+ export interface HubRestoreRequest {
29
+ sessionId: string;
30
+ checkpointRunCount: number;
31
+ config?: ChatStartSessionRequest;
32
+ restore?: {
33
+ messages?: boolean;
34
+ workspace?: boolean;
35
+ omitCheckpointMessageFromSession?: boolean;
36
+ };
37
+ }
38
+ export interface HubRestoreResponse {
39
+ sessionId?: string;
40
+ startResult?: {
41
+ sessionId: string;
42
+ manifestPath: string;
43
+ messagesPath: string;
44
+ };
45
+ messages?: LlmsProviders.Message[];
46
+ checkpoint: CheckpointEntry;
47
+ }
48
+ export interface HubEventStreamHandlers {
49
+ onEvent?: (event: HubStreamEvent) => void;
50
+ onError?: (error: Error) => void;
51
+ }
52
+ export interface HubTeamProgressHandlers {
53
+ onProjection?: (event: TeamProgressProjectionEvent) => void;
54
+ onError?: (error: Error) => void;
55
+ }
56
+ export declare class HubSessionClient {
57
+ private readonly options;
58
+ private readonly client;
59
+ private metadataApplied;
60
+ constructor(options: HubSessionClientOptions);
61
+ private ensureMetadataApplied;
62
+ connect(): Promise<void>;
63
+ close(): void;
64
+ dispose(): Promise<void>;
65
+ startRuntimeSession(request: ChatStartSessionRequest): Promise<ChatStartSessionResponse>;
66
+ sendRuntimeSession(sessionId: string, request: ChatRunTurnRequest, options?: {
67
+ timeoutMs?: number | null;
68
+ }): Promise<{
69
+ result?: ChatTurnResult;
70
+ }>;
71
+ stopRuntimeSession(sessionId: string): Promise<{
72
+ applied: boolean;
73
+ }>;
74
+ abortRuntimeSession(sessionId: string): Promise<{
75
+ applied: boolean;
76
+ }>;
77
+ updateSession(input: {
78
+ sessionId: string;
79
+ metadata?: Record<string, unknown>;
80
+ }): Promise<{
81
+ updated: boolean;
82
+ }>;
83
+ getSession(sessionId: string): Promise<HubSessionRow | undefined>;
84
+ readMessages(sessionId: string): Promise<LlmsProviders.Message[]>;
85
+ restore(input: HubRestoreRequest): Promise<HubRestoreResponse>;
86
+ listSessions(input?: {
87
+ limit?: number;
88
+ }): Promise<HubSessionRow[]>;
89
+ deleteSession(sessionId: string, deleteCheckpointRefs?: boolean): Promise<boolean>;
90
+ respondToolApproval(input: {
91
+ approvalId: string;
92
+ approved: boolean;
93
+ reason?: string;
94
+ responderClientId?: string;
95
+ }): Promise<void>;
96
+ streamEvents(input: {
97
+ clientId?: string;
98
+ sessionIds?: string[];
99
+ }, handlers: HubEventStreamHandlers): () => void;
100
+ streamTeamProgress(_input: {
101
+ clientId?: string;
102
+ }, handlers: HubTeamProgressHandlers): () => void;
103
+ createSchedule(input: Record<string, unknown>): Promise<ScheduleClientRecord | undefined>;
104
+ listSchedules(_input?: {
105
+ limit?: number;
106
+ }): Promise<ScheduleClientRecord[]>;
107
+ getSchedule(scheduleId: string): Promise<ScheduleClientRecord | undefined>;
108
+ updateSchedule(scheduleId: string, input: Record<string, unknown>): Promise<ScheduleClientRecord | undefined>;
109
+ pauseSchedule(scheduleId: string): Promise<ScheduleClientRecord | undefined>;
110
+ resumeSchedule(scheduleId: string): Promise<ScheduleClientRecord | undefined>;
111
+ deleteSchedule(scheduleId: string): Promise<boolean>;
112
+ triggerScheduleNow(scheduleId: string): Promise<Record<string, unknown> | undefined>;
113
+ listScheduleExecutions(scheduleId: string, limit?: number): Promise<Array<Record<string, unknown>>>;
114
+ getScheduleStats(): Promise<Record<string, unknown> | undefined>;
115
+ getActiveScheduledExecutions(): Promise<Array<Record<string, unknown>>>;
116
+ getUpcomingScheduledRuns(limit?: number): Promise<Array<Record<string, unknown>>>;
117
+ }
118
+ export {};
@@ -0,0 +1,45 @@
1
+ import type { HubClientRecord, HubUINotifyPayload, HubUIShowWindowPayload, SessionRecord } from "@cline/shared";
2
+ export interface HubUIClientOptions {
3
+ address: string;
4
+ authToken?: string;
5
+ clientId?: string;
6
+ clientType?: string;
7
+ displayName?: string;
8
+ }
9
+ /**
10
+ * A lightweight hub client for UI/notification concerns.
11
+ * Used by the menu bar app and other UI clients to send/receive
12
+ * UI events (notifications, show window, client tracking).
13
+ */
14
+ export declare class HubUIClient {
15
+ private readonly client;
16
+ constructor(options: HubUIClientOptions);
17
+ connect(): Promise<void>;
18
+ close(): void;
19
+ dispose(): Promise<void>;
20
+ getClientId(): string;
21
+ /**
22
+ * Send a notification request to the hub.
23
+ * The hub will broadcast a "ui.notify" event to all subscribers (e.g. the menu bar app).
24
+ */
25
+ sendNotify(payload: HubUINotifyPayload): Promise<void>;
26
+ /**
27
+ * Request the hub to broadcast a "ui.show_window" event to all subscribers.
28
+ */
29
+ sendShowWindow(payload?: HubUIShowWindowPayload): Promise<void>;
30
+ listClients(): Promise<HubClientRecord[]>;
31
+ listSessions(limit?: number): Promise<SessionRecord[]>;
32
+ /**
33
+ * Subscribe to UI-relevant hub events.
34
+ * Returns an unsubscribe function.
35
+ */
36
+ subscribeUI(handlers: {
37
+ onNotify?: (payload: HubUINotifyPayload) => void;
38
+ onShowWindow?: (payload: HubUIShowWindowPayload) => void;
39
+ onClientRegistered?: (payload: Record<string, unknown>) => void;
40
+ onClientDisconnected?: (payload: Record<string, unknown>) => void;
41
+ onSessionCreated?: (payload: Record<string, unknown>) => void;
42
+ onSessionUpdated?: (payload: Record<string, unknown>) => void;
43
+ onSessionDetached?: (payload: Record<string, unknown>) => void;
44
+ }): () => void;
45
+ }
@@ -0,0 +1 @@
1
+ export {};