@camstack/system 1.2.289 → 1.2.290
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/dist/addon-runner.js +1 -1
- package/dist/addon-runner.mjs +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/dist/builtins/alerts/alerts.addon.js +1 -1
- package/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/dist/builtins/autotrack/index.js +1 -1
- package/dist/builtins/autotrack/index.mjs +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
- package/dist/builtins/camera-grid/index.js +1 -1
- package/dist/builtins/camera-grid/index.mjs +1 -1
- package/dist/builtins/console-logging/index.js +1 -1
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.js +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +1 -1
- package/dist/builtins/device-manager/device-manager.addon.js +2 -2
- package/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- package/dist/builtins/doorbell/virtual-doorbell.addon.js +1 -1
- package/dist/builtins/doorbell/virtual-doorbell.addon.mjs +1 -1
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/dist/builtins/local-auth/local-auth.addon.js +1 -1
- package/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
- package/dist/builtins/local-network/local-network.addon.js +1 -1
- package/dist/builtins/local-network/local-network.addon.mjs +1 -1
- package/dist/builtins/loki-logging/index.js +1 -1
- package/dist/builtins/loki-logging/index.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/index.mjs +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/dist/builtins/snapshot/index.js +1 -1
- package/dist/builtins/snapshot/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +0 -0
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +0 -0
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/dist/builtins/system-config/system-config.addon.js +1 -1
- package/dist/builtins/system-config/system-config.addon.mjs +1 -1
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{dist-DKFb2936.mjs → dist-BkjMEa2F.mjs} +230 -10
- package/dist/{dist-BYnHJU96.js → dist-KRK9zLWt.js} +247 -9
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -3
- package/dist/index.mjs +4 -4
- package/dist/kernel/moleculer/addon-peer-bytes-facility.d.ts +24 -0
- package/dist/{manifest-system-deps-C9T7784z.mjs → manifest-system-deps-D_5UXqDb.mjs} +585 -5
- package/dist/{manifest-system-deps-B8ZUclN4.js → manifest-system-deps-Dm7QhyvL.js} +592 -0
- package/dist/{retired-settings-keys-C6rFqHR7.js → retired-settings-keys-BSLMlTcz.js} +1 -1
- package/dist/{retired-settings-keys-tuNxNNpR.mjs → retired-settings-keys-DNK-p6aa.mjs} +1 -1
- package/package.json +1 -1
|
@@ -691,7 +691,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
691
691
|
return EventCategory;
|
|
692
692
|
}({});
|
|
693
693
|
//#endregion
|
|
694
|
-
//#region ../types/dist/sleep-
|
|
694
|
+
//#region ../types/dist/sleep-COWaSCAi.mjs
|
|
695
695
|
/**
|
|
696
696
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
697
697
|
* window to float samples (D455).
|
|
@@ -4050,6 +4050,46 @@ zod.z.object({
|
|
|
4050
4050
|
})
|
|
4051
4051
|
});
|
|
4052
4052
|
/**
|
|
4053
|
+
* How long a minted ticket stays takeable.
|
|
4054
|
+
*
|
|
4055
|
+
* The consumer's dial is the next thing that happens after the cap call that
|
|
4056
|
+
* minted it returns — measured well under 100 ms on the same host for the clip
|
|
4057
|
+
* dial this is generalised from. Thirty seconds covers a busy hub and is short
|
|
4058
|
+
* enough that a ticket which leaked into a log is worth nothing by the time
|
|
4059
|
+
* anybody reads it.
|
|
4060
|
+
*/
|
|
4061
|
+
var PEER_BYTES_TICKET_TTL_MS = 3e4;
|
|
4062
|
+
/**
|
|
4063
|
+
* How long the producer waits on a consumer that has stopped reading before it
|
|
4064
|
+
* cuts the body.
|
|
4065
|
+
*
|
|
4066
|
+
* D447: a raw HTTP stream reads no chunk the socket has not taken. The producer
|
|
4067
|
+
* honours `write()`'s return and awaits `drain`; a peer that never drains is
|
|
4068
|
+
* a peer that is gone, and holding the body for it is the unbounded buffer this
|
|
4069
|
+
* whole facility exists to avoid.
|
|
4070
|
+
*/
|
|
4071
|
+
var PEER_BYTES_STALL_MS = 15e3;
|
|
4072
|
+
/** Bytes handed to the socket per `write()` when the producer holds a buffer. */
|
|
4073
|
+
var PEER_BYTES_CHUNK_BYTES = 256 * 1024;
|
|
4074
|
+
/** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
|
|
4075
|
+
var PeerBytesTicketSchema = zod.z.object({
|
|
4076
|
+
/** `http://127.0.0.1:<port>/<token>`. One `GET` takes it. */
|
|
4077
|
+
url: zod.z.string().min(1),
|
|
4078
|
+
/**
|
|
4079
|
+
* The HOST node this URL means something on — the hub or a named agent,
|
|
4080
|
+
* never a runner. {@link AddonPeerBytes.open} compares it to its own and
|
|
4081
|
+
* refuses `cross-node` by name when they differ, without dialling.
|
|
4082
|
+
*/
|
|
4083
|
+
hostNodeId: zod.z.string().min(1),
|
|
4084
|
+
expiresAtMs: zod.z.number().int().nonnegative(),
|
|
4085
|
+
/**
|
|
4086
|
+
* What the producer DECLARED the body to be, when it knows — `null` when it
|
|
4087
|
+
* does not. Never `0` for unknown (D393): a consumer sizing a bound off this
|
|
4088
|
+
* must be able to tell "the producer did not say" from "the body is empty".
|
|
4089
|
+
*/
|
|
4090
|
+
declaredBytes: zod.z.number().int().nonnegative().nullable()
|
|
4091
|
+
});
|
|
4092
|
+
/**
|
|
4053
4093
|
* Adoption job — the background form of `device-adoption.adopt`.
|
|
4054
4094
|
*
|
|
4055
4095
|
* ## Why this exists
|
|
@@ -26133,6 +26173,7 @@ zod.z.enum([
|
|
|
26133
26173
|
"sleeping",
|
|
26134
26174
|
"camera-refused",
|
|
26135
26175
|
"no-keyframe",
|
|
26176
|
+
"decode-failed",
|
|
26136
26177
|
"no-catalog-row",
|
|
26137
26178
|
"unsupported",
|
|
26138
26179
|
"unknown-device",
|
|
@@ -26407,6 +26448,32 @@ var ClipBytesSchema = zod.z.object({
|
|
|
26407
26448
|
durationMs: zod.z.number().positive().optional()
|
|
26408
26449
|
});
|
|
26409
26450
|
/**
|
|
26451
|
+
* Where a clip's finished bytes can be TAKEN (D613) — the answer to
|
|
26452
|
+
* {@link videoclipsCapability.methods.offerClipBytes}.
|
|
26453
|
+
*
|
|
26454
|
+
* Everything {@link ClipBytesSchema} carries except the bytes themselves, plus
|
|
26455
|
+
* the one-shot ticket that leads to them. The metadata is answered BEFORE the
|
|
26456
|
+
* transfer on purpose: a consumer learns which twin it got, what to call the
|
|
26457
|
+
* file and how long the clip runs without having to read a byte, so a decision
|
|
26458
|
+
* it would make on that metadata (a wrong twin, an implausible duration) costs
|
|
26459
|
+
* no transfer at all.
|
|
26460
|
+
*/
|
|
26461
|
+
var ClipBytesOfferSchema = zod.z.object({
|
|
26462
|
+
/**
|
|
26463
|
+
* One shot, seconds-long, loopback, on the PROVIDER's own host. Open it with
|
|
26464
|
+
* `ctx.peerBytes.open(...)`, which refuses a ticket from another node by
|
|
26465
|
+
* name rather than dialling a port that means something else here.
|
|
26466
|
+
*/
|
|
26467
|
+
ticket: PeerBytesTicketSchema,
|
|
26468
|
+
contentType: zod.z.string(),
|
|
26469
|
+
/** Suggested filename, extension included. */
|
|
26470
|
+
name: zod.z.string(),
|
|
26471
|
+
/** Which twin was actually served — see {@link ClipBytesSchema.served}. */
|
|
26472
|
+
served: CamProfileSchema,
|
|
26473
|
+
/** See {@link ClipBytesSchema.durationMs}. Absent when nothing measured it. */
|
|
26474
|
+
durationMs: zod.z.number().positive().optional()
|
|
26475
|
+
});
|
|
26476
|
+
/**
|
|
26410
26477
|
* Where a clip's STREAM can be dialled (D597) — the answer to
|
|
26411
26478
|
* {@link videoclipsCapability.methods.dialClipStream}.
|
|
26412
26479
|
*
|
|
@@ -26482,6 +26549,44 @@ var ClipStreamDialSchema = zod.z.object({
|
|
|
26482
26549
|
/** Why `servedAudio` is `none` although sound was asked for. */
|
|
26483
26550
|
audioReason: ClipStreamAudioReasonSchema.optional()
|
|
26484
26551
|
});
|
|
26552
|
+
/**
|
|
26553
|
+
* What a surface may DRAW for this provider's clips — the answer to
|
|
26554
|
+
* {@link videoclipsCapability.methods.getPlaybackOptions} (D612).
|
|
26555
|
+
*
|
|
26556
|
+
* The envelope is a PROVIDER fact, not a clip fact, and that is measured, not
|
|
26557
|
+
* assumed: the broker's `chooseClipPath` reads exactly two inputs — whether
|
|
26558
|
+
* `dialClipStream` and `readClipBytes` are wired — and both are constants of
|
|
26559
|
+
* the broker's own closure over the provider's methods. The `profile` it is
|
|
26560
|
+
* handed is explicitly not read. So every clip of a provider is served the
|
|
26561
|
+
* same way, and a per-clip channel carried a value that could not vary. The
|
|
26562
|
+
* per-clip `clipTransport` server message was removed for exactly that reason.
|
|
26563
|
+
*
|
|
26564
|
+
* Queried per camera, before a clip is picked, so a control is rendered or
|
|
26565
|
+
* DISABLED rather than offered and refused at play time (D62: a disabled
|
|
26566
|
+
* control reads as unavailable, one that undoes the gesture reads as broken).
|
|
26567
|
+
*/
|
|
26568
|
+
var ClipPlaybackOptionsSchema = zod.z.object({
|
|
26569
|
+
/**
|
|
26570
|
+
* How this provider's clips reach the player. `stream` is the provider's
|
|
26571
|
+
* forward-only fMP4 (D597); `file` is one bounded by-handle fetch of the
|
|
26572
|
+
* whole clip, `stbl` indexed (D575).
|
|
26573
|
+
*/
|
|
26574
|
+
transport: zod.z.enum(["stream", "file"]),
|
|
26575
|
+
/** `forward` = only ahead of the playhead. `free` = anywhere. */
|
|
26576
|
+
seek: zod.z.enum(["forward", "free"]),
|
|
26577
|
+
/** Frame-step BACKWARD is meaningful. Forward always is. */
|
|
26578
|
+
stepBack: zod.z.boolean(),
|
|
26579
|
+
/** Whether the scrub gesture is served, as opposed to refused by name. */
|
|
26580
|
+
scrub: zod.z.boolean(),
|
|
26581
|
+
/**
|
|
26582
|
+
* The rates that can be delivered, ascending, always containing `1`. The
|
|
26583
|
+
* viewer draws its picker from this and from nothing else — a constant it
|
|
26584
|
+
* keeps instead is the second authority that produced the defect: `8` and
|
|
26585
|
+
* `16` were offered, the broker clamped them to `4`, and no line anywhere
|
|
26586
|
+
* said so. `0` is not a member: pause is the absence of a rate.
|
|
26587
|
+
*/
|
|
26588
|
+
rates: zod.z.array(zod.z.number().positive()).min(1).readonly()
|
|
26589
|
+
});
|
|
26485
26590
|
var ClipSourceAvailabilitySchema = zod.z.object({
|
|
26486
26591
|
state: zod.z.enum([
|
|
26487
26592
|
"ok",
|
|
@@ -26660,14 +26765,18 @@ var videoclipsCapability = {
|
|
|
26660
26765
|
*
|
|
26661
26766
|
* `getClipPlayback` is the right answer for a player: it hands back a URL
|
|
26662
26767
|
* on a plane the hub serves `access:'authenticated'`, which a browser and a
|
|
26663
|
-
* viewer session satisfy. It is the wrong answer for another ADDON
|
|
26664
|
-
*
|
|
26665
|
-
*
|
|
26666
|
-
*
|
|
26667
|
-
*
|
|
26668
|
-
*
|
|
26669
|
-
*
|
|
26670
|
-
*
|
|
26768
|
+
* viewer session satisfy. It is the wrong answer for another ADDON: the
|
|
26769
|
+
* hub's proxy in front of that plane takes only a user credential, which
|
|
26770
|
+
* an addon does not hold, so a recorder that wants a camera's clip cannot
|
|
26771
|
+
* fetch that URL. This method is the shape that answer forced — the same
|
|
26772
|
+
* one (and the same bound) as `recordingExport.readExportBytes`.
|
|
26773
|
+
*
|
|
26774
|
+
* **It is no longer the only seam.** Until D613 there was no addon→addon
|
|
26775
|
+
* byte transport at all; there is now
|
|
26776
|
+
* ({@link offerClipBytes}, over `ctx.peerBytes`), it holds nothing on
|
|
26777
|
+
* either side, and it is what a clip EXPORT uses. This method remains for
|
|
26778
|
+
* a consumer that genuinely wants the bytes in hand, and as the named
|
|
26779
|
+
* fallback for a provider not yet redeployed.
|
|
26671
26780
|
*
|
|
26672
26781
|
* Routing needs no `provider` pin: the id is source-prefixed and
|
|
26673
26782
|
* self-contained, so `device-collection-dispatch.ts` rule 3 hands the call
|
|
@@ -26734,6 +26843,65 @@ var videoclipsCapability = {
|
|
|
26734
26843
|
auth: "protected"
|
|
26735
26844
|
}),
|
|
26736
26845
|
/**
|
|
26846
|
+
* Where this clip's finished bytes can be TAKEN — the by-handle read a
|
|
26847
|
+
* clip EXPORT pulls, over the addon→addon byte transport (D613).
|
|
26848
|
+
*
|
|
26849
|
+
* This is {@link readClipBytes} with the envelope removed. Same gates,
|
|
26850
|
+
* same vocabulary, same completion rules, same `served` contract — the
|
|
26851
|
+
* only difference is that the bytes travel over a one-shot loopback
|
|
26852
|
+
* socket instead of inside a base64 field, so neither side holds the
|
|
26853
|
+
* payload whole and the 50 MiB refusal on a long `high` twin stops
|
|
26854
|
+
* existing. The bound that remains is
|
|
26855
|
+
* {@link VIDEOCLIPS_MAX_OFFER_BYTES}, and it bounds the PRODUCER's own
|
|
26856
|
+
* copy rather than the transport.
|
|
26857
|
+
*
|
|
26858
|
+
* **The ticket is loopback and same-host.** A provider on an agent mints a
|
|
26859
|
+
* URL that means nothing on the hub, and `ctx.peerBytes.open` refuses it
|
|
26860
|
+
* `cross-node` by name rather than dialling whatever else holds that port
|
|
26861
|
+
* here. A consumer that can be on the other side of a node boundary from
|
|
26862
|
+
* its provider must be able to read that refusal and say so; it must not
|
|
26863
|
+
* treat it as "no bytes".
|
|
26864
|
+
*
|
|
26865
|
+
* **A ticket is a one-shot bearer credential with a seconds-long life.**
|
|
26866
|
+
* Take it immediately, never persist it, never log its `url`. An untaken
|
|
26867
|
+
* ticket costs the provider one map entry until its TTL, and outstanding
|
|
26868
|
+
* tickets are bounded — which is also what makes a per-frame misuse of
|
|
26869
|
+
* this method refuse by name rather than work slowly (D9/D18: this is a
|
|
26870
|
+
* by-handle fetch of finished media, not a frame pipe).
|
|
26871
|
+
*
|
|
26872
|
+
* Optional on the provider for the same reason `readClipBytes` is: a
|
|
26873
|
+
* source with no camera socket behind it has no bytes. A provider that
|
|
26874
|
+
* predates this method answers `NOT_IMPLEMENTED`, and a consumer may fall
|
|
26875
|
+
* back to `readClipBytes` — but it says so in the log, with the deploy
|
|
26876
|
+
* hint, because that fallback re-imposes the 50 MiB refusal and an
|
|
26877
|
+
* operator who sees `too-large-to-transfer` after this shipped is looking
|
|
26878
|
+
* at a stale addon, not at a clip that cannot be exported.
|
|
26879
|
+
*/
|
|
26880
|
+
offerClipBytes: optionalMethod(zod.z.object({
|
|
26881
|
+
deviceId: zod.z.number(),
|
|
26882
|
+
clipId: zod.z.string().min(1),
|
|
26883
|
+
/** WHICH provider holds the bytes — see `readClipBytes.provider`. */
|
|
26884
|
+
provider: zod.z.string().min(1),
|
|
26885
|
+
/** Which twin — `low | mid` → the sub file, `high` → the main twin. */
|
|
26886
|
+
profile: CamProfileSchema.optional(),
|
|
26887
|
+
/**
|
|
26888
|
+
* The CALLER's byte bound, so an over-size clip is refused before the
|
|
26889
|
+
* camera is touched rather than after. Capped by
|
|
26890
|
+
* {@link VIDEOCLIPS_MAX_OFFER_BYTES} whatever is passed; absent means
|
|
26891
|
+
* that ceiling.
|
|
26892
|
+
*/
|
|
26893
|
+
maxBytes: zod.z.number().int().positive().optional(),
|
|
26894
|
+
/**
|
|
26895
|
+
* The operator's authorisation to wake a sleeping camera for this
|
|
26896
|
+
* read. Absent — the default — means a sleeping standalone battery
|
|
26897
|
+
* camera is REFUSED by name, before any session is opened.
|
|
26898
|
+
*/
|
|
26899
|
+
wake: ClipWakeSchema.optional()
|
|
26900
|
+
}), ClipBytesOfferSchema, {
|
|
26901
|
+
kind: "query",
|
|
26902
|
+
auth: "protected"
|
|
26903
|
+
}),
|
|
26904
|
+
/**
|
|
26737
26905
|
* Where this clip's STREAM can be dialled (D597) — the forward-only
|
|
26738
26906
|
* fMP4 the provider writes from the first muxed byte, for the broker to
|
|
26739
26907
|
* play through the same WebRTC session as recorded footage, with the
|
|
@@ -26770,6 +26938,36 @@ var videoclipsCapability = {
|
|
|
26770
26938
|
}), ClipStreamDialSchema, {
|
|
26771
26939
|
kind: "query",
|
|
26772
26940
|
auth: "protected"
|
|
26941
|
+
}),
|
|
26942
|
+
/**
|
|
26943
|
+
* What a surface may DRAW for this provider's clips: the rates it can be
|
|
26944
|
+
* played at, whether scrub is served, how far a position may be moved,
|
|
26945
|
+
* and whether a backward frame-step means anything (D612).
|
|
26946
|
+
*
|
|
26947
|
+
* **The only authority.** The per-clip `clipTransport` server message
|
|
26948
|
+
* that used to carry the same answer was removed: the broker's transport
|
|
26949
|
+
* choice reads nothing that varies per clip, so the clip level had no
|
|
26950
|
+
* information the provider does not already have, and two channels that
|
|
26951
|
+
* can disagree are worse than one (D62).
|
|
26952
|
+
*
|
|
26953
|
+
* Asked per camera and per provider, so it must stay CHEAP — it is a
|
|
26954
|
+
* statement about wiring, answered from a constant, never a call to the
|
|
26955
|
+
* camera. A provider answers with one of {@link CLIP_PLAYBACK_OPTIONS}
|
|
26956
|
+
* and never composes an envelope of its own.
|
|
26957
|
+
*
|
|
26958
|
+
* Optional, and absence is load-bearing: a provider that has not answered
|
|
26959
|
+
* has not restricted anything, and a viewer reads it as the freedom it
|
|
26960
|
+
* always had. See D612 on the rollout order that absence implies.
|
|
26961
|
+
*/
|
|
26962
|
+
getPlaybackOptions: optionalMethod(zod.z.object({
|
|
26963
|
+
deviceId: zod.z.number(),
|
|
26964
|
+
/** WHICH provider to ask — the `addonId` a {@link ClipSourceSchema}
|
|
26965
|
+
* row carries. Required for the same reason `listClips` requires it:
|
|
26966
|
+
* a collection cap has no "the bound one" to resolve to (D554). */
|
|
26967
|
+
provider: zod.z.string().min(1)
|
|
26968
|
+
}), ClipPlaybackOptionsSchema, {
|
|
26969
|
+
kind: "query",
|
|
26970
|
+
auth: "protected"
|
|
26773
26971
|
})
|
|
26774
26972
|
}
|
|
26775
26973
|
};
|
|
@@ -49334,6 +49532,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
49334
49532
|
addonId: null,
|
|
49335
49533
|
access: "view"
|
|
49336
49534
|
},
|
|
49535
|
+
"videoclips.getPlaybackOptions": {
|
|
49536
|
+
capName: "videoclips",
|
|
49537
|
+
capScope: "device",
|
|
49538
|
+
addonId: null,
|
|
49539
|
+
access: "view"
|
|
49540
|
+
},
|
|
49337
49541
|
"videoclips.listClips": {
|
|
49338
49542
|
capName: "videoclips",
|
|
49339
49543
|
capScope: "device",
|
|
@@ -49346,6 +49550,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
49346
49550
|
addonId: null,
|
|
49347
49551
|
access: "view"
|
|
49348
49552
|
},
|
|
49553
|
+
"videoclips.offerClipBytes": {
|
|
49554
|
+
capName: "videoclips",
|
|
49555
|
+
capScope: "device",
|
|
49556
|
+
addonId: null,
|
|
49557
|
+
access: "view"
|
|
49558
|
+
},
|
|
49349
49559
|
"videoclips.readClipBytes": {
|
|
49350
49560
|
capName: "videoclips",
|
|
49351
49561
|
capScope: "device",
|
|
@@ -51392,6 +51602,11 @@ Object.freeze({
|
|
|
51392
51602
|
form: "single",
|
|
51393
51603
|
optional: false
|
|
51394
51604
|
}],
|
|
51605
|
+
"videoclips.getPlaybackOptions": [{
|
|
51606
|
+
name: "deviceId",
|
|
51607
|
+
form: "single",
|
|
51608
|
+
optional: false
|
|
51609
|
+
}],
|
|
51395
51610
|
"videoclips.listClips": [{
|
|
51396
51611
|
name: "deviceId",
|
|
51397
51612
|
form: "single",
|
|
@@ -51402,6 +51617,11 @@ Object.freeze({
|
|
|
51402
51617
|
form: "single",
|
|
51403
51618
|
optional: false
|
|
51404
51619
|
}],
|
|
51620
|
+
"videoclips.offerClipBytes": [{
|
|
51621
|
+
name: "deviceId",
|
|
51622
|
+
form: "single",
|
|
51623
|
+
optional: false
|
|
51624
|
+
}],
|
|
51405
51625
|
"videoclips.readClipBytes": [{
|
|
51406
51626
|
name: "deviceId",
|
|
51407
51627
|
form: "single",
|
|
@@ -52713,6 +52933,24 @@ Object.defineProperty(exports, "MOTION_CLOSE_AFTER_MS", {
|
|
|
52713
52933
|
return MOTION_CLOSE_AFTER_MS;
|
|
52714
52934
|
}
|
|
52715
52935
|
});
|
|
52936
|
+
Object.defineProperty(exports, "PEER_BYTES_CHUNK_BYTES", {
|
|
52937
|
+
enumerable: true,
|
|
52938
|
+
get: function() {
|
|
52939
|
+
return PEER_BYTES_CHUNK_BYTES;
|
|
52940
|
+
}
|
|
52941
|
+
});
|
|
52942
|
+
Object.defineProperty(exports, "PEER_BYTES_STALL_MS", {
|
|
52943
|
+
enumerable: true,
|
|
52944
|
+
get: function() {
|
|
52945
|
+
return PEER_BYTES_STALL_MS;
|
|
52946
|
+
}
|
|
52947
|
+
});
|
|
52948
|
+
Object.defineProperty(exports, "PEER_BYTES_TICKET_TTL_MS", {
|
|
52949
|
+
enumerable: true,
|
|
52950
|
+
get: function() {
|
|
52951
|
+
return PEER_BYTES_TICKET_TTL_MS;
|
|
52952
|
+
}
|
|
52953
|
+
});
|
|
52716
52954
|
Object.defineProperty(exports, "REDACTED_SECRET", {
|
|
52717
52955
|
enumerable: true,
|
|
52718
52956
|
get: function() {
|
package/dist/index.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ export type { StallVerdict } from './kernel/event-loop-stall-monitor.js';
|
|
|
72
72
|
export { attributeStall, STALL_REPORT_MS, STALL_TICK_MS, startEventLoopStallMonitor, } from './kernel/event-loop-stall-monitor.js';
|
|
73
73
|
export type { AddonDataPlaneFacility, DataPlaneSink, } from './kernel/moleculer/addon-data-plane-facility.js';
|
|
74
74
|
export { createAddonDataPlaneFacility } from './kernel/moleculer/addon-data-plane-facility.js';
|
|
75
|
+
export { createAddonPeerBytesFacility, hostNodeIdOf, type AddonPeerBytesFacility, type AddonPeerBytesFacilityArgs, } from './kernel/moleculer/addon-peer-bytes-facility.js';
|
|
75
76
|
export type { ElementState, ElementStatus, } from './lifecycle/lifecycle-state-machine.js';
|
|
76
77
|
export { LifecycleStateMachine } from './lifecycle/lifecycle-state-machine.js';
|
|
77
78
|
export { formatLogLine } from './logging/formatter.js';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("./dist-
|
|
3
|
+
const require_dist = require("./dist-KRK9zLWt.js");
|
|
4
4
|
const require_builtins_alerts_alerts_addon = require("./builtins/alerts/alerts.addon.js");
|
|
5
5
|
require("./builtins/alerts/index.js");
|
|
6
6
|
const require_formatter = require("./formatter-DqAKDlvN.js");
|
|
@@ -27,7 +27,7 @@ require("./builtins/system-config/index.js");
|
|
|
27
27
|
const require_builtins_winston_logging_index = require("./builtins/winston-logging/index.js");
|
|
28
28
|
const require_event_loop_stall_monitor = require("./event-loop-stall-monitor-CAsHdMwP.js");
|
|
29
29
|
const require_tls$1 = require("./tls-D_wUeOTD.js");
|
|
30
|
-
const require_manifest_system_deps = require("./manifest-system-deps-
|
|
30
|
+
const require_manifest_system_deps = require("./manifest-system-deps-Dm7QhyvL.js");
|
|
31
31
|
const require_resource_monitor = require("./resource-monitor-LVE1BoLs.js");
|
|
32
32
|
const require_custom_action_registry = require("./custom-action-registry-acBY3mHA.js");
|
|
33
33
|
let zod = require("zod");
|
|
@@ -48,8 +48,8 @@ let node_http = require("node:http");
|
|
|
48
48
|
let node_vm = require("node:vm");
|
|
49
49
|
node_vm = require_chunk.__toESM(node_vm);
|
|
50
50
|
let _camstack_types_addon = require("@camstack/types/addon");
|
|
51
|
-
let node_url = require("node:url");
|
|
52
51
|
let node_events = require("node:events");
|
|
52
|
+
let node_url = require("node:url");
|
|
53
53
|
let node_stream = require("node:stream");
|
|
54
54
|
node_stream = require_chunk.__toESM(node_stream, 1);
|
|
55
55
|
let node_string_decoder = require("node:string_decoder");
|
|
@@ -96037,6 +96037,7 @@ exports.copyDirRecursive = copyDirRecursive;
|
|
|
96037
96037
|
exports.copyExtraFileDirs = copyExtraFileDirs;
|
|
96038
96038
|
exports.createAddonContext = require_manifest_system_deps.createAddonContext;
|
|
96039
96039
|
exports.createAddonDataPlaneFacility = require_manifest_system_deps.createAddonDataPlaneFacility;
|
|
96040
|
+
exports.createAddonPeerBytesFacility = require_manifest_system_deps.createAddonPeerBytesFacility;
|
|
96040
96041
|
exports.createAddonService = require_manifest_system_deps.createAddonService;
|
|
96041
96042
|
exports.createArrayBufferCensusGate = require_manifest_system_deps.createArrayBufferCensusGate;
|
|
96042
96043
|
exports.createAuthenticatedFileServer = require_event_loop_stall_monitor.createAuthenticatedFileServer;
|
|
@@ -96164,6 +96165,7 @@ exports.getWorkerDeviceRegistry = require_manifest_system_deps.getWorkerDeviceRe
|
|
|
96164
96165
|
exports.hasDotNode = hasDotNode;
|
|
96165
96166
|
exports.hashClusterSecret = hashClusterSecret;
|
|
96166
96167
|
exports.heapSpaceField = require_manifest_system_deps.heapSpaceField;
|
|
96168
|
+
exports.hostNodeIdOf = require_manifest_system_deps.hostNodeIdOf;
|
|
96167
96169
|
exports.hubMainRssBudget = require_manifest_system_deps.hubMainRssBudget;
|
|
96168
96170
|
exports.installManifestNativeDeps = require_manifest_system_deps.installManifestNativeDeps;
|
|
96169
96171
|
exports.installManifestPythonDeps = require_manifest_system_deps.installManifestPythonDeps;
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM$1, r as __exportAll, t as __commonJSMin$1 } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { An as expandCapMethods, At as logLevelAtMost, B as addonSettingsCapability, Ct as isVoidInput, D as RUNTIME_DEFAULTS, Dn as createEvent, En as asString$1, Et as lifecycleJobSchema, Fn as parseJsonObject, Ht as procedureAuthKey, In as parseJsonUnknown, Jt as resolveMethodAuth, Ln as readinessKey, On as emitDownForOwnedCaps, Rn as resolveCapMount, Rt as objectInputDeclaresAddonId, Sn as ReadinessTimeoutError, Tn as asNumber, Vn as EventCategory$1, Xt as scopesAllowAddon, Zt as scopesAllowDeviceCap, _ as LOG_LEVEL_RANK, _n as DEVICE_STATUS_METHOD, _t as isArrayOutputSchema, b as METHOD_ACCESS_MAP, bt as isObjectInput, fn as errMsg$1, ft as extractNestedAddonId, gn as DEVICE_SETTINGS_CONTRIBUTION_METHODS, hn as DATAPLANE_SECRET_HEADER$1, jt as looseSchema, t as ALL_CAPABILITY_DEFINITIONS, vt as isCollectionArrayMethod, wn as asJsonObject$1, wt as kebabToCamel, xn as ReadinessRegistry, zn as scopeKey, zt as objectInputDeclaresRequiredDeviceId } from "./dist-BkjMEa2F.mjs";
|
|
3
3
|
import { AlertCenterAddon } from "./builtins/alerts/alerts.addon.mjs";
|
|
4
4
|
import "./builtins/alerts/index.mjs";
|
|
5
5
|
import { t as formatLogLine } from "./formatter-B7qW8bPJ.mjs";
|
|
@@ -26,7 +26,7 @@ import "./builtins/system-config/index.mjs";
|
|
|
26
26
|
import { WinstonDestination, WinstonLoggingAddon } from "./builtins/winston-logging/index.mjs";
|
|
27
27
|
import { _ as fetchJson, a as createFileDataPlaneHandler, c as parseRangeHeader, d as ModelDownloadService, f as collectModelFiles, g as ensureModel, h as downloadModel, i as startEventLoopStallMonitor, l as parseTokenizedUrl, m as downloadFile, n as STALL_TICK_MS, o as contentTypeFor, p as deleteModelFromDisk, r as attributeStall, s as createAuthenticatedFileServer, t as STALL_REPORT_MS, u as resolveFilePath, v as getModelFilePath, y as isModelDownloaded } from "./event-loop-stall-monitor-GPrVvx14.mjs";
|
|
28
28
|
import { C as registerLanHttpHandler, S as readLanHttpState, _ as DEFAULT_LAN_HTTP_PORT, a as writeTlsMode, b as bindPendingLanHttp, c as loadTlsCert, d as collectCertIdentity, f as CA_VALIDITY_DAYS, g as evaluateExistingCert, h as SERVER_AUTH_OID, i as writeExtraSans, l as reissueTlsLeaf, m as MAX_LEAF_VALIDITY_DAYS, n as readTlsAccessStatus, o as validateUploadedTls, p as LEAF_RENEWAL_WINDOW_DAYS, r as readTlsMode, s as ensureTlsCert, t as readExtraSans, u as CA_COMMON_NAME, v as allFamiliesListenHost, x as closeLanHttp, y as applyLanHttp } from "./tls-IM-v7JV4.mjs";
|
|
29
|
-
import { $ as buildNativeCapProxy, $t as
|
|
29
|
+
import { $ as buildNativeCapProxy, $t as strandedMb, A as createUdsLogger, An as readSocketQueues, At as HEAP_RECLAIM_TRIGGER_MB, B as UDS_NO_ROUTE_PREFIX, Bn as MAX_CAP_ACTIONS_PER_PEER, Bt as ZERO_LOOP_DELAY, C as deviceCapResolverLink, Cn as EMPTY_SOCKET_PLANE_BASELINE, Ct as resolveNpmInvocation, D as createUdsEventBridge, Dn as createSocketPlaneReader, Dt as createAddonDataPlaneFacility, E as createParentUnownedCallHandler, En as createSocketPlaneMeter, Et as hostNodeIdOf, F as callWithServiceDiscovery, Fn as socketDirectionBytes, Ft as HUB_RSS_BUDGET_ENV, G as getCapUsageRegistry, Gn as createEventPlaneMeter, Gt as describeRss, H as CapUsageRegistry, Hn as createCapActionCensus, Ht as createDeferredHeapWatchSink, I as CapRouteError, In as socketDirectionMessages, It as RSS_BUDGET_REANNOUNCE_MIN_MS, J as UdsLocalTransportServer, Jn as formatEventPlane, Jt as parseRssBudgetMb, K as createLocalTransport, Kn as createEventPlaneReader, Kt as hubMainRssBudget, L as classifyCapRoute, Ln as CAP_ACTION_OVERFLOW_LABEL, Lt as RSS_BUDGET_RELEASE_RATIO, M as AGENT_CAP_FWD_ACTION, Mn as createSocketDirectionCounters, Mt as HEAP_WATCH_WARN_RATIO, N as AGENT_CAP_FWD_SERVICE, Nn as recordSocketFrame, Nt as HUB_MAIN_HEAP_WATCH_LABEL, O as createUdsEventBus, On as diffSocketPlane, Ot as HEAP_RECLAIM_MIN_INTERVAL_MS, P as CapRouteResolver, Pn as sampleSocketDirection, Pt as HUB_MAIN_RSS_BUDGET_MB, Q as encodeFrame, Qt as startRunnerHeapWatch, R as LocalChildClient, Rn as CAP_ACTION_UNLABELLED, Rt as RUNNER_HEAP_WATCH_INTERVAL_MS, S as buildLinkChain, Sn as formatMeshQueue, St as buildNpmChildEnv, T as localProviderLink, Tn as SOCKET_QUEUE_TOP_N, Tt as createAddonPeerBytesFacility, U as PARENT_ROUTED_PROVIDER_ADDON_ID, Un as diffCapActionCensus, Ut as createLoopDelayMeter, V as readMoleculerFanoutMode, Vn as capActionLabel, Vt as buildHeapSample, W as __resetCapUsageRegistryForTests, Wn as EVENT_PLANE_TOP_N, Wt as createV8Reclaimer, X as localEndpointPath, Xt as shouldReclaim, Y as SocketChannel, Yt as reclaimIntervalMs, Z as FrameDecoder, Zt as startHeapWatch, _ as AddonDepsManager, _n as OUTBOUND_QUEUE_THRESHOLD_BYTES, _t as CapabilityHandle, a as createUdsAddonContext, an as createInspectorArrayBufferCensus, b as brokerCallForCap, bn as MESH_QUEUE_TOP_N, bt as installManifestNativeDeps, c as getOrInitReadinessRegistryForClient, cn as DECISIVE_HEAP_SPACES, ct as NATIVE_PROVIDER_SERVICE_INFIX, d as clusterEventTopic, dn as formatHeapSpaces, dt as capBareAction, en as ARRAY_BUFFER_CENSUS_COOLDOWN_MS, et as buildUdsNativeCapProxy, f as getBrokerEventBus, fn as heapSpaceField, ft as capServiceName, g as subscribePassthrough, gn as OUTBOUND_QUEUE_SUSTAIN_MS, gt as DeviceRegistry, h as setNodeEventInterest, hn as OUTBOUND_QUEUE_COOLDOWN_MS, ht as serializeTypedArrays, i as createAddonContext, in as createArrayBufferCensusGate, it as mountNativeCapService, j as createUdsLoggerWithControl, jn as EMPTY_SOCKET_DIRECTION, jt as HEAP_WATCH_INTERVAL_MS, k as udsChildLogToWorkerEntry, kn as formatSocketPlane, kt as HEAP_RECLAIM_STEADY_STATE_INTERVAL_MS, l as setHubConnected, ln as HEAP_SPACE_REPORT_MIN_MB, lt as capActionName, m as registerEventBusService, mn as selectReportedSpaces, mt as deserializeTypedArrays, n as installManifestPythonDeps, nn as ARRAY_BUFFER_CENSUS_THRESHOLD_MB, o as getWorkerDeviceRegistry, on as formatArrayBufferCensus, ot as createAddonService, p as getMoleculerEventStats, pn as readHeapSpaces, pt as parseCapAction, q as UdsLocalTransportClient, qn as diffEventPlane, qt as nextRssBudgetState, r as adaptBrokerToCluster, rn as ARRAY_BUFFER_RELEASE_MIN_DROP_RATIO, s as getOrInitReadinessRegistry, sn as isArrayBufferCensusReport, st as validateProviderRegistrations, t as installManifestSystemDeps, tn as ARRAY_BUFFER_CENSUS_SUSTAIN_MS, tt as createBrokerDeviceManagerApi, u as EVENT_TOPIC_PREFIX, un as emitHeapDiagnosticReport, ut as capActionSuffix, v as createKernelHwAccel, vn as createOutboundQueueGate, vt as CapabilityUnavailableError, w as ipcParentLink, wn as SOCKET_PLANE_TOP_N, wt as runNpm, x as brokerTransportLink, xn as createMeshQueueReader, xt as resolveAddonClass, y as resolveHwAccel, yn as formatOutboundQueueVerdict, yt as copyBundledNativeModules, z as LocalChildRegistry, zn as EMPTY_CAP_ACTION_READING, zt as RUNNER_RSS_BUDGET_ENV } from "./manifest-system-deps-D_5UXqDb.mjs";
|
|
30
30
|
import { n as getSinglePidStats, t as getPidStats } from "./resource-monitor-Vp0bPV3U.mjs";
|
|
31
31
|
import { t as CustomActionRegistry } from "./custom-action-registry-B4Cf4O_X.mjs";
|
|
32
32
|
import { z } from "zod";
|
|
@@ -44,8 +44,8 @@ import { promisify } from "node:util";
|
|
|
44
44
|
import { request } from "node:http";
|
|
45
45
|
import * as vm from "node:vm";
|
|
46
46
|
import { asJsonObject, errMsg } from "@camstack/types/addon";
|
|
47
|
-
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
48
47
|
import { EventEmitter } from "node:events";
|
|
48
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
49
49
|
import As from "node:stream";
|
|
50
50
|
import { StringDecoder } from "node:string_decoder";
|
|
51
51
|
import { lstatSync, readdir as readdir$1, readdirSync as readdirSync$1, readlinkSync, realpathSync } from "fs";
|
|
@@ -95829,4 +95829,4 @@ var LifecycleJobEngine = class {
|
|
|
95829
95829
|
}
|
|
95830
95830
|
};
|
|
95831
95831
|
//#endregion
|
|
95832
|
-
export { AGENT_CAP_FWD_ACTION, AGENT_CAP_FWD_SERVICE, AGENT_READINESS_SERVICE_NAME, ALL_CAPABILITY_DEFINITIONS, ARRAY_BUFFER_CENSUS_COOLDOWN_MS, ARRAY_BUFFER_CENSUS_SUSTAIN_MS, ARRAY_BUFFER_CENSUS_THRESHOLD_MB, ARRAY_BUFFER_RELEASE_MIN_DROP_RATIO, AddonApiFactory, AddonDepsManager, AddonEngineManager, AddonHealthMonitor, AddonInstaller, AddonLoader, AddonManifest, AddonRouteRegistry, AlertCenterAddon, ApiKeyManager, AuthManager, CAP_ACTION_OVERFLOW_LABEL, CAP_ACTION_UNLABELLED, CA_COMMON_NAME, CA_VALIDITY_DAYS, CLUSTER_SECRET_MISMATCH_TYPE, CLUSTER_SECRET_REJECTED_EXIT_CODE, CORE_CAP_SERVICE_NAME, CapRouteError, CapRouteResolver, CapUsageRegistry, CapabilityHandle, CapabilityRegistry, CapabilityUnavailableError, ConfigManager, ConfigStore, ConsoleDestination, ConsoleLoggingAddon, CoreBlocksAddon, CustomActionRegistry, DECISIVE_HEAP_SPACES, DEFAULT_DATA_PATH, DEFAULT_LAN_HTTP_PORT, DEFAULT_LOG_LEVEL, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATUS_METHOD, DataPlaneRegistry, DeviceManagerAddon, DeviceRegistry, DeviceStore, EMPTY_CAP_ACTION_READING, EMPTY_SOCKET_DIRECTION, EMPTY_SOCKET_PLANE_BASELINE, EVENT_PLANE_TOP_N, EVENT_TOPIC_PREFIX, EngineManagerResolver, EventBus, FeatureManager, FilesystemStorageAddon, FilesystemStorageProvider, FrameDecoder, FsStorageBackend, HEALTH_MONITOR_GRACE_PERIOD_MS, HEALTH_MONITOR_RETRY_INTERVALS_MS, HEALTH_MONITOR_TICK_MS, HEAP_RECLAIM_MIN_INTERVAL_MS, HEAP_RECLAIM_STEADY_STATE_INTERVAL_MS, HEAP_RECLAIM_TRIGGER_MB, HEAP_SPACE_REPORT_MIN_MB, HEAP_WATCH_INTERVAL_MS, HEAP_WATCH_WARN_RATIO, HUB_CAP_FWD_ACTION, HUB_CAP_FWD_SERVICE, HUB_MAIN_HEAP_WATCH_LABEL, HUB_MAIN_RSS_BUDGET_MB, HUB_RSS_BUDGET_ENV, HubForwarderAddon, HubForwarderDestination, HubLogForwarder, HubNodeRegistry, INFRA_CAPABILITIES, IntegrationRegistry, JobJournal, LEAF_RENEWAL_WINDOW_DAYS, LifecycleJobEngine, LifecycleStateMachine, LivenessMonitorAddon, LocalAuthAddon, LocalChildClient, LocalChildRegistry, LogManager, LogRingBuffer, LoggingGate, LokiDestination, LokiLoggingAddon, MAX_CAP_ACTIONS_PER_PEER, MAX_LEAF_VALIDITY_DAYS, MESH_QUEUE_TOP_N, METHOD_ACCESS_MAP, ModelDownloadService, NATIVE_PROVIDER_SERVICE_INFIX, NATIVE_SCAN_DEPTH, NativeMetricsAddon, NativeMetricsProvider, NetworkQualityTracker, NotificationService, OUTBOUND_QUEUE_COOLDOWN_MS, OUTBOUND_QUEUE_SUSTAIN_MS, OUTBOUND_QUEUE_THRESHOLD_BYTES, PARENT_ROUTED_PROVIDER_ADDON_ID, PYTHON_VERSION, PipelineRunner, PipelineValidator, PythonEnvManager, QUARANTINE_DIRNAME, RESTART_MARKER_FILE, RSS_BUDGET_REANNOUNCE_MIN_MS, RSS_BUDGET_RELEASE_RATIO, RUNNER_HEAP_WATCH_INTERVAL_MS, RUNNER_RSS_BUDGET_ENV, RUNTIME_DEFAULTS, ReadinessRegistry, ReadinessTimeoutError, ReplEngine, RingBuffer, SERVER_AUTH_OID, SOCKET_PLANE_TOP_N, SOCKET_QUEUE_TOP_N, STALL_REPORT_MS, STALL_TICK_MS, ScopedLogger, ScopedTokenManager, SocketChannel, SqliteSettingsAddon, SqliteSettingsBackend, StagingArea, StorageLocationManager, StorageManager, StorageOrchestratorAddon, StorageOrchestratorService, SystemConfigAddon, SystemEventBus, TRADITIONAL_NATIVE_PACKAGES, ToastService, UDS_NO_ROUTE_PREFIX, UdsLocalTransportClient, UdsLocalTransportServer, UserManager, WinstonDestination, WinstonLoggingAddon, ZERO_LOOP_DELAY, __resetCapUsageRegistryForTests, __resetLoggingGateForTests, adaptBrokerToCluster, addonSettingsCapability, allFamiliesListenHost, applyLanHttp, attributeStall, bindPendingLanHttp, bootstrapSchema, brokerCallForCap, brokerTransportLink, buildBinaryPath, buildCapRouters, buildHeapSample, buildLinkChain, buildNativeCapProxy, buildNodeManifest, buildNpmChildEnv, buildStorageLocationRegistry, buildUdsNativeCapProxy, builderMountedCapNames, callRegisterNodeWithRetry, callWithServiceDiscovery, canServeDataPlane, capActionLabel, capActionName, capActionSuffix, capBareAction, capServiceName, classifyAddonDir, classifyCapRoute, clearPendingRestart, closeLanHttp, clusterEventTopic, clusterSecretMatches, collectCertIdentity, collectModelFiles, contentTypeFor, copyDirRecursive, copyExtraFileDirs, createAddonContext, createAddonDataPlaneFacility, createAddonService, createArrayBufferCensusGate, createAuthenticatedFileServer, createBroker, createBrokerDeviceManagerApi, createCapActionCensus, createCoreCapService, createDeferredHeapWatchSink, createDoorSettingsView, createEventPlaneMeter, createEventPlaneReader, createFileDataPlaneHandler, createHubCapForwardService, createHubService, createInspectorArrayBufferCensus, createKernelHwAccel, createLocalTransport, createLoopDelayMeter, createMeshQueueReader, createOutboundQueueGate, createParentUnownedCallHandler, createProcessService, createReadinessService, createReadinessServiceForRegistry, createScopedProcessManager, createSocketDirectionCounters, createSocketPlaneMeter, createSocketPlaneReader, createStreamProbeBrokerService, createUdsAddonContext, createUdsEventBridge, createUdsEventBus, createUdsLogger, createUdsLoggerWithControl, createV8Reclaimer, deleteModelFromDisk, deriveAgentListenPort, describeProviderKindDrift, describeRss, detectWorkspacePackagesDir, deviceCapResolverLink, diffCapActionCensus, diffEventPlane, diffSocketPlane, downloadBinary, downloadFile, downloadModel, emitDownForOwnedCaps, emitHeapDiagnosticReport, encodeFrame, ensureAddonNativePrebuilds, ensureBinary, ensureDir, ensureFfmpeg, ensureLibraryBuilt, ensureModel, ensureNativePrebuilds, ensurePython, ensureTlsCert, evaluateExistingCert, expandCapMethods, fetchJson, findInPath, formatArrayBufferCensus, formatEventPlane, formatHeapSpaces, formatLogLine, formatMeshQueue, formatOutboundQueueVerdict, formatSocketPlane, getBrokerEventBus, getCapUsageRegistry, getFfmpegDownloadUrl, getLoggingGate, getModelFilePath, getMoleculerEventStats, getOrInitReadinessRegistry, getOrInitReadinessRegistryForClient, getPidStats, getPlatformInfo, getPythonDownloadUrl, getRestartMarkerPath, getSinglePidStats, getWorkerDeviceRegistry, hasDotNode, hashClusterSecret, heapSpaceField, hubMainRssBudget, installManifestNativeDeps, installManifestPythonDeps, installManifestSystemDeps, installPackageFromNpm, installPythonPackages, installPythonRequirements, ipcParentLink, isAddonDeploySource, isArrayBufferCensusReport, isArrayOutputSchema, isClusterSecretMismatchError, isCollectionArrayMethod, isInfraCapability, isModelDownloaded, isSourceNewer, isolatedBuiltinPhase, loadTlsCert, localEndpointPath, localProviderLink, mountNativeCapService, nextRssBudgetState, parseCapAction, parseRangeHeader, parseRssBudgetMb, parseTokenizedUrl, partitionIsolatedBuiltinIds, proxyToUpstream, quarantineAddonResidue, readExtraSans, readHeapSpaces, readLanHttpState, readMoleculerFanoutMode, readPendingRestart, readSocketQueues, readTlsAccessStatus, readTlsMode, readinessKey, reclaimIntervalMs, recordSocketFrame, registerEventBusService, registerLanHttpHandler, reissueTlsLeaf, resolveFilePath, resolveHwAccel, resolveNpmInvocation, runHubAddonBoot, runNpm, sampleSocketDirection, scheduleSelfRestart, scopeKey, scopesAllowAddon, scopesAllowDeviceCap, selectAddonResidue, selectReportedSpaces, serializeTypedArrays, setHubConnected, setNodeEventInterest, setWrapperActive, shouldReclaim, socketDirectionBytes, socketDirectionMessages, startEventLoopStallMonitor, startHeapWatch, startRunnerHeapWatch, strandedMb, stripCamstackDeps, subscribePassthrough, udsChildLogToWorkerEntry, validateProviderRegistrations, validateUploadedTls, waitUntilReady, writeExtraSans, writePendingRestart, writeTlsMode };
|
|
95832
|
+
export { AGENT_CAP_FWD_ACTION, AGENT_CAP_FWD_SERVICE, AGENT_READINESS_SERVICE_NAME, ALL_CAPABILITY_DEFINITIONS, ARRAY_BUFFER_CENSUS_COOLDOWN_MS, ARRAY_BUFFER_CENSUS_SUSTAIN_MS, ARRAY_BUFFER_CENSUS_THRESHOLD_MB, ARRAY_BUFFER_RELEASE_MIN_DROP_RATIO, AddonApiFactory, AddonDepsManager, AddonEngineManager, AddonHealthMonitor, AddonInstaller, AddonLoader, AddonManifest, AddonRouteRegistry, AlertCenterAddon, ApiKeyManager, AuthManager, CAP_ACTION_OVERFLOW_LABEL, CAP_ACTION_UNLABELLED, CA_COMMON_NAME, CA_VALIDITY_DAYS, CLUSTER_SECRET_MISMATCH_TYPE, CLUSTER_SECRET_REJECTED_EXIT_CODE, CORE_CAP_SERVICE_NAME, CapRouteError, CapRouteResolver, CapUsageRegistry, CapabilityHandle, CapabilityRegistry, CapabilityUnavailableError, ConfigManager, ConfigStore, ConsoleDestination, ConsoleLoggingAddon, CoreBlocksAddon, CustomActionRegistry, DECISIVE_HEAP_SPACES, DEFAULT_DATA_PATH, DEFAULT_LAN_HTTP_PORT, DEFAULT_LOG_LEVEL, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATUS_METHOD, DataPlaneRegistry, DeviceManagerAddon, DeviceRegistry, DeviceStore, EMPTY_CAP_ACTION_READING, EMPTY_SOCKET_DIRECTION, EMPTY_SOCKET_PLANE_BASELINE, EVENT_PLANE_TOP_N, EVENT_TOPIC_PREFIX, EngineManagerResolver, EventBus, FeatureManager, FilesystemStorageAddon, FilesystemStorageProvider, FrameDecoder, FsStorageBackend, HEALTH_MONITOR_GRACE_PERIOD_MS, HEALTH_MONITOR_RETRY_INTERVALS_MS, HEALTH_MONITOR_TICK_MS, HEAP_RECLAIM_MIN_INTERVAL_MS, HEAP_RECLAIM_STEADY_STATE_INTERVAL_MS, HEAP_RECLAIM_TRIGGER_MB, HEAP_SPACE_REPORT_MIN_MB, HEAP_WATCH_INTERVAL_MS, HEAP_WATCH_WARN_RATIO, HUB_CAP_FWD_ACTION, HUB_CAP_FWD_SERVICE, HUB_MAIN_HEAP_WATCH_LABEL, HUB_MAIN_RSS_BUDGET_MB, HUB_RSS_BUDGET_ENV, HubForwarderAddon, HubForwarderDestination, HubLogForwarder, HubNodeRegistry, INFRA_CAPABILITIES, IntegrationRegistry, JobJournal, LEAF_RENEWAL_WINDOW_DAYS, LifecycleJobEngine, LifecycleStateMachine, LivenessMonitorAddon, LocalAuthAddon, LocalChildClient, LocalChildRegistry, LogManager, LogRingBuffer, LoggingGate, LokiDestination, LokiLoggingAddon, MAX_CAP_ACTIONS_PER_PEER, MAX_LEAF_VALIDITY_DAYS, MESH_QUEUE_TOP_N, METHOD_ACCESS_MAP, ModelDownloadService, NATIVE_PROVIDER_SERVICE_INFIX, NATIVE_SCAN_DEPTH, NativeMetricsAddon, NativeMetricsProvider, NetworkQualityTracker, NotificationService, OUTBOUND_QUEUE_COOLDOWN_MS, OUTBOUND_QUEUE_SUSTAIN_MS, OUTBOUND_QUEUE_THRESHOLD_BYTES, PARENT_ROUTED_PROVIDER_ADDON_ID, PYTHON_VERSION, PipelineRunner, PipelineValidator, PythonEnvManager, QUARANTINE_DIRNAME, RESTART_MARKER_FILE, RSS_BUDGET_REANNOUNCE_MIN_MS, RSS_BUDGET_RELEASE_RATIO, RUNNER_HEAP_WATCH_INTERVAL_MS, RUNNER_RSS_BUDGET_ENV, RUNTIME_DEFAULTS, ReadinessRegistry, ReadinessTimeoutError, ReplEngine, RingBuffer, SERVER_AUTH_OID, SOCKET_PLANE_TOP_N, SOCKET_QUEUE_TOP_N, STALL_REPORT_MS, STALL_TICK_MS, ScopedLogger, ScopedTokenManager, SocketChannel, SqliteSettingsAddon, SqliteSettingsBackend, StagingArea, StorageLocationManager, StorageManager, StorageOrchestratorAddon, StorageOrchestratorService, SystemConfigAddon, SystemEventBus, TRADITIONAL_NATIVE_PACKAGES, ToastService, UDS_NO_ROUTE_PREFIX, UdsLocalTransportClient, UdsLocalTransportServer, UserManager, WinstonDestination, WinstonLoggingAddon, ZERO_LOOP_DELAY, __resetCapUsageRegistryForTests, __resetLoggingGateForTests, adaptBrokerToCluster, addonSettingsCapability, allFamiliesListenHost, applyLanHttp, attributeStall, bindPendingLanHttp, bootstrapSchema, brokerCallForCap, brokerTransportLink, buildBinaryPath, buildCapRouters, buildHeapSample, buildLinkChain, buildNativeCapProxy, buildNodeManifest, buildNpmChildEnv, buildStorageLocationRegistry, buildUdsNativeCapProxy, builderMountedCapNames, callRegisterNodeWithRetry, callWithServiceDiscovery, canServeDataPlane, capActionLabel, capActionName, capActionSuffix, capBareAction, capServiceName, classifyAddonDir, classifyCapRoute, clearPendingRestart, closeLanHttp, clusterEventTopic, clusterSecretMatches, collectCertIdentity, collectModelFiles, contentTypeFor, copyDirRecursive, copyExtraFileDirs, createAddonContext, createAddonDataPlaneFacility, createAddonPeerBytesFacility, createAddonService, createArrayBufferCensusGate, createAuthenticatedFileServer, createBroker, createBrokerDeviceManagerApi, createCapActionCensus, createCoreCapService, createDeferredHeapWatchSink, createDoorSettingsView, createEventPlaneMeter, createEventPlaneReader, createFileDataPlaneHandler, createHubCapForwardService, createHubService, createInspectorArrayBufferCensus, createKernelHwAccel, createLocalTransport, createLoopDelayMeter, createMeshQueueReader, createOutboundQueueGate, createParentUnownedCallHandler, createProcessService, createReadinessService, createReadinessServiceForRegistry, createScopedProcessManager, createSocketDirectionCounters, createSocketPlaneMeter, createSocketPlaneReader, createStreamProbeBrokerService, createUdsAddonContext, createUdsEventBridge, createUdsEventBus, createUdsLogger, createUdsLoggerWithControl, createV8Reclaimer, deleteModelFromDisk, deriveAgentListenPort, describeProviderKindDrift, describeRss, detectWorkspacePackagesDir, deviceCapResolverLink, diffCapActionCensus, diffEventPlane, diffSocketPlane, downloadBinary, downloadFile, downloadModel, emitDownForOwnedCaps, emitHeapDiagnosticReport, encodeFrame, ensureAddonNativePrebuilds, ensureBinary, ensureDir, ensureFfmpeg, ensureLibraryBuilt, ensureModel, ensureNativePrebuilds, ensurePython, ensureTlsCert, evaluateExistingCert, expandCapMethods, fetchJson, findInPath, formatArrayBufferCensus, formatEventPlane, formatHeapSpaces, formatLogLine, formatMeshQueue, formatOutboundQueueVerdict, formatSocketPlane, getBrokerEventBus, getCapUsageRegistry, getFfmpegDownloadUrl, getLoggingGate, getModelFilePath, getMoleculerEventStats, getOrInitReadinessRegistry, getOrInitReadinessRegistryForClient, getPidStats, getPlatformInfo, getPythonDownloadUrl, getRestartMarkerPath, getSinglePidStats, getWorkerDeviceRegistry, hasDotNode, hashClusterSecret, heapSpaceField, hostNodeIdOf, hubMainRssBudget, installManifestNativeDeps, installManifestPythonDeps, installManifestSystemDeps, installPackageFromNpm, installPythonPackages, installPythonRequirements, ipcParentLink, isAddonDeploySource, isArrayBufferCensusReport, isArrayOutputSchema, isClusterSecretMismatchError, isCollectionArrayMethod, isInfraCapability, isModelDownloaded, isSourceNewer, isolatedBuiltinPhase, loadTlsCert, localEndpointPath, localProviderLink, mountNativeCapService, nextRssBudgetState, parseCapAction, parseRangeHeader, parseRssBudgetMb, parseTokenizedUrl, partitionIsolatedBuiltinIds, proxyToUpstream, quarantineAddonResidue, readExtraSans, readHeapSpaces, readLanHttpState, readMoleculerFanoutMode, readPendingRestart, readSocketQueues, readTlsAccessStatus, readTlsMode, readinessKey, reclaimIntervalMs, recordSocketFrame, registerEventBusService, registerLanHttpHandler, reissueTlsLeaf, resolveFilePath, resolveHwAccel, resolveNpmInvocation, runHubAddonBoot, runNpm, sampleSocketDirection, scheduleSelfRestart, scopeKey, scopesAllowAddon, scopesAllowDeviceCap, selectAddonResidue, selectReportedSpaces, serializeTypedArrays, setHubConnected, setNodeEventInterest, setWrapperActive, shouldReclaim, socketDirectionBytes, socketDirectionMessages, startEventLoopStallMonitor, startHeapWatch, startRunnerHeapWatch, strandedMb, stripCamstackDeps, subscribePassthrough, udsChildLogToWorkerEntry, validateProviderRegistrations, validateUploadedTls, waitUntilReady, writeExtraSans, writePendingRestart, writeTlsMode };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AddonPeerBytes, IScopedLogger } from '@camstack/types';
|
|
2
|
+
export interface AddonPeerBytesFacility {
|
|
3
|
+
readonly peerBytes: AddonPeerBytes;
|
|
4
|
+
dispose(): Promise<void>;
|
|
5
|
+
}
|
|
6
|
+
export interface AddonPeerBytesFacilityArgs {
|
|
7
|
+
readonly addonId: string;
|
|
8
|
+
readonly logger: IScopedLogger;
|
|
9
|
+
/**
|
|
10
|
+
* This process's node id. A runner's is `<hostNode>/<runnerId>`
|
|
11
|
+
* (`addon-runner.ts`), so the HOST — the only thing loopback reachability is
|
|
12
|
+
* a fact about — is the part before the first slash.
|
|
13
|
+
*/
|
|
14
|
+
readonly nodeId: string;
|
|
15
|
+
/** Loopback, and only loopback, in production. */
|
|
16
|
+
readonly host?: string;
|
|
17
|
+
readonly now?: () => number;
|
|
18
|
+
readonly ttlMs?: number;
|
|
19
|
+
readonly maxOutstanding?: number;
|
|
20
|
+
readonly stallMs?: number;
|
|
21
|
+
}
|
|
22
|
+
/** The HOST a node id belongs to. `hub` → `hub`; `hub/runner-3` → `hub`. */
|
|
23
|
+
export declare function hostNodeIdOf(nodeId: string): string;
|
|
24
|
+
export declare function createAddonPeerBytesFacility(args: AddonPeerBytesFacilityArgs): AddonPeerBytesFacility;
|