Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
193 changes: 166 additions & 27 deletions bun.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "AI-powered development tool",
"private": true,
"type": "module",
"packageManager": "bun@1.3.3",
"packageManager": "bun@1.3.4",
"scripts": {
"dev": "bun run --cwd packages/opencode --conditions=browser src/index.ts",
"typecheck": "bun turbo typecheck",
Expand All @@ -20,7 +20,7 @@
"packages/slack"
],
"catalog": {
"@types/bun": "1.3.3",
"@types/bun": "1.3.4",
"@hono/zod-validator": "0.4.2",
"ulid": "3.0.1",
"@kobalte/core": "0.13.11",
Expand Down
1 change: 1 addition & 0 deletions packages/kiana-v6/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
kiana*.jsonc
bin/
81 changes: 81 additions & 0 deletions packages/kiana-v6/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Kiana v6 CLI Build Makefile
# Builds standalone binaries using Bun

NAME := kiana-v6
SRC := src/cli.ts
OUTDIR := bin

# Optimization flags
OPTIMIZE := --minify --sourcemap=none

# Default target
.PHONY: all
all: darwin-arm64 darwin-x64 linux-x64 linux-arm64 windows-x64

# Create output directory
$(OUTDIR):
mkdir -p $(OUTDIR)

# macOS ARM64 (M1/M2/M3)
.PHONY: darwin-arm64
darwin-arm64: $(OUTDIR)
bun build $(SRC) --compile --target=bun-darwin-arm64 $(OPTIMIZE) --outfile $(OUTDIR)/$(NAME)-darwin-arm64

# macOS Intel
.PHONY: darwin-x64
darwin-x64: $(OUTDIR)
bun build $(SRC) --compile --target=bun-darwin-x64 $(OPTIMIZE) --outfile $(OUTDIR)/$(NAME)-darwin-x64

# Linux x64
.PHONY: linux-x64
linux-x64: $(OUTDIR)
bun build $(SRC) --compile --target=bun-linux-x64 $(OPTIMIZE) --outfile $(OUTDIR)/$(NAME)-linux-x64

# Linux ARM64
.PHONY: linux-arm64
linux-arm64: $(OUTDIR)
bun build $(SRC) --compile --target=bun-linux-arm64 $(OPTIMIZE) --outfile $(OUTDIR)/$(NAME)-linux-arm64

# Windows x64
.PHONY: windows-x64
windows-x64: $(OUTDIR)
bun build $(SRC) --compile --target=bun-windows-x64 $(OPTIMIZE) --outfile $(OUTDIR)/$(NAME)-windows-x64.exe

# Build for current platform only
.PHONY: build
build: $(OUTDIR)
bun build $(SRC) --compile $(OPTIMIZE) --outfile $(OUTDIR)/$(NAME)

# Build for current platform (debug, no optimization)
.PHONY: build-debug
build-debug: $(OUTDIR)
bun build $(SRC) --compile --outfile $(OUTDIR)/$(NAME)-debug

# Install dependencies
.PHONY: install
install:
bun install

# Clean build artifacts
.PHONY: clean
clean:
rm -rf $(OUTDIR)

# Help
.PHONY: help
help:
@echo "Kiana v6 CLI Build Targets:"
@echo ""
@echo " make build - Build optimized binary for current platform"
@echo " make build-debug - Build debug binary (no optimization)"
@echo " make all - Build optimized binaries for all platforms"
@echo " make darwin-arm64 - Build for macOS ARM64 (M1/M2/M3)"
@echo " make darwin-x64 - Build for macOS Intel"
@echo " make linux-x64 - Build for Linux x64"
@echo " make linux-arm64 - Build for Linux ARM64"
@echo " make windows-x64 - Build for Windows x64"
@echo " make install - Install dependencies"
@echo " make clean - Remove build artifacts"
@echo ""
@echo "Optimization flags: $(OPTIMIZE)"
@echo "Binaries are output to $(OUTDIR)/"
12 changes: 6 additions & 6 deletions packages/kiana-v6/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@ai-sdk/anthropic": "beta",
"@ai-sdk/anthropic": "3.0.0-beta.83",
"@ai-sdk/google": "beta",
"@ai-sdk/openai": "beta",
"@ai-sdk/openai-compatible": "beta",
"@ai-sdk/openai": "3.0.0-beta.96",
"@ai-sdk/openai-compatible": "2.0.0-beta.48",
"@modelcontextprotocol/sdk": "^1.24.3",
"ai": "beta",
"ai": "6.0.0-beta.150",
"chalk": "^5.6.2",
"dotenv": "^17.2.3",
"jsonc-parser": "latest",
"marked": "^17.0.1",
"marked": "^15.0.0",
"marked-terminal": "^7.3.0",
"zod": "latest"
"zod": "4.1.13"
},
"devDependencies": {
"@types/node": "latest",
Expand Down
Loading
Loading