@otto-code/protocol 0.8.10 → 0.8.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/agent-queue.d.ts +87 -0
  2. package/dist/agent-queue.js +106 -0
  3. package/dist/brain.d.ts +2321 -0
  4. package/dist/brain.js +1082 -0
  5. package/dist/client-capabilities.d.ts +2 -0
  6. package/dist/client-capabilities.js +10 -0
  7. package/dist/code-intelligence.d.ts +917 -0
  8. package/dist/code-intelligence.js +699 -0
  9. package/dist/communications.d.ts +1106 -0
  10. package/dist/communications.js +384 -0
  11. package/dist/context.d.ts +787 -0
  12. package/dist/context.js +295 -0
  13. package/dist/daemon-config.d.ts +377 -0
  14. package/dist/daemon-config.js +395 -0
  15. package/dist/file-operations.d.ts +380 -0
  16. package/dist/file-operations.js +282 -0
  17. package/dist/generated/validation/ws-outbound.aot.js +54927 -48878
  18. package/dist/git-hosting.d.ts +117 -0
  19. package/dist/git-hosting.js +109 -0
  20. package/dist/git-operations.d.ts +255 -0
  21. package/dist/git-operations.js +221 -0
  22. package/dist/integration-authorization.d.ts +195 -0
  23. package/dist/integration-authorization.js +125 -0
  24. package/dist/kanban.d.ts +341 -0
  25. package/dist/kanban.js +273 -0
  26. package/dist/loop/rpc-schemas.d.ts +6 -6
  27. package/dist/meetings.d.ts +95 -0
  28. package/dist/meetings.js +57 -0
  29. package/dist/messages.d.ts +21054 -24042
  30. package/dist/messages.js +4355 -8731
  31. package/dist/orchestration.d.ts +726 -0
  32. package/dist/orchestration.js +232 -0
  33. package/dist/personality-schemas.d.ts +221 -0
  34. package/dist/personality-schemas.js +340 -0
  35. package/dist/preview.d.ts +140 -0
  36. package/dist/preview.js +98 -0
  37. package/dist/project-knowledge.d.ts +740 -0
  38. package/dist/project-knowledge.js +229 -0
  39. package/dist/project-links.d.ts +102 -0
  40. package/dist/project-links.js +62 -0
  41. package/dist/provider-config.d.ts +87 -2
  42. package/dist/provider-config.js +110 -0
  43. package/dist/refine.d.ts +93 -0
  44. package/dist/refine.js +78 -0
  45. package/dist/schedule/rpc-schemas.d.ts +47 -47
  46. package/dist/schedule/types.d.ts +13 -13
  47. package/dist/speech.d.ts +180 -0
  48. package/dist/speech.js +177 -0
  49. package/dist/storage.d.ts +79 -0
  50. package/dist/storage.js +107 -0
  51. package/dist/suggested-tasks.d.ts +106 -0
  52. package/dist/suggested-tasks.js +81 -0
  53. package/dist/terminal-compatibility.d.ts +55 -0
  54. package/dist/terminal-compatibility.js +35 -0
  55. package/dist/usage-stats.d.ts +255 -0
  56. package/dist/usage-stats.js +162 -0
  57. package/dist/validation/ws-outbound-schema-metadata.d.ts +1404 -274
  58. package/dist/worktree-ops.d.ts +81 -0
  59. package/dist/worktree-ops.js +88 -0
  60. package/package.json +1 -1
@@ -20,4 +20,121 @@ export type GitHostingCapabilities = z.infer<typeof GitHostingCapabilitiesSchema
20
20
  export declare const GIT_HOSTING_PROVIDER_IDS: ("github" | "bitbucket-cloud")[];
21
21
  export declare function isGitHostingProviderId(value: unknown): value is GitHostingProviderId;
22
22
  export declare function normalizeGitHostingProviderId(value: string | null | undefined): GitHostingProviderId | null;
23
+ export declare const HostingPrAttachmentSchema: z.ZodObject<{
24
+ type: z.ZodLiteral<"hosting_pr">;
25
+ mimeType: z.ZodLiteral<"application/otto-hosting-pr">;
26
+ provider: z.ZodString;
27
+ number: z.ZodNumber;
28
+ title: z.ZodString;
29
+ url: z.ZodString;
30
+ body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ baseRefName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ headRefName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ }, z.core.$strip>;
34
+ export declare const HostingIssueAttachmentSchema: z.ZodObject<{
35
+ type: z.ZodLiteral<"hosting_issue">;
36
+ mimeType: z.ZodLiteral<"application/otto-hosting-issue">;
37
+ provider: z.ZodString;
38
+ number: z.ZodNumber;
39
+ title: z.ZodString;
40
+ url: z.ZodString;
41
+ body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ }, z.core.$strip>;
43
+ export declare const HostingSearchKindSchema: z.ZodEnum<{
44
+ issue: "issue";
45
+ pr: "pr";
46
+ }>;
47
+ export declare const HostingSearchRequestSchema: z.ZodObject<{
48
+ type: z.ZodLiteral<"hosting.search.request">;
49
+ cwd: z.ZodString;
50
+ query: z.ZodString;
51
+ limit: z.ZodOptional<z.ZodNumber>;
52
+ kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
53
+ issue: "issue";
54
+ pr: "pr";
55
+ }>>>;
56
+ requestId: z.ZodString;
57
+ }, z.core.$strip>;
58
+ export declare const HostingAuthStatusRequestSchema: z.ZodObject<{
59
+ type: z.ZodLiteral<"hosting.auth_status.request">;
60
+ provider: z.ZodString;
61
+ requestId: z.ZodString;
62
+ }, z.core.$strip>;
63
+ export declare const HostingListRepositoriesRequestSchema: z.ZodObject<{
64
+ type: z.ZodLiteral<"hosting.list_repositories.request">;
65
+ provider: z.ZodString;
66
+ query: z.ZodOptional<z.ZodString>;
67
+ limit: z.ZodOptional<z.ZodNumber>;
68
+ requestId: z.ZodString;
69
+ }, z.core.$strip>;
70
+ export declare const HostingListOwnersRequestSchema: z.ZodObject<{
71
+ type: z.ZodLiteral<"hosting.list_owners.request">;
72
+ provider: z.ZodString;
73
+ requestId: z.ZodString;
74
+ }, z.core.$strip>;
75
+ export declare const HostingRepositorySummarySchema: z.ZodObject<{
76
+ fullName: z.ZodString;
77
+ name: z.ZodString;
78
+ owner: z.ZodString;
79
+ cloneUrl: z.ZodString;
80
+ isPrivate: z.ZodBoolean;
81
+ description: z.ZodNullable<z.ZodString>;
82
+ updatedAt: z.ZodNullable<z.ZodString>;
83
+ }, z.core.$strip>;
84
+ export declare const HostingOwnerSummarySchema: z.ZodObject<{
85
+ id: z.ZodString;
86
+ label: z.ZodString;
87
+ kind: z.ZodString;
88
+ }, z.core.$strip>;
89
+ export declare const HostingListRepositoriesResponseSchema: z.ZodObject<{
90
+ type: z.ZodLiteral<"hosting.list_repositories.response">;
91
+ payload: z.ZodObject<{
92
+ requestId: z.ZodString;
93
+ provider: z.ZodString;
94
+ repositories: z.ZodArray<z.ZodObject<{
95
+ fullName: z.ZodString;
96
+ name: z.ZodString;
97
+ owner: z.ZodString;
98
+ cloneUrl: z.ZodString;
99
+ isPrivate: z.ZodBoolean;
100
+ description: z.ZodNullable<z.ZodString>;
101
+ updatedAt: z.ZodNullable<z.ZodString>;
102
+ }, z.core.$strip>>;
103
+ error: z.ZodNullable<z.ZodString>;
104
+ }, z.core.$strip>;
105
+ }, z.core.$strip>;
106
+ export declare const HostingListOwnersResponseSchema: z.ZodObject<{
107
+ type: z.ZodLiteral<"hosting.list_owners.response">;
108
+ payload: z.ZodObject<{
109
+ requestId: z.ZodString;
110
+ provider: z.ZodString;
111
+ owners: z.ZodArray<z.ZodObject<{
112
+ id: z.ZodString;
113
+ label: z.ZodString;
114
+ kind: z.ZodString;
115
+ }, z.core.$strip>>;
116
+ error: z.ZodNullable<z.ZodString>;
117
+ }, z.core.$strip>;
118
+ }, z.core.$strip>;
119
+ export declare const HostingAuthStatusResponseSchema: z.ZodObject<{
120
+ type: z.ZodLiteral<"hosting.auth_status.response">;
121
+ payload: z.ZodObject<{
122
+ provider: z.ZodString;
123
+ authenticated: z.ZodBoolean;
124
+ error: z.ZodNullable<z.ZodString>;
125
+ requestId: z.ZodString;
126
+ }, z.core.$strip>;
127
+ }, z.core.$strip>;
128
+ export type HostingRepositorySummary = z.infer<typeof HostingRepositorySummarySchema>;
129
+ export type HostingOwnerSummary = z.infer<typeof HostingOwnerSummarySchema>;
130
+ export type HostingListRepositoriesResponse = z.infer<typeof HostingListRepositoriesResponseSchema>;
131
+ export type HostingListOwnersResponse = z.infer<typeof HostingListOwnersResponseSchema>;
132
+ export type HostingSearchKind = z.infer<typeof HostingSearchKindSchema>;
133
+ export type HostingSearchRequest = z.infer<typeof HostingSearchRequestSchema>;
134
+ export type HostingAuthStatusRequest = z.infer<typeof HostingAuthStatusRequestSchema>;
135
+ export type HostingAuthStatusResponse = z.infer<typeof HostingAuthStatusResponseSchema>;
136
+ export type HostingPrAttachment = z.infer<typeof HostingPrAttachmentSchema>;
137
+ export type HostingIssueAttachment = z.infer<typeof HostingIssueAttachmentSchema>;
138
+ export type HostingListRepositoriesRequest = z.infer<typeof HostingListRepositoriesRequestSchema>;
139
+ export type HostingListOwnersRequest = z.infer<typeof HostingListOwnersRequestSchema>;
23
140
  //# sourceMappingURL=git-hosting.d.ts.map
@@ -39,4 +39,113 @@ export function isGitHostingProviderId(value) {
39
39
  export function normalizeGitHostingProviderId(value) {
40
40
  return isGitHostingProviderId(value) ? value : null;
41
41
  }
42
+ // COMPAT(hostingAttachments): added in v0.7.6, remove after 2027-02-01.
43
+ // These were the provider-neutral successors to github_pr/github_issue. The
44
+ // forge merge replaced them with forge_change_request/forge_issue, so no
45
+ // current client sends them - they stay accepted (protocol contract) purely so
46
+ // a client from before that merge can still attach a PR or an issue. The
47
+ // daemon renders them at
48
+ // server/src/server/agent/prompt-attachments.ts; retire both halves together.
49
+ export const HostingPrAttachmentSchema = z.object({
50
+ type: z.literal("hosting_pr"),
51
+ mimeType: z.literal("application/otto-hosting-pr"),
52
+ provider: GitHostingProviderIdWireSchema,
53
+ number: z.number().int().positive(),
54
+ title: z.string(),
55
+ url: z.string(),
56
+ body: z.string().nullable().optional(),
57
+ baseRefName: z.string().nullable().optional(),
58
+ headRefName: z.string().nullable().optional(),
59
+ });
60
+ export const HostingIssueAttachmentSchema = z.object({
61
+ type: z.literal("hosting_issue"),
62
+ mimeType: z.literal("application/otto-hosting-issue"),
63
+ provider: GitHostingProviderIdWireSchema,
64
+ number: z.number().int().positive(),
65
+ title: z.string(),
66
+ url: z.string(),
67
+ body: z.string().nullable().optional(),
68
+ });
69
+ // Provider-neutral successor to github_search_request. Resolves the project's
70
+ // configured hosting provider from cwd. Gated by server_info
71
+ // features.gitHostingProviders.
72
+ export const HostingSearchKindSchema = z.enum(["issue", "pr"]);
73
+ export const HostingSearchRequestSchema = z.object({
74
+ type: z.literal("hosting.search.request"),
75
+ cwd: z.string(),
76
+ query: z.string(),
77
+ limit: z.number().int().min(1).max(50).optional(),
78
+ kinds: z.array(HostingSearchKindSchema).optional(),
79
+ requestId: z.string(),
80
+ });
81
+ // Reports whether a host-level provider's credentials are valid - drives the
82
+ // connection-status row in the host Git providers settings section.
83
+ export const HostingAuthStatusRequestSchema = z.object({
84
+ type: z.literal("hosting.auth_status.request"),
85
+ provider: GitHostingProviderIdWireSchema,
86
+ requestId: z.string(),
87
+ });
88
+ // Repository enumeration for the clone picker, and owner enumeration for the
89
+ // "create a new remote" form. Both are host-level (no repo cwd exists yet), so
90
+ // they address a provider directly instead of resolving one from a checkout.
91
+ export const HostingListRepositoriesRequestSchema = z.object({
92
+ type: z.literal("hosting.list_repositories.request"),
93
+ provider: GitHostingProviderIdWireSchema,
94
+ // Substring filter applied by the provider where it supports one.
95
+ query: z.string().optional(),
96
+ limit: z.number().int().min(1).max(100).optional(),
97
+ requestId: z.string(),
98
+ });
99
+ export const HostingListOwnersRequestSchema = z.object({
100
+ type: z.literal("hosting.list_owners.request"),
101
+ provider: GitHostingProviderIdWireSchema,
102
+ requestId: z.string(),
103
+ });
104
+ export const HostingRepositorySummarySchema = z.object({
105
+ // Provider-unique identifier, e.g. "owner/name" or "workspace/slug".
106
+ fullName: z.string(),
107
+ name: z.string(),
108
+ owner: z.string(),
109
+ cloneUrl: z.string(),
110
+ isPrivate: z.boolean(),
111
+ description: z.string().nullable(),
112
+ // ISO-8601. Clients sort most-recent-first when present.
113
+ updatedAt: z.string().nullable(),
114
+ });
115
+ export const HostingOwnerSummarySchema = z.object({
116
+ // Value to send back as `owner` when creating a repository.
117
+ id: z.string(),
118
+ label: z.string(),
119
+ // Open string: providers name this differently (org, workspace, team).
120
+ kind: z.string(),
121
+ });
122
+ // COMPAT(projectScaffold): added in v0.6.9.
123
+ export const HostingListRepositoriesResponseSchema = z.object({
124
+ type: z.literal("hosting.list_repositories.response"),
125
+ payload: z.object({
126
+ requestId: z.string(),
127
+ provider: GitHostingProviderIdWireSchema,
128
+ repositories: z.array(HostingRepositorySummarySchema),
129
+ error: z.string().nullable(),
130
+ }),
131
+ });
132
+ // COMPAT(projectScaffold): added in v0.6.9.
133
+ export const HostingListOwnersResponseSchema = z.object({
134
+ type: z.literal("hosting.list_owners.response"),
135
+ payload: z.object({
136
+ requestId: z.string(),
137
+ provider: GitHostingProviderIdWireSchema,
138
+ owners: z.array(HostingOwnerSummarySchema),
139
+ error: z.string().nullable(),
140
+ }),
141
+ });
142
+ export const HostingAuthStatusResponseSchema = z.object({
143
+ type: z.literal("hosting.auth_status.response"),
144
+ payload: z.object({
145
+ provider: GitHostingProviderIdWireSchema,
146
+ authenticated: z.boolean(),
147
+ error: z.string().nullable(),
148
+ requestId: z.string(),
149
+ }),
150
+ });
42
151
  //# sourceMappingURL=git-hosting.js.map
@@ -0,0 +1,255 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Otto git-operation wire schemas: the checkout.git.* commit, rollback, operation-log, blame and file-history RPCs and pushes. Fork-only capability, so it owns its schemas; messages.ts re-exports them. The checkout.git.file_* and fetch RPCs stay in messages.ts because they embed Paseo's ParsedDiffFileSchema and CheckoutErrorSchema.
4
+ */
5
+ export declare const GitOperationLogEntrySchema: z.ZodObject<{
6
+ seq: z.ZodNumber;
7
+ timestamp: z.ZodString;
8
+ level: z.ZodEnum<{
9
+ error: "error";
10
+ output: "output";
11
+ info: "info";
12
+ }>;
13
+ text: z.ZodString;
14
+ }, z.core.$strip>;
15
+ export declare const CheckoutGitGetOperationLogRequestSchema: z.ZodObject<{
16
+ type: z.ZodLiteral<"checkout.git.get_operation_log.request">;
17
+ cwd: z.ZodString;
18
+ operation: z.ZodString;
19
+ requestId: z.ZodString;
20
+ }, z.core.$strip>;
21
+ export declare const CheckoutGitGetOperationLogResponseSchema: z.ZodObject<{
22
+ type: z.ZodLiteral<"checkout.git.get_operation_log.response">;
23
+ payload: z.ZodObject<{
24
+ cwd: z.ZodString;
25
+ operation: z.ZodString;
26
+ entries: z.ZodArray<z.ZodObject<{
27
+ seq: z.ZodNumber;
28
+ timestamp: z.ZodString;
29
+ level: z.ZodEnum<{
30
+ error: "error";
31
+ output: "output";
32
+ info: "info";
33
+ }>;
34
+ text: z.ZodString;
35
+ }, z.core.$strip>>;
36
+ requestId: z.ZodString;
37
+ }, z.core.$strip>;
38
+ }, z.core.$strip>;
39
+ export declare const CheckoutGitLogAppendedNotificationSchema: z.ZodObject<{
40
+ type: z.ZodLiteral<"checkout.git.log_appended.notification">;
41
+ payload: z.ZodObject<{
42
+ cwd: z.ZodString;
43
+ operation: z.ZodString;
44
+ entries: z.ZodArray<z.ZodObject<{
45
+ seq: z.ZodNumber;
46
+ timestamp: z.ZodString;
47
+ level: z.ZodEnum<{
48
+ error: "error";
49
+ output: "output";
50
+ info: "info";
51
+ }>;
52
+ text: z.ZodString;
53
+ }, z.core.$strip>>;
54
+ }, z.core.$strip>;
55
+ }, z.core.$strip>;
56
+ export declare const CheckoutGitCommitRequestSchema: z.ZodObject<{
57
+ type: z.ZodLiteral<"checkout.git.commit.request">;
58
+ cwd: z.ZodString;
59
+ message: z.ZodString;
60
+ paths: z.ZodArray<z.ZodString>;
61
+ allowWithRunningAgents: z.ZodOptional<z.ZodBoolean>;
62
+ requestId: z.ZodString;
63
+ }, z.core.$strip>;
64
+ export declare const CheckoutGitCommitAgentRequestSchema: z.ZodObject<{
65
+ type: z.ZodLiteral<"checkout.git.commit_agent.request">;
66
+ cwd: z.ZodString;
67
+ requestId: z.ZodString;
68
+ }, z.core.$strip>;
69
+ export declare const CheckoutGitRollbackRequestSchema: z.ZodObject<{
70
+ type: z.ZodLiteral<"checkout.git.rollback.request">;
71
+ cwd: z.ZodString;
72
+ paths: z.ZodArray<z.ZodString>;
73
+ allowWithRunningAgents: z.ZodOptional<z.ZodBoolean>;
74
+ requestId: z.ZodString;
75
+ }, z.core.$strip>;
76
+ export declare const CheckoutGitCommitRunningAgentSchema: z.ZodObject<{
77
+ id: z.ZodString;
78
+ title: z.ZodNullable<z.ZodString>;
79
+ }, z.core.$strip>;
80
+ export declare const CheckoutGitCommitErrorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
81
+ kind: z.ZodLiteral<"agents_running">;
82
+ agents: z.ZodArray<z.ZodObject<{
83
+ id: z.ZodString;
84
+ title: z.ZodNullable<z.ZodString>;
85
+ }, z.core.$strip>>;
86
+ }, z.core.$strip>, z.ZodObject<{
87
+ kind: z.ZodLiteral<"identity_missing">;
88
+ missingName: z.ZodBoolean;
89
+ missingEmail: z.ZodBoolean;
90
+ }, z.core.$strip>, z.ZodObject<{
91
+ kind: z.ZodLiteral<"hook_failed">;
92
+ output: z.ZodString;
93
+ exitCode: z.ZodNullable<z.ZodNumber>;
94
+ }, z.core.$strip>, z.ZodObject<{
95
+ kind: z.ZodLiteral<"signing_failed">;
96
+ detail: z.ZodString;
97
+ }, z.core.$strip>, z.ZodObject<{
98
+ kind: z.ZodLiteral<"nothing_to_commit">;
99
+ }, z.core.$strip>, z.ZodObject<{
100
+ kind: z.ZodLiteral<"git_failed">;
101
+ detail: z.ZodString;
102
+ }, z.core.$strip>], "kind">;
103
+ export declare const CheckoutGitCommitResponseSchema: z.ZodObject<{
104
+ type: z.ZodLiteral<"checkout.git.commit.response">;
105
+ payload: z.ZodObject<{
106
+ cwd: z.ZodString;
107
+ success: z.ZodBoolean;
108
+ commitSha: z.ZodNullable<z.ZodString>;
109
+ error: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
110
+ kind: z.ZodLiteral<"agents_running">;
111
+ agents: z.ZodArray<z.ZodObject<{
112
+ id: z.ZodString;
113
+ title: z.ZodNullable<z.ZodString>;
114
+ }, z.core.$strip>>;
115
+ }, z.core.$strip>, z.ZodObject<{
116
+ kind: z.ZodLiteral<"identity_missing">;
117
+ missingName: z.ZodBoolean;
118
+ missingEmail: z.ZodBoolean;
119
+ }, z.core.$strip>, z.ZodObject<{
120
+ kind: z.ZodLiteral<"hook_failed">;
121
+ output: z.ZodString;
122
+ exitCode: z.ZodNullable<z.ZodNumber>;
123
+ }, z.core.$strip>, z.ZodObject<{
124
+ kind: z.ZodLiteral<"signing_failed">;
125
+ detail: z.ZodString;
126
+ }, z.core.$strip>, z.ZodObject<{
127
+ kind: z.ZodLiteral<"nothing_to_commit">;
128
+ }, z.core.$strip>, z.ZodObject<{
129
+ kind: z.ZodLiteral<"git_failed">;
130
+ detail: z.ZodString;
131
+ }, z.core.$strip>], "kind">>;
132
+ requestId: z.ZodString;
133
+ }, z.core.$strip>;
134
+ }, z.core.$strip>;
135
+ export declare const CommitMessageAgentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
136
+ kind: z.ZodLiteral<"personality">;
137
+ personalityId: z.ZodString;
138
+ personalityName: z.ZodString;
139
+ provider: z.ZodString;
140
+ providerLabel: z.ZodString;
141
+ model: z.ZodNullable<z.ZodString>;
142
+ modelLabel: z.ZodNullable<z.ZodString>;
143
+ }, z.core.$strip>, z.ZodObject<{
144
+ kind: z.ZodLiteral<"provider">;
145
+ provider: z.ZodString;
146
+ providerLabel: z.ZodString;
147
+ model: z.ZodNullable<z.ZodString>;
148
+ modelLabel: z.ZodNullable<z.ZodString>;
149
+ }, z.core.$strip>, z.ZodObject<{
150
+ kind: z.ZodLiteral<"none">;
151
+ }, z.core.$strip>], "kind">;
152
+ export declare const CheckoutGitCommitAgentResponseSchema: z.ZodObject<{
153
+ type: z.ZodLiteral<"checkout.git.commit_agent.response">;
154
+ payload: z.ZodObject<{
155
+ cwd: z.ZodString;
156
+ agent: z.ZodDiscriminatedUnion<[z.ZodObject<{
157
+ kind: z.ZodLiteral<"personality">;
158
+ personalityId: z.ZodString;
159
+ personalityName: z.ZodString;
160
+ provider: z.ZodString;
161
+ providerLabel: z.ZodString;
162
+ model: z.ZodNullable<z.ZodString>;
163
+ modelLabel: z.ZodNullable<z.ZodString>;
164
+ }, z.core.$strip>, z.ZodObject<{
165
+ kind: z.ZodLiteral<"provider">;
166
+ provider: z.ZodString;
167
+ providerLabel: z.ZodString;
168
+ model: z.ZodNullable<z.ZodString>;
169
+ modelLabel: z.ZodNullable<z.ZodString>;
170
+ }, z.core.$strip>, z.ZodObject<{
171
+ kind: z.ZodLiteral<"none">;
172
+ }, z.core.$strip>], "kind">;
173
+ requestId: z.ZodString;
174
+ }, z.core.$strip>;
175
+ }, z.core.$strip>;
176
+ export declare const CheckoutGitRollbackErrorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
177
+ kind: z.ZodLiteral<"nothing_to_rollback">;
178
+ }, z.core.$strip>, z.ZodObject<{
179
+ kind: z.ZodLiteral<"git_failed">;
180
+ detail: z.ZodString;
181
+ }, z.core.$strip>, z.ZodObject<{
182
+ kind: z.ZodLiteral<"agents_running">;
183
+ agents: z.ZodArray<z.ZodObject<{
184
+ id: z.ZodString;
185
+ title: z.ZodNullable<z.ZodString>;
186
+ }, z.core.$strip>>;
187
+ }, z.core.$strip>], "kind">;
188
+ export declare const CheckoutGitRollbackResponseSchema: z.ZodObject<{
189
+ type: z.ZodLiteral<"checkout.git.rollback.response">;
190
+ payload: z.ZodObject<{
191
+ cwd: z.ZodString;
192
+ success: z.ZodBoolean;
193
+ rolledBackPaths: z.ZodArray<z.ZodString>;
194
+ error: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
195
+ kind: z.ZodLiteral<"nothing_to_rollback">;
196
+ }, z.core.$strip>, z.ZodObject<{
197
+ kind: z.ZodLiteral<"git_failed">;
198
+ detail: z.ZodString;
199
+ }, z.core.$strip>, z.ZodObject<{
200
+ kind: z.ZodLiteral<"agents_running">;
201
+ agents: z.ZodArray<z.ZodObject<{
202
+ id: z.ZodString;
203
+ title: z.ZodNullable<z.ZodString>;
204
+ }, z.core.$strip>>;
205
+ }, z.core.$strip>], "kind">>;
206
+ requestId: z.ZodString;
207
+ }, z.core.$strip>;
208
+ }, z.core.$strip>;
209
+ export declare const GitFileHistoryEntrySchema: z.ZodObject<{
210
+ sha: z.ZodString;
211
+ shortSha: z.ZodString;
212
+ subject: z.ZodString;
213
+ body: z.ZodString;
214
+ authorName: z.ZodString;
215
+ authorEmail: z.ZodString;
216
+ authoredAt: z.ZodNumber;
217
+ committerName: z.ZodString;
218
+ committedAt: z.ZodNumber;
219
+ path: z.ZodString;
220
+ previousPath: z.ZodOptional<z.ZodString>;
221
+ changeKind: z.ZodOptional<z.ZodString>;
222
+ isMerge: z.ZodBoolean;
223
+ parentShas: z.ZodOptional<z.ZodArray<z.ZodString>>;
224
+ }, z.core.$strip>;
225
+ export declare const GitBlameLineSchema: z.ZodObject<{
226
+ line: z.ZodNumber;
227
+ sha: z.ZodString;
228
+ originalLine: z.ZodNumber;
229
+ }, z.core.$strip>;
230
+ export declare const GitBlameCommitSchema: z.ZodObject<{
231
+ sha: z.ZodString;
232
+ shortSha: z.ZodString;
233
+ summary: z.ZodString;
234
+ authorName: z.ZodString;
235
+ authorEmail: z.ZodString;
236
+ authoredAt: z.ZodNumber;
237
+ path: z.ZodOptional<z.ZodString>;
238
+ }, z.core.$strip>;
239
+ export type CheckoutGitCommitRequest = z.infer<typeof CheckoutGitCommitRequestSchema>;
240
+ export type CheckoutGitCommitResponse = z.infer<typeof CheckoutGitCommitResponseSchema>;
241
+ export type CheckoutGitCommitError = z.infer<typeof CheckoutGitCommitErrorSchema>;
242
+ export type CheckoutGitCommitAgentRequest = z.infer<typeof CheckoutGitCommitAgentRequestSchema>;
243
+ export type CheckoutGitCommitAgentResponse = z.infer<typeof CheckoutGitCommitAgentResponseSchema>;
244
+ export type CommitMessageAgent = z.infer<typeof CommitMessageAgentSchema>;
245
+ export type CheckoutGitRollbackRequest = z.infer<typeof CheckoutGitRollbackRequestSchema>;
246
+ export type CheckoutGitRollbackResponse = z.infer<typeof CheckoutGitRollbackResponseSchema>;
247
+ export type CheckoutGitRollbackError = z.infer<typeof CheckoutGitRollbackErrorSchema>;
248
+ export type GitFileHistoryEntry = z.infer<typeof GitFileHistoryEntrySchema>;
249
+ export type GitBlameLine = z.infer<typeof GitBlameLineSchema>;
250
+ export type GitBlameCommit = z.infer<typeof GitBlameCommitSchema>;
251
+ export type GitOperationLogEntry = z.infer<typeof GitOperationLogEntrySchema>;
252
+ export type CheckoutGitGetOperationLogRequest = z.infer<typeof CheckoutGitGetOperationLogRequestSchema>;
253
+ export type CheckoutGitGetOperationLogResponse = z.infer<typeof CheckoutGitGetOperationLogResponseSchema>;
254
+ export type CheckoutGitLogAppendedNotification = z.infer<typeof CheckoutGitLogAppendedNotificationSchema>;
255
+ //# sourceMappingURL=git-operations.d.ts.map