@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,132 @@
1
+ /**
2
+ * AgentTool Presets
3
+ *
4
+ * Pre-configured tool combinations for common use cases.
5
+ */
6
+ import type { AgentMode, AgentTool, ToolPolicy } from "@cline/shared";
7
+ import type { CreateDefaultToolsOptions, DefaultToolsConfig } from "./types";
8
+ export interface ToolPresetConfig extends DefaultToolsConfig {
9
+ enableSpawnAgent?: boolean;
10
+ enableAgentTeams?: boolean;
11
+ }
12
+ /**
13
+ * Preset configurations for common use cases
14
+ */
15
+ export declare const ToolPresets: {
16
+ /**
17
+ * Act mode (full development tools)
18
+ * Good for coding assistants and task automation
19
+ */
20
+ readonly act: {
21
+ readonly enableReadFiles: true;
22
+ readonly enableSearch: true;
23
+ readonly enableBash: true;
24
+ readonly enableWebFetch: true;
25
+ readonly enableApplyPatch: false;
26
+ readonly enableEditor: true;
27
+ readonly enableSkills: true;
28
+ readonly enableAskQuestion: true;
29
+ readonly enableSubmitAndExit: false;
30
+ readonly enableSpawnAgent: true;
31
+ readonly enableAgentTeams: true;
32
+ };
33
+ /**
34
+ * Plan mode (read-only, no shell access)
35
+ * Good for analysis and documentation agents
36
+ */
37
+ readonly plan: {
38
+ readonly enableReadFiles: true;
39
+ readonly enableSearch: true;
40
+ readonly enableBash: true;
41
+ readonly enableWebFetch: true;
42
+ readonly enableApplyPatch: false;
43
+ readonly enableEditor: false;
44
+ readonly enableSkills: true;
45
+ readonly enableAskQuestion: true;
46
+ readonly enableSubmitAndExit: false;
47
+ readonly enableSpawnAgent: true;
48
+ readonly enableAgentTeams: true;
49
+ };
50
+ /**
51
+ * Search-focused tools (read_files + search_codebase)
52
+ * Good for code exploration and analysis agents
53
+ */
54
+ readonly search: {
55
+ readonly enableReadFiles: true;
56
+ readonly enableSearch: true;
57
+ readonly enableBash: false;
58
+ readonly enableWebFetch: false;
59
+ readonly enableApplyPatch: false;
60
+ readonly enableEditor: false;
61
+ readonly enableSkills: false;
62
+ readonly enableAskQuestion: false;
63
+ readonly enableSubmitAndExit: false;
64
+ readonly enableSpawnAgent: true;
65
+ readonly enableAgentTeams: true;
66
+ };
67
+ /**
68
+ * Minimal tools for focused tasks
69
+ */
70
+ readonly minimal: {
71
+ readonly enableReadFiles: false;
72
+ readonly enableSearch: false;
73
+ readonly enableBash: true;
74
+ readonly enableWebFetch: false;
75
+ readonly enableApplyPatch: false;
76
+ readonly enableEditor: false;
77
+ readonly enableSkills: false;
78
+ readonly enableAskQuestion: false;
79
+ readonly enableSubmitAndExit: false;
80
+ readonly enableSpawnAgent: true;
81
+ readonly enableAgentTeams: false;
82
+ };
83
+ /**
84
+ * YOLO mode (automation-focused tools + no approval required)
85
+ * Good for trusted local automation workflows.
86
+ */
87
+ readonly yolo: {
88
+ readonly enableReadFiles: true;
89
+ readonly enableSearch: false;
90
+ readonly enableBash: true;
91
+ readonly enableWebFetch: false;
92
+ readonly enableApplyPatch: false;
93
+ readonly enableEditor: true;
94
+ readonly enableSkills: false;
95
+ readonly enableAskQuestion: false;
96
+ readonly enableSubmitAndExit: true;
97
+ readonly enableSpawnAgent: false;
98
+ readonly enableAgentTeams: false;
99
+ };
100
+ };
101
+ /**
102
+ * Type for preset names
103
+ */
104
+ export type ToolPresetName = keyof typeof ToolPresets;
105
+ export declare function resolveToolPresetName(options: {
106
+ mode?: AgentMode;
107
+ }): ToolPresetName;
108
+ /**
109
+ * AgentTool policy preset names
110
+ */
111
+ export type ToolPolicyPresetName = "default" | "yolo";
112
+ /**
113
+ * Build tool policies for a preset.
114
+ * `yolo` guarantees tool policies are enabled and auto-approved.
115
+ */
116
+ export declare function createToolPoliciesWithPreset(presetName: ToolPolicyPresetName): Record<string, ToolPolicy>;
117
+ /**
118
+ * Create default tools using a preset configuration
119
+ *
120
+ * @example
121
+ * ```typescript
122
+ * const tools = createDefaultToolsWithPreset("plan", {
123
+ * executors: {
124
+ * readFile: async ({ path }) => fs.readFile(path, "utf-8"),
125
+ * search: async (query, cwd) => searchFiles(query, cwd),
126
+ * webFetch: async (url, prompt) => fetchAndAnalyze(url, prompt),
127
+ * },
128
+ * cwd: "/path/to/project",
129
+ * })
130
+ * ```
131
+ */
132
+ export declare function createDefaultToolsWithPreset(presetName: ToolPresetName, options: Omit<CreateDefaultToolsOptions, keyof DefaultToolsConfig> & Partial<DefaultToolsConfig>): AgentTool[];
@@ -0,0 +1,24 @@
1
+ import type { CoreAgentMode } from "../../types/config";
2
+ export interface ToolCatalogEntry {
3
+ id: string;
4
+ description: string;
5
+ defaultEnabled: boolean;
6
+ headlessToolNames: string[];
7
+ }
8
+ export interface BuiltinToolAvailabilityContext {
9
+ mode?: CoreAgentMode;
10
+ providerId?: string;
11
+ modelId?: string;
12
+ enableSpawnAgent?: boolean;
13
+ enableAgentTeams?: boolean;
14
+ disabledToolIds?: ReadonlySet<string>;
15
+ }
16
+ export declare function getCoreBuiltinToolCatalog(context?: BuiltinToolAvailabilityContext): ToolCatalogEntry[];
17
+ export declare function getCoreDefaultEnabledToolIds(context?: BuiltinToolAvailabilityContext): string[];
18
+ export declare function resolveCoreSelectedToolIds(input: {
19
+ enabled: boolean;
20
+ allowlist?: string[];
21
+ availabilityContext?: BuiltinToolAvailabilityContext;
22
+ }): Set<string>;
23
+ export declare function getCoreHeadlessToolNames(selectedToolIds: ReadonlySet<string>, context?: BuiltinToolAvailabilityContext): string[];
24
+ export declare function getCoreAcpToolNames(selectedToolIds: ReadonlySet<string>, context?: BuiltinToolAvailabilityContext): string[];
@@ -0,0 +1,241 @@
1
+ /**
2
+ * Zod Schemas for Default Tool Inputs
3
+ *
4
+ * These schemas define the input structure for each default tool
5
+ * and are used for both validation and JSON Schema generation.
6
+ */
7
+ import { z } from "zod";
8
+ export declare const INPUT_ARG_CHAR_LIMIT = 6000;
9
+ export declare const ReadFileLineRangeSchema: z.ZodObject<{
10
+ start_line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11
+ end_line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
+ }, z.core.$strip>;
13
+ export declare const ReadFileRequestSchema: z.ZodObject<{
14
+ path: z.ZodString;
15
+ start_line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ end_line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
+ }, z.core.$strip>;
18
+ /**
19
+ * Schema for read_files tool input
20
+ */
21
+ export declare const ReadFilesInputSchema: z.ZodObject<{
22
+ files: z.ZodArray<z.ZodObject<{
23
+ path: z.ZodString;
24
+ start_line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
+ end_line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ }, z.core.$strip>>;
27
+ }, z.core.$strip>;
28
+ /**
29
+ * Union schema for read_files tool input, allowing either a single string, an array of strings, or the full object schema
30
+ */
31
+ export declare const ReadFilesInputUnionSchema: z.ZodUnion<readonly [z.ZodObject<{
32
+ files: z.ZodArray<z.ZodObject<{
33
+ path: z.ZodString;
34
+ start_line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
+ end_line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
+ }, z.core.$strip>>;
37
+ }, z.core.$strip>, z.ZodObject<{
38
+ path: z.ZodString;
39
+ start_line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
+ end_line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
41
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
42
+ path: z.ZodString;
43
+ start_line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
44
+ end_line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
45
+ }, z.core.$strip>>, z.ZodArray<z.ZodString>, z.ZodString, z.ZodObject<{
46
+ files: z.ZodObject<{
47
+ path: z.ZodString;
48
+ start_line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
49
+ end_line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
50
+ }, z.core.$strip>;
51
+ }, z.core.$strip>, z.ZodObject<{
52
+ file_paths: z.ZodArray<z.ZodString>;
53
+ }, z.core.$strip>, z.ZodObject<{
54
+ file_paths: z.ZodString;
55
+ }, z.core.$strip>, z.ZodObject<{
56
+ paths: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
57
+ path: z.ZodString;
58
+ start_line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
59
+ end_line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
60
+ }, z.core.$strip>]>>;
61
+ }, z.core.$strip>, z.ZodObject<{
62
+ paths: z.ZodObject<{
63
+ path: z.ZodString;
64
+ start_line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
65
+ end_line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
66
+ }, z.core.$strip>;
67
+ }, z.core.$strip>, z.ZodObject<{
68
+ paths: z.ZodString;
69
+ }, z.core.$strip>]>;
70
+ /**
71
+ * Schema for search_codebase tool input
72
+ */
73
+ export declare const SearchCodebaseInputSchema: z.ZodObject<{
74
+ queries: z.ZodArray<z.ZodString>;
75
+ }, z.core.$strip>;
76
+ /**
77
+ * Union schema for search_codebase tool input, allowing either a single string, an array of strings, or the full object schema
78
+ */
79
+ export declare const SearchCodebaseUnionInputSchema: z.ZodUnion<readonly [z.ZodObject<{
80
+ queries: z.ZodArray<z.ZodString>;
81
+ }, z.core.$strip>, z.ZodArray<z.ZodString>, z.ZodString, z.ZodObject<{
82
+ queries: z.ZodString;
83
+ }, z.core.$strip>]>;
84
+ /**
85
+ * Schema for run_commands tool input
86
+ */
87
+ export declare const RunCommandsInputSchema: z.ZodObject<{
88
+ commands: z.ZodArray<z.ZodString>;
89
+ }, z.core.$strip>;
90
+ /**
91
+ * Union schema for run_commands tool input. More flexible.
92
+ */
93
+ export declare const RunCommandsInputUnionSchema: z.ZodUnion<readonly [z.ZodObject<{
94
+ commands: z.ZodArray<z.ZodString>;
95
+ }, z.core.$strip>, z.ZodObject<{
96
+ commands: z.ZodString;
97
+ }, z.core.$strip>, z.ZodObject<{
98
+ command: z.ZodString;
99
+ }, z.core.$strip>, z.ZodObject<{
100
+ cmd: z.ZodString;
101
+ }, z.core.$strip>, z.ZodArray<z.ZodString>, z.ZodString]>;
102
+ export declare const StructuredCommandInputSchema: z.ZodObject<{
103
+ command: z.ZodString;
104
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
105
+ }, z.core.$strip>;
106
+ export declare const StructuredCommandEntrySchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
107
+ command: z.ZodString;
108
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
109
+ }, z.core.$strip>]>;
110
+ /**
111
+ * Schema for run_commands tool input
112
+ */
113
+ export declare const StructuredCommandsInputSchema: z.ZodObject<{
114
+ commands: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
115
+ command: z.ZodString;
116
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
117
+ }, z.core.$strip>]>>;
118
+ }, z.core.$strip>;
119
+ /**
120
+ * Union schema for run_commands tool input. More flexible.
121
+ */
122
+ export declare const StructuredCommandsInputUnionSchema: z.ZodUnion<readonly [z.ZodObject<{
123
+ commands: z.ZodArray<z.ZodString>;
124
+ }, z.core.$strip>, z.ZodObject<{
125
+ commands: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
126
+ command: z.ZodString;
127
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
128
+ }, z.core.$strip>]>>;
129
+ }, z.core.$strip>, z.ZodObject<{
130
+ commands: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
131
+ command: z.ZodString;
132
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
133
+ }, z.core.$strip>]>;
134
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
135
+ command: z.ZodString;
136
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
137
+ }, z.core.$strip>>, z.ZodObject<{
138
+ command: z.ZodString;
139
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
140
+ }, z.core.$strip>, z.ZodObject<{
141
+ command: z.ZodString;
142
+ }, z.core.$strip>, z.ZodObject<{
143
+ cmd: z.ZodString;
144
+ }, z.core.$strip>, z.ZodArray<z.ZodString>, z.ZodString]>;
145
+ /**
146
+ * Schema for a single web fetch request
147
+ */
148
+ export declare const WebFetchRequestSchema: z.ZodObject<{
149
+ url: z.ZodString;
150
+ prompt: z.ZodString;
151
+ }, z.core.$strip>;
152
+ /**
153
+ * Schema for fetch_web_content tool input
154
+ */
155
+ export declare const FetchWebContentInputSchema: z.ZodObject<{
156
+ requests: z.ZodArray<z.ZodObject<{
157
+ url: z.ZodString;
158
+ prompt: z.ZodString;
159
+ }, z.core.$strip>>;
160
+ }, z.core.$strip>;
161
+ /**
162
+ * Schema for editor tool input
163
+ */
164
+ export declare const EditFileInputSchema: z.ZodObject<{
165
+ path: z.ZodString;
166
+ old_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
167
+ new_text: z.ZodString;
168
+ insert_line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
169
+ }, z.core.$strip>;
170
+ /**
171
+ * Schema for apply_patch tool input
172
+ */
173
+ export declare const ApplyPatchInputSchema: z.ZodObject<{
174
+ input: z.ZodString;
175
+ }, z.core.$strip>;
176
+ export declare const ApplyPatchInputUnionSchema: z.ZodUnion<readonly [z.ZodObject<{
177
+ input: z.ZodString;
178
+ }, z.core.$strip>, z.ZodString]>;
179
+ /**
180
+ * Schema for skills tool input
181
+ */
182
+ export declare const SkillsInputSchema: z.ZodObject<{
183
+ skill: z.ZodString;
184
+ args: z.ZodOptional<z.ZodNullable<z.ZodString>>;
185
+ }, z.core.$strip>;
186
+ /**
187
+ * Schema for ask_followup_question tool input
188
+ */
189
+ export declare const AskQuestionInputSchema: z.ZodObject<{
190
+ question: z.ZodString;
191
+ options: z.ZodArray<z.ZodString>;
192
+ }, z.core.$strip>;
193
+ export declare const SubmitInputSchema: z.ZodObject<{
194
+ summary: z.ZodString;
195
+ verified: z.ZodBoolean;
196
+ }, z.core.$strip>;
197
+ /**
198
+ * Input for a single file read request
199
+ */
200
+ export type ReadFileRequest = z.infer<typeof ReadFileRequestSchema>;
201
+ /**
202
+ * Input for the read_files tool
203
+ */
204
+ export type ReadFilesInput = z.infer<typeof ReadFilesInputSchema>;
205
+ /**
206
+ * Input for the search_codebase tool
207
+ */
208
+ export type SearchCodebaseInput = z.infer<typeof SearchCodebaseInputSchema>;
209
+ /**
210
+ * Input for the run_commands tool
211
+ */
212
+ export type RunCommandsInput = z.infer<typeof RunCommandsInputSchema>;
213
+ export type StructuredCommandInput = z.infer<typeof StructuredCommandInputSchema>;
214
+ /**
215
+ * Web fetch request parameters
216
+ */
217
+ export type WebFetchRequest = z.infer<typeof WebFetchRequestSchema>;
218
+ /**
219
+ * Input for the fetch_web_content tool
220
+ */
221
+ export type FetchWebContentInput = z.infer<typeof FetchWebContentInputSchema>;
222
+ /**
223
+ * Input for the editor tool
224
+ */
225
+ export type EditFileInput = z.infer<typeof EditFileInputSchema>;
226
+ /**
227
+ * Input for the apply_patch tool
228
+ */
229
+ export type ApplyPatchInput = z.infer<typeof ApplyPatchInputSchema>;
230
+ /**
231
+ * Input for the skills tool
232
+ */
233
+ export type SkillsInput = z.infer<typeof SkillsInputSchema>;
234
+ /**
235
+ * Input for the ask_followup_question tool
236
+ */
237
+ export type AskQuestionInput = z.infer<typeof AskQuestionInputSchema>;
238
+ /**
239
+ * Input for the submit and exit tool
240
+ */
241
+ export type SubmitInput = z.infer<typeof SubmitInputSchema>;
@@ -0,0 +1,43 @@
1
+ import type { AgentConfig, AgentEvent, AgentHooks, AgentTool, BasicLogger, HookErrorMode, ITelemetryService, ToolApprovalRequest, ToolApprovalResult } from "@cline/shared";
2
+ import { SessionRuntime } from "../../../runtime/orchestration/session-runtime-orchestrator";
3
+ type AgentExtension = NonNullable<AgentConfig["extensions"]>[number];
4
+ export type DelegatedAgentConnectionConfig = Pick<AgentConfig, "providerId" | "modelId" | "apiKey" | "baseUrl" | "headers" | "providerConfig" | "knownModels" | "thinking">;
5
+ export interface DelegatedAgentRuntimeConfig extends DelegatedAgentConnectionConfig {
6
+ cwd?: string;
7
+ providerId: string;
8
+ clinePlatform?: string;
9
+ clineIdeName?: string;
10
+ maxIterations?: number;
11
+ hooks?: AgentHooks;
12
+ extensions?: AgentExtension[];
13
+ logger?: BasicLogger;
14
+ telemetry?: ITelemetryService;
15
+ workspaceMetadata?: string;
16
+ }
17
+ export interface DelegatedAgentConfigProvider {
18
+ getRuntimeConfig(): DelegatedAgentRuntimeConfig;
19
+ getConnectionConfig(): DelegatedAgentConnectionConfig;
20
+ updateConnectionDefaults(overrides: Partial<DelegatedAgentConnectionConfig>): void;
21
+ }
22
+ export type DelegatedAgentKind = "subagent" | "teammate";
23
+ export interface BuildDelegatedAgentConfigOptions {
24
+ kind: DelegatedAgentKind;
25
+ prompt: string;
26
+ tools: AgentTool[];
27
+ configProvider: DelegatedAgentConfigProvider;
28
+ parentAgentId?: string;
29
+ maxIterations?: number;
30
+ abortSignal?: AbortSignal;
31
+ onEvent?: (event: AgentEvent) => void;
32
+ hookErrorMode?: HookErrorMode;
33
+ toolPolicies?: AgentConfig["toolPolicies"];
34
+ requestToolApproval?: (request: ToolApprovalRequest) => Promise<ToolApprovalResult> | ToolApprovalResult;
35
+ role?: string;
36
+ cwd?: string;
37
+ }
38
+ export declare function createDelegatedAgentConfigProvider(initialConfig: DelegatedAgentRuntimeConfig): DelegatedAgentConfigProvider;
39
+ export declare function buildDelegatedAgentConfig(options: BuildDelegatedAgentConfigOptions): AgentConfig & {
40
+ role?: string;
41
+ };
42
+ export declare function createDelegatedAgent(options: BuildDelegatedAgentConfigOptions): SessionRuntime;
43
+ export {};
@@ -0,0 +1,2 @@
1
+ export { buildTeamProgressSummary, toTeamProgressLifecycleEvent, } from "./projections";
2
+ export * from "./runtime";
@@ -0,0 +1,230 @@
1
+ /**
2
+ * Multi-Agent Coordination
3
+ *
4
+ * Utilities for orchestrating multiple agents working together.
5
+ */
6
+ import { type AgentConfig, type AgentEvent, type AgentResult, type AppendMissionLogInput, type AttachTeamOutcomeFragmentInput, type CreateTeamOutcomeInput, type CreateTeamTaskInput, type MissionLogEntry, type ReviewTeamOutcomeFragmentInput, type RouteToTeammateOptions, type TeamMailboxMessage, type TeamMemberSnapshot, TeamMessageType, type TeammateLifecycleSpec, type TeamOutcome, type TeamOutcomeFragment, type TeamRunRecord, type TeamRunStatus, type TeamRuntimeSnapshot, type TeamRuntimeState, type TeamTask, type TeamTaskListItem, type TeamTaskStatus } from "@cline/shared";
7
+ import { SessionRuntime } from "../../../runtime/orchestration/session-runtime-orchestrator";
8
+ export { type AppendMissionLogInput, type AttachTeamOutcomeFragmentInput, type CreateTeamOutcomeInput, type CreateTeamTaskInput, type MissionLogEntry, type MissionLogKind, type ReviewTeamOutcomeFragmentInput, type RouteToTeammateOptions, type TeamMailboxMessage, type TeamMemberSnapshot, TeamMessageType, type TeammateLifecycleSpec, type TeamOutcome, type TeamOutcomeFragment, type TeamOutcomeFragmentStatus, type TeamOutcomeStatus, type TeamRunRecord, type TeamRunStatus, type TeamRuntimeSnapshot, type TeamRuntimeState, type TeamTask, type TeamTaskListItem, type TeamTaskStatus, } from "@cline/shared";
9
+ export interface TeamMemberConfig extends AgentConfig {
10
+ role?: string;
11
+ }
12
+ export interface AgentTask {
13
+ agentId: string;
14
+ message: string;
15
+ metadata?: Record<string, unknown>;
16
+ }
17
+ export interface TaskResult {
18
+ agentId: string;
19
+ result: AgentResult;
20
+ error?: Error;
21
+ metadata?: Record<string, unknown>;
22
+ }
23
+ export type TeamEvent = {
24
+ type: TeamMessageType.TaskStart;
25
+ agentId: string;
26
+ message: string;
27
+ } | {
28
+ type: TeamMessageType.TaskEnd;
29
+ agentId: string;
30
+ result?: AgentResult;
31
+ error?: Error;
32
+ messages?: AgentResult["messages"];
33
+ } | {
34
+ type: TeamMessageType.AgentEvent;
35
+ agentId: string;
36
+ event: AgentEvent;
37
+ } | {
38
+ type: TeamMessageType.TeammateSpawned;
39
+ agentId: string;
40
+ role?: string;
41
+ teammate: TeammateLifecycleSpec;
42
+ } | {
43
+ type: TeamMessageType.TeammateShutdown;
44
+ agentId: string;
45
+ reason?: string;
46
+ } | {
47
+ type: TeamMessageType.TeamTaskUpdated;
48
+ task: TeamTask;
49
+ } | {
50
+ type: TeamMessageType.TeamMessage;
51
+ message: TeamMailboxMessage;
52
+ } | {
53
+ type: TeamMessageType.TeamMissionLog;
54
+ entry: MissionLogEntry;
55
+ } | {
56
+ type: TeamMessageType.RunQueued;
57
+ run: TeamRunRecord;
58
+ } | {
59
+ type: TeamMessageType.RunStarted;
60
+ run: TeamRunRecord;
61
+ } | {
62
+ type: TeamMessageType.RunProgress;
63
+ run: TeamRunRecord;
64
+ message: string;
65
+ } | {
66
+ type: TeamMessageType.RunCompleted;
67
+ run: TeamRunRecord;
68
+ } | {
69
+ type: TeamMessageType.RunFailed;
70
+ run: TeamRunRecord;
71
+ } | {
72
+ type: TeamMessageType.RunCancelled;
73
+ run: TeamRunRecord;
74
+ reason?: string;
75
+ } | {
76
+ type: TeamMessageType.RunInterrupted;
77
+ run: TeamRunRecord;
78
+ reason?: string;
79
+ } | {
80
+ type: TeamMessageType.OutcomeCreated;
81
+ outcome: TeamOutcome;
82
+ } | {
83
+ type: TeamMessageType.OutcomeFragmentAttached;
84
+ fragment: TeamOutcomeFragment;
85
+ } | {
86
+ type: TeamMessageType.OutcomeFragmentReviewed;
87
+ fragment: TeamOutcomeFragment;
88
+ } | {
89
+ type: TeamMessageType.OutcomeFinalized;
90
+ outcome: TeamOutcome;
91
+ };
92
+ export interface AgentTeamsRuntimeOptions {
93
+ teamName: string;
94
+ leadAgentId?: string;
95
+ missionLogIntervalSteps?: number;
96
+ missionLogIntervalMs?: number;
97
+ maxConcurrentRuns?: number;
98
+ onTeamEvent?: (event: TeamEvent) => void;
99
+ }
100
+ export interface SpawnTeammateOptions {
101
+ agentId: string;
102
+ config: TeamMemberConfig;
103
+ }
104
+ export declare class AgentTeam {
105
+ private agents;
106
+ private configs;
107
+ private onTeamEvent?;
108
+ constructor(configs?: Record<string, TeamMemberConfig>, onTeamEvent?: (event: TeamEvent) => void);
109
+ addAgent(id: string, config: TeamMemberConfig): void;
110
+ removeAgent(id: string): boolean;
111
+ getAgent(id: string): SessionRuntime | undefined;
112
+ getAgentIds(): string[];
113
+ get size(): number;
114
+ routeTo(agentId: string, message: string): Promise<AgentResult>;
115
+ continueTo(agentId: string, message: string): Promise<AgentResult>;
116
+ runParallel(tasks: AgentTask[]): Promise<TaskResult[]>;
117
+ runSequential(tasks: AgentTask[]): Promise<TaskResult[]>;
118
+ runPipeline(pipeline: string[], initialMessage: string, messageTransformer?: (prevResult: AgentResult, nextAgentId: string) => string): Promise<TaskResult[]>;
119
+ abortAll(): void;
120
+ clear(): void;
121
+ private emitEvent;
122
+ }
123
+ export declare function createAgentTeam(configs: Record<string, TeamMemberConfig>, onTeamEvent?: (event: TeamEvent) => void): AgentTeam;
124
+ export declare function createWorkerReviewerTeam(configs: {
125
+ worker: TeamMemberConfig;
126
+ reviewer: TeamMemberConfig;
127
+ }): AgentTeam & {
128
+ doAndReview: (message: string) => Promise<{
129
+ workerResult: AgentResult;
130
+ reviewResult: AgentResult;
131
+ }>;
132
+ };
133
+ export declare class AgentTeamsRuntime {
134
+ private readonly teamId;
135
+ private readonly teamName;
136
+ private readonly onTeamEvent?;
137
+ private readonly members;
138
+ private readonly tasks;
139
+ private readonly missionLog;
140
+ private readonly mailbox;
141
+ private missionStepCounter;
142
+ private taskCounter;
143
+ private messageCounter;
144
+ private missionCounter;
145
+ private runCounter;
146
+ private outcomeCounter;
147
+ private outcomeFragmentCounter;
148
+ private readonly runs;
149
+ private readonly runQueue;
150
+ private queuedRunDispatchTimer;
151
+ private readonly outcomes;
152
+ private readonly outcomeFragments;
153
+ private readonly missionLogIntervalSteps;
154
+ private readonly missionLogIntervalMs;
155
+ private readonly maxConcurrentRuns;
156
+ constructor(options: AgentTeamsRuntimeOptions);
157
+ getTeamId(): string;
158
+ getTeamName(): string;
159
+ getMemberRole(agentId: string): "lead" | "teammate" | undefined;
160
+ getMemberIds(): string[];
161
+ getTeammateIds(): string[];
162
+ getTask(taskId: string): TeamTask | undefined;
163
+ listTasks(): TeamTask[];
164
+ listTaskItems(options?: {
165
+ status?: TeamTaskStatus;
166
+ assignee?: string;
167
+ }): TeamTaskListItem[];
168
+ listMissionLog(limit?: number): MissionLogEntry[];
169
+ listMailbox(agentId: string, options?: {
170
+ unreadOnly?: boolean;
171
+ markRead?: boolean;
172
+ limit?: number;
173
+ }): TeamMailboxMessage[];
174
+ getSnapshot(): TeamRuntimeSnapshot;
175
+ exportState(): TeamRuntimeState;
176
+ hydrateState(state: TeamRuntimeState): void;
177
+ isTeammateActive(agentId: string): boolean;
178
+ spawnTeammate({ agentId, config }: SpawnTeammateOptions): TeamMemberSnapshot;
179
+ shutdownTeammate(agentId: string, reason?: string): void;
180
+ updateTeammateConnections(overrides: Partial<Pick<AgentConfig, "apiKey" | "baseUrl" | "headers">>): void;
181
+ createTask(input: CreateTeamTaskInput): TeamTask;
182
+ claimTask(taskId: string, agentId: string): TeamTask;
183
+ blockTask(taskId: string, agentId: string, reason: string): TeamTask;
184
+ completeTask(taskId: string, agentId: string, summary: string): TeamTask;
185
+ routeToTeammate(agentId: string, message: string, options?: RouteToTeammateOptions): Promise<AgentResult>;
186
+ startTeammateRun(agentId: string, message: string, options?: RouteToTeammateOptions & {
187
+ priority?: number;
188
+ maxRetries?: number;
189
+ leaseOwner?: string;
190
+ }): TeamRunRecord;
191
+ private dispatchQueuedRuns;
192
+ private selectNextDispatchableQueuedRun;
193
+ private scheduleQueuedRunDispatch;
194
+ private clearQueuedRunDispatchTimer;
195
+ private countActiveRuns;
196
+ private executeQueuedRun;
197
+ listRuns(options?: {
198
+ status?: TeamRunStatus | null;
199
+ agentId?: string | null;
200
+ includeCompleted?: boolean | null;
201
+ }): TeamRunRecord[];
202
+ getRun(runId: string): TeamRunRecord | undefined;
203
+ awaitRun(runId: string, pollIntervalMs?: number): Promise<TeamRunRecord>;
204
+ awaitAllRuns(pollIntervalMs?: number): Promise<TeamRunRecord[]>;
205
+ cancelRun(runId: string, reason?: string): TeamRunRecord;
206
+ recoverActiveRuns(reason?: string): TeamRunRecord[];
207
+ markStaleRunsInterrupted(reason?: string): TeamRunRecord[];
208
+ sendMessage(fromAgentId: string, toAgentId: string, subject: string, body: string, taskId?: string): TeamMailboxMessage;
209
+ broadcast(fromAgentId: string, subject: string, body: string, options?: {
210
+ taskId?: string;
211
+ }): TeamMailboxMessage[];
212
+ appendMissionLog(input: AppendMissionLogInput): MissionLogEntry;
213
+ createOutcome(input: CreateTeamOutcomeInput): TeamOutcome;
214
+ listOutcomes(): TeamOutcome[];
215
+ attachOutcomeFragment(input: AttachTeamOutcomeFragmentInput): TeamOutcomeFragment;
216
+ reviewOutcomeFragment(input: ReviewTeamOutcomeFragmentInput): TeamOutcomeFragment;
217
+ listOutcomeFragments(outcomeId: string): TeamOutcomeFragment[];
218
+ finalizeOutcome(outcomeId: string): TeamOutcome;
219
+ cleanup(): void;
220
+ private requireTask;
221
+ private assertDependenciesResolved;
222
+ private getUnresolvedDependencies;
223
+ private trackMeaningfulEvent;
224
+ private recordRunActivityFromAgentEvent;
225
+ private recordRunProgress;
226
+ private formatProgressErrorActivity;
227
+ private recordProgressStep;
228
+ private buildMailboxNotification;
229
+ private emitEvent;
230
+ }
@@ -0,0 +1,8 @@
1
+ import type { TeamProgressLifecycleEvent, TeamProgressSummary, TeamRuntimeState } from "@cline/shared";
2
+ import type { TeamEvent } from "./multi-agent";
3
+ export declare function buildTeamProgressSummary(teamName: string, state: TeamRuntimeState): TeamProgressSummary;
4
+ export declare function toTeamProgressLifecycleEvent(input: {
5
+ teamName: string;
6
+ sessionId: string;
7
+ event: TeamEvent;
8
+ }): TeamProgressLifecycleEvent;
@@ -0,0 +1,4 @@
1
+ export { buildDelegatedAgentConfig, createDelegatedAgent, createDelegatedAgentConfigProvider, type DelegatedAgentConfigProvider, type DelegatedAgentConnectionConfig, type DelegatedAgentKind, type DelegatedAgentRuntimeConfig, } from "./delegated-agent";
2
+ export { createSpawnAgentTool, type SpawnAgentInput, type SpawnAgentOutput, type SpawnAgentToolConfig, type SubAgentEndContext, type SubAgentStartContext, } from "./spawn-agent-tool";
3
+ export { type AgentTask, AgentTeam, AgentTeamsRuntime, type AgentTeamsRuntimeOptions, createAgentTeam, createWorkerReviewerTeam, type SpawnTeammateOptions, type TaskResult, type TeamEvent, type TeamMemberConfig, } from "./multi-agent";
4
+ export { type BootstrapAgentTeamsOptions, type BootstrapAgentTeamsResult, bootstrapAgentTeams, type CreateAgentTeamsToolsOptions, createAgentTeamsTools, reviveTeamStateDates, sanitizeTeamName, type TeamTeammateRuntimeConfig, } from "./team-tools";