File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import type { Command } from "commander" ;
22import { execa } from "execa" ;
33import type { CLIContext , RunCommandResult } from "@/cli/types.js" ;
4- import { Base44Command , runTask , theme } from "@/cli/utils/index.js" ;
4+ import { Base44Command , theme } from "@/cli/utils/index.js" ;
55import { findProjectRoot } from "@/core/project/config.js" ;
66
77const SKILLS_REPO = "base44/skills" ;
@@ -12,7 +12,9 @@ export async function installAllSkills(cwd: string): Promise<void> {
1212 } ) ;
1313}
1414
15- async function updateAction ( _ctx : CLIContext ) : Promise < RunCommandResult > {
15+ async function updateAction ( {
16+ runTask,
17+ } : CLIContext ) : Promise < RunCommandResult > {
1618 const projectRoot = await findProjectRoot ( ) ;
1719 if ( ! projectRoot ) {
1820 return {
Original file line number Diff line number Diff line change @@ -7,16 +7,16 @@ import {
77 showPlainError ,
88 showThemedError ,
99} from "@/cli/utils/command/render.js" ;
10- import { getAppConfig } from "@/core/project/app-config.js" ;
11- import type { StaleSkillInfo } from "./skill-version-check.js" ;
10+ import type { StaleSkillInfo } from "@/cli/utils/command/skill-version-check.js" ;
1211import {
1312 formatPlainSkillWarning ,
1413 startSkillVersionCheck ,
15- } from ". /skill-version-check.js" ;
14+ } from "@/cli/utils/command /skill-version-check.js" ;
1615import {
1716 formatPlainUpgradeMessage ,
1817 startUpgradeCheck ,
19- } from "./upgradeNotification.js" ;
18+ } from "@/cli/utils/command/upgradeNotification.js" ;
19+ import { getAppConfig } from "@/core/project/app-config.js" ;
2020
2121interface Base44CommandOptions {
2222 /**
Original file line number Diff line number Diff line change 11import { intro , log , outro } from "@clack/prompts" ;
22import type { CLIContext , RunCommandResult } from "@/cli/types.js" ;
33import { printBanner } from "@/cli/utils/banner.js" ;
4+ import type { StaleSkillInfo } from "@/cli/utils/command/skill-version-check.js" ;
5+ import { printSkillVersionWarning } from "@/cli/utils/command/skill-version-check.js" ;
6+ import { printUpgradeNotification } from "@/cli/utils/command/upgradeNotification.js" ;
7+ import type { UpgradeInfo } from "@/cli/utils/command/version-check.js" ;
48import { theme } from "@/cli/utils/theme.js" ;
59import { isCLIError } from "@/core/errors.js" ;
6- import type { StaleSkillInfo } from "./skill-version-check.js" ;
7- import { printSkillVersionWarning } from "./skill-version-check.js" ;
8- import { printUpgradeNotification } from "./upgradeNotification.js" ;
9- import type { UpgradeInfo } from "./version-check.js" ;
1010
1111/**
1212 * Show the command start UI: intro banner or simple tag.
Original file line number Diff line number Diff line change 11import { note } from "@clack/prompts" ;
22import type { Distribution } from "@/cli/types.js" ;
3+ import type { UpgradeInfo } from "@/cli/utils/command/version-check.js" ;
4+ import { checkForUpgrade } from "@/cli/utils/command/version-check.js" ;
35import { theme } from "@/cli/utils/theme.js" ;
4- import type { UpgradeInfo } from "./version-check.js" ;
5- import { checkForUpgrade } from "./version-check.js" ;
66
77type InstallMethod = "npm" | "brew" | "binary" ;
88
You can’t perform that action at this time.
0 commit comments