@claudexor/schema 4.1.0 → 4.2.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 (55) hide show
  1. package/dist/account-routing-evidence.d.ts +5823 -0
  2. package/dist/account-routing-evidence.d.ts.map +1 -0
  3. package/dist/account-routing-evidence.js +49 -0
  4. package/dist/account-routing-evidence.js.map +1 -0
  5. package/dist/control-operation-responses.d.ts +325 -0
  6. package/dist/control-operation-responses.d.ts.map +1 -1
  7. package/dist/control-process-scope.d.ts +58 -0
  8. package/dist/control-process-scope.d.ts.map +1 -0
  9. package/dist/control-process-scope.js +39 -0
  10. package/dist/control-process-scope.js.map +1 -0
  11. package/dist/control-run-detail.d.ts +863 -0
  12. package/dist/control-run-detail.d.ts.map +1 -1
  13. package/dist/control-run-failure.d.ts +258 -0
  14. package/dist/control-run-failure.d.ts.map +1 -1
  15. package/dist/control-run-failure.js +55 -0
  16. package/dist/control-run-failure.js.map +1 -1
  17. package/dist/control.d.ts +252 -0
  18. package/dist/control.d.ts.map +1 -1
  19. package/dist/control.js +3 -0
  20. package/dist/control.js.map +1 -1
  21. package/dist/daemon-status.d.ts +40 -0
  22. package/dist/daemon-status.d.ts.map +1 -1
  23. package/dist/gate.d.ts.map +1 -1
  24. package/dist/gate.js +1 -1
  25. package/dist/gate.js.map +1 -1
  26. package/dist/index.d.ts +3 -0
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +3 -0
  29. package/dist/index.js.map +1 -1
  30. package/dist/mcp-run-result.d.ts +426 -0
  31. package/dist/mcp-run-result.d.ts.map +1 -1
  32. package/dist/process-scope.d.ts +125 -0
  33. package/dist/process-scope.d.ts.map +1 -0
  34. package/dist/process-scope.js +81 -0
  35. package/dist/process-scope.js.map +1 -0
  36. package/dist/run-continuation.d.ts +3 -0
  37. package/dist/run-continuation.d.ts.map +1 -1
  38. package/dist/run-continuation.js +4 -0
  39. package/dist/run-continuation.js.map +1 -1
  40. package/dist/store-status.d.ts +28 -0
  41. package/dist/store-status.d.ts.map +1 -1
  42. package/dist/store-status.js +10 -0
  43. package/dist/store-status.js.map +1 -1
  44. package/generated/ControlAccountRoutingEvidenceResponse.schema.json +101 -0
  45. package/generated/ControlDaemonStatus.schema.json +52 -0
  46. package/generated/ControlRunDetail.schema.json +224 -0
  47. package/generated/ControlRunListResponse.schema.json +224 -0
  48. package/generated/ControlRunSummary.schema.json +224 -0
  49. package/generated/EnvelopeCustody.schema.json +4 -0
  50. package/generated/GateResult.schema.json +1 -1
  51. package/generated/McpAccountsToolResult.schema.json +2527 -0
  52. package/generated/McpRunHandleResult.schema.json +162 -0
  53. package/generated/McpRunToolResult.schema.json +162 -0
  54. package/generated/RunFailure.schema.json +162 -0
  55. package/package.json +2 -2
@@ -804,6 +804,65 @@
804
804
  ],
805
805
  "description": "Vendor-attested request refusal that another account cannot repair; input and executable causes carry their own evidence."
806
806
  },
807
+ "captureFailure": {
808
+ "type": "object",
809
+ "properties": {
810
+ "code": {
811
+ "type": "string",
812
+ "enum": [
813
+ "capture_output_exceeded",
814
+ "capture_output_incomplete",
815
+ "capture_preview_truncated",
816
+ "capture_failed"
817
+ ]
818
+ },
819
+ "message": {
820
+ "type": "string"
821
+ },
822
+ "causeCode": {
823
+ "type": "string"
824
+ },
825
+ "bufferBudgetBytes": {
826
+ "type": "integer",
827
+ "minimum": 0
828
+ },
829
+ "stream": {
830
+ "type": "string",
831
+ "enum": [
832
+ "stdout",
833
+ "stderr"
834
+ ]
835
+ },
836
+ "drain": {
837
+ "type": "string",
838
+ "const": "truncated"
839
+ },
840
+ "cleanup": {
841
+ "type": "object",
842
+ "properties": {
843
+ "code": {
844
+ "type": [
845
+ "string",
846
+ "null"
847
+ ]
848
+ },
849
+ "message": {
850
+ "type": "string"
851
+ }
852
+ },
853
+ "required": [
854
+ "code",
855
+ "message"
856
+ ],
857
+ "additionalProperties": false
858
+ }
859
+ },
860
+ "required": [
861
+ "code",
862
+ "message"
863
+ ],
864
+ "additionalProperties": false
865
+ },
807
866
  "phase": {
808
867
  "type": "string",
809
868
  "default": "unknown",
@@ -975,6 +1034,109 @@
975
1034
  "description": "The vendor's own typed failure for the attempt this record speaks for, or null when no vendor-typed evidence exists (every harness without such a channel, and any unreadable record). Facts only: carries no remedy.",
976
1035
  "default": null
977
1036
  },
1037
+ "poolAttempts": {
1038
+ "type": "array",
1039
+ "items": {
1040
+ "type": "object",
1041
+ "properties": {
1042
+ "harnessId": {
1043
+ "type": "string",
1044
+ "minLength": 1,
1045
+ "description": "Harness the try ran on."
1046
+ },
1047
+ "profileId": {
1048
+ "type": [
1049
+ "string",
1050
+ "null"
1051
+ ],
1052
+ "description": "Account row the try ran on; null = the harness default route."
1053
+ },
1054
+ "profileDisplayName": {
1055
+ "type": [
1056
+ "string",
1057
+ "null"
1058
+ ],
1059
+ "description": "The row's display name at try time (redacted); null for the default route."
1060
+ },
1061
+ "requestedModel": {
1062
+ "type": [
1063
+ "string",
1064
+ "null"
1065
+ ],
1066
+ "description": "Model the try asked for; null = the harness default model."
1067
+ },
1068
+ "attemptId": {
1069
+ "type": "string",
1070
+ "minLength": 1,
1071
+ "description": "Attempt the try belongs to."
1072
+ },
1073
+ "tryIndex": {
1074
+ "type": "integer",
1075
+ "minimum": 0,
1076
+ "description": "Zero-based try index within the attempt."
1077
+ },
1078
+ "observedAt": {
1079
+ "type": "string",
1080
+ "format": "date-time",
1081
+ "description": "When the try's first error was observed."
1082
+ },
1083
+ "phase": {
1084
+ "type": "string",
1085
+ "enum": [
1086
+ "pre_start",
1087
+ "pre_progress",
1088
+ "after_progress"
1089
+ ],
1090
+ "description": "How far the try got: before a typed session start, after start but before agent progress, or after progress."
1091
+ },
1092
+ "category": {
1093
+ "type": "string",
1094
+ "enum": [
1095
+ "timeout",
1096
+ "rate_limited",
1097
+ "auth_failed",
1098
+ "capability_refused",
1099
+ "process_crash",
1100
+ "config_error",
1101
+ "unknown_harness_error"
1102
+ ],
1103
+ "description": "Typed failure category of the try; untyped errors are unknown_harness_error."
1104
+ },
1105
+ "error": {
1106
+ "type": "string",
1107
+ "description": "The try's own error text with its original wording and whitespace, redacted."
1108
+ },
1109
+ "vendorFailure": {
1110
+ "anyOf": [
1111
+ {
1112
+ "$ref": "#/definitions/ControlRunDetail/properties/summary/properties/failure/anyOf/0/properties/vendorFailure/anyOf/0"
1113
+ },
1114
+ {
1115
+ "type": "null"
1116
+ }
1117
+ ],
1118
+ "description": "The vendor's own typed failure for this try, when the adapter attached one."
1119
+ }
1120
+ },
1121
+ "required": [
1122
+ "harnessId",
1123
+ "profileId",
1124
+ "profileDisplayName",
1125
+ "requestedModel",
1126
+ "attemptId",
1127
+ "tryIndex",
1128
+ "observedAt",
1129
+ "phase",
1130
+ "category",
1131
+ "error",
1132
+ "vendorFailure"
1133
+ ],
1134
+ "additionalProperties": false,
1135
+ "description": "Per-try account attribution of a failed execution try (diagnostic evidence only)."
1136
+ },
1137
+ "default": [],
1138
+ "description": "Every failed execution try in order, each with its own account and error text; empty when no try failed (and for records written before this field existed)."
1139
+ },
978
1140
  "nextActions": {
979
1141
  "type": "array",
980
1142
  "items": {
@@ -1941,6 +2103,68 @@
1941
2103
  "default": false,
1942
2104
  "description": "True while at least one interactive question awaits answer, timeout, run-terminal, or interruption release."
1943
2105
  },
2106
+ "processScope": {
2107
+ "anyOf": [
2108
+ {
2109
+ "type": "object",
2110
+ "properties": {
2111
+ "settled": {
2112
+ "type": "boolean",
2113
+ "description": "Every census source succeeded and no known member survived or stayed unreadable. Unreadable discovery candidates are not members; they limit completeness separately."
2114
+ },
2115
+ "coverage": {
2116
+ "type": "string",
2117
+ "enum": [
2118
+ "marker+capture",
2119
+ "marker",
2120
+ "tree_only"
2121
+ ]
2122
+ },
2123
+ "completeness": {
2124
+ "type": "string",
2125
+ "enum": [
2126
+ "complete",
2127
+ "not_provable"
2128
+ ],
2129
+ "description": "Whether a settled reap proves the scope empty (not on macOS for background system binaries, not on Windows, not after a census failure, not when the single settlement deadline expired — then settled is false and the run's final/process_scope.yaml carries incomplete=true with completeness_reason naming the deadline)."
2130
+ },
2131
+ "census": {
2132
+ "type": "string",
2133
+ "enum": [
2134
+ "ok",
2135
+ "failed",
2136
+ "unsupported"
2137
+ ]
2138
+ },
2139
+ "survivors": {
2140
+ "type": "integer",
2141
+ "minimum": 0,
2142
+ "description": "Members still alive when the bounded ladder ended."
2143
+ },
2144
+ "unreadable": {
2145
+ "type": "integer",
2146
+ "minimum": 0,
2147
+ "description": "Known members whose identity or membership could not be read."
2148
+ }
2149
+ },
2150
+ "required": [
2151
+ "settled",
2152
+ "coverage",
2153
+ "completeness",
2154
+ "census",
2155
+ "survivors",
2156
+ "unreadable"
2157
+ ],
2158
+ "additionalProperties": false,
2159
+ "description": "Compact process-scope outcome of a terminal run (full artifact: final/process_scope.yaml)."
2160
+ },
2161
+ {
2162
+ "type": "null"
2163
+ }
2164
+ ],
2165
+ "description": "Compact process-scope outcome from final/process_scope.yaml (settled, coverage, completeness, survivors, unreadable, census). Always present in this engine's responses: null means unknown (the run is live, or the record is missing, unreadable or invalid), never clean. Engines that predate the field omit the key, which is equally unknown.",
2166
+ "default": null
2167
+ },
1944
2168
  "route": {
1945
2169
  "anyOf": [
1946
2170
  {
@@ -624,6 +624,65 @@
624
624
  ],
625
625
  "description": "Vendor-attested request refusal that another account cannot repair; input and executable causes carry their own evidence."
626
626
  },
627
+ "captureFailure": {
628
+ "type": "object",
629
+ "properties": {
630
+ "code": {
631
+ "type": "string",
632
+ "enum": [
633
+ "capture_output_exceeded",
634
+ "capture_output_incomplete",
635
+ "capture_preview_truncated",
636
+ "capture_failed"
637
+ ]
638
+ },
639
+ "message": {
640
+ "type": "string"
641
+ },
642
+ "causeCode": {
643
+ "type": "string"
644
+ },
645
+ "bufferBudgetBytes": {
646
+ "type": "integer",
647
+ "minimum": 0
648
+ },
649
+ "stream": {
650
+ "type": "string",
651
+ "enum": [
652
+ "stdout",
653
+ "stderr"
654
+ ]
655
+ },
656
+ "drain": {
657
+ "type": "string",
658
+ "const": "truncated"
659
+ },
660
+ "cleanup": {
661
+ "type": "object",
662
+ "properties": {
663
+ "code": {
664
+ "type": [
665
+ "string",
666
+ "null"
667
+ ]
668
+ },
669
+ "message": {
670
+ "type": "string"
671
+ }
672
+ },
673
+ "required": [
674
+ "code",
675
+ "message"
676
+ ],
677
+ "additionalProperties": false
678
+ }
679
+ },
680
+ "required": [
681
+ "code",
682
+ "message"
683
+ ],
684
+ "additionalProperties": false
685
+ },
627
686
  "phase": {
628
687
  "type": "string",
629
688
  "default": "unknown",
@@ -795,6 +854,109 @@
795
854
  "description": "The vendor's own typed failure for the attempt this record speaks for, or null when no vendor-typed evidence exists (every harness without such a channel, and any unreadable record). Facts only: carries no remedy.",
796
855
  "default": null
797
856
  },
857
+ "poolAttempts": {
858
+ "type": "array",
859
+ "items": {
860
+ "type": "object",
861
+ "properties": {
862
+ "harnessId": {
863
+ "type": "string",
864
+ "minLength": 1,
865
+ "description": "Harness the try ran on."
866
+ },
867
+ "profileId": {
868
+ "type": [
869
+ "string",
870
+ "null"
871
+ ],
872
+ "description": "Account row the try ran on; null = the harness default route."
873
+ },
874
+ "profileDisplayName": {
875
+ "type": [
876
+ "string",
877
+ "null"
878
+ ],
879
+ "description": "The row's display name at try time (redacted); null for the default route."
880
+ },
881
+ "requestedModel": {
882
+ "type": [
883
+ "string",
884
+ "null"
885
+ ],
886
+ "description": "Model the try asked for; null = the harness default model."
887
+ },
888
+ "attemptId": {
889
+ "type": "string",
890
+ "minLength": 1,
891
+ "description": "Attempt the try belongs to."
892
+ },
893
+ "tryIndex": {
894
+ "type": "integer",
895
+ "minimum": 0,
896
+ "description": "Zero-based try index within the attempt."
897
+ },
898
+ "observedAt": {
899
+ "type": "string",
900
+ "format": "date-time",
901
+ "description": "When the try's first error was observed."
902
+ },
903
+ "phase": {
904
+ "type": "string",
905
+ "enum": [
906
+ "pre_start",
907
+ "pre_progress",
908
+ "after_progress"
909
+ ],
910
+ "description": "How far the try got: before a typed session start, after start but before agent progress, or after progress."
911
+ },
912
+ "category": {
913
+ "type": "string",
914
+ "enum": [
915
+ "timeout",
916
+ "rate_limited",
917
+ "auth_failed",
918
+ "capability_refused",
919
+ "process_crash",
920
+ "config_error",
921
+ "unknown_harness_error"
922
+ ],
923
+ "description": "Typed failure category of the try; untyped errors are unknown_harness_error."
924
+ },
925
+ "error": {
926
+ "type": "string",
927
+ "description": "The try's own error text with its original wording and whitespace, redacted."
928
+ },
929
+ "vendorFailure": {
930
+ "anyOf": [
931
+ {
932
+ "$ref": "#/definitions/ControlRunListResponse/properties/runs/items/properties/failure/anyOf/0/properties/vendorFailure/anyOf/0"
933
+ },
934
+ {
935
+ "type": "null"
936
+ }
937
+ ],
938
+ "description": "The vendor's own typed failure for this try, when the adapter attached one."
939
+ }
940
+ },
941
+ "required": [
942
+ "harnessId",
943
+ "profileId",
944
+ "profileDisplayName",
945
+ "requestedModel",
946
+ "attemptId",
947
+ "tryIndex",
948
+ "observedAt",
949
+ "phase",
950
+ "category",
951
+ "error",
952
+ "vendorFailure"
953
+ ],
954
+ "additionalProperties": false,
955
+ "description": "Per-try account attribution of a failed execution try (diagnostic evidence only)."
956
+ },
957
+ "default": [],
958
+ "description": "Every failed execution try in order, each with its own account and error text; empty when no try failed (and for records written before this field existed)."
959
+ },
798
960
  "nextActions": {
799
961
  "type": "array",
800
962
  "items": {
@@ -1768,6 +1930,68 @@
1768
1930
  "default": false,
1769
1931
  "description": "True while at least one interactive question awaits answer, timeout, run-terminal, or interruption release."
1770
1932
  },
1933
+ "processScope": {
1934
+ "anyOf": [
1935
+ {
1936
+ "type": "object",
1937
+ "properties": {
1938
+ "settled": {
1939
+ "type": "boolean",
1940
+ "description": "Every census source succeeded and no known member survived or stayed unreadable. Unreadable discovery candidates are not members; they limit completeness separately."
1941
+ },
1942
+ "coverage": {
1943
+ "type": "string",
1944
+ "enum": [
1945
+ "marker+capture",
1946
+ "marker",
1947
+ "tree_only"
1948
+ ]
1949
+ },
1950
+ "completeness": {
1951
+ "type": "string",
1952
+ "enum": [
1953
+ "complete",
1954
+ "not_provable"
1955
+ ],
1956
+ "description": "Whether a settled reap proves the scope empty (not on macOS for background system binaries, not on Windows, not after a census failure, not when the single settlement deadline expired — then settled is false and the run's final/process_scope.yaml carries incomplete=true with completeness_reason naming the deadline)."
1957
+ },
1958
+ "census": {
1959
+ "type": "string",
1960
+ "enum": [
1961
+ "ok",
1962
+ "failed",
1963
+ "unsupported"
1964
+ ]
1965
+ },
1966
+ "survivors": {
1967
+ "type": "integer",
1968
+ "minimum": 0,
1969
+ "description": "Members still alive when the bounded ladder ended."
1970
+ },
1971
+ "unreadable": {
1972
+ "type": "integer",
1973
+ "minimum": 0,
1974
+ "description": "Known members whose identity or membership could not be read."
1975
+ }
1976
+ },
1977
+ "required": [
1978
+ "settled",
1979
+ "coverage",
1980
+ "completeness",
1981
+ "census",
1982
+ "survivors",
1983
+ "unreadable"
1984
+ ],
1985
+ "additionalProperties": false,
1986
+ "description": "Compact process-scope outcome of a terminal run (full artifact: final/process_scope.yaml)."
1987
+ },
1988
+ {
1989
+ "type": "null"
1990
+ }
1991
+ ],
1992
+ "description": "Compact process-scope outcome from final/process_scope.yaml (settled, coverage, completeness, survivors, unreadable, census). Always present in this engine's responses: null means unknown (the run is live, or the record is missing, unreadable or invalid), never clean. Engines that predate the field omit the key, which is equally unknown.",
1993
+ "default": null
1994
+ },
1771
1995
  "route": {
1772
1996
  "anyOf": [
1773
1997
  {