chore: recovery checkpoint - v3.0 API successfully recovered
CRITICAL CHECKPOINT - DO NOT PUSH TO GITHUB Recovery Status: - Successfully recovered brainy.ts from compiled JavaScript - All core v3.0 API methods functional (add, get, update, delete, relate, find, etc.) - Neural subsystem intact (562KB embedded patterns, NLP working) - Augmentation pipeline operational (20+ augmentations) - HNSW clustering system complete - Triple Intelligence compiled (needs constructor fix) - Test suite validates functionality Changes preserved: - 898 files with changes from last 3 days - 144,475 insertions - All augmentation improvements - All test coverage enhancements - Complete v3.0 feature set This is a LOCAL checkpoint only - contains recovered work after corruption incident. Created backup in .backups/brainy-full-20250910-151314.tar.gz Branch: recovery-checkpoint-20250910-151433 Date: Wed Sep 10 03:18:04 PM PDT 2025
This commit is contained in:
parent
f65455fb22
commit
8ff382ca3b
895 changed files with 143654 additions and 28268 deletions
164
.recovery-workspace/dist-backup-20250910-141917/cli/interactive.d.ts
vendored
Normal file
164
.recovery-workspace/dist-backup-20250910-141917/cli/interactive.d.ts
vendored
Normal file
|
|
@ -0,0 +1,164 @@
|
|||
/**
|
||||
* Professional Interactive CLI System
|
||||
*
|
||||
* Provides consistent, delightful interactive prompts for all commands
|
||||
* with smart defaults, validation, and helpful examples
|
||||
*/
|
||||
import { BrainyData } from '../brainyData.js';
|
||||
export declare const colors: {
|
||||
primary: import("chalk").ChalkInstance;
|
||||
success: import("chalk").ChalkInstance;
|
||||
info: import("chalk").ChalkInstance;
|
||||
warning: import("chalk").ChalkInstance;
|
||||
error: import("chalk").ChalkInstance;
|
||||
brain: import("chalk").ChalkInstance;
|
||||
cream: import("chalk").ChalkInstance;
|
||||
dim: import("chalk").ChalkInstance;
|
||||
bold: import("chalk").ChalkInstance;
|
||||
cyan: import("chalk").ChalkInstance;
|
||||
green: import("chalk").ChalkInstance;
|
||||
yellow: import("chalk").ChalkInstance;
|
||||
red: import("chalk").ChalkInstance;
|
||||
};
|
||||
export declare const icons: {
|
||||
brain: string;
|
||||
search: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
update: string;
|
||||
import: string;
|
||||
export: string;
|
||||
connect: string;
|
||||
question: string;
|
||||
success: string;
|
||||
error: string;
|
||||
warning: string;
|
||||
info: string;
|
||||
sparkle: string;
|
||||
rocket: string;
|
||||
thinking: string;
|
||||
chat: string;
|
||||
};
|
||||
/**
|
||||
* Professional prompt wrapper with consistent styling
|
||||
*/
|
||||
export declare function prompt(config: any): Promise<any>;
|
||||
/**
|
||||
* Interactive prompt for search query with smart features
|
||||
*/
|
||||
export declare function promptSearchQuery(previousSearches?: string[]): Promise<string>;
|
||||
/**
|
||||
* Interactive prompt for item ID with fuzzy search
|
||||
*/
|
||||
export declare function promptItemId(action: string, brain?: BrainyData, allowMultiple?: boolean): Promise<string | string[]>;
|
||||
/**
|
||||
* Confirm destructive action with preview
|
||||
*/
|
||||
export declare function confirmDestructiveAction(action: string, items: any[], showPreview?: boolean): Promise<boolean>;
|
||||
/**
|
||||
* Interactive data input with multiline support
|
||||
*/
|
||||
export declare function promptDataInput(action?: string, currentValue?: string): Promise<string>;
|
||||
/**
|
||||
* Interactive metadata input with JSON validation
|
||||
*/
|
||||
export declare function promptMetadata(currentMetadata?: any, suggestions?: string[]): Promise<any>;
|
||||
/**
|
||||
* Interactive format selector
|
||||
*/
|
||||
export declare function promptFormat(availableFormats: string[], defaultFormat: string): Promise<string>;
|
||||
/**
|
||||
* Interactive file/URL input with validation
|
||||
*/
|
||||
export declare function promptFileOrUrl(action?: string): Promise<string>;
|
||||
/**
|
||||
* Interactive relationship builder
|
||||
*/
|
||||
export declare function promptRelationship(brain?: BrainyData): Promise<{
|
||||
source: string;
|
||||
verb: string;
|
||||
target: string;
|
||||
metadata?: any;
|
||||
}>;
|
||||
/**
|
||||
* Smart command suggestions when user types wrong command
|
||||
*/
|
||||
export declare function suggestCommand(input: string, availableCommands: string[]): string[];
|
||||
/**
|
||||
* Beautiful error display with helpful context
|
||||
*/
|
||||
export declare function showError(error: Error, context?: string): void;
|
||||
/**
|
||||
* Progress indicator for long operations
|
||||
*/
|
||||
export declare class ProgressTracker {
|
||||
private spinner;
|
||||
private startTime;
|
||||
constructor(message: string);
|
||||
update(message: string, count?: number, total?: number): void;
|
||||
succeed(message?: string): void;
|
||||
fail(message?: string): void;
|
||||
stop(): void;
|
||||
}
|
||||
/**
|
||||
* Welcome message for interactive mode
|
||||
*/
|
||||
export declare function showWelcome(): void;
|
||||
/**
|
||||
* Interactive command selector for beginners
|
||||
*/
|
||||
export declare function promptCommand(): Promise<string>;
|
||||
/**
|
||||
* Export all interactive components
|
||||
*/
|
||||
declare const _default: {
|
||||
colors: {
|
||||
primary: import("chalk").ChalkInstance;
|
||||
success: import("chalk").ChalkInstance;
|
||||
info: import("chalk").ChalkInstance;
|
||||
warning: import("chalk").ChalkInstance;
|
||||
error: import("chalk").ChalkInstance;
|
||||
brain: import("chalk").ChalkInstance;
|
||||
cream: import("chalk").ChalkInstance;
|
||||
dim: import("chalk").ChalkInstance;
|
||||
bold: import("chalk").ChalkInstance;
|
||||
cyan: import("chalk").ChalkInstance;
|
||||
green: import("chalk").ChalkInstance;
|
||||
yellow: import("chalk").ChalkInstance;
|
||||
red: import("chalk").ChalkInstance;
|
||||
};
|
||||
icons: {
|
||||
brain: string;
|
||||
search: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
update: string;
|
||||
import: string;
|
||||
export: string;
|
||||
connect: string;
|
||||
question: string;
|
||||
success: string;
|
||||
error: string;
|
||||
warning: string;
|
||||
info: string;
|
||||
sparkle: string;
|
||||
rocket: string;
|
||||
thinking: string;
|
||||
chat: string;
|
||||
};
|
||||
prompt: typeof prompt;
|
||||
promptSearchQuery: typeof promptSearchQuery;
|
||||
promptItemId: typeof promptItemId;
|
||||
confirmDestructiveAction: typeof confirmDestructiveAction;
|
||||
promptDataInput: typeof promptDataInput;
|
||||
promptMetadata: typeof promptMetadata;
|
||||
promptFormat: typeof promptFormat;
|
||||
promptFileOrUrl: typeof promptFileOrUrl;
|
||||
promptRelationship: typeof promptRelationship;
|
||||
suggestCommand: typeof suggestCommand;
|
||||
showError: typeof showError;
|
||||
ProgressTracker: typeof ProgressTracker;
|
||||
showWelcome: typeof showWelcome;
|
||||
promptCommand: typeof promptCommand;
|
||||
};
|
||||
export default _default;
|
||||
Loading…
Add table
Add a link
Reference in a new issue