Skip to content

Commit 1e96371

Browse files
committed
fix: formatting
1 parent d80c364 commit 1e96371

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

core/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/cli/src/services/AgentFileService.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import fs from "fs";
22
import path from "path";
33
import { fileURLToPath } from "url";
4+
45
import { beforeEach, describe, expect, it, vi } from "vitest";
56

67
import {

extensions/cli/src/services/AgentFileService.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
1+
import fs from "fs";
2+
import path from "path";
3+
import { fileURLToPath } from "url";
4+
15
import {
26
AgentFile,
37
parseAgentFile,
48
parseAgentFileRules,
59
parseAgentFileTools,
610
} from "@continuedev/config-yaml";
7-
import fs from "fs";
8-
import path from "path";
11+
12+
import { getErrorString } from "src/util/error.js";
13+
914
import {
1015
agentFileProcessor,
1116
loadModelFromHub,
1217
loadPackageFromHub,
1318
} from "../hubLoader.js";
1419
import { logger } from "../util/logger.js";
1520

16-
import { getErrorString } from "src/util/error.js";
17-
import { fileURLToPath } from "url";
1821
import { BaseService, ServiceWithDependencies } from "./BaseService.js";
1922
import { serviceContainer } from "./ServiceContainer.js";
2023
import {
@@ -57,7 +60,7 @@ export class AgentFileService
5760
return await loadPackageFromHub(agentPath, agentFileProcessor);
5861
} catch (e) {
5962
logger.info(
60-
`Failed to load agent file from slug-like path: ${agentPath}`,
63+
`Failed to load agent file from slug-like path ${agentPath}: ${getErrorString(e)}`,
6164
);
6265
// slug COULD be path, fall back to relative path
6366
}

0 commit comments

Comments
 (0)