@khanglvm/relay 0.18.0 → 0.19.0
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/package.json +39 -4
- package/schema/spec.v1.json +1368 -0
- package/src/a2ui/compile.js +2 -0
- package/src/cli.js +1 -0
- package/src/index.js +104 -0
- package/src/link.js +1 -0
- package/src/mcp.js +3 -3
- package/src/server.js +3 -4
- package/src/spec.js +2 -0
- package/types/a2ui/compile.d.ts +40 -0
- package/types/index.d.ts +181 -0
- package/types/mcp.d.ts +31 -0
- package/types/spec.d.ts +1191 -0
- package/types/store.d.ts +29 -0
- package/types/util.d.ts +6 -0
package/types/store.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const HOME: string;
|
|
2
|
+
export declare const BOARDS_DIR: string;
|
|
3
|
+
export declare const RUNNING_DIR: string;
|
|
4
|
+
export declare function ensureDirs(): void;
|
|
5
|
+
export declare function newId(): string;
|
|
6
|
+
export declare const artifactDirPath: (id: any) => string;
|
|
7
|
+
export declare function saveBoardArtifact(id: any, bytes: any, ext?: string): string;
|
|
8
|
+
export declare function createBoard(spec: any): {
|
|
9
|
+
id: string;
|
|
10
|
+
createdAt: string;
|
|
11
|
+
title: any;
|
|
12
|
+
cwd: string;
|
|
13
|
+
spec: any;
|
|
14
|
+
draft: any;
|
|
15
|
+
result: any;
|
|
16
|
+
};
|
|
17
|
+
export declare function saveBoard(record: any): void;
|
|
18
|
+
export declare function loadBoard(id: any): any;
|
|
19
|
+
export declare function saveResultFile(id: any, result: any): string;
|
|
20
|
+
export declare function deleteBoard(id: any): boolean;
|
|
21
|
+
export declare function listBoards(limit?: number): any[];
|
|
22
|
+
export declare function saveRunning(info: any): void;
|
|
23
|
+
export declare function loadRunning(id: any): any;
|
|
24
|
+
export declare function controlUrl(running: any): any;
|
|
25
|
+
export declare function removeRunning(id: any): void;
|
|
26
|
+
export declare function loadPref(): any;
|
|
27
|
+
export declare function savePref(patch: any): void;
|
|
28
|
+
export declare function isAlive(pid: any): boolean;
|
|
29
|
+
export declare function listRunning(): any[];
|
package/types/util.d.ts
ADDED