@cline/shared 0.0.57 → 0.0.58-nightly.1783480459

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.
package/dist/agent.d.ts CHANGED
@@ -300,9 +300,11 @@ export interface AgentRuntimeConfig {
300
300
  toolContextMetadata?: Record<string, unknown>;
301
301
  requestToolApproval?: (request: ToolApprovalRequest) => Promise<ToolApprovalResult> | ToolApprovalResult;
302
302
  /**
303
- * Optional host-owned context pipeline that can rewrite the transcript
304
- * before each model request. When it returns messages, the runtime replaces
305
- * its in-memory transcript so compaction persists into the final run result.
303
+ * Optional host-owned request projection hook invoked before each model call.
304
+ *
305
+ * Returned messages affect only the provider request for the current call.
306
+ * They do not replace the canonical runtime transcript, are not persisted as
307
+ * session history, and are not reflected in AgentRunResult.messages.
306
308
  */
307
309
  prepareTurn?: (context: AgentRuntimePrepareTurnContext) => Promise<AgentRuntimePrepareTurnResult | undefined> | AgentRuntimePrepareTurnResult | undefined;
308
310
  consumePendingUserMessage?: () => string | undefined | Promise<string | undefined>;
@@ -733,8 +733,14 @@ export interface AgentConfig {
733
733
  */
734
734
  logger?: BasicLogger;
735
735
  /**
736
- * Optional callback that can rewrite the turn input before each model call.
737
- * This is the primary seam for host-owned context pipelines.
736
+ * Optional request projection hook invoked before each model call.
737
+ *
738
+ * Returned messages affect only the provider request for the current call.
739
+ * They do not replace the canonical runtime transcript, are not persisted as
740
+ * session history, and are not reflected in AgentRunResult.messages.
741
+ *
742
+ * Hosts that need durable redaction or normalization must apply it before a
743
+ * message enters the canonical transcript.
738
744
  */
739
745
  prepareTurn?: (context: AgentPrepareTurnContext) => Promise<AgentPrepareTurnResult | undefined> | AgentPrepareTurnResult | undefined;
740
746
  /**
package/dist/hub.d.ts CHANGED
@@ -256,7 +256,7 @@ export interface HubScheduleUpdateInput {
256
256
  runtimeOptions?: HubSessionRuntimeOptions;
257
257
  metadata?: Record<string, JsonValue | undefined>;
258
258
  }
259
- export type HubCommandName = "client.register" | "client.update" | "client.unregister" | "client.list" | "cline.account.get_current" | "prompt_commands.list" | "prompt_commands.execute" | "mention_files.search" | "catalog.list" | "session.list" | "session.create" | "session.attach" | "session.detach" | "session.get" | "session.messages" | "session.restore" | "session.delete" | "session.update" | "session.pending_prompts" | "session.update_pending_prompt" | "session.remove_pending_prompt" | "session.fork" | "session.hook" | "run.start" | "session.send_input" | "run.abort" | "approval.request" | "approval.respond" | "capability.request" | "capability.progress" | "capability.respond" | "peer.register" | "peer.list_sessions" | "peer.attach_session" | "peer.detach_session" | "peer.proxy_command" | "schedule.create" | "schedule.list" | "schedule.get" | "schedule.update" | "schedule.delete" | "schedule.enable" | "schedule.disable" | "schedule.trigger" | "schedule.list_executions" | "schedule.stats" | "schedule.active" | "schedule.upcoming" | "settings.list" | "settings.get" | "settings.patch" | "settings.toggle" | "connector.channels" | "connector.configure" | "connector.delete_config" | "cron.event.ingest" | "cron.event.list" | "cron.event.get" | "ui.notify" | "ui.show_window";
259
+ export type HubCommandName = "client.register" | "client.update" | "client.unregister" | "client.list" | "cline.account.get_current" | "prompt_commands.list" | "prompt_commands.execute" | "mention_files.search" | "catalog.list" | "session.list" | "session.create" | "session.attach" | "session.detach" | "session.get" | "session.messages" | "session.restore" | "session.delete" | "session.update" | "session.update_connection" | "session.compaction.get" | "session.compaction.update" | "session.pending_prompts" | "session.update_pending_prompt" | "session.remove_pending_prompt" | "session.fork" | "session.hook" | "run.start" | "session.send_input" | "run.abort" | "approval.request" | "approval.respond" | "capability.request" | "capability.progress" | "capability.respond" | "peer.register" | "peer.list_sessions" | "peer.attach_session" | "peer.detach_session" | "peer.proxy_command" | "schedule.create" | "schedule.list" | "schedule.get" | "schedule.update" | "schedule.delete" | "schedule.enable" | "schedule.disable" | "schedule.trigger" | "schedule.list_executions" | "schedule.stats" | "schedule.active" | "schedule.upcoming" | "settings.list" | "settings.get" | "settings.patch" | "settings.toggle" | "connector.channels" | "connector.configure" | "connector.delete_config" | "cron.event.ingest" | "cron.event.list" | "cron.event.get" | "ui.notify" | "ui.show_window";
260
260
  export declare const HUB_DEFAULT_COMMAND_TIMEOUT_MS = 30000;
261
261
  export declare const HUB_COMMAND_SLOW_LOG_MS = 5000;
262
262
  export declare function getDefaultHubCommandTimeoutMs(command: HubCommandName): number | null;
@@ -360,6 +360,7 @@ export interface HubSessionRuntimeOptions {
360
360
  timeoutSeconds?: number;
361
361
  thinking?: boolean;
362
362
  reasoningEffort?: ReasoningEffort;
363
+ thinkingBudgetTokens?: number;
363
364
  checkpointEnabled?: boolean;
364
365
  enableTools?: boolean;
365
366
  enableSpawn?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cline/shared",
3
- "version": "0.0.57",
3
+ "version": "0.0.58-nightly.1783480459",
4
4
  "description": "Shared utilities, types, and schemas for Cline packages",
5
5
  "repository": {
6
6
  "type": "git",