@kazzle/app 0.1.700 → 0.1.702
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/tools.d.ts +19 -24
- package/package.json +1 -1
package/dist/tools.d.ts
CHANGED
|
@@ -25,36 +25,31 @@ export interface ToolInputButtonElement {
|
|
|
25
25
|
label: string;
|
|
26
26
|
input?: Record<string, unknown>;
|
|
27
27
|
target?: KazzleTarget;
|
|
28
|
+
/**
|
|
29
|
+
* Button styling. The single 'primary' button (or the last button when none is
|
|
30
|
+
* marked) is placed rightmost and bound to Cmd/Ctrl+Enter. 'destructive' styles
|
|
31
|
+
* dangerous actions. You never declare a cancel button — the framework adds a
|
|
32
|
+
* default negative (Skip/Cancel, bound to Esc) in the bottom-left automatically.
|
|
33
|
+
*/
|
|
34
|
+
variant?: 'primary' | 'secondary' | 'destructive';
|
|
28
35
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
required?: boolean;
|
|
35
|
-
} | {
|
|
36
|
-
type: 'select';
|
|
37
|
-
id: string;
|
|
38
|
-
label: string;
|
|
39
|
-
path: string;
|
|
40
|
-
options: Array<{
|
|
41
|
-
label: string;
|
|
42
|
-
value: string;
|
|
43
|
-
}>;
|
|
44
|
-
required?: boolean;
|
|
45
|
-
} | {
|
|
46
|
-
type: 'checkbox';
|
|
47
|
-
id: string;
|
|
48
|
-
label: string;
|
|
49
|
-
path: string;
|
|
50
|
-
required?: boolean;
|
|
51
|
-
};
|
|
52
|
-
export type ToolInputElement = ToolInputButtonElement | ToolInputControlElement;
|
|
36
|
+
/**
|
|
37
|
+
* A pending-input card element. Only buttons are rendered today; this stays a
|
|
38
|
+
* union so form controls can be added later alongside their renderer.
|
|
39
|
+
*/
|
|
40
|
+
export type ToolInputElement = ToolInputButtonElement;
|
|
53
41
|
export interface KazzlePendingInput {
|
|
54
42
|
type: 'pending_input';
|
|
55
43
|
title: string;
|
|
56
44
|
description?: string;
|
|
57
45
|
elements: ToolInputElement[];
|
|
46
|
+
/**
|
|
47
|
+
* Optional card lifetime in milliseconds. When set, the framework stamps an
|
|
48
|
+
* absolute expiry, shows a countdown, and auto-presses the default-negative
|
|
49
|
+
* (Skip) on the client OR headlessly on the server if no client is connected.
|
|
50
|
+
* Omit for a card that waits indefinitely (its default negative reads Cancel).
|
|
51
|
+
*/
|
|
52
|
+
timeoutMs?: number;
|
|
58
53
|
}
|
|
59
54
|
interface KazzleToolBase {
|
|
60
55
|
/** Provider-safe identifier: letters, numbers, underscores, or hyphens. */
|