mirror of
https://github.com/cline/cline.git
synced 2026-09-19 10:13:34 +08:00
* feat: add @clinebot/enterprise SDK package Introduces @clinebot/enterprise, a new optional composition layer that adds enterprise capabilities on top of @clinebot/core and @clinebot/agents without leaking enterprise-specific concerns into lower-level packages. The package handles the full enterprise sync lifecycle: 1. Identity resolution — pluggable IdentityAdapter interface (WorkOS adapter included) 2. Control plane sync — fetches remote config bundles via EnterpriseControlPlane 3. Policy materialization — writes managed rules, workflows, and skills to disk so @clinebot/core discovers them through its standard local file path (no special in-memory injection) 4. Telemetry configuration — maps bundle data to normalized OpenTelemetryClientConfig from @clinebot/shared 5. Runtime integration — exposes createEnterprisePlugin() and prepareEnterpriseRuntime() to wire everything into @clinebot/core as an AgentExtension Design decisions - Provider-agnostic contracts — IdentityAdapter, EnterpriseControlPlane, and EnterpriseTelemetryAdapter are thin interfaces; WorkOS is an included provider, not a hard dependency - File-based materialization — enterprise-managed instructions land on disk and are loaded through the same path as any local instruction file, keeping prompt assembly consistent - Shared RemoteConfig — EnterpriseConfigBundle normalizes into RemoteConfig from @clinebot/shared; no separate enterprise-only config contract - Clean boundary — if a feature works without org identity, remote policy, or enterprise telemetry, it doesn't belong in this package * clean up * refactor: rpc/src/client.ts * revert package.json * autoload * rename agents directory to extensions * fix renamed path * fix: use renamed extensions path * fix checkpoint hooks