codebuff 1.0.293 → 1.0.295

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.
@@ -4,12 +4,12 @@ export declare const FileChangeSchema: z.ZodObject<{
4
4
  path: z.ZodString;
5
5
  content: z.ZodString;
6
6
  }, "strip", z.ZodTypeAny, {
7
- type: "patch" | "file";
8
7
  path: string;
8
+ type: "file" | "patch";
9
9
  content: string;
10
10
  }, {
11
- type: "patch" | "file";
12
11
  path: string;
12
+ type: "file" | "patch";
13
13
  content: string;
14
14
  }>;
15
15
  export type FileChange = z.infer<typeof FileChangeSchema>;
@@ -18,12 +18,12 @@ export declare const CHANGES: z.ZodArray<z.ZodObject<{
18
18
  path: z.ZodString;
19
19
  content: z.ZodString;
20
20
  }, "strip", z.ZodTypeAny, {
21
- type: "patch" | "file";
22
21
  path: string;
22
+ type: "file" | "patch";
23
23
  content: string;
24
24
  }, {
25
- type: "patch" | "file";
26
25
  path: string;
26
+ type: "file" | "patch";
27
27
  content: string;
28
28
  }>, "many">;
29
29
  export type FileChanges = z.infer<typeof CHANGES>;
@@ -792,7 +792,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
792
792
  }>;
793
793
  }, "strip", z.ZodTypeAny, {
794
794
  type: "init";
795
- fingerprintId: string;
796
795
  fileContext: {
797
796
  currentWorkingDirectory: string;
798
797
  fileTree: import("./util/file").FileTreeNode[];
@@ -821,10 +820,10 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
821
820
  content: string;
822
821
  }[][] | undefined;
823
822
  };
823
+ fingerprintId: string;
824
824
  authToken?: string | undefined;
825
825
  }, {
826
826
  type: "init";
827
- fingerprintId: string;
828
827
  fileContext: {
829
828
  currentWorkingDirectory: string;
830
829
  fileTree: import("./util/file").FileTreeNode[];
@@ -853,6 +852,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
853
852
  content: string;
854
853
  }[][] | undefined;
855
854
  };
855
+ fingerprintId: string;
856
856
  authToken?: string | undefined;
857
857
  }>, z.ZodObject<{
858
858
  type: z.ZodLiteral<"generate-commit-message">;
@@ -928,12 +928,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
928
928
  path: z.ZodString;
929
929
  content: z.ZodString;
930
930
  }, "strip", z.ZodTypeAny, {
931
- type: "patch" | "file";
932
931
  path: string;
932
+ type: "file" | "patch";
933
933
  content: string;
934
934
  }, {
935
- type: "patch" | "file";
936
935
  path: string;
936
+ type: "file" | "patch";
937
937
  content: string;
938
938
  }>, "many">;
939
939
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -941,12 +941,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
941
941
  path: z.ZodString;
942
942
  content: z.ZodString;
943
943
  }, "strip", z.ZodTypeAny, {
944
- type: "patch" | "file";
945
944
  path: string;
945
+ type: "file" | "patch";
946
946
  content: string;
947
947
  }, {
948
- type: "patch" | "file";
949
948
  path: string;
949
+ type: "file" | "patch";
950
950
  content: string;
951
951
  }>, "many">;
952
952
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -971,13 +971,13 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
971
971
  userInputId: string;
972
972
  response: string;
973
973
  changes: {
974
- type: "patch" | "file";
975
974
  path: string;
975
+ type: "file" | "patch";
976
976
  content: string;
977
977
  }[];
978
978
  changesAlreadyApplied: {
979
- type: "patch" | "file";
980
979
  path: string;
980
+ type: "file" | "patch";
981
981
  content: string;
982
982
  }[];
983
983
  addedFileVersions: {
@@ -995,13 +995,13 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
995
995
  userInputId: string;
996
996
  response: string;
997
997
  changes: {
998
- type: "patch" | "file";
999
998
  path: string;
999
+ type: "file" | "patch";
1000
1000
  content: string;
1001
1001
  }[];
1002
1002
  changesAlreadyApplied: {
1003
- type: "patch" | "file";
1004
1003
  path: string;
1004
+ type: "file" | "patch";
1005
1005
  content: string;
1006
1006
  }[];
1007
1007
  addedFileVersions: {
@@ -1678,12 +1678,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1678
1678
  path: z.ZodString;
1679
1679
  content: z.ZodString;
1680
1680
  }, "strip", z.ZodTypeAny, {
1681
- type: "patch" | "file";
1682
1681
  path: string;
1682
+ type: "file" | "patch";
1683
1683
  content: string;
1684
1684
  }, {
1685
- type: "patch" | "file";
1686
1685
  path: string;
1686
+ type: "file" | "patch";
1687
1687
  content: string;
1688
1688
  }>, "many">;
1689
1689
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -1691,12 +1691,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1691
1691
  path: z.ZodString;
1692
1692
  content: z.ZodString;
1693
1693
  }, "strip", z.ZodTypeAny, {
1694
- type: "patch" | "file";
1695
1694
  path: string;
1695
+ type: "file" | "patch";
1696
1696
  content: string;
1697
1697
  }, {
1698
- type: "patch" | "file";
1699
1698
  path: string;
1699
+ type: "file" | "patch";
1700
1700
  content: string;
1701
1701
  }>, "many">;
1702
1702
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -1721,13 +1721,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1721
1721
  userInputId: string;
1722
1722
  response: string;
1723
1723
  changes: {
1724
- type: "patch" | "file";
1725
1724
  path: string;
1725
+ type: "file" | "patch";
1726
1726
  content: string;
1727
1727
  }[];
1728
1728
  changesAlreadyApplied: {
1729
- type: "patch" | "file";
1730
1729
  path: string;
1730
+ type: "file" | "patch";
1731
1731
  content: string;
1732
1732
  }[];
1733
1733
  addedFileVersions: {
@@ -1745,13 +1745,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1745
1745
  userInputId: string;
1746
1746
  response: string;
1747
1747
  changes: {
1748
- type: "patch" | "file";
1749
1748
  path: string;
1749
+ type: "file" | "patch";
1750
1750
  content: string;
1751
1751
  }[];
1752
1752
  changesAlreadyApplied: {
1753
- type: "patch" | "file";
1754
1753
  path: string;
1754
+ type: "file" | "patch";
1755
1755
  content: string;
1756
1756
  }[];
1757
1757
  addedFileVersions: {
@@ -2424,12 +2424,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2424
2424
  path: z.ZodString;
2425
2425
  content: z.ZodString;
2426
2426
  }, "strip", z.ZodTypeAny, {
2427
- type: "patch" | "file";
2428
2427
  path: string;
2428
+ type: "file" | "patch";
2429
2429
  content: string;
2430
2430
  }, {
2431
- type: "patch" | "file";
2432
2431
  path: string;
2432
+ type: "file" | "patch";
2433
2433
  content: string;
2434
2434
  }>, "many">;
2435
2435
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -2437,12 +2437,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2437
2437
  path: z.ZodString;
2438
2438
  content: z.ZodString;
2439
2439
  }, "strip", z.ZodTypeAny, {
2440
- type: "patch" | "file";
2441
2440
  path: string;
2441
+ type: "file" | "patch";
2442
2442
  content: string;
2443
2443
  }, {
2444
- type: "patch" | "file";
2445
2444
  path: string;
2445
+ type: "file" | "patch";
2446
2446
  content: string;
2447
2447
  }>, "many">;
2448
2448
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -2466,13 +2466,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2466
2466
  userInputId: string;
2467
2467
  response: string;
2468
2468
  changes: {
2469
- type: "patch" | "file";
2470
2469
  path: string;
2470
+ type: "file" | "patch";
2471
2471
  content: string;
2472
2472
  }[];
2473
2473
  changesAlreadyApplied: {
2474
- type: "patch" | "file";
2475
2474
  path: string;
2475
+ type: "file" | "patch";
2476
2476
  content: string;
2477
2477
  }[];
2478
2478
  addedFileVersions: {
@@ -2490,13 +2490,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2490
2490
  userInputId: string;
2491
2491
  response: string;
2492
2492
  changes: {
2493
- type: "patch" | "file";
2494
2493
  path: string;
2494
+ type: "file" | "patch";
2495
2495
  content: string;
2496
2496
  }[];
2497
2497
  changesAlreadyApplied: {
2498
- type: "patch" | "file";
2499
2498
  path: string;
2499
+ type: "file" | "patch";
2500
2500
  content: string;
2501
2501
  }[];
2502
2502
  addedFileVersions: {
@@ -2590,13 +2590,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2590
2590
  error: z.ZodOptional<z.ZodString>;
2591
2591
  remainingBalance: z.ZodOptional<z.ZodNumber>;
2592
2592
  }, "strip", z.ZodTypeAny, {
2593
- type: "action-error";
2594
2593
  message: string;
2594
+ type: "action-error";
2595
2595
  remainingBalance?: number | undefined;
2596
2596
  error?: string | undefined;
2597
2597
  }, {
2598
- type: "action-error";
2599
2598
  message: string;
2599
+ type: "action-error";
2600
2600
  remainingBalance?: number | undefined;
2601
2601
  error?: string | undefined;
2602
2602
  }>, z.ZodObject<{