@camstack/addon-pipeline 0.1.17 → 0.1.18

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.
@@ -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-p-6GfKOg.js");
25
+ const index = require("../index-DLHaHm6u.js");
26
26
  const path = require("node:path");
27
27
  const fs = require("node:fs");
28
28
  const core = require("@camstack/core");
@@ -1,4 +1,4 @@
1
- import { e as errMsg, x as HF_BASE_URL, B as BaseAddon, y as DEFAULT_AUDIO_ANALYZER_CONFIG, z as AUDIO_BACKEND_CHOICES, m as hydrateSchema, F as audioAnalyzerCapability, G as audioAnalysisCapability, I as mapAudioLabelToMacro } from "../index-CVzLrojg.mjs";
1
+ import { e as errMsg, x as HF_BASE_URL, B as BaseAddon, y as DEFAULT_AUDIO_ANALYZER_CONFIG, z as AUDIO_BACKEND_CHOICES, m as hydrateSchema, F as audioAnalyzerCapability, G as audioAnalysisCapability, I as mapAudioLabelToMacro } from "../index-asZs8U_s.mjs";
2
2
  import * as path from "node:path";
3
3
  import * as fs from "node:fs";
4
4
  import { downloadFile } from "@camstack/core";
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const crypto = require("node:crypto");
4
- const index = require("../index-p-6GfKOg.js");
4
+ const index = require("../index-DLHaHm6u.js");
5
5
  const nodeAv = require("node-av");
6
6
  const CODEC_ID_BY_NAME = {
7
7
  aac: nodeAv.AV_CODEC_ID_AAC,
@@ -1,5 +1,5 @@
1
1
  import { randomUUID } from "node:crypto";
2
- import { B as BaseAddon, w as audioCodecCapability, e as errMsg } from "../index-CVzLrojg.mjs";
2
+ import { B as BaseAddon, w as audioCodecCapability, e as errMsg } from "../index-asZs8U_s.mjs";
3
3
  import { Codec, CodecContext, AV_SAMPLE_FMT_FLT, SoftwareResampleContext, Packet, Frame, AVERROR_EAGAIN, AVERROR_EOF, AV_CODEC_ID_PCM_MULAW, AV_CODEC_ID_PCM_ALAW, AV_CODEC_ID_OPUS, AV_CODEC_ID_AAC_LATM, AV_CODEC_ID_AAC, AV_CH_LAYOUT_MONO, AV_CHANNEL_ORDER_NATIVE, AV_CH_LAYOUT_STEREO, AV_SAMPLE_FMT_S16 } from "node-av";
4
4
  const CODEC_ID_BY_NAME = {
5
5
  aac: AV_CODEC_ID_AAC,
@@ -23,7 +23,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
23
23
  ));
24
24
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
25
25
  const crypto = require("node:crypto");
26
- const index = require("../index-p-6GfKOg.js");
26
+ const index = require("../index-DLHaHm6u.js");
27
27
  const shmRing = require("@camstack/shm-ring");
28
28
  const RING_BUDGET_MB = (() => {
29
29
  const raw = Number(process.env["CAMSTACK_SHM_RING_BUDGET_MB"]);
@@ -1,5 +1,5 @@
1
1
  import { randomUUID } from "node:crypto";
2
- import { e as errMsg, B as BaseAddon, u as DEFAULT_DECODER_HWACCEL_CONFIG, H as HWACCEL_OPTIONS, v as decoderCapability, R as RingBuffer } from "../index-CVzLrojg.mjs";
2
+ import { e as errMsg, B as BaseAddon, u as DEFAULT_DECODER_HWACCEL_CONFIG, H as HWACCEL_OPTIONS, v as decoderCapability, R as RingBuffer } from "../index-asZs8U_s.mjs";
3
3
  import { computeSlotByteLength, computeSegmentSize, deriveSlotCount, MIN_RING_SLOTS, createSegment, FrameRingWriter, FrameRingReaderCache } from "@camstack/shm-ring";
4
4
  const RING_BUDGET_MB = (() => {
5
5
  const raw = Number(process.env["CAMSTACK_SHM_RING_BUDGET_MB"]);
@@ -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-p-6GfKOg.js");
25
+ const index = require("../index-DLHaHm6u.js");
26
26
  const fs = require("node:fs");
27
27
  const path = require("node:path");
28
28
  const os = require("node:os");
@@ -1,4 +1,4 @@
1
- import { h as hfModelUrl, C as COCO_TO_MACRO, g as COCO_80_LABELS, A as AUDIO_MACRO_LABELS, e as errMsg, f as createEvent, E as EventCategory, i as evaluateZoneRules, Y as YAMNET_TO_MACRO, j as APPLE_SA_TO_MACRO, k as parseJsonUnknown, B as BaseAddon, m as hydrateSchema, q as pipelineExecutorCapability, r as detectionPipelineCapability } from "../index-CVzLrojg.mjs";
1
+ import { h as hfModelUrl, C as COCO_TO_MACRO, g as COCO_80_LABELS, A as AUDIO_MACRO_LABELS, e as errMsg, f as createEvent, E as EventCategory, i as evaluateZoneRules, Y as YAMNET_TO_MACRO, j as APPLE_SA_TO_MACRO, k as parseJsonUnknown, B as BaseAddon, m as hydrateSchema, q as pipelineExecutorCapability, r as detectionPipelineCapability } from "../index-asZs8U_s.mjs";
2
2
  import * as fs from "node:fs";
3
3
  import * as path from "node:path";
4
4
  import * as os from "node:os";
@@ -12827,6 +12827,18 @@ const TopologyProcessSchema = object({
12827
12827
  services: array(TopologyServiceSchema).readonly(),
12828
12828
  groupId: string().optional()
12829
12829
  });
12830
+ const TopologyCategoryAddonSchema = object({
12831
+ id: string(),
12832
+ status: string(),
12833
+ cpuPercent: number(),
12834
+ memoryRss: number()
12835
+ });
12836
+ const TopologyCategorySchema = object({
12837
+ category: string(),
12838
+ total: number(),
12839
+ healthy: number(),
12840
+ addons: array(TopologyCategoryAddonSchema).readonly()
12841
+ });
12830
12842
  const TopologyNodeSchema = object({
12831
12843
  id: string(),
12832
12844
  name: string(),
@@ -12851,7 +12863,15 @@ const TopologyNodeSchema = object({
12851
12863
  status: string()
12852
12864
  })
12853
12865
  ).readonly(),
12854
- processes: array(TopologyProcessSchema).readonly()
12866
+ processes: array(TopologyProcessSchema).readonly(),
12867
+ categories: array(TopologyCategorySchema).readonly()
12868
+ });
12869
+ const CapUsageEdgeSchema = object({
12870
+ callerAddonId: string(),
12871
+ providerAddonId: string(),
12872
+ capName: string(),
12873
+ callsPerMin: number(),
12874
+ lastCallAtMs: number()
12855
12875
  });
12856
12876
  const ClusterAddonNodeDeploymentSchema = object({
12857
12877
  nodeId: string(),
@@ -12935,13 +12955,7 @@ const RenameNodeResultSchema = object({
12935
12955
  object({
12936
12956
  windowSeconds: number().int().positive().max(300).default(60)
12937
12957
  }),
12938
- array(object({
12939
- callerAddonId: string(),
12940
- providerAddonId: string(),
12941
- capName: string(),
12942
- callsPerMin: number(),
12943
- lastCallAtMs: number()
12944
- })).readonly(),
12958
+ array(CapUsageEdgeSchema).readonly(),
12945
12959
  { auth: "admin" }
12946
12960
  ),
12947
12961
  /**
@@ -14177,13 +14191,42 @@ function customAction(input, output, options) {
14177
14191
  scope: options?.scope ?? { kind: "system" }
14178
14192
  };
14179
14193
  }
14194
+ const CREDENTIAL_PARAM_PATTERNS = [
14195
+ /^user$/i,
14196
+ /^usr$/i,
14197
+ /^username$/i,
14198
+ /^password$/i,
14199
+ /^pwd$/i,
14200
+ /^pass$/i,
14201
+ /^passwd$/i,
14202
+ /^secret$/i,
14203
+ /^token$/i,
14204
+ /^auth$/i,
14205
+ /^auth[_-]?token$/i,
14206
+ /^bearer$/i,
14207
+ /^api[_-]?key$/i,
14208
+ /^access[_-]?token$/i,
14209
+ /^refresh[_-]?token$/i
14210
+ ];
14211
+ function isCredentialParam(name) {
14212
+ return CREDENTIAL_PARAM_PATTERNS.some((re) => re.test(name));
14213
+ }
14180
14214
  function maskUrlCredentials(rawUrl) {
14181
14215
  try {
14182
14216
  const u = new URL(rawUrl);
14183
- if (!u.username && !u.password) return rawUrl;
14184
- u.username = "";
14185
- u.password = "";
14186
- return u.toString();
14217
+ let touched = false;
14218
+ if (u.username || u.password) {
14219
+ u.username = "";
14220
+ u.password = "";
14221
+ touched = true;
14222
+ }
14223
+ for (const key of [...u.searchParams.keys()]) {
14224
+ if (isCredentialParam(key)) {
14225
+ u.searchParams.set(key, "***");
14226
+ touched = true;
14227
+ }
14228
+ }
14229
+ return touched ? u.toString() : rawUrl;
14187
14230
  } catch {
14188
14231
  return rawUrl;
14189
14232
  }
@@ -14267,4 +14310,4 @@ exports.pipelineRunnerCapability = pipelineRunnerCapability;
14267
14310
  exports.streamBrokerCapability = streamBrokerCapability;
14268
14311
  exports.string = string;
14269
14312
  exports.webrtcSessionCapability = webrtcSessionCapability;
14270
- //# sourceMappingURL=index-p-6GfKOg.js.map
14313
+ //# sourceMappingURL=index-DLHaHm6u.js.map