@hosty-sdk/app 0.49.0 → 0.51.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.
- package/dist/agent-client.d.ts +28 -1
- package/dist/agent-client.js +104 -5
- package/dist/agent-schemas.js +31 -4
- package/dist/agent-server.js +11 -5
- package/dist/agent.d.ts +18 -0
- package/dist/agent.js +1 -0
- package/package.json +1 -1
- package/schemas/agent-event-v1.schema.json +352 -34
- package/schemas/agent-v1.openapi.json +862 -64
|
@@ -1124,6 +1124,56 @@
|
|
|
1124
1124
|
],
|
|
1125
1125
|
"additionalProperties": false
|
|
1126
1126
|
},
|
|
1127
|
+
"ChildAgent": {
|
|
1128
|
+
"type": "object",
|
|
1129
|
+
"properties": {
|
|
1130
|
+
"agentId": {
|
|
1131
|
+
"type": "string",
|
|
1132
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
1133
|
+
},
|
|
1134
|
+
"parentAgentId": {
|
|
1135
|
+
"type": "string",
|
|
1136
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
1137
|
+
},
|
|
1138
|
+
"parentToolCallId": {
|
|
1139
|
+
"type": "string",
|
|
1140
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
1141
|
+
},
|
|
1142
|
+
"state": {
|
|
1143
|
+
"enum": [
|
|
1144
|
+
"queued",
|
|
1145
|
+
"running",
|
|
1146
|
+
"waiting_for_input",
|
|
1147
|
+
"succeeded",
|
|
1148
|
+
"failed",
|
|
1149
|
+
"cancelled",
|
|
1150
|
+
"unknown"
|
|
1151
|
+
]
|
|
1152
|
+
},
|
|
1153
|
+
"stopConfirmed": {
|
|
1154
|
+
"type": "boolean"
|
|
1155
|
+
},
|
|
1156
|
+
"prompt": {
|
|
1157
|
+
"type": "string",
|
|
1158
|
+
"maxLength": 65536
|
|
1159
|
+
},
|
|
1160
|
+
"response": {
|
|
1161
|
+
"type": "string",
|
|
1162
|
+
"maxLength": 65536
|
|
1163
|
+
},
|
|
1164
|
+
"promptTruncated": {
|
|
1165
|
+
"type": "boolean"
|
|
1166
|
+
},
|
|
1167
|
+
"responseTruncated": {
|
|
1168
|
+
"type": "boolean"
|
|
1169
|
+
}
|
|
1170
|
+
},
|
|
1171
|
+
"required": [
|
|
1172
|
+
"agentId",
|
|
1173
|
+
"state"
|
|
1174
|
+
],
|
|
1175
|
+
"additionalProperties": true
|
|
1176
|
+
},
|
|
1127
1177
|
"PendingDecision": {
|
|
1128
1178
|
"type": "object",
|
|
1129
1179
|
"properties": {
|
|
@@ -1502,40 +1552,7 @@
|
|
|
1502
1552
|
"type": "array",
|
|
1503
1553
|
"maxItems": 1024,
|
|
1504
1554
|
"items": {
|
|
1505
|
-
"
|
|
1506
|
-
"properties": {
|
|
1507
|
-
"agentId": {
|
|
1508
|
-
"type": "string",
|
|
1509
|
-
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
1510
|
-
},
|
|
1511
|
-
"parentAgentId": {
|
|
1512
|
-
"type": "string",
|
|
1513
|
-
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
1514
|
-
},
|
|
1515
|
-
"parentToolCallId": {
|
|
1516
|
-
"type": "string",
|
|
1517
|
-
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
1518
|
-
},
|
|
1519
|
-
"state": {
|
|
1520
|
-
"enum": [
|
|
1521
|
-
"queued",
|
|
1522
|
-
"running",
|
|
1523
|
-
"waiting_for_input",
|
|
1524
|
-
"succeeded",
|
|
1525
|
-
"failed",
|
|
1526
|
-
"cancelled",
|
|
1527
|
-
"unknown"
|
|
1528
|
-
]
|
|
1529
|
-
},
|
|
1530
|
-
"stopConfirmed": {
|
|
1531
|
-
"type": "boolean"
|
|
1532
|
-
}
|
|
1533
|
-
},
|
|
1534
|
-
"required": [
|
|
1535
|
-
"agentId",
|
|
1536
|
-
"state"
|
|
1537
|
-
],
|
|
1538
|
-
"additionalProperties": true
|
|
1555
|
+
"$ref": "#/$defs/ChildAgent"
|
|
1539
1556
|
}
|
|
1540
1557
|
},
|
|
1541
1558
|
"selection": {
|
|
@@ -1787,6 +1804,301 @@
|
|
|
1787
1804
|
],
|
|
1788
1805
|
"additionalProperties": false
|
|
1789
1806
|
},
|
|
1807
|
+
"LiveHistoryReady": {
|
|
1808
|
+
"type": "object",
|
|
1809
|
+
"properties": {
|
|
1810
|
+
"through": {
|
|
1811
|
+
"type": "string",
|
|
1812
|
+
"minLength": 1,
|
|
1813
|
+
"maxLength": 8192
|
|
1814
|
+
}
|
|
1815
|
+
},
|
|
1816
|
+
"required": [
|
|
1817
|
+
"through"
|
|
1818
|
+
],
|
|
1819
|
+
"additionalProperties": false
|
|
1820
|
+
},
|
|
1821
|
+
"LiveHistoryObservation": {
|
|
1822
|
+
"type": "object",
|
|
1823
|
+
"properties": {
|
|
1824
|
+
"sessionId": {
|
|
1825
|
+
"type": "string",
|
|
1826
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
1827
|
+
},
|
|
1828
|
+
"runId": {
|
|
1829
|
+
"type": "string",
|
|
1830
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
1831
|
+
},
|
|
1832
|
+
"generation": {
|
|
1833
|
+
"type": "string",
|
|
1834
|
+
"format": "uuid"
|
|
1835
|
+
},
|
|
1836
|
+
"principalId": {
|
|
1837
|
+
"type": "string",
|
|
1838
|
+
"minLength": 1,
|
|
1839
|
+
"maxLength": 512
|
|
1840
|
+
},
|
|
1841
|
+
"userId": {
|
|
1842
|
+
"type": "string",
|
|
1843
|
+
"minLength": 1,
|
|
1844
|
+
"maxLength": 512
|
|
1845
|
+
},
|
|
1846
|
+
"item": {
|
|
1847
|
+
"oneOf": [
|
|
1848
|
+
{
|
|
1849
|
+
"type": "object",
|
|
1850
|
+
"properties": {
|
|
1851
|
+
"kind": {
|
|
1852
|
+
"const": "snapshot"
|
|
1853
|
+
},
|
|
1854
|
+
"snapshot": {
|
|
1855
|
+
"$ref": "#/$defs/RunSnapshot"
|
|
1856
|
+
}
|
|
1857
|
+
},
|
|
1858
|
+
"required": [
|
|
1859
|
+
"kind",
|
|
1860
|
+
"snapshot"
|
|
1861
|
+
],
|
|
1862
|
+
"additionalProperties": false
|
|
1863
|
+
},
|
|
1864
|
+
{
|
|
1865
|
+
"type": "object",
|
|
1866
|
+
"properties": {
|
|
1867
|
+
"kind": {
|
|
1868
|
+
"const": "event"
|
|
1869
|
+
},
|
|
1870
|
+
"event": {
|
|
1871
|
+
"$ref": "#/$defs/Event"
|
|
1872
|
+
},
|
|
1873
|
+
"cursor": {
|
|
1874
|
+
"type": "string",
|
|
1875
|
+
"minLength": 1,
|
|
1876
|
+
"maxLength": 8192
|
|
1877
|
+
}
|
|
1878
|
+
},
|
|
1879
|
+
"required": [
|
|
1880
|
+
"kind",
|
|
1881
|
+
"event",
|
|
1882
|
+
"cursor"
|
|
1883
|
+
],
|
|
1884
|
+
"additionalProperties": false
|
|
1885
|
+
}
|
|
1886
|
+
]
|
|
1887
|
+
},
|
|
1888
|
+
"epoch": {
|
|
1889
|
+
"type": "string",
|
|
1890
|
+
"format": "uuid"
|
|
1891
|
+
},
|
|
1892
|
+
"sessionPosition": {
|
|
1893
|
+
"type": "integer",
|
|
1894
|
+
"minimum": 1,
|
|
1895
|
+
"maximum": 9007199254740991
|
|
1896
|
+
},
|
|
1897
|
+
"sourceHistoryIncomplete": {
|
|
1898
|
+
"const": true
|
|
1899
|
+
}
|
|
1900
|
+
},
|
|
1901
|
+
"required": [
|
|
1902
|
+
"sessionId",
|
|
1903
|
+
"runId",
|
|
1904
|
+
"generation",
|
|
1905
|
+
"principalId",
|
|
1906
|
+
"userId",
|
|
1907
|
+
"item",
|
|
1908
|
+
"epoch"
|
|
1909
|
+
],
|
|
1910
|
+
"additionalProperties": false
|
|
1911
|
+
},
|
|
1912
|
+
"HistoryStates": {
|
|
1913
|
+
"type": "object",
|
|
1914
|
+
"properties": {
|
|
1915
|
+
"through": {
|
|
1916
|
+
"type": "string",
|
|
1917
|
+
"minLength": 1,
|
|
1918
|
+
"maxLength": 8192
|
|
1919
|
+
},
|
|
1920
|
+
"nextSession": {
|
|
1921
|
+
"type": [
|
|
1922
|
+
"string",
|
|
1923
|
+
"null"
|
|
1924
|
+
],
|
|
1925
|
+
"maxLength": 256
|
|
1926
|
+
},
|
|
1927
|
+
"sessions": {
|
|
1928
|
+
"type": "array",
|
|
1929
|
+
"maxItems": 100,
|
|
1930
|
+
"items": {
|
|
1931
|
+
"type": "object",
|
|
1932
|
+
"properties": {
|
|
1933
|
+
"sessionId": {
|
|
1934
|
+
"type": "string",
|
|
1935
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
1936
|
+
},
|
|
1937
|
+
"userId": {
|
|
1938
|
+
"type": "string",
|
|
1939
|
+
"minLength": 1,
|
|
1940
|
+
"maxLength": 512
|
|
1941
|
+
},
|
|
1942
|
+
"principalId": {
|
|
1943
|
+
"type": "string",
|
|
1944
|
+
"minLength": 1,
|
|
1945
|
+
"maxLength": 512
|
|
1946
|
+
},
|
|
1947
|
+
"epoch": {
|
|
1948
|
+
"type": "string",
|
|
1949
|
+
"format": "uuid"
|
|
1950
|
+
},
|
|
1951
|
+
"head": {
|
|
1952
|
+
"type": "integer",
|
|
1953
|
+
"minimum": 1,
|
|
1954
|
+
"maximum": 9007199254740991
|
|
1955
|
+
},
|
|
1956
|
+
"snapshot": {
|
|
1957
|
+
"$ref": "#/$defs/RunSnapshot"
|
|
1958
|
+
},
|
|
1959
|
+
"sourceHistoryIncomplete": {
|
|
1960
|
+
"const": true
|
|
1961
|
+
}
|
|
1962
|
+
},
|
|
1963
|
+
"required": [
|
|
1964
|
+
"sessionId",
|
|
1965
|
+
"userId",
|
|
1966
|
+
"principalId",
|
|
1967
|
+
"epoch",
|
|
1968
|
+
"head",
|
|
1969
|
+
"snapshot"
|
|
1970
|
+
],
|
|
1971
|
+
"additionalProperties": false
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
},
|
|
1975
|
+
"required": [
|
|
1976
|
+
"through",
|
|
1977
|
+
"nextSession",
|
|
1978
|
+
"sessions"
|
|
1979
|
+
],
|
|
1980
|
+
"additionalProperties": false
|
|
1981
|
+
},
|
|
1982
|
+
"HistoryRange": {
|
|
1983
|
+
"type": "object",
|
|
1984
|
+
"properties": {
|
|
1985
|
+
"nextPosition": {
|
|
1986
|
+
"type": [
|
|
1987
|
+
"integer",
|
|
1988
|
+
"null"
|
|
1989
|
+
],
|
|
1990
|
+
"minimum": 1,
|
|
1991
|
+
"maximum": 9007199254740991
|
|
1992
|
+
},
|
|
1993
|
+
"observations": {
|
|
1994
|
+
"type": "array",
|
|
1995
|
+
"maxItems": 100,
|
|
1996
|
+
"items": {
|
|
1997
|
+
"type": "object",
|
|
1998
|
+
"properties": {
|
|
1999
|
+
"sessionId": {
|
|
2000
|
+
"type": "string",
|
|
2001
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
2002
|
+
},
|
|
2003
|
+
"runId": {
|
|
2004
|
+
"type": "string",
|
|
2005
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
2006
|
+
},
|
|
2007
|
+
"generation": {
|
|
2008
|
+
"type": "string",
|
|
2009
|
+
"format": "uuid"
|
|
2010
|
+
},
|
|
2011
|
+
"principalId": {
|
|
2012
|
+
"type": "string",
|
|
2013
|
+
"minLength": 1,
|
|
2014
|
+
"maxLength": 512
|
|
2015
|
+
},
|
|
2016
|
+
"userId": {
|
|
2017
|
+
"type": "string",
|
|
2018
|
+
"minLength": 1,
|
|
2019
|
+
"maxLength": 512
|
|
2020
|
+
},
|
|
2021
|
+
"item": {
|
|
2022
|
+
"oneOf": [
|
|
2023
|
+
{
|
|
2024
|
+
"type": "object",
|
|
2025
|
+
"properties": {
|
|
2026
|
+
"kind": {
|
|
2027
|
+
"const": "snapshot"
|
|
2028
|
+
},
|
|
2029
|
+
"snapshot": {
|
|
2030
|
+
"$ref": "#/$defs/RunSnapshot"
|
|
2031
|
+
}
|
|
2032
|
+
},
|
|
2033
|
+
"required": [
|
|
2034
|
+
"kind",
|
|
2035
|
+
"snapshot"
|
|
2036
|
+
],
|
|
2037
|
+
"additionalProperties": false
|
|
2038
|
+
},
|
|
2039
|
+
{
|
|
2040
|
+
"type": "object",
|
|
2041
|
+
"properties": {
|
|
2042
|
+
"kind": {
|
|
2043
|
+
"const": "event"
|
|
2044
|
+
},
|
|
2045
|
+
"event": {
|
|
2046
|
+
"$ref": "#/$defs/Event"
|
|
2047
|
+
},
|
|
2048
|
+
"cursor": {
|
|
2049
|
+
"type": "string",
|
|
2050
|
+
"minLength": 1,
|
|
2051
|
+
"maxLength": 8192
|
|
2052
|
+
}
|
|
2053
|
+
},
|
|
2054
|
+
"required": [
|
|
2055
|
+
"kind",
|
|
2056
|
+
"event",
|
|
2057
|
+
"cursor"
|
|
2058
|
+
],
|
|
2059
|
+
"additionalProperties": false
|
|
2060
|
+
}
|
|
2061
|
+
]
|
|
2062
|
+
},
|
|
2063
|
+
"cursor": {
|
|
2064
|
+
"type": "string",
|
|
2065
|
+
"minLength": 1,
|
|
2066
|
+
"maxLength": 8192
|
|
2067
|
+
},
|
|
2068
|
+
"epoch": {
|
|
2069
|
+
"type": "string",
|
|
2070
|
+
"format": "uuid"
|
|
2071
|
+
},
|
|
2072
|
+
"sessionPosition": {
|
|
2073
|
+
"type": "integer",
|
|
2074
|
+
"minimum": 1,
|
|
2075
|
+
"maximum": 9007199254740991
|
|
2076
|
+
},
|
|
2077
|
+
"sourceHistoryIncomplete": {
|
|
2078
|
+
"const": true
|
|
2079
|
+
}
|
|
2080
|
+
},
|
|
2081
|
+
"required": [
|
|
2082
|
+
"sessionId",
|
|
2083
|
+
"runId",
|
|
2084
|
+
"generation",
|
|
2085
|
+
"principalId",
|
|
2086
|
+
"userId",
|
|
2087
|
+
"item",
|
|
2088
|
+
"cursor",
|
|
2089
|
+
"epoch",
|
|
2090
|
+
"sessionPosition"
|
|
2091
|
+
],
|
|
2092
|
+
"additionalProperties": false
|
|
2093
|
+
}
|
|
2094
|
+
}
|
|
2095
|
+
},
|
|
2096
|
+
"required": [
|
|
2097
|
+
"nextPosition",
|
|
2098
|
+
"observations"
|
|
2099
|
+
],
|
|
2100
|
+
"additionalProperties": false
|
|
2101
|
+
},
|
|
1790
2102
|
"HistoryPage": {
|
|
1791
2103
|
"type": "object",
|
|
1792
2104
|
"properties": {
|
|
@@ -2860,6 +3172,12 @@
|
|
|
2860
3172
|
"properties": {
|
|
2861
3173
|
"data": {
|
|
2862
3174
|
"type": "object",
|
|
3175
|
+
"properties": {
|
|
3176
|
+
"agent": {
|
|
3177
|
+
"$ref": "#/$defs/ChildAgent"
|
|
3178
|
+
}
|
|
3179
|
+
},
|
|
3180
|
+
"required": [],
|
|
2863
3181
|
"additionalProperties": true
|
|
2864
3182
|
}
|
|
2865
3183
|
}
|