1import { epScopes, getEpScopeOptA, printEpScopeHint } from '../dockerF/getEpCfgF.mts'2import { getDeployEpA, epToPathA, getEpsPaths } from '../codeStatsF/deployPathsF.mts'3import { getHowImports } from '../jsImportsF/getHowImportsF.mts'4import { scopeCli } from '../cliF/cliSchemaSetsF.mts'5import { refactorPtcheck, formatPtcheckResult } from '../../serverF/opencodeMcpF/refactorPtcheckAI.mts'6import { isPtCodeFileExt } from '../../sharedF/isPtCodeFileExtF.mts'7import type { PtAction } from '../ctxF/availActionsCtxF.mts'10 await getHowImports()11 printEpScopeHint({defaultEpScope: epScopes.deployjs})12}13howimports.cliSchema = scopeCli14howimports.cliAcceptsPositional = true15howimports.cliDescript = {16 cliDefaultOpt: epScopes.deployjs,17 cliOptA: getEpScopeOptA,18 cliSupportsEpScopes: true,19 cliExplain: 'explains how entrypoints import <path>'20}22export { npmweight } from './npmweightActionAI.mts'25 const {pathsA} = await getEpsPaths({inclDeploy: true, inclDocker: true})26 const checkablePathsA = pathsA.filter(isPtCodeFileExt)27 const result = await refactorPtcheck(checkablePathsA)28 console.log(formatPtcheckResult(result))29 if (!result.ok) process.exitCode = 130}31ptcheck.cliDescript = {32 cliExplain: 'run syntax/type/boundary checks on files in this ep\'s import tree',33}