mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 14:25:51 +00:00
chore: 添加脚本与构建配置更新
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -507,7 +507,7 @@ export const SDKControlGetSettingsResponseSchema = lazySchema(() =>
|
||||
model: z.string(),
|
||||
// String levels only — numeric effort is ant-only and the
|
||||
// Zod→proto generator can't emit enum∪number unions.
|
||||
effort: z.enum(['low', 'medium', 'high', 'max']).nullable(),
|
||||
effort: z.enum(['low', 'medium', 'high', 'xhigh', 'max']).nullable(),
|
||||
})
|
||||
.optional()
|
||||
.describe(
|
||||
|
||||
@@ -1058,7 +1058,7 @@ export const ModelInfoSchema = lazySchema(() =>
|
||||
.optional()
|
||||
.describe('Whether this model supports effort levels'),
|
||||
supportedEffortLevels: z
|
||||
.array(z.enum(['low', 'medium', 'high', 'max']))
|
||||
.array(z.enum(['low', 'medium', 'high', 'xhigh', 'max']))
|
||||
.optional()
|
||||
.describe('Available effort levels for this model'),
|
||||
supportsAdaptiveThinking: z
|
||||
@@ -1167,7 +1167,10 @@ export const AgentDefinitionSchema = lazySchema(() =>
|
||||
"Scope for auto-loading agent memory files. 'user' - ~/.claude/agent-memory/<agentType>/, 'project' - .claude/agent-memory/<agentType>/, 'local' - .claude/agent-memory-local/<agentType>/",
|
||||
),
|
||||
effort: z
|
||||
.union([z.enum(['low', 'medium', 'high', 'max']), z.number().int()])
|
||||
.union([
|
||||
z.enum(['low', 'medium', 'high', 'xhigh', 'max']),
|
||||
z.number().int(),
|
||||
])
|
||||
.optional()
|
||||
.describe(
|
||||
'Reasoning effort level for this agent. Either a named level or an integer',
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
// Auto-generated type stub — replace with real implementation
|
||||
export type EffortLevel = 'low' | 'medium' | 'high' | 'max';
|
||||
export type EffortLevel = 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
||||
|
||||
@@ -6,13 +6,30 @@
|
||||
export type AnyZodRawShape = Record<string, unknown>
|
||||
export type InferShape<T extends AnyZodRawShape> = { [K in keyof T]: unknown }
|
||||
|
||||
export type ForkSessionOptions = { dir?: string; upToMessageId?: string; title?: string }
|
||||
export type ForkSessionOptions = {
|
||||
dir?: string
|
||||
upToMessageId?: string
|
||||
title?: string
|
||||
}
|
||||
export type ForkSessionResult = { sessionId: string }
|
||||
export type GetSessionInfoOptions = { dir?: string }
|
||||
export type GetSessionMessagesOptions = { dir?: string; limit?: number; offset?: number; includeSystemMessages?: boolean }
|
||||
export type ListSessionsOptions = { dir?: string; limit?: number; offset?: number }
|
||||
export type GetSessionMessagesOptions = {
|
||||
dir?: string
|
||||
limit?: number
|
||||
offset?: number
|
||||
includeSystemMessages?: boolean
|
||||
}
|
||||
export type ListSessionsOptions = {
|
||||
dir?: string
|
||||
limit?: number
|
||||
offset?: number
|
||||
}
|
||||
export type SessionMutationOptions = { dir?: string }
|
||||
export type SessionMessage = { role: string; content: unknown; [key: string]: unknown }
|
||||
export type SessionMessage = {
|
||||
role: string
|
||||
content: unknown
|
||||
[key: string]: unknown
|
||||
}
|
||||
|
||||
export interface SDKSession {
|
||||
sessionId: string
|
||||
@@ -27,7 +44,9 @@ export type SDKSessionOptions = {
|
||||
[key: string]: unknown
|
||||
}
|
||||
|
||||
export interface SdkMcpToolDefinition<T extends AnyZodRawShape = AnyZodRawShape> {
|
||||
export interface SdkMcpToolDefinition<
|
||||
T extends AnyZodRawShape = AnyZodRawShape,
|
||||
> {
|
||||
name: string
|
||||
description: string
|
||||
inputSchema: T
|
||||
@@ -60,4 +79,4 @@ export interface Query {
|
||||
export interface InternalQuery extends Query {
|
||||
[key: string]: unknown
|
||||
}
|
||||
export type EffortLevel = 'low' | 'medium' | 'high' | 'max';
|
||||
export type EffortLevel = 'low' | 'medium' | 'high' | 'xhigh' | 'max'
|
||||
|
||||
Reference in New Issue
Block a user