@cline/core 0.0.75-nightly.1787107092 → 0.0.76

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 (47) hide show
  1. package/dist/cron/service/schedule-command-service.d.ts +6 -1
  2. package/dist/cron/service/schedule-service.d.ts +1 -0
  3. package/dist/cron/service/schedule-tool.d.ts +81 -0
  4. package/dist/cron/store/sqlite-cron-store.d.ts +1 -0
  5. package/dist/extensions/config/index.d.ts +1 -1
  6. package/dist/extensions/config/runtime-commands.d.ts +12 -1
  7. package/dist/extensions/config/user-instruction-service.d.ts +2 -2
  8. package/dist/extensions/tools/executors/bash.d.ts +32 -0
  9. package/dist/extensions/tools/executors/index.d.ts +1 -0
  10. package/dist/extensions/tools/executors/run-command-execution-controller.d.ts +16 -0
  11. package/dist/extensions/tools/index.d.ts +2 -2
  12. package/dist/extensions/tools/runtime.d.ts +9 -0
  13. package/dist/hooks/subprocess.d.ts +6 -0
  14. package/dist/hub/client/index.d.ts +4 -1
  15. package/dist/hub/client/session-client.d.ts +14 -1
  16. package/dist/hub/daemon/entry.js +369 -203
  17. package/dist/hub/index.d.ts +2 -0
  18. package/dist/hub/index.js +363 -197
  19. package/dist/hub/runtime-host/hub-runtime-host.d.ts +1 -0
  20. package/dist/hub/server/browser-websocket.d.ts +5 -2
  21. package/dist/hub/server/command-transport.d.ts +9 -2
  22. package/dist/hub/server/handlers/context.d.ts +7 -3
  23. package/dist/hub/server/handlers/run-handlers.d.ts +1 -0
  24. package/dist/hub/server/handlers/session-handlers.d.ts +4 -0
  25. package/dist/hub/server/hub-server-options.d.ts +7 -2
  26. package/dist/hub/server/hub-server-transport.d.ts +8 -1
  27. package/dist/hub/server/native-transport.d.ts +3 -3
  28. package/dist/hub/server/task-command-service.d.ts +11 -0
  29. package/dist/index.d.ts +6 -4
  30. package/dist/index.js +361 -195
  31. package/dist/runtime/host/local-runtime-host.d.ts +2 -0
  32. package/dist/runtime/host/runtime-host.d.ts +3 -0
  33. package/dist/runtime/orchestration/session-runtime.d.ts +2 -1
  34. package/dist/runtime/process-start-token.d.ts +23 -0
  35. package/dist/services/llms/cline-recommended-models.d.ts +33 -0
  36. package/dist/services/providers/local-provider-registry.d.ts +1 -1
  37. package/dist/tasks/agenda-task-api.d.ts +20 -0
  38. package/dist/tasks/agenda-task-manager.d.ts +102 -0
  39. package/dist/tasks/agenda-task-tool.d.ts +94 -0
  40. package/dist/tasks/index.d.ts +9 -0
  41. package/dist/tasks/specs/task-spec-file-store.d.ts +38 -0
  42. package/dist/tasks/specs/task-spec-parser.d.ts +65 -0
  43. package/dist/tasks/store/sqlite-task-store.d.ts +73 -0
  44. package/dist/tasks/store/task-schema.d.ts +2 -0
  45. package/dist/tasks/task-location.d.ts +14 -0
  46. package/dist/tasks/task-tool.d.ts +134 -0
  47. package/package.json +4 -4
@@ -0,0 +1,134 @@
1
+ import type { AgentExtension, AgentTool } from "@cline/shared";
2
+ import { z } from "zod";
3
+ import { type ScheduledTaskResult, type ScheduleTaskOperationOptions } from "../cron/service/schedule-tool";
4
+ import { type TodoTaskOperationOptions, type TodoTaskResult } from "./agenda-task-tool";
5
+ export declare const TASKS_TOOL_NAME = "tasks";
6
+ export declare const TASKS_SYSTEM_PROMPT_RULE = "# Tasks\n\nUse the `tasks` tool to manage durable Todo items and explicitly requested scheduled agent work.\n\n- Use `kind: \"todo\"` for meaningful follow-ups, handoffs, ideas, reminders, and other work that should remain visible after this session. This includes useful work you identify and suggest proactively. Agent-created Todos require user approval; Todos created directly by the user are approved immediately. Todo `available_at` controls availability in the list; it never schedules execution.\n- Use `kind: \"scheduled\"` only when the user explicitly asks Cline to execute work once at a future time or on a recurrence. One-time schedules require an exact future ISO 8601 `run_at` with an offset or Z. Recurring schedules require a five-field `cron_pattern` and may include an IANA `timezone`.\n- \"Remind me\" is ambiguous: ask whether the user wants a reviewed Todo note or an agent to execute work at that time when intent is unclear.\n- Never create both kinds for the same request unless the user explicitly requests both. Check existing items before creating a likely duplicate.\n- Todo instructions and scheduled prompts must be self-contained. Include the goal, constraints, relevant project context, and expected output.\n- Never approve or start a Todo yourself. Only mutate schedules from an interactive user session, and only update, pause, resume, delete, or run one immediately when the user asks.";
7
+ export declare const TasksToolInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
8
+ operation: z.ZodEnum<{
9
+ update: "update";
10
+ create: "create";
11
+ list: "list";
12
+ get: "get";
13
+ }>;
14
+ task_id: z.ZodOptional<z.ZodString>;
15
+ expected_revision: z.ZodOptional<z.ZodNumber>;
16
+ type: z.ZodOptional<z.ZodEnum<{
17
+ handoff: "handoff";
18
+ suggestion: "suggestion";
19
+ "follow-up": "follow-up";
20
+ todo: "todo";
21
+ idea: "idea";
22
+ reminder: "reminder";
23
+ }>>;
24
+ title: z.ZodOptional<z.ZodString>;
25
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ instructions: z.ZodOptional<z.ZodString>;
27
+ scope: z.ZodOptional<z.ZodEnum<{
28
+ workspace: "workspace";
29
+ global: "global";
30
+ }>>;
31
+ workspace_root: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ cwd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ resource_paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
34
+ priority: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>>;
35
+ assignee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ model_selection: z.ZodOptional<z.ZodNullable<z.ZodObject<{
37
+ provider_id: z.ZodString;
38
+ model_id: z.ZodOptional<z.ZodString>;
39
+ }, z.core.$strip>>>;
40
+ mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
41
+ plan: "plan";
42
+ act: "act";
43
+ yolo: "yolo";
44
+ }>>>;
45
+ system_prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ max_iterations: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
47
+ timeout_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
48
+ available_at: z.ZodOptional<z.ZodString>;
49
+ expires_at: z.ZodOptional<z.ZodString>;
50
+ automation_eligible: z.ZodOptional<z.ZodBoolean>;
51
+ statuses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
52
+ failed: "failed";
53
+ completed: "completed";
54
+ in_progress: "in_progress";
55
+ cancelled: "cancelled";
56
+ approved: "approved";
57
+ pending_approval: "pending_approval";
58
+ expired: "expired";
59
+ }>>>;
60
+ types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
61
+ handoff: "handoff";
62
+ suggestion: "suggestion";
63
+ "follow-up": "follow-up";
64
+ todo: "todo";
65
+ idea: "idea";
66
+ reminder: "reminder";
67
+ }>>>;
68
+ priorities: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>>>;
69
+ limit: z.ZodOptional<z.ZodNumber>;
70
+ kind: z.ZodLiteral<"todo">;
71
+ }, z.core.$strict>, z.ZodObject<{
72
+ operation: z.ZodEnum<{
73
+ update: "update";
74
+ create: "create";
75
+ list: "list";
76
+ pause: "pause";
77
+ resume: "resume";
78
+ get: "get";
79
+ delete: "delete";
80
+ run_now: "run_now";
81
+ }>;
82
+ schedule_id: z.ZodOptional<z.ZodString>;
83
+ schedule_type: z.ZodOptional<z.ZodEnum<{
84
+ once: "once";
85
+ recurring: "recurring";
86
+ }>>;
87
+ name: z.ZodOptional<z.ZodString>;
88
+ prompt: z.ZodOptional<z.ZodString>;
89
+ run_at: z.ZodOptional<z.ZodString>;
90
+ cron_pattern: z.ZodOptional<z.ZodString>;
91
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
+ enabled: z.ZodOptional<z.ZodBoolean>;
93
+ mode: z.ZodOptional<z.ZodEnum<{
94
+ plan: "plan";
95
+ act: "act";
96
+ yolo: "yolo";
97
+ }>>;
98
+ system_prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
+ max_iterations: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
100
+ timeout_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
101
+ max_parallel: z.ZodOptional<z.ZodNumber>;
102
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
103
+ model_selection: z.ZodOptional<z.ZodObject<{
104
+ provider_id: z.ZodString;
105
+ model_id: z.ZodOptional<z.ZodString>;
106
+ }, z.core.$strip>>;
107
+ limit: z.ZodOptional<z.ZodNumber>;
108
+ kind: z.ZodLiteral<"scheduled">;
109
+ }, z.core.$strict>], "kind">;
110
+ export type TasksToolInput = z.infer<typeof TasksToolInputSchema>;
111
+ export type TasksToolResult = ({
112
+ kind: "todo";
113
+ } & TodoTaskResult) | ({
114
+ kind: "scheduled";
115
+ } & ScheduledTaskResult) | {
116
+ ok: false;
117
+ kind?: TasksToolInput["kind"];
118
+ error: {
119
+ code: "invalid_tasks_input";
120
+ message: string;
121
+ };
122
+ };
123
+ export interface CreateTasksToolOptions {
124
+ todo: TodoTaskOperationOptions;
125
+ scheduled: ScheduleTaskOperationOptions;
126
+ }
127
+ /**
128
+ * One agent-facing task tool backed by distinct Todo and schedule domains.
129
+ * The discriminator selects the domain; each handler retains its own storage,
130
+ * authorization, scope, and execution lifecycle.
131
+ */
132
+ export declare function createTasksTool(options: CreateTasksToolOptions): AgentTool<TasksToolInput, TasksToolResult>;
133
+ /** Adds selection and safety guidance only when the unified tool is enabled. */
134
+ export declare function createTasksPromptExtension(): AgentExtension;
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.75-nightly.1787107092",
4
+ "version": "0.0.76",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/cline/cline",
@@ -49,9 +49,9 @@
49
49
  "test:watch": "vitest --config vitest.config.ts"
50
50
  },
51
51
  "dependencies": {
52
- "@cline/agents": "0.0.75-nightly.1787107092",
53
- "@cline/shared": "0.0.75-nightly.1787107092",
54
- "@cline/llms": "0.0.75-nightly.1787107092",
52
+ "@cline/agents": "0.0.76",
53
+ "@cline/shared": "0.0.76",
54
+ "@cline/llms": "0.0.76",
55
55
  "@modelcontextprotocol/sdk": "^1.29.0",
56
56
  "@opentelemetry/api": "^1.9.0",
57
57
  "@opentelemetry/api-logs": "^0.214.0",