Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/perf-report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import {
attributionFromSpans,
formatAttributionReport,
type AttributionReport,
} from "../src/perf/attribution-report.js";
import { multiToolTurnFixture } from "../src/perf/fixtures/multi-tool-turn.js";
} from "../src/adapters/perf/attribution-report.js";
import { multiToolTurnFixture } from "../src/adapters/perf/fixtures/multi-tool-turn.js";

function printUsage(): void {
console.error(`Usage:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
PRODUCT_GITHUB_URL,
PRODUCT_SITE_LABEL,
PRODUCT_SITE_URL,
} from "../branding.js";
} from "../../branding.js";
import { callbackPageHtml, humanizeIdentifier } from "./callback-page.js";

describe("humanizeIdentifier", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
PRODUCT_NAME,
PRODUCT_SITE_LABEL,
PRODUCT_SITE_URL,
} from "../branding.js";
} from "../../branding.js";

/** Corbits wordmark, background layers stripped so it inherits `currentColor`. */
const WORDMARK = `<svg class="wordmark" viewBox="0 0 1000 400" role="img" aria-label="Corbits" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M195.057 192.125L160.182 225.625C157.016 214.042 153.099 205.042 148.432 198.625C143.849 192.208 138.974 189 133.807 189C129.724 189 126.557 190.75 124.307 194.25C122.141 197.75 121.057 202.75 121.057 209.25C121.057 224.583 124.307 237.167 130.807 247C137.307 256.833 145.641 261.75 155.807 261.75C161.391 261.75 166.682 260.333 171.682 257.5C176.766 254.667 181.141 250.708 184.807 245.625L196.557 254.25C189.807 268.667 181.266 279.667 170.932 287.25C160.599 294.833 149.016 298.625 136.182 298.625C120.016 298.625 106.724 293.083 96.3072 282C85.9739 270.833 80.8072 256.667 80.8072 239.5C80.8072 219.583 87.7239 202.333 101.557 187.75C115.391 173.083 131.349 165.75 149.432 165.75C158.682 165.75 167.182 168 174.932 172.5C182.682 177 189.391 183.542 195.057 192.125ZM303.705 248.125C303.705 231.292 300.288 216.542 293.455 203.875C286.705 191.208 279.371 184.875 271.455 184.875C266.371 184.875 262.413 187.458 259.58 192.625C256.746 197.792 255.33 205.125 255.33 214.625C255.33 232.208 258.621 247.417 265.205 260.25C271.788 273 279.08 279.375 287.08 279.375C292.496 279.375 296.621 276.75 299.455 271.5C302.288 266.167 303.705 258.375 303.705 248.125ZM279.705 165.75C300.038 165.75 316.913 172.042 330.33 184.625C343.83 197.208 350.58 213.083 350.58 232.25C350.58 251.417 343.871 267.292 330.455 279.875C317.121 292.375 300.205 298.625 279.705 298.625C259.121 298.625 242.08 292.375 228.58 279.875C215.163 267.375 208.455 251.5 208.455 232.25C208.455 213 215.163 197.125 228.58 184.625C242.08 172.042 259.121 165.75 279.705 165.75ZM464.727 164.5L478.352 169.25L463.227 212C458.311 210.083 454.144 208.667 450.727 207.75C447.394 206.833 444.561 206.375 442.227 206.375C437.144 206.375 433.144 208.125 430.227 211.625C427.311 215.042 425.852 219.792 425.852 225.875V279.125H438.852V295H371.352V279.125H380.227V214.875C380.227 211.542 379.936 209.292 379.352 208.125C378.769 206.958 377.686 205.875 376.102 204.875L371.352 208.75L362.102 198.5L389.727 165.75C397.477 169.333 403.602 173.208 408.102 177.375C412.686 181.542 415.936 186.292 417.852 191.625C425.102 180.542 430.477 173.458 433.977 170.375C437.561 167.292 441.311 165.75 445.227 165.75C447.394 165.75 449.894 166.167 452.727 167C455.644 167.75 458.727 168.875 461.977 170.375L464.727 164.5ZM540.875 248.875C540.875 257.292 542.417 263.75 545.5 268.25C548.583 272.75 552.958 275 558.625 275C564.625 275 569.375 272.25 572.875 266.75C576.458 261.25 578.25 253.667 578.25 244C578.25 229.75 575.75 218.125 570.75 209.125C565.833 200.125 559.542 195.625 551.875 195.625C550.125 195.625 548.417 195.917 546.75 196.5C545.083 197 543.125 197.917 540.875 199.25V248.875ZM550.375 118.375V134.5L540.875 137.5V181.875C548.792 176.208 555.75 172.125 561.75 169.625C567.75 167.042 573.417 165.75 578.75 165.75C590.667 165.75 600.542 170.417 608.375 179.75C616.292 189.083 620.25 200.792 620.25 214.875C620.25 226.458 617.958 237.417 613.375 247.75C608.875 258 602.208 267.25 593.375 275.5C585.458 283.083 576.958 288.833 567.875 292.75C558.792 296.667 549.375 298.625 539.625 298.625C532.208 298.625 524.458 297.333 516.375 294.75C508.292 292.083 501.208 288.583 495.125 284.25V152.125L486.375 155V138.875L550.375 118.375ZM694.898 165.75H696.648C696.231 171.167 695.898 175.625 695.648 179.125C695.481 182.542 695.398 185.417 695.398 187.75V279.125H704.273V295H640.898V279.125H649.773V193.375L640.898 194.875V180.625L694.898 165.75ZM677.148 126C683.231 126 688.106 127.417 691.773 130.25C695.523 133.083 697.398 136.708 697.398 141.125C697.398 147.125 694.314 152.25 688.148 156.5C682.064 160.75 674.731 162.875 666.148 162.875C660.898 162.875 656.689 161.542 653.523 158.875C650.356 156.208 648.773 152.667 648.773 148.25C648.773 142.5 651.648 137.375 657.398 132.875C663.148 128.292 669.731 126 677.148 126ZM771.67 137.25L784.545 140.125V170.625H806.795L804.17 185.375C803.837 187.875 803.42 189.417 802.92 190C802.42 190.5 801.587 190.75 800.42 190.75H784.545V255.375C784.545 261.792 785.378 266.333 787.045 269C788.712 271.667 791.545 273 795.545 273C797.045 273 798.628 272.708 800.295 272.125C802.045 271.542 803.962 270.625 806.045 269.375L812.67 279.125C806.503 285.458 799.92 290.292 792.92 293.625C785.92 296.958 778.92 298.625 771.92 298.625C760.253 298.625 751.795 295.875 746.545 290.375C741.295 284.792 738.67 275.75 738.67 263.25V190.75H726.92V176.25C738.253 172.917 747.628 168 755.045 161.5C762.545 155 768.087 146.917 771.67 137.25ZM916.693 179.75L898.068 209.25C890.818 200.667 884.401 194.333 878.818 190.25C873.318 186.167 868.401 184.125 864.068 184.125C861.651 184.125 859.693 184.833 858.193 186.25C856.776 187.583 856.068 189.375 856.068 191.625C856.068 194.292 857.443 196.875 860.193 199.375C863.026 201.875 868.651 205.25 877.068 209.5C895.651 218.833 907.484 226.417 912.568 232.25C917.734 238.083 920.318 245.083 920.318 253.25C920.318 265.833 914.984 276.542 904.318 285.375C893.734 294.208 880.568 298.625 864.818 298.625C855.484 298.625 846.568 297.125 838.068 294.125C829.651 291.042 821.651 286.458 814.068 280.375L835.068 247.875C844.151 257.875 852.276 265.417 859.443 270.5C866.609 275.583 872.651 278.125 877.568 278.125C880.401 278.125 882.568 277.458 884.068 276.125C885.568 274.708 886.318 272.708 886.318 270.125C886.318 265.708 878.693 259.458 863.443 251.375L863.318 251.25C862.401 250.75 861.151 250.083 859.568 249.25C836.734 236.917 825.318 223.333 825.318 208.5C825.318 195.833 829.734 185.542 838.568 177.625C847.484 169.708 859.193 165.75 873.693 165.75C881.276 165.75 888.609 166.917 895.693 169.25C902.776 171.583 909.776 175.083 916.693 179.75Z" fill="currentColor"/> </svg>`;
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { readFileSync, writeFileSync, mkdirSync } from "node:fs";
import { homedir } from "node:os";
import { join } from "node:path";
import { GPT_5_CODEX_PROMPT } from "./prompts/gpt-5-codex.js";
import { SETTINGS_DIR_NAME } from "../../branding.js";
import { SETTINGS_DIR_NAME } from "../../../branding.js";

// The Codex backend pins the Responses `instructions` field to the official
// prompt and 400s on anything else, so a stale bundled copy breaks once the
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
CODEX_AUTHORIZE_EXTRA_PARAMS,
} from "./constants.js";
import { getValidCodexToken } from "./session.js";
import { COMMAND_NAME } from "../../branding.js";
import { COMMAND_NAME } from "../../../branding.js";

// Live usage/quota for a prepaid Codex plan. Since the subscription is not
// billed per token, dollar cost is meaningless — what matters is how much of
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { mkdir, readFile, rename, writeFile } from "node:fs/promises";
import { homedir } from "node:os";
import { dirname, join } from "node:path";
import { SETTINGS_DIR_NAME } from "../../branding.js";
import { SETTINGS_DIR_NAME } from "../../../branding.js";

// On-disk store for named OAuth profiles. A user may hold multiple subscriptions
// for the same provider, so credentials are keyed by a user-chosen profile name
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
startPricingRefresh,
defaultPricingCachePath,
type PricingCache,
} from "./cost/pricing-fetcher.js";
} from "./pricing-fetcher.js";

// ---------------------------------------------------------------------------
// defaultPricingCachePath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { homedir } from "node:os";
import { dirname, join } from "node:path";

import { type } from "arktype";
import { SETTINGS_DIR_NAME } from "../branding.js";
import { SETTINGS_DIR_NAME } from "../../branding.js";

export type ModelPricing = {
inputPricePerToken: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ import { mkdtemp, rm } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";

import { getActivePricingCache } from "./cost/cost-visibility.js";
import { getActivePricingCache } from "./cost-visibility.js";
import {
applyPricingCacheMetadata,
resetPricingMetadataRefreshForTests,
schedulePricingMetadataRefresh,
seedPricingMetadataFromCache,
} from "./cost/pricing-metadata.js";
import { modelReasoningCapability } from "./provider/reasoning-effort.js";
import { contextWindowFor } from "./provider/context-window.js";
import { writePricingCache } from "./cost/pricing-fetcher.js";
} from "./pricing-metadata.js";
import { modelReasoningCapability } from "../provider/reasoning-effort.js";
import { contextWindowFor } from "../provider/context-window.js";
import { writePricingCache } from "./pricing-fetcher.js";

describe("pricing-metadata", () => {
// refreshScheduled is a module-level one-shot latch shared with every other
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { mkdtemp, readFile, readdir, rm } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";

import { projectSessionsRoot } from "../session/project-key.js";
import { projectSessionsRoot } from "../../session/project-key.js";
import { crashReportDir, primeCrashReporting, writeCrashReport } from "./report.js";

let home: string | undefined;
Expand Down
4 changes: 2 additions & 2 deletions src/crash/report.ts → src/adapters/crash/report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { mkdir, writeFile } from "node:fs/promises";
import { homedir } from "node:os";
import { join } from "node:path";

import { SETTINGS_DIR_NAME } from "../branding.js";
import { projectSessionsRoot } from "../session/project-key.js";
import { SETTINGS_DIR_NAME } from "../../branding.js";
import { projectSessionsRoot } from "../../session/project-key.js";

export type CrashKind = "uncaughtException" | "unhandledRejection";

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
formatCodexUsageLimitMessage,
parseCodexUsageLimitError,
} from "./auth/codex/usage-limit-error.js";
import { codexProfileFromProviderName, isCodexProviderName } from "./config/codex-providers.js";
import { codexProfileFromProviderName, isCodexProviderName } from "../config/codex-providers.js";
import {
gatewayOverloadUserMessage,
isGatewayOverloadInferenceError,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import {
isOpenCodeGoProviderId,
isOpenCodeGoURL,
parseGoAPIError,
} from "../packages/opencode-go/src/index.js";
} from "../../packages/opencode-go/src/index.js";
import {
codexUsageLimitRetryAfterMs,
formatCodexUsageLimitMessage,
parseCodexUsageLimitError,
} from "./auth/codex/usage-limit-error.js";
import { codexProfileFromProviderName, isCodexProviderName } from "./config/codex-providers.js";
import { codexProfileFromProviderName, isCodexProviderName } from "../config/codex-providers.js";

export type InferenceErrorLike = {
category: string;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/logging/sink.ts → src/adapters/logging/sink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { dirname, join } from "node:path";

import { configureSync } from "@intx/log";

import { SETTINGS_DIR_NAME } from "../branding.js";
import { SETTINGS_DIR_NAME } from "../../branding.js";

// Matches LogTape's Sink shape structurally (see @logtape/logtape's
// sink.d.ts); not imported directly since only @intx/log is a declared
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/perf/index.ts → src/adapters/perf/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export {
type OtlpSpan,
} from "./otel-sink.js";

import type { Settings } from "../config/settings.js";
import type { Settings } from "../../config/settings.js";
import {
flushPerfToOtel as flushPerfToOtelImpl,
type FlushPerfToOtelOptions,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, test, expect } from "bun:test";

import type { Settings } from "../config/settings.js";
import type { Settings } from "../../config/settings.js";
import {
DEFAULT_OTEL_SERVICE_NAME,
OTEL_CONFIG_INVALID,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* half-enable export. Secrets (headers) must never enter privacy-strict dumps.
*/

import type { Settings } from "../config/settings.js";
import type { Settings } from "../../config/settings.js";

/** Stable operator-facing error code for invalid OTEL export config. */
export const OTEL_CONFIG_INVALID = "OTEL_CONFIG_INVALID" as const;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { afterEach, beforeEach, describe, expect, test } from "bun:test";

import type { Settings } from "../config/settings.js";
import type { Settings } from "../../config/settings.js";
import { clear, end, snapshot, start, type PerfSpan } from "./index.js";
import {
buildOtlpPayload,
Expand Down
4 changes: 2 additions & 2 deletions src/perf/otel-sink.ts → src/adapters/perf/otel-sink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import { createHash, randomBytes } from "node:crypto";
import { getLogger } from "@intx/log";

import { LOG_NAMESPACE_ROOT } from "../branding.js";
import type { Settings } from "../config/settings.js";
import { LOG_NAMESPACE_ROOT } from "../../branding.js";
import type { Settings } from "../../config/settings.js";
import type { PerfSpan } from "./index.js";
import {
resolveOtelExportConfig,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
*/
import { afterEach, beforeEach, describe, expect, test } from "bun:test";
import type { ReactorEmittedEvent } from "@intx/inference";
import { createPermissionGate } from "../permission/gate.js";
import { createTaskTool } from "../subagent/task-tool.js";
import { createPermissionGate } from "../../permission/gate.js";
import { createTaskTool } from "../../subagent/task-tool.js";
import { clear, snapshot, type PerfSpan } from "./index.js";
import { createPerfReactorObserver, currentTurnId } from "./reactor-spans.js";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { afterEach, beforeEach, describe, expect, test } from "bun:test";
import type { ReactorEmittedEvent } from "@intx/inference";
import { clear, snapshot, type PerfSpan } from "./index.js";
import { createPerfReactorObserver } from "./reactor-spans.js";
import { createTurnContextCollector } from "../session/hooks.js";
import { createTurnContextCollector } from "../../session/hooks.js";

// The span store is process-wide, so a perf test cannot assume the tests that
// ran before it in this process left it empty. Reset on both edges.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/

import type { ReactorEmittedEvent } from "@intx/inference";
import { onTurnBoundary } from "../agent/reactor-events.js";
import { onTurnBoundary } from "../../agent/reactor-events.js";
import { end, start } from "./index.js";
import {
getActiveTurnId,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
isKnownGoModel,
isOpenCodeGoProvider,
} from "../../packages/opencode-go/src/index.js";
} from "../../../packages/opencode-go/src/index.js";

/** How the provider is billed when known (Go subscription vs Zen PAYG credits). */
export type BillingProduct = "subscription" | "credits";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
CODEX_AUTHORIZE_EXTRA_PARAMS,
} from "../auth/codex/constants.js";
import { codexInstructions } from "../auth/codex/instructions.js";
import { PRODUCT_NAME, ENVIRONMENT_TAG_NAME } from "../branding.js";
import { PRODUCT_NAME, ENVIRONMENT_TAG_NAME } from "../../branding.js";

// Adapter for the OpenAI Responses API as served by the Codex backend
// (chatgpt.com/backend-api/codex/responses). The Codex backend does NOT speak
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { normalizeOpenAICompatibleBaseURL } from "../config/settings.js";
import { normalizeOpenAICompatibleBaseURL } from "../../config/settings.js";

export const DEFAULT_MODELS_REQUEST_TIMEOUT_MS = 10_000;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// The canonical literal set lives in the agent profile contract so the
// profile schema and the runtime cannot drift. Re-exported here for callers
// that already import from this module.
import { REASONING_EFFORTS as CANONICAL_EFFORTS } from "../agent/profile-types.js";
import { REASONING_EFFORTS as CANONICAL_EFFORTS } from "../../agent/profile-types.js";

export const REASONING_EFFORTS = CANONICAL_EFFORTS;
export type ReasoningEffort = (typeof REASONING_EFFORTS)[number];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { describe, expect, test } from "bun:test";
import type { ToolCall, ToolResult } from "@intx/types/runtime";
import type { Telemetry } from "./index.js";
import type { TurnContext } from "../session/hooks.js";
import type { TurnContext } from "../../session/hooks.js";
import {
classifyErrorKind,
classifySpanKind,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// call arguments and results for lifecycle hooks — this module reads only
// the scalar/id fields off it and never the content fields.

import type { TurnContext } from "../session/hooks.js";
import type { TurnContext } from "../../session/hooks.js";
import { noteLastTurnTraceId } from "./feedback.js";
import type { AiErrorKind, AiSpanKind, Telemetry } from "./index.js";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// it matches nothing. What leaves the process is a first-party enum: the fact
// that something unrecognised was used, never what it was called.

import { isMcpToolName } from "../mcp/tool-name.js";
import { isMcpToolName } from "../../mcp/tool-name.js";

const CUSTOM = "custom";

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getLogger } from "@intx/log";
import { LOG_NAMESPACE_ROOT } from "../branding.js";
import { loadSettings, markTelemetryNoticeShown, type Settings } from "../config/settings.js";
import { LOG_NAMESPACE_ROOT } from "../../branding.js";
import { loadSettings, markTelemetryNoticeShown, type Settings } from "../../config/settings.js";
import {
createTelemetry,
resolveTelemetryEnabled,
Expand Down
6 changes: 3 additions & 3 deletions src/telemetry/index.ts → src/adapters/telemetry/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { randomUUID } from "node:crypto";

import pkg from "../../package.json" with { type: "json" };
import { ENV_PREFIX } from "../branding.js";
import type { Settings } from "../config/settings.js";
import pkg from "../../../package.json" with { type: "json" };
import { ENV_PREFIX } from "../../branding.js";
import type { Settings } from "../../config/settings.js";

// Compiled-in defaults, overridable via env for testing. An empty API key
// disables export entirely regardless of the enabled flag.
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/telemetry/toggle.ts → src/adapters/telemetry/toggle.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { getLogger } from "@intx/log";
import { LOG_NAMESPACE_ROOT } from "../branding.js";
import { LOG_NAMESPACE_ROOT } from "../../branding.js";
import {
ensureTelemetrySettings,
loadSettings,
saveGlobalSettings,
type Settings,
} from "../config/settings.js";
} from "../../config/settings.js";
import {
createTelemetry,
TELEMETRY_ENV,
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/upgrade/index.ts → src/adapters/upgrade/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import {
compareVersions,
parseVersionString,
} from "../changelog/index.js";
import { COMMAND_NAME, PRODUCT_NAME } from "../branding.js";
import pkg from "../../package.json" with { type: "json" };
import { COMMAND_NAME, PRODUCT_NAME } from "../../branding.js";
import pkg from "../../../package.json" with { type: "json" };

/** Public releases page (human-facing). */
export const RELEASES_URL =
Expand Down
2 changes: 1 addition & 1 deletion src/agent/compaction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
TokenUsage,
} from "@intx/types/runtime";
import { createCompactionGovernor } from "./compaction.js";
import { compactionThresholdFor } from "../provider/context-window.js";
import { compactionThresholdFor } from "../adapters/provider/context-window.js";
import { COMPACTOR_KEEP_RECENT_TURNS, compactorNoOpFloor } from "../session/compactor.js";

const capabilities = {
Expand Down
2 changes: 1 addition & 1 deletion src/agent/compaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type {
ReactorInboundEvent,
ToolDefinition,
} from "@intx/types/runtime";
import { compactionThresholdFor, contextTokensFromUsage } from "../provider/context-window.js";
import { compactionThresholdFor, contextTokensFromUsage } from "../adapters/provider/context-window.js";
import { COMPACTOR_KEEP_RECENT_TURNS, compactorNoOpFloor } from "../session/compactor.js";
import { createContextEstimate, estimateOverheadTokens } from "./context-estimate.js";
import { onTurnBoundary } from "./reactor-events.js";
Expand Down
Loading
Loading