@principal-ade/panel-layouts 0.2.8 → 0.2.9
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/index.d.ts +7 -1
- package/dist/index.esm.js +917 -844
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -56,6 +56,8 @@ export declare interface AgentCommandInputProps {
|
|
|
56
56
|
disabled?: boolean;
|
|
57
57
|
/** Auto-focus on mount */
|
|
58
58
|
autoFocus?: boolean;
|
|
59
|
+
/** Whether an AI agent is available */
|
|
60
|
+
agentAvailable?: boolean;
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
/**
|
|
@@ -1154,7 +1156,7 @@ export declare interface UpdateWorkspaceOptions {
|
|
|
1154
1156
|
* Hook for managing Agent Command Palette state and behavior
|
|
1155
1157
|
* Handles input, history navigation, tool execution tracking, and keyboard shortcuts
|
|
1156
1158
|
*/
|
|
1157
|
-
export declare function useAgentCommandPalette({ events, keyboard, config, onExecuteTool, initialSuggestions, }?: UseAgentCommandPaletteOptions): UseAgentCommandPaletteReturn;
|
|
1159
|
+
export declare function useAgentCommandPalette({ events, keyboard, config, onExecuteTool, initialSuggestions, agentAvailable, }?: UseAgentCommandPaletteOptions): UseAgentCommandPaletteReturn;
|
|
1158
1160
|
|
|
1159
1161
|
/**
|
|
1160
1162
|
* Options for the useAgentCommandPalette hook
|
|
@@ -1170,12 +1172,16 @@ export declare interface UseAgentCommandPaletteOptions {
|
|
|
1170
1172
|
onExecuteTool?: (name: string, args: Record<string, unknown>) => Promise<unknown>;
|
|
1171
1173
|
/** Initial suggestions to show */
|
|
1172
1174
|
initialSuggestions?: string[];
|
|
1175
|
+
/** Whether an AI agent is available (defaults to true). When false, only quick commands work. */
|
|
1176
|
+
agentAvailable?: boolean;
|
|
1173
1177
|
}
|
|
1174
1178
|
|
|
1175
1179
|
/**
|
|
1176
1180
|
* Return type for useAgentCommandPalette hook
|
|
1177
1181
|
*/
|
|
1178
1182
|
export declare interface UseAgentCommandPaletteReturn {
|
|
1183
|
+
/** Whether an AI agent is available */
|
|
1184
|
+
agentAvailable: boolean;
|
|
1179
1185
|
/** Whether the palette is open */
|
|
1180
1186
|
isOpen: boolean;
|
|
1181
1187
|
/** Open the palette */
|