#!/usr/bin/env node import { Command } from 'commander'; declare const PROJECT_COMMANDS_CORE_FALLBACK: readonly ["lint", "format", "docs"]; declare const COMMAND_CAPABILITIES_SCHEMA_VERSION: "rapidkit-command-capabilities-v1"; declare const VERSION_CONTRACT_SCHEMA_VERSION: "rapidkit-version-v1"; declare const NPM_ONLY_MANUAL_HANDLER_COMMANDS: readonly ["bootstrap", "setup", "cache", "mirror"]; declare const PROJECT_GROUNDING_MODE_VALUES: readonly ["managed", "local", "off"]; type ProjectGroundingMode = (typeof PROJECT_GROUNDING_MODE_VALUES)[number]; interface AdoptProjectFilePreimage { path: string; contents: Buffer | null; preserve?: 'symbolic-link' | 'unsafe-parent'; } interface AdoptProjectRollbackSnapshot { workspacePath: string; projectPath: string; files: AdoptProjectFilePreimage[]; createdAdapterDirectories: string[]; } declare function getPublishedContractVersions(): { autopilotRelease: "autopilot-release-v1"; workspaceList: "rapidkit-workspace-list-v1"; workspaceSync: "rapidkit-workspace-sync-v1"; compatibilityMatrix: "rapidkit.compatibility-matrix.v1"; mcpDesign: "workspai-mcp-design.v1"; agentHooks: "workspai-agent-hooks.v1"; projectArchive: "rapidkit-project-archive-v1"; workspaceSnapshot: "rapidkit-workspace-snapshot-v1"; workspaceSnapshotV2: "rapidkit-workspace-snapshot-v2"; infraPlan: "rapidkit.infra-plan.v1"; privateProductManifest: "rapidkit.private-product-manifest.v1"; productFactoryPlan: "rapidkit.product-factory-plan.v1"; workspaceModelCache: "workspace-model-cache.v1"; workspaceWatchEvent: "workspace-watch-event.v1"; doctorProjectScan: "doctor-project-scan-v2"; doctorWorkspaceCache: "doctor-workspace-cache-v2"; workspaceContract: number; runtimeCommandSurface: string; cliRuntimeCommandInventory: "workspai-cli-runtime-command-inventory-v1"; cliOperationResult: "workspai-cli-operation-result-v1"; publishedContractCatalog: "workspai-published-contract-catalog-v1"; workspaceArchiveCapabilities: "workspai-workspace-archive-capabilities-v1"; workspaceArchiveManifest: "workspai-workspace-archive-manifest-v1"; workspaceArchiveOperationResult: "workspai-workspace-archive-operation-result-v1"; ingestionPlan: "workspai.ingestion-plan.v1"; ingestionResult: "workspai.ingestion-result.v1"; adoptEffects: "workspai.adopt-effects.v1"; projectEntryCapability: string; projectWorkspaceLink: "project-workspace-link.v1"; projectWorkspaceResolution: "project-workspace-resolution.v1"; projectContextAgent: "project-context-agent.v1"; projectKnowledgeGraphReference: "project-knowledge-graph-reference.v1"; projectAgentEntry: "workspai.agent-entry.v1"; agentBootstrapReceipt: "workspai.agent-bootstrap-receipt.v1"; doctorProjectEvidence: "doctor-project-evidence-v1"; doctorWorkspaceEvidence: "doctor-workspace-evidence-v1"; doctorGraphDiagnosis: "doctor-graph-diagnosis.v1"; doctorDiagnosis: "workspai.doctor-diagnosis.v1"; doctorCapabilities: "workspai.doctor-capabilities.v1"; doctorValidation: "workspai.doctor-validation.v1"; doctorReceipt: "workspai.doctor-receipt.v1"; doctorSummary: "workspai.doctor-summary.v1"; projectTestCoverage: "workspai.project-test-coverage.v1"; verifiedGoal: string; verifiedGoalStatus: "workspai.verified-goal-status.v1"; goalPack: "workspai.goal-pack.v1"; goalAgentHandoff: "workspai.goal-agent-handoff.v1"; goalPlanResult: "workspai.goal-plan-result.v1"; goalIndex: "workspai.goal-index.v1"; goalLifecycleResult: "workspai.goal-lifecycle-result.v1"; decisionEvent: "workspai.decision-event.v1"; decisionTransaction: "workspai.decision-transaction.v1"; decisionCheckpoint: "workspai.decision-checkpoint.v1"; changeOperationResult: "workspai.change-operation-result.v1"; architectureChangeLease: "workspai.architecture-change-lease.v1"; predictedArchitectureChange: "workspai.predicted-architecture-change.v1"; architectureSurpriseReport: "workspai.architecture-surprise-report.v1"; proofCarryingChangeCapsule: "workspai.proof-carrying-change-capsule.v1"; proofCarryingChangeList: "workspai.proof-carrying-change-list.v1"; proofCarryingChangeCapsuleValidation: "workspai.proof-carrying-change-capsule-validation.v1"; proofCarryingChangeCapsuleExport: "workspai.proof-carrying-change-capsule-export.v1"; workspaceIntelligenceArchitecture: string; workspaceIntelligenceChain: "workspai-workspace-intelligence-chain-v1"; workspaceIntelligenceArtifacts: { readonly model: "workspace-model.v1"; readonly knowledgeGraph: "workspace-knowledge-graph.v1"; readonly snapshot: "workspace-model-snapshot.v1"; readonly diff: "workspace-model-diff.v1"; readonly impact: "workspace-impact.v1"; readonly analyze: "rapidkit-analyze-v1"; readonly doctor: "doctor-workspace-evidence-v1"; readonly contractVerify: "workspace-contract-verify.v1"; readonly readiness: "release-readiness-v1"; readonly verify: "workspace-verify.v1"; readonly history: "workspace-intelligence-history.v1"; readonly agentContext: "workspace-context.v1"; readonly agentIndex: "rapidkit-agent-reports-index.v1"; readonly agentCustomizationPack: "rapidkit-agent-customization-pack.v1"; readonly skillsIndex: "workspace-skills-index.v1"; readonly agents: null; readonly explain: "workspace-explain.v1"; readonly intelligenceRun: "workspace-intelligence-run.v1"; readonly evaluationLive: "workspace-intelligence-evaluation.v1"; readonly evaluationLastRun: "workspace-intelligence-evaluation.v1"; readonly verifiedGoalStatus: "workspai.verified-goal-status.v1"; readonly repairTransaction: "workspai.workspace-repair-transaction.v1"; }; cliLogEvent: "cli-log-event-v1"; workspaceActivityEvent: "workspace-activity-event.v1"; workspaceActivityMonitorSnapshot: "workspace-activity-monitor-snapshot.v1"; workspaceActivityMonitorFleet: "workspace-activity-monitor-fleet.v1"; workspaceActivityBoard: "workspace-activity-board.v1"; freshnessMetadata: "rapidkit-freshness-metadata-v1"; factFreshness: "rapidkit-fact-freshness-v1"; blockerResolution: "rapidkit-blocker-resolution-v1"; workspaceModel: "workspace-model.v1"; workspaceImpact: "workspace-impact.v1"; workspaceVerify: "workspace-verify.v1"; workspaceContext: "workspace-context.v1"; workspaceDependencyGraph: "workspace-dependency-graph.v1"; workspaceKnowledgeGraph: "workspace-knowledge-graph.v1"; workspaceGraphStream: "workspace-graph-stream.v1"; workspaceKnowledgeGraphChangeOverlay: "workspace-knowledge-graph-change-overlay.v1"; workspaceKnowledgeSearch: "workspace-knowledge-search.v1"; workspaceGraphTokenEfficiency: "workspace-graph-token-efficiency.v1"; workspaceIntelligenceBenchmark: "workspace-intelligence-benchmark.v1"; modelUsageEvent: "model-usage-event.v1"; workspaceIntelligenceEvaluation: "workspace-intelligence-evaluation.v1"; workspaceIntelligenceEvaluationComparison: "workspace-intelligence-evaluation-comparison.v1"; workspaceIntelligenceHistory: "workspace-intelligence-history.v1"; agentCustomizationPackCapabilities: "workspai-agent-customization-pack-capabilities.v1"; agentFrameworkCapabilities: "workspai.agent-framework-capabilities.v1"; agentFrameworkAdapterManifest: "workspai.agent-framework-adapter-manifest.v1"; agentFrameworkConformanceReport: "workspai.agent-framework-conformance-report.v2"; agentFrameworkConformanceReportLegacy: string; agentFrameworkChangePlan: "workspai.agent-framework-change-plan.v1"; agentFrameworkOwnershipReceipt: "workspai.agent-framework-ownership-receipt.v1"; agentFrameworkAdmissionCandidate: "workspai.agent-framework-admission-candidate.v2"; agentFrameworkAdmissionCandidateLegacy: string; agentCustomizationPackReport: "rapidkit-agent-customization-pack.v1"; agentReportsIndex: "rapidkit-agent-reports-index.v1"; workspaceOperationalSkill: "workspace-operational-skill.v1"; workspaceSkillsIndex: "workspace-skills-index.v1"; workspaceExplain: "workspace-explain.v1"; agentActionOutcome: "agent-action-outcome.v1"; doctorRemediationPlan: "doctor-remediation-plan-v2"; doctorDependencyRepairTransaction: string; artifactRemediationPlan: "artifact-remediation-plan-v1"; studioCardRepairCapabilities: "workspai.studio-card-repair-capabilities.v1"; workspaceRepairProposal: "workspai.workspace-repair-proposal.v1"; workspaceRepairCapabilities: "workspai.workspace-repair-capabilities.v1"; workspaceRepairTransaction: "workspai.workspace-repair-transaction.v1"; doctorFixResult: "rapidkit-doctor-fix-result-v1"; backendImportStackParitySnapshot: string; bootstrapCompliance: "bootstrap-compliance.v1"; commandCapabilities: string; createPlannerCapabilities: string; doctorRemediationPlanLegacy: "doctor-remediation-plan-v2"; extensionCliCompatibility: string; infraStack: string; mirrorOps: "mirror-ops.v1"; moduleLayout: string; moduleSupport: string; pipelineLastRun: "rapidkit-pipeline-v1"; transparencyEvidence: "transparency-evidence.v1"; version: string; studioBlockerHandoff: string; workspaceRegistry: "workspace-registry.v1"; workspaceRunLast: "workspace-run-v1"; workspaceShareBundle: "1.1"; }; declare function getPublishedContractCatalog(): { [k: string]: { artifacts?: { [k: string]: { path: ".workspai/reports/workspace-model.json" | ".workspai/reports/workspace-knowledge-graph.json" | ".workspai/reports/workspace-model-snapshot.json" | ".workspai/reports/workspace-model-diff-last-run.json" | ".workspai/reports/workspace-impact-last-run.json" | ".workspai/reports/analyze-last-run.json" | ".workspai/reports/doctor-last-run.json" | ".workspai/reports/workspace-contract-verify-last-run.json" | ".workspai/reports/release-readiness-last-run.json" | ".workspai/reports/workspace-verify-last-run.json" | ".workspai/reports/workspace-intelligence-history.json" | ".workspai/reports/workspace-context-agent.json" | ".workspai/reports/INDEX.json" | ".workspai/reports/agent-customization-pack.json" | ".workspai/reports/workspace-skills-index.json" | "AGENTS.md" | ".workspai/reports/workspace-explain-last-run.json" | ".workspai/reports/workspace-intelligence-run-last-run.json" | ".workspai/reports/workspace-intelligence-evaluation-live.json" | ".workspai/reports/workspace-intelligence-evaluation-last-run.json" | ".workspai/reports/verified-goal-last-run.json" | ".workspai/reports/workspace-repair-last-run.json"; schemaVersion: "workspace-model.v1" | "workspace-knowledge-graph.v1" | "workspace-model-snapshot.v1" | "workspace-model-diff.v1" | "workspace-impact.v1" | "rapidkit-analyze-v1" | "doctor-workspace-evidence-v1" | "workspace-contract-verify.v1" | "release-readiness-v1" | "workspace-verify.v1" | "workspace-intelligence-history.v1" | "workspace-context.v1" | "rapidkit-agent-reports-index.v1" | "rapidkit-agent-customization-pack.v1" | "workspace-skills-index.v1" | "workspace-explain.v1" | "workspace-intelligence-run.v1" | "workspace-intelligence-evaluation.v1" | "workspai.verified-goal-status.v1" | "workspai.workspace-repair-transaction.v1" | null; contractPath: "contracts/workspace-intelligence/workspace-model.v1.json" | "contracts/workspace-intelligence/workspace-knowledge-graph.v1.json" | "contracts/workspace-intelligence/workspace-model-snapshot.v1.json" | "contracts/workspace-intelligence/workspace-model-diff.v1.json" | "contracts/workspace-intelligence/workspace-impact.v1.json" | "contracts/analyze-last-run.v1.json" | "contracts/doctor-workspace-evidence.v1.json" | "contracts/workspace-intelligence/workspace-contract-verify.v1.json" | "contracts/release-readiness.v1.json" | "contracts/workspace-intelligence/workspace-verify.v1.json" | "contracts/workspace-intelligence/workspace-intelligence-history.v1.json" | "contracts/workspace-intelligence/workspace-context.v1.json" | "contracts/workspace-intelligence/agent-reports-index.v1.json" | "contracts/workspace-intelligence/agent-customization-pack-report.v1.json" | "contracts/workspace-intelligence/workspace-skills-index.v1.json" | "contracts/workspace-intelligence/workspace-explain.v1.json" | "contracts/workspace-intelligence/workspace-intelligence-run.v1.json" | "contracts/workspace-intelligence/workspace-intelligence-evaluation.v1.json" | "contracts/workspace-intelligence/verified-goal-status.v1.json" | "contracts/workspace-intelligence/workspace-repair-transaction.v1.json" | null; }; } | undefined; schemaVersion: string | number | { readonly model: "workspace-model.v1"; readonly knowledgeGraph: "workspace-knowledge-graph.v1"; readonly snapshot: "workspace-model-snapshot.v1"; readonly diff: "workspace-model-diff.v1"; readonly impact: "workspace-impact.v1"; readonly analyze: "rapidkit-analyze-v1"; readonly doctor: "doctor-workspace-evidence-v1"; readonly contractVerify: "workspace-contract-verify.v1"; readonly readiness: "release-readiness-v1"; readonly verify: "workspace-verify.v1"; readonly history: "workspace-intelligence-history.v1"; readonly agentContext: "workspace-context.v1"; readonly agentIndex: "rapidkit-agent-reports-index.v1"; readonly agentCustomizationPack: "rapidkit-agent-customization-pack.v1"; readonly skillsIndex: "workspace-skills-index.v1"; readonly agents: null; readonly explain: "workspace-explain.v1"; readonly intelligenceRun: "workspace-intelligence-run.v1"; readonly evaluationLive: "workspace-intelligence-evaluation.v1"; readonly evaluationLastRun: "workspace-intelligence-evaluation.v1"; readonly verifiedGoalStatus: "workspai.verified-goal-status.v1"; readonly repairTransaction: "workspai.workspace-repair-transaction.v1"; }; contractPath: string | null; publication: "capability-contract" | "json-schema" | "embedded-type"; }; }; declare const NPM_ONLY_SCOPED_COMMANDS: readonly (readonly string[])[]; declare const NPM_ONLY_TOP_LEVEL_COMMANDS: readonly string[]; type BridgeFailureCode = 'PYTHON_NOT_FOUND' | 'BRIDGE_VENV_BOOTSTRAP_FAILED' | 'BRIDGE_VENV_CREATE_FAILED' | 'BRIDGE_PIP_BOOTSTRAP_FAILED'; declare function bridgeFailureCode(err: unknown): BridgeFailureCode | null; declare function resolveInvokedCliName(argv?: string[]): 'workspai' | 'rapidkit'; declare function normalizeFallbackTemplate(kit: string): 'fastapi' | 'nestjs' | null; declare function readFlagValue(argv: string[], flag: string): string | undefined; declare function parseMaxWorkersOption(raw: string | undefined): number | undefined; declare function hostPythonCandidates(): string[]; declare function buildDelegationEnvForInit(): NodeJS.ProcessEnv; declare function commandAvailable(command: string, cwd: string): Promise; type InferredRuntime = 'python' | 'node' | 'go' | 'java' | 'dotnet' | 'rust' | 'php' | null; declare function inferRuntimeByFiles(targetPath: string): Promise; interface PythonProjectOrchestrationDependencies { runCommand?: typeof runCommandInCwd; pythonCandidates?: readonly string[]; } declare function createWorkspaceVenv(workspacePath: string, dependencies?: PythonProjectOrchestrationDependencies): Promise; declare function ensureWorkspaceVenvHasPip(workspacePath: string, dependencies?: PythonProjectOrchestrationDependencies): Promise; declare function createProjectVenv(projectPath: string, dependencies?: PythonProjectOrchestrationDependencies): Promise; declare function ensurePythonProjectUsesLocalVenv(projectPath: string, dependencies?: PythonProjectOrchestrationDependencies): Promise; declare function installPythonDependenciesWithPipFallback(projectPath: string, dependencies?: PythonProjectOrchestrationDependencies): Promise; declare function validateNpmKitFlags(kitId: string, args: readonly string[]): string | null; declare function runCreateFallback(args: string[], reasonCode: BridgeFailureCode): Promise; declare function handleCreateOrFallback(args: string[]): Promise; declare const WRAPPER_ORCHESTRATED_PROJECT_COMMANDS: readonly ["init"]; declare function isNpmOnlyTopLevelCommand(command: string | undefined): boolean; declare function isNpmOnlyScopedCommand(args: readonly string[]): boolean; declare function isNpmOnlyInvocation(args: readonly string[]): boolean; declare function isNpmOnlyParseDirectCommand(command: string | undefined): boolean; declare function isNpmOnlyParseDirectInvocation(args: readonly string[]): boolean; declare function isNpmOnlyManualHandlerCommand(command: string | undefined): command is (typeof NPM_ONLY_MANUAL_HANDLER_COMMANDS)[number]; declare function isNpmExecInvocation(env?: NodeJS.ProcessEnv): boolean; declare function getVersionContract(): { schemaVersion: "rapidkit-version-v1"; cli: string; version: string; node: string; platform: NodeJS.Platform; capabilitiesSchemaVersion: "rapidkit-command-capabilities-v1"; contracts: { autopilotRelease: "autopilot-release-v1"; workspaceList: "rapidkit-workspace-list-v1"; workspaceSync: "rapidkit-workspace-sync-v1"; compatibilityMatrix: "rapidkit.compatibility-matrix.v1"; mcpDesign: "workspai-mcp-design.v1"; agentHooks: "workspai-agent-hooks.v1"; projectArchive: "rapidkit-project-archive-v1"; workspaceSnapshot: "rapidkit-workspace-snapshot-v1"; workspaceSnapshotV2: "rapidkit-workspace-snapshot-v2"; infraPlan: "rapidkit.infra-plan.v1"; privateProductManifest: "rapidkit.private-product-manifest.v1"; productFactoryPlan: "rapidkit.product-factory-plan.v1"; workspaceModelCache: "workspace-model-cache.v1"; workspaceWatchEvent: "workspace-watch-event.v1"; doctorProjectScan: "doctor-project-scan-v2"; doctorWorkspaceCache: "doctor-workspace-cache-v2"; workspaceContract: number; runtimeCommandSurface: string; cliRuntimeCommandInventory: "workspai-cli-runtime-command-inventory-v1"; cliOperationResult: "workspai-cli-operation-result-v1"; publishedContractCatalog: "workspai-published-contract-catalog-v1"; workspaceArchiveCapabilities: "workspai-workspace-archive-capabilities-v1"; workspaceArchiveManifest: "workspai-workspace-archive-manifest-v1"; workspaceArchiveOperationResult: "workspai-workspace-archive-operation-result-v1"; ingestionPlan: "workspai.ingestion-plan.v1"; ingestionResult: "workspai.ingestion-result.v1"; adoptEffects: "workspai.adopt-effects.v1"; projectEntryCapability: string; projectWorkspaceLink: "project-workspace-link.v1"; projectWorkspaceResolution: "project-workspace-resolution.v1"; projectContextAgent: "project-context-agent.v1"; projectKnowledgeGraphReference: "project-knowledge-graph-reference.v1"; projectAgentEntry: "workspai.agent-entry.v1"; agentBootstrapReceipt: "workspai.agent-bootstrap-receipt.v1"; doctorProjectEvidence: "doctor-project-evidence-v1"; doctorWorkspaceEvidence: "doctor-workspace-evidence-v1"; doctorGraphDiagnosis: "doctor-graph-diagnosis.v1"; doctorDiagnosis: "workspai.doctor-diagnosis.v1"; doctorCapabilities: "workspai.doctor-capabilities.v1"; doctorValidation: "workspai.doctor-validation.v1"; doctorReceipt: "workspai.doctor-receipt.v1"; doctorSummary: "workspai.doctor-summary.v1"; projectTestCoverage: "workspai.project-test-coverage.v1"; verifiedGoal: string; verifiedGoalStatus: "workspai.verified-goal-status.v1"; goalPack: "workspai.goal-pack.v1"; goalAgentHandoff: "workspai.goal-agent-handoff.v1"; goalPlanResult: "workspai.goal-plan-result.v1"; goalIndex: "workspai.goal-index.v1"; goalLifecycleResult: "workspai.goal-lifecycle-result.v1"; decisionEvent: "workspai.decision-event.v1"; decisionTransaction: "workspai.decision-transaction.v1"; decisionCheckpoint: "workspai.decision-checkpoint.v1"; changeOperationResult: "workspai.change-operation-result.v1"; architectureChangeLease: "workspai.architecture-change-lease.v1"; predictedArchitectureChange: "workspai.predicted-architecture-change.v1"; architectureSurpriseReport: "workspai.architecture-surprise-report.v1"; proofCarryingChangeCapsule: "workspai.proof-carrying-change-capsule.v1"; proofCarryingChangeList: "workspai.proof-carrying-change-list.v1"; proofCarryingChangeCapsuleValidation: "workspai.proof-carrying-change-capsule-validation.v1"; proofCarryingChangeCapsuleExport: "workspai.proof-carrying-change-capsule-export.v1"; workspaceIntelligenceArchitecture: string; workspaceIntelligenceChain: "workspai-workspace-intelligence-chain-v1"; workspaceIntelligenceArtifacts: { readonly model: "workspace-model.v1"; readonly knowledgeGraph: "workspace-knowledge-graph.v1"; readonly snapshot: "workspace-model-snapshot.v1"; readonly diff: "workspace-model-diff.v1"; readonly impact: "workspace-impact.v1"; readonly analyze: "rapidkit-analyze-v1"; readonly doctor: "doctor-workspace-evidence-v1"; readonly contractVerify: "workspace-contract-verify.v1"; readonly readiness: "release-readiness-v1"; readonly verify: "workspace-verify.v1"; readonly history: "workspace-intelligence-history.v1"; readonly agentContext: "workspace-context.v1"; readonly agentIndex: "rapidkit-agent-reports-index.v1"; readonly agentCustomizationPack: "rapidkit-agent-customization-pack.v1"; readonly skillsIndex: "workspace-skills-index.v1"; readonly agents: null; readonly explain: "workspace-explain.v1"; readonly intelligenceRun: "workspace-intelligence-run.v1"; readonly evaluationLive: "workspace-intelligence-evaluation.v1"; readonly evaluationLastRun: "workspace-intelligence-evaluation.v1"; readonly verifiedGoalStatus: "workspai.verified-goal-status.v1"; readonly repairTransaction: "workspai.workspace-repair-transaction.v1"; }; cliLogEvent: "cli-log-event-v1"; workspaceActivityEvent: "workspace-activity-event.v1"; workspaceActivityMonitorSnapshot: "workspace-activity-monitor-snapshot.v1"; workspaceActivityMonitorFleet: "workspace-activity-monitor-fleet.v1"; workspaceActivityBoard: "workspace-activity-board.v1"; freshnessMetadata: "rapidkit-freshness-metadata-v1"; factFreshness: "rapidkit-fact-freshness-v1"; blockerResolution: "rapidkit-blocker-resolution-v1"; workspaceModel: "workspace-model.v1"; workspaceImpact: "workspace-impact.v1"; workspaceVerify: "workspace-verify.v1"; workspaceContext: "workspace-context.v1"; workspaceDependencyGraph: "workspace-dependency-graph.v1"; workspaceKnowledgeGraph: "workspace-knowledge-graph.v1"; workspaceGraphStream: "workspace-graph-stream.v1"; workspaceKnowledgeGraphChangeOverlay: "workspace-knowledge-graph-change-overlay.v1"; workspaceKnowledgeSearch: "workspace-knowledge-search.v1"; workspaceGraphTokenEfficiency: "workspace-graph-token-efficiency.v1"; workspaceIntelligenceBenchmark: "workspace-intelligence-benchmark.v1"; modelUsageEvent: "model-usage-event.v1"; workspaceIntelligenceEvaluation: "workspace-intelligence-evaluation.v1"; workspaceIntelligenceEvaluationComparison: "workspace-intelligence-evaluation-comparison.v1"; workspaceIntelligenceHistory: "workspace-intelligence-history.v1"; agentCustomizationPackCapabilities: "workspai-agent-customization-pack-capabilities.v1"; agentFrameworkCapabilities: "workspai.agent-framework-capabilities.v1"; agentFrameworkAdapterManifest: "workspai.agent-framework-adapter-manifest.v1"; agentFrameworkConformanceReport: "workspai.agent-framework-conformance-report.v2"; agentFrameworkConformanceReportLegacy: string; agentFrameworkChangePlan: "workspai.agent-framework-change-plan.v1"; agentFrameworkOwnershipReceipt: "workspai.agent-framework-ownership-receipt.v1"; agentFrameworkAdmissionCandidate: "workspai.agent-framework-admission-candidate.v2"; agentFrameworkAdmissionCandidateLegacy: string; agentCustomizationPackReport: "rapidkit-agent-customization-pack.v1"; agentReportsIndex: "rapidkit-agent-reports-index.v1"; workspaceOperationalSkill: "workspace-operational-skill.v1"; workspaceSkillsIndex: "workspace-skills-index.v1"; workspaceExplain: "workspace-explain.v1"; agentActionOutcome: "agent-action-outcome.v1"; doctorRemediationPlan: "doctor-remediation-plan-v2"; doctorDependencyRepairTransaction: string; artifactRemediationPlan: "artifact-remediation-plan-v1"; studioCardRepairCapabilities: "workspai.studio-card-repair-capabilities.v1"; workspaceRepairProposal: "workspai.workspace-repair-proposal.v1"; workspaceRepairCapabilities: "workspai.workspace-repair-capabilities.v1"; workspaceRepairTransaction: "workspai.workspace-repair-transaction.v1"; doctorFixResult: "rapidkit-doctor-fix-result-v1"; backendImportStackParitySnapshot: string; bootstrapCompliance: "bootstrap-compliance.v1"; commandCapabilities: string; createPlannerCapabilities: string; doctorRemediationPlanLegacy: "doctor-remediation-plan-v2"; extensionCliCompatibility: string; infraStack: string; mirrorOps: "mirror-ops.v1"; moduleLayout: string; moduleSupport: string; pipelineLastRun: "rapidkit-pipeline-v1"; transparencyEvidence: "transparency-evidence.v1"; version: string; studioBlockerHandoff: string; workspaceRegistry: "workspace-registry.v1"; workspaceRunLast: "workspace-run-v1"; workspaceShareBundle: "1.1"; }; contractCatalog: { [k: string]: { artifacts?: { [k: string]: { path: ".workspai/reports/workspace-model.json" | ".workspai/reports/workspace-knowledge-graph.json" | ".workspai/reports/workspace-model-snapshot.json" | ".workspai/reports/workspace-model-diff-last-run.json" | ".workspai/reports/workspace-impact-last-run.json" | ".workspai/reports/analyze-last-run.json" | ".workspai/reports/doctor-last-run.json" | ".workspai/reports/workspace-contract-verify-last-run.json" | ".workspai/reports/release-readiness-last-run.json" | ".workspai/reports/workspace-verify-last-run.json" | ".workspai/reports/workspace-intelligence-history.json" | ".workspai/reports/workspace-context-agent.json" | ".workspai/reports/INDEX.json" | ".workspai/reports/agent-customization-pack.json" | ".workspai/reports/workspace-skills-index.json" | "AGENTS.md" | ".workspai/reports/workspace-explain-last-run.json" | ".workspai/reports/workspace-intelligence-run-last-run.json" | ".workspai/reports/workspace-intelligence-evaluation-live.json" | ".workspai/reports/workspace-intelligence-evaluation-last-run.json" | ".workspai/reports/verified-goal-last-run.json" | ".workspai/reports/workspace-repair-last-run.json"; schemaVersion: "workspace-model.v1" | "workspace-knowledge-graph.v1" | "workspace-model-snapshot.v1" | "workspace-model-diff.v1" | "workspace-impact.v1" | "rapidkit-analyze-v1" | "doctor-workspace-evidence-v1" | "workspace-contract-verify.v1" | "release-readiness-v1" | "workspace-verify.v1" | "workspace-intelligence-history.v1" | "workspace-context.v1" | "rapidkit-agent-reports-index.v1" | "rapidkit-agent-customization-pack.v1" | "workspace-skills-index.v1" | "workspace-explain.v1" | "workspace-intelligence-run.v1" | "workspace-intelligence-evaluation.v1" | "workspai.verified-goal-status.v1" | "workspai.workspace-repair-transaction.v1" | null; contractPath: "contracts/workspace-intelligence/workspace-model.v1.json" | "contracts/workspace-intelligence/workspace-knowledge-graph.v1.json" | "contracts/workspace-intelligence/workspace-model-snapshot.v1.json" | "contracts/workspace-intelligence/workspace-model-diff.v1.json" | "contracts/workspace-intelligence/workspace-impact.v1.json" | "contracts/analyze-last-run.v1.json" | "contracts/doctor-workspace-evidence.v1.json" | "contracts/workspace-intelligence/workspace-contract-verify.v1.json" | "contracts/release-readiness.v1.json" | "contracts/workspace-intelligence/workspace-verify.v1.json" | "contracts/workspace-intelligence/workspace-intelligence-history.v1.json" | "contracts/workspace-intelligence/workspace-context.v1.json" | "contracts/workspace-intelligence/agent-reports-index.v1.json" | "contracts/workspace-intelligence/agent-customization-pack-report.v1.json" | "contracts/workspace-intelligence/workspace-skills-index.v1.json" | "contracts/workspace-intelligence/workspace-explain.v1.json" | "contracts/workspace-intelligence/workspace-intelligence-run.v1.json" | "contracts/workspace-intelligence/workspace-intelligence-evaluation.v1.json" | "contracts/workspace-intelligence/verified-goal-status.v1.json" | "contracts/workspace-intelligence/workspace-repair-transaction.v1.json" | null; }; } | undefined; schemaVersion: string | number | { readonly model: "workspace-model.v1"; readonly knowledgeGraph: "workspace-knowledge-graph.v1"; readonly snapshot: "workspace-model-snapshot.v1"; readonly diff: "workspace-model-diff.v1"; readonly impact: "workspace-impact.v1"; readonly analyze: "rapidkit-analyze-v1"; readonly doctor: "doctor-workspace-evidence-v1"; readonly contractVerify: "workspace-contract-verify.v1"; readonly readiness: "release-readiness-v1"; readonly verify: "workspace-verify.v1"; readonly history: "workspace-intelligence-history.v1"; readonly agentContext: "workspace-context.v1"; readonly agentIndex: "rapidkit-agent-reports-index.v1"; readonly agentCustomizationPack: "rapidkit-agent-customization-pack.v1"; readonly skillsIndex: "workspace-skills-index.v1"; readonly agents: null; readonly explain: "workspace-explain.v1"; readonly intelligenceRun: "workspace-intelligence-run.v1"; readonly evaluationLive: "workspace-intelligence-evaluation.v1"; readonly evaluationLastRun: "workspace-intelligence-evaluation.v1"; readonly verifiedGoalStatus: "workspai.verified-goal-status.v1"; readonly repairTransaction: "workspai.workspace-repair-transaction.v1"; }; contractPath: string | null; publication: "capability-contract" | "json-schema" | "embedded-type"; }; }; }; type RuntimeCommandInventoryPayload = { schemaVersion: string; commands: Array<{ path: string[]; command: string; parent: string | null; registrationKind: 'commander' | 'manual-handler'; aliases: string[]; description: string; hidden: boolean; arguments: Array<{ name: string; required: boolean; variadic: boolean; }>; options: Array<{ flags: string; attributeName: string | null; }>; }>; topLevelCommands: string[]; integrity: { ok: boolean; registeredButUndeclared: string[]; declaredButUnregistered: string[]; registeredScopedButUndeclared: string[]; declaredScopedButUnregistered: string[]; }; }; declare function getGlobalCommandCapabilities(): { schemaVersion: "rapidkit-command-capabilities-v1"; scope: string; cli: string; version: string; cwd: string; contracts: { autopilotRelease: "autopilot-release-v1"; workspaceList: "rapidkit-workspace-list-v1"; workspaceSync: "rapidkit-workspace-sync-v1"; compatibilityMatrix: "rapidkit.compatibility-matrix.v1"; mcpDesign: "workspai-mcp-design.v1"; agentHooks: "workspai-agent-hooks.v1"; projectArchive: "rapidkit-project-archive-v1"; workspaceSnapshot: "rapidkit-workspace-snapshot-v1"; workspaceSnapshotV2: "rapidkit-workspace-snapshot-v2"; infraPlan: "rapidkit.infra-plan.v1"; privateProductManifest: "rapidkit.private-product-manifest.v1"; productFactoryPlan: "rapidkit.product-factory-plan.v1"; workspaceModelCache: "workspace-model-cache.v1"; workspaceWatchEvent: "workspace-watch-event.v1"; doctorProjectScan: "doctor-project-scan-v2"; doctorWorkspaceCache: "doctor-workspace-cache-v2"; workspaceContract: number; runtimeCommandSurface: string; cliRuntimeCommandInventory: "workspai-cli-runtime-command-inventory-v1"; cliOperationResult: "workspai-cli-operation-result-v1"; publishedContractCatalog: "workspai-published-contract-catalog-v1"; workspaceArchiveCapabilities: "workspai-workspace-archive-capabilities-v1"; workspaceArchiveManifest: "workspai-workspace-archive-manifest-v1"; workspaceArchiveOperationResult: "workspai-workspace-archive-operation-result-v1"; ingestionPlan: "workspai.ingestion-plan.v1"; ingestionResult: "workspai.ingestion-result.v1"; adoptEffects: "workspai.adopt-effects.v1"; projectEntryCapability: string; projectWorkspaceLink: "project-workspace-link.v1"; projectWorkspaceResolution: "project-workspace-resolution.v1"; projectContextAgent: "project-context-agent.v1"; projectKnowledgeGraphReference: "project-knowledge-graph-reference.v1"; projectAgentEntry: "workspai.agent-entry.v1"; agentBootstrapReceipt: "workspai.agent-bootstrap-receipt.v1"; doctorProjectEvidence: "doctor-project-evidence-v1"; doctorWorkspaceEvidence: "doctor-workspace-evidence-v1"; doctorGraphDiagnosis: "doctor-graph-diagnosis.v1"; doctorDiagnosis: "workspai.doctor-diagnosis.v1"; doctorCapabilities: "workspai.doctor-capabilities.v1"; doctorValidation: "workspai.doctor-validation.v1"; doctorReceipt: "workspai.doctor-receipt.v1"; doctorSummary: "workspai.doctor-summary.v1"; projectTestCoverage: "workspai.project-test-coverage.v1"; verifiedGoal: string; verifiedGoalStatus: "workspai.verified-goal-status.v1"; goalPack: "workspai.goal-pack.v1"; goalAgentHandoff: "workspai.goal-agent-handoff.v1"; goalPlanResult: "workspai.goal-plan-result.v1"; goalIndex: "workspai.goal-index.v1"; goalLifecycleResult: "workspai.goal-lifecycle-result.v1"; decisionEvent: "workspai.decision-event.v1"; decisionTransaction: "workspai.decision-transaction.v1"; decisionCheckpoint: "workspai.decision-checkpoint.v1"; changeOperationResult: "workspai.change-operation-result.v1"; architectureChangeLease: "workspai.architecture-change-lease.v1"; predictedArchitectureChange: "workspai.predicted-architecture-change.v1"; architectureSurpriseReport: "workspai.architecture-surprise-report.v1"; proofCarryingChangeCapsule: "workspai.proof-carrying-change-capsule.v1"; proofCarryingChangeList: "workspai.proof-carrying-change-list.v1"; proofCarryingChangeCapsuleValidation: "workspai.proof-carrying-change-capsule-validation.v1"; proofCarryingChangeCapsuleExport: "workspai.proof-carrying-change-capsule-export.v1"; workspaceIntelligenceArchitecture: string; workspaceIntelligenceChain: "workspai-workspace-intelligence-chain-v1"; workspaceIntelligenceArtifacts: { readonly model: "workspace-model.v1"; readonly knowledgeGraph: "workspace-knowledge-graph.v1"; readonly snapshot: "workspace-model-snapshot.v1"; readonly diff: "workspace-model-diff.v1"; readonly impact: "workspace-impact.v1"; readonly analyze: "rapidkit-analyze-v1"; readonly doctor: "doctor-workspace-evidence-v1"; readonly contractVerify: "workspace-contract-verify.v1"; readonly readiness: "release-readiness-v1"; readonly verify: "workspace-verify.v1"; readonly history: "workspace-intelligence-history.v1"; readonly agentContext: "workspace-context.v1"; readonly agentIndex: "rapidkit-agent-reports-index.v1"; readonly agentCustomizationPack: "rapidkit-agent-customization-pack.v1"; readonly skillsIndex: "workspace-skills-index.v1"; readonly agents: null; readonly explain: "workspace-explain.v1"; readonly intelligenceRun: "workspace-intelligence-run.v1"; readonly evaluationLive: "workspace-intelligence-evaluation.v1"; readonly evaluationLastRun: "workspace-intelligence-evaluation.v1"; readonly verifiedGoalStatus: "workspai.verified-goal-status.v1"; readonly repairTransaction: "workspai.workspace-repair-transaction.v1"; }; cliLogEvent: "cli-log-event-v1"; workspaceActivityEvent: "workspace-activity-event.v1"; workspaceActivityMonitorSnapshot: "workspace-activity-monitor-snapshot.v1"; workspaceActivityMonitorFleet: "workspace-activity-monitor-fleet.v1"; workspaceActivityBoard: "workspace-activity-board.v1"; freshnessMetadata: "rapidkit-freshness-metadata-v1"; factFreshness: "rapidkit-fact-freshness-v1"; blockerResolution: "rapidkit-blocker-resolution-v1"; workspaceModel: "workspace-model.v1"; workspaceImpact: "workspace-impact.v1"; workspaceVerify: "workspace-verify.v1"; workspaceContext: "workspace-context.v1"; workspaceDependencyGraph: "workspace-dependency-graph.v1"; workspaceKnowledgeGraph: "workspace-knowledge-graph.v1"; workspaceGraphStream: "workspace-graph-stream.v1"; workspaceKnowledgeGraphChangeOverlay: "workspace-knowledge-graph-change-overlay.v1"; workspaceKnowledgeSearch: "workspace-knowledge-search.v1"; workspaceGraphTokenEfficiency: "workspace-graph-token-efficiency.v1"; workspaceIntelligenceBenchmark: "workspace-intelligence-benchmark.v1"; modelUsageEvent: "model-usage-event.v1"; workspaceIntelligenceEvaluation: "workspace-intelligence-evaluation.v1"; workspaceIntelligenceEvaluationComparison: "workspace-intelligence-evaluation-comparison.v1"; workspaceIntelligenceHistory: "workspace-intelligence-history.v1"; agentCustomizationPackCapabilities: "workspai-agent-customization-pack-capabilities.v1"; agentFrameworkCapabilities: "workspai.agent-framework-capabilities.v1"; agentFrameworkAdapterManifest: "workspai.agent-framework-adapter-manifest.v1"; agentFrameworkConformanceReport: "workspai.agent-framework-conformance-report.v2"; agentFrameworkConformanceReportLegacy: string; agentFrameworkChangePlan: "workspai.agent-framework-change-plan.v1"; agentFrameworkOwnershipReceipt: "workspai.agent-framework-ownership-receipt.v1"; agentFrameworkAdmissionCandidate: "workspai.agent-framework-admission-candidate.v2"; agentFrameworkAdmissionCandidateLegacy: string; agentCustomizationPackReport: "rapidkit-agent-customization-pack.v1"; agentReportsIndex: "rapidkit-agent-reports-index.v1"; workspaceOperationalSkill: "workspace-operational-skill.v1"; workspaceSkillsIndex: "workspace-skills-index.v1"; workspaceExplain: "workspace-explain.v1"; agentActionOutcome: "agent-action-outcome.v1"; doctorRemediationPlan: "doctor-remediation-plan-v2"; doctorDependencyRepairTransaction: string; artifactRemediationPlan: "artifact-remediation-plan-v1"; studioCardRepairCapabilities: "workspai.studio-card-repair-capabilities.v1"; workspaceRepairProposal: "workspai.workspace-repair-proposal.v1"; workspaceRepairCapabilities: "workspai.workspace-repair-capabilities.v1"; workspaceRepairTransaction: "workspai.workspace-repair-transaction.v1"; doctorFixResult: "rapidkit-doctor-fix-result-v1"; backendImportStackParitySnapshot: string; bootstrapCompliance: "bootstrap-compliance.v1"; commandCapabilities: string; createPlannerCapabilities: string; doctorRemediationPlanLegacy: "doctor-remediation-plan-v2"; extensionCliCompatibility: string; infraStack: string; mirrorOps: "mirror-ops.v1"; moduleLayout: string; moduleSupport: string; pipelineLastRun: "rapidkit-pipeline-v1"; transparencyEvidence: "transparency-evidence.v1"; version: string; studioBlockerHandoff: string; workspaceRegistry: "workspace-registry.v1"; workspaceRunLast: "workspace-run-v1"; workspaceShareBundle: "1.1"; }; contractCatalog: { [k: string]: { artifacts?: { [k: string]: { path: ".workspai/reports/workspace-model.json" | ".workspai/reports/workspace-knowledge-graph.json" | ".workspai/reports/workspace-model-snapshot.json" | ".workspai/reports/workspace-model-diff-last-run.json" | ".workspai/reports/workspace-impact-last-run.json" | ".workspai/reports/analyze-last-run.json" | ".workspai/reports/doctor-last-run.json" | ".workspai/reports/workspace-contract-verify-last-run.json" | ".workspai/reports/release-readiness-last-run.json" | ".workspai/reports/workspace-verify-last-run.json" | ".workspai/reports/workspace-intelligence-history.json" | ".workspai/reports/workspace-context-agent.json" | ".workspai/reports/INDEX.json" | ".workspai/reports/agent-customization-pack.json" | ".workspai/reports/workspace-skills-index.json" | "AGENTS.md" | ".workspai/reports/workspace-explain-last-run.json" | ".workspai/reports/workspace-intelligence-run-last-run.json" | ".workspai/reports/workspace-intelligence-evaluation-live.json" | ".workspai/reports/workspace-intelligence-evaluation-last-run.json" | ".workspai/reports/verified-goal-last-run.json" | ".workspai/reports/workspace-repair-last-run.json"; schemaVersion: "workspace-model.v1" | "workspace-knowledge-graph.v1" | "workspace-model-snapshot.v1" | "workspace-model-diff.v1" | "workspace-impact.v1" | "rapidkit-analyze-v1" | "doctor-workspace-evidence-v1" | "workspace-contract-verify.v1" | "release-readiness-v1" | "workspace-verify.v1" | "workspace-intelligence-history.v1" | "workspace-context.v1" | "rapidkit-agent-reports-index.v1" | "rapidkit-agent-customization-pack.v1" | "workspace-skills-index.v1" | "workspace-explain.v1" | "workspace-intelligence-run.v1" | "workspace-intelligence-evaluation.v1" | "workspai.verified-goal-status.v1" | "workspai.workspace-repair-transaction.v1" | null; contractPath: "contracts/workspace-intelligence/workspace-model.v1.json" | "contracts/workspace-intelligence/workspace-knowledge-graph.v1.json" | "contracts/workspace-intelligence/workspace-model-snapshot.v1.json" | "contracts/workspace-intelligence/workspace-model-diff.v1.json" | "contracts/workspace-intelligence/workspace-impact.v1.json" | "contracts/analyze-last-run.v1.json" | "contracts/doctor-workspace-evidence.v1.json" | "contracts/workspace-intelligence/workspace-contract-verify.v1.json" | "contracts/release-readiness.v1.json" | "contracts/workspace-intelligence/workspace-verify.v1.json" | "contracts/workspace-intelligence/workspace-intelligence-history.v1.json" | "contracts/workspace-intelligence/workspace-context.v1.json" | "contracts/workspace-intelligence/agent-reports-index.v1.json" | "contracts/workspace-intelligence/agent-customization-pack-report.v1.json" | "contracts/workspace-intelligence/workspace-skills-index.v1.json" | "contracts/workspace-intelligence/workspace-explain.v1.json" | "contracts/workspace-intelligence/workspace-intelligence-run.v1.json" | "contracts/workspace-intelligence/workspace-intelligence-evaluation.v1.json" | "contracts/workspace-intelligence/verified-goal-status.v1.json" | "contracts/workspace-intelligence/workspace-repair-transaction.v1.json" | null; }; } | undefined; schemaVersion: string | number | { readonly model: "workspace-model.v1"; readonly knowledgeGraph: "workspace-knowledge-graph.v1"; readonly snapshot: "workspace-model-snapshot.v1"; readonly diff: "workspace-model-diff.v1"; readonly impact: "workspace-impact.v1"; readonly analyze: "rapidkit-analyze-v1"; readonly doctor: "doctor-workspace-evidence-v1"; readonly contractVerify: "workspace-contract-verify.v1"; readonly readiness: "release-readiness-v1"; readonly verify: "workspace-verify.v1"; readonly history: "workspace-intelligence-history.v1"; readonly agentContext: "workspace-context.v1"; readonly agentIndex: "rapidkit-agent-reports-index.v1"; readonly agentCustomizationPack: "rapidkit-agent-customization-pack.v1"; readonly skillsIndex: "workspace-skills-index.v1"; readonly agents: null; readonly explain: "workspace-explain.v1"; readonly intelligenceRun: "workspace-intelligence-run.v1"; readonly evaluationLive: "workspace-intelligence-evaluation.v1"; readonly evaluationLastRun: "workspace-intelligence-evaluation.v1"; readonly verifiedGoalStatus: "workspai.verified-goal-status.v1"; readonly repairTransaction: "workspai.workspace-repair-transaction.v1"; }; contractPath: string | null; publication: "capability-contract" | "json-schema" | "embedded-type"; }; }; commands: { npmOwned: string[]; coreBacked: string[]; projectScoped: string[]; }; workspace: { command: string; subcommands: ("list" | "explain" | "verify" | "export" | "archive" | "snapshot" | "import" | "goal" | "init" | "sync" | "agent-sync" | "model" | "intelligence" | "run" | "contract" | "share" | "remediation-plan" | "graph" | "diff" | "impact" | "why" | "trace" | "registry" | "foundation" | "watch" | "context" | "repair" | "feedback" | "eval" | "mcp" | "policy" | "hydrate" | "connect")[]; intelligenceSubcommands: ("explain" | "verify" | "snapshot" | "goal" | "agent-sync" | "model" | "intelligence" | "contract" | "remediation-plan" | "graph" | "diff" | "impact" | "why" | "trace" | "watch" | "context" | "repair" | "feedback" | "eval" | "mcp")[]; }; commandMap: any; runtimeInventory: RuntimeCommandInventoryPayload; }; declare function hasWorkspaceRootMarkers(targetDir: string): boolean; declare function findContextFileUp(start: string): string | null; declare function findWorkspaceMarkerUp(start: string): string | null; declare function findWorkspaceUp(start: string): string | null; interface DoctorWorkspaceShadowDiagnostic { detected: boolean; candidatePath?: string; reason?: string; } declare function detectWindowsDoctorWorkspaceShadow(params: { scope?: string; workspaceFlag?: boolean | string; }, cwd?: string, platform?: NodeJS.Platform): Promise; declare function findLegacyWorkspaceUp(start: string): string | null; type WorkspacePolicyRuleKey = 'enforce_workspace_marker' | 'enforce_toolchain_lock' | 'disallow_untrusted_tool_sources' | 'enforce_compatibility_matrix' | 'require_mirror_lock_for_offline'; declare function replaceOrInsertTopLevelPolicyLine(content: string, key: string, value: string): string; declare function replaceOrInsertRulePolicyLine(content: string, key: WorkspacePolicyRuleKey, value: boolean): string; declare function defaultWorkspacePolicyYaml(): string; declare function parsePolicyBooleanLiteral(value: string): boolean | null; declare function runCommandInCwd(command: string, commandArgs: string[], cwd: string, options?: { timeoutMs?: number; }): Promise; declare function parseNodeEvalScript(script: string): string | null; declare function handleImportCommand(source: string, options: { workspace?: string; name?: string; git?: boolean; json?: boolean; enableModules?: boolean; projectGrounding?: ProjectGroundingMode; }, dependencies?: { syncWorkspaceProjects?: (workspacePath: string) => Promise; rollbackImportedProjectImport?: (workspacePath: string, projectPath: string) => Promise; }): Promise; declare function handleAdoptCommand(source: string | undefined, options: { workspace?: string; name?: string; dryRun?: boolean; json?: boolean; enableModules?: boolean; projectGrounding?: ProjectGroundingMode; }, dependencies?: { syncWorkspaceProjects?: (workspacePath: string) => Promise; registerWorkspace?: (workspacePath: string, workspaceName: string) => Promise; registerProjectInWorkspace?: (workspacePath: string, projectName: string, projectPath: string) => Promise; rollbackAdoptedProjectImport?: (workspacePath: string, projectPath: string, snapshot: AdoptProjectRollbackSnapshot) => Promise; }): Promise; declare function installWorkspaceDependencies(workspacePath: string): Promise; declare function handleGoInit(projectPath: string): Promise; declare function handleNodeCommand(action: 'init' | 'dev' | 'test' | 'build' | 'start' | 'lint' | 'format', projectPath: string): Promise; declare function handleJavaCommand(action: 'init' | 'dev' | 'test' | 'build' | 'start' | 'lint' | 'format', projectPath: string): Promise; declare function handleBootstrapCommand(args: string[], initRunner?: (nextArgs: string[]) => Promise): Promise; declare function handleSetupCommand(args: string[], commandRunner?: typeof runCommandInCwd): Promise; declare function parseCacheConfig(content: string): { strategy: string; prune_on_bootstrap: boolean; self_heal: boolean; verify_integrity: boolean; }; declare function handleCacheCommand(args: string[]): Promise; declare function handleMirrorCommand(args: string[]): Promise; declare function handleInitCommand(args: string[]): Promise; declare function checkStrictPolicyPreflightForDelegation(cwd: string): Promise; declare const program: Command; declare function shouldForwardToCore(args: string[]): Promise; declare function printHelp(): void; declare function bootstrapCli(): Promise; export { type BridgeFailureCode, COMMAND_CAPABILITIES_SCHEMA_VERSION, type DoctorWorkspaceShadowDiagnostic, NPM_ONLY_SCOPED_COMMANDS, NPM_ONLY_TOP_LEVEL_COMMANDS, PROJECT_COMMANDS_CORE_FALLBACK, type PythonProjectOrchestrationDependencies, VERSION_CONTRACT_SCHEMA_VERSION, WRAPPER_ORCHESTRATED_PROJECT_COMMANDS, bootstrapCli, bridgeFailureCode, buildDelegationEnvForInit, checkStrictPolicyPreflightForDelegation, commandAvailable, createProjectVenv, createWorkspaceVenv, defaultWorkspacePolicyYaml, detectWindowsDoctorWorkspaceShadow, ensurePythonProjectUsesLocalVenv, ensureWorkspaceVenvHasPip, findContextFileUp, findLegacyWorkspaceUp, findWorkspaceMarkerUp, findWorkspaceUp, getGlobalCommandCapabilities, getPublishedContractCatalog, getPublishedContractVersions, getVersionContract, handleAdoptCommand, handleBootstrapCommand, handleCacheCommand, handleCreateOrFallback, handleGoInit, handleImportCommand, handleInitCommand, handleJavaCommand, handleMirrorCommand, handleNodeCommand, handleSetupCommand, hasWorkspaceRootMarkers, hostPythonCandidates, inferRuntimeByFiles, installPythonDependenciesWithPipFallback, installWorkspaceDependencies, isNpmExecInvocation, isNpmOnlyInvocation, isNpmOnlyManualHandlerCommand, isNpmOnlyParseDirectCommand, isNpmOnlyParseDirectInvocation, isNpmOnlyScopedCommand, isNpmOnlyTopLevelCommand, normalizeFallbackTemplate, parseCacheConfig, parseMaxWorkersOption, parseNodeEvalScript, parsePolicyBooleanLiteral, printHelp, program, readFlagValue, replaceOrInsertRulePolicyLine, replaceOrInsertTopLevelPolicyLine, resolveInvokedCliName, runCommandInCwd, runCreateFallback, shouldForwardToCore, validateNpmKitFlags };