@vybestack/llxprt-code-core 0.6.2 → 0.7.0-nightly.251207.a6190e71e
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/auth/precedence.js +9 -10
- package/dist/src/auth/precedence.js.map +1 -1
- package/dist/src/auth/types.d.ts +6 -6
- package/dist/src/core/geminiChat.d.ts +8 -0
- package/dist/src/core/geminiChat.js +63 -5
- package/dist/src/core/geminiChat.js.map +1 -1
- package/dist/src/core/turn.js +12 -8
- package/dist/src/core/turn.js.map +1 -1
- package/dist/src/ide/ide-client.js +4 -2
- package/dist/src/ide/ide-client.js.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/parsers/TextToolCallParser.d.ts +0 -15
- package/dist/src/parsers/TextToolCallParser.js +21 -5
- package/dist/src/parsers/TextToolCallParser.js.map +1 -1
- package/dist/src/providers/BaseProvider.d.ts +3 -0
- package/dist/src/providers/BaseProvider.js +11 -0
- package/dist/src/providers/BaseProvider.js.map +1 -1
- package/dist/src/providers/IProvider.d.ts +3 -0
- package/dist/src/providers/ProviderManager.js +6 -0
- package/dist/src/providers/ProviderManager.js.map +1 -1
- package/dist/src/providers/anthropic/AnthropicProvider.d.ts +0 -1
- package/dist/src/providers/anthropic/AnthropicProvider.js +233 -22
- package/dist/src/providers/anthropic/AnthropicProvider.js.map +1 -1
- package/dist/src/providers/anthropic/schemaConverter.d.ts +63 -0
- package/dist/src/providers/anthropic/schemaConverter.js +189 -0
- package/dist/src/providers/anthropic/schemaConverter.js.map +1 -0
- package/dist/src/providers/gemini/GeminiProvider.js +108 -11
- package/dist/src/providers/gemini/GeminiProvider.js.map +1 -1
- package/dist/src/providers/gemini/thoughtSignatures.d.ts +51 -0
- package/dist/src/providers/gemini/thoughtSignatures.js +189 -0
- package/dist/src/providers/gemini/thoughtSignatures.js.map +1 -0
- package/dist/src/providers/openai/OpenAIProvider.d.ts +78 -1
- package/dist/src/providers/openai/OpenAIProvider.js +1159 -190
- package/dist/src/providers/openai/OpenAIProvider.js.map +1 -1
- package/dist/src/providers/openai/ToolCallNormalizer.d.ts +6 -0
- package/dist/src/providers/openai/ToolCallNormalizer.js +16 -2
- package/dist/src/providers/openai/ToolCallNormalizer.js.map +1 -1
- package/dist/src/providers/openai/schemaConverter.d.ts +67 -0
- package/dist/src/providers/openai/schemaConverter.js +191 -0
- package/dist/src/providers/openai/schemaConverter.js.map +1 -0
- package/dist/src/providers/openai-responses/OpenAIResponsesProvider.d.ts +0 -4
- package/dist/src/providers/openai-responses/OpenAIResponsesProvider.js +3 -75
- package/dist/src/providers/openai-responses/OpenAIResponsesProvider.js.map +1 -1
- package/dist/src/providers/openai-responses/schemaConverter.d.ts +65 -0
- package/dist/src/providers/openai-responses/schemaConverter.js +195 -0
- package/dist/src/providers/openai-responses/schemaConverter.js.map +1 -0
- package/dist/src/providers/openai-vercel/OpenAIVercelProvider.d.ts +146 -0
- package/dist/src/providers/openai-vercel/OpenAIVercelProvider.js +1177 -0
- package/dist/src/providers/openai-vercel/OpenAIVercelProvider.js.map +1 -0
- package/dist/src/providers/openai-vercel/errors.d.ts +46 -0
- package/dist/src/providers/openai-vercel/errors.js +137 -0
- package/dist/src/providers/openai-vercel/errors.js.map +1 -0
- package/dist/src/providers/openai-vercel/index.d.ts +22 -0
- package/dist/src/providers/openai-vercel/index.js +23 -0
- package/dist/src/providers/openai-vercel/index.js.map +1 -0
- package/dist/src/providers/openai-vercel/messageConversion.d.ts +36 -0
- package/dist/src/providers/openai-vercel/messageConversion.js +410 -0
- package/dist/src/providers/openai-vercel/messageConversion.js.map +1 -0
- package/dist/src/providers/openai-vercel/schemaConverter.d.ts +66 -0
- package/dist/src/providers/openai-vercel/schemaConverter.js +191 -0
- package/dist/src/providers/openai-vercel/schemaConverter.js.map +1 -0
- package/dist/src/providers/openai-vercel/toolIdUtils.d.ts +33 -0
- package/dist/src/providers/openai-vercel/toolIdUtils.js +117 -0
- package/dist/src/providers/openai-vercel/toolIdUtils.js.map +1 -0
- package/dist/src/providers/reasoning/reasoningUtils.d.ts +43 -0
- package/dist/src/providers/reasoning/reasoningUtils.js +92 -0
- package/dist/src/providers/reasoning/reasoningUtils.js.map +1 -0
- package/dist/src/providers/utils/localEndpoint.js +6 -2
- package/dist/src/providers/utils/localEndpoint.js.map +1 -1
- package/dist/src/runtime/AgentRuntimeContext.d.ts +27 -0
- package/dist/src/runtime/AgentRuntimeContext.js.map +1 -1
- package/dist/src/runtime/createAgentRuntimeContext.js +27 -1
- package/dist/src/runtime/createAgentRuntimeContext.js.map +1 -1
- package/dist/src/services/history/IContent.d.ts +6 -0
- package/dist/src/services/history/IContent.js.map +1 -1
- package/dist/src/settings/types.d.ts +1 -1
- package/dist/src/tools/IToolFormatter.d.ts +1 -1
- package/dist/src/tools/ToolFormatter.js +14 -2
- package/dist/src/tools/ToolFormatter.js.map +1 -1
- package/dist/src/tools/ToolIdStrategy.d.ts +72 -0
- package/dist/src/tools/ToolIdStrategy.js +107 -0
- package/dist/src/tools/ToolIdStrategy.js.map +1 -0
- package/dist/src/tools/todo-schemas.d.ts +4 -4
- package/dist/src/utils/filesearch/ignore.js +3 -2
- package/dist/src/utils/filesearch/ignore.js.map +1 -1
- package/dist/src/utils/gitIgnoreParser.js +2 -1
- package/dist/src/utils/gitIgnoreParser.js.map +1 -1
- package/dist/src/utils/schemaValidator.js +41 -6
- package/dist/src/utils/schemaValidator.js.map +1 -1
- package/package.json +3 -1
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Vybestack LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @plan PLAN-20251205-ISSUE712
|
|
8
|
+
* @description Tool ID strategy module for Kimi K2 and standard ID handling
|
|
9
|
+
*
|
|
10
|
+
* This module provides different strategies for resolving tool call IDs
|
|
11
|
+
* based on the tool format being used. Kimi K2 requires a specific ID format
|
|
12
|
+
* (functions.{name}:{index}) while most other providers use OpenAI-style
|
|
13
|
+
* call_xxx format.
|
|
14
|
+
*/
|
|
15
|
+
import type { IContent, ToolCallBlock, ToolResponseBlock } from '../services/history/IContent.js';
|
|
16
|
+
import type { ToolFormat } from './IToolFormatter.js';
|
|
17
|
+
/**
|
|
18
|
+
* Interface for mapping tool IDs to provider-specific formats
|
|
19
|
+
*/
|
|
20
|
+
export interface ToolIdMapper {
|
|
21
|
+
/**
|
|
22
|
+
* Resolves a tool call's internal ID to the provider-specific format
|
|
23
|
+
*/
|
|
24
|
+
resolveToolCallId(tc: ToolCallBlock): string;
|
|
25
|
+
/**
|
|
26
|
+
* Resolves a tool response's callId to the provider-specific format
|
|
27
|
+
* that matches its corresponding tool call
|
|
28
|
+
*/
|
|
29
|
+
resolveToolResponseId(tr: ToolResponseBlock): string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Interface for creating tool ID mappers based on conversation contents
|
|
33
|
+
*/
|
|
34
|
+
export interface ToolIdStrategy {
|
|
35
|
+
/**
|
|
36
|
+
* Creates a mapper that can resolve tool IDs for the given conversation
|
|
37
|
+
*/
|
|
38
|
+
createMapper(contents: IContent[]): ToolIdMapper;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Checks if a model name indicates a Kimi K2 model that requires
|
|
42
|
+
* the special functions.{name}:{index} ID format.
|
|
43
|
+
*
|
|
44
|
+
* Uses specific pattern matching to avoid false positives from models
|
|
45
|
+
* that happen to contain 'k2' as part of their name (e.g., "gptk2-turbo").
|
|
46
|
+
*
|
|
47
|
+
* @param model - The model name to check
|
|
48
|
+
* @returns true if this is a K2 model requiring special ID handling
|
|
49
|
+
*/
|
|
50
|
+
export declare function isKimiModel(model: string): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Kimi K2 strategy: Generates IDs in the format functions.{toolName}:{globalIndex}
|
|
53
|
+
*
|
|
54
|
+
* K2 uses a specific ID format where each tool call gets a sequential index
|
|
55
|
+
* based on its position in the conversation. This strategy scans all tool calls
|
|
56
|
+
* and assigns indices, then uses those indices when resolving IDs.
|
|
57
|
+
*/
|
|
58
|
+
export declare const kimiStrategy: ToolIdStrategy;
|
|
59
|
+
/**
|
|
60
|
+
* Standard strategy: Converts internal hist_tool_xxx format to OpenAI call_xxx format
|
|
61
|
+
*
|
|
62
|
+
* This is the default strategy used for most providers (OpenAI, Qwen, DeepSeek, etc.)
|
|
63
|
+
* It simply normalizes the internal ID format to the OpenAI format.
|
|
64
|
+
*/
|
|
65
|
+
export declare const standardStrategy: ToolIdStrategy;
|
|
66
|
+
/**
|
|
67
|
+
* Gets the appropriate tool ID strategy for a given tool format
|
|
68
|
+
*
|
|
69
|
+
* @param format - The tool format being used
|
|
70
|
+
* @returns The strategy to use for ID resolution
|
|
71
|
+
*/
|
|
72
|
+
export declare function getToolIdStrategy(format: ToolFormat): ToolIdStrategy;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Vybestack LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { normalizeToOpenAIToolId } from '../providers/openai-vercel/toolIdUtils.js';
|
|
7
|
+
/**
|
|
8
|
+
* Checks if a model name indicates a Kimi K2 model that requires
|
|
9
|
+
* the special functions.{name}:{index} ID format.
|
|
10
|
+
*
|
|
11
|
+
* Uses specific pattern matching to avoid false positives from models
|
|
12
|
+
* that happen to contain 'k2' as part of their name (e.g., "gptk2-turbo").
|
|
13
|
+
*
|
|
14
|
+
* @param model - The model name to check
|
|
15
|
+
* @returns true if this is a K2 model requiring special ID handling
|
|
16
|
+
*/
|
|
17
|
+
export function isKimiModel(model) {
|
|
18
|
+
const lowerModel = model.toLowerCase();
|
|
19
|
+
// Explicit kimi branding
|
|
20
|
+
if (lowerModel.includes('kimi')) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
// Check for k2 at word boundaries:
|
|
24
|
+
// - starts with k2 (e.g., "k2-0527-preview")
|
|
25
|
+
// - ends with k2 or -k2 (e.g., "model-k2")
|
|
26
|
+
// - has k2 surrounded by non-alphanumeric (e.g., "kimi-k2-chat")
|
|
27
|
+
const k2Pattern = /(?:^|[^a-z0-9])k2(?:[^a-z0-9]|$)/;
|
|
28
|
+
return k2Pattern.test(lowerModel);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Kimi K2 strategy: Generates IDs in the format functions.{toolName}:{globalIndex}
|
|
32
|
+
*
|
|
33
|
+
* K2 uses a specific ID format where each tool call gets a sequential index
|
|
34
|
+
* based on its position in the conversation. This strategy scans all tool calls
|
|
35
|
+
* and assigns indices, then uses those indices when resolving IDs.
|
|
36
|
+
*/
|
|
37
|
+
export const kimiStrategy = {
|
|
38
|
+
createMapper(contents) {
|
|
39
|
+
// Build a map of internal ID -> K2 format ID
|
|
40
|
+
const idToK2Id = new Map();
|
|
41
|
+
let globalIndex = 0;
|
|
42
|
+
// Scan all tool calls in the conversation
|
|
43
|
+
for (const content of contents) {
|
|
44
|
+
if (content.speaker !== 'ai')
|
|
45
|
+
continue;
|
|
46
|
+
for (const block of content.blocks) {
|
|
47
|
+
if (isToolCallBlock(block)) {
|
|
48
|
+
const k2Id = `functions.${block.name}:${globalIndex}`;
|
|
49
|
+
idToK2Id.set(block.id, k2Id);
|
|
50
|
+
globalIndex++;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
resolveToolCallId(tc) {
|
|
56
|
+
return idToK2Id.get(tc.id) ?? `functions.${tc.name}:${globalIndex++}`;
|
|
57
|
+
},
|
|
58
|
+
resolveToolResponseId(tr) {
|
|
59
|
+
// Look up the corresponding tool call's K2 ID
|
|
60
|
+
const k2Id = idToK2Id.get(tr.callId);
|
|
61
|
+
if (k2Id) {
|
|
62
|
+
return k2Id;
|
|
63
|
+
}
|
|
64
|
+
// Fallback: generate a new ID based on the tool name
|
|
65
|
+
// This handles orphan responses or responses to calls not yet seen
|
|
66
|
+
return `functions.${tr.toolName}:${globalIndex++}`;
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Standard strategy: Converts internal hist_tool_xxx format to OpenAI call_xxx format
|
|
73
|
+
*
|
|
74
|
+
* This is the default strategy used for most providers (OpenAI, Qwen, DeepSeek, etc.)
|
|
75
|
+
* It simply normalizes the internal ID format to the OpenAI format.
|
|
76
|
+
*/
|
|
77
|
+
export const standardStrategy = {
|
|
78
|
+
createMapper(_contents) {
|
|
79
|
+
return {
|
|
80
|
+
resolveToolCallId(tc) {
|
|
81
|
+
return normalizeToOpenAIToolId(tc.id);
|
|
82
|
+
},
|
|
83
|
+
resolveToolResponseId(tr) {
|
|
84
|
+
return normalizeToOpenAIToolId(tr.callId);
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Gets the appropriate tool ID strategy for a given tool format
|
|
91
|
+
*
|
|
92
|
+
* @param format - The tool format being used
|
|
93
|
+
* @returns The strategy to use for ID resolution
|
|
94
|
+
*/
|
|
95
|
+
export function getToolIdStrategy(format) {
|
|
96
|
+
if (format === 'kimi') {
|
|
97
|
+
return kimiStrategy;
|
|
98
|
+
}
|
|
99
|
+
return standardStrategy;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Type guard for ToolCallBlock
|
|
103
|
+
*/
|
|
104
|
+
function isToolCallBlock(block) {
|
|
105
|
+
return block.type === 'tool_call';
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=ToolIdStrategy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolIdStrategy.js","sourceRoot":"","sources":["../../../src/tools/ToolIdStrategy.ts"],"names":[],"mappings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AE,EAAE,CAAC;YACxE,CAAC;YAED,qBAAqB,CAAC,EAAqB;gBACzC,8CAA8C;gBAC9C,MAAM,IAAI,GAAG,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;gBACrC,IAAI,IAAI,EAAE,CAAC;oBACT,OAAO,IAAI,CAAC;gBACd,CAAC;gBACD,qDAAqD;gBACrD,mEAAmE;gBACnE,OAAO,aAAa,EAAE,CAAC,QAAQ,IAAI,WAAW,EAAE,EAAE,CAAC;YACrD,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAmB;IAC9C,YAAY,CAAC,SAAqB;QAChC,OAAO;YACL,iBAAiB,CAAC,EAAiB;gBACjC,OAAO,uBAAuB,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;YACxC,CAAC;YAED,qBAAqB,CAAC,EAAqB;gBACzC,OAAO,uBAAuB,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;YAC5C,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC;AAEF;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAC,MAAkB;IAClD,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;QACtB,OAAO,YAAY,CAAC;IACtB,CAAC;IACD,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAED;;GAEG;AACH,SAAS,eAAe,CAAC,KAAmB;IAC1C,OAAO,KAAK,CAAC,IAAI,KAAK,WAAW,CAAC;AACpC,CAAC"}
|
|
@@ -123,7 +123,7 @@ export declare const TodoSchema: z.ZodObject<{
|
|
|
123
123
|
id: string;
|
|
124
124
|
status: "in_progress" | "completed" | "pending";
|
|
125
125
|
content: string;
|
|
126
|
-
priority: "
|
|
126
|
+
priority: "low" | "medium" | "high";
|
|
127
127
|
toolCalls?: {
|
|
128
128
|
id: string;
|
|
129
129
|
timestamp: Date;
|
|
@@ -144,7 +144,7 @@ export declare const TodoSchema: z.ZodObject<{
|
|
|
144
144
|
id: string | number;
|
|
145
145
|
status: "in_progress" | "completed" | "pending";
|
|
146
146
|
content: string;
|
|
147
|
-
priority: "
|
|
147
|
+
priority: "low" | "medium" | "high";
|
|
148
148
|
toolCalls?: {
|
|
149
149
|
id: string | number;
|
|
150
150
|
timestamp: Date;
|
|
@@ -225,7 +225,7 @@ export declare const TodoArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
225
225
|
id: string;
|
|
226
226
|
status: "in_progress" | "completed" | "pending";
|
|
227
227
|
content: string;
|
|
228
|
-
priority: "
|
|
228
|
+
priority: "low" | "medium" | "high";
|
|
229
229
|
toolCalls?: {
|
|
230
230
|
id: string;
|
|
231
231
|
timestamp: Date;
|
|
@@ -246,7 +246,7 @@ export declare const TodoArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
246
246
|
id: string | number;
|
|
247
247
|
status: "in_progress" | "completed" | "pending";
|
|
248
248
|
content: string;
|
|
249
|
-
priority: "
|
|
249
|
+
priority: "low" | "medium" | "high";
|
|
250
250
|
toolCalls?: {
|
|
251
251
|
id: string | number;
|
|
252
252
|
timestamp: Date;
|
|
@@ -8,6 +8,7 @@ import path from 'node:path';
|
|
|
8
8
|
import ignore from 'ignore';
|
|
9
9
|
import picomatch from 'picomatch';
|
|
10
10
|
const hasFileExtension = picomatch('**/*[*.]*');
|
|
11
|
+
const createIgnore = ignore;
|
|
11
12
|
export function loadIgnoreRules(options) {
|
|
12
13
|
const ignorer = new Ignore();
|
|
13
14
|
if (options.useGitignore) {
|
|
@@ -33,8 +34,8 @@ export function loadIgnoreRules(options) {
|
|
|
33
34
|
}
|
|
34
35
|
export class Ignore {
|
|
35
36
|
allPatterns = [];
|
|
36
|
-
dirIgnorer =
|
|
37
|
-
fileIgnorer =
|
|
37
|
+
dirIgnorer = createIgnore();
|
|
38
|
+
fileIgnorer = createIgnore();
|
|
38
39
|
/**
|
|
39
40
|
* Adds one or more ignore patterns.
|
|
40
41
|
* @param patterns A single pattern string or an array of pattern strings.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ignore.js","sourceRoot":"","sources":["../../../../src/utils/filesearch/ignore.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,
|
|
1
|
+
{"version":3,"file":"ignore.js","sourceRoot":"","sources":["../../../../src/utils/filesearch/ignore.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,MAGN,MAAM,QAAQ,CAAC;AAChB,OAAO,SAAS,MAAM,WAAW,CAAC;AAElC,MAAM,gBAAgB,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;AAChD,MAAM,YAAY,GAAG,MAEJ,CAAC;AASlB,MAAM,UAAU,eAAe,CAAC,OAA+B;IAC7D,MAAM,OAAO,GAAG,IAAI,MAAM,EAAE,CAAC;IAC7B,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;QACzB,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;QACnE,IAAI,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC;YACjC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,YAAY,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC;QACtD,CAAC;IACH,CAAC;IAED,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;QAC5B,MAAM,gBAAgB,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;QACzE,IAAI,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAAE,CAAC;YACpC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,YAAY,CAAC,gBAAgB,EAAE,M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gBACpE,iEAAiE;gBACjE,6BAA6B;gBAC7B,EAAE;gBACF,yEAAyE;gBACzE,qEAAqE;gBACrE,gEAAgE;gBAChE,iEAAiE;gBACjE,qEAAqE;gBACrE,kDAAkD;gBAClD,EAAE;gBACF,uEAAuE;gBACvE,uDAAuD;gBACvD,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;gBAC9B,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAC;oBAC/B,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;gBAC/B,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;OAGG;IACH,kBAAkB;QAChB,OAAO,CAAC,OAAe,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;;OAIG;IACH,aAAa;QACX,OAAO,CAAC,QAAgB,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE,CAAC;IAED;;;;;OAKG;IACH,cAAc;QACZ,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;CACF"}
|
|
@@ -7,9 +7,10 @@ import * as fs from 'fs';
|
|
|
7
7
|
import * as path from 'path';
|
|
8
8
|
import ignore from 'ignore';
|
|
9
9
|
import { isGitRepository } from './gitUtils.js';
|
|
10
|
+
const createIgnore = ignore;
|
|
10
11
|
export class GitIgnoreParser {
|
|
11
12
|
projectRoot;
|
|
12
|
-
ig =
|
|
13
|
+
ig = createIgnore();
|
|
13
14
|
patterns = [];
|
|
14
15
|
constructor(projectRoot) {
|
|
15
16
|
this.projectRoot = path.resolve(projectRoot);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gitIgnoreParser.js","sourceRoot":"","sources":["../../../src/utils/git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
|
import AjvPkg from 'ajv';
|
|
7
|
-
import * as addFormats from 'ajv-formats';
|
|
8
7
|
// Ajv's ESM/CJS interop: use 'any' for compatibility as recommended by Ajv docs
|
|
9
8
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10
9
|
const AjvClass = AjvPkg.default || AjvPkg;
|
|
@@ -19,9 +18,21 @@ const ajValidator = new AjvClass(
|
|
|
19
18
|
// will be logged but the schema will still be considered valid).
|
|
20
19
|
strictSchema: false,
|
|
21
20
|
});
|
|
22
|
-
//
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
// Register custom formats used by upstream schemas
|
|
22
|
+
ajValidator.addFormat('google-duration', {
|
|
23
|
+
type: 'string',
|
|
24
|
+
validate: () => true,
|
|
25
|
+
});
|
|
26
|
+
ajValidator.addFormat('google-fieldmask', {
|
|
27
|
+
type: 'string',
|
|
28
|
+
validate: () => true,
|
|
29
|
+
});
|
|
30
|
+
ajValidator.addFormat('something-totally-custom', {
|
|
31
|
+
type: 'string',
|
|
32
|
+
validate: () => true,
|
|
33
|
+
});
|
|
34
|
+
// Ensure date format is available when ajv-formats is not installed
|
|
35
|
+
ajValidator.addFormat('date', /^\d{4}-\d{2}-\d{2}$/);
|
|
25
36
|
/**
|
|
26
37
|
* Simple utility to validate objects against JSON Schemas
|
|
27
38
|
*/
|
|
@@ -55,9 +66,33 @@ export class SchemaValidator {
|
|
|
55
66
|
const validate = ajValidator.compile(ajvSchema);
|
|
56
67
|
const valid = validate(data);
|
|
57
68
|
if (!valid && validate.errors) {
|
|
58
|
-
const
|
|
59
|
-
|
|
69
|
+
const formatPath = (path) => {
|
|
70
|
+
if (!path) {
|
|
71
|
+
return 'params';
|
|
72
|
+
}
|
|
73
|
+
const normalized = path
|
|
74
|
+
.replace(/\[(\d+)\]/g, '/$1')
|
|
75
|
+
.replace(/\.+/g, '/')
|
|
76
|
+
.replace(/\/+/g, '/')
|
|
77
|
+
.replace(/^\/+/, '');
|
|
78
|
+
return `params/${normalized}`;
|
|
79
|
+
};
|
|
80
|
+
const formattedErrors = validate.errors.map((err) => {
|
|
81
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
82
|
+
const path = err.instancePath || err.dataPath || '';
|
|
83
|
+
const basePath = formatPath(path);
|
|
84
|
+
const message = err.message ?? 'is invalid';
|
|
85
|
+
return `${basePath} ${message}`;
|
|
60
86
|
});
|
|
87
|
+
const errorTextRaw = formattedErrors.join('; ');
|
|
88
|
+
let errorText = errorTextRaw?.replace(/\bshould\b/gi, 'must') ?? errorTextRaw;
|
|
89
|
+
if (errorText) {
|
|
90
|
+
errorText = errorText.replace(/must NOT be shorter than (\d+) characters/gi, 'must NOT have fewer than $1 characters');
|
|
91
|
+
if (/anyOf/i.test(errorText) &&
|
|
92
|
+
!/must match a schema in anyOf/i.test(errorText)) {
|
|
93
|
+
errorText = `${errorText}; must match a schema in anyOf`;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
61
96
|
return errorText;
|
|
62
97
|
}
|
|
63
98
|
return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemaValidator.js","sourceRoot":"","sources":["../../../src/utils/schemaValidator.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,MAAM,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schemaValidator.js","sourceRoot":"","sources":["../../../src/utils/schemaValidator.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,MAAM,MAAM,KAAK,CAAC;AAEzB,gFAAgF;AAChF,8DAA8D;AAC9D,MAAM,QAAQ,GAAI,MAAc,CAAC,OAAO,IAAI,MAAM,CAAC;AACnD,MAAM,WAAW,GAAG,IAAI,QAAQ;AAC9B,2DAA2D;AAC3D;IACE,sEAAsE;IACtE,0EAA0E;IAC1E,uEAAuE;IACvE,oEAAoE;IACpE,yEAAyE;IACzE,iEAAiE;IACjE,YAAY,EAAE,KAAK;CACpB,CACF,CAAC;AACF,mDAAmD;AACnD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C,IAAI,YAAY,CAAC;YAChE,IAAI,SAAS,EAAE,CAAC;gBACd,SAAS,GAAG,SAAS,CAAC,OAAO,CAC3B,6CAA6C,EAC7C,wCAAwC,CACzC,CAAC;gBACF,IACE,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC;oBACxB,CAAC,+BAA+B,CAAC,IAAI,CAAC,SAAS,CAAC,EAChD,CAAC;oBACD,SAAS,GAAG,GAAG,SAAS,gCAAgC,CAAC;gBAC3D,CAAC;YACH,CAAC;YACD,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vybestack/llxprt-code-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0-nightly.251207.a6190e71e",
|
|
4
4
|
"description": "LLxprt Code Core",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
+
"@ai-sdk/openai": "^2.0.74",
|
|
25
|
+
"ai": "^5.0.104",
|
|
24
26
|
"@anthropic-ai/sdk": "^0.55.1",
|
|
25
27
|
"@dqbd/tiktoken": "^1.0.21",
|
|
26
28
|
"@google/genai": "1.16.0",
|