@camstack/types 1.2.327 → 1.2.328

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 (71) hide show
  1. package/dist/addon/base-addon.d.ts +58 -0
  2. package/dist/addon/secret-aware-context.d.ts +27 -0
  3. package/dist/addon/secret-paths.d.ts +48 -0
  4. package/dist/addon/secret-settings-view.d.ts +80 -0
  5. package/dist/addon.d.ts +1 -0
  6. package/dist/addon.js +52 -4
  7. package/dist/addon.mjs +27 -5
  8. package/dist/capabilities/addons.cap.d.ts +4 -4
  9. package/dist/capabilities/alerts.cap.d.ts +5 -5
  10. package/dist/capabilities/control.cap.d.ts +11 -11
  11. package/dist/capabilities/day-night.cap.d.ts +8 -8
  12. package/dist/capabilities/device-manager.cap.d.ts +2 -0
  13. package/dist/capabilities/enum-sensor.cap.d.ts +4 -4
  14. package/dist/capabilities/index.d.ts +6 -2
  15. package/dist/capabilities/integrations.cap.d.ts +6 -3
  16. package/dist/capabilities/keychain-admin.cap.d.ts +312 -0
  17. package/dist/capabilities/keychain.cap.d.ts +180 -0
  18. package/dist/capabilities/lawn-mower-control.cap.d.ts +4 -4
  19. package/dist/capabilities/log-channels.cap.d.ts +1 -1
  20. package/dist/capabilities/log-destination.cap.d.ts +5 -5
  21. package/dist/capabilities/notification-rules.cap.d.ts +30 -30
  22. package/dist/capabilities/osd-manager.cap.d.ts +11 -11
  23. package/dist/capabilities/osd.cap.d.ts +5 -5
  24. package/dist/capabilities/pipeline-analytics.cap.d.ts +996 -118
  25. package/dist/capabilities/pipeline-orchestrator.cap.d.ts +384 -0
  26. package/dist/capabilities/pipeline-runner.cap.d.ts +145 -2
  27. package/dist/capabilities/storage.cap.d.ts +1 -1
  28. package/dist/capabilities/system.cap.d.ts +16 -16
  29. package/dist/capabilities/webrtc-session.cap.d.ts +3 -3
  30. package/dist/client.js +32 -1
  31. package/dist/client.mjs +32 -1
  32. package/dist/device/device-context.d.ts +11 -1
  33. package/dist/device/index.d.ts +1 -1
  34. package/dist/enums/event-category.d.ts +7 -0
  35. package/dist/enums.js +1 -1
  36. package/dist/enums.mjs +1 -1
  37. package/dist/{event-category-CtBAl88K.js → event-category-CHduMGvg.js} +7 -0
  38. package/dist/{event-category-B_0XEcLF.mjs → event-category-DaIZi00R.mjs} +7 -0
  39. package/dist/generated/addon-api.d.ts +254 -0
  40. package/dist/generated/cap-input-defaults.d.ts +1 -1
  41. package/dist/generated/capability-router-map.d.ts +8 -2
  42. package/dist/generated/method-access-map.d.ts +1 -1
  43. package/dist/generated/method-device-selectors.d.ts +1 -1
  44. package/dist/generated/system-proxy.d.ts +4 -2
  45. package/dist/health/wiring-health.d.ts +8 -8
  46. package/dist/index.d.ts +6 -2
  47. package/dist/index.js +1736 -101
  48. package/dist/index.mjs +1625 -98
  49. package/dist/interfaces/addon.d.ts +25 -0
  50. package/dist/interfaces/config-ui-secrets.d.ts +12 -0
  51. package/dist/interfaces/config-ui.d.ts +29 -1
  52. package/dist/interfaces/event-bus.d.ts +11 -0
  53. package/dist/interfaces/pipeline-runner-capability.d.ts +18 -0
  54. package/dist/keychain/index.d.ts +5 -0
  55. package/dist/keychain/known-secrets.d.ts +31 -0
  56. package/dist/keychain/resolve-secret-views.d.ts +2 -0
  57. package/dist/keychain/secret-marker.d.ts +52 -0
  58. package/dist/keychain/secret-ref.d.ts +62 -0
  59. package/dist/keychain/secrets-access.d.ts +77 -0
  60. package/dist/logging/log-channel.d.ts +2 -2
  61. package/dist/pipeline/auto-tune/plan-schemas.d.ts +123 -0
  62. package/dist/pipeline/auto-tune/recommend.d.ts +26 -1
  63. package/dist/pipeline/load-balancing/schemas.d.ts +8 -7
  64. package/dist/pipeline/node-benchmark/benchmark-mode.d.ts +57 -0
  65. package/dist/pipeline/node-benchmark/index.d.ts +9 -0
  66. package/dist/pipeline/node-benchmark/results.d.ts +52 -0
  67. package/dist/pipeline/node-benchmark/schemas.d.ts +848 -0
  68. package/dist/pipeline/node-benchmark/step-tree.d.ts +23 -0
  69. package/dist/{sleep-B0JG7-_F.mjs → sleep-Cr5YOk3m.mjs} +1335 -121
  70. package/dist/{sleep-az1qiFzK.js → sleep-i3kl-0Na.js} +1575 -121
  71. package/package.json +1 -1
@@ -1318,9 +1318,19 @@ export declare const pipelineOrchestratorCapability: {
1318
1318
  p50Ms: z.ZodNumber;
1319
1319
  fps: z.ZodNumber;
1320
1320
  measured: z.ZodBoolean;
1321
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1322
+ kind: z.ZodLiteral<"table">;
1323
+ }, z.core.$strip>, z.ZodObject<{
1324
+ kind: z.ZodLiteral<"node-benchmark">;
1325
+ resultId: z.ZodString;
1326
+ measuredAtMs: z.ZodNumber;
1327
+ }, z.core.$strip>], "kind">>;
1321
1328
  capacitySessions: z.ZodNumber;
1322
1329
  personRecall: z.ZodNumber;
1323
1330
  }, z.core.$strip>>;
1331
+ kept: z.ZodOptional<z.ZodEnum<{
1332
+ "custom-pin": "custom-pin";
1333
+ }>>;
1324
1334
  reasons: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1325
1335
  kind: z.ZodLiteral<"capacity">;
1326
1336
  sessions: z.ZodNumber;
@@ -1372,6 +1382,10 @@ export declare const pipelineOrchestratorCapability: {
1372
1382
  pt: "pt";
1373
1383
  gguf: "gguf";
1374
1384
  }>;
1385
+ }, z.core.$strip>, z.ZodObject<{
1386
+ kind: z.ZodLiteral<"kept-custom-pin">;
1387
+ modelId: z.ZodString;
1388
+ deviceKey: z.ZodString;
1375
1389
  }, z.core.$strip>], "kind">>>;
1376
1390
  }, z.core.$strip>>>;
1377
1391
  reasons: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1425,6 +1439,10 @@ export declare const pipelineOrchestratorCapability: {
1425
1439
  pt: "pt";
1426
1440
  gguf: "gguf";
1427
1441
  }>;
1442
+ }, z.core.$strip>, z.ZodObject<{
1443
+ kind: z.ZodLiteral<"kept-custom-pin">;
1444
+ modelId: z.ZodString;
1445
+ deviceKey: z.ZodString;
1428
1446
  }, z.core.$strip>], "kind">>>;
1429
1447
  }, z.core.$strip>>>;
1430
1448
  nodeChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
@@ -1467,6 +1485,15 @@ export declare const pipelineOrchestratorCapability: {
1467
1485
  kind: z.ZodLiteral<"coral-enabled">;
1468
1486
  nodeId: z.ZodString;
1469
1487
  deviceKey: z.ZodString;
1488
+ }, z.core.$strip>, z.ZodObject<{
1489
+ kind: z.ZodLiteral<"custom-pin-kept">;
1490
+ nodeId: z.ZodString;
1491
+ deviceKey: z.ZodNullable<z.ZodString>;
1492
+ deviceId: z.ZodNullable<z.ZodNumber>;
1493
+ modelId: z.ZodString;
1494
+ }, z.core.$strip>, z.ZodObject<{
1495
+ kind: z.ZodLiteral<"custom-registry-unreadable">;
1496
+ error: z.ZodString;
1470
1497
  }, z.core.$strip>], "kind">>>;
1471
1498
  }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
1472
1499
  /**
@@ -1545,9 +1572,19 @@ export declare const pipelineOrchestratorCapability: {
1545
1572
  p50Ms: z.ZodNumber;
1546
1573
  fps: z.ZodNumber;
1547
1574
  measured: z.ZodBoolean;
1575
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1576
+ kind: z.ZodLiteral<"table">;
1577
+ }, z.core.$strip>, z.ZodObject<{
1578
+ kind: z.ZodLiteral<"node-benchmark">;
1579
+ resultId: z.ZodString;
1580
+ measuredAtMs: z.ZodNumber;
1581
+ }, z.core.$strip>], "kind">>;
1548
1582
  capacitySessions: z.ZodNumber;
1549
1583
  personRecall: z.ZodNumber;
1550
1584
  }, z.core.$strip>>;
1585
+ kept: z.ZodOptional<z.ZodEnum<{
1586
+ "custom-pin": "custom-pin";
1587
+ }>>;
1551
1588
  reasons: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1552
1589
  kind: z.ZodLiteral<"capacity">;
1553
1590
  sessions: z.ZodNumber;
@@ -1599,6 +1636,10 @@ export declare const pipelineOrchestratorCapability: {
1599
1636
  pt: "pt";
1600
1637
  gguf: "gguf";
1601
1638
  }>;
1639
+ }, z.core.$strip>, z.ZodObject<{
1640
+ kind: z.ZodLiteral<"kept-custom-pin">;
1641
+ modelId: z.ZodString;
1642
+ deviceKey: z.ZodString;
1602
1643
  }, z.core.$strip>], "kind">>>;
1603
1644
  }, z.core.$strip>>>;
1604
1645
  reasons: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1652,6 +1693,10 @@ export declare const pipelineOrchestratorCapability: {
1652
1693
  pt: "pt";
1653
1694
  gguf: "gguf";
1654
1695
  }>;
1696
+ }, z.core.$strip>, z.ZodObject<{
1697
+ kind: z.ZodLiteral<"kept-custom-pin">;
1698
+ modelId: z.ZodString;
1699
+ deviceKey: z.ZodString;
1655
1700
  }, z.core.$strip>], "kind">>>;
1656
1701
  }, z.core.$strip>>>;
1657
1702
  nodeChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
@@ -1694,6 +1739,15 @@ export declare const pipelineOrchestratorCapability: {
1694
1739
  kind: z.ZodLiteral<"coral-enabled">;
1695
1740
  nodeId: z.ZodString;
1696
1741
  deviceKey: z.ZodString;
1742
+ }, z.core.$strip>, z.ZodObject<{
1743
+ kind: z.ZodLiteral<"custom-pin-kept">;
1744
+ nodeId: z.ZodString;
1745
+ deviceKey: z.ZodNullable<z.ZodString>;
1746
+ deviceId: z.ZodNullable<z.ZodNumber>;
1747
+ modelId: z.ZodString;
1748
+ }, z.core.$strip>, z.ZodObject<{
1749
+ kind: z.ZodLiteral<"custom-registry-unreadable">;
1750
+ error: z.ZodString;
1697
1751
  }, z.core.$strip>], "kind">>>;
1698
1752
  }, z.core.$strip>;
1699
1753
  }, z.core.$strip>, z.ZodObject<{
@@ -1860,6 +1914,336 @@ export declare const pipelineOrchestratorCapability: {
1860
1914
  }, z.core.$strip>, z.ZodObject<{
1861
1915
  success: z.ZodLiteral<true>;
1862
1916
  }, z.core.$strip>, "mutation">;
1917
+ /**
1918
+ * Node benchmark — what a run of this plan would do, without doing it:
1919
+ * the cameras that leave the node, those that cannot (the node is their
1920
+ * only frame source; they stay and flag the run), the estimated duration
1921
+ * and every reason it may not start. The confirmation shows this.
1922
+ */
1923
+ readonly getNodeBenchmarkPreflight: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
1924
+ nodeId: z.ZodString;
1925
+ devices: z.ZodArray<z.ZodObject<{
1926
+ deviceKey: z.ZodString;
1927
+ modelIds: z.ZodArray<z.ZodString>;
1928
+ }, z.core.$strip>>;
1929
+ phases: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1930
+ pipeline: "pipeline";
1931
+ device: "device";
1932
+ }>>>;
1933
+ steps: z.ZodDefault<z.ZodArray<z.ZodString>>;
1934
+ fpsPerStream: z.ZodDefault<z.ZodNumber>;
1935
+ budgetMinutes: z.ZodDefault<z.ZodNumber>;
1936
+ keepDownloadedModels: z.ZodDefault<z.ZodBoolean>;
1937
+ acceptInsufficientHeadroom: z.ZodDefault<z.ZodBoolean>;
1938
+ }, z.core.$strip>, z.ZodObject<{
1939
+ nodeId: z.ZodString;
1940
+ online: z.ZodBoolean;
1941
+ moving: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1942
+ deviceId: z.ZodNumber;
1943
+ placedOnNode: z.ZodBoolean;
1944
+ pinnedToNode: z.ZodBoolean;
1945
+ }, z.core.$strip>>>;
1946
+ staying: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1947
+ deviceId: z.ZodNumber;
1948
+ reason: z.ZodLiteral<"only-frame-source">;
1949
+ }, z.core.$strip>>>;
1950
+ estimatedDurationMs: z.ZodNumber;
1951
+ budgetMs: z.ZodNumber;
1952
+ phases: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
1953
+ pipeline: "pipeline";
1954
+ device: "device";
1955
+ }>>>;
1956
+ steps: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1957
+ devices: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1958
+ deviceKey: z.ZodString;
1959
+ modelIds: z.ZodArray<z.ZodString>;
1960
+ }, z.core.$strip>>>;
1961
+ headroom: z.ZodObject<{
1962
+ sessionsNow: z.ZodNumber;
1963
+ otherNodesCapacitySessions: z.ZodNullable<z.ZodNumber>;
1964
+ }, z.core.$strip>;
1965
+ refusals: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1966
+ kind: z.ZodEnum<{
1967
+ "unknown-device": "unknown-device";
1968
+ "benchmark-active": "benchmark-active";
1969
+ "node-offline": "node-offline";
1970
+ "no-phase": "no-phase";
1971
+ "insufficient-headroom": "insufficient-headroom";
1972
+ }>;
1973
+ detail: z.ZodString;
1974
+ overridable: z.ZodBoolean;
1975
+ }, z.core.$strip>>>;
1976
+ canStart: z.ZodBoolean;
1977
+ }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
1978
+ /**
1979
+ * Node benchmark — start ONE run (cluster-wide lock). The orchestrator
1980
+ * persists a restore manifest, enters benchmark mode for the node (out of
1981
+ * placement, its camera pins ignored, nothing rewritten), drains it, drives
1982
+ * the node's own runner, then restores — always, including after an
1983
+ * abort, a lost node or a hub restart. Answers at once; poll
1984
+ * `getNodeBenchmarkStatus`. Refused runs carry the preflight.
1985
+ */
1986
+ readonly startNodeBenchmark: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
1987
+ nodeId: z.ZodString;
1988
+ devices: z.ZodArray<z.ZodObject<{
1989
+ deviceKey: z.ZodString;
1990
+ modelIds: z.ZodArray<z.ZodString>;
1991
+ }, z.core.$strip>>;
1992
+ phases: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1993
+ pipeline: "pipeline";
1994
+ device: "device";
1995
+ }>>>;
1996
+ steps: z.ZodDefault<z.ZodArray<z.ZodString>>;
1997
+ fpsPerStream: z.ZodDefault<z.ZodNumber>;
1998
+ budgetMinutes: z.ZodDefault<z.ZodNumber>;
1999
+ keepDownloadedModels: z.ZodDefault<z.ZodBoolean>;
2000
+ acceptInsufficientHeadroom: z.ZodDefault<z.ZodBoolean>;
2001
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2002
+ kind: z.ZodLiteral<"started">;
2003
+ runId: z.ZodString;
2004
+ }, z.core.$strip>, z.ZodObject<{
2005
+ kind: z.ZodLiteral<"refused">;
2006
+ preflight: z.ZodObject<{
2007
+ nodeId: z.ZodString;
2008
+ online: z.ZodBoolean;
2009
+ moving: z.ZodReadonly<z.ZodArray<z.ZodObject<{
2010
+ deviceId: z.ZodNumber;
2011
+ placedOnNode: z.ZodBoolean;
2012
+ pinnedToNode: z.ZodBoolean;
2013
+ }, z.core.$strip>>>;
2014
+ staying: z.ZodReadonly<z.ZodArray<z.ZodObject<{
2015
+ deviceId: z.ZodNumber;
2016
+ reason: z.ZodLiteral<"only-frame-source">;
2017
+ }, z.core.$strip>>>;
2018
+ estimatedDurationMs: z.ZodNumber;
2019
+ budgetMs: z.ZodNumber;
2020
+ phases: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
2021
+ pipeline: "pipeline";
2022
+ device: "device";
2023
+ }>>>;
2024
+ steps: z.ZodReadonly<z.ZodArray<z.ZodString>>;
2025
+ devices: z.ZodReadonly<z.ZodArray<z.ZodObject<{
2026
+ deviceKey: z.ZodString;
2027
+ modelIds: z.ZodArray<z.ZodString>;
2028
+ }, z.core.$strip>>>;
2029
+ headroom: z.ZodObject<{
2030
+ sessionsNow: z.ZodNumber;
2031
+ otherNodesCapacitySessions: z.ZodNullable<z.ZodNumber>;
2032
+ }, z.core.$strip>;
2033
+ refusals: z.ZodReadonly<z.ZodArray<z.ZodObject<{
2034
+ kind: z.ZodEnum<{
2035
+ "unknown-device": "unknown-device";
2036
+ "benchmark-active": "benchmark-active";
2037
+ "node-offline": "node-offline";
2038
+ "no-phase": "no-phase";
2039
+ "insufficient-headroom": "insufficient-headroom";
2040
+ }>;
2041
+ detail: z.ZodString;
2042
+ overridable: z.ZodBoolean;
2043
+ }, z.core.$strip>>>;
2044
+ canStart: z.ZodBoolean;
2045
+ }, z.core.$strip>;
2046
+ }, z.core.$strip>], "kind">, "mutation">;
2047
+ /** Node benchmark — the active run (or the last one) and the node in benchmark mode. */
2048
+ readonly getNodeBenchmarkStatus: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
2049
+ modeNodeId: z.ZodNullable<z.ZodString>;
2050
+ run: z.ZodNullable<z.ZodObject<{
2051
+ runId: z.ZodString;
2052
+ nodeId: z.ZodString;
2053
+ state: z.ZodEnum<{
2054
+ done: "done";
2055
+ failed: "failed";
2056
+ draining: "draining";
2057
+ aborted: "aborted";
2058
+ measuring: "measuring";
2059
+ restoring: "restoring";
2060
+ }>;
2061
+ plan: z.ZodObject<{
2062
+ nodeId: z.ZodString;
2063
+ devices: z.ZodArray<z.ZodObject<{
2064
+ deviceKey: z.ZodString;
2065
+ modelIds: z.ZodArray<z.ZodString>;
2066
+ }, z.core.$strip>>;
2067
+ phases: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2068
+ pipeline: "pipeline";
2069
+ device: "device";
2070
+ }>>>;
2071
+ steps: z.ZodDefault<z.ZodArray<z.ZodString>>;
2072
+ fpsPerStream: z.ZodDefault<z.ZodNumber>;
2073
+ budgetMinutes: z.ZodDefault<z.ZodNumber>;
2074
+ keepDownloadedModels: z.ZodDefault<z.ZodBoolean>;
2075
+ acceptInsufficientHeadroom: z.ZodDefault<z.ZodBoolean>;
2076
+ }, z.core.$strip>;
2077
+ startedAtMs: z.ZodNumber;
2078
+ deadlineAtMs: z.ZodNumber;
2079
+ finishedAtMs: z.ZodNullable<z.ZodNumber>;
2080
+ endReason: z.ZodNullable<z.ZodEnum<{
2081
+ failed: "failed";
2082
+ completed: "completed";
2083
+ "operator-abort": "operator-abort";
2084
+ deadline: "deadline";
2085
+ "node-lost": "node-lost";
2086
+ "runner-lost": "runner-lost";
2087
+ "hub-restart": "hub-restart";
2088
+ "drain-timeout": "drain-timeout";
2089
+ }>>;
2090
+ error: z.ZodNullable<z.ZodString>;
2091
+ moved: z.ZodReadonly<z.ZodArray<z.ZodNumber>>;
2092
+ staying: z.ZodReadonly<z.ZodArray<z.ZodNumber>>;
2093
+ contaminated: z.ZodBoolean;
2094
+ progress: z.ZodNullable<z.ZodObject<{
2095
+ phase: z.ZodEnum<{
2096
+ pipeline: "pipeline";
2097
+ device: "device";
2098
+ preparing: "preparing";
2099
+ cleanup: "cleanup";
2100
+ }>;
2101
+ deviceKey: z.ZodNullable<z.ZodString>;
2102
+ modelId: z.ZodNullable<z.ZodString>;
2103
+ load: z.ZodNullable<z.ZodNumber>;
2104
+ cellsDone: z.ZodNumber;
2105
+ cellsTotal: z.ZodNumber;
2106
+ message: z.ZodString;
2107
+ }, z.core.$strip>>;
2108
+ resultIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
2109
+ }, z.core.$strip>>;
2110
+ }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
2111
+ /** Node benchmark — stop the active run; the cluster is restored as it was. */
2112
+ readonly abortNodeBenchmark: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
2113
+ runId: z.ZodString;
2114
+ }, z.core.$strip>, z.ZodObject<{
2115
+ aborted: z.ZodBoolean;
2116
+ }, z.core.$strip>, "mutation">;
2117
+ /**
2118
+ * Node benchmark — root detector candidates per device (what Auto tune
2119
+ * would pick first, then the family) and the detail steps the node's
2120
+ * catalog offers, for the plan editor.
2121
+ */
2122
+ readonly getNodeBenchmarkCandidates: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
2123
+ nodeId: z.ZodString;
2124
+ }, z.core.$strip>, z.ZodObject<{
2125
+ nodeId: z.ZodString;
2126
+ reachable: z.ZodBoolean;
2127
+ devices: z.ZodReadonly<z.ZodArray<z.ZodObject<{
2128
+ deviceKey: z.ZodString;
2129
+ enabled: z.ZodBoolean;
2130
+ available: z.ZodBoolean;
2131
+ suggested: z.ZodReadonly<z.ZodArray<z.ZodString>>;
2132
+ all: z.ZodReadonly<z.ZodArray<z.ZodString>>;
2133
+ currentModelId: z.ZodNullable<z.ZodString>;
2134
+ }, z.core.$strip>>>;
2135
+ steps: z.ZodReadonly<z.ZodArray<z.ZodObject<{
2136
+ id: z.ZodString;
2137
+ name: z.ZodString;
2138
+ slot: z.ZodString;
2139
+ }, z.core.$strip>>>;
2140
+ }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
2141
+ /** Node benchmark — stored results, newest first, each with its standing today. */
2142
+ readonly listNodeBenchmarkResults: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
2143
+ nodeId: z.ZodOptional<z.ZodString>;
2144
+ deviceKey: z.ZodOptional<z.ZodString>;
2145
+ }, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
2146
+ id: z.ZodString;
2147
+ runId: z.ZodString;
2148
+ nodeId: z.ZodString;
2149
+ cell: z.ZodDiscriminatedUnion<[z.ZodObject<{
2150
+ phase: z.ZodLiteral<"device">;
2151
+ deviceKey: z.ZodString;
2152
+ modelId: z.ZodString;
2153
+ p50Ms: z.ZodNumber;
2154
+ p95Ms: z.ZodNumber;
2155
+ p99Ms: z.ZodNumber;
2156
+ fps: z.ZodNumber;
2157
+ kMax: z.ZodNumber;
2158
+ limitedBy: z.ZodEnum<{
2159
+ errors: "errors";
2160
+ none: "none";
2161
+ cpu: "cpu";
2162
+ p95: "p95";
2163
+ drops: "drops";
2164
+ stall: "stall";
2165
+ ram: "ram";
2166
+ }>;
2167
+ warmupMs: z.ZodNumber;
2168
+ ramp: z.ZodReadonly<z.ZodArray<z.ZodObject<{
2169
+ load: z.ZodNumber;
2170
+ pass: z.ZodBoolean;
2171
+ p95Ms: z.ZodNumber;
2172
+ dropRatio: z.ZodNumber;
2173
+ fps: z.ZodNumber;
2174
+ cpuPct: z.ZodNullable<z.ZodNumber>;
2175
+ ramFreePct: z.ZodNullable<z.ZodNumber>;
2176
+ failReasons: z.ZodReadonly<z.ZodArray<z.ZodString>>;
2177
+ }, z.core.$strip>>>;
2178
+ }, z.core.$strip>, z.ZodObject<{
2179
+ phase: z.ZodLiteral<"pipeline">;
2180
+ deviceKey: z.ZodString;
2181
+ modelId: z.ZodString;
2182
+ steps: z.ZodReadonly<z.ZodArray<z.ZodString>>;
2183
+ maxSessions: z.ZodNumber;
2184
+ limitedBy: z.ZodEnum<{
2185
+ errors: "errors";
2186
+ none: "none";
2187
+ cpu: "cpu";
2188
+ p95: "p95";
2189
+ drops: "drops";
2190
+ stall: "stall";
2191
+ ram: "ram";
2192
+ }>;
2193
+ stepsFired: z.ZodReadonly<z.ZodArray<z.ZodString>>;
2194
+ warmupMs: z.ZodNumber;
2195
+ ramp: z.ZodReadonly<z.ZodArray<z.ZodObject<{
2196
+ load: z.ZodNumber;
2197
+ pass: z.ZodBoolean;
2198
+ p95Ms: z.ZodNumber;
2199
+ dropRatio: z.ZodNumber;
2200
+ fps: z.ZodNumber;
2201
+ cpuPct: z.ZodNullable<z.ZodNumber>;
2202
+ ramFreePct: z.ZodNullable<z.ZodNumber>;
2203
+ failReasons: z.ZodReadonly<z.ZodArray<z.ZodString>>;
2204
+ }, z.core.$strip>>>;
2205
+ }, z.core.$strip>], "phase">;
2206
+ fpsPerStream: z.ZodNumber;
2207
+ fingerprint: z.ZodNullable<z.ZodObject<{
2208
+ pipelineVersion: z.ZodNullable<z.ZodString>;
2209
+ cpuModel: z.ZodNullable<z.ZodString>;
2210
+ ramGb: z.ZodNullable<z.ZodNumber>;
2211
+ os: z.ZodNullable<z.ZodString>;
2212
+ pools: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
2213
+ runtime: z.ZodString;
2214
+ numWorkers: z.ZodNumber;
2215
+ concurrency: z.ZodNumber;
2216
+ batchMode: z.ZodString;
2217
+ }, z.core.$strip>>>;
2218
+ }, z.core.$strip>>;
2219
+ clip: z.ZodNullable<z.ZodObject<{
2220
+ id: z.ZodString;
2221
+ revision: z.ZodNullable<z.ZodString>;
2222
+ frames: z.ZodNumber;
2223
+ width: z.ZodNumber;
2224
+ height: z.ZodNumber;
2225
+ }, z.core.$strip>>;
2226
+ contaminated: z.ZodBoolean;
2227
+ stayingCameras: z.ZodReadonly<z.ZodArray<z.ZodNumber>>;
2228
+ partialRun: z.ZodBoolean;
2229
+ measuredAtMs: z.ZodNumber;
2230
+ standing: z.ZodEnum<{
2231
+ superseded: "superseded";
2232
+ stale: "stale";
2233
+ fresh: "fresh";
2234
+ }>;
2235
+ staleWhy: z.ZodNullable<z.ZodEnum<{
2236
+ runtime: "runtime";
2237
+ age: "age";
2238
+ "pool-tuning": "pool-tuning";
2239
+ }>>;
2240
+ }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
2241
+ /** Node benchmark — delete one result; Auto tune and the shares stop reading it. */
2242
+ readonly deleteNodeBenchmarkResult: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
2243
+ id: z.ZodString;
2244
+ }, z.core.$strip>, z.ZodObject<{
2245
+ deleted: z.ZodBoolean;
2246
+ }, z.core.$strip>, "mutation">;
1863
2247
  /** Read one camera's settings. Null when never touched (inherits agent defaults fully). */
1864
2248
  readonly getCameraSettings: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
1865
2249
  deviceId: z.ZodNumber;
@@ -146,9 +146,9 @@ export type DetailResult = z.infer<typeof DetailResultSchema>;
146
146
  * spread the same failure.
147
147
  */
148
148
  declare const StatelessStepRefusalSchema: z.ZodEnum<{
149
+ "unreadable-frame": "unreadable-frame";
149
150
  "unknown-step": "unknown-step";
150
151
  "model-not-servable": "model-not-servable";
151
- "unreadable-frame": "unreadable-frame";
152
152
  "execution-failed": "execution-failed";
153
153
  }>;
154
154
  export type StatelessStepRefusal = z.infer<typeof StatelessStepRefusalSchema>;
@@ -1208,9 +1208,9 @@ export declare const pipelineRunnerCapability: {
1208
1208
  kind: z.ZodLiteral<"refused">;
1209
1209
  nodeId: z.ZodString;
1210
1210
  reason: z.ZodEnum<{
1211
+ "unreadable-frame": "unreadable-frame";
1211
1212
  "unknown-step": "unknown-step";
1212
1213
  "model-not-servable": "model-not-servable";
1213
- "unreadable-frame": "unreadable-frame";
1214
1214
  "execution-failed": "execution-failed";
1215
1215
  }>;
1216
1216
  detail: z.ZodString;
@@ -1318,6 +1318,149 @@ export declare const pipelineRunnerCapability: {
1318
1318
  }, z.core.$strip>, z.ZodObject<{
1319
1319
  released: z.ZodNumber;
1320
1320
  }, z.core.$strip>, "mutation">;
1321
+ /**
1322
+ * Start measuring THIS node for the orchestrator's node benchmark: the
1323
+ * bench clip decoded once into RAM, each device × candidate detector on an
1324
+ * open-loop ramp (`device`), then the chosen pipeline with the requested
1325
+ * detail steps (`pipeline`). Everything runs in-process with the executor
1326
+ * — no frame crosses a node (D9) — and writes nothing: no track, event,
1327
+ * media or notification. Reached by `nodePin(nodeId)`. Answers at once;
1328
+ * one run per node; the run stops itself at `deadlineAtMs`.
1329
+ */
1330
+ readonly startNodeBench: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
1331
+ runId: z.ZodString;
1332
+ devices: z.ZodArray<z.ZodObject<{
1333
+ deviceKey: z.ZodString;
1334
+ modelIds: z.ZodArray<z.ZodString>;
1335
+ }, z.core.$strip>>;
1336
+ phases: z.ZodArray<z.ZodEnum<{
1337
+ pipeline: "pipeline";
1338
+ device: "device";
1339
+ }>>;
1340
+ steps: z.ZodDefault<z.ZodArray<z.ZodString>>;
1341
+ fpsPerStream: z.ZodNumber;
1342
+ deadlineAtMs: z.ZodNumber;
1343
+ settleSec: z.ZodDefault<z.ZodNumber>;
1344
+ measureSec: z.ZodDefault<z.ZodNumber>;
1345
+ keepDownloadedModels: z.ZodDefault<z.ZodBoolean>;
1346
+ }, z.core.$strip>, z.ZodObject<{
1347
+ accepted: z.ZodLiteral<true>;
1348
+ runId: z.ZodString;
1349
+ }, z.core.$strip>, "mutation">;
1350
+ /** The run's progress and every finished cell; null when this runner does not know `runId`. */
1351
+ readonly getNodeBenchStatus: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
1352
+ runId: z.ZodString;
1353
+ }, z.core.$strip>, z.ZodNullable<z.ZodObject<{
1354
+ runId: z.ZodString;
1355
+ nodeId: z.ZodString;
1356
+ state: z.ZodEnum<{
1357
+ running: "running";
1358
+ done: "done";
1359
+ failed: "failed";
1360
+ aborted: "aborted";
1361
+ }>;
1362
+ progress: z.ZodNullable<z.ZodObject<{
1363
+ phase: z.ZodEnum<{
1364
+ pipeline: "pipeline";
1365
+ device: "device";
1366
+ preparing: "preparing";
1367
+ cleanup: "cleanup";
1368
+ }>;
1369
+ deviceKey: z.ZodNullable<z.ZodString>;
1370
+ modelId: z.ZodNullable<z.ZodString>;
1371
+ load: z.ZodNullable<z.ZodNumber>;
1372
+ cellsDone: z.ZodNumber;
1373
+ cellsTotal: z.ZodNumber;
1374
+ message: z.ZodString;
1375
+ }, z.core.$strip>>;
1376
+ cells: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1377
+ phase: z.ZodLiteral<"device">;
1378
+ deviceKey: z.ZodString;
1379
+ modelId: z.ZodString;
1380
+ p50Ms: z.ZodNumber;
1381
+ p95Ms: z.ZodNumber;
1382
+ p99Ms: z.ZodNumber;
1383
+ fps: z.ZodNumber;
1384
+ kMax: z.ZodNumber;
1385
+ limitedBy: z.ZodEnum<{
1386
+ errors: "errors";
1387
+ none: "none";
1388
+ cpu: "cpu";
1389
+ p95: "p95";
1390
+ drops: "drops";
1391
+ stall: "stall";
1392
+ ram: "ram";
1393
+ }>;
1394
+ warmupMs: z.ZodNumber;
1395
+ ramp: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1396
+ load: z.ZodNumber;
1397
+ pass: z.ZodBoolean;
1398
+ p95Ms: z.ZodNumber;
1399
+ dropRatio: z.ZodNumber;
1400
+ fps: z.ZodNumber;
1401
+ cpuPct: z.ZodNullable<z.ZodNumber>;
1402
+ ramFreePct: z.ZodNullable<z.ZodNumber>;
1403
+ failReasons: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1404
+ }, z.core.$strip>>>;
1405
+ }, z.core.$strip>, z.ZodObject<{
1406
+ phase: z.ZodLiteral<"pipeline">;
1407
+ deviceKey: z.ZodString;
1408
+ modelId: z.ZodString;
1409
+ steps: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1410
+ maxSessions: z.ZodNumber;
1411
+ limitedBy: z.ZodEnum<{
1412
+ errors: "errors";
1413
+ none: "none";
1414
+ cpu: "cpu";
1415
+ p95: "p95";
1416
+ drops: "drops";
1417
+ stall: "stall";
1418
+ ram: "ram";
1419
+ }>;
1420
+ stepsFired: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1421
+ warmupMs: z.ZodNumber;
1422
+ ramp: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1423
+ load: z.ZodNumber;
1424
+ pass: z.ZodBoolean;
1425
+ p95Ms: z.ZodNumber;
1426
+ dropRatio: z.ZodNumber;
1427
+ fps: z.ZodNumber;
1428
+ cpuPct: z.ZodNullable<z.ZodNumber>;
1429
+ ramFreePct: z.ZodNullable<z.ZodNumber>;
1430
+ failReasons: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1431
+ }, z.core.$strip>>>;
1432
+ }, z.core.$strip>], "phase">>>;
1433
+ fingerprint: z.ZodNullable<z.ZodObject<{
1434
+ pipelineVersion: z.ZodNullable<z.ZodString>;
1435
+ cpuModel: z.ZodNullable<z.ZodString>;
1436
+ ramGb: z.ZodNullable<z.ZodNumber>;
1437
+ os: z.ZodNullable<z.ZodString>;
1438
+ pools: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1439
+ runtime: z.ZodString;
1440
+ numWorkers: z.ZodNumber;
1441
+ concurrency: z.ZodNumber;
1442
+ batchMode: z.ZodString;
1443
+ }, z.core.$strip>>>;
1444
+ }, z.core.$strip>>;
1445
+ clip: z.ZodNullable<z.ZodObject<{
1446
+ id: z.ZodString;
1447
+ revision: z.ZodNullable<z.ZodString>;
1448
+ frames: z.ZodNumber;
1449
+ width: z.ZodNumber;
1450
+ height: z.ZodNumber;
1451
+ }, z.core.$strip>>;
1452
+ activeCameraIds: z.ZodReadonly<z.ZodArray<z.ZodNumber>>;
1453
+ deletedModels: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1454
+ error: z.ZodNullable<z.ZodString>;
1455
+ startedAtMs: z.ZodNumber;
1456
+ finishedAtMs: z.ZodNullable<z.ZodNumber>;
1457
+ }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
1458
+ /** Stop the run; what it finished is kept. */
1459
+ readonly abortNodeBench: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
1460
+ runId: z.ZodString;
1461
+ }, z.core.$strip>, z.ZodObject<{
1462
+ aborted: z.ZodBoolean;
1463
+ }, z.core.$strip>, "mutation">;
1321
1464
  };
1322
1465
  };
1323
1466
  export type IPipelineRunnerProvider = InferProvider<typeof pipelineRunnerCapability>;
@@ -133,8 +133,8 @@ export declare const storageCapability: {
133
133
  }>>;
134
134
  }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
135
135
  readonly upsertLocation: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
136
- id: z.ZodString;
137
136
  type: z.ZodString;
137
+ id: z.ZodString;
138
138
  nodeId: z.ZodOptional<z.ZodString>;
139
139
  mode: z.ZodOptional<z.ZodEnum<{
140
140
  readonly: "readonly";