cognitive-engine 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/package.json +54 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type { LlmProvider, LlmMessage, LlmOptions, LlmUsage, LlmResponse, EmbeddingProvider, Store, StoreFilter, VectorSearchOptions, VectorSearchResult, Percept, ResponseMode, ConversationPhase, Entity, Belief, BeliefSource, BeliefCandidate, IntentionType, Intention, CognitiveState, UserGoal, WorkingMemoryItem, ReasoningResult, InferenceRule, Episode, EpisodeSearchResult, EpisodeQuery, EpisodicContext, ConsolidationResult, BehaviorPattern, CausalChain, FuturePrediction, TemporalContext, BanditChoice, BanditParams, Reflection, Relationship, OpenLoop, EmotionalTrigger, MindContext, PerceptionConfig, ReasoningConfig, MemoryConfig, TemporalConfig, BanditConfig, MindConfig, EngineModules, EngineConfig, CognitiveEventMap, } from '@cognitive-engine/core';
|
|
2
|
+
export { supportsVectorSearch, CognitiveEventEmitter, Pipeline, uid, } from '@cognitive-engine/core';
|
|
3
|
+
export { l2Normalize, cosineSimilarity, dotProduct, meanVector, weightedMeanVector, euclideanDistance, addVectors, scaleVector, matVec, outer, subMat, cholesky, sampleStdNormal, sampleMVN, sampleDiagonalMVN, exponentialDecay, timeDecayWeights, oneHot, binValue, clamp, } from '@cognitive-engine/math';
|
|
4
|
+
export { MemoryStore } from '@cognitive-engine/store-memory';
|
|
5
|
+
export { OpenAiLlmProvider, OpenAiEmbeddingProvider } from '@cognitive-engine/provider-openai';
|
|
6
|
+
export type { OpenAiLlmConfig, OpenAiEmbeddingConfig } from '@cognitive-engine/provider-openai';
|
|
7
|
+
export { PerceptionService, quickAnalyze, deepAnalyze, extractBeliefCandidates } from '@cognitive-engine/perception';
|
|
8
|
+
export type { PerceptionResult, QuickAnalysisResult, QuickPatterns, DeepAnalysisResult } from '@cognitive-engine/perception';
|
|
9
|
+
export { ThompsonBandit, MemoryBanditStorage } from '@cognitive-engine/bandit';
|
|
10
|
+
export type { BanditStorage } from '@cognitive-engine/bandit';
|
|
11
|
+
export { EpisodicMemory, EpisodeExtractor } from '@cognitive-engine/memory';
|
|
12
|
+
export { Reasoner, WorldModel, WorkingMemory, generateIntentions, applyInferenceRules } from '@cognitive-engine/reasoning';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EAEV,WAAW,EACX,UAAU,EACV,UAAU,EACV,QAAQ,EACR,WAAW,EACX,iBAAiB,EAEjB,KAAK,EACL,WAAW,EACX,mBAAmB,EACnB,kBAAkB,EAElB,OAAO,EACP,YAAY,EACZ,iBAAiB,EACjB,MAAM,EAEN,MAAM,EACN,YAAY,EACZ,eAAe,EAEf,aAAa,EACb,SAAS,EACT,cAAc,EACd,QAAQ,EACR,iBAAiB,EACjB,eAAe,EACf,aAAa,EAEb,OAAO,EACP,mBAAmB,EACnB,YAAY,EACZ,eAAe,EACf,mBAAmB,EAEnB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,eAAe,EAEf,YAAY,EACZ,YAAY,EAEZ,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,gBAAgB,EAChB,WAAW,EAEX,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,UAAU,EACV,aAAa,EACb,YAAY,EAEZ,iBAAiB,GAClB,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,QAAQ,EACR,GAAG,GACJ,MAAM,wBAAwB,CAAA;AAG/B,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,EACV,WAAW,EACX,MAAM,EACN,KAAK,EACL,MAAM,EACN,QAAQ,EACR,eAAe,EACf,SAAS,EACT,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,EACN,QAAQ,EACR,KAAK,GACN,MAAM,wBAAwB,CAAA;AAG/B,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAG5D,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAA;AAC9F,YAAY,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AAG/F,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AACpH,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAG5H,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAC9E,YAAY,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAG7D,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAG3E,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { supportsVectorSearch, CognitiveEventEmitter, Pipeline, uid, } from '@cognitive-engine/core';
|
|
2
|
+
// ── Math utilities ──
|
|
3
|
+
export { l2Normalize, cosineSimilarity, dotProduct, meanVector, weightedMeanVector, euclideanDistance, addVectors, scaleVector, matVec, outer, subMat, cholesky, sampleStdNormal, sampleMVN, sampleDiagonalMVN, exponentialDecay, timeDecayWeights, oneHot, binValue, clamp, } from '@cognitive-engine/math';
|
|
4
|
+
// ── Store ──
|
|
5
|
+
export { MemoryStore } from '@cognitive-engine/store-memory';
|
|
6
|
+
// ── OpenAI Provider ──
|
|
7
|
+
export { OpenAiLlmProvider, OpenAiEmbeddingProvider } from '@cognitive-engine/provider-openai';
|
|
8
|
+
// ── Perception ──
|
|
9
|
+
export { PerceptionService, quickAnalyze, deepAnalyze, extractBeliefCandidates } from '@cognitive-engine/perception';
|
|
10
|
+
// ── Bandit ──
|
|
11
|
+
export { ThompsonBandit, MemoryBanditStorage } from '@cognitive-engine/bandit';
|
|
12
|
+
// ── Memory ──
|
|
13
|
+
export { EpisodicMemory, EpisodeExtractor } from '@cognitive-engine/memory';
|
|
14
|
+
// ── Reasoning ──
|
|
15
|
+
export { Reasoner, WorldModel, WorkingMemory, generateIntentions, applyInferenceRules } from '@cognitive-engine/reasoning';
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAgEA,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,QAAQ,EACR,GAAG,GACJ,MAAM,wBAAwB,CAAA;AAE/B,uBAAuB;AACvB,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,EACV,WAAW,EACX,MAAM,EACN,KAAK,EACL,MAAM,EACN,QAAQ,EACR,eAAe,EACf,SAAS,EACT,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,EACN,QAAQ,EACR,KAAK,GACN,MAAM,wBAAwB,CAAA;AAE/B,cAAc;AACd,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAE5D,wBAAwB;AACxB,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAA;AAG9F,mBAAmB;AACnB,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAGpH,eAAe;AACf,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAG9E,eAAe;AACf,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAE3E,kBAAkB;AAClB,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cognitive-engine",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "TypeScript framework for building AI agents with cognitive capabilities — perception, memory, reasoning, and adaptive learning",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "tsc",
|
|
19
|
+
"clean": "rm -rf dist"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@cognitive-engine/core": "*",
|
|
23
|
+
"@cognitive-engine/math": "*",
|
|
24
|
+
"@cognitive-engine/store-memory": "*",
|
|
25
|
+
"@cognitive-engine/provider-openai": "*",
|
|
26
|
+
"@cognitive-engine/perception": "*",
|
|
27
|
+
"@cognitive-engine/bandit": "*",
|
|
28
|
+
"@cognitive-engine/memory": "*",
|
|
29
|
+
"@cognitive-engine/reasoning": "*"
|
|
30
|
+
},
|
|
31
|
+
"license": "Apache-2.0",
|
|
32
|
+
"author": "Dmitry Zorin",
|
|
33
|
+
"keywords": [
|
|
34
|
+
"ai",
|
|
35
|
+
"agents",
|
|
36
|
+
"cognitive-architecture",
|
|
37
|
+
"bdi",
|
|
38
|
+
"thompson-sampling",
|
|
39
|
+
"episodic-memory",
|
|
40
|
+
"perception",
|
|
41
|
+
"reasoning",
|
|
42
|
+
"typescript",
|
|
43
|
+
"openai"
|
|
44
|
+
],
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "https://github.com/medonomator/cognitive-engine.git",
|
|
48
|
+
"directory": "packages/cognitive-engine"
|
|
49
|
+
},
|
|
50
|
+
"homepage": "https://github.com/medonomator/cognitive-engine",
|
|
51
|
+
"publishConfig": {
|
|
52
|
+
"access": "public"
|
|
53
|
+
}
|
|
54
|
+
}
|