From 894f0e05175440c6efab3ad79809c6b165d80156 Mon Sep 17 00:00:00 2001 From: kevinwang5658 Date: Tue, 21 Jul 2026 22:46:05 -0400 Subject: [PATCH] feat: remove logs and improve testing (auto apply -y). Bump version --- package.json | 2 +- src/orchestrators/test.ts | 2 +- src/utils/shell.ts | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 52c43ae..8eb2086 100644 --- a/package.json +++ b/package.json @@ -146,7 +146,7 @@ "deploy": "npm run pkg && npm run notarize && npm run upload", "prepublishOnly": "npm run build" }, - "version": "1.2.1", + "version": "1.2.2", "bugs": "https://github.com/codifycli/codify/issues", "keywords": [ "oclif", diff --git a/src/orchestrators/test.ts b/src/orchestrators/test.ts index b28270a..b5b9917 100644 --- a/src/orchestrators/test.ts +++ b/src/orchestrators/test.ts @@ -78,7 +78,7 @@ export const TestOrchestrator = { await spawn(`tart exec ${vmName} ln -s /Volumes/My\\ Shared\\ Files/codify-config/${path.basename(initializationResult.project.codifyFiles[0])} /Users/admin/codify.jsonc`, { interactive: true }); // Launch terminal and run codify apply - await (args.vmOs === OS.Darwin ? spawn(`tart exec ${vmName} osascript -e "tell application \\"Terminal\\" to do script \\"cd ~ && codify apply\\""`, { interactive: true }) : spawn(`tart exec ${vmName} gnome-terminal -- bash -c "cd ~/ && codify apply"`, { interactive: true })); + await (args.vmOs === OS.Darwin ? spawn(`tart exec ${vmName} osascript -e "tell application \\"Terminal\\" to do script \\"cd ~ && codify apply -y\\""`, { interactive: true }) : spawn(`tart exec ${vmName} gnome-terminal -- bash -c "cd ~/ && codify apply"`, { interactive: true })); this.watchAndSyncFileChanges(initializationResult.project.codifyFiles[0], ip); diff --git a/src/utils/shell.ts b/src/utils/shell.ts index eca2f13..ea9a828 100644 --- a/src/utils/shell.ts +++ b/src/utils/shell.ts @@ -138,8 +138,6 @@ export const ShellUtils = { const shell = ShellUtils.getDefaultShell(); const output: string[] = []; - console.log('Shell', shell); - await new Promise((resolve, reject) => { const mPty = pty.spawn(shell, ['-i', '-c', `echo '${SENTINEL}'`], { cols: 80, @@ -158,7 +156,6 @@ export const ShellUtils = { mPty.onExit(() => { clearTimeout(timer); const captured = stripAnsi(output.join('').trim()); - console.log('Captured', captured); const lines = captured .split('\n')