Skip to content

Commit cd2f06e

Browse files
authored
Release/v4.204.1 (#19)
* cancel button UI fix + CLI auth init * fix code paths return a value * update changelog * migrate command accept/reject buttons * out of credits card
1 parent b5138c3 commit cd2f06e

File tree

16 files changed

+743
-211
lines changed

16 files changed

+743
-211
lines changed

CHANGELOG.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,55 @@
11
# Changelog
22

3+
## [v4.204.1] - 2025-12-20
4+
5+
### Added
6+
7+
- CLI authentication wizard with browser-based OAuth flow
8+
- Browser authentication utilities for secure token management
9+
- Welcome message utilities for CLI user onboarding
10+
11+
### Changed
12+
13+
- Refactored AcceptRejectButtons component for improved multi-edit handling
14+
- Enhanced ChatTextArea with better cancel button functionality
15+
- Updated ChatView component for improved message queue management
16+
- Improved Logo component with better styling and responsiveness
17+
- Enhanced AuthWizard with comprehensive authentication flow
18+
- Updated CLI package configuration and validation
19+
20+
### Fixed
21+
22+
- Fixed code paths return value issue in AuthWizard
23+
- Improved cancel button UI and functionality
24+
- Enhanced CLI authentication initialization process
25+
26+
---
27+
28+
## [v4.204.0] - 2025-12-20
29+
30+
### Added
31+
32+
- Support for axon-code-2-preview model in OpenRouter provider
33+
- Enhanced file edit review controller with better diff handling
34+
- Improved UI refactors across multiple components
35+
36+
### Changed
37+
38+
- Refactored kilocode-models configuration for better model management
39+
- Updated useOpenRouterModelProviders hook for enhanced provider integration
40+
- Enhanced FileEditReviewController for improved file edit reviews
41+
- Improved QueuedMessages component for better message handling
42+
- Updated CSS styling for consistent UI appearance
43+
- Enhanced slash commands utilities for better command processing
44+
45+
### Fixed
46+
47+
- Cleaned up AI code reviews card for better user experience
48+
- Fixed various UI inconsistencies across components
49+
- Improved error handling in webview message handler
50+
51+
---
52+
353
## [v4.203.0] - 2025-12-19
454

555
### Added

cli/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "@kilocode/cli",
3-
"version": "0.0.15",
2+
"name": "@matterai/axoncode",
3+
"version": "1.0.0",
44
"description": "Terminal User Interface for Axon Code",
55
"type": "module",
66
"main": "dist/index.js",
77
"bin": {
8-
"kilocode": "dist/index.js",
9-
"kilo": "dist/index.js"
8+
"axoncode": "dist/index.js",
9+
"axon": "dist/index.js"
1010
},
1111
"scripts": {
1212
"build": "node esbuild.config.mjs",
@@ -20,10 +20,10 @@
2020
"test:watch": "vitest",
2121
"check-types": "tsc --noEmit",
2222
"format": "prettier --write src",
23-
"logs": "clear && tail -f ~/.kilocode/cli/logs/cli.txt",
24-
"logs:clear": "rimraf ~/.kilocode/cli/logs/* && touch ~/.kilocode/cli/logs/cli.txt",
25-
"clean:kilocode": "npx del-cli ./dist/kilocode --force && npx mkdirp ./dist/kilocode",
26-
"copy:kilocode": "npx cpy '../bin-unpacked/extension/**' './dist/kilocode' --parents",
23+
"logs": "clear && tail -f ~/.axoncode/cli/logs/cli.txt",
24+
"logs:clear": "rimraf ~/.axoncode/cli/logs/* && touch ~/.axoncode/cli/logs/cli.txt",
25+
"clean:axoncode": "npx del-cli ./dist/axoncode --force && npx mkdirp ./dist/axoncode",
26+
"copy:axoncode": "npx cpy '../bin-unpacked/extension/**' './dist/axoncode' --parents",
2727
"lint": "eslint .",
2828
"changeset:version": "jq --arg version \"$(jq -r '.version' package.json)\" '.version = $version' package.dist.json > tmp.json && mv tmp.json package.dist.json && prettier --write package.dist.json"
2929
},
@@ -171,7 +171,7 @@
171171
"terminal",
172172
"ai",
173173
"assistant",
174-
"kilo-code",
174+
"axon-code",
175175
"ink",
176176
"react"
177177
]

cli/src/config/validation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ function handleSpecialValidations(provider: ProviderConfig, errors: string[]): v
8686
}
8787

8888
// These fields are always required for vertex
89-
validateRequiredField(provider, "vertexProjectId", errors)
90-
validateRequiredField(provider, "vertexRegion", errors)
91-
validateRequiredField(provider, "apiModelId", errors)
89+
// validateRequiredField(provider, "vertexProjectId", errors)
90+
// validateRequiredField(provider, "vertexRegion", errors)
91+
// validateRequiredField(provider, "apiModelId", errors)
9292
break
9393

9494
case "vscode-lm":

cli/src/index.ts

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import { DEFAULT_MODES } from "./constants/modes/defaults.js"
1111
import { getTelemetryService } from "./services/telemetry/index.js"
1212
import { Package } from "./constants/package.js"
1313
import openConfigFile from "./config/openConfig.js"
14-
import authWizard from "./utils/authWizard.js"
15-
import { configExists } from "./config/persistence.js"
14+
import authWizard from "./utils/AuthWizard.js"
15+
import { configExists, loadConfig } from "./config/persistence.js"
1616
import { getParallelModeParams } from "./parallel/parallel.js"
1717

1818
const program = new Command()
@@ -22,7 +22,7 @@ let cli: CLI | null = null
2222
const validModes = DEFAULT_MODES.map((mode) => mode.slug)
2323

2424
program
25-
.name("kilocode")
25+
.name("axoncode")
2626
.description("Axon Code Terminal User Interface - AI-powered coding assistant")
2727
.version(Package.version)
2828
.option("-m, --mode <mode>", `Set the mode of operation (${validModes.join(", ")})`)
@@ -107,6 +107,19 @@ program
107107
console.info("Welcome to the Axon Code CLI! 🎉\n")
108108
console.info("To get you started, please fill out these following questions.")
109109
await authWizard()
110+
} else {
111+
// Config exists, check if it's valid (has token)
112+
const { validation } = await loadConfig()
113+
if (!validation.valid) {
114+
const hasTokenError = validation.errors?.some(
115+
(err) => err.includes("kilocodeToken") || err.includes("API key"),
116+
)
117+
if (hasTokenError) {
118+
console.info("\n⚠️ Authentication required")
119+
console.info("Your configuration is missing a valid API token.\n")
120+
await authWizard()
121+
}
122+
}
110123
}
111124

112125
let finalWorkspace = options.workspace

cli/src/ui/components/Logo.tsx

Lines changed: 22 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,28 @@ import React from "react"
22
import { Box, Text, useStdout } from "ink"
33
import { useTheme } from "../../state/hooks/useTheme.js"
44

5-
export const ASCII_LOGO = `⣿⡿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⢿⣿
6-
⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿
7-
⣿⡇⠀⠀⢰⣶⠀⠀⣶⡆⢰⣶⣶⣄⠀⠀⠀⠀⢸⣿
8-
⣿⡇⠀⠀⢸⣿⠿⠿⣦⡀⠀⠀⢸⣿⠀⠀⠀⠀⢸⣿
9-
⣿⡇⠀⠀⠸⠿⠀⠀⠿⠃⠘⠿⠿⠿⠿⠇⠀⠀⢸⣿
10-
⣿⡇⠀⠀⢰⣶⠀⠀⣶⡄⠀⠀⣴⣶⣦⡀⠀⠀⢸⣿
11-
⣿⡇⠀⠀⢸⣿⠀⠀⠀⠀⢰⣿⠁⠀⣿⡇⠀⠀⢸⣿
12-
⣿⡇⠀⠀⠘⠿⠿⠿⠿⠇⠈⠻⠿⠿⠀⠀⠀⠀⢸⣿
13-
⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿
14-
⣿⣷⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣾⣿`
5+
export const ASCII_LOGO = `
6+
█████ ██ ██
7+
██ ██ ██ ██
8+
███████ ███
9+
██ ██ ██ ██
10+
██ ██ ██ ██
11+
12+
13+
██████ ███ ██
14+
██ ██ ████ ██
15+
██ ██ ██ ██ ██
16+
██ ██ ██ ██ ██
17+
██████ ██ ████
18+
`
1519

16-
export const BIG_TEXT = ` █████ ████ ███ ████ █████████ █████
17-
░░███ ███░ ░░░ ░░███ ███░░░░░███ ░░███
18-
░███ ███ ████ ░███ ██████ ███ ░░░ ██████ ███████ ██████
19-
░███████ ░░███ ░███ ███░░███ ░███ ███░░███ ███░░███ ███░░███
20-
░███░░███ ░███ ░███ ░███ ░███ ░███ ░███ ░███░███ ░███ ░███████
21-
░███ ░░███ ░███ ░███ ░███ ░███ ░░███ ███░███ ░███░███ ░███ ░███░░░
22-
█████ ░░████ █████ █████░░██████ ░░█████████ ░░██████ ░░████████░░██████
23-
░░░░░ ░░░░ ░░░░░ ░░░░░ ░░░░░░ ░░░░░░░░░ ░░░░░░ ░░░░░░░░ ░░░░░░ `
20+
export const BIG_TEXT = ` █████╗ ██╗ ██╗ ██████╗ ███╗ ██╗ ██████╗ ██████╗ ██████╗ ███████╗
21+
██╔══██╗╚██╗██╔╝██╔═══██╗████╗ ██║ ██╔════╝██╔═══██╗██╔══██╗██╔════╝
22+
███████║ ╚███╔╝ ██║ ██║██╔██╗ ██║ ██║ ██║ ██║██║ ██║█████╗
23+
██╔══██║ ██╔██╗ ██║ ██║██║╚██╗██║ ██║ ██║ ██║██║ ██║██╔══╝
24+
██║ ██║██╔╝ ██╗╚██████╔╝██║ ╚████║ ╚██████╗╚██████╔╝██████╔╝███████╗
25+
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝
26+
`
2427

2528
export const Logo: React.FC = () => {
2629
const theme = useTheme()
@@ -52,16 +55,7 @@ export const Logo: React.FC = () => {
5255

5356
return (
5457
<Box flexDirection="row" alignItems="center" gap={4} justifyContent={justifyContent}>
55-
{columns < 80 ? (
56-
LogoIcon
57-
) : columns < 104 ? (
58-
LogoBigText
59-
) : (
60-
<>
61-
{LogoIcon}
62-
{LogoBigText}
63-
</>
64-
)}
58+
{columns < 80 ? LogoIcon : LogoBigText}
6559
</Box>
6660
)
6761
}

cli/src/ui/utils/welcomeMessage.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,18 @@ export function createConfigErrorInstructions(validation: ValidationResult): str
1616
}
1717

1818
const configPath = getConfigPath()
19-
const instructions: string[] = ["Configuration Error: config.json is incomplete or invalid.\n", "Errors found:"]
19+
const instructions: string[] = []
2020

2121
// Add each validation error
22-
if (validation.errors) {
23-
validation.errors.forEach((error) => {
24-
instructions.push(` • ${error}`)
25-
})
26-
}
22+
// if (validation.errors) {
23+
// validation.errors.forEach((error) => {
24+
// instructions.push(` • ${error}`)
25+
// })
26+
// }
2727

2828
instructions.push(
2929
"\nTo fix this issue:",
30-
` 1. Run: kilocode config`,
31-
` 2. Or edit: ${configPath}`,
30+
` Run: axoncode login`,
3231
"\n",
3332
"The CLI will exit now. Please configure your Axon Code and try again.",
3433
)

0 commit comments

Comments
 (0)