Add presentation hint for quiet managed hooks

This commit is contained in:
Abhinav Vedmala
2026-05-13 12:14:03 +00:00
parent 27e67a8c2a
commit c2a65edb6e
37 changed files with 465 additions and 1 deletions
@@ -1873,6 +1873,14 @@
"string",
"null"
]
},
"visibilityHint": {
"allOf": [
{
"$ref": "#/definitions/HookVisibilityHint"
}
],
"default": "default"
}
},
"required": [
@@ -1932,6 +1940,13 @@
],
"type": "object"
},
"HookVisibilityHint": {
"enum": [
"default",
"hidden"
],
"type": "string"
},
"ItemCompletedNotification": {
"properties": {
"completedAtMs": {
@@ -9787,6 +9787,14 @@
"string",
"null"
]
},
"visibilityHint": {
"allOf": [
{
"$ref": "#/definitions/v2/HookVisibilityHint"
}
],
"default": "default"
}
},
"required": [
@@ -9857,6 +9865,13 @@
],
"type": "string"
},
"HookVisibilityHint": {
"enum": [
"default",
"hidden"
],
"type": "string"
},
"HooksListEntry": {
"properties": {
"cwd": {
@@ -6287,6 +6287,14 @@
"string",
"null"
]
},
"visibilityHint": {
"allOf": [
{
"$ref": "#/definitions/HookVisibilityHint"
}
],
"default": "default"
}
},
"required": [
@@ -6357,6 +6365,13 @@
],
"type": "string"
},
"HookVisibilityHint": {
"enum": [
"default",
"hidden"
],
"type": "string"
},
"HooksListEntry": {
"properties": {
"cwd": {
@@ -132,6 +132,14 @@
"string",
"null"
]
},
"visibilityHint": {
"allOf": [
{
"$ref": "#/definitions/HookVisibilityHint"
}
],
"default": "default"
}
},
"required": [
@@ -169,6 +177,13 @@
"unknown"
],
"type": "string"
},
"HookVisibilityHint": {
"enum": [
"default",
"hidden"
],
"type": "string"
}
},
"properties": {
@@ -132,6 +132,14 @@
"string",
"null"
]
},
"visibilityHint": {
"allOf": [
{
"$ref": "#/definitions/HookVisibilityHint"
}
],
"default": "default"
}
},
"required": [
@@ -169,6 +177,13 @@
"unknown"
],
"type": "string"
},
"HookVisibilityHint": {
"enum": [
"default",
"hidden"
],
"type": "string"
}
},
"properties": {
@@ -9,5 +9,6 @@ import type { HookOutputEntry } from "./HookOutputEntry";
import type { HookRunStatus } from "./HookRunStatus";
import type { HookScope } from "./HookScope";
import type { HookSource } from "./HookSource";
import type { HookVisibilityHint } from "./HookVisibilityHint";
export type HookRunSummary = { id: string, eventName: HookEventName, handlerType: HookHandlerType, executionMode: HookExecutionMode, scope: HookScope, sourcePath: AbsolutePathBuf, source: HookSource, displayOrder: bigint, status: HookRunStatus, statusMessage: string | null, startedAt: bigint, completedAt: bigint | null, durationMs: bigint | null, entries: Array<HookOutputEntry>, };
export type HookRunSummary = { id: string, eventName: HookEventName, handlerType: HookHandlerType, executionMode: HookExecutionMode, scope: HookScope, sourcePath: AbsolutePathBuf, source: HookSource, displayOrder: bigint, status: HookRunStatus, statusMessage: string | null, visibilityHint: HookVisibilityHint, startedAt: bigint, completedAt: bigint | null, durationMs: bigint | null, entries: Array<HookOutputEntry>, };
@@ -0,0 +1,5 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type HookVisibilityHint = "default" | "hidden";
@@ -161,6 +161,7 @@ export type { HookScope } from "./HookScope";
export type { HookSource } from "./HookSource";
export type { HookStartedNotification } from "./HookStartedNotification";
export type { HookTrustStatus } from "./HookTrustStatus";
export type { HookVisibilityHint } from "./HookVisibilityHint";
export type { HooksListEntry } from "./HooksListEntry";
export type { HooksListParams } from "./HooksListParams";
export type { HooksListResponse } from "./HooksListResponse";