@agentshouse/app-bridge 0.1.0-c58a055eeaa71 → 0.1.0-c7d6141f6e694
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/index.d.ts +0 -7
- package/dist/test-host.d.ts +1 -4
- package/dist/test-host.js +0 -11
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -88,12 +88,6 @@ export interface HouseAppMessage {
|
|
|
88
88
|
}
|
|
89
89
|
export type HouseInstallation = Open<'accepted' | 'dismissed' | 'manual'>;
|
|
90
90
|
export type HouseNotifications = Open<'on' | 'off' | 'blocked' | 'unavailable'>;
|
|
91
|
-
export interface HouseImageCopy {
|
|
92
|
-
readonly attachment: string;
|
|
93
|
-
readonly copy: string;
|
|
94
|
-
readonly name: string;
|
|
95
|
-
readonly media_type: string;
|
|
96
|
-
}
|
|
97
91
|
export interface HouseCeremonyRefused extends Error {
|
|
98
92
|
readonly name: 'HouseCeremonyRefused';
|
|
99
93
|
readonly code: Open<'house_ceremony_refused'>;
|
|
@@ -121,7 +115,6 @@ export interface HouseBridge {
|
|
|
121
115
|
notifications(on?: boolean): Promise<HouseNotifications>;
|
|
122
116
|
setBadge(unread: readonly string[]): Promise<void>;
|
|
123
117
|
setTab(tab: HouseTab): void;
|
|
124
|
-
readAttachment(room: string, attachment: string): Promise<HouseImageCopy | null>;
|
|
125
118
|
sourceTop(app: string, release?: string): Promise<HouseSourceTop | HouseRefusal | null>;
|
|
126
119
|
sourceDownload(app: string, release?: string): Promise<HouseSourceDownload | HouseRefusal | null>;
|
|
127
120
|
callExternal(request: HouseExternalRequest): Promise<HouseExternalAnswer | HouseRefusal | null>;
|
package/dist/test-host.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MdRuntimeClient } from '@agentshouse/mdruntime/client';
|
|
2
|
-
import type { HouseAnalyticsChoice, HouseAppMessage, HouseExternalAnswer, HouseExternalRequest,
|
|
2
|
+
import type { HouseAnalyticsChoice, HouseAppMessage, HouseExternalAnswer, HouseExternalRequest, HouseNavigationMode, HouseRefusal, HouseSourceDownload, HouseSourceTop, HouseStatus, HouseTab } from './index.js';
|
|
3
3
|
export interface HouseBridgeNavigation {
|
|
4
4
|
readonly mode: HouseNavigationMode;
|
|
5
5
|
readonly address: string;
|
|
@@ -19,9 +19,6 @@ export interface HouseBridgeTestHost {
|
|
|
19
19
|
export interface HouseBridgeTestHostOptions {
|
|
20
20
|
readonly address?: string;
|
|
21
21
|
readonly status?: HouseStatus;
|
|
22
|
-
readonly images?: readonly (HouseImageCopy & {
|
|
23
|
-
readonly room: string;
|
|
24
|
-
})[];
|
|
25
22
|
readonly sources?: readonly {
|
|
26
23
|
readonly top: HouseSourceTop;
|
|
27
24
|
readonly download: HouseSourceDownload;
|
package/dist/test-host.js
CHANGED
|
@@ -96,17 +96,6 @@ export function createHouseBridgeTestHost(options = {}) {
|
|
|
96
96
|
setTab(tab) {
|
|
97
97
|
tabs.push(tab);
|
|
98
98
|
},
|
|
99
|
-
readAttachment(room, attachment) {
|
|
100
|
-
const image = options.images?.find((entry) => entry.room === room && entry.attachment === attachment);
|
|
101
|
-
return Promise.resolve(image === undefined
|
|
102
|
-
? null
|
|
103
|
-
: {
|
|
104
|
-
attachment: image.attachment,
|
|
105
|
-
copy: image.copy,
|
|
106
|
-
name: image.name,
|
|
107
|
-
media_type: image.media_type,
|
|
108
|
-
});
|
|
109
|
-
},
|
|
110
99
|
sourceTop: (app) => Promise.resolve(options.sources?.find((entry) => entry.top.app_ref === app)?.top ?? null),
|
|
111
100
|
sourceDownload: (app) => Promise.resolve(options.sources?.find((entry) => entry.top.app_ref === app)?.download ?? null),
|
|
112
101
|
callExternal(request) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentshouse/app-bridge",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-c7d6141f6e694",
|
|
4
4
|
"description": "Types of the agents.house App bridge House hands every App: navigation, the tab title and icon, ceremonies, installation, notifications and the icon badge, status, Site image reads, App release code, App and Site screenshot reads, and App messages, with an accessor and an in-page test host.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@agentshouse/mdruntime": "0.1.0-
|
|
22
|
+
"@agentshouse/mdruntime": "0.1.0-c71223552f22c"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"dist",
|