Skip to content

Commit 42d51b1

Browse files
committed
feat(caipe-cli): encrypted credentials, Ink5 TUI rewrite, readline keybindings, usage docs
- Rewrite Repl.tsx: all text in <Static> (no flashing), line-buffered streaming, slash command picker, readline-style cursor movement - Add AES-256-GCM encrypted credential storage (default backend), keytar optional via auth.credential-storage setting - Add cli/README.md with install, usage, and development docs - Replace agent-chat-cli references across all docs/agents with caipe CLI - Add Makefile targets: caipe-cli-test, caipe-cli-lint, caipe-cli-build - Update caipe-ci.yml to use vitest, fix Biome lint errors - Add Up/Down arrow input history navigation - Improve markdown rendering with chalk-styled marked-terminal - Add vitest.config.ts, build-binary.mjs (Node SEA), pipes.ts (shell/pipe) - Fix env var cleanup in tests (use empty string instead of undefined) Assisted-by: Claude:claude-opus-4-6 Signed-off-by: Sri Aradhyula <sraradhy@cisco.com>
1 parent c8f05c4 commit 42d51b1

87 files changed

Lines changed: 2697 additions & 1189 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/caipe-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ jobs:
4444
working-directory: cli
4545
run: bun run lint
4646

47-
- name: Run unit tests
47+
- name: Run unit tests (vitest)
4848
working-directory: cli
49-
run: bun test tests/ --reporter verbose
49+
run: bun run test
5050

5151
- name: Build (verify compilation succeeds)
5252
working-directory: cli

Makefile

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ APP_NAME ?= ai-platform-engineering
2020
test-slack-stream test-slack-conformance \
2121
test-rag-unit test-rag-coverage test-rag-memory test-rag-scale validate lock-all help \
2222
beads-gh-issues-sync beads-gh-issues-sync-run beads-list beads-ready beads-sync \
23+
caipe-cli-test caipe-cli-lint caipe-cli-build \
2324
caipe-ui caipe-ui-install caipe-ui-build caipe-ui-dev caipe-ui-tests \
2425
build-caipe-ui run-caipe-ui-docker caipe-ui-docker-compose \
2526
docs docs-install docs-build docs-dev docs-start docs-serve \
@@ -140,20 +141,31 @@ run-a2a: install-deps ## Run the AI Platform Engineer single-node deep agent wit
140141
echo "Starting AI Platform Engineer A2A server (single-node) on $$HOST:$$PORT"; \
141142
uv run uvicorn ai_platform_engineering.multi_agents.platform_engineer.protocol_bindings.a2a.main:app --host $$HOST --port $$PORT --reload
142143

143-
run-a2a-client: ## Run the agent-chat-cli client to connect to the A2A agent
144+
run-a2a-client: ## Connect to the A2A agent using the CAIPE CLI
144145
@HOST=$${A2A_HOST:-localhost}; \
145146
PORT=$${A2A_PORT:-8000}; \
146-
echo "Connecting to A2A agent at $$HOST:$$PORT..."; \
147-
docker run -it --network=host \
148-
-e A2A_HOST=$$HOST \
149-
-e A2A_PORT=$$PORT \
150-
ghcr.io/cnoe-io/agent-chat-cli:stable
147+
echo "Connecting to A2A agent at $$HOST:$$PORT via CAIPE CLI..."; \
148+
cd cli && bun run dev -- chat --url http://$$HOST:$$PORT
151149

152-
run-a2a-client-local: setup-venv ## Run agent-chat-cli from local source
150+
run-a2a-client-local: ## Run CAIPE CLI from local source (dev mode)
153151
@HOST=$${A2A_HOST:-localhost}; \
154152
PORT=$${A2A_PORT:-8000}; \
155-
echo "Running local agent-chat-cli connecting to $$HOST:$$PORT..."; \
156-
cd agent-chat-cli && A2A_HOST=$$HOST A2A_PORT=$$PORT uv run python -m agent_chat_cli a2a
153+
echo "Running local CAIPE CLI connecting to $$HOST:$$PORT..."; \
154+
cd cli && bun run dev -- chat --url http://$$HOST:$$PORT
155+
156+
## ========== CAIPE CLI ==========
157+
158+
caipe-cli-test: ## Run CAIPE CLI unit tests (vitest)
159+
@echo "Running CAIPE CLI tests..."
160+
@cd cli && bun run test
161+
162+
caipe-cli-lint: ## Lint CAIPE CLI (Biome)
163+
@echo "Linting CAIPE CLI..."
164+
@cd cli && bun run lint
165+
166+
caipe-cli-build: ## Build CAIPE CLI binary (current platform)
167+
@echo "Building CAIPE CLI binary..."
168+
@cd cli && bun install && npm run compile
157169

158170
## ========== CAIPE UI ==========
159171

ai_platform_engineering/agents/argocd/README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,11 @@
4444

4545
Pick one of the following methods:
4646

47-
- **Docker:**
47+
Use the [CAIPE CLI](https://github.com/cnoe-io/ai-platform-engineering/tree/main/cli):
4848

49-
```bash
50-
docker run -it --network=host ghcr.io/cnoe-io/agent-chat-cli:stable
51-
```
52-
53-
- **Python CLI:**
54-
55-
```bash
56-
uvx --no-cache git+https://github.com/cnoe-io/agent-chat-cli.git a2a
57-
```
49+
```bash
50+
caipe
51+
```
5852

5953
---
6054

ai_platform_engineering/agents/aws/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ docker run -p 0.0.0.0:8000:8000 -it \
137137

138138
### 4️⃣ Run the Client
139139

140-
Use the [agent-chat-cli](https://github.com/cnoe-io/agent-chat-cli) to interact with the agent:
140+
Use the [CAIPE CLI](https://github.com/cnoe-io/ai-platform-engineering/tree/main/cli) to interact with the agent:
141141

142142
```bash
143-
uvx --no-cache git+https://github.com/cnoe-io/agent-chat-cli.git a2a
143+
caipe
144144
```
145145

146146
## 🏗️ Architecture

ai_platform_engineering/agents/backstage/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ docker run --rm -p 0.0.0.0:8000:8000 -it \
7676

7777
### 3️⃣ Run the Client
7878

79-
Use the [agent-chat-cli](https://github.com/cnoe-io/agent-chat-cli) to interact with the agent:
79+
Use the [CAIPE CLI](https://github.com/cnoe-io/ai-platform-engineering/tree/main/cli) to interact with the agent:
8080

8181
```bash
82-
uvx --no-cache git+https://github.com/cnoe-io/agent-chat-cli.git a2a
82+
caipe
8383
```
8484

8585
---

ai_platform_engineering/agents/confluence/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ docker run -p 0.0.0.0:8000:8000 -it\
6767

6868
### 3️⃣ Run the Client
6969

70-
Use the [agent-chat-cli](https://github.com/cnoe-io/agent-chat-cli) to interact with the agent:
70+
Use the [CAIPE CLI](https://github.com/cnoe-io/ai-platform-engineering/tree/main/cli) to interact with the agent:
7171

7272
```bash
73-
uvx --no-cache git+https://github.com/cnoe-io/agent-chat-cli.git a2a
73+
caipe
7474
```
7575

7676
## 🏗️ Architecture

ai_platform_engineering/agents/github/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ python -m venv .venv
216216
pip install uv
217217
```
218218

219-
Now you can use the [agent-chat-cli](https://github.com/cnoe-io/agent-chat-cli) to interact with the agent:
219+
Now you can use the [CAIPE CLI](https://github.com/cnoe-io/ai-platform-engineering/tree/main/cli) to interact with the agent:
220220

221221
```bash
222-
uvx --no-cache git+https://github.com/cnoe-io/agent-chat-cli.git a2a
222+
caipe
223223
```
224224

225225
## Local Development
@@ -273,9 +273,9 @@ Agent: Here are your GitHub repositories:
273273
- Description: LLM-powered GitHub agent
274274
- Last updated: 2 days ago
275275
276-
2. agent-chat-cli (Public)
277-
- Language: Python
278-
- Description: CLI client for agent interaction
276+
2. ai-platform-engineering/cli (Public)
277+
- Language: TypeScript/Bun
278+
- Description: CAIPE CLI — dedicated terminal client for A2A/AG-UI agent interaction
279279
- Last updated: 1 week ago
280280
281281
Let me know if you need more details about any repository!

ai_platform_engineering/agents/jira/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ docker run -p 0.0.0.0:8000:8000 -it\
6767

6868
### 3️⃣ Run the Client
6969

70-
Use the [agent-chat-cli](https://github.com/cnoe-io/agent-chat-cli) to interact with the agent:
70+
Use the [CAIPE CLI](https://github.com/cnoe-io/ai-platform-engineering/tree/main/cli) to interact with the agent:
7171

7272
```bash
73-
uvx --no-cache git+https://github.com/cnoe-io/agent-chat-cli.git a2a
73+
caipe
7474
```
7575

7676
## 🏗️ Architecture

ai_platform_engineering/agents/pagerduty/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ docker run --rm -p 0.0.0.0:8000:8000 -it \
7777

7878
### 3️⃣ Run the Client
7979

80-
Use the [agent-chat-cli](https://github.com/cnoe-io/agent-chat-cli) to interact with the agent:
80+
Use the [CAIPE CLI](https://github.com/cnoe-io/ai-platform-engineering/tree/main/cli) to interact with the agent:
8181

8282
```bash
83-
uvx --no-cache git+https://github.com/cnoe-io/agent-chat-cli.git a2a
83+
caipe
8484
```
8585

8686
---

ai_platform_engineering/agents/slack/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ docker run -p 0.0.0.0:8000:8000 -it \
123123
```
124124

125125
### 3️⃣ Run the Client
126-
Use the [agent-chat-cli](https://github.com/cnoe-io/agent-chat-cli) to interact with the agent:
126+
Use the [CAIPE CLI](https://github.com/cnoe-io/ai-platform-engineering/tree/main/cli) to interact with the agent:
127127

128128
```bash
129-
uvx --no-cache git+https://github.com/cnoe-io/agent-chat-cli.git a2a
129+
caipe
130130
```
131131

132132
### Alternative: Running Locally

0 commit comments

Comments
 (0)