summaryrefslogtreecommitdiff
path: root/packages/core/src
diff options
context:
space:
mode:
authorDidier Durand <[email protected]>2025-07-21 00:36:34 +0200
committerGitHub <[email protected]>2025-07-20 22:36:34 +0000
commit0f6405e28dc60ecc4caa29b1222446d1eb5a64de (patch)
tree8cbd8dedca1f5fb4e64a5ca384f0af583f43976f /packages/core/src
parent0996d91f0b4a0befe3553016518fd40898699f0a (diff)
fix typos in diverse files (#3550)
Co-authored-by: Pascal Birchler <[email protected]> Co-authored-by: Pascal Birchler <[email protected]> Co-authored-by: N. Taylor Mullen <[email protected]>
Diffstat (limited to 'packages/core/src')
-rw-r--r--packages/core/src/tools/mcp-tool.ts2
-rw-r--r--packages/core/src/utils/editCorrector.ts8
-rw-r--r--packages/core/src/utils/schemaValidator.ts2
3 files changed, 6 insertions, 6 deletions
diff --git a/packages/core/src/tools/mcp-tool.ts b/packages/core/src/tools/mcp-tool.ts
index 9916d7f9..9e814bba 100644
--- a/packages/core/src/tools/mcp-tool.ts
+++ b/packages/core/src/tools/mcp-tool.ts
@@ -86,7 +86,7 @@ export class DiscoveredMCPTool extends BaseTool<ToolParams, ToolResult> {
DiscoveredMCPTool.allowlist.has(serverAllowListKey) ||
DiscoveredMCPTool.allowlist.has(toolAllowListKey)
) {
- return false; // server and/or tool already allow listed
+ return false; // server and/or tool already allowlisted
}
const confirmationDetails: ToolMcpConfirmationDetails = {
diff --git a/packages/core/src/utils/editCorrector.ts b/packages/core/src/utils/editCorrector.ts
index bff1c2f2..a770c491 100644
--- a/packages/core/src/utils/editCorrector.ts
+++ b/packages/core/src/utils/editCorrector.ts
@@ -77,10 +77,10 @@ function getTimestampFromFunctionId(fcnId: string): number {
/**
* Will look through the gemini client history and determine when the most recent
- * edit to a target file occured. If no edit happened, it will return -1
+ * edit to a target file occurred. If no edit happened, it will return -1
* @param filePath the path to the file
* @param client the geminiClient, so that we can get the history
- * @returns a DateTime (as a number) of when the last edit occured, or -1 if no edit was found.
+ * @returns a DateTime (as a number) of when the last edit occurred, or -1 if no edit was found.
*/
async function findLastEditTimestamp(
filePath: string,
@@ -132,8 +132,8 @@ async function findLastEditTimestamp(
// Use the "blunt hammer" approach to find the file path in the content.
// Note that the tool response data is inconsistent in their formatting
- // with successes and errors - so, we just check for the existance
- // as the best guess to if error/failed occured with the response.
+ // with successes and errors - so, we just check for the existence
+ // as the best guess to if error/failed occurred with the response.
const stringified = JSON.stringify(content);
if (
!stringified.includes('Error') && // only applicable for functionResponse
diff --git a/packages/core/src/utils/schemaValidator.ts b/packages/core/src/utils/schemaValidator.ts
index 0610c3bb..cb025774 100644
--- a/packages/core/src/utils/schemaValidator.ts
+++ b/packages/core/src/utils/schemaValidator.ts
@@ -36,7 +36,7 @@ export class SchemaValidator {
/**
* Converts @google/genai's Schema to an object compatible with avj.
- * This is necessry because it represents Types as an Enum (with
+ * This is necessary because it represents Types as an Enum (with
* UPPERCASE values) and minItems and minLength as strings, when they should be numbers.
*/
private static toObjectSchema(schema: Schema): object {