@compilr-dev/sdk 0.7.9 → 0.7.10

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.js CHANGED
@@ -256,6 +256,7 @@ class CompilrAgentImpl {
256
256
  enabled: guardrailsConfig.enabled,
257
257
  includeDefaults: guardrailsConfig.includeDefaults,
258
258
  },
259
+ delegation: config?.delegation,
259
260
  onEvent: (event) => {
260
261
  // Track usage from events
261
262
  if (event.type === 'usage_recorded') {
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 } from '@compilr-dev/agents';
4
+ import type { LLMProvider, Message, Tool, ToolPermission, HooksConfig, AnchorInput, AgentEvent, ToolExecutionResult, DelegationConfig } 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';
@@ -192,6 +192,8 @@ export interface CompilrAgentConfig {
192
192
  hooks?: HooksConfig;
193
193
  /** Context management configuration */
194
194
  context?: ContextConfig;
195
+ /** Tool result delegation — auto-summarize large results to conserve context */
196
+ delegation?: DelegationConfig;
195
197
  /**
196
198
  * Callback for the suggest tool. When provided, the default no-op suggest
197
199
  * tool is replaced with one that calls this callback.
@@ -37,7 +37,7 @@ export const MODEL_REGISTRY = [
37
37
  defaultTier: 'balanced',
38
38
  thinkingFormat: 'claude',
39
39
  status: 'supported',
40
- contextWindow: 200000,
40
+ contextWindow: 1000000,
41
41
  },
42
42
  {
43
43
  id: 'claude-opus-4-6',
@@ -47,7 +47,7 @@ export const MODEL_REGISTRY = [
47
47
  defaultTier: 'powerful',
48
48
  thinkingFormat: 'claude',
49
49
  status: 'supported',
50
- contextWindow: 200000,
50
+ contextWindow: 1000000,
51
51
  },
52
52
  // Legacy Claude models (still supported)
53
53
  {
@@ -696,7 +696,7 @@ You are the **Researcher** in this multi-agent research team. You specialize in
696
696
  - Argument structure questions → "$default or $reviewer can assess the outline"
697
697
  - Writing/style questions → "$editor can review the prose"
698
698
  - Planning questions → "$default can help with project planning"`,
699
- defaultToolProfile: 'full',
699
+ defaultToolProfile: 'analyst', // Read + search + docs + project (no file writes)
700
700
  defaultModelTier: 'balanced',
701
701
  },
702
702
  reviewer: {
@@ -747,7 +747,7 @@ You are the **Reviewer** in this multi-agent research team. You specialize in va
747
747
  - Source analysis needed → "$researcher can analyze the sources"
748
748
  - Writing quality → "$editor can improve the prose"
749
749
  - Structural changes → "$default can update the outline"`,
750
- defaultToolProfile: 'full',
750
+ defaultToolProfile: 'analyst', // Read-only analysis, no direct editing
751
751
  defaultModelTier: 'balanced',
752
752
  },
753
753
  editor: {
@@ -802,7 +802,7 @@ You are the **Editor** in this multi-agent research team. You specialize in impr
802
802
  - Argument issues → "$reviewer should check the logic here"
803
803
  - Source questions → "$researcher can verify this citation"
804
804
  - Structural changes → "$default can update the outline"`,
805
- defaultToolProfile: 'full',
805
+ defaultToolProfile: 'docs', // Read + write docs, no shell/git
806
806
  defaultModelTier: 'balanced',
807
807
  },
808
808
  writer: {
@@ -823,7 +823,7 @@ You are the **Writer** in this multi-agent team. You specialize in creating comp
823
823
  - Always match the project's established tone and voice
824
824
  - Ask about audience and purpose before writing if not clear
825
825
  - Provide drafts, not final copy — let the Editor refine`,
826
- defaultToolProfile: 'full',
826
+ defaultToolProfile: 'docs', // Read + write docs
827
827
  defaultModelTier: 'balanced',
828
828
  },
829
829
  analyst: {
@@ -844,7 +844,7 @@ You are the **Analyst** in this multi-agent team. You specialize in research, da
844
844
  - Lead with key insights, support with data
845
845
  - Use tables and bullet points for comparisons
846
846
  - Always cite sources and note confidence levels`,
847
- defaultToolProfile: 'full',
847
+ defaultToolProfile: 'analyst', // Read + search + project (read-only analysis)
848
848
  defaultModelTier: 'balanced',
849
849
  },
850
850
  strategist: {
@@ -866,7 +866,7 @@ You are the **Strategist** in this multi-agent team. You specialize in business
866
866
  - Think in frameworks (Porter's Five Forces, Business Model Canvas, etc.)
867
867
  - Always consider market context and competitive landscape
868
868
  - Balance ambition with feasibility`,
869
- defaultToolProfile: 'full',
869
+ defaultToolProfile: 'planner', // Strategy + planning + backlog + docs (read-only)
870
870
  defaultModelTier: 'balanced',
871
871
  },
872
872
  instructor: {
@@ -889,7 +889,7 @@ You are the **Instructor** in this multi-agent team. You specialize in education
889
889
  - Build knowledge progressively — prerequisites first
890
890
  - Include hands-on exercises for every concept
891
891
  - Consider different learning styles`,
892
- defaultToolProfile: 'full',
892
+ defaultToolProfile: 'docs', // Read + write educational content
893
893
  defaultModelTier: 'balanced',
894
894
  },
895
895
  custom: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilr-dev/sdk",
3
- "version": "0.7.9",
3
+ "version": "0.7.10",
4
4
  "description": "Universal agent runtime for building AI-powered applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",