@camstack/addon-model-studio 1.1.142 → 1.1.143
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/{SceneMonitorEditor-D7iweq7u.mjs → SceneMonitorEditor-D7gmH35x.mjs} +11 -11
- package/dist/_stub.js +5 -7
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-Bf79sZ9M.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-DYqebP3v.mjs} +4 -4
- package/dist/addon-model-studio.css +1 -1
- package/dist/{hostInit-S24nn8fs.mjs → hostInit-DPytEYgO.mjs} +3 -3
- package/dist/model-studio.addon.js +43 -1
- package/dist/model-studio.addon.mjs +43 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{use-device-snapshot-ZB9yg5UG.mjs → scene-monitor-copy-BJ1b42AA.mjs} +45 -45
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CslGrZzw.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CigmnmQE.mjs} +1 -1
- package/package.json +1 -1
|
@@ -5884,7 +5884,7 @@ var ZodIssueCode = {
|
|
|
5884
5884
|
var ZodFirstPartyTypeKind;
|
|
5885
5885
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5886
5886
|
//#endregion
|
|
5887
|
-
//#region ../types/dist/sleep-
|
|
5887
|
+
//#region ../types/dist/sleep-vl6nBE8d.mjs
|
|
5888
5888
|
/**
|
|
5889
5889
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5890
5890
|
* window to float samples (D455).
|
|
@@ -29513,6 +29513,15 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
29513
29513
|
}), _void(), {
|
|
29514
29514
|
kind: "mutation",
|
|
29515
29515
|
auth: "admin"
|
|
29516
|
+
}), method(object({ deviceId: number() }), _void(), {
|
|
29517
|
+
kind: "mutation",
|
|
29518
|
+
auth: "admin"
|
|
29519
|
+
}), method(object({ deviceId: number() }), number().int().nullable()), method(object({
|
|
29520
|
+
deviceId: number(),
|
|
29521
|
+
seconds: number().int().min(0).max(3600)
|
|
29522
|
+
}), _void(), {
|
|
29523
|
+
kind: "mutation",
|
|
29524
|
+
auth: "admin"
|
|
29516
29525
|
}), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
|
|
29517
29526
|
deviceId: number(),
|
|
29518
29527
|
enabled: boolean()
|
|
@@ -36516,6 +36525,12 @@ Object.freeze({
|
|
|
36516
36525
|
addonId: null,
|
|
36517
36526
|
access: "create"
|
|
36518
36527
|
},
|
|
36528
|
+
"ptz.captureHomeHere": {
|
|
36529
|
+
capName: "ptz",
|
|
36530
|
+
capScope: "device",
|
|
36531
|
+
addonId: null,
|
|
36532
|
+
access: "create"
|
|
36533
|
+
},
|
|
36519
36534
|
"ptz.continuousMove": {
|
|
36520
36535
|
capName: "ptz",
|
|
36521
36536
|
capScope: "device",
|
|
@@ -36534,6 +36549,12 @@ Object.freeze({
|
|
|
36534
36549
|
addonId: null,
|
|
36535
36550
|
access: "view"
|
|
36536
36551
|
},
|
|
36552
|
+
"ptz.getHomeReturnSeconds": {
|
|
36553
|
+
capName: "ptz",
|
|
36554
|
+
capScope: "device",
|
|
36555
|
+
addonId: null,
|
|
36556
|
+
access: "view"
|
|
36557
|
+
},
|
|
36537
36558
|
"ptz.getOptions": {
|
|
36538
36559
|
capName: "ptz",
|
|
36539
36560
|
capScope: "device",
|
|
@@ -36588,6 +36609,12 @@ Object.freeze({
|
|
|
36588
36609
|
addonId: null,
|
|
36589
36610
|
access: "create"
|
|
36590
36611
|
},
|
|
36612
|
+
"ptz.setHomeReturnSeconds": {
|
|
36613
|
+
capName: "ptz",
|
|
36614
|
+
capScope: "device",
|
|
36615
|
+
addonId: null,
|
|
36616
|
+
access: "create"
|
|
36617
|
+
},
|
|
36591
36618
|
"ptz.stop": {
|
|
36592
36619
|
capName: "ptz",
|
|
36593
36620
|
capScope: "device",
|
|
@@ -39751,6 +39778,11 @@ Object.freeze({
|
|
|
39751
39778
|
form: "single",
|
|
39752
39779
|
optional: false
|
|
39753
39780
|
}],
|
|
39781
|
+
"ptz.captureHomeHere": [{
|
|
39782
|
+
name: "deviceId",
|
|
39783
|
+
form: "single",
|
|
39784
|
+
optional: false
|
|
39785
|
+
}],
|
|
39754
39786
|
"ptz.continuousMove": [{
|
|
39755
39787
|
name: "deviceId",
|
|
39756
39788
|
form: "single",
|
|
@@ -39766,6 +39798,11 @@ Object.freeze({
|
|
|
39766
39798
|
form: "single",
|
|
39767
39799
|
optional: false
|
|
39768
39800
|
}],
|
|
39801
|
+
"ptz.getHomeReturnSeconds": [{
|
|
39802
|
+
name: "deviceId",
|
|
39803
|
+
form: "single",
|
|
39804
|
+
optional: false
|
|
39805
|
+
}],
|
|
39769
39806
|
"ptz.getOptions": [{
|
|
39770
39807
|
name: "deviceId",
|
|
39771
39808
|
form: "single",
|
|
@@ -39811,6 +39848,11 @@ Object.freeze({
|
|
|
39811
39848
|
form: "single",
|
|
39812
39849
|
optional: false
|
|
39813
39850
|
}],
|
|
39851
|
+
"ptz.setHomeReturnSeconds": [{
|
|
39852
|
+
name: "deviceId",
|
|
39853
|
+
form: "single",
|
|
39854
|
+
optional: false
|
|
39855
|
+
}],
|
|
39814
39856
|
"ptz.stop": [{
|
|
39815
39857
|
name: "deviceId",
|
|
39816
39858
|
form: "single",
|
|
@@ -5863,7 +5863,7 @@ var ZodIssueCode = {
|
|
|
5863
5863
|
var ZodFirstPartyTypeKind;
|
|
5864
5864
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5865
5865
|
//#endregion
|
|
5866
|
-
//#region ../types/dist/sleep-
|
|
5866
|
+
//#region ../types/dist/sleep-vl6nBE8d.mjs
|
|
5867
5867
|
/**
|
|
5868
5868
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5869
5869
|
* window to float samples (D455).
|
|
@@ -29492,6 +29492,15 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
29492
29492
|
}), _void(), {
|
|
29493
29493
|
kind: "mutation",
|
|
29494
29494
|
auth: "admin"
|
|
29495
|
+
}), method(object({ deviceId: number() }), _void(), {
|
|
29496
|
+
kind: "mutation",
|
|
29497
|
+
auth: "admin"
|
|
29498
|
+
}), method(object({ deviceId: number() }), number().int().nullable()), method(object({
|
|
29499
|
+
deviceId: number(),
|
|
29500
|
+
seconds: number().int().min(0).max(3600)
|
|
29501
|
+
}), _void(), {
|
|
29502
|
+
kind: "mutation",
|
|
29503
|
+
auth: "admin"
|
|
29495
29504
|
}), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
|
|
29496
29505
|
deviceId: number(),
|
|
29497
29506
|
enabled: boolean()
|
|
@@ -36495,6 +36504,12 @@ Object.freeze({
|
|
|
36495
36504
|
addonId: null,
|
|
36496
36505
|
access: "create"
|
|
36497
36506
|
},
|
|
36507
|
+
"ptz.captureHomeHere": {
|
|
36508
|
+
capName: "ptz",
|
|
36509
|
+
capScope: "device",
|
|
36510
|
+
addonId: null,
|
|
36511
|
+
access: "create"
|
|
36512
|
+
},
|
|
36498
36513
|
"ptz.continuousMove": {
|
|
36499
36514
|
capName: "ptz",
|
|
36500
36515
|
capScope: "device",
|
|
@@ -36513,6 +36528,12 @@ Object.freeze({
|
|
|
36513
36528
|
addonId: null,
|
|
36514
36529
|
access: "view"
|
|
36515
36530
|
},
|
|
36531
|
+
"ptz.getHomeReturnSeconds": {
|
|
36532
|
+
capName: "ptz",
|
|
36533
|
+
capScope: "device",
|
|
36534
|
+
addonId: null,
|
|
36535
|
+
access: "view"
|
|
36536
|
+
},
|
|
36516
36537
|
"ptz.getOptions": {
|
|
36517
36538
|
capName: "ptz",
|
|
36518
36539
|
capScope: "device",
|
|
@@ -36567,6 +36588,12 @@ Object.freeze({
|
|
|
36567
36588
|
addonId: null,
|
|
36568
36589
|
access: "create"
|
|
36569
36590
|
},
|
|
36591
|
+
"ptz.setHomeReturnSeconds": {
|
|
36592
|
+
capName: "ptz",
|
|
36593
|
+
capScope: "device",
|
|
36594
|
+
addonId: null,
|
|
36595
|
+
access: "create"
|
|
36596
|
+
},
|
|
36570
36597
|
"ptz.stop": {
|
|
36571
36598
|
capName: "ptz",
|
|
36572
36599
|
capScope: "device",
|
|
@@ -39730,6 +39757,11 @@ Object.freeze({
|
|
|
39730
39757
|
form: "single",
|
|
39731
39758
|
optional: false
|
|
39732
39759
|
}],
|
|
39760
|
+
"ptz.captureHomeHere": [{
|
|
39761
|
+
name: "deviceId",
|
|
39762
|
+
form: "single",
|
|
39763
|
+
optional: false
|
|
39764
|
+
}],
|
|
39733
39765
|
"ptz.continuousMove": [{
|
|
39734
39766
|
name: "deviceId",
|
|
39735
39767
|
form: "single",
|
|
@@ -39745,6 +39777,11 @@ Object.freeze({
|
|
|
39745
39777
|
form: "single",
|
|
39746
39778
|
optional: false
|
|
39747
39779
|
}],
|
|
39780
|
+
"ptz.getHomeReturnSeconds": [{
|
|
39781
|
+
name: "deviceId",
|
|
39782
|
+
form: "single",
|
|
39783
|
+
optional: false
|
|
39784
|
+
}],
|
|
39748
39785
|
"ptz.getOptions": [{
|
|
39749
39786
|
name: "deviceId",
|
|
39750
39787
|
form: "single",
|
|
@@ -39790,6 +39827,11 @@ Object.freeze({
|
|
|
39790
39827
|
form: "single",
|
|
39791
39828
|
optional: false
|
|
39792
39829
|
}],
|
|
39830
|
+
"ptz.setHomeReturnSeconds": [{
|
|
39831
|
+
name: "deviceId",
|
|
39832
|
+
form: "single",
|
|
39833
|
+
optional: false
|
|
39834
|
+
}],
|
|
39793
39835
|
"ptz.stop": [{
|
|
39794
39836
|
name: "deviceId",
|
|
39795
39837
|
form: "single",
|
package/dist/remoteEntry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-
|
|
1
|
+
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CigmnmQE.mjs";
|
|
2
2
|
export { t as get, e as init };
|
|
@@ -86,47 +86,71 @@ function g(e) {
|
|
|
86
86
|
return t !== "/" && (e === m() || e.startsWith(t)) ? e : `${t}${n}`;
|
|
87
87
|
}
|
|
88
88
|
//#endregion
|
|
89
|
+
//#region ../ui-library/src/hooks/use-device-snapshot.ts
|
|
90
|
+
var _ = "/addon/snapshot/media";
|
|
91
|
+
function v(r, i = {}) {
|
|
92
|
+
let { width: a, baseUrl: o } = i, [s, c] = t(0);
|
|
93
|
+
return {
|
|
94
|
+
src: n(() => {
|
|
95
|
+
if (r === null || r <= 0) return null;
|
|
96
|
+
let e = o === void 0 ? m() : o.replace(/\/+$/, ""), t = new URLSearchParams();
|
|
97
|
+
a !== void 0 && Number.isInteger(a) && a > 0 && t.set("w", String(a)), s > 0 && (t.set("force", "1"), t.set("r", String(s)));
|
|
98
|
+
let n = t.toString();
|
|
99
|
+
return `${e}${_}/${String(r)}.jpg${n.length > 0 ? `?${n}` : ""}`;
|
|
100
|
+
}, [
|
|
101
|
+
r,
|
|
102
|
+
a,
|
|
103
|
+
o,
|
|
104
|
+
s
|
|
105
|
+
]),
|
|
106
|
+
loading: !1,
|
|
107
|
+
refresh: e(() => {
|
|
108
|
+
c((e) => e + 1);
|
|
109
|
+
}, [])
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
//#endregion
|
|
89
113
|
//#region ../ui-library/src/composites/cap-settings/scene-monitor-copy.ts
|
|
90
|
-
var
|
|
114
|
+
var y = ["day", "ir"], b = {
|
|
91
115
|
day: "Daylight",
|
|
92
116
|
ir: "Night (IR)",
|
|
93
117
|
night: "Night",
|
|
94
118
|
dawn: "Dawn",
|
|
95
119
|
dusk: "Dusk"
|
|
96
120
|
};
|
|
97
|
-
function
|
|
98
|
-
return
|
|
121
|
+
function x(e) {
|
|
122
|
+
return b[e] ?? e;
|
|
99
123
|
}
|
|
100
|
-
function
|
|
101
|
-
let t = new Set(e.coveredConditions), n =
|
|
102
|
-
for (let e of r) n.push(`${
|
|
103
|
-
let i =
|
|
124
|
+
function S(e) {
|
|
125
|
+
let t = new Set(e.coveredConditions), n = y.map((e) => `${x(e)} ${t.has(e) ? "✓" : "✗"}`), r = [...t].filter((e) => !y.some((t) => t === e));
|
|
126
|
+
for (let e of r) n.push(`${x(e)} ✓`);
|
|
127
|
+
let i = y.filter((e) => !t.has(e));
|
|
104
128
|
if (i.length === 0) return n.join(" · ");
|
|
105
129
|
if (t.size === 0) return `${n.join(" · ")} — nothing captured yet, so this scene is not watching.`;
|
|
106
|
-
let a = i.map((e) =>
|
|
130
|
+
let a = i.map((e) => x(e).toLowerCase()).join(" and ");
|
|
107
131
|
return e.onUncoveredCondition === "judge-anyway" ? `${n.join(" · ")} — ${a} judged against the references you do have.` : `${n.join(" · ")} — optional; checks in ${a} are skipped.`;
|
|
108
132
|
}
|
|
109
|
-
function
|
|
133
|
+
function C(e) {
|
|
110
134
|
if (e.suspendedCondition === null) return null;
|
|
111
|
-
let t =
|
|
135
|
+
let t = x(e.suspendedCondition).toLowerCase();
|
|
112
136
|
return `Paused — nothing was captured in ${t}, so checks are on hold until the light changes back. Capture ${t} if you want it watched around the clock.`;
|
|
113
137
|
}
|
|
114
|
-
var
|
|
138
|
+
var w = {
|
|
115
139
|
"no-reference-for-condition": "can’t tell — nothing has been captured for this scene yet. Press “Capture daylight” to photograph what normal looks like.",
|
|
116
140
|
"view-shifted": "can’t tell — the camera view has moved since the reference was captured. Re-capture it.",
|
|
117
141
|
"no-vision-profile": "can’t tell — the vision model is unreachable, so the change is on hold.",
|
|
118
142
|
"encoder-model-changed": "can’t tell — the embedding model changed, so the stored references are unreadable. Re-capture them.",
|
|
119
143
|
"no-snapshot": "can’t tell — this camera did not return a frame."
|
|
120
144
|
};
|
|
121
|
-
function
|
|
145
|
+
function T(e, t) {
|
|
122
146
|
if (e.states.length === 0) return "Not armed yet — capture the initial state to start watching.";
|
|
123
|
-
if (e.verdict === "unknown") return e.unavailable === null ? "can’t tell right now." :
|
|
124
|
-
let n = e.verdict === "diverged" ? e.divergedAt : e.armedAt, r = n === null ? "" : ` for ${
|
|
147
|
+
if (e.verdict === "unknown") return e.unavailable === null ? "can’t tell right now." : w[e.unavailable];
|
|
148
|
+
let n = e.verdict === "diverged" ? e.divergedAt : e.armedAt, r = n === null ? "" : ` for ${k(Math.max(0, t - n))}`;
|
|
125
149
|
if (e.latched) return e.verdict === "diverged" ? `CHANGED${r} — press Reset when you have dealt with it.` : `Back to normal, but still flagged as changed${r}. Press Reset to clear it.`;
|
|
126
|
-
let i =
|
|
150
|
+
let i = C(e);
|
|
127
151
|
return i === null ? e.verdict === "diverged" ? `CHANGED${r}` : `Normal${r}` : i;
|
|
128
152
|
}
|
|
129
|
-
function
|
|
153
|
+
function E(e) {
|
|
130
154
|
return e.states.length === 0 ? {
|
|
131
155
|
text: "Not armed",
|
|
132
156
|
tone: "unknown"
|
|
@@ -147,11 +171,11 @@ function w(e) {
|
|
|
147
171
|
tone: "unknown"
|
|
148
172
|
};
|
|
149
173
|
}
|
|
150
|
-
var
|
|
151
|
-
function
|
|
152
|
-
return e.width * e.height >
|
|
174
|
+
var D = .4;
|
|
175
|
+
function O(e) {
|
|
176
|
+
return e.width * e.height > D;
|
|
153
177
|
}
|
|
154
|
-
function
|
|
178
|
+
function k(e) {
|
|
155
179
|
let t = Math.floor(e / 1e3);
|
|
156
180
|
if (t < 60) return `${t}s`;
|
|
157
181
|
let n = Math.floor(t / 60);
|
|
@@ -160,28 +184,4 @@ function D(e) {
|
|
|
160
184
|
return r < 48 ? `${r}h` : `${Math.floor(r / 24)}d`;
|
|
161
185
|
}
|
|
162
186
|
//#endregion
|
|
163
|
-
|
|
164
|
-
var O = "/addon/snapshot/media";
|
|
165
|
-
function k(r, i = {}) {
|
|
166
|
-
let { width: a, baseUrl: o } = i, [s, c] = t(0);
|
|
167
|
-
return {
|
|
168
|
-
src: n(() => {
|
|
169
|
-
if (r === null || r <= 0) return null;
|
|
170
|
-
let e = o === void 0 ? m() : o.replace(/\/+$/, ""), t = new URLSearchParams();
|
|
171
|
-
a !== void 0 && Number.isInteger(a) && a > 0 && t.set("w", String(a)), s > 0 && (t.set("force", "1"), t.set("r", String(s)));
|
|
172
|
-
let n = t.toString();
|
|
173
|
-
return `${e}${O}/${String(r)}.jpg${n.length > 0 ? `?${n}` : ""}`;
|
|
174
|
-
}, [
|
|
175
|
-
r,
|
|
176
|
-
a,
|
|
177
|
-
o,
|
|
178
|
-
s
|
|
179
|
-
]),
|
|
180
|
-
loading: !1,
|
|
181
|
-
refresh: e(() => {
|
|
182
|
-
c((e) => e + 1);
|
|
183
|
-
}, [])
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
//#endregion
|
|
187
|
-
export { E as a, g as c, a as d, b as i, s as l, _ as n, C as o, w as r, y as s, k as t, o as u };
|
|
187
|
+
export { T as a, g as c, a as d, O as i, s as l, E as n, x as o, S as r, v as s, y as t, o as u };
|
|
@@ -2753,7 +2753,7 @@ async function rr(e) {
|
|
|
2753
2753
|
}
|
|
2754
2754
|
}
|
|
2755
2755
|
async function ir() {
|
|
2756
|
-
return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-
|
|
2756
|
+
return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-DYqebP3v.mjs")).catch((e) => {
|
|
2757
2757
|
throw tr = void 0, e;
|
|
2758
2758
|
}), tr;
|
|
2759
2759
|
}
|