@agentshouse/app-bridge 0.1.0-cfb5ca35059bb → 0.1.0-cfc063517adec
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 +18 -3
- package/dist/mdmodel/condition.d.ts +1 -0
- package/dist/mdmodel/index.d.ts +1 -1
- package/dist/mdruntime/client.d.ts +1 -0
- package/dist/mdruntime/connection.d.ts +2 -1
- package/dist/mdruntime/room-draft.d.ts +1 -1
- package/dist/mdruntime/wire.d.ts +1 -0
- package/docs/families.md +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -163,7 +163,6 @@ export interface HouseMethods {
|
|
|
163
163
|
readonly params: {
|
|
164
164
|
readonly conversation_id?: string;
|
|
165
165
|
readonly operation_id: string;
|
|
166
|
-
readonly result?: string;
|
|
167
166
|
};
|
|
168
167
|
readonly result: {
|
|
169
168
|
readonly agent_id: string;
|
|
@@ -250,6 +249,18 @@ export interface HouseMethods {
|
|
|
250
249
|
};
|
|
251
250
|
readonly request: string;
|
|
252
251
|
readonly room: string;
|
|
252
|
+
} | {
|
|
253
|
+
readonly agent: {
|
|
254
|
+
readonly id: string;
|
|
255
|
+
readonly name: string;
|
|
256
|
+
readonly url: string;
|
|
257
|
+
};
|
|
258
|
+
readonly conversation: {
|
|
259
|
+
readonly id: string;
|
|
260
|
+
readonly name: string;
|
|
261
|
+
readonly url: string;
|
|
262
|
+
};
|
|
263
|
+
readonly kind: "conversation";
|
|
253
264
|
} | {
|
|
254
265
|
readonly agent: {
|
|
255
266
|
readonly id: string;
|
|
@@ -673,13 +684,13 @@ export interface HouseMethods {
|
|
|
673
684
|
readonly result: {
|
|
674
685
|
readonly events: readonly {
|
|
675
686
|
readonly actions: readonly ({
|
|
676
|
-
readonly cap: "address_submissions" | "app_sockets" | "environment_functions" | "export_starts" | "folder_subscriptions" | "kit_connections" | "live_shares" | "open_uploads" | "ownership_offers" | "push_addresses" | "push_deliveries" | "room_triggers" | "service_keys" | "share_creations" | "share_room_creations" | "shared_schemas" | "site_rooms" | "slot_rooms" | "waiting_web_wizards" | "writes";
|
|
687
|
+
readonly cap: "address_submissions" | "app_sockets" | "environment_functions" | "export_starts" | "folder_subscriptions" | "kit_connections" | "live_shares" | "open_uploads" | "ownership_offers" | "push_addresses" | "push_deliveries" | "room_triggers" | "service_keys" | "share_creations" | "share_room_creations" | "shared_schemas" | "site_rooms" | "slot_rooms" | "spaces" | "waiting_web_wizards" | "writes";
|
|
677
688
|
readonly code: "cap_reached";
|
|
678
689
|
readonly outcome: "refused";
|
|
679
690
|
readonly position: number;
|
|
680
691
|
readonly retry_at: string;
|
|
681
692
|
} | {
|
|
682
|
-
readonly cap: "address_submissions" | "app_sockets" | "environment_functions" | "export_starts" | "folder_subscriptions" | "kit_connections" | "live_shares" | "open_uploads" | "ownership_offers" | "push_addresses" | "push_deliveries" | "room_triggers" | "service_keys" | "share_creations" | "share_room_creations" | "shared_schemas" | "site_rooms" | "slot_rooms" | "waiting_web_wizards" | "writes";
|
|
693
|
+
readonly cap: "address_submissions" | "app_sockets" | "environment_functions" | "export_starts" | "folder_subscriptions" | "kit_connections" | "live_shares" | "open_uploads" | "ownership_offers" | "push_addresses" | "push_deliveries" | "room_triggers" | "service_keys" | "share_creations" | "share_room_creations" | "shared_schemas" | "site_rooms" | "slot_rooms" | "spaces" | "waiting_web_wizards" | "writes";
|
|
683
694
|
readonly code: "cap_reached";
|
|
684
695
|
readonly outcome: "refused";
|
|
685
696
|
readonly position: number;
|
|
@@ -755,6 +766,10 @@ export interface HouseMethods {
|
|
|
755
766
|
readonly code: string;
|
|
756
767
|
readonly outcome: "refused";
|
|
757
768
|
readonly position: number;
|
|
769
|
+
} | {
|
|
770
|
+
readonly conversations: number;
|
|
771
|
+
readonly outcome: "marked";
|
|
772
|
+
readonly position: number;
|
|
758
773
|
} | {
|
|
759
774
|
readonly cut?: boolean;
|
|
760
775
|
readonly exit_code?: number;
|
|
@@ -172,6 +172,7 @@ export declare function instant(value: unknown): bigint | undefined;
|
|
|
172
172
|
export declare function pointed(value: unknown, pointer: string): unknown;
|
|
173
173
|
export declare function members(document: DocumentFacts, path: string): readonly string[];
|
|
174
174
|
export declare function holds(test: ConditionTest, document: DocumentFacts): Truth;
|
|
175
|
+
export declare function inScope(scope: ConditionScope, document: Pick<DocumentFacts, 'id' | 'path' | 'type'> | null): boolean;
|
|
175
176
|
export declare function fires(condition: DocumentCondition, event: DocumentEvent): boolean;
|
|
176
177
|
export declare function itemFires(condition: ItemCondition, item: ItemFacts): boolean;
|
|
177
178
|
export declare function notificationFires(condition: NotificationCondition, notification: DocumentFacts): boolean;
|
package/dist/mdmodel/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ACTOR_PATHS, actorOperators, changeFields, CONDITION_OPERATORS, dated, datePointers, DOCUMENT_PATHS, factKind, facts, fires, holds, instant, ITEM_PATHS, itemFires, itemKind, itemOperators, memberPointers, members, MESSAGE_PATHS, messageFires, messageOperators, notificationFires, pointed, prosePaths, testOperators, TEXT_FIELD, valuedChange, WRITE_DOORS, } from './condition.js';
|
|
1
|
+
export { ACTOR_PATHS, actorOperators, changeFields, CONDITION_OPERATORS, dated, datePointers, DOCUMENT_PATHS, factKind, facts, fires, holds, inScope, instant, ITEM_PATHS, itemFires, itemKind, itemOperators, memberPointers, members, MESSAGE_PATHS, messageFires, messageOperators, notificationFires, pointed, prosePaths, testOperators, TEXT_FIELD, valuedChange, WRITE_DOORS, } from './condition.js';
|
|
2
2
|
export type { Actor, Condition, ConditionOperator, ConditionScope, ConditionTest, ConditionValue, CronCondition, DateCondition, DocumentCondition, DocumentEvent, DocumentFacts, Fact, FactKind, ItemCondition, ItemFacts, MessageCondition, MessageFacts, NotificationCondition, Resolved, WriteDoor, } from './condition.js';
|
|
3
3
|
export { headingLines } from './blocks.js';
|
|
4
4
|
export type { HeadingLine } from './blocks.js';
|
|
@@ -67,6 +67,7 @@ export type MdRuntimeClient = {
|
|
|
67
67
|
(topic: 'sync-status'): Promise<Observation<SyncStatus>>;
|
|
68
68
|
(topic: 'service-mode'): Promise<Observation<ServiceMode>>;
|
|
69
69
|
(topic: 'member'): Promise<Observation<Member | null>>;
|
|
70
|
+
(topic: 'authority-changes'): Promise<Observation<number>>;
|
|
70
71
|
(topic: 'query', query: DocumentQuery): Promise<Observation<DocumentResult | PendingResult>>;
|
|
71
72
|
(topic: 'query', query: GroupQuery): Promise<Observation<GroupResult | PendingResult>>;
|
|
72
73
|
(topic: 'queue', locator: string): Promise<Observation<readonly QueueEntry[]>>;
|
|
@@ -124,6 +124,7 @@ export type MdRuntime = {
|
|
|
124
124
|
(topic: 'sync-status'): Promise<Observation<SyncStatus>>;
|
|
125
125
|
(topic: 'service-mode'): Promise<Observation<ServiceMode>>;
|
|
126
126
|
(topic: 'member'): Promise<Observation<Member | null>>;
|
|
127
|
+
(topic: 'authority-changes'): Promise<Observation<number>>;
|
|
127
128
|
(topic: 'query', query: DocumentQuery): Promise<Observation<DocumentResult | PendingResult>>;
|
|
128
129
|
(topic: 'query', query: GroupQuery): Promise<Observation<GroupResult | PendingResult>>;
|
|
129
130
|
(topic: 'queue', locator: string): Promise<Observation<readonly QueueEntry[]>>;
|
|
@@ -135,7 +136,7 @@ export type MdRuntime = {
|
|
|
135
136
|
};
|
|
136
137
|
reauthorize(): Promise<void>;
|
|
137
138
|
};
|
|
138
|
-
export type RuntimeTopic = 'rooms' | 'readiness' | 'connection-refusal' | 'storage-loss' | 'sync-status' | 'service-mode' | 'member' | 'query' | 'queue' | 'room-drafts' | 'presentation' | 'conversation' | 'conversations' | 'agents';
|
|
139
|
+
export type RuntimeTopic = 'rooms' | 'readiness' | 'connection-refusal' | 'storage-loss' | 'sync-status' | 'service-mode' | 'member' | 'authority-changes' | 'query' | 'queue' | 'room-drafts' | 'presentation' | 'conversation' | 'conversations' | 'agents';
|
|
139
140
|
export type ReadinessPort = {
|
|
140
141
|
readonly target: string;
|
|
141
142
|
readonly code: CodeAvailability;
|
|
@@ -127,7 +127,7 @@ export type SavedDraft = {
|
|
|
127
127
|
readonly path: string;
|
|
128
128
|
readonly parts: HeldParts;
|
|
129
129
|
};
|
|
130
|
-
export declare function readParts(value: unknown): RoomDraftParts;
|
|
130
|
+
export declare function readParts(value: unknown, path: string): RoomDraftParts;
|
|
131
131
|
export declare function gatheredParts(earlier: unknown, later: unknown): unknown;
|
|
132
132
|
export declare function held(current: HeldParts | undefined, parts: RoomDraftParts, file?: HeldFile): HeldParts;
|
|
133
133
|
export declare function underneath(parts: HeldParts, path: string, visible: VisibleLayer | undefined): ChangedUnderneath;
|
package/dist/mdruntime/wire.d.ts
CHANGED
|
@@ -176,6 +176,7 @@ declare const TOPICS: {
|
|
|
176
176
|
readonly 'sync-status': 'within';
|
|
177
177
|
readonly 'service-mode': 'runtime';
|
|
178
178
|
readonly member: 'runtime';
|
|
179
|
+
readonly 'authority-changes': 'runtime';
|
|
179
180
|
readonly query: 'within';
|
|
180
181
|
readonly queue: 'within';
|
|
181
182
|
readonly 'room-drafts': 'within';
|
package/docs/families.md
CHANGED
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
absolute path, carries its current address as the return target, and the page
|
|
14
14
|
returns there when it completes. An App names an address House gave it in a
|
|
15
15
|
reading and composes one only for `/bind/<app_ref>`, where the User binds
|
|
16
|
-
its Rooms, with `?slot=<name>` to open at one slot
|
|
16
|
+
its Rooms, with `?slot=<name>` to open at one slot, and `/sign-out`, which
|
|
17
|
+
signs the User out and opens sign-in.
|
|
17
18
|
- **Installation** - `install()` offers the page as a Home-screen app. Where the
|
|
18
19
|
browser has an install prompt ready the shell shows it and the call resolves
|
|
19
20
|
`'accepted'` or `'dismissed'` with the User's choice, spending that prompt;
|
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-cfc063517adec",
|
|
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, App messages and the Chat, with an accessor and an in-page test host.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|