@camstack/addon-post-analysis 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.
Files changed (33) hide show
  1. package/dist/embedding-encoder/index.js +1 -1
  2. package/dist/embedding-encoder/index.mjs +1 -1
  3. package/dist/enrichment-engine/index.js +1 -1
  4. package/dist/enrichment-engine/index.mjs +1 -1
  5. package/dist/{index-BJKSB953.js → index-DNpNyDJi.js} +197 -236
  6. package/dist/index-DNpNyDJi.js.map +1 -0
  7. package/dist/{index-BThK2F-p.mjs → index-tm6O4bWa.mjs} +197 -236
  8. package/dist/index-tm6O4bWa.mjs.map +1 -0
  9. package/dist/pipeline-analytics/@mf-types.zip +0 -0
  10. package/dist/pipeline-analytics/__mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.mjs-CpCK52pE.mjs +19 -0
  11. package/dist/pipeline-analytics/__mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.mjs-DEj77u_A.mjs +15 -0
  12. package/dist/pipeline-analytics/_stub.js +1 -1
  13. package/dist/pipeline-analytics/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-Vw8HvV_Q.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-C7e1vVcD.mjs} +6 -6
  14. package/dist/pipeline-analytics/{hostInit-PQYMQJ_C.mjs → hostInit-TFbPssJX.mjs} +6 -6
  15. package/dist/pipeline-analytics/{index-D7qTzYFz.mjs → index-BDPtaPA2.mjs} +7065 -5705
  16. package/dist/pipeline-analytics/index-BP0-1QYT.mjs +13140 -0
  17. package/dist/pipeline-analytics/{index-BSmxqDqD.mjs → index-DHiJ7A5x.mjs} +1 -1
  18. package/dist/pipeline-analytics/index.js +1 -1
  19. package/dist/pipeline-analytics/index.mjs +1 -1
  20. package/dist/pipeline-analytics/remoteEntry.js +1 -1
  21. package/dist/pipeline-analytics/schemas-ChN4Ih0h.mjs +3584 -0
  22. package/dist/recording/index.js +2 -2
  23. package/dist/recording/index.mjs +2 -2
  24. package/dist/{recording-coordinator-CvJtVs3m.mjs → recording-coordinator-BVFZsuQg.mjs} +2 -2
  25. package/dist/{recording-coordinator-CvJtVs3m.mjs.map → recording-coordinator-BVFZsuQg.mjs.map} +1 -1
  26. package/dist/{recording-coordinator-DH1gmm5G.js → recording-coordinator-CL3NPb1p.js} +2 -2
  27. package/dist/{recording-coordinator-DH1gmm5G.js.map → recording-coordinator-CL3NPb1p.js.map} +1 -1
  28. package/package.json +5 -5
  29. package/dist/index-BJKSB953.js.map +0 -1
  30. package/dist/index-BThK2F-p.mjs.map +0 -1
  31. package/dist/pipeline-analytics/__mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.mjs-ChoHjdk6.mjs +0 -17
  32. package/dist/pipeline-analytics/__mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.mjs-B9D0yX32.mjs +0 -15
  33. package/dist/pipeline-analytics/index-Bpv0NSqI.mjs +0 -16780
@@ -8517,10 +8517,30 @@ const StatusSchema = object({
8517
8517
  }
8518
8518
  });
8519
8519
  const LinkStateSchema = _enum(["unlinked", "linked", "error"]);
8520
+ const ExportSetupFieldSchema = object({
8521
+ label: string(),
8522
+ value: string(),
8523
+ /** Mask the value by default + render a reveal toggle (client id, secrets). */
8524
+ secret: boolean().optional()
8525
+ });
8526
+ const ExportSetupSchema = object({
8527
+ /** A string to render as a scannable QR — HAP `X-HM://…` URI, a pairing URL, etc. Omitted when there's nothing to scan. */
8528
+ qr: string().optional(),
8529
+ /** Label/value rows shown with a copy button (HAP setup code, OAuth URLs, client id, linked-account count, …). */
8530
+ fields: array(ExportSetupFieldSchema).readonly().optional(),
8531
+ /** Free-form operator instructions rendered above the fields. */
8532
+ note: string().optional()
8533
+ });
8520
8534
  const DeviceExportStatusSchema = object({
8521
8535
  linkState: LinkStateSchema,
8522
8536
  exposedDeviceCount: number(),
8523
- error: string().optional()
8537
+ error: string().optional(),
8538
+ /**
8539
+ * Optional pairing/account info the panel renders in a generic
8540
+ * "Setup" section. Addon-agnostic — the addon id identifies the
8541
+ * export target, never an `ecosystem` key here.
8542
+ */
8543
+ setup: ExportSetupSchema.optional()
8524
8544
  });
8525
8545
  const DeviceKindSchema = string();
8526
8546
  const ExposedDeviceSchema = object({
@@ -10198,51 +10218,6 @@ const AuthResultSchema = object({
10198
10218
  validateToken: method(object({ token: string() }), AuthResultSchema.nullable())
10199
10219
  }
10200
10220
  });
10201
- const AuthProviderInfoSchema = object({
10202
- /** Stable id matching the addon id (used for `getLoginUrl({addonId,…})`). */
10203
- addonId: string(),
10204
- /**
10205
- * Per-instance id when one addon registers multiple "logical"
10206
- * providers (e.g. OIDC with Google + Microsoft + custom). The login
10207
- * URL becomes `/addon/${addonId}/${instanceId}/start` — handler reads
10208
- * `:instanceId` from the route. Empty/unset means the addon is a
10209
- * single-instance provider; the URL is `/addon/${addonId}/start`.
10210
- */
10211
- instanceId: string().optional(),
10212
- /** Display label shown on the login button + admin row. */
10213
- displayName: string(),
10214
- /** Optional iconography hint (lucide-react icon name OR emoji). */
10215
- icon: string().optional(),
10216
- /** When true, the provider exposes a redirect-based login flow
10217
- * (`getLoginUrl` returns a URL the browser navigates to). */
10218
- hasRedirectFlow: boolean(),
10219
- /** When true, the provider exposes a credential-form login flow
10220
- * (`validateCredentials` accepts username + password). */
10221
- hasCredentialFlow: boolean(),
10222
- /** Provider kind, drives admin-UI hint dispatch (oidc / saml / totp / …). */
10223
- kind: string().optional(),
10224
- /** Operator-facing status string (e.g. "Connected to https://login.acme.com"). */
10225
- status: string().optional(),
10226
- /** When false, the provider is registered but disabled by config; the
10227
- * UI surfaces it as inactive without enumerating it for login. */
10228
- enabled: boolean()
10229
- });
10230
- ({
10231
- methods: {
10232
- /** All registered auth providers, both enabled and disabled. */
10233
- listProviders: method(_void(), array(AuthProviderInfoSchema).readonly()),
10234
- /**
10235
- * Toggle a provider's enabled flag. Disabled providers stay
10236
- * registered but aren't surfaced on the login page. The orchestrator
10237
- * persists the state in `addon-settings` so it survives restarts.
10238
- */
10239
- setProviderEnabled: method(
10240
- object({ addonId: string(), enabled: boolean() }),
10241
- object({ success: literal(true) }),
10242
- { kind: "mutation", auth: "admin" }
10243
- )
10244
- }
10245
- });
10246
10221
  const NetworkEndpointSchema = object({
10247
10222
  url: string(),
10248
10223
  hostname: string(),
@@ -10274,55 +10249,13 @@ const NetworkEndpointEntrySchema = NetworkEndpointSchema.extend({
10274
10249
  getEndpoint: method(_void(), NetworkEndpointSchema.nullable()),
10275
10250
  getStatus: method(_void(), NetworkAccessStatusSchema),
10276
10251
  /**
10277
- * Enumerate every active ingress entry. Default implementation (when
10278
- * the provider omits this method) is derived from `getEndpoint()` —
10279
- * see the remote-access orchestrator for the fallback path.
10252
+ * Enumerate every active ingress entry. Providers that expose only a
10253
+ * single endpoint may omit this method; callers fall back to
10254
+ * `getEndpoint()` in that case.
10280
10255
  */
10281
10256
  listEndpoints: method(_void(), array(NetworkEndpointEntrySchema).readonly())
10282
10257
  }
10283
10258
  });
10284
- const RemoteAccessEndpointSchema = object({
10285
- url: string(),
10286
- hostname: string(),
10287
- port: number(),
10288
- protocol: _enum(["http", "https"])
10289
- });
10290
- const RemoteAccessProviderInfoSchema = object({
10291
- /** Stable id matching the addon id. */
10292
- addonId: string(),
10293
- /** Display label shown on the admin row — sourced from the addon manifest. */
10294
- displayName: string(),
10295
- /** When false, the provider is registered but disabled. */
10296
- enabled: boolean(),
10297
- /** True when the underlying tunnel/connection is up. */
10298
- connected: boolean(),
10299
- /** Public-facing endpoint, when connected. Null otherwise. */
10300
- endpoint: RemoteAccessEndpointSchema.nullable(),
10301
- /** Last error message (when connected=false), if available. */
10302
- error: string().optional()
10303
- });
10304
- ({
10305
- methods: {
10306
- /** All registered remote-access providers + their live status. */
10307
- listProviders: method(_void(), array(RemoteAccessProviderInfoSchema).readonly()),
10308
- /**
10309
- * Start a specific provider's tunnel. Per-provider config still
10310
- * lives on the addon's settings panel; this is just the on/off
10311
- * trigger so the admin UI can manage the lifecycle from one place.
10312
- */
10313
- startProvider: method(
10314
- object({ addonId: string() }),
10315
- RemoteAccessEndpointSchema,
10316
- { kind: "mutation", auth: "admin" }
10317
- ),
10318
- /** Stop a specific provider's tunnel (idempotent on already-stopped). */
10319
- stopProvider: method(
10320
- object({ addonId: string() }),
10321
- object({ success: literal(true) }),
10322
- { kind: "mutation", auth: "admin" }
10323
- )
10324
- }
10325
- });
10326
10259
  const TurnServerSchema = object({
10327
10260
  /** Single URL or list of URLs (e.g. "turn:turn.example.com:3478?transport=udp"). */
10328
10261
  urls: union([string(), array(string())]),
@@ -10342,45 +10275,6 @@ const TurnServerSchema = object({
10342
10275
  )
10343
10276
  }
10344
10277
  });
10345
- const TurnProviderInfoSchema = object({
10346
- /** Stable id matching the addon id. */
10347
- addonId: string(),
10348
- /** Display label shown on the admin row — sourced from the addon manifest. */
10349
- displayName: string(),
10350
- /** When false, the provider is registered but disabled. */
10351
- enabled: boolean(),
10352
- /** Number of servers this provider is currently exposing. */
10353
- serverCount: number(),
10354
- /**
10355
- * Flat list of every TURN/STUN URL this provider currently exposes.
10356
- * One row per URL (multi-URL ICE server entries are flattened). The
10357
- * admin UI shows this in a compact per-provider list so operators
10358
- * can verify what's actually being negotiated without having to dig
10359
- * into the combined `getAllServers` output.
10360
- */
10361
- urls: array(string()).readonly(),
10362
- /** Last fetch error (when serverCount=0 due to API failure), if any. */
10363
- error: string().optional()
10364
- });
10365
- ({
10366
- methods: {
10367
- /** All registered TURN providers + per-provider stats. */
10368
- listProviders: method(_void(), array(TurnProviderInfoSchema).readonly()),
10369
- /**
10370
- * Combined list of TURN/STUN servers from all ENABLED providers.
10371
- * Consumed by the WebRTC layer at session-creation time —
10372
- * implementations may fetch fresh short-lived credentials each
10373
- * call (e.g. Cloudflare API), so consumers SHOULD call per-session.
10374
- */
10375
- getAllServers: method(_void(), array(TurnServerSchema).readonly()),
10376
- /** Toggle a provider's enabled flag. */
10377
- setProviderEnabled: method(
10378
- object({ addonId: string(), enabled: boolean() }),
10379
- object({ success: literal(true) }),
10380
- { kind: "mutation", auth: "admin" }
10381
- )
10382
- }
10383
- });
10384
10278
  const SnapshotImageSchema = object({
10385
10279
  base64: string(),
10386
10280
  contentType: string()
@@ -11855,7 +11749,7 @@ const AllowedAddressesSchema = object({
11855
11749
  )
11856
11750
  }
11857
11751
  });
11858
- const MeshEndpointSchema$1 = object({
11752
+ const MeshEndpointSchema = object({
11859
11753
  /** Stable identifier within the provider (e.g. `mesh-ipv4`, `magicdns`, `funnel`). */
11860
11754
  id: string(),
11861
11755
  /** Operator-facing label (e.g. "Mesh IPv4", "MagicDNS"). */
@@ -11928,7 +11822,7 @@ const MeshStatusSchema = object({
11928
11822
  /** Number of peers visible to this host (excluding self). */
11929
11823
  peerCount: number(),
11930
11824
  /** Every endpoint this provider exposes for the current host. */
11931
- endpoints: array(MeshEndpointSchema$1).readonly(),
11825
+ endpoints: array(MeshEndpointSchema).readonly(),
11932
11826
  /** Last error from the daemon, when not joined. */
11933
11827
  error: string().optional(),
11934
11828
  // ── Account / tenant identity (generic across providers) ────────
@@ -11961,7 +11855,25 @@ const MeshStatusSchema = object({
11961
11855
  * doesn't rotate keys for the bound host. Operator-facing surface
11962
11856
  * for "your access expires on …" banners.
11963
11857
  */
11964
- keyExpiry: number().nullable()
11858
+ keyExpiry: number().nullable(),
11859
+ // ── Onboard-daemon handoff (Tailscale, generic slot) ────────────
11860
+ /**
11861
+ * When the provider runs its OWN mesh daemon (e.g. the Tailscale
11862
+ * client addon in `onboard` mode spawns a private `tailscaled`),
11863
+ * this carries the local control-socket path. Companion addons that
11864
+ * must drive the SAME daemon — chiefly `tailscale-ingress` for
11865
+ * Serve/Funnel — read it to point their CLI at the right socket
11866
+ * instead of the system default. Empty when the provider uses the
11867
+ * host's system daemon (or doesn't have the concept).
11868
+ */
11869
+ daemonSocket: string().optional(),
11870
+ /**
11871
+ * Path to the mesh CLI binary the provider downloaded for onboard
11872
+ * mode. Companion addons reuse it so they don't need a system
11873
+ * install when the operator chose a fully self-contained mesh.
11874
+ * Empty in host mode.
11875
+ */
11876
+ daemonCliPath: string().optional()
11965
11877
  });
11966
11878
  ({
11967
11879
  methods: {
@@ -12073,105 +11985,6 @@ const MeshStatusSchema = object({
12073
11985
  // tabs driven by this cap.
12074
11986
  }
12075
11987
  });
12076
- const MeshEndpointSchema = object({
12077
- id: string(),
12078
- label: string(),
12079
- scope: _enum(["mesh", "public"]),
12080
- url: string(),
12081
- hostname: string(),
12082
- port: number(),
12083
- protocol: _enum(["http", "https"])
12084
- });
12085
- const MeshProviderInfoSchema = object({
12086
- /** Stable id matching the addon id. */
12087
- addonId: string(),
12088
- /** Display label shown on the admin row — sourced from the addon manifest. */
12089
- displayName: string(),
12090
- /** True when the host is joined to this provider's mesh. */
12091
- joined: boolean(),
12092
- /** Local mesh IP (empty when not joined). */
12093
- meshIp: string(),
12094
- /** MagicDNS / mesh hostname (empty when not configured). */
12095
- magicDnsHostname: string(),
12096
- /** Peer count (excluding self). */
12097
- peerCount: number(),
12098
- /** Active endpoints (mesh IP + MagicDNS + optional public Funnel). */
12099
- endpoints: array(MeshEndpointSchema).readonly(),
12100
- /** Last error reported by the provider. */
12101
- error: string().optional(),
12102
- // ── Generic identity fields mirrored from MeshStatus ─────────────
12103
- /** Tenant / tailnet / network display name. Empty pre-join. */
12104
- tenantName: string(),
12105
- /** Mesh DNS suffix (e.g. tailXXXX.ts.net). Empty when not configured. */
12106
- magicDnsSuffix: string(),
12107
- /** Authenticated user / account login. Null for token-only providers. */
12108
- userLogin: string().nullable(),
12109
- /** Provider control-plane URL. */
12110
- controlPlaneUrl: string(),
12111
- /** Machine-key expiry (epoch ms). Null when keys don't rotate. */
12112
- keyExpiry: number().nullable()
12113
- });
12114
- ({
12115
- methods: {
12116
- /** All registered mesh-network providers + live status. */
12117
- listProviders: method(_void(), array(MeshProviderInfoSchema).readonly()),
12118
- /**
12119
- * Join the mesh of a specific provider. Per-provider config still
12120
- * lives on its settings panel; the orchestrator forwards.
12121
- */
12122
- joinProvider: method(
12123
- object({
12124
- addonId: string(),
12125
- authKey: string().min(8),
12126
- hostname: string().optional()
12127
- }),
12128
- object({ joined: literal(true) }),
12129
- { kind: "mutation" }
12130
- ),
12131
- leaveProvider: method(
12132
- object({ addonId: string() }),
12133
- object({ success: literal(true) }),
12134
- { kind: "mutation" }
12135
- ),
12136
- /**
12137
- * Browser-redirect login flow. Forwards to the named provider's
12138
- * `mesh-network.startLogin` and returns the URL the daemon
12139
- * prints. UI opens it in a new tab, then polls `listProviders`
12140
- * for `joined: true`.
12141
- */
12142
- startLoginProvider: method(
12143
- object({
12144
- addonId: string(),
12145
- hostname: string().optional()
12146
- }),
12147
- object({ loginUrl: string() }),
12148
- { kind: "mutation" }
12149
- ),
12150
- /**
12151
- * Sign out of the provider's account entirely (`mesh-network.logout`).
12152
- * Distinct from `leaveProvider` which only takes the host off-mesh;
12153
- * `logoutProvider` wipes credentials so the next start requires a
12154
- * fresh login.
12155
- */
12156
- logoutProvider: method(
12157
- object({ addonId: string() }),
12158
- object({ loggedOut: literal(true) }),
12159
- { kind: "mutation" }
12160
- ),
12161
- /**
12162
- * Per-provider peer list. Forwards to `mesh-network.listPeers` on
12163
- * the addressed provider. Separate from `listProviders` because
12164
- * peer payloads can be large on a heavily-populated tailnet —
12165
- * fetch only when the operator opens the Peers tab.
12166
- */
12167
- listProviderPeers: method(
12168
- object({ addonId: string() }),
12169
- object({
12170
- peers: array(MeshPeerSchema).readonly()
12171
- })
12172
- )
12173
- }
12174
- });
12175
11988
  const MethodAccessSchema = _enum(["view", "create", "delete"]);
12176
11989
  const AllowedProviderSchema = union([literal("*"), array(string())]);
12177
11990
  const AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
@@ -12847,6 +12660,21 @@ const AddonAutoUpdateSchema = ChannelWithInheritSchema;
12847
12660
  const RestartAddonResultSchema = unknown();
12848
12661
  const InstallPackageResultSchema = unknown();
12849
12662
  const ReloadPackagesResultSchema = unknown();
12663
+ const UpdateFrameworkPackageResultSchema = object({
12664
+ packageName: string(),
12665
+ fromVersion: string(),
12666
+ toVersion: string(),
12667
+ /** Ms-epoch the server scheduled its self-restart. */
12668
+ restartingAt: number()
12669
+ });
12670
+ const FrameworkPackageStatusSchema = object({
12671
+ packageName: string(),
12672
+ currentVersion: string(),
12673
+ latestVersion: string().nullable(),
12674
+ hasUpdate: boolean(),
12675
+ /** Optional manifest description for the row tooltip. */
12676
+ description: string().optional()
12677
+ });
12850
12678
  const LogStreamEntrySchema = object({
12851
12679
  timestamp: string(),
12852
12680
  level: string(),
@@ -12906,13 +12734,29 @@ const CustomActionInputSchema = object({
12906
12734
  object({ query: string().optional() }),
12907
12735
  array(SearchResultSchema)
12908
12736
  ),
12737
+ /**
12738
+ * Available package updates for a node. `nodeId` omitted (or
12739
+ * `'hub'`) checks the hub's own installed packages; an agent
12740
+ * `nodeId` checks that agent's installed roster against npm
12741
+ * (the hub does the npm lookups + diff — agents stay npm-free).
12742
+ */
12909
12743
  listUpdates: method(
12910
- _void(),
12744
+ object({ nodeId: string().optional() }),
12911
12745
  array(PackageUpdateSchema).readonly(),
12912
12746
  { auth: "admin" }
12913
12747
  ),
12748
+ /**
12749
+ * Update one package on a node. `nodeId` omitted (or `'hub'`)
12750
+ * installs on the hub via npm; an agent `nodeId` makes the hub
12751
+ * pack the resolved version and push the tarball to that agent
12752
+ * (`$agent.deploy` + `$agent.reload`) — agents need no npm runtime.
12753
+ */
12914
12754
  updatePackage: method(
12915
- object({ name: string().min(1), version: string().optional() }),
12755
+ object({
12756
+ name: string().min(1),
12757
+ version: string().optional(),
12758
+ nodeId: string().optional()
12759
+ }),
12916
12760
  unknown(),
12917
12761
  { kind: "mutation", auth: "admin" }
12918
12762
  ),
@@ -12933,12 +12777,128 @@ const CustomActionInputSchema = object({
12933
12777
  object({ rolledBackTo: string().nullable() }),
12934
12778
  { kind: "mutation", auth: "admin" }
12935
12779
  ),
12936
- forceRefresh: method(_void(), unknown(), { kind: "mutation", auth: "admin" }),
12780
+ /** Re-check updates for a node, bypassing any cache. `nodeId`
12781
+ * omitted (or `'hub'`) refreshes the hub; an agent `nodeId`
12782
+ * re-checks that agent's roster. */
12783
+ forceRefresh: method(
12784
+ object({ nodeId: string().optional() }),
12785
+ unknown(),
12786
+ { kind: "mutation", auth: "admin" }
12787
+ ),
12937
12788
  restartServer: method(
12938
12789
  object({ confirm: literal(true) }),
12939
12790
  unknown(),
12940
12791
  { kind: "mutation", auth: "admin" }
12941
12792
  ),
12793
+ /**
12794
+ * Most-recent restart marker (kind / packageName / from→to versions
12795
+ * / requestedBy / requestedAt). Returns `null` when this process
12796
+ * didn't boot from a tracked restart, or when the
12797
+ * post-boot retention window (5 min) has elapsed.
12798
+ *
12799
+ * Drives the admin-UI reconnect overlay's success toast — the
12800
+ * `system.restart-completed` event itself is fired before the
12801
+ * client has time to re-subscribe, so the client queries this on
12802
+ * first reconnect instead.
12803
+ */
12804
+ getLastRestart: method(
12805
+ _void(),
12806
+ object({
12807
+ kind: _enum(["framework-update", "manual", "system"]),
12808
+ packageName: string().optional(),
12809
+ fromVersion: string().optional(),
12810
+ toVersion: string().optional(),
12811
+ requestedBy: string().optional(),
12812
+ requestedAt: number()
12813
+ }).nullable(),
12814
+ { auth: "admin" }
12815
+ ),
12816
+ /**
12817
+ * Snapshot of the framework packages installed under the hub's
12818
+ * `<appRoot>/node_modules/`. Each row carries the currently
12819
+ * installed version and (best-effort) the latest version
12820
+ * available on npm. Drives the admin-UI "System packages" panel.
12821
+ *
12822
+ * Spec: docs/superpowers/specs/2026-05-14-framework-live-update-design.md
12823
+ */
12824
+ listFrameworkPackages: method(
12825
+ _void(),
12826
+ array(FrameworkPackageStatusSchema).readonly(),
12827
+ { auth: "admin" }
12828
+ ),
12829
+ /**
12830
+ * Cluster-wide capability-provider discovery. Returns the list of
12831
+ * `{ addonId, mode, isActive }` tuples for whatever addon(s)
12832
+ * currently provide the requested capability across the cluster.
12833
+ *
12834
+ * Why this lives on `addons` (and not on a `capabilities` cap of
12835
+ * its own): the hub's main-process `CapabilityRegistry` already
12836
+ * aggregates registrations from every forked group-runner and
12837
+ * remote agent via Moleculer event propagation — there's no
12838
+ * cross-process registry mirror to build, just an introspection
12839
+ * shim.
12840
+ *
12841
+ * Use this from addon code when you need to know whether another
12842
+ * addon has registered a specific cap (e.g. `tailscale-ingress`
12843
+ * checking `tailscale-client` is up before calling `tailscale
12844
+ * serve`). Don't reach for `ctx.capabilities.getCollectionEntries`
12845
+ * — that reads the LOCAL registry of the calling addon's group
12846
+ * runner and never sees providers in other processes. See
12847
+ * `CLAUDE.md` → Critical rules → ctx.api vs ctx.capabilities.
12848
+ */
12849
+ listCapabilityProviders: method(
12850
+ object({ capName: string().min(1) }),
12851
+ array(object({
12852
+ addonId: string(),
12853
+ mode: _enum(["singleton", "collection"]),
12854
+ isActive: boolean()
12855
+ })).readonly()
12856
+ ),
12857
+ /**
12858
+ * Toggle a single collection-cap provider on/off. Generic write-side
12859
+ * counterpart of `listCapabilityProviders` — drives the per-provider
12860
+ * Enable/Disable affordance in admin pages (TURN servers, etc.)
12861
+ * without needing a bespoke orchestrator cap.
12862
+ *
12863
+ * Reaches the hub's `CapabilityRegistry` directly:
12864
+ * `enableCollectionProvider` / `disableCollectionProvider` flip the
12865
+ * registry-level `disabledProviders` set. `getCollectionEntries`
12866
+ * already filters disabled providers out, so a disabled provider
12867
+ * drops out of every collection aggregate immediately. Only valid
12868
+ * for `mode: 'collection'` caps — the registry no-ops + warns for
12869
+ * singletons.
12870
+ */
12871
+ setCapabilityProviderEnabled: method(
12872
+ object({
12873
+ capName: string().min(1),
12874
+ addonId: string().min(1),
12875
+ enabled: boolean()
12876
+ }),
12877
+ object({ success: literal(true) }),
12878
+ { kind: "mutation", auth: "admin" }
12879
+ ),
12880
+ /**
12881
+ * Live-update one of the framework packages marked
12882
+ * `camstack.system: true` (`@camstack/types|kernel|core|sdk|ui-library`).
12883
+ * Runs `npm install --prefix <appRoot> <name>@<version> --no-save`,
12884
+ * writes a `.restart-pending` marker, emits `system.restarting`
12885
+ * and schedules a graceful process exit. The supervisor (Docker /
12886
+ * Electron / systemd) brings the hub back up; on first boot after
12887
+ * the restart the marker fires `system.restart-completed`.
12888
+ *
12889
+ * `version` defaults to `'latest'`. The allow-list of valid
12890
+ * `packageName` values is enforced server-side.
12891
+ *
12892
+ * Spec: docs/superpowers/specs/2026-05-14-framework-live-update-design.md
12893
+ */
12894
+ updateFrameworkPackage: method(
12895
+ object({
12896
+ packageName: string().min(1),
12897
+ version: string().optional()
12898
+ }),
12899
+ UpdateFrameworkPackageResultSchema,
12900
+ { kind: "mutation", auth: "admin" }
12901
+ ),
12942
12902
  getVersions: method(
12943
12903
  object({ name: string() }),
12944
12904
  array(PackageVersionInfoSchema).readonly()
@@ -13009,6 +12969,7 @@ var EventCategory = /* @__PURE__ */ ((EventCategory2) => {
13009
12969
  EventCategory2["SystemBoot"] = "system.boot";
13010
12970
  EventCategory2["SystemAddonsReady"] = "system.addons-ready";
13011
12971
  EventCategory2["SystemRestarting"] = "system.restarting";
12972
+ EventCategory2["SystemRestartCompleted"] = "system.restart-completed";
13012
12973
  EventCategory2["SystemReadyState"] = "system.ready-state";
13013
12974
  EventCategory2["AddonStarted"] = "addon.started";
13014
12975
  EventCategory2["AddonStopped"] = "addon.stopped";
@@ -13563,4 +13524,4 @@ export {
13563
13524
  tuple as t,
13564
13525
  zoneAnalyticsCapability as z
13565
13526
  };
13566
- //# sourceMappingURL=index-BThK2F-p.mjs.map
13527
+ //# sourceMappingURL=index-tm6O4bWa.mjs.map