@cerbur/clutch-dsh-worktree 0.1.0
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.
- package/README.md +136 -0
- package/cordis.patch.yml +5 -0
- package/lib/client/WorktreeModeAction.d.ts +11 -0
- package/lib/client/WorktreeModeAction.d.ts.map +1 -0
- package/lib/client/WorktreeModeAction.js +14 -0
- package/lib/client/WorktreeModeAction.js.map +1 -0
- package/lib/client/WorktreeSurface.d.ts +33 -0
- package/lib/client/WorktreeSurface.d.ts.map +1 -0
- package/lib/client/WorktreeSurface.js +834 -0
- package/lib/client/WorktreeSurface.js.map +1 -0
- package/lib/client/entry.d.ts +18 -0
- package/lib/client/entry.d.ts.map +1 -0
- package/lib/client/entry.js +100 -0
- package/lib/client/entry.js.map +1 -0
- package/lib/client/index.d.ts +7 -0
- package/lib/client/index.d.ts.map +1 -0
- package/lib/client/index.js +6 -0
- package/lib/client/index.js.map +1 -0
- package/lib/client/navigation.d.ts +7 -0
- package/lib/client/navigation.d.ts.map +1 -0
- package/lib/client/navigation.js +5 -0
- package/lib/client/navigation.js.map +1 -0
- package/lib/client/overlay-bounds.d.ts +11 -0
- package/lib/client/overlay-bounds.d.ts.map +1 -0
- package/lib/client/overlay-bounds.js +9 -0
- package/lib/client/overlay-bounds.js.map +1 -0
- package/lib/client/sidebar-overlay-geometry.d.ts +10 -0
- package/lib/client/sidebar-overlay-geometry.d.ts.map +1 -0
- package/lib/client/sidebar-overlay-geometry.js +96 -0
- package/lib/client/sidebar-overlay-geometry.js.map +1 -0
- package/lib/client/view-mode-store.d.ts +5 -0
- package/lib/client/view-mode-store.d.ts.map +1 -0
- package/lib/client/view-mode-store.js +15 -0
- package/lib/client/view-mode-store.js.map +1 -0
- package/lib/client/view-mode.d.ts +52 -0
- package/lib/client/view-mode.d.ts.map +1 -0
- package/lib/client/view-mode.js +76 -0
- package/lib/client/view-mode.js.map +1 -0
- package/lib/client/virtual-workspace-membership.d.ts +27 -0
- package/lib/client/virtual-workspace-membership.d.ts.map +1 -0
- package/lib/client/virtual-workspace-membership.js +95 -0
- package/lib/client/virtual-workspace-membership.js.map +1 -0
- package/lib/client/worktree-connection.d.ts +42 -0
- package/lib/client/worktree-connection.d.ts.map +1 -0
- package/lib/client/worktree-connection.js +139 -0
- package/lib/client/worktree-connection.js.map +1 -0
- package/lib/client/worktree-view.d.ts +63 -0
- package/lib/client/worktree-view.d.ts.map +1 -0
- package/lib/client/worktree-view.js +116 -0
- package/lib/client/worktree-view.js.map +1 -0
- package/lib/client.js +1952 -0
- package/lib/client.js.map +1 -0
- package/lib/contract/index.contract.d.ts +2 -0
- package/lib/contract/index.contract.d.ts.map +1 -0
- package/lib/contract/index.contract.js +51 -0
- package/lib/contract/index.contract.js.map +1 -0
- package/lib/contract/index.d.ts +181 -0
- package/lib/contract/index.d.ts.map +1 -0
- package/lib/contract/index.js +45 -0
- package/lib/contract/index.js.map +1 -0
- package/lib/host/dsh-read-adapter.d.ts +58 -0
- package/lib/host/dsh-read-adapter.d.ts.map +1 -0
- package/lib/host/dsh-read-adapter.js +59 -0
- package/lib/host/dsh-read-adapter.js.map +1 -0
- package/lib/host/index.d.ts +16 -0
- package/lib/host/index.d.ts.map +1 -0
- package/lib/host/index.js +14 -0
- package/lib/host/index.js.map +1 -0
- package/lib/host/remote.d.ts +16 -0
- package/lib/host/remote.d.ts.map +1 -0
- package/lib/host/remote.js +61 -0
- package/lib/host/remote.js.map +1 -0
- package/lib/host/service.d.ts +58 -0
- package/lib/host/service.d.ts.map +1 -0
- package/lib/host/service.js +121 -0
- package/lib/host/service.js.map +1 -0
- package/lib/index.d.ts +23 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +22 -0
- package/lib/index.js.map +1 -0
- package/lib/manage/index.d.ts +9 -0
- package/lib/manage/index.d.ts.map +1 -0
- package/lib/manage/index.js +8 -0
- package/lib/manage/index.js.map +1 -0
- package/lib/manage/manager.d.ts +86 -0
- package/lib/manage/manager.d.ts.map +1 -0
- package/lib/manage/manager.js +584 -0
- package/lib/manage/manager.js.map +1 -0
- package/lib/manage/types.d.ts +41 -0
- package/lib/manage/types.d.ts.map +1 -0
- package/lib/manage/types.js +2 -0
- package/lib/manage/types.js.map +1 -0
- package/lib/provider/git.d.ts +42 -0
- package/lib/provider/git.d.ts.map +1 -0
- package/lib/provider/git.js +222 -0
- package/lib/provider/git.js.map +1 -0
- package/lib/provider/index.d.ts +13 -0
- package/lib/provider/index.d.ts.map +1 -0
- package/lib/provider/index.js +12 -0
- package/lib/provider/index.js.map +1 -0
- package/lib/provider/sidecar.d.ts +85 -0
- package/lib/provider/sidecar.d.ts.map +1 -0
- package/lib/provider/sidecar.js +410 -0
- package/lib/provider/sidecar.js.map +1 -0
- package/lib/provider/types.d.ts +126 -0
- package/lib/provider/types.d.ts.map +1 -0
- package/lib/provider/types.js +46 -0
- package/lib/provider/types.js.map +1 -0
- package/lib/typert.host.d.ts +3 -0
- package/lib/typert.host.js +290 -0
- package/lib/typert.remote-client.d.ts +32 -0
- package/lib/typert.remote-client.d.ts.map +1 -0
- package/lib/typert.remote-client.js +284 -0
- package/package.json +118 -0
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
/* Generated by @deepseek-ai/dsh-typert-generator from FaceModel — do not edit. */
|
|
2
|
+
import { z } from 'zod'
|
|
3
|
+
|
|
4
|
+
const JsonValueRemoteCodec$schema = z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema)).readonly()])
|
|
5
|
+
const JsonValueRemoteCodec$schema2 = z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema2)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema2)).readonly()])
|
|
6
|
+
const JsonValueRemoteCodec$schema3 = z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema3)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema3)).readonly()])
|
|
7
|
+
const JsonValueRemoteCodec$schema4 = z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema4)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema4)).readonly()])
|
|
8
|
+
const JsonValueRemoteCodec$schema5 = z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema5)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema5)).readonly()])
|
|
9
|
+
const JsonValueRemoteCodec$schema6 = z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema6)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema6)).readonly()])
|
|
10
|
+
const _cerbur_clutch_dsh_worktree_worktreeManager_bindSession_parameter_0$schema = z.object({
|
|
11
|
+
'workspaceId': z.string().readonly(),
|
|
12
|
+
'worktreeId': z.string().readonly(),
|
|
13
|
+
'sessionId': z.string().readonly(),
|
|
14
|
+
})
|
|
15
|
+
const _cerbur_clutch_dsh_worktree_worktreeManager_bindSession_result$schema = z.union([z.object({
|
|
16
|
+
'ok': z.literal(false).readonly(),
|
|
17
|
+
'error': z.object({
|
|
18
|
+
'code': z.union([z.literal("WORKSPACE_NOT_FOUND"), z.literal("WORKSPACE_NOT_GIT_REPOSITORY"), z.literal("WORKTREE_REQUIRES_INITIAL_COMMIT"), z.literal("WORKTREE_BRANCH_CONFLICT"), z.literal("WORKTREE_NOT_FOUND"), z.literal("WORKTREE_REMOVED"), z.literal("SESSION_NOT_FOUND"), z.literal("SESSION_CWD_MISMATCH"), z.literal("SESSION_ALREADY_BOUND"), z.literal("SIDECAR_UNAVAILABLE"), z.literal("SIDECAR_CORRUPT"), z.literal("SIDECAR_SYNC_REQUIRED"), z.literal("GIT_OPERATION_FAILED")]).readonly(),
|
|
19
|
+
'message': z.string().readonly(),
|
|
20
|
+
'details': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema2)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema2)).readonly()])).readonly().readonly(),
|
|
21
|
+
}).readonly(),
|
|
22
|
+
}), z.object({
|
|
23
|
+
'ok': z.literal(true).readonly(),
|
|
24
|
+
'value': z.object({
|
|
25
|
+
'workspaceId': z.string().readonly(),
|
|
26
|
+
'worktreeId': z.string().readonly(),
|
|
27
|
+
'sessionId': z.string().readonly(),
|
|
28
|
+
'status': z.union([z.literal("active"), z.literal("detached")]).readonly(),
|
|
29
|
+
}).readonly(),
|
|
30
|
+
})])
|
|
31
|
+
const _cerbur_clutch_dsh_worktree_worktreeManager_createWorktree_parameter_0$schema = z.object({
|
|
32
|
+
'workspaceId': z.string().readonly(),
|
|
33
|
+
'branch': z.string().readonly(),
|
|
34
|
+
'newBranch': z.union([z.undefined(), z.string()]).readonly().optional(),
|
|
35
|
+
})
|
|
36
|
+
const _cerbur_clutch_dsh_worktree_worktreeManager_createWorktree_result$schema = z.union([z.object({
|
|
37
|
+
'ok': z.literal(false).readonly(),
|
|
38
|
+
'error': z.object({
|
|
39
|
+
'code': z.union([z.literal("WORKSPACE_NOT_FOUND"), z.literal("WORKSPACE_NOT_GIT_REPOSITORY"), z.literal("WORKTREE_REQUIRES_INITIAL_COMMIT"), z.literal("WORKTREE_BRANCH_CONFLICT"), z.literal("WORKTREE_NOT_FOUND"), z.literal("WORKTREE_REMOVED"), z.literal("SESSION_NOT_FOUND"), z.literal("SESSION_CWD_MISMATCH"), z.literal("SESSION_ALREADY_BOUND"), z.literal("SIDECAR_UNAVAILABLE"), z.literal("SIDECAR_CORRUPT"), z.literal("SIDECAR_SYNC_REQUIRED"), z.literal("GIT_OPERATION_FAILED")]).readonly(),
|
|
40
|
+
'message': z.string().readonly(),
|
|
41
|
+
'details': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema5)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema5)).readonly()])).readonly().readonly(),
|
|
42
|
+
}).readonly(),
|
|
43
|
+
}), z.object({
|
|
44
|
+
'ok': z.literal(true).readonly(),
|
|
45
|
+
'value': z.object({
|
|
46
|
+
'worktreeId': z.string().readonly(),
|
|
47
|
+
'workspaceId': z.string().readonly(),
|
|
48
|
+
'absolutePath': z.string().readonly(),
|
|
49
|
+
'branch': z.string().readonly(),
|
|
50
|
+
'status': z.union([z.literal("active"), z.literal("removed")]).readonly(),
|
|
51
|
+
'health': z.union([z.undefined(), z.literal("ready"), z.literal("repair")]).readonly().optional(),
|
|
52
|
+
}).readonly(),
|
|
53
|
+
})])
|
|
54
|
+
const _cerbur_clutch_dsh_worktree_worktreeManager_listBindings_parameter_0$schema = z.object({
|
|
55
|
+
'workspaceId': z.string().readonly(),
|
|
56
|
+
})
|
|
57
|
+
const _cerbur_clutch_dsh_worktree_worktreeManager_listBindings_result$schema = z.union([z.object({
|
|
58
|
+
'ok': z.literal(false).readonly(),
|
|
59
|
+
'error': z.object({
|
|
60
|
+
'code': z.union([z.literal("WORKSPACE_NOT_FOUND"), z.literal("WORKSPACE_NOT_GIT_REPOSITORY"), z.literal("WORKTREE_REQUIRES_INITIAL_COMMIT"), z.literal("WORKTREE_BRANCH_CONFLICT"), z.literal("WORKTREE_NOT_FOUND"), z.literal("WORKTREE_REMOVED"), z.literal("SESSION_NOT_FOUND"), z.literal("SESSION_CWD_MISMATCH"), z.literal("SESSION_ALREADY_BOUND"), z.literal("SIDECAR_UNAVAILABLE"), z.literal("SIDECAR_CORRUPT"), z.literal("SIDECAR_SYNC_REQUIRED"), z.literal("GIT_OPERATION_FAILED")]).readonly(),
|
|
61
|
+
'message': z.string().readonly(),
|
|
62
|
+
'details': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema)).readonly()])).readonly().readonly(),
|
|
63
|
+
}).readonly(),
|
|
64
|
+
}), z.object({
|
|
65
|
+
'ok': z.literal(true).readonly(),
|
|
66
|
+
'value': z.array(z.object({
|
|
67
|
+
'workspaceId': z.string().readonly(),
|
|
68
|
+
'worktreeId': z.string().readonly(),
|
|
69
|
+
'sessionId': z.string().readonly(),
|
|
70
|
+
'status': z.union([z.literal("active"), z.literal("detached")]).readonly(),
|
|
71
|
+
})).readonly(),
|
|
72
|
+
})])
|
|
73
|
+
const _cerbur_clutch_dsh_worktree_worktreeManager_listBranches_parameter_0$schema = z.object({
|
|
74
|
+
'workspaceId': z.string().readonly(),
|
|
75
|
+
})
|
|
76
|
+
const _cerbur_clutch_dsh_worktree_worktreeManager_listBranches_result$schema = z.union([z.object({
|
|
77
|
+
'ok': z.literal(false).readonly(),
|
|
78
|
+
'error': z.object({
|
|
79
|
+
'code': z.union([z.literal("WORKSPACE_NOT_FOUND"), z.literal("WORKSPACE_NOT_GIT_REPOSITORY"), z.literal("WORKTREE_REQUIRES_INITIAL_COMMIT"), z.literal("WORKTREE_BRANCH_CONFLICT"), z.literal("WORKTREE_NOT_FOUND"), z.literal("WORKTREE_REMOVED"), z.literal("SESSION_NOT_FOUND"), z.literal("SESSION_CWD_MISMATCH"), z.literal("SESSION_ALREADY_BOUND"), z.literal("SIDECAR_UNAVAILABLE"), z.literal("SIDECAR_CORRUPT"), z.literal("SIDECAR_SYNC_REQUIRED"), z.literal("GIT_OPERATION_FAILED")]).readonly(),
|
|
80
|
+
'message': z.string().readonly(),
|
|
81
|
+
'details': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema4)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema4)).readonly()])).readonly().readonly(),
|
|
82
|
+
}).readonly(),
|
|
83
|
+
}), z.object({
|
|
84
|
+
'ok': z.literal(true).readonly(),
|
|
85
|
+
'value': z.array(z.object({
|
|
86
|
+
'name': z.string().readonly(),
|
|
87
|
+
'isCurrent': z.boolean().readonly(),
|
|
88
|
+
'checkedOut': z.boolean().readonly(),
|
|
89
|
+
})).readonly(),
|
|
90
|
+
})])
|
|
91
|
+
const _cerbur_clutch_dsh_worktree_worktreeManager_listWorktrees_parameter_0$schema = z.object({
|
|
92
|
+
'workspaceId': z.string().readonly(),
|
|
93
|
+
})
|
|
94
|
+
const _cerbur_clutch_dsh_worktree_worktreeManager_listWorktrees_result$schema = z.union([z.object({
|
|
95
|
+
'ok': z.literal(false).readonly(),
|
|
96
|
+
'error': z.object({
|
|
97
|
+
'code': z.union([z.literal("WORKSPACE_NOT_FOUND"), z.literal("WORKSPACE_NOT_GIT_REPOSITORY"), z.literal("WORKTREE_REQUIRES_INITIAL_COMMIT"), z.literal("WORKTREE_BRANCH_CONFLICT"), z.literal("WORKTREE_NOT_FOUND"), z.literal("WORKTREE_REMOVED"), z.literal("SESSION_NOT_FOUND"), z.literal("SESSION_CWD_MISMATCH"), z.literal("SESSION_ALREADY_BOUND"), z.literal("SIDECAR_UNAVAILABLE"), z.literal("SIDECAR_CORRUPT"), z.literal("SIDECAR_SYNC_REQUIRED"), z.literal("GIT_OPERATION_FAILED")]).readonly(),
|
|
98
|
+
'message': z.string().readonly(),
|
|
99
|
+
'details': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema3)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema3)).readonly()])).readonly().readonly(),
|
|
100
|
+
}).readonly(),
|
|
101
|
+
}), z.object({
|
|
102
|
+
'ok': z.literal(true).readonly(),
|
|
103
|
+
'value': z.array(z.object({
|
|
104
|
+
'worktreeId': z.string().readonly(),
|
|
105
|
+
'workspaceId': z.string().readonly(),
|
|
106
|
+
'absolutePath': z.string().readonly(),
|
|
107
|
+
'branch': z.string().readonly(),
|
|
108
|
+
'status': z.union([z.literal("active"), z.literal("removed")]).readonly(),
|
|
109
|
+
'health': z.union([z.undefined(), z.literal("ready"), z.literal("repair")]).readonly().optional(),
|
|
110
|
+
})).readonly(),
|
|
111
|
+
})])
|
|
112
|
+
const _cerbur_clutch_dsh_worktree_worktreeManager_removeWorktree_parameter_0$schema = z.object({
|
|
113
|
+
'workspaceId': z.string().readonly(),
|
|
114
|
+
'worktreeId': z.string().readonly(),
|
|
115
|
+
})
|
|
116
|
+
const _cerbur_clutch_dsh_worktree_worktreeManager_removeWorktree_result$schema = z.union([z.object({
|
|
117
|
+
'ok': z.literal(false).readonly(),
|
|
118
|
+
'error': z.object({
|
|
119
|
+
'code': z.union([z.literal("WORKSPACE_NOT_FOUND"), z.literal("WORKSPACE_NOT_GIT_REPOSITORY"), z.literal("WORKTREE_REQUIRES_INITIAL_COMMIT"), z.literal("WORKTREE_BRANCH_CONFLICT"), z.literal("WORKTREE_NOT_FOUND"), z.literal("WORKTREE_REMOVED"), z.literal("SESSION_NOT_FOUND"), z.literal("SESSION_CWD_MISMATCH"), z.literal("SESSION_ALREADY_BOUND"), z.literal("SIDECAR_UNAVAILABLE"), z.literal("SIDECAR_CORRUPT"), z.literal("SIDECAR_SYNC_REQUIRED"), z.literal("GIT_OPERATION_FAILED")]).readonly(),
|
|
120
|
+
'message': z.string().readonly(),
|
|
121
|
+
'details': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema6)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema6)).readonly()])).readonly().readonly(),
|
|
122
|
+
}).readonly(),
|
|
123
|
+
}), z.object({
|
|
124
|
+
'ok': z.literal(true).readonly(),
|
|
125
|
+
'value': z.literal(null).readonly(),
|
|
126
|
+
})])
|
|
127
|
+
|
|
128
|
+
export const TYPERT = {
|
|
129
|
+
package: '@cerbur/clutch-dsh-worktree',
|
|
130
|
+
face: 'host',
|
|
131
|
+
schemas: [
|
|
132
|
+
],
|
|
133
|
+
invocations: [
|
|
134
|
+
{
|
|
135
|
+
id: '@cerbur/clutch-dsh-worktree#worktreeManager/bindSession',
|
|
136
|
+
service: 'worktreeManager',
|
|
137
|
+
namespace: 'worktreeManager',
|
|
138
|
+
method: 'bindSession',
|
|
139
|
+
invocation: { kind: 'direct' },
|
|
140
|
+
parameters: [
|
|
141
|
+
{
|
|
142
|
+
name: 'input',
|
|
143
|
+
wire: 'input',
|
|
144
|
+
source: 'json',
|
|
145
|
+
codec: {
|
|
146
|
+
mode: 'strict',
|
|
147
|
+
typeSymbol: '@cerbur/clutch-dsh-worktree#worktreeManager/bindSession:input',
|
|
148
|
+
schema: _cerbur_clutch_dsh_worktree_worktreeManager_bindSession_parameter_0$schema,
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
result: {
|
|
153
|
+
mode: 'strict',
|
|
154
|
+
typeSymbol: '@cerbur/clutch-dsh-worktree/contract#WorktreeRemoteResult',
|
|
155
|
+
schema: _cerbur_clutch_dsh_worktree_worktreeManager_bindSession_result$schema,
|
|
156
|
+
},
|
|
157
|
+
sourceLocation: {"file":"packages/clutch-dsh-worktree/src/host/service.ts","line":106,"column":3},
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
id: '@cerbur/clutch-dsh-worktree#worktreeManager/createWorktree',
|
|
161
|
+
service: 'worktreeManager',
|
|
162
|
+
namespace: 'worktreeManager',
|
|
163
|
+
method: 'createWorktree',
|
|
164
|
+
invocation: { kind: 'direct' },
|
|
165
|
+
parameters: [
|
|
166
|
+
{
|
|
167
|
+
name: 'input',
|
|
168
|
+
wire: 'input',
|
|
169
|
+
source: 'json',
|
|
170
|
+
codec: {
|
|
171
|
+
mode: 'strict',
|
|
172
|
+
typeSymbol: '@cerbur/clutch-dsh-worktree#worktreeManager/createWorktree:input',
|
|
173
|
+
schema: _cerbur_clutch_dsh_worktree_worktreeManager_createWorktree_parameter_0$schema,
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
result: {
|
|
178
|
+
mode: 'strict',
|
|
179
|
+
typeSymbol: '@cerbur/clutch-dsh-worktree/contract#WorktreeRemoteResult',
|
|
180
|
+
schema: _cerbur_clutch_dsh_worktree_worktreeManager_createWorktree_result$schema,
|
|
181
|
+
},
|
|
182
|
+
sourceLocation: {"file":"packages/clutch-dsh-worktree/src/host/service.ts","line":82,"column":3},
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
id: '@cerbur/clutch-dsh-worktree#worktreeManager/listBindings',
|
|
186
|
+
service: 'worktreeManager',
|
|
187
|
+
namespace: 'worktreeManager',
|
|
188
|
+
method: 'listBindings',
|
|
189
|
+
invocation: { kind: 'direct' },
|
|
190
|
+
parameters: [
|
|
191
|
+
{
|
|
192
|
+
name: 'input',
|
|
193
|
+
wire: 'input',
|
|
194
|
+
source: 'json',
|
|
195
|
+
codec: {
|
|
196
|
+
mode: 'strict',
|
|
197
|
+
typeSymbol: '@cerbur/clutch-dsh-worktree#worktreeManager/listBindings:input',
|
|
198
|
+
schema: _cerbur_clutch_dsh_worktree_worktreeManager_listBindings_parameter_0$schema,
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
result: {
|
|
203
|
+
mode: 'strict',
|
|
204
|
+
typeSymbol: '@cerbur/clutch-dsh-worktree/contract#WorktreeRemoteResult',
|
|
205
|
+
schema: _cerbur_clutch_dsh_worktree_worktreeManager_listBindings_result$schema,
|
|
206
|
+
},
|
|
207
|
+
sourceLocation: {"file":"packages/clutch-dsh-worktree/src/host/service.ts","line":99,"column":3},
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
id: '@cerbur/clutch-dsh-worktree#worktreeManager/listBranches',
|
|
211
|
+
service: 'worktreeManager',
|
|
212
|
+
namespace: 'worktreeManager',
|
|
213
|
+
method: 'listBranches',
|
|
214
|
+
invocation: { kind: 'direct' },
|
|
215
|
+
parameters: [
|
|
216
|
+
{
|
|
217
|
+
name: 'input',
|
|
218
|
+
wire: 'input',
|
|
219
|
+
source: 'json',
|
|
220
|
+
codec: {
|
|
221
|
+
mode: 'strict',
|
|
222
|
+
typeSymbol: '@cerbur/clutch-dsh-worktree#worktreeManager/listBranches:input',
|
|
223
|
+
schema: _cerbur_clutch_dsh_worktree_worktreeManager_listBranches_parameter_0$schema,
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
result: {
|
|
228
|
+
mode: 'strict',
|
|
229
|
+
typeSymbol: '@cerbur/clutch-dsh-worktree/contract#WorktreeRemoteResult',
|
|
230
|
+
schema: _cerbur_clutch_dsh_worktree_worktreeManager_listBranches_result$schema,
|
|
231
|
+
},
|
|
232
|
+
sourceLocation: {"file":"packages/clutch-dsh-worktree/src/host/service.ts","line":75,"column":3},
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
id: '@cerbur/clutch-dsh-worktree#worktreeManager/listWorktrees',
|
|
236
|
+
service: 'worktreeManager',
|
|
237
|
+
namespace: 'worktreeManager',
|
|
238
|
+
method: 'listWorktrees',
|
|
239
|
+
invocation: { kind: 'direct' },
|
|
240
|
+
parameters: [
|
|
241
|
+
{
|
|
242
|
+
name: 'input',
|
|
243
|
+
wire: 'input',
|
|
244
|
+
source: 'json',
|
|
245
|
+
codec: {
|
|
246
|
+
mode: 'strict',
|
|
247
|
+
typeSymbol: '@cerbur/clutch-dsh-worktree#worktreeManager/listWorktrees:input',
|
|
248
|
+
schema: _cerbur_clutch_dsh_worktree_worktreeManager_listWorktrees_parameter_0$schema,
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
],
|
|
252
|
+
result: {
|
|
253
|
+
mode: 'strict',
|
|
254
|
+
typeSymbol: '@cerbur/clutch-dsh-worktree/contract#WorktreeRemoteResult',
|
|
255
|
+
schema: _cerbur_clutch_dsh_worktree_worktreeManager_listWorktrees_result$schema,
|
|
256
|
+
},
|
|
257
|
+
sourceLocation: {"file":"packages/clutch-dsh-worktree/src/host/service.ts","line":68,"column":3},
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
id: '@cerbur/clutch-dsh-worktree#worktreeManager/removeWorktree',
|
|
261
|
+
service: 'worktreeManager',
|
|
262
|
+
namespace: 'worktreeManager',
|
|
263
|
+
method: 'removeWorktree',
|
|
264
|
+
invocation: { kind: 'direct' },
|
|
265
|
+
parameters: [
|
|
266
|
+
{
|
|
267
|
+
name: 'input',
|
|
268
|
+
wire: 'input',
|
|
269
|
+
source: 'json',
|
|
270
|
+
codec: {
|
|
271
|
+
mode: 'strict',
|
|
272
|
+
typeSymbol: '@cerbur/clutch-dsh-worktree#worktreeManager/removeWorktree:input',
|
|
273
|
+
schema: _cerbur_clutch_dsh_worktree_worktreeManager_removeWorktree_parameter_0$schema,
|
|
274
|
+
},
|
|
275
|
+
},
|
|
276
|
+
],
|
|
277
|
+
result: {
|
|
278
|
+
mode: 'strict',
|
|
279
|
+
typeSymbol: '@cerbur/clutch-dsh-worktree/contract#WorktreeRemoteResult',
|
|
280
|
+
schema: _cerbur_clutch_dsh_worktree_worktreeManager_removeWorktree_result$schema,
|
|
281
|
+
},
|
|
282
|
+
sourceLocation: {"file":"packages/clutch-dsh-worktree/src/host/service.ts","line":91,"column":3},
|
|
283
|
+
},
|
|
284
|
+
],
|
|
285
|
+
model: {
|
|
286
|
+
"services": [],
|
|
287
|
+
"events": [],
|
|
288
|
+
"objects": []
|
|
289
|
+
},
|
|
290
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* Generated by @deepseek-ai/dsh-typert-generator from the Host FaceModel — do not edit. */
|
|
2
|
+
import type {
|
|
3
|
+
RemoteResult,
|
|
4
|
+
TypertRemoteContribution,
|
|
5
|
+
} from '@deepseek-ai/dsh-typert-protocol'
|
|
6
|
+
import type { BranchRecord, SessionBinding, WorktreeRecord, WorktreeRemoteResult } from '@cerbur/clutch-dsh-worktree/contract'
|
|
7
|
+
|
|
8
|
+
declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
9
|
+
interface TypertRemoteNamespace$776f726b747265654d616e61676572 {
|
|
10
|
+
bindSession: (input: { readonly workspaceId: string; readonly worktreeId: string; readonly sessionId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<SessionBinding>>>
|
|
11
|
+
createWorktree: (input: { readonly workspaceId: string; readonly branch: string; readonly newBranch?: string; }) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeRecord>>>
|
|
12
|
+
listBindings: (input: { readonly workspaceId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<readonly SessionBinding[]>>>
|
|
13
|
+
listBranches: (input: { readonly workspaceId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<readonly BranchRecord[]>>>
|
|
14
|
+
listWorktrees: (input: { readonly workspaceId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<readonly WorktreeRecord[]>>>
|
|
15
|
+
removeWorktree: (input: { readonly workspaceId: string; readonly worktreeId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
|
|
16
|
+
}
|
|
17
|
+
interface TypertRemoteMap {
|
|
18
|
+
'worktreeManager/bindSession': (input: { readonly workspaceId: string; readonly worktreeId: string; readonly sessionId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<SessionBinding>>>
|
|
19
|
+
'worktreeManager/createWorktree': (input: { readonly workspaceId: string; readonly branch: string; readonly newBranch?: string; }) => Promise<RemoteResult<WorktreeRemoteResult<WorktreeRecord>>>
|
|
20
|
+
'worktreeManager/listBindings': (input: { readonly workspaceId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<readonly SessionBinding[]>>>
|
|
21
|
+
'worktreeManager/listBranches': (input: { readonly workspaceId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<readonly BranchRecord[]>>>
|
|
22
|
+
'worktreeManager/listWorktrees': (input: { readonly workspaceId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<readonly WorktreeRecord[]>>>
|
|
23
|
+
'worktreeManager/removeWorktree': (input: { readonly workspaceId: string; readonly worktreeId: string; }) => Promise<RemoteResult<WorktreeRemoteResult<null>>>
|
|
24
|
+
}
|
|
25
|
+
interface TypertRemoteNamespaceMap {
|
|
26
|
+
'worktreeManager': TypertRemoteNamespace$776f726b747265654d616e61676572
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export declare const TYPERT_REMOTE: TypertRemoteContribution
|
|
31
|
+
export default TYPERT_REMOTE
|
|
32
|
+
//# sourceMappingURL=typert.remote-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typert.remote-client.d.ts","names":["bindSession","createWorktree","listBindings","listBranches","listWorktrees","removeWorktree"],"sources":["../src/host/service.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;IAyGEA,W;IAxBAC,c;IAiBAC,Y;IAxBAC,Y;IAPAC,a;IAuBAC,c;;;IAeAL,6B;IAxBAC,gC;IAiBAC,8B;IAxBAC,8B;IAPAC,+B;IAuBAC,gC","ignoreList":[]}
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
/* Generated by @deepseek-ai/dsh-typert-generator from the Host FaceModel — do not edit. */
|
|
2
|
+
import { z } from 'zod'
|
|
3
|
+
|
|
4
|
+
const JsonValueRemoteCodec$schema = z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema)).readonly()])
|
|
5
|
+
const JsonValueRemoteCodec$schema2 = z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema2)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema2)).readonly()])
|
|
6
|
+
const JsonValueRemoteCodec$schema3 = z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema3)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema3)).readonly()])
|
|
7
|
+
const JsonValueRemoteCodec$schema4 = z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema4)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema4)).readonly()])
|
|
8
|
+
const JsonValueRemoteCodec$schema5 = z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema5)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema5)).readonly()])
|
|
9
|
+
const JsonValueRemoteCodec$schema6 = z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema6)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema6)).readonly()])
|
|
10
|
+
const _cerbur_clutch_dsh_worktree_worktreeManager_bindSession_parameter_0$schema = z.object({
|
|
11
|
+
'workspaceId': z.string().readonly(),
|
|
12
|
+
'worktreeId': z.string().readonly(),
|
|
13
|
+
'sessionId': z.string().readonly(),
|
|
14
|
+
})
|
|
15
|
+
const _cerbur_clutch_dsh_worktree_worktreeManager_bindSession_result$schema = z.union([z.object({
|
|
16
|
+
'ok': z.literal(false).readonly(),
|
|
17
|
+
'error': z.object({
|
|
18
|
+
'code': z.union([z.literal("WORKSPACE_NOT_FOUND"), z.literal("WORKSPACE_NOT_GIT_REPOSITORY"), z.literal("WORKTREE_REQUIRES_INITIAL_COMMIT"), z.literal("WORKTREE_BRANCH_CONFLICT"), z.literal("WORKTREE_NOT_FOUND"), z.literal("WORKTREE_REMOVED"), z.literal("SESSION_NOT_FOUND"), z.literal("SESSION_CWD_MISMATCH"), z.literal("SESSION_ALREADY_BOUND"), z.literal("SIDECAR_UNAVAILABLE"), z.literal("SIDECAR_CORRUPT"), z.literal("SIDECAR_SYNC_REQUIRED"), z.literal("GIT_OPERATION_FAILED")]).readonly(),
|
|
19
|
+
'message': z.string().readonly(),
|
|
20
|
+
'details': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema2)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema2)).readonly()])).readonly().readonly(),
|
|
21
|
+
}).readonly(),
|
|
22
|
+
}), z.object({
|
|
23
|
+
'ok': z.literal(true).readonly(),
|
|
24
|
+
'value': z.object({
|
|
25
|
+
'workspaceId': z.string().readonly(),
|
|
26
|
+
'worktreeId': z.string().readonly(),
|
|
27
|
+
'sessionId': z.string().readonly(),
|
|
28
|
+
'status': z.union([z.literal("active"), z.literal("detached")]).readonly(),
|
|
29
|
+
}).readonly(),
|
|
30
|
+
})])
|
|
31
|
+
const _cerbur_clutch_dsh_worktree_worktreeManager_createWorktree_parameter_0$schema = z.object({
|
|
32
|
+
'workspaceId': z.string().readonly(),
|
|
33
|
+
'branch': z.string().readonly(),
|
|
34
|
+
'newBranch': z.union([z.undefined(), z.string()]).readonly().optional(),
|
|
35
|
+
})
|
|
36
|
+
const _cerbur_clutch_dsh_worktree_worktreeManager_createWorktree_result$schema = z.union([z.object({
|
|
37
|
+
'ok': z.literal(false).readonly(),
|
|
38
|
+
'error': z.object({
|
|
39
|
+
'code': z.union([z.literal("WORKSPACE_NOT_FOUND"), z.literal("WORKSPACE_NOT_GIT_REPOSITORY"), z.literal("WORKTREE_REQUIRES_INITIAL_COMMIT"), z.literal("WORKTREE_BRANCH_CONFLICT"), z.literal("WORKTREE_NOT_FOUND"), z.literal("WORKTREE_REMOVED"), z.literal("SESSION_NOT_FOUND"), z.literal("SESSION_CWD_MISMATCH"), z.literal("SESSION_ALREADY_BOUND"), z.literal("SIDECAR_UNAVAILABLE"), z.literal("SIDECAR_CORRUPT"), z.literal("SIDECAR_SYNC_REQUIRED"), z.literal("GIT_OPERATION_FAILED")]).readonly(),
|
|
40
|
+
'message': z.string().readonly(),
|
|
41
|
+
'details': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema5)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema5)).readonly()])).readonly().readonly(),
|
|
42
|
+
}).readonly(),
|
|
43
|
+
}), z.object({
|
|
44
|
+
'ok': z.literal(true).readonly(),
|
|
45
|
+
'value': z.object({
|
|
46
|
+
'worktreeId': z.string().readonly(),
|
|
47
|
+
'workspaceId': z.string().readonly(),
|
|
48
|
+
'absolutePath': z.string().readonly(),
|
|
49
|
+
'branch': z.string().readonly(),
|
|
50
|
+
'status': z.union([z.literal("active"), z.literal("removed")]).readonly(),
|
|
51
|
+
'health': z.union([z.undefined(), z.literal("ready"), z.literal("repair")]).readonly().optional(),
|
|
52
|
+
}).readonly(),
|
|
53
|
+
})])
|
|
54
|
+
const _cerbur_clutch_dsh_worktree_worktreeManager_listBindings_parameter_0$schema = z.object({
|
|
55
|
+
'workspaceId': z.string().readonly(),
|
|
56
|
+
})
|
|
57
|
+
const _cerbur_clutch_dsh_worktree_worktreeManager_listBindings_result$schema = z.union([z.object({
|
|
58
|
+
'ok': z.literal(false).readonly(),
|
|
59
|
+
'error': z.object({
|
|
60
|
+
'code': z.union([z.literal("WORKSPACE_NOT_FOUND"), z.literal("WORKSPACE_NOT_GIT_REPOSITORY"), z.literal("WORKTREE_REQUIRES_INITIAL_COMMIT"), z.literal("WORKTREE_BRANCH_CONFLICT"), z.literal("WORKTREE_NOT_FOUND"), z.literal("WORKTREE_REMOVED"), z.literal("SESSION_NOT_FOUND"), z.literal("SESSION_CWD_MISMATCH"), z.literal("SESSION_ALREADY_BOUND"), z.literal("SIDECAR_UNAVAILABLE"), z.literal("SIDECAR_CORRUPT"), z.literal("SIDECAR_SYNC_REQUIRED"), z.literal("GIT_OPERATION_FAILED")]).readonly(),
|
|
61
|
+
'message': z.string().readonly(),
|
|
62
|
+
'details': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema)).readonly()])).readonly().readonly(),
|
|
63
|
+
}).readonly(),
|
|
64
|
+
}), z.object({
|
|
65
|
+
'ok': z.literal(true).readonly(),
|
|
66
|
+
'value': z.array(z.object({
|
|
67
|
+
'workspaceId': z.string().readonly(),
|
|
68
|
+
'worktreeId': z.string().readonly(),
|
|
69
|
+
'sessionId': z.string().readonly(),
|
|
70
|
+
'status': z.union([z.literal("active"), z.literal("detached")]).readonly(),
|
|
71
|
+
})).readonly(),
|
|
72
|
+
})])
|
|
73
|
+
const _cerbur_clutch_dsh_worktree_worktreeManager_listBranches_parameter_0$schema = z.object({
|
|
74
|
+
'workspaceId': z.string().readonly(),
|
|
75
|
+
})
|
|
76
|
+
const _cerbur_clutch_dsh_worktree_worktreeManager_listBranches_result$schema = z.union([z.object({
|
|
77
|
+
'ok': z.literal(false).readonly(),
|
|
78
|
+
'error': z.object({
|
|
79
|
+
'code': z.union([z.literal("WORKSPACE_NOT_FOUND"), z.literal("WORKSPACE_NOT_GIT_REPOSITORY"), z.literal("WORKTREE_REQUIRES_INITIAL_COMMIT"), z.literal("WORKTREE_BRANCH_CONFLICT"), z.literal("WORKTREE_NOT_FOUND"), z.literal("WORKTREE_REMOVED"), z.literal("SESSION_NOT_FOUND"), z.literal("SESSION_CWD_MISMATCH"), z.literal("SESSION_ALREADY_BOUND"), z.literal("SIDECAR_UNAVAILABLE"), z.literal("SIDECAR_CORRUPT"), z.literal("SIDECAR_SYNC_REQUIRED"), z.literal("GIT_OPERATION_FAILED")]).readonly(),
|
|
80
|
+
'message': z.string().readonly(),
|
|
81
|
+
'details': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema4)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema4)).readonly()])).readonly().readonly(),
|
|
82
|
+
}).readonly(),
|
|
83
|
+
}), z.object({
|
|
84
|
+
'ok': z.literal(true).readonly(),
|
|
85
|
+
'value': z.array(z.object({
|
|
86
|
+
'name': z.string().readonly(),
|
|
87
|
+
'isCurrent': z.boolean().readonly(),
|
|
88
|
+
'checkedOut': z.boolean().readonly(),
|
|
89
|
+
})).readonly(),
|
|
90
|
+
})])
|
|
91
|
+
const _cerbur_clutch_dsh_worktree_worktreeManager_listWorktrees_parameter_0$schema = z.object({
|
|
92
|
+
'workspaceId': z.string().readonly(),
|
|
93
|
+
})
|
|
94
|
+
const _cerbur_clutch_dsh_worktree_worktreeManager_listWorktrees_result$schema = z.union([z.object({
|
|
95
|
+
'ok': z.literal(false).readonly(),
|
|
96
|
+
'error': z.object({
|
|
97
|
+
'code': z.union([z.literal("WORKSPACE_NOT_FOUND"), z.literal("WORKSPACE_NOT_GIT_REPOSITORY"), z.literal("WORKTREE_REQUIRES_INITIAL_COMMIT"), z.literal("WORKTREE_BRANCH_CONFLICT"), z.literal("WORKTREE_NOT_FOUND"), z.literal("WORKTREE_REMOVED"), z.literal("SESSION_NOT_FOUND"), z.literal("SESSION_CWD_MISMATCH"), z.literal("SESSION_ALREADY_BOUND"), z.literal("SIDECAR_UNAVAILABLE"), z.literal("SIDECAR_CORRUPT"), z.literal("SIDECAR_SYNC_REQUIRED"), z.literal("GIT_OPERATION_FAILED")]).readonly(),
|
|
98
|
+
'message': z.string().readonly(),
|
|
99
|
+
'details': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema3)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema3)).readonly()])).readonly().readonly(),
|
|
100
|
+
}).readonly(),
|
|
101
|
+
}), z.object({
|
|
102
|
+
'ok': z.literal(true).readonly(),
|
|
103
|
+
'value': z.array(z.object({
|
|
104
|
+
'worktreeId': z.string().readonly(),
|
|
105
|
+
'workspaceId': z.string().readonly(),
|
|
106
|
+
'absolutePath': z.string().readonly(),
|
|
107
|
+
'branch': z.string().readonly(),
|
|
108
|
+
'status': z.union([z.literal("active"), z.literal("removed")]).readonly(),
|
|
109
|
+
'health': z.union([z.undefined(), z.literal("ready"), z.literal("repair")]).readonly().optional(),
|
|
110
|
+
})).readonly(),
|
|
111
|
+
})])
|
|
112
|
+
const _cerbur_clutch_dsh_worktree_worktreeManager_removeWorktree_parameter_0$schema = z.object({
|
|
113
|
+
'workspaceId': z.string().readonly(),
|
|
114
|
+
'worktreeId': z.string().readonly(),
|
|
115
|
+
})
|
|
116
|
+
const _cerbur_clutch_dsh_worktree_worktreeManager_removeWorktree_result$schema = z.union([z.object({
|
|
117
|
+
'ok': z.literal(false).readonly(),
|
|
118
|
+
'error': z.object({
|
|
119
|
+
'code': z.union([z.literal("WORKSPACE_NOT_FOUND"), z.literal("WORKSPACE_NOT_GIT_REPOSITORY"), z.literal("WORKTREE_REQUIRES_INITIAL_COMMIT"), z.literal("WORKTREE_BRANCH_CONFLICT"), z.literal("WORKTREE_NOT_FOUND"), z.literal("WORKTREE_REMOVED"), z.literal("SESSION_NOT_FOUND"), z.literal("SESSION_CWD_MISMATCH"), z.literal("SESSION_ALREADY_BOUND"), z.literal("SIDECAR_UNAVAILABLE"), z.literal("SIDECAR_CORRUPT"), z.literal("SIDECAR_SYNC_REQUIRED"), z.literal("GIT_OPERATION_FAILED")]).readonly(),
|
|
120
|
+
'message': z.string().readonly(),
|
|
121
|
+
'details': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema6)), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema6)).readonly()])).readonly().readonly(),
|
|
122
|
+
}).readonly(),
|
|
123
|
+
}), z.object({
|
|
124
|
+
'ok': z.literal(true).readonly(),
|
|
125
|
+
'value': z.literal(null).readonly(),
|
|
126
|
+
})])
|
|
127
|
+
|
|
128
|
+
export const TYPERT_REMOTE = {
|
|
129
|
+
package: '@cerbur/clutch-dsh-worktree',
|
|
130
|
+
descriptors: [
|
|
131
|
+
{
|
|
132
|
+
id: '@cerbur/clutch-dsh-worktree#worktreeManager/bindSession',
|
|
133
|
+
service: 'worktreeManager',
|
|
134
|
+
namespace: 'worktreeManager',
|
|
135
|
+
method: 'bindSession',
|
|
136
|
+
invocation: { kind: 'direct' },
|
|
137
|
+
parameters: [
|
|
138
|
+
{
|
|
139
|
+
name: 'input',
|
|
140
|
+
wire: 'input',
|
|
141
|
+
source: 'json',
|
|
142
|
+
codec: {
|
|
143
|
+
mode: 'strict',
|
|
144
|
+
typeSymbol: '@cerbur/clutch-dsh-worktree#worktreeManager/bindSession:input',
|
|
145
|
+
schema: _cerbur_clutch_dsh_worktree_worktreeManager_bindSession_parameter_0$schema,
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
result: {
|
|
150
|
+
mode: 'strict',
|
|
151
|
+
typeSymbol: '@cerbur/clutch-dsh-worktree/contract#WorktreeRemoteResult',
|
|
152
|
+
schema: _cerbur_clutch_dsh_worktree_worktreeManager_bindSession_result$schema,
|
|
153
|
+
},
|
|
154
|
+
sourceLocation: {"file":"packages/clutch-dsh-worktree/src/host/service.ts","line":106,"column":3},
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
id: '@cerbur/clutch-dsh-worktree#worktreeManager/createWorktree',
|
|
158
|
+
service: 'worktreeManager',
|
|
159
|
+
namespace: 'worktreeManager',
|
|
160
|
+
method: 'createWorktree',
|
|
161
|
+
invocation: { kind: 'direct' },
|
|
162
|
+
parameters: [
|
|
163
|
+
{
|
|
164
|
+
name: 'input',
|
|
165
|
+
wire: 'input',
|
|
166
|
+
source: 'json',
|
|
167
|
+
codec: {
|
|
168
|
+
mode: 'strict',
|
|
169
|
+
typeSymbol: '@cerbur/clutch-dsh-worktree#worktreeManager/createWorktree:input',
|
|
170
|
+
schema: _cerbur_clutch_dsh_worktree_worktreeManager_createWorktree_parameter_0$schema,
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
result: {
|
|
175
|
+
mode: 'strict',
|
|
176
|
+
typeSymbol: '@cerbur/clutch-dsh-worktree/contract#WorktreeRemoteResult',
|
|
177
|
+
schema: _cerbur_clutch_dsh_worktree_worktreeManager_createWorktree_result$schema,
|
|
178
|
+
},
|
|
179
|
+
sourceLocation: {"file":"packages/clutch-dsh-worktree/src/host/service.ts","line":82,"column":3},
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
id: '@cerbur/clutch-dsh-worktree#worktreeManager/listBindings',
|
|
183
|
+
service: 'worktreeManager',
|
|
184
|
+
namespace: 'worktreeManager',
|
|
185
|
+
method: 'listBindings',
|
|
186
|
+
invocation: { kind: 'direct' },
|
|
187
|
+
parameters: [
|
|
188
|
+
{
|
|
189
|
+
name: 'input',
|
|
190
|
+
wire: 'input',
|
|
191
|
+
source: 'json',
|
|
192
|
+
codec: {
|
|
193
|
+
mode: 'strict',
|
|
194
|
+
typeSymbol: '@cerbur/clutch-dsh-worktree#worktreeManager/listBindings:input',
|
|
195
|
+
schema: _cerbur_clutch_dsh_worktree_worktreeManager_listBindings_parameter_0$schema,
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
],
|
|
199
|
+
result: {
|
|
200
|
+
mode: 'strict',
|
|
201
|
+
typeSymbol: '@cerbur/clutch-dsh-worktree/contract#WorktreeRemoteResult',
|
|
202
|
+
schema: _cerbur_clutch_dsh_worktree_worktreeManager_listBindings_result$schema,
|
|
203
|
+
},
|
|
204
|
+
sourceLocation: {"file":"packages/clutch-dsh-worktree/src/host/service.ts","line":99,"column":3},
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
id: '@cerbur/clutch-dsh-worktree#worktreeManager/listBranches',
|
|
208
|
+
service: 'worktreeManager',
|
|
209
|
+
namespace: 'worktreeManager',
|
|
210
|
+
method: 'listBranches',
|
|
211
|
+
invocation: { kind: 'direct' },
|
|
212
|
+
parameters: [
|
|
213
|
+
{
|
|
214
|
+
name: 'input',
|
|
215
|
+
wire: 'input',
|
|
216
|
+
source: 'json',
|
|
217
|
+
codec: {
|
|
218
|
+
mode: 'strict',
|
|
219
|
+
typeSymbol: '@cerbur/clutch-dsh-worktree#worktreeManager/listBranches:input',
|
|
220
|
+
schema: _cerbur_clutch_dsh_worktree_worktreeManager_listBranches_parameter_0$schema,
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
result: {
|
|
225
|
+
mode: 'strict',
|
|
226
|
+
typeSymbol: '@cerbur/clutch-dsh-worktree/contract#WorktreeRemoteResult',
|
|
227
|
+
schema: _cerbur_clutch_dsh_worktree_worktreeManager_listBranches_result$schema,
|
|
228
|
+
},
|
|
229
|
+
sourceLocation: {"file":"packages/clutch-dsh-worktree/src/host/service.ts","line":75,"column":3},
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
id: '@cerbur/clutch-dsh-worktree#worktreeManager/listWorktrees',
|
|
233
|
+
service: 'worktreeManager',
|
|
234
|
+
namespace: 'worktreeManager',
|
|
235
|
+
method: 'listWorktrees',
|
|
236
|
+
invocation: { kind: 'direct' },
|
|
237
|
+
parameters: [
|
|
238
|
+
{
|
|
239
|
+
name: 'input',
|
|
240
|
+
wire: 'input',
|
|
241
|
+
source: 'json',
|
|
242
|
+
codec: {
|
|
243
|
+
mode: 'strict',
|
|
244
|
+
typeSymbol: '@cerbur/clutch-dsh-worktree#worktreeManager/listWorktrees:input',
|
|
245
|
+
schema: _cerbur_clutch_dsh_worktree_worktreeManager_listWorktrees_parameter_0$schema,
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
],
|
|
249
|
+
result: {
|
|
250
|
+
mode: 'strict',
|
|
251
|
+
typeSymbol: '@cerbur/clutch-dsh-worktree/contract#WorktreeRemoteResult',
|
|
252
|
+
schema: _cerbur_clutch_dsh_worktree_worktreeManager_listWorktrees_result$schema,
|
|
253
|
+
},
|
|
254
|
+
sourceLocation: {"file":"packages/clutch-dsh-worktree/src/host/service.ts","line":68,"column":3},
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
id: '@cerbur/clutch-dsh-worktree#worktreeManager/removeWorktree',
|
|
258
|
+
service: 'worktreeManager',
|
|
259
|
+
namespace: 'worktreeManager',
|
|
260
|
+
method: 'removeWorktree',
|
|
261
|
+
invocation: { kind: 'direct' },
|
|
262
|
+
parameters: [
|
|
263
|
+
{
|
|
264
|
+
name: 'input',
|
|
265
|
+
wire: 'input',
|
|
266
|
+
source: 'json',
|
|
267
|
+
codec: {
|
|
268
|
+
mode: 'strict',
|
|
269
|
+
typeSymbol: '@cerbur/clutch-dsh-worktree#worktreeManager/removeWorktree:input',
|
|
270
|
+
schema: _cerbur_clutch_dsh_worktree_worktreeManager_removeWorktree_parameter_0$schema,
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
],
|
|
274
|
+
result: {
|
|
275
|
+
mode: 'strict',
|
|
276
|
+
typeSymbol: '@cerbur/clutch-dsh-worktree/contract#WorktreeRemoteResult',
|
|
277
|
+
schema: _cerbur_clutch_dsh_worktree_worktreeManager_removeWorktree_result$schema,
|
|
278
|
+
},
|
|
279
|
+
sourceLocation: {"file":"packages/clutch-dsh-worktree/src/host/service.ts","line":91,"column":3},
|
|
280
|
+
},
|
|
281
|
+
],
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
export default TYPERT_REMOTE
|