mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-03 05:19:21 +00:00
fix(agy): align responsibility flow with issue #509
- replace issue #622/#619 references with issue #509 across CLI and dashboard - shorten acknowledgement phrase to "I ACCEPT AGY RISK" for faster typing - rename acknowledgement payload field to reviewedIssue509 and update tests
This commit is contained in:
1 parent
d3c271ab2c
commit
3148014c6c
7 files changed
+28
-44
No files matched your search
@@ -25,7 +25,7 @@ export function AccountSafetyWarningCard({
|
||||
|
||||
const title = isAgy ? 'Antigravity OAuth Risk' : 'Account Safety Warning';
|
||||
const subtitle = isAgy
|
||||
? 'Issue #622 · Third-party OAuth ban risk'
|
||||
? 'Issue #509 · Third-party OAuth ban risk'
|
||||
: 'Issue #509 · Shared Gemini + AGY account risk';
|
||||
const firstLine = isAgy ? (
|
||||
<>
|
||||
@@ -43,10 +43,8 @@ export function AccountSafetyWarningCard({
|
||||
) : (
|
||||
<>If you want to keep Google AI access, do not continue this shared-account setup.</>
|
||||
);
|
||||
const issueUrl = isAgy
|
||||
? 'https://github.com/kaitranntt/ccs/issues/622'
|
||||
: 'https://github.com/kaitranntt/ccs/issues/509';
|
||||
const issueLabel = isAgy ? 'Read issue #622' : 'Read issue #509';
|
||||
const issueUrl = 'https://github.com/kaitranntt/ccs/issues/509';
|
||||
const issueLabel = 'Read issue #509';
|
||||
|
||||
return (
|
||||
<section
|
||||
|
||||
@@ -22,7 +22,7 @@ export function AntigravityResponsibilityChecklist({
|
||||
disabled = false,
|
||||
}: AntigravityResponsibilityChecklistProps) {
|
||||
const completedSteps = [
|
||||
value.reviewedIssue622,
|
||||
value.reviewedIssue509,
|
||||
value.understandsBanRisk,
|
||||
value.acceptsFullResponsibility,
|
||||
value.typedPhrase.trim().replace(/\s+/g, ' ').toUpperCase() === ANTIGRAVITY_ACK_PHRASE,
|
||||
@@ -73,12 +73,12 @@ export function AntigravityResponsibilityChecklist({
|
||||
<div className="flex items-start gap-2">
|
||||
<Checkbox
|
||||
id="agy-step-reviewed-issue"
|
||||
checked={value.reviewedIssue622}
|
||||
onCheckedChange={(checked) => setValue({ reviewedIssue622: Boolean(checked) })}
|
||||
checked={value.reviewedIssue509}
|
||||
onCheckedChange={(checked) => setValue({ reviewedIssue509: Boolean(checked) })}
|
||||
disabled={disabled}
|
||||
/>
|
||||
<Label htmlFor="agy-step-reviewed-issue" className="text-xs leading-5">
|
||||
Step 1: I reviewed issue #622 and understand Antigravity OAuth can trigger account
|
||||
Step 1: I reviewed issue #509 and understand AGY OAuth can trigger account
|
||||
bans/suspensions.
|
||||
</Label>
|
||||
</div>
|
||||
@@ -128,21 +128,12 @@ export function AntigravityResponsibilityChecklist({
|
||||
|
||||
<div className="flex flex-wrap items-center gap-2 text-xs">
|
||||
<a
|
||||
href="https://github.com/kaitranntt/ccs/issues/622"
|
||||
href="https://github.com/kaitranntt/ccs/issues/509"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className="inline-flex items-center gap-1.5 rounded-md border border-rose-500/30 bg-rose-500/10 px-2.5 py-1 font-medium text-rose-800 transition-colors hover:bg-rose-500/15 dark:text-rose-200"
|
||||
>
|
||||
Read issue #622
|
||||
<ExternalLink className="h-3.5 w-3.5" />
|
||||
</a>
|
||||
<a
|
||||
href="https://github.com/kaitranntt/ccs/issues/619"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className="inline-flex items-center gap-1.5 rounded-md border border-amber-500/30 bg-amber-500/10 px-2.5 py-1 font-medium text-amber-800 transition-colors hover:bg-amber-500/15 dark:text-amber-200"
|
||||
>
|
||||
Related issue #619
|
||||
Read issue #509
|
||||
<ExternalLink className="h-3.5 w-3.5" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
export const ANTIGRAVITY_ACK_VERSION = '2026-02-24-antigravity-oauth-v1';
|
||||
export const ANTIGRAVITY_ACK_PHRASE = 'I ACCEPT FULL RESPONSIBILITY';
|
||||
export const ANTIGRAVITY_ACK_VERSION = '2026-02-24-antigravity-oauth-v2';
|
||||
export const ANTIGRAVITY_ACK_PHRASE = 'I ACCEPT AGY RISK';
|
||||
|
||||
export interface AntigravityRiskChecklistValue {
|
||||
reviewedIssue622: boolean;
|
||||
reviewedIssue509: boolean;
|
||||
understandsBanRisk: boolean;
|
||||
acceptsFullResponsibility: boolean;
|
||||
typedPhrase: string;
|
||||
}
|
||||
|
||||
export const DEFAULT_ANTIGRAVITY_RISK_CHECKLIST: AntigravityRiskChecklistValue = {
|
||||
reviewedIssue622: false,
|
||||
reviewedIssue509: false,
|
||||
understandsBanRisk: false,
|
||||
acceptsFullResponsibility: false,
|
||||
typedPhrase: '',
|
||||
@@ -17,7 +17,7 @@ export const DEFAULT_ANTIGRAVITY_RISK_CHECKLIST: AntigravityRiskChecklistValue =
|
||||
|
||||
export function isAntigravityRiskChecklistComplete(value: AntigravityRiskChecklistValue): boolean {
|
||||
return (
|
||||
value.reviewedIssue622 &&
|
||||
value.reviewedIssue509 &&
|
||||
value.understandsBanRisk &&
|
||||
value.acceptsFullResponsibility &&
|
||||
value.typedPhrase.trim().replace(/\s+/g, ' ').toUpperCase() === ANTIGRAVITY_ACK_PHRASE
|
||||
|
||||
Reference in new issue
Block a user