mirror of
https://github.com/tiennm99/ccs.git
synced 2026-09-03 04:17:54 +00:00
docs(copilot): add prominent disclaimer for unofficial API
Make the "use at your own risk" warning more transparent: - UI: Expanded warning banner with clear "Unofficial API" heading - UI: Added explicit no warranty/no responsibility text - Config YAML: Updated comments with !! DISCLAIMER !! section - Types: Updated CopilotConfig JSDoc with full disclaimer CCS provides no warranty and accepts no responsibility for consequences of using this reverse-engineered GitHub Copilot API.
This commit is contained in:
@@ -319,8 +319,10 @@ function generateYamlWithComments(config: UnifiedConfig): string {
|
||||
lines.push('# Copilot: GitHub Copilot API proxy (via copilot-api)');
|
||||
lines.push('# Uses your existing GitHub Copilot subscription with Claude Code.');
|
||||
lines.push('#');
|
||||
lines.push('# WARNING: This uses a reverse-engineered API. Use responsibly.');
|
||||
lines.push('# Excessive automated usage may trigger GitHub abuse detection.');
|
||||
lines.push('# !! DISCLAIMER - USE AT YOUR OWN RISK !!');
|
||||
lines.push('# This uses an UNOFFICIAL reverse-engineered API.');
|
||||
lines.push('# Excessive usage may trigger GitHub account restrictions.');
|
||||
lines.push('# CCS provides NO WARRANTY and accepts NO RESPONSIBILITY for consequences.');
|
||||
lines.push('#');
|
||||
lines.push('# Setup: npx copilot-api auth (authenticate with GitHub)');
|
||||
lines.push('# Usage: ccs copilot (switch to copilot profile)');
|
||||
|
||||
@@ -159,8 +159,10 @@ export type CopilotAccountType = 'individual' | 'business' | 'enterprise';
|
||||
* Enables GitHub Copilot subscription usage via copilot-api proxy.
|
||||
* Strictly opt-in - disabled by default.
|
||||
*
|
||||
* WARNING: This uses a reverse-engineered API. Excessive automated usage
|
||||
* may trigger GitHub's abuse-detection systems.
|
||||
* !! DISCLAIMER - USE AT YOUR OWN RISK !!
|
||||
* This uses an UNOFFICIAL reverse-engineered API.
|
||||
* Excessive usage may trigger GitHub account restrictions.
|
||||
* CCS provides NO WARRANTY and accepts NO RESPONSIBILITY for any consequences.
|
||||
*/
|
||||
export interface CopilotConfig {
|
||||
/** Enable Copilot integration (default: false) - must be explicitly enabled */
|
||||
|
||||
@@ -144,12 +144,19 @@ export function CopilotPage() {
|
||||
<LoadingSidebar />
|
||||
) : (
|
||||
<div className="p-3 space-y-4">
|
||||
{/* Warning Banner */}
|
||||
<div className="flex items-start gap-2 rounded-md border border-yellow-500/20 bg-yellow-500/10 p-2.5">
|
||||
<AlertTriangle className="h-4 w-4 text-yellow-500 shrink-0 mt-0.5" />
|
||||
<p className="text-xs text-yellow-700 dark:text-yellow-300">
|
||||
Reverse-engineered API
|
||||
</p>
|
||||
{/* Warning Banner - Disclaimer */}
|
||||
<div className="rounded-md border border-yellow-500/50 bg-yellow-500/15 p-3 space-y-1.5">
|
||||
<div className="flex items-center gap-2">
|
||||
<AlertTriangle className="h-4 w-4 text-yellow-600 dark:text-yellow-400 shrink-0" />
|
||||
<span className="text-xs font-semibold text-yellow-800 dark:text-yellow-200">
|
||||
Unofficial API - Use at Your Own Risk
|
||||
</span>
|
||||
</div>
|
||||
<ul className="text-[11px] text-yellow-700 dark:text-yellow-300 space-y-0.5 pl-6 list-disc">
|
||||
<li>Reverse-engineered API - may break anytime</li>
|
||||
<li>Excessive use may trigger account restrictions</li>
|
||||
<li>No warranty, no responsibility from CCS</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{/* Integration Status */}
|
||||
|
||||
Reference in New Issue
Block a user