@claudexor/schema 4.3.1 → 4.4.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 (48) hide show
  1. package/dist/config.d.ts +2 -2
  2. package/dist/config.d.ts.map +1 -1
  3. package/dist/config.js +2 -2
  4. package/dist/config.js.map +1 -1
  5. package/dist/control-gc.d.ts +113 -0
  6. package/dist/control-gc.d.ts.map +1 -1
  7. package/dist/control-gc.js +28 -1
  8. package/dist/control-gc.js.map +1 -1
  9. package/dist/control-run-event-part.d.ts +53 -0
  10. package/dist/control-run-event-part.d.ts.map +1 -0
  11. package/dist/control-run-event-part.js +47 -0
  12. package/dist/control-run-event-part.js.map +1 -0
  13. package/dist/daemon-status.d.ts +327 -0
  14. package/dist/daemon-status.d.ts.map +1 -1
  15. package/dist/daemon-status.js +35 -0
  16. package/dist/daemon-status.js.map +1 -1
  17. package/dist/index.d.ts +2 -0
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +2 -0
  20. package/dist/index.js.map +1 -1
  21. package/dist/mcp-run-result.d.ts +251 -0
  22. package/dist/mcp-run-result.d.ts.map +1 -1
  23. package/dist/mcp-run-result.js +26 -2
  24. package/dist/mcp-run-result.js.map +1 -1
  25. package/dist/mcp-run-wait.d.ts +269 -0
  26. package/dist/mcp-run-wait.d.ts.map +1 -0
  27. package/dist/mcp-run-wait.js +73 -0
  28. package/dist/mcp-run-wait.js.map +1 -0
  29. package/dist/operation.d.ts +5 -0
  30. package/dist/operation.d.ts.map +1 -1
  31. package/dist/operation.js +7 -0
  32. package/dist/operation.js.map +1 -1
  33. package/dist/store-status.d.ts +10 -0
  34. package/dist/store-status.d.ts.map +1 -1
  35. package/dist/store-status.js +8 -0
  36. package/dist/store-status.js.map +1 -1
  37. package/generated/ControlDaemonStatus.schema.json +174 -6
  38. package/generated/ControlGcReceipt.schema.json +81 -1
  39. package/generated/ControlGcRequest.schema.json +4 -0
  40. package/generated/ControlHandshakeResponse.schema.json +5 -0
  41. package/generated/ControlRunEventPart.schema.json +140 -0
  42. package/generated/GlobalConfig.schema.json +1 -1
  43. package/generated/McpRunEventReadInput.schema.json +41 -0
  44. package/generated/McpRunHandleResult.schema.json +382 -0
  45. package/generated/McpRunToolResult.schema.json +10 -2
  46. package/generated/McpRunWaitInput.schema.json +50 -0
  47. package/generated/McpRunWaitResult.schema.json +411 -0
  48. package/package.json +2 -2
@@ -1667,6 +1667,388 @@
1667
1667
  "description": "Typed Delegate receipt; null when unavailable or legacy.",
1668
1668
  "default": null
1669
1669
  },
1670
+ "continueFrom": {
1671
+ "anyOf": [
1672
+ {
1673
+ "$ref": "#/definitions/McpRunHandleResult/properties/attemptExecution/items/properties/attemptId"
1674
+ },
1675
+ {
1676
+ "type": "null"
1677
+ }
1678
+ ],
1679
+ "description": "Predecessor run this run continues; null for an ordinary run, omitted when the detail did not project it."
1680
+ },
1681
+ "resumable": {
1682
+ "anyOf": [
1683
+ {
1684
+ "type": "object",
1685
+ "properties": {
1686
+ "cause": {
1687
+ "type": "string",
1688
+ "enum": [
1689
+ "vendor_limit",
1690
+ "pool_exhausted",
1691
+ "pinned_limit",
1692
+ "transport",
1693
+ "permission_denied",
1694
+ "context_exhausted",
1695
+ "wall_clock",
1696
+ "cancelled",
1697
+ "host_restart",
1698
+ "input_required",
1699
+ "other"
1700
+ ],
1701
+ "description": "Typed reason the previous process stopped: a vendor limit (next account eligible), the whole pool spent, a pinned account's limit, a transport death (crash, timeout, watchdog), a confirmed native tool permission refusal, context exhaustion, the wall-clock deadline, a cancel, a daemon/host restart, a model that asked for input, or another typed cause."
1702
+ },
1703
+ "resetsAt": {
1704
+ "type": [
1705
+ "string",
1706
+ "null"
1707
+ ],
1708
+ "description": "When the spent vendor window reopens, only from a vendor signal; never fabricated."
1709
+ },
1710
+ "limitWindow": {
1711
+ "type": [
1712
+ "string",
1713
+ "null"
1714
+ ],
1715
+ "description": "The vendor's own name for the spent window (e.g. five_hour, seven_day_opus), when known."
1716
+ },
1717
+ "limitEvidence": {
1718
+ "anyOf": [
1719
+ {
1720
+ "type": "string",
1721
+ "enum": [
1722
+ "window",
1723
+ "unspecified"
1724
+ ],
1725
+ "description": "window: the vendor named the spent window (a reset instant or a constraint id); unspecified: a typed limit without a window — a bare backoff frame is transport, not a limit."
1726
+ },
1727
+ {
1728
+ "type": "null"
1729
+ }
1730
+ ],
1731
+ "description": "window: the vendor named the spent window (a reset instant or a constraint id); unspecified: a typed limit without a window — a bare backoff frame is transport, not a limit."
1732
+ },
1733
+ "carriers": {
1734
+ "type": "array",
1735
+ "items": {
1736
+ "type": "string",
1737
+ "enum": [
1738
+ "native",
1739
+ "native_moved",
1740
+ "packet"
1741
+ ],
1742
+ "description": "A continuity representation still available for a stopped run."
1743
+ },
1744
+ "description": "Continuity representations still available (NOT quota readiness; readiness is described by the limit facts)."
1745
+ },
1746
+ "limitCode": {
1747
+ "type": [
1748
+ "string",
1749
+ "null"
1750
+ ],
1751
+ "description": "The typed vendor limit code that ended the work, when any."
1752
+ },
1753
+ "session": {
1754
+ "anyOf": [
1755
+ {
1756
+ "type": "object",
1757
+ "properties": {
1758
+ "harness": {
1759
+ "$ref": "#/definitions/McpRunHandleResult/properties/attemptExecution/items/properties/attemptId"
1760
+ },
1761
+ "nativeSessionId": {
1762
+ "type": "string",
1763
+ "minLength": 1
1764
+ },
1765
+ "holderProfileId": {
1766
+ "anyOf": [
1767
+ {
1768
+ "$ref": "#/definitions/McpRunHandleResult/properties/attemptExecution/items/properties/attemptId"
1769
+ },
1770
+ {
1771
+ "type": "null"
1772
+ }
1773
+ ],
1774
+ "description": "Non-empty identifier string."
1775
+ }
1776
+ },
1777
+ "required": [
1778
+ "harness",
1779
+ "nativeSessionId",
1780
+ "holderProfileId"
1781
+ ],
1782
+ "additionalProperties": false
1783
+ },
1784
+ {
1785
+ "type": "null"
1786
+ }
1787
+ ],
1788
+ "description": "The native session a continuation can resume, when one exists."
1789
+ },
1790
+ "workspace": {
1791
+ "type": "object",
1792
+ "properties": {
1793
+ "kind": {
1794
+ "type": "string",
1795
+ "enum": [
1796
+ "in_place",
1797
+ "retained_envelope",
1798
+ "none"
1799
+ ]
1800
+ },
1801
+ "root": {
1802
+ "type": [
1803
+ "string",
1804
+ "null"
1805
+ ]
1806
+ }
1807
+ },
1808
+ "required": [
1809
+ "kind",
1810
+ "root"
1811
+ ],
1812
+ "additionalProperties": false,
1813
+ "description": "Where the stopped work's tree is: the live root, a retained envelope, or gone."
1814
+ }
1815
+ },
1816
+ "required": [
1817
+ "cause",
1818
+ "resetsAt",
1819
+ "limitWindow",
1820
+ "limitEvidence",
1821
+ "carriers",
1822
+ "limitCode",
1823
+ "session",
1824
+ "workspace"
1825
+ ],
1826
+ "additionalProperties": false,
1827
+ "description": "Terminal facts of a stopped run that can be continued: cause, limit evidence, available carriers, the native session and the workspace."
1828
+ },
1829
+ {
1830
+ "type": "null"
1831
+ }
1832
+ ],
1833
+ "description": "Terminal facts of stopped unfinished work that claudexor_run_continue can continue (cause, resetsAt, carriers, session, workspace); null when the work finished or the run is not terminal, omitted when not projected."
1834
+ },
1835
+ "continuity": {
1836
+ "type": "array",
1837
+ "items": {
1838
+ "type": "object",
1839
+ "properties": {
1840
+ "tryIndex": {
1841
+ "type": "integer",
1842
+ "minimum": 0,
1843
+ "description": "Native try within the attempt; joins the receipt to its try."
1844
+ },
1845
+ "attemptId": {
1846
+ "$ref": "#/definitions/McpRunHandleResult/properties/attemptExecution/items/properties/attemptId"
1847
+ },
1848
+ "carrier": {
1849
+ "type": "string",
1850
+ "enum": [
1851
+ "native",
1852
+ "native_moved",
1853
+ "packet",
1854
+ "fresh"
1855
+ ],
1856
+ "description": "Carrier of a continued try: native (the vendor's own session, same account), native_moved (the session file made visible in the next account's store, then resumed there), packet (a fresh session re-grounded by an evidence index), or fresh (nothing to carry — a replay of the original prompt)."
1857
+ },
1858
+ "cause": {
1859
+ "$ref": "#/definitions/McpRunHandleResult/properties/resumable/anyOf/0/properties/cause"
1860
+ },
1861
+ "from": {
1862
+ "type": "object",
1863
+ "properties": {
1864
+ "runId": {
1865
+ "$ref": "#/definitions/McpRunHandleResult/properties/attemptExecution/items/properties/attemptId"
1866
+ },
1867
+ "attemptId": {
1868
+ "$ref": "#/definitions/McpRunHandleResult/properties/attemptExecution/items/properties/attemptId"
1869
+ },
1870
+ "profileId": {
1871
+ "anyOf": [
1872
+ {
1873
+ "$ref": "#/definitions/McpRunHandleResult/properties/attemptExecution/items/properties/attemptId"
1874
+ },
1875
+ {
1876
+ "type": "null"
1877
+ }
1878
+ ],
1879
+ "description": "Non-empty identifier string."
1880
+ }
1881
+ },
1882
+ "required": [
1883
+ "runId",
1884
+ "attemptId",
1885
+ "profileId"
1886
+ ],
1887
+ "additionalProperties": false
1888
+ },
1889
+ "to": {
1890
+ "type": "object",
1891
+ "properties": {
1892
+ "profileId": {
1893
+ "anyOf": [
1894
+ {
1895
+ "$ref": "#/definitions/McpRunHandleResult/properties/attemptExecution/items/properties/attemptId"
1896
+ },
1897
+ {
1898
+ "type": "null"
1899
+ }
1900
+ ],
1901
+ "description": "Non-empty identifier string."
1902
+ }
1903
+ },
1904
+ "required": [
1905
+ "profileId"
1906
+ ],
1907
+ "additionalProperties": false
1908
+ },
1909
+ "workspace": {
1910
+ "type": "string",
1911
+ "enum": [
1912
+ "same_root",
1913
+ "different_root"
1914
+ ],
1915
+ "description": "Whether the continued try runs in the predecessor's execution root."
1916
+ },
1917
+ "memory": {
1918
+ "type": "string",
1919
+ "enum": [
1920
+ "full",
1921
+ "partial",
1922
+ "unknown"
1923
+ ],
1924
+ "description": "Its own fact: a native resume carries the whole history (full); a packet re-brief is partial; a native resume that lost history (e.g. a rejected compacted item) is partial/unknown."
1925
+ },
1926
+ "instructions": {
1927
+ "type": "string",
1928
+ "enum": [
1929
+ "as_sent",
1930
+ "vendor_snapshot"
1931
+ ],
1932
+ "description": "as_sent: the successor's instructions equal the predecessor's; vendor_snapshot: they differ, and the vendor may resend its recorded system prompt instead (claude records it on the first request)."
1933
+ },
1934
+ "reingestedTokens": {
1935
+ "anyOf": [
1936
+ {
1937
+ "type": "integer",
1938
+ "minimum": 0
1939
+ },
1940
+ {
1941
+ "type": "null"
1942
+ }
1943
+ ],
1944
+ "description": "Input + cache-creation tokens of the first resumed request, when known."
1945
+ },
1946
+ "observedModel": {
1947
+ "type": [
1948
+ "string",
1949
+ "null"
1950
+ ],
1951
+ "description": "THIS try's attested model (never borrowed from another try)."
1952
+ },
1953
+ "modelMismatch": {
1954
+ "type": [
1955
+ "boolean",
1956
+ "null"
1957
+ ]
1958
+ },
1959
+ "identityCheck": {
1960
+ "type": "string",
1961
+ "enum": [
1962
+ "matched_before_effects",
1963
+ "mismatch_before_effects",
1964
+ "mismatch_after_possible_effects",
1965
+ "not_applicable"
1966
+ ],
1967
+ "description": "Whether the resumed vendor session was the one requested, judged at the earliest handshake (codex thread/resume before turn/start; claude system/init): matched, mismatch caught before the child could act, mismatch caught after it may have acted, or not applicable (no resume was requested, or a harness without the continuity capability answered with another session id, which is recorded as before)."
1968
+ },
1969
+ "inputDelivery": {
1970
+ "type": "string",
1971
+ "enum": [
1972
+ "confirmed",
1973
+ "uncertain",
1974
+ "not_applicable"
1975
+ ],
1976
+ "description": "Whether the predecessor's last input (its turn prompt or an admitted steering message) is known to be in the vendor history: confirmed, uncertain (carried in the notice as a reference to reconcile, never replayed blindly), or not applicable."
1977
+ }
1978
+ },
1979
+ "required": [
1980
+ "tryIndex",
1981
+ "attemptId",
1982
+ "carrier",
1983
+ "cause",
1984
+ "from",
1985
+ "to",
1986
+ "workspace",
1987
+ "memory",
1988
+ "instructions",
1989
+ "reingestedTokens",
1990
+ "observedModel",
1991
+ "modelMismatch",
1992
+ "identityCheck",
1993
+ "inputDelivery"
1994
+ ],
1995
+ "additionalProperties": false,
1996
+ "description": "Receipt of one continued try: carrier, cause, accounts, memory, model attestation."
1997
+ },
1998
+ "description": "Per-try continuation receipts (carrier, cause, accounts, model) from the run's event log; omitted when not projected."
1999
+ },
2000
+ "retainedEnvelope": {
2001
+ "anyOf": [
2002
+ {
2003
+ "type": "object",
2004
+ "properties": {
2005
+ "root": {
2006
+ "type": "string",
2007
+ "description": "Absolute path of the kept working tree."
2008
+ },
2009
+ "bytes": {
2010
+ "anyOf": [
2011
+ {
2012
+ "type": "integer",
2013
+ "minimum": 0
2014
+ },
2015
+ {
2016
+ "type": "null"
2017
+ }
2018
+ ],
2019
+ "description": "Disk use of the kept envelope (tree + scoped home); null when not measured."
2020
+ },
2021
+ "retainedAt": {
2022
+ "type": "string",
2023
+ "description": "When the envelope was kept."
2024
+ },
2025
+ "cause": {
2026
+ "anyOf": [
2027
+ {
2028
+ "$ref": "#/definitions/McpRunHandleResult/properties/resumable/anyOf/0/properties/cause"
2029
+ },
2030
+ {
2031
+ "type": "null"
2032
+ }
2033
+ ],
2034
+ "description": "Why the run stopped, when recorded."
2035
+ }
2036
+ },
2037
+ "required": [
2038
+ "root",
2039
+ "bytes",
2040
+ "retainedAt",
2041
+ "cause"
2042
+ ],
2043
+ "additionalProperties": false,
2044
+ "description": "An isolated envelope kept for continuation: continue it with continueFrom, or release it with the discard decision."
2045
+ },
2046
+ {
2047
+ "type": "null"
2048
+ }
2049
+ ],
2050
+ "description": "Isolated envelope kept for a successor (disk use visible); null when none, omitted when not projected."
2051
+ },
1670
2052
  "detailProblem": {
1671
2053
  "anyOf": [
1672
2054
  {
@@ -202,7 +202,15 @@
202
202
  "string",
203
203
  "null"
204
204
  ],
205
- "description": "Daemon run id (recovery handle for inspect/follow/apply/decision); null for in-process read-only runs."
205
+ "description": "Daemon run id once the accepted job started a run (recovery handle for inspect/follow/apply/decision); null while the job is still queued or after it failed before a run started."
206
+ },
207
+ "jobId": {
208
+ "type": [
209
+ "string",
210
+ "null"
211
+ ],
212
+ "default": null,
213
+ "description": "Daemon job id of the accepted launch. While runId is null, pass it as runId to the status, wait and result tools; they report the canonical runId once the run binds."
206
214
  },
207
215
  "runDir": {
208
216
  "type": [
@@ -216,7 +224,7 @@
216
224
  "string",
217
225
  "null"
218
226
  ],
219
- "description": "Terminal run LIFECYCLE (succeeded | failed | cancelled | interrupted)."
227
+ "description": "Run lifecycle state (queued | running | succeeded | failed | cancelled | interrupted); null when an accepted job's state could not be read."
220
228
  },
221
229
  "runFacts": {
222
230
  "anyOf": [
@@ -0,0 +1,50 @@
1
+ {
2
+ "$ref": "#/definitions/McpRunWaitInput",
3
+ "definitions": {
4
+ "McpRunWaitInput": {
5
+ "type": "object",
6
+ "properties": {
7
+ "runId": {
8
+ "type": "string",
9
+ "minLength": 1,
10
+ "maxLength": 256,
11
+ "description": "Run id, or the job id of an accepted launch that may still be queued."
12
+ },
13
+ "afterSeq": {
14
+ "type": "integer",
15
+ "minimum": 0,
16
+ "maximum": 9007199254740991,
17
+ "default": 0,
18
+ "description": "Last durable event seq already consumed (the previous nextSeq), never snapshotSeq."
19
+ },
20
+ "waitMs": {
21
+ "type": "integer",
22
+ "minimum": 0,
23
+ "maximum": 50000,
24
+ "default": 25000,
25
+ "description": "Bound of the event stage. Zero never waits for new events: it returns the bounded page already available at the snapshot fence, read within a separate 5s budget. Daemon discovery and each snapshot read have their own 5s budgets, so one call can take up to waitMs plus about 15s."
26
+ },
27
+ "maxEvents": {
28
+ "type": "integer",
29
+ "minimum": 1,
30
+ "maximum": 200,
31
+ "default": 50
32
+ },
33
+ "wake": {
34
+ "type": "string",
35
+ "enum": [
36
+ "batch",
37
+ "event"
38
+ ],
39
+ "default": "batch",
40
+ "description": "batch (default): collect events until the page fills, it includes a question event (interaction.requested, also one written before the wait), the run ends, or waitMs elapses. event: return as soon as any event is available. A pending question whose event is not in the page is reported in both modes but never ends a wait by itself."
41
+ }
42
+ },
43
+ "required": [
44
+ "runId"
45
+ ],
46
+ "additionalProperties": false
47
+ }
48
+ },
49
+ "$schema": "http://json-schema.org/draft-07/schema#"
50
+ }