@opencow-ai/opencow-agent-sdk 0.4.19 → 0.4.21

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.
@@ -0,0 +1,9 @@
1
+ import { type ResolvedBranding } from './brandingConfig.js';
2
+ export { DEFAULT_BRANDING, resolveBranding, type BrandingOptions, type ResolvedBranding, } from './brandingConfig.js';
3
+ export declare function runWithBranding<T>(branding: ResolvedBranding, fn: () => T): T;
4
+ export declare function getBranding(): ResolvedBranding;
5
+ export declare function getAssistantIdentityPrompt(): string;
6
+ export declare function getMcpClientInfo(): {
7
+ readonly title: string;
8
+ readonly description: string;
9
+ };
@@ -0,0 +1,12 @@
1
+ export interface BrandingOptions {
2
+ /** Product name shown in client display metadata and used as the assistant fallback. */
3
+ productName?: string;
4
+ /** Assistant identity used in model-facing prompts. Defaults to productName. */
5
+ assistantName?: string;
6
+ }
7
+ export interface ResolvedBranding {
8
+ readonly productName: string;
9
+ readonly assistantName: string;
10
+ }
11
+ export declare const DEFAULT_BRANDING: ResolvedBranding;
12
+ export declare function resolveBranding(options?: BrandingOptions): ResolvedBranding;
@@ -31,6 +31,7 @@ import type { ModelStrings } from 'src/providers/shared/model/modelStrings.js';
31
31
  import type { SettingSource } from 'src/session/settings/constants.js';
32
32
  import type { PluginHookMatcher } from 'src/session/settings/types.js';
33
33
  import type { AgentColorName } from 'src/capabilities/tools/AgentTool/agentColorManager.js';
34
+ import type { ResolvedBranding } from '../brandingConfig.js';
34
35
  export type RegisteredHookMatcher = HookCallbackMatcher | PluginHookMatcher;
35
36
  /**
36
37
  * Tracked invocation of a skill (from the SkillTool / SDK skill loading).
@@ -154,6 +155,7 @@ export interface PromptCacheState {
154
155
  export type RuntimeMode = 'sdk' | 'cli-interactive' | 'cli-print' | 'cli-remote' | 'cli-direct-connect' | 'subagent';
155
156
  export interface QueryConfig {
156
157
  readonly runtimeMode: RuntimeMode;
158
+ readonly branding: ResolvedBranding;
157
159
  readonly sessionSource: string | undefined;
158
160
  /**
159
161
  * Granular entrypoint identifier for telemetry — `'cli'`, `'sdk-cli'`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencow-ai/opencow-agent-sdk",
3
- "version": "0.4.19",
3
+ "version": "0.4.21",
4
4
  "description": "Claude Code opened to any LLM — OpenAI, Gemini, DeepSeek, Ollama, and 200+ models",
5
5
  "type": "module",
6
6
  "main": "./dist/sdk.js",