@lythos/agent-adapter 0.14.1 → 0.14.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lythos/agent-adapter",
3
- "version": "0.14.1",
3
+ "version": "0.14.3",
4
4
  "main": "./src/index.ts",
5
5
  "exports": {
6
6
  ".": "./src/index.ts",
@@ -46,11 +46,13 @@ export function buildClaudeCommand(opts: {
46
46
  env?: Record<string, string>
47
47
  allowedTools?: string
48
48
  disallowedTools?: string
49
+ modelTier?: 'fast' | 'balanced' | 'deep'
49
50
  }): SpawnCommand {
50
51
  const promptFile = join(tmpdir(), `claude-prompt-${Date.now()}-${Math.random().toString(36).slice(2, 8)}.txt`)
51
52
  const allowed = opts.allowedTools ?? DEFAULT_ALLOWED_TOOLS
52
53
  const disallowed = opts.disallowedTools ?? DEFAULT_DISALLOWED_TOOLS
53
- const shellCmd = `claude -p --output-format json --permission-mode bypassPermissions --allowedTools '${allowed}' --disallowedTools '${disallowed}' < ${promptFile}`
54
+ const modelFlag = opts.modelTier === 'fast' ? ' --model haiku' : opts.modelTier === 'deep' ? ' --model opus' : ''
55
+ const shellCmd = `claude -p --output-format json --permission-mode bypassPermissions --allowedTools '${allowed}' --disallowedTools '${disallowed}'${modelFlag} < ${promptFile}`
54
56
 
55
57
  return {
56
58
  cmd: 'sh',
@@ -8,7 +8,10 @@ import { registerAgent } from '../registry'
8
8
  // ── Pure functions (testable without CLI) ────────────────────────────────────
9
9
 
10
10
  /** Build kimi --print command args (no shell wrapper — safe from injection). */
11
- export function buildKimiCommand(): string[] {
11
+ export function buildKimiCommand(_modelTier?: 'fast' | 'balanced' | 'deep'): string[] {
12
+ // Kimi CLI has no --model flag; model selection is via /model slash command,
13
+ // config.toml, or KIMI_MODEL_NAME env var. modelTier is accepted but unused
14
+ // — Kimi effectively provides one tier via coding plan.
12
15
  return ['kimi', '--print', '--afk', '--output-format', 'stream-json']
13
16
  }
14
17
 
package/src/types.ts CHANGED
@@ -41,6 +41,8 @@ export interface AgentAdapter {
41
41
  env?: Record<string, string>
42
42
  allowedTools?: string
43
43
  disallowedTools?: string
44
+ /** Model tier for cross-player comparison. fast=haiku/gpt-4o-mini, balanced=sonnet/default, deep=opus/gpt-4. */
45
+ modelTier?: 'fast' | 'balanced' | 'deep'
44
46
  }): Promise<AgentRunResult>
45
47
 
46
48
  /** Optional: structured tool invocation (function-calling). If absent, judge falls back to prompt + parse + Zod. */