@cline/shared 0.0.82-nightly.1788488915 → 0.0.83

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.
@@ -25,8 +25,10 @@ export interface ClientContext {
25
25
  * Identity of the authenticated user.
26
26
  */
27
27
  export interface UserContext {
28
- /** PostHog / analytics distinct ID */
28
+ /** PostHog / analytics distinct ID (an account or anonymous machine ID). */
29
29
  distinctId?: string;
30
+ /** Authenticated Cline account ID, or null when explicitly signed out. */
31
+ accountId?: string | null;
30
32
  email?: string;
31
33
  organizationId?: string;
32
34
  }
@@ -1,6 +1,8 @@
1
1
  export declare const FeatureFlag: {
2
2
  /** Enables ClinePass provider/model list exposure in supported clients. */
3
3
  readonly CLINE_PASS: "ext-cline-pass";
4
+ /** Makes the Cloud sessions opt-in visible in the Cline Code desktop app. */
5
+ readonly CODE_CLOUD_AGENTS: "code-cloud-agents";
4
6
  /** Shows the GitHub integration step in the desktop app */
5
7
  readonly CODE_ONBOARDING_GITHUB: "code-onboarding-github";
6
8
  };
package/dist/hub.d.ts CHANGED
@@ -597,3 +597,13 @@ export interface HubUIShowWindowPayload {
597
597
  windowId?: string;
598
598
  focus?: boolean;
599
599
  }
600
+ /**
601
+ * Human phrase for the live work an outdated Hub is serving, used by the
602
+ * "Hub update required" surfaces in the CLI and the desktop app - the two
603
+ * must read identically, which is why the copy lives here. Falls back to an
604
+ * unquantified phrase when the Hub could not answer the activity query.
605
+ */
606
+ export declare function describeOutdatedHubSessions(counts: {
607
+ activeSessionCount?: number;
608
+ participantClientCount?: number;
609
+ }): string;
@@ -10,7 +10,7 @@ export type { ClientContext, ClientName, ExtensionContext, UserContext, Workspac
10
10
  export type { AgentExtensionApi, AgentExtensionAutomationContext, AgentExtensionAutomationEventType, AgentExtensionCapability, AgentExtensionCommand, AgentExtensionCommandResult, AgentExtensionHooks, AgentExtensionMcpEnv, AgentExtensionMcpEnvValue, AgentExtensionMcpServer, AgentExtensionMcpSseTransport, AgentExtensionMcpStdioTransport, AgentExtensionMcpStreamableHttpTransport, AgentExtensionMcpTransport, AgentExtensionMessageBuilder, AgentExtensionProvider, AgentExtensionRegistry, AgentExtensionRule, AgentExtensionSessionContext, ContributionRegistryExtension, ContributionRegistryOptions, PluginManifest, PluginSetupContext, } from "./extensions/contribution-registry";
11
11
  export { ContributionRegistry, createContributionRegistry, normalizePluginManifest, } from "./extensions/contribution-registry";
12
12
  export { PLUGIN_FILE_EXTENSIONS } from "./extensions/plugin";
13
- export { FEATURE_FLAGS, type FeatureFlag, FeatureFlagDefaultValue, type FeatureFlagPayload, type FeatureFlagsAndPayloads, type FeatureFlagsContext, type FeatureFlagsSettings, type IFeatureFlagsProvider, } from "./feature-flags";
13
+ export { FEATURE_FLAGS, FeatureFlag, FeatureFlagDefaultValue, type FeatureFlagPayload, type FeatureFlagsAndPayloads, type FeatureFlagsContext, type FeatureFlagsSettings, type IFeatureFlagsProvider, } from "./feature-flags";
14
14
  export type { HookControl } from "./hooks/contracts";
15
15
  export type { AgentAbortHookPayload, AgentEndHookPayload, AgentErrorHookPayload, AgentResumeHookPayload, AgentStartHookPayload, HookEventName, HookEventPayload, HookEventPayloadBase, PostToolUseData, PreCompactData, PreCompactHookPayload, PreToolUseData, PromptSubmitHookPayload, SessionShutdownHookPayload, TaskCancelData, TaskCompleteData, TaskResumeData, TaskStartData, ToolCallHookPayload, ToolResultHookPayload, UserPromptSubmitData, } from "./hooks/events";
16
16
  export { HookEventNameSchema, HookEventPayloadSchema, parseHookEventPayload, } from "./hooks/events";