codeep 1.2.39 → 1.2.40

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.
@@ -32,13 +32,23 @@ export interface InitializeParams {
32
32
  version: string;
33
33
  };
34
34
  }
35
+ export interface AgentCapabilities {
36
+ loadSession?: boolean;
37
+ promptCapabilities?: {
38
+ image?: boolean;
39
+ audio?: boolean;
40
+ embeddedContext?: boolean;
41
+ };
42
+ mcpCapabilities?: {
43
+ stdio?: boolean;
44
+ sse?: boolean;
45
+ http?: boolean;
46
+ };
47
+ sessionCapabilities?: Record<string, unknown>;
48
+ }
35
49
  export interface InitializeResult {
36
50
  protocolVersion: number;
37
- agentCapabilities: {
38
- loadSession?: boolean;
39
- streaming?: boolean;
40
- fileEditing?: boolean;
41
- };
51
+ agentCapabilities: AgentCapabilities;
42
52
  agentInfo: {
43
53
  name: string;
44
54
  version: string;
@@ -66,11 +76,11 @@ export interface SessionConfigOption {
66
76
  description?: string | null;
67
77
  category?: 'mode' | 'model' | 'thought_level' | null;
68
78
  type: 'select';
69
- options?: {
70
- id: string;
79
+ currentValue: string;
80
+ options: {
81
+ value: string;
71
82
  name: string;
72
83
  }[];
73
- currentValue?: string;
74
84
  }
75
85
  export interface SessionNewParams {
76
86
  cwd: string;
@@ -4,7 +4,7 @@ import { randomUUID } from 'crypto';
4
4
  import { StdioTransport } from './transport.js';
5
5
  import { runAgentSession } from './session.js';
6
6
  import { initWorkspace, loadWorkspace, handleCommand } from './commands.js';
7
- import { autoSaveSession, config } from '../config/index.js';
7
+ import { autoSaveSession, config, getModelsForCurrentProvider } from '../config/index.js';
8
8
  import { getCurrentVersion } from '../utils/update.js';
9
9
  // ─── Slash commands advertised to Zed ────────────────────────────────────────
10
10
  const AVAILABLE_COMMANDS = [
@@ -59,6 +59,16 @@ const AGENT_MODES = {
59
59
  };
60
60
  // ─── Config options ───────────────────────────────────────────────────────────
61
61
  function buildConfigOptions() {
62
+ const models = getModelsForCurrentProvider();
63
+ const currentModel = config.get('model') ?? '';
64
+ const modelOptions = Object.entries(models).map(([id, label]) => ({
65
+ value: id,
66
+ name: label,
67
+ }));
68
+ // Ensure currentValue is always one of the valid options
69
+ const currentValue = modelOptions.some(o => o.value === currentModel)
70
+ ? currentModel
71
+ : (modelOptions[0]?.value ?? '');
62
72
  return [
63
73
  {
64
74
  id: 'model',
@@ -66,7 +76,8 @@ function buildConfigOptions() {
66
76
  description: 'AI model to use',
67
77
  category: 'model',
68
78
  type: 'select',
69
- currentValue: config.get('model'),
79
+ currentValue,
80
+ options: modelOptions,
70
81
  },
71
82
  ];
72
83
  }
@@ -120,8 +131,6 @@ export function startAcpServer() {
120
131
  protocolVersion: 1,
121
132
  agentCapabilities: {
122
133
  loadSession: true,
123
- streaming: true,
124
- fileEditing: true,
125
134
  },
126
135
  agentInfo: {
127
136
  name: 'codeep',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeep",
3
- "version": "1.2.39",
3
+ "version": "1.2.40",
4
4
  "description": "AI-powered coding assistant built for the terminal. Multiple LLM providers, project-aware context, and a seamless development workflow.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",