@camstack/types 1.2.138 → 1.2.139
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/capabilities/metrics-provider.cap.d.ts +1 -26
- package/dist/capabilities/pipeline-analytics.cap.d.ts +21 -0
- package/dist/generated/addon-api.d.ts +0 -7
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.js +4 -33
- package/dist/index.mjs +4 -33
- package/dist/interfaces/metrics-provider.d.ts +1 -3
- package/package.json +1 -1
|
@@ -235,15 +235,6 @@ declare const ContainerMemoryPointSchema: z.ZodObject<{
|
|
|
235
235
|
gpuShmemBytes: z.ZodNullable<z.ZodNumber>;
|
|
236
236
|
atMs: z.ZodNumber;
|
|
237
237
|
}, z.core.$strip>;
|
|
238
|
-
declare const DumpHeapSnapshotInputSchema: z.ZodObject<{
|
|
239
|
-
addonId: z.ZodString;
|
|
240
|
-
}, z.core.$strip>;
|
|
241
|
-
declare const DumpHeapSnapshotResultSchema: z.ZodObject<{
|
|
242
|
-
success: z.ZodBoolean;
|
|
243
|
-
path: z.ZodOptional<z.ZodString>;
|
|
244
|
-
pid: z.ZodOptional<z.ZodNumber>;
|
|
245
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
246
|
-
}, z.core.$strip>;
|
|
247
238
|
/**
|
|
248
239
|
* One point of one function's series.
|
|
249
240
|
*
|
|
@@ -714,23 +705,7 @@ export declare const metricsProviderCapability: {
|
|
|
714
705
|
cadenceMs: z.ZodNumber;
|
|
715
706
|
durable: z.ZodBoolean;
|
|
716
707
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
717
|
-
/**
|
|
718
|
-
* Tell the addon's forked runner to write a V8 heap snapshot to disk (via
|
|
719
|
-
* SIGUSR2 — the runner's diagnostic handler). Also logs its
|
|
720
|
-
* `process.memoryUsage()` + heap-space breakdown. Resolves the pid from
|
|
721
|
-
* `$process.list`, so it can only reach a runner this node spawned. Use
|
|
722
|
-
* for deep per-addon memory attribution; copy the returned path off the
|
|
723
|
-
* node to analyze.
|
|
724
|
-
*/
|
|
725
|
-
readonly dumpHeapSnapshot: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
726
|
-
addonId: z.ZodString;
|
|
727
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
728
|
-
success: z.ZodBoolean;
|
|
729
|
-
path: z.ZodOptional<z.ZodString>;
|
|
730
|
-
pid: z.ZodOptional<z.ZodNumber>;
|
|
731
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
732
|
-
}, z.core.$strip>, "mutation">;
|
|
733
708
|
};
|
|
734
709
|
};
|
|
735
710
|
export type IMetricsProvider = InferProvider<typeof metricsProviderCapability>;
|
|
736
|
-
export { SystemMetricsSchema, SystemResourceSnapshotSchema, DiskSpaceInfoSchema, MetricsGpuInfoSchema, PidResourceStatsSchema, AddonInstanceSchema, NodeProcessSchema,
|
|
711
|
+
export { SystemMetricsSchema, SystemResourceSnapshotSchema, DiskSpaceInfoSchema, MetricsGpuInfoSchema, PidResourceStatsSchema, AddonInstanceSchema, NodeProcessSchema, LoadPointSchema, LoadFunctionSeriesSchema, ContainerMemorySnapshotSchema, ContainerMemoryPointSchema, NodeLoadSeriesSchema, GetLoadSeriesInputSchema, CpuBreakdownSchema, MemoryInfoSchema, DiskIoSnapshotSchema, NetworkIoSnapshotSchema, ProcessResourceInfoSchema, PressureInfoSchema, };
|
|
@@ -617,6 +617,7 @@ declare const MediaFileKindEnum: z.ZodEnum<{
|
|
|
617
617
|
plateCrop: "plateCrop";
|
|
618
618
|
keyFrameSmall: "keyFrameSmall";
|
|
619
619
|
thumbnailSmall: "thumbnailSmall";
|
|
620
|
+
sceneFrame: "sceneFrame";
|
|
620
621
|
}>;
|
|
621
622
|
export type MediaFileKind = z.infer<typeof MediaFileKindEnum>;
|
|
622
623
|
/**
|
|
@@ -643,6 +644,7 @@ declare const MediaFileRefSchema: z.ZodObject<{
|
|
|
643
644
|
plateCrop: "plateCrop";
|
|
644
645
|
keyFrameSmall: "keyFrameSmall";
|
|
645
646
|
thumbnailSmall: "thumbnailSmall";
|
|
647
|
+
sceneFrame: "sceneFrame";
|
|
646
648
|
}>;
|
|
647
649
|
sizeBytes: z.ZodNumber;
|
|
648
650
|
timestamp: z.ZodNumber;
|
|
@@ -713,6 +715,7 @@ declare const MediaFileSchema: z.ZodObject<{
|
|
|
713
715
|
plateCrop: "plateCrop";
|
|
714
716
|
keyFrameSmall: "keyFrameSmall";
|
|
715
717
|
thumbnailSmall: "thumbnailSmall";
|
|
718
|
+
sceneFrame: "sceneFrame";
|
|
716
719
|
}>;
|
|
717
720
|
sizeBytes: z.ZodNumber;
|
|
718
721
|
timestamp: z.ZodNumber;
|
|
@@ -750,6 +753,7 @@ declare const MediaFileInfoSchema: z.ZodObject<{
|
|
|
750
753
|
plateCrop: "plateCrop";
|
|
751
754
|
keyFrameSmall: "keyFrameSmall";
|
|
752
755
|
thumbnailSmall: "thumbnailSmall";
|
|
756
|
+
sceneFrame: "sceneFrame";
|
|
753
757
|
}>;
|
|
754
758
|
url: z.ZodString;
|
|
755
759
|
sizeBytes: z.ZodNumber;
|
|
@@ -888,6 +892,7 @@ export declare const RetrainFrameCandidateSchema: z.ZodObject<{
|
|
|
888
892
|
plateCrop: "plateCrop";
|
|
889
893
|
keyFrameSmall: "keyFrameSmall";
|
|
890
894
|
thumbnailSmall: "thumbnailSmall";
|
|
895
|
+
sceneFrame: "sceneFrame";
|
|
891
896
|
}>;
|
|
892
897
|
timestamp: z.ZodNumber;
|
|
893
898
|
sizeBytes: z.ZodNumber;
|
|
@@ -913,6 +918,7 @@ export declare const RetrainFrameSchema: z.ZodObject<{
|
|
|
913
918
|
plateCrop: "plateCrop";
|
|
914
919
|
keyFrameSmall: "keyFrameSmall";
|
|
915
920
|
thumbnailSmall: "thumbnailSmall";
|
|
921
|
+
sceneFrame: "sceneFrame";
|
|
916
922
|
}>;
|
|
917
923
|
sizeBytes: z.ZodNumber;
|
|
918
924
|
width: z.ZodNumber;
|
|
@@ -945,6 +951,7 @@ export declare const RetrainFrameSelectionSchema: z.ZodObject<{
|
|
|
945
951
|
plateCrop: "plateCrop";
|
|
946
952
|
keyFrameSmall: "keyFrameSmall";
|
|
947
953
|
thumbnailSmall: "thumbnailSmall";
|
|
954
|
+
sceneFrame: "sceneFrame";
|
|
948
955
|
}>;
|
|
949
956
|
sizeBytes: z.ZodNumber;
|
|
950
957
|
width: z.ZodNumber;
|
|
@@ -977,6 +984,7 @@ export declare const RetrainFrameListSchema: z.ZodObject<{
|
|
|
977
984
|
plateCrop: "plateCrop";
|
|
978
985
|
keyFrameSmall: "keyFrameSmall";
|
|
979
986
|
thumbnailSmall: "thumbnailSmall";
|
|
987
|
+
sceneFrame: "sceneFrame";
|
|
980
988
|
}>;
|
|
981
989
|
timestamp: z.ZodNumber;
|
|
982
990
|
sizeBytes: z.ZodNumber;
|
|
@@ -1000,6 +1008,7 @@ export declare const RetrainFrameListSchema: z.ZodObject<{
|
|
|
1000
1008
|
plateCrop: "plateCrop";
|
|
1001
1009
|
keyFrameSmall: "keyFrameSmall";
|
|
1002
1010
|
thumbnailSmall: "thumbnailSmall";
|
|
1011
|
+
sceneFrame: "sceneFrame";
|
|
1003
1012
|
}>;
|
|
1004
1013
|
sizeBytes: z.ZodNumber;
|
|
1005
1014
|
width: z.ZodNumber;
|
|
@@ -1460,6 +1469,7 @@ declare const EventMediaKindFootprintSchema: z.ZodObject<{
|
|
|
1460
1469
|
plateCrop: "plateCrop";
|
|
1461
1470
|
keyFrameSmall: "keyFrameSmall";
|
|
1462
1471
|
thumbnailSmall: "thumbnailSmall";
|
|
1472
|
+
sceneFrame: "sceneFrame";
|
|
1463
1473
|
}>;
|
|
1464
1474
|
rows: z.ZodNumber;
|
|
1465
1475
|
bytes: z.ZodNumber;
|
|
@@ -1506,6 +1516,7 @@ declare const EventMediaKindBreakdownSchema: z.ZodObject<{
|
|
|
1506
1516
|
plateCrop: "plateCrop";
|
|
1507
1517
|
keyFrameSmall: "keyFrameSmall";
|
|
1508
1518
|
thumbnailSmall: "thumbnailSmall";
|
|
1519
|
+
sceneFrame: "sceneFrame";
|
|
1509
1520
|
}>;
|
|
1510
1521
|
rows: z.ZodNumber;
|
|
1511
1522
|
bytes: z.ZodNumber;
|
|
@@ -2589,6 +2600,7 @@ export declare const pipelineAnalyticsCapability: {
|
|
|
2589
2600
|
plateCrop: "plateCrop";
|
|
2590
2601
|
keyFrameSmall: "keyFrameSmall";
|
|
2591
2602
|
thumbnailSmall: "thumbnailSmall";
|
|
2603
|
+
sceneFrame: "sceneFrame";
|
|
2592
2604
|
}>;
|
|
2593
2605
|
rows: z.ZodNumber;
|
|
2594
2606
|
bytes: z.ZodNumber;
|
|
@@ -2980,6 +2992,7 @@ export declare const pipelineAnalyticsCapability: {
|
|
|
2980
2992
|
plateCrop: "plateCrop";
|
|
2981
2993
|
keyFrameSmall: "keyFrameSmall";
|
|
2982
2994
|
thumbnailSmall: "thumbnailSmall";
|
|
2995
|
+
sceneFrame: "sceneFrame";
|
|
2983
2996
|
}>;
|
|
2984
2997
|
timestamp: z.ZodNumber;
|
|
2985
2998
|
sizeBytes: z.ZodNumber;
|
|
@@ -3003,6 +3016,7 @@ export declare const pipelineAnalyticsCapability: {
|
|
|
3003
3016
|
plateCrop: "plateCrop";
|
|
3004
3017
|
keyFrameSmall: "keyFrameSmall";
|
|
3005
3018
|
thumbnailSmall: "thumbnailSmall";
|
|
3019
|
+
sceneFrame: "sceneFrame";
|
|
3006
3020
|
}>;
|
|
3007
3021
|
sizeBytes: z.ZodNumber;
|
|
3008
3022
|
width: z.ZodNumber;
|
|
@@ -3048,6 +3062,7 @@ export declare const pipelineAnalyticsCapability: {
|
|
|
3048
3062
|
plateCrop: "plateCrop";
|
|
3049
3063
|
keyFrameSmall: "keyFrameSmall";
|
|
3050
3064
|
thumbnailSmall: "thumbnailSmall";
|
|
3065
|
+
sceneFrame: "sceneFrame";
|
|
3051
3066
|
}>;
|
|
3052
3067
|
sizeBytes: z.ZodNumber;
|
|
3053
3068
|
width: z.ZodNumber;
|
|
@@ -3434,6 +3449,7 @@ export declare const pipelineAnalyticsCapability: {
|
|
|
3434
3449
|
plateCrop: "plateCrop";
|
|
3435
3450
|
keyFrameSmall: "keyFrameSmall";
|
|
3436
3451
|
thumbnailSmall: "thumbnailSmall";
|
|
3452
|
+
sceneFrame: "sceneFrame";
|
|
3437
3453
|
}>>;
|
|
3438
3454
|
deviceId: z.ZodNumber;
|
|
3439
3455
|
}, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
@@ -3451,6 +3467,7 @@ export declare const pipelineAnalyticsCapability: {
|
|
|
3451
3467
|
plateCrop: "plateCrop";
|
|
3452
3468
|
keyFrameSmall: "keyFrameSmall";
|
|
3453
3469
|
thumbnailSmall: "thumbnailSmall";
|
|
3470
|
+
sceneFrame: "sceneFrame";
|
|
3454
3471
|
}>;
|
|
3455
3472
|
sizeBytes: z.ZodNumber;
|
|
3456
3473
|
timestamp: z.ZodNumber;
|
|
@@ -3476,6 +3493,7 @@ export declare const pipelineAnalyticsCapability: {
|
|
|
3476
3493
|
plateCrop: "plateCrop";
|
|
3477
3494
|
keyFrameSmall: "keyFrameSmall";
|
|
3478
3495
|
thumbnailSmall: "thumbnailSmall";
|
|
3496
|
+
sceneFrame: "sceneFrame";
|
|
3479
3497
|
}>>>;
|
|
3480
3498
|
deviceId: z.ZodNumber;
|
|
3481
3499
|
}, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
@@ -3493,6 +3511,7 @@ export declare const pipelineAnalyticsCapability: {
|
|
|
3493
3511
|
plateCrop: "plateCrop";
|
|
3494
3512
|
keyFrameSmall: "keyFrameSmall";
|
|
3495
3513
|
thumbnailSmall: "thumbnailSmall";
|
|
3514
|
+
sceneFrame: "sceneFrame";
|
|
3496
3515
|
}>;
|
|
3497
3516
|
sizeBytes: z.ZodNumber;
|
|
3498
3517
|
timestamp: z.ZodNumber;
|
|
@@ -3533,6 +3552,7 @@ export declare const pipelineAnalyticsCapability: {
|
|
|
3533
3552
|
plateCrop: "plateCrop";
|
|
3534
3553
|
keyFrameSmall: "keyFrameSmall";
|
|
3535
3554
|
thumbnailSmall: "thumbnailSmall";
|
|
3555
|
+
sceneFrame: "sceneFrame";
|
|
3536
3556
|
}>;
|
|
3537
3557
|
url: z.ZodString;
|
|
3538
3558
|
sizeBytes: z.ZodNumber;
|
|
@@ -3572,6 +3592,7 @@ export declare const pipelineAnalyticsCapability: {
|
|
|
3572
3592
|
plateCrop: "plateCrop";
|
|
3573
3593
|
keyFrameSmall: "keyFrameSmall";
|
|
3574
3594
|
thumbnailSmall: "thumbnailSmall";
|
|
3595
|
+
sceneFrame: "sceneFrame";
|
|
3575
3596
|
}>;
|
|
3576
3597
|
url: z.ZodString;
|
|
3577
3598
|
sizeBytes: z.ZodNumber;
|
|
@@ -4063,13 +4063,6 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
4063
4063
|
output: z.infer<typeof metricsProviderCapability.methods.getLoadSeries.output>;
|
|
4064
4064
|
meta: object;
|
|
4065
4065
|
}>;
|
|
4066
|
-
dumpHeapSnapshot: TRPCMutationProcedure<{
|
|
4067
|
-
input: {
|
|
4068
|
-
[x: string]: unknown;
|
|
4069
|
-
} & z.input<typeof metricsProviderCapability.methods.dumpHeapSnapshot.input>;
|
|
4070
|
-
output: z.infer<typeof metricsProviderCapability.methods.dumpHeapSnapshot.output>;
|
|
4071
|
-
meta: object;
|
|
4072
|
-
}>;
|
|
4073
4066
|
}>>;
|
|
4074
4067
|
modelConvert: TRPCBuiltRouter<{
|
|
4075
4068
|
ctx: TrpcContext;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* scope+access check inside `protectedProcedure` (see
|
|
7
7
|
* `server/backend/src/api/trpc/trpc.middleware.ts`).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
9
|
+
* Coverage: 1002 method paths across 126 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
|
@@ -76,7 +76,7 @@ export interface SystemProxy {
|
|
|
76
76
|
readonly llm: Pick<InferProvider<typeof llmCapability>, 'generate' | 'generateVision' | 'cancel' | 'listProfileKinds' | 'listProfiles' | 'upsertProfile' | 'deleteProfile' | 'testProfile' | 'listModels' | 'getDefaults' | 'setDefault' | 'getUsage' | 'listModelCatalog' | 'listRuntimeNodes' | 'listNodeModels' | 'resolveModelRef' | 'installModel' | 'deleteModel' | 'getRuntimeStatus' | 'startRuntime' | 'stopRuntime'>;
|
|
77
77
|
readonly localNetwork: Pick<InferProvider<typeof localNetworkCapability>, 'list' | 'getPreferred' | 'getConnectionEndpoints' | 'getNotificationEndpoint' | 'setNotificationEndpoint' | 'getViewerEndpoints' | 'setViewerEndpoints' | 'getAllowedAddresses' | 'setAllowedAddresses' | 'resetAllowlistToBestMatch' | 'getTlsStatus' | 'regenerateCertificate' | 'uploadCertificate' | 'downloadCa' | 'revertToGeneratedCertificate'>;
|
|
78
78
|
readonly meshNetwork: Pick<InferProvider<typeof meshNetworkCapability>, 'getStatus' | 'join' | 'startLogin' | 'leave' | 'logout' | 'listPeers' | 'testConnection'>;
|
|
79
|
-
readonly metricsProvider: Pick<InferProvider<typeof metricsProviderCapability>, 'collectSnapshot' | 'getCached' | 'getCurrent' | 'getDiskSpace' | 'getGpuInfo' | 'getCpuTemperature' | 'getProcessStats' | 'listAddonInstances' | 'getAddonStats' | 'listNodeProcesses' | 'getLoadSeries'
|
|
79
|
+
readonly metricsProvider: Pick<InferProvider<typeof metricsProviderCapability>, 'collectSnapshot' | 'getCached' | 'getCurrent' | 'getDiskSpace' | 'getGpuInfo' | 'getCpuTemperature' | 'getProcessStats' | 'listAddonInstances' | 'getAddonStats' | 'listNodeProcesses' | 'getLoadSeries'>;
|
|
80
80
|
readonly mqttBroker: Pick<InferProvider<typeof mqttBrokerCapability>, 'listBrokers' | 'getBrokerConfig' | 'addBroker' | 'removeBroker' | 'testConnection' | 'startEmbeddedBroker' | 'stopEmbeddedBroker' | 'getStatus'>;
|
|
81
81
|
readonly networkAccess: Pick<InferProvider<typeof networkAccessCapability>, 'start' | 'stop' | 'getEndpoint' | 'getStatus' | 'listEndpoints'>;
|
|
82
82
|
readonly networkQuality: Pick<InferProvider<typeof networkQualityCapability>, 'getAllStats'>;
|
package/dist/index.js
CHANGED
|
@@ -12649,17 +12649,6 @@ var ContainerMemoryPointSchema = zod.z.object({
|
|
|
12649
12649
|
*/
|
|
12650
12650
|
gpuShmemBytes: zod.z.number().nullable()
|
|
12651
12651
|
}).extend({ atMs: zod.z.number() });
|
|
12652
|
-
var DumpHeapSnapshotInputSchema = zod.z.object({
|
|
12653
|
-
/** The addon whose runner should dump a heap snapshot. */
|
|
12654
|
-
addonId: zod.z.string() });
|
|
12655
|
-
var DumpHeapSnapshotResultSchema = zod.z.object({
|
|
12656
|
-
success: zod.z.boolean(),
|
|
12657
|
-
/** Path of the written .heapsnapshot inside the runner's container/host. */
|
|
12658
|
-
path: zod.z.string().optional(),
|
|
12659
|
-
/** Process pid that was signalled. */
|
|
12660
|
-
pid: zod.z.number().optional(),
|
|
12661
|
-
reason: zod.z.string().optional()
|
|
12662
|
-
});
|
|
12663
12652
|
/**
|
|
12664
12653
|
* One point of one function's series.
|
|
12665
12654
|
*
|
|
@@ -12848,19 +12837,7 @@ var metricsProviderCapability = {
|
|
|
12848
12837
|
* agent's ring alone (`durable: false`). Empty is a legitimate answer: a
|
|
12849
12838
|
* node nobody has heard from has no series, and saying so is the truth.
|
|
12850
12839
|
*/
|
|
12851
|
-
getLoadSeries: require_sleep.method(GetLoadSeriesInputSchema, NodeLoadSeriesSchema)
|
|
12852
|
-
/**
|
|
12853
|
-
* Tell the addon's forked runner to write a V8 heap snapshot to disk (via
|
|
12854
|
-
* SIGUSR2 — the runner's diagnostic handler). Also logs its
|
|
12855
|
-
* `process.memoryUsage()` + heap-space breakdown. Resolves the pid from
|
|
12856
|
-
* `$process.list`, so it can only reach a runner this node spawned. Use
|
|
12857
|
-
* for deep per-addon memory attribution; copy the returned path off the
|
|
12858
|
-
* node to analyze.
|
|
12859
|
-
*/
|
|
12860
|
-
dumpHeapSnapshot: require_sleep.method(DumpHeapSnapshotInputSchema, DumpHeapSnapshotResultSchema, {
|
|
12861
|
-
kind: "mutation",
|
|
12862
|
-
auth: "admin"
|
|
12863
|
-
})
|
|
12840
|
+
getLoadSeries: require_sleep.method(GetLoadSeriesInputSchema, NodeLoadSeriesSchema)
|
|
12864
12841
|
}
|
|
12865
12842
|
};
|
|
12866
12843
|
//#endregion
|
|
@@ -18533,7 +18510,8 @@ var MediaFileKindEnum = zod.z.enum([
|
|
|
18533
18510
|
"plateCrop",
|
|
18534
18511
|
"keyFrame",
|
|
18535
18512
|
"keyFrameSmall",
|
|
18536
|
-
"thumbnailSmall"
|
|
18513
|
+
"thumbnailSmall",
|
|
18514
|
+
"sceneFrame"
|
|
18537
18515
|
]);
|
|
18538
18516
|
/**
|
|
18539
18517
|
* One media row's IDENTITY and shape, with no representation of its bytes.
|
|
@@ -41582,12 +41560,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
41582
41560
|
addonId: null,
|
|
41583
41561
|
access: "view"
|
|
41584
41562
|
},
|
|
41585
|
-
"metricsProvider.dumpHeapSnapshot": {
|
|
41586
|
-
capName: "metrics-provider",
|
|
41587
|
-
capScope: "system",
|
|
41588
|
-
addonId: null,
|
|
41589
|
-
access: "create"
|
|
41590
|
-
},
|
|
41591
41563
|
"metricsProvider.getAddonStats": {
|
|
41592
41564
|
capName: "metrics-provider",
|
|
41593
41565
|
capScope: "system",
|
|
@@ -48004,8 +47976,7 @@ function createSystemProxy(api) {
|
|
|
48004
47976
|
listAddonInstances: (input) => dispatch("metricsProvider", "listAddonInstances", "query", input),
|
|
48005
47977
|
getAddonStats: (input) => dispatch("metricsProvider", "getAddonStats", "query", input),
|
|
48006
47978
|
listNodeProcesses: (input) => dispatch("metricsProvider", "listNodeProcesses", "query", input),
|
|
48007
|
-
getLoadSeries: (input) => dispatch("metricsProvider", "getLoadSeries", "query", input)
|
|
48008
|
-
dumpHeapSnapshot: (input) => dispatch("metricsProvider", "dumpHeapSnapshot", "mutation", input)
|
|
47979
|
+
getLoadSeries: (input) => dispatch("metricsProvider", "getLoadSeries", "query", input)
|
|
48009
47980
|
},
|
|
48010
47981
|
mqttBroker: {
|
|
48011
47982
|
listBrokers: (input) => dispatch("mqttBroker", "listBrokers", "query", input),
|
package/dist/index.mjs
CHANGED
|
@@ -12648,17 +12648,6 @@ var ContainerMemoryPointSchema = z.object({
|
|
|
12648
12648
|
*/
|
|
12649
12649
|
gpuShmemBytes: z.number().nullable()
|
|
12650
12650
|
}).extend({ atMs: z.number() });
|
|
12651
|
-
var DumpHeapSnapshotInputSchema = z.object({
|
|
12652
|
-
/** The addon whose runner should dump a heap snapshot. */
|
|
12653
|
-
addonId: z.string() });
|
|
12654
|
-
var DumpHeapSnapshotResultSchema = z.object({
|
|
12655
|
-
success: z.boolean(),
|
|
12656
|
-
/** Path of the written .heapsnapshot inside the runner's container/host. */
|
|
12657
|
-
path: z.string().optional(),
|
|
12658
|
-
/** Process pid that was signalled. */
|
|
12659
|
-
pid: z.number().optional(),
|
|
12660
|
-
reason: z.string().optional()
|
|
12661
|
-
});
|
|
12662
12651
|
/**
|
|
12663
12652
|
* One point of one function's series.
|
|
12664
12653
|
*
|
|
@@ -12847,19 +12836,7 @@ var metricsProviderCapability = {
|
|
|
12847
12836
|
* agent's ring alone (`durable: false`). Empty is a legitimate answer: a
|
|
12848
12837
|
* node nobody has heard from has no series, and saying so is the truth.
|
|
12849
12838
|
*/
|
|
12850
|
-
getLoadSeries: method(GetLoadSeriesInputSchema, NodeLoadSeriesSchema)
|
|
12851
|
-
/**
|
|
12852
|
-
* Tell the addon's forked runner to write a V8 heap snapshot to disk (via
|
|
12853
|
-
* SIGUSR2 — the runner's diagnostic handler). Also logs its
|
|
12854
|
-
* `process.memoryUsage()` + heap-space breakdown. Resolves the pid from
|
|
12855
|
-
* `$process.list`, so it can only reach a runner this node spawned. Use
|
|
12856
|
-
* for deep per-addon memory attribution; copy the returned path off the
|
|
12857
|
-
* node to analyze.
|
|
12858
|
-
*/
|
|
12859
|
-
dumpHeapSnapshot: method(DumpHeapSnapshotInputSchema, DumpHeapSnapshotResultSchema, {
|
|
12860
|
-
kind: "mutation",
|
|
12861
|
-
auth: "admin"
|
|
12862
|
-
})
|
|
12839
|
+
getLoadSeries: method(GetLoadSeriesInputSchema, NodeLoadSeriesSchema)
|
|
12863
12840
|
}
|
|
12864
12841
|
};
|
|
12865
12842
|
//#endregion
|
|
@@ -18532,7 +18509,8 @@ var MediaFileKindEnum = z.enum([
|
|
|
18532
18509
|
"plateCrop",
|
|
18533
18510
|
"keyFrame",
|
|
18534
18511
|
"keyFrameSmall",
|
|
18535
|
-
"thumbnailSmall"
|
|
18512
|
+
"thumbnailSmall",
|
|
18513
|
+
"sceneFrame"
|
|
18536
18514
|
]);
|
|
18537
18515
|
/**
|
|
18538
18516
|
* One media row's IDENTITY and shape, with no representation of its bytes.
|
|
@@ -41574,12 +41552,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
41574
41552
|
addonId: null,
|
|
41575
41553
|
access: "view"
|
|
41576
41554
|
},
|
|
41577
|
-
"metricsProvider.dumpHeapSnapshot": {
|
|
41578
|
-
capName: "metrics-provider",
|
|
41579
|
-
capScope: "system",
|
|
41580
|
-
addonId: null,
|
|
41581
|
-
access: "create"
|
|
41582
|
-
},
|
|
41583
41555
|
"metricsProvider.getAddonStats": {
|
|
41584
41556
|
capName: "metrics-provider",
|
|
41585
41557
|
capScope: "system",
|
|
@@ -47996,8 +47968,7 @@ function createSystemProxy(api) {
|
|
|
47996
47968
|
listAddonInstances: (input) => dispatch("metricsProvider", "listAddonInstances", "query", input),
|
|
47997
47969
|
getAddonStats: (input) => dispatch("metricsProvider", "getAddonStats", "query", input),
|
|
47998
47970
|
listNodeProcesses: (input) => dispatch("metricsProvider", "listNodeProcesses", "query", input),
|
|
47999
|
-
getLoadSeries: (input) => dispatch("metricsProvider", "getLoadSeries", "query", input)
|
|
48000
|
-
dumpHeapSnapshot: (input) => dispatch("metricsProvider", "dumpHeapSnapshot", "mutation", input)
|
|
47971
|
+
getLoadSeries: (input) => dispatch("metricsProvider", "getLoadSeries", "query", input)
|
|
48001
47972
|
},
|
|
48002
47973
|
mqttBroker: {
|
|
48003
47974
|
listBrokers: (input) => dispatch("mqttBroker", "listBrokers", "query", input),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { z } from 'zod';
|
|
2
|
-
import type { CpuBreakdownSchema, MemoryInfoSchema, DiskIoSnapshotSchema, NetworkIoSnapshotSchema, MetricsGpuInfoSchema, ProcessResourceInfoSchema, PressureInfoSchema, SystemResourceSnapshotSchema, DiskSpaceInfoSchema, PidResourceStatsSchema, AddonInstanceSchema, NodeProcessSchema,
|
|
2
|
+
import type { CpuBreakdownSchema, MemoryInfoSchema, DiskIoSnapshotSchema, NetworkIoSnapshotSchema, MetricsGpuInfoSchema, ProcessResourceInfoSchema, PressureInfoSchema, SystemResourceSnapshotSchema, DiskSpaceInfoSchema, PidResourceStatsSchema, AddonInstanceSchema, NodeProcessSchema, LoadPointSchema, LoadFunctionSeriesSchema, ContainerMemorySnapshotSchema, ContainerMemoryPointSchema, NodeLoadSeriesSchema, GetLoadSeriesInputSchema } from '../capabilities/metrics-provider.cap.js';
|
|
3
3
|
export type CpuBreakdown = z.infer<typeof CpuBreakdownSchema>;
|
|
4
4
|
export type MemoryInfo = z.infer<typeof MemoryInfoSchema>;
|
|
5
5
|
export type DiskIoSnapshot = z.infer<typeof DiskIoSnapshotSchema>;
|
|
@@ -12,8 +12,6 @@ export type DiskSpaceInfo = z.infer<typeof DiskSpaceInfoSchema>;
|
|
|
12
12
|
export type PidResourceStats = z.infer<typeof PidResourceStatsSchema>;
|
|
13
13
|
export type AddonInstance = z.infer<typeof AddonInstanceSchema>;
|
|
14
14
|
export type NodeProcess = z.infer<typeof NodeProcessSchema>;
|
|
15
|
-
export type DumpHeapSnapshotInput = z.infer<typeof DumpHeapSnapshotInputSchema>;
|
|
16
|
-
export type DumpHeapSnapshotResult = z.infer<typeof DumpHeapSnapshotResultSchema>;
|
|
17
15
|
export type LoadSeriesPoint = z.infer<typeof LoadPointSchema>;
|
|
18
16
|
export type LoadFunctionSeries = z.infer<typeof LoadFunctionSeriesSchema>;
|
|
19
17
|
export type ContainerMemorySnapshot = z.infer<typeof ContainerMemorySnapshotSchema>;
|