@intentic/sandbox-contract 1.341.0 → 1.343.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.
Files changed (96) hide show
  1. package/README.md +4 -0
  2. package/dist/contracts/agent.contract.d.ts +54 -0
  3. package/dist/contracts/agent.contract.d.ts.map +1 -1
  4. package/dist/contracts/agent.contract.js +11 -1
  5. package/dist/contracts/agent.contract.js.map +1 -1
  6. package/dist/contracts/agents.contract.d.ts +17 -0
  7. package/dist/contracts/agents.contract.d.ts.map +1 -1
  8. package/dist/contracts/runner.contract.d.ts +123 -123
  9. package/dist/contracts/settings.contract.d.ts +284 -6
  10. package/dist/contracts/settings.contract.d.ts.map +1 -1
  11. package/dist/contracts/system.contract.d.ts +33 -30
  12. package/dist/contracts/system.contract.d.ts.map +1 -1
  13. package/dist/contracts/workspace.contract.d.ts +9 -0
  14. package/dist/contracts/workspace.contract.d.ts.map +1 -1
  15. package/dist/contracts/workspace.contract.js +11 -1
  16. package/dist/contracts/workspace.contract.js.map +1 -1
  17. package/dist/events/system-events.d.ts +2 -0
  18. package/dist/events/system-events.d.ts.map +1 -1
  19. package/dist/index.d.ts +367 -6
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/models/agent-standing.d.ts +1 -0
  22. package/dist/models/agent-standing.d.ts.map +1 -1
  23. package/dist/models/agent-standing.js +4 -1
  24. package/dist/models/agent-standing.js.map +1 -1
  25. package/dist/protocol/raw/raw-routes.d.ts +4 -0
  26. package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
  27. package/dist/protocol/raw/raw-routes.js +1 -0
  28. package/dist/protocol/raw/raw-routes.js.map +1 -1
  29. package/dist/schemas/agent.d.ts +4 -0
  30. package/dist/schemas/agent.d.ts.map +1 -1
  31. package/dist/schemas/agent.js +4 -0
  32. package/dist/schemas/agent.js.map +1 -1
  33. package/dist/schemas/agents-list.d.ts +1 -0
  34. package/dist/schemas/agents-list.d.ts.map +1 -1
  35. package/dist/schemas/agents.d.ts +3 -0
  36. package/dist/schemas/agents.d.ts.map +1 -1
  37. package/dist/schemas/dev-rebuild-log.d.ts +11 -0
  38. package/dist/schemas/dev-rebuild-log.d.ts.map +1 -0
  39. package/dist/schemas/dev-rebuild-log.js +30 -0
  40. package/dist/schemas/dev-rebuild-log.js.map +1 -0
  41. package/dist/schemas/devices.d.ts +1 -10
  42. package/dist/schemas/devices.d.ts.map +1 -1
  43. package/dist/schemas/devices.js +1 -29
  44. package/dist/schemas/devices.js.map +1 -1
  45. package/dist/schemas/keep-warm.d.ts +7 -0
  46. package/dist/schemas/keep-warm.d.ts.map +1 -1
  47. package/dist/schemas/keep-warm.js +25 -0
  48. package/dist/schemas/keep-warm.js.map +1 -1
  49. package/dist/schemas/providers/plan-limits.d.ts +27 -0
  50. package/dist/schemas/providers/plan-limits.d.ts.map +1 -1
  51. package/dist/schemas/providers/plan-limits.js +23 -0
  52. package/dist/schemas/providers/plan-limits.js.map +1 -1
  53. package/dist/schemas/providers/usage.d.ts +4 -0
  54. package/dist/schemas/providers/usage.d.ts.map +1 -1
  55. package/dist/schemas/providers/usage.js +4 -0
  56. package/dist/schemas/providers/usage.js.map +1 -1
  57. package/dist/schemas/settings-experiments.d.ts +15 -0
  58. package/dist/schemas/settings-experiments.d.ts.map +1 -0
  59. package/dist/schemas/settings-experiments.js +52 -0
  60. package/dist/schemas/settings-experiments.js.map +1 -0
  61. package/dist/schemas/settings.d.ts +293 -13
  62. package/dist/schemas/settings.d.ts.map +1 -1
  63. package/dist/schemas/settings.js +13 -40
  64. package/dist/schemas/settings.js.map +1 -1
  65. package/dist/schemas/workspace/workspace-tree.d.ts +10 -0
  66. package/dist/schemas/workspace/workspace-tree.d.ts.map +1 -1
  67. package/dist/schemas/workspace/workspace-tree.js +15 -0
  68. package/dist/schemas/workspace/workspace-tree.js.map +1 -1
  69. package/dist/state/definition.d.ts +40 -12
  70. package/dist/state/definition.d.ts.map +1 -1
  71. package/dist/text/preview-guide.d.ts +15 -0
  72. package/dist/text/preview-guide.d.ts.map +1 -0
  73. package/dist/text/preview-guide.js +138 -0
  74. package/dist/text/preview-guide.js.map +1 -0
  75. package/dist/time/zone.d.ts +1 -0
  76. package/dist/time/zone.d.ts.map +1 -1
  77. package/dist/time/zone.js +6 -0
  78. package/dist/time/zone.js.map +1 -1
  79. package/package.json +5 -5
  80. package/src/contracts/agent.contract.ts +13 -0
  81. package/src/contracts/workspace.contract.ts +15 -0
  82. package/src/models/agent-standing.ts +21 -3
  83. package/src/protocol/raw/raw-routes.ts +3 -0
  84. package/src/schemas/agent.ts +6 -0
  85. package/src/schemas/dev-rebuild-log.test.ts +1 -1
  86. package/src/schemas/dev-rebuild-log.ts +58 -0
  87. package/src/schemas/devices.ts +2 -54
  88. package/src/schemas/keep-warm.ts +34 -0
  89. package/src/schemas/providers/plan-limits.ts +29 -0
  90. package/src/schemas/providers/usage.ts +9 -0
  91. package/src/schemas/settings-experiments.ts +80 -0
  92. package/src/schemas/settings.ts +24 -53
  93. package/src/schemas/workspace/workspace-tree.ts +20 -0
  94. package/src/text/preview-guide.ts +159 -0
  95. package/src/time/zone.test.ts +18 -1
  96. package/src/time/zone.ts +12 -0
@@ -189,13 +189,7 @@ export declare const SkillSwitchSchema: z.ZodObject<{
189
189
  on: z.ZodBoolean;
190
190
  }, z.core.$strip>;
191
191
  export type SkillSwitch = z.infer<typeof SkillSwitchSchema>;
192
- export declare const KeepWarmSettingsSchema: z.ZodObject<{
193
- auto: z.ZodDefault<z.ZodBoolean>;
194
- hours: z.ZodDefault<z.ZodNumber>;
195
- minTokens: z.ZodDefault<z.ZodNumber>;
196
- reserve: z.ZodDefault<z.ZodNumber>;
197
- }, z.core.$strip>;
198
- export type KeepWarmSettings = z.infer<typeof KeepWarmSettingsSchema>;
192
+ export { type KeepWarmSettings, KeepWarmSettingsSchema } from "./keep-warm.js";
199
193
  export declare const AudienceSchema: z.ZodEnum<{
200
194
  developer: "developer";
201
195
  maker: "maker";
@@ -209,12 +203,21 @@ export declare const MemberAudienceSchema: z.ZodObject<{
209
203
  }, z.core.$strip>;
210
204
  export type MemberAudience = z.infer<typeof MemberAudienceSchema>;
211
205
  export declare const SandboxSettingsSchema: z.ZodObject<{
212
- timezone: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString & z.ZodType<import("../time/zone.js").Zone, string, z.core.$ZodTypeInternals<import("../time/zone.js").Zone, string>>]>>;
206
+ toolSearch: z.ZodDefault<z.ZodBoolean>;
207
+ toolSearchHoldout: z.ZodDefault<z.ZodNumber>;
213
208
  stableSystemPrompt: z.ZodDefault<z.ZodBoolean>;
209
+ stableSystemPromptHoldout: z.ZodDefault<z.ZodNumber>;
210
+ coldTrim: z.ZodDefault<z.ZodBoolean>;
211
+ coldTrimHoldout: z.ZodDefault<z.ZodNumber>;
212
+ coldTrimMinTokens: z.ZodDefault<z.ZodNumber>;
213
+ iqSearch: z.ZodDefault<z.ZodBoolean>;
214
+ iqSearchHoldout: z.ZodDefault<z.ZodNumber>;
215
+ timezone: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString & z.ZodType<import("../time/zone.js").Zone, string, z.core.$ZodTypeInternals<import("../time/zone.js").Zone, string>>]>>;
214
216
  skills: z.ZodDefault<z.ZodArray<z.ZodString>>;
215
217
  personaRouting: z.ZodDefault<z.ZodBoolean>;
216
218
  chatPages: z.ZodDefault<z.ZodBoolean>;
217
219
  documentSearch: z.ZodDefault<z.ZodBoolean>;
220
+ sleepWhenUnused: z.ZodDefault<z.ZodBoolean>;
218
221
  hashlineEdits: z.ZodDefault<z.ZodBoolean>;
219
222
  systemPromptMode: z.ZodDefault<z.ZodEnum<{
220
223
  claude: "claude";
@@ -222,8 +225,6 @@ export declare const SandboxSettingsSchema: z.ZodObject<{
222
225
  intentic: "intentic";
223
226
  }>>;
224
227
  systemPrompt: z.ZodDefault<z.ZodString>;
225
- iqSearch: z.ZodDefault<z.ZodBoolean>;
226
- iqSearchHoldout: z.ZodDefault<z.ZodNumber>;
227
228
  workspaceMap: z.ZodDefault<z.ZodBoolean>;
228
229
  workspaceMapHoldout: z.ZodDefault<z.ZodNumber>;
229
230
  fieldNotes: z.ZodDefault<z.ZodBoolean>;
@@ -452,12 +453,21 @@ export declare const SandboxSettingsSchema: z.ZodObject<{
452
453
  }, z.core.$strip>;
453
454
  export type SandboxSettings = z.infer<typeof SandboxSettingsSchema>;
454
455
  export declare const SandboxSettingsWriteSchema: z.ZodObject<{
455
- timezone: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString & z.ZodType<import("../time/zone.js").Zone, string, z.core.$ZodTypeInternals<import("../time/zone.js").Zone, string>>]>>;
456
+ toolSearch: z.ZodDefault<z.ZodBoolean>;
457
+ toolSearchHoldout: z.ZodDefault<z.ZodNumber>;
456
458
  stableSystemPrompt: z.ZodDefault<z.ZodBoolean>;
459
+ stableSystemPromptHoldout: z.ZodDefault<z.ZodNumber>;
460
+ coldTrim: z.ZodDefault<z.ZodBoolean>;
461
+ coldTrimHoldout: z.ZodDefault<z.ZodNumber>;
462
+ coldTrimMinTokens: z.ZodDefault<z.ZodNumber>;
463
+ iqSearch: z.ZodDefault<z.ZodBoolean>;
464
+ iqSearchHoldout: z.ZodDefault<z.ZodNumber>;
465
+ timezone: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString & z.ZodType<import("../time/zone.js").Zone, string, z.core.$ZodTypeInternals<import("../time/zone.js").Zone, string>>]>>;
457
466
  skills: z.ZodDefault<z.ZodArray<z.ZodString>>;
458
467
  personaRouting: z.ZodDefault<z.ZodBoolean>;
459
468
  chatPages: z.ZodDefault<z.ZodBoolean>;
460
469
  documentSearch: z.ZodDefault<z.ZodBoolean>;
470
+ sleepWhenUnused: z.ZodDefault<z.ZodBoolean>;
461
471
  hashlineEdits: z.ZodDefault<z.ZodBoolean>;
462
472
  systemPromptMode: z.ZodDefault<z.ZodEnum<{
463
473
  claude: "claude";
@@ -465,8 +475,6 @@ export declare const SandboxSettingsWriteSchema: z.ZodObject<{
465
475
  intentic: "intentic";
466
476
  }>>;
467
477
  systemPrompt: z.ZodDefault<z.ZodString>;
468
- iqSearch: z.ZodDefault<z.ZodBoolean>;
469
- iqSearchHoldout: z.ZodDefault<z.ZodNumber>;
470
478
  workspaceMap: z.ZodDefault<z.ZodBoolean>;
471
479
  workspaceMapHoldout: z.ZodDefault<z.ZodNumber>;
472
480
  fieldNotes: z.ZodDefault<z.ZodBoolean>;
@@ -765,7 +773,9 @@ export declare const TurnMetricReadingSchema: z.ZodObject<{
765
773
  callsBeforeTarget: "callsBeforeTarget";
766
774
  failedCalls: "failedCalls";
767
775
  openedWithListing: "openedWithListing";
776
+ openingPrompt: "openingPrompt";
768
777
  openingSearches: "openingSearches";
778
+ openingWrite: "openingWrite";
769
779
  searchCalls: "searchCalls";
770
780
  }>;
771
781
  on: z.ZodObject<{
@@ -788,7 +798,9 @@ export declare const TurnExperimentSchema: z.ZodObject<{
788
798
  callsBeforeTarget: "callsBeforeTarget";
789
799
  failedCalls: "failedCalls";
790
800
  openedWithListing: "openedWithListing";
801
+ openingPrompt: "openingPrompt";
791
802
  openingSearches: "openingSearches";
803
+ openingWrite: "openingWrite";
792
804
  searchCalls: "searchCalls";
793
805
  }>;
794
806
  on: z.ZodObject<{
@@ -808,7 +820,9 @@ export declare const TurnExperimentSchema: z.ZodObject<{
808
820
  callsBeforeTarget: "callsBeforeTarget";
809
821
  failedCalls: "failedCalls";
810
822
  openedWithListing: "openedWithListing";
823
+ openingPrompt: "openingPrompt";
811
824
  openingSearches: "openingSearches";
825
+ openingWrite: "openingWrite";
812
826
  searchCalls: "searchCalls";
813
827
  }>;
814
828
  on: z.ZodObject<{
@@ -840,7 +854,9 @@ export declare const TurnExperimentSchema: z.ZodObject<{
840
854
  callsBeforeTarget: "callsBeforeTarget";
841
855
  failedCalls: "failedCalls";
842
856
  openedWithListing: "openedWithListing";
857
+ openingPrompt: "openingPrompt";
843
858
  openingSearches: "openingSearches";
859
+ openingWrite: "openingWrite";
844
860
  searchCalls: "searchCalls";
845
861
  }>;
846
862
  on: z.ZodObject<{
@@ -903,7 +919,9 @@ export declare const SavingsReportSchema: z.ZodObject<{
903
919
  callsBeforeTarget: "callsBeforeTarget";
904
920
  failedCalls: "failedCalls";
905
921
  openedWithListing: "openedWithListing";
922
+ openingPrompt: "openingPrompt";
906
923
  openingSearches: "openingSearches";
924
+ openingWrite: "openingWrite";
907
925
  searchCalls: "searchCalls";
908
926
  }>;
909
927
  on: z.ZodObject<{
@@ -923,7 +941,9 @@ export declare const SavingsReportSchema: z.ZodObject<{
923
941
  callsBeforeTarget: "callsBeforeTarget";
924
942
  failedCalls: "failedCalls";
925
943
  openedWithListing: "openedWithListing";
944
+ openingPrompt: "openingPrompt";
926
945
  openingSearches: "openingSearches";
946
+ openingWrite: "openingWrite";
927
947
  searchCalls: "searchCalls";
928
948
  }>;
929
949
  on: z.ZodObject<{
@@ -955,7 +975,9 @@ export declare const SavingsReportSchema: z.ZodObject<{
955
975
  callsBeforeTarget: "callsBeforeTarget";
956
976
  failedCalls: "failedCalls";
957
977
  openedWithListing: "openedWithListing";
978
+ openingPrompt: "openingPrompt";
958
979
  openingSearches: "openingSearches";
980
+ openingWrite: "openingWrite";
959
981
  searchCalls: "searchCalls";
960
982
  }>;
961
983
  on: z.ZodObject<{
@@ -979,7 +1001,9 @@ export declare const SavingsReportSchema: z.ZodObject<{
979
1001
  callsBeforeTarget: "callsBeforeTarget";
980
1002
  failedCalls: "failedCalls";
981
1003
  openedWithListing: "openedWithListing";
1004
+ openingPrompt: "openingPrompt";
982
1005
  openingSearches: "openingSearches";
1006
+ openingWrite: "openingWrite";
983
1007
  searchCalls: "searchCalls";
984
1008
  }>;
985
1009
  on: z.ZodObject<{
@@ -999,7 +1023,9 @@ export declare const SavingsReportSchema: z.ZodObject<{
999
1023
  callsBeforeTarget: "callsBeforeTarget";
1000
1024
  failedCalls: "failedCalls";
1001
1025
  openedWithListing: "openedWithListing";
1026
+ openingPrompt: "openingPrompt";
1002
1027
  openingSearches: "openingSearches";
1028
+ openingWrite: "openingWrite";
1003
1029
  searchCalls: "searchCalls";
1004
1030
  }>;
1005
1031
  on: z.ZodObject<{
@@ -1031,7 +1057,9 @@ export declare const SavingsReportSchema: z.ZodObject<{
1031
1057
  callsBeforeTarget: "callsBeforeTarget";
1032
1058
  failedCalls: "failedCalls";
1033
1059
  openedWithListing: "openedWithListing";
1060
+ openingPrompt: "openingPrompt";
1034
1061
  openingSearches: "openingSearches";
1062
+ openingWrite: "openingWrite";
1035
1063
  searchCalls: "searchCalls";
1036
1064
  }>;
1037
1065
  on: z.ZodObject<{
@@ -1055,7 +1083,255 @@ export declare const SavingsReportSchema: z.ZodObject<{
1055
1083
  callsBeforeTarget: "callsBeforeTarget";
1056
1084
  failedCalls: "failedCalls";
1057
1085
  openedWithListing: "openedWithListing";
1086
+ openingPrompt: "openingPrompt";
1087
+ openingSearches: "openingSearches";
1088
+ openingWrite: "openingWrite";
1089
+ searchCalls: "searchCalls";
1090
+ }>;
1091
+ on: z.ZodObject<{
1092
+ turns: z.ZodNumber;
1093
+ mean: z.ZodNumber;
1094
+ }, z.core.$strip>;
1095
+ off: z.ZodObject<{
1096
+ turns: z.ZodNumber;
1097
+ mean: z.ZodNumber;
1098
+ }, z.core.$strip>;
1099
+ controlTurnsNeeded: z.ZodOptional<z.ZodNumber>;
1100
+ marginPct: z.ZodOptional<z.ZodNumber>;
1101
+ deltaPct: z.ZodOptional<z.ZodNumber>;
1102
+ saved: z.ZodOptional<z.ZodNumber>;
1103
+ }, z.core.$strip>], z.ZodObject<{
1104
+ metric: z.ZodEnum<{
1105
+ callsBeforeTarget: "callsBeforeTarget";
1106
+ failedCalls: "failedCalls";
1107
+ openedWithListing: "openedWithListing";
1108
+ openingPrompt: "openingPrompt";
1109
+ openingSearches: "openingSearches";
1110
+ openingWrite: "openingWrite";
1111
+ searchCalls: "searchCalls";
1112
+ }>;
1113
+ on: z.ZodObject<{
1114
+ turns: z.ZodNumber;
1115
+ mean: z.ZodNumber;
1116
+ }, z.core.$strip>;
1117
+ off: z.ZodObject<{
1118
+ turns: z.ZodNumber;
1119
+ mean: z.ZodNumber;
1120
+ }, z.core.$strip>;
1121
+ controlTurnsNeeded: z.ZodOptional<z.ZodNumber>;
1122
+ marginPct: z.ZodOptional<z.ZodNumber>;
1123
+ deltaPct: z.ZodOptional<z.ZodNumber>;
1124
+ saved: z.ZodOptional<z.ZodNumber>;
1125
+ }, z.core.$strip>>;
1126
+ minTurns: z.ZodNumber;
1127
+ sampleUnit: z.ZodOptional<z.ZodEnum<{
1128
+ conversations: "conversations";
1129
+ "opening turns": "opening turns";
1130
+ turns: "turns";
1131
+ }>>;
1132
+ cohort: z.ZodOptional<z.ZodString>;
1133
+ previous: z.ZodOptional<z.ZodObject<{
1134
+ from: z.ZodNumber;
1135
+ to: z.ZodNumber;
1136
+ cohort: z.ZodOptional<z.ZodString>;
1137
+ metrics: z.ZodArray<z.ZodObject<{
1138
+ metric: z.ZodEnum<{
1139
+ callsBeforeTarget: "callsBeforeTarget";
1140
+ failedCalls: "failedCalls";
1141
+ openedWithListing: "openedWithListing";
1142
+ openingPrompt: "openingPrompt";
1143
+ openingSearches: "openingSearches";
1144
+ openingWrite: "openingWrite";
1145
+ searchCalls: "searchCalls";
1146
+ }>;
1147
+ on: z.ZodObject<{
1148
+ turns: z.ZodNumber;
1149
+ mean: z.ZodNumber;
1150
+ }, z.core.$strip>;
1151
+ off: z.ZodObject<{
1152
+ turns: z.ZodNumber;
1153
+ mean: z.ZodNumber;
1154
+ }, z.core.$strip>;
1155
+ controlTurnsNeeded: z.ZodOptional<z.ZodNumber>;
1156
+ marginPct: z.ZodOptional<z.ZodNumber>;
1157
+ deltaPct: z.ZodOptional<z.ZodNumber>;
1158
+ saved: z.ZodOptional<z.ZodNumber>;
1159
+ }, z.core.$strip>>;
1160
+ }, z.core.$strip>>;
1161
+ }, z.core.$strip>>;
1162
+ toolSearch: z.ZodOptional<z.ZodObject<{
1163
+ metrics: z.ZodTuple<[z.ZodObject<{
1164
+ metric: z.ZodEnum<{
1165
+ callsBeforeTarget: "callsBeforeTarget";
1166
+ failedCalls: "failedCalls";
1167
+ openedWithListing: "openedWithListing";
1168
+ openingPrompt: "openingPrompt";
1169
+ openingSearches: "openingSearches";
1170
+ openingWrite: "openingWrite";
1171
+ searchCalls: "searchCalls";
1172
+ }>;
1173
+ on: z.ZodObject<{
1174
+ turns: z.ZodNumber;
1175
+ mean: z.ZodNumber;
1176
+ }, z.core.$strip>;
1177
+ off: z.ZodObject<{
1178
+ turns: z.ZodNumber;
1179
+ mean: z.ZodNumber;
1180
+ }, z.core.$strip>;
1181
+ controlTurnsNeeded: z.ZodOptional<z.ZodNumber>;
1182
+ marginPct: z.ZodOptional<z.ZodNumber>;
1183
+ deltaPct: z.ZodOptional<z.ZodNumber>;
1184
+ saved: z.ZodOptional<z.ZodNumber>;
1185
+ }, z.core.$strip>], z.ZodObject<{
1186
+ metric: z.ZodEnum<{
1187
+ callsBeforeTarget: "callsBeforeTarget";
1188
+ failedCalls: "failedCalls";
1189
+ openedWithListing: "openedWithListing";
1190
+ openingPrompt: "openingPrompt";
1191
+ openingSearches: "openingSearches";
1192
+ openingWrite: "openingWrite";
1193
+ searchCalls: "searchCalls";
1194
+ }>;
1195
+ on: z.ZodObject<{
1196
+ turns: z.ZodNumber;
1197
+ mean: z.ZodNumber;
1198
+ }, z.core.$strip>;
1199
+ off: z.ZodObject<{
1200
+ turns: z.ZodNumber;
1201
+ mean: z.ZodNumber;
1202
+ }, z.core.$strip>;
1203
+ controlTurnsNeeded: z.ZodOptional<z.ZodNumber>;
1204
+ marginPct: z.ZodOptional<z.ZodNumber>;
1205
+ deltaPct: z.ZodOptional<z.ZodNumber>;
1206
+ saved: z.ZodOptional<z.ZodNumber>;
1207
+ }, z.core.$strip>>;
1208
+ minTurns: z.ZodNumber;
1209
+ sampleUnit: z.ZodOptional<z.ZodEnum<{
1210
+ conversations: "conversations";
1211
+ "opening turns": "opening turns";
1212
+ turns: "turns";
1213
+ }>>;
1214
+ cohort: z.ZodOptional<z.ZodString>;
1215
+ previous: z.ZodOptional<z.ZodObject<{
1216
+ from: z.ZodNumber;
1217
+ to: z.ZodNumber;
1218
+ cohort: z.ZodOptional<z.ZodString>;
1219
+ metrics: z.ZodArray<z.ZodObject<{
1220
+ metric: z.ZodEnum<{
1221
+ callsBeforeTarget: "callsBeforeTarget";
1222
+ failedCalls: "failedCalls";
1223
+ openedWithListing: "openedWithListing";
1224
+ openingPrompt: "openingPrompt";
1225
+ openingSearches: "openingSearches";
1226
+ openingWrite: "openingWrite";
1227
+ searchCalls: "searchCalls";
1228
+ }>;
1229
+ on: z.ZodObject<{
1230
+ turns: z.ZodNumber;
1231
+ mean: z.ZodNumber;
1232
+ }, z.core.$strip>;
1233
+ off: z.ZodObject<{
1234
+ turns: z.ZodNumber;
1235
+ mean: z.ZodNumber;
1236
+ }, z.core.$strip>;
1237
+ controlTurnsNeeded: z.ZodOptional<z.ZodNumber>;
1238
+ marginPct: z.ZodOptional<z.ZodNumber>;
1239
+ deltaPct: z.ZodOptional<z.ZodNumber>;
1240
+ saved: z.ZodOptional<z.ZodNumber>;
1241
+ }, z.core.$strip>>;
1242
+ }, z.core.$strip>>;
1243
+ }, z.core.$strip>>;
1244
+ stablePrompt: z.ZodOptional<z.ZodObject<{
1245
+ metrics: z.ZodTuple<[z.ZodObject<{
1246
+ metric: z.ZodEnum<{
1247
+ callsBeforeTarget: "callsBeforeTarget";
1248
+ failedCalls: "failedCalls";
1249
+ openedWithListing: "openedWithListing";
1250
+ openingPrompt: "openingPrompt";
1251
+ openingSearches: "openingSearches";
1252
+ openingWrite: "openingWrite";
1253
+ searchCalls: "searchCalls";
1254
+ }>;
1255
+ on: z.ZodObject<{
1256
+ turns: z.ZodNumber;
1257
+ mean: z.ZodNumber;
1258
+ }, z.core.$strip>;
1259
+ off: z.ZodObject<{
1260
+ turns: z.ZodNumber;
1261
+ mean: z.ZodNumber;
1262
+ }, z.core.$strip>;
1263
+ controlTurnsNeeded: z.ZodOptional<z.ZodNumber>;
1264
+ marginPct: z.ZodOptional<z.ZodNumber>;
1265
+ deltaPct: z.ZodOptional<z.ZodNumber>;
1266
+ saved: z.ZodOptional<z.ZodNumber>;
1267
+ }, z.core.$strip>], z.ZodObject<{
1268
+ metric: z.ZodEnum<{
1269
+ callsBeforeTarget: "callsBeforeTarget";
1270
+ failedCalls: "failedCalls";
1271
+ openedWithListing: "openedWithListing";
1272
+ openingPrompt: "openingPrompt";
1273
+ openingSearches: "openingSearches";
1274
+ openingWrite: "openingWrite";
1275
+ searchCalls: "searchCalls";
1276
+ }>;
1277
+ on: z.ZodObject<{
1278
+ turns: z.ZodNumber;
1279
+ mean: z.ZodNumber;
1280
+ }, z.core.$strip>;
1281
+ off: z.ZodObject<{
1282
+ turns: z.ZodNumber;
1283
+ mean: z.ZodNumber;
1284
+ }, z.core.$strip>;
1285
+ controlTurnsNeeded: z.ZodOptional<z.ZodNumber>;
1286
+ marginPct: z.ZodOptional<z.ZodNumber>;
1287
+ deltaPct: z.ZodOptional<z.ZodNumber>;
1288
+ saved: z.ZodOptional<z.ZodNumber>;
1289
+ }, z.core.$strip>>;
1290
+ minTurns: z.ZodNumber;
1291
+ sampleUnit: z.ZodOptional<z.ZodEnum<{
1292
+ conversations: "conversations";
1293
+ "opening turns": "opening turns";
1294
+ turns: "turns";
1295
+ }>>;
1296
+ cohort: z.ZodOptional<z.ZodString>;
1297
+ previous: z.ZodOptional<z.ZodObject<{
1298
+ from: z.ZodNumber;
1299
+ to: z.ZodNumber;
1300
+ cohort: z.ZodOptional<z.ZodString>;
1301
+ metrics: z.ZodArray<z.ZodObject<{
1302
+ metric: z.ZodEnum<{
1303
+ callsBeforeTarget: "callsBeforeTarget";
1304
+ failedCalls: "failedCalls";
1305
+ openedWithListing: "openedWithListing";
1306
+ openingPrompt: "openingPrompt";
1307
+ openingSearches: "openingSearches";
1308
+ openingWrite: "openingWrite";
1309
+ searchCalls: "searchCalls";
1310
+ }>;
1311
+ on: z.ZodObject<{
1312
+ turns: z.ZodNumber;
1313
+ mean: z.ZodNumber;
1314
+ }, z.core.$strip>;
1315
+ off: z.ZodObject<{
1316
+ turns: z.ZodNumber;
1317
+ mean: z.ZodNumber;
1318
+ }, z.core.$strip>;
1319
+ controlTurnsNeeded: z.ZodOptional<z.ZodNumber>;
1320
+ marginPct: z.ZodOptional<z.ZodNumber>;
1321
+ deltaPct: z.ZodOptional<z.ZodNumber>;
1322
+ saved: z.ZodOptional<z.ZodNumber>;
1323
+ }, z.core.$strip>>;
1324
+ }, z.core.$strip>>;
1325
+ }, z.core.$strip>>;
1326
+ coldTrim: z.ZodOptional<z.ZodObject<{
1327
+ metrics: z.ZodTuple<[z.ZodObject<{
1328
+ metric: z.ZodEnum<{
1329
+ callsBeforeTarget: "callsBeforeTarget";
1330
+ failedCalls: "failedCalls";
1331
+ openedWithListing: "openedWithListing";
1332
+ openingPrompt: "openingPrompt";
1058
1333
  openingSearches: "openingSearches";
1334
+ openingWrite: "openingWrite";
1059
1335
  searchCalls: "searchCalls";
1060
1336
  }>;
1061
1337
  on: z.ZodObject<{
@@ -1075,7 +1351,9 @@ export declare const SavingsReportSchema: z.ZodObject<{
1075
1351
  callsBeforeTarget: "callsBeforeTarget";
1076
1352
  failedCalls: "failedCalls";
1077
1353
  openedWithListing: "openedWithListing";
1354
+ openingPrompt: "openingPrompt";
1078
1355
  openingSearches: "openingSearches";
1356
+ openingWrite: "openingWrite";
1079
1357
  searchCalls: "searchCalls";
1080
1358
  }>;
1081
1359
  on: z.ZodObject<{
@@ -1107,7 +1385,9 @@ export declare const SavingsReportSchema: z.ZodObject<{
1107
1385
  callsBeforeTarget: "callsBeforeTarget";
1108
1386
  failedCalls: "failedCalls";
1109
1387
  openedWithListing: "openedWithListing";
1388
+ openingPrompt: "openingPrompt";
1110
1389
  openingSearches: "openingSearches";
1390
+ openingWrite: "openingWrite";
1111
1391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C,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAGxD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;iBAK/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAGlE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;iBAwBlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;iBAE/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,eAAO,MAAM,qBAAqB;;;iBAKhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -1,9 +1,11 @@
1
1
  import { STATE_DIR } from "@intentic/constants";
2
2
  import { z } from "zod";
3
+ import { claudeExperimentSettings, iqSearchSettings } from "./settings-experiments.js";
3
4
  import { CommandJudgeModeSchema, ProjectInstallModeSchema } from "../policy/safety-policy.js";
4
5
  import { ModelRoleSchema } from "../models/model-roles.js";
5
6
  import { MODEL_SETUP_ID, ModelSetupSchema } from "../models/model-setups.js";
6
7
  import { AdmissionPolicySchema, AdmissionRuleSchema } from "./agent.js";
8
+ import { KeepWarmSettingsSchema } from "./keep-warm.js";
7
9
  import { LimitHandoffSchema } from "./providers/handoff.js";
8
10
  import { SessionsPlacementSchema } from "./offload.js";
9
11
  import { LimitPolicySchema, RetryPolicySchema, RoomPolicySchema } from "./turn-break.js";
@@ -113,31 +115,7 @@ export const SkillSwitchSchema = z.object({
113
115
  name: SkillNameSchema.describe("Which skill of your own to switch."),
114
116
  on: z.boolean().describe("On writes the agent's copy from the stored text; off removes that copy and keeps the text."),
115
117
  });
116
- export const KeepWarmSettingsSchema = z.object({
117
- auto: z
118
- .boolean()
119
- .default(false)
120
- .describe("Keep a Claude conversation's prompt cache warm after each turn a person asked for. Each refresh re-reads the cached context at the cache price and adds nothing to the conversation."),
121
- hours: z
122
- .number()
123
- .min(1)
124
- .max(8)
125
- .default(4)
126
- .describe("How long an idle conversation is kept warm after its last turn, in hours, and what a press on one offers first. Shortened where refreshing would cost more than the cold resume it saves, and at midnight where the agent runs, when the date in its prompt changes."),
127
- minTokens: z
128
- .number()
129
- .int()
130
- .min(0)
131
- .default(100_000)
132
- .describe("Only conversations at least this large, in tokens, are kept warm by `auto`: a small one is cheap to re-read anyway."),
133
- reserve: z
134
- .number()
135
- .int()
136
- .min(0)
137
- .max(90)
138
- .default(15)
139
- .describe("How much of an account's usage limit, in percent, keeping conversations warm must leave untouched for real work. Refreshing stops once any limit that account's model spends is fuller than that."),
140
- });
118
+ export { KeepWarmSettingsSchema } from "./keep-warm.js";
141
119
  export const AudienceSchema = z.enum(["developer", "maker"]);
142
120
  export const MemberAudienceSchema = z.object({
143
121
  audience: AudienceSchema.optional().describe("developer for git's own words, maker for plain ones. Absent until this person has chosen here."),
@@ -147,10 +125,6 @@ export const SandboxSettingsSchema = z.object({
147
125
  .union([z.literal(""), ZoneSchema])
148
126
  .default("")
149
127
  .describe("Which clock this sandbox's schedules are set by, as a zone name like Europe/Warsaw. Automations that repeat on a clock fire by this, not by the machine's own time. Leave it empty and they fire by UTC, which is almost certainly not what you meant when you typed a time."),
150
- stableSystemPrompt: z
151
- .boolean()
152
- .default(false)
153
- .describe("Keep the instructions identical between turns so the provider can cache them, moving anything that varies into the message instead. Cheaper, at the cost of some flexibility."),
154
128
  skills: z.array(z.string()).default(["lsp", "fileq"]).describe("Which built-in tools are switched on. A skill of your own is not listed here: it is on while the agent's copy of it exists."),
155
129
  personaRouting: z
156
130
  .boolean()
@@ -164,6 +138,10 @@ export const SandboxSettingsSchema = z.object({
164
138
  .boolean()
165
139
  .default(true)
166
140
  .describe("Keep the text of every document in the workspace (pdf, Word, OpenDocument, spreadsheets, presentations, epub, and scans where OCR is installed) ready to search. In the background, one low-priority process at a time, each document is rendered to text when it appears or changes, so `rg` and iq find what documents say under their own paths, cited by page. Off, nothing renders until someone opens a document, and searches skip them."),
141
+ sleepWhenUnused: z
142
+ .boolean()
143
+ .default(true)
144
+ .describe("Let the computer this sandbox runs on put it to sleep after a stretch nobody needs it (no editor open, no agent working, no terminal typed in, no app of it open), which frees its memory. It starts again when somebody opens it, and a few minutes before anything it has scheduled comes due, so automations still run on time. Off keeps it running. Applies only to a sandbox on your own computer."),
167
145
  hashlineEdits: z
168
146
  .boolean()
169
147
  .default(false)
@@ -174,16 +152,8 @@ export const SandboxSettingsSchema = z.object({
174
152
  .max(SYSTEM_PROMPT_MAX)
175
153
  .default("")
176
154
  .describe("Your own instructions, used only when the mode above says custom. Then it is the whole of them: both built-in bases go, and so does everything this product would otherwise add, including the guidance the chat's own cards are driven by. That is the price of total control."),
177
- iqSearch: z
178
- .boolean()
179
- .default(false)
180
- .describe("Teach the agent how to use this workspace's own search tool, rather than leaving it to grep around."),
181
- iqSearchHoldout: z
182
- .number()
183
- .min(0)
184
- .max(1)
185
- .default(0)
186
- .describe("What share of conversations to run without that teaching, so the two can be compared. Whole conversations rather than individual turns, because once the teaching is in a session, withholding it from the next request does not make the model forget it."),
155
+ ...iqSearchSettings,
156
+ ...claudeExperimentSettings,
187
157
  workspaceMap: z
188
158
  .boolean()
189
159
  .default(false)
@@ -380,7 +350,7 @@ export const InputSavingsSchema = z.object({
380
350
  });
381
351
  export const SavingsArmSchema = z.object({ turns: z.number(), mean: z.number() });
382
352
  export const TurnMetricReadingSchema = z.object({
383
- metric: z.enum(["searchCalls", "openingSearches", "openedWithListing", "callsBeforeTarget", "failedCalls"]),
353
+ metric: z.enum(["searchCalls", "openingSearches", "openedWithListing", "callsBeforeTarget", "failedCalls", "openingPrompt", "openingWrite"]),
384
354
  on: SavingsArmSchema,
385
355
  off: SavingsArmSchema,
386
356
  controlTurnsNeeded: z.number().optional(),
@@ -412,6 +382,9 @@ export const SavingsReportSchema = z.object({
412
382
  search: TurnExperimentSchema.optional(),
413
383
  map: TurnExperimentSchema.optional(),
414
384
  notes: TurnExperimentSchema.optional(),
385
+ toolSearch: TurnExperimentSchema.optional(),
386
+ stablePrompt: TurnExperimentSchema.optional(),
387
+ coldTrim: TurnExperimentSchema.optional(),
415
388
  });
416
389
  export const REPO_CHECKS_FILE = `${STATE_DIR}/checks.json`;
417
390
  export const RepoCheckMomentSchema = z.enum(["edit", "turn", "land"]);