@seanhogg/builderforce-agents 2026.10.8 → 2026.10.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{audio-preflight-hAkEddaf.js → audio-preflight-CBZJKBS8.js} +1 -1
- package/dist/{audio-preflight-Dm9zyfJq.js → audio-preflight-CvvHdoWy.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/{builderforce-wxtgU9xu.js → builderforce-BmrsVdFw.js} +1 -1
- package/dist/{builderforce-BWCp-M9e.js → builderforce-Bwyw0GJ6.js} +1 -1
- package/dist/bundled/boot-md/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +1 -1
- package/dist/chrome-Brg9KsB9.js +4 -0
- package/dist/chrome-CtTMuhww.js +4 -0
- package/dist/{command-registry-CiR8PUQY.js → command-registry-4_K-lfW5.js} +1 -1
- package/dist/{command-registry-D_LkOB4n.js → command-registry-COUcUWby.js} +1 -1
- package/dist/{completion-cli-CBES884A.js → completion-cli-B2qcVd6q.js} +1 -1
- package/dist/{completion-cli-C7munVvb.js → completion-cli-DlvHqL86.js} +1 -1
- package/dist/{completion-cli-CijodCzU.js → completion-cli-DpFvU4Qn.js} +1 -1
- package/dist/{completion-cli-B72GX2so.js → completion-cli-SdcQ-kQj.js} +1 -1
- package/dist/{doctor-completion-FErwMP3Y.js → doctor-completion-BSotFS6p.js} +1 -1
- package/dist/{doctor-completion-Bv2ztEeW.js → doctor-completion-DVxbs-74.js} +1 -1
- package/dist/{embedded-DXDHduG1.js → embedded-BcHzh_y8.js} +6 -6
- package/dist/{embedded-cvG_LpfQ.js → embedded-D-citLF2.js} +6 -6
- package/dist/entry.js +1 -1
- package/dist/extensionAPI.js +1 -1
- package/dist/{gateway-cli-DpJjgVYH.js → gateway-cli-D2Bg1Um6.js} +3 -3
- package/dist/{gateway-cli-U8RlUIuT.js → gateway-cli-DFEo8C0z.js} +3 -3
- package/dist/index.js +2 -2
- package/dist/llm-slug-generator.js +1 -1
- package/dist/{onboard-7JGHJRfj.js → onboard-BVmZ4jMw.js} +1 -1
- package/dist/{onboard-O2gyfB4L.js → onboard-DfMVh1bM.js} +1 -1
- package/dist/{onboard-interactive-FWIy0HTu.js → onboard-interactive-B3-KBZbZ.js} +1 -1
- package/dist/{onboard-interactive-DqpGicxB.js → onboard-interactive-DYJttZ2w.js} +1 -1
- package/dist/{onboard-interactive-DboEcFKf.js → onboard-interactive-Dc_7URYb.js} +1 -1
- package/dist/{onboard-interactive-Gl5J4kVC.js → onboard-interactive-zgjmwJz-.js} +1 -1
- package/dist/{onboarding-Ctq_bdkC.js → onboarding-CP9rrz8y.js} +1 -1
- package/dist/{onboarding-hPRXZReM.js → onboarding-D4-HDbmU.js} +1 -1
- package/dist/{onboarding.finalize-B4Tc4IDN.js → onboarding.finalize-BfWXPgX7.js} +1 -1
- package/dist/{onboarding.finalize-Db6smxZL.js → onboarding.finalize-C2kZi7F0.js} +1 -1
- package/dist/{program-DHWSgdol.js → program-2w7Ue902.js} +2 -2
- package/dist/{program-context-7XUznN5J.js → program-context-BCwL3wlM.js} +1 -1
- package/dist/{prompt-select-styled-Depbcbpw.js → prompt-select-styled-Dd5swW2b.js} +1 -1
- package/dist/{prompt-select-styled-Cy70lEMU.js → prompt-select-styled-hB_nLOn1.js} +1 -1
- package/dist/{pw-ai-UGketqfG.js → pw-ai-CsJmJcNk.js} +1 -1
- package/dist/{pw-ai-D8HJAvv-.js → pw-ai-DaxMmaVL.js} +1 -1
- package/dist/{register.maintenance-ohxXhvKX.js → register.maintenance-BELfCO_C.js} +1 -1
- package/dist/{register.maintenance-BmnagkdH.js → register.maintenance-DukWFS_D.js} +1 -1
- package/dist/{register.onboard-FSaweh3A.js → register.onboard-B9DMNfHE.js} +1 -1
- package/dist/{register.onboard-C2Cnd-e9.js → register.onboard-Dt7rzAq-.js} +1 -1
- package/dist/{register.setup-Dk9hBOkZ.js → register.setup-BRRVPrx7.js} +1 -1
- package/dist/{register.setup-CyTZQLXP.js → register.setup-CSF-2ImP.js} +1 -1
- package/dist/{register.subclis-lGgi7ATb.js → register.subclis-4eDV9jKH.js} +1 -1
- package/dist/{register.subclis-DqO3Ciiv.js → register.subclis-Cr9DoYcv.js} +1 -1
- package/dist/{run-main-BipfHjUR.js → run-main-DLcDEJgv.js} +1 -1
- package/dist/{runner-CviGu3Nk.js → runner-COldX-El.js} +3 -3
- package/dist/{runner-B70PGCqP.js → runner-D7af_RBH.js} +3 -3
- package/dist/{tui-C5ChWpBg.js → tui-BwWMByVp.js} +1 -1
- package/dist/{tui-DHjIJOFN.js → tui-DylWbrDx.js} +1 -1
- package/dist/{tui-cli-wPseN93O.js → tui-cli-Bh1V8-w9.js} +1 -1
- package/dist/{tui-cli-BeFWcUWU.js → tui-cli-C_TTgabr.js} +1 -1
- package/dist/{update-cli-CRkZnN_N.js → update-cli-CA3LuuJ7.js} +1 -1
- package/dist/{update-cli-DekV-CP_.js → update-cli-DUrUIrYQ.js} +1 -1
- package/dist/{web-DONGrYXq.js → web-BQPd6gQJ.js} +1 -1
- package/dist/{web-D44jKC1F.js → web-DPGGHIc_.js} +1 -1
- package/package.json +1 -1
- package/dist/chrome-Blk2Jftn.js +0 -4
- package/dist/chrome-DUBgoZpO.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as resolveStateDir}from"./paths-5FcIFMsj.js";import{g as pathExists}from"./utils-DbaBVFaK.js";import{o as routeLogsToStderr}from"./subsystem-B3TqcCrZ.js";import{a as registerCoreCliByName,c as getSubCliEntries,l as registerSubCliByName,r as getCoreCliCommandNames,t as getProgramContext}from"./program-context-
|
|
1
|
+
import{g as resolveStateDir}from"./paths-5FcIFMsj.js";import{g as pathExists}from"./utils-DbaBVFaK.js";import{o as routeLogsToStderr}from"./subsystem-B3TqcCrZ.js";import{a as registerCoreCliByName,c as getSubCliEntries,l as registerSubCliByName,r as getCoreCliCommandNames,t as getProgramContext}from"./program-context-BCwL3wlM.js";import os from"node:os";import path from"node:path";import fs from"node:fs/promises";import{Option}from"commander";const COMPLETION_SHELLS=[`zsh`,`bash`,`powershell`,`fish`];function isCompletionShell(value){return COMPLETION_SHELLS.includes(value)}function resolveShellFromEnv(env=process.env){let shellPath=env.SHELL?.trim()??``,shellName=shellPath?path.basename(shellPath).toLowerCase():``;return shellName===`zsh`?`zsh`:shellName===`bash`?`bash`:shellName===`fish`?`fish`:shellName===`pwsh`||shellName===`powershell`?`powershell`:`zsh`}function sanitizeCompletionBasename(value){let trimmed=value.trim();return trimmed?trimmed.replace(/[^a-zA-Z0-9._-]/g,`-`):`builderforce`}function resolveCompletionCacheDir(env=process.env){let stateDir=resolveStateDir(env,os.homedir);return path.join(stateDir,`completions`)}function resolveCompletionCachePath(shell,binName){let basename=sanitizeCompletionBasename(binName),extension=shell===`powershell`?`ps1`:shell===`fish`?`fish`:shell===`bash`?`bash`:`zsh`;return path.join(resolveCompletionCacheDir(),`${basename}.${extension}`)}async function completionCacheExists(shell,binName=`builderforce`){return pathExists(resolveCompletionCachePath(shell,binName))}function getCompletionScript(shell,program){return shell===`zsh`?generateZshCompletion(program):shell===`bash`?generateBashCompletion(program):shell===`powershell`?generatePowerShellCompletion(program):generateFishCompletion(program)}async function writeCompletionCache(params){let cacheDir=resolveCompletionCacheDir();await fs.mkdir(cacheDir,{recursive:!0});for(let shell of params.shells){let script=getCompletionScript(shell,params.program),targetPath=resolveCompletionCachePath(shell,params.binName);await fs.writeFile(targetPath,script,`utf-8`)}}function formatCompletionSourceLine(shell,binName,cachePath){return`source "${cachePath}"`}function isCompletionProfileHeader(line){return line.trim()===`# BuilderForceAgents Completion`}function isCompletionProfileLine(line,binName,cachePath){return!!(line.includes(`${binName} completion`)||cachePath&&line.includes(cachePath))}function isSlowDynamicCompletionLine(line,binName){return line.includes(`<(${binName} completion`)||line.includes(`${binName} completion`)&&line.includes(`| source`)}function updateCompletionProfile(content,binName,cachePath,sourceLine){let lines=content.split(`
|
|
2
2
|
`),filtered=[],hadExisting=!1;for(let i=0;i<lines.length;i+=1){let line=lines[i]??``;if(isCompletionProfileHeader(line)){hadExisting=!0,i+=1;continue}if(isCompletionProfileLine(line,binName,cachePath)){hadExisting=!0;continue}filtered.push(line)}let trimmed=filtered.join(`
|
|
3
3
|
`).trimEnd(),block=`# BuilderForceAgents Completion\n${sourceLine}`,next=trimmed?`${trimmed}\n\n${block}\n`:`${block}\n`;return{next,changed:next!==content,hadExisting}}function getShellProfilePath(shell){let home=process.env.HOME||os.homedir();return shell===`zsh`?path.join(home,`.zshrc`):shell===`bash`?path.join(home,`.bashrc`):shell===`fish`?path.join(home,`.config`,`fish`,`config.fish`):process.platform===`win32`?path.join(process.env.USERPROFILE||home,`Documents`,`PowerShell`,`Microsoft.PowerShell_profile.ps1`):path.join(home,`.config`,`powershell`,`Microsoft.PowerShell_profile.ps1`)}async function isCompletionInstalled(shell,binName=`builderforce`){let profilePath=getShellProfilePath(shell);if(!await pathExists(profilePath))return!1;let cachePathCandidate=resolveCompletionCachePath(shell,binName),cachedPath=await pathExists(cachePathCandidate)?cachePathCandidate:null;return(await fs.readFile(profilePath,`utf-8`)).split(`
|
|
4
4
|
`).some(line=>isCompletionProfileHeader(line)||isCompletionProfileLine(line,binName,cachedPath))}async function usesSlowDynamicCompletion(shell,binName=`builderforce`){let profilePath=getShellProfilePath(shell);if(!await pathExists(profilePath))return!1;let cachePath=resolveCompletionCachePath(shell,binName),lines=(await fs.readFile(profilePath,`utf-8`)).split(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./paths-5FcIFMsj.js";import"./utils-DbaBVFaK.js";import"./subsystem-B3TqcCrZ.js";import"./registry-TdK-aV05.js";import"./boolean-Cnh1KNl1.js";import"./env-BIdU5BAp.js";import"./program-context-
|
|
1
|
+
import"./paths-5FcIFMsj.js";import"./utils-DbaBVFaK.js";import"./subsystem-B3TqcCrZ.js";import"./registry-TdK-aV05.js";import"./boolean-Cnh1KNl1.js";import"./env-BIdU5BAp.js";import"./program-context-BCwL3wlM.js";import{i as registerCompletionCli}from"./completion-cli-B2qcVd6q.js";export{registerCompletionCli};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as resolveStateDir}from"./paths-BHg-VHB4.js";import{h as pathExists}from"./utils-BP60e80M.js";import{i as routeLogsToStderr}from"./subsystem-C4b1Von0.js";import{n as getSubCliEntries,r as registerSubCliByName}from"./register.subclis-
|
|
1
|
+
import{g as resolveStateDir}from"./paths-BHg-VHB4.js";import{h as pathExists}from"./utils-BP60e80M.js";import{i as routeLogsToStderr}from"./subsystem-C4b1Von0.js";import{n as getSubCliEntries,r as registerSubCliByName}from"./register.subclis-Cr9DoYcv.js";import{r as registerCoreCliByName,t as getCoreCliCommandNames}from"./command-registry-COUcUWby.js";import{t as getProgramContext}from"./program-context-Wpc-6CdI.js";import os from"node:os";import path from"node:path";import fs from"node:fs/promises";import{Option}from"commander";const COMPLETION_SHELLS=[`zsh`,`bash`,`powershell`,`fish`];function isCompletionShell(value){return COMPLETION_SHELLS.includes(value)}function resolveShellFromEnv(env=process.env){let shellPath=env.SHELL?.trim()??``,shellName=shellPath?path.basename(shellPath).toLowerCase():``;return shellName===`zsh`?`zsh`:shellName===`bash`?`bash`:shellName===`fish`?`fish`:shellName===`pwsh`||shellName===`powershell`?`powershell`:`zsh`}function sanitizeCompletionBasename(value){let trimmed=value.trim();return trimmed?trimmed.replace(/[^a-zA-Z0-9._-]/g,`-`):`builderforce`}function resolveCompletionCacheDir(env=process.env){let stateDir=resolveStateDir(env,os.homedir);return path.join(stateDir,`completions`)}function resolveCompletionCachePath(shell,binName){let basename=sanitizeCompletionBasename(binName),extension=shell===`powershell`?`ps1`:shell===`fish`?`fish`:shell===`bash`?`bash`:`zsh`;return path.join(resolveCompletionCacheDir(),`${basename}.${extension}`)}async function completionCacheExists(shell,binName=`builderforce`){return pathExists(resolveCompletionCachePath(shell,binName))}function getCompletionScript(shell,program){return shell===`zsh`?generateZshCompletion(program):shell===`bash`?generateBashCompletion(program):shell===`powershell`?generatePowerShellCompletion(program):generateFishCompletion(program)}async function writeCompletionCache(params){let cacheDir=resolveCompletionCacheDir();await fs.mkdir(cacheDir,{recursive:!0});for(let shell of params.shells){let script=getCompletionScript(shell,params.program),targetPath=resolveCompletionCachePath(shell,params.binName);await fs.writeFile(targetPath,script,`utf-8`)}}function formatCompletionSourceLine(shell,binName,cachePath){return`source "${cachePath}"`}function isCompletionProfileHeader(line){return line.trim()===`# BuilderForceAgents Completion`}function isCompletionProfileLine(line,binName,cachePath){return!!(line.includes(`${binName} completion`)||cachePath&&line.includes(cachePath))}function isSlowDynamicCompletionLine(line,binName){return line.includes(`<(${binName} completion`)||line.includes(`${binName} completion`)&&line.includes(`| source`)}function updateCompletionProfile(content,binName,cachePath,sourceLine){let lines=content.split(`
|
|
2
2
|
`),filtered=[],hadExisting=!1;for(let i=0;i<lines.length;i+=1){let line=lines[i]??``;if(isCompletionProfileHeader(line)){hadExisting=!0,i+=1;continue}if(isCompletionProfileLine(line,binName,cachePath)){hadExisting=!0;continue}filtered.push(line)}let trimmed=filtered.join(`
|
|
3
3
|
`).trimEnd(),block=`# BuilderForceAgents Completion\n${sourceLine}`,next=trimmed?`${trimmed}\n\n${block}\n`:`${block}\n`;return{next,changed:next!==content,hadExisting}}function getShellProfilePath(shell){let home=process.env.HOME||os.homedir();return shell===`zsh`?path.join(home,`.zshrc`):shell===`bash`?path.join(home,`.bashrc`):shell===`fish`?path.join(home,`.config`,`fish`,`config.fish`):process.platform===`win32`?path.join(process.env.USERPROFILE||home,`Documents`,`PowerShell`,`Microsoft.PowerShell_profile.ps1`):path.join(home,`.config`,`powershell`,`Microsoft.PowerShell_profile.ps1`)}async function isCompletionInstalled(shell,binName=`builderforce`){let profilePath=getShellProfilePath(shell);if(!await pathExists(profilePath))return!1;let cachePathCandidate=resolveCompletionCachePath(shell,binName),cachedPath=await pathExists(cachePathCandidate)?cachePathCandidate:null;return(await fs.readFile(profilePath,`utf-8`)).split(`
|
|
4
4
|
`).some(line=>isCompletionProfileHeader(line)||isCompletionProfileLine(line,binName,cachedPath))}async function usesSlowDynamicCompletion(shell,binName=`builderforce`){let profilePath=getShellProfilePath(shell);if(!await pathExists(profilePath))return!1;let cachePath=resolveCompletionCachePath(shell,binName),lines=(await fs.readFile(profilePath,`utf-8`)).split(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./paths-BHg-VHB4.js";import"./registry-Cv7CoWAs.js";import"./utils-BP60e80M.js";import"./subsystem-C4b1Von0.js";import"./boolean-ssGoaBPk.js";import"./env-BoE8QSib.js";import"./register.subclis-
|
|
1
|
+
import"./paths-BHg-VHB4.js";import"./registry-Cv7CoWAs.js";import"./utils-BP60e80M.js";import"./subsystem-C4b1Von0.js";import"./boolean-ssGoaBPk.js";import"./env-BoE8QSib.js";import"./register.subclis-Cr9DoYcv.js";import"./command-registry-COUcUWby.js";import"./program-context-Wpc-6CdI.js";import{i as registerCompletionCli}from"./completion-cli-DpFvU4Qn.js";export{registerCompletionCli};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as resolveCliName}from"./command-format-DTMaGKs7.js";import{t as resolveBuilderForceAgentsPackageRoot}from"./builderforce-root-DY1qbWNX.js";import{t as note}from"./note-DgDXuE0F.js";import{a as resolveCompletionCachePath,n as installCompletion,o as resolveShellFromEnv,r as isCompletionInstalled,s as usesSlowDynamicCompletion,t as completionCacheExists}from"./completion-cli-
|
|
1
|
+
import{r as resolveCliName}from"./command-format-DTMaGKs7.js";import{t as resolveBuilderForceAgentsPackageRoot}from"./builderforce-root-DY1qbWNX.js";import{t as note}from"./note-DgDXuE0F.js";import{a as resolveCompletionCachePath,n as installCompletion,o as resolveShellFromEnv,r as isCompletionInstalled,s as usesSlowDynamicCompletion,t as completionCacheExists}from"./completion-cli-DpFvU4Qn.js";import{spawnSync}from"node:child_process";import path from"node:path";async function generateCompletionCache(){let root=await resolveBuilderForceAgentsPackageRoot({moduleUrl:import.meta.url,argv1:process.argv[1],cwd:process.cwd()});if(!root)return!1;let binPath=path.join(root,`builderforce.mjs`);return spawnSync(process.execPath,[binPath,`completion`,`--write-state`],{cwd:root,env:process.env,encoding:`utf-8`}).status===0}async function checkShellCompletionStatus(binName=`builderforce`){let shell=resolveShellFromEnv();return{shell,profileInstalled:await isCompletionInstalled(shell,binName),cacheExists:await completionCacheExists(shell,binName),cachePath:resolveCompletionCachePath(shell,binName),usesSlowPattern:await usesSlowDynamicCompletion(shell,binName)}}async function doctorShellCompletion(runtime,prompter,options={}){let cliName=resolveCliName(),status=await checkShellCompletionStatus(cliName);if(status.usesSlowPattern){if(note(`Your ${status.shell} profile uses slow dynamic completion (source <(...)).\nUpgrading to cached completion for faster shell startup...`,`Shell completion`),!status.cacheExists&&!await generateCompletionCache()){note(`Failed to generate completion cache. Run \`${cliName} completion --write-state\` manually.`,`Shell completion`);return}await installCompletion(status.shell,!0,cliName),note(`Shell completion upgraded. Restart your shell or run: source ~/.${status.shell===`zsh`?`zshrc`:status.shell===`bash`?`bashrc`:`config/fish/config.fish`}`,`Shell completion`);return}if(status.profileInstalled&&!status.cacheExists){note(`Shell completion is configured in your ${status.shell} profile but the cache is missing.\nRegenerating cache...`,`Shell completion`),await generateCompletionCache()?note(`Completion cache regenerated at ${status.cachePath}`,`Shell completion`):note(`Failed to regenerate completion cache. Run \`${cliName} completion --write-state\` manually.`,`Shell completion`);return}if(!status.profileInstalled){if(options.nonInteractive)return;if(await prompter.confirm({message:`Enable ${status.shell} shell completion for ${cliName}?`,initialValue:!0})){if(!await generateCompletionCache()){note(`Failed to generate completion cache. Run \`${cliName} completion --write-state\` manually.`,`Shell completion`);return}await installCompletion(status.shell,!0,cliName),note(`Shell completion installed. Restart your shell or run: source ~/.${status.shell===`zsh`?`zshrc`:status.shell===`bash`?`bashrc`:`config/fish/config.fish`}`,`Shell completion`)}}}async function ensureCompletionCacheExists(binName=`builderforce`){return await completionCacheExists(resolveShellFromEnv(),binName)?!0:generateCompletionCache()}export{doctorShellCompletion as n,ensureCompletionCacheExists as r,checkShellCompletionStatus as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as resolveBuilderForceAgentsPackageRoot}from"./builderforce-root-D64_sXEi.js";import{r as resolveCliName}from"./command-format-D806O2pt.js";import{t as note}from"./note-B6NtFdXt.js";import{a as resolveCompletionCachePath,n as installCompletion,o as resolveShellFromEnv,r as isCompletionInstalled,s as usesSlowDynamicCompletion,t as completionCacheExists}from"./completion-cli-
|
|
1
|
+
import{t as resolveBuilderForceAgentsPackageRoot}from"./builderforce-root-D64_sXEi.js";import{r as resolveCliName}from"./command-format-D806O2pt.js";import{t as note}from"./note-B6NtFdXt.js";import{a as resolveCompletionCachePath,n as installCompletion,o as resolveShellFromEnv,r as isCompletionInstalled,s as usesSlowDynamicCompletion,t as completionCacheExists}from"./completion-cli-B2qcVd6q.js";import path from"node:path";import{spawnSync}from"node:child_process";async function generateCompletionCache(){let root=await resolveBuilderForceAgentsPackageRoot({moduleUrl:import.meta.url,argv1:process.argv[1],cwd:process.cwd()});if(!root)return!1;let binPath=path.join(root,`builderforce.mjs`);return spawnSync(process.execPath,[binPath,`completion`,`--write-state`],{cwd:root,env:process.env,encoding:`utf-8`}).status===0}async function checkShellCompletionStatus(binName=`builderforce`){let shell=resolveShellFromEnv();return{shell,profileInstalled:await isCompletionInstalled(shell,binName),cacheExists:await completionCacheExists(shell,binName),cachePath:resolveCompletionCachePath(shell,binName),usesSlowPattern:await usesSlowDynamicCompletion(shell,binName)}}async function doctorShellCompletion(runtime,prompter,options={}){let cliName=resolveCliName(),status=await checkShellCompletionStatus(cliName);if(status.usesSlowPattern){if(note(`Your ${status.shell} profile uses slow dynamic completion (source <(...)).\nUpgrading to cached completion for faster shell startup...`,`Shell completion`),!status.cacheExists&&!await generateCompletionCache()){note(`Failed to generate completion cache. Run \`${cliName} completion --write-state\` manually.`,`Shell completion`);return}await installCompletion(status.shell,!0,cliName),note(`Shell completion upgraded. Restart your shell or run: source ~/.${status.shell===`zsh`?`zshrc`:status.shell===`bash`?`bashrc`:`config/fish/config.fish`}`,`Shell completion`);return}if(status.profileInstalled&&!status.cacheExists){note(`Shell completion is configured in your ${status.shell} profile but the cache is missing.\nRegenerating cache...`,`Shell completion`),await generateCompletionCache()?note(`Completion cache regenerated at ${status.cachePath}`,`Shell completion`):note(`Failed to regenerate completion cache. Run \`${cliName} completion --write-state\` manually.`,`Shell completion`);return}if(!status.profileInstalled){if(options.nonInteractive)return;if(await prompter.confirm({message:`Enable ${status.shell} shell completion for ${cliName}?`,initialValue:!0})){if(!await generateCompletionCache()){note(`Failed to generate completion cache. Run \`${cliName} completion --write-state\` manually.`,`Shell completion`);return}await installCompletion(status.shell,!0,cliName),note(`Shell completion installed. Restart your shell or run: source ~/.${status.shell===`zsh`?`zshrc`:status.shell===`bash`?`bashrc`:`config/fish/config.fish`}`,`Shell completion`)}}}async function ensureCompletionCacheExists(binName=`builderforce`){return await completionCacheExists(resolveShellFromEnv(),binName)?!0:generateCompletionCache()}export{doctorShellCompletion as n,ensureCompletionCacheExists as r,checkShellCompletionStatus as t};
|