@camstack/types 1.2.337 → 1.2.339

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.
@@ -1300,6 +1300,7 @@ export declare const pipelineOrchestratorCapability: {
1300
1300
  nodeId: z.ZodString;
1301
1301
  reachable: z.ZodBoolean;
1302
1302
  hardwareClass: z.ZodNullable<z.ZodEnum<{
1303
+ "amd-phoenix": "amd-phoenix";
1303
1304
  "apple-m-base": "apple-m-base";
1304
1305
  "apple-m-pro": "apple-m-pro";
1305
1306
  "intel-core-ultra": "intel-core-ultra";
@@ -1312,6 +1313,8 @@ export declare const pipelineOrchestratorCapability: {
1312
1313
  devices: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1313
1314
  deviceKey: z.ZodString;
1314
1315
  accelerator: z.ZodNullable<z.ZodEnum<{
1316
+ "amd-igpu": "amd-igpu";
1317
+ "amd-npu": "amd-npu";
1315
1318
  "apple-ane": "apple-ane";
1316
1319
  "arm-cpu": "arm-cpu";
1317
1320
  coral: "coral";
@@ -1374,6 +1377,7 @@ export declare const pipelineOrchestratorCapability: {
1374
1377
  }, z.core.$strip>, z.ZodObject<{
1375
1378
  kind: z.ZodLiteral<"no-measured-data">;
1376
1379
  hardwareClass: z.ZodEnum<{
1380
+ "amd-phoenix": "amd-phoenix";
1377
1381
  "apple-m-base": "apple-m-base";
1378
1382
  "apple-m-pro": "apple-m-pro";
1379
1383
  "intel-core-ultra": "intel-core-ultra";
@@ -1431,6 +1435,7 @@ export declare const pipelineOrchestratorCapability: {
1431
1435
  }, z.core.$strip>, z.ZodObject<{
1432
1436
  kind: z.ZodLiteral<"no-measured-data">;
1433
1437
  hardwareClass: z.ZodEnum<{
1438
+ "amd-phoenix": "amd-phoenix";
1434
1439
  "apple-m-base": "apple-m-base";
1435
1440
  "apple-m-pro": "apple-m-pro";
1436
1441
  "intel-core-ultra": "intel-core-ultra";
@@ -1554,6 +1559,7 @@ export declare const pipelineOrchestratorCapability: {
1554
1559
  nodeId: z.ZodString;
1555
1560
  reachable: z.ZodBoolean;
1556
1561
  hardwareClass: z.ZodNullable<z.ZodEnum<{
1562
+ "amd-phoenix": "amd-phoenix";
1557
1563
  "apple-m-base": "apple-m-base";
1558
1564
  "apple-m-pro": "apple-m-pro";
1559
1565
  "intel-core-ultra": "intel-core-ultra";
@@ -1566,6 +1572,8 @@ export declare const pipelineOrchestratorCapability: {
1566
1572
  devices: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1567
1573
  deviceKey: z.ZodString;
1568
1574
  accelerator: z.ZodNullable<z.ZodEnum<{
1575
+ "amd-igpu": "amd-igpu";
1576
+ "amd-npu": "amd-npu";
1569
1577
  "apple-ane": "apple-ane";
1570
1578
  "arm-cpu": "arm-cpu";
1571
1579
  coral: "coral";
@@ -1628,6 +1636,7 @@ export declare const pipelineOrchestratorCapability: {
1628
1636
  }, z.core.$strip>, z.ZodObject<{
1629
1637
  kind: z.ZodLiteral<"no-measured-data">;
1630
1638
  hardwareClass: z.ZodEnum<{
1639
+ "amd-phoenix": "amd-phoenix";
1631
1640
  "apple-m-base": "apple-m-base";
1632
1641
  "apple-m-pro": "apple-m-pro";
1633
1642
  "intel-core-ultra": "intel-core-ultra";
@@ -1685,6 +1694,7 @@ export declare const pipelineOrchestratorCapability: {
1685
1694
  }, z.core.$strip>, z.ZodObject<{
1686
1695
  kind: z.ZodLiteral<"no-measured-data">;
1687
1696
  hardwareClass: z.ZodEnum<{
1697
+ "amd-phoenix": "amd-phoenix";
1688
1698
  "apple-m-base": "apple-m-base";
1689
1699
  "apple-m-pro": "apple-m-pro";
1690
1700
  "intel-core-ultra": "intel-core-ultra";
@@ -153,9 +153,15 @@ export declare const platformProbeCapability: {
153
153
  }, z.core.$strip>>;
154
154
  npu: z.ZodNullable<z.ZodObject<{
155
155
  type: z.ZodEnum<{
156
+ "amd-xdna": "amd-xdna";
156
157
  "apple-ane": "apple-ane";
157
158
  "intel-npu": "intel-npu";
158
159
  }>;
160
+ name: z.ZodOptional<z.ZodString>;
161
+ generation: z.ZodOptional<z.ZodEnum<{
162
+ xdna1: "xdna1";
163
+ xdna2: "xdna2";
164
+ }>>;
159
165
  }, z.core.$strip>>;
160
166
  coral: z.ZodOptional<z.ZodNullable<z.ZodObject<{
161
167
  type: z.ZodLiteral<"coral-edgetpu">;
@@ -232,9 +238,15 @@ export declare const platformProbeCapability: {
232
238
  }, z.core.$strip>>;
233
239
  npu: z.ZodNullable<z.ZodObject<{
234
240
  type: z.ZodEnum<{
241
+ "amd-xdna": "amd-xdna";
235
242
  "apple-ane": "apple-ane";
236
243
  "intel-npu": "intel-npu";
237
244
  }>;
245
+ name: z.ZodOptional<z.ZodString>;
246
+ generation: z.ZodOptional<z.ZodEnum<{
247
+ xdna1: "xdna1";
248
+ xdna2: "xdna2";
249
+ }>>;
238
250
  }, z.core.$strip>>;
239
251
  coral: z.ZodOptional<z.ZodNullable<z.ZodObject<{
240
252
  type: z.ZodLiteral<"coral-edgetpu">;
package/dist/index.js CHANGED
@@ -28367,11 +28367,14 @@ var HardwareClassIdSchema = zod.z.enum([
28367
28367
  "intel-n-series",
28368
28368
  "apple-m-base",
28369
28369
  "apple-m-pro",
28370
+ "amd-phoenix",
28370
28371
  "unknown"
28371
28372
  ]);
28372
28373
  var AcceleratorKindSchema = zod.z.enum([
28373
28374
  "intel-npu",
28374
28375
  "intel-igpu",
28376
+ "amd-igpu",
28377
+ "amd-npu",
28375
28378
  "x86-cpu",
28376
28379
  "arm-cpu",
28377
28380
  "apple-ane",
@@ -43539,7 +43542,15 @@ var GpuInfoSchema = zod.z.object({
43539
43542
  name: zod.z.string(),
43540
43543
  memoryMB: zod.z.number().optional()
43541
43544
  });
43542
- var NpuInfoSchema = zod.z.object({ type: zod.z.enum(["apple-ane", "intel-npu"]) });
43545
+ var NpuInfoSchema = zod.z.object({
43546
+ type: zod.z.enum([
43547
+ "apple-ane",
43548
+ "intel-npu",
43549
+ "amd-xdna"
43550
+ ]),
43551
+ name: zod.z.string().optional(),
43552
+ generation: zod.z.enum(["xdna1", "xdna2"]).optional()
43553
+ });
43543
43554
  var CoralInfoSchema = zod.z.object({
43544
43555
  type: zod.z.literal("coral-edgetpu"),
43545
43556
  bus: zod.z.string().optional()
@@ -75339,6 +75350,8 @@ function fieldsPinnedAtValueBelow(layer, below, boundKeys) {
75339
75350
  var APPLE_CHIP = /^Apple M(\d+)(?:\s+(Pro|Max|Ultra))?\b/i;
75340
75351
  var INTEL_CORE_ULTRA = /Core\(TM\)\s+Ultra|Core Ultra/i;
75341
75352
  var INTEL_N_SERIES = /Intel\(R\)\s+N\d{2,3}\b|\bIntel\s+N\d{2,3}\b/i;
75353
+ /** Phoenix / Hawk Point mobile (7040/8040) and Ryzen 8000G desktop APUs. */
75354
+ var AMD_PHOENIX = /Ryzen \d+ (7[0-9]40|8[0-9]40|8[0-9]45)[HSU]|Ryzen \d+ 8[0-9]00G/i;
75342
75355
  function parseAppleChip(cpuModel) {
75343
75356
  const match = APPLE_CHIP.exec(cpuModel.trim());
75344
75357
  if (match === null) return null;
@@ -75371,6 +75384,10 @@ function classifyInferenceHardware(hw) {
75371
75384
  hardwareClass: "intel-n-series",
75372
75385
  cpuModel
75373
75386
  };
75387
+ if (AMD_PHOENIX.test(cpuModel)) return {
75388
+ hardwareClass: "amd-phoenix",
75389
+ cpuModel
75390
+ };
75374
75391
  return {
75375
75392
  hardwareClass: "unknown",
75376
75393
  cpuModel
@@ -75387,6 +75404,8 @@ function acceleratorKindOf(deviceKey, hw) {
75387
75404
  if (backend === "coreml") return device === "cpu" ? "arm-cpu" : "apple-ane";
75388
75405
  if (backend === "openvino" && device === "npu") return "intel-npu";
75389
75406
  if (backend === "openvino" && device === "gpu") return "intel-igpu";
75407
+ if (backend === "onnx" && device === "webgpu") return "amd-igpu";
75408
+ if (backend === "vitisai" && device === "npu") return "amd-npu";
75390
75409
  if (backend === "cpu" || device === "cpu") return hw.arch === "arm64" ? "arm-cpu" : "x86-cpu";
75391
75410
  return null;
75392
75411
  }
@@ -75707,6 +75726,97 @@ var DETECTOR_PERF = {
75707
75726
  }
75708
75727
  }
75709
75728
  },
75729
+ "amd-phoenix": {
75730
+ "x86-cpu": {
75731
+ "yolov9t-320": {
75732
+ p50Ms: 24,
75733
+ fps: 42,
75734
+ measured: true
75735
+ },
75736
+ "yolov9t-320-int8": {
75737
+ p50Ms: 12,
75738
+ fps: 83,
75739
+ measured: true
75740
+ },
75741
+ "yolov9t-640": {
75742
+ p50Ms: 50,
75743
+ fps: 20,
75744
+ measured: true
75745
+ },
75746
+ "yolov9t-640-int8": {
75747
+ p50Ms: 20,
75748
+ fps: 50,
75749
+ measured: true
75750
+ },
75751
+ "yolov9s-320": {
75752
+ p50Ms: 30,
75753
+ fps: 33,
75754
+ measured: true
75755
+ },
75756
+ "yolov9s-320-int8": {
75757
+ p50Ms: 15,
75758
+ fps: 67,
75759
+ measured: true
75760
+ },
75761
+ "yolov9s-640": {
75762
+ p50Ms: 92,
75763
+ fps: 11,
75764
+ measured: true
75765
+ },
75766
+ "yolov9s-640-int8": {
75767
+ p50Ms: 27,
75768
+ fps: 37,
75769
+ measured: true
75770
+ },
75771
+ "yolov9m-320": {
75772
+ p50Ms: 67,
75773
+ fps: 15,
75774
+ measured: true
75775
+ },
75776
+ "yolov9m-320-int8": {
75777
+ p50Ms: 21,
75778
+ fps: 48,
75779
+ measured: true
75780
+ },
75781
+ "yolov9m-640": {
75782
+ p50Ms: 229,
75783
+ fps: 4,
75784
+ measured: true
75785
+ },
75786
+ "yolov9m-640-int8": {
75787
+ p50Ms: 48,
75788
+ fps: 21,
75789
+ measured: true
75790
+ }
75791
+ },
75792
+ "amd-igpu": {
75793
+ "yolov9t-320": {
75794
+ p50Ms: 188,
75795
+ fps: 5,
75796
+ measured: true
75797
+ },
75798
+ "yolov9t-640": {
75799
+ p50Ms: 671,
75800
+ fps: 1,
75801
+ measured: true
75802
+ },
75803
+ "yolov9s-320": {
75804
+ p50Ms: 401,
75805
+ fps: 2,
75806
+ measured: true
75807
+ },
75808
+ "yolov9s-640": {
75809
+ p50Ms: 1434,
75810
+ fps: 1,
75811
+ measured: true
75812
+ },
75813
+ "yolov9m-320": {
75814
+ p50Ms: 1076,
75815
+ fps: 1,
75816
+ measured: true
75817
+ }
75818
+ }
75819
+ },
75710
75820
  "apple-m-pro": { "apple-ane": {
75711
75821
  "yolov9t-320": {
75712
75822
  p50Ms: 1.1,
@@ -78543,6 +78653,10 @@ var RUNTIMES = [
78543
78653
  value: "cuda",
78544
78654
  label: "CUDA"
78545
78655
  });
78656
+ if (hw.gpu?.type === "amd") out.push({
78657
+ value: "webgpu",
78658
+ label: "WebGPU (AMD iGPU)"
78659
+ });
78546
78660
  if (hw.npu?.type === "apple-ane") out.push({
78547
78661
  value: "coreml",
78548
78662
  label: "CoreML EP"
@@ -78553,9 +78667,10 @@ var RUNTIMES = [
78553
78667
  },
78554
78668
  {
78555
78669
  id: "openvino",
78556
- supports: (hw) => hw?.arch === "x64" && hw.platform !== "darwin" && hw.gpu?.type === "intel",
78670
+ supports: (hw) => hw?.arch === "x64" && hw.platform !== "darwin" && (hw.gpu?.type === "intel" || hw.gpu?.type === "amd"),
78557
78671
  devices: (hw) => {
78558
78672
  if (!hw) return [AUTO];
78673
+ if (hw.gpu?.type === "amd") return [CPU];
78559
78674
  const out = [AUTO, CPU];
78560
78675
  if (hw.gpu?.type === "intel") out.push({
78561
78676
  value: "gpu",
@@ -78674,6 +78789,24 @@ function scoreRuntimes(hw) {
78674
78789
  available: true
78675
78790
  });
78676
78791
  }
78792
+ if (hw.gpu?.type === "amd") {
78793
+ scores.push({
78794
+ runtime: "python",
78795
+ backend: "onnx",
78796
+ format: "onnx",
78797
+ score: 75,
78798
+ reason: "ONNX WebGPU (AMD iGPU)",
78799
+ available: true
78800
+ });
78801
+ scores.push({
78802
+ runtime: "python",
78803
+ backend: "openvino",
78804
+ format: "openvino",
78805
+ score: 65,
78806
+ reason: "OpenVINO CPU (AMD x64)",
78807
+ available: true
78808
+ });
78809
+ }
78677
78810
  if (hw.coral != null) scores.push({
78678
78811
  runtime: "python",
78679
78812
  backend: "edgetpu",
@@ -78729,6 +78862,7 @@ function enumerateInferenceDevices(hw) {
78729
78862
  if (s.backend === "openvino") {
78730
78863
  if (hw.npu?.type === "intel-npu") out.push(device("openvino", "npu", s.format, s.score + 2));
78731
78864
  if (hw.gpu?.type === "intel") out.push(device("openvino", "gpu", s.format, s.score));
78865
+ if (hw.gpu?.type === "amd") out.push(device("openvino", "cpu", s.format, s.score));
78732
78866
  continue;
78733
78867
  }
78734
78868
  if (s.backend === "edgetpu") {
@@ -78739,6 +78873,10 @@ function enumerateInferenceDevices(hw) {
78739
78873
  }
78740
78874
  continue;
78741
78875
  }
78876
+ if (s.backend === "onnx" && s.reason.startsWith("ONNX WebGPU")) {
78877
+ out.push(device("onnx", "webgpu", s.format, s.score));
78878
+ continue;
78879
+ }
78742
78880
  const dev = DEVICE_FOR_BACKEND[s.backend] ?? s.backend;
78743
78881
  out.push(device(s.backend, dev, s.format, s.score));
78744
78882
  }
package/dist/index.mjs CHANGED
@@ -28366,11 +28366,14 @@ var HardwareClassIdSchema = z.enum([
28366
28366
  "intel-n-series",
28367
28367
  "apple-m-base",
28368
28368
  "apple-m-pro",
28369
+ "amd-phoenix",
28369
28370
  "unknown"
28370
28371
  ]);
28371
28372
  var AcceleratorKindSchema = z.enum([
28372
28373
  "intel-npu",
28373
28374
  "intel-igpu",
28375
+ "amd-igpu",
28376
+ "amd-npu",
28374
28377
  "x86-cpu",
28375
28378
  "arm-cpu",
28376
28379
  "apple-ane",
@@ -43538,7 +43541,15 @@ var GpuInfoSchema = z.object({
43538
43541
  name: z.string(),
43539
43542
  memoryMB: z.number().optional()
43540
43543
  });
43541
- var NpuInfoSchema = z.object({ type: z.enum(["apple-ane", "intel-npu"]) });
43544
+ var NpuInfoSchema = z.object({
43545
+ type: z.enum([
43546
+ "apple-ane",
43547
+ "intel-npu",
43548
+ "amd-xdna"
43549
+ ]),
43550
+ name: z.string().optional(),
43551
+ generation: z.enum(["xdna1", "xdna2"]).optional()
43552
+ });
43542
43553
  var CoralInfoSchema = z.object({
43543
43554
  type: z.literal("coral-edgetpu"),
43544
43555
  bus: z.string().optional()
@@ -75338,6 +75349,8 @@ function fieldsPinnedAtValueBelow(layer, below, boundKeys) {
75338
75349
  var APPLE_CHIP = /^Apple M(\d+)(?:\s+(Pro|Max|Ultra))?\b/i;
75339
75350
  var INTEL_CORE_ULTRA = /Core\(TM\)\s+Ultra|Core Ultra/i;
75340
75351
  var INTEL_N_SERIES = /Intel\(R\)\s+N\d{2,3}\b|\bIntel\s+N\d{2,3}\b/i;
75352
+ /** Phoenix / Hawk Point mobile (7040/8040) and Ryzen 8000G desktop APUs. */
75353
+ var AMD_PHOENIX = /Ryzen \d+ (7[0-9]40|8[0-9]40|8[0-9]45)[HSU]|Ryzen \d+ 8[0-9]00G/i;
75341
75354
  function parseAppleChip(cpuModel) {
75342
75355
  const match = APPLE_CHIP.exec(cpuModel.trim());
75343
75356
  if (match === null) return null;
@@ -75370,6 +75383,10 @@ function classifyInferenceHardware(hw) {
75370
75383
  hardwareClass: "intel-n-series",
75371
75384
  cpuModel
75372
75385
  };
75386
+ if (AMD_PHOENIX.test(cpuModel)) return {
75387
+ hardwareClass: "amd-phoenix",
75388
+ cpuModel
75389
+ };
75373
75390
  return {
75374
75391
  hardwareClass: "unknown",
75375
75392
  cpuModel
@@ -75386,6 +75403,8 @@ function acceleratorKindOf(deviceKey, hw) {
75386
75403
  if (backend === "coreml") return device === "cpu" ? "arm-cpu" : "apple-ane";
75387
75404
  if (backend === "openvino" && device === "npu") return "intel-npu";
75388
75405
  if (backend === "openvino" && device === "gpu") return "intel-igpu";
75406
+ if (backend === "onnx" && device === "webgpu") return "amd-igpu";
75407
+ if (backend === "vitisai" && device === "npu") return "amd-npu";
75389
75408
  if (backend === "cpu" || device === "cpu") return hw.arch === "arm64" ? "arm-cpu" : "x86-cpu";
75390
75409
  return null;
75391
75410
  }
@@ -75706,6 +75725,97 @@ var DETECTOR_PERF = {
75706
75725
  }
75707
75726
  }
75708
75727
  },
75728
+ "amd-phoenix": {
75729
+ "x86-cpu": {
75730
+ "yolov9t-320": {
75731
+ p50Ms: 24,
75732
+ fps: 42,
75733
+ measured: true
75734
+ },
75735
+ "yolov9t-320-int8": {
75736
+ p50Ms: 12,
75737
+ fps: 83,
75738
+ measured: true
75739
+ },
75740
+ "yolov9t-640": {
75741
+ p50Ms: 50,
75742
+ fps: 20,
75743
+ measured: true
75744
+ },
75745
+ "yolov9t-640-int8": {
75746
+ p50Ms: 20,
75747
+ fps: 50,
75748
+ measured: true
75749
+ },
75750
+ "yolov9s-320": {
75751
+ p50Ms: 30,
75752
+ fps: 33,
75753
+ measured: true
75754
+ },
75755
+ "yolov9s-320-int8": {
75756
+ p50Ms: 15,
75757
+ fps: 67,
75758
+ measured: true
75759
+ },
75760
+ "yolov9s-640": {
75761
+ p50Ms: 92,
75762
+ fps: 11,
75763
+ measured: true
75764
+ },
75765
+ "yolov9s-640-int8": {
75766
+ p50Ms: 27,
75767
+ fps: 37,
75768
+ measured: true
75769
+ },
75770
+ "yolov9m-320": {
75771
+ p50Ms: 67,
75772
+ fps: 15,
75773
+ measured: true
75774
+ },
75775
+ "yolov9m-320-int8": {
75776
+ p50Ms: 21,
75777
+ fps: 48,
75778
+ measured: true
75779
+ },
75780
+ "yolov9m-640": {
75781
+ p50Ms: 229,
75782
+ fps: 4,
75783
+ measured: true
75784
+ },
75785
+ "yolov9m-640-int8": {
75786
+ p50Ms: 48,
75787
+ fps: 21,
75788
+ measured: true
75789
+ }
75790
+ },
75791
+ "amd-igpu": {
75792
+ "yolov9t-320": {
75793
+ p50Ms: 188,
75794
+ fps: 5,
75795
+ measured: true
75796
+ },
75797
+ "yolov9t-640": {
75798
+ p50Ms: 671,
75799
+ fps: 1,
75800
+ measured: true
75801
+ },
75802
+ "yolov9s-320": {
75803
+ p50Ms: 401,
75804
+ fps: 2,
75805
+ measured: true
75806
+ },
75807
+ "yolov9s-640": {
75808
+ p50Ms: 1434,
75809
+ fps: 1,
75810
+ measured: true
75811
+ },
75812
+ "yolov9m-320": {
75813
+ p50Ms: 1076,
75814
+ fps: 1,
75815
+ measured: true
75816
+ }
75817
+ }
75818
+ },
75709
75819
  "apple-m-pro": { "apple-ane": {
75710
75820
  "yolov9t-320": {
75711
75821
  p50Ms: 1.1,
@@ -78542,6 +78652,10 @@ var RUNTIMES = [
78542
78652
  value: "cuda",
78543
78653
  label: "CUDA"
78544
78654
  });
78655
+ if (hw.gpu?.type === "amd") out.push({
78656
+ value: "webgpu",
78657
+ label: "WebGPU (AMD iGPU)"
78658
+ });
78545
78659
  if (hw.npu?.type === "apple-ane") out.push({
78546
78660
  value: "coreml",
78547
78661
  label: "CoreML EP"
@@ -78552,9 +78666,10 @@ var RUNTIMES = [
78552
78666
  },
78553
78667
  {
78554
78668
  id: "openvino",
78555
- supports: (hw) => hw?.arch === "x64" && hw.platform !== "darwin" && hw.gpu?.type === "intel",
78669
+ supports: (hw) => hw?.arch === "x64" && hw.platform !== "darwin" && (hw.gpu?.type === "intel" || hw.gpu?.type === "amd"),
78556
78670
  devices: (hw) => {
78557
78671
  if (!hw) return [AUTO];
78672
+ if (hw.gpu?.type === "amd") return [CPU];
78558
78673
  const out = [AUTO, CPU];
78559
78674
  if (hw.gpu?.type === "intel") out.push({
78560
78675
  value: "gpu",
@@ -78673,6 +78788,24 @@ function scoreRuntimes(hw) {
78673
78788
  available: true
78674
78789
  });
78675
78790
  }
78791
+ if (hw.gpu?.type === "amd") {
78792
+ scores.push({
78793
+ runtime: "python",
78794
+ backend: "onnx",
78795
+ format: "onnx",
78796
+ score: 75,
78797
+ reason: "ONNX WebGPU (AMD iGPU)",
78798
+ available: true
78799
+ });
78800
+ scores.push({
78801
+ runtime: "python",
78802
+ backend: "openvino",
78803
+ format: "openvino",
78804
+ score: 65,
78805
+ reason: "OpenVINO CPU (AMD x64)",
78806
+ available: true
78807
+ });
78808
+ }
78676
78809
  if (hw.coral != null) scores.push({
78677
78810
  runtime: "python",
78678
78811
  backend: "edgetpu",
@@ -78728,6 +78861,7 @@ function enumerateInferenceDevices(hw) {
78728
78861
  if (s.backend === "openvino") {
78729
78862
  if (hw.npu?.type === "intel-npu") out.push(device("openvino", "npu", s.format, s.score + 2));
78730
78863
  if (hw.gpu?.type === "intel") out.push(device("openvino", "gpu", s.format, s.score));
78864
+ if (hw.gpu?.type === "amd") out.push(device("openvino", "cpu", s.format, s.score));
78731
78865
  continue;
78732
78866
  }
78733
78867
  if (s.backend === "edgetpu") {
@@ -78738,6 +78872,10 @@ function enumerateInferenceDevices(hw) {
78738
78872
  }
78739
78873
  continue;
78740
78874
  }
78875
+ if (s.backend === "onnx" && s.reason.startsWith("ONNX WebGPU")) {
78876
+ out.push(device("onnx", "webgpu", s.format, s.score));
78877
+ continue;
78878
+ }
78741
78879
  const dev = DEVICE_FOR_BACKEND[s.backend] ?? s.backend;
78742
78880
  out.push(device(s.backend, dev, s.format, s.score));
78743
78881
  }
@@ -22,9 +22,14 @@ export interface GpuInfo {
22
22
  readonly memoryMB?: number;
23
23
  }
24
24
  export interface NpuInfo {
25
- readonly type: 'apple-ane' | 'intel-npu';
25
+ readonly type: 'apple-ane' | 'intel-npu' | 'amd-xdna';
26
26
  /** Human-readable accelerator name (e.g. `Intel AI Boost NPU`), when known. */
27
27
  readonly name?: string;
28
+ /**
29
+ * AMD XDNA generation when `type` is `amd-xdna`. Present-only until P2
30
+ * offers a device key — Phoenix/Hawk Point are xdna1, Strix is xdna2.
31
+ */
32
+ readonly generation?: 'xdna1' | 'xdna2';
28
33
  }
29
34
  /**
30
35
  * Coral USB Edge TPU (Google Coral). A discrete USB inference accelerator that
@@ -13,6 +13,7 @@ export declare const MIN_SESSIONS_PER_DEVICE_RANGE: {
13
13
  readonly max: 8;
14
14
  };
15
15
  export declare const HardwareClassIdSchema: z.ZodEnum<{
16
+ "amd-phoenix": "amd-phoenix";
16
17
  "apple-m-base": "apple-m-base";
17
18
  "apple-m-pro": "apple-m-pro";
18
19
  "intel-core-ultra": "intel-core-ultra";
@@ -20,6 +21,8 @@ export declare const HardwareClassIdSchema: z.ZodEnum<{
20
21
  unknown: "unknown";
21
22
  }>;
22
23
  export declare const AcceleratorKindSchema: z.ZodEnum<{
24
+ "amd-igpu": "amd-igpu";
25
+ "amd-npu": "amd-npu";
23
26
  "apple-ane": "apple-ane";
24
27
  "arm-cpu": "arm-cpu";
25
28
  coral: "coral";
@@ -62,6 +65,7 @@ export declare const RecommendationReasonSchema: z.ZodDiscriminatedUnion<[z.ZodO
62
65
  }, z.core.$strip>, z.ZodObject<{
63
66
  kind: z.ZodLiteral<"no-measured-data">;
64
67
  hardwareClass: z.ZodEnum<{
68
+ "amd-phoenix": "amd-phoenix";
65
69
  "apple-m-base": "apple-m-base";
66
70
  "apple-m-pro": "apple-m-pro";
67
71
  "intel-core-ultra": "intel-core-ultra";
@@ -117,6 +121,8 @@ export declare const DeviceModelChoiceSchema: z.ZodObject<{
117
121
  export declare const DeviceRecommendationSchema: z.ZodObject<{
118
122
  deviceKey: z.ZodString;
119
123
  accelerator: z.ZodNullable<z.ZodEnum<{
124
+ "amd-igpu": "amd-igpu";
125
+ "amd-npu": "amd-npu";
120
126
  "apple-ane": "apple-ane";
121
127
  "arm-cpu": "arm-cpu";
122
128
  coral: "coral";
@@ -179,6 +185,7 @@ export declare const DeviceRecommendationSchema: z.ZodObject<{
179
185
  }, z.core.$strip>, z.ZodObject<{
180
186
  kind: z.ZodLiteral<"no-measured-data">;
181
187
  hardwareClass: z.ZodEnum<{
188
+ "amd-phoenix": "amd-phoenix";
182
189
  "apple-m-base": "apple-m-base";
183
190
  "apple-m-pro": "apple-m-pro";
184
191
  "intel-core-ultra": "intel-core-ultra";
@@ -205,6 +212,7 @@ export declare const NodeRecommendationSchema: z.ZodObject<{
205
212
  nodeId: z.ZodString;
206
213
  reachable: z.ZodBoolean;
207
214
  hardwareClass: z.ZodNullable<z.ZodEnum<{
215
+ "amd-phoenix": "amd-phoenix";
208
216
  "apple-m-base": "apple-m-base";
209
217
  "apple-m-pro": "apple-m-pro";
210
218
  "intel-core-ultra": "intel-core-ultra";
@@ -217,6 +225,8 @@ export declare const NodeRecommendationSchema: z.ZodObject<{
217
225
  devices: z.ZodReadonly<z.ZodArray<z.ZodObject<{
218
226
  deviceKey: z.ZodString;
219
227
  accelerator: z.ZodNullable<z.ZodEnum<{
228
+ "amd-igpu": "amd-igpu";
229
+ "amd-npu": "amd-npu";
220
230
  "apple-ane": "apple-ane";
221
231
  "arm-cpu": "arm-cpu";
222
232
  coral: "coral";
@@ -279,6 +289,7 @@ export declare const NodeRecommendationSchema: z.ZodObject<{
279
289
  }, z.core.$strip>, z.ZodObject<{
280
290
  kind: z.ZodLiteral<"no-measured-data">;
281
291
  hardwareClass: z.ZodEnum<{
292
+ "amd-phoenix": "amd-phoenix";
282
293
  "apple-m-base": "apple-m-base";
283
294
  "apple-m-pro": "apple-m-pro";
284
295
  "intel-core-ultra": "intel-core-ultra";
@@ -336,6 +347,7 @@ export declare const NodeRecommendationSchema: z.ZodObject<{
336
347
  }, z.core.$strip>, z.ZodObject<{
337
348
  kind: z.ZodLiteral<"no-measured-data">;
338
349
  hardwareClass: z.ZodEnum<{
350
+ "amd-phoenix": "amd-phoenix";
339
351
  "apple-m-base": "apple-m-base";
340
352
  "apple-m-pro": "apple-m-pro";
341
353
  "intel-core-ultra": "intel-core-ultra";
@@ -428,6 +440,7 @@ export declare const AutoTunePlanSchema: z.ZodObject<{
428
440
  nodeId: z.ZodString;
429
441
  reachable: z.ZodBoolean;
430
442
  hardwareClass: z.ZodNullable<z.ZodEnum<{
443
+ "amd-phoenix": "amd-phoenix";
431
444
  "apple-m-base": "apple-m-base";
432
445
  "apple-m-pro": "apple-m-pro";
433
446
  "intel-core-ultra": "intel-core-ultra";
@@ -440,6 +453,8 @@ export declare const AutoTunePlanSchema: z.ZodObject<{
440
453
  devices: z.ZodReadonly<z.ZodArray<z.ZodObject<{
441
454
  deviceKey: z.ZodString;
442
455
  accelerator: z.ZodNullable<z.ZodEnum<{
456
+ "amd-igpu": "amd-igpu";
457
+ "amd-npu": "amd-npu";
443
458
  "apple-ane": "apple-ane";
444
459
  "arm-cpu": "arm-cpu";
445
460
  coral: "coral";
@@ -502,6 +517,7 @@ export declare const AutoTunePlanSchema: z.ZodObject<{
502
517
  }, z.core.$strip>, z.ZodObject<{
503
518
  kind: z.ZodLiteral<"no-measured-data">;
504
519
  hardwareClass: z.ZodEnum<{
520
+ "amd-phoenix": "amd-phoenix";
505
521
  "apple-m-base": "apple-m-base";
506
522
  "apple-m-pro": "apple-m-pro";
507
523
  "intel-core-ultra": "intel-core-ultra";
@@ -559,6 +575,7 @@ export declare const AutoTunePlanSchema: z.ZodObject<{
559
575
  }, z.core.$strip>, z.ZodObject<{
560
576
  kind: z.ZodLiteral<"no-measured-data">;
561
577
  hardwareClass: z.ZodEnum<{
578
+ "amd-phoenix": "amd-phoenix";
562
579
  "apple-m-base": "apple-m-base";
563
580
  "apple-m-pro": "apple-m-pro";
564
581
  "intel-core-ultra": "intel-core-ultra";
@@ -688,6 +705,7 @@ export declare const AutoTuneApplyResultSchema: z.ZodDiscriminatedUnion<[z.ZodOb
688
705
  nodeId: z.ZodString;
689
706
  reachable: z.ZodBoolean;
690
707
  hardwareClass: z.ZodNullable<z.ZodEnum<{
708
+ "amd-phoenix": "amd-phoenix";
691
709
  "apple-m-base": "apple-m-base";
692
710
  "apple-m-pro": "apple-m-pro";
693
711
  "intel-core-ultra": "intel-core-ultra";
@@ -700,6 +718,8 @@ export declare const AutoTuneApplyResultSchema: z.ZodDiscriminatedUnion<[z.ZodOb
700
718
  devices: z.ZodReadonly<z.ZodArray<z.ZodObject<{
701
719
  deviceKey: z.ZodString;
702
720
  accelerator: z.ZodNullable<z.ZodEnum<{
721
+ "amd-igpu": "amd-igpu";
722
+ "amd-npu": "amd-npu";
703
723
  "apple-ane": "apple-ane";
704
724
  "arm-cpu": "arm-cpu";
705
725
  coral: "coral";
@@ -762,6 +782,7 @@ export declare const AutoTuneApplyResultSchema: z.ZodDiscriminatedUnion<[z.ZodOb
762
782
  }, z.core.$strip>, z.ZodObject<{
763
783
  kind: z.ZodLiteral<"no-measured-data">;
764
784
  hardwareClass: z.ZodEnum<{
785
+ "amd-phoenix": "amd-phoenix";
765
786
  "apple-m-base": "apple-m-base";
766
787
  "apple-m-pro": "apple-m-pro";
767
788
  "intel-core-ultra": "intel-core-ultra";
@@ -819,6 +840,7 @@ export declare const AutoTuneApplyResultSchema: z.ZodDiscriminatedUnion<[z.ZodOb
819
840
  }, z.core.$strip>, z.ZodObject<{
820
841
  kind: z.ZodLiteral<"no-measured-data">;
821
842
  hardwareClass: z.ZodEnum<{
843
+ "amd-phoenix": "amd-phoenix";
822
844
  "apple-m-base": "apple-m-base";
823
845
  "apple-m-pro": "apple-m-pro";
824
846
  "intel-core-ultra": "intel-core-ultra";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.337",
3
+ "version": "1.2.339",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",