@agimon-ai/po-core 0.0.0-alpha.7 → 0.0.0-alpha.9
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/apiContracts.cjs +36 -27
- package/dist/apiContracts.cjs.map +1 -1
- package/dist/apiContracts.d.mts +27 -17
- package/dist/apiContracts.d.mts.map +1 -1
- package/dist/apiContracts.mjs +36 -27
- package/dist/apiContracts.mjs.map +1 -1
- package/dist/headlessHub.cjs +1 -1
- package/dist/headlessHub.cjs.map +1 -1
- package/dist/headlessHub.mjs +1 -1
- package/dist/headlessHub.mjs.map +1 -1
- package/dist/headlessProtocol.cjs +13 -12
- package/dist/headlessProtocol.cjs.map +1 -1
- package/dist/headlessProtocol.d.mts.map +1 -1
- package/dist/headlessProtocol.mjs +14 -13
- package/dist/headlessProtocol.mjs.map +1 -1
- package/dist/moduleResolution.cjs +1 -1
- package/dist/moduleResolution.cjs.map +1 -1
- package/dist/moduleResolution.d.mts.map +1 -1
- package/dist/moduleResolution.mjs +1 -1
- package/dist/moduleResolution.mjs.map +1 -1
- package/dist/src/pi/piSessionRuntime.cjs +18 -20
- package/dist/src/pi/piSessionRuntime.cjs.map +1 -1
- package/dist/src/pi/piSessionRuntime.d.mts.map +1 -1
- package/dist/src/pi/piSessionRuntime.mjs +19 -21
- package/dist/src/pi/piSessionRuntime.mjs.map +1 -1
- package/dist/src/schemas/packageApi.cjs.map +1 -1
- package/dist/src/schemas/packageApi.d.mts +1 -1
- package/dist/src/schemas/packageApi.mjs.map +1 -1
- package/dist/src/schemas/protocolContracts.cjs +12 -6
- package/dist/src/schemas/protocolContracts.cjs.map +1 -1
- package/dist/src/schemas/protocolContracts.d.mts +4 -4
- package/dist/src/schemas/protocolContracts.d.mts.map +1 -1
- package/dist/src/schemas/protocolContracts.mjs +13 -7
- package/dist/src/schemas/protocolContracts.mjs.map +1 -1
- package/dist/src/services/piMessages/index.cjs.map +1 -1
- package/dist/src/services/piMessages/index.mjs.map +1 -1
- package/package.json +10 -10
package/dist/apiContracts.cjs
CHANGED
|
@@ -1776,11 +1776,11 @@ const PoPluginCallSchema = typebox.Type.Object({
|
|
|
1776
1776
|
}, { additionalProperties: false });
|
|
1777
1777
|
//#endregion
|
|
1778
1778
|
//#region src/schemas/transportApiContracts.ts
|
|
1779
|
-
/** The Chord release whose link frames this file describes. */
|
|
1780
|
-
const CHORD_WIRE_VERSION = "1.
|
|
1779
|
+
/** The Chord release whose link frames this file describes (link protocol 4). */
|
|
1780
|
+
const CHORD_WIRE_VERSION = "1.3.0";
|
|
1781
1781
|
const S = typebox.Type.String({ minLength: 1 });
|
|
1782
1782
|
const Json = typebox.Type.Unknown({ description: "JSON value; its application shape is defined by the addressed contract member." });
|
|
1783
|
-
const Id = typebox.Type.Integer({ minimum:
|
|
1783
|
+
const Id = typebox.Type.Integer({ minimum: 1 });
|
|
1784
1784
|
const ErrorCode = typebox.Type.Union([
|
|
1785
1785
|
"aborted",
|
|
1786
1786
|
"contract_mismatch",
|
|
@@ -1852,6 +1852,18 @@ const ChordWireOpSchema = typebox.Type.Union([
|
|
|
1852
1852
|
Path
|
|
1853
1853
|
])
|
|
1854
1854
|
], { description: "Chord delta tuples. Path dictionary references and omitted paths depend on earlier operations in this subscription; decode with the Chord delta decoder." });
|
|
1855
|
+
const Hello = (kind) => typebox.Type.Object({
|
|
1856
|
+
t: typebox.Type.Literal("hello"),
|
|
1857
|
+
protocol: typebox.Type.Optional(typebox.Type.Integer({ minimum: 1 })),
|
|
1858
|
+
name: typebox.Type.String(),
|
|
1859
|
+
kind,
|
|
1860
|
+
codeVersion: typebox.Type.Integer({ minimum: 0 }),
|
|
1861
|
+
acks: typebox.Type.Optional(typebox.Type.Boolean())
|
|
1862
|
+
});
|
|
1863
|
+
const Ack = typebox.Type.Object({
|
|
1864
|
+
t: typebox.Type.Literal("ack"),
|
|
1865
|
+
n: typebox.Type.Integer({ minimum: 1 })
|
|
1866
|
+
});
|
|
1855
1867
|
const Ping = typebox.Type.Object({
|
|
1856
1868
|
t: typebox.Type.Literal("ping"),
|
|
1857
1869
|
n: typebox.Type.Integer()
|
|
@@ -1866,19 +1878,16 @@ const Bye = typebox.Type.Object({
|
|
|
1866
1878
|
});
|
|
1867
1879
|
/** Frames a client (browser or native app) sends on its link. */
|
|
1868
1880
|
const ChordClientFrameSchema = typebox.Type.Union([
|
|
1869
|
-
typebox.Type.
|
|
1870
|
-
|
|
1871
|
-
name: typebox.Type.String(),
|
|
1872
|
-
kind: typebox.Type.Literal("client"),
|
|
1873
|
-
epoch: typebox.Type.Integer()
|
|
1874
|
-
}),
|
|
1881
|
+
Hello(typebox.Type.Literal("client")),
|
|
1882
|
+
Ack,
|
|
1875
1883
|
typebox.Type.Object({
|
|
1876
1884
|
t: typebox.Type.Literal("hold"),
|
|
1877
1885
|
id: Id,
|
|
1878
1886
|
at: typebox.Type.String(),
|
|
1879
1887
|
token: Json,
|
|
1880
1888
|
input: Json,
|
|
1881
|
-
|
|
1889
|
+
state: typebox.Type.Optional(typebox.Type.Literal(false)),
|
|
1890
|
+
again: typebox.Type.Optional(typebox.Type.Literal(true))
|
|
1882
1891
|
}),
|
|
1883
1892
|
typebox.Type.Object({
|
|
1884
1893
|
t: typebox.Type.Literal("release"),
|
|
@@ -1889,7 +1898,7 @@ const ChordClientFrameSchema = typebox.Type.Union([
|
|
|
1889
1898
|
id: Id,
|
|
1890
1899
|
hold: Id,
|
|
1891
1900
|
member: S,
|
|
1892
|
-
args: Json
|
|
1901
|
+
args: typebox.Type.Optional(Json)
|
|
1893
1902
|
}),
|
|
1894
1903
|
typebox.Type.Object({
|
|
1895
1904
|
t: typebox.Type.Literal("cancel"),
|
|
@@ -1897,13 +1906,11 @@ const ChordClientFrameSchema = typebox.Type.Union([
|
|
|
1897
1906
|
}),
|
|
1898
1907
|
typebox.Type.Object({
|
|
1899
1908
|
t: typebox.Type.Literal("sub"),
|
|
1900
|
-
|
|
1901
|
-
hold: Id,
|
|
1902
|
-
member: S
|
|
1909
|
+
hold: Id
|
|
1903
1910
|
}),
|
|
1904
1911
|
typebox.Type.Object({
|
|
1905
1912
|
t: typebox.Type.Literal("unsub"),
|
|
1906
|
-
|
|
1913
|
+
hold: Id
|
|
1907
1914
|
}),
|
|
1908
1915
|
typebox.Type.Object({
|
|
1909
1916
|
t: typebox.Type.Literal("root_end"),
|
|
@@ -1915,19 +1922,15 @@ const ChordClientFrameSchema = typebox.Type.Union([
|
|
|
1915
1922
|
]);
|
|
1916
1923
|
/** Frames the Po server sends to a client link. */
|
|
1917
1924
|
const ChordServerFrameSchema = typebox.Type.Union([
|
|
1918
|
-
typebox.Type.
|
|
1919
|
-
|
|
1920
|
-
name: typebox.Type.String(),
|
|
1921
|
-
kind: typebox.Type.String(),
|
|
1922
|
-
epoch: typebox.Type.Integer()
|
|
1923
|
-
}),
|
|
1925
|
+
Hello(typebox.Type.String()),
|
|
1926
|
+
Ack,
|
|
1924
1927
|
typebox.Type.Object({
|
|
1925
1928
|
t: typebox.Type.Literal("shape"),
|
|
1926
1929
|
id: Id,
|
|
1927
|
-
|
|
1930
|
+
variant: typebox.Type.Optional(typebox.Type.String()),
|
|
1928
1931
|
members: typebox.Type.Array(typebox.Type.String()),
|
|
1929
1932
|
contract: typebox.Type.String(),
|
|
1930
|
-
|
|
1933
|
+
state: typebox.Type.Array(S)
|
|
1931
1934
|
}),
|
|
1932
1935
|
typebox.Type.Object({
|
|
1933
1936
|
t: typebox.Type.Literal("gone"),
|
|
@@ -1942,9 +1945,15 @@ const ChordServerFrameSchema = typebox.Type.Union([
|
|
|
1942
1945
|
}),
|
|
1943
1946
|
typebox.Type.Object({
|
|
1944
1947
|
t: typebox.Type.Literal("state"),
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
+
hold: Id,
|
|
1949
|
+
m: S,
|
|
1950
|
+
as: typebox.Type.Union([
|
|
1951
|
+
typebox.Type.Literal("snap"),
|
|
1952
|
+
typebox.Type.Literal("reset"),
|
|
1953
|
+
typebox.Type.Literal("ops"),
|
|
1954
|
+
typebox.Type.Literal("error")
|
|
1955
|
+
]),
|
|
1956
|
+
value: typebox.Type.Optional(Json),
|
|
1948
1957
|
ops: typebox.Type.Optional(typebox.Type.Array(ChordWireOpSchema)),
|
|
1949
1958
|
error: typebox.Type.Optional(WireError)
|
|
1950
1959
|
}),
|
|
@@ -1971,7 +1980,7 @@ const transportSocketContracts = [
|
|
|
1971
1980
|
direction: "server-to-client",
|
|
1972
1981
|
kind: "channel",
|
|
1973
1982
|
input: ChordServerFrameSchema,
|
|
1974
|
-
description: "Chord link frame. Results correlate by call id; state frames by
|
|
1983
|
+
description: "Chord link frame. Results correlate by call id; state frames by hold id and member."
|
|
1975
1984
|
},
|
|
1976
1985
|
{
|
|
1977
1986
|
id: "plugin.invoke",
|