返回 DeepSeek-Reasonix
schema.generated.json
根目录 / internal / extension / protocol / schema.generated.json
1 {"$defs":{"ContentReadParams":{"additionalProperties":false,"properties":{"contentRef":{"minLength":1,"type":"string"},"offset":{"minimum":0,"type":"integer"}},"required":["contentRef","offset"],"type":"object"},"ContentReadResult":{"additionalProperties":false,"properties":{"contentRef":{"minLength":1,"type":"string"},"dataBase64":{"type":"string"},"encoding":{"enum":["utf8"],"type":"string"},"nextOffset":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"sha256":{"type":"string"},"totalBytes":{"minimum":0,"type":"integer"}},"required":["contentRef","dataBase64","encoding","offset","sha256","totalBytes"],"type":"object"},"EventParams":{"additionalProperties":false,"properties":{"event":{"enum":["agent.before_start","compaction.complete","compaction.prepare","context.prepare","frontend.event","input.receive","permission.decision","provider.request","provider.response","session.end","session.load","session.rotate","session.save","session.start","system_prompt.build","tool.after","tool.before"],"type":"string"},"externalized":{"items":{"$ref":"#/$defs/ExternalizedField"},"type":"array"},"payload":{"x-externalizable":true}},"required":["event","payload"],"type":"object"},"ExternalizedField":{"additionalProperties":false,"properties":{"contentRef":{"minLength":1,"type":"string"},"jsonPointer":{"minLength":1,"type":"string"},"sha256":{"type":"string"},"totalBytes":{"minimum":0,"type":"integer"}},"required":["contentRef","jsonPointer","sha256","totalBytes"],"type":"object"},"HostCapabilities":{"additionalProperties":false,"properties":{"contentRefs":{"type":"boolean"},"protocolVersion":{"minLength":1,"type":"string"},"uiHost":{"enum":["acp","desktop","headless","tui"],"type":"string"}},"required":["contentRefs","protocolVersion","uiHost"],"type":"object"},"InitializeParams":{"additionalProperties":false,"properties":{"capabilities":{"$ref":"#/$defs/HostCapabilities"},"manifest":{"$ref":"#/$defs/ManifestExpectation"},"protocolId":{"minLength":1,"type":"string"},"protocolVersion":{"minLength":1,"type":"string"},"session":{"$ref":"#/$defs/SessionContext"}},"required":["capabilities","manifest","protocolId","protocolVersion","session"],"type":"object"},"InitializeResult":{"additionalProperties":false,"properties":{"name":{"minLength":1,"type":"string"},"protocolVersion":{"minLength":1,"type":"string"},"providers":{"items":{"$ref":"#/$defs/ProviderDescriptor"},"type":"array"},"replaces":{"items":{"type":"string"},"type":"array"},"stateSchemaVersion":{"minimum":0,"type":"integer"},"subscriptions":{"items":{"type":"string"},"type":"array"},"uiActions":{"items":{"$ref":"#/$defs/UIActionDecl"},"type":"array"},"version":{"minLength":1,"type":"string"}},"required":["name","protocolVersion","stateSchemaVersion","version"],"type":"object"},"InitializedParams":{"additionalProperties":false,"properties":{},"type":"object"},"InterceptParams":{"additionalProperties":false,"properties":{"event":{"enum":["agent.before_start","compaction.complete","compaction.prepare","context.prepare","frontend.event","input.receive","permission.decision","provider.request","provider.response","session.end","session.load","session.rotate","session.save","session.start","system_prompt.build","tool.after","tool.before"],"type":"string"},"externalized":{"items":{"$ref":"#/$defs/ExternalizedField"},"type":"array"},"payload":{"x-externalizable":true},"seq":{"minimum":1,"type":"integer"},"timeoutMillis":{"minimum":0,"type":"integer"}},"required":["event","payload","seq","timeoutMillis"],"type":"object"},"InterceptResult":{"additionalProperties":false,"properties":{"decision":{"enum":["allow","block","continue","deny","replace"],"type":"string"},"externalized":{"items":{"$ref":"#/$defs/ExternalizedField"},"type":"array"},"reason":{"type":"string"},"replacement":{"x-externalizable":true}},"required":["decision"],"type":"object"},"ManifestExpectation":{"additionalProperties":false,"properties":{"capabilities":{"items":{"type":"string"},"type":"array"},"intercepts":{"items":{"type":"string"},"type":"array"},"providers":{"items":{"type":"string"},"type":"array"},"replaces":{"items":{"type":"string"},"type":"array"},"uiActions":{"items":{"type":"string"},"type":"array"}},"type":"object"},"ProviderCatalogParams":{"additionalProperties":false,"properties":{},"type":"object"},"ProviderCatalogResult":{"additionalProperties":false,"properties":{"providers":{"items":{"$ref":"#/$defs/ProviderDescriptor"},"type":"array"}},"required":["providers"],"type":"object"},"ProviderChunk":{"additionalProperties":false,"properties":{"argChars":{"minimum":0,"type":"integer"},"error":{"$ref":"#/$defs/ProviderError"},"signature":{"type":"string"},"text":{"type":"string"},"toolCall":{"$ref":"#/$defs/ProviderToolCall"},"type":{"enum":["done","error","reasoning","text","tool_call","tool_call_args_delta","tool_call_start","usage"],"type":"string"},"usage":{"$ref":"#/$defs/ProviderUsage"}},"required":["type"],"type":"object"},"ProviderDescriptor":{"additionalProperties":false,"properties":{"cacheHitPerMillion":{"minimum":0,"type":"number"},"contextWindow":{"minimum":0,"type":"integer"},"defaultEffort":{"type":"string"},"displayName":{"type":"string"},"efforts":{"items":{"type":"string"},"type":"array"},"inputPerMillion":{"minimum":0,"type":"number"},"model":{"type":"string"},"outputPerMillion":{"minimum":0,"type":"number"},"pricingCurrency":{"type":"string"},"reasoning":{"type":"boolean"},"reasoningRoundTrip":{"type":"boolean"},"ref":{"minLength":1,"type":"string"},"toolCallReasoning":{"type":"boolean"},"tools":{"type":"boolean"},"vision":{"type":"boolean"},"warnOnMissingToolCallReasoning":{"type":"boolean"}},"required":["ref"],"type":"object"},"ProviderError":{"additionalProperties":false,"properties":{"code":{"enum":["provider_failed","provider_interrupted"],"type":"string"},"message":{"minLength":1,"type":"string"}},"required":["code","message"],"type":"object"},"ProviderMessage":{"additionalProperties":false,"properties":{"content":{"type":"string","x-externalizable":true},"images":{"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"reasoning_content":{"type":"string"},"reasoning_signature":{"type":"string"},"role":{"enum":["assistant","system","tool","user"],"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"items":{"$ref":"#/$defs/ProviderToolCall"},"type":"array"}},"type":"object"},"ProviderRequest":{"additionalProperties":false,"properties":{"maxTokens":{"minimum":0,"type":"integer"},"messages":{"items":{"$ref":"#/$defs/ProviderMessage"},"type":"array"},"responseFormat":{"$ref":"#/$defs/ProviderResponseFormat"},"temperature":{"type":"number"},"tools":{"items":{"$ref":"#/$defs/ProviderToolSchema"},"type":"array"}},"required":["maxTokens","messages","tools"],"type":"object"},"ProviderResponseFormat":{"additionalProperties":false,"properties":{"type":{"minLength":1,"type":"string"}},"required":["type"],"type":"object"},"ProviderToolCall":{"additionalProperties":false,"properties":{"arguments":{"type":"string"},"id":{"minLength":1,"type":"string"},"name":{"minLength":1,"type":"string"},"thought_signature":{"type":"string"}},"required":["arguments","id","name"],"type":"object"},"ProviderToolSchema":{"additionalProperties":false,"properties":{"description":{"type":"string"},"name":{"minLength":1,"type":"string"},"parameters":true},"required":["name","parameters"],"type":"object"},"ProviderUsage":{"additionalProperties":false,"properties":{"cacheHitTokens":{"minimum":0,"type":"integer"},"cacheMissTokens":{"minimum":0,"type":"integer"},"completionTokens":{"minimum":0,"type":"integer"},"finishReason":{"type":"string"},"promptTokens":{"minimum":0,"type":"integer"},"reasoningTokens":{"minimum":0,"type":"integer"},"totalTokens":{"minimum":0,"type":"integer"}},"required":["cacheHitTokens","cacheMissTokens","completionTokens","promptTokens","reasoningTokens","totalTokens"],"type":"object"},"ResourcesChangedParams":{"additionalProperties":false,"properties":{"paths":{"items":{"type":"string"},"type":"array"}},"required":["paths"],"type":"object"},"SessionContext":{"additionalProperties":false,"properties":{"generation":{"type":"integer"},"sessionId":{"minLength":1,"type":"string"},"workspaceRoot":{"minLength":1,"type":"string"}},"required":["generation","sessionId","workspaceRoot"],"type":"object"},"ShutdownParams":{"additionalProperties":false,"properties":{"timeoutMillis":{"minimum":0,"type":"integer"}},"required":["timeoutMillis"],"type":"object"},"ShutdownResult":{"additionalProperties":false,"properties":{"accepted":{"type":"boolean"}},"required":["accepted"],"type":"object"},"StreamCancelParams":{"additionalProperties":false,"properties":{"streamId":{"minLength":1,"type":"string"}},"required":["streamId"],"type":"object"},"StreamCancelResult":{"additionalProperties":false,"properties":{"cancelled":{"type":"boolean"}},"required":["cancelled"],"type":"object"},"StreamChunkParams":{"additionalProperties":false,"properties":{"chunk":{"$ref":"#/$defs/ProviderChunk"},"seq":{"minimum":1,"type":"integer"},"streamId":{"minLength":1,"type":"string"}},"required":["chunk","seq","streamId"],"type":"object"},"StreamEndParams":{"additionalProperties":false,"properties":{"error":{"type":"string"},"interrupted":{"type":"boolean"},"lastSeq":{"minimum":0,"type":"integer"},"streamId":{"minLength":1,"type":"string"}},"required":["lastSeq","streamId"],"type":"object"},"StreamOpenParams":{"additionalProperties":false,"properties":{"effort":{"type":"string"},"model":{"type":"string"},"providerRef":{"minLength":1,"type":"string"},"request":{"$ref":"#/$defs/ProviderRequest"},"seqBase":{"minimum":0,"type":"integer"},"streamId":{"minLength":1,"type":"string"}},"required":["providerRef","request","seqBase","streamId"],"type":"object"},"StreamOpenResult":{"additionalProperties":false,"properties":{"accepted":{"type":"boolean"}},"required":["accepted"],"type":"object"},"UIActionDecl":{"additionalProperties":false,"properties":{"actionId":{"minLength":1,"type":"string"},"label":{"type":"string"}},"required":["actionId"],"type":"object"},"UIActionParams":{"additionalProperties":false,"properties":{"actionId":{"minLength":1,"type":"string"},"args":{"additionalProperties":{"type":"string"},"type":"object"},"generation":{"type":"integer"},"sessionId":{"minLength":1,"type":"string"}},"required":["actionId","generation","sessionId"],"type":"object"},"UIActionResult":{"additionalProperties":false,"properties":{"accepted":{"type":"boolean"},"message":{"type":"string"}},"required":["accepted"],"type":"object"},"UIPublishParams":{"additionalProperties":false,"properties":{"generation":{"type":"integer"},"kind":{"enum":["card","form","notification","status"],"type":"string"},"payload":true,"sessionId":{"minLength":1,"type":"string"},"surfaceId":{"minLength":1,"type":"string"}},"required":["generation","kind","payload","sessionId","surfaceId"],"type":"object"},"UIPublishResult":{"additionalProperties":false,"properties":{"accepted":{"type":"boolean"}},"required":["accepted"],"type":"object"},"UIRequestParams":{"additionalProperties":false,"properties":{"generation":{"type":"integer"},"kind":{"enum":["confirm","input","multiselect","select"],"type":"string"},"payload":true,"sessionId":{"minLength":1,"type":"string"},"surfaceId":{"minLength":1,"type":"string"}},"required":["generation","kind","payload","sessionId","surfaceId"],"type":"object"},"UIRequestResult":{"additionalProperties":false,"properties":{"cancelled":{"type":"boolean"},"values":{"additionalProperties":true,"type":"object"}},"required":["cancelled"],"type":"object"},"UISubmitParams":{"additionalProperties":false,"properties":{"generation":{"type":"integer"},"sessionId":{"minLength":1,"type":"string"},"surfaceId":{"minLength":1,"type":"string"},"values":{"additionalProperties":true,"type":"object"}},"required":["generation","sessionId","surfaceId","values"],"type":"object"},"UISubmitResult":{"additionalProperties":false,"properties":{"accepted":{"type":"boolean"}},"required":["accepted"],"type":"object"}},"$id":"reasonix.extension.v1","$schema":"https://json-schema.org/draft/2020-12/schema","errors":[{"jsonRpcCode":-32000,"message":"The extension used a capability its manifest did not declare.","reason":"capability_not_declared","retryable":false},{"jsonRpcCode":-32000,"message":"The referenced content has expired.","reason":"content_ref_expired","retryable":true},{"jsonRpcCode":-32000,"message":"The frame exceeds the frozen protocol size limit.","reason":"frame_too_large","retryable":false},{"jsonRpcCode":-32000,"message":"The extension did not answer an intercept within its timeout.","reason":"intercept_timeout","retryable":true},{"jsonRpcCode":-32603,"message":"An internal extension protocol error occurred.","reason":"internal","retryable":true},{"jsonRpcCode":-32602,"message":"The params do not match the registered method schema.","reason":"invalid_params","retryable":false},{"jsonRpcCode":-32600,"message":"The extension protocol frame or envelope is invalid.","reason":"protocol_error","retryable":false},{"jsonRpcCode":-32000,"message":"The extension provider stream failed.","reason":"provider_failed","retryable":true},{"jsonRpcCode":-32000,"message":"The extension provider stream was interrupted.","reason":"provider_interrupted","retryable":true},{"jsonRpcCode":-32000,"message":"The extension did not shut down within the requested timeout.","reason":"shutdown_timeout","retryable":true},{"jsonRpcCode":-32000,"message":"The provider stream was cancelled.","reason":"stream_cancelled","retryable":false},{"jsonRpcCode":-32000,"message":"A provider stream chunk is missing from the ordered sequence.","reason":"stream_gap","retryable":true},{"jsonRpcCode":-32601,"message":"The method is not registered in Extension Protocol v1.","reason":"unknown_method","retryable":false},{"jsonRpcCode":-32000,"message":"The peer's extension protocol version is not supported.","reason":"unsupported_version","retryable":false}],"interceptEvents":["agent.before_start","compaction.complete","compaction.prepare","context.prepare","frontend.event","input.receive","permission.decision","provider.request","provider.response","session.end","session.load","session.rotate","session.save","session.start","system_prompt.build","tool.after","tool.before"],"limits":{"contentRefChunkBytes":262144,"contentRefObjectBytes":8388608,"externalizeFieldBytes":65536,"frameBytes":8388608},"methods":{"extension/event":{"class":"observation","direction":"host_to_extension_notification","notification":true,"params":{"$ref":"#/$defs/EventParams"},"result":null},"extension/initialize":{"class":"lifecycle","direction":"host_to_extension_request","notification":false,"params":{"$ref":"#/$defs/InitializeParams"},"result":{"$ref":"#/$defs/InitializeResult"}},"extension/initialized":{"class":"lifecycle","direction":"host_to_extension_notification","notification":true,"params":{"$ref":"#/$defs/InitializedParams"},"result":null},"extension/intercept":{"class":"intercept","direction":"host_to_extension_request","notification":false,"params":{"$ref":"#/$defs/InterceptParams"},"result":{"$ref":"#/$defs/InterceptResult"}},"extension/provider/catalog":{"class":"provider","direction":"host_to_extension_request","notification":false,"params":{"$ref":"#/$defs/ProviderCatalogParams"},"result":{"$ref":"#/$defs/ProviderCatalogResult"}},"extension/provider/stream/cancel":{"class":"provider","direction":"host_to_extension_request","notification":false,"params":{"$ref":"#/$defs/StreamCancelParams"},"result":{"$ref":"#/$defs/StreamCancelResult"}},"extension/provider/stream/chunk":{"class":"provider","direction":"extension_to_host_notification","notification":true,"params":{"$ref":"#/$defs/StreamChunkParams"},"result":null},"extension/provider/stream/end":{"class":"provider","direction":"extension_to_host_notification","notification":true,"params":{"$ref":"#/$defs/StreamEndParams"},"result":null},"extension/provider/stream/open":{"class":"provider","direction":"host_to_extension_request","notification":false,"params":{"$ref":"#/$defs/StreamOpenParams"},"result":{"$ref":"#/$defs/StreamOpenResult"}},"extension/resources/changed":{"class":"observation","direction":"host_to_extension_notification","notification":true,"params":{"$ref":"#/$defs/ResourcesChangedParams"},"result":null},"extension/shutdown":{"class":"lifecycle","direction":"host_to_extension_request","notification":false,"params":{"$ref":"#/$defs/ShutdownParams"},"result":{"$ref":"#/$defs/ShutdownResult"}},"extension/ui/action":{"class":"ui","direction":"host_to_extension_request","notification":false,"params":{"$ref":"#/$defs/UIActionParams"},"result":{"$ref":"#/$defs/UIActionResult"}},"extension/ui/submit":{"class":"ui","direction":"host_to_extension_request","notification":false,"params":{"$ref":"#/$defs/UISubmitParams"},"result":{"$ref":"#/$defs/UISubmitResult"}},"host/content/read":{"class":"content","direction":"extension_to_host_request","notification":false,"params":{"$ref":"#/$defs/ContentReadParams"},"result":{"$ref":"#/$defs/ContentReadResult"}},"host/ui/publish":{"class":"ui","direction":"extension_to_host_request","notification":false,"params":{"$ref":"#/$defs/UIPublishParams"},"result":{"$ref":"#/$defs/UIPublishResult"}},"host/ui/request":{"class":"ui","direction":"extension_to_host_request","notification":false,"params":{"$ref":"#/$defs/UIRequestParams"},"result":{"$ref":"#/$defs/UIRequestResult"}}},"protocol":"reasonix.extension.v1","protocolID":"reasonix.extension.v1","protocolMajor":1,"title":"Reasonix Extension Protocol v1"}
1 lines JSON