@compilr-dev/sdk 0.9.27 → 0.9.29

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/config.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * SDK configuration types
3
3
  */
4
- import type { LLMProvider, Message, Tool, ToolPermission, HooksConfig, AnchorInput, AgentEvent, ToolExecutionResult, DelegationConfig, ObservationMaskConfig, WindowingConfig } from '@compilr-dev/agents';
4
+ import type { LLMProvider, Message, Tool, ToolPermission, HooksConfig, AnchorInput, AgentEvent, ToolExecutionResult, DelegationConfig, ObservationMaskConfig, WindowingConfig, ContentBlock } from '@compilr-dev/agents';
5
5
  import type { Preset } from './presets/types.js';
6
6
  import type { ToolProfile } from './team/tool-config.js';
7
7
  import type { ConditionalModule } from './capabilities/hook.js';
@@ -296,11 +296,11 @@ export interface CompilrAgentConfig {
296
296
  */
297
297
  export interface CompilrAgent {
298
298
  /** Run the agent with a message and return the result */
299
- run(message: string, options?: RunOptions): Promise<RunResult>;
299
+ run(message: string | ContentBlock[], options?: RunOptions): Promise<RunResult>;
300
300
  /** Stream agent events */
301
- stream(message: string, options?: RunOptions): AsyncIterable<AgentEvent>;
301
+ stream(message: string | ContentBlock[], options?: RunOptions): AsyncIterable<AgentEvent>;
302
302
  /** Multi-turn chat (alias for run, keeps history) */
303
- chat(message: string, options?: RunOptions): Promise<RunResult>;
303
+ chat(message: string | ContentBlock[], options?: RunOptions): Promise<RunResult>;
304
304
  /** Add a tool at runtime */
305
305
  addTool(tool: Tool): this;
306
306
  /** Add a pin (critical info that survives compaction) */
@@ -22,6 +22,10 @@ export interface SystemPromptContext {
22
22
  enableMetaTools?: boolean;
23
23
  /** Does the agent have a role-specific identity? (team agents) */
24
24
  hasRoleIdentity?: boolean;
25
+ /** Does the active project type provide its own systemPromptSection? When
26
+ * true, the SDK suppresses the default coding-assistant identity so the
27
+ * type-specific role (research, business, content, etc.) takes over. */
28
+ hasSystemPromptSection?: boolean;
25
29
  /** Does the client support inline visual output (HTML/SVG preview)? Desktop only. */
26
30
  hasVisualOutput?: boolean;
27
31
  /** Active project display name (human-readable, e.g. "Hr Manager") */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilr-dev/sdk",
3
- "version": "0.9.27",
3
+ "version": "0.9.29",
4
4
  "description": "Universal agent runtime for building AI-powered applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",