mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 22:35:51 +00:00
feat: 问就是封包
This commit is contained in:
@@ -140,7 +140,7 @@ function AskUserQuestionPermissionRequestBody(t0) {
|
||||
$[10] = theme;
|
||||
$[11] = maxHeight;
|
||||
} else {
|
||||
maxHeight = $[11];
|
||||
maxHeight = $[11] as number;
|
||||
}
|
||||
const t3 = Math.min(Math.max(maxHeight, MIN_CONTENT_HEIGHT), maxAllowedHeight);
|
||||
const t4 = Math.max(maxWidth, MIN_CONTENT_WIDTH);
|
||||
@@ -177,7 +177,7 @@ function AskUserQuestionPermissionRequestBody(t0) {
|
||||
const pasteId = nextPasteIdRef.current;
|
||||
const newContent = {
|
||||
id: pasteId,
|
||||
type: "image",
|
||||
type: "image" as const,
|
||||
content: base64Image,
|
||||
mediaType: mediaType || "image/png",
|
||||
filename: filename || "Pasted image",
|
||||
|
||||
@@ -151,7 +151,7 @@ export function ExitPlanModePermissionRequest({
|
||||
const options = useMemo(() => buildPlanApprovalOptions({
|
||||
showClearContext,
|
||||
showUltraplan,
|
||||
usedPercent: showClearContext ? getContextUsedPercent(usage, mode) : null,
|
||||
usedPercent: showClearContext ? getContextUsedPercent(usage as any, mode) : null,
|
||||
isAutoModeAvailable,
|
||||
isBypassPermissionsModeAvailable,
|
||||
onFeedbackChange: setPlanFeedback
|
||||
|
||||
@@ -62,7 +62,7 @@ function PermissionDecisionInfoItem(t0) {
|
||||
return <Box flexDirection="column">{Array.from(decisionReason.reasons.entries()).map(t2 => {
|
||||
const [subcommand, result] = t2 as [string, { behavior: string; decisionReason?: { type: string }; suggestions?: unknown }];
|
||||
const icon = result.behavior === "allow" ? color("success", theme)(figures.tick) : color("error", theme)(figures.cross);
|
||||
return <Box flexDirection="column" key={subcommand}><Text>{icon} {subcommand}</Text>{result.decisionReason !== undefined && result.decisionReason.type !== "subcommandResults" && <Text><Text dimColor={true}>{" "}⎿{" "}</Text><Ansi>{decisionReasonDisplayString(result.decisionReason)}</Ansi></Text>}{result.behavior === "ask" && <SuggestedRules suggestions={result.suggestions} />}</Box>;
|
||||
return <Box flexDirection="column" key={subcommand}><Text>{icon} {subcommand}</Text>{result.decisionReason !== undefined && result.decisionReason.type !== "subcommandResults" && <Text><Text dimColor={true}>{" "}⎿{" "}</Text><Ansi>{decisionReasonDisplayString(result.decisionReason as any)}</Ansi></Text>}{result.behavior === "ask" && <SuggestedRules suggestions={result.suggestions} />}</Box>;
|
||||
})}</Box>;
|
||||
}
|
||||
default:
|
||||
|
||||
@@ -102,7 +102,7 @@ function SedEditPermissionRequestInner(t0) {
|
||||
const {
|
||||
oldContent,
|
||||
fileExists
|
||||
} = use(contentPromise);
|
||||
} = use(contentPromise) as any;
|
||||
let t1;
|
||||
if ($[4] !== oldContent || $[5] !== sedInfo) {
|
||||
t1 = applySedSubstitution(oldContent, sedInfo);
|
||||
|
||||
Reference in New Issue
Block a user