@pugi/sdk 0.1.0-alpha.3

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.
@@ -0,0 +1,605 @@
1
+ import { z } from 'zod';
2
+ export declare const pugiSyncPrivacyModeSchema: z.ZodEnum<["local-only", "metadata", "summaries", "selected-files", "full-sync"]>;
3
+ export type PugiSyncPrivacyMode = z.infer<typeof pugiSyncPrivacyModeSchema>;
4
+ export declare const pugiWorkspaceSnapshotSchema: z.ZodObject<{
5
+ rootName: z.ZodString;
6
+ gitBranch: z.ZodNullable<z.ZodString>;
7
+ gitHead: z.ZodNullable<z.ZodString>;
8
+ dirty: z.ZodBoolean;
9
+ }, "strip", z.ZodTypeAny, {
10
+ dirty: boolean;
11
+ rootName: string;
12
+ gitBranch: string | null;
13
+ gitHead: string | null;
14
+ }, {
15
+ dirty: boolean;
16
+ rootName: string;
17
+ gitBranch: string | null;
18
+ gitHead: string | null;
19
+ }>;
20
+ export declare const pugiHandoffBundleSchema: z.ZodObject<{
21
+ schema: z.ZodLiteral<1>;
22
+ id: z.ZodString;
23
+ reason: z.ZodString;
24
+ prompt: z.ZodString;
25
+ createdAt: z.ZodString;
26
+ workspace: z.ZodObject<{
27
+ rootName: z.ZodString;
28
+ gitBranch: z.ZodNullable<z.ZodString>;
29
+ gitHead: z.ZodNullable<z.ZodString>;
30
+ dirty: z.ZodBoolean;
31
+ }, "strip", z.ZodTypeAny, {
32
+ dirty: boolean;
33
+ rootName: string;
34
+ gitBranch: string | null;
35
+ gitHead: string | null;
36
+ }, {
37
+ dirty: boolean;
38
+ rootName: string;
39
+ gitBranch: string | null;
40
+ gitHead: string | null;
41
+ }>;
42
+ session: z.ZodObject<{
43
+ id: z.ZodString;
44
+ eventsPath: z.ZodString;
45
+ }, "strip", z.ZodTypeAny, {
46
+ id: string;
47
+ eventsPath: string;
48
+ }, {
49
+ id: string;
50
+ eventsPath: string;
51
+ }>;
52
+ artifacts: z.ZodObject<{
53
+ latest: z.ZodNullable<z.ZodString>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ latest: string | null;
56
+ }, {
57
+ latest: string | null;
58
+ }>;
59
+ privacy: z.ZodObject<{
60
+ includesFileContents: z.ZodBoolean;
61
+ includesSecrets: z.ZodBoolean;
62
+ }, "strip", z.ZodTypeAny, {
63
+ includesFileContents: boolean;
64
+ includesSecrets: boolean;
65
+ }, {
66
+ includesFileContents: boolean;
67
+ includesSecrets: boolean;
68
+ }>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ id: string;
71
+ reason: string;
72
+ createdAt: string;
73
+ prompt: string;
74
+ artifacts: {
75
+ latest: string | null;
76
+ };
77
+ session: {
78
+ id: string;
79
+ eventsPath: string;
80
+ };
81
+ schema: 1;
82
+ workspace: {
83
+ dirty: boolean;
84
+ rootName: string;
85
+ gitBranch: string | null;
86
+ gitHead: string | null;
87
+ };
88
+ privacy: {
89
+ includesFileContents: boolean;
90
+ includesSecrets: boolean;
91
+ };
92
+ }, {
93
+ id: string;
94
+ reason: string;
95
+ createdAt: string;
96
+ prompt: string;
97
+ artifacts: {
98
+ latest: string | null;
99
+ };
100
+ session: {
101
+ id: string;
102
+ eventsPath: string;
103
+ };
104
+ schema: 1;
105
+ workspace: {
106
+ dirty: boolean;
107
+ rootName: string;
108
+ gitBranch: string | null;
109
+ gitHead: string | null;
110
+ };
111
+ privacy: {
112
+ includesFileContents: boolean;
113
+ includesSecrets: boolean;
114
+ };
115
+ }>;
116
+ export type PugiHandoffBundle = z.infer<typeof pugiHandoffBundleSchema>;
117
+ export declare const pugiSyncDryRunItemSchema: z.ZodObject<{
118
+ kind: z.ZodEnum<["artifact_metadata", "artifact_summary", "handoff_bundle", "session_event_log"]>;
119
+ path: z.ZodString;
120
+ bytes: z.ZodNumber;
121
+ action: z.ZodEnum<["include", "exclude"]>;
122
+ reason: z.ZodString;
123
+ }, "strip", z.ZodTypeAny, {
124
+ path: string;
125
+ reason: string;
126
+ kind: "artifact_metadata" | "artifact_summary" | "handoff_bundle" | "session_event_log";
127
+ bytes: number;
128
+ action: "include" | "exclude";
129
+ }, {
130
+ path: string;
131
+ reason: string;
132
+ kind: "artifact_metadata" | "artifact_summary" | "handoff_bundle" | "session_event_log";
133
+ bytes: number;
134
+ action: "include" | "exclude";
135
+ }>;
136
+ export type PugiSyncDryRunItem = z.infer<typeof pugiSyncDryRunItemSchema>;
137
+ export declare const pugiSyncDryRunPlanSchema: z.ZodObject<{
138
+ schema: z.ZodLiteral<1>;
139
+ createdAt: z.ZodString;
140
+ mode: z.ZodEnum<["local-only", "metadata", "summaries", "selected-files", "full-sync"]>;
141
+ uploadEnabled: z.ZodLiteral<false>;
142
+ workspace: z.ZodObject<{
143
+ rootName: z.ZodString;
144
+ gitBranch: z.ZodNullable<z.ZodString>;
145
+ gitHead: z.ZodNullable<z.ZodString>;
146
+ dirty: z.ZodBoolean;
147
+ }, "strip", z.ZodTypeAny, {
148
+ dirty: boolean;
149
+ rootName: string;
150
+ gitBranch: string | null;
151
+ gitHead: string | null;
152
+ }, {
153
+ dirty: boolean;
154
+ rootName: string;
155
+ gitBranch: string | null;
156
+ gitHead: string | null;
157
+ }>;
158
+ items: z.ZodArray<z.ZodObject<{
159
+ kind: z.ZodEnum<["artifact_metadata", "artifact_summary", "handoff_bundle", "session_event_log"]>;
160
+ path: z.ZodString;
161
+ bytes: z.ZodNumber;
162
+ action: z.ZodEnum<["include", "exclude"]>;
163
+ reason: z.ZodString;
164
+ }, "strip", z.ZodTypeAny, {
165
+ path: string;
166
+ reason: string;
167
+ kind: "artifact_metadata" | "artifact_summary" | "handoff_bundle" | "session_event_log";
168
+ bytes: number;
169
+ action: "include" | "exclude";
170
+ }, {
171
+ path: string;
172
+ reason: string;
173
+ kind: "artifact_metadata" | "artifact_summary" | "handoff_bundle" | "session_event_log";
174
+ bytes: number;
175
+ action: "include" | "exclude";
176
+ }>, "many">;
177
+ exclusions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
178
+ notes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
179
+ }, "strip", z.ZodTypeAny, {
180
+ createdAt: string;
181
+ mode: "local-only" | "metadata" | "summaries" | "selected-files" | "full-sync";
182
+ schema: 1;
183
+ workspace: {
184
+ dirty: boolean;
185
+ rootName: string;
186
+ gitBranch: string | null;
187
+ gitHead: string | null;
188
+ };
189
+ uploadEnabled: false;
190
+ items: {
191
+ path: string;
192
+ reason: string;
193
+ kind: "artifact_metadata" | "artifact_summary" | "handoff_bundle" | "session_event_log";
194
+ bytes: number;
195
+ action: "include" | "exclude";
196
+ }[];
197
+ exclusions: string[];
198
+ notes: string[];
199
+ }, {
200
+ createdAt: string;
201
+ mode: "local-only" | "metadata" | "summaries" | "selected-files" | "full-sync";
202
+ schema: 1;
203
+ workspace: {
204
+ dirty: boolean;
205
+ rootName: string;
206
+ gitBranch: string | null;
207
+ gitHead: string | null;
208
+ };
209
+ uploadEnabled: false;
210
+ items: {
211
+ path: string;
212
+ reason: string;
213
+ kind: "artifact_metadata" | "artifact_summary" | "handoff_bundle" | "session_event_log";
214
+ bytes: number;
215
+ action: "include" | "exclude";
216
+ }[];
217
+ exclusions?: string[] | undefined;
218
+ notes?: string[] | undefined;
219
+ }>;
220
+ export type PugiSyncDryRunPlan = z.infer<typeof pugiSyncDryRunPlanSchema>;
221
+ export declare const pugiSyncUploadPlanSchema: z.ZodObject<Omit<{
222
+ schema: z.ZodLiteral<1>;
223
+ createdAt: z.ZodString;
224
+ mode: z.ZodEnum<["local-only", "metadata", "summaries", "selected-files", "full-sync"]>;
225
+ uploadEnabled: z.ZodLiteral<false>;
226
+ workspace: z.ZodObject<{
227
+ rootName: z.ZodString;
228
+ gitBranch: z.ZodNullable<z.ZodString>;
229
+ gitHead: z.ZodNullable<z.ZodString>;
230
+ dirty: z.ZodBoolean;
231
+ }, "strip", z.ZodTypeAny, {
232
+ dirty: boolean;
233
+ rootName: string;
234
+ gitBranch: string | null;
235
+ gitHead: string | null;
236
+ }, {
237
+ dirty: boolean;
238
+ rootName: string;
239
+ gitBranch: string | null;
240
+ gitHead: string | null;
241
+ }>;
242
+ items: z.ZodArray<z.ZodObject<{
243
+ kind: z.ZodEnum<["artifact_metadata", "artifact_summary", "handoff_bundle", "session_event_log"]>;
244
+ path: z.ZodString;
245
+ bytes: z.ZodNumber;
246
+ action: z.ZodEnum<["include", "exclude"]>;
247
+ reason: z.ZodString;
248
+ }, "strip", z.ZodTypeAny, {
249
+ path: string;
250
+ reason: string;
251
+ kind: "artifact_metadata" | "artifact_summary" | "handoff_bundle" | "session_event_log";
252
+ bytes: number;
253
+ action: "include" | "exclude";
254
+ }, {
255
+ path: string;
256
+ reason: string;
257
+ kind: "artifact_metadata" | "artifact_summary" | "handoff_bundle" | "session_event_log";
258
+ bytes: number;
259
+ action: "include" | "exclude";
260
+ }>, "many">;
261
+ exclusions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
262
+ notes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
263
+ }, "uploadEnabled"> & {
264
+ uploadEnabled: z.ZodLiteral<true>;
265
+ }, "strip", z.ZodTypeAny, {
266
+ createdAt: string;
267
+ mode: "local-only" | "metadata" | "summaries" | "selected-files" | "full-sync";
268
+ schema: 1;
269
+ workspace: {
270
+ dirty: boolean;
271
+ rootName: string;
272
+ gitBranch: string | null;
273
+ gitHead: string | null;
274
+ };
275
+ uploadEnabled: true;
276
+ items: {
277
+ path: string;
278
+ reason: string;
279
+ kind: "artifact_metadata" | "artifact_summary" | "handoff_bundle" | "session_event_log";
280
+ bytes: number;
281
+ action: "include" | "exclude";
282
+ }[];
283
+ exclusions: string[];
284
+ notes: string[];
285
+ }, {
286
+ createdAt: string;
287
+ mode: "local-only" | "metadata" | "summaries" | "selected-files" | "full-sync";
288
+ schema: 1;
289
+ workspace: {
290
+ dirty: boolean;
291
+ rootName: string;
292
+ gitBranch: string | null;
293
+ gitHead: string | null;
294
+ };
295
+ uploadEnabled: true;
296
+ items: {
297
+ path: string;
298
+ reason: string;
299
+ kind: "artifact_metadata" | "artifact_summary" | "handoff_bundle" | "session_event_log";
300
+ bytes: number;
301
+ action: "include" | "exclude";
302
+ }[];
303
+ exclusions?: string[] | undefined;
304
+ notes?: string[] | undefined;
305
+ }>;
306
+ export type PugiSyncUploadPlan = z.infer<typeof pugiSyncUploadPlanSchema>;
307
+ export declare const pugiSyncRequestSchema: z.ZodObject<{
308
+ schema: z.ZodLiteral<1>;
309
+ bundle: z.ZodObject<{
310
+ schema: z.ZodLiteral<1>;
311
+ id: z.ZodString;
312
+ reason: z.ZodString;
313
+ prompt: z.ZodString;
314
+ createdAt: z.ZodString;
315
+ workspace: z.ZodObject<{
316
+ rootName: z.ZodString;
317
+ gitBranch: z.ZodNullable<z.ZodString>;
318
+ gitHead: z.ZodNullable<z.ZodString>;
319
+ dirty: z.ZodBoolean;
320
+ }, "strip", z.ZodTypeAny, {
321
+ dirty: boolean;
322
+ rootName: string;
323
+ gitBranch: string | null;
324
+ gitHead: string | null;
325
+ }, {
326
+ dirty: boolean;
327
+ rootName: string;
328
+ gitBranch: string | null;
329
+ gitHead: string | null;
330
+ }>;
331
+ session: z.ZodObject<{
332
+ id: z.ZodString;
333
+ eventsPath: z.ZodString;
334
+ }, "strip", z.ZodTypeAny, {
335
+ id: string;
336
+ eventsPath: string;
337
+ }, {
338
+ id: string;
339
+ eventsPath: string;
340
+ }>;
341
+ artifacts: z.ZodObject<{
342
+ latest: z.ZodNullable<z.ZodString>;
343
+ }, "strip", z.ZodTypeAny, {
344
+ latest: string | null;
345
+ }, {
346
+ latest: string | null;
347
+ }>;
348
+ privacy: z.ZodObject<{
349
+ includesFileContents: z.ZodBoolean;
350
+ includesSecrets: z.ZodBoolean;
351
+ }, "strip", z.ZodTypeAny, {
352
+ includesFileContents: boolean;
353
+ includesSecrets: boolean;
354
+ }, {
355
+ includesFileContents: boolean;
356
+ includesSecrets: boolean;
357
+ }>;
358
+ }, "strip", z.ZodTypeAny, {
359
+ id: string;
360
+ reason: string;
361
+ createdAt: string;
362
+ prompt: string;
363
+ artifacts: {
364
+ latest: string | null;
365
+ };
366
+ session: {
367
+ id: string;
368
+ eventsPath: string;
369
+ };
370
+ schema: 1;
371
+ workspace: {
372
+ dirty: boolean;
373
+ rootName: string;
374
+ gitBranch: string | null;
375
+ gitHead: string | null;
376
+ };
377
+ privacy: {
378
+ includesFileContents: boolean;
379
+ includesSecrets: boolean;
380
+ };
381
+ }, {
382
+ id: string;
383
+ reason: string;
384
+ createdAt: string;
385
+ prompt: string;
386
+ artifacts: {
387
+ latest: string | null;
388
+ };
389
+ session: {
390
+ id: string;
391
+ eventsPath: string;
392
+ };
393
+ schema: 1;
394
+ workspace: {
395
+ dirty: boolean;
396
+ rootName: string;
397
+ gitBranch: string | null;
398
+ gitHead: string | null;
399
+ };
400
+ privacy: {
401
+ includesFileContents: boolean;
402
+ includesSecrets: boolean;
403
+ };
404
+ }>;
405
+ plan: z.ZodObject<Omit<{
406
+ schema: z.ZodLiteral<1>;
407
+ createdAt: z.ZodString;
408
+ mode: z.ZodEnum<["local-only", "metadata", "summaries", "selected-files", "full-sync"]>;
409
+ uploadEnabled: z.ZodLiteral<false>;
410
+ workspace: z.ZodObject<{
411
+ rootName: z.ZodString;
412
+ gitBranch: z.ZodNullable<z.ZodString>;
413
+ gitHead: z.ZodNullable<z.ZodString>;
414
+ dirty: z.ZodBoolean;
415
+ }, "strip", z.ZodTypeAny, {
416
+ dirty: boolean;
417
+ rootName: string;
418
+ gitBranch: string | null;
419
+ gitHead: string | null;
420
+ }, {
421
+ dirty: boolean;
422
+ rootName: string;
423
+ gitBranch: string | null;
424
+ gitHead: string | null;
425
+ }>;
426
+ items: z.ZodArray<z.ZodObject<{
427
+ kind: z.ZodEnum<["artifact_metadata", "artifact_summary", "handoff_bundle", "session_event_log"]>;
428
+ path: z.ZodString;
429
+ bytes: z.ZodNumber;
430
+ action: z.ZodEnum<["include", "exclude"]>;
431
+ reason: z.ZodString;
432
+ }, "strip", z.ZodTypeAny, {
433
+ path: string;
434
+ reason: string;
435
+ kind: "artifact_metadata" | "artifact_summary" | "handoff_bundle" | "session_event_log";
436
+ bytes: number;
437
+ action: "include" | "exclude";
438
+ }, {
439
+ path: string;
440
+ reason: string;
441
+ kind: "artifact_metadata" | "artifact_summary" | "handoff_bundle" | "session_event_log";
442
+ bytes: number;
443
+ action: "include" | "exclude";
444
+ }>, "many">;
445
+ exclusions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
446
+ notes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
447
+ }, "uploadEnabled"> & {
448
+ uploadEnabled: z.ZodLiteral<true>;
449
+ }, "strip", z.ZodTypeAny, {
450
+ createdAt: string;
451
+ mode: "local-only" | "metadata" | "summaries" | "selected-files" | "full-sync";
452
+ schema: 1;
453
+ workspace: {
454
+ dirty: boolean;
455
+ rootName: string;
456
+ gitBranch: string | null;
457
+ gitHead: string | null;
458
+ };
459
+ uploadEnabled: true;
460
+ items: {
461
+ path: string;
462
+ reason: string;
463
+ kind: "artifact_metadata" | "artifact_summary" | "handoff_bundle" | "session_event_log";
464
+ bytes: number;
465
+ action: "include" | "exclude";
466
+ }[];
467
+ exclusions: string[];
468
+ notes: string[];
469
+ }, {
470
+ createdAt: string;
471
+ mode: "local-only" | "metadata" | "summaries" | "selected-files" | "full-sync";
472
+ schema: 1;
473
+ workspace: {
474
+ dirty: boolean;
475
+ rootName: string;
476
+ gitBranch: string | null;
477
+ gitHead: string | null;
478
+ };
479
+ uploadEnabled: true;
480
+ items: {
481
+ path: string;
482
+ reason: string;
483
+ kind: "artifact_metadata" | "artifact_summary" | "handoff_bundle" | "session_event_log";
484
+ bytes: number;
485
+ action: "include" | "exclude";
486
+ }[];
487
+ exclusions?: string[] | undefined;
488
+ notes?: string[] | undefined;
489
+ }>;
490
+ }, "strip", z.ZodTypeAny, {
491
+ plan: {
492
+ createdAt: string;
493
+ mode: "local-only" | "metadata" | "summaries" | "selected-files" | "full-sync";
494
+ schema: 1;
495
+ workspace: {
496
+ dirty: boolean;
497
+ rootName: string;
498
+ gitBranch: string | null;
499
+ gitHead: string | null;
500
+ };
501
+ uploadEnabled: true;
502
+ items: {
503
+ path: string;
504
+ reason: string;
505
+ kind: "artifact_metadata" | "artifact_summary" | "handoff_bundle" | "session_event_log";
506
+ bytes: number;
507
+ action: "include" | "exclude";
508
+ }[];
509
+ exclusions: string[];
510
+ notes: string[];
511
+ };
512
+ schema: 1;
513
+ bundle: {
514
+ id: string;
515
+ reason: string;
516
+ createdAt: string;
517
+ prompt: string;
518
+ artifacts: {
519
+ latest: string | null;
520
+ };
521
+ session: {
522
+ id: string;
523
+ eventsPath: string;
524
+ };
525
+ schema: 1;
526
+ workspace: {
527
+ dirty: boolean;
528
+ rootName: string;
529
+ gitBranch: string | null;
530
+ gitHead: string | null;
531
+ };
532
+ privacy: {
533
+ includesFileContents: boolean;
534
+ includesSecrets: boolean;
535
+ };
536
+ };
537
+ }, {
538
+ plan: {
539
+ createdAt: string;
540
+ mode: "local-only" | "metadata" | "summaries" | "selected-files" | "full-sync";
541
+ schema: 1;
542
+ workspace: {
543
+ dirty: boolean;
544
+ rootName: string;
545
+ gitBranch: string | null;
546
+ gitHead: string | null;
547
+ };
548
+ uploadEnabled: true;
549
+ items: {
550
+ path: string;
551
+ reason: string;
552
+ kind: "artifact_metadata" | "artifact_summary" | "handoff_bundle" | "session_event_log";
553
+ bytes: number;
554
+ action: "include" | "exclude";
555
+ }[];
556
+ exclusions?: string[] | undefined;
557
+ notes?: string[] | undefined;
558
+ };
559
+ schema: 1;
560
+ bundle: {
561
+ id: string;
562
+ reason: string;
563
+ createdAt: string;
564
+ prompt: string;
565
+ artifacts: {
566
+ latest: string | null;
567
+ };
568
+ session: {
569
+ id: string;
570
+ eventsPath: string;
571
+ };
572
+ schema: 1;
573
+ workspace: {
574
+ dirty: boolean;
575
+ rootName: string;
576
+ gitBranch: string | null;
577
+ gitHead: string | null;
578
+ };
579
+ privacy: {
580
+ includesFileContents: boolean;
581
+ includesSecrets: boolean;
582
+ };
583
+ };
584
+ }>;
585
+ export type PugiSyncRequest = z.infer<typeof pugiSyncRequestSchema>;
586
+ export declare const pugiSyncStatusSchema: z.ZodEnum<["received", "queued", "processing", "done", "failed"]>;
587
+ export type PugiSyncStatus = z.infer<typeof pugiSyncStatusSchema>;
588
+ export declare const pugiSyncResponseSchema: z.ZodObject<{
589
+ schema: z.ZodLiteral<1>;
590
+ syncId: z.ZodString;
591
+ status: z.ZodEnum<["received", "queued", "processing", "done", "failed"]>;
592
+ receivedAt: z.ZodString;
593
+ }, "strip", z.ZodTypeAny, {
594
+ status: "received" | "failed" | "done" | "queued" | "processing";
595
+ schema: 1;
596
+ syncId: string;
597
+ receivedAt: string;
598
+ }, {
599
+ status: "received" | "failed" | "done" | "queued" | "processing";
600
+ schema: 1;
601
+ syncId: string;
602
+ receivedAt: string;
603
+ }>;
604
+ export type PugiSyncResponse = z.infer<typeof pugiSyncResponseSchema>;
605
+ //# sourceMappingURL=handoff.d.ts.map
@@ -0,0 +1,76 @@
1
+ import { z } from 'zod';
2
+ export const pugiSyncPrivacyModeSchema = z.enum([
3
+ 'local-only',
4
+ 'metadata',
5
+ 'summaries',
6
+ 'selected-files',
7
+ 'full-sync',
8
+ ]);
9
+ export const pugiWorkspaceSnapshotSchema = z.object({
10
+ rootName: z.string().min(1),
11
+ gitBranch: z.string().min(1).nullable(),
12
+ gitHead: z.string().min(1).nullable(),
13
+ dirty: z.boolean(),
14
+ });
15
+ export const pugiHandoffBundleSchema = z.object({
16
+ schema: z.literal(1),
17
+ id: z.string().min(1),
18
+ reason: z.string().min(1),
19
+ prompt: z.string().min(1),
20
+ createdAt: z.string().datetime(),
21
+ workspace: pugiWorkspaceSnapshotSchema,
22
+ session: z.object({
23
+ id: z.string().min(1),
24
+ eventsPath: z.string().min(1),
25
+ }),
26
+ artifacts: z.object({
27
+ latest: z.string().min(1).nullable(),
28
+ }),
29
+ privacy: z.object({
30
+ includesFileContents: z.boolean(),
31
+ includesSecrets: z.boolean(),
32
+ }),
33
+ });
34
+ export const pugiSyncDryRunItemSchema = z.object({
35
+ kind: z.enum(['artifact_metadata', 'artifact_summary', 'handoff_bundle', 'session_event_log']),
36
+ path: z.string().min(1),
37
+ bytes: z.number().int().nonnegative(),
38
+ action: z.enum(['include', 'exclude']),
39
+ reason: z.string().min(1),
40
+ });
41
+ export const pugiSyncDryRunPlanSchema = z.object({
42
+ schema: z.literal(1),
43
+ createdAt: z.string().datetime(),
44
+ mode: pugiSyncPrivacyModeSchema,
45
+ uploadEnabled: z.literal(false),
46
+ workspace: pugiWorkspaceSnapshotSchema,
47
+ items: z.array(pugiSyncDryRunItemSchema),
48
+ exclusions: z.array(z.string()).default([]),
49
+ notes: z.array(z.string()).default([]),
50
+ });
51
+ // Mirror of pugiSyncDryRunPlanSchema with the `uploadEnabled` literal
52
+ // flipped to `true`. The CLI builds the dry-run plan first, surfaces
53
+ // it to the operator, and — only when `--dry-run` is absent — converts
54
+ // to this upload-enabled shape before POSTing.
55
+ export const pugiSyncUploadPlanSchema = pugiSyncDryRunPlanSchema
56
+ .omit({ uploadEnabled: true })
57
+ .extend({ uploadEnabled: z.literal(true) });
58
+ export const pugiSyncRequestSchema = z.object({
59
+ schema: z.literal(1),
60
+ bundle: pugiHandoffBundleSchema,
61
+ plan: pugiSyncUploadPlanSchema,
62
+ });
63
+ export const pugiSyncStatusSchema = z.enum([
64
+ 'received',
65
+ 'queued',
66
+ 'processing',
67
+ 'done',
68
+ 'failed',
69
+ ]);
70
+ export const pugiSyncResponseSchema = z.object({
71
+ schema: z.literal(1),
72
+ syncId: z.string().min(1),
73
+ status: pugiSyncStatusSchema,
74
+ receivedAt: z.string().datetime(),
75
+ });
76
+ //# sourceMappingURL=handoff.js.map
@@ -0,0 +1,10 @@
1
+ export * from './agent-contracts.js';
2
+ export * from './audit-trace.js';
3
+ export * from './device-flow.js';
4
+ export * from './engine-adapter.js';
5
+ export * from './engine-loop.js';
6
+ export * from './handoff.js';
7
+ export * from './mcp-schemas.js';
8
+ export * from './permission-rules.js';
9
+ export * from './transport.js';
10
+ //# sourceMappingURL=index.d.ts.map
package/dist/index.js ADDED
@@ -0,0 +1,10 @@
1
+ export * from './agent-contracts.js';
2
+ export * from './audit-trace.js';
3
+ export * from './device-flow.js';
4
+ export * from './engine-adapter.js';
5
+ export * from './engine-loop.js';
6
+ export * from './handoff.js';
7
+ export * from './mcp-schemas.js';
8
+ export * from './permission-rules.js';
9
+ export * from './transport.js';
10
+ //# sourceMappingURL=index.js.map