fix: cubic feedback, lint
This commit is contained in:
parent
6d7bfb966d
commit
d1b4dbe7d2
8 changed files with 16 additions and 8 deletions
|
|
@ -148,4 +148,4 @@ describe("trimEmptyLines", () => {
|
|||
const result = trimEmptyLines({ lines: input, fromEnd: false });
|
||||
expect(result).toEqual([]);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ describe("findSearchMatch", () => {
|
|||
});
|
||||
});
|
||||
|
||||
it("should return null for empty search content after whitespace removal", () => {
|
||||
it("should recognize empty search", () => {
|
||||
const fileContent = "some content";
|
||||
const searchContent = " \t\n ";
|
||||
const result = findSearchMatch(fileContent, searchContent);
|
||||
|
|
|
|||
|
|
@ -188,7 +188,7 @@ All metrics and events share these standard attributes:
|
|||
|
||||
### ✅ Tool Result Event
|
||||
|
||||
**Event Name:** `tool_result`
|
||||
**Event Name:** `continue_cli_tool_result`
|
||||
|
||||
**Attributes:**
|
||||
|
||||
|
|
|
|||
|
|
@ -519,6 +519,12 @@ class TelemetryService {
|
|||
if (options.source) attributes.source = options.source;
|
||||
if (options.toolParameters)
|
||||
attributes.tool_parameters = options.toolParameters;
|
||||
if (options.errorReason) {
|
||||
attributes.error_reason = options.errorReason;
|
||||
}
|
||||
if (options.error) {
|
||||
attributes.error = options.error;
|
||||
}
|
||||
|
||||
// TODO: Implement OTLP logs export
|
||||
logger.debug("Tool result event", attributes);
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import * as fs from "fs";
|
||||
|
||||
import { ContinueError, ContinueErrorReason } from "core/util/errors.js";
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
import { ContinueError, ContinueErrorReason } from "core/util/errors.js";
|
||||
import { editTool } from "./edit.js";
|
||||
import { markFileAsRead, readFilesSet } from "./readFile.js";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
import * as fs from "fs";
|
||||
import path from "path";
|
||||
|
||||
import { validateSingleEdit } from "core/edit/searchAndReplace/findAndReplaceUtils.js";
|
||||
import { executeFindAndReplace } from "core/edit/searchAndReplace/performReplace.js";
|
||||
import { throwIfFileIsSecurityConcern } from "core/indexing/ignore.js";
|
||||
import { ContinueError, ContinueErrorReason } from "core/util/errors.js";
|
||||
import * as fs from "fs";
|
||||
import path from "path";
|
||||
|
||||
import { telemetryService } from "../telemetry/telemetryService.js";
|
||||
import {
|
||||
calculateLinesOfCodeDiff,
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import * as fs from "fs";
|
||||
import * as path from "path";
|
||||
|
||||
import { ContinueError, ContinueErrorReason } from "core/util/errors.js";
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
import { ContinueError, ContinueErrorReason } from "core/util/errors.js";
|
||||
import { multiEditTool } from "./multiEdit.js";
|
||||
import { markFileAsRead } from "./readFile.js";
|
||||
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ export async function callClientTool(
|
|||
? e
|
||||
: e instanceof Error
|
||||
? new ContinueError(ContinueErrorReason.Unspecified, e.message)
|
||||
: new ContinueError(ContinueErrorReason.Unknown),
|
||||
: new ContinueError(ContinueErrorReason.Unknown, String(e)),
|
||||
output: undefined,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue