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.
|
// everywhere without elevated permissions.
|
||||||
const sfScopeDir = join(sfNodeModules, "@singularity-forge");
|
const sfScopeDir = join(sfNodeModules, "@singularity-forge");
|
||||||
const packagesDir = join(sfRootDir, "packages");
|
const packagesDir = join(sfRootDir, "packages");
|
||||||
const wsPackages = [
|
const wsPackages = ["native", "agent-core", "ai", "coding-agent", "tui"];
|
||||||
"native",
|
|
||||||
"agent-core",
|
|
||||||
"ai",
|
|
||||||
"coding-agent",
|
|
||||||
"tui",
|
|
||||||
];
|
|
||||||
try {
|
try {
|
||||||
if (!existsSync(sfScopeDir)) mkdirSync(sfScopeDir, { recursive: true });
|
if (!existsSync(sfScopeDir)) mkdirSync(sfScopeDir, { recursive: true });
|
||||||
for (const pkg of wsPackages) {
|
for (const pkg of wsPackages) {
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,7 @@
|
||||||
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
||||||
import { homedir } from "node:os";
|
import { homedir } from "node:os";
|
||||||
import { basename, join, relative, resolve } from "node:path";
|
import { basename, join, relative, resolve } from "node:path";
|
||||||
import {
|
import { getAgentDir, SettingsManager } from "@singularity-forge/coding-agent";
|
||||||
getAgentDir,
|
|
||||||
SettingsManager,
|
|
||||||
} from "@singularity-forge/coding-agent";
|
|
||||||
import { PluginImporter } from "./plugin-importer.js";
|
import { PluginImporter } from "./plugin-importer.js";
|
||||||
|
|
||||||
const SKIP_DIRS = new Set([
|
const SKIP_DIRS = new Set([
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,7 @@
|
||||||
import { existsSync, readFileSync } from "node:fs";
|
import { existsSync, readFileSync } from "node:fs";
|
||||||
import { join } from "node:path";
|
import { join } from "node:path";
|
||||||
import { getEnvApiKey } from "@singularity-forge/ai";
|
import { getEnvApiKey } from "@singularity-forge/ai";
|
||||||
import {
|
import { getAgentDir, SettingsManager } from "@singularity-forge/coding-agent";
|
||||||
getAgentDir,
|
|
||||||
SettingsManager,
|
|
||||||
} from "@singularity-forge/coding-agent";
|
|
||||||
|
|
||||||
const GOOGLE_ENV_AUTH_DEFAULT_OFF_PROVIDERS = new Set([
|
const GOOGLE_ENV_AUTH_DEFAULT_OFF_PROVIDERS = new Set([
|
||||||
"google",
|
"google",
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,7 @@ export function resolve(specifier, context, nextResolve) {
|
||||||
tsSpecifier = specifier
|
tsSpecifier = specifier
|
||||||
.replace("@singularity-forge/", PACKAGES_ROOT)
|
.replace("@singularity-forge/", PACKAGES_ROOT)
|
||||||
.replace("/dist/", "/src/");
|
.replace("/dist/", "/src/");
|
||||||
if (
|
if (tsSpecifier.includes("/packages/ai") && !tsSpecifier.endsWith(".ts")) {
|
||||||
tsSpecifier.includes("/packages/ai") &&
|
|
||||||
!tsSpecifier.endsWith(".ts")
|
|
||||||
) {
|
|
||||||
tsSpecifier = tsSpecifier.replace(
|
tsSpecifier = tsSpecifier.replace(
|
||||||
/\/packages\/ai$/,
|
/\/packages\/ai$/,
|
||||||
"/packages/ai/src/index.ts",
|
"/packages/ai/src/index.ts",
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,7 @@
|
||||||
*/
|
*/
|
||||||
import * as fs from "node:fs";
|
import * as fs from "node:fs";
|
||||||
import * as path from "node:path";
|
import * as path from "node:path";
|
||||||
import {
|
import { getAgentDir, parseFrontmatter } from "@singularity-forge/coding-agent";
|
||||||
getAgentDir,
|
|
||||||
parseFrontmatter,
|
|
||||||
} from "@singularity-forge/coding-agent";
|
|
||||||
|
|
||||||
const PROJECT_AGENT_DIR_CANDIDATES = [".sf", ".pi"];
|
const PROJECT_AGENT_DIR_CANDIDATES = [".sf", ".pi"];
|
||||||
export function parseConflictsWith(value) {
|
export function parseConflictsWith(value) {
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,7 @@ test("resolve-ts loader rewrites direct coding-agent source entry import to .ts"
|
||||||
|
|
||||||
assert.equal(
|
assert.equal(
|
||||||
resolved.url,
|
resolved.url,
|
||||||
new URL("../../packages/coding-agent/src/index.ts", import.meta.url)
|
new URL("../../packages/coding-agent/src/index.ts", import.meta.url).href,
|
||||||
.href,
|
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue