@cline/core 0.0.85 → 0.0.86-nightly.1790303239

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.
@@ -6,10 +6,10 @@ export declare const ScheduledTaskInputSchema: z.ZodObject<{
6
6
  update: "update";
7
7
  create: "create";
8
8
  list: "list";
9
- get: "get";
10
- delete: "delete";
11
9
  pause: "pause";
12
10
  resume: "resume";
11
+ get: "get";
12
+ delete: "delete";
13
13
  run_now: "run_now";
14
14
  }>;
15
15
  schedule_id: z.ZodOptional<z.ZodString>;
@@ -24,8 +24,8 @@ export declare const ScheduledTaskInputSchema: z.ZodObject<{
24
24
  timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
25
  enabled: z.ZodOptional<z.ZodBoolean>;
26
26
  mode: z.ZodOptional<z.ZodEnum<{
27
- act: "act";
28
27
  plan: "plan";
28
+ act: "act";
29
29
  yolo: "yolo";
30
30
  }>>;
31
31
  system_prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -4,6 +4,9 @@ type HubCommandOptions = {
4
4
  timeoutMs?: number | null;
5
5
  /** Synchronous local guard, checked after connection before each dispatch. */
6
6
  beforeDispatch?: () => void;
7
+ /** Observes this attempt's correlation id after the local guard, before sending.
8
+ * Dispatch alone does not confirm that the server accepted the command. */
9
+ onDispatch?: (requestId: string) => void;
7
10
  };
8
11
  export interface HubClientOptions {
9
12
  url: string;
@@ -28,6 +31,11 @@ export interface LocalHubResolutionOptions {
28
31
  strategy?: "prefer-hub" | "require-hub";
29
32
  workspaceRoot?: string;
30
33
  cwd?: string;
34
+ /**
35
+ * Called with the error when starting a detached Hub fails. The function
36
+ * still resolves `undefined` in that case; this lets a caller report why.
37
+ */
38
+ onStartupError?: (error: unknown) => void;
31
39
  }
32
40
  export type HubTransportErrorCode = "hub_connect_timeout" | "hub_connect_failed" | "hub_connection_closed" | "hub_connection_not_open";
33
41
  export declare class HubTransportError extends Error {