@kilocode/sdk 7.2.25 → 7.2.26

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.
@@ -901,6 +901,7 @@ export type CompactionPart = {
901
901
  type: "compaction";
902
902
  auto: boolean;
903
903
  overflow?: boolean;
904
+ tail_start_id?: string;
904
905
  };
905
906
  export type Part = TextPart | SubtaskPart | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart | CompactionPart;
906
907
  export type EventMessagePartUpdated = {
@@ -919,6 +920,12 @@ export type EventMessagePartRemoved = {
919
920
  partID: string;
920
921
  };
921
922
  };
923
+ export type SnapshotSummaryFileDiff = {
924
+ file: string;
925
+ additions: number;
926
+ deletions: number;
927
+ status?: "added" | "deleted" | "modified";
928
+ };
922
929
  export type PermissionAction = "allow" | "deny" | "ask";
923
930
  export type PermissionRule = {
924
931
  permission: string;
@@ -937,12 +944,7 @@ export type Session = {
937
944
  additions: number;
938
945
  deletions: number;
939
946
  files: number;
940
- diffs?: Array<{
941
- file: string;
942
- additions: number;
943
- deletions: number;
944
- status?: "added" | "deleted" | "modified";
945
- }>;
947
+ diffs?: Array<SnapshotSummaryFileDiff>;
946
948
  };
947
949
  share?: {
948
950
  url: string;
@@ -1060,12 +1062,7 @@ export type SyncEventSessionUpdated = {
1060
1062
  additions: number;
1061
1063
  deletions: number;
1062
1064
  files: number;
1063
- diffs?: Array<{
1064
- file: string;
1065
- additions: number;
1066
- deletions: number;
1067
- status?: "added" | "deleted" | "modified";
1068
- }>;
1065
+ diffs?: Array<SnapshotSummaryFileDiff>;
1069
1066
  } | null;
1070
1067
  share?: {
1071
1068
  url: string | null;
@@ -1139,8 +1136,7 @@ export type PermissionObjectConfig = {
1139
1136
  [key: string]: PermissionActionConfig;
1140
1137
  };
1141
1138
  export type PermissionRuleConfig = PermissionActionConfig | PermissionObjectConfig;
1142
- export type PermissionConfig = {
1143
- __originalKeys?: Array<string>;
1139
+ export type PermissionConfig = PermissionActionConfig | {
1144
1140
  read?: PermissionRuleConfig;
1145
1141
  edit?: PermissionRuleConfig;
1146
1142
  glob?: PermissionRuleConfig;
@@ -1157,8 +1153,8 @@ export type PermissionConfig = {
1157
1153
  lsp?: PermissionRuleConfig;
1158
1154
  doom_loop?: PermissionActionConfig;
1159
1155
  skill?: PermissionRuleConfig;
1160
- [key: string]: PermissionRuleConfig | Array<string> | PermissionActionConfig | undefined;
1161
- } | PermissionActionConfig;
1156
+ [key: string]: PermissionRuleConfig | PermissionActionConfig | undefined;
1157
+ };
1162
1158
  export type AgentConfig = {
1163
1159
  model?: string | null;
1164
1160
  /**
@@ -1551,6 +1547,14 @@ export type Config = {
1551
1547
  * Enable pruning of old tool outputs (default: true)
1552
1548
  */
1553
1549
  prune?: boolean;
1550
+ /**
1551
+ * Number of recent user turns, including their following assistant/tool responses, to keep verbatim during compaction (default: 2)
1552
+ */
1553
+ tail_turns?: number;
1554
+ /**
1555
+ * Maximum number of tokens from recent turns to preserve verbatim after compaction
1556
+ */
1557
+ preserve_recent_tokens?: number;
1554
1558
  /**
1555
1559
  * Token buffer for compaction. Leaves enough window to avoid overflow during compaction.
1556
1560
  */
@@ -1771,12 +1775,7 @@ export type GlobalSession = {
1771
1775
  additions: number;
1772
1776
  deletions: number;
1773
1777
  files: number;
1774
- diffs?: Array<{
1775
- file: string;
1776
- additions: number;
1777
- deletions: number;
1778
- status?: "added" | "deleted" | "modified";
1779
- }>;
1778
+ diffs?: Array<SnapshotSummaryFileDiff>;
1780
1779
  };
1781
1780
  share?: {
1782
1781
  url: string;
@@ -5849,6 +5848,7 @@ export type KiloFimResponses = {
5849
5848
  delta?: {
5850
5849
  content?: string;
5851
5850
  };
5851
+ text?: string;
5852
5852
  }>;
5853
5853
  usage?: {
5854
5854
  prompt_tokens?: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@kilocode/sdk",
4
- "version": "7.2.25",
4
+ "version": "7.2.26",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {