@coffer-org/plugin-claude-agent 2.5.0 → 2.5.1

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/index.js CHANGED
@@ -44,7 +44,6 @@ export default definePlugin({
44
44
  fields: [
45
45
  field.boolean({ key: 'rag_enabled', label: 'claude-agent.settings.rag_enabled', default: true }),
46
46
  field.password({ key: 'openai_api_key', label: 'claude-agent.settings.openai_api_key' }),
47
- field.int({ key: 'rag_top_k', label: 'claude-agent.settings.rag_top_k', default: 5, view: { hidden: true } }),
48
47
  ],
49
48
  }),
50
49
  field.group({
@@ -134,7 +134,7 @@ export async function runAgent(request, deps = {}) {
134
134
  const turns = [];
135
135
  try {
136
136
  const client = makeClientFn(cfg);
137
- const rag = cfg.ragEnabled && cfg.embeddingApiKey ? { embeddingApiKey: cfg.embeddingApiKey, topK: cfg.ragTopK } : null;
137
+ const rag = cfg.ragEnabled && cfg.embeddingApiKey ? { embeddingApiKey: cfg.embeddingApiKey } : null;
138
138
  const attachmentRefs = request.messages.flatMap((m) => m.attachments ?? []);
139
139
  const { tools, handlers } = await makeAgentToolsFn(rag, attachmentRefs);
140
140
  const system = request.system.map((l) => ({
@@ -17,7 +17,6 @@ export interface AgentConfig {
17
17
  skipPermissions: boolean;
18
18
  responseTimeout: number;
19
19
  ragEnabled: boolean;
20
- ragTopK: number;
21
20
  thinkingEnabled: boolean;
22
21
  embeddingApiKey: string;
23
22
  langfusePublicKey: string;
@@ -36,7 +36,6 @@ export function loadAgentConfig(opts = {}) {
36
36
  skipPermissions: db.skip_permissions !== false,
37
37
  responseTimeout: Math.max(60, Number(env.AGENT_RESPONSE_TIMEOUT ?? db.response_timeout ?? 600) || 600),
38
38
  ragEnabled: db.rag_enabled !== false,
39
- ragTopK: 5,
40
39
  thinkingEnabled: (env.AGENT_THINKING_ENABLED ?? String(db.thinking_enabled)) === 'true'
41
40
  && supportsAdaptiveThinking(modelId(claudeModel)),
42
41
  embeddingApiKey: env.OPENAI_API_KEY ?? db.openai_api_key ?? '',
package/dist/schema.js CHANGED
@@ -7164,23 +7164,14 @@ var src_default = definePlugin({
7164
7164
  field.group({
7165
7165
  label: "claude-agent.settings.groups.rag",
7166
7166
  icon: "lucide:search",
7167
- fields: [
7168
- field.boolean({
7169
- key: "rag_enabled",
7170
- label: "claude-agent.settings.rag_enabled",
7171
- default: true
7172
- }),
7173
- field.password({
7174
- key: "openai_api_key",
7175
- label: "claude-agent.settings.openai_api_key"
7176
- }),
7177
- field.int({
7178
- key: "rag_top_k",
7179
- label: "claude-agent.settings.rag_top_k",
7180
- default: 5,
7181
- view: { hidden: true }
7182
- })
7183
- ]
7167
+ fields: [field.boolean({
7168
+ key: "rag_enabled",
7169
+ label: "claude-agent.settings.rag_enabled",
7170
+ default: true
7171
+ }), field.password({
7172
+ key: "openai_api_key",
7173
+ label: "claude-agent.settings.openai_api_key"
7174
+ })]
7184
7175
  }),
7185
7176
  field.group({
7186
7177
  label: "claude-agent.settings.groups.langfuse",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coffer-org/plugin-claude-agent",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=24"