fix(lint): reformat 6 files touched during web dep upgrade
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
d447095bd7
commit
280303ef9a
6 changed files with 6 additions and 25 deletions
|
|
@ -344,13 +344,7 @@ if (
|
|||
// everywhere without elevated permissions.
|
||||
const sfScopeDir = join(sfNodeModules, "@singularity-forge");
|
||||
const packagesDir = join(sfRootDir, "packages");
|
||||
const wsPackages = [
|
||||
"native",
|
||||
"agent-core",
|
||||
"ai",
|
||||
"coding-agent",
|
||||
"tui",
|
||||
];
|
||||
const wsPackages = ["native", "agent-core", "ai", "coding-agent", "tui"];
|
||||
try {
|
||||
if (!existsSync(sfScopeDir)) mkdirSync(sfScopeDir, { recursive: true });
|
||||
for (const pkg of wsPackages) {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,7 @@
|
|||
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
||||
import { homedir } from "node:os";
|
||||
import { basename, join, relative, resolve } from "node:path";
|
||||
import {
|
||||
getAgentDir,
|
||||
SettingsManager,
|
||||
} from "@singularity-forge/coding-agent";
|
||||
import { getAgentDir, SettingsManager } from "@singularity-forge/coding-agent";
|
||||
import { PluginImporter } from "./plugin-importer.js";
|
||||
|
||||
const SKIP_DIRS = new Set([
|
||||
|
|
|
|||
|
|
@ -1,10 +1,7 @@
|
|||
import { existsSync, readFileSync } from "node:fs";
|
||||
import { join } from "node:path";
|
||||
import { getEnvApiKey } from "@singularity-forge/ai";
|
||||
import {
|
||||
getAgentDir,
|
||||
SettingsManager,
|
||||
} from "@singularity-forge/coding-agent";
|
||||
import { getAgentDir, SettingsManager } from "@singularity-forge/coding-agent";
|
||||
|
||||
const GOOGLE_ENV_AUTH_DEFAULT_OFF_PROVIDERS = new Set([
|
||||
"google",
|
||||
|
|
|
|||
|
|
@ -9,10 +9,7 @@ export function resolve(specifier, context, nextResolve) {
|
|||
tsSpecifier = specifier
|
||||
.replace("@singularity-forge/", PACKAGES_ROOT)
|
||||
.replace("/dist/", "/src/");
|
||||
if (
|
||||
tsSpecifier.includes("/packages/ai") &&
|
||||
!tsSpecifier.endsWith(".ts")
|
||||
) {
|
||||
if (tsSpecifier.includes("/packages/ai") && !tsSpecifier.endsWith(".ts")) {
|
||||
tsSpecifier = tsSpecifier.replace(
|
||||
/\/packages\/ai$/,
|
||||
"/packages/ai/src/index.ts",
|
||||
|
|
|
|||
|
|
@ -3,10 +3,7 @@
|
|||
*/
|
||||
import * as fs from "node:fs";
|
||||
import * as path from "node:path";
|
||||
import {
|
||||
getAgentDir,
|
||||
parseFrontmatter,
|
||||
} from "@singularity-forge/coding-agent";
|
||||
import { getAgentDir, parseFrontmatter } from "@singularity-forge/coding-agent";
|
||||
|
||||
const PROJECT_AGENT_DIR_CANDIDATES = [".sf", ".pi"];
|
||||
export function parseConflictsWith(value) {
|
||||
|
|
|
|||
|
|
@ -35,8 +35,7 @@ test("resolve-ts loader rewrites direct coding-agent source entry import to .ts"
|
|||
|
||||
assert.equal(
|
||||
resolved.url,
|
||||
new URL("../../packages/coding-agent/src/index.ts", import.meta.url)
|
||||
.href,
|
||||
new URL("../../packages/coding-agent/src/index.ts", import.meta.url).href,
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue