@principal-ade/panel-layouts 0.2.7 → 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 +15 -1
- package/dist/index.esm.js +917 -839
- 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 */
|
|
@@ -1192,16 +1198,24 @@ export declare interface UseAgentCommandPaletteReturn {
|
|
|
1192
1198
|
mode: AgentCommandPaletteMode;
|
|
1193
1199
|
/** Current execution status */
|
|
1194
1200
|
status: AgentCommandPaletteStatus;
|
|
1201
|
+
/** Set the execution status (for external AI integration) */
|
|
1202
|
+
setStatus: (status: AgentCommandPaletteStatus) => void;
|
|
1195
1203
|
/** Tools being executed */
|
|
1196
1204
|
pendingTools: ToolExecution[];
|
|
1197
1205
|
/** Completed tools */
|
|
1198
1206
|
completedTools: ToolExecution[];
|
|
1199
1207
|
/** Agent's text response */
|
|
1200
1208
|
agentResponse: string;
|
|
1209
|
+
/** Set the agent response text (for external AI integration) */
|
|
1210
|
+
setAgentResponse: (response: string) => void;
|
|
1201
1211
|
/** Submit the current query for execution */
|
|
1202
1212
|
submit: () => void;
|
|
1203
1213
|
/** Execute a quick command directly */
|
|
1204
1214
|
executeQuickCommand: (command: string) => void;
|
|
1215
|
+
/** Add a tool to the pending list (for external AI integration) */
|
|
1216
|
+
addPendingTool: (tool: Omit<ToolExecution, 'status'>) => ToolExecution;
|
|
1217
|
+
/** Update a tool's status (for external AI integration) */
|
|
1218
|
+
updateToolStatus: (toolId: string, status: ToolExecution['status'], result?: string, error?: string) => void;
|
|
1205
1219
|
/** Command history */
|
|
1206
1220
|
history: CommandHistoryEntry[];
|
|
1207
1221
|
/** Navigate to previous history entry */
|