@auraone/aura-ide-kit 0.2.0

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.
@@ -0,0 +1,276 @@
1
+ import * as react from 'react';
2
+ import { ReactNode, HTMLAttributes, KeyboardEvent } from 'react';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
4
+ export { AuraOneMark, AuraOneMarkProps, ProoflineButton, ProoflinePanel, ProoflineProduct, ProoflineProductGlyph, ProoflineState, ProoflineStatus, ProoflineStatusTone, installOfficialStyleSheet, prooflineProductIcons, prooflineStatusLabels, prooflineStatusTones } from '@auraone/proofline-oss';
5
+
6
+ type AuraThemeMode = "system" | "light" | "dark" | "high-contrast";
7
+ type AuraCommand = {
8
+ id: string;
9
+ title: string;
10
+ group: string;
11
+ keybinding?: string;
12
+ keywords?: string[];
13
+ disabled?: boolean;
14
+ handler: () => void | Promise<void>;
15
+ };
16
+ type AuraTreeNode = {
17
+ id: string;
18
+ name: string;
19
+ kind: "file" | "folder";
20
+ path: string;
21
+ children?: AuraTreeNode[];
22
+ dirty?: boolean;
23
+ conflict?: boolean;
24
+ badge?: string;
25
+ expanded?: boolean;
26
+ };
27
+ type AuraTab = {
28
+ id: string;
29
+ title: string;
30
+ path?: string;
31
+ dirty?: boolean;
32
+ icon?: ReactNode;
33
+ content: ReactNode;
34
+ };
35
+ type AuraProblem = {
36
+ id: string;
37
+ severity: "info" | "warning" | "error";
38
+ source: string;
39
+ message: string;
40
+ path?: string;
41
+ line?: number;
42
+ column?: number;
43
+ };
44
+ type AuraTimelineItem = {
45
+ id: string;
46
+ title: string;
47
+ timestamp: string;
48
+ description?: string;
49
+ severity?: "neutral" | "success" | "warning" | "error";
50
+ };
51
+ type AuraTelemetryEvent = {
52
+ id: string;
53
+ name: string;
54
+ timestamp: string;
55
+ optedIn: boolean;
56
+ destination: "local" | "telemetry" | "crash" | "intake";
57
+ deliveryStatus?: "local_preview" | "would_send";
58
+ payloadPreview: Record<string, unknown>;
59
+ };
60
+ type AuraIntakePacketPreviewData = {
61
+ packetId: string;
62
+ flagship: "rubric-studio" | "robotics-studio" | "agent-studio";
63
+ schemaVersion: string;
64
+ payloadRoles: string[];
65
+ includedFiles: Array<{
66
+ path: string;
67
+ role: string;
68
+ bytes: number;
69
+ }>;
70
+ excludedPatterns: string[];
71
+ warnings: string[];
72
+ };
73
+
74
+ type CommandRegistry = {
75
+ register: (command: AuraCommand) => () => void;
76
+ list: () => AuraCommand[];
77
+ find: (query: string) => AuraCommand[];
78
+ run: (id: string) => Promise<void>;
79
+ };
80
+ declare function createCommandRegistry(initialCommands?: AuraCommand[]): CommandRegistry;
81
+
82
+ type AuraIdeAppFrameProps = {
83
+ productName: string;
84
+ projectName?: string;
85
+ commands: CommandRegistry;
86
+ sidebar: ReactNode;
87
+ main: ReactNode;
88
+ inspector?: ReactNode;
89
+ bottomPanel?: ReactNode;
90
+ statusBar?: ReactNode;
91
+ themeMode?: AuraThemeMode;
92
+ onThemeModeChange?: (mode: AuraThemeMode) => void;
93
+ };
94
+ declare function AuraIdeAppFrame({ productName, projectName, commands, sidebar, main, inspector, bottomPanel, statusBar, themeMode, onThemeModeChange, }: AuraIdeAppFrameProps): react_jsx_runtime.JSX.Element;
95
+ type AuraSplitPaneProps = {
96
+ start: ReactNode;
97
+ end: ReactNode;
98
+ defaultStartSize?: number;
99
+ minStartSize?: number;
100
+ maxStartSize?: number;
101
+ };
102
+ declare function AuraSplitPane({ start, end, defaultStartSize, minStartSize, maxStartSize, }: AuraSplitPaneProps): react_jsx_runtime.JSX.Element;
103
+ type AuraProjectTreeProps = {
104
+ nodes: AuraTreeNode[];
105
+ selectedId?: string | undefined;
106
+ onSelect?: ((node: AuraTreeNode) => void) | undefined;
107
+ };
108
+ declare function AuraProjectTree({ nodes, selectedId, onSelect }: AuraProjectTreeProps): react_jsx_runtime.JSX.Element;
109
+ type AuraTabbedShellProps = {
110
+ tabs: AuraTab[];
111
+ activeTabId: string;
112
+ onActiveTabChange: (id: string) => void;
113
+ onCloseTab?: (id: string) => void;
114
+ };
115
+ declare function AuraTabbedShell({ tabs, activeTabId, onActiveTabChange, onCloseTab }: AuraTabbedShellProps): react_jsx_runtime.JSX.Element;
116
+ type AuraMonacoProps = {
117
+ value: string;
118
+ language?: string;
119
+ path?: string;
120
+ readOnly?: boolean;
121
+ theme?: "light" | "dark" | "high-contrast";
122
+ onChange?: (value: string) => void;
123
+ };
124
+ declare function AuraMonaco({ value, language, path, readOnly, theme, onChange }: AuraMonacoProps): react_jsx_runtime.JSX.Element;
125
+ declare function AuraTimeline({ items }: {
126
+ items: AuraTimelineItem[];
127
+ }): react_jsx_runtime.JSX.Element;
128
+ declare function AuraInspector({ title, children }: {
129
+ title: string;
130
+ children: ReactNode;
131
+ }): react_jsx_runtime.JSX.Element;
132
+ type AuraCommandPaletteProps = {
133
+ registry: CommandRegistry;
134
+ open: boolean;
135
+ onOpenChange: (open: boolean) => void;
136
+ };
137
+ declare function AuraCommandPalette({ registry, open, onOpenChange }: AuraCommandPaletteProps): react_jsx_runtime.JSX.Element | null;
138
+ declare function AuraStatusBar({ items }: {
139
+ items: Array<{
140
+ id: string;
141
+ label: string;
142
+ value?: string;
143
+ tone?: "neutral" | "success" | "warning" | "error";
144
+ }>;
145
+ }): react_jsx_runtime.JSX.Element;
146
+ declare function AuraProblemsPanel({ problems }: {
147
+ problems: AuraProblem[];
148
+ }): react_jsx_runtime.JSX.Element;
149
+ declare function AuraSettingsPanel({ productName, telemetryEnabled, crashReportsEnabled, onTelemetryChange, onCrashReportsChange, }: {
150
+ productName: string;
151
+ telemetryEnabled: boolean;
152
+ crashReportsEnabled: boolean;
153
+ onTelemetryChange: (enabled: boolean) => void;
154
+ onCrashReportsChange: (enabled: boolean) => void;
155
+ }): react_jsx_runtime.JSX.Element;
156
+ type AuraWelcomePrivacyWizardProps = {
157
+ productWorkNoun?: string;
158
+ telemetryEnabled: boolean;
159
+ crashReportsEnabled: boolean;
160
+ onTelemetryChange: (enabled: boolean) => void;
161
+ onCrashReportsChange: (enabled: boolean) => void;
162
+ onComplete: () => void;
163
+ };
164
+ declare function AuraWelcomePrivacyWizard({ productWorkNoun, telemetryEnabled, crashReportsEnabled, onTelemetryChange, onCrashReportsChange, onComplete, }: AuraWelcomePrivacyWizardProps): react_jsx_runtime.JSX.Element;
165
+ type AuraUpdatePromptProps = {
166
+ version: string;
167
+ releaseNotes: string;
168
+ signedBy: string;
169
+ mandatory?: boolean;
170
+ onInstallNow: () => void;
171
+ onInstallOnRestart: () => void;
172
+ onRemindLater: () => void;
173
+ };
174
+ declare function AuraUpdatePrompt({ version, releaseNotes, signedBy, mandatory, onInstallNow, onInstallOnRestart, onRemindLater, }: AuraUpdatePromptProps): react_jsx_runtime.JSX.Element;
175
+ type AuraIntakeIdentityFieldsProps = {
176
+ displayName: string;
177
+ email?: string;
178
+ intent: string;
179
+ onDisplayNameChange: (value: string) => void;
180
+ onEmailChange: (value: string) => void;
181
+ onIntentChange: (value: string) => void;
182
+ };
183
+ declare function AuraIntakeIdentityFields({ displayName, email, intent, onDisplayNameChange, onEmailChange, onIntentChange, }: AuraIntakeIdentityFieldsProps): react_jsx_runtime.JSX.Element;
184
+ type AuraKeychainFallbackWarningProps = {
185
+ backendKind: "macos-keychain" | "windows-credential-manager" | "linux-secret-service" | "linux-encrypted-file-fallback";
186
+ firstSecretSet?: boolean;
187
+ onDismiss?: () => void;
188
+ };
189
+ declare function AuraKeychainFallbackWarning({ backendKind, firstSecretSet, onDismiss, }: AuraKeychainFallbackWarningProps): react_jsx_runtime.JSX.Element | null;
190
+ type Toast = {
191
+ id: string;
192
+ title: string;
193
+ description?: string;
194
+ tone?: "info" | "success" | "warning" | "error";
195
+ };
196
+ type ToastContextValue = {
197
+ push: (toast: Omit<Toast, "id">) => void;
198
+ dismiss: (id: string) => void;
199
+ };
200
+ declare function AuraToastProvider({ children }: {
201
+ children: ReactNode;
202
+ }): react_jsx_runtime.JSX.Element;
203
+ declare function useAuraToast(): ToastContextValue;
204
+ declare function AuraModal({ open, title, children, onClose }: {
205
+ open: boolean;
206
+ title: string;
207
+ children: ReactNode;
208
+ onClose: () => void;
209
+ }): react_jsx_runtime.JSX.Element | null;
210
+ declare function AuraEmptyState({ title, description, compact }: {
211
+ title: string;
212
+ description?: string;
213
+ compact?: boolean;
214
+ }): react_jsx_runtime.JSX.Element;
215
+ declare function AuraLoadingState({ label }: {
216
+ label?: string;
217
+ }): react_jsx_runtime.JSX.Element;
218
+ declare function AuraErrorState({ title, description, onRetry }: {
219
+ title: string;
220
+ description?: string;
221
+ onRetry?: () => void;
222
+ }): react_jsx_runtime.JSX.Element;
223
+ declare function AuraTelemetryEventLog({ events }: {
224
+ events: AuraTelemetryEvent[];
225
+ }): react_jsx_runtime.JSX.Element;
226
+ declare const AURA_INTAKE_PRIVACY_URL = "https://auraone.ai/open/privacy/intake";
227
+ declare const AURA_INTAKE_PRIVACY_COPY: {
228
+ sent: string[];
229
+ neverSent: string[];
230
+ consent: string;
231
+ };
232
+ type AuraIntakePacketPreviewProps = {
233
+ packet: AuraIntakePacketPreviewData;
234
+ manifestTree?: Record<string, unknown>;
235
+ consentChecked?: boolean;
236
+ onConsentChange?: (checked: boolean) => void;
237
+ privacyUrl?: string;
238
+ };
239
+ declare function AuraIntakePacketPreview({ packet, manifestTree, consentChecked, onConsentChange, privacyUrl, }: AuraIntakePacketPreviewProps): react_jsx_runtime.JSX.Element;
240
+ type AuraFileWatcherStatusProps = {
241
+ state: "connected" | "polling" | "disabled";
242
+ watchedPath?: string;
243
+ eventsQueued?: number;
244
+ };
245
+ declare function AuraFileWatcherStatus({ state, watchedPath, eventsQueued }: AuraFileWatcherStatusProps): react_jsx_runtime.JSX.Element;
246
+ type AuraWelcomeWindowProps = {
247
+ productName: string;
248
+ recentProjects: Array<{
249
+ name: string;
250
+ path: string;
251
+ }>;
252
+ onOpenFolder: () => void;
253
+ onOpenRecent: (path: string) => void;
254
+ };
255
+ declare function AuraWelcomeWindow({ productName, recentProjects, onOpenFolder, onOpenRecent }: AuraWelcomeWindowProps): react_jsx_runtime.JSX.Element;
256
+ declare function AuraPanel({ className, children, ...props }: HTMLAttributes<HTMLElement>): react_jsx_runtime.JSX.Element;
257
+ declare function createDefaultIdeCommands(openFolder: () => void, openSettings: () => void): CommandRegistry;
258
+ declare function isCommandPaletteKey(event: KeyboardEvent): boolean;
259
+
260
+ type AuraThemeContextValue = {
261
+ mode: AuraThemeMode;
262
+ setMode: (mode: AuraThemeMode) => void;
263
+ };
264
+ declare const AuraThemeContext: react.Context<AuraThemeContextValue>;
265
+ declare function useAuraTheme(): AuraThemeContextValue;
266
+
267
+ type AuraSsrPosture = "ssr-safe" | "client-only" | "client-only-with-suspense";
268
+ type AuraComponentPosture = {
269
+ component: string;
270
+ posture: AuraSsrPosture;
271
+ rationale: string;
272
+ };
273
+ declare const AURA_IDE_COMPONENT_POSTURE: AuraComponentPosture[];
274
+ declare function postureFor(component: string): AuraComponentPosture | undefined;
275
+
276
+ export { AURA_IDE_COMPONENT_POSTURE, AURA_INTAKE_PRIVACY_COPY, AURA_INTAKE_PRIVACY_URL, type AuraCommand, AuraCommandPalette, type AuraCommandPaletteProps, type AuraComponentPosture, AuraEmptyState, AuraErrorState, AuraFileWatcherStatus, type AuraFileWatcherStatusProps, AuraIdeAppFrame, type AuraIdeAppFrameProps, AuraInspector, AuraIntakeIdentityFields, type AuraIntakeIdentityFieldsProps, AuraIntakePacketPreview, type AuraIntakePacketPreviewData, type AuraIntakePacketPreviewProps, AuraKeychainFallbackWarning, type AuraKeychainFallbackWarningProps, AuraLoadingState, AuraModal, AuraMonaco, type AuraMonacoProps, AuraPanel, type AuraProblem, AuraProblemsPanel, AuraProjectTree, type AuraProjectTreeProps, AuraSettingsPanel, AuraSplitPane, type AuraSplitPaneProps, type AuraSsrPosture, AuraStatusBar, type AuraTab, AuraTabbedShell, type AuraTabbedShellProps, type AuraTelemetryEvent, AuraTelemetryEventLog, AuraThemeContext, type AuraThemeContextValue, type AuraThemeMode, AuraTimeline, type AuraTimelineItem, AuraToastProvider, type AuraTreeNode, AuraUpdatePrompt, type AuraUpdatePromptProps, AuraWelcomePrivacyWizard, type AuraWelcomePrivacyWizardProps, AuraWelcomeWindow, type AuraWelcomeWindowProps, type CommandRegistry, createCommandRegistry, createDefaultIdeCommands, isCommandPaletteKey, postureFor, useAuraTheme, useAuraToast };