@agentdock/wire 0.0.81 → 0.0.91
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/dist/activityPreferences.js +1 -2
- package/dist/agentCapabilities.d.ts +2 -0
- package/dist/agentCapabilities.js +1 -199
- package/dist/agentCommonEnv.js +1 -20
- package/dist/agentInstallGuide.js +1 -81
- package/dist/bgTask.js +1 -128
- package/dist/checkpointSchemas.d.ts +142 -98
- package/dist/checkpointSchemas.js +1 -46
- package/dist/controlLevel.js +1 -11
- package/dist/edition.js +1 -13
- package/dist/envelope.d.ts +5668 -563
- package/dist/envelope.js +1 -77
- package/dist/errorMessage.js +1 -6
- package/dist/events.d.ts +2053 -324
- package/dist/events.js +1 -107
- package/dist/features.js +1 -123
- package/dist/feedback.d.ts +2 -2
- package/dist/feedback.js +1 -61
- package/dist/fileWhitelist.js +1 -189
- package/dist/inboundEvents.d.ts +531 -0
- package/dist/inboundEvents.js +1 -0
- package/dist/index.d.ts +11 -5
- package/dist/index.js +1 -73
- package/dist/interactionEvents.d.ts +153 -106
- package/dist/interactionEvents.js +1 -111
- package/dist/legacyProtocol.d.ts +512 -272
- package/dist/legacyProtocol.js +1 -30
- package/dist/license.js +1 -28
- package/dist/machine.d.ts +108 -62
- package/dist/machine.js +1 -66
- package/dist/messageMeta.d.ts +34 -28
- package/dist/messageMeta.js +1 -60
- package/dist/messages.d.ts +34900 -1862
- package/dist/messages.js +1 -35
- package/dist/notification.d.ts +48 -0
- package/dist/notification.js +1 -0
- package/dist/ops.d.ts +165 -122
- package/dist/ops.js +1 -74
- package/dist/pairing.d.ts +4 -4
- package/dist/pairing.js +1 -150
- package/dist/permissionSubject.js +1 -68
- package/dist/protocol.js +1 -7
- package/dist/rpc.d.ts +749 -189
- package/dist/rpc.js +1 -269
- package/dist/scheduledTasks.d.ts +619 -304
- package/dist/scheduledTasks.js +1 -188
- package/dist/semver.js +1 -60
- package/dist/sessionResult.d.ts +31 -17
- package/dist/sessionResult.js +1 -23
- package/dist/socketEvents.d.ts +7 -0
- package/dist/socketEvents.js +1 -55
- package/dist/sourceMetadata.d.ts +44 -0
- package/dist/sourceMetadata.js +1 -0
- package/dist/spawnError.d.ts +21 -17
- package/dist/spawnError.js +1 -31
- package/dist/stats.d.ts +73 -73
- package/dist/stats.js +1 -117
- package/dist/sync.d.ts +2165 -819
- package/dist/sync.js +1 -99
- package/dist/taskResult.js +1 -113
- package/dist/telemetry.d.ts +120 -64
- package/dist/telemetry.js +1 -115
- package/dist/utils.js +1 -2
- package/package.json +3 -2
- package/dist/activityPreferences.d.ts.map +0 -1
- package/dist/activityPreferences.js.map +0 -1
- package/dist/agentCapabilities.d.ts.map +0 -1
- package/dist/agentCapabilities.js.map +0 -1
- package/dist/agentCommonEnv.d.ts.map +0 -1
- package/dist/agentCommonEnv.js.map +0 -1
- package/dist/agentInstallGuide.d.ts.map +0 -1
- package/dist/agentInstallGuide.js.map +0 -1
- package/dist/bgTask.d.ts.map +0 -1
- package/dist/bgTask.js.map +0 -1
- package/dist/checkpointSchemas.d.ts.map +0 -1
- package/dist/checkpointSchemas.js.map +0 -1
- package/dist/controlLevel.d.ts.map +0 -1
- package/dist/controlLevel.js.map +0 -1
- package/dist/edition.d.ts.map +0 -1
- package/dist/edition.js.map +0 -1
- package/dist/envelope.d.ts.map +0 -1
- package/dist/envelope.js.map +0 -1
- package/dist/errorMessage.d.ts.map +0 -1
- package/dist/errorMessage.js.map +0 -1
- package/dist/events.d.ts.map +0 -1
- package/dist/events.js.map +0 -1
- package/dist/features.d.ts.map +0 -1
- package/dist/features.js.map +0 -1
- package/dist/feedback.d.ts.map +0 -1
- package/dist/feedback.js.map +0 -1
- package/dist/fileWhitelist.d.ts.map +0 -1
- package/dist/fileWhitelist.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/interactionEvents.d.ts.map +0 -1
- package/dist/interactionEvents.js.map +0 -1
- package/dist/legacyProtocol.d.ts.map +0 -1
- package/dist/legacyProtocol.js.map +0 -1
- package/dist/license.d.ts.map +0 -1
- package/dist/license.js.map +0 -1
- package/dist/machine.d.ts.map +0 -1
- package/dist/machine.js.map +0 -1
- package/dist/messageMeta.d.ts.map +0 -1
- package/dist/messageMeta.js.map +0 -1
- package/dist/messages.d.ts.map +0 -1
- package/dist/messages.js.map +0 -1
- package/dist/ops.d.ts.map +0 -1
- package/dist/ops.js.map +0 -1
- package/dist/pairing.d.ts.map +0 -1
- package/dist/pairing.js.map +0 -1
- package/dist/permissionSubject.d.ts.map +0 -1
- package/dist/permissionSubject.js.map +0 -1
- package/dist/protocol.d.ts.map +0 -1
- package/dist/protocol.js.map +0 -1
- package/dist/rpc.d.ts.map +0 -1
- package/dist/rpc.js.map +0 -1
- package/dist/scheduledTasks.d.ts.map +0 -1
- package/dist/scheduledTasks.js.map +0 -1
- package/dist/semver.d.ts.map +0 -1
- package/dist/semver.js.map +0 -1
- package/dist/sessionResult.d.ts.map +0 -1
- package/dist/sessionResult.js.map +0 -1
- package/dist/socketEvents.d.ts.map +0 -1
- package/dist/socketEvents.js.map +0 -1
- package/dist/spawnError.d.ts.map +0 -1
- package/dist/spawnError.js.map +0 -1
- package/dist/stats.d.ts.map +0 -1
- package/dist/stats.js.map +0 -1
- package/dist/sync.d.ts.map +0 -1
- package/dist/sync.js.map +0 -1
- package/dist/taskResult.d.ts.map +0 -1
- package/dist/taskResult.js.map +0 -1
- package/dist/telemetry.d.ts.map +0 -1
- package/dist/telemetry.js.map +0 -1
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.js.map +0 -1
|
@@ -3,7 +3,7 @@ export declare const ROLLBACK_MODES: readonly ["code", "conversation", "both"];
|
|
|
3
3
|
export type RollbackMode = (typeof ROLLBACK_MODES)[number];
|
|
4
4
|
export declare const CheckpointListParamsSchema: z.ZodObject<{
|
|
5
5
|
claudeSessionId: z.ZodString;
|
|
6
|
-
}, "
|
|
6
|
+
}, "strict", z.ZodTypeAny, {
|
|
7
7
|
claudeSessionId: string;
|
|
8
8
|
}, {
|
|
9
9
|
claudeSessionId: string;
|
|
@@ -13,53 +13,73 @@ export declare const CheckpointEntrySchema: z.ZodObject<{
|
|
|
13
13
|
timestamp: z.ZodString;
|
|
14
14
|
trackedFileCount: z.ZodNumber;
|
|
15
15
|
sequence: z.ZodNumber;
|
|
16
|
-
}, "
|
|
17
|
-
messageId:
|
|
18
|
-
timestamp:
|
|
19
|
-
trackedFileCount:
|
|
20
|
-
sequence:
|
|
21
|
-
}, {
|
|
22
|
-
messageId:
|
|
23
|
-
timestamp:
|
|
24
|
-
trackedFileCount:
|
|
25
|
-
sequence:
|
|
26
|
-
}
|
|
16
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
17
|
+
messageId: z.ZodString;
|
|
18
|
+
timestamp: z.ZodString;
|
|
19
|
+
trackedFileCount: z.ZodNumber;
|
|
20
|
+
sequence: z.ZodNumber;
|
|
21
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
22
|
+
messageId: z.ZodString;
|
|
23
|
+
timestamp: z.ZodString;
|
|
24
|
+
trackedFileCount: z.ZodNumber;
|
|
25
|
+
sequence: z.ZodNumber;
|
|
26
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
27
27
|
export declare const CheckpointListResultSchema: z.ZodObject<{
|
|
28
28
|
checkpoints: z.ZodArray<z.ZodObject<{
|
|
29
29
|
messageId: z.ZodString;
|
|
30
30
|
timestamp: z.ZodString;
|
|
31
31
|
trackedFileCount: z.ZodNumber;
|
|
32
32
|
sequence: z.ZodNumber;
|
|
33
|
-
}, "
|
|
34
|
-
messageId:
|
|
35
|
-
timestamp:
|
|
36
|
-
trackedFileCount:
|
|
37
|
-
sequence:
|
|
38
|
-
}, {
|
|
39
|
-
messageId:
|
|
40
|
-
timestamp:
|
|
41
|
-
trackedFileCount:
|
|
42
|
-
sequence:
|
|
43
|
-
}
|
|
44
|
-
}, "
|
|
45
|
-
checkpoints: {
|
|
46
|
-
messageId:
|
|
47
|
-
timestamp:
|
|
48
|
-
trackedFileCount:
|
|
49
|
-
sequence:
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
33
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
34
|
+
messageId: z.ZodString;
|
|
35
|
+
timestamp: z.ZodString;
|
|
36
|
+
trackedFileCount: z.ZodNumber;
|
|
37
|
+
sequence: z.ZodNumber;
|
|
38
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
39
|
+
messageId: z.ZodString;
|
|
40
|
+
timestamp: z.ZodString;
|
|
41
|
+
trackedFileCount: z.ZodNumber;
|
|
42
|
+
sequence: z.ZodNumber;
|
|
43
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
44
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
45
|
+
checkpoints: z.ZodArray<z.ZodObject<{
|
|
46
|
+
messageId: z.ZodString;
|
|
47
|
+
timestamp: z.ZodString;
|
|
48
|
+
trackedFileCount: z.ZodNumber;
|
|
49
|
+
sequence: z.ZodNumber;
|
|
50
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
51
|
+
messageId: z.ZodString;
|
|
52
|
+
timestamp: z.ZodString;
|
|
53
|
+
trackedFileCount: z.ZodNumber;
|
|
54
|
+
sequence: z.ZodNumber;
|
|
55
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
56
|
+
messageId: z.ZodString;
|
|
57
|
+
timestamp: z.ZodString;
|
|
58
|
+
trackedFileCount: z.ZodNumber;
|
|
59
|
+
sequence: z.ZodNumber;
|
|
60
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
61
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
62
|
+
checkpoints: z.ZodArray<z.ZodObject<{
|
|
63
|
+
messageId: z.ZodString;
|
|
64
|
+
timestamp: z.ZodString;
|
|
65
|
+
trackedFileCount: z.ZodNumber;
|
|
66
|
+
sequence: z.ZodNumber;
|
|
67
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
68
|
+
messageId: z.ZodString;
|
|
69
|
+
timestamp: z.ZodString;
|
|
70
|
+
trackedFileCount: z.ZodNumber;
|
|
71
|
+
sequence: z.ZodNumber;
|
|
72
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
73
|
+
messageId: z.ZodString;
|
|
74
|
+
timestamp: z.ZodString;
|
|
75
|
+
trackedFileCount: z.ZodNumber;
|
|
76
|
+
sequence: z.ZodNumber;
|
|
77
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
78
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
59
79
|
export declare const CheckpointDiffParamsSchema: z.ZodObject<{
|
|
60
80
|
claudeSessionId: z.ZodString;
|
|
61
81
|
messageId: z.ZodString;
|
|
62
|
-
}, "
|
|
82
|
+
}, "strict", z.ZodTypeAny, {
|
|
63
83
|
claudeSessionId: string;
|
|
64
84
|
messageId: string;
|
|
65
85
|
}, {
|
|
@@ -71,69 +91,93 @@ export declare const FileDiffEntrySchema: z.ZodObject<{
|
|
|
71
91
|
status: z.ZodEnum<["modified", "deleted", "created"]>;
|
|
72
92
|
currentSize: z.ZodNumber;
|
|
73
93
|
snapshotSize: z.ZodNumber;
|
|
74
|
-
}, "
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
currentSize:
|
|
78
|
-
snapshotSize:
|
|
79
|
-
}, {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
currentSize:
|
|
83
|
-
snapshotSize:
|
|
84
|
-
}
|
|
94
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
95
|
+
filePath: z.ZodString;
|
|
96
|
+
status: z.ZodEnum<["modified", "deleted", "created"]>;
|
|
97
|
+
currentSize: z.ZodNumber;
|
|
98
|
+
snapshotSize: z.ZodNumber;
|
|
99
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
100
|
+
filePath: z.ZodString;
|
|
101
|
+
status: z.ZodEnum<["modified", "deleted", "created"]>;
|
|
102
|
+
currentSize: z.ZodNumber;
|
|
103
|
+
snapshotSize: z.ZodNumber;
|
|
104
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
85
105
|
export declare const CheckpointDiffResultSchema: z.ZodObject<{
|
|
86
106
|
files: z.ZodArray<z.ZodObject<{
|
|
87
107
|
filePath: z.ZodString;
|
|
88
108
|
status: z.ZodEnum<["modified", "deleted", "created"]>;
|
|
89
109
|
currentSize: z.ZodNumber;
|
|
90
110
|
snapshotSize: z.ZodNumber;
|
|
91
|
-
}, "
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
currentSize:
|
|
95
|
-
snapshotSize:
|
|
96
|
-
}, {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
currentSize:
|
|
100
|
-
snapshotSize:
|
|
101
|
-
}
|
|
111
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
112
|
+
filePath: z.ZodString;
|
|
113
|
+
status: z.ZodEnum<["modified", "deleted", "created"]>;
|
|
114
|
+
currentSize: z.ZodNumber;
|
|
115
|
+
snapshotSize: z.ZodNumber;
|
|
116
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
117
|
+
filePath: z.ZodString;
|
|
118
|
+
status: z.ZodEnum<["modified", "deleted", "created"]>;
|
|
119
|
+
currentSize: z.ZodNumber;
|
|
120
|
+
snapshotSize: z.ZodNumber;
|
|
121
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
102
122
|
hasExternalChanges: z.ZodBoolean;
|
|
103
123
|
externallyModifiedFiles: z.ZodArray<z.ZodString, "many">;
|
|
104
|
-
}, "
|
|
105
|
-
files: {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
currentSize:
|
|
109
|
-
snapshotSize:
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
filePath:
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
124
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
125
|
+
files: z.ZodArray<z.ZodObject<{
|
|
126
|
+
filePath: z.ZodString;
|
|
127
|
+
status: z.ZodEnum<["modified", "deleted", "created"]>;
|
|
128
|
+
currentSize: z.ZodNumber;
|
|
129
|
+
snapshotSize: z.ZodNumber;
|
|
130
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
131
|
+
filePath: z.ZodString;
|
|
132
|
+
status: z.ZodEnum<["modified", "deleted", "created"]>;
|
|
133
|
+
currentSize: z.ZodNumber;
|
|
134
|
+
snapshotSize: z.ZodNumber;
|
|
135
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
136
|
+
filePath: z.ZodString;
|
|
137
|
+
status: z.ZodEnum<["modified", "deleted", "created"]>;
|
|
138
|
+
currentSize: z.ZodNumber;
|
|
139
|
+
snapshotSize: z.ZodNumber;
|
|
140
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
141
|
+
hasExternalChanges: z.ZodBoolean;
|
|
142
|
+
externallyModifiedFiles: z.ZodArray<z.ZodString, "many">;
|
|
143
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
144
|
+
files: z.ZodArray<z.ZodObject<{
|
|
145
|
+
filePath: z.ZodString;
|
|
146
|
+
status: z.ZodEnum<["modified", "deleted", "created"]>;
|
|
147
|
+
currentSize: z.ZodNumber;
|
|
148
|
+
snapshotSize: z.ZodNumber;
|
|
149
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
150
|
+
filePath: z.ZodString;
|
|
151
|
+
status: z.ZodEnum<["modified", "deleted", "created"]>;
|
|
152
|
+
currentSize: z.ZodNumber;
|
|
153
|
+
snapshotSize: z.ZodNumber;
|
|
154
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
155
|
+
filePath: z.ZodString;
|
|
156
|
+
status: z.ZodEnum<["modified", "deleted", "created"]>;
|
|
157
|
+
currentSize: z.ZodNumber;
|
|
158
|
+
snapshotSize: z.ZodNumber;
|
|
159
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
160
|
+
hasExternalChanges: z.ZodBoolean;
|
|
161
|
+
externallyModifiedFiles: z.ZodArray<z.ZodString, "many">;
|
|
162
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
123
163
|
export declare const CheckpointRollbackParamsSchema: z.ZodObject<{
|
|
124
164
|
claudeSessionId: z.ZodString;
|
|
125
165
|
messageId: z.ZodOptional<z.ZodString>;
|
|
126
166
|
timestamp: z.ZodOptional<z.ZodString>;
|
|
127
167
|
mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["code", "conversation", "both"]>>>;
|
|
128
168
|
force: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
129
|
-
|
|
169
|
+
/** Sent by web PWA to identify the specific tool call for rollback. */
|
|
170
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
171
|
+
}, "strict", z.ZodTypeAny, {
|
|
130
172
|
mode: "code" | "conversation" | "both";
|
|
131
173
|
claudeSessionId: string;
|
|
132
174
|
force: boolean;
|
|
175
|
+
toolCallId?: string | undefined;
|
|
133
176
|
messageId?: string | undefined;
|
|
134
177
|
timestamp?: string | undefined;
|
|
135
178
|
}, {
|
|
136
179
|
claudeSessionId: string;
|
|
180
|
+
toolCallId?: string | undefined;
|
|
137
181
|
mode?: "code" | "conversation" | "both" | undefined;
|
|
138
182
|
messageId?: string | undefined;
|
|
139
183
|
timestamp?: string | undefined;
|
|
@@ -147,23 +191,23 @@ export declare const CheckpointRollbackResultSchema: z.ZodObject<{
|
|
|
147
191
|
pivotTimestamp: z.ZodOptional<z.ZodString>;
|
|
148
192
|
pivotMessageUuid: z.ZodOptional<z.ZodString>;
|
|
149
193
|
mode: z.ZodOptional<z.ZodEnum<["code", "conversation", "both"]>>;
|
|
150
|
-
}, "
|
|
151
|
-
restoredCount:
|
|
152
|
-
deletedCount:
|
|
153
|
-
skippedFiles:
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}, {
|
|
159
|
-
restoredCount:
|
|
160
|
-
deletedCount:
|
|
161
|
-
skippedFiles:
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}
|
|
194
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
195
|
+
restoredCount: z.ZodNumber;
|
|
196
|
+
deletedCount: z.ZodNumber;
|
|
197
|
+
skippedFiles: z.ZodArray<z.ZodString, "many">;
|
|
198
|
+
truncatedMessageCount: z.ZodOptional<z.ZodNumber>;
|
|
199
|
+
pivotTimestamp: z.ZodOptional<z.ZodString>;
|
|
200
|
+
pivotMessageUuid: z.ZodOptional<z.ZodString>;
|
|
201
|
+
mode: z.ZodOptional<z.ZodEnum<["code", "conversation", "both"]>>;
|
|
202
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
203
|
+
restoredCount: z.ZodNumber;
|
|
204
|
+
deletedCount: z.ZodNumber;
|
|
205
|
+
skippedFiles: z.ZodArray<z.ZodString, "many">;
|
|
206
|
+
truncatedMessageCount: z.ZodOptional<z.ZodNumber>;
|
|
207
|
+
pivotTimestamp: z.ZodOptional<z.ZodString>;
|
|
208
|
+
pivotMessageUuid: z.ZodOptional<z.ZodString>;
|
|
209
|
+
mode: z.ZodOptional<z.ZodEnum<["code", "conversation", "both"]>>;
|
|
210
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
167
211
|
export type CheckpointListParams = z.infer<typeof CheckpointListParamsSchema>;
|
|
168
212
|
export type CheckpointListResult = z.infer<typeof CheckpointListResultSchema>;
|
|
169
213
|
export type CheckpointEntry = z.infer<typeof CheckpointEntrySchema>;
|
|
@@ -1,46 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export const ROLLBACK_MODES = ['code', 'conversation', 'both'];
|
|
3
|
-
export const CheckpointListParamsSchema = z.object({
|
|
4
|
-
claudeSessionId: z.string().min(1),
|
|
5
|
-
});
|
|
6
|
-
export const CheckpointEntrySchema = z.object({
|
|
7
|
-
messageId: z.string(),
|
|
8
|
-
timestamp: z.string(),
|
|
9
|
-
trackedFileCount: z.number().int().nonnegative(),
|
|
10
|
-
sequence: z.number().int().nonnegative(),
|
|
11
|
-
});
|
|
12
|
-
export const CheckpointListResultSchema = z.object({
|
|
13
|
-
checkpoints: z.array(CheckpointEntrySchema),
|
|
14
|
-
});
|
|
15
|
-
export const CheckpointDiffParamsSchema = z.object({
|
|
16
|
-
claudeSessionId: z.string().min(1),
|
|
17
|
-
messageId: z.string().min(1),
|
|
18
|
-
});
|
|
19
|
-
export const FileDiffEntrySchema = z.object({
|
|
20
|
-
filePath: z.string(),
|
|
21
|
-
status: z.enum(['modified', 'deleted', 'created']),
|
|
22
|
-
currentSize: z.number().int().nonnegative(),
|
|
23
|
-
snapshotSize: z.number().int().nonnegative(),
|
|
24
|
-
});
|
|
25
|
-
export const CheckpointDiffResultSchema = z.object({
|
|
26
|
-
files: z.array(FileDiffEntrySchema),
|
|
27
|
-
hasExternalChanges: z.boolean(),
|
|
28
|
-
externallyModifiedFiles: z.array(z.string()),
|
|
29
|
-
});
|
|
30
|
-
export const CheckpointRollbackParamsSchema = z.object({
|
|
31
|
-
claudeSessionId: z.string().min(1),
|
|
32
|
-
messageId: z.string().min(1).optional(),
|
|
33
|
-
timestamp: z.string().optional(),
|
|
34
|
-
mode: z.enum(ROLLBACK_MODES).optional().default('code'),
|
|
35
|
-
force: z.boolean().optional().default(false),
|
|
36
|
-
});
|
|
37
|
-
export const CheckpointRollbackResultSchema = z.object({
|
|
38
|
-
restoredCount: z.number().int().nonnegative(),
|
|
39
|
-
deletedCount: z.number().int().nonnegative(),
|
|
40
|
-
skippedFiles: z.array(z.string()),
|
|
41
|
-
truncatedMessageCount: z.number().int().nonnegative().optional(),
|
|
42
|
-
pivotTimestamp: z.string().optional(),
|
|
43
|
-
pivotMessageUuid: z.string().optional(),
|
|
44
|
-
mode: z.enum(ROLLBACK_MODES).optional(),
|
|
45
|
-
});
|
|
46
|
-
//# sourceMappingURL=checkpointSchemas.js.map
|
|
1
|
+
"use strict";import{z as e}from"zod";export const ROLLBACK_MODES=["code","conversation","both"];const t=256;export const CheckpointListParamsSchema=e.object({claudeSessionId:e.string().min(1)}).strict(),CheckpointEntrySchema=e.object({messageId:e.string(),timestamp:e.string(),trackedFileCount:e.number().int().nonnegative(),sequence:e.number().int().nonnegative()}).passthrough(),CheckpointListResultSchema=e.object({checkpoints:e.array(CheckpointEntrySchema)}).passthrough(),CheckpointDiffParamsSchema=e.object({claudeSessionId:e.string().min(1),messageId:e.string().min(1)}).strict(),FileDiffEntrySchema=e.object({filePath:e.string(),status:e.enum(["modified","deleted","created"]),currentSize:e.number().int().nonnegative(),snapshotSize:e.number().int().nonnegative()}).passthrough(),CheckpointDiffResultSchema=e.object({files:e.array(FileDiffEntrySchema),hasExternalChanges:e.boolean(),externallyModifiedFiles:e.array(e.string())}).passthrough(),CheckpointRollbackParamsSchema=e.object({claudeSessionId:e.string().min(1).max(t),messageId:e.string().min(1).max(t).optional(),timestamp:e.string().max(t).optional(),mode:e.enum(ROLLBACK_MODES).optional().default("code"),force:e.boolean().optional().default(!1),toolCallId:e.string().max(t).optional()}).strict(),CheckpointRollbackResultSchema=e.object({restoredCount:e.number().int().nonnegative(),deletedCount:e.number().int().nonnegative(),skippedFiles:e.array(e.string()),truncatedMessageCount:e.number().int().nonnegative().optional(),pivotTimestamp:e.string().optional(),pivotMessageUuid:e.string().optional(),mode:e.enum(ROLLBACK_MODES).optional()}).passthrough();
|
package/dist/controlLevel.js
CHANGED
|
@@ -1,11 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
/**
|
|
3
|
-
* Control depth level for CLI tools.
|
|
4
|
-
*
|
|
5
|
-
* Level 3: Full control — bidirectional ACP, per-tool permissions, resume (Claude Code, OpenCode)
|
|
6
|
-
* Level 2: High control — JSONL + resume + pre-configured permissions (Codex CLI)
|
|
7
|
-
* Level 1: Read-only monitoring — JSONL + no resume + binary permissions (Gemini, Qwen)
|
|
8
|
-
* Level 0: Minimal — plain text + no multi-turn (Aider, not recommended)
|
|
9
|
-
*/
|
|
10
|
-
export const ControlLevel = z.union([z.literal(3), z.literal(2), z.literal(1), z.literal(0)]);
|
|
11
|
-
//# sourceMappingURL=controlLevel.js.map
|
|
1
|
+
"use strict";import{z as l}from"zod";export const ControlLevel=l.union([l.literal(3),l.literal(2),l.literal(1),l.literal(0)]);
|
package/dist/edition.js
CHANGED
|
@@ -1,13 +1 @@
|
|
|
1
|
-
export const EDITIONS
|
|
2
|
-
export function getEdition() {
|
|
3
|
-
const raw = process.env['EDITION'] || 'personal';
|
|
4
|
-
const found = EDITIONS.find((e) => e === raw);
|
|
5
|
-
if (!found) {
|
|
6
|
-
throw new Error(`Invalid EDITION="${raw}". Must be one of: ${EDITIONS.join(', ')}`);
|
|
7
|
-
}
|
|
8
|
-
return found;
|
|
9
|
-
}
|
|
10
|
-
export function isEnterprise() {
|
|
11
|
-
return getEdition() === 'enterprise';
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=edition.js.map
|
|
1
|
+
"use strict";export const EDITIONS=["personal","enterprise"];export function getEdition(){const n=process.env.EDITION||"personal",e=EDITIONS.find(r=>r===n);if(!e)throw new Error(`Invalid EDITION="${n}". Must be one of: ${EDITIONS.join(", ")}`);return e}export function isEnterprise(){return getEdition()==="enterprise"}
|