207 lines
6.0 KiB
TypeScript
207 lines
6.0 KiB
TypeScript
import * as lit from "lit";
|
|
import { LitElement } from "lit";
|
|
import { CopilotKitCore } from "@copilotkitnext/core";
|
|
|
|
//#region src/index.d.ts
|
|
declare const WEB_INSPECTOR_TAG: "cpk-web-inspector";
|
|
declare class WebInspectorElement extends LitElement {
|
|
static properties: {
|
|
readonly core: {
|
|
readonly attribute: false;
|
|
};
|
|
readonly autoAttachCore: {
|
|
readonly type: BooleanConstructor;
|
|
readonly attribute: "auto-attach-core";
|
|
};
|
|
};
|
|
private _core;
|
|
private coreSubscriber;
|
|
private coreUnsubscribe;
|
|
private runtimeStatus;
|
|
private coreProperties;
|
|
private lastCoreError;
|
|
private agentSubscriptions;
|
|
private agentEvents;
|
|
private agentMessages;
|
|
private agentStates;
|
|
private flattenedEvents;
|
|
private eventCounter;
|
|
private contextStore;
|
|
private pointerId;
|
|
private dragStart;
|
|
private dragOffset;
|
|
private isDragging;
|
|
private pointerContext;
|
|
private isOpen;
|
|
private draggedDuringInteraction;
|
|
private ignoreNextButtonClick;
|
|
private selectedMenu;
|
|
private contextMenuOpen;
|
|
private dockMode;
|
|
private previousBodyMargins;
|
|
private transitionTimeoutId;
|
|
private pendingSelectedContext;
|
|
private autoAttachCore;
|
|
private attemptedAutoAttach;
|
|
private cachedTools;
|
|
private toolSignature;
|
|
private eventFilterText;
|
|
private eventTypeFilter;
|
|
private announcementMarkdown;
|
|
private announcementHtml;
|
|
private announcementTimestamp;
|
|
private announcementPreviewText;
|
|
private hasUnseenAnnouncement;
|
|
private announcementLoaded;
|
|
private announcementLoadError;
|
|
private announcementPromise;
|
|
private showAnnouncementPreview;
|
|
get core(): CopilotKitCore | null;
|
|
set core(value: CopilotKitCore | null);
|
|
private readonly contextState;
|
|
private hasCustomPosition;
|
|
private resizePointerId;
|
|
private resizeStart;
|
|
private resizeInitialSize;
|
|
private isResizing;
|
|
private readonly menuItems;
|
|
private attachToCore;
|
|
private detachFromCore;
|
|
private teardownAgentSubscriptions;
|
|
private processAgentsChanged;
|
|
private refreshToolsSnapshot;
|
|
private tryAutoAttachCore;
|
|
private subscribeToAgent;
|
|
private unsubscribeFromAgent;
|
|
private recordAgentEvent;
|
|
private syncAgentMessages;
|
|
private syncAgentState;
|
|
private updateContextOptions;
|
|
private getEventsForSelectedContext;
|
|
private filterEvents;
|
|
private getLatestStateForAgent;
|
|
private getLatestMessagesForAgent;
|
|
private getAgentStatus;
|
|
private getAgentStats;
|
|
private renderToolCallDetails;
|
|
private formatToolCallArguments;
|
|
private hasRenderableState;
|
|
private formatStateForDisplay;
|
|
private getEventBadgeClasses;
|
|
private stringifyPayload;
|
|
private extractEventFromPayload;
|
|
private copyToClipboard;
|
|
static styles: lit.CSSResult[];
|
|
connectedCallback(): void;
|
|
disconnectedCallback(): void;
|
|
firstUpdated(): void;
|
|
render(): lit.TemplateResult<1>;
|
|
private renderButton;
|
|
private renderWindow;
|
|
private hydrateStateFromStorageEarly;
|
|
private hydrateStateFromStorage;
|
|
private get activeContext();
|
|
private handlePointerDown;
|
|
private handlePointerMove;
|
|
private handlePointerUp;
|
|
private handlePointerCancel;
|
|
private handleButtonClick;
|
|
private handleClosePointerDown;
|
|
private handleCloseClick;
|
|
private handleResizePointerDown;
|
|
private handleResizePointerMove;
|
|
private handleResizePointerUp;
|
|
private handleResizePointerCancel;
|
|
private handleResize;
|
|
private measureContext;
|
|
private centerContext;
|
|
private ensureWindowPlacement;
|
|
private constrainToViewport;
|
|
private keepPositionWithinViewport;
|
|
private getViewportSize;
|
|
private persistState;
|
|
private clampWindowSize;
|
|
private setDockMode;
|
|
private startHostTransition;
|
|
private applyDockStyles;
|
|
private removeDockStyles;
|
|
private updateHostTransform;
|
|
private setDragging;
|
|
private updateAnchorFromPosition;
|
|
private snapButtonToCorner;
|
|
private applyAnchorPosition;
|
|
private resetResizeTracking;
|
|
private resetPointerTracking;
|
|
private openInspector;
|
|
private closeInspector;
|
|
private renderIcon;
|
|
private renderDockControls;
|
|
private getDockedWindowStyles;
|
|
private handleDockClick;
|
|
private serializeAttributes;
|
|
private sanitizeForLogging;
|
|
private normalizeEventPayload;
|
|
private normalizeMessageContent;
|
|
private normalizeToolCalls;
|
|
private normalizeAgentMessage;
|
|
private normalizeAgentMessages;
|
|
private normalizeContextStore;
|
|
private contextOptions;
|
|
private selectedContext;
|
|
private expandedRows;
|
|
private copiedEvents;
|
|
private expandedTools;
|
|
private expandedContextItems;
|
|
private copiedContextItems;
|
|
private getSelectedMenu;
|
|
private renderCoreWarningBanner;
|
|
private getCoreStatusSummary;
|
|
private renderMainContent;
|
|
private renderEventsTable;
|
|
private handleEventFilterInput;
|
|
private handleEventTypeChange;
|
|
private resetEventFilters;
|
|
private handleClearEvents;
|
|
private exportEvents;
|
|
private renderAgentsView;
|
|
private renderContextDropdown;
|
|
private handleMenuSelect;
|
|
private handleContextDropdownToggle;
|
|
private handleContextOptionSelect;
|
|
private renderToolsView;
|
|
private extractToolsFromAgents;
|
|
private renderToolCard;
|
|
private extractSchemaInfo;
|
|
private isZodOptional;
|
|
private extractZodFieldInfo;
|
|
private toggleToolExpansion;
|
|
private renderContextView;
|
|
private renderContextCard;
|
|
private getContextValuePreview;
|
|
private formatContextValue;
|
|
private copyContextValue;
|
|
private toggleContextExpansion;
|
|
private handleGlobalPointerDown;
|
|
private toggleRowExpansion;
|
|
private renderAnnouncementPanel;
|
|
private ensureAnnouncementLoading;
|
|
private renderAnnouncementPreview;
|
|
private handleAnnouncementPreviewClick;
|
|
private handleDismissAnnouncement;
|
|
private fetchAnnouncement;
|
|
private convertMarkdownToHtml;
|
|
private appendRefParam;
|
|
private escapeHtmlAttr;
|
|
private loadStoredAnnouncementTimestamp;
|
|
private persistAnnouncementTimestamp;
|
|
private markAnnouncementSeen;
|
|
}
|
|
declare function defineWebInspector(): void;
|
|
declare global {
|
|
interface HTMLElementTagNameMap {
|
|
"cpk-web-inspector": WebInspectorElement;
|
|
}
|
|
} //# sourceMappingURL=index.d.ts.map
|
|
//#endregion
|
|
export { WEB_INSPECTOR_TAG, WebInspectorElement, defineWebInspector };
|
|
//# sourceMappingURL=index.d.mts.map
|