@cline/core 0.0.92 → 0.0.93-nightly.1792117748

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 (42) hide show
  1. package/dist/auth/cline.d.ts +2 -0
  2. package/dist/cloud/api.d.ts +3 -0
  3. package/dist/cloud/controller.d.ts +3 -0
  4. package/dist/cloud/index.js +16 -16
  5. package/dist/cron/store/sqlite-cron-store.d.ts +6 -0
  6. package/dist/extensions/composio/composio-meta-tools.d.ts +37 -0
  7. package/dist/extensions/composio/composio-tools-extension.d.ts +4 -9
  8. package/dist/extensions/index.d.ts +5 -2
  9. package/dist/extensions/plugin/plugin-config-loader.d.ts +47 -6
  10. package/dist/extensions/plugin/plugin-contributions.d.ts +43 -0
  11. package/dist/extensions/plugin/plugin-loader.d.ts +2 -0
  12. package/dist/extensions/plugin/plugin-module-import.d.ts +13 -0
  13. package/dist/extensions/plugin/plugin-registry.d.ts +172 -0
  14. package/dist/extensions/plugin/plugin-sandbox.d.ts +47 -1
  15. package/dist/extensions/plugin-sandbox-bootstrap.js +563 -1
  16. package/dist/extensions/tools/definitions.d.ts +1 -1
  17. package/dist/extensions/tools/schemas.d.ts +1 -1
  18. package/dist/extensions/tools/types.d.ts +3 -2
  19. package/dist/hub/daemon/entry.js +242 -231
  20. package/dist/hub/daemon/index.d.ts +24 -0
  21. package/dist/hub/daemon/runtime-handlers.d.ts +2 -0
  22. package/dist/hub/discovery/index.d.ts +8 -1
  23. package/dist/hub/index.js +229 -220
  24. package/dist/hub/runtime-host/hub-runtime-host.d.ts +3 -0
  25. package/dist/hub/server/handlers/session-handlers.d.ts +3 -1
  26. package/dist/hub/server/hub-server-transport.d.ts +3 -0
  27. package/dist/index.d.ts +5 -3
  28. package/dist/index.js +263 -254
  29. package/dist/remote/remote-environments.d.ts +1 -0
  30. package/dist/runtime/host/local-runtime-host.d.ts +3 -0
  31. package/dist/runtime/host/runtime-host.d.ts +11 -0
  32. package/dist/runtime/tools/worker-sandbox.d.ts +90 -0
  33. package/dist/services/local-runtime-bootstrap.d.ts +7 -1
  34. package/dist/services/plugin-tools.d.ts +4 -0
  35. package/dist/services/telemetry/index.js +1 -1
  36. package/dist/types/chat-schema.d.ts +2 -2
  37. package/dist/types.d.ts +2 -0
  38. package/package.json +8 -12
  39. package/dist/remote/remote-helper-entry.d.ts +0 -1
  40. package/dist/remote/remote-helper-entry.js +0 -5
  41. package/dist/remote/remote-helper.d.ts +0 -29
  42. package/dist/remote/remote-helper.js +0 -4
@@ -72,7 +72,7 @@ export declare function createSkillsTool(executor: SkillsExecutorWithMetadata, c
72
72
  *
73
73
  * Asks the user a single clarifying question with 2-5 selectable options.
74
74
  */
75
- export declare function createAskQuestionTool(executor: AskQuestionExecutor): AgentTool<AskQuestionInput, string>;
75
+ export declare function createAskQuestionTool(executor: AskQuestionExecutor): AgentTool<AskQuestionInput, Awaited<ReturnType<AskQuestionExecutor>>>;
76
76
  export declare function createSubmitAndExitTool(executor: VerifySubmitExecutor, config?: Pick<DefaultToolsConfig, "submitTimeoutMs">): AgentTool<SubmitInput, string>;
77
77
  /**
78
78
  * Create a set of default tools for an agent
@@ -291,7 +291,7 @@ export declare const FetchWebContentInputSchema: z.ZodObject<{
291
291
  */
292
292
  export declare const EditFileInputSchema: z.ZodObject<{
293
293
  path: z.ZodString;
294
- old_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
294
+ old_text: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
295
295
  new_text: z.ZodString;
296
296
  insert_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
297
297
  }, z.core.$strip>;
@@ -89,9 +89,10 @@ export type SkillsExecutor = (skill: string, args: string | undefined, context:
89
89
  * @param question - Single clarifying question for the user
90
90
  * @param options - 2-5 selectable answer options
91
91
  * @param context - Tool execution context
92
- * @returns Executor-specific result payload
92
+ * @returns The user's answer, as text or as text and image blocks when the
93
+ * user attached images or files to it
93
94
  */
94
- export type AskQuestionExecutor = (question: string, options: string[], context: AgentToolContext) => Promise<string>;
95
+ export type AskQuestionExecutor = (question: string, options: string[], context: AgentToolContext) => Promise<string | Array<TextContent | ImageContent>>;
95
96
  /**
96
97
  * Skill metadata exposed by SkillsExecutor for clients/UI
97
98
  */