From 92ec2550d2321748628c79df5ed5f737a1dc9a64 Mon Sep 17 00:00:00 2001 From: can1357 Date: Mon, 19 Jan 2026 00:07:23 +0100 Subject: [PATCH] refactor(coding-agent): reorganized test files to proper test directory structure - Moved test files from src/core to test/core directory. - Moved test files from src/core/tools to test/tools directory. - Moved test files from src/discovery to test/discovery directory. - Updated import paths to reflect new test file locations. --- .../core/python-executor-display.test.ts | 4 ++-- .../core/python-executor-lifecycle.test.ts | 6 +++--- .../core/python-executor-mapping.test.ts | 4 ++-- .../core/python-executor-per-call.test.ts | 6 +++--- .../core/python-executor-session.test.ts | 4 ++-- .../core/python-executor-streaming.test.ts | 6 +++--- .../core/python-executor-timeout.test.ts | 4 ++-- .../core/python-executor.lifecycle.test.ts | 4 ++-- .../core/python-executor.result.test.ts | 4 ++-- .../{src => test}/core/python-executor.test.ts | 11 ++++++++--- .../{src => test}/core/python-kernel-display.test.ts | 2 +- .../{src => test}/core/python-kernel-env.test.ts | 8 ++++---- .../{src => test}/core/python-kernel-session.test.ts | 6 +++--- .../{src => test}/core/python-kernel-ws.test.ts | 6 +++++- .../core/python-kernel.lifecycle.test.ts | 2 +- .../{src => test}/core/python-kernel.test.ts | 4 ++-- .../{src => test}/core/python-modules.test.ts | 2 +- .../{src => test}/core/python-prelude.test.ts | 4 ++-- .../core/settings-manager-python.test.ts | 2 +- .../{src => test}/core/streaming-output.test.ts | 2 +- .../{src => test}/core/system-prompt.python.test.ts | 2 +- .../{src => test}/discovery/helpers.test.ts | 2 +- .../{src/core => test}/tools/index.test.ts | 2 +- .../core => test}/tools/python-execution.test.ts | 6 +++--- .../{src/core => test}/tools/python-fallback.test.ts | 6 +++--- .../{src/core => test}/tools/python-renderer.test.ts | 6 +++--- .../core => test}/tools/python-tool-mode.test.ts | 2 +- .../{src/core => test}/tools/python.test.ts | 6 +++--- .../core => test}/tools/schema-validation.test.ts | 2 +- .../tools/web-scrapers/academic.test.ts | 8 ++++---- .../tools/web-scrapers/business.test.ts | 4 ++-- .../tools/web-scrapers/dev-platforms.test.ts | 8 ++++---- .../tools/web-scrapers/documentation.test.ts | 4 ++-- .../tools/web-scrapers/finance-media.test.ts | 6 +++--- .../tools/web-scrapers/git-hosting.test.ts | 4 ++-- .../core => test}/tools/web-scrapers/media.test.ts | 6 +++--- .../tools/web-scrapers/package-managers-2.test.ts | 12 ++++++------ .../tools/web-scrapers/package-managers.test.ts | 12 ++++++------ .../tools/web-scrapers/package-registries.test.ts | 12 ++++++------ .../tools/web-scrapers/research.test.ts | 6 +++--- .../tools/web-scrapers/security.test.ts | 4 ++-- .../tools/web-scrapers/social-extended.test.ts | 4 ++-- .../core => test}/tools/web-scrapers/social.test.ts | 6 +++--- .../tools/web-scrapers/stackexchange.test.ts | 2 +- .../tools/web-scrapers/standards.test.ts | 6 +++--- .../tools/web-scrapers/wikipedia.test.ts | 2 +- .../core => test}/tools/web-scrapers/youtube.test.ts | 2 +- 47 files changed, 121 insertions(+), 112 deletions(-) rename packages/coding-agent/{src => test}/core/python-executor-display.test.ts (93%) rename packages/coding-agent/{src => test}/core/python-executor-lifecycle.test.ts (93%) rename packages/coding-agent/{src => test}/core/python-executor-mapping.test.ts (95%) rename packages/coding-agent/{src => test}/core/python-executor-per-call.test.ts (88%) rename packages/coding-agent/{src => test}/core/python-executor-session.test.ts (95%) rename packages/coding-agent/{src => test}/core/python-executor-streaming.test.ts (94%) rename packages/coding-agent/{src => test}/core/python-executor-timeout.test.ts (94%) rename packages/coding-agent/{src => test}/core/python-executor.lifecycle.test.ts (96%) rename packages/coding-agent/{src => test}/core/python-executor.result.test.ts (95%) rename packages/coding-agent/{src => test}/core/python-executor.test.ts (95%) rename packages/coding-agent/{src => test}/core/python-kernel-display.test.ts (94%) rename packages/coding-agent/{src => test}/core/python-kernel-env.test.ts (94%) rename packages/coding-agent/{src => test}/core/python-kernel-session.test.ts (92%) rename packages/coding-agent/{src => test}/core/python-kernel-ws.test.ts (95%) rename packages/coding-agent/{src => test}/core/python-kernel.lifecycle.test.ts (99%) rename packages/coding-agent/{src => test}/core/python-kernel.test.ts (98%) rename packages/coding-agent/{src => test}/core/python-modules.test.ts (98%) rename packages/coding-agent/{src => test}/core/python-prelude.test.ts (95%) rename packages/coding-agent/{src => test}/core/settings-manager-python.test.ts (92%) rename packages/coding-agent/{src => test}/core/streaming-output.test.ts (91%) rename packages/coding-agent/{src => test}/core/system-prompt.python.test.ts (87%) rename packages/coding-agent/{src => test}/discovery/helpers.test.ts (97%) rename packages/coding-agent/{src/core => test}/tools/index.test.ts (99%) rename packages/coding-agent/{src/core => test}/tools/python-execution.test.ts (90%) rename packages/coding-agent/{src/core => test}/tools/python-fallback.test.ts (91%) rename packages/coding-agent/{src/core => test}/tools/python-renderer.test.ts (86%) rename packages/coding-agent/{src/core => test}/tools/python-tool-mode.test.ts (94%) rename packages/coding-agent/{src/core => test}/tools/python.test.ts (94%) rename packages/coding-agent/{src/core => test}/tools/schema-validation.test.ts (99%) rename packages/coding-agent/{src/core => test}/tools/web-scrapers/academic.test.ts (96%) rename packages/coding-agent/{src/core => test}/tools/web-scrapers/business.test.ts (94%) rename packages/coding-agent/{src/core => test}/tools/web-scrapers/dev-platforms.test.ts (96%) rename packages/coding-agent/{src/core => test}/tools/web-scrapers/documentation.test.ts (95%) rename packages/coding-agent/{src/core => test}/tools/web-scrapers/finance-media.test.ts (95%) rename packages/coding-agent/{src/core => test}/tools/web-scrapers/git-hosting.test.ts (98%) rename packages/coding-agent/{src/core => test}/tools/web-scrapers/media.test.ts (95%) rename packages/coding-agent/{src/core => test}/tools/web-scrapers/package-managers-2.test.ts (93%) rename packages/coding-agent/{src/core => test}/tools/web-scrapers/package-managers.test.ts (93%) rename packages/coding-agent/{src/core => test}/tools/web-scrapers/package-registries.test.ts (95%) rename packages/coding-agent/{src/core => test}/tools/web-scrapers/research.test.ts (94%) rename packages/coding-agent/{src/core => test}/tools/web-scrapers/security.test.ts (96%) rename packages/coding-agent/{src/core => test}/tools/web-scrapers/social-extended.test.ts (97%) rename packages/coding-agent/{src/core => test}/tools/web-scrapers/social.test.ts (97%) rename packages/coding-agent/{src/core => test}/tools/web-scrapers/stackexchange.test.ts (98%) rename packages/coding-agent/{src/core => test}/tools/web-scrapers/standards.test.ts (94%) rename packages/coding-agent/{src/core => test}/tools/web-scrapers/wikipedia.test.ts (97%) rename packages/coding-agent/{src/core => test}/tools/web-scrapers/youtube.test.ts (99%) diff --git a/packages/coding-agent/src/core/python-executor-display.test.ts b/packages/coding-agent/test/core/python-executor-display.test.ts similarity index 93% rename from packages/coding-agent/src/core/python-executor-display.test.ts rename to packages/coding-agent/test/core/python-executor-display.test.ts index e6ef1b985..a03dd828b 100644 --- a/packages/coding-agent/src/core/python-executor-display.test.ts +++ b/packages/coding-agent/test/core/python-executor-display.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from "bun:test"; -import { executePythonWithKernel, type PythonKernelExecutor } from "./python-executor"; -import type { KernelDisplayOutput, KernelExecuteOptions, KernelExecuteResult } from "./python-kernel"; +import { executePythonWithKernel, type PythonKernelExecutor } from "../../src/core/python-executor"; +import type { KernelDisplayOutput, KernelExecuteOptions, KernelExecuteResult } from "../../src/core/python-kernel"; class FakeKernel implements PythonKernelExecutor { private result: KernelExecuteResult; diff --git a/packages/coding-agent/src/core/python-executor-lifecycle.test.ts b/packages/coding-agent/test/core/python-executor-lifecycle.test.ts similarity index 93% rename from packages/coding-agent/src/core/python-executor-lifecycle.test.ts rename to packages/coding-agent/test/core/python-executor-lifecycle.test.ts index 4bf732013..54a32e7f7 100644 --- a/packages/coding-agent/src/core/python-executor-lifecycle.test.ts +++ b/packages/coding-agent/test/core/python-executor-lifecycle.test.ts @@ -1,7 +1,7 @@ import { afterEach, describe, expect, it, vi } from "bun:test"; -import { disposeAllKernelSessions, executePython } from "./python-executor"; -import type { KernelExecuteResult } from "./python-kernel"; -import * as pythonKernel from "./python-kernel"; +import { disposeAllKernelSessions, executePython } from "../../src/core/python-executor"; +import type { KernelExecuteResult } from "../../src/core/python-kernel"; +import * as pythonKernel from "../../src/core/python-kernel"; class FakeKernel { execute = vi.fn(async () => this.result); diff --git a/packages/coding-agent/src/core/python-executor-mapping.test.ts b/packages/coding-agent/test/core/python-executor-mapping.test.ts similarity index 95% rename from packages/coding-agent/src/core/python-executor-mapping.test.ts rename to packages/coding-agent/test/core/python-executor-mapping.test.ts index 3551aba09..13f1fb27b 100644 --- a/packages/coding-agent/src/core/python-executor-mapping.test.ts +++ b/packages/coding-agent/test/core/python-executor-mapping.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from "bun:test"; -import { executePythonWithKernel, type PythonKernelExecutor } from "./python-executor"; -import type { KernelExecuteOptions, KernelExecuteResult } from "./python-kernel"; +import { executePythonWithKernel, type PythonKernelExecutor } from "../../src/core/python-executor"; +import type { KernelExecuteOptions, KernelExecuteResult } from "../../src/core/python-kernel"; class FakeKernel implements PythonKernelExecutor { constructor( diff --git a/packages/coding-agent/src/core/python-executor-per-call.test.ts b/packages/coding-agent/test/core/python-executor-per-call.test.ts similarity index 88% rename from packages/coding-agent/src/core/python-executor-per-call.test.ts rename to packages/coding-agent/test/core/python-executor-per-call.test.ts index 0ba404692..0576a6196 100644 --- a/packages/coding-agent/src/core/python-executor-per-call.test.ts +++ b/packages/coding-agent/test/core/python-executor-per-call.test.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from "bun:test"; -import { executePython } from "./python-executor"; -import type { KernelExecuteOptions, KernelExecuteResult } from "./python-kernel"; -import { PythonKernel } from "./python-kernel"; +import { executePython } from "../../src/core/python-executor"; +import type { KernelExecuteOptions, KernelExecuteResult } from "../../src/core/python-kernel"; +import { PythonKernel } from "../../src/core/python-kernel"; interface KernelStub { execute: (code: string, options?: KernelExecuteOptions) => Promise; diff --git a/packages/coding-agent/src/core/python-executor-session.test.ts b/packages/coding-agent/test/core/python-executor-session.test.ts similarity index 95% rename from packages/coding-agent/src/core/python-executor-session.test.ts rename to packages/coding-agent/test/core/python-executor-session.test.ts index 2c8c895df..1d28750b5 100644 --- a/packages/coding-agent/src/core/python-executor-session.test.ts +++ b/packages/coding-agent/test/core/python-executor-session.test.ts @@ -1,6 +1,6 @@ import { afterEach, describe, expect, it, vi } from "bun:test"; -import { disposeAllKernelSessions, executePython } from "./python-executor"; -import * as pythonKernel from "./python-kernel"; +import { disposeAllKernelSessions, executePython } from "../../src/core/python-executor"; +import * as pythonKernel from "../../src/core/python-kernel"; class FakeKernel { executeCalls = 0; diff --git a/packages/coding-agent/src/core/python-executor-streaming.test.ts b/packages/coding-agent/test/core/python-executor-streaming.test.ts similarity index 94% rename from packages/coding-agent/src/core/python-executor-streaming.test.ts rename to packages/coding-agent/test/core/python-executor-streaming.test.ts index 83d24c248..4f5526ac9 100644 --- a/packages/coding-agent/src/core/python-executor-streaming.test.ts +++ b/packages/coding-agent/test/core/python-executor-streaming.test.ts @@ -1,8 +1,8 @@ import { afterEach, describe, expect, it } from "bun:test"; import { rmSync } from "node:fs"; -import { executePythonWithKernel, type PythonKernelExecutor } from "./python-executor"; -import type { KernelExecuteOptions, KernelExecuteResult } from "./python-kernel"; -import { DEFAULT_MAX_BYTES } from "./tools/truncate"; +import { executePythonWithKernel, type PythonKernelExecutor } from "../../src/core/python-executor"; +import type { KernelExecuteOptions, KernelExecuteResult } from "../../src/core/python-kernel"; +import { DEFAULT_MAX_BYTES } from "../../src/core/tools/truncate"; class FakeKernel implements PythonKernelExecutor { private result: KernelExecuteResult; diff --git a/packages/coding-agent/src/core/python-executor-timeout.test.ts b/packages/coding-agent/test/core/python-executor-timeout.test.ts similarity index 94% rename from packages/coding-agent/src/core/python-executor-timeout.test.ts rename to packages/coding-agent/test/core/python-executor-timeout.test.ts index 7ef13a35f..f45d6b2d8 100644 --- a/packages/coding-agent/src/core/python-executor-timeout.test.ts +++ b/packages/coding-agent/test/core/python-executor-timeout.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from "bun:test"; -import { executePythonWithKernel, type PythonKernelExecutor } from "./python-executor"; -import type { KernelExecuteOptions, KernelExecuteResult } from "./python-kernel"; +import { executePythonWithKernel, type PythonKernelExecutor } from "../../src/core/python-executor"; +import type { KernelExecuteOptions, KernelExecuteResult } from "../../src/core/python-kernel"; class FakeKernel implements PythonKernelExecutor { private result: KernelExecuteResult; diff --git a/packages/coding-agent/src/core/python-executor.lifecycle.test.ts b/packages/coding-agent/test/core/python-executor.lifecycle.test.ts similarity index 96% rename from packages/coding-agent/src/core/python-executor.lifecycle.test.ts rename to packages/coding-agent/test/core/python-executor.lifecycle.test.ts index 1051a83f9..e8c40ca59 100644 --- a/packages/coding-agent/src/core/python-executor.lifecycle.test.ts +++ b/packages/coding-agent/test/core/python-executor.lifecycle.test.ts @@ -1,6 +1,6 @@ import { afterEach, describe, expect, it } from "bun:test"; -import { disposeAllKernelSessions, executePython } from "./python-executor"; -import { type KernelExecuteOptions, type KernelExecuteResult, PythonKernel } from "./python-kernel"; +import { disposeAllKernelSessions, executePython } from "../../src/core/python-executor"; +import { type KernelExecuteOptions, type KernelExecuteResult, PythonKernel } from "../../src/core/python-kernel"; process.env.OMP_PYTHON_SKIP_CHECK = "1"; diff --git a/packages/coding-agent/src/core/python-executor.result.test.ts b/packages/coding-agent/test/core/python-executor.result.test.ts similarity index 95% rename from packages/coding-agent/src/core/python-executor.result.test.ts rename to packages/coding-agent/test/core/python-executor.result.test.ts index 977b247fd..bca55b8eb 100644 --- a/packages/coding-agent/src/core/python-executor.result.test.ts +++ b/packages/coding-agent/test/core/python-executor.result.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from "bun:test"; -import { executePythonWithKernel, type PythonKernelExecutor } from "./python-executor"; -import type { KernelExecuteOptions, KernelExecuteResult } from "./python-kernel"; +import { executePythonWithKernel, type PythonKernelExecutor } from "../../src/core/python-executor"; +import type { KernelExecuteOptions, KernelExecuteResult } from "../../src/core/python-kernel"; class FakeKernel implements PythonKernelExecutor { private result: KernelExecuteResult; diff --git a/packages/coding-agent/src/core/python-executor.test.ts b/packages/coding-agent/test/core/python-executor.test.ts similarity index 95% rename from packages/coding-agent/src/core/python-executor.test.ts rename to packages/coding-agent/test/core/python-executor.test.ts index 557b29f7e..46042aa95 100644 --- a/packages/coding-agent/src/core/python-executor.test.ts +++ b/packages/coding-agent/test/core/python-executor.test.ts @@ -7,9 +7,14 @@ import { type PythonKernelExecutor, resetPreludeDocsCache, warmPythonEnvironment, -} from "./python-executor"; -import { type KernelExecuteOptions, type KernelExecuteResult, type PreludeHelper, PythonKernel } from "./python-kernel"; -import { DEFAULT_MAX_BYTES } from "./tools/truncate"; +} from "../../src/core/python-executor"; +import { + type KernelExecuteOptions, + type KernelExecuteResult, + type PreludeHelper, + PythonKernel, +} from "../../src/core/python-kernel"; +import { DEFAULT_MAX_BYTES } from "../../src/core/tools/truncate"; class FakeKernel implements PythonKernelExecutor { private result: KernelExecuteResult; diff --git a/packages/coding-agent/src/core/python-kernel-display.test.ts b/packages/coding-agent/test/core/python-kernel-display.test.ts similarity index 94% rename from packages/coding-agent/src/core/python-kernel-display.test.ts rename to packages/coding-agent/test/core/python-kernel-display.test.ts index 37611044d..e8893c845 100644 --- a/packages/coding-agent/src/core/python-kernel-display.test.ts +++ b/packages/coding-agent/test/core/python-kernel-display.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from "bun:test"; -import { type KernelDisplayOutput, PythonKernel } from "./python-kernel"; +import { type KernelDisplayOutput, PythonKernel } from "../../src/core/python-kernel"; const renderDisplay = ( PythonKernel as unknown as { diff --git a/packages/coding-agent/src/core/python-kernel-env.test.ts b/packages/coding-agent/test/core/python-kernel-env.test.ts similarity index 94% rename from packages/coding-agent/src/core/python-kernel-env.test.ts rename to packages/coding-agent/test/core/python-kernel-env.test.ts index ec642e47b..7885ec243 100644 --- a/packages/coding-agent/src/core/python-kernel-env.test.ts +++ b/packages/coding-agent/test/core/python-kernel-env.test.ts @@ -1,8 +1,8 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "bun:test"; -import * as shell from "../utils/shell"; -import * as shellSnapshot from "../utils/shell-snapshot"; -import { PythonKernel } from "./python-kernel"; -import { PYTHON_PRELUDE } from "./python-prelude"; +import { PythonKernel } from "../../src/core/python-kernel"; +import { PYTHON_PRELUDE } from "../../src/core/python-prelude"; +import * as shell from "../../src/utils/shell"; +import * as shellSnapshot from "../../src/utils/shell-snapshot"; class FakeWebSocket { static OPEN = 1; diff --git a/packages/coding-agent/src/core/python-kernel-session.test.ts b/packages/coding-agent/test/core/python-kernel-session.test.ts similarity index 92% rename from packages/coding-agent/src/core/python-kernel-session.test.ts rename to packages/coding-agent/test/core/python-kernel-session.test.ts index 09f44c61b..95ff7fa38 100644 --- a/packages/coding-agent/src/core/python-kernel-session.test.ts +++ b/packages/coding-agent/test/core/python-kernel-session.test.ts @@ -1,7 +1,7 @@ import { afterEach, beforeEach, describe, expect, it } from "bun:test"; -import { disposeAllKernelSessions, executePython } from "./python-executor"; -import type { KernelExecuteOptions, KernelExecuteResult } from "./python-kernel"; -import { PythonKernel } from "./python-kernel"; +import { disposeAllKernelSessions, executePython } from "../../src/core/python-executor"; +import type { KernelExecuteOptions, KernelExecuteResult } from "../../src/core/python-kernel"; +import { PythonKernel } from "../../src/core/python-kernel"; class FakeKernel { executeCalls = 0; diff --git a/packages/coding-agent/src/core/python-kernel-ws.test.ts b/packages/coding-agent/test/core/python-kernel-ws.test.ts similarity index 95% rename from packages/coding-agent/src/core/python-kernel-ws.test.ts rename to packages/coding-agent/test/core/python-kernel-ws.test.ts index ebcc60e04..032f117ba 100644 --- a/packages/coding-agent/src/core/python-kernel-ws.test.ts +++ b/packages/coding-agent/test/core/python-kernel-ws.test.ts @@ -1,5 +1,9 @@ import { describe, expect, it } from "bun:test"; -import { deserializeWebSocketMessage, type JupyterMessage, serializeWebSocketMessage } from "./python-kernel"; +import { + deserializeWebSocketMessage, + type JupyterMessage, + serializeWebSocketMessage, +} from "../../src/core/python-kernel"; const encoder = new TextEncoder(); diff --git a/packages/coding-agent/src/core/python-kernel.lifecycle.test.ts b/packages/coding-agent/test/core/python-kernel.lifecycle.test.ts similarity index 99% rename from packages/coding-agent/src/core/python-kernel.lifecycle.test.ts rename to packages/coding-agent/test/core/python-kernel.lifecycle.test.ts index 3dce4219c..63a2dce64 100644 --- a/packages/coding-agent/src/core/python-kernel.lifecycle.test.ts +++ b/packages/coding-agent/test/core/python-kernel.lifecycle.test.ts @@ -3,7 +3,7 @@ import { mkdtempSync, rmSync } from "node:fs"; import { tmpdir } from "node:os"; import { join } from "node:path"; import type { Subprocess } from "bun"; -import { PythonKernel } from "./python-kernel"; +import { PythonKernel } from "../../src/core/python-kernel"; type SpawnOptions = Parameters[1]; diff --git a/packages/coding-agent/src/core/python-kernel.test.ts b/packages/coding-agent/test/core/python-kernel.test.ts similarity index 98% rename from packages/coding-agent/src/core/python-kernel.test.ts rename to packages/coding-agent/test/core/python-kernel.test.ts index 68f5c1078..bad4982c7 100644 --- a/packages/coding-agent/src/core/python-kernel.test.ts +++ b/packages/coding-agent/test/core/python-kernel.test.ts @@ -1,6 +1,6 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "bun:test"; -import { type KernelDisplayOutput, PythonKernel } from "./python-kernel"; -import { PYTHON_PRELUDE } from "./python-prelude"; +import { type KernelDisplayOutput, PythonKernel } from "../../src/core/python-kernel"; +import { PYTHON_PRELUDE } from "../../src/core/python-prelude"; type JupyterMessage = { channel: string; diff --git a/packages/coding-agent/src/core/python-modules.test.ts b/packages/coding-agent/test/core/python-modules.test.ts similarity index 98% rename from packages/coding-agent/src/core/python-modules.test.ts rename to packages/coding-agent/test/core/python-modules.test.ts index c157e1598..65a644d41 100644 --- a/packages/coding-agent/src/core/python-modules.test.ts +++ b/packages/coding-agent/test/core/python-modules.test.ts @@ -2,7 +2,7 @@ import { afterEach, describe, expect, it } from "bun:test"; import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs"; import { tmpdir } from "node:os"; import { basename, join, resolve } from "node:path"; -import { discoverPythonModules, loadPythonModules, type PythonModuleExecutor } from "./python-modules"; +import { discoverPythonModules, loadPythonModules, type PythonModuleExecutor } from "../../src/core/python-modules"; const fixturesDir = resolve(__dirname, "../../test/fixtures/python-modules"); diff --git a/packages/coding-agent/src/core/python-prelude.test.ts b/packages/coding-agent/test/core/python-prelude.test.ts similarity index 95% rename from packages/coding-agent/src/core/python-prelude.test.ts rename to packages/coding-agent/test/core/python-prelude.test.ts index bdf11df2a..4618e5a07 100644 --- a/packages/coding-agent/src/core/python-prelude.test.ts +++ b/packages/coding-agent/test/core/python-prelude.test.ts @@ -1,8 +1,8 @@ import { describe, expect, it } from "bun:test"; import { existsSync } from "node:fs"; import { join } from "node:path"; -import { resetPreludeDocsCache, warmPythonEnvironment } from "./python-executor"; -import { createPythonTool, getPythonToolDescription } from "./tools/python"; +import { resetPreludeDocsCache, warmPythonEnvironment } from "../../src/core/python-executor"; +import { createPythonTool, getPythonToolDescription } from "../../src/core/tools/python"; const resolvePythonPath = (): string | null => { const venvPath = process.env.VIRTUAL_ENV; diff --git a/packages/coding-agent/src/core/settings-manager-python.test.ts b/packages/coding-agent/test/core/settings-manager-python.test.ts similarity index 92% rename from packages/coding-agent/src/core/settings-manager-python.test.ts rename to packages/coding-agent/test/core/settings-manager-python.test.ts index 16ea748cf..c5f4fc78f 100644 --- a/packages/coding-agent/src/core/settings-manager-python.test.ts +++ b/packages/coding-agent/test/core/settings-manager-python.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from "bun:test"; -import { SettingsManager } from "./settings-manager"; +import { SettingsManager } from "../../src/core/settings-manager"; describe("SettingsManager python settings", () => { it("defaults to both and session", () => { diff --git a/packages/coding-agent/src/core/streaming-output.test.ts b/packages/coding-agent/test/core/streaming-output.test.ts similarity index 91% rename from packages/coding-agent/src/core/streaming-output.test.ts rename to packages/coding-agent/test/core/streaming-output.test.ts index caa3ea3d7..542d9ce47 100644 --- a/packages/coding-agent/src/core/streaming-output.test.ts +++ b/packages/coding-agent/test/core/streaming-output.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from "bun:test"; -import { createOutputSink } from "./streaming-output"; +import { createOutputSink } from "../../src/core/streaming-output"; function makeLargeOutput(size: number): string { return "x".repeat(size); diff --git a/packages/coding-agent/src/core/system-prompt.python.test.ts b/packages/coding-agent/test/core/system-prompt.python.test.ts similarity index 87% rename from packages/coding-agent/src/core/system-prompt.python.test.ts rename to packages/coding-agent/test/core/system-prompt.python.test.ts index 00bd26e69..92875d951 100644 --- a/packages/coding-agent/src/core/system-prompt.python.test.ts +++ b/packages/coding-agent/test/core/system-prompt.python.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from "bun:test"; -import { buildSystemPrompt } from "./system-prompt"; +import { buildSystemPrompt } from "../../src/core/system-prompt"; describe("buildSystemPrompt", () => { it("includes python tool details when enabled", async () => { diff --git a/packages/coding-agent/src/discovery/helpers.test.ts b/packages/coding-agent/test/discovery/helpers.test.ts similarity index 97% rename from packages/coding-agent/src/discovery/helpers.test.ts rename to packages/coding-agent/test/discovery/helpers.test.ts index 42b9f8a7b..a2d203d56 100644 --- a/packages/coding-agent/src/discovery/helpers.test.ts +++ b/packages/coding-agent/test/discovery/helpers.test.ts @@ -1,5 +1,5 @@ import { describe, expect, test } from "bun:test"; -import { parseFrontmatter } from "../core/frontmatter"; +import { parseFrontmatter } from "../../src/core/frontmatter"; describe("parseFrontmatter", () => { const parse = (content: string) => parseFrontmatter(content, { source: "tests:frontmatter", level: "off" }); diff --git a/packages/coding-agent/src/core/tools/index.test.ts b/packages/coding-agent/test/tools/index.test.ts similarity index 99% rename from packages/coding-agent/src/core/tools/index.test.ts rename to packages/coding-agent/test/tools/index.test.ts index 7808d387b..9a04cf517 100644 --- a/packages/coding-agent/src/core/tools/index.test.ts +++ b/packages/coding-agent/test/tools/index.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from "bun:test"; -import { BUILTIN_TOOLS, createTools, HIDDEN_TOOLS, type ToolSession } from "./index"; +import { BUILTIN_TOOLS, createTools, HIDDEN_TOOLS, type ToolSession } from "../../src/core/tools/index"; process.env.OMP_PYTHON_SKIP_CHECK = "1"; diff --git a/packages/coding-agent/src/core/tools/python-execution.test.ts b/packages/coding-agent/test/tools/python-execution.test.ts similarity index 90% rename from packages/coding-agent/src/core/tools/python-execution.test.ts rename to packages/coding-agent/test/tools/python-execution.test.ts index b5853ee3b..a2743b1db 100644 --- a/packages/coding-agent/src/core/tools/python-execution.test.ts +++ b/packages/coding-agent/test/tools/python-execution.test.ts @@ -2,9 +2,9 @@ import { describe, expect, it, vi } from "bun:test"; import { mkdtempSync, rmSync } from "node:fs"; import { tmpdir } from "node:os"; import { join } from "node:path"; -import * as pythonExecutor from "../python-executor"; -import type { ToolSession } from "./index"; -import { createPythonTool } from "./python"; +import * as pythonExecutor from "../../src/core/python-executor"; +import type { ToolSession } from "../../src/core/tools/index"; +import { createPythonTool } from "../../src/core/tools/python"; function createSession(cwd: string): ToolSession { return { diff --git a/packages/coding-agent/src/core/tools/python-fallback.test.ts b/packages/coding-agent/test/tools/python-fallback.test.ts similarity index 91% rename from packages/coding-agent/src/core/tools/python-fallback.test.ts rename to packages/coding-agent/test/tools/python-fallback.test.ts index 61693f7f3..d0e5ad838 100644 --- a/packages/coding-agent/src/core/tools/python-fallback.test.ts +++ b/packages/coding-agent/test/tools/python-fallback.test.ts @@ -1,7 +1,7 @@ import { describe, expect, it, vi } from "bun:test"; -import * as pythonKernelModule from "../python-kernel"; -import type { ToolSession } from "./index"; -import { createTools } from "./index"; +import * as pythonKernelModule from "../../src/core/python-kernel"; +import type { ToolSession } from "../../src/core/tools/index"; +import { createTools } from "../../src/core/tools/index"; function createTestSession(overrides: Partial = {}): ToolSession { return { diff --git a/packages/coding-agent/src/core/tools/python-renderer.test.ts b/packages/coding-agent/test/tools/python-renderer.test.ts similarity index 86% rename from packages/coding-agent/src/core/tools/python-renderer.test.ts rename to packages/coding-agent/test/tools/python-renderer.test.ts index 3aaf0a293..50a211690 100644 --- a/packages/coding-agent/src/core/tools/python-renderer.test.ts +++ b/packages/coding-agent/test/tools/python-renderer.test.ts @@ -1,8 +1,8 @@ import { describe, expect, it } from "bun:test"; import stripAnsi from "strip-ansi"; -import { getThemeByName } from "../../modes/interactive/theme/theme"; -import { pythonToolRenderer } from "./python"; -import { truncateTail } from "./truncate"; +import { pythonToolRenderer } from "../../src/core/tools/python"; +import { truncateTail } from "../../src/core/tools/truncate"; +import { getThemeByName } from "../../src/modes/interactive/theme/theme"; describe("pythonToolRenderer", () => { it("renders truncated output when collapsed and full output when expanded", () => { diff --git a/packages/coding-agent/src/core/tools/python-tool-mode.test.ts b/packages/coding-agent/test/tools/python-tool-mode.test.ts similarity index 94% rename from packages/coding-agent/src/core/tools/python-tool-mode.test.ts rename to packages/coding-agent/test/tools/python-tool-mode.test.ts index 2fc70e8b3..3c23ea5b9 100644 --- a/packages/coding-agent/src/core/tools/python-tool-mode.test.ts +++ b/packages/coding-agent/test/tools/python-tool-mode.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from "bun:test"; -import { createTools, type ToolSession } from "./index"; +import { createTools, type ToolSession } from "../../src/core/tools/index"; function createSession(overrides: Partial = {}): ToolSession { return { diff --git a/packages/coding-agent/src/core/tools/python.test.ts b/packages/coding-agent/test/tools/python.test.ts similarity index 94% rename from packages/coding-agent/src/core/tools/python.test.ts rename to packages/coding-agent/test/tools/python.test.ts index 33cff2c7e..ec22254ad 100644 --- a/packages/coding-agent/src/core/tools/python.test.ts +++ b/packages/coding-agent/test/tools/python.test.ts @@ -1,7 +1,7 @@ import { afterAll, beforeAll, describe, expect, it, vi } from "bun:test"; -import * as pythonExecutor from "../python-executor"; -import { createTools, type ToolSession } from "./index"; -import { createPythonTool } from "./python"; +import * as pythonExecutor from "../../src/core/python-executor"; +import { createTools, type ToolSession } from "../../src/core/tools/index"; +import { createPythonTool } from "../../src/core/tools/python"; let previousSkipCheck: string | undefined; diff --git a/packages/coding-agent/src/core/tools/schema-validation.test.ts b/packages/coding-agent/test/tools/schema-validation.test.ts similarity index 99% rename from packages/coding-agent/src/core/tools/schema-validation.test.ts rename to packages/coding-agent/test/tools/schema-validation.test.ts index d74bb8ea3..2306fc39a 100644 --- a/packages/coding-agent/src/core/tools/schema-validation.test.ts +++ b/packages/coding-agent/test/tools/schema-validation.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from "bun:test"; import { sanitizeSchemaForGoogle } from "@oh-my-pi/pi-ai"; -import { BUILTIN_TOOLS, createTools, HIDDEN_TOOLS, type ToolSession } from "./index"; +import { BUILTIN_TOOLS, createTools, HIDDEN_TOOLS, type ToolSession } from "../../src/core/tools/index"; /** * Problematic JSON Schema features that cause issues with various providers. diff --git a/packages/coding-agent/src/core/tools/web-scrapers/academic.test.ts b/packages/coding-agent/test/tools/web-scrapers/academic.test.ts similarity index 96% rename from packages/coding-agent/src/core/tools/web-scrapers/academic.test.ts rename to packages/coding-agent/test/tools/web-scrapers/academic.test.ts index 71493467e..20c217d96 100644 --- a/packages/coding-agent/src/core/tools/web-scrapers/academic.test.ts +++ b/packages/coding-agent/test/tools/web-scrapers/academic.test.ts @@ -1,8 +1,8 @@ import { describe, expect, it } from "bun:test"; -import { handleArxiv } from "./arxiv"; -import { handleIacr } from "./iacr"; -import { handlePubMed } from "./pubmed"; -import { handleSemanticScholar } from "./semantic-scholar"; +import { handleArxiv } from "../../../src/core/tools/web-scrapers/arxiv"; +import { handleIacr } from "../../../src/core/tools/web-scrapers/iacr"; +import { handlePubMed } from "../../../src/core/tools/web-scrapers/pubmed"; +import { handleSemanticScholar } from "../../../src/core/tools/web-scrapers/semantic-scholar"; const SKIP = !process.env.WEB_FETCH_INTEGRATION; diff --git a/packages/coding-agent/src/core/tools/web-scrapers/business.test.ts b/packages/coding-agent/test/tools/web-scrapers/business.test.ts similarity index 94% rename from packages/coding-agent/src/core/tools/web-scrapers/business.test.ts rename to packages/coding-agent/test/tools/web-scrapers/business.test.ts index a2a65703b..fe4255bd9 100644 --- a/packages/coding-agent/src/core/tools/web-scrapers/business.test.ts +++ b/packages/coding-agent/test/tools/web-scrapers/business.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from "bun:test"; -import { handleOpenCorporates } from "./opencorporates"; -import { handleSecEdgar } from "./sec-edgar"; +import { handleOpenCorporates } from "../../../src/core/tools/web-scrapers/opencorporates"; +import { handleSecEdgar } from "../../../src/core/tools/web-scrapers/sec-edgar"; const SKIP = !process.env.WEB_FETCH_INTEGRATION; diff --git a/packages/coding-agent/src/core/tools/web-scrapers/dev-platforms.test.ts b/packages/coding-agent/test/tools/web-scrapers/dev-platforms.test.ts similarity index 96% rename from packages/coding-agent/src/core/tools/web-scrapers/dev-platforms.test.ts rename to packages/coding-agent/test/tools/web-scrapers/dev-platforms.test.ts index ddb26cf33..de2c9f18e 100644 --- a/packages/coding-agent/src/core/tools/web-scrapers/dev-platforms.test.ts +++ b/packages/coding-agent/test/tools/web-scrapers/dev-platforms.test.ts @@ -1,8 +1,8 @@ import { describe, expect, it } from "bun:test"; -import { handleDevTo } from "./devto"; -import { handleGitLab } from "./gitlab"; -import { handleHackerNews } from "./hackernews"; -import { handleLobsters } from "./lobsters"; +import { handleDevTo } from "../../../src/core/tools/web-scrapers/devto"; +import { handleGitLab } from "../../../src/core/tools/web-scrapers/gitlab"; +import { handleHackerNews } from "../../../src/core/tools/web-scrapers/hackernews"; +import { handleLobsters } from "../../../src/core/tools/web-scrapers/lobsters"; const SKIP = !process.env.WEB_FETCH_INTEGRATION; diff --git a/packages/coding-agent/src/core/tools/web-scrapers/documentation.test.ts b/packages/coding-agent/test/tools/web-scrapers/documentation.test.ts similarity index 95% rename from packages/coding-agent/src/core/tools/web-scrapers/documentation.test.ts rename to packages/coding-agent/test/tools/web-scrapers/documentation.test.ts index d8cd43db1..40a3e9af3 100644 --- a/packages/coding-agent/src/core/tools/web-scrapers/documentation.test.ts +++ b/packages/coding-agent/test/tools/web-scrapers/documentation.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from "bun:test"; -import { handleMDN } from "./mdn"; -import { handleReadTheDocs } from "./readthedocs"; +import { handleMDN } from "../../../src/core/tools/web-scrapers/mdn"; +import { handleReadTheDocs } from "../../../src/core/tools/web-scrapers/readthedocs"; const SKIP = !process.env.WEB_FETCH_INTEGRATION; diff --git a/packages/coding-agent/src/core/tools/web-scrapers/finance-media.test.ts b/packages/coding-agent/test/tools/web-scrapers/finance-media.test.ts similarity index 95% rename from packages/coding-agent/src/core/tools/web-scrapers/finance-media.test.ts rename to packages/coding-agent/test/tools/web-scrapers/finance-media.test.ts index 29f0ab2f7..17af7a486 100644 --- a/packages/coding-agent/src/core/tools/web-scrapers/finance-media.test.ts +++ b/packages/coding-agent/test/tools/web-scrapers/finance-media.test.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from "bun:test"; -import { handleArtifactHub } from "./artifacthub"; -import { handleCoinGecko } from "./coingecko"; -import { handleDiscogs } from "./discogs"; +import { handleArtifactHub } from "../../../src/core/tools/web-scrapers/artifacthub"; +import { handleCoinGecko } from "../../../src/core/tools/web-scrapers/coingecko"; +import { handleDiscogs } from "../../../src/core/tools/web-scrapers/discogs"; const SKIP = !process.env.WEB_FETCH_INTEGRATION; diff --git a/packages/coding-agent/src/core/tools/web-scrapers/git-hosting.test.ts b/packages/coding-agent/test/tools/web-scrapers/git-hosting.test.ts similarity index 98% rename from packages/coding-agent/src/core/tools/web-scrapers/git-hosting.test.ts rename to packages/coding-agent/test/tools/web-scrapers/git-hosting.test.ts index 326fafaf7..2403b5b77 100644 --- a/packages/coding-agent/src/core/tools/web-scrapers/git-hosting.test.ts +++ b/packages/coding-agent/test/tools/web-scrapers/git-hosting.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from "bun:test"; -import { handleGitHub } from "./github"; -import { handleGitHubGist } from "./github-gist"; +import { handleGitHub } from "../../../src/core/tools/web-scrapers/github"; +import { handleGitHubGist } from "../../../src/core/tools/web-scrapers/github-gist"; const SKIP = !process.env.WEB_FETCH_INTEGRATION; diff --git a/packages/coding-agent/src/core/tools/web-scrapers/media.test.ts b/packages/coding-agent/test/tools/web-scrapers/media.test.ts similarity index 95% rename from packages/coding-agent/src/core/tools/web-scrapers/media.test.ts rename to packages/coding-agent/test/tools/web-scrapers/media.test.ts index f18c25408..862a732af 100644 --- a/packages/coding-agent/src/core/tools/web-scrapers/media.test.ts +++ b/packages/coding-agent/test/tools/web-scrapers/media.test.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from "bun:test"; -import { handleHuggingFace } from "./huggingface"; -import { handleSpotify } from "./spotify"; -import { handleVimeo } from "./vimeo"; +import { handleHuggingFace } from "../../../src/core/tools/web-scrapers/huggingface"; +import { handleSpotify } from "../../../src/core/tools/web-scrapers/spotify"; +import { handleVimeo } from "../../../src/core/tools/web-scrapers/vimeo"; const SKIP = !process.env.WEB_FETCH_INTEGRATION; diff --git a/packages/coding-agent/src/core/tools/web-scrapers/package-managers-2.test.ts b/packages/coding-agent/test/tools/web-scrapers/package-managers-2.test.ts similarity index 93% rename from packages/coding-agent/src/core/tools/web-scrapers/package-managers-2.test.ts rename to packages/coding-agent/test/tools/web-scrapers/package-managers-2.test.ts index 9ed72b572..facaadd02 100644 --- a/packages/coding-agent/src/core/tools/web-scrapers/package-managers-2.test.ts +++ b/packages/coding-agent/test/tools/web-scrapers/package-managers-2.test.ts @@ -1,10 +1,10 @@ import { describe, expect, it } from "bun:test"; -import { handleChocolatey } from "./chocolatey"; -import { handleDockerHub } from "./dockerhub"; -import { handleHackage } from "./hackage"; -import { handleMetaCPAN } from "./metacpan"; -import { handleRepology } from "./repology"; -import { handleTerraform } from "./terraform"; +import { handleChocolatey } from "../../../src/core/tools/web-scrapers/chocolatey"; +import { handleDockerHub } from "../../../src/core/tools/web-scrapers/dockerhub"; +import { handleHackage } from "../../../src/core/tools/web-scrapers/hackage"; +import { handleMetaCPAN } from "../../../src/core/tools/web-scrapers/metacpan"; +import { handleRepology } from "../../../src/core/tools/web-scrapers/repology"; +import { handleTerraform } from "../../../src/core/tools/web-scrapers/terraform"; const SKIP = !process.env.WEB_FETCH_INTEGRATION; diff --git a/packages/coding-agent/src/core/tools/web-scrapers/package-managers.test.ts b/packages/coding-agent/test/tools/web-scrapers/package-managers.test.ts similarity index 93% rename from packages/coding-agent/src/core/tools/web-scrapers/package-managers.test.ts rename to packages/coding-agent/test/tools/web-scrapers/package-managers.test.ts index ee73fb66f..6a9bd9742 100644 --- a/packages/coding-agent/src/core/tools/web-scrapers/package-managers.test.ts +++ b/packages/coding-agent/test/tools/web-scrapers/package-managers.test.ts @@ -1,10 +1,10 @@ import { describe, expect, it } from "bun:test"; -import { handleAur } from "./aur"; -import { handleBrew } from "./brew"; -import { handleMaven } from "./maven"; -import { handleNuGet } from "./nuget"; -import { handlePackagist } from "./packagist"; -import { handleRubyGems } from "./rubygems"; +import { handleAur } from "../../../src/core/tools/web-scrapers/aur"; +import { handleBrew } from "../../../src/core/tools/web-scrapers/brew"; +import { handleMaven } from "../../../src/core/tools/web-scrapers/maven"; +import { handleNuGet } from "../../../src/core/tools/web-scrapers/nuget"; +import { handlePackagist } from "../../../src/core/tools/web-scrapers/packagist"; +import { handleRubyGems } from "../../../src/core/tools/web-scrapers/rubygems"; const SKIP = !process.env.WEB_FETCH_INTEGRATION; diff --git a/packages/coding-agent/src/core/tools/web-scrapers/package-registries.test.ts b/packages/coding-agent/test/tools/web-scrapers/package-registries.test.ts similarity index 95% rename from packages/coding-agent/src/core/tools/web-scrapers/package-registries.test.ts rename to packages/coding-agent/test/tools/web-scrapers/package-registries.test.ts index 6bfe94495..e0276ee1f 100644 --- a/packages/coding-agent/src/core/tools/web-scrapers/package-registries.test.ts +++ b/packages/coding-agent/test/tools/web-scrapers/package-registries.test.ts @@ -1,10 +1,10 @@ import { describe, expect, it } from "bun:test"; -import { handleCratesIo } from "./crates-io"; -import { handleGoPkg } from "./go-pkg"; -import { handleHex } from "./hex"; -import { handleNpm } from "./npm"; -import { handlePubDev } from "./pub-dev"; -import { handlePyPI } from "./pypi"; +import { handleCratesIo } from "../../../src/core/tools/web-scrapers/crates-io"; +import { handleGoPkg } from "../../../src/core/tools/web-scrapers/go-pkg"; +import { handleHex } from "../../../src/core/tools/web-scrapers/hex"; +import { handleNpm } from "../../../src/core/tools/web-scrapers/npm"; +import { handlePubDev } from "../../../src/core/tools/web-scrapers/pub-dev"; +import { handlePyPI } from "../../../src/core/tools/web-scrapers/pypi"; const SKIP = !process.env.WEB_FETCH_INTEGRATION; diff --git a/packages/coding-agent/src/core/tools/web-scrapers/research.test.ts b/packages/coding-agent/test/tools/web-scrapers/research.test.ts similarity index 94% rename from packages/coding-agent/src/core/tools/web-scrapers/research.test.ts rename to packages/coding-agent/test/tools/web-scrapers/research.test.ts index 50f756f6e..77b3a1ed9 100644 --- a/packages/coding-agent/src/core/tools/web-scrapers/research.test.ts +++ b/packages/coding-agent/test/tools/web-scrapers/research.test.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from "bun:test"; -import { handleBiorxiv } from "./biorxiv"; -import { handleOpenLibrary } from "./openlibrary"; -import { handleWikidata } from "./wikidata"; +import { handleBiorxiv } from "../../../src/core/tools/web-scrapers/biorxiv"; +import { handleOpenLibrary } from "../../../src/core/tools/web-scrapers/openlibrary"; +import { handleWikidata } from "../../../src/core/tools/web-scrapers/wikidata"; const SKIP = !process.env.WEB_FETCH_INTEGRATION; diff --git a/packages/coding-agent/src/core/tools/web-scrapers/security.test.ts b/packages/coding-agent/test/tools/web-scrapers/security.test.ts similarity index 96% rename from packages/coding-agent/src/core/tools/web-scrapers/security.test.ts rename to packages/coding-agent/test/tools/web-scrapers/security.test.ts index 7ddb9368b..d8db1bf6d 100644 --- a/packages/coding-agent/src/core/tools/web-scrapers/security.test.ts +++ b/packages/coding-agent/test/tools/web-scrapers/security.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from "bun:test"; -import { handleNvd } from "./nvd"; -import { handleOsv } from "./osv"; +import { handleNvd } from "../../../src/core/tools/web-scrapers/nvd"; +import { handleOsv } from "../../../src/core/tools/web-scrapers/osv"; const SKIP = !process.env.WEB_FETCH_INTEGRATION; diff --git a/packages/coding-agent/src/core/tools/web-scrapers/social-extended.test.ts b/packages/coding-agent/test/tools/web-scrapers/social-extended.test.ts similarity index 97% rename from packages/coding-agent/src/core/tools/web-scrapers/social-extended.test.ts rename to packages/coding-agent/test/tools/web-scrapers/social-extended.test.ts index 7d6b8f9a7..8964c2cd9 100644 --- a/packages/coding-agent/src/core/tools/web-scrapers/social-extended.test.ts +++ b/packages/coding-agent/test/tools/web-scrapers/social-extended.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from "bun:test"; -import { handleBluesky } from "./bluesky"; -import { handleMastodon } from "./mastodon"; +import { handleBluesky } from "../../../src/core/tools/web-scrapers/bluesky"; +import { handleMastodon } from "../../../src/core/tools/web-scrapers/mastodon"; const SKIP = !process.env.WEB_FETCH_INTEGRATION; diff --git a/packages/coding-agent/src/core/tools/web-scrapers/social.test.ts b/packages/coding-agent/test/tools/web-scrapers/social.test.ts similarity index 97% rename from packages/coding-agent/src/core/tools/web-scrapers/social.test.ts rename to packages/coding-agent/test/tools/web-scrapers/social.test.ts index 5f74e8aa8..54c40ff93 100644 --- a/packages/coding-agent/src/core/tools/web-scrapers/social.test.ts +++ b/packages/coding-agent/test/tools/web-scrapers/social.test.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from "bun:test"; -import { handleReddit } from "./reddit"; -import { handleStackOverflow } from "./stackoverflow"; -import { handleTwitter } from "./twitter"; +import { handleReddit } from "../../../src/core/tools/web-scrapers/reddit"; +import { handleStackOverflow } from "../../../src/core/tools/web-scrapers/stackoverflow"; +import { handleTwitter } from "../../../src/core/tools/web-scrapers/twitter"; const SKIP = !process.env.WEB_FETCH_INTEGRATION; diff --git a/packages/coding-agent/src/core/tools/web-scrapers/stackexchange.test.ts b/packages/coding-agent/test/tools/web-scrapers/stackexchange.test.ts similarity index 98% rename from packages/coding-agent/src/core/tools/web-scrapers/stackexchange.test.ts rename to packages/coding-agent/test/tools/web-scrapers/stackexchange.test.ts index aab3a187b..1ce3b6ec2 100644 --- a/packages/coding-agent/src/core/tools/web-scrapers/stackexchange.test.ts +++ b/packages/coding-agent/test/tools/web-scrapers/stackexchange.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from "bun:test"; -import { handleStackOverflow } from "./stackoverflow"; +import { handleStackOverflow } from "../../../src/core/tools/web-scrapers/stackoverflow"; const SKIP = !process.env.WEB_FETCH_INTEGRATION; diff --git a/packages/coding-agent/src/core/tools/web-scrapers/standards.test.ts b/packages/coding-agent/test/tools/web-scrapers/standards.test.ts similarity index 94% rename from packages/coding-agent/src/core/tools/web-scrapers/standards.test.ts rename to packages/coding-agent/test/tools/web-scrapers/standards.test.ts index 771e71248..e49c3ddf5 100644 --- a/packages/coding-agent/src/core/tools/web-scrapers/standards.test.ts +++ b/packages/coding-agent/test/tools/web-scrapers/standards.test.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from "bun:test"; -import { handleCheatSh } from "./cheatsh"; -import { handleRfc } from "./rfc"; -import { handleTldr } from "./tldr"; +import { handleCheatSh } from "../../../src/core/tools/web-scrapers/cheatsh"; +import { handleRfc } from "../../../src/core/tools/web-scrapers/rfc"; +import { handleTldr } from "../../../src/core/tools/web-scrapers/tldr"; const SKIP = !process.env.WEB_FETCH_INTEGRATION; diff --git a/packages/coding-agent/src/core/tools/web-scrapers/wikipedia.test.ts b/packages/coding-agent/test/tools/web-scrapers/wikipedia.test.ts similarity index 97% rename from packages/coding-agent/src/core/tools/web-scrapers/wikipedia.test.ts rename to packages/coding-agent/test/tools/web-scrapers/wikipedia.test.ts index dd114eb86..04eeb9f54 100644 --- a/packages/coding-agent/src/core/tools/web-scrapers/wikipedia.test.ts +++ b/packages/coding-agent/test/tools/web-scrapers/wikipedia.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from "bun:test"; -import { handleWikipedia } from "./wikipedia"; +import { handleWikipedia } from "../../../src/core/tools/web-scrapers/wikipedia"; const SKIP = !process.env.WEB_FETCH_INTEGRATION; diff --git a/packages/coding-agent/src/core/tools/web-scrapers/youtube.test.ts b/packages/coding-agent/test/tools/web-scrapers/youtube.test.ts similarity index 99% rename from packages/coding-agent/src/core/tools/web-scrapers/youtube.test.ts rename to packages/coding-agent/test/tools/web-scrapers/youtube.test.ts index d5187bdc1..4877e0720 100644 --- a/packages/coding-agent/src/core/tools/web-scrapers/youtube.test.ts +++ b/packages/coding-agent/test/tools/web-scrapers/youtube.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from "bun:test"; -import { handleYouTube } from "./youtube"; +import { handleYouTube } from "../../../src/core/tools/web-scrapers/youtube"; const SKIP = !process.env.WEB_FETCH_INTEGRATION;