@camstack/addon-ai 0.4.95 → 0.4.97
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.js +96 -5
- package/dist/addon.mjs +96 -5
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -16439,6 +16439,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16439
16439
|
"addon-crash-loop",
|
|
16440
16440
|
"addon-update-available",
|
|
16441
16441
|
"server-update-available",
|
|
16442
|
+
"wrapper-update-available",
|
|
16442
16443
|
"alarm-triggered",
|
|
16443
16444
|
"alarm-armed",
|
|
16444
16445
|
"alarm-disarmed",
|
|
@@ -19844,7 +19845,17 @@ var EventDensityBucketSchema = object({
|
|
|
19844
19845
|
bucketStart: number$1(),
|
|
19845
19846
|
motion: number$1().int(),
|
|
19846
19847
|
object: number$1().int(),
|
|
19847
|
-
audio: number$1().int()
|
|
19848
|
+
audio: number$1().int(),
|
|
19849
|
+
/**
|
|
19850
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19851
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19852
|
+
*
|
|
19853
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19854
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19855
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19856
|
+
* the count-on-a-level-meter did.
|
|
19857
|
+
*/
|
|
19858
|
+
audioDbfs: number$1().optional()
|
|
19848
19859
|
});
|
|
19849
19860
|
/**
|
|
19850
19861
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -21945,6 +21956,53 @@ var ImageContractSchema = object({
|
|
|
21945
21956
|
/** One operator-grade sentence: this node runs image X; the contract says Y. */
|
|
21946
21957
|
message: string()
|
|
21947
21958
|
});
|
|
21959
|
+
/**
|
|
21960
|
+
* The shell verdict (see {@link WrapperKindSchema}) with the proofs that
|
|
21961
|
+
* produced it.
|
|
21962
|
+
*
|
|
21963
|
+
* There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
|
|
21964
|
+
* update is an ANNOUNCEMENT. The notification body carries the exact command
|
|
21965
|
+
* for a `docker` shell and says the app restarts into the new build for
|
|
21966
|
+
* `electron`, and that sentence is chosen from `kind` alone — a boolean
|
|
21967
|
+
* nothing reads is the defect this repo keeps paying for.
|
|
21968
|
+
*/
|
|
21969
|
+
var WrapperIdentitySchema = object({
|
|
21970
|
+
kind: _enum([
|
|
21971
|
+
"docker",
|
|
21972
|
+
"electron",
|
|
21973
|
+
"native",
|
|
21974
|
+
"contradictory",
|
|
21975
|
+
"unknown"
|
|
21976
|
+
]),
|
|
21977
|
+
/** Every probe that ran, in a stable order. Never empty. */
|
|
21978
|
+
evidence: array(object({
|
|
21979
|
+
/** Which probe this row reports. */
|
|
21980
|
+
fact: _enum([
|
|
21981
|
+
"dockerenv-file",
|
|
21982
|
+
"proc-1-cgroup",
|
|
21983
|
+
"platform",
|
|
21984
|
+
"electron-app-version-env"
|
|
21985
|
+
]),
|
|
21986
|
+
/**
|
|
21987
|
+
* `observed` — this process read it itself. `declared` — the shell told the
|
|
21988
|
+
* process and nothing here can check it. Only the Electron app version is
|
|
21989
|
+
* ever `declared`, and only because a child cannot see its parent.
|
|
21990
|
+
*/
|
|
21991
|
+
mode: _enum(["observed", "declared"]),
|
|
21992
|
+
/** Did the probe support the fact it names? A `false` row is still evidence. */
|
|
21993
|
+
holds: boolean(),
|
|
21994
|
+
/** What was actually read, verbatim enough for an operator to argue with. */
|
|
21995
|
+
detail: string()
|
|
21996
|
+
})),
|
|
21997
|
+
/**
|
|
21998
|
+
* The version of the SHELL, when the shell has one it can state: the
|
|
21999
|
+
* Electron app version it declared, or the baked seed closure that
|
|
22000
|
+
* fingerprints a container / app bundle. `null` for `contradictory` and
|
|
22001
|
+
* `unknown` — which version belongs to the shell is precisely what is not
|
|
22002
|
+
* known there.
|
|
22003
|
+
*/
|
|
22004
|
+
currentVersion: string().nullable()
|
|
22005
|
+
});
|
|
21948
22006
|
var ServerRollbackInfoSchema = object({
|
|
21949
22007
|
/** The version that failed (or was manually rolled back). */
|
|
21950
22008
|
fromVersion: string(),
|
|
@@ -21986,7 +22044,13 @@ var ServerPackageStatusSchema = object({
|
|
|
21986
22044
|
* Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
|
|
21987
22045
|
* version skew: an older provider's payload simply omits it.
|
|
21988
22046
|
*/
|
|
21989
|
-
imageContract: ImageContractSchema.optional()
|
|
22047
|
+
imageContract: ImageContractSchema.optional(),
|
|
22048
|
+
/**
|
|
22049
|
+
* What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
|
|
22050
|
+
* for version skew: an older provider's payload simply omits it, and an
|
|
22051
|
+
* absent wrapper is unknown — never `native`.
|
|
22052
|
+
*/
|
|
22053
|
+
wrapper: WrapperIdentitySchema.optional()
|
|
21990
22054
|
});
|
|
21991
22055
|
var ServerUpdateCheckResultSchema = object({
|
|
21992
22056
|
packageName: string(),
|
|
@@ -28011,7 +28075,23 @@ var RecordingRangeSchema = object({
|
|
|
28011
28075
|
});
|
|
28012
28076
|
var RecordingAvailabilitySchema = object({
|
|
28013
28077
|
deviceId: number$1(),
|
|
28014
|
-
ranges: array(RecordingRangeSchema)
|
|
28078
|
+
ranges: array(RecordingRangeSchema),
|
|
28079
|
+
/**
|
|
28080
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
28081
|
+
* describes (D433).
|
|
28082
|
+
*
|
|
28083
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
28084
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
28085
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
28086
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
28087
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
28088
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
28089
|
+
* UI could not see it.
|
|
28090
|
+
*
|
|
28091
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
28092
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
28093
|
+
*/
|
|
28094
|
+
profilesWithFootage: array(string())
|
|
28015
28095
|
});
|
|
28016
28096
|
var RecordingDaysSchema = object({
|
|
28017
28097
|
deviceId: number$1(),
|
|
@@ -28037,7 +28117,11 @@ var RecordingDaysSchema = object({
|
|
|
28037
28117
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
28038
28118
|
deviceId: number$1(),
|
|
28039
28119
|
read: _enum(["read", "unreadable"]),
|
|
28040
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
28120
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
28121
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
28122
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
28123
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
28124
|
+
profilesWithFootage: array(string()).readonly()
|
|
28041
28125
|
});
|
|
28042
28126
|
/**
|
|
28043
28127
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -28327,7 +28411,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
28327
28411
|
method(object({
|
|
28328
28412
|
deviceId: number$1(),
|
|
28329
28413
|
fromMs: number$1(),
|
|
28330
|
-
toMs: number$1()
|
|
28414
|
+
toMs: number$1(),
|
|
28415
|
+
/**
|
|
28416
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
28417
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
28418
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
28419
|
+
* for.
|
|
28420
|
+
*/
|
|
28421
|
+
profile: string().optional()
|
|
28331
28422
|
}), RecordingAvailabilitySchema, {
|
|
28332
28423
|
kind: "query",
|
|
28333
28424
|
auth: "protected"
|
package/dist/addon.mjs
CHANGED
|
@@ -16466,6 +16466,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16466
16466
|
"addon-crash-loop",
|
|
16467
16467
|
"addon-update-available",
|
|
16468
16468
|
"server-update-available",
|
|
16469
|
+
"wrapper-update-available",
|
|
16469
16470
|
"alarm-triggered",
|
|
16470
16471
|
"alarm-armed",
|
|
16471
16472
|
"alarm-disarmed",
|
|
@@ -19871,7 +19872,17 @@ var EventDensityBucketSchema = object({
|
|
|
19871
19872
|
bucketStart: number$1(),
|
|
19872
19873
|
motion: number$1().int(),
|
|
19873
19874
|
object: number$1().int(),
|
|
19874
|
-
audio: number$1().int()
|
|
19875
|
+
audio: number$1().int(),
|
|
19876
|
+
/**
|
|
19877
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19878
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19879
|
+
*
|
|
19880
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19881
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19882
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19883
|
+
* the count-on-a-level-meter did.
|
|
19884
|
+
*/
|
|
19885
|
+
audioDbfs: number$1().optional()
|
|
19875
19886
|
});
|
|
19876
19887
|
/**
|
|
19877
19888
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -21972,6 +21983,53 @@ var ImageContractSchema = object({
|
|
|
21972
21983
|
/** One operator-grade sentence: this node runs image X; the contract says Y. */
|
|
21973
21984
|
message: string()
|
|
21974
21985
|
});
|
|
21986
|
+
/**
|
|
21987
|
+
* The shell verdict (see {@link WrapperKindSchema}) with the proofs that
|
|
21988
|
+
* produced it.
|
|
21989
|
+
*
|
|
21990
|
+
* There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
|
|
21991
|
+
* update is an ANNOUNCEMENT. The notification body carries the exact command
|
|
21992
|
+
* for a `docker` shell and says the app restarts into the new build for
|
|
21993
|
+
* `electron`, and that sentence is chosen from `kind` alone — a boolean
|
|
21994
|
+
* nothing reads is the defect this repo keeps paying for.
|
|
21995
|
+
*/
|
|
21996
|
+
var WrapperIdentitySchema = object({
|
|
21997
|
+
kind: _enum([
|
|
21998
|
+
"docker",
|
|
21999
|
+
"electron",
|
|
22000
|
+
"native",
|
|
22001
|
+
"contradictory",
|
|
22002
|
+
"unknown"
|
|
22003
|
+
]),
|
|
22004
|
+
/** Every probe that ran, in a stable order. Never empty. */
|
|
22005
|
+
evidence: array(object({
|
|
22006
|
+
/** Which probe this row reports. */
|
|
22007
|
+
fact: _enum([
|
|
22008
|
+
"dockerenv-file",
|
|
22009
|
+
"proc-1-cgroup",
|
|
22010
|
+
"platform",
|
|
22011
|
+
"electron-app-version-env"
|
|
22012
|
+
]),
|
|
22013
|
+
/**
|
|
22014
|
+
* `observed` — this process read it itself. `declared` — the shell told the
|
|
22015
|
+
* process and nothing here can check it. Only the Electron app version is
|
|
22016
|
+
* ever `declared`, and only because a child cannot see its parent.
|
|
22017
|
+
*/
|
|
22018
|
+
mode: _enum(["observed", "declared"]),
|
|
22019
|
+
/** Did the probe support the fact it names? A `false` row is still evidence. */
|
|
22020
|
+
holds: boolean(),
|
|
22021
|
+
/** What was actually read, verbatim enough for an operator to argue with. */
|
|
22022
|
+
detail: string()
|
|
22023
|
+
})),
|
|
22024
|
+
/**
|
|
22025
|
+
* The version of the SHELL, when the shell has one it can state: the
|
|
22026
|
+
* Electron app version it declared, or the baked seed closure that
|
|
22027
|
+
* fingerprints a container / app bundle. `null` for `contradictory` and
|
|
22028
|
+
* `unknown` — which version belongs to the shell is precisely what is not
|
|
22029
|
+
* known there.
|
|
22030
|
+
*/
|
|
22031
|
+
currentVersion: string().nullable()
|
|
22032
|
+
});
|
|
21975
22033
|
var ServerRollbackInfoSchema = object({
|
|
21976
22034
|
/** The version that failed (or was manually rolled back). */
|
|
21977
22035
|
fromVersion: string(),
|
|
@@ -22013,7 +22071,13 @@ var ServerPackageStatusSchema = object({
|
|
|
22013
22071
|
* Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
|
|
22014
22072
|
* version skew: an older provider's payload simply omits it.
|
|
22015
22073
|
*/
|
|
22016
|
-
imageContract: ImageContractSchema.optional()
|
|
22074
|
+
imageContract: ImageContractSchema.optional(),
|
|
22075
|
+
/**
|
|
22076
|
+
* What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
|
|
22077
|
+
* for version skew: an older provider's payload simply omits it, and an
|
|
22078
|
+
* absent wrapper is unknown — never `native`.
|
|
22079
|
+
*/
|
|
22080
|
+
wrapper: WrapperIdentitySchema.optional()
|
|
22017
22081
|
});
|
|
22018
22082
|
var ServerUpdateCheckResultSchema = object({
|
|
22019
22083
|
packageName: string(),
|
|
@@ -28038,7 +28102,23 @@ var RecordingRangeSchema = object({
|
|
|
28038
28102
|
});
|
|
28039
28103
|
var RecordingAvailabilitySchema = object({
|
|
28040
28104
|
deviceId: number$1(),
|
|
28041
|
-
ranges: array(RecordingRangeSchema)
|
|
28105
|
+
ranges: array(RecordingRangeSchema),
|
|
28106
|
+
/**
|
|
28107
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
28108
|
+
* describes (D433).
|
|
28109
|
+
*
|
|
28110
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
28111
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
28112
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
28113
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
28114
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
28115
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
28116
|
+
* UI could not see it.
|
|
28117
|
+
*
|
|
28118
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
28119
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
28120
|
+
*/
|
|
28121
|
+
profilesWithFootage: array(string())
|
|
28042
28122
|
});
|
|
28043
28123
|
var RecordingDaysSchema = object({
|
|
28044
28124
|
deviceId: number$1(),
|
|
@@ -28064,7 +28144,11 @@ var RecordingDaysSchema = object({
|
|
|
28064
28144
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
28065
28145
|
deviceId: number$1(),
|
|
28066
28146
|
read: _enum(["read", "unreadable"]),
|
|
28067
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
28147
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
28148
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
28149
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
28150
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
28151
|
+
profilesWithFootage: array(string()).readonly()
|
|
28068
28152
|
});
|
|
28069
28153
|
/**
|
|
28070
28154
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -28354,7 +28438,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
28354
28438
|
method(object({
|
|
28355
28439
|
deviceId: number$1(),
|
|
28356
28440
|
fromMs: number$1(),
|
|
28357
|
-
toMs: number$1()
|
|
28441
|
+
toMs: number$1(),
|
|
28442
|
+
/**
|
|
28443
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
28444
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
28445
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
28446
|
+
* for.
|
|
28447
|
+
*/
|
|
28448
|
+
profile: string().optional()
|
|
28358
28449
|
}), RecordingAvailabilitySchema, {
|
|
28359
28450
|
kind: "query",
|
|
28360
28451
|
auth: "protected"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-ai",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.97",
|
|
4
4
|
"description": "AI addon for CamStack — the `llm` collection provider (cloud, LAN, and camstack-managed local llama.cpp profiles) plus the per-node `llm-runtime` managed executor.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|