@agimon-ai/po-core 0.0.0-alpha.77 → 0.0.0-alpha.78
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 +7 -12
- package/dist/apiContracts.cjs.map +1 -1
- package/dist/apiContracts.mjs +7 -12
- package/dist/apiContracts.mjs.map +1 -1
- package/dist/sessionProtocol.cjs +1 -0
- package/dist/sessionProtocol.d.mts +2 -2
- package/dist/sessionProtocol.mjs +2 -2
- package/dist/src/constants/nativeHost.cjs +10 -1
- package/dist/src/constants/nativeHost.cjs.map +1 -1
- package/dist/src/constants/nativeHost.d.mts +1 -1
- package/dist/src/constants/nativeHost.d.mts.map +1 -1
- package/dist/src/constants/nativeHost.mjs +10 -1
- package/dist/src/constants/nativeHost.mjs.map +1 -1
- package/dist/src/schemas/httpApiContracts.cjs +1 -11
- package/dist/src/schemas/httpApiContracts.cjs.map +1 -1
- package/dist/src/schemas/httpApiContracts.mjs +1 -11
- package/dist/src/schemas/httpApiContracts.mjs.map +1 -1
- package/dist/src/schemas/packageApi.cjs.map +1 -1
- package/dist/src/schemas/packageApi.d.mts +2 -0
- package/dist/src/schemas/packageApi.d.mts.map +1 -1
- package/dist/src/schemas/packageApi.mjs.map +1 -1
- package/dist/src/schemas/protocolHubContract.cjs +7 -1
- package/dist/src/schemas/protocolHubContract.cjs.map +1 -1
- package/dist/src/schemas/protocolHubContract.d.mts +89 -22
- package/dist/src/schemas/protocolHubContract.d.mts.map +1 -1
- package/dist/src/schemas/protocolHubContract.mjs +8 -3
- package/dist/src/schemas/protocolHubContract.mjs.map +1 -1
- package/dist/webCompositions.cjs +1 -25
- package/dist/webCompositions.cjs.map +1 -1
- package/dist/webCompositions.d.mts +2 -26
- package/dist/webCompositions.d.mts.map +1 -1
- package/dist/webCompositions.mjs +1 -25
- package/dist/webCompositions.mjs.map +1 -1
- package/package.json +4 -4
- package/dist/src/schemas/httpApiContracts.d.mts +0 -75
- package/dist/src/schemas/httpApiContracts.d.mts.map +0 -1
package/dist/apiContracts.cjs
CHANGED
|
@@ -511,18 +511,10 @@ const NativeCompositionSchema = typebox.Type.Object({
|
|
|
511
511
|
manifestUrl: Text$3,
|
|
512
512
|
rawAssetBaseUrl: Text$3,
|
|
513
513
|
pluginEntries: typebox.Type.Array(typebox.Type.Tuple([Text$3, Text$3])),
|
|
514
|
+
uiEntry: Optional$2(Text$3),
|
|
514
515
|
channels: Strings$1,
|
|
515
516
|
plugins: Strings$1
|
|
516
517
|
});
|
|
517
|
-
/** One platform's signed over-the-air app bundle; `fingerprint` names the binaries it runs on. */
|
|
518
|
-
const NativeAppSchema = typebox.Type.Object({
|
|
519
|
-
id: Text$3,
|
|
520
|
-
revision: NumberValue$2,
|
|
521
|
-
manifestUrl: Text$3,
|
|
522
|
-
rawAssetBaseUrl: Text$3,
|
|
523
|
-
fingerprint: Text$3,
|
|
524
|
-
builtAt: Optional$2(NumberValue$2)
|
|
525
|
-
});
|
|
526
518
|
/** A configured template id and the mount whose compositions offer it. */
|
|
527
519
|
const TemplateDecisionSchema = typebox.Type.Object({
|
|
528
520
|
id: Optional$2(Text$3),
|
|
@@ -725,8 +717,6 @@ const headlessHttpContracts = [
|
|
|
725
717
|
displayName: Optional$2(Text$3),
|
|
726
718
|
global: Optional$2(WebCompositionSchema),
|
|
727
719
|
nativeGlobal: Optional$2(NativeCompositionSchema),
|
|
728
|
-
/** App bundles by platform, which a phone loads only when its own fingerprint matches. */
|
|
729
|
-
nativeApp: Optional$2(typebox.Type.Record(Text$3, NativeAppSchema)),
|
|
730
720
|
publicKey: Optional$2(Text$3),
|
|
731
721
|
shell: Optional$2(typebox.Type.Object({
|
|
732
722
|
publicKey: Text$3,
|
|
@@ -1490,12 +1480,17 @@ const HubNoticeSchema = typebox.Type.Object({
|
|
|
1490
1480
|
sessionId: Text$1,
|
|
1491
1481
|
frame: typebox.Type.Record(Text$1, Json$2)
|
|
1492
1482
|
});
|
|
1483
|
+
/** Native UI delivery metadata is HTTP-only; adding it must not refuse existing po.hub@1 clients. */
|
|
1484
|
+
const HubSessionSchema = typebox.Type.Object({
|
|
1485
|
+
...SessionSummarySchema.properties,
|
|
1486
|
+
nativeComposition: typebox.Type.Optional(typebox.Type.Omit(NativeCompositionSchema, ["uiEntry"]))
|
|
1487
|
+
});
|
|
1493
1488
|
/** Instructions are HTTP-only so existing po.hub@1 clients keep the same wire contract. */
|
|
1494
1489
|
const HubWorkspaceSchema = typebox.Type.Omit(WorkspaceSchema, ["instructions"]);
|
|
1495
1490
|
/** Per shared mount (`global`, `workspace:<id>`), a counter that rises when its plugin composition changes. */
|
|
1496
1491
|
const HubCompositionsSchema = typebox.Type.Record(Text$1, typebox.Type.Integer({ minimum: 0 }));
|
|
1497
1492
|
const HubState = {
|
|
1498
|
-
sessions: typebox.Type.Record(Text$1,
|
|
1493
|
+
sessions: typebox.Type.Record(Text$1, HubSessionSchema),
|
|
1499
1494
|
workspaces: typebox.Type.Record(Text$1, HubWorkspaceSchema),
|
|
1500
1495
|
pending: typebox.Type.Array(HubNoticeSchema),
|
|
1501
1496
|
compositions: HubCompositionsSchema
|