@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
@@ -619,6 +619,65 @@
619
619
  ],
620
620
  "description": "Vendor-attested request refusal that another account cannot repair; input and executable causes carry their own evidence."
621
621
  },
622
+ "captureFailure": {
623
+ "type": "object",
624
+ "properties": {
625
+ "code": {
626
+ "type": "string",
627
+ "enum": [
628
+ "capture_output_exceeded",
629
+ "capture_output_incomplete",
630
+ "capture_preview_truncated",
631
+ "capture_failed"
632
+ ]
633
+ },
634
+ "message": {
635
+ "type": "string"
636
+ },
637
+ "causeCode": {
638
+ "type": "string"
639
+ },
640
+ "bufferBudgetBytes": {
641
+ "type": "integer",
642
+ "minimum": 0
643
+ },
644
+ "stream": {
645
+ "type": "string",
646
+ "enum": [
647
+ "stdout",
648
+ "stderr"
649
+ ]
650
+ },
651
+ "drain": {
652
+ "type": "string",
653
+ "const": "truncated"
654
+ },
655
+ "cleanup": {
656
+ "type": "object",
657
+ "properties": {
658
+ "code": {
659
+ "type": [
660
+ "string",
661
+ "null"
662
+ ]
663
+ },
664
+ "message": {
665
+ "type": "string"
666
+ }
667
+ },
668
+ "required": [
669
+ "code",
670
+ "message"
671
+ ],
672
+ "additionalProperties": false
673
+ }
674
+ },
675
+ "required": [
676
+ "code",
677
+ "message"
678
+ ],
679
+ "additionalProperties": false
680
+ },
622
681
  "phase": {
623
682
  "type": "string",
624
683
  "default": "unknown",
@@ -790,6 +849,109 @@
790
849
  "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.",
791
850
  "default": null
792
851
  },
852
+ "poolAttempts": {
853
+ "type": "array",
854
+ "items": {
855
+ "type": "object",
856
+ "properties": {
857
+ "harnessId": {
858
+ "type": "string",
859
+ "minLength": 1,
860
+ "description": "Harness the try ran on."
861
+ },
862
+ "profileId": {
863
+ "type": [
864
+ "string",
865
+ "null"
866
+ ],
867
+ "description": "Account row the try ran on; null = the harness default route."
868
+ },
869
+ "profileDisplayName": {
870
+ "type": [
871
+ "string",
872
+ "null"
873
+ ],
874
+ "description": "The row's display name at try time (redacted); null for the default route."
875
+ },
876
+ "requestedModel": {
877
+ "type": [
878
+ "string",
879
+ "null"
880
+ ],
881
+ "description": "Model the try asked for; null = the harness default model."
882
+ },
883
+ "attemptId": {
884
+ "type": "string",
885
+ "minLength": 1,
886
+ "description": "Attempt the try belongs to."
887
+ },
888
+ "tryIndex": {
889
+ "type": "integer",
890
+ "minimum": 0,
891
+ "description": "Zero-based try index within the attempt."
892
+ },
893
+ "observedAt": {
894
+ "type": "string",
895
+ "format": "date-time",
896
+ "description": "When the try's first error was observed."
897
+ },
898
+ "phase": {
899
+ "type": "string",
900
+ "enum": [
901
+ "pre_start",
902
+ "pre_progress",
903
+ "after_progress"
904
+ ],
905
+ "description": "How far the try got: before a typed session start, after start but before agent progress, or after progress."
906
+ },
907
+ "category": {
908
+ "type": "string",
909
+ "enum": [
910
+ "timeout",
911
+ "rate_limited",
912
+ "auth_failed",
913
+ "capability_refused",
914
+ "process_crash",
915
+ "config_error",
916
+ "unknown_harness_error"
917
+ ],
918
+ "description": "Typed failure category of the try; untyped errors are unknown_harness_error."
919
+ },
920
+ "error": {
921
+ "type": "string",
922
+ "description": "The try's own error text with its original wording and whitespace, redacted."
923
+ },
924
+ "vendorFailure": {
925
+ "anyOf": [
926
+ {
927
+ "$ref": "#/definitions/ControlRunSummary/properties/failure/anyOf/0/properties/vendorFailure/anyOf/0"
928
+ },
929
+ {
930
+ "type": "null"
931
+ }
932
+ ],
933
+ "description": "The vendor's own typed failure for this try, when the adapter attached one."
934
+ }
935
+ },
936
+ "required": [
937
+ "harnessId",
938
+ "profileId",
939
+ "profileDisplayName",
940
+ "requestedModel",
941
+ "attemptId",
942
+ "tryIndex",
943
+ "observedAt",
944
+ "phase",
945
+ "category",
946
+ "error",
947
+ "vendorFailure"
948
+ ],
949
+ "additionalProperties": false,
950
+ "description": "Per-try account attribution of a failed execution try (diagnostic evidence only)."
951
+ },
952
+ "default": [],
953
+ "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)."
954
+ },
793
955
  "nextActions": {
794
956
  "type": "array",
795
957
  "items": {
@@ -1763,6 +1925,68 @@
1763
1925
  "default": false,
1764
1926
  "description": "True while at least one interactive question awaits answer, timeout, run-terminal, or interruption release."
1765
1927
  },
1928
+ "processScope": {
1929
+ "anyOf": [
1930
+ {
1931
+ "type": "object",
1932
+ "properties": {
1933
+ "settled": {
1934
+ "type": "boolean",
1935
+ "description": "Every census source succeeded and no known member survived or stayed unreadable. Unreadable discovery candidates are not members; they limit completeness separately."
1936
+ },
1937
+ "coverage": {
1938
+ "type": "string",
1939
+ "enum": [
1940
+ "marker+capture",
1941
+ "marker",
1942
+ "tree_only"
1943
+ ]
1944
+ },
1945
+ "completeness": {
1946
+ "type": "string",
1947
+ "enum": [
1948
+ "complete",
1949
+ "not_provable"
1950
+ ],
1951
+ "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)."
1952
+ },
1953
+ "census": {
1954
+ "type": "string",
1955
+ "enum": [
1956
+ "ok",
1957
+ "failed",
1958
+ "unsupported"
1959
+ ]
1960
+ },
1961
+ "survivors": {
1962
+ "type": "integer",
1963
+ "minimum": 0,
1964
+ "description": "Members still alive when the bounded ladder ended."
1965
+ },
1966
+ "unreadable": {
1967
+ "type": "integer",
1968
+ "minimum": 0,
1969
+ "description": "Known members whose identity or membership could not be read."
1970
+ }
1971
+ },
1972
+ "required": [
1973
+ "settled",
1974
+ "coverage",
1975
+ "completeness",
1976
+ "census",
1977
+ "survivors",
1978
+ "unreadable"
1979
+ ],
1980
+ "additionalProperties": false,
1981
+ "description": "Compact process-scope outcome of a terminal run (full artifact: final/process_scope.yaml)."
1982
+ },
1983
+ {
1984
+ "type": "null"
1985
+ }
1986
+ ],
1987
+ "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.",
1988
+ "default": null
1989
+ },
1766
1990
  "route": {
1767
1991
  "anyOf": [
1768
1992
  {
@@ -25,6 +25,10 @@
25
25
  "minLength": 1,
26
26
  "description": "Absolute run directory of the holder."
27
27
  },
28
+ "continuation_eligible": {
29
+ "type": "boolean",
30
+ "description": "False for diagnostic source retention addressed by attempt, without a run continuation pointer. Absent retains the historical singleton continuation contract."
31
+ },
28
32
  "envelope": {
29
33
  "type": "object",
30
34
  "properties": {
@@ -63,7 +63,7 @@
63
63
  "output_truncated": {
64
64
  "type": "boolean",
65
65
  "default": false,
66
- "description": "True when the stored output tails were truncated."
66
+ "description": "True when the stored output tails are incomplete: sliced to the tail limit, or cut because the post-exit drain force-closed a pipe that a leftover process kept open."
67
67
  }
68
68
  },
69
69
  "required": [