@agentshouse/app-bridge 0.1.0-c1bc683ed8f4e → 0.1.0-c1ccced28150f

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.
Files changed (57) hide show
  1. package/README.md +9 -9
  2. package/dist/index.d.ts +826 -18
  3. package/dist/mdmodel/condition.d.ts +41 -11
  4. package/dist/mdmodel/definition.d.ts +17 -1
  5. package/dist/mdmodel/document.d.ts +5 -5
  6. package/dist/mdmodel/index.d.ts +11 -9
  7. package/dist/mdmodel/links.d.ts +28 -0
  8. package/dist/mdmodel/paths.d.ts +9 -1
  9. package/dist/mdmodel/project.d.ts +1 -0
  10. package/dist/mdmodel/types.d.ts +28 -4
  11. package/dist/mdmodel/validate.d.ts +27 -3
  12. package/dist/mdruntime/adapter.d.ts +121 -66
  13. package/dist/mdruntime/binary.d.ts +0 -5
  14. package/dist/mdruntime/chain.d.ts +10 -0
  15. package/dist/mdruntime/change-set.d.ts +9 -16
  16. package/dist/mdruntime/change.d.ts +31 -1
  17. package/dist/mdruntime/client.d.ts +15 -8
  18. package/dist/mdruntime/collection.d.ts +10 -21
  19. package/dist/mdruntime/compile.d.ts +15 -0
  20. package/dist/mdruntime/connection.d.ts +28 -14
  21. package/dist/mdruntime/conversation.d.ts +26 -11
  22. package/dist/mdruntime/durability.d.ts +2 -5
  23. package/dist/mdruntime/fulltext.d.ts +26 -0
  24. package/dist/mdruntime/identity.d.ts +6 -0
  25. package/dist/mdruntime/media.d.ts +7 -0
  26. package/dist/mdruntime/messages.d.ts +27 -0
  27. package/dist/mdruntime/model.d.ts +6 -1
  28. package/dist/mdruntime/observation.d.ts +15 -0
  29. package/dist/mdruntime/opened.d.ts +21 -0
  30. package/dist/mdruntime/outcome.d.ts +45 -7
  31. package/dist/mdruntime/overlay.d.ts +3 -5
  32. package/dist/mdruntime/query.d.ts +38 -2
  33. package/dist/mdruntime/reach.d.ts +14 -6
  34. package/dist/mdruntime/readiness.d.ts +14 -15
  35. package/dist/mdruntime/recovery.d.ts +3 -2
  36. package/dist/mdruntime/replica.d.ts +55 -33
  37. package/dist/mdruntime/room-draft.d.ts +33 -3
  38. package/dist/mdruntime/save.d.ts +53 -14
  39. package/dist/mdruntime/search.d.ts +32 -43
  40. package/dist/mdruntime/seed.d.ts +15 -0
  41. package/dist/mdruntime/status.d.ts +4 -3
  42. package/dist/mdruntime/store.d.ts +93 -98
  43. package/dist/mdruntime/stored.d.ts +129 -0
  44. package/dist/mdruntime/tables.d.ts +324 -0
  45. package/dist/mdruntime/wire.d.ts +33 -5
  46. package/dist/test-host.d.ts +7 -4
  47. package/dist/test-host.js +18 -28
  48. package/docs/families.md +52 -47
  49. package/package.json +8 -3
  50. package/dist/calls.d.ts +0 -117
  51. package/dist/calls.js +0 -1
  52. package/dist/mdruntime/acquisition.d.ts +0 -13
  53. package/dist/mdruntime/file.d.ts +0 -19
  54. package/dist/mdruntime/rows.d.ts +0 -36
  55. package/dist/mdruntime/shared.d.ts +0 -10
  56. package/dist/mdruntime/transfer.d.ts +0 -9
  57. package/dist/mdruntime/turn.d.ts +0 -6
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agentshouse/app-bridge",
3
- "version": "0.1.0-c1bc683ed8f4e",
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.",
3
+ "version": "0.1.0-c1ccced28150f",
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",
7
7
  "sideEffects": false,
@@ -23,5 +23,10 @@
23
23
  "docs",
24
24
  "README.md",
25
25
  "LICENSE"
26
- ]
26
+ ],
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git+https://github.com/agentshouse/core.git",
30
+ "directory": "client"
31
+ }
27
32
  }
package/dist/calls.d.ts DELETED
@@ -1,117 +0,0 @@
1
- export interface HouseCalls {
2
- readonly 'access.read': {
3
- readonly room_ref: string;
4
- };
5
- readonly 'conversation.answer': {
6
- readonly answer: {
7
- readonly interaction_id: string;
8
- readonly response: unknown;
9
- };
10
- readonly conversation: string;
11
- readonly operation_id?: string;
12
- };
13
- readonly 'conversation.create': {
14
- readonly agent_id: string;
15
- readonly operation_id?: string;
16
- };
17
- readonly 'conversation.delete': {
18
- readonly conversation: string;
19
- readonly operation_id?: string;
20
- };
21
- readonly 'conversation.history': {
22
- readonly conversations: readonly {
23
- readonly after?: string;
24
- readonly conversation: string;
25
- }[];
26
- };
27
- readonly 'conversation.interrupt': {
28
- readonly conversation: string;
29
- readonly operation_id?: string;
30
- };
31
- readonly 'conversation.kill': {
32
- readonly conversation: string;
33
- readonly operation_id?: string;
34
- };
35
- readonly 'conversation.markDone': {
36
- readonly conversation_id?: string;
37
- readonly result?: string;
38
- readonly operation_id: string;
39
- };
40
- readonly 'conversation.rename': {
41
- readonly conversation_id: string;
42
- readonly operation_id: string;
43
- readonly name: string;
44
- };
45
- readonly 'conversation.send': {
46
- readonly conversation: string;
47
- readonly files?: readonly {
48
- readonly blob: Blob;
49
- readonly byteLength: number;
50
- readonly contentHash: string;
51
- readonly height?: number;
52
- readonly mediaType: string;
53
- readonly name: string;
54
- readonly width?: number;
55
- }[];
56
- readonly operation_id: string;
57
- readonly text?: string;
58
- };
59
- readonly 'conversation.setOption': {
60
- readonly conversation_id: string;
61
- readonly operation_id: string;
62
- readonly option: string;
63
- readonly value: string | boolean;
64
- };
65
- readonly 'feature.list': Readonly<Record<string, never>>;
66
- readonly 'holder.list': Readonly<Record<string, never>>;
67
- readonly 'holder.ring': {
68
- readonly to: string;
69
- };
70
- readonly 'member.list': {
71
- readonly room_ref: string;
72
- readonly history?: boolean;
73
- readonly limit?: number;
74
- readonly cursor?: string;
75
- };
76
- readonly 'message.send': {
77
- readonly to: string;
78
- readonly body: unknown;
79
- };
80
- readonly 'processing.read': {
81
- readonly room_ref: string;
82
- readonly path: string;
83
- };
84
- readonly 'record.list': {
85
- readonly room_ref: string;
86
- readonly record?: string;
87
- readonly cursor?: string;
88
- readonly limit?: number;
89
- readonly order?: 'asc' | 'desc';
90
- };
91
- readonly 'relay.read': Readonly<Record<string, never>>;
92
- readonly 'routine.list': {
93
- readonly room_ref: string;
94
- };
95
- readonly 'routineAccess.list': {
96
- readonly room_ref: string;
97
- };
98
- readonly 'routineAllowance.list': {
99
- readonly room_ref: string;
100
- readonly access: string;
101
- };
102
- readonly 'routineRequest.list': {
103
- readonly room_ref: string;
104
- };
105
- readonly 'storage.read': {
106
- readonly room_ref?: string;
107
- };
108
- readonly submit: {
109
- readonly content: string;
110
- };
111
- readonly 'trigger.list': {
112
- readonly room_ref: string;
113
- };
114
- readonly 'triggerOccurrence.list': {
115
- readonly room_ref: string;
116
- };
117
- }
package/dist/calls.js DELETED
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +0,0 @@
1
- export type RuntimeDemand = {
2
- readonly whole: boolean;
3
- readonly rooms: readonly string[];
4
- readonly handles: readonly string[];
5
- readonly conversations: boolean;
6
- };
7
- export declare const WHOLE_DEMAND: RuntimeDemand;
8
- export declare function demanded(demand: RuntimeDemand, room: {
9
- readonly locator: string;
10
- readonly handle: string;
11
- }): boolean;
12
- export declare function wider(next: RuntimeDemand, current: RuntimeDemand): boolean;
13
- export declare function narrower(next: RuntimeDemand, current: RuntimeDemand): boolean;
@@ -1,19 +0,0 @@
1
- export type ChatDraftFile = {
2
- name: string;
3
- blob: Blob;
4
- };
5
- export type FileDeclaration = {
6
- name: string;
7
- mediaType: string;
8
- byteLength: number;
9
- contentHash: string;
10
- width?: number;
11
- height?: number;
12
- };
13
- export type Extent = {
14
- width: number;
15
- height: number;
16
- };
17
- export declare function extentOf(bytes: Uint8Array): Extent | null;
18
- export declare function hexDigest(digest: ArrayBuffer): string;
19
- export declare function declaredFile(file: ChatDraftFile): Promise<FileDeclaration>;
@@ -1,36 +0,0 @@
1
- import { type Frontmatter } from '../mdmodel/index.js';
2
- import type { HeadChange } from './adapter.js';
3
- import type { BinaryFileRecord } from './binary.js';
4
- import { type Composition } from './collection.js';
5
- type Fields = Readonly<Record<string, unknown>>;
6
- export type DocumentRow = {
7
- key: string;
8
- kind: 'document';
9
- room: string;
10
- path: string;
11
- type: string | null;
12
- fields: Fields;
13
- values: Fields;
14
- reached: Readonly<Record<string, readonly unknown[]>>;
15
- directories: readonly string[];
16
- text: string | null;
17
- change: HeadChange | null;
18
- binary: BinaryFileRecord | null;
19
- };
20
- export type ReferenceRow = {
21
- key: string;
22
- kind: 'reference';
23
- room: string;
24
- source: string;
25
- target: string;
26
- field: string;
27
- forms: readonly string[];
28
- path: string;
29
- type: string;
30
- };
31
- export type Row = DocumentRow | ReferenceRow;
32
- export declare function documentKey(room: string, path: string): string;
33
- export declare function roomOfKey(key: string): string;
34
- export declare function markdownPath(path: string): boolean;
35
- export declare function rowsOf(room: string, path: string, document: Frontmatter | null, composition: Composition, change: HeadChange | null, binary: BinaryFileRecord | null): readonly Row[];
36
- export {};
@@ -1,10 +0,0 @@
1
- export type Paths<V> = Readonly<Record<string, V>>;
2
- type Weigh<V> = (key: string, value: V) => number;
3
- export declare function shared<V>(map: Paths<V>): Paths<V>;
4
- export declare function patched<V>(base: Paths<V>, set: Iterable<readonly [string, V]>, removed?: Iterable<string>): Paths<V>;
5
- export declare function tally<V>(map: Paths<V>, weigh: Weigh<V>): number;
6
- export declare function sizeOf<V>(map: Paths<V>): number;
7
- export declare function differing<V>(left: Paths<V>, right: Paths<V>, same?: (left: V, right: V) => boolean): ReadonlySet<string>;
8
- export declare function drafted<V>(base: Paths<V>): Record<string, V>;
9
- export declare function settled<V>(draft: Record<string, V>): Paths<V>;
10
- export {};
@@ -1,9 +0,0 @@
1
- import type { Refusal } from '../mdmodel/index.js';
2
- export type Unconfirmed = {
3
- kind: 'unconfirmed';
4
- };
5
- export type Refused = {
6
- kind: 'refused';
7
- refusal: Refusal;
8
- };
9
- export declare const unconfirmed: Unconfirmed;
@@ -1,6 +0,0 @@
1
- export declare function yielded(): Promise<void>;
2
- export declare const ROW_WEIGHT = 256;
3
- export type Later<T> = T | Promise<T>;
4
- export declare function after<T, R>(value: Later<T>, next: (value: T) => R): Later<R>;
5
- export declare function inUnits<T>(items: Iterable<T>, each: (item: T) => number): Later<void>;
6
- export declare function inChunks<T>(items: readonly T[], weigh: (item: T) => number, each: (chunk: readonly T[]) => void): Promise<void>;