skill-tree 0.1.0 → 0.1.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/chunk-Q6SFFUDU.mjs +15874 -0
- package/dist/cli/index.mjs +1 -1
- package/dist/index.d.mts +308 -1
- package/dist/index.d.ts +308 -1
- package/dist/index.js +484 -0
- package/dist/index.mjs +5 -1
- package/package.json +5 -2
package/dist/cli/index.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -5926,6 +5926,313 @@ declare class NaiveLearningProvider implements LearningProvider {
|
|
|
5926
5926
|
*/
|
|
5927
5927
|
declare function createNaiveProvider(config?: NaiveProviderConfig): NaiveLearningProvider;
|
|
5928
5928
|
|
|
5929
|
+
/**
|
|
5930
|
+
* Cognitive Core Learning Provider
|
|
5931
|
+
*
|
|
5932
|
+
* Adapts cognitive-core's learning pipeline and playbook system
|
|
5933
|
+
* to skill-tree's LearningProvider interface.
|
|
5934
|
+
*
|
|
5935
|
+
* Features:
|
|
5936
|
+
* - Accumulating provider with batch extraction
|
|
5937
|
+
* - Outcome feedback for playbook refinement
|
|
5938
|
+
* - Persistent state via cognitive-core's MemorySystem
|
|
5939
|
+
* - Cross-trajectory pattern detection
|
|
5940
|
+
*
|
|
5941
|
+
* This provider uses dependency injection - consumers provide the
|
|
5942
|
+
* cognitive-core components rather than importing them directly.
|
|
5943
|
+
*
|
|
5944
|
+
* @packageDocumentation
|
|
5945
|
+
*/
|
|
5946
|
+
|
|
5947
|
+
/**
|
|
5948
|
+
* Cognitive-core Step type
|
|
5949
|
+
*/
|
|
5950
|
+
interface CCStep {
|
|
5951
|
+
thought?: string;
|
|
5952
|
+
action: string;
|
|
5953
|
+
observation: string;
|
|
5954
|
+
timestamp?: Date;
|
|
5955
|
+
metadata?: Record<string, unknown>;
|
|
5956
|
+
attributionScore?: number;
|
|
5957
|
+
}
|
|
5958
|
+
/**
|
|
5959
|
+
* Cognitive-core Task type
|
|
5960
|
+
*/
|
|
5961
|
+
interface CCTask {
|
|
5962
|
+
id: string;
|
|
5963
|
+
domain: string;
|
|
5964
|
+
description: string;
|
|
5965
|
+
context?: Record<string, unknown>;
|
|
5966
|
+
metadata?: Record<string, unknown>;
|
|
5967
|
+
}
|
|
5968
|
+
/**
|
|
5969
|
+
* Cognitive-core Outcome type
|
|
5970
|
+
*/
|
|
5971
|
+
interface CCOutcome {
|
|
5972
|
+
success: boolean;
|
|
5973
|
+
partialScore?: number;
|
|
5974
|
+
solution?: unknown;
|
|
5975
|
+
errorInfo?: string;
|
|
5976
|
+
}
|
|
5977
|
+
/**
|
|
5978
|
+
* Cognitive-core Trajectory type
|
|
5979
|
+
*/
|
|
5980
|
+
interface CCTrajectory {
|
|
5981
|
+
id: string;
|
|
5982
|
+
task: CCTask;
|
|
5983
|
+
steps: CCStep[];
|
|
5984
|
+
outcome: CCOutcome;
|
|
5985
|
+
agentId: string;
|
|
5986
|
+
timestamp?: Date;
|
|
5987
|
+
metadata?: Record<string, unknown>;
|
|
5988
|
+
}
|
|
5989
|
+
/**
|
|
5990
|
+
* Cognitive-core Playbook type
|
|
5991
|
+
*/
|
|
5992
|
+
interface CCPlaybook {
|
|
5993
|
+
id: string;
|
|
5994
|
+
name: string;
|
|
5995
|
+
applicability: {
|
|
5996
|
+
situations: string[];
|
|
5997
|
+
triggers: string[];
|
|
5998
|
+
antiPatterns: string[];
|
|
5999
|
+
domains: string[];
|
|
6000
|
+
};
|
|
6001
|
+
guidance: {
|
|
6002
|
+
strategy: string;
|
|
6003
|
+
tactics: string[];
|
|
6004
|
+
steps?: string[];
|
|
6005
|
+
codeExample?: string;
|
|
6006
|
+
};
|
|
6007
|
+
verification: {
|
|
6008
|
+
successIndicators: string[];
|
|
6009
|
+
failureIndicators: string[];
|
|
6010
|
+
rollbackStrategy?: string;
|
|
6011
|
+
};
|
|
6012
|
+
evolution: {
|
|
6013
|
+
version: string;
|
|
6014
|
+
createdFrom: string[];
|
|
6015
|
+
failures: Array<{
|
|
6016
|
+
trajectoryId: string;
|
|
6017
|
+
context: string;
|
|
6018
|
+
failureMode: string;
|
|
6019
|
+
timestamp: Date;
|
|
6020
|
+
}>;
|
|
6021
|
+
refinements: Array<{
|
|
6022
|
+
context: string;
|
|
6023
|
+
addition: string;
|
|
6024
|
+
source: 'failure' | 'success' | 'manual';
|
|
6025
|
+
addedAt: Date;
|
|
6026
|
+
}>;
|
|
6027
|
+
successCount: number;
|
|
6028
|
+
failureCount: number;
|
|
6029
|
+
lastUsed?: Date;
|
|
6030
|
+
};
|
|
6031
|
+
confidence: number;
|
|
6032
|
+
complexity: 'simple' | 'moderate' | 'complex';
|
|
6033
|
+
estimatedEffort: number;
|
|
6034
|
+
embedding?: number[];
|
|
6035
|
+
createdAt: Date;
|
|
6036
|
+
updatedAt: Date;
|
|
6037
|
+
}
|
|
6038
|
+
/**
|
|
6039
|
+
* Process result from LearningPipeline
|
|
6040
|
+
*/
|
|
6041
|
+
interface CCProcessResult {
|
|
6042
|
+
trajectoryId: string;
|
|
6043
|
+
stored: boolean;
|
|
6044
|
+
analysis: {
|
|
6045
|
+
success: boolean;
|
|
6046
|
+
abstractable: boolean;
|
|
6047
|
+
};
|
|
6048
|
+
playbookExtracted: boolean;
|
|
6049
|
+
}
|
|
6050
|
+
/**
|
|
6051
|
+
* Batch result from LearningPipeline
|
|
6052
|
+
*/
|
|
6053
|
+
interface CCBatchResult {
|
|
6054
|
+
trajectoriesProcessed: number;
|
|
6055
|
+
playbooksExtracted: number;
|
|
6056
|
+
experiencesPruned: number;
|
|
6057
|
+
successRate: number;
|
|
6058
|
+
}
|
|
6059
|
+
/**
|
|
6060
|
+
* Interface for cognitive-core's LearningPipeline
|
|
6061
|
+
*/
|
|
6062
|
+
interface CCLearningPipeline {
|
|
6063
|
+
processTrajectory(trajectory: CCTrajectory): Promise<CCProcessResult>;
|
|
6064
|
+
shouldRunBatch(): boolean;
|
|
6065
|
+
runBatchLearning(): Promise<CCBatchResult>;
|
|
6066
|
+
getAccumulatedCount(): number;
|
|
6067
|
+
clearAccumulated(): void;
|
|
6068
|
+
}
|
|
6069
|
+
/**
|
|
6070
|
+
* Interface for cognitive-core's PlaybookLibrary
|
|
6071
|
+
*/
|
|
6072
|
+
interface CCPlaybookLibrary {
|
|
6073
|
+
getAll(): Promise<CCPlaybook[]>;
|
|
6074
|
+
get(id: string): Promise<CCPlaybook | undefined>;
|
|
6075
|
+
add(playbook: CCPlaybook): Promise<void>;
|
|
6076
|
+
recordSuccess(id: string, trajectoryId: string): Promise<void>;
|
|
6077
|
+
recordFailure(id: string, trajectoryId: string, context: string, failureMode: string): Promise<void>;
|
|
6078
|
+
}
|
|
6079
|
+
/**
|
|
6080
|
+
* Interface for cognitive-core's MemorySystem (subset we need)
|
|
6081
|
+
*/
|
|
6082
|
+
interface CCMemorySystem {
|
|
6083
|
+
init(): Promise<void>;
|
|
6084
|
+
close(): Promise<void>;
|
|
6085
|
+
playbooks: CCPlaybookLibrary;
|
|
6086
|
+
recordPlaybookUsage(id: string, trajectoryId: string, success: boolean, context?: string, failureMode?: string): Promise<void>;
|
|
6087
|
+
}
|
|
6088
|
+
/**
|
|
6089
|
+
* Factory interface for creating cognitive-core components
|
|
6090
|
+
*/
|
|
6091
|
+
interface CognitiveCoreFactory {
|
|
6092
|
+
createMemorySystem(storagePath: string): CCMemorySystem;
|
|
6093
|
+
createLearningPipeline(memory: CCMemorySystem, config: {
|
|
6094
|
+
creditStrategy?: 'simple' | 'contribution';
|
|
6095
|
+
minTrajectories?: number;
|
|
6096
|
+
deduplicationThreshold?: number;
|
|
6097
|
+
}): CCLearningPipeline;
|
|
6098
|
+
createTrajectory(params: {
|
|
6099
|
+
id: string;
|
|
6100
|
+
task: CCTask;
|
|
6101
|
+
steps: CCStep[];
|
|
6102
|
+
outcome: CCOutcome;
|
|
6103
|
+
agentId: string;
|
|
6104
|
+
metadata?: Record<string, unknown>;
|
|
6105
|
+
}): CCTrajectory;
|
|
6106
|
+
createTask(params: {
|
|
6107
|
+
id: string;
|
|
6108
|
+
domain: string;
|
|
6109
|
+
description: string;
|
|
6110
|
+
context?: Record<string, unknown>;
|
|
6111
|
+
}): CCTask;
|
|
6112
|
+
createStep(params: {
|
|
6113
|
+
thought?: string;
|
|
6114
|
+
action: string;
|
|
6115
|
+
observation: string;
|
|
6116
|
+
}): CCStep;
|
|
6117
|
+
}
|
|
6118
|
+
/**
|
|
6119
|
+
* Extended config that includes the factory
|
|
6120
|
+
*/
|
|
6121
|
+
interface CognitiveCoreProviderOptions extends CognitiveCoreProviderConfig {
|
|
6122
|
+
factory: CognitiveCoreFactory;
|
|
6123
|
+
}
|
|
6124
|
+
/**
|
|
6125
|
+
* Cognitive Core learning provider using cognitive-core's learning pipeline.
|
|
6126
|
+
*
|
|
6127
|
+
* This is an accumulating provider that batches trajectories before extraction.
|
|
6128
|
+
* It uses cognitive-core's MemorySystem for persistence and PlaybookLibrary
|
|
6129
|
+
* for storing/matching learned patterns.
|
|
6130
|
+
*
|
|
6131
|
+
* Usage:
|
|
6132
|
+
* ```typescript
|
|
6133
|
+
* import { createMemorySystem, createLearningPipeline, createTrajectory, createTask, createStep } from 'cognitive-core';
|
|
6134
|
+
*
|
|
6135
|
+
* const provider = new CognitiveCoreProvider({
|
|
6136
|
+
* storagePath: './.memory',
|
|
6137
|
+
* factory: {
|
|
6138
|
+
* createMemorySystem,
|
|
6139
|
+
* createLearningPipeline,
|
|
6140
|
+
* createTrajectory,
|
|
6141
|
+
* createTask,
|
|
6142
|
+
* createStep,
|
|
6143
|
+
* },
|
|
6144
|
+
* });
|
|
6145
|
+
* ```
|
|
6146
|
+
*/
|
|
6147
|
+
declare class CognitiveCoreProvider implements LearningProvider {
|
|
6148
|
+
readonly name = "cognitive-core";
|
|
6149
|
+
readonly description = "Advanced learning using cognitive-core with batch extraction and feedback";
|
|
6150
|
+
readonly capabilities: ProviderCapabilities;
|
|
6151
|
+
private memory;
|
|
6152
|
+
private pipeline;
|
|
6153
|
+
private factory;
|
|
6154
|
+
private config;
|
|
6155
|
+
private initialized;
|
|
6156
|
+
private playbookIdCache;
|
|
6157
|
+
constructor(options: CognitiveCoreProviderOptions);
|
|
6158
|
+
/**
|
|
6159
|
+
* Initialize the provider (load persisted state)
|
|
6160
|
+
*/
|
|
6161
|
+
initialize(): Promise<void>;
|
|
6162
|
+
/**
|
|
6163
|
+
* Shutdown cleanly (persist state, release resources)
|
|
6164
|
+
*/
|
|
6165
|
+
shutdown(): Promise<void>;
|
|
6166
|
+
/**
|
|
6167
|
+
* Analyze a trajectory and accumulate for batch learning.
|
|
6168
|
+
* Returns empty candidates until flush() or batch threshold.
|
|
6169
|
+
*/
|
|
6170
|
+
analyze(trajectory: Trajectory, options?: AnalyzeOptions): Promise<AnalyzeResult>;
|
|
6171
|
+
/**
|
|
6172
|
+
* Analyze multiple trajectories together.
|
|
6173
|
+
* Enables better cross-trajectory pattern detection.
|
|
6174
|
+
*/
|
|
6175
|
+
analyzeBatch(trajectories: Trajectory[], options?: AnalyzeOptions): Promise<AnalyzeResult>;
|
|
6176
|
+
/**
|
|
6177
|
+
* Force extraction from accumulated trajectories.
|
|
6178
|
+
*/
|
|
6179
|
+
flush(options?: AnalyzeOptions): Promise<AnalyzeResult>;
|
|
6180
|
+
/**
|
|
6181
|
+
* Record outcome when a candidate/playbook is applied.
|
|
6182
|
+
* Updates playbook confidence and may generate refinements.
|
|
6183
|
+
*/
|
|
6184
|
+
recordOutcome(feedback: OutcomeFeedback): Promise<OutcomeResult>;
|
|
6185
|
+
/**
|
|
6186
|
+
* Check if a candidate is a duplicate based on playbook similarity
|
|
6187
|
+
*/
|
|
6188
|
+
isDuplicate(candidate: LearningCandidate, existing: LearningCandidate[]): boolean;
|
|
6189
|
+
/**
|
|
6190
|
+
* Compute similarity between two candidates
|
|
6191
|
+
*/
|
|
6192
|
+
computeSimilarity(a: LearningCandidate, b: LearningCandidate): number;
|
|
6193
|
+
/**
|
|
6194
|
+
* Run batch extraction and convert results to LearningCandidates
|
|
6195
|
+
*/
|
|
6196
|
+
private runBatchExtraction;
|
|
6197
|
+
/**
|
|
6198
|
+
* Convert a skill-tree Trajectory to cognitive-core Trajectory format
|
|
6199
|
+
*/
|
|
6200
|
+
private convertTrajectory;
|
|
6201
|
+
/**
|
|
6202
|
+
* Convert an assistant turn to a cognitive-core Step
|
|
6203
|
+
*/
|
|
6204
|
+
private turnToStep;
|
|
6205
|
+
/**
|
|
6206
|
+
* Convert a cognitive-core Playbook to a LearningCandidate
|
|
6207
|
+
*/
|
|
6208
|
+
private playbookToCandidate;
|
|
6209
|
+
/**
|
|
6210
|
+
* Create appropriate content type for the inferred kind
|
|
6211
|
+
*/
|
|
6212
|
+
private createContentForKind;
|
|
6213
|
+
/**
|
|
6214
|
+
* Infer the kind of learning from a playbook
|
|
6215
|
+
*/
|
|
6216
|
+
private inferKind;
|
|
6217
|
+
/**
|
|
6218
|
+
* Extract triggers from playbook applicability
|
|
6219
|
+
*/
|
|
6220
|
+
private extractTriggers;
|
|
6221
|
+
/**
|
|
6222
|
+
* Tokenize text into words
|
|
6223
|
+
*/
|
|
6224
|
+
private tokenize;
|
|
6225
|
+
/**
|
|
6226
|
+
* Compute Jaccard similarity between two arrays
|
|
6227
|
+
*/
|
|
6228
|
+
private jaccardSimilarity;
|
|
6229
|
+
}
|
|
6230
|
+
/**
|
|
6231
|
+
* Create a cognitive-core learning provider with the given configuration.
|
|
6232
|
+
* Requires a factory that provides cognitive-core components.
|
|
6233
|
+
*/
|
|
6234
|
+
declare function createCognitiveCoreProvider(options: CognitiveCoreProviderOptions): CognitiveCoreProvider;
|
|
6235
|
+
|
|
5929
6236
|
/**
|
|
5930
6237
|
* LoadoutCompiler - Compiles skills from flexible criteria
|
|
5931
6238
|
*
|
|
@@ -6810,4 +7117,4 @@ declare function createMcpServer(graphServer: SkillGraphServer, config?: McpServ
|
|
|
6810
7117
|
*/
|
|
6811
7118
|
declare const VERSION = "0.1.0";
|
|
6812
7119
|
|
|
6813
|
-
export { type ActivationCallback, type ActivationCheckResult, type ActivationConfig, ActivationManager, type ActivationState, type ActivationTrigger, AdapterRegistry, type AgentConfig, AgentsGenerator, type AgentsGeneratorConfig, AgentsParser, AgentsSync, type AnalysisResult, type AnalyzeOptions, AnthropicAdapter, AutomaticExtractor, BaseExtractor, type BaseHookContext, BaseSessionAdapter, BaseStorageAdapter, type BatchConfig, BatchProcessor, type BatchProgress, type BatchResult, type BumpType, ClaudeCodeAdapter, type CognitiveCoreProviderConfig, type CompatibilityCheckResult, type CompatibilityIssue, type ComposerConfig, type CompositionConflict, type CompositionMode, type CompositionResult, type CompositionSuggestion$1 as CompositionSuggestion, type CompoundSkill, type ConflictConfig, type ConflictResolution$1 as ConflictResolution, ConflictStore, type ConflictStrategy, DEFAULT_ACTIVATION_CONFIG, DEFAULT_AGENTS_CONFIG, DEFAULT_METRICS_CONFIG, DEFAULT_QUALITY_GATES, DEFAULT_VALIDATOR_CONFIG, type DeduplicationStrategy, DependencyGraph, type DependencyType, type EmbeddingProvider, type EmbeddingProviderOptions, type ErrorFixContent, type EvictionStrategy, type ExampleSpec, type ExecutionOrder, type ExpandTrigger, type ExpandTriggerConfig, type ExtractOptions, type ExtractionConfig, type ExtractionHookContext, type ExtractionResult, type FeedbackEvent, type FetchResult, FileMetricsStorage, FilesystemStorageAdapter, type FilesystemStorageConfig, type ForkOptions, GenericAdapter, type GenericAdapterConfig, GitSyncAdapter, type GitSyncAdapterOptions, type SyncResult as GitSyncResult, type GraphEdge, type GraphNode, type GraphServerConfig, type HookContext, type HookEvent, type HookExecutionResult, type HookHandler, type HookPriority, HookRegistry, type HookResult, type LLMOptions, type LLMProvider, type LearningCandidate, type LearningContent, type LearningKind, type LearningProvider, type LearningSource, LineageTracker, type LineageTree, LoadoutCompiler, type LoadoutCompilerConfig, type LoadoutCriteria, type LoadoutSource, type LoadoutState, type LoadoutView, type ManualExtractionRequest, ManualExtractor, type MatchContext, type MatchResult, type MatcherConfig, type McpServerConfig, type ToolResult as McpToolResult, MemoryMetricsStorage, MemoryStorageAdapter, type MergeConfig, type MergeConflict, type MergePreview, type MergeResult, type MergeStrategy, type MergeSuggestion, type MetricsConfig, type MetricsStorage, MetricsTracker, type MigrationOptions, type MigrationProgressItem, type MigrationResult, NaiveLearningProvider, type NaiveProviderConfig, type NewVersionOptions, OpenAIAdapter, OpenAIEmbedding, type ParsedAgentSkill, type ParsedAgentsFile, type ParsedVersion, type PatternContent, type ProjectContext, ProjectDetector, type PullOptions, type PushOptions, type QualityGate, QualityGateEvaluator, type QualityGateResult, type QualityHookContext, type RegisterHookOptions, type RegisteredHook, type RejectedCandidate, type RemoteConfig, type RollbackOptions, SQLiteStorageAdapter, type SQLiteStorageConfig, SemanticMatcher, type ServingEvent, type ServingEventHandler, type SessionAdapter, type SessionHookContext, type SessionInput, SimpleHashEmbedding, type Skill, type SkillAccessControl, SkillBank, type SkillBankConfig, type SkillBankStats, type SkillChange, type SkillComponent, SkillComposer, type SkillConflict, type SkillContent, type SkillDiffChanges, type SkillEmbeddingField, type SkillExample, type SkillFilter, type SkillFork, type SkillFormat, SkillGraphServer, type SkillHookContext, type SkillLineage, type SkillMergeResult, SkillMerger, type SkillMetrics, type SkillMetricsSnapshot, type SkillNamespace, type SkillQuery, type SkillRanking, type SkillScope, type SkillSelector, type SkillServingMetadata, type SkillSource, type SkillState, type SkillStatus, type SkillSummary, type SkillSyncState, type SkillTreeEvent, type SkillTreeEventHandler, SkillTreeMcpServer, type SkillUpstream, type SkillValidationResult, SkillValidator, type SkillVersion, type SkillVisibility, type StepAttribution, type StorageAdapter, type StorageConfig, type StorageHookContext, type StrategyContent, type SyncBehaviorConfig, type SyncConfig, type ConflictResolution as SyncConflictResolution, type SyncError, type SyncOptions, type SyncResult$1 as SyncResult, type SyncState, type SyncStatus, type TestCaseResult, type TestRunner, type ToolCall, type ToolDefinition, type ToolHandler, type ToolResult$1 as ToolResult, type Trajectory, type TrajectoryMetadata, type TrajectoryOutcome, type TriggerCondition, type TriggerSpec, type Turn, type UsageEvent, type UsageReport, type UsageTrend, VERSION, type ValidationRecommendation, type ValidationSchedule, type ValidationTestCase, type ValidatorConfig, type VersionChanges, type VersionDiff, ViewRenderer, type ViewRendererConfig, VoyageEmbedding, adapterRegistry, allTools, anthropicAdapter, builtInProfiles, bumpVersion, claudeCodeAdapter, codeReviewProfile, combineHandlers, compareVersions, conditionalHook, cosineSimilarity, createActivationManager, createAgentsGenerator, createAgentsParser, createAgentsSync, createBackupHook, createConflictStore, createDefaultSyncConfig, createExtractionEnrichmentHook, createExtractionValidationHook, createGenericAdapter, createGitSyncAdapter, createLoggingHook, createMcpServer, createMetricsHook, createMetricsTracker, createNaiveProvider, createQualityBypassHook, createQualityLoggingHook, createSaveValidationHook, createSkillBank, createSkillMerger, createSkillValidator, createToolHandlers, debuggingProfile, devopsProfile, documentationProfile, euclideanDistance, executeToolCall, formatVersion, generateAgentsMd, genericAdapter, getBuiltInProfile, getLatestVersion, getToolDefinition, getToolNames, hookRegistry, implementationProfile, importFromAgentsMd, inferBumpType, isCompoundSkill, isValidVersion, listBuiltInProfiles, loadoutAddTool, loadoutListTool, loadoutProfileTool, loadoutRemoveTool, loadoutSearchTool, loadoutSetTool, loadoutTools, migrateStorage, openAIAdapter, parseVersion, refactoringProfile, satisfiesRange, securityProfile, skillCollapseTool, skillExpandTool, skillGetTool, skillTools, skillUseTool, sortVersions, testingProfile, writeAgentsMd };
|
|
7120
|
+
export { type ActivationCallback, type ActivationCheckResult, type ActivationConfig, ActivationManager, type ActivationState, type ActivationTrigger, AdapterRegistry, type AgentConfig, AgentsGenerator, type AgentsGeneratorConfig, AgentsParser, AgentsSync, type AnalysisResult, type AnalyzeOptions, type AnalyzeResult, AnthropicAdapter, type AntiPattern, AutomaticExtractor, BaseExtractor, type BaseHookContext, BaseSessionAdapter, BaseStorageAdapter, type BatchConfig, BatchProcessor, type BatchProgress, type BatchResult, type BumpType, type CCBatchResult, type CCLearningPipeline, type CCMemorySystem, type CCOutcome, type CCPlaybook, type CCPlaybookLibrary, type CCProcessResult, type CCStep, type CCTask, type CCTrajectory, type CandidateUpdate, ClaudeCodeAdapter, type CognitiveCoreFactory, CognitiveCoreProvider, type CognitiveCoreProviderConfig, type CognitiveCoreProviderOptions, type CompatibilityCheckResult, type CompatibilityIssue, type ComposerConfig, type CompositionConflict, type CompositionMode, type CompositionResult, type CompositionSuggestion$1 as CompositionSuggestion, type CompoundSkill, type ConflictConfig, type ConflictResolution$1 as ConflictResolution, ConflictStore, type ConflictStrategy, DEFAULT_ACTIVATION_CONFIG, DEFAULT_AGENTS_CONFIG, DEFAULT_METRICS_CONFIG, DEFAULT_QUALITY_GATES, DEFAULT_VALIDATOR_CONFIG, type DeduplicationStrategy, DependencyGraph, type DependencyType, type EmbeddingProvider, type EmbeddingProviderOptions, type ErrorFixContent, type EvictionStrategy, type ExampleSpec, type ExecutionOrder, type ExpandTrigger, type ExpandTriggerConfig, type ExtractOptions, type ExtractionConfig, type ExtractionHookContext, type ExtractionResult, type FeedbackEvent, type FetchResult, FileMetricsStorage, FilesystemStorageAdapter, type FilesystemStorageConfig, type ForkOptions, GenericAdapter, type GenericAdapterConfig, GitSyncAdapter, type GitSyncAdapterOptions, type SyncResult as GitSyncResult, type GraphEdge, type GraphNode, type GraphServerConfig, type HookContext, type HookEvent, type HookExecutionResult, type HookHandler, type HookPriority, HookRegistry, type HookResult, type LLMOptions, type LLMProvider, type LearningCandidate, type LearningContent, type LearningKind, type LearningProvider, type LearningSource, LineageTracker, type LineageTree, LoadoutCompiler, type LoadoutCompilerConfig, type LoadoutCriteria, type LoadoutSource, type LoadoutState, type LoadoutView, type ManualExtractionRequest, ManualExtractor, type MatchContext, type MatchResult, type MatcherConfig, type McpServerConfig, type ToolResult as McpToolResult, MemoryMetricsStorage, MemoryStorageAdapter, type MergeConfig, type MergeConflict, type MergePreview, type MergeResult, type MergeStrategy, type MergeSuggestion, type MetricsConfig, type MetricsStorage, MetricsTracker, type MigrationOptions, type MigrationProgressItem, type MigrationResult, NaiveLearningProvider, type NaiveProviderConfig, type NewVersionOptions, OpenAIAdapter, OpenAIEmbedding, type OutcomeFeedback, type OutcomeResult, type ParsedAgentSkill, type ParsedAgentsFile, type ParsedVersion, type PatternContent, type ProjectContext, ProjectDetector, type PullOptions, type PushOptions, type QualityGate, QualityGateEvaluator, type QualityGateResult, type QualityHookContext, type RegisterHookOptions, type RegisteredHook, type RejectedCandidate, type RemoteConfig, type RollbackOptions, SQLiteStorageAdapter, type SQLiteStorageConfig, SemanticMatcher, type ServingEvent, type ServingEventHandler, type SessionAdapter, type SessionHookContext, type SessionInput, SimpleHashEmbedding, type Skill, type SkillAccessControl, SkillBank, type SkillBankConfig, type SkillBankStats, type SkillChange, type SkillComponent, SkillComposer, type SkillConflict, type SkillContent, type SkillDiffChanges, type SkillEmbeddingField, type SkillExample, type SkillFilter, type SkillFork, type SkillFormat, SkillGraphServer, type SkillHookContext, type SkillLineage, type SkillMergeResult, SkillMerger, type SkillMetrics, type SkillMetricsSnapshot, type SkillNamespace, type SkillQuery, type SkillRanking, type SkillScope, type SkillSelector, type SkillServingMetadata, type SkillSource, type SkillState, type SkillStatus, type SkillSummary, type SkillSyncState, type SkillTreeEvent, type SkillTreeEventHandler, SkillTreeMcpServer, type SkillUpstream, type SkillValidationResult, SkillValidator, type SkillVersion, type SkillVisibility, type StepAttribution, type StorageAdapter, type StorageConfig, type StorageHookContext, type StrategyContent, type SyncBehaviorConfig, type SyncConfig, type ConflictResolution as SyncConflictResolution, type SyncError, type SyncOptions, type SyncResult$1 as SyncResult, type SyncState, type SyncStatus, type TestCaseResult, type TestRunner, type ToolCall, type ToolDefinition, type ToolHandler, type ToolResult$1 as ToolResult, type Trajectory, type TrajectoryMetadata, type TrajectoryOutcome, type TriggerCondition, type TriggerSpec, type Turn, type UsageEvent, type UsageReport, type UsageTrend, VERSION, type ValidationRecommendation, type ValidationSchedule, type ValidationTestCase, type ValidatorConfig, type VersionChanges, type VersionDiff, ViewRenderer, type ViewRendererConfig, VoyageEmbedding, adapterRegistry, allTools, anthropicAdapter, builtInProfiles, bumpVersion, claudeCodeAdapter, codeReviewProfile, combineHandlers, compareVersions, conditionalHook, cosineSimilarity, createActivationManager, createAgentsGenerator, createAgentsParser, createAgentsSync, createBackupHook, createCognitiveCoreProvider, createConflictStore, createDefaultSyncConfig, createExtractionEnrichmentHook, createExtractionValidationHook, createGenericAdapter, createGitSyncAdapter, createLoggingHook, createMcpServer, createMetricsHook, createMetricsTracker, createNaiveProvider, createQualityBypassHook, createQualityLoggingHook, createSaveValidationHook, createSkillBank, createSkillMerger, createSkillValidator, createToolHandlers, debuggingProfile, devopsProfile, documentationProfile, euclideanDistance, executeToolCall, formatVersion, generateAgentsMd, genericAdapter, getBuiltInProfile, getLatestVersion, getToolDefinition, getToolNames, hookRegistry, implementationProfile, importFromAgentsMd, inferBumpType, isCompoundSkill, isValidVersion, listBuiltInProfiles, loadoutAddTool, loadoutListTool, loadoutProfileTool, loadoutRemoveTool, loadoutSearchTool, loadoutSetTool, loadoutTools, migrateStorage, openAIAdapter, parseVersion, refactoringProfile, satisfiesRange, securityProfile, skillCollapseTool, skillExpandTool, skillGetTool, skillTools, skillUseTool, sortVersions, testingProfile, writeAgentsMd };
|
package/dist/index.d.ts
CHANGED
|
@@ -5926,6 +5926,313 @@ declare class NaiveLearningProvider implements LearningProvider {
|
|
|
5926
5926
|
*/
|
|
5927
5927
|
declare function createNaiveProvider(config?: NaiveProviderConfig): NaiveLearningProvider;
|
|
5928
5928
|
|
|
5929
|
+
/**
|
|
5930
|
+
* Cognitive Core Learning Provider
|
|
5931
|
+
*
|
|
5932
|
+
* Adapts cognitive-core's learning pipeline and playbook system
|
|
5933
|
+
* to skill-tree's LearningProvider interface.
|
|
5934
|
+
*
|
|
5935
|
+
* Features:
|
|
5936
|
+
* - Accumulating provider with batch extraction
|
|
5937
|
+
* - Outcome feedback for playbook refinement
|
|
5938
|
+
* - Persistent state via cognitive-core's MemorySystem
|
|
5939
|
+
* - Cross-trajectory pattern detection
|
|
5940
|
+
*
|
|
5941
|
+
* This provider uses dependency injection - consumers provide the
|
|
5942
|
+
* cognitive-core components rather than importing them directly.
|
|
5943
|
+
*
|
|
5944
|
+
* @packageDocumentation
|
|
5945
|
+
*/
|
|
5946
|
+
|
|
5947
|
+
/**
|
|
5948
|
+
* Cognitive-core Step type
|
|
5949
|
+
*/
|
|
5950
|
+
interface CCStep {
|
|
5951
|
+
thought?: string;
|
|
5952
|
+
action: string;
|
|
5953
|
+
observation: string;
|
|
5954
|
+
timestamp?: Date;
|
|
5955
|
+
metadata?: Record<string, unknown>;
|
|
5956
|
+
attributionScore?: number;
|
|
5957
|
+
}
|
|
5958
|
+
/**
|
|
5959
|
+
* Cognitive-core Task type
|
|
5960
|
+
*/
|
|
5961
|
+
interface CCTask {
|
|
5962
|
+
id: string;
|
|
5963
|
+
domain: string;
|
|
5964
|
+
description: string;
|
|
5965
|
+
context?: Record<string, unknown>;
|
|
5966
|
+
metadata?: Record<string, unknown>;
|
|
5967
|
+
}
|
|
5968
|
+
/**
|
|
5969
|
+
* Cognitive-core Outcome type
|
|
5970
|
+
*/
|
|
5971
|
+
interface CCOutcome {
|
|
5972
|
+
success: boolean;
|
|
5973
|
+
partialScore?: number;
|
|
5974
|
+
solution?: unknown;
|
|
5975
|
+
errorInfo?: string;
|
|
5976
|
+
}
|
|
5977
|
+
/**
|
|
5978
|
+
* Cognitive-core Trajectory type
|
|
5979
|
+
*/
|
|
5980
|
+
interface CCTrajectory {
|
|
5981
|
+
id: string;
|
|
5982
|
+
task: CCTask;
|
|
5983
|
+
steps: CCStep[];
|
|
5984
|
+
outcome: CCOutcome;
|
|
5985
|
+
agentId: string;
|
|
5986
|
+
timestamp?: Date;
|
|
5987
|
+
metadata?: Record<string, unknown>;
|
|
5988
|
+
}
|
|
5989
|
+
/**
|
|
5990
|
+
* Cognitive-core Playbook type
|
|
5991
|
+
*/
|
|
5992
|
+
interface CCPlaybook {
|
|
5993
|
+
id: string;
|
|
5994
|
+
name: string;
|
|
5995
|
+
applicability: {
|
|
5996
|
+
situations: string[];
|
|
5997
|
+
triggers: string[];
|
|
5998
|
+
antiPatterns: string[];
|
|
5999
|
+
domains: string[];
|
|
6000
|
+
};
|
|
6001
|
+
guidance: {
|
|
6002
|
+
strategy: string;
|
|
6003
|
+
tactics: string[];
|
|
6004
|
+
steps?: string[];
|
|
6005
|
+
codeExample?: string;
|
|
6006
|
+
};
|
|
6007
|
+
verification: {
|
|
6008
|
+
successIndicators: string[];
|
|
6009
|
+
failureIndicators: string[];
|
|
6010
|
+
rollbackStrategy?: string;
|
|
6011
|
+
};
|
|
6012
|
+
evolution: {
|
|
6013
|
+
version: string;
|
|
6014
|
+
createdFrom: string[];
|
|
6015
|
+
failures: Array<{
|
|
6016
|
+
trajectoryId: string;
|
|
6017
|
+
context: string;
|
|
6018
|
+
failureMode: string;
|
|
6019
|
+
timestamp: Date;
|
|
6020
|
+
}>;
|
|
6021
|
+
refinements: Array<{
|
|
6022
|
+
context: string;
|
|
6023
|
+
addition: string;
|
|
6024
|
+
source: 'failure' | 'success' | 'manual';
|
|
6025
|
+
addedAt: Date;
|
|
6026
|
+
}>;
|
|
6027
|
+
successCount: number;
|
|
6028
|
+
failureCount: number;
|
|
6029
|
+
lastUsed?: Date;
|
|
6030
|
+
};
|
|
6031
|
+
confidence: number;
|
|
6032
|
+
complexity: 'simple' | 'moderate' | 'complex';
|
|
6033
|
+
estimatedEffort: number;
|
|
6034
|
+
embedding?: number[];
|
|
6035
|
+
createdAt: Date;
|
|
6036
|
+
updatedAt: Date;
|
|
6037
|
+
}
|
|
6038
|
+
/**
|
|
6039
|
+
* Process result from LearningPipeline
|
|
6040
|
+
*/
|
|
6041
|
+
interface CCProcessResult {
|
|
6042
|
+
trajectoryId: string;
|
|
6043
|
+
stored: boolean;
|
|
6044
|
+
analysis: {
|
|
6045
|
+
success: boolean;
|
|
6046
|
+
abstractable: boolean;
|
|
6047
|
+
};
|
|
6048
|
+
playbookExtracted: boolean;
|
|
6049
|
+
}
|
|
6050
|
+
/**
|
|
6051
|
+
* Batch result from LearningPipeline
|
|
6052
|
+
*/
|
|
6053
|
+
interface CCBatchResult {
|
|
6054
|
+
trajectoriesProcessed: number;
|
|
6055
|
+
playbooksExtracted: number;
|
|
6056
|
+
experiencesPruned: number;
|
|
6057
|
+
successRate: number;
|
|
6058
|
+
}
|
|
6059
|
+
/**
|
|
6060
|
+
* Interface for cognitive-core's LearningPipeline
|
|
6061
|
+
*/
|
|
6062
|
+
interface CCLearningPipeline {
|
|
6063
|
+
processTrajectory(trajectory: CCTrajectory): Promise<CCProcessResult>;
|
|
6064
|
+
shouldRunBatch(): boolean;
|
|
6065
|
+
runBatchLearning(): Promise<CCBatchResult>;
|
|
6066
|
+
getAccumulatedCount(): number;
|
|
6067
|
+
clearAccumulated(): void;
|
|
6068
|
+
}
|
|
6069
|
+
/**
|
|
6070
|
+
* Interface for cognitive-core's PlaybookLibrary
|
|
6071
|
+
*/
|
|
6072
|
+
interface CCPlaybookLibrary {
|
|
6073
|
+
getAll(): Promise<CCPlaybook[]>;
|
|
6074
|
+
get(id: string): Promise<CCPlaybook | undefined>;
|
|
6075
|
+
add(playbook: CCPlaybook): Promise<void>;
|
|
6076
|
+
recordSuccess(id: string, trajectoryId: string): Promise<void>;
|
|
6077
|
+
recordFailure(id: string, trajectoryId: string, context: string, failureMode: string): Promise<void>;
|
|
6078
|
+
}
|
|
6079
|
+
/**
|
|
6080
|
+
* Interface for cognitive-core's MemorySystem (subset we need)
|
|
6081
|
+
*/
|
|
6082
|
+
interface CCMemorySystem {
|
|
6083
|
+
init(): Promise<void>;
|
|
6084
|
+
close(): Promise<void>;
|
|
6085
|
+
playbooks: CCPlaybookLibrary;
|
|
6086
|
+
recordPlaybookUsage(id: string, trajectoryId: string, success: boolean, context?: string, failureMode?: string): Promise<void>;
|
|
6087
|
+
}
|
|
6088
|
+
/**
|
|
6089
|
+
* Factory interface for creating cognitive-core components
|
|
6090
|
+
*/
|
|
6091
|
+
interface CognitiveCoreFactory {
|
|
6092
|
+
createMemorySystem(storagePath: string): CCMemorySystem;
|
|
6093
|
+
createLearningPipeline(memory: CCMemorySystem, config: {
|
|
6094
|
+
creditStrategy?: 'simple' | 'contribution';
|
|
6095
|
+
minTrajectories?: number;
|
|
6096
|
+
deduplicationThreshold?: number;
|
|
6097
|
+
}): CCLearningPipeline;
|
|
6098
|
+
createTrajectory(params: {
|
|
6099
|
+
id: string;
|
|
6100
|
+
task: CCTask;
|
|
6101
|
+
steps: CCStep[];
|
|
6102
|
+
outcome: CCOutcome;
|
|
6103
|
+
agentId: string;
|
|
6104
|
+
metadata?: Record<string, unknown>;
|
|
6105
|
+
}): CCTrajectory;
|
|
6106
|
+
createTask(params: {
|
|
6107
|
+
id: string;
|
|
6108
|
+
domain: string;
|
|
6109
|
+
description: string;
|
|
6110
|
+
context?: Record<string, unknown>;
|
|
6111
|
+
}): CCTask;
|
|
6112
|
+
createStep(params: {
|
|
6113
|
+
thought?: string;
|
|
6114
|
+
action: string;
|
|
6115
|
+
observation: string;
|
|
6116
|
+
}): CCStep;
|
|
6117
|
+
}
|
|
6118
|
+
/**
|
|
6119
|
+
* Extended config that includes the factory
|
|
6120
|
+
*/
|
|
6121
|
+
interface CognitiveCoreProviderOptions extends CognitiveCoreProviderConfig {
|
|
6122
|
+
factory: CognitiveCoreFactory;
|
|
6123
|
+
}
|
|
6124
|
+
/**
|
|
6125
|
+
* Cognitive Core learning provider using cognitive-core's learning pipeline.
|
|
6126
|
+
*
|
|
6127
|
+
* This is an accumulating provider that batches trajectories before extraction.
|
|
6128
|
+
* It uses cognitive-core's MemorySystem for persistence and PlaybookLibrary
|
|
6129
|
+
* for storing/matching learned patterns.
|
|
6130
|
+
*
|
|
6131
|
+
* Usage:
|
|
6132
|
+
* ```typescript
|
|
6133
|
+
* import { createMemorySystem, createLearningPipeline, createTrajectory, createTask, createStep } from 'cognitive-core';
|
|
6134
|
+
*
|
|
6135
|
+
* const provider = new CognitiveCoreProvider({
|
|
6136
|
+
* storagePath: './.memory',
|
|
6137
|
+
* factory: {
|
|
6138
|
+
* createMemorySystem,
|
|
6139
|
+
* createLearningPipeline,
|
|
6140
|
+
* createTrajectory,
|
|
6141
|
+
* createTask,
|
|
6142
|
+
* createStep,
|
|
6143
|
+
* },
|
|
6144
|
+
* });
|
|
6145
|
+
* ```
|
|
6146
|
+
*/
|
|
6147
|
+
declare class CognitiveCoreProvider implements LearningProvider {
|
|
6148
|
+
readonly name = "cognitive-core";
|
|
6149
|
+
readonly description = "Advanced learning using cognitive-core with batch extraction and feedback";
|
|
6150
|
+
readonly capabilities: ProviderCapabilities;
|
|
6151
|
+
private memory;
|
|
6152
|
+
private pipeline;
|
|
6153
|
+
private factory;
|
|
6154
|
+
private config;
|
|
6155
|
+
private initialized;
|
|
6156
|
+
private playbookIdCache;
|
|
6157
|
+
constructor(options: CognitiveCoreProviderOptions);
|
|
6158
|
+
/**
|
|
6159
|
+
* Initialize the provider (load persisted state)
|
|
6160
|
+
*/
|
|
6161
|
+
initialize(): Promise<void>;
|
|
6162
|
+
/**
|
|
6163
|
+
* Shutdown cleanly (persist state, release resources)
|
|
6164
|
+
*/
|
|
6165
|
+
shutdown(): Promise<void>;
|
|
6166
|
+
/**
|
|
6167
|
+
* Analyze a trajectory and accumulate for batch learning.
|
|
6168
|
+
* Returns empty candidates until flush() or batch threshold.
|
|
6169
|
+
*/
|
|
6170
|
+
analyze(trajectory: Trajectory, options?: AnalyzeOptions): Promise<AnalyzeResult>;
|
|
6171
|
+
/**
|
|
6172
|
+
* Analyze multiple trajectories together.
|
|
6173
|
+
* Enables better cross-trajectory pattern detection.
|
|
6174
|
+
*/
|
|
6175
|
+
analyzeBatch(trajectories: Trajectory[], options?: AnalyzeOptions): Promise<AnalyzeResult>;
|
|
6176
|
+
/**
|
|
6177
|
+
* Force extraction from accumulated trajectories.
|
|
6178
|
+
*/
|
|
6179
|
+
flush(options?: AnalyzeOptions): Promise<AnalyzeResult>;
|
|
6180
|
+
/**
|
|
6181
|
+
* Record outcome when a candidate/playbook is applied.
|
|
6182
|
+
* Updates playbook confidence and may generate refinements.
|
|
6183
|
+
*/
|
|
6184
|
+
recordOutcome(feedback: OutcomeFeedback): Promise<OutcomeResult>;
|
|
6185
|
+
/**
|
|
6186
|
+
* Check if a candidate is a duplicate based on playbook similarity
|
|
6187
|
+
*/
|
|
6188
|
+
isDuplicate(candidate: LearningCandidate, existing: LearningCandidate[]): boolean;
|
|
6189
|
+
/**
|
|
6190
|
+
* Compute similarity between two candidates
|
|
6191
|
+
*/
|
|
6192
|
+
computeSimilarity(a: LearningCandidate, b: LearningCandidate): number;
|
|
6193
|
+
/**
|
|
6194
|
+
* Run batch extraction and convert results to LearningCandidates
|
|
6195
|
+
*/
|
|
6196
|
+
private runBatchExtraction;
|
|
6197
|
+
/**
|
|
6198
|
+
* Convert a skill-tree Trajectory to cognitive-core Trajectory format
|
|
6199
|
+
*/
|
|
6200
|
+
private convertTrajectory;
|
|
6201
|
+
/**
|
|
6202
|
+
* Convert an assistant turn to a cognitive-core Step
|
|
6203
|
+
*/
|
|
6204
|
+
private turnToStep;
|
|
6205
|
+
/**
|
|
6206
|
+
* Convert a cognitive-core Playbook to a LearningCandidate
|
|
6207
|
+
*/
|
|
6208
|
+
private playbookToCandidate;
|
|
6209
|
+
/**
|
|
6210
|
+
* Create appropriate content type for the inferred kind
|
|
6211
|
+
*/
|
|
6212
|
+
private createContentForKind;
|
|
6213
|
+
/**
|
|
6214
|
+
* Infer the kind of learning from a playbook
|
|
6215
|
+
*/
|
|
6216
|
+
private inferKind;
|
|
6217
|
+
/**
|
|
6218
|
+
* Extract triggers from playbook applicability
|
|
6219
|
+
*/
|
|
6220
|
+
private extractTriggers;
|
|
6221
|
+
/**
|
|
6222
|
+
* Tokenize text into words
|
|
6223
|
+
*/
|
|
6224
|
+
private tokenize;
|
|
6225
|
+
/**
|
|
6226
|
+
* Compute Jaccard similarity between two arrays
|
|
6227
|
+
*/
|
|
6228
|
+
private jaccardSimilarity;
|
|
6229
|
+
}
|
|
6230
|
+
/**
|
|
6231
|
+
* Create a cognitive-core learning provider with the given configuration.
|
|
6232
|
+
* Requires a factory that provides cognitive-core components.
|
|
6233
|
+
*/
|
|
6234
|
+
declare function createCognitiveCoreProvider(options: CognitiveCoreProviderOptions): CognitiveCoreProvider;
|
|
6235
|
+
|
|
5929
6236
|
/**
|
|
5930
6237
|
* LoadoutCompiler - Compiles skills from flexible criteria
|
|
5931
6238
|
*
|
|
@@ -6810,4 +7117,4 @@ declare function createMcpServer(graphServer: SkillGraphServer, config?: McpServ
|
|
|
6810
7117
|
*/
|
|
6811
7118
|
declare const VERSION = "0.1.0";
|
|
6812
7119
|
|
|
6813
|
-
export { type ActivationCallback, type ActivationCheckResult, type ActivationConfig, ActivationManager, type ActivationState, type ActivationTrigger, AdapterRegistry, type AgentConfig, AgentsGenerator, type AgentsGeneratorConfig, AgentsParser, AgentsSync, type AnalysisResult, type AnalyzeOptions, AnthropicAdapter, AutomaticExtractor, BaseExtractor, type BaseHookContext, BaseSessionAdapter, BaseStorageAdapter, type BatchConfig, BatchProcessor, type BatchProgress, type BatchResult, type BumpType, ClaudeCodeAdapter, type CognitiveCoreProviderConfig, type CompatibilityCheckResult, type CompatibilityIssue, type ComposerConfig, type CompositionConflict, type CompositionMode, type CompositionResult, type CompositionSuggestion$1 as CompositionSuggestion, type CompoundSkill, type ConflictConfig, type ConflictResolution$1 as ConflictResolution, ConflictStore, type ConflictStrategy, DEFAULT_ACTIVATION_CONFIG, DEFAULT_AGENTS_CONFIG, DEFAULT_METRICS_CONFIG, DEFAULT_QUALITY_GATES, DEFAULT_VALIDATOR_CONFIG, type DeduplicationStrategy, DependencyGraph, type DependencyType, type EmbeddingProvider, type EmbeddingProviderOptions, type ErrorFixContent, type EvictionStrategy, type ExampleSpec, type ExecutionOrder, type ExpandTrigger, type ExpandTriggerConfig, type ExtractOptions, type ExtractionConfig, type ExtractionHookContext, type ExtractionResult, type FeedbackEvent, type FetchResult, FileMetricsStorage, FilesystemStorageAdapter, type FilesystemStorageConfig, type ForkOptions, GenericAdapter, type GenericAdapterConfig, GitSyncAdapter, type GitSyncAdapterOptions, type SyncResult as GitSyncResult, type GraphEdge, type GraphNode, type GraphServerConfig, type HookContext, type HookEvent, type HookExecutionResult, type HookHandler, type HookPriority, HookRegistry, type HookResult, type LLMOptions, type LLMProvider, type LearningCandidate, type LearningContent, type LearningKind, type LearningProvider, type LearningSource, LineageTracker, type LineageTree, LoadoutCompiler, type LoadoutCompilerConfig, type LoadoutCriteria, type LoadoutSource, type LoadoutState, type LoadoutView, type ManualExtractionRequest, ManualExtractor, type MatchContext, type MatchResult, type MatcherConfig, type McpServerConfig, type ToolResult as McpToolResult, MemoryMetricsStorage, MemoryStorageAdapter, type MergeConfig, type MergeConflict, type MergePreview, type MergeResult, type MergeStrategy, type MergeSuggestion, type MetricsConfig, type MetricsStorage, MetricsTracker, type MigrationOptions, type MigrationProgressItem, type MigrationResult, NaiveLearningProvider, type NaiveProviderConfig, type NewVersionOptions, OpenAIAdapter, OpenAIEmbedding, type ParsedAgentSkill, type ParsedAgentsFile, type ParsedVersion, type PatternContent, type ProjectContext, ProjectDetector, type PullOptions, type PushOptions, type QualityGate, QualityGateEvaluator, type QualityGateResult, type QualityHookContext, type RegisterHookOptions, type RegisteredHook, type RejectedCandidate, type RemoteConfig, type RollbackOptions, SQLiteStorageAdapter, type SQLiteStorageConfig, SemanticMatcher, type ServingEvent, type ServingEventHandler, type SessionAdapter, type SessionHookContext, type SessionInput, SimpleHashEmbedding, type Skill, type SkillAccessControl, SkillBank, type SkillBankConfig, type SkillBankStats, type SkillChange, type SkillComponent, SkillComposer, type SkillConflict, type SkillContent, type SkillDiffChanges, type SkillEmbeddingField, type SkillExample, type SkillFilter, type SkillFork, type SkillFormat, SkillGraphServer, type SkillHookContext, type SkillLineage, type SkillMergeResult, SkillMerger, type SkillMetrics, type SkillMetricsSnapshot, type SkillNamespace, type SkillQuery, type SkillRanking, type SkillScope, type SkillSelector, type SkillServingMetadata, type SkillSource, type SkillState, type SkillStatus, type SkillSummary, type SkillSyncState, type SkillTreeEvent, type SkillTreeEventHandler, SkillTreeMcpServer, type SkillUpstream, type SkillValidationResult, SkillValidator, type SkillVersion, type SkillVisibility, type StepAttribution, type StorageAdapter, type StorageConfig, type StorageHookContext, type StrategyContent, type SyncBehaviorConfig, type SyncConfig, type ConflictResolution as SyncConflictResolution, type SyncError, type SyncOptions, type SyncResult$1 as SyncResult, type SyncState, type SyncStatus, type TestCaseResult, type TestRunner, type ToolCall, type ToolDefinition, type ToolHandler, type ToolResult$1 as ToolResult, type Trajectory, type TrajectoryMetadata, type TrajectoryOutcome, type TriggerCondition, type TriggerSpec, type Turn, type UsageEvent, type UsageReport, type UsageTrend, VERSION, type ValidationRecommendation, type ValidationSchedule, type ValidationTestCase, type ValidatorConfig, type VersionChanges, type VersionDiff, ViewRenderer, type ViewRendererConfig, VoyageEmbedding, adapterRegistry, allTools, anthropicAdapter, builtInProfiles, bumpVersion, claudeCodeAdapter, codeReviewProfile, combineHandlers, compareVersions, conditionalHook, cosineSimilarity, createActivationManager, createAgentsGenerator, createAgentsParser, createAgentsSync, createBackupHook, createConflictStore, createDefaultSyncConfig, createExtractionEnrichmentHook, createExtractionValidationHook, createGenericAdapter, createGitSyncAdapter, createLoggingHook, createMcpServer, createMetricsHook, createMetricsTracker, createNaiveProvider, createQualityBypassHook, createQualityLoggingHook, createSaveValidationHook, createSkillBank, createSkillMerger, createSkillValidator, createToolHandlers, debuggingProfile, devopsProfile, documentationProfile, euclideanDistance, executeToolCall, formatVersion, generateAgentsMd, genericAdapter, getBuiltInProfile, getLatestVersion, getToolDefinition, getToolNames, hookRegistry, implementationProfile, importFromAgentsMd, inferBumpType, isCompoundSkill, isValidVersion, listBuiltInProfiles, loadoutAddTool, loadoutListTool, loadoutProfileTool, loadoutRemoveTool, loadoutSearchTool, loadoutSetTool, loadoutTools, migrateStorage, openAIAdapter, parseVersion, refactoringProfile, satisfiesRange, securityProfile, skillCollapseTool, skillExpandTool, skillGetTool, skillTools, skillUseTool, sortVersions, testingProfile, writeAgentsMd };
|
|
7120
|
+
export { type ActivationCallback, type ActivationCheckResult, type ActivationConfig, ActivationManager, type ActivationState, type ActivationTrigger, AdapterRegistry, type AgentConfig, AgentsGenerator, type AgentsGeneratorConfig, AgentsParser, AgentsSync, type AnalysisResult, type AnalyzeOptions, type AnalyzeResult, AnthropicAdapter, type AntiPattern, AutomaticExtractor, BaseExtractor, type BaseHookContext, BaseSessionAdapter, BaseStorageAdapter, type BatchConfig, BatchProcessor, type BatchProgress, type BatchResult, type BumpType, type CCBatchResult, type CCLearningPipeline, type CCMemorySystem, type CCOutcome, type CCPlaybook, type CCPlaybookLibrary, type CCProcessResult, type CCStep, type CCTask, type CCTrajectory, type CandidateUpdate, ClaudeCodeAdapter, type CognitiveCoreFactory, CognitiveCoreProvider, type CognitiveCoreProviderConfig, type CognitiveCoreProviderOptions, type CompatibilityCheckResult, type CompatibilityIssue, type ComposerConfig, type CompositionConflict, type CompositionMode, type CompositionResult, type CompositionSuggestion$1 as CompositionSuggestion, type CompoundSkill, type ConflictConfig, type ConflictResolution$1 as ConflictResolution, ConflictStore, type ConflictStrategy, DEFAULT_ACTIVATION_CONFIG, DEFAULT_AGENTS_CONFIG, DEFAULT_METRICS_CONFIG, DEFAULT_QUALITY_GATES, DEFAULT_VALIDATOR_CONFIG, type DeduplicationStrategy, DependencyGraph, type DependencyType, type EmbeddingProvider, type EmbeddingProviderOptions, type ErrorFixContent, type EvictionStrategy, type ExampleSpec, type ExecutionOrder, type ExpandTrigger, type ExpandTriggerConfig, type ExtractOptions, type ExtractionConfig, type ExtractionHookContext, type ExtractionResult, type FeedbackEvent, type FetchResult, FileMetricsStorage, FilesystemStorageAdapter, type FilesystemStorageConfig, type ForkOptions, GenericAdapter, type GenericAdapterConfig, GitSyncAdapter, type GitSyncAdapterOptions, type SyncResult as GitSyncResult, type GraphEdge, type GraphNode, type GraphServerConfig, type HookContext, type HookEvent, type HookExecutionResult, type HookHandler, type HookPriority, HookRegistry, type HookResult, type LLMOptions, type LLMProvider, type LearningCandidate, type LearningContent, type LearningKind, type LearningProvider, type LearningSource, LineageTracker, type LineageTree, LoadoutCompiler, type LoadoutCompilerConfig, type LoadoutCriteria, type LoadoutSource, type LoadoutState, type LoadoutView, type ManualExtractionRequest, ManualExtractor, type MatchContext, type MatchResult, type MatcherConfig, type McpServerConfig, type ToolResult as McpToolResult, MemoryMetricsStorage, MemoryStorageAdapter, type MergeConfig, type MergeConflict, type MergePreview, type MergeResult, type MergeStrategy, type MergeSuggestion, type MetricsConfig, type MetricsStorage, MetricsTracker, type MigrationOptions, type MigrationProgressItem, type MigrationResult, NaiveLearningProvider, type NaiveProviderConfig, type NewVersionOptions, OpenAIAdapter, OpenAIEmbedding, type OutcomeFeedback, type OutcomeResult, type ParsedAgentSkill, type ParsedAgentsFile, type ParsedVersion, type PatternContent, type ProjectContext, ProjectDetector, type PullOptions, type PushOptions, type QualityGate, QualityGateEvaluator, type QualityGateResult, type QualityHookContext, type RegisterHookOptions, type RegisteredHook, type RejectedCandidate, type RemoteConfig, type RollbackOptions, SQLiteStorageAdapter, type SQLiteStorageConfig, SemanticMatcher, type ServingEvent, type ServingEventHandler, type SessionAdapter, type SessionHookContext, type SessionInput, SimpleHashEmbedding, type Skill, type SkillAccessControl, SkillBank, type SkillBankConfig, type SkillBankStats, type SkillChange, type SkillComponent, SkillComposer, type SkillConflict, type SkillContent, type SkillDiffChanges, type SkillEmbeddingField, type SkillExample, type SkillFilter, type SkillFork, type SkillFormat, SkillGraphServer, type SkillHookContext, type SkillLineage, type SkillMergeResult, SkillMerger, type SkillMetrics, type SkillMetricsSnapshot, type SkillNamespace, type SkillQuery, type SkillRanking, type SkillScope, type SkillSelector, type SkillServingMetadata, type SkillSource, type SkillState, type SkillStatus, type SkillSummary, type SkillSyncState, type SkillTreeEvent, type SkillTreeEventHandler, SkillTreeMcpServer, type SkillUpstream, type SkillValidationResult, SkillValidator, type SkillVersion, type SkillVisibility, type StepAttribution, type StorageAdapter, type StorageConfig, type StorageHookContext, type StrategyContent, type SyncBehaviorConfig, type SyncConfig, type ConflictResolution as SyncConflictResolution, type SyncError, type SyncOptions, type SyncResult$1 as SyncResult, type SyncState, type SyncStatus, type TestCaseResult, type TestRunner, type ToolCall, type ToolDefinition, type ToolHandler, type ToolResult$1 as ToolResult, type Trajectory, type TrajectoryMetadata, type TrajectoryOutcome, type TriggerCondition, type TriggerSpec, type Turn, type UsageEvent, type UsageReport, type UsageTrend, VERSION, type ValidationRecommendation, type ValidationSchedule, type ValidationTestCase, type ValidatorConfig, type VersionChanges, type VersionDiff, ViewRenderer, type ViewRendererConfig, VoyageEmbedding, adapterRegistry, allTools, anthropicAdapter, builtInProfiles, bumpVersion, claudeCodeAdapter, codeReviewProfile, combineHandlers, compareVersions, conditionalHook, cosineSimilarity, createActivationManager, createAgentsGenerator, createAgentsParser, createAgentsSync, createBackupHook, createCognitiveCoreProvider, createConflictStore, createDefaultSyncConfig, createExtractionEnrichmentHook, createExtractionValidationHook, createGenericAdapter, createGitSyncAdapter, createLoggingHook, createMcpServer, createMetricsHook, createMetricsTracker, createNaiveProvider, createQualityBypassHook, createQualityLoggingHook, createSaveValidationHook, createSkillBank, createSkillMerger, createSkillValidator, createToolHandlers, debuggingProfile, devopsProfile, documentationProfile, euclideanDistance, executeToolCall, formatVersion, generateAgentsMd, genericAdapter, getBuiltInProfile, getLatestVersion, getToolDefinition, getToolNames, hookRegistry, implementationProfile, importFromAgentsMd, inferBumpType, isCompoundSkill, isValidVersion, listBuiltInProfiles, loadoutAddTool, loadoutListTool, loadoutProfileTool, loadoutRemoveTool, loadoutSearchTool, loadoutSetTool, loadoutTools, migrateStorage, openAIAdapter, parseVersion, refactoringProfile, satisfiesRange, securityProfile, skillCollapseTool, skillExpandTool, skillGetTool, skillTools, skillUseTool, sortVersions, testingProfile, writeAgentsMd };
|