@camstack/addon-remote-storage 1.2.37 → 1.2.40
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/s3.addon.js +1 -1
- package/dist/s3.addon.mjs +1 -1
- package/dist/sftp.addon.js +1 -1
- package/dist/sftp.addon.mjs +1 -1
- package/dist/{shared-Bo03e3ba.mjs → shared-CBMUP4jc.mjs} +205 -5
- package/dist/{shared-OO8jwvqy.js → shared-kn1YUYmb.js} +205 -5
- package/dist/webdav.addon.js +1 -1
- package/dist/webdav.addon.mjs +1 -1
- package/package.json +1 -1
package/dist/s3.addon.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_shared = require("./shared-
|
|
5
|
+
const require_shared = require("./shared-kn1YUYmb.js");
|
|
6
6
|
let node_stream = require("node:stream");
|
|
7
7
|
let _aws_sdk_client_s3 = require("@aws-sdk/client-s3");
|
|
8
8
|
let _aws_sdk_lib_storage = require("@aws-sdk/lib-storage");
|
package/dist/s3.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-
|
|
1
|
+
import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-CBMUP4jc.mjs";
|
|
2
2
|
import { PassThrough } from "node:stream";
|
|
3
3
|
import { DeleteObjectCommand, GetObjectCommand, HeadBucketCommand, HeadObjectCommand, ListObjectsV2Command, PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
|
|
4
4
|
import { Upload } from "@aws-sdk/lib-storage";
|
package/dist/sftp.addon.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_shared = require("./shared-
|
|
5
|
+
const require_shared = require("./shared-kn1YUYmb.js");
|
|
6
6
|
let ssh2 = require("ssh2");
|
|
7
7
|
let node_path = require("node:path");
|
|
8
8
|
node_path = require_shared.__toESM(node_path);
|
package/dist/sftp.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-
|
|
1
|
+
import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-CBMUP4jc.mjs";
|
|
2
2
|
import { Client } from "ssh2";
|
|
3
3
|
import * as path from "node:path";
|
|
4
4
|
//#region src/providers/sftp/sftp-config-schema.ts
|
|
@@ -13188,6 +13188,114 @@ method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
|
|
|
13188
13188
|
limit: number().optional(),
|
|
13189
13189
|
tags: record(string(), string()).optional()
|
|
13190
13190
|
}), array(LogEntrySchema).readonly());
|
|
13191
|
+
/**
|
|
13192
|
+
* `failure-contribution` — the capability an addon reports its OWN losses
|
|
13193
|
+
* through, per camera, with the denominator attached. It stores nothing.
|
|
13194
|
+
*
|
|
13195
|
+
* ## The twin of `load-contribution`, and why it is a twin and not a field
|
|
13196
|
+
*
|
|
13197
|
+
* `load-contribution` answers *what did this camera COST*. This answers *what
|
|
13198
|
+
* did this camera LOSE*. The reporting discipline is identical and deliberately
|
|
13199
|
+
* copied: the contributor reports what it already knows, hub-main adds only
|
|
13200
|
+
* `addonId`, nothing needs global knowledge, and there is no central list for
|
|
13201
|
+
* somebody to forget to edit.
|
|
13202
|
+
*
|
|
13203
|
+
* They are not merged, because their invariants are opposites:
|
|
13204
|
+
*
|
|
13205
|
+
* - a `load-contribution` measurement is **absent, never zero** — a zero would
|
|
13206
|
+
* claim a camera cost nothing, which is a measurement nobody made;
|
|
13207
|
+
* - a `failure-contribution` zero is the **most valuable value on the
|
|
13208
|
+
* surface** — `attempts: 400, succeeded: 400` is the proof a fix landed,
|
|
13209
|
+
* and it is exactly what an absent entry cannot say.
|
|
13210
|
+
*
|
|
13211
|
+
* Putting a loss counter on a cost entry would also break the reconciliation
|
|
13212
|
+
* that gives `load-contribution` its point: contributions are subtracted from
|
|
13213
|
+
* `metrics.node-processes-snapshot` to find processes nobody claims. A failure
|
|
13214
|
+
* has no process.
|
|
13215
|
+
*
|
|
13216
|
+
* ## Why not a log line, since the counters already exist
|
|
13217
|
+
*
|
|
13218
|
+
* Several of these paths already counted themselves — `CaptureScheduler`'s
|
|
13219
|
+
* per-device window, `KeyFrameCaptureLog`, `bumpCropMetric`. Every one of them
|
|
13220
|
+
* ends in a log line, and a log line is the thing the operator asked to stop
|
|
13221
|
+
* needing: *"possiamo armare questi errori intanto? Così al prossimo giro
|
|
13222
|
+
* ricontrolliamo tutti questi punti"*. Reading them meant grepping Loki and
|
|
13223
|
+
* hand-correlating timestamps, which is how a 22% thumbnail gap and a 3-hour
|
|
13224
|
+
* media blackout were both diagnosed. The counters stay; this is where they can
|
|
13225
|
+
* be READ.
|
|
13226
|
+
*
|
|
13227
|
+
* ## The rate is served with its denominator or not at all
|
|
13228
|
+
*
|
|
13229
|
+
* Every entry carries `attempts` and `succeeded`. A miss count alone is
|
|
13230
|
+
* unreadable: on 2026-08-28 the enrichment-crop miss count read as "35x worse
|
|
13231
|
+
* than yesterday" and was **flat across twelve hours** once divided by the
|
|
13232
|
+
* successes on the same path. A surface that publishes only the numerator
|
|
13233
|
+
* reproduces that mistake on every read.
|
|
13234
|
+
*
|
|
13235
|
+
* ## Shape
|
|
13236
|
+
*
|
|
13237
|
+
* Copied from `load-contribution.cap.ts` (`mode: 'collection'`,
|
|
13238
|
+
* `internal: true`, `mount: { kind: 'skip' }`): no tRPC route of its own and no
|
|
13239
|
+
* generated hooks, while `addons.listCapabilityProviders` still enumerates it
|
|
13240
|
+
* and the hub's `CapabilityRegistry` still holds an RPC proxy per provider — so
|
|
13241
|
+
* a forked runner's entries reach hub-main over transport that already exists.
|
|
13242
|
+
* No new UDS message, no second registry (D3). The operator reads the assembled
|
|
13243
|
+
* result through `system.getFailureContributions`.
|
|
13244
|
+
*/
|
|
13245
|
+
var FailureReasonCountSchema = object({
|
|
13246
|
+
/**
|
|
13247
|
+
* Why the attempt did not land, in the contributor's own vocabulary —
|
|
13248
|
+
* `worker-lease-gone`, `queue-overflow`, `timeout`, `empty-read`. The same
|
|
13249
|
+
* strings that already appear in this repo's logs and, where one exists, the
|
|
13250
|
+
* same string the per-track `previewMissReason` records (D276): a second
|
|
13251
|
+
* vocabulary for the same loss would make the row and the counter
|
|
13252
|
+
* un-joinable.
|
|
13253
|
+
*/
|
|
13254
|
+
reason: string(),
|
|
13255
|
+
count: number().int().nonnegative()
|
|
13256
|
+
});
|
|
13257
|
+
var FailureContributionSchema = object({
|
|
13258
|
+
/**
|
|
13259
|
+
* The failing path — `enrichment-crop`, `inference`, `plate-ocr`,
|
|
13260
|
+
* `person-over-vehicle`. Free text, for the reason `load-contribution` keeps
|
|
13261
|
+
* `unit` free: the families are owned by different addons and a shared enum
|
|
13262
|
+
* is a central list that rots invisibly.
|
|
13263
|
+
*/
|
|
13264
|
+
family: string(),
|
|
13265
|
+
/**
|
|
13266
|
+
* The NUMERIC device id — the same value every log line carries as
|
|
13267
|
+
* `tags.deviceId`. Never nullable and never absent: a contributor that
|
|
13268
|
+
* cannot name the camera must not emit the entry, because a fleet total
|
|
13269
|
+
* cannot answer the only question anybody asks of this surface.
|
|
13270
|
+
*/
|
|
13271
|
+
deviceId: number().int().positive(),
|
|
13272
|
+
/**
|
|
13273
|
+
* A second dimension inside the family: the model / step id for an inference
|
|
13274
|
+
* timeout, so "which camera AND which model" is one read. Absent when the
|
|
13275
|
+
* family has a single variant.
|
|
13276
|
+
*/
|
|
13277
|
+
variant: string().optional(),
|
|
13278
|
+
/**
|
|
13279
|
+
* Epoch ms this counter started — the INCARNATION MARKER. A consumer
|
|
13280
|
+
* differencing two reads must drop the interval when it changes, because the
|
|
13281
|
+
* counter restarted from zero in a respawned runner. Same discipline as
|
|
13282
|
+
* `LoadContribution.startedAtMs`.
|
|
13283
|
+
*/
|
|
13284
|
+
sinceMs: number(),
|
|
13285
|
+
/** Epoch ms it was read. `atMs - sinceMs` is the interval this covers. */
|
|
13286
|
+
atMs: number(),
|
|
13287
|
+
/**
|
|
13288
|
+
* THE DENOMINATOR — every attempt on this path for this camera in the
|
|
13289
|
+
* window. A failure count published without it is the mistake this schema
|
|
13290
|
+
* exists to make impossible.
|
|
13291
|
+
*/
|
|
13292
|
+
attempts: number().int().nonnegative(),
|
|
13293
|
+
/** Attempts that landed. `attempts - succeeded` is the loss. */
|
|
13294
|
+
succeeded: number().int().nonnegative(),
|
|
13295
|
+
/** The loss, partitioned. Sums to `attempts - succeeded`. */
|
|
13296
|
+
reasons: array(FailureReasonCountSchema).readonly()
|
|
13297
|
+
});
|
|
13298
|
+
method(_void(), array(FailureContributionSchema).readonly());
|
|
13191
13299
|
var LoadContributionSchema = object({
|
|
13192
13300
|
role: _enum([
|
|
13193
13301
|
"decode",
|
|
@@ -13495,6 +13603,50 @@ var NodeProcessSchema = object({
|
|
|
13495
13603
|
/** Wall-clock uptime (seconds). Parsed from `ps etime`. */
|
|
13496
13604
|
uptimeSec: number()
|
|
13497
13605
|
});
|
|
13606
|
+
/**
|
|
13607
|
+
* One retained container-memory reading.
|
|
13608
|
+
*
|
|
13609
|
+
* `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
|
|
13610
|
+
* a second clock: that is what makes "processes sum to X, container says Y"
|
|
13611
|
+
* subtractable per point rather than an eyeballed comparison of two series
|
|
13612
|
+
* sampled at different instants.
|
|
13613
|
+
*
|
|
13614
|
+
* A reduced window keeps the sample with the LARGEST `currentBytes` in each
|
|
13615
|
+
* bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
|
|
13616
|
+
* never coexisted, and a mean would smear away the peak this exists to find.
|
|
13617
|
+
*/
|
|
13618
|
+
var ContainerMemoryPointSchema = object({
|
|
13619
|
+
/** Which hierarchy answered, so a reading is never ambiguous. */
|
|
13620
|
+
source: _enum(["cgroup-v2", "cgroup-v1"]),
|
|
13621
|
+
/** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
|
|
13622
|
+
currentBytes: number(),
|
|
13623
|
+
/** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
|
|
13624
|
+
limitBytes: number().nullable(),
|
|
13625
|
+
/** Anonymous pages: the closest thing to "what the processes allocated". */
|
|
13626
|
+
anonBytes: number().nullable(),
|
|
13627
|
+
/** Page cache. Charged to the cgroup, owned by no process. */
|
|
13628
|
+
fileBytes: number().nullable(),
|
|
13629
|
+
/**
|
|
13630
|
+
* Shared memory — and the field that explained the largest single surprise.
|
|
13631
|
+
* The i915 driver backs GPU buffers with shmem, so an inference pool or a
|
|
13632
|
+
* hardware-decode session holding DRM objects is charged HERE and appears
|
|
13633
|
+
* nowhere in a `ps` scan.
|
|
13634
|
+
*/
|
|
13635
|
+
shmemBytes: number().nullable(),
|
|
13636
|
+
/** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
|
|
13637
|
+
slabBytes: number().nullable(),
|
|
13638
|
+
/**
|
|
13639
|
+
* Shrinkable i915 GEM object bytes, from debugfs.
|
|
13640
|
+
*
|
|
13641
|
+
* **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
|
|
13642
|
+
* component of `currentBytes` and must not be subtracted from it; it says
|
|
13643
|
+
* what put the shmem there, where `shmemBytes` only says how much.
|
|
13644
|
+
*
|
|
13645
|
+
* `null` wherever debugfs is not mounted — which is inside every camstack
|
|
13646
|
+
* container today — and on any node with no Intel GPU.
|
|
13647
|
+
*/
|
|
13648
|
+
gpuShmemBytes: number().nullable()
|
|
13649
|
+
}).extend({ atMs: number() });
|
|
13498
13650
|
var DumpHeapSnapshotInputSchema = object({
|
|
13499
13651
|
/** The addon whose runner should dump a heap snapshot. */
|
|
13500
13652
|
addonId: string() });
|
|
@@ -13558,6 +13710,21 @@ var NodeLoadSeriesSchema = object({
|
|
|
13558
13710
|
/** One entry per function seen in the window, heaviest-first. */
|
|
13559
13711
|
series: array(LoadFunctionSeriesSchema).readonly(),
|
|
13560
13712
|
/**
|
|
13713
|
+
* The CONTAINER's memory over the same window, oldest-first.
|
|
13714
|
+
*
|
|
13715
|
+
* Sits next to `series` rather than in a method of its own because the whole
|
|
13716
|
+
* question is a subtraction: the per-process rows in `series` sum to one
|
|
13717
|
+
* number and this one is another, and an operator who has to issue two calls
|
|
13718
|
+
* to compare them will compare two different instants. Same reader, same
|
|
13719
|
+
* `sinceMs`, same `bucketMs`, same timestamps.
|
|
13720
|
+
*
|
|
13721
|
+
* **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
|
|
13722
|
+
* Mac, a bare-metal host, a container with the hierarchy hidden — reports no
|
|
13723
|
+
* points at all. A zero here would be indistinguishable from a healthy
|
|
13724
|
+
* container and is precisely the lie this field exists to avoid.
|
|
13725
|
+
*/
|
|
13726
|
+
containerMemory: array(ContainerMemoryPointSchema).readonly(),
|
|
13727
|
+
/**
|
|
13561
13728
|
* Width of one returned bucket, in ms. Equals the sampling cadence when no
|
|
13562
13729
|
* reduction was needed — so a caller can always say what one point covers
|
|
13563
13730
|
* without having to know whether it was reduced.
|
|
@@ -17700,6 +17867,20 @@ var TrackSchema = object({
|
|
|
17700
17867
|
* `=== true` and render nothing otherwise — never infer "no rider".
|
|
17701
17868
|
*/
|
|
17702
17869
|
hasRider: boolean().optional(),
|
|
17870
|
+
/**
|
|
17871
|
+
* WHY this track ended without a NATIVE best-shot tile
|
|
17872
|
+
* ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
|
|
17873
|
+
* a composed token line (`no-key-frame capture=keyframe:native-missx4`,
|
|
17874
|
+
* `derive-returned-null tile=standin`, …) written at close and CLEARED by
|
|
17875
|
+
* the late-keyFrame upgrade when a native tile lands after all. The
|
|
17876
|
+
* operator-facing answer to "perché manca l'immagine?" on a track whose
|
|
17877
|
+
* tile is a face/plate stand-in, a raster crop, or an icon.
|
|
17878
|
+
*
|
|
17879
|
+
* **Absent ≠ "missed silently"**: a row written before the column, a hub
|
|
17880
|
+
* that predates the field, and every track whose tile landed native all
|
|
17881
|
+
* omit it. Render nothing when absent.
|
|
17882
|
+
*/
|
|
17883
|
+
previewMissReason: string().optional(),
|
|
17703
17884
|
...TrackFlagFields,
|
|
17704
17885
|
...TrackRetrainFields
|
|
17705
17886
|
});
|
|
@@ -25533,10 +25714,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
25533
25714
|
* recording config. NOTE on events (source of truth, R5/C3): this cap carries
|
|
25534
25715
|
* NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
|
|
25535
25716
|
* events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
|
|
25536
|
-
* rows)
|
|
25537
|
-
*
|
|
25538
|
-
*
|
|
25539
|
-
* (`interfaces/recording-config.ts`).
|
|
25717
|
+
* rows) and are the ONLY event surface — the recorder has none. The in-RAM
|
|
25718
|
+
* playback markers it used to build were deleted on 2026-08-29 because nothing
|
|
25719
|
+
* ever read them. Event<->footage joins are by time, padded with the shared
|
|
25720
|
+
* `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
|
|
25540
25721
|
*/
|
|
25541
25722
|
var RecordingStatusSchema = object({
|
|
25542
25723
|
deviceId: number(),
|
|
@@ -26986,6 +27167,13 @@ var LoggingSettingsPatchSchema = object({
|
|
|
26986
27167
|
* anyone but its owner.
|
|
26987
27168
|
*/
|
|
26988
27169
|
var ReportedLoadContributionSchema = LoadContributionSchema.extend({ addonId: string() });
|
|
27170
|
+
/**
|
|
27171
|
+
* One per-camera failure counter, plus WHO reported it.
|
|
27172
|
+
*
|
|
27173
|
+
* Same rule as {@link ReportedLoadContributionSchema}: `addonId` is stamped by
|
|
27174
|
+
* the hub as it enumerates providers, never by the contributor.
|
|
27175
|
+
*/
|
|
27176
|
+
var ReportedFailureContributionSchema = FailureContributionSchema.extend({ addonId: string() });
|
|
26989
27177
|
var GetLoggingSettingsInputSchema = object({
|
|
26990
27178
|
scopeNodeId: string().optional(),
|
|
26991
27179
|
/**
|
|
@@ -27044,7 +27232,7 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
|
|
|
27044
27232
|
}), method(_void(), SiteLocationStatusSchema, {
|
|
27045
27233
|
kind: "mutation",
|
|
27046
27234
|
auth: "admin"
|
|
27047
|
-
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(_void(), array(ReportedLoadContributionSchema).readonly(), { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
27235
|
+
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(_void(), array(ReportedLoadContributionSchema).readonly(), { auth: "admin" }), method(_void(), array(ReportedFailureContributionSchema).readonly(), { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
27048
27236
|
kind: "mutation",
|
|
27049
27237
|
auth: "admin"
|
|
27050
27238
|
});
|
|
@@ -29626,6 +29814,12 @@ Object.freeze({
|
|
|
29626
29814
|
addonId: null,
|
|
29627
29815
|
access: "create"
|
|
29628
29816
|
},
|
|
29817
|
+
"failureContribution.list": {
|
|
29818
|
+
capName: "failure-contribution",
|
|
29819
|
+
capScope: "system",
|
|
29820
|
+
addonId: null,
|
|
29821
|
+
access: "view"
|
|
29822
|
+
},
|
|
29629
29823
|
"fanControl.setDirection": {
|
|
29630
29824
|
capName: "fan-control",
|
|
29631
29825
|
capScope: "device",
|
|
@@ -32932,6 +33126,12 @@ Object.freeze({
|
|
|
32932
33126
|
addonId: null,
|
|
32933
33127
|
access: "create"
|
|
32934
33128
|
},
|
|
33129
|
+
"system.getFailureContributions": {
|
|
33130
|
+
capName: "system",
|
|
33131
|
+
capScope: "system",
|
|
33132
|
+
addonId: null,
|
|
33133
|
+
access: "view"
|
|
33134
|
+
},
|
|
32935
33135
|
"system.getLoadContributions": {
|
|
32936
33136
|
capName: "system",
|
|
32937
33137
|
capScope: "system",
|
|
@@ -13211,6 +13211,114 @@ method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
|
|
|
13211
13211
|
limit: number().optional(),
|
|
13212
13212
|
tags: record(string(), string()).optional()
|
|
13213
13213
|
}), array(LogEntrySchema).readonly());
|
|
13214
|
+
/**
|
|
13215
|
+
* `failure-contribution` — the capability an addon reports its OWN losses
|
|
13216
|
+
* through, per camera, with the denominator attached. It stores nothing.
|
|
13217
|
+
*
|
|
13218
|
+
* ## The twin of `load-contribution`, and why it is a twin and not a field
|
|
13219
|
+
*
|
|
13220
|
+
* `load-contribution` answers *what did this camera COST*. This answers *what
|
|
13221
|
+
* did this camera LOSE*. The reporting discipline is identical and deliberately
|
|
13222
|
+
* copied: the contributor reports what it already knows, hub-main adds only
|
|
13223
|
+
* `addonId`, nothing needs global knowledge, and there is no central list for
|
|
13224
|
+
* somebody to forget to edit.
|
|
13225
|
+
*
|
|
13226
|
+
* They are not merged, because their invariants are opposites:
|
|
13227
|
+
*
|
|
13228
|
+
* - a `load-contribution` measurement is **absent, never zero** — a zero would
|
|
13229
|
+
* claim a camera cost nothing, which is a measurement nobody made;
|
|
13230
|
+
* - a `failure-contribution` zero is the **most valuable value on the
|
|
13231
|
+
* surface** — `attempts: 400, succeeded: 400` is the proof a fix landed,
|
|
13232
|
+
* and it is exactly what an absent entry cannot say.
|
|
13233
|
+
*
|
|
13234
|
+
* Putting a loss counter on a cost entry would also break the reconciliation
|
|
13235
|
+
* that gives `load-contribution` its point: contributions are subtracted from
|
|
13236
|
+
* `metrics.node-processes-snapshot` to find processes nobody claims. A failure
|
|
13237
|
+
* has no process.
|
|
13238
|
+
*
|
|
13239
|
+
* ## Why not a log line, since the counters already exist
|
|
13240
|
+
*
|
|
13241
|
+
* Several of these paths already counted themselves — `CaptureScheduler`'s
|
|
13242
|
+
* per-device window, `KeyFrameCaptureLog`, `bumpCropMetric`. Every one of them
|
|
13243
|
+
* ends in a log line, and a log line is the thing the operator asked to stop
|
|
13244
|
+
* needing: *"possiamo armare questi errori intanto? Così al prossimo giro
|
|
13245
|
+
* ricontrolliamo tutti questi punti"*. Reading them meant grepping Loki and
|
|
13246
|
+
* hand-correlating timestamps, which is how a 22% thumbnail gap and a 3-hour
|
|
13247
|
+
* media blackout were both diagnosed. The counters stay; this is where they can
|
|
13248
|
+
* be READ.
|
|
13249
|
+
*
|
|
13250
|
+
* ## The rate is served with its denominator or not at all
|
|
13251
|
+
*
|
|
13252
|
+
* Every entry carries `attempts` and `succeeded`. A miss count alone is
|
|
13253
|
+
* unreadable: on 2026-08-28 the enrichment-crop miss count read as "35x worse
|
|
13254
|
+
* than yesterday" and was **flat across twelve hours** once divided by the
|
|
13255
|
+
* successes on the same path. A surface that publishes only the numerator
|
|
13256
|
+
* reproduces that mistake on every read.
|
|
13257
|
+
*
|
|
13258
|
+
* ## Shape
|
|
13259
|
+
*
|
|
13260
|
+
* Copied from `load-contribution.cap.ts` (`mode: 'collection'`,
|
|
13261
|
+
* `internal: true`, `mount: { kind: 'skip' }`): no tRPC route of its own and no
|
|
13262
|
+
* generated hooks, while `addons.listCapabilityProviders` still enumerates it
|
|
13263
|
+
* and the hub's `CapabilityRegistry` still holds an RPC proxy per provider — so
|
|
13264
|
+
* a forked runner's entries reach hub-main over transport that already exists.
|
|
13265
|
+
* No new UDS message, no second registry (D3). The operator reads the assembled
|
|
13266
|
+
* result through `system.getFailureContributions`.
|
|
13267
|
+
*/
|
|
13268
|
+
var FailureReasonCountSchema = object({
|
|
13269
|
+
/**
|
|
13270
|
+
* Why the attempt did not land, in the contributor's own vocabulary —
|
|
13271
|
+
* `worker-lease-gone`, `queue-overflow`, `timeout`, `empty-read`. The same
|
|
13272
|
+
* strings that already appear in this repo's logs and, where one exists, the
|
|
13273
|
+
* same string the per-track `previewMissReason` records (D276): a second
|
|
13274
|
+
* vocabulary for the same loss would make the row and the counter
|
|
13275
|
+
* un-joinable.
|
|
13276
|
+
*/
|
|
13277
|
+
reason: string(),
|
|
13278
|
+
count: number().int().nonnegative()
|
|
13279
|
+
});
|
|
13280
|
+
var FailureContributionSchema = object({
|
|
13281
|
+
/**
|
|
13282
|
+
* The failing path — `enrichment-crop`, `inference`, `plate-ocr`,
|
|
13283
|
+
* `person-over-vehicle`. Free text, for the reason `load-contribution` keeps
|
|
13284
|
+
* `unit` free: the families are owned by different addons and a shared enum
|
|
13285
|
+
* is a central list that rots invisibly.
|
|
13286
|
+
*/
|
|
13287
|
+
family: string(),
|
|
13288
|
+
/**
|
|
13289
|
+
* The NUMERIC device id — the same value every log line carries as
|
|
13290
|
+
* `tags.deviceId`. Never nullable and never absent: a contributor that
|
|
13291
|
+
* cannot name the camera must not emit the entry, because a fleet total
|
|
13292
|
+
* cannot answer the only question anybody asks of this surface.
|
|
13293
|
+
*/
|
|
13294
|
+
deviceId: number().int().positive(),
|
|
13295
|
+
/**
|
|
13296
|
+
* A second dimension inside the family: the model / step id for an inference
|
|
13297
|
+
* timeout, so "which camera AND which model" is one read. Absent when the
|
|
13298
|
+
* family has a single variant.
|
|
13299
|
+
*/
|
|
13300
|
+
variant: string().optional(),
|
|
13301
|
+
/**
|
|
13302
|
+
* Epoch ms this counter started — the INCARNATION MARKER. A consumer
|
|
13303
|
+
* differencing two reads must drop the interval when it changes, because the
|
|
13304
|
+
* counter restarted from zero in a respawned runner. Same discipline as
|
|
13305
|
+
* `LoadContribution.startedAtMs`.
|
|
13306
|
+
*/
|
|
13307
|
+
sinceMs: number(),
|
|
13308
|
+
/** Epoch ms it was read. `atMs - sinceMs` is the interval this covers. */
|
|
13309
|
+
atMs: number(),
|
|
13310
|
+
/**
|
|
13311
|
+
* THE DENOMINATOR — every attempt on this path for this camera in the
|
|
13312
|
+
* window. A failure count published without it is the mistake this schema
|
|
13313
|
+
* exists to make impossible.
|
|
13314
|
+
*/
|
|
13315
|
+
attempts: number().int().nonnegative(),
|
|
13316
|
+
/** Attempts that landed. `attempts - succeeded` is the loss. */
|
|
13317
|
+
succeeded: number().int().nonnegative(),
|
|
13318
|
+
/** The loss, partitioned. Sums to `attempts - succeeded`. */
|
|
13319
|
+
reasons: array(FailureReasonCountSchema).readonly()
|
|
13320
|
+
});
|
|
13321
|
+
method(_void(), array(FailureContributionSchema).readonly());
|
|
13214
13322
|
var LoadContributionSchema = object({
|
|
13215
13323
|
role: _enum([
|
|
13216
13324
|
"decode",
|
|
@@ -13518,6 +13626,50 @@ var NodeProcessSchema = object({
|
|
|
13518
13626
|
/** Wall-clock uptime (seconds). Parsed from `ps etime`. */
|
|
13519
13627
|
uptimeSec: number()
|
|
13520
13628
|
});
|
|
13629
|
+
/**
|
|
13630
|
+
* One retained container-memory reading.
|
|
13631
|
+
*
|
|
13632
|
+
* `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
|
|
13633
|
+
* a second clock: that is what makes "processes sum to X, container says Y"
|
|
13634
|
+
* subtractable per point rather than an eyeballed comparison of two series
|
|
13635
|
+
* sampled at different instants.
|
|
13636
|
+
*
|
|
13637
|
+
* A reduced window keeps the sample with the LARGEST `currentBytes` in each
|
|
13638
|
+
* bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
|
|
13639
|
+
* never coexisted, and a mean would smear away the peak this exists to find.
|
|
13640
|
+
*/
|
|
13641
|
+
var ContainerMemoryPointSchema = object({
|
|
13642
|
+
/** Which hierarchy answered, so a reading is never ambiguous. */
|
|
13643
|
+
source: _enum(["cgroup-v2", "cgroup-v1"]),
|
|
13644
|
+
/** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
|
|
13645
|
+
currentBytes: number(),
|
|
13646
|
+
/** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
|
|
13647
|
+
limitBytes: number().nullable(),
|
|
13648
|
+
/** Anonymous pages: the closest thing to "what the processes allocated". */
|
|
13649
|
+
anonBytes: number().nullable(),
|
|
13650
|
+
/** Page cache. Charged to the cgroup, owned by no process. */
|
|
13651
|
+
fileBytes: number().nullable(),
|
|
13652
|
+
/**
|
|
13653
|
+
* Shared memory — and the field that explained the largest single surprise.
|
|
13654
|
+
* The i915 driver backs GPU buffers with shmem, so an inference pool or a
|
|
13655
|
+
* hardware-decode session holding DRM objects is charged HERE and appears
|
|
13656
|
+
* nowhere in a `ps` scan.
|
|
13657
|
+
*/
|
|
13658
|
+
shmemBytes: number().nullable(),
|
|
13659
|
+
/** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
|
|
13660
|
+
slabBytes: number().nullable(),
|
|
13661
|
+
/**
|
|
13662
|
+
* Shrinkable i915 GEM object bytes, from debugfs.
|
|
13663
|
+
*
|
|
13664
|
+
* **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
|
|
13665
|
+
* component of `currentBytes` and must not be subtracted from it; it says
|
|
13666
|
+
* what put the shmem there, where `shmemBytes` only says how much.
|
|
13667
|
+
*
|
|
13668
|
+
* `null` wherever debugfs is not mounted — which is inside every camstack
|
|
13669
|
+
* container today — and on any node with no Intel GPU.
|
|
13670
|
+
*/
|
|
13671
|
+
gpuShmemBytes: number().nullable()
|
|
13672
|
+
}).extend({ atMs: number() });
|
|
13521
13673
|
var DumpHeapSnapshotInputSchema = object({
|
|
13522
13674
|
/** The addon whose runner should dump a heap snapshot. */
|
|
13523
13675
|
addonId: string() });
|
|
@@ -13581,6 +13733,21 @@ var NodeLoadSeriesSchema = object({
|
|
|
13581
13733
|
/** One entry per function seen in the window, heaviest-first. */
|
|
13582
13734
|
series: array(LoadFunctionSeriesSchema).readonly(),
|
|
13583
13735
|
/**
|
|
13736
|
+
* The CONTAINER's memory over the same window, oldest-first.
|
|
13737
|
+
*
|
|
13738
|
+
* Sits next to `series` rather than in a method of its own because the whole
|
|
13739
|
+
* question is a subtraction: the per-process rows in `series` sum to one
|
|
13740
|
+
* number and this one is another, and an operator who has to issue two calls
|
|
13741
|
+
* to compare them will compare two different instants. Same reader, same
|
|
13742
|
+
* `sinceMs`, same `bucketMs`, same timestamps.
|
|
13743
|
+
*
|
|
13744
|
+
* **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
|
|
13745
|
+
* Mac, a bare-metal host, a container with the hierarchy hidden — reports no
|
|
13746
|
+
* points at all. A zero here would be indistinguishable from a healthy
|
|
13747
|
+
* container and is precisely the lie this field exists to avoid.
|
|
13748
|
+
*/
|
|
13749
|
+
containerMemory: array(ContainerMemoryPointSchema).readonly(),
|
|
13750
|
+
/**
|
|
13584
13751
|
* Width of one returned bucket, in ms. Equals the sampling cadence when no
|
|
13585
13752
|
* reduction was needed — so a caller can always say what one point covers
|
|
13586
13753
|
* without having to know whether it was reduced.
|
|
@@ -17723,6 +17890,20 @@ var TrackSchema = object({
|
|
|
17723
17890
|
* `=== true` and render nothing otherwise — never infer "no rider".
|
|
17724
17891
|
*/
|
|
17725
17892
|
hasRider: boolean().optional(),
|
|
17893
|
+
/**
|
|
17894
|
+
* WHY this track ended without a NATIVE best-shot tile
|
|
17895
|
+
* ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
|
|
17896
|
+
* a composed token line (`no-key-frame capture=keyframe:native-missx4`,
|
|
17897
|
+
* `derive-returned-null tile=standin`, …) written at close and CLEARED by
|
|
17898
|
+
* the late-keyFrame upgrade when a native tile lands after all. The
|
|
17899
|
+
* operator-facing answer to "perché manca l'immagine?" on a track whose
|
|
17900
|
+
* tile is a face/plate stand-in, a raster crop, or an icon.
|
|
17901
|
+
*
|
|
17902
|
+
* **Absent ≠ "missed silently"**: a row written before the column, a hub
|
|
17903
|
+
* that predates the field, and every track whose tile landed native all
|
|
17904
|
+
* omit it. Render nothing when absent.
|
|
17905
|
+
*/
|
|
17906
|
+
previewMissReason: string().optional(),
|
|
17726
17907
|
...TrackFlagFields,
|
|
17727
17908
|
...TrackRetrainFields
|
|
17728
17909
|
});
|
|
@@ -25556,10 +25737,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
25556
25737
|
* recording config. NOTE on events (source of truth, R5/C3): this cap carries
|
|
25557
25738
|
* NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
|
|
25558
25739
|
* events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
|
|
25559
|
-
* rows)
|
|
25560
|
-
*
|
|
25561
|
-
*
|
|
25562
|
-
* (`interfaces/recording-config.ts`).
|
|
25740
|
+
* rows) and are the ONLY event surface — the recorder has none. The in-RAM
|
|
25741
|
+
* playback markers it used to build were deleted on 2026-08-29 because nothing
|
|
25742
|
+
* ever read them. Event<->footage joins are by time, padded with the shared
|
|
25743
|
+
* `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
|
|
25563
25744
|
*/
|
|
25564
25745
|
var RecordingStatusSchema = object({
|
|
25565
25746
|
deviceId: number(),
|
|
@@ -27009,6 +27190,13 @@ var LoggingSettingsPatchSchema = object({
|
|
|
27009
27190
|
* anyone but its owner.
|
|
27010
27191
|
*/
|
|
27011
27192
|
var ReportedLoadContributionSchema = LoadContributionSchema.extend({ addonId: string() });
|
|
27193
|
+
/**
|
|
27194
|
+
* One per-camera failure counter, plus WHO reported it.
|
|
27195
|
+
*
|
|
27196
|
+
* Same rule as {@link ReportedLoadContributionSchema}: `addonId` is stamped by
|
|
27197
|
+
* the hub as it enumerates providers, never by the contributor.
|
|
27198
|
+
*/
|
|
27199
|
+
var ReportedFailureContributionSchema = FailureContributionSchema.extend({ addonId: string() });
|
|
27012
27200
|
var GetLoggingSettingsInputSchema = object({
|
|
27013
27201
|
scopeNodeId: string().optional(),
|
|
27014
27202
|
/**
|
|
@@ -27067,7 +27255,7 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
|
|
|
27067
27255
|
}), method(_void(), SiteLocationStatusSchema, {
|
|
27068
27256
|
kind: "mutation",
|
|
27069
27257
|
auth: "admin"
|
|
27070
|
-
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(_void(), array(ReportedLoadContributionSchema).readonly(), { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
27258
|
+
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(_void(), array(ReportedLoadContributionSchema).readonly(), { auth: "admin" }), method(_void(), array(ReportedFailureContributionSchema).readonly(), { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
27071
27259
|
kind: "mutation",
|
|
27072
27260
|
auth: "admin"
|
|
27073
27261
|
});
|
|
@@ -29649,6 +29837,12 @@ Object.freeze({
|
|
|
29649
29837
|
addonId: null,
|
|
29650
29838
|
access: "create"
|
|
29651
29839
|
},
|
|
29840
|
+
"failureContribution.list": {
|
|
29841
|
+
capName: "failure-contribution",
|
|
29842
|
+
capScope: "system",
|
|
29843
|
+
addonId: null,
|
|
29844
|
+
access: "view"
|
|
29845
|
+
},
|
|
29652
29846
|
"fanControl.setDirection": {
|
|
29653
29847
|
capName: "fan-control",
|
|
29654
29848
|
capScope: "device",
|
|
@@ -32955,6 +33149,12 @@ Object.freeze({
|
|
|
32955
33149
|
addonId: null,
|
|
32956
33150
|
access: "create"
|
|
32957
33151
|
},
|
|
33152
|
+
"system.getFailureContributions": {
|
|
33153
|
+
capName: "system",
|
|
33154
|
+
capScope: "system",
|
|
33155
|
+
addonId: null,
|
|
33156
|
+
access: "view"
|
|
33157
|
+
},
|
|
32958
33158
|
"system.getLoadContributions": {
|
|
32959
33159
|
capName: "system",
|
|
32960
33160
|
capScope: "system",
|
package/dist/webdav.addon.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_shared = require("./shared-
|
|
5
|
+
const require_shared = require("./shared-kn1YUYmb.js");
|
|
6
6
|
let node_stream = require("node:stream");
|
|
7
7
|
let webdav = require("webdav");
|
|
8
8
|
//#region src/providers/webdav/webdav-config-schema.ts
|
package/dist/webdav.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-
|
|
1
|
+
import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-CBMUP4jc.mjs";
|
|
2
2
|
import { PassThrough } from "node:stream";
|
|
3
3
|
import { AuthType, createClient } from "webdav";
|
|
4
4
|
//#region src/providers/webdav/webdav-config-schema.ts
|
package/package.json
CHANGED