@brainpilot/protocol 0.0.13 → 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/dist/http.d.ts CHANGED
@@ -77,14 +77,18 @@ export declare const CreateSessionRequestSchema: z.ZodObject<{
77
77
  providerId: z.ZodOptional<z.ZodString>;
78
78
  /** Optional model id within that provider. */
79
79
  modelId: z.ZodOptional<z.ZodString>;
80
+ /** Per-session domain resources; omitted means full for backward compatibility. */
81
+ domainResources: z.ZodOptional<z.ZodEnum<["full", "base"]>>;
80
82
  }, "strip", z.ZodTypeAny, {
81
- title?: string | undefined;
82
83
  id?: string | undefined;
84
+ title?: string | undefined;
85
+ domainResources?: "full" | "base" | undefined;
83
86
  providerId?: string | undefined;
84
87
  modelId?: string | undefined;
85
88
  }, {
86
- title?: string | undefined;
87
89
  id?: string | undefined;
90
+ title?: string | undefined;
91
+ domainResources?: "full" | "base" | undefined;
88
92
  providerId?: string | undefined;
89
93
  modelId?: string | undefined;
90
94
  }>;
@@ -96,32 +100,37 @@ export declare const CreateSessionResponseSchema: z.ZodObject<{
96
100
  title: z.ZodString;
97
101
  createdAt: z.ZodString;
98
102
  updatedAt: z.ZodString;
103
+ domainResources: z.ZodOptional<z.ZodEnum<["full", "base"]>>;
99
104
  }, "strip", z.ZodTypeAny, {
100
- title: string;
101
105
  id: string;
106
+ title: string;
102
107
  createdAt: string;
103
108
  updatedAt: string;
109
+ domainResources?: "full" | "base" | undefined;
104
110
  }, {
105
- title: string;
106
111
  id: string;
112
+ title: string;
107
113
  createdAt: string;
108
114
  updatedAt: string;
115
+ domainResources?: "full" | "base" | undefined;
109
116
  }>>;
110
117
  }, "strip", z.ZodTypeAny, {
111
118
  id: string;
112
119
  session?: {
113
- title: string;
114
120
  id: string;
121
+ title: string;
115
122
  createdAt: string;
116
123
  updatedAt: string;
124
+ domainResources?: "full" | "base" | undefined;
117
125
  } | undefined;
118
126
  }, {
119
127
  id: string;
120
128
  session?: {
121
- title: string;
122
129
  id: string;
130
+ title: string;
123
131
  createdAt: string;
124
132
  updatedAt: string;
133
+ domainResources?: "full" | "base" | undefined;
125
134
  } | undefined;
126
135
  }>;
127
136
  export type CreateSessionResponse = z.infer<typeof CreateSessionResponseSchema>;
@@ -131,30 +140,35 @@ export declare const ListSessionsResponseSchema: z.ZodObject<{
131
140
  title: z.ZodString;
132
141
  createdAt: z.ZodString;
133
142
  updatedAt: z.ZodString;
143
+ domainResources: z.ZodOptional<z.ZodEnum<["full", "base"]>>;
134
144
  }, "strip", z.ZodTypeAny, {
135
- title: string;
136
145
  id: string;
146
+ title: string;
137
147
  createdAt: string;
138
148
  updatedAt: string;
149
+ domainResources?: "full" | "base" | undefined;
139
150
  }, {
140
- title: string;
141
151
  id: string;
152
+ title: string;
142
153
  createdAt: string;
143
154
  updatedAt: string;
155
+ domainResources?: "full" | "base" | undefined;
144
156
  }>, "many">;
145
157
  }, "strip", z.ZodTypeAny, {
146
158
  sessions: {
147
- title: string;
148
159
  id: string;
160
+ title: string;
149
161
  createdAt: string;
150
162
  updatedAt: string;
163
+ domainResources?: "full" | "base" | undefined;
151
164
  }[];
152
165
  }, {
153
166
  sessions: {
154
- title: string;
155
167
  id: string;
168
+ title: string;
156
169
  createdAt: string;
157
170
  updatedAt: string;
171
+ domainResources?: "full" | "base" | undefined;
158
172
  }[];
159
173
  }>;
160
174
  export type ListSessionsResponse = z.infer<typeof ListSessionsResponseSchema>;
@@ -163,16 +177,19 @@ export declare const GetSessionResponseSchema: z.ZodObject<{
163
177
  title: z.ZodString;
164
178
  createdAt: z.ZodString;
165
179
  updatedAt: z.ZodString;
180
+ domainResources: z.ZodOptional<z.ZodEnum<["full", "base"]>>;
166
181
  }, "strip", z.ZodTypeAny, {
167
- title: string;
168
182
  id: string;
183
+ title: string;
169
184
  createdAt: string;
170
185
  updatedAt: string;
186
+ domainResources?: "full" | "base" | undefined;
171
187
  }, {
172
- title: string;
173
188
  id: string;
189
+ title: string;
174
190
  createdAt: string;
175
191
  updatedAt: string;
192
+ domainResources?: "full" | "base" | undefined;
176
193
  }>;
177
194
  export type GetSessionResponse = z.infer<typeof GetSessionResponseSchema>;
178
195
  export declare const DeleteSessionResponseSchema: z.ZodObject<{
@@ -191,11 +208,11 @@ export declare const GetSessionStateResponseSchema: z.ZodObject<{
191
208
  active: z.ZodBoolean;
192
209
  runId: z.ZodNullable<z.ZodString>;
193
210
  }, "strip", z.ZodTypeAny, {
194
- active: boolean;
195
211
  runId: string | null;
196
- }, {
197
212
  active: boolean;
213
+ }, {
198
214
  runId: string | null;
215
+ active: boolean;
199
216
  }>;
200
217
  agents: z.ZodArray<z.ZodObject<{
201
218
  name: z.ZodString;
@@ -217,6 +234,7 @@ export declare const GetSessionStateResponseSchema: z.ZodObject<{
217
234
  alive?: boolean | undefined;
218
235
  }>, "many">;
219
236
  lastActivityTs: z.ZodString;
237
+ domainResources: z.ZodOptional<z.ZodEnum<["full", "base"]>>;
220
238
  tokenUsage: z.ZodOptional<z.ZodObject<{
221
239
  total: z.ZodObject<{
222
240
  input: z.ZodNumber;
@@ -289,8 +307,8 @@ export declare const GetSessionStateResponseSchema: z.ZodObject<{
289
307
  }>>;
290
308
  }, "strip", z.ZodTypeAny, {
291
309
  runState: {
292
- active: boolean;
293
310
  runId: string | null;
311
+ active: boolean;
294
312
  };
295
313
  agents: {
296
314
  status: string;
@@ -300,6 +318,7 @@ export declare const GetSessionStateResponseSchema: z.ZodObject<{
300
318
  alive?: boolean | undefined;
301
319
  }[];
302
320
  lastActivityTs: string;
321
+ domainResources?: "full" | "base" | undefined;
303
322
  tokenUsage?: {
304
323
  total: {
305
324
  input: number;
@@ -318,8 +337,8 @@ export declare const GetSessionStateResponseSchema: z.ZodObject<{
318
337
  } | undefined;
319
338
  }, {
320
339
  runState: {
321
- active: boolean;
322
340
  runId: string | null;
341
+ active: boolean;
323
342
  };
324
343
  agents: {
325
344
  status: string;
@@ -329,6 +348,7 @@ export declare const GetSessionStateResponseSchema: z.ZodObject<{
329
348
  alive?: boolean | undefined;
330
349
  }[];
331
350
  lastActivityTs: string;
351
+ domainResources?: "full" | "base" | undefined;
332
352
  tokenUsage?: {
333
353
  total: {
334
354
  input: number;
@@ -347,6 +367,378 @@ export declare const GetSessionStateResponseSchema: z.ZodObject<{
347
367
  } | undefined;
348
368
  }>;
349
369
  export type GetSessionStateResponse = z.infer<typeof GetSessionStateResponseSchema>;
370
+ /**
371
+ * Full stats snapshot: tokens (mirrors what `session_state` already ships)
372
+ * plus per-agent tool/skill/error counters and a per-run delta timeline.
373
+ * See `SessionStatsSchema` in domain.ts for the shape.
374
+ */
375
+ export declare const GetSessionStatsResponseSchema: z.ZodObject<{
376
+ sessionId: z.ZodString;
377
+ total: z.ZodObject<{
378
+ tokens: z.ZodObject<{
379
+ input: z.ZodNumber;
380
+ output: z.ZodNumber;
381
+ cacheRead: z.ZodNumber;
382
+ cacheWrite: z.ZodNumber;
383
+ total: z.ZodNumber;
384
+ }, "strip", z.ZodTypeAny, {
385
+ input: number;
386
+ output: number;
387
+ cacheRead: number;
388
+ cacheWrite: number;
389
+ total: number;
390
+ }, {
391
+ input: number;
392
+ output: number;
393
+ cacheRead: number;
394
+ cacheWrite: number;
395
+ total: number;
396
+ }>;
397
+ tools: z.ZodRecord<z.ZodString, z.ZodNumber>;
398
+ skills: z.ZodRecord<z.ZodString, z.ZodObject<{
399
+ queries: z.ZodNumber;
400
+ loads: z.ZodNumber;
401
+ browses: z.ZodNumber;
402
+ }, "strip", z.ZodTypeAny, {
403
+ queries: number;
404
+ loads: number;
405
+ browses: number;
406
+ }, {
407
+ queries: number;
408
+ loads: number;
409
+ browses: number;
410
+ }>>;
411
+ errors: z.ZodRecord<z.ZodString, z.ZodNumber>;
412
+ }, "strip", z.ZodTypeAny, {
413
+ tokens: {
414
+ input: number;
415
+ output: number;
416
+ cacheRead: number;
417
+ cacheWrite: number;
418
+ total: number;
419
+ };
420
+ tools: Record<string, number>;
421
+ skills: Record<string, {
422
+ queries: number;
423
+ loads: number;
424
+ browses: number;
425
+ }>;
426
+ errors: Record<string, number>;
427
+ }, {
428
+ tokens: {
429
+ input: number;
430
+ output: number;
431
+ cacheRead: number;
432
+ cacheWrite: number;
433
+ total: number;
434
+ };
435
+ tools: Record<string, number>;
436
+ skills: Record<string, {
437
+ queries: number;
438
+ loads: number;
439
+ browses: number;
440
+ }>;
441
+ errors: Record<string, number>;
442
+ }>;
443
+ byAgent: z.ZodRecord<z.ZodString, z.ZodObject<{
444
+ tokens: z.ZodObject<{
445
+ input: z.ZodNumber;
446
+ output: z.ZodNumber;
447
+ cacheRead: z.ZodNumber;
448
+ cacheWrite: z.ZodNumber;
449
+ total: z.ZodNumber;
450
+ }, "strip", z.ZodTypeAny, {
451
+ input: number;
452
+ output: number;
453
+ cacheRead: number;
454
+ cacheWrite: number;
455
+ total: number;
456
+ }, {
457
+ input: number;
458
+ output: number;
459
+ cacheRead: number;
460
+ cacheWrite: number;
461
+ total: number;
462
+ }>;
463
+ tools: z.ZodRecord<z.ZodString, z.ZodNumber>;
464
+ skills: z.ZodRecord<z.ZodString, z.ZodObject<{
465
+ queries: z.ZodNumber;
466
+ loads: z.ZodNumber;
467
+ browses: z.ZodNumber;
468
+ }, "strip", z.ZodTypeAny, {
469
+ queries: number;
470
+ loads: number;
471
+ browses: number;
472
+ }, {
473
+ queries: number;
474
+ loads: number;
475
+ browses: number;
476
+ }>>;
477
+ errors: z.ZodRecord<z.ZodString, z.ZodNumber>;
478
+ }, "strip", z.ZodTypeAny, {
479
+ tokens: {
480
+ input: number;
481
+ output: number;
482
+ cacheRead: number;
483
+ cacheWrite: number;
484
+ total: number;
485
+ };
486
+ tools: Record<string, number>;
487
+ skills: Record<string, {
488
+ queries: number;
489
+ loads: number;
490
+ browses: number;
491
+ }>;
492
+ errors: Record<string, number>;
493
+ }, {
494
+ tokens: {
495
+ input: number;
496
+ output: number;
497
+ cacheRead: number;
498
+ cacheWrite: number;
499
+ total: number;
500
+ };
501
+ tools: Record<string, number>;
502
+ skills: Record<string, {
503
+ queries: number;
504
+ loads: number;
505
+ browses: number;
506
+ }>;
507
+ errors: Record<string, number>;
508
+ }>>;
509
+ byRun: z.ZodArray<z.ZodObject<{
510
+ runId: z.ZodString;
511
+ agentName: z.ZodString;
512
+ startedAt: z.ZodNumber;
513
+ finishedAt: z.ZodNumber;
514
+ status: z.ZodEnum<["ok", "error", "aborted"]>;
515
+ delta: z.ZodObject<{
516
+ tokens: z.ZodObject<{
517
+ input: z.ZodNumber;
518
+ output: z.ZodNumber;
519
+ cacheRead: z.ZodNumber;
520
+ cacheWrite: z.ZodNumber;
521
+ total: z.ZodNumber;
522
+ }, "strip", z.ZodTypeAny, {
523
+ input: number;
524
+ output: number;
525
+ cacheRead: number;
526
+ cacheWrite: number;
527
+ total: number;
528
+ }, {
529
+ input: number;
530
+ output: number;
531
+ cacheRead: number;
532
+ cacheWrite: number;
533
+ total: number;
534
+ }>;
535
+ tools: z.ZodRecord<z.ZodString, z.ZodNumber>;
536
+ skills: z.ZodRecord<z.ZodString, z.ZodObject<{
537
+ queries: z.ZodNumber;
538
+ loads: z.ZodNumber;
539
+ browses: z.ZodNumber;
540
+ }, "strip", z.ZodTypeAny, {
541
+ queries: number;
542
+ loads: number;
543
+ browses: number;
544
+ }, {
545
+ queries: number;
546
+ loads: number;
547
+ browses: number;
548
+ }>>;
549
+ errors: z.ZodRecord<z.ZodString, z.ZodNumber>;
550
+ }, "strip", z.ZodTypeAny, {
551
+ tokens: {
552
+ input: number;
553
+ output: number;
554
+ cacheRead: number;
555
+ cacheWrite: number;
556
+ total: number;
557
+ };
558
+ tools: Record<string, number>;
559
+ skills: Record<string, {
560
+ queries: number;
561
+ loads: number;
562
+ browses: number;
563
+ }>;
564
+ errors: Record<string, number>;
565
+ }, {
566
+ tokens: {
567
+ input: number;
568
+ output: number;
569
+ cacheRead: number;
570
+ cacheWrite: number;
571
+ total: number;
572
+ };
573
+ tools: Record<string, number>;
574
+ skills: Record<string, {
575
+ queries: number;
576
+ loads: number;
577
+ browses: number;
578
+ }>;
579
+ errors: Record<string, number>;
580
+ }>;
581
+ }, "strip", z.ZodTypeAny, {
582
+ status: "aborted" | "error" | "ok";
583
+ runId: string;
584
+ agentName: string;
585
+ startedAt: number;
586
+ finishedAt: number;
587
+ delta: {
588
+ tokens: {
589
+ input: number;
590
+ output: number;
591
+ cacheRead: number;
592
+ cacheWrite: number;
593
+ total: number;
594
+ };
595
+ tools: Record<string, number>;
596
+ skills: Record<string, {
597
+ queries: number;
598
+ loads: number;
599
+ browses: number;
600
+ }>;
601
+ errors: Record<string, number>;
602
+ };
603
+ }, {
604
+ status: "aborted" | "error" | "ok";
605
+ runId: string;
606
+ agentName: string;
607
+ startedAt: number;
608
+ finishedAt: number;
609
+ delta: {
610
+ tokens: {
611
+ input: number;
612
+ output: number;
613
+ cacheRead: number;
614
+ cacheWrite: number;
615
+ total: number;
616
+ };
617
+ tools: Record<string, number>;
618
+ skills: Record<string, {
619
+ queries: number;
620
+ loads: number;
621
+ browses: number;
622
+ }>;
623
+ errors: Record<string, number>;
624
+ };
625
+ }>, "many">;
626
+ }, "strip", z.ZodTypeAny, {
627
+ total: {
628
+ tokens: {
629
+ input: number;
630
+ output: number;
631
+ cacheRead: number;
632
+ cacheWrite: number;
633
+ total: number;
634
+ };
635
+ tools: Record<string, number>;
636
+ skills: Record<string, {
637
+ queries: number;
638
+ loads: number;
639
+ browses: number;
640
+ }>;
641
+ errors: Record<string, number>;
642
+ };
643
+ byAgent: Record<string, {
644
+ tokens: {
645
+ input: number;
646
+ output: number;
647
+ cacheRead: number;
648
+ cacheWrite: number;
649
+ total: number;
650
+ };
651
+ tools: Record<string, number>;
652
+ skills: Record<string, {
653
+ queries: number;
654
+ loads: number;
655
+ browses: number;
656
+ }>;
657
+ errors: Record<string, number>;
658
+ }>;
659
+ sessionId: string;
660
+ byRun: {
661
+ status: "aborted" | "error" | "ok";
662
+ runId: string;
663
+ agentName: string;
664
+ startedAt: number;
665
+ finishedAt: number;
666
+ delta: {
667
+ tokens: {
668
+ input: number;
669
+ output: number;
670
+ cacheRead: number;
671
+ cacheWrite: number;
672
+ total: number;
673
+ };
674
+ tools: Record<string, number>;
675
+ skills: Record<string, {
676
+ queries: number;
677
+ loads: number;
678
+ browses: number;
679
+ }>;
680
+ errors: Record<string, number>;
681
+ };
682
+ }[];
683
+ }, {
684
+ total: {
685
+ tokens: {
686
+ input: number;
687
+ output: number;
688
+ cacheRead: number;
689
+ cacheWrite: number;
690
+ total: number;
691
+ };
692
+ tools: Record<string, number>;
693
+ skills: Record<string, {
694
+ queries: number;
695
+ loads: number;
696
+ browses: number;
697
+ }>;
698
+ errors: Record<string, number>;
699
+ };
700
+ byAgent: Record<string, {
701
+ tokens: {
702
+ input: number;
703
+ output: number;
704
+ cacheRead: number;
705
+ cacheWrite: number;
706
+ total: number;
707
+ };
708
+ tools: Record<string, number>;
709
+ skills: Record<string, {
710
+ queries: number;
711
+ loads: number;
712
+ browses: number;
713
+ }>;
714
+ errors: Record<string, number>;
715
+ }>;
716
+ sessionId: string;
717
+ byRun: {
718
+ status: "aborted" | "error" | "ok";
719
+ runId: string;
720
+ agentName: string;
721
+ startedAt: number;
722
+ finishedAt: number;
723
+ delta: {
724
+ tokens: {
725
+ input: number;
726
+ output: number;
727
+ cacheRead: number;
728
+ cacheWrite: number;
729
+ total: number;
730
+ };
731
+ tools: Record<string, number>;
732
+ skills: Record<string, {
733
+ queries: number;
734
+ loads: number;
735
+ browses: number;
736
+ }>;
737
+ errors: Record<string, number>;
738
+ };
739
+ }[];
740
+ }>;
741
+ export type GetSessionStatsResponse = z.infer<typeof GetSessionStatsResponseSchema>;
350
742
  /** A normal user message injected into the session. */
351
743
  export declare const SendMessageContentSchema: z.ZodObject<{
352
744
  content: z.ZodString;
@@ -363,25 +755,25 @@ export declare const SendMessageContentSchema: z.ZodObject<{
363
755
  uuid: z.ZodOptional<z.ZodString>;
364
756
  timestamp: z.ZodOptional<z.ZodString>;
365
757
  }, "strip", z.ZodTypeAny, {
366
- uuid?: string | undefined;
367
758
  timestamp?: string | undefined;
368
- }, {
369
759
  uuid?: string | undefined;
760
+ }, {
370
761
  timestamp?: string | undefined;
762
+ uuid?: string | undefined;
371
763
  }>>;
372
764
  }, "strip", z.ZodTypeAny, {
373
765
  content: string;
374
766
  agent?: string | undefined;
375
767
  data?: {
376
- uuid?: string | undefined;
377
768
  timestamp?: string | undefined;
769
+ uuid?: string | undefined;
378
770
  } | undefined;
379
771
  }, {
380
772
  content: string;
381
773
  agent?: string | undefined;
382
774
  data?: {
383
- uuid?: string | undefined;
384
775
  timestamp?: string | undefined;
776
+ uuid?: string | undefined;
385
777
  } | undefined;
386
778
  }>;
387
779
  /** A reply to an outstanding ask_user (user_input_request) — see events.ts. */
@@ -436,25 +828,25 @@ export declare const SendMessageRequestSchema: z.ZodUnion<[z.ZodObject<{
436
828
  uuid: z.ZodOptional<z.ZodString>;
437
829
  timestamp: z.ZodOptional<z.ZodString>;
438
830
  }, "strip", z.ZodTypeAny, {
439
- uuid?: string | undefined;
440
831
  timestamp?: string | undefined;
441
- }, {
442
832
  uuid?: string | undefined;
833
+ }, {
443
834
  timestamp?: string | undefined;
835
+ uuid?: string | undefined;
444
836
  }>>;
445
837
  }, "strip", z.ZodTypeAny, {
446
838
  content: string;
447
839
  agent?: string | undefined;
448
840
  data?: {
449
- uuid?: string | undefined;
450
841
  timestamp?: string | undefined;
842
+ uuid?: string | undefined;
451
843
  } | undefined;
452
844
  }, {
453
845
  content: string;
454
846
  agent?: string | undefined;
455
847
  data?: {
456
- uuid?: string | undefined;
457
848
  timestamp?: string | undefined;
849
+ uuid?: string | undefined;
458
850
  } | undefined;
459
851
  }>]>;
460
852
  export type SendMessageRequest = z.infer<typeof SendMessageRequestSchema>;
@@ -1441,6 +1833,15 @@ export declare const RUNTIME_ROUTES: {
1441
1833
  readonly method: "GET";
1442
1834
  readonly path: "/sessions/:id/state";
1443
1835
  };
1836
+ /**
1837
+ * Per-run + per-session usage stats (tokens + tool/skill/error counters).
1838
+ * Payload: `SessionStatsSchema`. Persisted alongside the session at
1839
+ * `<dataRoot>/.bp/<sid>/stats.json`.
1840
+ */
1841
+ readonly getSessionStats: {
1842
+ readonly method: "GET";
1843
+ readonly path: "/sessions/:id/stats";
1844
+ };
1444
1845
  /** Graph of Trace (reasoning DAG) for a session. */
1445
1846
  readonly getTrace: {
1446
1847
  readonly method: "GET";
@@ -1487,8 +1888,8 @@ export declare const RUNTIME_ROUTES: {
1487
1888
  * Workspace files. `?path=` addresses one of several roots by prefix:
1488
1889
  * - `/workspace[/...]` (or a bare relative path) → per-session workspace
1489
1890
  * `workspaces/:id/` (the agent's cwd);
1490
- * - `/data[/...]` → the shared per-user persistent root `data/<userId>/`,
1491
- * reusable across sessions (#257);
1891
+ * - `/data[/...]` → the runtime's single-user persistent root `data/`,
1892
+ * reusable across sessions (#257/#287);
1492
1893
  * - `/shared[/...]` → the cross-user READ-ONLY shared root (#261), when the
1493
1894
  * deployment configures one (`BP_SHARED_DIR`); writes/deletes are rejected.
1494
1895
  * Each root is traversal-guarded independently.
@@ -1 +1 @@
1
- {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;AAE3D,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,gDAAgD;IAChD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAMD,eAAO,MAAM,oBAAoB;;;;;;EAE/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAMlE,eAAO,MAAM,qBAAqB;;;IAGhC,0EAA0E;;IAE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