@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.
Files changed (136) hide show
  1. package/dist/activityPreferences.js +1 -2
  2. package/dist/agentCapabilities.d.ts +2 -0
  3. package/dist/agentCapabilities.js +1 -199
  4. package/dist/agentCommonEnv.js +1 -20
  5. package/dist/agentInstallGuide.js +1 -81
  6. package/dist/bgTask.js +1 -128
  7. package/dist/checkpointSchemas.d.ts +142 -98
  8. package/dist/checkpointSchemas.js +1 -46
  9. package/dist/controlLevel.js +1 -11
  10. package/dist/edition.js +1 -13
  11. package/dist/envelope.d.ts +5668 -563
  12. package/dist/envelope.js +1 -77
  13. package/dist/errorMessage.js +1 -6
  14. package/dist/events.d.ts +2053 -324
  15. package/dist/events.js +1 -107
  16. package/dist/features.js +1 -123
  17. package/dist/feedback.d.ts +2 -2
  18. package/dist/feedback.js +1 -61
  19. package/dist/fileWhitelist.js +1 -189
  20. package/dist/inboundEvents.d.ts +531 -0
  21. package/dist/inboundEvents.js +1 -0
  22. package/dist/index.d.ts +11 -5
  23. package/dist/index.js +1 -73
  24. package/dist/interactionEvents.d.ts +153 -106
  25. package/dist/interactionEvents.js +1 -111
  26. package/dist/legacyProtocol.d.ts +512 -272
  27. package/dist/legacyProtocol.js +1 -30
  28. package/dist/license.js +1 -28
  29. package/dist/machine.d.ts +108 -62
  30. package/dist/machine.js +1 -66
  31. package/dist/messageMeta.d.ts +34 -28
  32. package/dist/messageMeta.js +1 -60
  33. package/dist/messages.d.ts +34900 -1862
  34. package/dist/messages.js +1 -35
  35. package/dist/notification.d.ts +48 -0
  36. package/dist/notification.js +1 -0
  37. package/dist/ops.d.ts +165 -122
  38. package/dist/ops.js +1 -74
  39. package/dist/pairing.d.ts +4 -4
  40. package/dist/pairing.js +1 -150
  41. package/dist/permissionSubject.js +1 -68
  42. package/dist/protocol.js +1 -7
  43. package/dist/rpc.d.ts +749 -189
  44. package/dist/rpc.js +1 -269
  45. package/dist/scheduledTasks.d.ts +619 -304
  46. package/dist/scheduledTasks.js +1 -188
  47. package/dist/semver.js +1 -60
  48. package/dist/sessionResult.d.ts +31 -17
  49. package/dist/sessionResult.js +1 -23
  50. package/dist/socketEvents.d.ts +7 -0
  51. package/dist/socketEvents.js +1 -55
  52. package/dist/sourceMetadata.d.ts +44 -0
  53. package/dist/sourceMetadata.js +1 -0
  54. package/dist/spawnError.d.ts +21 -17
  55. package/dist/spawnError.js +1 -31
  56. package/dist/stats.d.ts +73 -73
  57. package/dist/stats.js +1 -117
  58. package/dist/sync.d.ts +2165 -819
  59. package/dist/sync.js +1 -99
  60. package/dist/taskResult.js +1 -113
  61. package/dist/telemetry.d.ts +120 -64
  62. package/dist/telemetry.js +1 -115
  63. package/dist/utils.js +1 -2
  64. package/package.json +3 -2
  65. package/dist/activityPreferences.d.ts.map +0 -1
  66. package/dist/activityPreferences.js.map +0 -1
  67. package/dist/agentCapabilities.d.ts.map +0 -1
  68. package/dist/agentCapabilities.js.map +0 -1
  69. package/dist/agentCommonEnv.d.ts.map +0 -1
  70. package/dist/agentCommonEnv.js.map +0 -1
  71. package/dist/agentInstallGuide.d.ts.map +0 -1
  72. package/dist/agentInstallGuide.js.map +0 -1
  73. package/dist/bgTask.d.ts.map +0 -1
  74. package/dist/bgTask.js.map +0 -1
  75. package/dist/checkpointSchemas.d.ts.map +0 -1
  76. package/dist/checkpointSchemas.js.map +0 -1
  77. package/dist/controlLevel.d.ts.map +0 -1
  78. package/dist/controlLevel.js.map +0 -1
  79. package/dist/edition.d.ts.map +0 -1
  80. package/dist/edition.js.map +0 -1
  81. package/dist/envelope.d.ts.map +0 -1
  82. package/dist/envelope.js.map +0 -1
  83. package/dist/errorMessage.d.ts.map +0 -1
  84. package/dist/errorMessage.js.map +0 -1
  85. package/dist/events.d.ts.map +0 -1
  86. package/dist/events.js.map +0 -1
  87. package/dist/features.d.ts.map +0 -1
  88. package/dist/features.js.map +0 -1
  89. package/dist/feedback.d.ts.map +0 -1
  90. package/dist/feedback.js.map +0 -1
  91. package/dist/fileWhitelist.d.ts.map +0 -1
  92. package/dist/fileWhitelist.js.map +0 -1
  93. package/dist/index.d.ts.map +0 -1
  94. package/dist/index.js.map +0 -1
  95. package/dist/interactionEvents.d.ts.map +0 -1
  96. package/dist/interactionEvents.js.map +0 -1
  97. package/dist/legacyProtocol.d.ts.map +0 -1
  98. package/dist/legacyProtocol.js.map +0 -1
  99. package/dist/license.d.ts.map +0 -1
  100. package/dist/license.js.map +0 -1
  101. package/dist/machine.d.ts.map +0 -1
  102. package/dist/machine.js.map +0 -1
  103. package/dist/messageMeta.d.ts.map +0 -1
  104. package/dist/messageMeta.js.map +0 -1
  105. package/dist/messages.d.ts.map +0 -1
  106. package/dist/messages.js.map +0 -1
  107. package/dist/ops.d.ts.map +0 -1
  108. package/dist/ops.js.map +0 -1
  109. package/dist/pairing.d.ts.map +0 -1
  110. package/dist/pairing.js.map +0 -1
  111. package/dist/permissionSubject.d.ts.map +0 -1
  112. package/dist/permissionSubject.js.map +0 -1
  113. package/dist/protocol.d.ts.map +0 -1
  114. package/dist/protocol.js.map +0 -1
  115. package/dist/rpc.d.ts.map +0 -1
  116. package/dist/rpc.js.map +0 -1
  117. package/dist/scheduledTasks.d.ts.map +0 -1
  118. package/dist/scheduledTasks.js.map +0 -1
  119. package/dist/semver.d.ts.map +0 -1
  120. package/dist/semver.js.map +0 -1
  121. package/dist/sessionResult.d.ts.map +0 -1
  122. package/dist/sessionResult.js.map +0 -1
  123. package/dist/socketEvents.d.ts.map +0 -1
  124. package/dist/socketEvents.js.map +0 -1
  125. package/dist/spawnError.d.ts.map +0 -1
  126. package/dist/spawnError.js.map +0 -1
  127. package/dist/stats.d.ts.map +0 -1
  128. package/dist/stats.js.map +0 -1
  129. package/dist/sync.d.ts.map +0 -1
  130. package/dist/sync.js.map +0 -1
  131. package/dist/taskResult.d.ts.map +0 -1
  132. package/dist/taskResult.js.map +0 -1
  133. package/dist/telemetry.d.ts.map +0 -1
  134. package/dist/telemetry.js.map +0 -1
  135. package/dist/utils.d.ts.map +0 -1
  136. 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
- }, "strip", z.ZodTypeAny, {
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
- }, "strip", z.ZodTypeAny, {
17
- messageId: string;
18
- timestamp: string;
19
- trackedFileCount: number;
20
- sequence: number;
21
- }, {
22
- messageId: string;
23
- timestamp: string;
24
- trackedFileCount: number;
25
- sequence: number;
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
- }, "strip", z.ZodTypeAny, {
34
- messageId: string;
35
- timestamp: string;
36
- trackedFileCount: number;
37
- sequence: number;
38
- }, {
39
- messageId: string;
40
- timestamp: string;
41
- trackedFileCount: number;
42
- sequence: number;
43
- }>, "many">;
44
- }, "strip", z.ZodTypeAny, {
45
- checkpoints: {
46
- messageId: string;
47
- timestamp: string;
48
- trackedFileCount: number;
49
- sequence: number;
50
- }[];
51
- }, {
52
- checkpoints: {
53
- messageId: string;
54
- timestamp: string;
55
- trackedFileCount: number;
56
- sequence: number;
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
- }, "strip", z.ZodTypeAny, {
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
- }, "strip", z.ZodTypeAny, {
75
- status: "modified" | "deleted" | "created";
76
- filePath: string;
77
- currentSize: number;
78
- snapshotSize: number;
79
- }, {
80
- status: "modified" | "deleted" | "created";
81
- filePath: string;
82
- currentSize: number;
83
- snapshotSize: number;
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
- }, "strip", z.ZodTypeAny, {
92
- status: "modified" | "deleted" | "created";
93
- filePath: string;
94
- currentSize: number;
95
- snapshotSize: number;
96
- }, {
97
- status: "modified" | "deleted" | "created";
98
- filePath: string;
99
- currentSize: number;
100
- snapshotSize: number;
101
- }>, "many">;
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
- }, "strip", z.ZodTypeAny, {
105
- files: {
106
- status: "modified" | "deleted" | "created";
107
- filePath: string;
108
- currentSize: number;
109
- snapshotSize: number;
110
- }[];
111
- hasExternalChanges: boolean;
112
- externallyModifiedFiles: string[];
113
- }, {
114
- files: {
115
- status: "modified" | "deleted" | "created";
116
- filePath: string;
117
- currentSize: number;
118
- snapshotSize: number;
119
- }[];
120
- hasExternalChanges: boolean;
121
- externallyModifiedFiles: string[];
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
- }, "strip", z.ZodTypeAny, {
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
- }, "strip", z.ZodTypeAny, {
151
- restoredCount: number;
152
- deletedCount: number;
153
- skippedFiles: string[];
154
- mode?: "code" | "conversation" | "both" | undefined;
155
- truncatedMessageCount?: number | undefined;
156
- pivotTimestamp?: string | undefined;
157
- pivotMessageUuid?: string | undefined;
158
- }, {
159
- restoredCount: number;
160
- deletedCount: number;
161
- skippedFiles: string[];
162
- mode?: "code" | "conversation" | "both" | undefined;
163
- truncatedMessageCount?: number | undefined;
164
- pivotTimestamp?: string | undefined;
165
- pivotMessageUuid?: string | undefined;
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 { z } from 'zod';
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();
@@ -1,11 +1 @@
1
- import { z } from 'zod';
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 = ['personal', 'enterprise'];
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"}