@mono-agent/web 0.20.11 → 0.21.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 +397 -68
- package/dist/contracts.d.ts +437 -8
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +2 -0
- package/dist/contracts.js.map +1 -1
- package/dist/cron-reply-context.d.ts +27 -0
- package/dist/cron-reply-context.d.ts.map +1 -0
- package/dist/cron-reply-context.js +241 -0
- package/dist/cron-reply-context.js.map +1 -0
- package/dist/discovery.d.ts +1 -0
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +8 -6
- package/dist/discovery.js.map +1 -1
- package/dist/effort-ladder.d.ts +111 -0
- package/dist/effort-ladder.d.ts.map +1 -0
- package/dist/effort-ladder.js +155 -0
- package/dist/effort-ladder.js.map +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/long-lived-fetch.d.ts +5 -0
- package/dist/long-lived-fetch.d.ts.map +1 -0
- package/dist/long-lived-fetch.js +22 -0
- package/dist/long-lived-fetch.js.map +1 -0
- package/dist/monitor-reply.d.ts +10 -0
- package/dist/monitor-reply.d.ts.map +1 -0
- package/dist/monitor-reply.js +67 -0
- package/dist/monitor-reply.js.map +1 -0
- package/dist/notification-client.d.ts +11 -2
- package/dist/notification-client.d.ts.map +1 -1
- package/dist/notification-client.js +5 -4
- package/dist/notification-client.js.map +1 -1
- package/dist/notification-ingress.d.ts +8 -1
- package/dist/notification-ingress.d.ts.map +1 -1
- package/dist/notification-ingress.js +28 -6
- package/dist/notification-ingress.js.map +1 -1
- package/dist/operator-client.d.ts +35 -2
- package/dist/operator-client.d.ts.map +1 -1
- package/dist/operator-client.js +276 -9
- package/dist/operator-client.js.map +1 -1
- package/dist/server.d.ts +42 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +679 -52
- package/dist/server.js.map +1 -1
- package/dist/service.d.ts +299 -18
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +1915 -160
- package/dist/service.js.map +1 -1
- package/dist/store-migrations.d.ts +23 -0
- package/dist/store-migrations.d.ts.map +1 -0
- package/dist/store-migrations.js +212 -0
- package/dist/store-migrations.js.map +1 -0
- package/dist/store.d.ts +389 -21
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +2087 -245
- package/dist/store.js.map +1 -1
- package/package.json +9 -8
- package/webapp/dist/assets/{assistant-ui-BzN2E6n6.js → assistant-ui-pZmGxIp2.js} +16 -16
- package/webapp/dist/assets/index-6uQ7TVQe.css +1 -0
- package/webapp/dist/assets/index-CsSMjSgW.js +156 -0
- package/webapp/dist/assets/{markdown-Vq23xgh7.js → markdown-Du5t10ja.js} +1 -1
- package/webapp/dist/badge-96.png +0 -0
- package/webapp/dist/index.html +26 -6
- package/webapp/dist/manifest.webmanifest +1 -1
- package/webapp/dist/notification-sw.js +3 -1
- package/webapp/dist/sw.js +1 -1
- package/webapp/dist/{workbox-9c191d2f.js → workbox-2fbc6a65.js} +1 -1
- package/webapp/dist/assets/index-BT463dRM.css +0 -1
- package/webapp/dist/assets/index-Co-qDQPq.js +0 -155
package/dist/server.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type WebTheme } from "./contracts.js";
|
|
1
|
+
import { type WebEvent, type WebTheme } from "./contracts.js";
|
|
2
2
|
import { type CreateWebServiceOptions } from "./service.js";
|
|
3
3
|
export declare const DEFAULT_WEB_HOST = "0.0.0.0";
|
|
4
4
|
export declare const DEFAULT_WEB_PORT = 5050;
|
|
@@ -6,6 +6,8 @@ export interface StartWebServerOptions extends CreateWebServiceOptions {
|
|
|
6
6
|
readonly host?: string;
|
|
7
7
|
readonly port?: number;
|
|
8
8
|
readonly theme?: WebTheme;
|
|
9
|
+
/** Operator-chosen console label for the PWA manifest, tab title, and rail brand. Defaults to the machine hostname. */
|
|
10
|
+
readonly name?: string;
|
|
9
11
|
readonly staticDir?: string;
|
|
10
12
|
/** Exact additional DNS hostnames accepted at the browser boundary (for example this node's Tailscale DNSName). */
|
|
11
13
|
readonly allowedHosts?: readonly string[];
|
|
@@ -21,4 +23,43 @@ export interface WebServerHandle {
|
|
|
21
23
|
}
|
|
22
24
|
export declare function startWebServer(options?: StartWebServerOptions): Promise<WebServerHandle>;
|
|
23
25
|
export declare function isAllowedWebHostname(hostname: string, configuredHost: string, machineHostname?: string, additionalHosts?: readonly string[]): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* One connection's view of the event stream: which frames it is served, and in
|
|
28
|
+
* what form.
|
|
29
|
+
*
|
|
30
|
+
* A console names the conversation it is looking at with `?thread=`. It is
|
|
31
|
+
* served EVERYTHING about that conversation unthrottled -- `message.delta`
|
|
32
|
+
* frames carrying what each write changed, and the `message.changed` hints the
|
|
33
|
+
* delta path emits when it declines (a delta bigger than the message, a
|
|
34
|
+
* reconciliation that describes nothing), because both are things it must act
|
|
35
|
+
* on. Anything about any OTHER conversation is reduced to a
|
|
36
|
+
* `message.changed { messageId, updatedAt }` and rate-limited to one per
|
|
37
|
+
* conversation per {@link DELTA_HINT_INTERVAL_MS}, dropped rather than queued:
|
|
38
|
+
* a console is not rendering it.
|
|
39
|
+
*
|
|
40
|
+
* A console that named NO conversation is not telling this stream which
|
|
41
|
+
* conversation it is looking at, so it keeps every reconciliation hint and is
|
|
42
|
+
* rate-limited only on what the delta path produces -- downgraded deltas and
|
|
43
|
+
* the declines above -- which is the write-rate traffic the limit exists for. A
|
|
44
|
+
* turn's `thread.changed` still follows every finish unthrottled, so a dropped
|
|
45
|
+
* frame never leaves a settled conversation stale.
|
|
46
|
+
*
|
|
47
|
+
* Every other event type passes through untouched. `Last-Event-ID` is ignored
|
|
48
|
+
* and nothing is replayed: this is state invalidation, not a log. A
|
|
49
|
+
* reconnecting console bootstraps, and `ready` means resync the conversation it
|
|
50
|
+
* has open.
|
|
51
|
+
*
|
|
52
|
+
* Lives outside the route because neither of the two things that matter is
|
|
53
|
+
* observable through an HTTP fixture: the rate limit is a clock decision, and a
|
|
54
|
+
* frame this connection cannot serialize or write must CLOSE it rather than
|
|
55
|
+
* leave a socket that reads live and receives nothing.
|
|
56
|
+
*/
|
|
57
|
+
export declare function createWebEventDispatch(options: {
|
|
58
|
+
/** The conversation this connection named, if it named one. */
|
|
59
|
+
readonly subscribed?: string;
|
|
60
|
+
readonly write: (event: WebEvent) => boolean;
|
|
61
|
+
readonly close: () => void;
|
|
62
|
+
readonly onFailure?: (error: unknown) => void;
|
|
63
|
+
readonly now?: () => number;
|
|
64
|
+
}): (event: WebEvent) => boolean;
|
|
24
65
|
//# sourceMappingURL=server.d.ts.map
|
package/dist/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AA2BA,OAAO,EAcL,KAAK,QAAQ,EAKb,KAAK,QAAQ,EACd,MAAM,gBAAgB,CAAC;AAkBxB,OAAO,EAAc,KAAK,uBAAuB,EAA2B,MAAM,cAAc,CAAC;AAEjG,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAwCrC,MAAM,WAAW,qBAAsB,SAAQ,uBAAuB;IACpE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC;IAC1B,uHAAuH;IACvH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,mHAAmH;IACnH,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC3C;AAED,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