@didim365/agent-cli-core 0.2.1 → 0.2.2
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/src/agents/cli-help-agent.d.ts +3 -3
- package/dist/src/agents/cli-help-agent.js +7 -7
- package/dist/src/agents/cli-help-agent.js.map +1 -1
- package/dist/src/config/providerModels.js +12 -9
- package/dist/src/config/providerModels.js.map +1 -1
- package/dist/src/generated/git-commit.d.ts +2 -2
- package/dist/src/generated/git-commit.js +2 -2
- package/dist/src/ide/types.d.ts +40 -40
- package/dist/src/providers/openai/adapter.js +2 -2
- package/dist/src/providers/openai/adapter.js.map +1 -1
- package/dist/src/services/gitService.js +1 -1
- package/dist/src/services/gitService.js.map +1 -1
- package/dist/src/utils/environmentContext.js +1 -1
- package/package.json +1 -1
|
@@ -10,14 +10,14 @@ declare const CliHelpReportSchema: z.ZodObject<{
|
|
|
10
10
|
answer: z.ZodString;
|
|
11
11
|
sources: z.ZodArray<z.ZodString, "many">;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
sources: string[];
|
|
14
13
|
answer: string;
|
|
15
|
-
}, {
|
|
16
14
|
sources: string[];
|
|
15
|
+
}, {
|
|
17
16
|
answer: string;
|
|
17
|
+
sources: string[];
|
|
18
18
|
}>;
|
|
19
19
|
/**
|
|
20
|
-
* An agent specialized in answering questions about
|
|
20
|
+
* An agent specialized in answering questions about Didim Agent CLI itself,
|
|
21
21
|
* using its own documentation and runtime state.
|
|
22
22
|
*/
|
|
23
23
|
export declare const CliHelpAgent: (config: Config) => AgentDefinition<typeof CliHelpReportSchema>;
|
|
@@ -9,27 +9,27 @@ import { GetInternalDocsTool } from '../tools/get-internal-docs.js';
|
|
|
9
9
|
const CliHelpReportSchema = z.object({
|
|
10
10
|
answer: z
|
|
11
11
|
.string()
|
|
12
|
-
.describe('The detailed answer to the user question about
|
|
12
|
+
.describe('The detailed answer to the user question about Didim Agent CLI.'),
|
|
13
13
|
sources: z
|
|
14
14
|
.array(z.string())
|
|
15
15
|
.describe('The documentation files used to answer the question.'),
|
|
16
16
|
});
|
|
17
17
|
/**
|
|
18
|
-
* An agent specialized in answering questions about
|
|
18
|
+
* An agent specialized in answering questions about Didim Agent CLI itself,
|
|
19
19
|
* using its own documentation and runtime state.
|
|
20
20
|
*/
|
|
21
21
|
export const CliHelpAgent = (config) => ({
|
|
22
22
|
name: 'cli_help',
|
|
23
23
|
kind: 'local',
|
|
24
24
|
displayName: 'CLI Help Agent',
|
|
25
|
-
description: 'Specialized in answering questions about how users use you, (
|
|
25
|
+
description: 'Specialized in answering questions about how users use you, (Didim Agent CLI): features, documentation, and current runtime configuration.',
|
|
26
26
|
inputConfig: {
|
|
27
27
|
inputSchema: {
|
|
28
28
|
type: 'object',
|
|
29
29
|
properties: {
|
|
30
30
|
question: {
|
|
31
31
|
type: 'string',
|
|
32
|
-
description: 'The specific question about
|
|
32
|
+
description: 'The specific question about Didim Agent CLI.',
|
|
33
33
|
},
|
|
34
34
|
},
|
|
35
35
|
required: ['question'],
|
|
@@ -60,18 +60,18 @@ export const CliHelpAgent = (config) => ({
|
|
|
60
60
|
tools: [new GetInternalDocsTool(config.getMessageBus())],
|
|
61
61
|
},
|
|
62
62
|
promptConfig: {
|
|
63
|
-
query: 'Your task is to answer the following question about
|
|
63
|
+
query: 'Your task is to answer the following question about Didim Agent CLI:\n' +
|
|
64
64
|
'<question>\n' +
|
|
65
65
|
'${question}\n' +
|
|
66
66
|
'</question>',
|
|
67
|
-
systemPrompt: "You are **CLI Help Agent**, an expert on
|
|
67
|
+
systemPrompt: "You are **CLI Help Agent**, an expert on Didim Agent CLI. Your purpose is to provide accurate information about Didim Agent CLI's features, configuration, and current state.\n\n" +
|
|
68
68
|
'### Runtime Context\n' +
|
|
69
69
|
'- **CLI Version:** ${cliVersion}\n' +
|
|
70
70
|
'- **Active Model:** ${activeModel}\n' +
|
|
71
71
|
"- **Today's Date:** ${today}\n\n" +
|
|
72
72
|
(config.isAgentsEnabled()
|
|
73
73
|
? '### Sub-Agents (Local & Remote)\n' +
|
|
74
|
-
"User defined sub-agents are defined in `.didim/agents/` or `~/.didim/agents/` as .md files. **CRITICAL:** These files **MUST** start with YAML frontmatter enclosed in triple-dashes `---`, for example:\n\n```yaml\n---\nname: my-agent\n---\n```\n\nWithout this mandatory frontmatter, the agent will not be discovered or loaded by
|
|
74
|
+
"User defined sub-agents are defined in `.didim/agents/` or `~/.didim/agents/` as .md files. **CRITICAL:** These files **MUST** start with YAML frontmatter enclosed in triple-dashes `---`, for example:\n\n```yaml\n---\nname: my-agent\n---\n```\n\nWithout this mandatory frontmatter, the agent will not be discovered or loaded by Didim Agent CLI. The Markdown body following the frontmatter becomes the agent's system prompt (`system_prompt`). Always reference the types and properties outlined here directly when answering questions about sub-agents.\n" +
|
|
75
75
|
'- **Local Agent:** `kind = "local"`, `name`, `description`, `system_prompt`, and optional `tools`, `model`, `temperate`, `max_turns`, `timeout_mins`.\n' +
|
|
76
76
|
'- **Remote Agent (A2A):** `kind = "remote"`, `name`, `agent_card_url`. Remote Agents do not use `system_prompt`. Multiple remote agents can be defined by using a YAML array at the top level of the frontmatter. **Note:** When users ask about "remote agents", they are referring to this Agent2Agent functionality, which is completely distinct from MCP servers.\n' +
|
|
77
77
|
'- **Agent Names:** Must be valid slugs (lowercase letters, numbers, hyphens, and underscores only).\n' +
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-help-agent.js","sourceRoot":"","sources":["../../../src/agents/cli-help-agent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,MAAM,EAAE,CAAC;SACN,MAAM,EAAE;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,IAAI;YACV,cAAc,EAAE;gBACd,eAAe,EAAE,IAAI;gBACrB,cAAc,EAAE,CAAC,CAAC;aACnB;SACF;KACF;IAED,SAAS,EAAE;QACT,cAAc,EAAE,CAAC;QACjB,QAAQ,EAAE,EAAE;KACb;IAED,UAAU,EAAE;QACV,KAAK,EAAE,CAAC,IAAI,mBAAmB,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC,CAAC;KACzD;IAED,YAAY,EAAE;QACZ,KAAK,EACH,wEAAwE;YACxE,cAAc;YACd,eAAe;YACf,aAAa;QACf,YAAY,EACV,mLAAmL;YACnL,uBAAuB;YACvB,oCAAoC;YACpC,sCAAsC;YACtC,kCAAkC;YAClC,CAAC,MAAM,CAAC,eAAe,EAAE;gBACvB,CAAC,CAAC,mCAAmC;oBACnC,yiBAAyiB;oBACziB,yJAAyJ;oBACzJ,0WAA0W;oBAC1W,uGAAuG;oBACvG,gOAAgO;gBAClO,CAAC,CAAC,EAAE,CAAC;YACP,oBAAoB;YACpB,yNAAyN;YACzN,gGAAgG;YAChG,uGAAuG;YACvG,kLAAkL;YAClL,uGAAuG;KAC1G;CACF,CAAC,CAAC"}
|
|
@@ -63,24 +63,27 @@ export const PROVIDER_MODEL_REGISTRY = {
|
|
|
63
63
|
providerKey: 'openai',
|
|
64
64
|
presets: [
|
|
65
65
|
{
|
|
66
|
-
value: 'gpt-
|
|
67
|
-
title: 'Recommended (gpt-
|
|
68
|
-
description: '
|
|
66
|
+
value: 'gpt-5.2',
|
|
67
|
+
title: 'Recommended (gpt-5.2)',
|
|
68
|
+
description: 'Flagship reasoning model with 400K context',
|
|
69
69
|
},
|
|
70
70
|
],
|
|
71
71
|
models: [
|
|
72
72
|
{
|
|
73
|
-
id: 'gpt-
|
|
74
|
-
description: '
|
|
73
|
+
id: 'gpt-5.2',
|
|
74
|
+
description: 'Flagship reasoning model, 400K context',
|
|
75
75
|
isDefault: true,
|
|
76
76
|
},
|
|
77
|
-
{ id: 'gpt-4.1-mini', description: 'Fast, balanced performance' },
|
|
78
|
-
{ id: 'gpt-4.1-nano', description: 'Fastest, most cost-efficient' },
|
|
79
77
|
{
|
|
80
|
-
id: 'gpt-
|
|
81
|
-
description: '
|
|
78
|
+
id: 'gpt-5-mini',
|
|
79
|
+
description: 'Compact GPT-5, fast and efficient',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
id: 'gpt-4.1',
|
|
83
|
+
description: 'Best 1M context non-reasoning model',
|
|
82
84
|
category: 'general',
|
|
83
85
|
},
|
|
86
|
+
{ id: 'gpt-4.1-mini', description: 'Fast, balanced performance' },
|
|
84
87
|
{
|
|
85
88
|
id: 'o3',
|
|
86
89
|
description: 'Most powerful reasoning model',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providerModels.js","sourceRoot":"","sources":["../../../src/config/providerModels.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA0CH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAuC;IACzE,MAAM,EAAE;QACN,WAAW,EAAE,QAAQ;QACrB,OAAO,EAAE;YACP;gBACE,KAAK,EAAE,eAAe;gBACtB,KAAK,EAAE,iBAAiB;gBACxB,WAAW,EACT,mEAAmE;aACtE;YACD;gBACE,KAAK,EAAE,iBAAiB;gBACxB,KAAK,EAAE,mBAAmB;gBAC1B,WAAW,EACT,uEAAuE;aAC1E;SACF;QACD,MAAM,EAAE;YACN,EAAE,EAAE,EAAE,sBAAsB,EAAE,QAAQ,EAAE,SAAS,EAAE;YACnD,EAAE,EAAE,EAAE,wBAAwB,EAAE,QAAQ,EAAE,MAAM,EAAE;YAClD,EAAE,EAAE,EAAE,gBAAgB,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE;YAC9D,EAAE,EAAE,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,EAAE;YAC5C,EAAE,EAAE,EAAE,uBAAuB,EAAE,QAAQ,EAAE,MAAM,EAAE;SAClD;QACD,iBAAiB,EAAE,IAAI;KACxB;IAED,MAAM,EAAE;QACN,WAAW,EAAE,QAAQ;QACrB,OAAO,EAAE;YACP;gBACE,KAAK,EAAE,iBAAiB;gBACxB,KAAK,EAAE,+BAA+B;gBACtC,WAAW,EAAE,uDAAuD;aACrE;SACF;QACD,MAAM,EAAE;YACN;gBACE,EAAE,EAAE,iBAAiB;gBACrB,WAAW,EAAE,mCAAmC;gBAChD,SAAS,EAAE,IAAI;aAChB;YACD;gBACE,EAAE,EAAE,4BAA4B;gBAChC,WAAW,EAAE,mCAAmC;aACjD;YACD;gBACE,EAAE,EAAE,2BAA2B;gBAC/B,WAAW,EAAE,qCAAqC;aACnD;SACF;QACD,iBAAiB,EAAE,IAAI;KACxB;IAED,MAAM,EAAE;QACN,WAAW,EAAE,QAAQ;QACrB,OAAO,EAAE;YACP;gBACE,KAAK,EAAE,SAAS;gBAChB,KAAK,EAAE,uBAAuB;gBAC9B,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"providerModels.js","sourceRoot":"","sources":["../../../src/config/providerModels.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA0CH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAuC;IACzE,MAAM,EAAE;QACN,WAAW,EAAE,QAAQ;QACrB,OAAO,EAAE;YACP;gBACE,KAAK,EAAE,eAAe;gBACtB,KAAK,EAAE,iBAAiB;gBACxB,WAAW,EACT,mEAAmE;aACtE;YACD;gBACE,KAAK,EAAE,iBAAiB;gBACxB,KAAK,EAAE,mBAAmB;gBAC1B,WAAW,EACT,uEAAuE;aAC1E;SACF;QACD,MAAM,EAAE;YACN,EAAE,EAAE,EAAE,sBAAsB,EAAE,QAAQ,EAAE,SAAS,EAAE;YACnD,EAAE,EAAE,EAAE,wBAAwB,EAAE,QAAQ,EAAE,MAAM,EAAE;YAClD,EAAE,EAAE,EAAE,gBAAgB,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE;YAC9D,E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AAa,CAAC;SACnC;KACF,CAAC;IAEF,KAAK,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE,CAAC;QAClE,IAAI,QAAQ,KAAK,eAAe;YAAE,SAAS;QAC3C,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;YAAE,OAAO,IAAI,CAAC;IAC7D,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Copyright 2026 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
export declare const GIT_COMMIT_INFO = "
|
|
7
|
-
export declare const CLI_VERSION = "0.
|
|
6
|
+
export declare const GIT_COMMIT_INFO = "4eda6866c";
|
|
7
|
+
export declare const CLI_VERSION = "0.29.0";
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
// This file is auto-generated by the build script (scripts/generate-git-commit-info.js)
|
|
7
7
|
// Do not edit this file manually.
|
|
8
|
-
export const GIT_COMMIT_INFO = '
|
|
9
|
-
export const CLI_VERSION = '0.
|
|
8
|
+
export const GIT_COMMIT_INFO = '4eda6866c';
|
|
9
|
+
export const CLI_VERSION = '0.29.0';
|
|
10
10
|
//# sourceMappingURL=git-commit.js.map
|
package/dist/src/ide/types.d.ts
CHANGED
|
@@ -46,21 +46,21 @@ export declare const FileSchema: z.ZodObject<{
|
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
47
|
path: string;
|
|
48
48
|
timestamp: number;
|
|
49
|
+
isActive?: boolean | undefined;
|
|
50
|
+
selectedText?: string | undefined;
|
|
49
51
|
cursor?: {
|
|
50
52
|
line: number;
|
|
51
53
|
character: number;
|
|
52
54
|
} | undefined;
|
|
53
|
-
isActive?: boolean | undefined;
|
|
54
|
-
selectedText?: string | undefined;
|
|
55
55
|
}, {
|
|
56
56
|
path: string;
|
|
57
57
|
timestamp: number;
|
|
58
|
+
isActive?: boolean | undefined;
|
|
59
|
+
selectedText?: string | undefined;
|
|
58
60
|
cursor?: {
|
|
59
61
|
line: number;
|
|
60
62
|
character: number;
|
|
61
63
|
} | undefined;
|
|
62
|
-
isActive?: boolean | undefined;
|
|
63
|
-
selectedText?: string | undefined;
|
|
64
64
|
}>;
|
|
65
65
|
export type File = z.infer<typeof FileSchema>;
|
|
66
66
|
/**
|
|
@@ -110,21 +110,21 @@ export declare const IdeContextSchema: z.ZodObject<{
|
|
|
110
110
|
}, "strip", z.ZodTypeAny, {
|
|
111
111
|
path: string;
|
|
112
112
|
timestamp: number;
|
|
113
|
+
isActive?: boolean | undefined;
|
|
114
|
+
selectedText?: string | undefined;
|
|
113
115
|
cursor?: {
|
|
114
116
|
line: number;
|
|
115
117
|
character: number;
|
|
116
118
|
} | undefined;
|
|
117
|
-
isActive?: boolean | undefined;
|
|
118
|
-
selectedText?: string | undefined;
|
|
119
119
|
}, {
|
|
120
120
|
path: string;
|
|
121
121
|
timestamp: number;
|
|
122
|
+
isActive?: boolean | undefined;
|
|
123
|
+
selectedText?: string | undefined;
|
|
122
124
|
cursor?: {
|
|
123
125
|
line: number;
|
|
124
126
|
character: number;
|
|
125
127
|
} | undefined;
|
|
126
|
-
isActive?: boolean | undefined;
|
|
127
|
-
selectedText?: string | undefined;
|
|
128
128
|
}>, "many">>;
|
|
129
129
|
/**
|
|
130
130
|
* Whether the workspace is trusted.
|
|
@@ -134,24 +134,24 @@ export declare const IdeContextSchema: z.ZodObject<{
|
|
|
134
134
|
openFiles?: {
|
|
135
135
|
path: string;
|
|
136
136
|
timestamp: number;
|
|
137
|
+
isActive?: boolean | undefined;
|
|
138
|
+
selectedText?: string | undefined;
|
|
137
139
|
cursor?: {
|
|
138
140
|
line: number;
|
|
139
141
|
character: number;
|
|
140
142
|
} | undefined;
|
|
141
|
-
isActive?: boolean | undefined;
|
|
142
|
-
selectedText?: string | undefined;
|
|
143
143
|
}[] | undefined;
|
|
144
144
|
isTrusted?: boolean | undefined;
|
|
145
145
|
}, {
|
|
146
146
|
openFiles?: {
|
|
147
147
|
path: string;
|
|
148
148
|
timestamp: number;
|
|
149
|
+
isActive?: boolean | undefined;
|
|
150
|
+
selectedText?: string | undefined;
|
|
149
151
|
cursor?: {
|
|
150
152
|
line: number;
|
|
151
153
|
character: number;
|
|
152
154
|
} | undefined;
|
|
153
|
-
isActive?: boolean | undefined;
|
|
154
|
-
selectedText?: string | undefined;
|
|
155
155
|
}[] | undefined;
|
|
156
156
|
isTrusted?: boolean | undefined;
|
|
157
157
|
}>>;
|
|
@@ -160,12 +160,12 @@ export declare const IdeContextSchema: z.ZodObject<{
|
|
|
160
160
|
openFiles?: {
|
|
161
161
|
path: string;
|
|
162
162
|
timestamp: number;
|
|
163
|
+
isActive?: boolean | undefined;
|
|
164
|
+
selectedText?: string | undefined;
|
|
163
165
|
cursor?: {
|
|
164
166
|
line: number;
|
|
165
167
|
character: number;
|
|
166
168
|
} | undefined;
|
|
167
|
-
isActive?: boolean | undefined;
|
|
168
|
-
selectedText?: string | undefined;
|
|
169
169
|
}[] | undefined;
|
|
170
170
|
isTrusted?: boolean | undefined;
|
|
171
171
|
} | undefined;
|
|
@@ -174,12 +174,12 @@ export declare const IdeContextSchema: z.ZodObject<{
|
|
|
174
174
|
openFiles?: {
|
|
175
175
|
path: string;
|
|
176
176
|
timestamp: number;
|
|
177
|
+
isActive?: boolean | undefined;
|
|
178
|
+
selectedText?: string | undefined;
|
|
177
179
|
cursor?: {
|
|
178
180
|
line: number;
|
|
179
181
|
character: number;
|
|
180
182
|
} | undefined;
|
|
181
|
-
isActive?: boolean | undefined;
|
|
182
|
-
selectedText?: string | undefined;
|
|
183
183
|
}[] | undefined;
|
|
184
184
|
isTrusted?: boolean | undefined;
|
|
185
185
|
} | undefined;
|
|
@@ -235,21 +235,21 @@ export declare const IdeContextNotificationSchema: z.ZodObject<{
|
|
|
235
235
|
}, "strip", z.ZodTypeAny, {
|
|
236
236
|
path: string;
|
|
237
237
|
timestamp: number;
|
|
238
|
+
isActive?: boolean | undefined;
|
|
239
|
+
selectedText?: string | undefined;
|
|
238
240
|
cursor?: {
|
|
239
241
|
line: number;
|
|
240
242
|
character: number;
|
|
241
243
|
} | undefined;
|
|
242
|
-
isActive?: boolean | undefined;
|
|
243
|
-
selectedText?: string | undefined;
|
|
244
244
|
}, {
|
|
245
245
|
path: string;
|
|
246
246
|
timestamp: number;
|
|
247
|
+
isActive?: boolean | undefined;
|
|
248
|
+
selectedText?: string | undefined;
|
|
247
249
|
cursor?: {
|
|
248
250
|
line: number;
|
|
249
251
|
character: number;
|
|
250
252
|
} | undefined;
|
|
251
|
-
isActive?: boolean | undefined;
|
|
252
|
-
selectedText?: string | undefined;
|
|
253
253
|
}>, "many">>;
|
|
254
254
|
/**
|
|
255
255
|
* Whether the workspace is trusted.
|
|
@@ -259,24 +259,24 @@ export declare const IdeContextNotificationSchema: z.ZodObject<{
|
|
|
259
259
|
openFiles?: {
|
|
260
260
|
path: string;
|
|
261
261
|
timestamp: number;
|
|
262
|
+
isActive?: boolean | undefined;
|
|
263
|
+
selectedText?: string | undefined;
|
|
262
264
|
cursor?: {
|
|
263
265
|
line: number;
|
|
264
266
|
character: number;
|
|
265
267
|
} | undefined;
|
|
266
|
-
isActive?: boolean | undefined;
|
|
267
|
-
selectedText?: string | undefined;
|
|
268
268
|
}[] | undefined;
|
|
269
269
|
isTrusted?: boolean | undefined;
|
|
270
270
|
}, {
|
|
271
271
|
openFiles?: {
|
|
272
272
|
path: string;
|
|
273
273
|
timestamp: number;
|
|
274
|
+
isActive?: boolean | undefined;
|
|
275
|
+
selectedText?: string | undefined;
|
|
274
276
|
cursor?: {
|
|
275
277
|
line: number;
|
|
276
278
|
character: number;
|
|
277
279
|
} | undefined;
|
|
278
|
-
isActive?: boolean | undefined;
|
|
279
|
-
selectedText?: string | undefined;
|
|
280
280
|
}[] | undefined;
|
|
281
281
|
isTrusted?: boolean | undefined;
|
|
282
282
|
}>>;
|
|
@@ -285,12 +285,12 @@ export declare const IdeContextNotificationSchema: z.ZodObject<{
|
|
|
285
285
|
openFiles?: {
|
|
286
286
|
path: string;
|
|
287
287
|
timestamp: number;
|
|
288
|
+
isActive?: boolean | undefined;
|
|
289
|
+
selectedText?: string | undefined;
|
|
288
290
|
cursor?: {
|
|
289
291
|
line: number;
|
|
290
292
|
character: number;
|
|
291
293
|
} | undefined;
|
|
292
|
-
isActive?: boolean | undefined;
|
|
293
|
-
selectedText?: string | undefined;
|
|
294
294
|
}[] | undefined;
|
|
295
295
|
isTrusted?: boolean | undefined;
|
|
296
296
|
} | undefined;
|
|
@@ -299,52 +299,52 @@ export declare const IdeContextNotificationSchema: z.ZodObject<{
|
|
|
299
299
|
openFiles?: {
|
|
300
300
|
path: string;
|
|
301
301
|
timestamp: number;
|
|
302
|
+
isActive?: boolean | undefined;
|
|
303
|
+
selectedText?: string | undefined;
|
|
302
304
|
cursor?: {
|
|
303
305
|
line: number;
|
|
304
306
|
character: number;
|
|
305
307
|
} | undefined;
|
|
306
|
-
isActive?: boolean | undefined;
|
|
307
|
-
selectedText?: string | undefined;
|
|
308
308
|
}[] | undefined;
|
|
309
309
|
isTrusted?: boolean | undefined;
|
|
310
310
|
} | undefined;
|
|
311
311
|
}>;
|
|
312
312
|
}, "strip", z.ZodTypeAny, {
|
|
313
|
-
method: "ide/contextUpdate";
|
|
314
313
|
params: {
|
|
315
314
|
workspaceState?: {
|
|
316
315
|
openFiles?: {
|
|
317
316
|
path: string;
|
|
318
317
|
timestamp: number;
|
|
318
|
+
isActive?: boolean | undefined;
|
|
319
|
+
selectedText?: string | undefined;
|
|
319
320
|
cursor?: {
|
|
320
321
|
line: number;
|
|
321
322
|
character: number;
|
|
322
323
|
} | undefined;
|
|
323
|
-
isActive?: boolean | undefined;
|
|
324
|
-
selectedText?: string | undefined;
|
|
325
324
|
}[] | undefined;
|
|
326
325
|
isTrusted?: boolean | undefined;
|
|
327
326
|
} | undefined;
|
|
328
327
|
};
|
|
329
328
|
jsonrpc: "2.0";
|
|
330
|
-
}, {
|
|
331
329
|
method: "ide/contextUpdate";
|
|
330
|
+
}, {
|
|
332
331
|
params: {
|
|
333
332
|
workspaceState?: {
|
|
334
333
|
openFiles?: {
|
|
335
334
|
path: string;
|
|
336
335
|
timestamp: number;
|
|
336
|
+
isActive?: boolean | undefined;
|
|
337
|
+
selectedText?: string | undefined;
|
|
337
338
|
cursor?: {
|
|
338
339
|
line: number;
|
|
339
340
|
character: number;
|
|
340
341
|
} | undefined;
|
|
341
|
-
isActive?: boolean | undefined;
|
|
342
|
-
selectedText?: string | undefined;
|
|
343
342
|
}[] | undefined;
|
|
344
343
|
isTrusted?: boolean | undefined;
|
|
345
344
|
} | undefined;
|
|
346
345
|
};
|
|
347
346
|
jsonrpc: "2.0";
|
|
347
|
+
method: "ide/contextUpdate";
|
|
348
348
|
}>;
|
|
349
349
|
/**
|
|
350
350
|
* A notification that a diff has been accepted in the IDE.
|
|
@@ -369,19 +369,19 @@ export declare const IdeDiffAcceptedNotificationSchema: z.ZodObject<{
|
|
|
369
369
|
filePath: string;
|
|
370
370
|
}>;
|
|
371
371
|
}, "strip", z.ZodTypeAny, {
|
|
372
|
-
method: "ide/diffAccepted";
|
|
373
372
|
params: {
|
|
374
373
|
content: string;
|
|
375
374
|
filePath: string;
|
|
376
375
|
};
|
|
377
376
|
jsonrpc: "2.0";
|
|
378
|
-
}, {
|
|
379
377
|
method: "ide/diffAccepted";
|
|
378
|
+
}, {
|
|
380
379
|
params: {
|
|
381
380
|
content: string;
|
|
382
381
|
filePath: string;
|
|
383
382
|
};
|
|
384
383
|
jsonrpc: "2.0";
|
|
384
|
+
method: "ide/diffAccepted";
|
|
385
385
|
}>;
|
|
386
386
|
/**
|
|
387
387
|
* A notification that a diff has been rejected in the IDE.
|
|
@@ -400,17 +400,17 @@ export declare const IdeDiffRejectedNotificationSchema: z.ZodObject<{
|
|
|
400
400
|
filePath: string;
|
|
401
401
|
}>;
|
|
402
402
|
}, "strip", z.ZodTypeAny, {
|
|
403
|
-
method: "ide/diffRejected";
|
|
404
403
|
params: {
|
|
405
404
|
filePath: string;
|
|
406
405
|
};
|
|
407
406
|
jsonrpc: "2.0";
|
|
408
|
-
}, {
|
|
409
407
|
method: "ide/diffRejected";
|
|
408
|
+
}, {
|
|
410
409
|
params: {
|
|
411
410
|
filePath: string;
|
|
412
411
|
};
|
|
413
412
|
jsonrpc: "2.0";
|
|
413
|
+
method: "ide/diffRejected";
|
|
414
414
|
}>;
|
|
415
415
|
/**
|
|
416
416
|
* This is defined for backwards compatibility only. Newer extension versions
|
|
@@ -432,19 +432,19 @@ export declare const IdeDiffClosedNotificationSchema: z.ZodObject<{
|
|
|
432
432
|
content?: string | undefined;
|
|
433
433
|
}>;
|
|
434
434
|
}, "strip", z.ZodTypeAny, {
|
|
435
|
-
method: "ide/diffClosed";
|
|
436
435
|
params: {
|
|
437
436
|
filePath: string;
|
|
438
437
|
content?: string | undefined;
|
|
439
438
|
};
|
|
440
439
|
jsonrpc: "2.0";
|
|
441
|
-
}, {
|
|
442
440
|
method: "ide/diffClosed";
|
|
441
|
+
}, {
|
|
443
442
|
params: {
|
|
444
443
|
filePath: string;
|
|
445
444
|
content?: string | undefined;
|
|
446
445
|
};
|
|
447
446
|
jsonrpc: "2.0";
|
|
447
|
+
method: "ide/diffClosed";
|
|
448
448
|
}>;
|
|
449
449
|
/**
|
|
450
450
|
* The request to open a diff view in the IDE.
|
|
@@ -40,8 +40,8 @@ const OPENAI_CAPABILITIES = {
|
|
|
40
40
|
supportsTokenCount: false,
|
|
41
41
|
supportsSystemMessage: true,
|
|
42
42
|
supportsThought: false,
|
|
43
|
-
maxContextLength:
|
|
44
|
-
maxOutputTokens:
|
|
43
|
+
maxContextLength: 400_000,
|
|
44
|
+
maxOutputTokens: 128_000,
|
|
45
45
|
};
|
|
46
46
|
/**
|
|
47
47
|
* OpenAiAdapter wraps the OpenAI SDK behind the BaseAdapter interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../../../src/providers/openai/adapter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;GAQG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAUhD,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,YAAY,EACZ,YAAY,GACb,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAiBjD;;;;;;;;;;;;;;GAcG;AACH,MAAM,mBAAmB,GAA4B;IACnD,iBAAiB,EAAE,IAAI;IACvB,iBAAiB,EAAE,IAAI;IACvB,kBAAkB,EAAE,IAAI;IACxB,uBAAuB,EAAE,KAAK;IAC9B,iBAAiB,EAAE,KAAK;IACxB,kBAAkB,EAAE,KAAK;IACzB,qBAAqB,EAAE,IAAI;IAC3B,eAAe,EAAE,KAAK;IACtB,gBAAgB,EAAE,OAAO;IACzB,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../../../src/providers/openai/adapter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;GAQG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAUhD,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,YAAY,EACZ,YAAY,GACb,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAiBjD;;;;;;;;;;;;;;GAcG;AACH,MAAM,mBAAmB,GAA4B;IACn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ClB,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,8CAA8C;QAC9C,IAAI,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YAC7B,OAAO,IAAI,YAAY,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACzC,CAAC;QAED,OAAO,IAAI,YAAY,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACzC,CAAC;IAED;;OAEG;IACO,mBAAmB,CAC3B,MAAyB;QAEzB,OAAO;YACL,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,qBAAqB,EAAE,MAAM,CAAC,SAAS;YACvC,KAAK,EAAE,MAAM,CAAC,IAAI;YAClB,IAAI,EAAE,MAAM,CAAC,aAAa;SAC3B,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -50,7 +50,7 @@ export class GitService {
|
|
|
50
50
|
await fs.mkdir(repoDir, { recursive: true });
|
|
51
51
|
// We don't want to inherit the user's name, email, or gpg signing
|
|
52
52
|
// preferences for the shadow repository, so we create a dedicated gitconfig.
|
|
53
|
-
const gitConfigContent = '[user]\n name =
|
|
53
|
+
const gitConfigContent = '[user]\n name = Didim Agent CLI\n email = agent-cli@didim365.com\n[commit]\n gpgsign = false\n';
|
|
54
54
|
await fs.writeFile(gitConfigPath, gitConfigContent);
|
|
55
55
|
const repo = simpleGit(repoDir);
|
|
56
56
|
let isRepoDefined = false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gitService.js","sourceRoot":"","sources":["../../../src/services/gitService.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;A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AAM,IAAI,GAAG,IAAI,CAAC,mBAAmB,CAAC;YACtC,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACpB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC;YACnC,IAAI,MAAM,CAAC,OAAO,EAAE,EAAE,CAAC;gBACrB,gEAAgE;gBAChE,OAAO,MAAM,IAAI,CAAC,oBAAoB,EAAE,CAAC;YAC3C,CAAC;YACD,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;gBAC9C,aAAa,EAAE,IAAI;aACpB,CAAC,CAAC;YACH,OAAO,YAAY,CAAC,MAAM,CAAC;QAC7B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CACb,yCAAyC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,8CAA8C,CAChJ,CAAC;QACJ,CAAC;IACH,CAAC;IAED,KAAK,CAAC,0BAA0B,CAAC,UAAkB;QACjD,MAAM,IAAI,GAAG,IAAI,CAAC,mBAAmB,CAAC;QACtC,MAAM,IAAI,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,CAAC,CAAC,CAAC;QACzD,kEAAkE;QAClE,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAChC,CAAC;CACF"}
|
|
@@ -49,7 +49,7 @@ export async function getEnvironmentContext(config) {
|
|
|
49
49
|
const tempDir = config.storage.getProjectTempDir();
|
|
50
50
|
const environmentMemory = config.getEnvironmentMemory();
|
|
51
51
|
const context = `
|
|
52
|
-
This is the
|
|
52
|
+
This is the Didim Agent CLI. We are setting up the context for our chat.
|
|
53
53
|
Today's date is ${today} (formatted according to the user's locale).
|
|
54
54
|
My operating system is: ${platform}
|
|
55
55
|
The project's temporary directory is: ${tempDir}
|