Skip to content
Merged
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
2 changes: 1 addition & 1 deletion packages/interfacectl-cli/dist/adapter/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { AdapterInputError, ensureReadableFile, isRecord, loadCompiledSurfaceBun
import { runDescribeCommand } from "../commands/describe.js";
import { runValidateCommand } from "../commands/validate.js";
export { AdapterInputError, isAdapterInputError } from "./bundle.js";
const VALID_TOOLS = new Set(["codex", "cursor", "lovable", "figma-make"]);
const VALID_TOOLS = new Set(["codex", "cursor", "local-llm", "lovable", "figma-make"]);
const VALID_MODES = new Set(["workspace", "descriptor"]);
const DEFAULT_DESCRIPTOR_PARITY_CONFIG = "contracts/generation-descriptor-parity.json";
const PARITY_FINDING_CODES = new Set([
Expand Down
4 changes: 2 additions & 2 deletions packages/interfacectl-cli/dist/commands/generation-session.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { runGenerationAdapter } from "../adapter/core.js";
import { buildPreparedGenerationPayload } from "./prepare-generation.js";
import { emitContractRunArtifact, } from "../utils/run-artifacts.js";
import { writeDeterministicJsonSync } from "../utils/deterministic-json.js";
const VALID_TOOLS = new Set(["codex", "cursor"]);
const VALID_TOOLS = new Set(["codex", "cursor", "local-llm"]);
const VALID_GRADES = new Set(["strong", "partial", "weak"]);
const VALID_GUIDANCE_MODES = new Set(["prepared", "unguided"]);
const VALID_REVIEW_STATUSES = new Set(["accepted", "rejected"]);
Expand Down Expand Up @@ -71,7 +71,7 @@ function countBySeverity(validatePayload) {
function ensureSessionTool(tool) {
const normalized = typeof tool === "string" ? tool.trim().toLowerCase() : "codex";
if (!VALID_TOOLS.has(normalized)) {
throw new SessionInputError(`Invalid --tool value "${tool ?? ""}". Expected codex|cursor.`);
throw new SessionInputError(`Invalid --tool value "${tool ?? ""}". Expected codex|cursor|local-llm.`);
}
return normalized;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/interfacectl-cli/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ program
.requiredOption("--bundle-root <path>", "Path to the compiled generation bundle directory")
.requiredOption("--surface <id>", "Surface identifier")
.requiredOption("--workspace-root <path>", "Workspace root for emitted run artifacts")
.option("--tool <tool>", "Generation tool identifier (codex|cursor)")
.option("--tool <tool>", "Generation tool identifier (codex|cursor|local-llm)")
.option("--guidance-mode <mode>", "Session guidance mode (prepared|unguided)")
.option("--brief-file <path>", "Optional implementation brief file to freeze into the session")
.option("--session <id>", "Optional session identifier")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"tool": {
"type": "string",
"enum": ["codex", "cursor", "lovable", "figma-make"]
"enum": ["codex", "cursor", "local-llm", "lovable", "figma-make"]
},
"surfaceId": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"tool": {
"type": "string",
"enum": ["codex", "cursor"]
"enum": ["codex", "cursor", "local-llm"]
},
"guidanceMode": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"tool": {
"type": "string",
"enum": ["codex", "cursor"]
"enum": ["codex", "cursor", "local-llm"]
},
"guidanceMode": {
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion packages/interfacectl-cli/src/adapter/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { runValidateCommand } from "../commands/validate.js";

export { AdapterInputError, isAdapterInputError } from "./bundle.js";

const VALID_TOOLS = new Set(["codex", "cursor", "lovable", "figma-make"]);
const VALID_TOOLS = new Set(["codex", "cursor", "local-llm", "lovable", "figma-make"]);
const VALID_MODES = new Set(["workspace", "descriptor"]);
const DEFAULT_DESCRIPTOR_PARITY_CONFIG =
"contracts/generation-descriptor-parity.json";
Expand Down
6 changes: 3 additions & 3 deletions packages/interfacectl-cli/src/commands/generation-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
} from "../utils/run-artifacts.js";
import { stringifyDeterministicJson, writeDeterministicJsonSync } from "../utils/deterministic-json.js";

type SessionTool = "codex" | "cursor";
type SessionTool = "codex" | "cursor" | "local-llm";
type AssessmentGrade = "strong" | "partial" | "weak";
type ValidateStatus = "pass" | "warn" | "block";
type GuidanceMode = "prepared" | "unguided";
Expand Down Expand Up @@ -393,7 +393,7 @@ interface LoadedAttempt {
previewMetadataPath?: string;
}

const VALID_TOOLS = new Set<SessionTool>(["codex", "cursor"]);
const VALID_TOOLS = new Set<SessionTool>(["codex", "cursor", "local-llm"]);
const VALID_GRADES = new Set<AssessmentGrade>(["strong", "partial", "weak"]);
const VALID_GUIDANCE_MODES = new Set<GuidanceMode>(["prepared", "unguided"]);
const VALID_REVIEW_STATUSES = new Set<AttemptReviewStatus>(["accepted", "rejected"]);
Expand Down Expand Up @@ -471,7 +471,7 @@ function countBySeverity(validatePayload: JsonRecord) {
function ensureSessionTool(tool?: string): SessionTool {
const normalized = typeof tool === "string" ? tool.trim().toLowerCase() : "codex";
if (!VALID_TOOLS.has(normalized as SessionTool)) {
throw new SessionInputError(`Invalid --tool value "${tool ?? ""}". Expected codex|cursor.`);
throw new SessionInputError(`Invalid --tool value "${tool ?? ""}". Expected codex|cursor|local-llm.`);
}
return normalized as SessionTool;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/interfacectl-cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ program
.requiredOption("--bundle-root <path>", "Path to the compiled generation bundle directory")
.requiredOption("--surface <id>", "Surface identifier")
.requiredOption("--workspace-root <path>", "Workspace root for emitted run artifacts")
.option("--tool <tool>", "Generation tool identifier (codex|cursor)")
.option("--tool <tool>", "Generation tool identifier (codex|cursor|local-llm)")
.option("--guidance-mode <mode>", "Session guidance mode (prepared|unguided)")
.option("--brief-file <path>", "Optional implementation brief file to freeze into the session")
.option("--session <id>", "Optional session identifier")
Expand Down
Loading