@nylorun/runtime 0.4.0-beta → 0.6.0-beta
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/CHANGELOG.md +55 -0
- package/README.md +29 -47
- package/dist/adapters/media.d.ts +2 -18
- package/dist/adapters/media.js +2 -52
- package/dist/adapters/observe.js +1 -1
- package/dist/config.d.ts +17 -10
- package/dist/configuration.d.ts +3 -0
- package/dist/configuration.js +3 -0
- package/dist/contracts.d.ts +5 -166
- package/dist/core/main.js +40 -0
- package/dist/core/provider.d.ts +12 -0
- package/dist/core/provider.js +60 -0
- package/dist/core/runtime.d.ts +50 -0
- package/dist/core/runtime.js +877 -0
- package/dist/core/store.d.ts +16 -0
- package/dist/core/store.js +101 -0
- package/dist/index.d.ts +6 -11
- package/dist/index.js +4 -6
- package/dist/media.d.ts +29 -0
- package/dist/media.js +53 -0
- package/dist/model/defaults.d.ts +17 -0
- package/dist/model/defaults.js +21 -0
- package/dist/model/http-model.d.ts +12 -0
- package/dist/model/http-model.js +299 -0
- package/dist/model/pi-model.d.ts +2 -1
- package/dist/model/pi-model.js +52 -7
- package/dist/node/index.d.ts +5 -0
- package/dist/node/index.js +5 -0
- package/dist/node/local-sessions.d.ts +5 -0
- package/dist/node/local-sessions.js +174 -0
- package/dist/redact.d.ts +1 -0
- package/dist/redact.js +14 -0
- package/dist/server/ag-ui.d.ts +1 -1
- package/dist/server/delivery.d.ts +24 -0
- package/dist/server/delivery.js +107 -0
- package/dist/server/host.d.ts +50 -7
- package/dist/server/host.js +304 -307
- package/dist/session/api.d.ts +10 -0
- package/dist/session/api.js +15 -0
- package/dist/session/default.d.ts +5 -0
- package/dist/session/default.js +30 -0
- package/dist/session/handle.d.ts +27 -0
- package/dist/session/handle.js +199 -0
- package/dist/session/index.d.ts +2 -0
- package/dist/session/index.js +2 -0
- package/dist/sessions/host.d.ts +39 -0
- package/dist/sessions/host.js +359 -0
- package/dist/sessions/store.d.ts +41 -0
- package/dist/sessions/store.js +33 -0
- package/package.json +23 -12
- package/dist/adapters/journal.d.ts +0 -35
- package/dist/adapters/journal.js +0 -130
- package/dist/cli.d.ts +0 -2
- package/dist/cli.js +0 -100
- package/dist/dev-entry.js +0 -2
- package/dist/dev.d.ts +0 -2
- package/dist/dev.js +0 -126
- package/dist/environment.d.ts +0 -2
- package/dist/environment.js +0 -64
- package/dist/launcher.d.ts +0 -1
- package/dist/launcher.js +0 -28
- package/dist/model/configure.d.ts +0 -12
- package/dist/model/configure.js +0 -155
- /package/dist/{dev-entry.d.ts → core/main.d.ts} +0 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type ExecutorScope } from "@nylorun/core/contracts";
|
|
2
|
+
import { type ModelProvider } from "./provider.js";
|
|
3
|
+
export interface RuntimeOptions {
|
|
4
|
+
sqlitePath: string;
|
|
5
|
+
serverToken: string;
|
|
6
|
+
executors: readonly (ExecutorScope & {
|
|
7
|
+
token: string;
|
|
8
|
+
})[];
|
|
9
|
+
model?: ModelProvider;
|
|
10
|
+
leaseMs?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare class CoreRuntime {
|
|
13
|
+
private readonly options;
|
|
14
|
+
private readonly store;
|
|
15
|
+
private readonly running;
|
|
16
|
+
private readonly pending;
|
|
17
|
+
private readonly observers;
|
|
18
|
+
private readonly executors;
|
|
19
|
+
private server?;
|
|
20
|
+
private closing;
|
|
21
|
+
private readonly lockPath?;
|
|
22
|
+
private readonly timer;
|
|
23
|
+
constructor(options: RuntimeOptions);
|
|
24
|
+
private session;
|
|
25
|
+
private publish;
|
|
26
|
+
private send;
|
|
27
|
+
private notify;
|
|
28
|
+
private expireClaims;
|
|
29
|
+
private schedule;
|
|
30
|
+
private execute;
|
|
31
|
+
private resolveEffect;
|
|
32
|
+
private scope;
|
|
33
|
+
private scoped;
|
|
34
|
+
private body;
|
|
35
|
+
private command;
|
|
36
|
+
private sse;
|
|
37
|
+
private handle;
|
|
38
|
+
private view;
|
|
39
|
+
listen(port?: number, hostname?: string): Promise<{
|
|
40
|
+
url: string;
|
|
41
|
+
}>;
|
|
42
|
+
close(): Promise<void>;
|
|
43
|
+
}
|
|
44
|
+
export declare function createRuntime(options: RuntimeOptions): CoreRuntime;
|
|
45
|
+
export declare function startRuntime(options: RuntimeOptions & {
|
|
46
|
+
port?: number;
|
|
47
|
+
hostname?: string;
|
|
48
|
+
}): Promise<CoreRuntime & {
|
|
49
|
+
url: string;
|
|
50
|
+
}>;
|