kaitranntt
196422cee1
docs(cliproxy): add remote proxy documentation
...
- add proxy CLI flags section to help command output
- add proxy environment variables section to help
- add Remote Proxy section to README with config examples
- document CLI flag overrides and priority resolution
2025-12-19 01:18:05 -05:00
kaitranntt
9a9ef98542
feat(ui): add Proxy settings tab to dashboard
...
- add Proxy tab with Local/Remote mode toggle cards
- add remote server config inputs (host, port, protocol, auth token)
- add Test Connection button with reachability status display
- add fallback settings (enable fallback, auto-start local)
- add local proxy port configuration
- add getProxyConfig, updateProxyConfig, testProxyConnection API methods
2025-12-19 01:17:20 -05:00
kaitranntt
8decdfb515
feat(web-server): add proxy configuration API routes
...
- GET /api/proxy returns current proxy config
- PUT /api/proxy updates proxy settings in config.yaml
- POST /api/proxy/test tests remote connection
- register routes in web server index
2025-12-19 01:16:10 -05:00
semantic-release-bot
ebfef34a13
chore(release): 6.6.0-dev.2 [skip ci]
...
## [6.6.0-dev.2](https://github.com/kaitranntt/ccs/compare/v6.6.0-dev.1...v6.6.0-dev.2 ) (2025-12-19)
### Bug Fixes
* **ci:** remove sync-version.js that depends on deleted VERSION file ([18729c9 ](https://github.com/kaitranntt/ccs/commit/18729c9983ecd1f9d857b0de2753e99c675c624a ))
2025-12-19 06:15:45 +00:00
kaitranntt
bd1ff2f059
feat(cliproxy): integrate remote proxy mode in executor
...
- resolve proxy config with CLI flags, ENV vars, and config.yaml
- check remote proxy health before skipping local binary spawn
- implement TTY-aware fallback prompting when remote unreachable
- support --remote-only flag to disable fallback
- use remote or local env vars based on mode
2025-12-19 01:15:33 -05:00
kaitranntt
f4a50d006c
feat(cliproxy): add getRemoteEnvVars for remote proxy mode
...
- generate environment variables for remote CLIProxyAPI
- construct ANTHROPIC_BASE_URL from host/port/protocol
- include auth token in Authorization header when provided
2025-12-19 01:15:10 -05:00
kaitranntt
18729c9983
fix(ci): remove sync-version.js that depends on deleted VERSION file
2025-12-19 01:14:24 -05:00
kaitranntt
30d564cda6
feat(cliproxy): add remote proxy client for health checks
...
- checkRemoteProxy() tests remote CLIProxyAPI /health endpoint
- testConnection() validates remote proxy connectivity
- typed error codes: CONNECTION_REFUSED, TIMEOUT, AUTH_FAILED, UNKNOWN
- support for self-signed certificates with allowSelfSigned flag
- add type-level tests for interfaces
2025-12-19 01:13:54 -05:00
kaitranntt
68a93f0500
feat(cliproxy): add proxy config resolver with CLI flag support
...
- parseProxyFlags() extracts --proxy-host, --proxy-port, --proxy-protocol
- getProxyEnvVars() reads CCS_PROXY_* environment variables
- resolveProxyConfig() merges CLI > ENV > config.yaml > defaults
- hasProxyFlags() detects proxy-related CLI arguments
- add 29 comprehensive unit tests
2025-12-19 01:12:46 -05:00
kaitranntt
197174441f
feat(config): add proxy section to unified config loader
...
- merge proxy config with defaults in loadUnifiedConfig
- preserve user overrides for remote/fallback/local sections
2025-12-19 01:11:49 -05:00
kaitranntt
eff2e2d29f
feat(config): add proxy configuration types and schema
...
- add ProxyRemoteConfig, ProxyFallbackConfig, ProxyLocalConfig interfaces
- add ProxyConfig composite type with remote/fallback/local sections
- add ResolvedProxyConfig interface for runtime config
- bump UNIFIED_CONFIG_VERSION to 5
- add DEFAULT_PROXY_CONFIG constant
2025-12-19 01:11:29 -05:00
semantic-release-bot
86d41e5e4d
chore(release): 6.6.0-dev.1 [skip ci]
...
## [6.6.0-dev.1](https://github.com/kaitranntt/ccs/compare/v6.5.0...v6.6.0-dev.1 ) (2025-12-19)
### ⚠ BREAKING CHANGES
* Native shell installers (curl/irm) no longer work.
Use `npm install -g @kaitranntt/ccs` instead.
### Features
* **ci:** add Discord notifications for releases ([ee76d66 ](https://github.com/kaitranntt/ccs/commit/ee76d663aec59a86a236156dbc163d0d291c0446 ))
* **ci:** add semantic-release for dev branch with rich Discord notifications ([0f590c8 ](https://github.com/kaitranntt/ccs/commit/0f590c80d689c39cea7c94937ed398941dddb533 ))
* **cleanup:** add age-based error log cleanup ([45207b4 ](https://github.com/kaitranntt/ccs/commit/45207b4e7f92c09d7464dd5c954718254ddfd43a ))
* **cliproxy:** set WRITABLE_PATH for log storage in ~/.ccs/cliproxy/ ([6b9396f ](https://github.com/kaitranntt/ccs/commit/6b9396fbc6d464bc3e3d6d3bb639e70fe5306074 ))
* **dashboard:** add error log viewer for CLIProxy diagnostics ([5b3d565 ](https://github.com/kaitranntt/ccs/commit/5b3d56548a8dfb2e6bb22e14b13f0fb038f2d1fb )), closes [#132 ](https://github.com/kaitranntt/ccs/issues/132 )
* **global-env:** add global environment variables injection for third-party profiles ([5d34326 ](https://github.com/kaitranntt/ccs/commit/5d343260c7307c2d7ac8da92eb5f94c7f764d08c ))
* **ui:** add absolute path copy for error logs ([5d4f49e ](https://github.com/kaitranntt/ccs/commit/5d4f49e4bb6f9748efa89e96c342dfae3e35d02b ))
* **ui:** add Stop and Restart buttons to ProxyStatusWidget ([c9ad0b0 ](https://github.com/kaitranntt/ccs/commit/c9ad0b077934ae8418d4e97b9b02a09044ff898b ))
* **ui:** add version sync timestamp to ProxyStatusWidget ([d43079b ](https://github.com/kaitranntt/ccs/commit/d43079b72414d7b841a35a934ea39a91527f4172 ))
* **ui:** redesign error logs monitor with split view layout ([8f47b87 ](https://github.com/kaitranntt/ccs/commit/8f47b8775f2c2493c05ee2be861ca3f8667cfc0e ))
* **ui:** show CLIProxyAPI update availability in dashboard ([96762a9 ](https://github.com/kaitranntt/ccs/commit/96762a9f6ee096570b2fe6136a4431e6ce1d1a47 ))
### Bug Fixes
* **ci:** remove deprecated installer references from dev-release workflow ([4b969b6 ](https://github.com/kaitranntt/ccs/commit/4b969b6870aae6b5859b9a1be0cf98b9d537ce00 ))
* **cliproxy:** prevent misleading update message when proxy is running ([2adc272 ](https://github.com/kaitranntt/ccs/commit/2adc272f278b1d80d160ad4d6e1f35e3b61cb156 )), closes [#143 ](https://github.com/kaitranntt/ccs/issues/143 )
* **error-logs-monitor:** properly handle status loading state ([1ef625e ](https://github.com/kaitranntt/ccs/commit/1ef625ee863c517a5fbba21f16cf991bb77be7d7 ))
### Styles
* **ui:** widen cliproxy sidebar from w-64 to w-80 ([248d970 ](https://github.com/kaitranntt/ccs/commit/248d970cba8671b7c20dc99f8d1a70e4fe113605 ))
### Code Refactoring
* remove deprecated native shell installers ([126cffc ](https://github.com/kaitranntt/ccs/commit/126cffc6dcf434abeee883a4109d3705cdb92a67 ))
2025-12-19 06:05:00 +00:00
Kai (Tam Nhu) Tran and GitHub
2e47c8ce65
Merge pull request #145 from kaitranntt/kai/feat/semantic-release-enhancement
...
feat(ci): add semantic-release for dev branch with rich Discord notifications
2025-12-19 01:04:05 -05:00
kaitranntt
0f590c80d6
feat(ci): add semantic-release for dev branch with rich Discord notifications
...
- add .releaserc.cjs with branch-aware config (dev=prerelease, main=stable)
- add scripts/send-discord-release.cjs that parses CHANGELOG.md
- replace custom VERSION bumping with semantic-release
- add Discord webhook URL validation
- add release detection to prevent false notifications
2025-12-19 01:00:41 -05:00
github-actions[bot]
338528777b
chore(release): 6.5.0-dev.7 [skip ci]
2025-12-19 05:27:40 +00:00
kaitranntt
ee76d663ae
feat(ci): add Discord notifications for releases
...
- stable releases: fetch GH release, post green embed with changelog
- dev releases: post orange embed with version info
- graceful skip if webhook not configured
2025-12-19 00:26:22 -05:00
github-actions[bot]
2db8f3bf1a
chore(release): 6.5.0-dev.6 [skip ci]
2025-12-19 04:46:57 +00:00
kaitranntt
45207b4e7f
feat(cleanup): add age-based error log cleanup
...
- add --errors flag to target error-*.log files
- add --days=N for age filtering (default: 7 days)
- show preview of files to delete before confirmation
- keep recent logs for debugging, only delete old ones
2025-12-18 23:45:44 -05:00
github-actions[bot]
584b31e3b6
chore(release): 6.5.0-dev.5 [skip ci]
2025-12-19 04:27:31 +00:00
Kai (Tam Nhu) Tran and GitHub
a64f1818ea
Merge pull request #144 from kaitranntt/kai/fix/cliproxy-update-notification
...
fix(cliproxy): prevent misleading update message when proxy is running
2025-12-18 23:26:23 -05:00
kaitranntt
d43079b724
feat(ui): add version sync timestamp to ProxyStatusWidget
...
- Show current CLIProxyAPI version (e.g., v6.5.53)
- Display "Synced Xm ago" with full timestamp on hover
- Extend API response to include checkedAt timestamp
2025-12-18 23:24:15 -05:00
kaitranntt
96762a9f6e
feat(ui): show CLIProxyAPI update availability in dashboard
...
- Add GET /api/cliproxy/update-check endpoint
- Export checkCliproxyUpdate() function from binary-manager
- Add useCliproxyUpdateCheck hook with 1-hour cache
- Update ProxyStatusWidget with amber "Update" badge when available
- Highlight Restart button as "Update" with amber styling when update pending
2025-12-18 23:17:05 -05:00
kaitranntt
c9ad0b0779
feat(ui): add Stop and Restart buttons to ProxyStatusWidget
...
- Add POST /api/cliproxy/proxy-stop API endpoint
- Add proxyStop method in api-client and useStopProxy hook
- Update ProxyStatusWidget with Stop and Restart controls when running
- Restart = stop + delay + start (for applying CLIProxyAPI updates)
Complements the fix in binary-manager.ts which now tells users to stop
proxy before updates can be applied.
2025-12-18 23:03:45 -05:00
github-actions[bot]
6d206e6e9c
chore(release): 6.5.0-dev.4 [skip ci]
2025-12-19 03:56:06 +00:00
kaitranntt
2adc272f27
fix(cliproxy): prevent misleading update message when proxy is running
...
When CLIProxyAPI is already running as a background process, the update
cannot be applied because the old process is still in memory. Previously,
the CLI would download the new binary and show "Updating CLIProxyAPI..."
even though the running process remained on the old version.
Now checks if proxy is running before attempting update:
- If running: shows update available message with instruction to stop first
- If not running: proceeds with update as before
Fixes #143
2025-12-18 22:52:12 -05:00
kaitranntt
248d970cba
style(ui): widen cliproxy sidebar from w-64 to w-80
2025-12-18 22:44:07 -05:00
kaitranntt
5d343260c7
feat(global-env): add global environment variables injection for third-party profiles
...
- add global_env config section to unified config types and loader
- inject global env vars at runtime for cliproxy and copilot profiles
- add GET/PUT /api/global-env endpoints for UI management
- add Global Env tab to Settings page with enable toggle and var management
- add GlobalEnvIndicator component showing injected vars in profile editors
- support ?tab=globalenv query param for direct navigation from indicators
2025-12-18 22:38:25 -05:00
github-actions[bot]
25cfb5b65e
chore(release): 6.5.0-dev.3 [skip ci]
2025-12-19 02:07:47 +00:00
kaitranntt
5d4f49e4bb
feat(ui): add absolute path copy for error logs
...
- add absolutePath field to CliproxyErrorLog interface
- inject absolute path in routes.ts from getCliproxyWritablePath()
- update copy button to use absolute path with fallback to filename
- refactor error-logs-monitor to remove demo mode
- add error-log-parser lib for structured log parsing
2025-12-18 21:06:20 -05:00
github-actions[bot]
78a14e873d
chore(release): 6.5.0-dev.2 [skip ci]
2025-12-18 23:32:18 +00:00
Kai (Tam Nhu) Tran and GitHub
03e9bdc917
Merge pull request #133 from kaitranntt/kai/feat/error-log-viewer
...
feat(dashboard): add error log viewer for CLIProxy diagnostics
2025-12-18 18:31:16 -05:00
kaitranntt
8f47b8775f
feat(ui): redesign error logs monitor with split view layout
...
- Replace dropdown accordion with master-detail split view
- Add log list panel (240px) on left with selection state
- Add content viewer panel on right for better readability
- Add demo mode prop for UI testing
- Auto-select first log via useMemo/derived state
2025-12-18 18:23:38 -05:00
github-actions[bot]
7eba223d8d
chore(release): 6.5.0-dev.1 [skip ci]
2025-12-18 23:17:54 +00:00
kaitranntt
4b969b6870
fix(ci): remove deprecated installer references from dev-release workflow
...
The native shell installers (install.sh, install.ps1) were removed in the
recent refactor, but the dev-release workflow still tried to update and
commit them, causing CI failures.
2025-12-18 18:16:39 -05:00
kaitranntt
126cffc6dc
refactor: remove deprecated native shell installers
...
- Remove installers/ directory (install.sh, install.ps1, uninstall.sh, uninstall.ps1)
- Update CloudFlare worker to 301 redirect /install* to npm docs
- Remove detectInstallationMethod() - npm is now only install method
- Simplify update-command.ts to npm-only updates
- Clean up tests to remove direct install references
BREAKING CHANGE: Native shell installers (curl/irm) no longer work.
Use `npm install -g @kaitranntt/ccs` instead.
2025-12-18 16:52:57 -05:00
semantic-release-bot
be2b87ba98
chore(release): 6.5.0 [skip ci]
...
# [6.5.0](https://github.com/kaitranntt/ccs/compare/v6.4.0...v6.5.0 ) (2025-12-18)
### Bug Fixes
* **cli:** allow ccs copilot as profile by routing only known subcommands ([2c6dfe7 ](https://github.com/kaitranntt/ccs/commit/2c6dfe746b19dcbc43492dc8a03870b18a0b03f6 ))
* **cli:** route 'ccs copilot' without subcommand to help ([671a9e7 ](https://github.com/kaitranntt/ccs/commit/671a9e76fb1dc4b58099e82d94f63fd346b52146 ))
* **copilot:** use gpt-4.1 as default model and 127.0.0.1 for local connections ([ec6face ](https://github.com/kaitranntt/ccs/commit/ec6face8db78e9c5cad4f91dcfd39e08665e1415 ))
* **copilot:** use token file check for instant auth status ([4783632 ](https://github.com/kaitranntt/ccs/commit/47836329580711bc551ebc52e20136a38bf15320 ))
* **copilot:** widen sidebar and balance split-view layout ([63bdc3a ](https://github.com/kaitranntt/ccs/commit/63bdc3ae3990472d91c190bd29ee95c5181e4d12 ))
* **ui:** add install button to copilot page sidebar ([3865747 ](https://github.com/kaitranntt/ccs/commit/386574715470b8ff10e8d0ffae9231e001810e99 ))
* **ui:** constrain copilot config left panel width to 540px ([da5dc31 ](https://github.com/kaitranntt/ccs/commit/da5dc31ec4e94d98c17aa750f23e079145ac040c ))
* **ui:** handle 404 errors in profile settings fetch ([60c01c7 ](https://github.com/kaitranntt/ccs/commit/60c01c7e60f850a28cb995e92aad21dbb09a1acf ))
* **ui:** improve copilot sidebar logical order and remove redundancy ([f9b89de ](https://github.com/kaitranntt/ccs/commit/f9b89dee12acdec5bf2b53e04eb60708bfee8340 ))
### Features
* **api:** add copilot install and info endpoints ([fee241d ](https://github.com/kaitranntt/ccs/commit/fee241d00be4a573e04011dd84712f90ed2d4a1f ))
* **api:** add copilot REST API endpoints ([c84db38 ](https://github.com/kaitranntt/ccs/commit/c84db38f6a16598955334fc02e0ccbe50187655f ))
* **auth:** add copilot profile detection ([e5a1f60 ](https://github.com/kaitranntt/ccs/commit/e5a1f60bb6f97dba5ccd021087941ddf733292d5 ))
* **cli:** add copilot CLI commands ([d25db1f ](https://github.com/kaitranntt/ccs/commit/d25db1fce10ea9c37b949a8c3c39115f357812d8 ))
* **config:** add copilot configuration types and loader ([b87aeae ](https://github.com/kaitranntt/ccs/commit/b87aeaeb01800b11640b14fafa36412d82d0f522 ))
* **copilot:** add complete model catalog with plan tiers ([7653cab ](https://github.com/kaitranntt/ccs/commit/7653caba710f847ff4c25fcc5b68f1b0381dd2d2 ))
* **copilot:** add copilot manager module ([3b8a85c ](https://github.com/kaitranntt/ccs/commit/3b8a85c9ef1d4a227b8ea77f9c892ba547e92eed ))
* **copilot:** add model tier mapping support ([d21908a ](https://github.com/kaitranntt/ccs/commit/d21908ab63aca6e96f14f6e0c78eb882de1177b9 ))
* **copilot:** add raw settings API and model mapping routes ([a3e2153 ](https://github.com/kaitranntt/ccs/commit/a3e2153498ac8a1a9b84319f6b0835fa8f085b3d ))
* **copilot:** add raw settings support to useCopilot hook ([882792a ](https://github.com/kaitranntt/ccs/commit/882792a4fbdd48b81840b4bb3f093831fe60de76 ))
* **copilot:** add self-managed package manager for copilot-api ([ecdad1d ](https://github.com/kaitranntt/ccs/commit/ecdad1d6d0c21f47547573f666d68bb6d1164437 ))
* **copilot:** redesign config form to match CLIProxy pattern ([7886259 ](https://github.com/kaitranntt/ccs/commit/7886259c363914224b6717ff4d4a74104141d696 ))
* **ui:** add copilot dashboard page ([6b04532 ](https://github.com/kaitranntt/ccs/commit/6b04532f419622f9bfcd99d9e499445310f850d8 ))
* **ui:** add copilot-api install button and version display ([f813ad0 ](https://github.com/kaitranntt/ccs/commit/f813ad06f61ad6146698d82c4aed4b3a8e90dc5d ))
* **ui:** display plan tiers and presets in copilot model selector ([87c2acc ](https://github.com/kaitranntt/ccs/commit/87c2acc416c35b15377e4bce2ee45bc6d20d761a ))
* **ui:** expose auth result with device code in hook ([5f0fde9 ](https://github.com/kaitranntt/ccs/commit/5f0fde9a612e7ec1ea13dd5fc807d033bf215fb8 ))
* **update:** add automatic update check on startup ([8a0ad53 ](https://github.com/kaitranntt/ccs/commit/8a0ad5308262ba14fb0fe23ff8a87f3c5ecaa139 ))
2025-12-18 11:22:37 +00:00
Kai (Tam Nhu) Tran and GitHub
5d51b8b113
Merge pull request #139 from kaitranntt/dev
...
feat(release): GitHub Copilot integration and auto-update check
2025-12-18 06:19:57 -05:00
github-actions[bot]
7c7e1ab5e0
chore(release): 6.4.0-dev.3 [skip ci]
2025-12-18 11:14:00 +00:00
kaitranntt
8a0ad53082
feat(update): add automatic update check on startup
...
- check cached update result synchronously on every command
- show warnBox notification if update available
- skip check for version/help/update commands
- refresh cache in background if stale (>24h)
- use proper UI components (warnBox) for notification
2025-12-18 06:12:40 -05:00
github-actions[bot]
a0751ed604
chore(release): 6.4.0-dev.2 [skip ci]
2025-12-18 10:42:41 +00:00
Kai (Tam Nhu) Tran and GitHub
efdf53c83c
Merge pull request #138 from kaitranntt/kai/feat/copilot-integration
...
feat(copilot): add GitHub Copilot integration with CLI, API, and dashboard
2025-12-18 05:41:38 -05:00
kaitranntt
da5dc31ec4
fix(ui): constrain copilot config left panel width to 540px
2025-12-18 05:31:37 -05:00
github-actions[bot]
7a668dd8eb
chore(release): 6.4.0-dev.1 [skip ci]
2025-12-18 10:29:18 +00:00
kaitranntt
f9b89dee12
fix(ui): improve copilot sidebar logical order and remove redundancy
...
Changes:
- Reordered sidebar to follow logical flow:
1. Setup: copilot-api binary → Integration enabled
2. Auth: GitHub connection (only after binary installed)
3. Daemon: status/port (only after authenticated)
- Removed redundant Config section (Model/Account already in right panel)
- Progressive disclosure: sections appear as prerequisites are met
2025-12-18 05:26:58 -05:00
kaitranntt
60c01c7e60
fix(ui): handle 404 errors in profile settings fetch
...
- throw on non-OK responses in ProfileEditor queryFn
- add isError state with user-friendly message and retry button
- add defensive null check for data.path before .replace() call
- apply same defensive check to provider-editor.tsx
Fixes blank screen when API profile settings file doesn't exist.
2025-12-18 05:25:52 -05:00
kaitranntt
ec6face8db
fix(copilot): use gpt-4.1 as default model and 127.0.0.1 for local connections
...
Key changes:
- Changed default model from claude-sonnet-4.5 to gpt-4.1 (free tier compatible)
- Updated all Claude models to minPlan: 'pro' (requires paid Copilot subscription)
- Replaced 'localhost' with '127.0.0.1' for more reliable local connections
(bypasses DNS resolution and potential IPv6 issues)
- Updated UI presets: replaced Claude Haiku with Raptor Mini in free tier
- Fixed FREE_PRESETS to only include actually free models
This fixes the "model_not_supported" error when using free tier GitHub Copilot
subscription, which doesn't have access to Claude models.
2025-12-18 04:58:49 -05:00
kaitranntt
2c6dfe746b
fix(cli): allow ccs copilot as profile by routing only known subcommands
...
Changed copilot command routing logic to only intercept known subcommands
(auth, status, models, start, stop, enable, disable, help). When user runs
bare 'ccs copilot' without subcommands, it now falls through to profile
detection and executes Claude with the Copilot API backend.
This allows:
- `ccs copilot auth` → command handler (authenticate)
- `ccs copilot status` → command handler (show status)
- `ccs copilot` → profile execution (run Claude with Copilot)
2025-12-18 04:47:44 -05:00
kaitranntt
3a7cb0c4e8
docs(cli): improve copilot help with quick start guide
2025-12-18 04:43:35 -05:00
kaitranntt
671a9e76fb
fix(cli): route 'ccs copilot' without subcommand to help
2025-12-18 04:34:33 -05:00
semantic-release-bot
d746ec77ca
chore(release): 6.4.0 [skip ci]
...
# [6.4.0](https://github.com/kaitranntt/ccs/compare/v6.3.1...v6.4.0 ) (2025-12-18)
### Bug Fixes
* **websearch:** detect Gemini CLI auth status before showing Ready ([98c21ef ](https://github.com/kaitranntt/ccs/commit/98c21efb5a3b7a39b27fda958691837545235f2d ))
### Features
* **cliproxy:** implement interactive project selection for OAuth flows ([a66abba ](https://github.com/kaitranntt/ccs/commit/a66abba174eb77555b4443f3e930be30264da7e4 ))
2025-12-18 09:25:16 +00:00