Skip to content

armgit / Ix

Public Imported from GitHub
0

Understand any codebase instantly. System intelligence for codebases, built for humans and AI.

Merge remote-tracking branch 'origin/main' into fix/mcp-tool-surface

KageBinarya3a7ad233d21
diff --cc ix-cli/src/cli/commands/context.ts
index 7746844f,cc8ed2bb..edb88114
--- a/ix-cli/src/cli/commands/context.ts
+++ b/ix-cli/src/cli/commands/context.ts
@@@ -42,7 -42,9 +42,10 @@@ import { activeReadScope, ensureReadSco
import { createStaleProbe, hasCompletedSourceGraphBaseline } from "../stale.js";
import { renderNote, renderSection, renderWarning, renderWarningErr, reportFailure } from "../ui.js";
import { printJson, relativePath } from "../format.js";
+import { forMcp, suggest, toolCall } from "../next-step.js";
+ import {
+ assessTargetStructure, checkGraphHealth, graphHealthJson, isUnhealthy, worseHealth, type GraphHealth,
+ } from "../graph-health.js";
/** The `--max-*` knobs that bound a bundle. */
interface BudgetSnapshot {
diff --cc ix-cli/src/cli/commands/explain.ts
index 1d0d34d2,ec6a3c68..4fc9730f
--- a/ix-cli/src/cli/commands/explain.ts
+++ b/ix-cli/src/cli/commands/explain.ts
@@@ -14,7 -14,9 +14,10 @@@ import { renderExplainLlm, renderExplai
import { printLlmLines } from "../llm.js";
import { parsePickOption } from "../options.js";
import { renderSection, renderWarning, renderNote } from "../ui.js";
+import { forMcp, toolCall } from "../next-step.js";
+ import {
+ assessTargetStructure, checkGraphHealth, graphHealthJson, graphHealthProse, isUnhealthy, worseHealth,
+ } from "../graph-health.js";
export function registerExplainCommand(program: Command): void {
program
diff --cc ix-cli/src/cli/commands/impact.ts
index 4c3f5b16,cbefe786..5af5eade
--- a/ix-cli/src/cli/commands/impact.ts
+++ b/ix-cli/src/cli/commands/impact.ts
@@@ -2,13 -2,14 +2,14 @@@
import type { Command } from "commander";
import chalk from "chalk";
- import { renderSection, renderKeyValue, renderNote, renderResolvedHeader, colorizeKind } from "../ui.js";
+ import { renderSection, renderKeyValue, renderNote, renderResolvedHeader, renderWarning, colorizeKind } from "../ui.js";
import { IxClient } from "../../client/api.js";
import { getEndpoint } from "../config.js";
- import { resolveFileOrReport, printResolved } from "../resolve.js";
+ import { activeReadScope, resolveFileOrReport, printResolved } from "../resolve.js";
+ import { checkGraphHealth, graphHealthJson, graphHealthLlmFields, graphHealthProse, isUnhealthy } from "../graph-health.js";
import { bucketByHierarchy, getSystemPath, formatSystemPath, hasMapData, type SystemPath } from "../hierarchy.js";
import { inferRiskSemantics, humanizeLabel, type ImpactFacts, type RiskSemantics } from "../impact/risk-semantics.js";
-import { lineSpan, printJson, rowLocation, stripNulls } from "../format.js";
+import { lineSpan, printJson, relativePath, rowLocation, stripNulls } from "../format.js";
import { llmLine } from "../llm.js";
import { parsePickOption } from "../options.js";
@@@ -262,10 -286,11 +286,11 @@@ export function impactTailLlm
async function containerImpact(
client: IxClient,
- target: { id: string; kind: string; name: string; resolutionMode: string },
+ target: { id: string; kind: string; name: string; resolutionMode: string; path?: string },
limit: number,
depth: number,
- format: string
+ format: string,
+ graph?: Record<string, unknown>,
): Promise<void> {
const isJson = format === "json";
const diagnostics: string[] = [];
@@@ -453,9 -478,10 +479,10 @@@
async function leafImpact(
client: IxClient,
- target: { id: string; kind: string; name: string; resolutionMode: string },
+ target: { id: string; kind: string; name: string; resolutionMode: string; path?: string },
depth: number,
- format: string
+ format: string,
+ graph?: Record<string, unknown>,
): Promise<void> {
const isJson = format === "json";
const [callersResult, calleesResult, systemPath, decisionsResult, tasksResult, bugsResult] = await Promise.all([
diff --cc ix-cli/src/cli/ui.ts
index f44b6286,f962ed87..7a248501
--- a/ix-cli/src/cli/ui.ts
+++ b/ix-cli/src/cli/ui.ts
@@@ -13,7 -13,7 +13,8 @@@ import { llmError, llmLine } from "./ll
import { printJson, relativePath } from "./format.js";
import { isQuiet } from "./output-shape.js";
import type { AmbiguousResult, ResolveResult, Suggestion } from "./resolve.js";
+import { forMcp } from "./next-step.js";
+ import { graphHealthJson, graphHealthLlmFields, graphHealthProse, type GraphHealth } from "./graph-health.js";
// ── Brand palette ─────────────────────────────────────────────────────────────
//