@pillar-ai/sdk 0.1.14 → 0.1.16
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/LICENSE +21 -0
- package/README.md +18 -12
- package/dist/actions/types.d.ts +30 -0
- package/dist/api/client.d.ts +63 -32
- package/dist/api/mcp-client.d.ts +46 -23
- package/dist/cli/sync.js +2 -0
- package/dist/components/Button/EdgeTrigger.d.ts +18 -0
- package/dist/components/Cards/ConfirmActionCard.d.ts +0 -4
- package/dist/components/Cards/index.d.ts +1 -1
- package/dist/components/DevTools/index.d.ts +1 -1
- package/dist/components/PagePilot/PagePilotBanner.d.ts +7 -0
- package/dist/components/PagePilot/PagePilotManager.d.ts +42 -0
- package/dist/components/PagePilot/index.d.ts +6 -0
- package/dist/components/PagePilot/styles.d.ts +6 -0
- package/dist/components/Panel/Header.d.ts +4 -5
- package/dist/components/Panel/Panel.d.ts +10 -4
- package/dist/components/Panel/PanelContent.d.ts +1 -2
- package/dist/components/Panel/TaskButton.d.ts +0 -4
- package/dist/components/Panel/UnifiedChatInput.d.ts +7 -3
- package/dist/components/Panel/WorkflowChecklist.d.ts +0 -1
- package/dist/components/Panel/index.d.ts +2 -3
- package/dist/components/Panel/styles.d.ts +2 -2
- package/dist/components/Progress/ProgressGroup.d.ts +20 -0
- package/dist/components/Progress/ProgressRow.d.ts +9 -5
- package/dist/components/Progress/ProgressStack.d.ts +14 -5
- package/dist/components/Progress/ReasoningDisclosure.d.ts +6 -10
- package/dist/components/Progress/index.d.ts +1 -1
- package/dist/components/TextSelection/index.d.ts +0 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/core/Pillar.d.ts +27 -6
- package/dist/core/config.d.ts +15 -3
- package/dist/index.d.ts +2 -2
- package/dist/pillar.esm.js +1 -1
- package/dist/store/chat.d.ts +103 -16
- package/dist/store/index.d.ts +1 -0
- package/dist/store/pagePilot.d.ts +56 -0
- package/dist/store/panel.d.ts +9 -0
- package/dist/store/suggestions.d.ts +2 -2
- package/dist/styles/panel-styles.d.ts +6 -0
- package/dist/styles/theme.d.ts +13 -0
- package/dist/types/dom-scanner.d.ts +23 -0
- package/dist/utils/dom-scanner.d.ts +41 -2
- package/dist/utils/markdown-components.d.ts +0 -1
- package/dist/utils/preact-markdown.d.ts +0 -1
- package/package.json +10 -7
- package/src/actions/types.ts +33 -0
package/dist/core/config.d.ts
CHANGED
|
@@ -52,6 +52,11 @@ export interface ThemeConfig {
|
|
|
52
52
|
colors?: ThemeColors;
|
|
53
53
|
/** Custom color overrides for dark mode (when mode is 'auto' or 'dark') */
|
|
54
54
|
darkColors?: ThemeColors;
|
|
55
|
+
/**
|
|
56
|
+
* Font family for all panel text.
|
|
57
|
+
* @default "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif"
|
|
58
|
+
*/
|
|
59
|
+
fontFamily?: string;
|
|
55
60
|
}
|
|
56
61
|
export interface PanelConfig {
|
|
57
62
|
enabled?: boolean;
|
|
@@ -201,8 +206,7 @@ export interface SuggestionsConfig {
|
|
|
201
206
|
debounceMs?: number;
|
|
202
207
|
/**
|
|
203
208
|
* Maximum number of suggestions to display.
|
|
204
|
-
*
|
|
205
|
-
* @default 6
|
|
209
|
+
* @default 3
|
|
206
210
|
*/
|
|
207
211
|
displayLimit?: number;
|
|
208
212
|
}
|
|
@@ -213,6 +217,13 @@ export interface EdgeTriggerConfig {
|
|
|
213
217
|
* @default true
|
|
214
218
|
*/
|
|
215
219
|
enabled?: boolean;
|
|
220
|
+
/**
|
|
221
|
+
* Whether the panel can be resized by dragging the edge of the sidebar trigger.
|
|
222
|
+
* When enabled, a drag handle appears on the inner edge of the sidebar when the panel is open.
|
|
223
|
+
* The resized width is persisted to localStorage.
|
|
224
|
+
* @default true
|
|
225
|
+
*/
|
|
226
|
+
resizable?: boolean;
|
|
216
227
|
}
|
|
217
228
|
export type MobileTriggerPosition = 'bottom-right' | 'bottom-left';
|
|
218
229
|
export type MobileTriggerIcon = 'sparkle' | 'question' | 'help' | 'chat' | 'support';
|
|
@@ -354,6 +365,7 @@ export interface ResolvedThemeConfig {
|
|
|
354
365
|
mode: ThemeMode;
|
|
355
366
|
colors: ThemeColors;
|
|
356
367
|
darkColors: ThemeColors;
|
|
368
|
+
fontFamily?: string;
|
|
357
369
|
}
|
|
358
370
|
export interface ResolvedInteractionHighlightConfig {
|
|
359
371
|
enabled: boolean;
|
|
@@ -400,7 +412,7 @@ export interface ResolvedConfig {
|
|
|
400
412
|
onReady?: () => void;
|
|
401
413
|
onError?: (error: Error) => void;
|
|
402
414
|
}
|
|
403
|
-
export declare const DEFAULT_CONFIG: Omit<ResolvedConfig, 'productKey'
|
|
415
|
+
export declare const DEFAULT_CONFIG: Omit<ResolvedConfig, 'productKey'>;
|
|
404
416
|
export declare function resolveConfig(config: PillarConfig): ResolvedConfig;
|
|
405
417
|
/**
|
|
406
418
|
* Server embed config type (matches backend response)
|
package/dist/index.d.ts
CHANGED
|
@@ -24,9 +24,9 @@ export { DEFAULT_SIDEBAR_TABS, type DOMScanningConfig, type EdgeTriggerConfig, t
|
|
|
24
24
|
export { type AssistantContext, type Context, type Suggestion, type UserProfile, } from "./core/context";
|
|
25
25
|
export { clearRegistry, getActionCount, getActionDefinition, getActionNames, getClientInfo, getHandler, getManifest, hasAction, setClientInfo, type ActionDataSchema, type ActionDataType, type ActionDefinition, type ActionDefinitions, type ActionManifest, type ActionManifestEntry, type ActionNames, type ActionType, type ActionTypeDataMap, type ClientInfo, type CopyTextData, type ExternalLinkData, type InlineUIData, type NavigateActionData, type Platform, type SyncActionDefinition, type SyncActionDefinitions, type TriggerActionData, type TypedOnTask, type TypedPillarMethods, type TypedTaskHandler, } from "./actions";
|
|
26
26
|
export { APIClient, type ArticleSummary, type ChatMessage, type ChatResponse, type ProgressEvent, } from "./api/client";
|
|
27
|
-
export { type ActionRequest, type ChatImage, type ImageUploadResponse, } from "./api/mcp-client";
|
|
27
|
+
export { type ActionRequest, type ChatImage, type ImageUploadResponse, type TokenUsage, } from "./api/mcp-client";
|
|
28
28
|
export { DEFAULT_SCAN_OPTIONS, INTERACTABLE_ROLES, INTERACTABLE_TAGS, SKIP_TAGS, type CompactScanResult, type InteractionType, type ScanOptions, } from "./types/dom-scanner";
|
|
29
|
-
export { buildSelectorFromRef, clearPillarRefs, isInteractable, scanPageDirect, } from "./utils/dom-scanner";
|
|
29
|
+
export { buildSelectorFromRef, clearPillarRefs, isDestructiveElement, isInteractable, isRedacted, isValidPillarRef, scanPageDirect, } from "./utils/dom-scanner";
|
|
30
30
|
export { generateContextId, getContextDisplayLabel, isDOMSnapshotContext, isHighlightedTextContext, type DOMSnapshotContext, type GenericContext, type HighlightedTextContext, type ProductContext, type UserContextItem, type UserProfileContext, } from "./types/user-context";
|
|
31
31
|
import { Pillar } from "./core/Pillar";
|
|
32
32
|
export default Pillar;
|