@camstack/addon-post-analysis 0.1.12 → 0.1.13
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/embedding-encoder/index.js +1 -1
- package/dist/embedding-encoder/index.mjs +1 -1
- package/dist/enrichment-engine/index.js +1 -1
- package/dist/enrichment-engine/index.mjs +1 -1
- package/dist/{index-BJKSB953.js → index-DjIIGJS2.js} +169 -6
- package/dist/index-DjIIGJS2.js.map +1 -0
- package/dist/{index-BThK2F-p.mjs → index-DnAXaymw.mjs} +169 -6
- package/dist/index-DnAXaymw.mjs.map +1 -0
- package/dist/pipeline-analytics/@mf-types.zip +0 -0
- package/dist/pipeline-analytics/__mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.mjs-p-Z3JTk9.mjs +19 -0
- package/dist/pipeline-analytics/__mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.mjs-BfmtcT51.mjs +15 -0
- package/dist/pipeline-analytics/_stub.js +1 -1
- 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-BDtqUbh1.mjs} +6 -6
- package/dist/pipeline-analytics/{hostInit-PQYMQJ_C.mjs → hostInit-CtfhvKwy.mjs} +6 -6
- package/dist/pipeline-analytics/{index-BSmxqDqD.mjs → index-BgDjUxfg.mjs} +1 -1
- package/dist/pipeline-analytics/{index-Bpv0NSqI.mjs → index-COebxMhm.mjs} +6466 -9848
- package/dist/pipeline-analytics/{index-D7qTzYFz.mjs → index-CzwXKSYE.mjs} +7059 -5702
- package/dist/pipeline-analytics/index.js +1 -1
- package/dist/pipeline-analytics/index.mjs +1 -1
- package/dist/pipeline-analytics/remoteEntry.js +1 -1
- package/dist/pipeline-analytics/schemas-ChN4Ih0h.mjs +3584 -0
- package/dist/recording/index.js +2 -2
- package/dist/recording/index.mjs +2 -2
- package/dist/{recording-coordinator-CvJtVs3m.mjs → recording-coordinator-CRJ4yA9t.mjs} +2 -2
- package/dist/{recording-coordinator-CvJtVs3m.mjs.map → recording-coordinator-CRJ4yA9t.mjs.map} +1 -1
- package/dist/{recording-coordinator-DH1gmm5G.js → recording-coordinator-UGTDbTdE.js} +2 -2
- package/dist/{recording-coordinator-DH1gmm5G.js.map → recording-coordinator-UGTDbTdE.js.map} +1 -1
- package/package.json +5 -5
- package/dist/index-BJKSB953.js.map +0 -1
- package/dist/index-BThK2F-p.mjs.map +0 -1
- package/dist/pipeline-analytics/__mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.mjs-ChoHjdk6.mjs +0 -17
- 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
|
@@ -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-
|
|
25
|
+
const index = require("../index-DjIIGJS2.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-
|
|
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";
|
|
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-
|
|
3
|
+
const index = require("../index-DjIIGJS2.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-
|
|
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";
|
|
2
2
|
import sharp from "sharp";
|
|
3
3
|
const DEFAULT_ENRICHMENT_CONFIG = {
|
|
4
4
|
enabled: false,
|
|
@@ -8518,10 +8518,30 @@ const StatusSchema = object({
|
|
|
8518
8518
|
}
|
|
8519
8519
|
});
|
|
8520
8520
|
const LinkStateSchema = _enum(["unlinked", "linked", "error"]);
|
|
8521
|
+
const ExportSetupFieldSchema = object({
|
|
8522
|
+
label: string(),
|
|
8523
|
+
value: string(),
|
|
8524
|
+
/** Mask the value by default + render a reveal toggle (client id, secrets). */
|
|
8525
|
+
secret: boolean().optional()
|
|
8526
|
+
});
|
|
8527
|
+
const ExportSetupSchema = object({
|
|
8528
|
+
/** A string to render as a scannable QR — HAP `X-HM://…` URI, a pairing URL, etc. Omitted when there's nothing to scan. */
|
|
8529
|
+
qr: string().optional(),
|
|
8530
|
+
/** Label/value rows shown with a copy button (HAP setup code, OAuth URLs, client id, linked-account count, …). */
|
|
8531
|
+
fields: array(ExportSetupFieldSchema).readonly().optional(),
|
|
8532
|
+
/** Free-form operator instructions rendered above the fields. */
|
|
8533
|
+
note: string().optional()
|
|
8534
|
+
});
|
|
8521
8535
|
const DeviceExportStatusSchema = object({
|
|
8522
8536
|
linkState: LinkStateSchema,
|
|
8523
8537
|
exposedDeviceCount: number(),
|
|
8524
|
-
error: string().optional()
|
|
8538
|
+
error: string().optional(),
|
|
8539
|
+
/**
|
|
8540
|
+
* Optional pairing/account info the panel renders in a generic
|
|
8541
|
+
* "Setup" section. Addon-agnostic — the addon id identifies the
|
|
8542
|
+
* export target, never an `ecosystem` key here.
|
|
8543
|
+
*/
|
|
8544
|
+
setup: ExportSetupSchema.optional()
|
|
8525
8545
|
});
|
|
8526
8546
|
const DeviceKindSchema = string();
|
|
8527
8547
|
const ExposedDeviceSchema = object({
|
|
@@ -11962,7 +11982,25 @@ const MeshStatusSchema = object({
|
|
|
11962
11982
|
* doesn't rotate keys for the bound host. Operator-facing surface
|
|
11963
11983
|
* for "your access expires on …" banners.
|
|
11964
11984
|
*/
|
|
11965
|
-
keyExpiry: number().nullable()
|
|
11985
|
+
keyExpiry: number().nullable(),
|
|
11986
|
+
// ── Onboard-daemon handoff (Tailscale, generic slot) ────────────
|
|
11987
|
+
/**
|
|
11988
|
+
* When the provider runs its OWN mesh daemon (e.g. the Tailscale
|
|
11989
|
+
* client addon in `onboard` mode spawns a private `tailscaled`),
|
|
11990
|
+
* this carries the local control-socket path. Companion addons that
|
|
11991
|
+
* must drive the SAME daemon — chiefly `tailscale-ingress` for
|
|
11992
|
+
* Serve/Funnel — read it to point their CLI at the right socket
|
|
11993
|
+
* instead of the system default. Empty when the provider uses the
|
|
11994
|
+
* host's system daemon (or doesn't have the concept).
|
|
11995
|
+
*/
|
|
11996
|
+
daemonSocket: string().optional(),
|
|
11997
|
+
/**
|
|
11998
|
+
* Path to the mesh CLI binary the provider downloaded for onboard
|
|
11999
|
+
* mode. Companion addons reuse it so they don't need a system
|
|
12000
|
+
* install when the operator chose a fully self-contained mesh.
|
|
12001
|
+
* Empty in host mode.
|
|
12002
|
+
*/
|
|
12003
|
+
daemonCliPath: string().optional()
|
|
11966
12004
|
});
|
|
11967
12005
|
({
|
|
11968
12006
|
methods: {
|
|
@@ -12848,6 +12886,21 @@ const AddonAutoUpdateSchema = ChannelWithInheritSchema;
|
|
|
12848
12886
|
const RestartAddonResultSchema = unknown();
|
|
12849
12887
|
const InstallPackageResultSchema = unknown();
|
|
12850
12888
|
const ReloadPackagesResultSchema = unknown();
|
|
12889
|
+
const UpdateFrameworkPackageResultSchema = object({
|
|
12890
|
+
packageName: string(),
|
|
12891
|
+
fromVersion: string(),
|
|
12892
|
+
toVersion: string(),
|
|
12893
|
+
/** Ms-epoch the server scheduled its self-restart. */
|
|
12894
|
+
restartingAt: number()
|
|
12895
|
+
});
|
|
12896
|
+
const FrameworkPackageStatusSchema = object({
|
|
12897
|
+
packageName: string(),
|
|
12898
|
+
currentVersion: string(),
|
|
12899
|
+
latestVersion: string().nullable(),
|
|
12900
|
+
hasUpdate: boolean(),
|
|
12901
|
+
/** Optional manifest description for the row tooltip. */
|
|
12902
|
+
description: string().optional()
|
|
12903
|
+
});
|
|
12851
12904
|
const LogStreamEntrySchema = object({
|
|
12852
12905
|
timestamp: string(),
|
|
12853
12906
|
level: string(),
|
|
@@ -12907,13 +12960,29 @@ const CustomActionInputSchema = object({
|
|
|
12907
12960
|
object({ query: string().optional() }),
|
|
12908
12961
|
array(SearchResultSchema)
|
|
12909
12962
|
),
|
|
12963
|
+
/**
|
|
12964
|
+
* Available package updates for a node. `nodeId` omitted (or
|
|
12965
|
+
* `'hub'`) checks the hub's own installed packages; an agent
|
|
12966
|
+
* `nodeId` checks that agent's installed roster against npm
|
|
12967
|
+
* (the hub does the npm lookups + diff — agents stay npm-free).
|
|
12968
|
+
*/
|
|
12910
12969
|
listUpdates: method(
|
|
12911
|
-
|
|
12970
|
+
object({ nodeId: string().optional() }),
|
|
12912
12971
|
array(PackageUpdateSchema).readonly(),
|
|
12913
12972
|
{ auth: "admin" }
|
|
12914
12973
|
),
|
|
12974
|
+
/**
|
|
12975
|
+
* Update one package on a node. `nodeId` omitted (or `'hub'`)
|
|
12976
|
+
* installs on the hub via npm; an agent `nodeId` makes the hub
|
|
12977
|
+
* pack the resolved version and push the tarball to that agent
|
|
12978
|
+
* (`$agent.deploy` + `$agent.reload`) — agents need no npm runtime.
|
|
12979
|
+
*/
|
|
12915
12980
|
updatePackage: method(
|
|
12916
|
-
object({
|
|
12981
|
+
object({
|
|
12982
|
+
name: string().min(1),
|
|
12983
|
+
version: string().optional(),
|
|
12984
|
+
nodeId: string().optional()
|
|
12985
|
+
}),
|
|
12917
12986
|
unknown(),
|
|
12918
12987
|
{ kind: "mutation", auth: "admin" }
|
|
12919
12988
|
),
|
|
@@ -12934,12 +13003,105 @@ const CustomActionInputSchema = object({
|
|
|
12934
13003
|
object({ rolledBackTo: string().nullable() }),
|
|
12935
13004
|
{ kind: "mutation", auth: "admin" }
|
|
12936
13005
|
),
|
|
12937
|
-
|
|
13006
|
+
/** Re-check updates for a node, bypassing any cache. `nodeId`
|
|
13007
|
+
* omitted (or `'hub'`) refreshes the hub; an agent `nodeId`
|
|
13008
|
+
* re-checks that agent's roster. */
|
|
13009
|
+
forceRefresh: method(
|
|
13010
|
+
object({ nodeId: string().optional() }),
|
|
13011
|
+
unknown(),
|
|
13012
|
+
{ kind: "mutation", auth: "admin" }
|
|
13013
|
+
),
|
|
12938
13014
|
restartServer: method(
|
|
12939
13015
|
object({ confirm: literal(true) }),
|
|
12940
13016
|
unknown(),
|
|
12941
13017
|
{ kind: "mutation", auth: "admin" }
|
|
12942
13018
|
),
|
|
13019
|
+
/**
|
|
13020
|
+
* Most-recent restart marker (kind / packageName / from→to versions
|
|
13021
|
+
* / requestedBy / requestedAt). Returns `null` when this process
|
|
13022
|
+
* didn't boot from a tracked restart, or when the
|
|
13023
|
+
* post-boot retention window (5 min) has elapsed.
|
|
13024
|
+
*
|
|
13025
|
+
* Drives the admin-UI reconnect overlay's success toast — the
|
|
13026
|
+
* `system.restart-completed` event itself is fired before the
|
|
13027
|
+
* client has time to re-subscribe, so the client queries this on
|
|
13028
|
+
* first reconnect instead.
|
|
13029
|
+
*/
|
|
13030
|
+
getLastRestart: method(
|
|
13031
|
+
_void(),
|
|
13032
|
+
object({
|
|
13033
|
+
kind: _enum(["framework-update", "manual", "system"]),
|
|
13034
|
+
packageName: string().optional(),
|
|
13035
|
+
fromVersion: string().optional(),
|
|
13036
|
+
toVersion: string().optional(),
|
|
13037
|
+
requestedBy: string().optional(),
|
|
13038
|
+
requestedAt: number()
|
|
13039
|
+
}).nullable(),
|
|
13040
|
+
{ auth: "admin" }
|
|
13041
|
+
),
|
|
13042
|
+
/**
|
|
13043
|
+
* Snapshot of the framework packages installed under the hub's
|
|
13044
|
+
* `<appRoot>/node_modules/`. Each row carries the currently
|
|
13045
|
+
* installed version and (best-effort) the latest version
|
|
13046
|
+
* available on npm. Drives the admin-UI "System packages" panel.
|
|
13047
|
+
*
|
|
13048
|
+
* Spec: docs/superpowers/specs/2026-05-14-framework-live-update-design.md
|
|
13049
|
+
*/
|
|
13050
|
+
listFrameworkPackages: method(
|
|
13051
|
+
_void(),
|
|
13052
|
+
array(FrameworkPackageStatusSchema).readonly(),
|
|
13053
|
+
{ auth: "admin" }
|
|
13054
|
+
),
|
|
13055
|
+
/**
|
|
13056
|
+
* Cluster-wide capability-provider discovery. Returns the list of
|
|
13057
|
+
* `{ addonId, mode, isActive }` tuples for whatever addon(s)
|
|
13058
|
+
* currently provide the requested capability across the cluster.
|
|
13059
|
+
*
|
|
13060
|
+
* Why this lives on `addons` (and not on a `capabilities` cap of
|
|
13061
|
+
* its own): the hub's main-process `CapabilityRegistry` already
|
|
13062
|
+
* aggregates registrations from every forked group-runner and
|
|
13063
|
+
* remote agent via Moleculer event propagation — there's no
|
|
13064
|
+
* cross-process registry mirror to build, just an introspection
|
|
13065
|
+
* shim.
|
|
13066
|
+
*
|
|
13067
|
+
* Use this from addon code when you need to know whether another
|
|
13068
|
+
* addon has registered a specific cap (e.g. `tailscale-ingress`
|
|
13069
|
+
* checking `tailscale-client` is up before calling `tailscale
|
|
13070
|
+
* serve`). Don't reach for `ctx.capabilities.getCollectionEntries`
|
|
13071
|
+
* — that reads the LOCAL registry of the calling addon's group
|
|
13072
|
+
* runner and never sees providers in other processes. See
|
|
13073
|
+
* `CLAUDE.md` → Critical rules → ctx.api vs ctx.capabilities.
|
|
13074
|
+
*/
|
|
13075
|
+
listCapabilityProviders: method(
|
|
13076
|
+
object({ capName: string().min(1) }),
|
|
13077
|
+
array(object({
|
|
13078
|
+
addonId: string(),
|
|
13079
|
+
mode: _enum(["singleton", "collection"]),
|
|
13080
|
+
isActive: boolean()
|
|
13081
|
+
})).readonly()
|
|
13082
|
+
),
|
|
13083
|
+
/**
|
|
13084
|
+
* Live-update one of the framework packages marked
|
|
13085
|
+
* `camstack.system: true` (`@camstack/types|kernel|core|sdk|ui-library`).
|
|
13086
|
+
* Runs `npm install --prefix <appRoot> <name>@<version> --no-save`,
|
|
13087
|
+
* writes a `.restart-pending` marker, emits `system.restarting`
|
|
13088
|
+
* and schedules a graceful process exit. The supervisor (Docker /
|
|
13089
|
+
* Electron / systemd) brings the hub back up; on first boot after
|
|
13090
|
+
* the restart the marker fires `system.restart-completed`.
|
|
13091
|
+
*
|
|
13092
|
+
* `version` defaults to `'latest'`. The allow-list of valid
|
|
13093
|
+
* `packageName` values is enforced server-side.
|
|
13094
|
+
*
|
|
13095
|
+
* Spec: docs/superpowers/specs/2026-05-14-framework-live-update-design.md
|
|
13096
|
+
*/
|
|
13097
|
+
updateFrameworkPackage: method(
|
|
13098
|
+
object({
|
|
13099
|
+
packageName: string().min(1),
|
|
13100
|
+
version: string().optional()
|
|
13101
|
+
}),
|
|
13102
|
+
UpdateFrameworkPackageResultSchema,
|
|
13103
|
+
{ kind: "mutation", auth: "admin" }
|
|
13104
|
+
),
|
|
12943
13105
|
getVersions: method(
|
|
12944
13106
|
object({ name: string() }),
|
|
12945
13107
|
array(PackageVersionInfoSchema).readonly()
|
|
@@ -13010,6 +13172,7 @@ var EventCategory = /* @__PURE__ */ ((EventCategory2) => {
|
|
|
13010
13172
|
EventCategory2["SystemBoot"] = "system.boot";
|
|
13011
13173
|
EventCategory2["SystemAddonsReady"] = "system.addons-ready";
|
|
13012
13174
|
EventCategory2["SystemRestarting"] = "system.restarting";
|
|
13175
|
+
EventCategory2["SystemRestartCompleted"] = "system.restart-completed";
|
|
13013
13176
|
EventCategory2["SystemReadyState"] = "system.ready-state";
|
|
13014
13177
|
EventCategory2["AddonStarted"] = "addon.started";
|
|
13015
13178
|
EventCategory2["AddonStopped"] = "addon.stopped";
|
|
@@ -13562,4 +13725,4 @@ exports.recordingEngineCapability = recordingEngineCapability;
|
|
|
13562
13725
|
exports.string = string;
|
|
13563
13726
|
exports.tuple = tuple;
|
|
13564
13727
|
exports.zoneAnalyticsCapability = zoneAnalyticsCapability;
|
|
13565
|
-
//# sourceMappingURL=index-
|
|
13728
|
+
//# sourceMappingURL=index-DjIIGJS2.js.map
|