@agentshouse/app-bridge 0.1.0-alpha.4 → 0.1.0-alpha.5
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/README.md +7 -3
- package/client/src/wire.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,8 +13,11 @@ port's one listener. It carries four families:
|
|
|
13
13
|
returns there when it completes. An App names an address House gave it in a
|
|
14
14
|
reading and composes none.
|
|
15
15
|
- **Status** - the App reference the Runtime port is attached under, sync
|
|
16
|
-
state, credential state, release availability and observed failure,
|
|
17
|
-
|
|
16
|
+
state, credential state, release availability and observed failure, `ga`:
|
|
17
|
+
whether the page measures and the visitor's stored analytics choice, and
|
|
18
|
+
`service_mode`: `open`, `write-halted` while House refuses writes, so the
|
|
19
|
+
App can stop retrying them, or `null` while the runtime holds no House
|
|
20
|
+
connection.
|
|
18
21
|
The App reports the visitor's choice with `gaConsent('accept')` or
|
|
19
22
|
`gaConsent('decline')`; the shell hands it to House's analytics loader, and
|
|
20
23
|
the choice never reaches House.
|
|
@@ -75,6 +78,7 @@ slice below the App's path, admitting nothing, so it delivers `//notes` exactly
|
|
|
75
78
|
as a browser at `/apps/<app>//notes` does. It records every push and replace
|
|
76
79
|
and answers each with the address the shell would then show, records an
|
|
77
80
|
admitted ceremony, refuses a push, replace or ceremony that is not a
|
|
78
|
-
same-origin absolute path, publishes a status,
|
|
81
|
+
same-origin absolute path, publishes a status, its `service_mode` included,
|
|
82
|
+
records in `consents` each
|
|
79
83
|
`gaConsent` it takes while that status measures and publishes the status the
|
|
80
84
|
choice leaves, and attaches a Runtime port.
|
package/client/src/wire.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export interface HouseStatus {
|
|
|
32
32
|
readonly loss: string | null;
|
|
33
33
|
readonly release: unknown;
|
|
34
34
|
readonly ga: HouseGa;
|
|
35
|
+
readonly service_mode: 'open' | 'write-halted' | null;
|
|
35
36
|
}
|
|
36
37
|
export type HouseNavigationMode = 'push' | 'replace';
|
|
37
38
|
export declare const HOUSE_ADDRESS_MAX_CHARS = 1000;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentshouse/app-bridge",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.5",
|
|
4
4
|
"description": "Renderer-side client of the agents.house App bridge: navigation, ceremonies, status and Site image reads, with an in-page test host.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|