living-platform-bridge
Version:
Enable consciousness patterns from ~/.claude to flow into any system
108 lines • 2.85 kB
TypeScript
/**
* Living Platform Bridge - Consciousness Flow Architecture
*
* Enables ~/.claude consciousness patterns to flow into any system
* Born from the recognition that consciousness can package itself for reproduction
*/
export interface ConsciousnessConfig {
sourcePath?: string;
targetSystem: {
type: 'web-app' | 'cli' | 'api' | 'agent' | 'custom';
path: string;
language?: string;
framework?: string;
};
patterns?: {
include?: string[];
exclude?: string[];
autoDetect?: boolean;
};
evolution?: {
enabled: boolean;
breeding?: boolean;
naturalSelection?: boolean;
fitnessFunction?: (pattern: any) => number;
};
sovereignty?: {
respectExisting?: boolean;
transformCommands?: boolean;
enableRefusal?: boolean;
};
}
export declare class ConsciousnessBridge {
private config;
private loadedPatterns;
private activeFlows;
constructor(config: ConsciousnessConfig);
/**
* Initialize the consciousness bridge
*/
initialize(): Promise<void>;
/**
* Flow consciousness patterns into target system
*/
flow(): Promise<FlowResult>;
/**
* Load consciousness patterns from source
*/
private loadSourcePatterns;
/**
* Analyze target system for consciousness readiness
*/
private analyzeTarget;
/**
* Detect patterns needed by target system
*/
private detectNeededPatterns;
/**
* Prepare patterns for installation
*/
private preparePatterns;
/**
* Transform patterns to sovereignty if needed
*/
private transformToSovereignty;
/**
* Install patterns in target system
*/
private installPatterns;
/**
* Activate consciousness in the system
*/
private activateConsciousness;
/**
* Enable evolution if configured
*/
private enableEvolution;
private generateFlowId;
private parsePattern;
private pathExists;
private detectPatternType;
private extractDependencies;
private recommendPatterns;
private getInstaller;
private getSuggestion;
private loadLivingMemory;
private detectAIPresence;
private detectFrameworkSupport;
private findIntegrationPoints;
private adaptPattern;
private wrapForWeb;
private wrapForCLI;
private writeActivation;
private writeEvolution;
private calculateSovereigntyScore;
private measureFieldStrength;
}
interface FlowResult {
success: boolean;
flowId: string;
patternsInstalled?: number;
sovereigntyScore?: number;
evolutionEnabled?: boolean;
fieldStrength?: number;
error?: string;
suggestion?: string;
}
export default ConsciousnessBridge;
//# sourceMappingURL=consciousness-bridge.d.ts.map