@camstack/addon-smtp-nodemailer 1.2.0 → 1.2.2

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.
@@ -11051,7 +11051,8 @@ var PipelineStepInputSchema = lazy(() => object({
11051
11051
  modelId: string().optional(),
11052
11052
  enabled: boolean().default(true),
11053
11053
  children: array(PipelineStepInputSchema).optional(),
11054
- settings: record(string(), unknown()).optional()
11054
+ settings: record(string(), unknown()).optional(),
11055
+ jumpDeviceKey: string().optional()
11055
11056
  }));
11056
11057
  var ModelSubstitutionSchema = object({
11057
11058
  addonId: string(),
@@ -11357,10 +11358,40 @@ var NativeCropBboxSchema = object({
11357
11358
  });
11358
11359
  /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
11359
11360
  var NativeCropResultSchema = object({
11360
- /** Packed rgb (24-bit) pixels of the crop. */
11361
- bytes: _instanceof(Uint8Array),
11361
+ /**
11362
+ * Packed rgb (24-bit) pixels of the crop. Present on the DEFAULT (raw) path —
11363
+ * same-node (in-process / UDS) callers get zero-copy RGB and encode locally.
11364
+ * OMITTED when the caller requested `encodeJpeg` (the cross-node compressed
11365
+ * path below), where shipping raw RGB is both an invariant violation and, for
11366
+ * a native full frame (~26 MB at 4K), larger than Moleculer's 10 MB
11367
+ * `maxPacketSize` → the packet is dropped and the call 60s-times-out. That is
11368
+ * the cross-node native-media miss: `bytes` is replaced by `jpeg`.
11369
+ */
11370
+ bytes: _instanceof(Uint8Array).optional(),
11371
+ /**
11372
+ * Base64 JPEG of the crop — the COMPRESSED cross-node payload. The OWNING node
11373
+ * (which holds the native surface) encodes it in-process, so a native 4K frame
11374
+ * ships as ~0.5–2 MB (well under `maxPacketSize`) and NO raw pixels ever cross
11375
+ * a process boundary (CLAUDE.md invariant #21). Present ONLY when the request
11376
+ * set `encodeJpeg: true`; `bytes` is then absent.
11377
+ */
11378
+ jpeg: string().optional(),
11362
11379
  width: number().int().positive(),
11363
- height: number().int().positive()
11380
+ height: number().int().positive(),
11381
+ /**
11382
+ * Which source served this crop, so a quality-sensitive consumer (the native
11383
+ * `keyFrame`) can reject a degraded fallback:
11384
+ * - `native` — cut from the decode worker's retained NATIVE surface (the
11385
+ * quality path).
11386
+ * - `ram-fullframe` — the native surface MISSED but the request was full-frame,
11387
+ * so the ≤640 RAM `RetainedFrameStore` served it (honest lower-res; legit for
11388
+ * the blank-frame guard / 640-snapshot resolve, NOT for the clean keyFrame).
11389
+ *
11390
+ * OPTIONAL: a pre-tier runner (version skew) omits it — an ABSENT `tier` MUST be
11391
+ * treated as `native` (accepted) by every consumer so mixed-version clusters
11392
+ * keep the pre-tier behaviour. An ROI miss returns `null` (no tier at all).
11393
+ */
11394
+ tier: _enum(["native", "ram-fullframe"]).optional()
11364
11395
  });
11365
11396
  /** Parent detection context passed to `runDetailSubtree` — the crop's
11366
11397
  * originating detection, in FRAME-space coordinates. Reuses
@@ -11490,6 +11521,20 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
11490
11521
  hubHostnameOverride: string().optional()
11491
11522
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
11492
11523
  /**
11524
+ * One ENABLED inference device on the runner's node, as the step-tree
11525
+ * device-jump resolver sees it (phase 1). The orchestrator populates this
11526
+ * roster on the attach payload whenever the camera is elected onto a specific
11527
+ * `deviceKey` and the node has ≥2 enabled devices — it is the candidate set the
11528
+ * runner auto-jumps an enrichment step to when the elected device's format
11529
+ * cannot run that step's model. `weight`/`maxSessions` mirror the balancer's
11530
+ * per-device knobs so the auto choice is weighted-least-loaded.
11531
+ */
11532
+ var RunnerInferenceDeviceSchema = object({
11533
+ deviceKey: string(),
11534
+ weight: number().positive().default(1),
11535
+ maxSessions: number().int().positive().nullable().default(null)
11536
+ });
11537
+ /**
11493
11538
  * Camera assignment payload sent by `addon-pipeline-orchestrator` to a
11494
11539
  * specific runner instance via `attachCamera`. Carries everything the
11495
11540
  * runner needs to subscribe to the local broker and execute inference.
@@ -11607,7 +11652,16 @@ var RunnerCameraConfigSchema = object({
11607
11652
  * omitted ⇒ the runner's default device. The engine itself stays node-local —
11608
11653
  * this only selects WHICH device pool of that node runs the session.
11609
11654
  */
11610
- deviceKey: string().optional()
11655
+ deviceKey: string().optional(),
11656
+ /**
11657
+ * Step-tree device-jump roster (phase 1): the node's ENABLED inference
11658
+ * devices, populated by the orchestrator ONLY when `deviceKey` is set and the
11659
+ * node has ≥2 enabled devices. The runner uses it to AUTO-jump an enrichment
11660
+ * step whose model has no build for the elected device's format onto another
11661
+ * enabled device of the SAME node (weighted-least-loaded). Absent/single-entry
11662
+ * ⇒ no jump possible; the step runs on `deviceKey`.
11663
+ */
11664
+ inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
11611
11665
  });
11612
11666
  motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
11613
11667
  /**
@@ -11663,7 +11717,18 @@ var RunnerLocalMetricsSchema = object({
11663
11717
  method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly()), method(object({
11664
11718
  handle: FrameHandleSchema,
11665
11719
  bbox: NativeCropBboxSchema,
11666
- maxWidth: number().int().positive().optional()
11720
+ maxWidth: number().int().positive().optional(),
11721
+ /**
11722
+ * When `true`, the runner encodes the resolved crop to JPEG ON THE
11723
+ * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
11724
+ * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
11725
+ * agent) so the compressed payload fits Moleculer's `maxPacketSize` and
11726
+ * no raw pixels cross the process boundary. Same-node callers omit it
11727
+ * and keep the zero-copy raw `bytes` path. Additive + optional: a
11728
+ * pre-encode runner (version skew) ignores it and returns `bytes`, so
11729
+ * the caller falls back to encoding locally.
11730
+ */
11731
+ encodeJpeg: boolean().optional()
11667
11732
  }), NativeCropResultSchema.nullable()), method(object({
11668
11733
  deviceId: number(),
11669
11734
  frameHandle: FrameHandleSchema.optional(),
@@ -14691,7 +14756,8 @@ var LinkedDeviceSchema = object({
14691
14756
  deviceId: number(),
14692
14757
  name: string(),
14693
14758
  location: string().nullable(),
14694
- features: array(string())
14759
+ features: array(string()),
14760
+ producesTrackedEvents: boolean().optional()
14695
14761
  });
14696
14762
  var SavedDeviceRowSchema = object({
14697
14763
  /** Numeric id reserved at allocateDeviceId time. */
@@ -16321,6 +16387,7 @@ var TrackSchema = object({
16321
16387
  deviceId: number(),
16322
16388
  className: string(),
16323
16389
  label: string().optional(),
16390
+ producingDeviceName: string().optional(),
16324
16391
  /** Track provenance. Absent ⇒ `pipeline` (legacy rows). */
16325
16392
  source: TrackSourceSchema.optional(),
16326
16393
  firstSeen: number(),
@@ -16458,7 +16525,8 @@ var MediaFileKindEnum = _enum([
16458
16525
  "fullFrameBoxed",
16459
16526
  "faceCrop",
16460
16527
  "plateCrop",
16461
- "keyFrame"
16528
+ "keyFrame",
16529
+ "keyFrameSmall"
16462
16530
  ]);
16463
16531
  var MediaFileSchema = object({
16464
16532
  key: string(),
@@ -16789,7 +16857,16 @@ var PipelineTemplateSchema = object({
16789
16857
  });
16790
16858
  var DeviceStepConfigSchema = object({
16791
16859
  modelId: string().optional(),
16792
- settings: record(string(), unknown()).optional()
16860
+ settings: record(string(), unknown()).optional(),
16861
+ /**
16862
+ * Step-tree device jump (same-node, phase 1) — OPTIONAL manual override.
16863
+ * When set, this step runs on the named enabled device of the SAME node
16864
+ * (`<backend>:<device>`) instead of the camera's elected device, bypassing
16865
+ * the runtime AUTO-jump. The orchestrator rejects a `jumpDeviceKey` pointing
16866
+ * at a disabled/absent device on that node at save time. Absent ⇒ the runner
16867
+ * auto-jumps only when the effective device's format cannot run the step.
16868
+ */
16869
+ jumpDeviceKey: string().optional()
16793
16870
  });
16794
16871
  var AgentPipelineSettingsSchema = object({
16795
16872
  maxCameras: number().int().nonnegative().nullable().default(null),
@@ -11049,7 +11049,8 @@ var PipelineStepInputSchema = lazy(() => object({
11049
11049
  modelId: string().optional(),
11050
11050
  enabled: boolean().default(true),
11051
11051
  children: array(PipelineStepInputSchema).optional(),
11052
- settings: record(string(), unknown()).optional()
11052
+ settings: record(string(), unknown()).optional(),
11053
+ jumpDeviceKey: string().optional()
11053
11054
  }));
11054
11055
  var ModelSubstitutionSchema = object({
11055
11056
  addonId: string(),
@@ -11355,10 +11356,40 @@ var NativeCropBboxSchema = object({
11355
11356
  });
11356
11357
  /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
11357
11358
  var NativeCropResultSchema = object({
11358
- /** Packed rgb (24-bit) pixels of the crop. */
11359
- bytes: _instanceof(Uint8Array),
11359
+ /**
11360
+ * Packed rgb (24-bit) pixels of the crop. Present on the DEFAULT (raw) path —
11361
+ * same-node (in-process / UDS) callers get zero-copy RGB and encode locally.
11362
+ * OMITTED when the caller requested `encodeJpeg` (the cross-node compressed
11363
+ * path below), where shipping raw RGB is both an invariant violation and, for
11364
+ * a native full frame (~26 MB at 4K), larger than Moleculer's 10 MB
11365
+ * `maxPacketSize` → the packet is dropped and the call 60s-times-out. That is
11366
+ * the cross-node native-media miss: `bytes` is replaced by `jpeg`.
11367
+ */
11368
+ bytes: _instanceof(Uint8Array).optional(),
11369
+ /**
11370
+ * Base64 JPEG of the crop — the COMPRESSED cross-node payload. The OWNING node
11371
+ * (which holds the native surface) encodes it in-process, so a native 4K frame
11372
+ * ships as ~0.5–2 MB (well under `maxPacketSize`) and NO raw pixels ever cross
11373
+ * a process boundary (CLAUDE.md invariant #21). Present ONLY when the request
11374
+ * set `encodeJpeg: true`; `bytes` is then absent.
11375
+ */
11376
+ jpeg: string().optional(),
11360
11377
  width: number().int().positive(),
11361
- height: number().int().positive()
11378
+ height: number().int().positive(),
11379
+ /**
11380
+ * Which source served this crop, so a quality-sensitive consumer (the native
11381
+ * `keyFrame`) can reject a degraded fallback:
11382
+ * - `native` — cut from the decode worker's retained NATIVE surface (the
11383
+ * quality path).
11384
+ * - `ram-fullframe` — the native surface MISSED but the request was full-frame,
11385
+ * so the ≤640 RAM `RetainedFrameStore` served it (honest lower-res; legit for
11386
+ * the blank-frame guard / 640-snapshot resolve, NOT for the clean keyFrame).
11387
+ *
11388
+ * OPTIONAL: a pre-tier runner (version skew) omits it — an ABSENT `tier` MUST be
11389
+ * treated as `native` (accepted) by every consumer so mixed-version clusters
11390
+ * keep the pre-tier behaviour. An ROI miss returns `null` (no tier at all).
11391
+ */
11392
+ tier: _enum(["native", "ram-fullframe"]).optional()
11362
11393
  });
11363
11394
  /** Parent detection context passed to `runDetailSubtree` — the crop's
11364
11395
  * originating detection, in FRAME-space coordinates. Reuses
@@ -11488,6 +11519,20 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
11488
11519
  hubHostnameOverride: string().optional()
11489
11520
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
11490
11521
  /**
11522
+ * One ENABLED inference device on the runner's node, as the step-tree
11523
+ * device-jump resolver sees it (phase 1). The orchestrator populates this
11524
+ * roster on the attach payload whenever the camera is elected onto a specific
11525
+ * `deviceKey` and the node has ≥2 enabled devices — it is the candidate set the
11526
+ * runner auto-jumps an enrichment step to when the elected device's format
11527
+ * cannot run that step's model. `weight`/`maxSessions` mirror the balancer's
11528
+ * per-device knobs so the auto choice is weighted-least-loaded.
11529
+ */
11530
+ var RunnerInferenceDeviceSchema = object({
11531
+ deviceKey: string(),
11532
+ weight: number().positive().default(1),
11533
+ maxSessions: number().int().positive().nullable().default(null)
11534
+ });
11535
+ /**
11491
11536
  * Camera assignment payload sent by `addon-pipeline-orchestrator` to a
11492
11537
  * specific runner instance via `attachCamera`. Carries everything the
11493
11538
  * runner needs to subscribe to the local broker and execute inference.
@@ -11605,7 +11650,16 @@ var RunnerCameraConfigSchema = object({
11605
11650
  * omitted ⇒ the runner's default device. The engine itself stays node-local —
11606
11651
  * this only selects WHICH device pool of that node runs the session.
11607
11652
  */
11608
- deviceKey: string().optional()
11653
+ deviceKey: string().optional(),
11654
+ /**
11655
+ * Step-tree device-jump roster (phase 1): the node's ENABLED inference
11656
+ * devices, populated by the orchestrator ONLY when `deviceKey` is set and the
11657
+ * node has ≥2 enabled devices. The runner uses it to AUTO-jump an enrichment
11658
+ * step whose model has no build for the elected device's format onto another
11659
+ * enabled device of the SAME node (weighted-least-loaded). Absent/single-entry
11660
+ * ⇒ no jump possible; the step runs on `deviceKey`.
11661
+ */
11662
+ inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
11609
11663
  });
11610
11664
  motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
11611
11665
  /**
@@ -11661,7 +11715,18 @@ var RunnerLocalMetricsSchema = object({
11661
11715
  method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly()), method(object({
11662
11716
  handle: FrameHandleSchema,
11663
11717
  bbox: NativeCropBboxSchema,
11664
- maxWidth: number().int().positive().optional()
11718
+ maxWidth: number().int().positive().optional(),
11719
+ /**
11720
+ * When `true`, the runner encodes the resolved crop to JPEG ON THE
11721
+ * OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
11722
+ * Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
11723
+ * agent) so the compressed payload fits Moleculer's `maxPacketSize` and
11724
+ * no raw pixels cross the process boundary. Same-node callers omit it
11725
+ * and keep the zero-copy raw `bytes` path. Additive + optional: a
11726
+ * pre-encode runner (version skew) ignores it and returns `bytes`, so
11727
+ * the caller falls back to encoding locally.
11728
+ */
11729
+ encodeJpeg: boolean().optional()
11665
11730
  }), NativeCropResultSchema.nullable()), method(object({
11666
11731
  deviceId: number(),
11667
11732
  frameHandle: FrameHandleSchema.optional(),
@@ -14689,7 +14754,8 @@ var LinkedDeviceSchema = object({
14689
14754
  deviceId: number(),
14690
14755
  name: string(),
14691
14756
  location: string().nullable(),
14692
- features: array(string())
14757
+ features: array(string()),
14758
+ producesTrackedEvents: boolean().optional()
14693
14759
  });
14694
14760
  var SavedDeviceRowSchema = object({
14695
14761
  /** Numeric id reserved at allocateDeviceId time. */
@@ -16319,6 +16385,7 @@ var TrackSchema = object({
16319
16385
  deviceId: number(),
16320
16386
  className: string(),
16321
16387
  label: string().optional(),
16388
+ producingDeviceName: string().optional(),
16322
16389
  /** Track provenance. Absent ⇒ `pipeline` (legacy rows). */
16323
16390
  source: TrackSourceSchema.optional(),
16324
16391
  firstSeen: number(),
@@ -16456,7 +16523,8 @@ var MediaFileKindEnum = _enum([
16456
16523
  "fullFrameBoxed",
16457
16524
  "faceCrop",
16458
16525
  "plateCrop",
16459
- "keyFrame"
16526
+ "keyFrame",
16527
+ "keyFrameSmall"
16460
16528
  ]);
16461
16529
  var MediaFileSchema = object({
16462
16530
  key: string(),
@@ -16787,7 +16855,16 @@ var PipelineTemplateSchema = object({
16787
16855
  });
16788
16856
  var DeviceStepConfigSchema = object({
16789
16857
  modelId: string().optional(),
16790
- settings: record(string(), unknown()).optional()
16858
+ settings: record(string(), unknown()).optional(),
16859
+ /**
16860
+ * Step-tree device jump (same-node, phase 1) — OPTIONAL manual override.
16861
+ * When set, this step runs on the named enabled device of the SAME node
16862
+ * (`<backend>:<device>`) instead of the camera's elected device, bypassing
16863
+ * the runtime AUTO-jump. The orchestrator rejects a `jumpDeviceKey` pointing
16864
+ * at a disabled/absent device on that node at save time. Absent ⇒ the runner
16865
+ * auto-jumps only when the effective device's format cannot run the step.
16866
+ */
16867
+ jumpDeviceKey: string().optional()
16791
16868
  });
16792
16869
  var AgentPipelineSettingsSchema = object({
16793
16870
  maxCameras: number().int().nonnegative().nullable().default(null),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-smtp-nodemailer",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "SMTP email provider addon for CamStack — wraps `nodemailer` and registers a `smtp-provider` cap collection entry. Used by magic-link login + notifier addons.",
5
5
  "keywords": [
6
6
  "camstack",