@camstack/addon-model-studio 1.1.49 → 1.1.50

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.
Files changed (18) hide show
  1. package/dist/{MotionZonesSettings-nSvd3wgP.mjs → MotionZonesSettings-OKgi_6ij.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-DpUECTGc.mjs → PrivacyMaskSettings-CDq1cPBg.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-BYUThwmI.mjs → SceneMonitorEditor-BiYS5EQf.mjs} +3 -3
  4. package/dist/_stub.js +12 -12
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-BrFWLLUB.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-DesTVb3n.mjs} +4 -4
  6. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CX9ONuvO.mjs +26 -0
  7. package/dist/{hostInit-GLZyh6hk.mjs → hostInit-BVkEE3at.mjs} +3 -3
  8. package/dist/model-studio.addon.js +255 -25
  9. package/dist/model-studio.addon.mjs +255 -25
  10. package/dist/{player-overlays-DxPiRDNZ.mjs → player-overlays-ChKwd9V6.mjs} +1 -1
  11. package/dist/remoteEntry.js +1 -1
  12. package/dist/{responsive-ChIDJ7ve.mjs → responsive-CmBG3EBf.mjs} +1 -1
  13. package/dist/{square-CpAXUT52.mjs → square-Z063y6nN.mjs} +1 -1
  14. package/dist/{trash-2-siK2nOpd.mjs → trash-2-DrMIwp0M.mjs} +1 -1
  15. package/dist/{use-device-snapshot-CLLnyzyW.mjs → use-device-snapshot-CxvtHnr6.mjs} +1 -1
  16. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-D-6VGno6.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-WBWKfCvF.mjs} +1 -1
  17. package/package.json +1 -1
  18. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-D5YltPmo.mjs +0 -26
@@ -618,7 +618,7 @@ async function importScryptedCatalogModel(input, deps) {
618
618
  }
619
619
  }
620
620
  //#endregion
621
- //#region ../types/dist/event-category-CIa_iT6b.mjs
621
+ //#region ../types/dist/event-category-BZL-fdNj.mjs
622
622
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
623
623
  EventCategory["SystemBoot"] = "system.boot";
624
624
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -1055,7 +1055,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
1055
1055
  EventCategory["MetricsNodeResourcesSnapshot"] = "metrics.node-resources-snapshot";
1056
1056
  /**
1057
1057
  * Periodic per-node process-tree snapshot (camstack-related pids
1058
- * with ghost / managed / root classification). Emitted ~0.2 Hz by
1058
+ * with root / managed / system classification). Emitted ~0.2 Hz by
1059
1059
  * the metrics-provider addon. Drives the Cluster → Processes tab
1060
1060
  * without polling `metricsProvider.listNodeProcesses`.
1061
1061
  */
@@ -11844,6 +11844,19 @@ var SettingsRecordSchema = object({
11844
11844
  data: record(string(), unknown())
11845
11845
  });
11846
11846
  /**
11847
+ * One record of a BULK insert — {@link SettingsRecordSchema} with the id made
11848
+ * optional.
11849
+ *
11850
+ * A separate schema rather than loosening the shared one: every other method
11851
+ * on this cap addresses a row BY its id, and making that field optional
11852
+ * everywhere would turn a forgotten key into a silently generated one on
11853
+ * `update` and `delete` as well.
11854
+ */
11855
+ var BulkRecordSchema = object({
11856
+ id: string().optional(),
11857
+ data: record(string(), unknown())
11858
+ });
11859
+ /**
11847
11860
  * Column declaration for a structured (SQL-backed) collection.
11848
11861
  *
11849
11862
  * Logical types — the backend translates each to the matching SQLite
@@ -11900,6 +11913,10 @@ method(object({
11900
11913
  collection: string(),
11901
11914
  record: SettingsRecordSchema
11902
11915
  }), _void(), { kind: "mutation" }), method(object({
11916
+ namespace: string().optional(),
11917
+ collection: string(),
11918
+ records: array(BulkRecordSchema).readonly()
11919
+ }), object({ inserted: number().int() }), { kind: "mutation" }), method(object({
11903
11920
  namespace: string().optional(),
11904
11921
  collection: string(),
11905
11922
  id: string(),
@@ -12008,6 +12025,13 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
12008
12025
  }), _void(), {
12009
12026
  kind: "mutation",
12010
12027
  auth: "admin"
12028
+ }), method(object({
12029
+ namespace: string().optional(),
12030
+ collection: string(),
12031
+ records: array(BulkRecordSchema).readonly()
12032
+ }), object({ inserted: number().int() }), {
12033
+ kind: "mutation",
12034
+ auth: "admin"
12011
12035
  }), method(object({
12012
12036
  namespace: string().optional(),
12013
12037
  collection: string(),
@@ -13776,6 +13800,68 @@ method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
13776
13800
  limit: number().optional(),
13777
13801
  tags: record(string(), string()).optional()
13778
13802
  }), array(LogEntrySchema).readonly());
13803
+ var LoadContributionSchema = object({
13804
+ role: _enum([
13805
+ "decode",
13806
+ "transcode",
13807
+ "recording",
13808
+ "streaming",
13809
+ "detection"
13810
+ ]),
13811
+ /**
13812
+ * The NUMERIC device id — the same value every log line carries as
13813
+ * `tags.deviceId`. `null` means this cost genuinely belongs to no single
13814
+ * camera (a shared pool), NOT that the contributor forgot to look it up: a
13815
+ * contributor that cannot name its camera must not emit the entry at all,
13816
+ * because an unnamed per-camera entry is indistinguishable from a shared one
13817
+ * and would quietly turn one camera's cost into everybody's.
13818
+ */
13819
+ deviceId: number().int().positive().nullable(),
13820
+ attribution: _enum([
13821
+ "measured",
13822
+ "accounted",
13823
+ "unattributable"
13824
+ ]),
13825
+ /**
13826
+ * What ONE entry is, in the contributor's own words — `615/high`,
13827
+ * `617/native`, `cuda:0 shared pool`. Free text because the unit differs per
13828
+ * family and inventing a common one would lose the only information that
13829
+ * makes two entries for the same camera distinguishable.
13830
+ */
13831
+ unit: string(),
13832
+ /**
13833
+ * The OS process this cost lives in, when there is one. Present so a
13834
+ * consumer can (a) tell two generations of the same unit apart across a
13835
+ * restart, and (b) subtract claimed processes from the node's process
13836
+ * snapshot to see what NOBODY claimed. Absent for an entry that owns no
13837
+ * process of its own.
13838
+ */
13839
+ pid: number().int().positive().optional(),
13840
+ /**
13841
+ * When this generation started. The pid's incarnation marker: a consumer
13842
+ * differencing {@link LoadContributionSchema.shape.cpuSeconds} must drop the
13843
+ * window when this changes, because the counter restarted from zero in a new
13844
+ * process.
13845
+ */
13846
+ startedAtMs: number().optional(),
13847
+ /**
13848
+ * CUMULATIVE CPU seconds this unit has consumed since it started — user +
13849
+ * system, read from the child's own `/proc/<pid>/stat` at the moment the
13850
+ * contribution is asked for.
13851
+ *
13852
+ * Cumulative and not a rate on purpose: a rate needs a window, a window
13853
+ * needs a sampler, and a new per-node sampler is the defect half of
13854
+ * `docs/architecture/load-ledger.md` documents. A counter can be differenced
13855
+ * by whoever already keeps a history; a rate cannot be un-averaged.
13856
+ *
13857
+ * Absent — never zero — on a node with no `/proc`, on a read failure, and on
13858
+ * an entry with no process.
13859
+ */
13860
+ cpuSeconds: number().optional(),
13861
+ /** Resident bytes of this unit's process, same source and same rules. */
13862
+ rssBytes: number().optional()
13863
+ });
13864
+ method(_void(), array(LoadContributionSchema).readonly());
13779
13865
  /**
13780
13866
  * `login-method` — collection cap through which auth addons contribute
13781
13867
  * their pre-auth login surfaces to the login page. This is the SINGLE,
@@ -13979,8 +14065,7 @@ var NodeProcessSchema = object({
13979
14065
  classification: _enum([
13980
14066
  "root",
13981
14067
  "managed",
13982
- "system",
13983
- "ghost"
14068
+ "system"
13984
14069
  ]),
13985
14070
  /** `$process` addon binding when `managed`, else null. */
13986
14071
  addonId: string().nullable(),
@@ -13988,22 +14073,39 @@ var NodeProcessSchema = object({
13988
14073
  nodeId: string().nullable(),
13989
14074
  /** Truncated command line. */
13990
14075
  command: string(),
14076
+ /**
14077
+ * `ps pcpu` — CPU averaged over the process's WHOLE LIFETIME, not a rate.
14078
+ * On a runner up for days it barely moves. Fine as a column, useless as a
14079
+ * series: use `cpuMainPercent + cpuGcPercent` for anything time-varying.
14080
+ */
13991
14081
  cpuPercent: number(),
13992
14082
  memoryRssBytes: number(),
14083
+ /**
14084
+ * Instantaneous CPU% of the process's own threads over the last
14085
+ * process-snapshot window, from a `/proc/<pid>/task/*` tick delta.
14086
+ *
14087
+ * `null` = UNKNOWN, never zero: no previous sample yet (first tick after
14088
+ * boot), the pid was recycled, or this node is not Linux.
14089
+ */
14090
+ cpuMainPercent: number().nullable(),
14091
+ /**
14092
+ * Instantaneous CPU% of V8's `V8Worker` platform pool over the same window.
14093
+ *
14094
+ * This is the number that rewrote the 2026-08-27 diagnosis — hub-main 73%,
14095
+ * `stream-broker` 61% (`docs/architecture/load-ledger.md`). A CPU chart that
14096
+ * does not separate it from `cpuMainPercent` shows "busy" where the truth is
14097
+ * "allocating too much".
14098
+ *
14099
+ * Concurrent GC is the dominant tenant of that pool but not the only one
14100
+ * (background compilation runs there too), so it is reported as
14101
+ * "GC / V8 helpers" rather than as pure collection time. `null` has the same
14102
+ * meaning as on `cpuMainPercent`.
14103
+ */
14104
+ cpuGcPercent: number().nullable(),
14105
+ /** Threads seen in the tick scan. `null` under the same conditions. */
14106
+ threadCount: number().nullable(),
13993
14107
  /** Wall-clock uptime (seconds). Parsed from `ps etime`. */
13994
- uptimeSec: number(),
13995
- /** True when ancestor walk reaches `ppid=1` (reparented to init/launchd). */
13996
- orphaned: boolean()
13997
- });
13998
- var KillProcessInputSchema = object({
13999
- pid: number(),
14000
- /** Force = SIGKILL. Default is SIGTERM. */
14001
- force: boolean().optional()
14002
- });
14003
- var KillProcessResultSchema = object({
14004
- success: boolean(),
14005
- reason: string().optional(),
14006
- signal: _enum(["SIGTERM", "SIGKILL"]).optional()
14108
+ uptimeSec: number()
14007
14109
  });
14008
14110
  var DumpHeapSnapshotInputSchema = object({
14009
14111
  /** The addon whose runner should dump a heap snapshot. */
@@ -14016,6 +14118,104 @@ var DumpHeapSnapshotResultSchema = object({
14016
14118
  pid: number().optional(),
14017
14119
  reason: string().optional()
14018
14120
  });
14121
+ /**
14122
+ * One point of one function's series.
14123
+ *
14124
+ * The unsuffixed fields are the bucket's **MAXIMUM**, and that choice is the
14125
+ * point of the whole surface. The two obvious reductions both lie: a mean per
14126
+ * bucket smears a spike away, and taking every Nth sample skips it outright.
14127
+ * Either would give us a tool built to find peaks that does not show peaks.
14128
+ * `...Min` carries the other end, `samples` says how many raw snapshots folded
14129
+ * into the bucket, and a mean stays derivable where it is wanted.
14130
+ *
14131
+ * An UNREDUCED point is a one-sample bucket: `samples === 1` and each `...Min`
14132
+ * equals its unsuffixed twin. Reduced and unreduced are the same shape, so a
14133
+ * caller cannot tell which it received — which is what "one reader" means.
14134
+ */
14135
+ var LoadPointSchema = object({
14136
+ /** Bucket START, or the snapshot's own timestamp when unreduced. */
14137
+ atMs: number(),
14138
+ /** Raw snapshots in this bucket. Never 0 — AN EMPTY BUCKET IS ABSENT. */
14139
+ samples: number().int(),
14140
+ /**
14141
+ * `null` = UNKNOWN and it PROPAGATES: a bucket is null unless every process
14142
+ * of every snapshot in it reported a thread split. A partial sum is a
14143
+ * smaller number that looks exactly as real as a complete one.
14144
+ */
14145
+ cpuMainPercent: number().nullable(),
14146
+ cpuMainPercentMin: number().nullable(),
14147
+ cpuGcPercent: number().nullable(),
14148
+ cpuGcPercentMin: number().nullable(),
14149
+ /** Lifetime-average CPU%, summed. Always known — and never a rate. */
14150
+ cpuLifetimePercent: number(),
14151
+ cpuLifetimePercentMin: number(),
14152
+ memoryRssBytes: number(),
14153
+ memoryRssBytesMin: number(),
14154
+ processCount: number().int(),
14155
+ processCountMin: number().int()
14156
+ });
14157
+ /** One function's series. `key` is an addonId, `__root__` or `__unattributed__`. */
14158
+ var LoadFunctionSeriesSchema = object({
14159
+ key: string(),
14160
+ kind: _enum([
14161
+ "addon",
14162
+ "root",
14163
+ "unattributed"
14164
+ ]),
14165
+ /** Oldest-first. A missing interval is MISSING — never zero-filled. */
14166
+ points: array(LoadPointSchema).readonly()
14167
+ });
14168
+ var NodeLoadSeriesSchema = object({
14169
+ nodeId: string(),
14170
+ /** One entry per function seen in the window, heaviest-first. */
14171
+ series: array(LoadFunctionSeriesSchema).readonly(),
14172
+ /**
14173
+ * Width of one returned bucket, in ms. Equals the sampling cadence when no
14174
+ * reduction was needed — so a caller can always say what one point covers
14175
+ * without having to know whether it was reduced.
14176
+ */
14177
+ bucketMs: number(),
14178
+ /** Raw snapshots that went into this answer, across both tiers. */
14179
+ retainedSamples: number(),
14180
+ /** Oldest snapshot represented, or `null` when nothing is retained. */
14181
+ oldestAtMs: number().nullable(),
14182
+ /** The fixed sampling cadence in force on the cluster, in ms. */
14183
+ cadenceMs: number(),
14184
+ /**
14185
+ * Did the DURABLE tier contribute? `false` means the answer is the hot ring
14186
+ * alone — an agent (which holds no table), or a store that refused.
14187
+ * Reported because "the last hour" and "the last six hours" are different
14188
+ * questions and an operator must not have to guess which was answered.
14189
+ */
14190
+ durable: boolean()
14191
+ });
14192
+ var GetLoadSeriesInputSchema = object({
14193
+ /**
14194
+ * The node whose series is wanted.
14195
+ *
14196
+ * NOT named `nodeId`: the generated cap router strips a top-level
14197
+ * `nodeId` from every method input and uses it to ROUTE the call to
14198
+ * that node's provider (`generated-cap-routers.ts`). A series target
14199
+ * called `nodeId` would silently become a routing pin and never reach
14200
+ * the provider. The hub holds every node it hears from, so the
14201
+ * ordinary call is unpinned — answered by the hub, for any node.
14202
+ */
14203
+ forNodeId: string(),
14204
+ /**
14205
+ * EXCLUSIVE lower bound. A caller passes the newest `atMs` it already
14206
+ * holds and receives only what it is missing, so seeding a live chart
14207
+ * from this method cannot double a point already drawn.
14208
+ */
14209
+ sinceMs: number().optional(),
14210
+ /**
14211
+ * Most points the caller wants PER FUNCTION. The window is reduced to fit,
14212
+ * preserving min and max per bucket.
14213
+ *
14214
+ * Absent means NO reduction — legitimate for a short window and a trap for a
14215
+ * long one, which is why a chart passes its own pixel width.
14216
+ */
14217
+ maxPoints: number().int().positive().optional()
14218
+ });
14019
14219
  var SystemMetricsSchema = object({
14020
14220
  cpuPercent: number(),
14021
14221
  memoryPercent: number(),
@@ -14026,10 +14226,7 @@ var SystemMetricsSchema = object({
14026
14226
  gpuPercent: number().optional(),
14027
14227
  gpuMemoryPercent: number().optional()
14028
14228
  });
14029
- method(_void(), SystemResourceSnapshotSchema), method(_void(), SystemResourceSnapshotSchema.nullable()), method(_void(), SystemMetricsSchema), method(object({ dirPath: string() }), DiskSpaceInfoSchema), method(_void(), MetricsGpuInfoSchema.nullable()), method(_void(), number().nullable()), method(object({ pids: array(number()) }), array(PidResourceStatsSchema)), method(_void(), array(AddonInstanceSchema).readonly()), method(object({ addonId: string() }), PidResourceStatsSchema.nullable()), method(_void(), array(NodeProcessSchema).readonly()), method(KillProcessInputSchema, KillProcessResultSchema, {
14030
- kind: "mutation",
14031
- auth: "admin"
14032
- }), method(DumpHeapSnapshotInputSchema, DumpHeapSnapshotResultSchema, {
14229
+ method(_void(), SystemResourceSnapshotSchema), method(_void(), SystemResourceSnapshotSchema.nullable()), method(_void(), SystemMetricsSchema), method(object({ dirPath: string() }), DiskSpaceInfoSchema), method(_void(), MetricsGpuInfoSchema.nullable()), method(_void(), number().nullable()), method(object({ pids: array(number()) }), array(PidResourceStatsSchema)), method(_void(), array(AddonInstanceSchema).readonly()), method(object({ addonId: string() }), PidResourceStatsSchema.nullable()), method(_void(), array(NodeProcessSchema).readonly()), method(GetLoadSeriesInputSchema, NodeLoadSeriesSchema), method(DumpHeapSnapshotInputSchema, DumpHeapSnapshotResultSchema, {
14033
14230
  kind: "mutation",
14034
14231
  auth: "admin"
14035
14232
  });
@@ -27338,6 +27535,15 @@ var LoggingSettingsPatchSchema = object({
27338
27535
  * authority over the whole hierarchy and answers for every layer, so the
27339
27536
  * layer selector needs a name the transport does not already own.
27340
27537
  */
27538
+ /**
27539
+ * One contribution, plus WHO reported it.
27540
+ *
27541
+ * The addon and node are added by the hub as it enumerates providers, never by
27542
+ * the contributor: an addon reporting its own identity could report somebody
27543
+ * else's, and the whole point of this surface is that no claim is made by
27544
+ * anyone but its owner.
27545
+ */
27546
+ var ReportedLoadContributionSchema = LoadContributionSchema.extend({ addonId: string() });
27341
27547
  var GetLoggingSettingsInputSchema = object({
27342
27548
  scopeNodeId: string().optional(),
27343
27549
  /**
@@ -27396,7 +27602,7 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
27396
27602
  }), method(_void(), SiteLocationStatusSchema, {
27397
27603
  kind: "mutation",
27398
27604
  auth: "admin"
27399
- }), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
27605
+ }), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(_void(), array(ReportedLoadContributionSchema).readonly(), { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
27400
27606
  kind: "mutation",
27401
27607
  auth: "admin"
27402
27608
  });
@@ -29012,6 +29218,12 @@ Object.freeze({
29012
29218
  addonId: null,
29013
29219
  access: "create"
29014
29220
  },
29221
+ "dataStoreProvider.insertMany": {
29222
+ capName: "data-store-provider",
29223
+ capScope: "system",
29224
+ addonId: null,
29225
+ access: "create"
29226
+ },
29015
29227
  "dataStoreProvider.isEmpty": {
29016
29228
  capName: "data-store-provider",
29017
29229
  capScope: "system",
@@ -30326,6 +30538,12 @@ Object.freeze({
30326
30538
  addonId: null,
30327
30539
  access: "create"
30328
30540
  },
30541
+ "loadContribution.list": {
30542
+ capName: "load-contribution",
30543
+ capScope: "system",
30544
+ addonId: null,
30545
+ access: "view"
30546
+ },
30329
30547
  "localNetwork.downloadCa": {
30330
30548
  capName: "local-network",
30331
30549
  capScope: "system",
@@ -30626,17 +30844,17 @@ Object.freeze({
30626
30844
  addonId: null,
30627
30845
  access: "view"
30628
30846
  },
30629
- "metricsProvider.getProcessStats": {
30847
+ "metricsProvider.getLoadSeries": {
30630
30848
  capName: "metrics-provider",
30631
30849
  capScope: "system",
30632
30850
  addonId: null,
30633
30851
  access: "view"
30634
30852
  },
30635
- "metricsProvider.killProcess": {
30853
+ "metricsProvider.getProcessStats": {
30636
30854
  capName: "metrics-provider",
30637
30855
  capScope: "system",
30638
30856
  addonId: null,
30639
- access: "create"
30857
+ access: "view"
30640
30858
  },
30641
30859
  "metricsProvider.listAddonInstances": {
30642
30860
  capName: "metrics-provider",
@@ -32648,6 +32866,12 @@ Object.freeze({
32648
32866
  addonId: null,
32649
32867
  access: "create"
32650
32868
  },
32869
+ "settingsStore.insertMany": {
32870
+ capName: "settings-store",
32871
+ capScope: "system",
32872
+ addonId: null,
32873
+ access: "create"
32874
+ },
32651
32875
  "settingsStore.isEmpty": {
32652
32876
  capName: "settings-store",
32653
32877
  capScope: "system",
@@ -33260,6 +33484,12 @@ Object.freeze({
33260
33484
  addonId: null,
33261
33485
  access: "create"
33262
33486
  },
33487
+ "system.getLoadContributions": {
33488
+ capName: "system",
33489
+ capScope: "system",
33490
+ addonId: null,
33491
+ access: "view"
33492
+ },
33263
33493
  "system.getLoggingSettings": {
33264
33494
  capName: "system",
33265
33495
  capScope: "system",