@camstack/addon-pipeline 0.1.12 → 0.1.14
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/audio-analyzer/index.js +1 -1
- package/dist/audio-analyzer/index.mjs +1 -1
- package/dist/audio-codec-nodeav/index.js +1 -1
- package/dist/audio-codec-nodeav/index.mjs +1 -1
- package/dist/decoder-nodeav/index.js +1 -1
- package/dist/decoder-nodeav/index.mjs +1 -1
- package/dist/detection-pipeline/index.js +1 -1
- package/dist/detection-pipeline/index.mjs +1 -1
- package/dist/{index-BhOycEVH.js → index-CFPKrb2Y.js} +197 -236
- package/dist/index-CFPKrb2Y.js.map +1 -0
- package/dist/{index-FxfFGsiL.mjs → index-DKh0uEve.mjs} +197 -236
- package/dist/index-DKh0uEve.mjs.map +1 -0
- package/dist/motion-wasm/index.js +1 -1
- package/dist/motion-wasm/index.mjs +1 -1
- package/dist/pipeline-runner/index.js +1 -1
- package/dist/pipeline-runner/index.mjs +1 -1
- package/dist/stream-broker/@mf-types.zip +0 -0
- package/dist/stream-broker/__mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.mjs-CpCK52pE.mjs +19 -0
- package/dist/stream-broker/__mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.mjs-BN3K4dM8.mjs +20 -0
- package/dist/stream-broker/_stub.js +1 -1
- package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-Czwg8GUO.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-CqeKw-Ig.mjs} +6 -6
- package/dist/stream-broker/{hostInit-fG6oFw4t.mjs → hostInit-DkjoXTMb.mjs} +6 -6
- package/dist/stream-broker/index-BP0-1QYT.mjs +13140 -0
- package/dist/stream-broker/{index-l13fl8lu.mjs → index-DKercbDS.mjs} +7065 -5705
- package/dist/stream-broker/{index-BOmtakNy.mjs → index-lmXLeXy8.mjs} +1 -1
- package/dist/stream-broker/index.js +4 -4
- package/dist/stream-broker/index.js.map +1 -1
- package/dist/stream-broker/index.mjs +4 -4
- package/dist/stream-broker/index.mjs.map +1 -1
- package/dist/stream-broker/remoteEntry.js +1 -1
- package/dist/stream-broker/schemas-ChN4Ih0h.mjs +3584 -0
- package/package.json +1 -1
- package/python/postprocessors/__pycache__/__init__.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/arcface.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/ctc.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/saliency.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/scrfd.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/softmax.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/yamnet.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/yolo.cpython-312.pyc +0 -0
- package/python/postprocessors/__pycache__/yolo_seg.cpython-312.pyc +0 -0
- package/dist/index-BhOycEVH.js.map +0 -1
- package/dist/index-FxfFGsiL.mjs.map +0 -1
- package/dist/stream-broker/__mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.mjs-ChoHjdk6.mjs +0 -17
- package/dist/stream-broker/__mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.mjs-BvJPhiY_.mjs +0 -20
- package/dist/stream-broker/index-Bpv0NSqI.mjs +0 -16780
|
@@ -8549,10 +8549,30 @@ const StatusSchema = object({
|
|
|
8549
8549
|
}
|
|
8550
8550
|
});
|
|
8551
8551
|
const LinkStateSchema = _enum(["unlinked", "linked", "error"]);
|
|
8552
|
+
const ExportSetupFieldSchema = object({
|
|
8553
|
+
label: string(),
|
|
8554
|
+
value: string(),
|
|
8555
|
+
/** Mask the value by default + render a reveal toggle (client id, secrets). */
|
|
8556
|
+
secret: boolean().optional()
|
|
8557
|
+
});
|
|
8558
|
+
const ExportSetupSchema = object({
|
|
8559
|
+
/** A string to render as a scannable QR — HAP `X-HM://…` URI, a pairing URL, etc. Omitted when there's nothing to scan. */
|
|
8560
|
+
qr: string().optional(),
|
|
8561
|
+
/** Label/value rows shown with a copy button (HAP setup code, OAuth URLs, client id, linked-account count, …). */
|
|
8562
|
+
fields: array(ExportSetupFieldSchema).readonly().optional(),
|
|
8563
|
+
/** Free-form operator instructions rendered above the fields. */
|
|
8564
|
+
note: string().optional()
|
|
8565
|
+
});
|
|
8552
8566
|
const DeviceExportStatusSchema = object({
|
|
8553
8567
|
linkState: LinkStateSchema,
|
|
8554
8568
|
exposedDeviceCount: number(),
|
|
8555
|
-
error: string().optional()
|
|
8569
|
+
error: string().optional(),
|
|
8570
|
+
/**
|
|
8571
|
+
* Optional pairing/account info the panel renders in a generic
|
|
8572
|
+
* "Setup" section. Addon-agnostic — the addon id identifies the
|
|
8573
|
+
* export target, never an `ecosystem` key here.
|
|
8574
|
+
*/
|
|
8575
|
+
setup: ExportSetupSchema.optional()
|
|
8556
8576
|
});
|
|
8557
8577
|
const DeviceKindSchema = string();
|
|
8558
8578
|
const ExposedDeviceSchema = object({
|
|
@@ -10276,51 +10296,6 @@ const AuthResultSchema = object({
|
|
|
10276
10296
|
validateToken: method(object({ token: string() }), AuthResultSchema.nullable())
|
|
10277
10297
|
}
|
|
10278
10298
|
});
|
|
10279
|
-
const AuthProviderInfoSchema = object({
|
|
10280
|
-
/** Stable id matching the addon id (used for `getLoginUrl({addonId,…})`). */
|
|
10281
|
-
addonId: string(),
|
|
10282
|
-
/**
|
|
10283
|
-
* Per-instance id when one addon registers multiple "logical"
|
|
10284
|
-
* providers (e.g. OIDC with Google + Microsoft + custom). The login
|
|
10285
|
-
* URL becomes `/addon/${addonId}/${instanceId}/start` — handler reads
|
|
10286
|
-
* `:instanceId` from the route. Empty/unset means the addon is a
|
|
10287
|
-
* single-instance provider; the URL is `/addon/${addonId}/start`.
|
|
10288
|
-
*/
|
|
10289
|
-
instanceId: string().optional(),
|
|
10290
|
-
/** Display label shown on the login button + admin row. */
|
|
10291
|
-
displayName: string(),
|
|
10292
|
-
/** Optional iconography hint (lucide-react icon name OR emoji). */
|
|
10293
|
-
icon: string().optional(),
|
|
10294
|
-
/** When true, the provider exposes a redirect-based login flow
|
|
10295
|
-
* (`getLoginUrl` returns a URL the browser navigates to). */
|
|
10296
|
-
hasRedirectFlow: boolean(),
|
|
10297
|
-
/** When true, the provider exposes a credential-form login flow
|
|
10298
|
-
* (`validateCredentials` accepts username + password). */
|
|
10299
|
-
hasCredentialFlow: boolean(),
|
|
10300
|
-
/** Provider kind, drives admin-UI hint dispatch (oidc / saml / totp / …). */
|
|
10301
|
-
kind: string().optional(),
|
|
10302
|
-
/** Operator-facing status string (e.g. "Connected to https://login.acme.com"). */
|
|
10303
|
-
status: string().optional(),
|
|
10304
|
-
/** When false, the provider is registered but disabled by config; the
|
|
10305
|
-
* UI surfaces it as inactive without enumerating it for login. */
|
|
10306
|
-
enabled: boolean()
|
|
10307
|
-
});
|
|
10308
|
-
({
|
|
10309
|
-
methods: {
|
|
10310
|
-
/** All registered auth providers, both enabled and disabled. */
|
|
10311
|
-
listProviders: method(_void(), array(AuthProviderInfoSchema).readonly()),
|
|
10312
|
-
/**
|
|
10313
|
-
* Toggle a provider's enabled flag. Disabled providers stay
|
|
10314
|
-
* registered but aren't surfaced on the login page. The orchestrator
|
|
10315
|
-
* persists the state in `addon-settings` so it survives restarts.
|
|
10316
|
-
*/
|
|
10317
|
-
setProviderEnabled: method(
|
|
10318
|
-
object({ addonId: string(), enabled: boolean() }),
|
|
10319
|
-
object({ success: literal(true) }),
|
|
10320
|
-
{ kind: "mutation", auth: "admin" }
|
|
10321
|
-
)
|
|
10322
|
-
}
|
|
10323
|
-
});
|
|
10324
10299
|
const NetworkEndpointSchema = object({
|
|
10325
10300
|
url: string(),
|
|
10326
10301
|
hostname: string(),
|
|
@@ -10352,55 +10327,13 @@ const NetworkEndpointEntrySchema = NetworkEndpointSchema.extend({
|
|
|
10352
10327
|
getEndpoint: method(_void(), NetworkEndpointSchema.nullable()),
|
|
10353
10328
|
getStatus: method(_void(), NetworkAccessStatusSchema),
|
|
10354
10329
|
/**
|
|
10355
|
-
* Enumerate every active ingress entry.
|
|
10356
|
-
*
|
|
10357
|
-
*
|
|
10330
|
+
* Enumerate every active ingress entry. Providers that expose only a
|
|
10331
|
+
* single endpoint may omit this method; callers fall back to
|
|
10332
|
+
* `getEndpoint()` in that case.
|
|
10358
10333
|
*/
|
|
10359
10334
|
listEndpoints: method(_void(), array(NetworkEndpointEntrySchema).readonly())
|
|
10360
10335
|
}
|
|
10361
10336
|
});
|
|
10362
|
-
const RemoteAccessEndpointSchema = object({
|
|
10363
|
-
url: string(),
|
|
10364
|
-
hostname: string(),
|
|
10365
|
-
port: number(),
|
|
10366
|
-
protocol: _enum(["http", "https"])
|
|
10367
|
-
});
|
|
10368
|
-
const RemoteAccessProviderInfoSchema = object({
|
|
10369
|
-
/** Stable id matching the addon id. */
|
|
10370
|
-
addonId: string(),
|
|
10371
|
-
/** Display label shown on the admin row — sourced from the addon manifest. */
|
|
10372
|
-
displayName: string(),
|
|
10373
|
-
/** When false, the provider is registered but disabled. */
|
|
10374
|
-
enabled: boolean(),
|
|
10375
|
-
/** True when the underlying tunnel/connection is up. */
|
|
10376
|
-
connected: boolean(),
|
|
10377
|
-
/** Public-facing endpoint, when connected. Null otherwise. */
|
|
10378
|
-
endpoint: RemoteAccessEndpointSchema.nullable(),
|
|
10379
|
-
/** Last error message (when connected=false), if available. */
|
|
10380
|
-
error: string().optional()
|
|
10381
|
-
});
|
|
10382
|
-
({
|
|
10383
|
-
methods: {
|
|
10384
|
-
/** All registered remote-access providers + their live status. */
|
|
10385
|
-
listProviders: method(_void(), array(RemoteAccessProviderInfoSchema).readonly()),
|
|
10386
|
-
/**
|
|
10387
|
-
* Start a specific provider's tunnel. Per-provider config still
|
|
10388
|
-
* lives on the addon's settings panel; this is just the on/off
|
|
10389
|
-
* trigger so the admin UI can manage the lifecycle from one place.
|
|
10390
|
-
*/
|
|
10391
|
-
startProvider: method(
|
|
10392
|
-
object({ addonId: string() }),
|
|
10393
|
-
RemoteAccessEndpointSchema,
|
|
10394
|
-
{ kind: "mutation", auth: "admin" }
|
|
10395
|
-
),
|
|
10396
|
-
/** Stop a specific provider's tunnel (idempotent on already-stopped). */
|
|
10397
|
-
stopProvider: method(
|
|
10398
|
-
object({ addonId: string() }),
|
|
10399
|
-
object({ success: literal(true) }),
|
|
10400
|
-
{ kind: "mutation", auth: "admin" }
|
|
10401
|
-
)
|
|
10402
|
-
}
|
|
10403
|
-
});
|
|
10404
10337
|
const TurnServerSchema = object({
|
|
10405
10338
|
/** Single URL or list of URLs (e.g. "turn:turn.example.com:3478?transport=udp"). */
|
|
10406
10339
|
urls: union([string(), array(string())]),
|
|
@@ -10420,45 +10353,6 @@ const TurnServerSchema = object({
|
|
|
10420
10353
|
)
|
|
10421
10354
|
}
|
|
10422
10355
|
});
|
|
10423
|
-
const TurnProviderInfoSchema = object({
|
|
10424
|
-
/** Stable id matching the addon id. */
|
|
10425
|
-
addonId: string(),
|
|
10426
|
-
/** Display label shown on the admin row — sourced from the addon manifest. */
|
|
10427
|
-
displayName: string(),
|
|
10428
|
-
/** When false, the provider is registered but disabled. */
|
|
10429
|
-
enabled: boolean(),
|
|
10430
|
-
/** Number of servers this provider is currently exposing. */
|
|
10431
|
-
serverCount: number(),
|
|
10432
|
-
/**
|
|
10433
|
-
* Flat list of every TURN/STUN URL this provider currently exposes.
|
|
10434
|
-
* One row per URL (multi-URL ICE server entries are flattened). The
|
|
10435
|
-
* admin UI shows this in a compact per-provider list so operators
|
|
10436
|
-
* can verify what's actually being negotiated without having to dig
|
|
10437
|
-
* into the combined `getAllServers` output.
|
|
10438
|
-
*/
|
|
10439
|
-
urls: array(string()).readonly(),
|
|
10440
|
-
/** Last fetch error (when serverCount=0 due to API failure), if any. */
|
|
10441
|
-
error: string().optional()
|
|
10442
|
-
});
|
|
10443
|
-
({
|
|
10444
|
-
methods: {
|
|
10445
|
-
/** All registered TURN providers + per-provider stats. */
|
|
10446
|
-
listProviders: method(_void(), array(TurnProviderInfoSchema).readonly()),
|
|
10447
|
-
/**
|
|
10448
|
-
* Combined list of TURN/STUN servers from all ENABLED providers.
|
|
10449
|
-
* Consumed by the WebRTC layer at session-creation time —
|
|
10450
|
-
* implementations may fetch fresh short-lived credentials each
|
|
10451
|
-
* call (e.g. Cloudflare API), so consumers SHOULD call per-session.
|
|
10452
|
-
*/
|
|
10453
|
-
getAllServers: method(_void(), array(TurnServerSchema).readonly()),
|
|
10454
|
-
/** Toggle a provider's enabled flag. */
|
|
10455
|
-
setProviderEnabled: method(
|
|
10456
|
-
object({ addonId: string(), enabled: boolean() }),
|
|
10457
|
-
object({ success: literal(true) }),
|
|
10458
|
-
{ kind: "mutation", auth: "admin" }
|
|
10459
|
-
)
|
|
10460
|
-
}
|
|
10461
|
-
});
|
|
10462
10356
|
const SnapshotImageSchema = object({
|
|
10463
10357
|
base64: string(),
|
|
10464
10358
|
contentType: string()
|
|
@@ -11931,7 +11825,7 @@ const AllowedAddressesSchema = object({
|
|
|
11931
11825
|
)
|
|
11932
11826
|
}
|
|
11933
11827
|
});
|
|
11934
|
-
const MeshEndpointSchema
|
|
11828
|
+
const MeshEndpointSchema = object({
|
|
11935
11829
|
/** Stable identifier within the provider (e.g. `mesh-ipv4`, `magicdns`, `funnel`). */
|
|
11936
11830
|
id: string(),
|
|
11937
11831
|
/** Operator-facing label (e.g. "Mesh IPv4", "MagicDNS"). */
|
|
@@ -12004,7 +11898,7 @@ const MeshStatusSchema = object({
|
|
|
12004
11898
|
/** Number of peers visible to this host (excluding self). */
|
|
12005
11899
|
peerCount: number(),
|
|
12006
11900
|
/** Every endpoint this provider exposes for the current host. */
|
|
12007
|
-
endpoints: array(MeshEndpointSchema
|
|
11901
|
+
endpoints: array(MeshEndpointSchema).readonly(),
|
|
12008
11902
|
/** Last error from the daemon, when not joined. */
|
|
12009
11903
|
error: string().optional(),
|
|
12010
11904
|
// ── Account / tenant identity (generic across providers) ────────
|
|
@@ -12037,7 +11931,25 @@ const MeshStatusSchema = object({
|
|
|
12037
11931
|
* doesn't rotate keys for the bound host. Operator-facing surface
|
|
12038
11932
|
* for "your access expires on …" banners.
|
|
12039
11933
|
*/
|
|
12040
|
-
keyExpiry: number().nullable()
|
|
11934
|
+
keyExpiry: number().nullable(),
|
|
11935
|
+
// ── Onboard-daemon handoff (Tailscale, generic slot) ────────────
|
|
11936
|
+
/**
|
|
11937
|
+
* When the provider runs its OWN mesh daemon (e.g. the Tailscale
|
|
11938
|
+
* client addon in `onboard` mode spawns a private `tailscaled`),
|
|
11939
|
+
* this carries the local control-socket path. Companion addons that
|
|
11940
|
+
* must drive the SAME daemon — chiefly `tailscale-ingress` for
|
|
11941
|
+
* Serve/Funnel — read it to point their CLI at the right socket
|
|
11942
|
+
* instead of the system default. Empty when the provider uses the
|
|
11943
|
+
* host's system daemon (or doesn't have the concept).
|
|
11944
|
+
*/
|
|
11945
|
+
daemonSocket: string().optional(),
|
|
11946
|
+
/**
|
|
11947
|
+
* Path to the mesh CLI binary the provider downloaded for onboard
|
|
11948
|
+
* mode. Companion addons reuse it so they don't need a system
|
|
11949
|
+
* install when the operator chose a fully self-contained mesh.
|
|
11950
|
+
* Empty in host mode.
|
|
11951
|
+
*/
|
|
11952
|
+
daemonCliPath: string().optional()
|
|
12041
11953
|
});
|
|
12042
11954
|
({
|
|
12043
11955
|
methods: {
|
|
@@ -12149,105 +12061,6 @@ const MeshStatusSchema = object({
|
|
|
12149
12061
|
// tabs driven by this cap.
|
|
12150
12062
|
}
|
|
12151
12063
|
});
|
|
12152
|
-
const MeshEndpointSchema = object({
|
|
12153
|
-
id: string(),
|
|
12154
|
-
label: string(),
|
|
12155
|
-
scope: _enum(["mesh", "public"]),
|
|
12156
|
-
url: string(),
|
|
12157
|
-
hostname: string(),
|
|
12158
|
-
port: number(),
|
|
12159
|
-
protocol: _enum(["http", "https"])
|
|
12160
|
-
});
|
|
12161
|
-
const MeshProviderInfoSchema = object({
|
|
12162
|
-
/** Stable id matching the addon id. */
|
|
12163
|
-
addonId: string(),
|
|
12164
|
-
/** Display label shown on the admin row — sourced from the addon manifest. */
|
|
12165
|
-
displayName: string(),
|
|
12166
|
-
/** True when the host is joined to this provider's mesh. */
|
|
12167
|
-
joined: boolean(),
|
|
12168
|
-
/** Local mesh IP (empty when not joined). */
|
|
12169
|
-
meshIp: string(),
|
|
12170
|
-
/** MagicDNS / mesh hostname (empty when not configured). */
|
|
12171
|
-
magicDnsHostname: string(),
|
|
12172
|
-
/** Peer count (excluding self). */
|
|
12173
|
-
peerCount: number(),
|
|
12174
|
-
/** Active endpoints (mesh IP + MagicDNS + optional public Funnel). */
|
|
12175
|
-
endpoints: array(MeshEndpointSchema).readonly(),
|
|
12176
|
-
/** Last error reported by the provider. */
|
|
12177
|
-
error: string().optional(),
|
|
12178
|
-
// ── Generic identity fields mirrored from MeshStatus ─────────────
|
|
12179
|
-
/** Tenant / tailnet / network display name. Empty pre-join. */
|
|
12180
|
-
tenantName: string(),
|
|
12181
|
-
/** Mesh DNS suffix (e.g. tailXXXX.ts.net). Empty when not configured. */
|
|
12182
|
-
magicDnsSuffix: string(),
|
|
12183
|
-
/** Authenticated user / account login. Null for token-only providers. */
|
|
12184
|
-
userLogin: string().nullable(),
|
|
12185
|
-
/** Provider control-plane URL. */
|
|
12186
|
-
controlPlaneUrl: string(),
|
|
12187
|
-
/** Machine-key expiry (epoch ms). Null when keys don't rotate. */
|
|
12188
|
-
keyExpiry: number().nullable()
|
|
12189
|
-
});
|
|
12190
|
-
({
|
|
12191
|
-
methods: {
|
|
12192
|
-
/** All registered mesh-network providers + live status. */
|
|
12193
|
-
listProviders: method(_void(), array(MeshProviderInfoSchema).readonly()),
|
|
12194
|
-
/**
|
|
12195
|
-
* Join the mesh of a specific provider. Per-provider config still
|
|
12196
|
-
* lives on its settings panel; the orchestrator forwards.
|
|
12197
|
-
*/
|
|
12198
|
-
joinProvider: method(
|
|
12199
|
-
object({
|
|
12200
|
-
addonId: string(),
|
|
12201
|
-
authKey: string().min(8),
|
|
12202
|
-
hostname: string().optional()
|
|
12203
|
-
}),
|
|
12204
|
-
object({ joined: literal(true) }),
|
|
12205
|
-
{ kind: "mutation" }
|
|
12206
|
-
),
|
|
12207
|
-
leaveProvider: method(
|
|
12208
|
-
object({ addonId: string() }),
|
|
12209
|
-
object({ success: literal(true) }),
|
|
12210
|
-
{ kind: "mutation" }
|
|
12211
|
-
),
|
|
12212
|
-
/**
|
|
12213
|
-
* Browser-redirect login flow. Forwards to the named provider's
|
|
12214
|
-
* `mesh-network.startLogin` and returns the URL the daemon
|
|
12215
|
-
* prints. UI opens it in a new tab, then polls `listProviders`
|
|
12216
|
-
* for `joined: true`.
|
|
12217
|
-
*/
|
|
12218
|
-
startLoginProvider: method(
|
|
12219
|
-
object({
|
|
12220
|
-
addonId: string(),
|
|
12221
|
-
hostname: string().optional()
|
|
12222
|
-
}),
|
|
12223
|
-
object({ loginUrl: string() }),
|
|
12224
|
-
{ kind: "mutation" }
|
|
12225
|
-
),
|
|
12226
|
-
/**
|
|
12227
|
-
* Sign out of the provider's account entirely (`mesh-network.logout`).
|
|
12228
|
-
* Distinct from `leaveProvider` which only takes the host off-mesh;
|
|
12229
|
-
* `logoutProvider` wipes credentials so the next start requires a
|
|
12230
|
-
* fresh login.
|
|
12231
|
-
*/
|
|
12232
|
-
logoutProvider: method(
|
|
12233
|
-
object({ addonId: string() }),
|
|
12234
|
-
object({ loggedOut: literal(true) }),
|
|
12235
|
-
{ kind: "mutation" }
|
|
12236
|
-
),
|
|
12237
|
-
/**
|
|
12238
|
-
* Per-provider peer list. Forwards to `mesh-network.listPeers` on
|
|
12239
|
-
* the addressed provider. Separate from `listProviders` because
|
|
12240
|
-
* peer payloads can be large on a heavily-populated tailnet —
|
|
12241
|
-
* fetch only when the operator opens the Peers tab.
|
|
12242
|
-
*/
|
|
12243
|
-
listProviderPeers: method(
|
|
12244
|
-
object({ addonId: string() }),
|
|
12245
|
-
object({
|
|
12246
|
-
peers: array(MeshPeerSchema).readonly()
|
|
12247
|
-
})
|
|
12248
|
-
)
|
|
12249
|
-
}
|
|
12250
|
-
});
|
|
12251
12064
|
const MethodAccessSchema = _enum(["view", "create", "delete"]);
|
|
12252
12065
|
const AllowedProviderSchema = union([literal("*"), array(string())]);
|
|
12253
12066
|
const AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
|
|
@@ -12923,6 +12736,21 @@ const AddonAutoUpdateSchema = ChannelWithInheritSchema;
|
|
|
12923
12736
|
const RestartAddonResultSchema = unknown();
|
|
12924
12737
|
const InstallPackageResultSchema = unknown();
|
|
12925
12738
|
const ReloadPackagesResultSchema = unknown();
|
|
12739
|
+
const UpdateFrameworkPackageResultSchema = object({
|
|
12740
|
+
packageName: string(),
|
|
12741
|
+
fromVersion: string(),
|
|
12742
|
+
toVersion: string(),
|
|
12743
|
+
/** Ms-epoch the server scheduled its self-restart. */
|
|
12744
|
+
restartingAt: number()
|
|
12745
|
+
});
|
|
12746
|
+
const FrameworkPackageStatusSchema = object({
|
|
12747
|
+
packageName: string(),
|
|
12748
|
+
currentVersion: string(),
|
|
12749
|
+
latestVersion: string().nullable(),
|
|
12750
|
+
hasUpdate: boolean(),
|
|
12751
|
+
/** Optional manifest description for the row tooltip. */
|
|
12752
|
+
description: string().optional()
|
|
12753
|
+
});
|
|
12926
12754
|
const LogStreamEntrySchema = object({
|
|
12927
12755
|
timestamp: string(),
|
|
12928
12756
|
level: string(),
|
|
@@ -12982,13 +12810,29 @@ const CustomActionInputSchema = object({
|
|
|
12982
12810
|
object({ query: string().optional() }),
|
|
12983
12811
|
array(SearchResultSchema)
|
|
12984
12812
|
),
|
|
12813
|
+
/**
|
|
12814
|
+
* Available package updates for a node. `nodeId` omitted (or
|
|
12815
|
+
* `'hub'`) checks the hub's own installed packages; an agent
|
|
12816
|
+
* `nodeId` checks that agent's installed roster against npm
|
|
12817
|
+
* (the hub does the npm lookups + diff — agents stay npm-free).
|
|
12818
|
+
*/
|
|
12985
12819
|
listUpdates: method(
|
|
12986
|
-
|
|
12820
|
+
object({ nodeId: string().optional() }),
|
|
12987
12821
|
array(PackageUpdateSchema).readonly(),
|
|
12988
12822
|
{ auth: "admin" }
|
|
12989
12823
|
),
|
|
12824
|
+
/**
|
|
12825
|
+
* Update one package on a node. `nodeId` omitted (or `'hub'`)
|
|
12826
|
+
* installs on the hub via npm; an agent `nodeId` makes the hub
|
|
12827
|
+
* pack the resolved version and push the tarball to that agent
|
|
12828
|
+
* (`$agent.deploy` + `$agent.reload`) — agents need no npm runtime.
|
|
12829
|
+
*/
|
|
12990
12830
|
updatePackage: method(
|
|
12991
|
-
object({
|
|
12831
|
+
object({
|
|
12832
|
+
name: string().min(1),
|
|
12833
|
+
version: string().optional(),
|
|
12834
|
+
nodeId: string().optional()
|
|
12835
|
+
}),
|
|
12992
12836
|
unknown(),
|
|
12993
12837
|
{ kind: "mutation", auth: "admin" }
|
|
12994
12838
|
),
|
|
@@ -13009,12 +12853,128 @@ const CustomActionInputSchema = object({
|
|
|
13009
12853
|
object({ rolledBackTo: string().nullable() }),
|
|
13010
12854
|
{ kind: "mutation", auth: "admin" }
|
|
13011
12855
|
),
|
|
13012
|
-
|
|
12856
|
+
/** Re-check updates for a node, bypassing any cache. `nodeId`
|
|
12857
|
+
* omitted (or `'hub'`) refreshes the hub; an agent `nodeId`
|
|
12858
|
+
* re-checks that agent's roster. */
|
|
12859
|
+
forceRefresh: method(
|
|
12860
|
+
object({ nodeId: string().optional() }),
|
|
12861
|
+
unknown(),
|
|
12862
|
+
{ kind: "mutation", auth: "admin" }
|
|
12863
|
+
),
|
|
13013
12864
|
restartServer: method(
|
|
13014
12865
|
object({ confirm: literal(true) }),
|
|
13015
12866
|
unknown(),
|
|
13016
12867
|
{ kind: "mutation", auth: "admin" }
|
|
13017
12868
|
),
|
|
12869
|
+
/**
|
|
12870
|
+
* Most-recent restart marker (kind / packageName / from→to versions
|
|
12871
|
+
* / requestedBy / requestedAt). Returns `null` when this process
|
|
12872
|
+
* didn't boot from a tracked restart, or when the
|
|
12873
|
+
* post-boot retention window (5 min) has elapsed.
|
|
12874
|
+
*
|
|
12875
|
+
* Drives the admin-UI reconnect overlay's success toast — the
|
|
12876
|
+
* `system.restart-completed` event itself is fired before the
|
|
12877
|
+
* client has time to re-subscribe, so the client queries this on
|
|
12878
|
+
* first reconnect instead.
|
|
12879
|
+
*/
|
|
12880
|
+
getLastRestart: method(
|
|
12881
|
+
_void(),
|
|
12882
|
+
object({
|
|
12883
|
+
kind: _enum(["framework-update", "manual", "system"]),
|
|
12884
|
+
packageName: string().optional(),
|
|
12885
|
+
fromVersion: string().optional(),
|
|
12886
|
+
toVersion: string().optional(),
|
|
12887
|
+
requestedBy: string().optional(),
|
|
12888
|
+
requestedAt: number()
|
|
12889
|
+
}).nullable(),
|
|
12890
|
+
{ auth: "admin" }
|
|
12891
|
+
),
|
|
12892
|
+
/**
|
|
12893
|
+
* Snapshot of the framework packages installed under the hub's
|
|
12894
|
+
* `<appRoot>/node_modules/`. Each row carries the currently
|
|
12895
|
+
* installed version and (best-effort) the latest version
|
|
12896
|
+
* available on npm. Drives the admin-UI "System packages" panel.
|
|
12897
|
+
*
|
|
12898
|
+
* Spec: docs/superpowers/specs/2026-05-14-framework-live-update-design.md
|
|
12899
|
+
*/
|
|
12900
|
+
listFrameworkPackages: method(
|
|
12901
|
+
_void(),
|
|
12902
|
+
array(FrameworkPackageStatusSchema).readonly(),
|
|
12903
|
+
{ auth: "admin" }
|
|
12904
|
+
),
|
|
12905
|
+
/**
|
|
12906
|
+
* Cluster-wide capability-provider discovery. Returns the list of
|
|
12907
|
+
* `{ addonId, mode, isActive }` tuples for whatever addon(s)
|
|
12908
|
+
* currently provide the requested capability across the cluster.
|
|
12909
|
+
*
|
|
12910
|
+
* Why this lives on `addons` (and not on a `capabilities` cap of
|
|
12911
|
+
* its own): the hub's main-process `CapabilityRegistry` already
|
|
12912
|
+
* aggregates registrations from every forked group-runner and
|
|
12913
|
+
* remote agent via Moleculer event propagation — there's no
|
|
12914
|
+
* cross-process registry mirror to build, just an introspection
|
|
12915
|
+
* shim.
|
|
12916
|
+
*
|
|
12917
|
+
* Use this from addon code when you need to know whether another
|
|
12918
|
+
* addon has registered a specific cap (e.g. `tailscale-ingress`
|
|
12919
|
+
* checking `tailscale-client` is up before calling `tailscale
|
|
12920
|
+
* serve`). Don't reach for `ctx.capabilities.getCollectionEntries`
|
|
12921
|
+
* — that reads the LOCAL registry of the calling addon's group
|
|
12922
|
+
* runner and never sees providers in other processes. See
|
|
12923
|
+
* `CLAUDE.md` → Critical rules → ctx.api vs ctx.capabilities.
|
|
12924
|
+
*/
|
|
12925
|
+
listCapabilityProviders: method(
|
|
12926
|
+
object({ capName: string().min(1) }),
|
|
12927
|
+
array(object({
|
|
12928
|
+
addonId: string(),
|
|
12929
|
+
mode: _enum(["singleton", "collection"]),
|
|
12930
|
+
isActive: boolean()
|
|
12931
|
+
})).readonly()
|
|
12932
|
+
),
|
|
12933
|
+
/**
|
|
12934
|
+
* Toggle a single collection-cap provider on/off. Generic write-side
|
|
12935
|
+
* counterpart of `listCapabilityProviders` — drives the per-provider
|
|
12936
|
+
* Enable/Disable affordance in admin pages (TURN servers, etc.)
|
|
12937
|
+
* without needing a bespoke orchestrator cap.
|
|
12938
|
+
*
|
|
12939
|
+
* Reaches the hub's `CapabilityRegistry` directly:
|
|
12940
|
+
* `enableCollectionProvider` / `disableCollectionProvider` flip the
|
|
12941
|
+
* registry-level `disabledProviders` set. `getCollectionEntries`
|
|
12942
|
+
* already filters disabled providers out, so a disabled provider
|
|
12943
|
+
* drops out of every collection aggregate immediately. Only valid
|
|
12944
|
+
* for `mode: 'collection'` caps — the registry no-ops + warns for
|
|
12945
|
+
* singletons.
|
|
12946
|
+
*/
|
|
12947
|
+
setCapabilityProviderEnabled: method(
|
|
12948
|
+
object({
|
|
12949
|
+
capName: string().min(1),
|
|
12950
|
+
addonId: string().min(1),
|
|
12951
|
+
enabled: boolean()
|
|
12952
|
+
}),
|
|
12953
|
+
object({ success: literal(true) }),
|
|
12954
|
+
{ kind: "mutation", auth: "admin" }
|
|
12955
|
+
),
|
|
12956
|
+
/**
|
|
12957
|
+
* Live-update one of the framework packages marked
|
|
12958
|
+
* `camstack.system: true` (`@camstack/types|kernel|core|sdk|ui-library`).
|
|
12959
|
+
* Runs `npm install --prefix <appRoot> <name>@<version> --no-save`,
|
|
12960
|
+
* writes a `.restart-pending` marker, emits `system.restarting`
|
|
12961
|
+
* and schedules a graceful process exit. The supervisor (Docker /
|
|
12962
|
+
* Electron / systemd) brings the hub back up; on first boot after
|
|
12963
|
+
* the restart the marker fires `system.restart-completed`.
|
|
12964
|
+
*
|
|
12965
|
+
* `version` defaults to `'latest'`. The allow-list of valid
|
|
12966
|
+
* `packageName` values is enforced server-side.
|
|
12967
|
+
*
|
|
12968
|
+
* Spec: docs/superpowers/specs/2026-05-14-framework-live-update-design.md
|
|
12969
|
+
*/
|
|
12970
|
+
updateFrameworkPackage: method(
|
|
12971
|
+
object({
|
|
12972
|
+
packageName: string().min(1),
|
|
12973
|
+
version: string().optional()
|
|
12974
|
+
}),
|
|
12975
|
+
UpdateFrameworkPackageResultSchema,
|
|
12976
|
+
{ kind: "mutation", auth: "admin" }
|
|
12977
|
+
),
|
|
13018
12978
|
getVersions: method(
|
|
13019
12979
|
object({ name: string() }),
|
|
13020
12980
|
array(PackageVersionInfoSchema).readonly()
|
|
@@ -13085,6 +13045,7 @@ var EventCategory = /* @__PURE__ */ ((EventCategory2) => {
|
|
|
13085
13045
|
EventCategory2["SystemBoot"] = "system.boot";
|
|
13086
13046
|
EventCategory2["SystemAddonsReady"] = "system.addons-ready";
|
|
13087
13047
|
EventCategory2["SystemRestarting"] = "system.restarting";
|
|
13048
|
+
EventCategory2["SystemRestartCompleted"] = "system.restart-completed";
|
|
13088
13049
|
EventCategory2["SystemReadyState"] = "system.ready-state";
|
|
13089
13050
|
EventCategory2["AddonStarted"] = "addon.started";
|
|
13090
13051
|
EventCategory2["AddonStopped"] = "addon.stopped";
|
|
@@ -13865,4 +13826,4 @@ export {
|
|
|
13865
13826
|
DEFAULT_AUDIO_ANALYZER_CONFIG as y,
|
|
13866
13827
|
AUDIO_BACKEND_CHOICES as z
|
|
13867
13828
|
};
|
|
13868
|
-
//# sourceMappingURL=index-
|
|
13829
|
+
//# sourceMappingURL=index-DKh0uEve.mjs.map
|