@agentshouse/app-bridge 0.1.0-ceaf32a04d69e → 0.1.0-ceb7d43657aeb
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 +12 -0
- package/dist/mdmodel/definition.d.ts +1 -0
- package/dist/mdruntime/collection.d.ts +2 -1
- package/dist/mdruntime/listing.d.ts +19 -12
- package/dist/mdruntime/model.d.ts +4 -2
- package/dist/mdruntime/observation.d.ts +2 -0
- package/dist/mdruntime/reach.d.ts +2 -2
- package/dist/mdruntime/surface.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -337,6 +337,18 @@ export interface HouseMethods {
|
|
|
337
337
|
readonly writable: boolean;
|
|
338
338
|
};
|
|
339
339
|
};
|
|
340
|
+
readonly "service-keys/signatures/check": {
|
|
341
|
+
readonly params: {
|
|
342
|
+
readonly operation_id?: string;
|
|
343
|
+
readonly origin: string;
|
|
344
|
+
readonly room_ref: string;
|
|
345
|
+
readonly signature: string;
|
|
346
|
+
readonly text: string;
|
|
347
|
+
};
|
|
348
|
+
readonly result: {
|
|
349
|
+
readonly matched: boolean;
|
|
350
|
+
};
|
|
351
|
+
};
|
|
340
352
|
readonly "sites/submissions/create": {
|
|
341
353
|
readonly params: {
|
|
342
354
|
readonly content: string;
|
|
@@ -14,6 +14,7 @@ export type ValueFacts = {
|
|
|
14
14
|
readonly prefix?: readonly ValueFacts[];
|
|
15
15
|
readonly items?: ValueFacts;
|
|
16
16
|
readonly properties?: Readonly<Record<string, ValueFacts>>;
|
|
17
|
+
readonly required?: readonly string[];
|
|
17
18
|
readonly patterns?: readonly PatternFacts[];
|
|
18
19
|
readonly additional?: ValueFacts;
|
|
19
20
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type DefinitionOf, type Document, type ParseResult, type TypedPath } from '../mdmodel/index.js';
|
|
1
|
+
import { type DefinitionOf, type Document, type ParseResult, type TypedPath, type VerifiedModel } from '../mdmodel/index.js';
|
|
2
2
|
import type { ModelState, TypesResult } from './model.js';
|
|
3
3
|
import type { AppTypedSelection } from './listing.js';
|
|
4
4
|
import type { MdModelIdentity } from './adapter.js';
|
|
@@ -20,6 +20,7 @@ export type Composed = {
|
|
|
20
20
|
readonly composition: Composition;
|
|
21
21
|
readonly fingerprint: string;
|
|
22
22
|
};
|
|
23
|
+
export declare function typesPrint(types: VerifiedModel['types']): string;
|
|
23
24
|
export declare function composedOf(composition: Composition): Composed;
|
|
24
25
|
type Selecting<M> = {
|
|
25
26
|
readonly model: M;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import type { HeldRooms } from '../mdmodel/index.js';
|
|
2
2
|
import type { DiscoveredRoom, HeldRoom, OperationScopes, ProviderRefusal, ReplicaAdmission, RoomDeclaration } from './adapter.js';
|
|
3
|
-
import type
|
|
3
|
+
import { type Composition } from './collection.js';
|
|
4
4
|
import type { KeyedChange } from './observation.js';
|
|
5
|
-
import { type ModelState, type TypesResult } from './model.js';
|
|
5
|
+
import { type MdType, type ModelState, type TypesResult } from './model.js';
|
|
6
6
|
import { type PortReach } from './reach.js';
|
|
7
7
|
import type { ReplicaRecord } from './replica.js';
|
|
8
8
|
import type { Runtime } from './runtime.js';
|
|
9
9
|
import type { Stored } from './store.js';
|
|
10
|
-
|
|
10
|
+
type Selection<Model> = {
|
|
11
11
|
roots: readonly string[];
|
|
12
|
-
model:
|
|
12
|
+
model: Model;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
type Shown<Model> = {
|
|
15
15
|
name: string;
|
|
16
16
|
locator: string;
|
|
17
17
|
handle: string;
|
|
18
18
|
operations: OperationScopes;
|
|
19
19
|
replica: ReplicaAdmission;
|
|
20
|
-
model:
|
|
21
|
-
typedSelection:
|
|
20
|
+
model: Model;
|
|
21
|
+
typedSelection: Selection<Model> | null;
|
|
22
22
|
providerOwnedPaths: readonly string[];
|
|
23
23
|
authoredPaths: readonly string[];
|
|
24
24
|
roomVersion: string | null;
|
|
@@ -27,12 +27,19 @@ export type AppRoom = {
|
|
|
27
27
|
refusal: ProviderRefusal | null;
|
|
28
28
|
locked: boolean;
|
|
29
29
|
};
|
|
30
|
-
type
|
|
31
|
-
export type
|
|
32
|
-
|
|
30
|
+
export type AppTypedSelection = Selection<TypesResult>;
|
|
31
|
+
export type AppRoom = Shown<TypesResult>;
|
|
32
|
+
export type ListedRoom = Shown<TypesResult<string>>;
|
|
33
|
+
export type ListedModels = Readonly<Record<string, readonly MdType[]>>;
|
|
34
|
+
export type ListedRooms = {
|
|
35
|
+
readonly rooms: readonly ListedRoom[];
|
|
36
|
+
readonly models: ListedModels;
|
|
33
37
|
};
|
|
38
|
+
export type ListedEntry = Omit<Shown<ModelState>, 'locked'>;
|
|
34
39
|
export type Listing = ReadonlyMap<string, ListedEntry>;
|
|
35
|
-
export type RoomsChange = KeyedChange<string,
|
|
40
|
+
export type RoomsChange = KeyedChange<string, ListedRoom> & {
|
|
41
|
+
readonly models: ListedModels;
|
|
42
|
+
};
|
|
36
43
|
export declare function modelIn({ socket, presence }: Runtime, locator: string, stored: Stored | undefined): ModelState;
|
|
37
44
|
export declare function compositionFor(runtime: Runtime, record: ReplicaRecord): Composition;
|
|
38
45
|
export declare function declarationOf({ presence }: Runtime, locator: string, stored: Stored | undefined): {
|
|
@@ -43,7 +50,7 @@ export declare function listedLocators({ presence }: Runtime, held: ReadonlyMap<
|
|
|
43
50
|
export declare function listedOrHeld({ presence }: Runtime, held: ReadonlyMap<string, unknown>, locator: string): boolean;
|
|
44
51
|
export declare function listedEntries(runtime: Runtime, touched: readonly string[]): Promise<readonly ListedEntry[] | null>;
|
|
45
52
|
export declare function listingNow(runtime: Runtime): Promise<Listing>;
|
|
46
|
-
export declare function shownRooms(runtime: Runtime, listing: Listing):
|
|
53
|
+
export declare function shownRooms(runtime: Runtime, listing: Listing): ListedRooms;
|
|
47
54
|
export declare function shownChange(runtime: Runtime, entries: readonly ListedEntry[]): RoomsChange;
|
|
48
55
|
export declare function roomFacts(runtime: Runtime, reach?: PortReach | null): Promise<HeldRooms>;
|
|
49
56
|
export declare function heldRooms({ store }: Runtime, listed: readonly DiscoveredRoom[]): Promise<HeldRoom[]>;
|
|
@@ -31,7 +31,7 @@ export type StoredModel = Extract<ModelState, {
|
|
|
31
31
|
}> | Omit<Extract<ModelState, {
|
|
32
32
|
status: 'current' | 'cached';
|
|
33
33
|
}>, 'types'>;
|
|
34
|
-
export type TypesResult = {
|
|
34
|
+
export type TypesResult<Types = readonly MdType[]> = {
|
|
35
35
|
status: Open<'unavailable'>;
|
|
36
36
|
reason: ModelUnavailableReason;
|
|
37
37
|
types: null;
|
|
@@ -40,7 +40,7 @@ export type TypesResult = {
|
|
|
40
40
|
identity: string;
|
|
41
41
|
version: string;
|
|
42
42
|
verifiedWith: ModelIdentity;
|
|
43
|
-
types:
|
|
43
|
+
types: Types;
|
|
44
44
|
schema: string | null;
|
|
45
45
|
revision: string | null;
|
|
46
46
|
};
|
|
@@ -50,5 +50,7 @@ export type ValidationReceipt = {
|
|
|
50
50
|
source: Open<'current' | 'cached'>;
|
|
51
51
|
};
|
|
52
52
|
export declare const NO_MODEL: ModelState;
|
|
53
|
+
export declare function sortedTypes(types: VerifiedModel['types']): readonly MdType[];
|
|
53
54
|
export declare function modelTypes(state: ModelState): TypesResult;
|
|
55
|
+
export declare function modelResult<Types>(state: ModelState, types: (held: VerifiedModel['types']) => Types): TypesResult<Types>;
|
|
54
56
|
export declare function storedModel(state: ModelState): StoredModel;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { PendingRoom, QueryCoverage, QueryDocument, QueryGroup, QueryResult } from './query.js';
|
|
2
2
|
import type { ReadinessShown, RoomCoverage } from './readiness.js';
|
|
3
|
+
import type { AppRoom, ListedRooms } from './listing.js';
|
|
3
4
|
export type Observation<T> = {
|
|
4
5
|
current(): T;
|
|
5
6
|
subscribe(listener: (value: T) => void): () => void;
|
|
@@ -41,6 +42,7 @@ export declare function keyedChange<K, H, T>(held: ReadonlyMap<K, H>, keys: read
|
|
|
41
42
|
export declare function keyedAt<K, H, T>(held: ReadonlyMap<K, H>, at: ReadonlyMap<K, T | null>, same: (was: H, now: T) => boolean): KeyedChange<K, T> | null;
|
|
42
43
|
export declare function keyedInto<K, T>(held: Map<K, T>, change: KeyedChange<K, T>): void;
|
|
43
44
|
export declare function samePending(was: PendingRoom, now: PendingRoom): boolean;
|
|
45
|
+
export declare function appRooms({ rooms, models }: ListedRooms): readonly AppRoom[];
|
|
44
46
|
export declare function replaces(topic: string, message: unknown): boolean;
|
|
45
47
|
export declare function observed(first: unknown, stop: () => void, topic: string): Observed;
|
|
46
48
|
export declare function opened(watch: (deliver: (message: unknown) => void, fail: (error: unknown) => void) => () => void, topic: string): Promise<Observation<unknown>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ListedRoom } from './listing.js';
|
|
2
2
|
import type { ReadinessMessage, ReadinessPort } from './preparation.js';
|
|
3
3
|
import type { MdRuntime, RuntimeTopic } from './surface.js';
|
|
4
4
|
import type { Plan, PlanReach, QueryResult } from './query.js';
|
|
@@ -38,7 +38,7 @@ export type Reachable = RuntimeView & {
|
|
|
38
38
|
lockedRooms(): Promise<readonly string[]>;
|
|
39
39
|
watchLocks(notify: () => void): () => void;
|
|
40
40
|
located(room: string, path: string, destination: string): Promise<ReachedDocument | null>;
|
|
41
|
-
room(locator: string): Promise<
|
|
41
|
+
room(locator: string): Promise<ListedRoom | undefined>;
|
|
42
42
|
};
|
|
43
43
|
export declare function holds(reach: PortReach | null, room: string): boolean;
|
|
44
44
|
export declare function governs(reach: PortReach | null, room: {
|
|
@@ -6,7 +6,7 @@ import { type ChatDraftSurface, type ConversationEntry, type ConversationAgent,
|
|
|
6
6
|
import { type UnsentWork } from './durability.js';
|
|
7
7
|
import type { FiguresResult } from './figures.js';
|
|
8
8
|
import { type Holdings } from './holdings.js';
|
|
9
|
-
import { type AppRoom } from './listing.js';
|
|
9
|
+
import { type AppRoom, type ListedRooms } from './listing.js';
|
|
10
10
|
import { type TypesResult } from './model.js';
|
|
11
11
|
import { type Observation } from './observation.js';
|
|
12
12
|
import type { HistoryAnswer, QueueEntry, Resolution, CallResult } from './outcome.js';
|
|
@@ -29,7 +29,7 @@ export type RoomSchemas = {
|
|
|
29
29
|
};
|
|
30
30
|
export type MdRuntime = {
|
|
31
31
|
loaded(): Promise<void>;
|
|
32
|
-
rooms(): Promise<
|
|
32
|
+
rooms(): Promise<ListedRooms>;
|
|
33
33
|
query: {
|
|
34
34
|
(query: DocumentQuery): Promise<DocumentResult | PendingResult>;
|
|
35
35
|
(query: GroupQuery): Promise<GroupResult | PendingResult>;
|
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-ceb7d43657aeb",
|
|
4
4
|
"description": "Types of the agents.house App bridge House hands every App: navigation, the tab title and icon, ceremonies, installation, notifications, status, 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",
|