@camstack/addon-tailscale 1.2.35 → 1.2.37
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/client/tailscale.addon.js +1 -1
- package/dist/client/tailscale.addon.mjs +1 -1
- package/dist/{dist-CGnxfaPe.mjs → dist-BBoke9_u.mjs} +255 -25
- package/dist/{dist-KZM_ozLM.js → dist-oQYtf-HC.js} +255 -25
- package/dist/ingress/tailscale-ingress.addon.js +1 -1
- package/dist/ingress/tailscale-ingress.addon.mjs +1 -1
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
enumerable: true
|
|
25
25
|
}) : target, mod));
|
|
26
26
|
//#endregion
|
|
27
|
-
const require_dist = require("../dist-
|
|
27
|
+
const require_dist = require("../dist-oQYtf-HC.js");
|
|
28
28
|
let node_child_process = require("node:child_process");
|
|
29
29
|
let node_util = require("node:util");
|
|
30
30
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-
|
|
1
|
+
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-BBoke9_u.mjs";
|
|
2
2
|
import { execFile, spawn } from "node:child_process";
|
|
3
3
|
import { promisify } from "node:util";
|
|
4
4
|
import * as fs from "node:fs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../types/dist/event-category-
|
|
1
|
+
//#region ../types/dist/event-category-BZL-fdNj.mjs
|
|
2
2
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
3
3
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4
4
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -435,7 +435,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
435
435
|
EventCategory["MetricsNodeResourcesSnapshot"] = "metrics.node-resources-snapshot";
|
|
436
436
|
/**
|
|
437
437
|
* Periodic per-node process-tree snapshot (camstack-related pids
|
|
438
|
-
* with
|
|
438
|
+
* with root / managed / system classification). Emitted ~0.2 Hz by
|
|
439
439
|
* the metrics-provider addon. Drives the Cluster → Processes tab
|
|
440
440
|
* without polling `metricsProvider.listNodeProcesses`.
|
|
441
441
|
*/
|
|
@@ -11143,6 +11143,19 @@ var SettingsRecordSchema = object({
|
|
|
11143
11143
|
data: record(string(), unknown())
|
|
11144
11144
|
});
|
|
11145
11145
|
/**
|
|
11146
|
+
* One record of a BULK insert — {@link SettingsRecordSchema} with the id made
|
|
11147
|
+
* optional.
|
|
11148
|
+
*
|
|
11149
|
+
* A separate schema rather than loosening the shared one: every other method
|
|
11150
|
+
* on this cap addresses a row BY its id, and making that field optional
|
|
11151
|
+
* everywhere would turn a forgotten key into a silently generated one on
|
|
11152
|
+
* `update` and `delete` as well.
|
|
11153
|
+
*/
|
|
11154
|
+
var BulkRecordSchema = object({
|
|
11155
|
+
id: string().optional(),
|
|
11156
|
+
data: record(string(), unknown())
|
|
11157
|
+
});
|
|
11158
|
+
/**
|
|
11146
11159
|
* Column declaration for a structured (SQL-backed) collection.
|
|
11147
11160
|
*
|
|
11148
11161
|
* Logical types — the backend translates each to the matching SQLite
|
|
@@ -11199,6 +11212,10 @@ method(object({
|
|
|
11199
11212
|
collection: string(),
|
|
11200
11213
|
record: SettingsRecordSchema
|
|
11201
11214
|
}), _void(), { kind: "mutation" }), method(object({
|
|
11215
|
+
namespace: string().optional(),
|
|
11216
|
+
collection: string(),
|
|
11217
|
+
records: array(BulkRecordSchema).readonly()
|
|
11218
|
+
}), object({ inserted: number().int() }), { kind: "mutation" }), method(object({
|
|
11202
11219
|
namespace: string().optional(),
|
|
11203
11220
|
collection: string(),
|
|
11204
11221
|
id: string(),
|
|
@@ -11307,6 +11324,13 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
11307
11324
|
}), _void(), {
|
|
11308
11325
|
kind: "mutation",
|
|
11309
11326
|
auth: "admin"
|
|
11327
|
+
}), method(object({
|
|
11328
|
+
namespace: string().optional(),
|
|
11329
|
+
collection: string(),
|
|
11330
|
+
records: array(BulkRecordSchema).readonly()
|
|
11331
|
+
}), object({ inserted: number().int() }), {
|
|
11332
|
+
kind: "mutation",
|
|
11333
|
+
auth: "admin"
|
|
11310
11334
|
}), method(object({
|
|
11311
11335
|
namespace: string().optional(),
|
|
11312
11336
|
collection: string(),
|
|
@@ -13075,6 +13099,68 @@ method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
|
|
|
13075
13099
|
limit: number().optional(),
|
|
13076
13100
|
tags: record(string(), string()).optional()
|
|
13077
13101
|
}), array(LogEntrySchema).readonly());
|
|
13102
|
+
var LoadContributionSchema = object({
|
|
13103
|
+
role: _enum([
|
|
13104
|
+
"decode",
|
|
13105
|
+
"transcode",
|
|
13106
|
+
"recording",
|
|
13107
|
+
"streaming",
|
|
13108
|
+
"detection"
|
|
13109
|
+
]),
|
|
13110
|
+
/**
|
|
13111
|
+
* The NUMERIC device id — the same value every log line carries as
|
|
13112
|
+
* `tags.deviceId`. `null` means this cost genuinely belongs to no single
|
|
13113
|
+
* camera (a shared pool), NOT that the contributor forgot to look it up: a
|
|
13114
|
+
* contributor that cannot name its camera must not emit the entry at all,
|
|
13115
|
+
* because an unnamed per-camera entry is indistinguishable from a shared one
|
|
13116
|
+
* and would quietly turn one camera's cost into everybody's.
|
|
13117
|
+
*/
|
|
13118
|
+
deviceId: number().int().positive().nullable(),
|
|
13119
|
+
attribution: _enum([
|
|
13120
|
+
"measured",
|
|
13121
|
+
"accounted",
|
|
13122
|
+
"unattributable"
|
|
13123
|
+
]),
|
|
13124
|
+
/**
|
|
13125
|
+
* What ONE entry is, in the contributor's own words — `615/high`,
|
|
13126
|
+
* `617/native`, `cuda:0 shared pool`. Free text because the unit differs per
|
|
13127
|
+
* family and inventing a common one would lose the only information that
|
|
13128
|
+
* makes two entries for the same camera distinguishable.
|
|
13129
|
+
*/
|
|
13130
|
+
unit: string(),
|
|
13131
|
+
/**
|
|
13132
|
+
* The OS process this cost lives in, when there is one. Present so a
|
|
13133
|
+
* consumer can (a) tell two generations of the same unit apart across a
|
|
13134
|
+
* restart, and (b) subtract claimed processes from the node's process
|
|
13135
|
+
* snapshot to see what NOBODY claimed. Absent for an entry that owns no
|
|
13136
|
+
* process of its own.
|
|
13137
|
+
*/
|
|
13138
|
+
pid: number().int().positive().optional(),
|
|
13139
|
+
/**
|
|
13140
|
+
* When this generation started. The pid's incarnation marker: a consumer
|
|
13141
|
+
* differencing {@link LoadContributionSchema.shape.cpuSeconds} must drop the
|
|
13142
|
+
* window when this changes, because the counter restarted from zero in a new
|
|
13143
|
+
* process.
|
|
13144
|
+
*/
|
|
13145
|
+
startedAtMs: number().optional(),
|
|
13146
|
+
/**
|
|
13147
|
+
* CUMULATIVE CPU seconds this unit has consumed since it started — user +
|
|
13148
|
+
* system, read from the child's own `/proc/<pid>/stat` at the moment the
|
|
13149
|
+
* contribution is asked for.
|
|
13150
|
+
*
|
|
13151
|
+
* Cumulative and not a rate on purpose: a rate needs a window, a window
|
|
13152
|
+
* needs a sampler, and a new per-node sampler is the defect half of
|
|
13153
|
+
* `docs/architecture/load-ledger.md` documents. A counter can be differenced
|
|
13154
|
+
* by whoever already keeps a history; a rate cannot be un-averaged.
|
|
13155
|
+
*
|
|
13156
|
+
* Absent — never zero — on a node with no `/proc`, on a read failure, and on
|
|
13157
|
+
* an entry with no process.
|
|
13158
|
+
*/
|
|
13159
|
+
cpuSeconds: number().optional(),
|
|
13160
|
+
/** Resident bytes of this unit's process, same source and same rules. */
|
|
13161
|
+
rssBytes: number().optional()
|
|
13162
|
+
});
|
|
13163
|
+
method(_void(), array(LoadContributionSchema).readonly());
|
|
13078
13164
|
/**
|
|
13079
13165
|
* `login-method` — collection cap through which auth addons contribute
|
|
13080
13166
|
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
@@ -13278,8 +13364,7 @@ var NodeProcessSchema = object({
|
|
|
13278
13364
|
classification: _enum([
|
|
13279
13365
|
"root",
|
|
13280
13366
|
"managed",
|
|
13281
|
-
"system"
|
|
13282
|
-
"ghost"
|
|
13367
|
+
"system"
|
|
13283
13368
|
]),
|
|
13284
13369
|
/** `$process` addon binding when `managed`, else null. */
|
|
13285
13370
|
addonId: string().nullable(),
|
|
@@ -13287,22 +13372,39 @@ var NodeProcessSchema = object({
|
|
|
13287
13372
|
nodeId: string().nullable(),
|
|
13288
13373
|
/** Truncated command line. */
|
|
13289
13374
|
command: string(),
|
|
13375
|
+
/**
|
|
13376
|
+
* `ps pcpu` — CPU averaged over the process's WHOLE LIFETIME, not a rate.
|
|
13377
|
+
* On a runner up for days it barely moves. Fine as a column, useless as a
|
|
13378
|
+
* series: use `cpuMainPercent + cpuGcPercent` for anything time-varying.
|
|
13379
|
+
*/
|
|
13290
13380
|
cpuPercent: number(),
|
|
13291
13381
|
memoryRssBytes: number(),
|
|
13382
|
+
/**
|
|
13383
|
+
* Instantaneous CPU% of the process's own threads over the last
|
|
13384
|
+
* process-snapshot window, from a `/proc/<pid>/task/*` tick delta.
|
|
13385
|
+
*
|
|
13386
|
+
* `null` = UNKNOWN, never zero: no previous sample yet (first tick after
|
|
13387
|
+
* boot), the pid was recycled, or this node is not Linux.
|
|
13388
|
+
*/
|
|
13389
|
+
cpuMainPercent: number().nullable(),
|
|
13390
|
+
/**
|
|
13391
|
+
* Instantaneous CPU% of V8's `V8Worker` platform pool over the same window.
|
|
13392
|
+
*
|
|
13393
|
+
* This is the number that rewrote the 2026-08-27 diagnosis — hub-main 73%,
|
|
13394
|
+
* `stream-broker` 61% (`docs/architecture/load-ledger.md`). A CPU chart that
|
|
13395
|
+
* does not separate it from `cpuMainPercent` shows "busy" where the truth is
|
|
13396
|
+
* "allocating too much".
|
|
13397
|
+
*
|
|
13398
|
+
* Concurrent GC is the dominant tenant of that pool but not the only one
|
|
13399
|
+
* (background compilation runs there too), so it is reported as
|
|
13400
|
+
* "GC / V8 helpers" rather than as pure collection time. `null` has the same
|
|
13401
|
+
* meaning as on `cpuMainPercent`.
|
|
13402
|
+
*/
|
|
13403
|
+
cpuGcPercent: number().nullable(),
|
|
13404
|
+
/** Threads seen in the tick scan. `null` under the same conditions. */
|
|
13405
|
+
threadCount: number().nullable(),
|
|
13292
13406
|
/** Wall-clock uptime (seconds). Parsed from `ps etime`. */
|
|
13293
|
-
uptimeSec: number()
|
|
13294
|
-
/** True when ancestor walk reaches `ppid=1` (reparented to init/launchd). */
|
|
13295
|
-
orphaned: boolean()
|
|
13296
|
-
});
|
|
13297
|
-
var KillProcessInputSchema = object({
|
|
13298
|
-
pid: number(),
|
|
13299
|
-
/** Force = SIGKILL. Default is SIGTERM. */
|
|
13300
|
-
force: boolean().optional()
|
|
13301
|
-
});
|
|
13302
|
-
var KillProcessResultSchema = object({
|
|
13303
|
-
success: boolean(),
|
|
13304
|
-
reason: string().optional(),
|
|
13305
|
-
signal: _enum(["SIGTERM", "SIGKILL"]).optional()
|
|
13407
|
+
uptimeSec: number()
|
|
13306
13408
|
});
|
|
13307
13409
|
var DumpHeapSnapshotInputSchema = object({
|
|
13308
13410
|
/** The addon whose runner should dump a heap snapshot. */
|
|
@@ -13315,6 +13417,104 @@ var DumpHeapSnapshotResultSchema = object({
|
|
|
13315
13417
|
pid: number().optional(),
|
|
13316
13418
|
reason: string().optional()
|
|
13317
13419
|
});
|
|
13420
|
+
/**
|
|
13421
|
+
* One point of one function's series.
|
|
13422
|
+
*
|
|
13423
|
+
* The unsuffixed fields are the bucket's **MAXIMUM**, and that choice is the
|
|
13424
|
+
* point of the whole surface. The two obvious reductions both lie: a mean per
|
|
13425
|
+
* bucket smears a spike away, and taking every Nth sample skips it outright.
|
|
13426
|
+
* Either would give us a tool built to find peaks that does not show peaks.
|
|
13427
|
+
* `...Min` carries the other end, `samples` says how many raw snapshots folded
|
|
13428
|
+
* into the bucket, and a mean stays derivable where it is wanted.
|
|
13429
|
+
*
|
|
13430
|
+
* An UNREDUCED point is a one-sample bucket: `samples === 1` and each `...Min`
|
|
13431
|
+
* equals its unsuffixed twin. Reduced and unreduced are the same shape, so a
|
|
13432
|
+
* caller cannot tell which it received — which is what "one reader" means.
|
|
13433
|
+
*/
|
|
13434
|
+
var LoadPointSchema = object({
|
|
13435
|
+
/** Bucket START, or the snapshot's own timestamp when unreduced. */
|
|
13436
|
+
atMs: number(),
|
|
13437
|
+
/** Raw snapshots in this bucket. Never 0 — AN EMPTY BUCKET IS ABSENT. */
|
|
13438
|
+
samples: number().int(),
|
|
13439
|
+
/**
|
|
13440
|
+
* `null` = UNKNOWN and it PROPAGATES: a bucket is null unless every process
|
|
13441
|
+
* of every snapshot in it reported a thread split. A partial sum is a
|
|
13442
|
+
* smaller number that looks exactly as real as a complete one.
|
|
13443
|
+
*/
|
|
13444
|
+
cpuMainPercent: number().nullable(),
|
|
13445
|
+
cpuMainPercentMin: number().nullable(),
|
|
13446
|
+
cpuGcPercent: number().nullable(),
|
|
13447
|
+
cpuGcPercentMin: number().nullable(),
|
|
13448
|
+
/** Lifetime-average CPU%, summed. Always known — and never a rate. */
|
|
13449
|
+
cpuLifetimePercent: number(),
|
|
13450
|
+
cpuLifetimePercentMin: number(),
|
|
13451
|
+
memoryRssBytes: number(),
|
|
13452
|
+
memoryRssBytesMin: number(),
|
|
13453
|
+
processCount: number().int(),
|
|
13454
|
+
processCountMin: number().int()
|
|
13455
|
+
});
|
|
13456
|
+
/** One function's series. `key` is an addonId, `__root__` or `__unattributed__`. */
|
|
13457
|
+
var LoadFunctionSeriesSchema = object({
|
|
13458
|
+
key: string(),
|
|
13459
|
+
kind: _enum([
|
|
13460
|
+
"addon",
|
|
13461
|
+
"root",
|
|
13462
|
+
"unattributed"
|
|
13463
|
+
]),
|
|
13464
|
+
/** Oldest-first. A missing interval is MISSING — never zero-filled. */
|
|
13465
|
+
points: array(LoadPointSchema).readonly()
|
|
13466
|
+
});
|
|
13467
|
+
var NodeLoadSeriesSchema = object({
|
|
13468
|
+
nodeId: string(),
|
|
13469
|
+
/** One entry per function seen in the window, heaviest-first. */
|
|
13470
|
+
series: array(LoadFunctionSeriesSchema).readonly(),
|
|
13471
|
+
/**
|
|
13472
|
+
* Width of one returned bucket, in ms. Equals the sampling cadence when no
|
|
13473
|
+
* reduction was needed — so a caller can always say what one point covers
|
|
13474
|
+
* without having to know whether it was reduced.
|
|
13475
|
+
*/
|
|
13476
|
+
bucketMs: number(),
|
|
13477
|
+
/** Raw snapshots that went into this answer, across both tiers. */
|
|
13478
|
+
retainedSamples: number(),
|
|
13479
|
+
/** Oldest snapshot represented, or `null` when nothing is retained. */
|
|
13480
|
+
oldestAtMs: number().nullable(),
|
|
13481
|
+
/** The fixed sampling cadence in force on the cluster, in ms. */
|
|
13482
|
+
cadenceMs: number(),
|
|
13483
|
+
/**
|
|
13484
|
+
* Did the DURABLE tier contribute? `false` means the answer is the hot ring
|
|
13485
|
+
* alone — an agent (which holds no table), or a store that refused.
|
|
13486
|
+
* Reported because "the last hour" and "the last six hours" are different
|
|
13487
|
+
* questions and an operator must not have to guess which was answered.
|
|
13488
|
+
*/
|
|
13489
|
+
durable: boolean()
|
|
13490
|
+
});
|
|
13491
|
+
var GetLoadSeriesInputSchema = object({
|
|
13492
|
+
/**
|
|
13493
|
+
* The node whose series is wanted.
|
|
13494
|
+
*
|
|
13495
|
+
* NOT named `nodeId`: the generated cap router strips a top-level
|
|
13496
|
+
* `nodeId` from every method input and uses it to ROUTE the call to
|
|
13497
|
+
* that node's provider (`generated-cap-routers.ts`). A series target
|
|
13498
|
+
* called `nodeId` would silently become a routing pin and never reach
|
|
13499
|
+
* the provider. The hub holds every node it hears from, so the
|
|
13500
|
+
* ordinary call is unpinned — answered by the hub, for any node.
|
|
13501
|
+
*/
|
|
13502
|
+
forNodeId: string(),
|
|
13503
|
+
/**
|
|
13504
|
+
* EXCLUSIVE lower bound. A caller passes the newest `atMs` it already
|
|
13505
|
+
* holds and receives only what it is missing, so seeding a live chart
|
|
13506
|
+
* from this method cannot double a point already drawn.
|
|
13507
|
+
*/
|
|
13508
|
+
sinceMs: number().optional(),
|
|
13509
|
+
/**
|
|
13510
|
+
* Most points the caller wants PER FUNCTION. The window is reduced to fit,
|
|
13511
|
+
* preserving min and max per bucket.
|
|
13512
|
+
*
|
|
13513
|
+
* Absent means NO reduction — legitimate for a short window and a trap for a
|
|
13514
|
+
* long one, which is why a chart passes its own pixel width.
|
|
13515
|
+
*/
|
|
13516
|
+
maxPoints: number().int().positive().optional()
|
|
13517
|
+
});
|
|
13318
13518
|
var SystemMetricsSchema = object({
|
|
13319
13519
|
cpuPercent: number(),
|
|
13320
13520
|
memoryPercent: number(),
|
|
@@ -13325,10 +13525,7 @@ var SystemMetricsSchema = object({
|
|
|
13325
13525
|
gpuPercent: number().optional(),
|
|
13326
13526
|
gpuMemoryPercent: number().optional()
|
|
13327
13527
|
});
|
|
13328
|
-
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(
|
|
13329
|
-
kind: "mutation",
|
|
13330
|
-
auth: "admin"
|
|
13331
|
-
}), method(DumpHeapSnapshotInputSchema, DumpHeapSnapshotResultSchema, {
|
|
13528
|
+
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, {
|
|
13332
13529
|
kind: "mutation",
|
|
13333
13530
|
auth: "admin"
|
|
13334
13531
|
});
|
|
@@ -26709,6 +26906,15 @@ var LoggingSettingsPatchSchema = object({
|
|
|
26709
26906
|
* authority over the whole hierarchy and answers for every layer, so the
|
|
26710
26907
|
* layer selector needs a name the transport does not already own.
|
|
26711
26908
|
*/
|
|
26909
|
+
/**
|
|
26910
|
+
* One contribution, plus WHO reported it.
|
|
26911
|
+
*
|
|
26912
|
+
* The addon and node are added by the hub as it enumerates providers, never by
|
|
26913
|
+
* the contributor: an addon reporting its own identity could report somebody
|
|
26914
|
+
* else's, and the whole point of this surface is that no claim is made by
|
|
26915
|
+
* anyone but its owner.
|
|
26916
|
+
*/
|
|
26917
|
+
var ReportedLoadContributionSchema = LoadContributionSchema.extend({ addonId: string() });
|
|
26712
26918
|
var GetLoggingSettingsInputSchema = object({
|
|
26713
26919
|
scopeNodeId: string().optional(),
|
|
26714
26920
|
/**
|
|
@@ -26767,7 +26973,7 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
|
|
|
26767
26973
|
}), method(_void(), SiteLocationStatusSchema, {
|
|
26768
26974
|
kind: "mutation",
|
|
26769
26975
|
auth: "admin"
|
|
26770
|
-
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
26976
|
+
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(_void(), array(ReportedLoadContributionSchema).readonly(), { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
26771
26977
|
kind: "mutation",
|
|
26772
26978
|
auth: "admin"
|
|
26773
26979
|
});
|
|
@@ -28383,6 +28589,12 @@ Object.freeze({
|
|
|
28383
28589
|
addonId: null,
|
|
28384
28590
|
access: "create"
|
|
28385
28591
|
},
|
|
28592
|
+
"dataStoreProvider.insertMany": {
|
|
28593
|
+
capName: "data-store-provider",
|
|
28594
|
+
capScope: "system",
|
|
28595
|
+
addonId: null,
|
|
28596
|
+
access: "create"
|
|
28597
|
+
},
|
|
28386
28598
|
"dataStoreProvider.isEmpty": {
|
|
28387
28599
|
capName: "data-store-provider",
|
|
28388
28600
|
capScope: "system",
|
|
@@ -29697,6 +29909,12 @@ Object.freeze({
|
|
|
29697
29909
|
addonId: null,
|
|
29698
29910
|
access: "create"
|
|
29699
29911
|
},
|
|
29912
|
+
"loadContribution.list": {
|
|
29913
|
+
capName: "load-contribution",
|
|
29914
|
+
capScope: "system",
|
|
29915
|
+
addonId: null,
|
|
29916
|
+
access: "view"
|
|
29917
|
+
},
|
|
29700
29918
|
"localNetwork.downloadCa": {
|
|
29701
29919
|
capName: "local-network",
|
|
29702
29920
|
capScope: "system",
|
|
@@ -29997,17 +30215,17 @@ Object.freeze({
|
|
|
29997
30215
|
addonId: null,
|
|
29998
30216
|
access: "view"
|
|
29999
30217
|
},
|
|
30000
|
-
"metricsProvider.
|
|
30218
|
+
"metricsProvider.getLoadSeries": {
|
|
30001
30219
|
capName: "metrics-provider",
|
|
30002
30220
|
capScope: "system",
|
|
30003
30221
|
addonId: null,
|
|
30004
30222
|
access: "view"
|
|
30005
30223
|
},
|
|
30006
|
-
"metricsProvider.
|
|
30224
|
+
"metricsProvider.getProcessStats": {
|
|
30007
30225
|
capName: "metrics-provider",
|
|
30008
30226
|
capScope: "system",
|
|
30009
30227
|
addonId: null,
|
|
30010
|
-
access: "
|
|
30228
|
+
access: "view"
|
|
30011
30229
|
},
|
|
30012
30230
|
"metricsProvider.listAddonInstances": {
|
|
30013
30231
|
capName: "metrics-provider",
|
|
@@ -32019,6 +32237,12 @@ Object.freeze({
|
|
|
32019
32237
|
addonId: null,
|
|
32020
32238
|
access: "create"
|
|
32021
32239
|
},
|
|
32240
|
+
"settingsStore.insertMany": {
|
|
32241
|
+
capName: "settings-store",
|
|
32242
|
+
capScope: "system",
|
|
32243
|
+
addonId: null,
|
|
32244
|
+
access: "create"
|
|
32245
|
+
},
|
|
32022
32246
|
"settingsStore.isEmpty": {
|
|
32023
32247
|
capName: "settings-store",
|
|
32024
32248
|
capScope: "system",
|
|
@@ -32631,6 +32855,12 @@ Object.freeze({
|
|
|
32631
32855
|
addonId: null,
|
|
32632
32856
|
access: "create"
|
|
32633
32857
|
},
|
|
32858
|
+
"system.getLoadContributions": {
|
|
32859
|
+
capName: "system",
|
|
32860
|
+
capScope: "system",
|
|
32861
|
+
addonId: null,
|
|
32862
|
+
access: "view"
|
|
32863
|
+
},
|
|
32634
32864
|
"system.getLoggingSettings": {
|
|
32635
32865
|
capName: "system",
|
|
32636
32866
|
capScope: "system",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../types/dist/event-category-
|
|
1
|
+
//#region ../types/dist/event-category-BZL-fdNj.mjs
|
|
2
2
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
3
3
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4
4
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -435,7 +435,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
435
435
|
EventCategory["MetricsNodeResourcesSnapshot"] = "metrics.node-resources-snapshot";
|
|
436
436
|
/**
|
|
437
437
|
* Periodic per-node process-tree snapshot (camstack-related pids
|
|
438
|
-
* with
|
|
438
|
+
* with root / managed / system classification). Emitted ~0.2 Hz by
|
|
439
439
|
* the metrics-provider addon. Drives the Cluster → Processes tab
|
|
440
440
|
* without polling `metricsProvider.listNodeProcesses`.
|
|
441
441
|
*/
|
|
@@ -11143,6 +11143,19 @@ var SettingsRecordSchema = object({
|
|
|
11143
11143
|
data: record(string(), unknown())
|
|
11144
11144
|
});
|
|
11145
11145
|
/**
|
|
11146
|
+
* One record of a BULK insert — {@link SettingsRecordSchema} with the id made
|
|
11147
|
+
* optional.
|
|
11148
|
+
*
|
|
11149
|
+
* A separate schema rather than loosening the shared one: every other method
|
|
11150
|
+
* on this cap addresses a row BY its id, and making that field optional
|
|
11151
|
+
* everywhere would turn a forgotten key into a silently generated one on
|
|
11152
|
+
* `update` and `delete` as well.
|
|
11153
|
+
*/
|
|
11154
|
+
var BulkRecordSchema = object({
|
|
11155
|
+
id: string().optional(),
|
|
11156
|
+
data: record(string(), unknown())
|
|
11157
|
+
});
|
|
11158
|
+
/**
|
|
11146
11159
|
* Column declaration for a structured (SQL-backed) collection.
|
|
11147
11160
|
*
|
|
11148
11161
|
* Logical types — the backend translates each to the matching SQLite
|
|
@@ -11199,6 +11212,10 @@ method(object({
|
|
|
11199
11212
|
collection: string(),
|
|
11200
11213
|
record: SettingsRecordSchema
|
|
11201
11214
|
}), _void(), { kind: "mutation" }), method(object({
|
|
11215
|
+
namespace: string().optional(),
|
|
11216
|
+
collection: string(),
|
|
11217
|
+
records: array(BulkRecordSchema).readonly()
|
|
11218
|
+
}), object({ inserted: number().int() }), { kind: "mutation" }), method(object({
|
|
11202
11219
|
namespace: string().optional(),
|
|
11203
11220
|
collection: string(),
|
|
11204
11221
|
id: string(),
|
|
@@ -11307,6 +11324,13 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
11307
11324
|
}), _void(), {
|
|
11308
11325
|
kind: "mutation",
|
|
11309
11326
|
auth: "admin"
|
|
11327
|
+
}), method(object({
|
|
11328
|
+
namespace: string().optional(),
|
|
11329
|
+
collection: string(),
|
|
11330
|
+
records: array(BulkRecordSchema).readonly()
|
|
11331
|
+
}), object({ inserted: number().int() }), {
|
|
11332
|
+
kind: "mutation",
|
|
11333
|
+
auth: "admin"
|
|
11310
11334
|
}), method(object({
|
|
11311
11335
|
namespace: string().optional(),
|
|
11312
11336
|
collection: string(),
|
|
@@ -13075,6 +13099,68 @@ method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
|
|
|
13075
13099
|
limit: number().optional(),
|
|
13076
13100
|
tags: record(string(), string()).optional()
|
|
13077
13101
|
}), array(LogEntrySchema).readonly());
|
|
13102
|
+
var LoadContributionSchema = object({
|
|
13103
|
+
role: _enum([
|
|
13104
|
+
"decode",
|
|
13105
|
+
"transcode",
|
|
13106
|
+
"recording",
|
|
13107
|
+
"streaming",
|
|
13108
|
+
"detection"
|
|
13109
|
+
]),
|
|
13110
|
+
/**
|
|
13111
|
+
* The NUMERIC device id — the same value every log line carries as
|
|
13112
|
+
* `tags.deviceId`. `null` means this cost genuinely belongs to no single
|
|
13113
|
+
* camera (a shared pool), NOT that the contributor forgot to look it up: a
|
|
13114
|
+
* contributor that cannot name its camera must not emit the entry at all,
|
|
13115
|
+
* because an unnamed per-camera entry is indistinguishable from a shared one
|
|
13116
|
+
* and would quietly turn one camera's cost into everybody's.
|
|
13117
|
+
*/
|
|
13118
|
+
deviceId: number().int().positive().nullable(),
|
|
13119
|
+
attribution: _enum([
|
|
13120
|
+
"measured",
|
|
13121
|
+
"accounted",
|
|
13122
|
+
"unattributable"
|
|
13123
|
+
]),
|
|
13124
|
+
/**
|
|
13125
|
+
* What ONE entry is, in the contributor's own words — `615/high`,
|
|
13126
|
+
* `617/native`, `cuda:0 shared pool`. Free text because the unit differs per
|
|
13127
|
+
* family and inventing a common one would lose the only information that
|
|
13128
|
+
* makes two entries for the same camera distinguishable.
|
|
13129
|
+
*/
|
|
13130
|
+
unit: string(),
|
|
13131
|
+
/**
|
|
13132
|
+
* The OS process this cost lives in, when there is one. Present so a
|
|
13133
|
+
* consumer can (a) tell two generations of the same unit apart across a
|
|
13134
|
+
* restart, and (b) subtract claimed processes from the node's process
|
|
13135
|
+
* snapshot to see what NOBODY claimed. Absent for an entry that owns no
|
|
13136
|
+
* process of its own.
|
|
13137
|
+
*/
|
|
13138
|
+
pid: number().int().positive().optional(),
|
|
13139
|
+
/**
|
|
13140
|
+
* When this generation started. The pid's incarnation marker: a consumer
|
|
13141
|
+
* differencing {@link LoadContributionSchema.shape.cpuSeconds} must drop the
|
|
13142
|
+
* window when this changes, because the counter restarted from zero in a new
|
|
13143
|
+
* process.
|
|
13144
|
+
*/
|
|
13145
|
+
startedAtMs: number().optional(),
|
|
13146
|
+
/**
|
|
13147
|
+
* CUMULATIVE CPU seconds this unit has consumed since it started — user +
|
|
13148
|
+
* system, read from the child's own `/proc/<pid>/stat` at the moment the
|
|
13149
|
+
* contribution is asked for.
|
|
13150
|
+
*
|
|
13151
|
+
* Cumulative and not a rate on purpose: a rate needs a window, a window
|
|
13152
|
+
* needs a sampler, and a new per-node sampler is the defect half of
|
|
13153
|
+
* `docs/architecture/load-ledger.md` documents. A counter can be differenced
|
|
13154
|
+
* by whoever already keeps a history; a rate cannot be un-averaged.
|
|
13155
|
+
*
|
|
13156
|
+
* Absent — never zero — on a node with no `/proc`, on a read failure, and on
|
|
13157
|
+
* an entry with no process.
|
|
13158
|
+
*/
|
|
13159
|
+
cpuSeconds: number().optional(),
|
|
13160
|
+
/** Resident bytes of this unit's process, same source and same rules. */
|
|
13161
|
+
rssBytes: number().optional()
|
|
13162
|
+
});
|
|
13163
|
+
method(_void(), array(LoadContributionSchema).readonly());
|
|
13078
13164
|
/**
|
|
13079
13165
|
* `login-method` — collection cap through which auth addons contribute
|
|
13080
13166
|
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
@@ -13278,8 +13364,7 @@ var NodeProcessSchema = object({
|
|
|
13278
13364
|
classification: _enum([
|
|
13279
13365
|
"root",
|
|
13280
13366
|
"managed",
|
|
13281
|
-
"system"
|
|
13282
|
-
"ghost"
|
|
13367
|
+
"system"
|
|
13283
13368
|
]),
|
|
13284
13369
|
/** `$process` addon binding when `managed`, else null. */
|
|
13285
13370
|
addonId: string().nullable(),
|
|
@@ -13287,22 +13372,39 @@ var NodeProcessSchema = object({
|
|
|
13287
13372
|
nodeId: string().nullable(),
|
|
13288
13373
|
/** Truncated command line. */
|
|
13289
13374
|
command: string(),
|
|
13375
|
+
/**
|
|
13376
|
+
* `ps pcpu` — CPU averaged over the process's WHOLE LIFETIME, not a rate.
|
|
13377
|
+
* On a runner up for days it barely moves. Fine as a column, useless as a
|
|
13378
|
+
* series: use `cpuMainPercent + cpuGcPercent` for anything time-varying.
|
|
13379
|
+
*/
|
|
13290
13380
|
cpuPercent: number(),
|
|
13291
13381
|
memoryRssBytes: number(),
|
|
13382
|
+
/**
|
|
13383
|
+
* Instantaneous CPU% of the process's own threads over the last
|
|
13384
|
+
* process-snapshot window, from a `/proc/<pid>/task/*` tick delta.
|
|
13385
|
+
*
|
|
13386
|
+
* `null` = UNKNOWN, never zero: no previous sample yet (first tick after
|
|
13387
|
+
* boot), the pid was recycled, or this node is not Linux.
|
|
13388
|
+
*/
|
|
13389
|
+
cpuMainPercent: number().nullable(),
|
|
13390
|
+
/**
|
|
13391
|
+
* Instantaneous CPU% of V8's `V8Worker` platform pool over the same window.
|
|
13392
|
+
*
|
|
13393
|
+
* This is the number that rewrote the 2026-08-27 diagnosis — hub-main 73%,
|
|
13394
|
+
* `stream-broker` 61% (`docs/architecture/load-ledger.md`). A CPU chart that
|
|
13395
|
+
* does not separate it from `cpuMainPercent` shows "busy" where the truth is
|
|
13396
|
+
* "allocating too much".
|
|
13397
|
+
*
|
|
13398
|
+
* Concurrent GC is the dominant tenant of that pool but not the only one
|
|
13399
|
+
* (background compilation runs there too), so it is reported as
|
|
13400
|
+
* "GC / V8 helpers" rather than as pure collection time. `null` has the same
|
|
13401
|
+
* meaning as on `cpuMainPercent`.
|
|
13402
|
+
*/
|
|
13403
|
+
cpuGcPercent: number().nullable(),
|
|
13404
|
+
/** Threads seen in the tick scan. `null` under the same conditions. */
|
|
13405
|
+
threadCount: number().nullable(),
|
|
13292
13406
|
/** Wall-clock uptime (seconds). Parsed from `ps etime`. */
|
|
13293
|
-
uptimeSec: number()
|
|
13294
|
-
/** True when ancestor walk reaches `ppid=1` (reparented to init/launchd). */
|
|
13295
|
-
orphaned: boolean()
|
|
13296
|
-
});
|
|
13297
|
-
var KillProcessInputSchema = object({
|
|
13298
|
-
pid: number(),
|
|
13299
|
-
/** Force = SIGKILL. Default is SIGTERM. */
|
|
13300
|
-
force: boolean().optional()
|
|
13301
|
-
});
|
|
13302
|
-
var KillProcessResultSchema = object({
|
|
13303
|
-
success: boolean(),
|
|
13304
|
-
reason: string().optional(),
|
|
13305
|
-
signal: _enum(["SIGTERM", "SIGKILL"]).optional()
|
|
13407
|
+
uptimeSec: number()
|
|
13306
13408
|
});
|
|
13307
13409
|
var DumpHeapSnapshotInputSchema = object({
|
|
13308
13410
|
/** The addon whose runner should dump a heap snapshot. */
|
|
@@ -13315,6 +13417,104 @@ var DumpHeapSnapshotResultSchema = object({
|
|
|
13315
13417
|
pid: number().optional(),
|
|
13316
13418
|
reason: string().optional()
|
|
13317
13419
|
});
|
|
13420
|
+
/**
|
|
13421
|
+
* One point of one function's series.
|
|
13422
|
+
*
|
|
13423
|
+
* The unsuffixed fields are the bucket's **MAXIMUM**, and that choice is the
|
|
13424
|
+
* point of the whole surface. The two obvious reductions both lie: a mean per
|
|
13425
|
+
* bucket smears a spike away, and taking every Nth sample skips it outright.
|
|
13426
|
+
* Either would give us a tool built to find peaks that does not show peaks.
|
|
13427
|
+
* `...Min` carries the other end, `samples` says how many raw snapshots folded
|
|
13428
|
+
* into the bucket, and a mean stays derivable where it is wanted.
|
|
13429
|
+
*
|
|
13430
|
+
* An UNREDUCED point is a one-sample bucket: `samples === 1` and each `...Min`
|
|
13431
|
+
* equals its unsuffixed twin. Reduced and unreduced are the same shape, so a
|
|
13432
|
+
* caller cannot tell which it received — which is what "one reader" means.
|
|
13433
|
+
*/
|
|
13434
|
+
var LoadPointSchema = object({
|
|
13435
|
+
/** Bucket START, or the snapshot's own timestamp when unreduced. */
|
|
13436
|
+
atMs: number(),
|
|
13437
|
+
/** Raw snapshots in this bucket. Never 0 — AN EMPTY BUCKET IS ABSENT. */
|
|
13438
|
+
samples: number().int(),
|
|
13439
|
+
/**
|
|
13440
|
+
* `null` = UNKNOWN and it PROPAGATES: a bucket is null unless every process
|
|
13441
|
+
* of every snapshot in it reported a thread split. A partial sum is a
|
|
13442
|
+
* smaller number that looks exactly as real as a complete one.
|
|
13443
|
+
*/
|
|
13444
|
+
cpuMainPercent: number().nullable(),
|
|
13445
|
+
cpuMainPercentMin: number().nullable(),
|
|
13446
|
+
cpuGcPercent: number().nullable(),
|
|
13447
|
+
cpuGcPercentMin: number().nullable(),
|
|
13448
|
+
/** Lifetime-average CPU%, summed. Always known — and never a rate. */
|
|
13449
|
+
cpuLifetimePercent: number(),
|
|
13450
|
+
cpuLifetimePercentMin: number(),
|
|
13451
|
+
memoryRssBytes: number(),
|
|
13452
|
+
memoryRssBytesMin: number(),
|
|
13453
|
+
processCount: number().int(),
|
|
13454
|
+
processCountMin: number().int()
|
|
13455
|
+
});
|
|
13456
|
+
/** One function's series. `key` is an addonId, `__root__` or `__unattributed__`. */
|
|
13457
|
+
var LoadFunctionSeriesSchema = object({
|
|
13458
|
+
key: string(),
|
|
13459
|
+
kind: _enum([
|
|
13460
|
+
"addon",
|
|
13461
|
+
"root",
|
|
13462
|
+
"unattributed"
|
|
13463
|
+
]),
|
|
13464
|
+
/** Oldest-first. A missing interval is MISSING — never zero-filled. */
|
|
13465
|
+
points: array(LoadPointSchema).readonly()
|
|
13466
|
+
});
|
|
13467
|
+
var NodeLoadSeriesSchema = object({
|
|
13468
|
+
nodeId: string(),
|
|
13469
|
+
/** One entry per function seen in the window, heaviest-first. */
|
|
13470
|
+
series: array(LoadFunctionSeriesSchema).readonly(),
|
|
13471
|
+
/**
|
|
13472
|
+
* Width of one returned bucket, in ms. Equals the sampling cadence when no
|
|
13473
|
+
* reduction was needed — so a caller can always say what one point covers
|
|
13474
|
+
* without having to know whether it was reduced.
|
|
13475
|
+
*/
|
|
13476
|
+
bucketMs: number(),
|
|
13477
|
+
/** Raw snapshots that went into this answer, across both tiers. */
|
|
13478
|
+
retainedSamples: number(),
|
|
13479
|
+
/** Oldest snapshot represented, or `null` when nothing is retained. */
|
|
13480
|
+
oldestAtMs: number().nullable(),
|
|
13481
|
+
/** The fixed sampling cadence in force on the cluster, in ms. */
|
|
13482
|
+
cadenceMs: number(),
|
|
13483
|
+
/**
|
|
13484
|
+
* Did the DURABLE tier contribute? `false` means the answer is the hot ring
|
|
13485
|
+
* alone — an agent (which holds no table), or a store that refused.
|
|
13486
|
+
* Reported because "the last hour" and "the last six hours" are different
|
|
13487
|
+
* questions and an operator must not have to guess which was answered.
|
|
13488
|
+
*/
|
|
13489
|
+
durable: boolean()
|
|
13490
|
+
});
|
|
13491
|
+
var GetLoadSeriesInputSchema = object({
|
|
13492
|
+
/**
|
|
13493
|
+
* The node whose series is wanted.
|
|
13494
|
+
*
|
|
13495
|
+
* NOT named `nodeId`: the generated cap router strips a top-level
|
|
13496
|
+
* `nodeId` from every method input and uses it to ROUTE the call to
|
|
13497
|
+
* that node's provider (`generated-cap-routers.ts`). A series target
|
|
13498
|
+
* called `nodeId` would silently become a routing pin and never reach
|
|
13499
|
+
* the provider. The hub holds every node it hears from, so the
|
|
13500
|
+
* ordinary call is unpinned — answered by the hub, for any node.
|
|
13501
|
+
*/
|
|
13502
|
+
forNodeId: string(),
|
|
13503
|
+
/**
|
|
13504
|
+
* EXCLUSIVE lower bound. A caller passes the newest `atMs` it already
|
|
13505
|
+
* holds and receives only what it is missing, so seeding a live chart
|
|
13506
|
+
* from this method cannot double a point already drawn.
|
|
13507
|
+
*/
|
|
13508
|
+
sinceMs: number().optional(),
|
|
13509
|
+
/**
|
|
13510
|
+
* Most points the caller wants PER FUNCTION. The window is reduced to fit,
|
|
13511
|
+
* preserving min and max per bucket.
|
|
13512
|
+
*
|
|
13513
|
+
* Absent means NO reduction — legitimate for a short window and a trap for a
|
|
13514
|
+
* long one, which is why a chart passes its own pixel width.
|
|
13515
|
+
*/
|
|
13516
|
+
maxPoints: number().int().positive().optional()
|
|
13517
|
+
});
|
|
13318
13518
|
var SystemMetricsSchema = object({
|
|
13319
13519
|
cpuPercent: number(),
|
|
13320
13520
|
memoryPercent: number(),
|
|
@@ -13325,10 +13525,7 @@ var SystemMetricsSchema = object({
|
|
|
13325
13525
|
gpuPercent: number().optional(),
|
|
13326
13526
|
gpuMemoryPercent: number().optional()
|
|
13327
13527
|
});
|
|
13328
|
-
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(
|
|
13329
|
-
kind: "mutation",
|
|
13330
|
-
auth: "admin"
|
|
13331
|
-
}), method(DumpHeapSnapshotInputSchema, DumpHeapSnapshotResultSchema, {
|
|
13528
|
+
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, {
|
|
13332
13529
|
kind: "mutation",
|
|
13333
13530
|
auth: "admin"
|
|
13334
13531
|
});
|
|
@@ -26709,6 +26906,15 @@ var LoggingSettingsPatchSchema = object({
|
|
|
26709
26906
|
* authority over the whole hierarchy and answers for every layer, so the
|
|
26710
26907
|
* layer selector needs a name the transport does not already own.
|
|
26711
26908
|
*/
|
|
26909
|
+
/**
|
|
26910
|
+
* One contribution, plus WHO reported it.
|
|
26911
|
+
*
|
|
26912
|
+
* The addon and node are added by the hub as it enumerates providers, never by
|
|
26913
|
+
* the contributor: an addon reporting its own identity could report somebody
|
|
26914
|
+
* else's, and the whole point of this surface is that no claim is made by
|
|
26915
|
+
* anyone but its owner.
|
|
26916
|
+
*/
|
|
26917
|
+
var ReportedLoadContributionSchema = LoadContributionSchema.extend({ addonId: string() });
|
|
26712
26918
|
var GetLoggingSettingsInputSchema = object({
|
|
26713
26919
|
scopeNodeId: string().optional(),
|
|
26714
26920
|
/**
|
|
@@ -26767,7 +26973,7 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
|
|
|
26767
26973
|
}), method(_void(), SiteLocationStatusSchema, {
|
|
26768
26974
|
kind: "mutation",
|
|
26769
26975
|
auth: "admin"
|
|
26770
|
-
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
26976
|
+
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(_void(), array(ReportedLoadContributionSchema).readonly(), { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
26771
26977
|
kind: "mutation",
|
|
26772
26978
|
auth: "admin"
|
|
26773
26979
|
});
|
|
@@ -28383,6 +28589,12 @@ Object.freeze({
|
|
|
28383
28589
|
addonId: null,
|
|
28384
28590
|
access: "create"
|
|
28385
28591
|
},
|
|
28592
|
+
"dataStoreProvider.insertMany": {
|
|
28593
|
+
capName: "data-store-provider",
|
|
28594
|
+
capScope: "system",
|
|
28595
|
+
addonId: null,
|
|
28596
|
+
access: "create"
|
|
28597
|
+
},
|
|
28386
28598
|
"dataStoreProvider.isEmpty": {
|
|
28387
28599
|
capName: "data-store-provider",
|
|
28388
28600
|
capScope: "system",
|
|
@@ -29697,6 +29909,12 @@ Object.freeze({
|
|
|
29697
29909
|
addonId: null,
|
|
29698
29910
|
access: "create"
|
|
29699
29911
|
},
|
|
29912
|
+
"loadContribution.list": {
|
|
29913
|
+
capName: "load-contribution",
|
|
29914
|
+
capScope: "system",
|
|
29915
|
+
addonId: null,
|
|
29916
|
+
access: "view"
|
|
29917
|
+
},
|
|
29700
29918
|
"localNetwork.downloadCa": {
|
|
29701
29919
|
capName: "local-network",
|
|
29702
29920
|
capScope: "system",
|
|
@@ -29997,17 +30215,17 @@ Object.freeze({
|
|
|
29997
30215
|
addonId: null,
|
|
29998
30216
|
access: "view"
|
|
29999
30217
|
},
|
|
30000
|
-
"metricsProvider.
|
|
30218
|
+
"metricsProvider.getLoadSeries": {
|
|
30001
30219
|
capName: "metrics-provider",
|
|
30002
30220
|
capScope: "system",
|
|
30003
30221
|
addonId: null,
|
|
30004
30222
|
access: "view"
|
|
30005
30223
|
},
|
|
30006
|
-
"metricsProvider.
|
|
30224
|
+
"metricsProvider.getProcessStats": {
|
|
30007
30225
|
capName: "metrics-provider",
|
|
30008
30226
|
capScope: "system",
|
|
30009
30227
|
addonId: null,
|
|
30010
|
-
access: "
|
|
30228
|
+
access: "view"
|
|
30011
30229
|
},
|
|
30012
30230
|
"metricsProvider.listAddonInstances": {
|
|
30013
30231
|
capName: "metrics-provider",
|
|
@@ -32019,6 +32237,12 @@ Object.freeze({
|
|
|
32019
32237
|
addonId: null,
|
|
32020
32238
|
access: "create"
|
|
32021
32239
|
},
|
|
32240
|
+
"settingsStore.insertMany": {
|
|
32241
|
+
capName: "settings-store",
|
|
32242
|
+
capScope: "system",
|
|
32243
|
+
addonId: null,
|
|
32244
|
+
access: "create"
|
|
32245
|
+
},
|
|
32022
32246
|
"settingsStore.isEmpty": {
|
|
32023
32247
|
capName: "settings-store",
|
|
32024
32248
|
capScope: "system",
|
|
@@ -32631,6 +32855,12 @@ Object.freeze({
|
|
|
32631
32855
|
addonId: null,
|
|
32632
32856
|
access: "create"
|
|
32633
32857
|
},
|
|
32858
|
+
"system.getLoadContributions": {
|
|
32859
|
+
capName: "system",
|
|
32860
|
+
capScope: "system",
|
|
32861
|
+
addonId: null,
|
|
32862
|
+
access: "view"
|
|
32863
|
+
},
|
|
32634
32864
|
"system.getLoggingSettings": {
|
|
32635
32865
|
capName: "system",
|
|
32636
32866
|
capScope: "system",
|
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
5
|
+
const require_dist = require("../dist-oQYtf-HC.js");
|
|
6
6
|
let node_crypto = require("node:crypto");
|
|
7
7
|
let node_child_process = require("node:child_process");
|
|
8
8
|
//#region src/ingress/tailscale-cli.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-
|
|
1
|
+
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-BBoke9_u.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { execFile } from "node:child_process";
|
|
4
4
|
import { promisify } from "node:util";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-tailscale",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.37",
|
|
4
4
|
"description": "Tailscale bundle for CamStack — joins the host to a tailnet (client) and exposes the hub via Serve/Funnel (ingress). Multi-entry npm package shipping 2 addons under a single bundle.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|