@kazzle/app 0.1.700 → 0.1.701

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 (2) hide show
  1. package/dist/tools.d.ts +14 -0
  2. package/package.json +1 -1
package/dist/tools.d.ts CHANGED
@@ -25,6 +25,13 @@ 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
36
  export type ToolInputControlElement = {
30
37
  type: 'text';
@@ -55,6 +62,13 @@ export interface KazzlePendingInput {
55
62
  title: string;
56
63
  description?: string;
57
64
  elements: ToolInputElement[];
65
+ /**
66
+ * Optional card lifetime in milliseconds. When set, the framework stamps an
67
+ * absolute expiry, shows a countdown, and auto-presses the default-negative
68
+ * (Skip) on the client OR headlessly on the server if no client is connected.
69
+ * Omit for a card that waits indefinitely (its default negative reads Cancel).
70
+ */
71
+ timeoutMs?: number;
58
72
  }
59
73
  interface KazzleToolBase {
60
74
  /** Provider-safe identifier: letters, numbers, underscores, or hyphens. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kazzle/app",
3
- "version": "0.1.700",
3
+ "version": "0.1.701",
4
4
  "description": "Contracts, tool helpers, Vite helper, and templates for building Kazzle apps.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {