fix(runtime): make observed target role optional

This commit is contained in:
morluto committed 2026-09-29 08:20:18 +08:00
1 parent 0ae3c0837b
commit 593a8e12ce
8 files changed
+56 -13

No files matched your search

+5 -3
View File
@@ -41,9 +41,11 @@ const listOptionsSchema = z.object({ ...scopeOptions });
const observeOptionsSchema = z.object({
...scopeOptions,
runtimeKind: javascriptRuntimeKindSchema.describe(
"Declared target role; Inspector cannot authenticate the Electron role",
),
runtimeKind: javascriptRuntimeKindSchema
.optional()
.describe(
"Declared target role; Inspector cannot authenticate the Electron role",
),
observationMs: z
.number()
.int()