@anhlp/alp-protocol 0.0.1-beta.3 → 0.0.1-beta.4
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/conformance/cases.json +1 -1
- package/dist/connection.d.ts +4 -0
- package/dist/contract-v1.d.ts +4867 -1197
- package/dist/contract-v1.js +1 -1
- package/dist/events.d.ts +41 -0
- package/dist/index.d.ts +1 -0
- package/dist/rpc.d.ts +651 -11
- package/dist/schedule.d.ts +43 -0
- package/dist/schedule.js +0 -0
- package/dist/session.d.ts +142 -2
- package/dist/wire.d.ts +112 -0
- package/dist/wire.js +78 -3
- package/fixtures/v1/cases.json +3247 -0
- package/package.json +1 -1
- package/schema/ipc-v1.json +953 -17
- package/schema/methods-v1.json +4854 -933
- package/src/connection.ts +4 -0
- package/src/contract-v1.js +1 -1
- package/src/events.ts +28 -2
- package/src/index.ts +1 -0
- package/src/rpc.ts +171 -12
- package/src/schedule.ts +43 -0
- package/src/session.ts +120 -4
- package/src/wire.js +128 -2
package/conformance/cases.json
CHANGED
package/dist/connection.d.ts
CHANGED
|
@@ -2,8 +2,12 @@ import type { Envelope } from './events.js';
|
|
|
2
2
|
export type DaemonConnection = {
|
|
3
3
|
request<T = any>(method: string, params?: unknown): Promise<T>;
|
|
4
4
|
onEvent(listener: (envelope: Envelope) => void): () => void;
|
|
5
|
+
/** Notifications other than `event`, such as `terminal.event` (§12.10); absent on older adapters. */
|
|
6
|
+
onNotification?(listener: (method: string, params: any) => void): () => void;
|
|
5
7
|
onClose(listener: (error: Error) => void): () => void;
|
|
6
8
|
close(): void;
|
|
7
9
|
/** True once the connection is gone; socket clients report it, in-process ones may not. */
|
|
8
10
|
readonly closed?: boolean;
|
|
11
|
+
/** Features captured by the Node client handshake; absent on older adapters. */
|
|
12
|
+
readonly capabilities?: readonly string[];
|
|
9
13
|
};
|