@skillkit/core 1.7.11 → 1.8.1

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/index.d.ts CHANGED
@@ -2679,6 +2679,32 @@ declare class SessionManager {
2679
2679
  */
2680
2680
  declare function createSessionManager(projectPath: string): SessionManager;
2681
2681
 
2682
+ interface SessionFile {
2683
+ date: string;
2684
+ agent: string;
2685
+ projectPath: string;
2686
+ startedAt: string;
2687
+ lastUpdated: string;
2688
+ completed: string[];
2689
+ inProgress: string[];
2690
+ notes: string[];
2691
+ contextToLoad: string[];
2692
+ }
2693
+ interface SessionSummary {
2694
+ date: string;
2695
+ projectPath: string;
2696
+ agent: string;
2697
+ taskCount: number;
2698
+ completedCount: number;
2699
+ hasNotes: boolean;
2700
+ }
2701
+ declare function loadSessionFile(date?: string): SessionFile | null;
2702
+ declare function saveSessionFile(session: SessionFile): string;
2703
+ declare function createSessionFile(agent: string, projectPath: string): SessionFile;
2704
+ declare function updateSessionFile(session: SessionFile, updates: Partial<Pick<SessionFile, 'completed' | 'inProgress' | 'notes' | 'contextToLoad'>>): SessionFile;
2705
+ declare function listSessions(limit?: number): SessionSummary[];
2706
+ declare function getMostRecentSession(): SessionFile | null;
2707
+
2682
2708
  /**
2683
2709
  * Workflow Types
2684
2710
  *
@@ -2784,6 +2810,37 @@ interface WorkflowExecution {
2784
2810
  */
2785
2811
  declare const WORKFLOWS_DIR = "workflows";
2786
2812
  declare const WORKFLOW_EXTENSION = ".yaml";
2813
+ /**
2814
+ * Pipeline stage - a step in an agent pipeline
2815
+ */
2816
+ interface PipelineStage {
2817
+ agent: string;
2818
+ name: string;
2819
+ description: string;
2820
+ condition?: string;
2821
+ timeout?: number;
2822
+ }
2823
+ /**
2824
+ * Agent Pipeline - sequential multi-agent workflow
2825
+ */
2826
+ interface AgentPipeline {
2827
+ id: string;
2828
+ name: string;
2829
+ description: string;
2830
+ stages: PipelineStage[];
2831
+ }
2832
+ /**
2833
+ * Built-in pipelines for common workflows
2834
+ */
2835
+ declare const BUILTIN_PIPELINES: AgentPipeline[];
2836
+ /**
2837
+ * Get a built-in pipeline by ID
2838
+ */
2839
+ declare function getBuiltinPipeline(id: string): AgentPipeline | null;
2840
+ /**
2841
+ * Get all built-in pipelines
2842
+ */
2843
+ declare function getBuiltinPipelines(): AgentPipeline[];
2787
2844
 
2788
2845
  /**
2789
2846
  * Workflow Parser
@@ -9212,4 +9269,241 @@ declare function generatePrimer(projectPath: string, options?: PrimerOptions): P
9212
9269
  declare function generatePrimerForAgent(projectPath: string, agent: AgentType, options?: Omit<PrimerOptions, 'agents' | 'allAgents'>): PrimerResult;
9213
9270
  declare function analyzeForPrimer(projectPath: string): PrimerAnalysis;
9214
9271
 
9215
- export { AGENT_CLI_CONFIGS, AGENT_CONFIG, AGENT_DISCOVERY_PATHS, AGENT_FORMAT_MAP, AGENT_INSTRUCTION_TEMPLATES, AGENT_SKILL_FORMATS, type AIConfig, type AIGenerateOptions, AIManager, type AIProvider, AISearch, type AISearchOptions, type AISearchResult, AISkillGenerator, ALL_AGENT_DISCOVERY_PATHS, APIBasedCompressor, type APICompressionConfig, type ActivatedSkill, type AdvancedScore, type AgentAdapterInfo, type AgentCLIConfig, type AgentCommandFormat, AgentConfig, type AgentDirectoryConfig, type AgentExecutionResult, type AgentFormatCategory, AgentFrontmatter, AgentHook, type AgentHookFormat, type AgentInstance, type AgentInstructionTemplate, AgentLocation, AgentMetadata, AgentPermissionMode, type AgentSkillFormat, type AgentStatus, type AgentTranslationOptions, type AgentTranslationResult, AgentType, type AssertionResult, type AuditEvent, type AuditEventType, type AuditExportOptions, AuditLogger, type AuditQuery, type AuditStats, BaseAIProvider, type BenchmarkResult, BitbucketProvider, type BundleManifest, CIConfig, CIRCLECI_CONFIG_TEMPLATE, CONTEXT_DIR, CONTEXT_FILE, CUSTOM_AGENT_FORMAT_MAP, type CanonicalAgent, type CanonicalSkill, type CategoryStats, type CheckpointHandler, type CheckpointResponse, type ClarityScore, type CloneOptions, type CloneResult, CodeConvention, type CommandArg, type CommandBundle, type CommandContext, type CommandEvent, type CommandEventListener, CommandGenerator, type CommandGeneratorOptions, type CommandHandler, type CommandPlugin, CommandRegistry, type CommandRegistryOptions, type CommandResult, type CommandSearchOptions, type CommandValidationResult, type CompletenessResult, type CompressedLearning, type CompressionEngine, type CompressionOptions, type CompressionResult, type ContextCategory, type ContextExportOptions, type ContextImportOptions, type ContextLoadOptions, ContextLoader, ContextManager, ContextSync, type ContextSyncOptions, CopilotTranslator, type CrossAgentSkill, type CurrentExecution, CursorTranslator, type CustomAgent, DEFAULT_CACHE_TTL, DEFAULT_CONTEXT_CATEGORIES, DEFAULT_MEMORY_CONFIG, DEFAULT_SCORING_WEIGHTS, DEFAULT_SKILL_SOURCES, DependencyInfo, Detection, type DetectionSource, type DiscoveredSkill, DockerConfig, EnvConfig, type ExecutableSkill, type ExecutableTask, type ExecutableTaskType, type ExecutionHistory, type ExecutionOptions, type ExecutionProgressCallback, type ExecutionProgressEvent, type ExecutionStrategy, type ExecutionTaskStatus, type FormatCategory, type FormatTranslator, type FreshnessResult, GITHUB_ACTION_TEMPLATE, GITLAB_CI_TEMPLATE, type GenerateOptions, type GeneratedInstruction, type GeneratedSkill, GitHubProvider, GitLabProvider, GitProvider, type GitProviderAdapter, type HookConfig, type HookContext, type HookError, type HookEvent, type HookEventListener, HookManager, type HookManagerOptions, type HookTriggerResult, INDEX_CACHE_HOURS, INDEX_PATH, type ImportOptions, type IndexSource, type InjectedMemory, type InjectionMode, type InjectionOptions, type InjectionResult, type InstallOptions, type InstallResult, type InstalledPackInfo, type InstalledSkillInfo, type IssueSeverity, KNOWN_SKILL_REPOS, type Learning, LearningConsolidator, LearningStore, type LearningStoreData, type LoadedContext, LocalProvider, MARKETPLACE_CACHE_FILE, MarketplaceAggregator, type MarketplaceConfig, type MarketplaceIndex, type MarketplaceSearchOptions, type MarketplaceSearchResult, type MarketplaceSkill, type MatchCategory, type MatchReason, type MatcherFunction, MemoryCompressor, type MemoryConfig, MemoryEnabledEngine, type MemoryEnabledEngineOptions, type MemoryFull, type MemoryIndex, MemoryIndexStore, MemoryInjector, MemoryObserver, type MemoryObserverConfig, type MemoryPaths, type MemoryPreview, type MemorySearchOptions, type MemorySearchResult, type MemoryStatus, type MemorySummary, type MessageHandler, type MessageType, MethodologyLoader, MethodologyManager, type MethodologyManagerOptions, type MethodologyPack, type MethodologySearchQuery, type MethodologySearchResult, type MethodologySkill, type MethodologySkillMetadata, type MethodologyState, type MethodologySyncResult, MockAIProvider, type ObservableEvent, type ObservableEventType, type Observation, type ObservationContent, ObservationStore, type ObservationStoreData, type ObservationType, type OrchestratorOptions, type OrchestratorTaskStatus, type OrchestratorTeamConfig, PRE_COMMIT_CONFIG_TEMPLATE, PRE_COMMIT_HOOK_TEMPLATE, PROJECT_TYPE_HINTS, PackageManager, type ParseOptions, type PlanEvent, type PlanEventListener, type PlanExecutionOptions, type PlanExecutionResult, PlanExecutor, PlanGenerator, PlanParser, type PlanResult, type PlanStatus, type PlanStep, type PlanTask, type PlanTaskFiles, type PlanTaskResult, type PlanValidationResult, PlanValidator, type Plugin, type PluginConfig, type PluginContext, type PluginHooks, PluginLoader, PluginManager, type PluginMetadata, PrimerAnalysis, PrimerAnalyzer, PrimerGenerator, PrimerLanguage, type PrimerOptions, type PrimerResult, ProjectContext, ProjectDetector, ProjectPatterns, type ProjectProfile, ProjectStack, ProjectStructure, type ProviderPlugin, type QualityScore, type RecommendOptions, RecommendationEngine, type RecommendationResult, type RegisteredCommand, type RegistrySkill, type ReviewIssue, type ReviewResult, type ReviewStage, type ReviewStageName, RuleBasedCompressor, SESSION_FILE, SKILL_DISCOVERY_PATHS, type ScoredSkill, type ScoringWeights, type SearchOptions, type SearchResult, type SearchableSkill, type SessionDecision, SessionManager, type SessionState, type SessionTask, type ShareOptions, type SharedSkill, Skill, SkillBundle, type SkillEntry, type SkillExample, SkillExecutionEngine, type SkillExecutionEvent, type SkillExecutionResult, type SkillExecutor, type SkillExecutorOptions, SkillFrontmatter, type SkillHook, type SkillIndex, SkillLocation, SkillMdTranslator, SkillMetadata, SkillPreferences, type SkillSource, SkillSummary, type SkillTestCase, type SkillTestSuite, type SkillTranslationOptions, type SkillTranslationResult, SkillTriggerEngine, SkillkitConfig, type SkillsManifest, type SlashCommand, type SlashCommandResult, type SpecificityScore, type StepExecutor, type StepType, type StructureScore, type StructuredPlan, type SyncOptions, type SyncReport, type SyncResult, TAG_TO_TECH, TASK_TEMPLATES, type Task, type TaskEvent, type TaskEventListener, type TaskExecutionResult, type TaskFiles, type TaskFilter, TaskManager, type TaskPlan, type TaskResult, type TaskStatus, type TaskStep, type TaskTemplate, type Team, type TeamConfig, type TeamEvent, type TeamEventListener, TeamManager, type TeamMember, type TeamMessage, TeamMessageBus, TeamOrchestrator, type TeamRegistry, type TeamStatus, type TestAssertion, type TestAssertionType, type TestCaseResult, type TestProgressEvent, type TestResult, type TestRunnerOptions, type TestSuiteResult, TranslatableSkillFrontmatter, type TranslationOptions, type TranslationPath, type TranslationResult, type TranslatorPlugin, TranslatorRegistry, type TriggerEngineOptions, type UpdateOptions, type ValidationError, type ValidationIssue, type ValidationResult, type ValidationWarning, type ValidatorOptions, type VerificationRule, WORKFLOWS_DIR, WORKFLOW_EXTENSION, type WaveExecutionStatus, WindsurfTranslator, type Workflow, type WorkflowExecution, type WorkflowExecutionStatus, WorkflowOrchestrator, type WorkflowProgressCallback, type WorkflowSkill, type WorkflowWave, addToManifest, agentExists, analyzeForPrimer, analyzePrimer, analyzeProject, benchmarkSkill, buildSkillIndex, calculatePercentile, canTranslate, copilotTranslator, createAPIBasedCompressor, createCommandGenerator, createCommandRegistry, createContextLoader, createContextManager, createContextSync, createExecutionEngine, createHookManager, createMarketplaceAggregator, createMemoryCompressor, createMemoryEnabledEngine, createMemoryInjector, createMemoryObserver, createMessageBus, createMethodologyLoader, createMethodologyManager, createPlanExecutor, createPlanGenerator, createPlanParser, createPlanValidator, createPluginManager, createRecommendationEngine, createRuleBasedCompressor, createSessionManager, createSimulatedSkillExecutor, createSkillBundle, createSkillExecutor, createTaskManager, createTeamManager, createTeamOrchestrator, createTestSuiteFromFrontmatter, createTriggerEngine, createWorkflowOrchestrator, createWorkflowTemplate, cursorTranslator, detectCategory, detectProvider, detectSkillFormat, discoverAgents, discoverAgentsForAgent, discoverAgentsFromPath, discoverAgentsRecursive, discoverGlobalAgents, discoverSkills, dryRunExecutor, estimateTokens, evaluateSkillContent, evaluateSkillDirectory, evaluateSkillFile, executeWithAgent, exportBundle, extractAgentContent, extractAgentFrontmatter, extractField, extractFrontmatter, extractSkillMetadata, fetchSkillsFromRepo, findAgent, findAllAgents, findAllSkills, findManifestPath, findSkill, formatSkillAsPrompt, fromCanonicalAgent, generateComparisonNotes, generateManifestFromInstalled, generatePrimer, generatePrimerForAgent, generateRecommendations, generateSkillsConfig, getAgentCLIConfig, getAgentConfigFile, getAgentConfigPath, getAgentDirectoryConfig, getAgentFilename, getAgentFormat, getAgentSkillsDir, getAgentStats, getAgentTargetDirectory, getAgentsDirectory, getAllCategories, getAllProviders, getAllSkillsDirs, getAvailableCLIAgents, getBuiltinPacksDir, getCICDTemplate, getCategoryStats, getConfigFile, getConfigFormat, getExecutionStrategy, getGlobalConfigPath, getGlobalSkillsDir, getGrade, getIndexStatus, getInstallDir, getManualExecutionInstructions, getMemoryPaths, getMemoryStatus, getProjectConfigPath, getProvider, getQualityGrade, getSearchDirs, getSkillsDir, getStackTags, getSupportedTranslationAgents, getTechTags, globalMemoryDirectoryExists, importBundle, initContext, initManifest, initProject, initializeMemoryDirectory, isAgentCLIAvailable, isAgentCompatible, isGitUrl, isHighQuality, isIndexStale, isLocalPath, isPathInside, listCICDTemplates, listWorkflows, loadAgentMetadata, loadConfig, loadContext, loadIndex, loadManifest, loadMetadata, loadPlugin, loadPluginsFromDirectory, loadSkillMetadata, loadWorkflow, loadWorkflowByName, memoryDirectoryExists, parseAgentDir, parseAgentFile, parseShorthand, parseSkill, parseSkillContent, parseSkillContentToCanonical, parseSkillToCanonical, parseSource, parseWorkflow, readAgentContent, readSkillContent, removeFromManifest, runTestSuite, saveConfig, saveIndex, saveManifest, saveSkillMetadata, saveWorkflow, serializeWorkflow, setSkillEnabled, shellExecutor, skillMdTranslator, supportsAutoDiscovery, supportsSlashCommands, syncToAgent, syncToAllAgents, toCanonicalAgent, translateAgent, translateAgentContent, translateAgents, translateCanonicalAgent, translateSkill, translateSkillFile, translateSkillToAgent, translateSkillToAll, translatorRegistry, validateAgent, validateBuiltinPacks, validatePackDirectory, validatePackManifest, validatePlan, validateSkill, validateSkillContent, validateWorkflow, windsurfTranslator, wrapProgressCallbackWithMemory, writeTranslatedSkill };
9272
+ type PatternCategory = 'error_fix' | 'refactor' | 'workaround' | 'debugging' | 'convention';
9273
+ type PatternDomain = 'code-style' | 'testing' | 'git' | 'debugging' | 'workflow' | 'security' | 'performance';
9274
+ interface LearnedPattern {
9275
+ id: string;
9276
+ category: PatternCategory;
9277
+ domain?: PatternDomain;
9278
+ title: string;
9279
+ problem: string;
9280
+ solution: string;
9281
+ example?: string;
9282
+ context: string;
9283
+ extractedAt: string;
9284
+ source: 'git' | 'session' | 'manual';
9285
+ commitRange?: {
9286
+ from: string;
9287
+ to: string;
9288
+ };
9289
+ approved: boolean;
9290
+ confidence: number;
9291
+ }
9292
+ interface EvolvingPattern extends LearnedPattern {
9293
+ trigger: string;
9294
+ action: string;
9295
+ useCount: number;
9296
+ successCount: number;
9297
+ failureCount: number;
9298
+ lastUsed?: string;
9299
+ }
9300
+ interface LearningConfig {
9301
+ minSessionLength: number;
9302
+ sensitivity: 'low' | 'medium' | 'high';
9303
+ autoApprove: boolean;
9304
+ outputPath: string;
9305
+ categories: PatternCategory[];
9306
+ ignorePatterns: string[];
9307
+ }
9308
+ interface GitCommit {
9309
+ hash: string;
9310
+ shortHash: string;
9311
+ author: string;
9312
+ date: string;
9313
+ message: string;
9314
+ body?: string;
9315
+ files: GitFileChange[];
9316
+ }
9317
+ interface GitFileChange {
9318
+ path: string;
9319
+ status: 'added' | 'modified' | 'deleted' | 'renamed';
9320
+ additions: number;
9321
+ deletions: number;
9322
+ oldPath?: string;
9323
+ }
9324
+ interface GitAnalysisResult {
9325
+ patterns: LearnedPattern[];
9326
+ commitCount: number;
9327
+ dateRange: {
9328
+ from: string;
9329
+ to: string;
9330
+ };
9331
+ languages: string[];
9332
+ frameworks: string[];
9333
+ summary: GitAnalysisSummary;
9334
+ }
9335
+ interface GitAnalysisSummary {
9336
+ totalCommits: number;
9337
+ totalFilesChanged: number;
9338
+ errorFixes: number;
9339
+ refactors: number;
9340
+ features: number;
9341
+ documentation: number;
9342
+ tests: number;
9343
+ }
9344
+ interface PatternExtractionResult {
9345
+ patterns: LearnedPattern[];
9346
+ skipped: {
9347
+ reason: string;
9348
+ commit?: string;
9349
+ }[];
9350
+ errors: string[];
9351
+ }
9352
+ interface PatternStore {
9353
+ version: number;
9354
+ updatedAt: string;
9355
+ patterns: LearnedPattern[];
9356
+ evolvingPatterns: EvolvingPattern[];
9357
+ }
9358
+ declare const DEFAULT_LEARNING_CONFIG: LearningConfig;
9359
+
9360
+ declare function getDefaultConfigPath(): string;
9361
+ declare function getDefaultStorePath(): string;
9362
+ declare function loadLearningConfig(configPath?: string): LearningConfig;
9363
+ declare function saveLearningConfig(config: LearningConfig, configPath?: string): void;
9364
+ declare function loadPatternStore(storePath?: string): PatternStore;
9365
+ declare function savePatternStore(store: PatternStore, storePath?: string): void;
9366
+ declare function addPattern(pattern: LearnedPattern, storePath?: string): PatternStore;
9367
+ declare function removePattern(patternId: string, storePath?: string): PatternStore;
9368
+ declare function getPattern(patternId: string, storePath?: string): LearnedPattern | null;
9369
+ declare function getEvolvingPattern(patternId: string, storePath?: string): EvolvingPattern | null;
9370
+ declare function getAllPatterns(storePath?: string): LearnedPattern[];
9371
+ declare function getPatternsByCategory(category: string, storePath?: string): LearnedPattern[];
9372
+ declare function getApprovedPatterns(storePath?: string): LearnedPattern[];
9373
+
9374
+ interface GitAnalysisOptions {
9375
+ commits?: number;
9376
+ since?: string;
9377
+ until?: string;
9378
+ branch?: string;
9379
+ author?: string;
9380
+ }
9381
+ declare function getGitCommits(repoPath: string, options?: GitAnalysisOptions): GitCommit[];
9382
+ declare function analyzeGitHistory(repoPath: string, options?: GitAnalysisOptions): GitAnalysisResult;
9383
+ declare function getRecentBugFixes(repoPath: string, limit?: number): LearnedPattern[];
9384
+ declare function getRecentRefactors(repoPath: string, limit?: number): LearnedPattern[];
9385
+
9386
+ interface SessionMessage {
9387
+ role: 'user' | 'assistant' | 'system';
9388
+ content: string;
9389
+ timestamp?: string;
9390
+ }
9391
+ interface SessionContext {
9392
+ messages: SessionMessage[];
9393
+ projectPath: string;
9394
+ startTime: string;
9395
+ endTime?: string;
9396
+ }
9397
+ declare function extractPatternsFromSession(session: SessionContext): PatternExtractionResult;
9398
+ declare function mergePatterns(existing: LearnedPattern[], newPatterns: LearnedPattern[]): LearnedPattern[];
9399
+
9400
+ interface LearnedSkillOutput {
9401
+ id: string;
9402
+ name: string;
9403
+ filename: string;
9404
+ content: string;
9405
+ patterns: LearnedPattern[];
9406
+ }
9407
+ interface PatternGenerateOptions {
9408
+ outputDir?: string;
9409
+ minConfidence?: number;
9410
+ minPatterns?: number;
9411
+ format?: 'skill' | 'markdown' | 'json';
9412
+ }
9413
+ declare function generateSkillFromPatterns(patterns: LearnedPattern[], options?: PatternGenerateOptions): LearnedSkillOutput | null;
9414
+ declare function saveGeneratedSkill(skill: LearnedSkillOutput, outputDir?: string): string;
9415
+ declare function generatePatternReport(patterns: LearnedPattern[]): string;
9416
+ declare function exportPatternsAsJson(patterns: LearnedPattern[]): string;
9417
+ declare function importPatternsFromJson(jsonContent: string): LearnedPattern[];
9418
+
9419
+ interface FeedbackResult {
9420
+ pattern: EvolvingPattern;
9421
+ previousConfidence: number;
9422
+ newConfidence: number;
9423
+ change: 'increased' | 'decreased' | 'unchanged';
9424
+ }
9425
+ declare function recordSuccess(patternId: string, storePath?: string): FeedbackResult | null;
9426
+ declare function recordFailure(patternId: string, storePath?: string): FeedbackResult | null;
9427
+ declare function getEvolvingPatternsByDomain(domain: PatternDomain, storePath?: string): EvolvingPattern[];
9428
+ declare function getHighConfidencePatterns(minConfidence?: number, storePath?: string): EvolvingPattern[];
9429
+ declare function getLowConfidencePatterns(maxConfidence?: number, storePath?: string): EvolvingPattern[];
9430
+ declare function getMostUsedPatterns(limit?: number, storePath?: string): EvolvingPattern[];
9431
+ declare function getPatternStats(storePath?: string): {
9432
+ total: number;
9433
+ byDomain: Map<string, number>;
9434
+ byConfidenceRange: {
9435
+ high: number;
9436
+ medium: number;
9437
+ low: number;
9438
+ };
9439
+ mostUsed: EvolvingPattern | null;
9440
+ leastConfident: EvolvingPattern | null;
9441
+ };
9442
+ declare function approvePattern(patternId: string, storePath?: string): LearnedPattern | null;
9443
+ declare function rejectPattern(patternId: string, storePath?: string): boolean;
9444
+ declare function clusterPatterns(patterns: LearnedPattern[]): Map<string, LearnedPattern[]>;
9445
+
9446
+ type ProfileName = 'dev' | 'review' | 'research' | 'security' | 'custom';
9447
+ interface OperationalProfile {
9448
+ name: ProfileName;
9449
+ description: string;
9450
+ focus: string;
9451
+ behaviors: string[];
9452
+ priorities: string[];
9453
+ preferredTools?: string[];
9454
+ avoidTools?: string[];
9455
+ injectedContext?: string;
9456
+ }
9457
+ interface ProfileConfig {
9458
+ activeProfile: ProfileName;
9459
+ customProfiles: OperationalProfile[];
9460
+ }
9461
+ declare const DEFAULT_PROFILE_CONFIG: ProfileConfig;
9462
+
9463
+ declare function loadProfileConfig(): ProfileConfig;
9464
+ declare function saveProfileConfig(config: ProfileConfig): void;
9465
+ declare function getActiveProfile(): ProfileName;
9466
+ declare function setActiveProfile(name: ProfileName): void;
9467
+ declare function getProfile(name: ProfileName): OperationalProfile | null;
9468
+ declare function getAllProfiles(): OperationalProfile[];
9469
+ declare function getBuiltinProfiles(): OperationalProfile[];
9470
+ declare function getProfileNames(): ProfileName[];
9471
+ declare function addCustomProfile(profile: OperationalProfile): void;
9472
+ declare function removeCustomProfile(name: ProfileName): boolean;
9473
+ declare function getProfileContext(name?: ProfileName): string | null;
9474
+ declare function isBuiltinProfile(name: ProfileName): boolean;
9475
+
9476
+ type GuidelineCategory = 'security' | 'code-style' | 'testing' | 'git' | 'performance' | 'custom';
9477
+ interface Guideline {
9478
+ id: string;
9479
+ name: string;
9480
+ description: string;
9481
+ category: GuidelineCategory;
9482
+ content: string;
9483
+ priority: number;
9484
+ enabled: boolean;
9485
+ scope: 'global' | 'project';
9486
+ }
9487
+ interface GuidelineConfig {
9488
+ enabledGuidelines: string[];
9489
+ customGuidelines: Guideline[];
9490
+ }
9491
+ declare const DEFAULT_GUIDELINE_CONFIG: GuidelineConfig;
9492
+
9493
+ declare function loadGuidelineConfig(): GuidelineConfig;
9494
+ declare function saveGuidelineConfig(config: GuidelineConfig): void;
9495
+ declare function getGuideline(id: string): Guideline | null;
9496
+ declare function getAllGuidelines(): Guideline[];
9497
+ declare function getBuiltinGuidelines(): Guideline[];
9498
+ declare function getEnabledGuidelines(): Guideline[];
9499
+ declare function getGuidelinesByCategory(category: GuidelineCategory): Guideline[];
9500
+ declare function enableGuideline(id: string): boolean;
9501
+ declare function disableGuideline(id: string): boolean;
9502
+ declare function isGuidelineEnabled(id: string): boolean;
9503
+ declare function addCustomGuideline(guideline: Guideline): void;
9504
+ declare function removeCustomGuideline(id: string): boolean;
9505
+ declare function getGuidelineContent(id: string): string | null;
9506
+ declare function getEnabledGuidelineContent(): string;
9507
+ declare function isBuiltinGuideline(id: string): boolean;
9508
+
9509
+ export { AGENT_CLI_CONFIGS, AGENT_CONFIG, AGENT_DISCOVERY_PATHS, AGENT_FORMAT_MAP, AGENT_INSTRUCTION_TEMPLATES, AGENT_SKILL_FORMATS, type AIConfig, type AIGenerateOptions, AIManager, type AIProvider, AISearch, type AISearchOptions, type AISearchResult, AISkillGenerator, ALL_AGENT_DISCOVERY_PATHS, APIBasedCompressor, type APICompressionConfig, type ActivatedSkill, type AdvancedScore, type AgentAdapterInfo, type AgentCLIConfig, type AgentCommandFormat, AgentConfig, type AgentDirectoryConfig, type AgentExecutionResult, type AgentFormatCategory, AgentFrontmatter, AgentHook, type AgentHookFormat, type AgentInstance, type AgentInstructionTemplate, AgentLocation, AgentMetadata, AgentPermissionMode, type AgentPipeline, type AgentSkillFormat, type AgentStatus, type AgentTranslationOptions, type AgentTranslationResult, AgentType, type AssertionResult, type AuditEvent, type AuditEventType, type AuditExportOptions, AuditLogger, type AuditQuery, type AuditStats, BUILTIN_PIPELINES, BaseAIProvider, type BenchmarkResult, BitbucketProvider, type BundleManifest, CIConfig, CIRCLECI_CONFIG_TEMPLATE, CONTEXT_DIR, CONTEXT_FILE, CUSTOM_AGENT_FORMAT_MAP, type CanonicalAgent, type CanonicalSkill, type CategoryStats, type CheckpointHandler, type CheckpointResponse, type ClarityScore, type CloneOptions, type CloneResult, CodeConvention, type CommandArg, type CommandBundle, type CommandContext, type CommandEvent, type CommandEventListener, CommandGenerator, type CommandGeneratorOptions, type CommandHandler, type CommandPlugin, CommandRegistry, type CommandRegistryOptions, type CommandResult, type CommandSearchOptions, type CommandValidationResult, type CompletenessResult, type CompressedLearning, type CompressionEngine, type CompressionOptions, type CompressionResult, type ContextCategory, type ContextExportOptions, type ContextImportOptions, type ContextLoadOptions, ContextLoader, ContextManager, ContextSync, type ContextSyncOptions, CopilotTranslator, type CrossAgentSkill, type CurrentExecution, CursorTranslator, type CustomAgent, DEFAULT_CACHE_TTL, DEFAULT_CONTEXT_CATEGORIES, DEFAULT_GUIDELINE_CONFIG, DEFAULT_LEARNING_CONFIG, DEFAULT_MEMORY_CONFIG, DEFAULT_PROFILE_CONFIG, DEFAULT_SCORING_WEIGHTS, DEFAULT_SKILL_SOURCES, DependencyInfo, Detection, type DetectionSource, type DiscoveredSkill, DockerConfig, EnvConfig, type EvolvingPattern, type ExecutableSkill, type ExecutableTask, type ExecutableTaskType, type ExecutionHistory, type ExecutionOptions, type ExecutionProgressCallback, type ExecutionProgressEvent, type ExecutionStrategy, type ExecutionTaskStatus, type FeedbackResult, type FormatCategory, type FormatTranslator, type FreshnessResult, GITHUB_ACTION_TEMPLATE, GITLAB_CI_TEMPLATE, type GenerateOptions, type GeneratedInstruction, type GeneratedSkill, type GitAnalysisOptions, type GitAnalysisResult, type GitAnalysisSummary, type GitCommit, type GitFileChange, GitHubProvider, GitLabProvider, GitProvider, type GitProviderAdapter, type Guideline, type GuidelineCategory, type GuidelineConfig, type HookConfig, type HookContext, type HookError, type HookEvent, type HookEventListener, HookManager, type HookManagerOptions, type HookTriggerResult, INDEX_CACHE_HOURS, INDEX_PATH, type ImportOptions, type IndexSource, type InjectedMemory, type InjectionMode, type InjectionOptions, type InjectionResult, type InstallOptions, type InstallResult, type InstalledPackInfo, type InstalledSkillInfo, type IssueSeverity, KNOWN_SKILL_REPOS, type LearnedPattern, type LearnedSkillOutput, type Learning, type LearningConfig, LearningConsolidator, LearningStore, type LearningStoreData, type LoadedContext, LocalProvider, MARKETPLACE_CACHE_FILE, MarketplaceAggregator, type MarketplaceConfig, type MarketplaceIndex, type MarketplaceSearchOptions, type MarketplaceSearchResult, type MarketplaceSkill, type MatchCategory, type MatchReason, type MatcherFunction, MemoryCompressor, type MemoryConfig, MemoryEnabledEngine, type MemoryEnabledEngineOptions, type MemoryFull, type MemoryIndex, MemoryIndexStore, MemoryInjector, MemoryObserver, type MemoryObserverConfig, type MemoryPaths, type MemoryPreview, type MemorySearchOptions, type MemorySearchResult, type MemoryStatus, type MemorySummary, type MessageHandler, type MessageType, MethodologyLoader, MethodologyManager, type MethodologyManagerOptions, type MethodologyPack, type MethodologySearchQuery, type MethodologySearchResult, type MethodologySkill, type MethodologySkillMetadata, type MethodologyState, type MethodologySyncResult, MockAIProvider, type ObservableEvent, type ObservableEventType, type Observation, type ObservationContent, ObservationStore, type ObservationStoreData, type ObservationType, type OperationalProfile, type OrchestratorOptions, type OrchestratorTaskStatus, type OrchestratorTeamConfig, PRE_COMMIT_CONFIG_TEMPLATE, PRE_COMMIT_HOOK_TEMPLATE, PROJECT_TYPE_HINTS, PackageManager, type ParseOptions, type PatternCategory, type PatternDomain, type PatternExtractionResult, type PatternGenerateOptions, type PatternStore, type PipelineStage, type PlanEvent, type PlanEventListener, type PlanExecutionOptions, type PlanExecutionResult, PlanExecutor, PlanGenerator, PlanParser, type PlanResult, type PlanStatus, type PlanStep, type PlanTask, type PlanTaskFiles, type PlanTaskResult, type PlanValidationResult, PlanValidator, type Plugin, type PluginConfig, type PluginContext, type PluginHooks, PluginLoader, PluginManager, type PluginMetadata, PrimerAnalysis, PrimerAnalyzer, PrimerGenerator, PrimerLanguage, type PrimerOptions, type PrimerResult, type ProfileConfig, type ProfileName, ProjectContext, ProjectDetector, ProjectPatterns, type ProjectProfile, ProjectStack, ProjectStructure, type ProviderPlugin, type QualityScore, type RecommendOptions, RecommendationEngine, type RecommendationResult, type RegisteredCommand, type RegistrySkill, type ReviewIssue, type ReviewResult, type ReviewStage, type ReviewStageName, RuleBasedCompressor, SESSION_FILE, SKILL_DISCOVERY_PATHS, type ScoredSkill, type ScoringWeights, type SearchOptions, type SearchResult, type SearchableSkill, type SessionContext, type SessionDecision, type SessionFile, SessionManager, type SessionMessage, type SessionState, type SessionSummary, type SessionTask, type ShareOptions, type SharedSkill, Skill, SkillBundle, type SkillEntry, type SkillExample, SkillExecutionEngine, type SkillExecutionEvent, type SkillExecutionResult, type SkillExecutor, type SkillExecutorOptions, SkillFrontmatter, type SkillHook, type SkillIndex, SkillLocation, SkillMdTranslator, SkillMetadata, SkillPreferences, type SkillSource, SkillSummary, type SkillTestCase, type SkillTestSuite, type SkillTranslationOptions, type SkillTranslationResult, SkillTriggerEngine, SkillkitConfig, type SkillsManifest, type SlashCommand, type SlashCommandResult, type SpecificityScore, type StepExecutor, type StepType, type StructureScore, type StructuredPlan, type SyncOptions, type SyncReport, type SyncResult, TAG_TO_TECH, TASK_TEMPLATES, type Task, type TaskEvent, type TaskEventListener, type TaskExecutionResult, type TaskFiles, type TaskFilter, TaskManager, type TaskPlan, type TaskResult, type TaskStatus, type TaskStep, type TaskTemplate, type Team, type TeamConfig, type TeamEvent, type TeamEventListener, TeamManager, type TeamMember, type TeamMessage, TeamMessageBus, TeamOrchestrator, type TeamRegistry, type TeamStatus, type TestAssertion, type TestAssertionType, type TestCaseResult, type TestProgressEvent, type TestResult, type TestRunnerOptions, type TestSuiteResult, TranslatableSkillFrontmatter, type TranslationOptions, type TranslationPath, type TranslationResult, type TranslatorPlugin, TranslatorRegistry, type TriggerEngineOptions, type UpdateOptions, type ValidationError, type ValidationIssue, type ValidationResult, type ValidationWarning, type ValidatorOptions, type VerificationRule, WORKFLOWS_DIR, WORKFLOW_EXTENSION, type WaveExecutionStatus, WindsurfTranslator, type Workflow, type WorkflowExecution, type WorkflowExecutionStatus, WorkflowOrchestrator, type WorkflowProgressCallback, type WorkflowSkill, type WorkflowWave, addCustomGuideline, addCustomProfile, addPattern, addToManifest, agentExists, analyzeForPrimer, analyzeGitHistory, analyzePrimer, analyzeProject, approvePattern, benchmarkSkill, buildSkillIndex, calculatePercentile, canTranslate, clusterPatterns, copilotTranslator, createAPIBasedCompressor, createCommandGenerator, createCommandRegistry, createContextLoader, createContextManager, createContextSync, createExecutionEngine, createHookManager, createMarketplaceAggregator, createMemoryCompressor, createMemoryEnabledEngine, createMemoryInjector, createMemoryObserver, createMessageBus, createMethodologyLoader, createMethodologyManager, createPlanExecutor, createPlanGenerator, createPlanParser, createPlanValidator, createPluginManager, createRecommendationEngine, createRuleBasedCompressor, createSessionFile, createSessionManager, createSimulatedSkillExecutor, createSkillBundle, createSkillExecutor, createTaskManager, createTeamManager, createTeamOrchestrator, createTestSuiteFromFrontmatter, createTriggerEngine, createWorkflowOrchestrator, createWorkflowTemplate, cursorTranslator, detectCategory, detectProvider, detectSkillFormat, disableGuideline, discoverAgents, discoverAgentsForAgent, discoverAgentsFromPath, discoverAgentsRecursive, discoverGlobalAgents, discoverSkills, dryRunExecutor, enableGuideline, estimateTokens, evaluateSkillContent, evaluateSkillDirectory, evaluateSkillFile, executeWithAgent, exportBundle, exportPatternsAsJson, extractAgentContent, extractAgentFrontmatter, extractField, extractFrontmatter, extractPatternsFromSession, extractSkillMetadata, fetchSkillsFromRepo, findAgent, findAllAgents, findAllSkills, findManifestPath, findSkill, formatSkillAsPrompt, fromCanonicalAgent, generateComparisonNotes, generateManifestFromInstalled, generatePatternReport, generatePrimer, generatePrimerForAgent, generateRecommendations, generateSkillFromPatterns, generateSkillsConfig, getActiveProfile, getAgentCLIConfig, getAgentConfigFile, getAgentConfigPath, getAgentDirectoryConfig, getAgentFilename, getAgentFormat, getAgentSkillsDir, getAgentStats, getAgentTargetDirectory, getAgentsDirectory, getAllCategories, getAllGuidelines, getAllPatterns, getAllProfiles, getAllProviders, getAllSkillsDirs, getApprovedPatterns, getAvailableCLIAgents, getBuiltinGuidelines, getBuiltinPacksDir, getBuiltinPipeline, getBuiltinPipelines, getBuiltinProfiles, getCICDTemplate, getCategoryStats, getConfigFile, getConfigFormat, getDefaultConfigPath, getDefaultStorePath, getEnabledGuidelineContent, getEnabledGuidelines, getEvolvingPattern, getEvolvingPatternsByDomain, getExecutionStrategy, getGitCommits, getGlobalConfigPath, getGlobalSkillsDir, getGrade, getGuideline, getGuidelineContent, getGuidelinesByCategory, getHighConfidencePatterns, getIndexStatus, getInstallDir, getLowConfidencePatterns, getManualExecutionInstructions, getMemoryPaths, getMemoryStatus, getMostRecentSession, getMostUsedPatterns, getPattern, getPatternStats, getPatternsByCategory, getProfile, getProfileContext, getProfileNames, getProjectConfigPath, getProvider, getQualityGrade, getRecentBugFixes, getRecentRefactors, getSearchDirs, getSkillsDir, getStackTags, getSupportedTranslationAgents, getTechTags, globalMemoryDirectoryExists, importBundle, importPatternsFromJson, initContext, initManifest, initProject, initializeMemoryDirectory, isAgentCLIAvailable, isAgentCompatible, isBuiltinGuideline, isBuiltinProfile, isGitUrl, isGuidelineEnabled, isHighQuality, isIndexStale, isLocalPath, isPathInside, listCICDTemplates, listSessions, listWorkflows, loadAgentMetadata, loadConfig, loadContext, loadGuidelineConfig, loadIndex, loadLearningConfig, loadManifest, loadMetadata, loadPatternStore, loadPlugin, loadPluginsFromDirectory, loadProfileConfig, loadSessionFile, loadSkillMetadata, loadWorkflow, loadWorkflowByName, memoryDirectoryExists, mergePatterns, parseAgentDir, parseAgentFile, parseShorthand, parseSkill, parseSkillContent, parseSkillContentToCanonical, parseSkillToCanonical, parseSource, parseWorkflow, readAgentContent, readSkillContent, recordFailure, recordSuccess, rejectPattern, removeCustomGuideline, removeCustomProfile, removeFromManifest, removePattern, runTestSuite, saveConfig, saveGeneratedSkill, saveGuidelineConfig, saveIndex, saveLearningConfig, saveManifest, savePatternStore, saveProfileConfig, saveSessionFile, saveSkillMetadata, saveWorkflow, serializeWorkflow, setActiveProfile, setSkillEnabled, shellExecutor, skillMdTranslator, supportsAutoDiscovery, supportsSlashCommands, syncToAgent, syncToAllAgents, toCanonicalAgent, translateAgent, translateAgentContent, translateAgents, translateCanonicalAgent, translateSkill, translateSkillFile, translateSkillToAgent, translateSkillToAll, translatorRegistry, updateSessionFile, validateAgent, validateBuiltinPacks, validatePackDirectory, validatePackManifest, validatePlan, validateSkill, validateSkillContent, validateWorkflow, windsurfTranslator, wrapProgressCallbackWithMemory, writeTranslatedSkill };