Skip to content

Commit 529e64d

Browse files
committed
feat: add config bind command for Agent credential workspace isolation
Add `lark-cli config bind --source openclaw|hermes` to sync AI Agent Feishu credentials into isolated lark-cli workspace subtrees. - Workspace routing: core.SetCurrentWorkspace / GetRuntimeDir with atomic.Value for concurrency safety; existing GetConfigDir delegates transparently (zero behavior change for local workspace) - OpenClaw SecretRef resolution: 4 forms (plain, ${VAR} template, file with JSON Pointer, exec with JSON protocol) aligned with OpenClaw src/secrets/resolve.ts including full security audit (absolute path, symlink, owner uid, permission bits, trustedDirs) - Hermes .env parsing: reads ~/.hermes/.env with HERMES_HOME override - TUI + flag dual mode: language → source → account → conflict prompt → security disclaimer, matching config init interactive style - Keychain integration via ForStorage; --force cleanup of old entries - config show / doctor output: workspace field added - 75+ unit tests covering success paths, error branches, exec provider shell scripts, audit security checks, types marshaling
1 parent c442fa2 commit 529e64d

29 files changed

Lines changed: 5154 additions & 25 deletions

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## Unreleased
6+
7+
### Features
8+
9+
- Add `config bind` command to sync AI Agent (OpenClaw / Hermes) credentials into isolated lark-cli workspaces; supports TUI + flag dual mode, OS keychain storage, OpenClaw SecretRef resolution, and per-workspace runtime artifact isolation
10+
511
## [v1.0.13] - 2026-04-16
612

713
### Features

0 commit comments

Comments
 (0)