@cline/shared 0.0.77 → 0.0.79-nightly.1787712192
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 +6 -0
- package/dist/agents/types.d.ts +3 -0
- package/dist/db/sqlite-db.d.ts +1 -0
- package/dist/hub.d.ts +16 -3
- package/dist/index.browser.js +17 -17
- package/dist/index.js +29 -29
- package/package.json +1 -1
package/dist/agent.d.ts
CHANGED
|
@@ -342,6 +342,12 @@ export interface AgentRuntimeConfig {
|
|
|
342
342
|
* This is intentionally separate from the host-owned session id.
|
|
343
343
|
*/
|
|
344
344
|
distinctId?: string;
|
|
345
|
+
/** Calling client surface, for example `cline-vscode` or `cline-sdk`. */
|
|
346
|
+
clientName?: string;
|
|
347
|
+
/** Calling client version, such as the VS Code extension version. */
|
|
348
|
+
clientVersion?: string;
|
|
349
|
+
/** Version of the Cline Core SDK executing the runtime. */
|
|
350
|
+
clineCoreVersion?: string;
|
|
345
351
|
/**
|
|
346
352
|
* Core/hub runtime session identifier.
|
|
347
353
|
*
|
package/dist/agents/types.d.ts
CHANGED
|
@@ -673,6 +673,8 @@ export declare const AgentResultSchema: z.ZodObject<{
|
|
|
673
673
|
* Configuration for creating an Agent
|
|
674
674
|
*/
|
|
675
675
|
export interface AgentConfig {
|
|
676
|
+
/** Stable end-user identity used for provider and observability metadata. */
|
|
677
|
+
distinctId?: string;
|
|
676
678
|
/**
|
|
677
679
|
* Core/hub runtime session identifier.
|
|
678
680
|
*
|
|
@@ -854,6 +856,7 @@ export interface AgentConfig {
|
|
|
854
856
|
abortSignal?: AbortSignal;
|
|
855
857
|
}
|
|
856
858
|
export declare const AgentConfigSchema: z.ZodObject<{
|
|
859
|
+
distinctId: z.ZodOptional<z.ZodString>;
|
|
857
860
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
858
861
|
providerId: z.ZodString;
|
|
859
862
|
modelId: z.ZodString;
|
package/dist/db/sqlite-db.d.ts
CHANGED
package/dist/hub.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export type HubProtocolVersion = "v1";
|
|
|
7
7
|
export declare const CURRENT_HUB_PROTOCOL_VERSION: HubProtocolVersion;
|
|
8
8
|
export declare const MIN_CLIENT_HUB_PROTOCOL_VERSION: HubProtocolVersion;
|
|
9
9
|
export declare const MAX_CLIENT_HUB_PROTOCOL_VERSION: HubProtocolVersion;
|
|
10
|
-
export type HubCapabilityName = "client.register" | "client.list" | "session.create" | "session.list" | "session.get" | "session.run" | "session.abort" | "schedule.create" | "schedule.list" | "task.create" | "task.list" | "task.get" | "task.update" | "task.approve" | "task.cancel" | "task.run" | "task.automation.get" | "task.automation.set" | "settings.get" | "settings.set" | "connector.start" | "connector.stop" | "connector.supervised";
|
|
10
|
+
export type HubCapabilityName = "client.register" | "client.list" | "session.create" | "session.list" | "session.get" | "session.run" | "session.abort" | "schedule.create" | "schedule.list" | "task.create" | "task.list" | "task.get" | "task.update" | "task.approve" | "task.cancel" | "task.run" | "task.automation.get" | "task.automation.set" | "settings.get" | "settings.set" | "connector.start" | "connector.stop" | "connector.supervised" | "run.enqueue" | "run.list" | "hub.drain" | "hub.status" | "stream.replay";
|
|
11
11
|
export declare const HUB_CAPABILITIES: readonly HubCapabilityName[];
|
|
12
12
|
export interface HubProtocolMetadata {
|
|
13
13
|
protocolVersion: string;
|
|
@@ -333,7 +333,7 @@ export interface HubCommandOutputMap {
|
|
|
333
333
|
export type HubTypedCommandName = keyof HubCommandInputMap & HubCommandName;
|
|
334
334
|
export type HubCommandInput<TCommand extends HubTypedCommandName> = HubCommandInputMap[TCommand];
|
|
335
335
|
export type HubCommandOutput<TCommand extends HubTypedCommandName> = HubCommandOutputMap[TCommand];
|
|
336
|
-
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" | "run.proceed_while_running" | "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" | "task.create" | "task.list" | "task.get" | "task.update" | "task.approve" | "task.cancel" | "task.run" | "task.automation.get" | "task.automation.set" | "settings.list" | "settings.get" | "settings.patch" | "settings.toggle" | "connector.channels" | "connector.configure" | "connector.delete_config" | "connector.start" | "connector.stop" | "connector.supervised" | "cron.event.ingest" | "cron.event.list" | "cron.event.get" | "ui.notify" | "ui.show_window";
|
|
336
|
+
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.enqueue" | "run.list" | "run.abort" | "run.proceed_while_running" | "hub.drain" | "hub.status" | "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" | "task.create" | "task.list" | "task.get" | "task.update" | "task.approve" | "task.cancel" | "task.run" | "task.automation.get" | "task.automation.set" | "settings.list" | "settings.get" | "settings.patch" | "settings.toggle" | "connector.channels" | "connector.configure" | "connector.delete_config" | "connector.start" | "connector.stop" | "connector.supervised" | "cron.event.ingest" | "cron.event.list" | "cron.event.get" | "ui.notify" | "ui.show_window";
|
|
337
337
|
export declare const HUB_DEFAULT_COMMAND_TIMEOUT_MS = 30000;
|
|
338
338
|
export declare const HUB_COMMAND_SLOW_LOG_MS = 5000;
|
|
339
339
|
export declare function getDefaultHubCommandTimeoutMs(command: HubCommandName): number | null;
|
|
@@ -358,11 +358,18 @@ export interface HubReplyEnvelope {
|
|
|
358
358
|
details?: Record<string, unknown>;
|
|
359
359
|
};
|
|
360
360
|
}
|
|
361
|
-
export type HubEventName = "hub.client.registered" | "hub.client.disconnected" | "session.created" | "session.updated" | "session.attached" | "session.detached" | "session.forked" | "session.pending_prompts" | "session.pending_prompt_submitted" | "run.started" | "run.heartbeat" | "run.aborted" | "run.completed" | "run.failed" | "iteration.started" | "iteration.finished" | "assistant.delta" | "assistant.media" | "assistant.finished" | "session.notice" | "reasoning.delta" | "reasoning.finished" | "agent.done" | "usage.updated" | "tool.started" | "tool.updated" | "tool.finished" | "approval.requested" | "approval.resolved" | "capability.requested" | "capability.resolved" | "team.progress" | "artifact.created" | "diff.created" | "spoke.started" | "spoke.failed" | "spoke.stopped" | "peer.registered" | "peer.session_attached" | "peer.session_detached" | "schedule.created" | "schedule.updated" | "schedule.deleted" | "schedule.triggered" | "schedule.execution_completed" | "schedule.execution_failed" | "task.created" | "task.updated" | "task.deleted" | "task.run.started" | "task.run.completed" | "task.run.failed" | "task.automation.updated" | "settings.changed" | "ui.notify" | "ui.show_window" | "hub.client.updated";
|
|
361
|
+
export type HubEventName = "hub.client.registered" | "hub.client.disconnected" | "session.created" | "session.updated" | "session.attached" | "session.detached" | "session.forked" | "session.pending_prompts" | "session.pending_prompt_submitted" | "run.started" | "run.heartbeat" | "run.aborted" | "run.completed" | "run.failed" | "run.enqueued" | "run.interrupted" | "hub.drain_changed" | "iteration.started" | "iteration.finished" | "assistant.delta" | "assistant.media" | "assistant.finished" | "session.notice" | "reasoning.delta" | "reasoning.finished" | "agent.done" | "usage.updated" | "tool.started" | "tool.updated" | "tool.finished" | "approval.requested" | "approval.resolved" | "capability.requested" | "capability.resolved" | "team.progress" | "artifact.created" | "diff.created" | "spoke.started" | "spoke.failed" | "spoke.stopped" | "peer.registered" | "peer.session_attached" | "peer.session_detached" | "schedule.created" | "schedule.updated" | "schedule.deleted" | "schedule.triggered" | "schedule.execution_completed" | "schedule.execution_failed" | "task.created" | "task.updated" | "task.deleted" | "task.run.started" | "task.run.completed" | "task.run.failed" | "task.automation.updated" | "settings.changed" | "ui.notify" | "ui.show_window" | "hub.client.updated";
|
|
362
362
|
export interface HubEventEnvelope {
|
|
363
363
|
version: HubProtocolVersion;
|
|
364
364
|
event: HubEventName;
|
|
365
365
|
eventId?: string;
|
|
366
|
+
/**
|
|
367
|
+
* Monotonic global sequence assigned by the Hub's durable event log.
|
|
368
|
+
* A client can resume delivery exactly where it left off by passing the
|
|
369
|
+
* last observed sequence as `sinceSequence` on `stream.subscribe`.
|
|
370
|
+
* Absent on hubs (or events) without a durable log.
|
|
371
|
+
*/
|
|
372
|
+
sequence?: number;
|
|
366
373
|
sessionId?: string;
|
|
367
374
|
clientId?: string;
|
|
368
375
|
sourceHubId?: string;
|
|
@@ -545,6 +552,12 @@ export type HubTransportFrame = {
|
|
|
545
552
|
kind: "stream.subscribe";
|
|
546
553
|
clientId: string;
|
|
547
554
|
sessionId?: string;
|
|
555
|
+
/**
|
|
556
|
+
* Replay cursor: when set, the Hub first replays durable events with
|
|
557
|
+
* `sequence > sinceSequence` (scoped to `sessionId` when given), then
|
|
558
|
+
* live-tails. Omit for live-only delivery (legacy behavior).
|
|
559
|
+
*/
|
|
560
|
+
sinceSequence?: number;
|
|
548
561
|
} | {
|
|
549
562
|
kind: "stream.unsubscribe";
|
|
550
563
|
clientId: string;
|