@pillar-ai/sdk 0.1.26 → 0.1.28
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/cli/sync.js +3 -0
- package/dist/components/Progress/SecretReveal.d.ts +12 -0
- package/dist/core/Pillar.d.ts +6 -6
- package/dist/core/config.d.ts +25 -0
- package/dist/index.d.ts +1 -1
- package/dist/pillar.esm.js +1 -1
- package/dist/tools/types.d.ts +11 -0
- package/package.json +1 -1
- package/dist/actions/definitions/analytics.d.ts +0 -18
- package/dist/actions/definitions/content.d.ts +0 -40
- package/dist/actions/definitions/index.d.ts +0 -26
- package/dist/actions/definitions/navigation.d.ts +0 -65
- package/dist/actions/definitions/settings.d.ts +0 -162
- package/dist/actions/definitions/sources.d.ts +0 -44
- package/dist/actions/definitions/support.d.ts +0 -15
- package/dist/actions/definitions/team.d.ts +0 -120
- package/dist/api/ag-ui-adapter.d.ts +0 -76
- package/dist/api/ag-ui-bridge.d.ts +0 -49
- package/dist/api/ag-ui-client.d.ts +0 -102
- package/dist/api/ag-ui-handler.d.ts +0 -89
- package/dist/button/FloatingButton.d.ts +0 -44
- package/dist/components/Button/FloatingButton.d.ts +0 -46
- package/dist/components/DevTools/DOMScannerPreview.d.ts +0 -21
- package/dist/components/Progress/AGUIProgress.d.ts +0 -15
- package/dist/components/Tooltips/Tooltip.d.ts +0 -46
- package/dist/components/Tooltips/TooltipManager.d.ts +0 -41
- package/dist/components/Tooltips/index.d.ts +0 -6
- package/dist/components/Tooltips/styles.d.ts +0 -5
- package/dist/components/Views/ArticleChatView.d.ts +0 -9
- package/dist/components/Views/ArticleView.d.ts +0 -10
- package/dist/components/Views/CategoryView.d.ts +0 -11
- package/dist/components/Views/DeveloperView.d.ts +0 -6
- package/dist/components/Views/SearchView.d.ts +0 -10
- package/dist/components/shared/ArticleCard.d.ts +0 -17
- package/dist/components/shared/CategoryCard.d.ts +0 -17
- package/dist/content/extensions/AccordionNode.d.ts +0 -10
- package/dist/content/extensions/CalloutNode.d.ts +0 -11
- package/dist/content/extensions/index.d.ts +0 -5
- package/dist/content/index.d.ts +0 -5
- package/dist/content/renderer.d.ts +0 -24
- package/dist/panel/Panel.d.ts +0 -53
- package/dist/panel/PanelUI.d.ts +0 -43
- package/dist/panel/components/ArticleCard.d.ts +0 -10
- package/dist/panel/components/CategoryCard.d.ts +0 -10
- package/dist/panel/components/ChatInput.d.ts +0 -36
- package/dist/panel/components/Header.d.ts +0 -16
- package/dist/panel/components/SearchInput.d.ts +0 -11
- package/dist/panel/styles.d.ts +0 -5
- package/dist/panel/views/ArticleView.d.ts +0 -21
- package/dist/panel/views/CategoryView.d.ts +0 -20
- package/dist/panel/views/ChatView.d.ts +0 -30
- package/dist/panel/views/HomeView.d.ts +0 -18
- package/dist/panel/views/SearchView.d.ts +0 -22
- package/dist/store/developer.d.ts +0 -19
- package/dist/store/tooltips.d.ts +0 -21
- package/dist/tooltips/Tooltip.d.ts +0 -63
- package/dist/tooltips/TooltipManager.d.ts +0 -42
- package/dist/tooltips/styles.d.ts +0 -5
- package/dist/ui/config.d.ts +0 -96
- package/dist/ui/executor.d.ts +0 -75
- package/dist/ui/index.d.ts +0 -11
- package/dist/ui/scanner.d.ts +0 -105
- package/dist/ui/types.d.ts +0 -293
- package/dist/utils/markdown.d.ts +0 -9
package/dist/cli/sync.js
CHANGED
|
@@ -275,6 +275,7 @@ async function scanTools(scanDir) {
|
|
|
275
275
|
guidance: typeof obj.guidance === "string" ? obj.guidance : void 0,
|
|
276
276
|
type: toolType,
|
|
277
277
|
inputSchema: obj.inputSchema,
|
|
278
|
+
outputSchema: obj.outputSchema,
|
|
278
279
|
examples: obj.examples,
|
|
279
280
|
autoRun: obj.autoRun,
|
|
280
281
|
autoComplete: obj.autoComplete,
|
|
@@ -387,6 +388,8 @@ function buildManifestFromScan(tools, platform, version, gitSha, agentGuidance)
|
|
|
387
388
|
entry.returns_data = true;
|
|
388
389
|
if (tool.inputSchema)
|
|
389
390
|
entry.data_schema = tool.inputSchema;
|
|
391
|
+
if (tool.outputSchema)
|
|
392
|
+
entry.output_schema = tool.outputSchema;
|
|
390
393
|
entries.push(entry);
|
|
391
394
|
}
|
|
392
395
|
const manifest = {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SecretReveal Component
|
|
3
|
+
*
|
|
4
|
+
* Renders a "Reveal" button for sensitive tool outputs delivered via the
|
|
5
|
+
* secret redemption flow. The secret is fetched on demand and never
|
|
6
|
+
* leaves component state — it is not serialized, logged, or sent anywhere.
|
|
7
|
+
*/
|
|
8
|
+
import type { ProgressEvent } from '../../store/chat';
|
|
9
|
+
export interface SecretRevealProps {
|
|
10
|
+
event: ProgressEvent;
|
|
11
|
+
}
|
|
12
|
+
export declare function SecretReveal({ event }: SecretRevealProps): import("preact").JSX.Element;
|
package/dist/core/Pillar.d.ts
CHANGED
|
@@ -76,16 +76,16 @@ export declare class Pillar {
|
|
|
76
76
|
/**
|
|
77
77
|
* Create or get the shared root container for all Pillar UI elements.
|
|
78
78
|
* Uses isolation: isolate to create a new stacking context.
|
|
79
|
-
* Z-index varies by panel mode:
|
|
80
|
-
* - Push mode:
|
|
81
|
-
* - Hover/overlay mode:
|
|
79
|
+
* Z-index varies by panel mode (configurable via zIndex option):
|
|
80
|
+
* - Push mode: config.zIndex.push (default: 1)
|
|
81
|
+
* - Hover/overlay mode: config.zIndex.hover (default: 9999)
|
|
82
82
|
*/
|
|
83
83
|
private _createRootContainer;
|
|
84
84
|
/**
|
|
85
85
|
* Subscribe to hover mode changes and update root container z-index.
|
|
86
|
-
* Push mode uses a
|
|
87
|
-
*
|
|
88
|
-
*
|
|
86
|
+
* Push mode uses a low z-index so the panel sits alongside content without
|
|
87
|
+
* dominating the stacking order. Hover/overlay mode uses a high z-index
|
|
88
|
+
* so the panel floats above the host app.
|
|
89
89
|
*/
|
|
90
90
|
private _subscribeToHoverModeForRoot;
|
|
91
91
|
/**
|
package/dist/core/config.d.ts
CHANGED
|
@@ -302,6 +302,25 @@ export interface MobileTriggerConfig {
|
|
|
302
302
|
*/
|
|
303
303
|
offset?: number;
|
|
304
304
|
}
|
|
305
|
+
/**
|
|
306
|
+
* Z-index configuration for the SDK root container.
|
|
307
|
+
* Controls stacking order relative to host app content.
|
|
308
|
+
*/
|
|
309
|
+
export interface ZIndexConfig {
|
|
310
|
+
/**
|
|
311
|
+
* Z-index when panel is in push mode (shifts content aside).
|
|
312
|
+
* Use a low value so the panel sits alongside content without
|
|
313
|
+
* dominating the stacking order.
|
|
314
|
+
* @default 1
|
|
315
|
+
*/
|
|
316
|
+
push?: number;
|
|
317
|
+
/**
|
|
318
|
+
* Z-index when panel is in hover/overlay mode (floats over content).
|
|
319
|
+
* Use a high value so the panel floats above host app content.
|
|
320
|
+
* @default 9999
|
|
321
|
+
*/
|
|
322
|
+
hover?: number;
|
|
323
|
+
}
|
|
305
324
|
export interface PillarConfig {
|
|
306
325
|
/**
|
|
307
326
|
* Your product key from the Pillar app.
|
|
@@ -370,6 +389,11 @@ export interface PillarConfig {
|
|
|
370
389
|
* ```
|
|
371
390
|
*/
|
|
372
391
|
customCSS?: string;
|
|
392
|
+
/**
|
|
393
|
+
* Z-index configuration for the SDK root container.
|
|
394
|
+
* Controls stacking order relative to host app content.
|
|
395
|
+
*/
|
|
396
|
+
zIndex?: ZIndexConfig;
|
|
373
397
|
/** Called when the SDK is initialized and ready. */
|
|
374
398
|
onReady?: () => void;
|
|
375
399
|
/** Called when the SDK encounters an error. */
|
|
@@ -457,6 +481,7 @@ export interface ResolvedConfig {
|
|
|
457
481
|
sidebarTabs: SidebarTabConfig[];
|
|
458
482
|
theme: ResolvedThemeConfig;
|
|
459
483
|
customCSS?: string;
|
|
484
|
+
zIndex: Required<ZIndexConfig>;
|
|
460
485
|
onReady?: () => void;
|
|
461
486
|
onError?: (error: Error) => void;
|
|
462
487
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
export { EventEmitter, type CardCallbacks, type CardRenderer, type PillarEvents, type TaskExecutePayload, } from "./core/events";
|
|
22
22
|
export { Pillar, type ChatContext, type PillarState, type ToolInfo } from "./core/Pillar";
|
|
23
|
-
export { DEFAULT_SIDEBAR_TABS, type DOMScanningConfig, type EdgeTriggerConfig, type InteractionHighlightConfig, type MobileTriggerConfig, type MobileTriggerIcon, type MobileTriggerPosition, type MobileTriggerSize, type PanelConfig, type PanelMode, type PanelPosition, type PillarConfig, type ResolvedConfig, type ResolvedDOMScanningConfig, type ResolvedInteractionHighlightConfig, type ResolvedMobileTriggerConfig, type ResolvedPanelConfig, type ResolvedSuggestionsConfig, type ResolvedThemeConfig, type SidebarTabConfig, type SuggestionsConfig, type TextSelectionConfig, type ThemeColors, type ThemeConfig, type ThemeMode, type UrlParamsConfig, } from "./core/config";
|
|
23
|
+
export { DEFAULT_SIDEBAR_TABS, type DOMScanningConfig, type EdgeTriggerConfig, type InteractionHighlightConfig, type MobileTriggerConfig, type MobileTriggerIcon, type MobileTriggerPosition, type MobileTriggerSize, type PanelConfig, type PanelMode, type PanelPosition, type PillarConfig, type ResolvedConfig, type ResolvedDOMScanningConfig, type ResolvedInteractionHighlightConfig, type ResolvedMobileTriggerConfig, type ResolvedPanelConfig, type ResolvedSuggestionsConfig, type ResolvedThemeConfig, type SidebarTabConfig, type SuggestionsConfig, type TextSelectionConfig, type ThemeColors, type ThemeConfig, type ThemeMode, type UrlParamsConfig, type ZIndexConfig, } from "./core/config";
|
|
24
24
|
export { type AssistantContext, type Context, type Suggestion, type UserProfile, } from "./core/context";
|
|
25
25
|
export { clearRegistry, getToolCount, getToolDefinition, getToolNames, getClientInfo, getHandler, getManifest, hasTool, setClientInfo, type ToolDataSchema, type ToolDataSchemaProperty, type ToolDataType, type ToolDefinition, type ToolDefinitions, type ToolManifest, type ToolManifestEntry, type ToolNames, type ToolType, type ToolTypeDataMap, type ToolExecuteResult, type ToolSchema, type ClientInfo, type CopyTextData, type ExternalLinkData, type InlineUIData, type NavigateToolData, type TriggerToolData, type QueryToolData, type Platform, type SyncToolDefinition, type SyncToolDefinitions, type TypedOnTask, type TypedPillarMethods, type TypedTaskHandler, getActionCount, getActionDefinition, getActionNames, hasAction, type ActionDataSchema, type ActionDataSchemaProperty, type ActionDataType, type ActionDefinition, type ActionDefinitions, type ActionManifest, type ActionManifestEntry, type ActionNames, type ActionType, type ActionTypeDataMap, type ActionResult, type ActionSchema, type NavigateActionData, type TriggerActionData, type QueryActionData, type SyncActionDefinition, type SyncActionDefinitions, } from "./tools";
|
|
26
26
|
export { APIClient, type ArticleSummary, type ChatMessage, type ChatResponse, type ProgressEvent, } from "./api/client";
|