@intentic/sandbox-contract 1.323.0 → 1.325.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 (110) hide show
  1. package/README.md +7 -0
  2. package/dist/contracts/agent.contract.d.ts +48 -0
  3. package/dist/contracts/agent.contract.d.ts.map +1 -1
  4. package/dist/contracts/agents.contract.d.ts +84 -0
  5. package/dist/contracts/agents.contract.d.ts.map +1 -1
  6. package/dist/contracts/approvals.contract.d.ts +31 -0
  7. package/dist/contracts/approvals.contract.d.ts.map +1 -1
  8. package/dist/contracts/approvals.contract.js +2 -2
  9. package/dist/contracts/approvals.contract.js.map +1 -1
  10. package/dist/contracts/capabilities.contract.d.ts +2 -0
  11. package/dist/contracts/capabilities.contract.d.ts.map +1 -1
  12. package/dist/contracts/runner.contract.d.ts +167 -133
  13. package/dist/contracts/runner.contract.d.ts.map +1 -1
  14. package/dist/contracts/sessions.contract.d.ts +8 -0
  15. package/dist/contracts/sessions.contract.d.ts.map +1 -1
  16. package/dist/contracts/settings.contract.d.ts +74 -0
  17. package/dist/contracts/settings.contract.d.ts.map +1 -1
  18. package/dist/contracts/system.contract.d.ts +54 -0
  19. package/dist/contracts/system.contract.d.ts.map +1 -1
  20. package/dist/contracts/system.contract.js +11 -1
  21. package/dist/contracts/system.contract.js.map +1 -1
  22. package/dist/events/agent-events.d.ts +39 -1
  23. package/dist/events/agent-events.d.ts.map +1 -1
  24. package/dist/events/agent-events.js +4 -0
  25. package/dist/events/agent-events.js.map +1 -1
  26. package/dist/events/agent-ui.d.ts +33 -0
  27. package/dist/events/agent-ui.d.ts.map +1 -0
  28. package/dist/events/agent-ui.js +24 -0
  29. package/dist/events/agent-ui.js.map +1 -0
  30. package/dist/events/system-events.d.ts +11 -0
  31. package/dist/events/system-events.d.ts.map +1 -1
  32. package/dist/events/system-events.js +1 -0
  33. package/dist/events/system-events.js.map +1 -1
  34. package/dist/events/transcript.d.ts +48 -0
  35. package/dist/events/transcript.d.ts.map +1 -1
  36. package/dist/events/transcript.js +2 -0
  37. package/dist/events/transcript.js.map +1 -1
  38. package/dist/index.d.ts +302 -0
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js +1 -0
  41. package/dist/index.js.map +1 -1
  42. package/dist/schemas/agents.d.ts +12 -0
  43. package/dist/schemas/agents.d.ts.map +1 -1
  44. package/dist/schemas/agents.js +8 -1
  45. package/dist/schemas/agents.js.map +1 -1
  46. package/dist/schemas/approvals.d.ts +102 -0
  47. package/dist/schemas/approvals.d.ts.map +1 -1
  48. package/dist/schemas/approvals.js +45 -4
  49. package/dist/schemas/approvals.js.map +1 -1
  50. package/dist/schemas/automations.d.ts +4 -0
  51. package/dist/schemas/automations.d.ts.map +1 -1
  52. package/dist/schemas/capabilities.d.ts +2 -0
  53. package/dist/schemas/capabilities.d.ts.map +1 -1
  54. package/dist/schemas/capabilities.js +10 -1
  55. package/dist/schemas/capabilities.js.map +1 -1
  56. package/dist/schemas/logs.d.ts +1 -0
  57. package/dist/schemas/logs.d.ts.map +1 -1
  58. package/dist/schemas/logs.js +4 -0
  59. package/dist/schemas/logs.js.map +1 -1
  60. package/dist/schemas/providers/usage.d.ts +1 -0
  61. package/dist/schemas/providers/usage.d.ts.map +1 -1
  62. package/dist/schemas/providers/usage.js +1 -0
  63. package/dist/schemas/providers/usage.js.map +1 -1
  64. package/dist/schemas/settings.d.ts +80 -0
  65. package/dist/schemas/settings.d.ts.map +1 -1
  66. package/dist/schemas/settings.js +14 -3
  67. package/dist/schemas/settings.js.map +1 -1
  68. package/dist/schemas/system.d.ts +17 -0
  69. package/dist/schemas/system.d.ts.map +1 -1
  70. package/dist/schemas/system.js +2 -1
  71. package/dist/schemas/system.js.map +1 -1
  72. package/dist/schemas/updates.d.ts +30 -0
  73. package/dist/schemas/updates.d.ts.map +1 -1
  74. package/dist/schemas/updates.js +37 -0
  75. package/dist/schemas/updates.js.map +1 -1
  76. package/dist/state/definition.d.ts +10 -0
  77. package/dist/state/definition.d.ts.map +1 -1
  78. package/dist/state/history-state.d.ts.map +1 -1
  79. package/dist/state/history-state.js +1 -0
  80. package/dist/state/history-state.js.map +1 -1
  81. package/dist/state/runtime-state.d.ts +3 -0
  82. package/dist/state/runtime-state.d.ts.map +1 -1
  83. package/dist/state/runtime-state.js +1 -0
  84. package/dist/state/runtime-state.js.map +1 -1
  85. package/dist/text/transcript-fold.d.ts.map +1 -1
  86. package/dist/text/transcript-fold.js +9 -0
  87. package/dist/text/transcript-fold.js.map +1 -1
  88. package/package.json +5 -5
  89. package/src/contracts/approvals.contract.ts +2 -2
  90. package/src/contracts/system.contract.ts +14 -1
  91. package/src/events/agent-events.ts +6 -0
  92. package/src/events/agent-ui.ts +40 -0
  93. package/src/events/system-events.ts +2 -0
  94. package/src/events/transcript.ts +5 -0
  95. package/src/index.ts +1 -0
  96. package/src/schemas/agents.ts +16 -3
  97. package/src/schemas/approvals.ts +59 -4
  98. package/src/schemas/capabilities.ts +15 -2
  99. package/src/schemas/ci.ts +1 -1
  100. package/src/schemas/logs.ts +6 -0
  101. package/src/schemas/providers/usage.ts +3 -0
  102. package/src/schemas/settings-history.ts +3 -3
  103. package/src/schemas/settings.test.ts +5 -5
  104. package/src/schemas/settings.ts +47 -19
  105. package/src/schemas/system.ts +6 -1
  106. package/src/schemas/updates.ts +71 -0
  107. package/src/state/history-state.ts +3 -0
  108. package/src/state/runtime-state.ts +4 -0
  109. package/src/text/transcript-fold.test.ts +15 -0
  110. package/src/text/transcript-fold.ts +10 -0
@@ -59,6 +59,37 @@ export declare const runnerContract: {
59
59
  bytesBase64: z.ZodString;
60
60
  }, z.core.$strip>>>;
61
61
  }, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
62
+ requestId: string;
63
+ text: string;
64
+ document?: {
65
+ path: string;
66
+ title: string;
67
+ markdown: string;
68
+ truncated?: boolean | undefined;
69
+ plan?: boolean | undefined;
70
+ } | undefined;
71
+ kind: "plan";
72
+ } | {
73
+ requestId: string;
74
+ questions: {
75
+ question: string;
76
+ header: string;
77
+ multiSelect: boolean;
78
+ options: {
79
+ label: string;
80
+ description: string;
81
+ preview?: string | undefined;
82
+ }[];
83
+ }[];
84
+ document?: {
85
+ path: string;
86
+ title: string;
87
+ markdown: string;
88
+ truncated?: boolean | undefined;
89
+ plan?: boolean | undefined;
90
+ } | undefined;
91
+ kind: "question";
92
+ } | {
62
93
  kind: "session";
63
94
  sessionId: string;
64
95
  account?: string | undefined;
@@ -261,36 +292,15 @@ export declare const runnerContract: {
261
292
  reach: "main-tree" | "own-copy";
262
293
  projects: string[];
263
294
  } | {
264
- requestId: string;
265
- text: string;
266
- document?: {
267
- path: string;
268
- title: string;
269
- markdown: string;
270
- truncated?: boolean | undefined;
271
- plan?: boolean | undefined;
272
- } | undefined;
273
- kind: "plan";
295
+ kind: "agent_status";
296
+ key: string;
297
+ text: string | null;
298
+ source?: string | undefined;
274
299
  } | {
275
- requestId: string;
276
- questions: {
277
- question: string;
278
- header: string;
279
- multiSelect: boolean;
280
- options: {
281
- label: string;
282
- description: string;
283
- preview?: string | undefined;
284
- }[];
285
- }[];
286
- document?: {
287
- path: string;
288
- title: string;
289
- markdown: string;
290
- truncated?: boolean | undefined;
291
- plan?: boolean | undefined;
292
- } | undefined;
293
- kind: "question";
300
+ level: "error" | "info" | "warning";
301
+ source?: string | undefined;
302
+ kind: "agent_notice";
303
+ text: string;
294
304
  } | {
295
305
  requestId: string;
296
306
  session: string;
@@ -343,13 +353,6 @@ export declare const runnerContract: {
343
353
  id: string;
344
354
  conversationId: string;
345
355
  subject: {
346
- kind: "secret";
347
- name: string;
348
- where?: string | undefined;
349
- link?: string | undefined;
350
- hint?: string | undefined;
351
- replace?: boolean | undefined;
352
- } | {
353
356
  kind: "capability";
354
357
  entry: string;
355
358
  name: string;
@@ -360,6 +363,13 @@ export declare const runnerContract: {
360
363
  changes?: Record<string, string> | undefined;
361
364
  reason?: string | undefined;
362
365
  reported?: boolean | undefined;
366
+ } | {
367
+ kind: "secret";
368
+ name: string;
369
+ where?: string | undefined;
370
+ link?: string | undefined;
371
+ hint?: string | undefined;
372
+ replace?: boolean | undefined;
363
373
  } | {
364
374
  kind: "grant";
365
375
  subject: "capability" | "folder" | "shelf" | "site";
@@ -479,6 +489,50 @@ export declare const runnerContract: {
479
489
  unattended?: boolean | undefined;
480
490
  } | {
481
491
  kind: "done";
492
+ } | {
493
+ toolName: string;
494
+ title?: string | undefined;
495
+ displayName?: string | undefined;
496
+ description?: string | undefined;
497
+ reason?: string | undefined;
498
+ path?: string | undefined;
499
+ alwaysLabel?: string | undefined;
500
+ alwaysAsks?: true | undefined;
501
+ program?: {
502
+ text: string;
503
+ language: "bash" | "javascript";
504
+ truncated: boolean;
505
+ spans: {
506
+ start: number;
507
+ end: number;
508
+ }[];
509
+ } | undefined;
510
+ child?: {
511
+ provider: string;
512
+ model: string;
513
+ harness?: "claude-code" | "native" | undefined;
514
+ account?: string | undefined;
515
+ effort?: string | undefined;
516
+ thinking?: boolean | undefined;
517
+ fast?: boolean | undefined;
518
+ move: "answer" | "send" | "spawn";
519
+ child?: string | undefined;
520
+ task?: string | undefined;
521
+ message?: string | undefined;
522
+ on?: string | undefined;
523
+ proposed?: {
524
+ provider: string;
525
+ model: string;
526
+ harness?: "claude-code" | "native" | undefined;
527
+ account?: string | undefined;
528
+ effort?: string | undefined;
529
+ thinking?: boolean | undefined;
530
+ fast?: boolean | undefined;
531
+ } | undefined;
532
+ } | undefined;
533
+ explain?: string | undefined;
534
+ requestId: string;
535
+ kind: "permission";
482
536
  } | {
483
537
  window: number;
484
538
  omitted: string[];
@@ -505,6 +559,54 @@ export declare const runnerContract: {
505
559
  cachedAt?: number | undefined;
506
560
  cacheTtlMs?: number | undefined;
507
561
  kind: "context_usage";
562
+ } | {
563
+ outcome: "connected" | "unfinished";
564
+ id?: string | undefined;
565
+ kind: "capability_outcome";
566
+ requestId: string;
567
+ } | {
568
+ outcome: "failed" | "paid";
569
+ amountUsd: string;
570
+ transaction?: string | undefined;
571
+ network?: string | undefined;
572
+ kind: "payment_receipt";
573
+ requestId: string;
574
+ } | {
575
+ outcome: "refused" | "released";
576
+ approvedBy?: string | undefined;
577
+ kind: "credential_receipt";
578
+ requestId: string;
579
+ }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
580
+ requestId: string;
581
+ text: string;
582
+ document?: {
583
+ path: string;
584
+ title: string;
585
+ markdown: string;
586
+ truncated?: boolean | undefined;
587
+ plan?: boolean | undefined;
588
+ } | undefined;
589
+ kind: "plan";
590
+ } | {
591
+ requestId: string;
592
+ questions: {
593
+ question: string;
594
+ header: string;
595
+ multiSelect: boolean;
596
+ options: {
597
+ label: string;
598
+ description: string;
599
+ preview?: string | undefined;
600
+ }[];
601
+ }[];
602
+ document?: {
603
+ path: string;
604
+ title: string;
605
+ markdown: string;
606
+ truncated?: boolean | undefined;
607
+ plan?: boolean | undefined;
608
+ } | undefined;
609
+ kind: "question";
508
610
  } | {
509
611
  toolName: string;
510
612
  title?: string | undefined;
@@ -550,23 +652,6 @@ export declare const runnerContract: {
550
652
  requestId: string;
551
653
  kind: "permission";
552
654
  } | {
553
- outcome: "connected" | "unfinished";
554
- id?: string | undefined;
555
- kind: "capability_outcome";
556
- requestId: string;
557
- } | {
558
- outcome: "failed" | "paid";
559
- amountUsd: string;
560
- transaction?: string | undefined;
561
- network?: string | undefined;
562
- kind: "payment_receipt";
563
- requestId: string;
564
- } | {
565
- outcome: "refused" | "released";
566
- approvedBy?: string | undefined;
567
- kind: "credential_receipt";
568
- requestId: string;
569
- }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
570
655
  kind: "session";
571
656
  sessionId: string;
572
657
  account?: string | undefined;
@@ -769,36 +854,15 @@ export declare const runnerContract: {
769
854
  reach: "main-tree" | "own-copy";
770
855
  projects: string[];
771
856
  } | {
772
- requestId: string;
773
- text: string;
774
- document?: {
775
- path: string;
776
- title: string;
777
- markdown: string;
778
- truncated?: boolean | undefined;
779
- plan?: boolean | undefined;
780
- } | undefined;
781
- kind: "plan";
857
+ kind: "agent_status";
858
+ key: string;
859
+ text: string | null;
860
+ source?: string | undefined;
782
861
  } | {
783
- requestId: string;
784
- questions: {
785
- question: string;
786
- header: string;
787
- multiSelect: boolean;
788
- options: {
789
- label: string;
790
- description: string;
791
- preview?: string | undefined;
792
- }[];
793
- }[];
794
- document?: {
795
- path: string;
796
- title: string;
797
- markdown: string;
798
- truncated?: boolean | undefined;
799
- plan?: boolean | undefined;
800
- } | undefined;
801
- kind: "question";
862
+ level: "error" | "info" | "warning";
863
+ source?: string | undefined;
864
+ kind: "agent_notice";
865
+ text: string;
802
866
  } | {
803
867
  requestId: string;
804
868
  session: string;
@@ -851,13 +915,6 @@ export declare const runnerContract: {
851
915
  id: string;
852
916
  conversationId: string;
853
917
  subject: {
854
- kind: "secret";
855
- name: string;
856
- where?: string | undefined;
857
- link?: string | undefined;
858
- hint?: string | undefined;
859
- replace?: boolean | undefined;
860
- } | {
861
918
  kind: "capability";
862
919
  entry: string;
863
920
  name: string;
@@ -868,6 +925,13 @@ export declare const runnerContract: {
868
925
  changes?: Record<string, string> | undefined;
869
926
  reason?: string | undefined;
870
927
  reported?: boolean | undefined;
928
+ } | {
929
+ kind: "secret";
930
+ name: string;
931
+ where?: string | undefined;
932
+ link?: string | undefined;
933
+ hint?: string | undefined;
934
+ replace?: boolean | undefined;
871
935
  } | {
872
936
  kind: "grant";
873
937
  subject: "capability" | "folder" | "shelf" | "site";
@@ -1013,50 +1077,6 @@ export declare const runnerContract: {
1013
1077
  cachedAt?: number | undefined;
1014
1078
  cacheTtlMs?: number | undefined;
1015
1079
  kind: "context_usage";
1016
- } | {
1017
- toolName: string;
1018
- title?: string | undefined;
1019
- displayName?: string | undefined;
1020
- description?: string | undefined;
1021
- reason?: string | undefined;
1022
- path?: string | undefined;
1023
- alwaysLabel?: string | undefined;
1024
- alwaysAsks?: true | undefined;
1025
- program?: {
1026
- text: string;
1027
- language: "bash" | "javascript";
1028
- truncated: boolean;
1029
- spans: {
1030
- start: number;
1031
- end: number;
1032
- }[];
1033
- } | undefined;
1034
- child?: {
1035
- provider: string;
1036
- model: string;
1037
- harness?: "claude-code" | "native" | undefined;
1038
- account?: string | undefined;
1039
- effort?: string | undefined;
1040
- thinking?: boolean | undefined;
1041
- fast?: boolean | undefined;
1042
- move: "answer" | "send" | "spawn";
1043
- child?: string | undefined;
1044
- task?: string | undefined;
1045
- message?: string | undefined;
1046
- on?: string | undefined;
1047
- proposed?: {
1048
- provider: string;
1049
- model: string;
1050
- harness?: "claude-code" | "native" | undefined;
1051
- account?: string | undefined;
1052
- effort?: string | undefined;
1053
- thinking?: boolean | undefined;
1054
- fast?: boolean | undefined;
1055
- } | undefined;
1056
- } | undefined;
1057
- explain?: string | undefined;
1058
- requestId: string;
1059
- kind: "permission";
1060
1080
  } | {
1061
1081
  outcome: "connected" | "unfinished";
1062
1082
  id?: string | undefined;
@@ -1372,6 +1392,20 @@ export declare const runnerContract: {
1372
1392
  "own-copy": "own-copy";
1373
1393
  }>;
1374
1394
  projects: z.ZodArray<z.ZodString>;
1395
+ }, z.core.$strip>, z.ZodObject<{
1396
+ kind: z.ZodLiteral<"agent_status">;
1397
+ key: z.ZodString;
1398
+ text: z.ZodNullable<z.ZodString>;
1399
+ source: z.ZodOptional<z.ZodString>;
1400
+ }, z.core.$strip>, z.ZodObject<{
1401
+ level: z.ZodEnum<{
1402
+ error: "error";
1403
+ info: "info";
1404
+ warning: "warning";
1405
+ }>;
1406
+ source: z.ZodOptional<z.ZodString>;
1407
+ kind: z.ZodLiteral<"agent_notice">;
1408
+ text: z.ZodString;
1375
1409
  }, z.core.$strip>, z.ZodObject<{
1376
1410
  requestId: z.ZodString;
1377
1411
  text: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"runner.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/runner.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEV,aAAa;;;;;IAEb,IAAI;;;CACP,CAAC"}
@@ -101,6 +101,14 @@ export declare const sessionsContract: {
101
101
  code: z.ZodString;
102
102
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
103
103
  }, z.core.$strip>>;
104
+ agentNotice: z.ZodOptional<z.ZodObject<{
105
+ level: z.ZodEnum<{
106
+ error: "error";
107
+ info: "info";
108
+ warning: "warning";
109
+ }>;
110
+ source: z.ZodOptional<z.ZodString>;
111
+ }, z.core.$strip>>;
104
112
  plan: z.ZodOptional<z.ZodObject<{
105
113
  requestId: z.ZodString;
106
114
  text: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"sessions.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/sessions.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,gBAAgB;IACzB,IAAI;;;;;;;;;;;;;;;;;IAYJ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUN,CAAC"}
1
+ {"version":3,"file":"sessions.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/sessions.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,gBAAgB;IACzB,IAAI;;;;;;;;;;;;;;;;;IAYJ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUN,CAAC"}
@@ -13,6 +13,8 @@ export declare const settingsContract: {
13
13
  systemPrompt: import("zod").ZodDefault<import("zod").ZodString>;
14
14
  leanGuidance: import("zod").ZodDefault<import("zod").ZodBoolean>;
15
15
  leanGuidanceHoldout: import("zod").ZodDefault<import("zod").ZodNumber>;
16
+ toolResultClearing: import("zod").ZodDefault<import("zod").ZodBoolean>;
17
+ toolResultClearingHoldout: import("zod").ZodDefault<import("zod").ZodNumber>;
16
18
  iqSearch: import("zod").ZodDefault<import("zod").ZodBoolean>;
17
19
  iqSearchHoldout: import("zod").ZodDefault<import("zod").ZodNumber>;
18
20
  workspaceMap: import("zod").ZodDefault<import("zod").ZodBoolean>;
@@ -187,6 +189,8 @@ export declare const settingsContract: {
187
189
  systemPrompt: import("zod").ZodDefault<import("zod").ZodString>;
188
190
  leanGuidance: import("zod").ZodDefault<import("zod").ZodBoolean>;
189
191
  leanGuidanceHoldout: import("zod").ZodDefault<import("zod").ZodNumber>;
192
+ toolResultClearing: import("zod").ZodDefault<import("zod").ZodBoolean>;
193
+ toolResultClearingHoldout: import("zod").ZodDefault<import("zod").ZodNumber>;
190
194
  iqSearch: import("zod").ZodDefault<import("zod").ZodBoolean>;
191
195
  iqSearchHoldout: import("zod").ZodDefault<import("zod").ZodNumber>;
192
196
  workspaceMap: import("zod").ZodDefault<import("zod").ZodBoolean>;
@@ -379,9 +383,11 @@ export declare const settingsContract: {
379
383
  metrics: import("zod").ZodTuple<[import("zod").ZodObject<{
380
384
  metric: import("zod").ZodEnum<{
381
385
  callsBeforeTarget: "callsBeforeTarget";
386
+ contextPerCall: "contextPerCall";
382
387
  failedCalls: "failedCalls";
383
388
  openingListings: "openingListings";
384
389
  openingSearches: "openingSearches";
390
+ roundTrips: "roundTrips";
385
391
  searchCalls: "searchCalls";
386
392
  }>;
387
393
  on: import("zod").ZodObject<{
@@ -399,9 +405,11 @@ export declare const settingsContract: {
399
405
  }, import("zod/v4/core").$strip>], import("zod").ZodObject<{
400
406
  metric: import("zod").ZodEnum<{
401
407
  callsBeforeTarget: "callsBeforeTarget";
408
+ contextPerCall: "contextPerCall";
402
409
  failedCalls: "failedCalls";
403
410
  openingListings: "openingListings";
404
411
  openingSearches: "openingSearches";
412
+ roundTrips: "roundTrips";
405
413
  searchCalls: "searchCalls";
406
414
  }>;
407
415
  on: import("zod").ZodObject<{
@@ -429,9 +437,11 @@ export declare const settingsContract: {
429
437
  metrics: import("zod").ZodTuple<[import("zod").ZodObject<{
430
438
  metric: import("zod").ZodEnum<{
431
439
  callsBeforeTarget: "callsBeforeTarget";
440
+ contextPerCall: "contextPerCall";
432
441
  failedCalls: "failedCalls";
433
442
  openingListings: "openingListings";
434
443
  openingSearches: "openingSearches";
444
+ roundTrips: "roundTrips";
435
445
  searchCalls: "searchCalls";
436
446
  }>;
437
447
  on: import("zod").ZodObject<{
@@ -449,9 +459,11 @@ export declare const settingsContract: {
449
459
  }, import("zod/v4/core").$strip>], import("zod").ZodObject<{
450
460
  metric: import("zod").ZodEnum<{
451
461
  callsBeforeTarget: "callsBeforeTarget";
462
+ contextPerCall: "contextPerCall";
452
463
  failedCalls: "failedCalls";
453
464
  openingListings: "openingListings";
454
465
  openingSearches: "openingSearches";
466
+ roundTrips: "roundTrips";
455
467
  searchCalls: "searchCalls";
456
468
  }>;
457
469
  on: import("zod").ZodObject<{
@@ -479,9 +491,11 @@ export declare const settingsContract: {
479
491
  metrics: import("zod").ZodTuple<[import("zod").ZodObject<{
480
492
  metric: import("zod").ZodEnum<{
481
493
  callsBeforeTarget: "callsBeforeTarget";
494
+ contextPerCall: "contextPerCall";
482
495
  failedCalls: "failedCalls";
483
496
  openingListings: "openingListings";
484
497
  openingSearches: "openingSearches";
498
+ roundTrips: "roundTrips";
485
499
  searchCalls: "searchCalls";
486
500
  }>;
487
501
  on: import("zod").ZodObject<{
@@ -499,9 +513,11 @@ export declare const settingsContract: {
499
513
  }, import("zod/v4/core").$strip>], import("zod").ZodObject<{
500
514
  metric: import("zod").ZodEnum<{
501
515
  callsBeforeTarget: "callsBeforeTarget";
516
+ contextPerCall: "contextPerCall";
502
517
  failedCalls: "failedCalls";
503
518
  openingListings: "openingListings";
504
519
  openingSearches: "openingSearches";
520
+ roundTrips: "roundTrips";
505
521
  searchCalls: "searchCalls";
506
522
  }>;
507
523
  on: import("zod").ZodObject<{
@@ -529,9 +545,11 @@ export declare const settingsContract: {
529
545
  metrics: import("zod").ZodTuple<[import("zod").ZodObject<{
530
546
  metric: import("zod").ZodEnum<{
531
547
  callsBeforeTarget: "callsBeforeTarget";
548
+ contextPerCall: "contextPerCall";
532
549
  failedCalls: "failedCalls";
533
550
  openingListings: "openingListings";
534
551
  openingSearches: "openingSearches";
552
+ roundTrips: "roundTrips";
535
553
  searchCalls: "searchCalls";
536
554
  }>;
537
555
  on: import("zod").ZodObject<{
@@ -549,9 +567,65 @@ export declare const settingsContract: {
549
567
  }, import("zod/v4/core").$strip>], import("zod").ZodObject<{
550
568
  metric: import("zod").ZodEnum<{
551
569
  callsBeforeTarget: "callsBeforeTarget";
570
+ contextPerCall: "contextPerCall";
552
571
  failedCalls: "failedCalls";
553
572
  openingListings: "openingListings";
554
573
  openingSearches: "openingSearches";
574
+ roundTrips: "roundTrips";
575
+ searchCalls: "searchCalls";
576
+ }>;
577
+ on: import("zod").ZodObject<{
578
+ turns: import("zod").ZodNumber;
579
+ mean: import("zod").ZodNumber;
580
+ }, import("zod/v4/core").$strip>;
581
+ off: import("zod").ZodObject<{
582
+ turns: import("zod").ZodNumber;
583
+ mean: import("zod").ZodNumber;
584
+ }, import("zod/v4/core").$strip>;
585
+ controlTurnsNeeded: import("zod").ZodOptional<import("zod").ZodNumber>;
586
+ marginPct: import("zod").ZodOptional<import("zod").ZodNumber>;
587
+ deltaPct: import("zod").ZodOptional<import("zod").ZodNumber>;
588
+ saved: import("zod").ZodOptional<import("zod").ZodNumber>;
589
+ }, import("zod/v4/core").$strip>>;
590
+ minTurns: import("zod").ZodNumber;
591
+ sampleUnit: import("zod").ZodOptional<import("zod").ZodEnum<{
592
+ conversations: "conversations";
593
+ "opening turns": "opening turns";
594
+ turns: "turns";
595
+ }>>;
596
+ cohort: import("zod").ZodOptional<import("zod").ZodString>;
597
+ }, import("zod/v4/core").$strip>>;
598
+ clearing: import("zod").ZodOptional<import("zod").ZodObject<{
599
+ metrics: import("zod").ZodTuple<[import("zod").ZodObject<{
600
+ metric: import("zod").ZodEnum<{
601
+ callsBeforeTarget: "callsBeforeTarget";
602
+ contextPerCall: "contextPerCall";
603
+ failedCalls: "failedCalls";
604
+ openingListings: "openingListings";
605
+ openingSearches: "openingSearches";
606
+ roundTrips: "roundTrips";
607
+ searchCalls: "searchCalls";
608
+ }>;
609
+ on: import("zod").ZodObject<{
610
+ turns: import("zod").ZodNumber;
611
+ mean: import("zod").ZodNumber;
612
+ }, import("zod/v4/core").$strip>;
613
+ off: import("zod").ZodObject<{
614
+ turns: import("zod").ZodNumber;
615
+ mean: import("zod").ZodNumber;
616
+ }, import("zod/v4/core").$strip>;
617
+ controlTurnsNeeded: import("zod").ZodOptional<import("zod").ZodNumber>;
618
+ marginPct: import("zod").ZodOptional<import("zod").ZodNumber>;
619
+ deltaPct: import("zod").ZodOptional<import("zod").ZodNumber>;
620
+ saved: import("zod").ZodOptional<import("zod").ZodNumber>;
621
+ }, import("zod/v4/core").$strip>], import("zod").ZodObject<{
622
+ metric: import("zod").ZodEnum<{
623
+ callsBeforeTarget: "callsBeforeTarget";
624
+ contextPerCall: "contextPerCall";
625
+ failedCalls: "failedCalls";
626
+ openingListings: "openingListings";
627
+ openingSearches: "openingSearches";
628
+ roundTrips: "roundTrips";
555
629
  searchCalls: "searchCalls";
556
630
  }>;
557
631
  on: import("zod").ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"settings.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/settings.contract.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,gBAAgB;IACzB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASH,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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