@jigs.design/server 0.1.2 → 0.3.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/README.md +20 -14
- package/dist/chat.d.ts +2 -2
- package/dist/chat.js +46 -34
- package/dist/compile-cache.js +60 -0
- package/dist/compile.d.ts +1 -1
- package/dist/compile.js +169 -65
- package/dist/{server.d.ts → core.d.ts} +7 -3
- package/dist/{server.js → core.js} +310 -396
- package/dist/design.d.ts +6 -3
- package/dist/design.js +0 -1
- package/dist/errors.d.ts +3 -3
- package/dist/errors.js +3 -3
- package/dist/events.js +129 -0
- package/dist/handler.d.ts +4 -0
- package/dist/handler.js +344 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.js +3 -2
- package/dist/model-server.js +154 -0
- package/dist/outputs.js +2 -7
- package/dist/session.d.ts +1 -2
- package/dist/session.js +116 -52
- package/dist/types.d.ts +277 -51
- package/package.json +6 -5
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import "./compile.js";
|
|
1
2
|
import { ContextFunction, JigsServer, JigsServerOptions, RunFunctions } from "./types.js";
|
|
2
|
-
import
|
|
3
|
-
|
|
3
|
+
import "./session.js";
|
|
4
|
+
import "./handler.js";
|
|
5
|
+
import { Catalog, Host, JigDefinition, PageName, Procedures } from "@jigs.design/host";
|
|
6
|
+
import { JigsErrorData } from "@jigs.design/protocol";
|
|
7
|
+
//#region src/core.d.ts
|
|
4
8
|
/**
|
|
5
9
|
* Types a `context` and `run` pair outside `createJigsServer`, so two
|
|
6
10
|
* servers (one per platform) can share them. `TContext` comes from `context`
|
|
@@ -13,5 +17,5 @@ export declare function defineRun<const TProcedures extends Procedures, TContext
|
|
|
13
17
|
context: ContextFunction<TContext>;
|
|
14
18
|
run: RunFunctions<TProcedures, TContext>;
|
|
15
19
|
};
|
|
16
|
-
export declare function createJigsServer<const TProcedures extends Procedures, const TCatalog extends Catalog, TContext = any,
|
|
20
|
+
export declare function createJigsServer<const TProcedures extends Procedures, const TCatalog extends Catalog, TContext = any, const TJigs extends ReadonlyArray<JigDefinition> = readonly []>(options: JigsServerOptions<TProcedures, TCatalog, TContext, TJigs>): JigsServer<TContext, PageName<TJigs>>;
|
|
17
21
|
//#endregion
|