feat(contracts): add cursor ACP raw sources and CursorProviderStartOptions to V2 schemas
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
1 parent
418ad29423
commit
4058add69b
2 files changed
+16
No files matched your search
@@ -62,9 +62,16 @@ export const ClaudeCodeProviderStartOptions = Schema.Struct({
|
||||
});
|
||||
export type ClaudeCodeProviderStartOptions = typeof ClaudeCodeProviderStartOptions.Type;
|
||||
|
||||
export const CursorProviderStartOptions = Schema.Struct({
|
||||
binaryPath: Schema.optional(TrimmedNonEmptyStringSchema),
|
||||
authMethodId: Schema.optional(TrimmedNonEmptyStringSchema),
|
||||
});
|
||||
export type CursorProviderStartOptions = typeof CursorProviderStartOptions.Type;
|
||||
|
||||
export const ProviderStartOptions = Schema.Struct({
|
||||
codex: Schema.optional(CodexProviderStartOptions),
|
||||
claudeCode: Schema.optional(ClaudeCodeProviderStartOptions),
|
||||
cursor: Schema.optional(CursorProviderStartOptions),
|
||||
});
|
||||
export type ProviderStartOptions = typeof ProviderStartOptions.Type;
|
||||
|
||||
|
||||
@@ -25,6 +25,9 @@ export const RuntimeEventRawSource = Schema.Literals([
|
||||
"claude.sdk.message",
|
||||
"claude.sdk.permission",
|
||||
"codex.sdk.thread-event",
|
||||
"cursor.acp.notification",
|
||||
"cursor.acp.request",
|
||||
"cursor.acp.response",
|
||||
]);
|
||||
export type RuntimeEventRawSource = typeof RuntimeEventRawSource.Type;
|
||||
|
||||
@@ -94,6 +97,12 @@ export const CanonicalItemType = Schema.Literals([
|
||||
"file_change",
|
||||
"mcp_tool_call",
|
||||
"dynamic_tool_call",
|
||||
"collab_agent_tool_call",
|
||||
"web_search",
|
||||
"image_view",
|
||||
"review_entered",
|
||||
"review_exited",
|
||||
"context_compaction",
|
||||
"error",
|
||||
"unknown",
|
||||
]);
|
||||
|
||||
Reference in new issue
Block a user