@camstack/addon-post-analysis 0.1.13 → 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 (31) 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-DjIIGJS2.js → index-DNpNyDJi.js} +29 -231
  6. package/dist/index-DNpNyDJi.js.map +1 -0
  7. package/dist/{index-DnAXaymw.mjs → index-tm6O4bWa.mjs} +29 -231
  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-BDtqUbh1.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-C7e1vVcD.mjs} +6 -6
  14. package/dist/pipeline-analytics/{hostInit-CtfhvKwy.mjs → hostInit-TFbPssJX.mjs} +6 -6
  15. package/dist/pipeline-analytics/{index-CzwXKSYE.mjs → index-BDPtaPA2.mjs} +572 -569
  16. package/dist/pipeline-analytics/{index-COebxMhm.mjs → index-BP0-1QYT.mjs} +1923 -2181
  17. package/dist/pipeline-analytics/{index-BgDjUxfg.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/recording/index.js +2 -2
  22. package/dist/recording/index.mjs +2 -2
  23. package/dist/{recording-coordinator-CRJ4yA9t.mjs → recording-coordinator-BVFZsuQg.mjs} +2 -2
  24. package/dist/{recording-coordinator-CRJ4yA9t.mjs.map → recording-coordinator-BVFZsuQg.mjs.map} +1 -1
  25. package/dist/{recording-coordinator-UGTDbTdE.js → recording-coordinator-CL3NPb1p.js} +2 -2
  26. package/dist/{recording-coordinator-UGTDbTdE.js.map → recording-coordinator-CL3NPb1p.js.map} +1 -1
  27. package/package.json +1 -1
  28. package/dist/index-DjIIGJS2.js.map +0 -1
  29. package/dist/index-DnAXaymw.mjs.map +0 -1
  30. package/dist/pipeline-analytics/__mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.mjs-p-Z3JTk9.mjs +0 -19
  31. package/dist/pipeline-analytics/__mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.mjs-BfmtcT51.mjs +0 -15
@@ -22,7 +22,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
22
  mod
23
23
  ));
24
24
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
25
- const index = require("../index-DjIIGJS2.js");
25
+ const index = require("../index-DNpNyDJi.js");
26
26
  const core = require("@camstack/core");
27
27
  const path = require("node:path");
28
28
  const fs = require("node:fs");
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_TO_FORMAT$1, P as PYTHON_SCRIPT, f as BACKEND_TO_FORMAT$1, B as BaseAddon, g as embeddingEncoderCapability } from "../index-DnAXaymw.mjs";
1
+ import { R as RUNTIME_TO_FORMAT$1, P as PYTHON_SCRIPT, f as BACKEND_TO_FORMAT$1, B as BaseAddon, g as embeddingEncoderCapability } from "../index-tm6O4bWa.mjs";
2
2
  import { ModelDownloadService } from "@camstack/core";
3
3
  import * as path from "node:path";
4
4
  import * as fs from "node:fs";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const index = require("../index-DjIIGJS2.js");
3
+ const index = require("../index-DNpNyDJi.js");
4
4
  const sharp = require("sharp");
5
5
  const DEFAULT_ENRICHMENT_CONFIG = {
6
6
  enabled: false,
@@ -1,4 +1,4 @@
1
- import { E as EventCategory, c as createEvent, o as object, t as tuple, n as number, s as string, b as boolean, a as array, _ as _enum, B as BaseAddon, d as asJsonObject } from "../index-DnAXaymw.mjs";
1
+ import { E as EventCategory, c as createEvent, o as object, t as tuple, n as number, s as string, b as boolean, a as array, _ as _enum, B as BaseAddon, d as asJsonObject } from "../index-tm6O4bWa.mjs";
2
2
  import sharp from "sharp";
3
3
  const DEFAULT_ENRICHMENT_CONFIG = {
4
4
  enabled: false,
@@ -10219,51 +10219,6 @@ const AuthResultSchema = object({
10219
10219
  validateToken: method(object({ token: string() }), AuthResultSchema.nullable())
10220
10220
  }
10221
10221
  });
10222
- const AuthProviderInfoSchema = object({
10223
- /** Stable id matching the addon id (used for `getLoginUrl({addonId,…})`). */
10224
- addonId: string(),
10225
- /**
10226
- * Per-instance id when one addon registers multiple "logical"
10227
- * providers (e.g. OIDC with Google + Microsoft + custom). The login
10228
- * URL becomes `/addon/${addonId}/${instanceId}/start` — handler reads
10229
- * `:instanceId` from the route. Empty/unset means the addon is a
10230
- * single-instance provider; the URL is `/addon/${addonId}/start`.
10231
- */
10232
- instanceId: string().optional(),
10233
- /** Display label shown on the login button + admin row. */
10234
- displayName: string(),
10235
- /** Optional iconography hint (lucide-react icon name OR emoji). */
10236
- icon: string().optional(),
10237
- /** When true, the provider exposes a redirect-based login flow
10238
- * (`getLoginUrl` returns a URL the browser navigates to). */
10239
- hasRedirectFlow: boolean(),
10240
- /** When true, the provider exposes a credential-form login flow
10241
- * (`validateCredentials` accepts username + password). */
10242
- hasCredentialFlow: boolean(),
10243
- /** Provider kind, drives admin-UI hint dispatch (oidc / saml / totp / …). */
10244
- kind: string().optional(),
10245
- /** Operator-facing status string (e.g. "Connected to https://login.acme.com"). */
10246
- status: string().optional(),
10247
- /** When false, the provider is registered but disabled by config; the
10248
- * UI surfaces it as inactive without enumerating it for login. */
10249
- enabled: boolean()
10250
- });
10251
- ({
10252
- methods: {
10253
- /** All registered auth providers, both enabled and disabled. */
10254
- listProviders: method(_void(), array(AuthProviderInfoSchema).readonly()),
10255
- /**
10256
- * Toggle a provider's enabled flag. Disabled providers stay
10257
- * registered but aren't surfaced on the login page. The orchestrator
10258
- * persists the state in `addon-settings` so it survives restarts.
10259
- */
10260
- setProviderEnabled: method(
10261
- object({ addonId: string(), enabled: boolean() }),
10262
- object({ success: literal(true) }),
10263
- { kind: "mutation", auth: "admin" }
10264
- )
10265
- }
10266
- });
10267
10222
  const NetworkEndpointSchema = object({
10268
10223
  url: string(),
10269
10224
  hostname: string(),
@@ -10295,55 +10250,13 @@ const NetworkEndpointEntrySchema = NetworkEndpointSchema.extend({
10295
10250
  getEndpoint: method(_void(), NetworkEndpointSchema.nullable()),
10296
10251
  getStatus: method(_void(), NetworkAccessStatusSchema),
10297
10252
  /**
10298
- * Enumerate every active ingress entry. Default implementation (when
10299
- * the provider omits this method) is derived from `getEndpoint()` —
10300
- * see the remote-access orchestrator for the fallback path.
10253
+ * Enumerate every active ingress entry. Providers that expose only a
10254
+ * single endpoint may omit this method; callers fall back to
10255
+ * `getEndpoint()` in that case.
10301
10256
  */
10302
10257
  listEndpoints: method(_void(), array(NetworkEndpointEntrySchema).readonly())
10303
10258
  }
10304
10259
  });
10305
- const RemoteAccessEndpointSchema = object({
10306
- url: string(),
10307
- hostname: string(),
10308
- port: number(),
10309
- protocol: _enum(["http", "https"])
10310
- });
10311
- const RemoteAccessProviderInfoSchema = object({
10312
- /** Stable id matching the addon id. */
10313
- addonId: string(),
10314
- /** Display label shown on the admin row — sourced from the addon manifest. */
10315
- displayName: string(),
10316
- /** When false, the provider is registered but disabled. */
10317
- enabled: boolean(),
10318
- /** True when the underlying tunnel/connection is up. */
10319
- connected: boolean(),
10320
- /** Public-facing endpoint, when connected. Null otherwise. */
10321
- endpoint: RemoteAccessEndpointSchema.nullable(),
10322
- /** Last error message (when connected=false), if available. */
10323
- error: string().optional()
10324
- });
10325
- ({
10326
- methods: {
10327
- /** All registered remote-access providers + their live status. */
10328
- listProviders: method(_void(), array(RemoteAccessProviderInfoSchema).readonly()),
10329
- /**
10330
- * Start a specific provider's tunnel. Per-provider config still
10331
- * lives on the addon's settings panel; this is just the on/off
10332
- * trigger so the admin UI can manage the lifecycle from one place.
10333
- */
10334
- startProvider: method(
10335
- object({ addonId: string() }),
10336
- RemoteAccessEndpointSchema,
10337
- { kind: "mutation", auth: "admin" }
10338
- ),
10339
- /** Stop a specific provider's tunnel (idempotent on already-stopped). */
10340
- stopProvider: method(
10341
- object({ addonId: string() }),
10342
- object({ success: literal(true) }),
10343
- { kind: "mutation", auth: "admin" }
10344
- )
10345
- }
10346
- });
10347
10260
  const TurnServerSchema = object({
10348
10261
  /** Single URL or list of URLs (e.g. "turn:turn.example.com:3478?transport=udp"). */
10349
10262
  urls: union([string(), array(string())]),
@@ -10363,45 +10276,6 @@ const TurnServerSchema = object({
10363
10276
  )
10364
10277
  }
10365
10278
  });
10366
- const TurnProviderInfoSchema = object({
10367
- /** Stable id matching the addon id. */
10368
- addonId: string(),
10369
- /** Display label shown on the admin row — sourced from the addon manifest. */
10370
- displayName: string(),
10371
- /** When false, the provider is registered but disabled. */
10372
- enabled: boolean(),
10373
- /** Number of servers this provider is currently exposing. */
10374
- serverCount: number(),
10375
- /**
10376
- * Flat list of every TURN/STUN URL this provider currently exposes.
10377
- * One row per URL (multi-URL ICE server entries are flattened). The
10378
- * admin UI shows this in a compact per-provider list so operators
10379
- * can verify what's actually being negotiated without having to dig
10380
- * into the combined `getAllServers` output.
10381
- */
10382
- urls: array(string()).readonly(),
10383
- /** Last fetch error (when serverCount=0 due to API failure), if any. */
10384
- error: string().optional()
10385
- });
10386
- ({
10387
- methods: {
10388
- /** All registered TURN providers + per-provider stats. */
10389
- listProviders: method(_void(), array(TurnProviderInfoSchema).readonly()),
10390
- /**
10391
- * Combined list of TURN/STUN servers from all ENABLED providers.
10392
- * Consumed by the WebRTC layer at session-creation time —
10393
- * implementations may fetch fresh short-lived credentials each
10394
- * call (e.g. Cloudflare API), so consumers SHOULD call per-session.
10395
- */
10396
- getAllServers: method(_void(), array(TurnServerSchema).readonly()),
10397
- /** Toggle a provider's enabled flag. */
10398
- setProviderEnabled: method(
10399
- object({ addonId: string(), enabled: boolean() }),
10400
- object({ success: literal(true) }),
10401
- { kind: "mutation", auth: "admin" }
10402
- )
10403
- }
10404
- });
10405
10279
  const SnapshotImageSchema = object({
10406
10280
  base64: string(),
10407
10281
  contentType: string()
@@ -11876,7 +11750,7 @@ const AllowedAddressesSchema = object({
11876
11750
  )
11877
11751
  }
11878
11752
  });
11879
- const MeshEndpointSchema$1 = object({
11753
+ const MeshEndpointSchema = object({
11880
11754
  /** Stable identifier within the provider (e.g. `mesh-ipv4`, `magicdns`, `funnel`). */
11881
11755
  id: string(),
11882
11756
  /** Operator-facing label (e.g. "Mesh IPv4", "MagicDNS"). */
@@ -11949,7 +11823,7 @@ const MeshStatusSchema = object({
11949
11823
  /** Number of peers visible to this host (excluding self). */
11950
11824
  peerCount: number(),
11951
11825
  /** Every endpoint this provider exposes for the current host. */
11952
- endpoints: array(MeshEndpointSchema$1).readonly(),
11826
+ endpoints: array(MeshEndpointSchema).readonly(),
11953
11827
  /** Last error from the daemon, when not joined. */
11954
11828
  error: string().optional(),
11955
11829
  // ── Account / tenant identity (generic across providers) ────────
@@ -12112,105 +11986,6 @@ const MeshStatusSchema = object({
12112
11986
  // tabs driven by this cap.
12113
11987
  }
12114
11988
  });
12115
- const MeshEndpointSchema = object({
12116
- id: string(),
12117
- label: string(),
12118
- scope: _enum(["mesh", "public"]),
12119
- url: string(),
12120
- hostname: string(),
12121
- port: number(),
12122
- protocol: _enum(["http", "https"])
12123
- });
12124
- const MeshProviderInfoSchema = object({
12125
- /** Stable id matching the addon id. */
12126
- addonId: string(),
12127
- /** Display label shown on the admin row — sourced from the addon manifest. */
12128
- displayName: string(),
12129
- /** True when the host is joined to this provider's mesh. */
12130
- joined: boolean(),
12131
- /** Local mesh IP (empty when not joined). */
12132
- meshIp: string(),
12133
- /** MagicDNS / mesh hostname (empty when not configured). */
12134
- magicDnsHostname: string(),
12135
- /** Peer count (excluding self). */
12136
- peerCount: number(),
12137
- /** Active endpoints (mesh IP + MagicDNS + optional public Funnel). */
12138
- endpoints: array(MeshEndpointSchema).readonly(),
12139
- /** Last error reported by the provider. */
12140
- error: string().optional(),
12141
- // ── Generic identity fields mirrored from MeshStatus ─────────────
12142
- /** Tenant / tailnet / network display name. Empty pre-join. */
12143
- tenantName: string(),
12144
- /** Mesh DNS suffix (e.g. tailXXXX.ts.net). Empty when not configured. */
12145
- magicDnsSuffix: string(),
12146
- /** Authenticated user / account login. Null for token-only providers. */
12147
- userLogin: string().nullable(),
12148
- /** Provider control-plane URL. */
12149
- controlPlaneUrl: string(),
12150
- /** Machine-key expiry (epoch ms). Null when keys don't rotate. */
12151
- keyExpiry: number().nullable()
12152
- });
12153
- ({
12154
- methods: {
12155
- /** All registered mesh-network providers + live status. */
12156
- listProviders: method(_void(), array(MeshProviderInfoSchema).readonly()),
12157
- /**
12158
- * Join the mesh of a specific provider. Per-provider config still
12159
- * lives on its settings panel; the orchestrator forwards.
12160
- */
12161
- joinProvider: method(
12162
- object({
12163
- addonId: string(),
12164
- authKey: string().min(8),
12165
- hostname: string().optional()
12166
- }),
12167
- object({ joined: literal(true) }),
12168
- { kind: "mutation" }
12169
- ),
12170
- leaveProvider: method(
12171
- object({ addonId: string() }),
12172
- object({ success: literal(true) }),
12173
- { kind: "mutation" }
12174
- ),
12175
- /**
12176
- * Browser-redirect login flow. Forwards to the named provider's
12177
- * `mesh-network.startLogin` and returns the URL the daemon
12178
- * prints. UI opens it in a new tab, then polls `listProviders`
12179
- * for `joined: true`.
12180
- */
12181
- startLoginProvider: method(
12182
- object({
12183
- addonId: string(),
12184
- hostname: string().optional()
12185
- }),
12186
- object({ loginUrl: string() }),
12187
- { kind: "mutation" }
12188
- ),
12189
- /**
12190
- * Sign out of the provider's account entirely (`mesh-network.logout`).
12191
- * Distinct from `leaveProvider` which only takes the host off-mesh;
12192
- * `logoutProvider` wipes credentials so the next start requires a
12193
- * fresh login.
12194
- */
12195
- logoutProvider: method(
12196
- object({ addonId: string() }),
12197
- object({ loggedOut: literal(true) }),
12198
- { kind: "mutation" }
12199
- ),
12200
- /**
12201
- * Per-provider peer list. Forwards to `mesh-network.listPeers` on
12202
- * the addressed provider. Separate from `listProviders` because
12203
- * peer payloads can be large on a heavily-populated tailnet —
12204
- * fetch only when the operator opens the Peers tab.
12205
- */
12206
- listProviderPeers: method(
12207
- object({ addonId: string() }),
12208
- object({
12209
- peers: array(MeshPeerSchema).readonly()
12210
- })
12211
- )
12212
- }
12213
- });
12214
11989
  const MethodAccessSchema = _enum(["view", "create", "delete"]);
12215
11990
  const AllowedProviderSchema = union([literal("*"), array(string())]);
12216
11991
  const AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
@@ -13080,6 +12855,29 @@ const CustomActionInputSchema = object({
13080
12855
  isActive: boolean()
13081
12856
  })).readonly()
13082
12857
  ),
12858
+ /**
12859
+ * Toggle a single collection-cap provider on/off. Generic write-side
12860
+ * counterpart of `listCapabilityProviders` — drives the per-provider
12861
+ * Enable/Disable affordance in admin pages (TURN servers, etc.)
12862
+ * without needing a bespoke orchestrator cap.
12863
+ *
12864
+ * Reaches the hub's `CapabilityRegistry` directly:
12865
+ * `enableCollectionProvider` / `disableCollectionProvider` flip the
12866
+ * registry-level `disabledProviders` set. `getCollectionEntries`
12867
+ * already filters disabled providers out, so a disabled provider
12868
+ * drops out of every collection aggregate immediately. Only valid
12869
+ * for `mode: 'collection'` caps — the registry no-ops + warns for
12870
+ * singletons.
12871
+ */
12872
+ setCapabilityProviderEnabled: method(
12873
+ object({
12874
+ capName: string().min(1),
12875
+ addonId: string().min(1),
12876
+ enabled: boolean()
12877
+ }),
12878
+ object({ success: literal(true) }),
12879
+ { kind: "mutation", auth: "admin" }
12880
+ ),
13083
12881
  /**
13084
12882
  * Live-update one of the framework packages marked
13085
12883
  * `camstack.system: true` (`@camstack/types|kernel|core|sdk|ui-library`).
@@ -13725,4 +13523,4 @@ exports.recordingEngineCapability = recordingEngineCapability;
13725
13523
  exports.string = string;
13726
13524
  exports.tuple = tuple;
13727
13525
  exports.zoneAnalyticsCapability = zoneAnalyticsCapability;
13728
- //# sourceMappingURL=index-DjIIGJS2.js.map
13526
+ //# sourceMappingURL=index-DNpNyDJi.js.map