@claude-flow/plugin-cognitive-kernel 3.0.0-alpha.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/types.js ADDED
@@ -0,0 +1,230 @@
1
+ /**
2
+ * Cognitive Kernel Plugin - Type Definitions
3
+ *
4
+ * Types for cognitive augmentation including working memory, attention control,
5
+ * meta-cognition, scaffolding, and cognitive load management.
6
+ */
7
+ import { z } from 'zod';
8
+ // ============================================================================
9
+ // Working Memory Types
10
+ // ============================================================================
11
+ export const WorkingMemoryActionSchema = z.enum([
12
+ 'allocate',
13
+ 'update',
14
+ 'retrieve',
15
+ 'clear',
16
+ 'consolidate',
17
+ ]);
18
+ export const ConsolidationTargetSchema = z.enum([
19
+ 'episodic',
20
+ 'semantic',
21
+ 'procedural',
22
+ ]);
23
+ export const MemorySlotSchema = z.object({
24
+ id: z.string().max(100).optional(),
25
+ content: z.unknown().optional(),
26
+ priority: z.number().min(0).max(1).default(0.5),
27
+ decay: z.number().min(0).max(1).default(0.1),
28
+ });
29
+ export const WorkingMemoryInputSchema = z.object({
30
+ action: WorkingMemoryActionSchema.describe('Memory action to perform'),
31
+ slot: MemorySlotSchema.optional().describe('Memory slot data'),
32
+ capacity: z.number().int().min(1).max(20).default(7)
33
+ .describe('Working memory capacity (Miller number)'),
34
+ consolidationTarget: ConsolidationTargetSchema.optional()
35
+ .describe('Target memory system for consolidation'),
36
+ });
37
+ // ============================================================================
38
+ // Attention Control Types
39
+ // ============================================================================
40
+ export const AttentionModeSchema = z.enum([
41
+ 'focus',
42
+ 'diffuse',
43
+ 'selective',
44
+ 'divided',
45
+ 'sustained',
46
+ ]);
47
+ export const AttentionTargetSchema = z.object({
48
+ entity: z.string().max(500),
49
+ weight: z.number().min(0).max(1),
50
+ duration: z.number().min(0).max(3600),
51
+ });
52
+ export const AttentionFiltersSchema = z.object({
53
+ includePatterns: z.array(z.string().max(200)).max(50).optional(),
54
+ excludePatterns: z.array(z.string().max(200)).max(50).optional(),
55
+ noveltyBias: z.number().min(0).max(1).default(0.5),
56
+ });
57
+ export const AttentionControlInputSchema = z.object({
58
+ mode: AttentionModeSchema.describe('Attention mode'),
59
+ targets: z.array(AttentionTargetSchema).max(50).optional()
60
+ .describe('Attention targets with weights'),
61
+ filters: AttentionFiltersSchema.optional()
62
+ .describe('Attention filters'),
63
+ });
64
+ // ============================================================================
65
+ // Meta-Cognition Types
66
+ // ============================================================================
67
+ export const MonitoringTypeSchema = z.enum([
68
+ 'confidence_calibration',
69
+ 'reasoning_coherence',
70
+ 'goal_tracking',
71
+ 'cognitive_load',
72
+ 'error_detection',
73
+ 'uncertainty_estimation',
74
+ ]);
75
+ export const ReflectionTriggerSchema = z.enum([
76
+ 'periodic',
77
+ 'on_error',
78
+ 'on_uncertainty',
79
+ ]);
80
+ export const ReflectionDepthSchema = z.enum([
81
+ 'shallow',
82
+ 'medium',
83
+ 'deep',
84
+ ]);
85
+ export const ReflectionSchema = z.object({
86
+ trigger: ReflectionTriggerSchema.optional(),
87
+ depth: ReflectionDepthSchema.optional(),
88
+ });
89
+ export const MetaMonitorInputSchema = z.object({
90
+ monitoring: z.array(MonitoringTypeSchema).optional()
91
+ .describe('Types of monitoring to perform'),
92
+ reflection: ReflectionSchema.optional()
93
+ .describe('Reflection configuration'),
94
+ interventions: z.boolean().default(true)
95
+ .describe('Allow automatic corrective interventions'),
96
+ });
97
+ // ============================================================================
98
+ // Scaffolding Types
99
+ // ============================================================================
100
+ export const TaskComplexitySchema = z.enum([
101
+ 'simple',
102
+ 'moderate',
103
+ 'complex',
104
+ 'expert',
105
+ ]);
106
+ export const ScaffoldTypeSchema = z.enum([
107
+ 'decomposition',
108
+ 'analogy',
109
+ 'worked_example',
110
+ 'socratic',
111
+ 'metacognitive_prompting',
112
+ 'chain_of_thought',
113
+ ]);
114
+ export const TaskSchema = z.object({
115
+ description: z.string().max(5000),
116
+ complexity: TaskComplexitySchema,
117
+ domain: z.string().max(200).optional(),
118
+ });
119
+ export const AdaptivitySchema = z.object({
120
+ fading: z.boolean().default(true),
121
+ monitoring: z.boolean().default(true),
122
+ });
123
+ export const ScaffoldInputSchema = z.object({
124
+ task: TaskSchema.describe('Task to scaffold'),
125
+ scaffoldType: ScaffoldTypeSchema.describe('Type of scaffolding'),
126
+ adaptivity: AdaptivitySchema.optional()
127
+ .describe('Adaptivity settings'),
128
+ });
129
+ // ============================================================================
130
+ // Cognitive Load Types
131
+ // ============================================================================
132
+ export const LoadOptimizationSchema = z.enum([
133
+ 'reduce_extraneous',
134
+ 'chunk_intrinsic',
135
+ 'maximize_germane',
136
+ 'balanced',
137
+ ]);
138
+ export const LoadAssessmentSchema = z.object({
139
+ intrinsic: z.number().min(0).max(1).optional()
140
+ .describe('Task complexity load'),
141
+ extraneous: z.number().min(0).max(1).optional()
142
+ .describe('Presentation complexity load'),
143
+ germane: z.number().min(0).max(1).optional()
144
+ .describe('Learning investment load'),
145
+ });
146
+ export const CognitiveLoadInputSchema = z.object({
147
+ assessment: LoadAssessmentSchema.optional()
148
+ .describe('Current load assessment'),
149
+ optimization: LoadOptimizationSchema.default('balanced')
150
+ .describe('Optimization strategy'),
151
+ threshold: z.number().min(0).max(1).default(0.8)
152
+ .describe('Maximum total load threshold'),
153
+ });
154
+ export const DEFAULT_CONFIG = {
155
+ workingMemory: {
156
+ defaultCapacity: 7,
157
+ decayRate: 0.1,
158
+ consolidationInterval: 60000,
159
+ },
160
+ attention: {
161
+ defaultMode: 'focus',
162
+ sustainedDuration: 300,
163
+ noveltyBias: 0.5,
164
+ },
165
+ metaCognition: {
166
+ reflectionInterval: 30000,
167
+ confidenceThreshold: 0.7,
168
+ interventionEnabled: true,
169
+ },
170
+ scaffolding: {
171
+ fadingRate: 0.1,
172
+ adaptationEnabled: true,
173
+ },
174
+ cognitiveLoad: {
175
+ maxLoad: 0.8,
176
+ warningThreshold: 0.6,
177
+ },
178
+ };
179
+ // ============================================================================
180
+ // Helper Functions
181
+ // ============================================================================
182
+ /**
183
+ * Create a successful MCP tool result
184
+ */
185
+ export function successResult(data) {
186
+ return {
187
+ content: [{
188
+ type: 'text',
189
+ text: JSON.stringify(data, null, 2),
190
+ }],
191
+ };
192
+ }
193
+ /**
194
+ * Create an error MCP tool result
195
+ */
196
+ export function errorResult(error) {
197
+ const message = error instanceof Error ? error.message : error;
198
+ return {
199
+ content: [{
200
+ type: 'text',
201
+ text: JSON.stringify({
202
+ error: true,
203
+ message,
204
+ timestamp: new Date().toISOString(),
205
+ }, null, 2),
206
+ }],
207
+ isError: true,
208
+ };
209
+ }
210
+ /**
211
+ * Calculate cognitive load from components
212
+ */
213
+ export function calculateTotalLoad(intrinsic, extraneous, germane) {
214
+ // Cognitive load theory: total = intrinsic + extraneous + germane
215
+ // But they compete for limited resources
216
+ return Math.min(1, (intrinsic + extraneous + germane) / 2);
217
+ }
218
+ /**
219
+ * Generate scaffolding steps based on complexity
220
+ */
221
+ export function generateScaffoldSteps(complexity, scaffoldType) {
222
+ const complexityMultiplier = {
223
+ simple: 2,
224
+ moderate: 4,
225
+ complex: 6,
226
+ expert: 8,
227
+ };
228
+ return complexityMultiplier[complexity];
229
+ }
230
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoDxB,+EAA+E;AAC/E,uBAAuB;AACvB,+EAA+E;AAE/E,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC9C,UAAU;IACV,QAAQ;IACR,UAAU;IACV,OAAO;IACP,aAAa;CACd,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC9C,UAAU;IACV,UAAU;IACV,YAAY;CACb,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC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 "version": "3.0.0-alpha.1",
4
+ "description": "Cognitive kernel plugin for LLM augmentation with working memory, attention control, meta-cognition, and scaffolding",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "type": "module",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./dist/index.js",
12
+ "types": "./dist/index.d.ts"
13
+ },
14
+ "./tools": {
15
+ "import": "./dist/mcp-tools.js",
16
+ "types": "./dist/mcp-tools.d.ts"
17
+ },
18
+ "./bridges": {
19
+ "import": "./dist/bridges/index.js",
20
+ "types": "./dist/bridges/index.d.ts"
21
+ },
22
+ "./types": {
23
+ "import": "./dist/types.js",
24
+ "types": "./dist/types.d.ts"
25
+ }
26
+ },
27
+ "files": [
28
+ "dist",
29
+ "README.md",
30
+ "plugin.yaml"
31
+ ],
32
+ "scripts": {
33
+ "build": "tsc",
34
+ "dev": "tsc --watch",
35
+ "clean": "rimraf dist",
36
+ "test": "vitest run",
37
+ "test:watch": "vitest",
38
+ "lint": "eslint src --ext .ts",
39
+ "typecheck": "tsc --noEmit",
40
+ "prepublishOnly": "npm run clean && npm run build && npm run typecheck"
41
+ },
42
+ "keywords": [
43
+ "claude-flow",
44
+ "cognitive-kernel",
45
+ "working-memory",
46
+ "attention",
47
+ "meta-cognition",
48
+ "scaffolding",
49
+ "sona",
50
+ "cognitum"
51
+ ],
52
+ "author": "Claude Flow Team",
53
+ "license": "MIT",
54
+ "repository": {
55
+ "type": "git",
56
+ "url": "https://github.com/ruvnet/claude-flow.git",
57
+ "directory": "v3/plugins/cognitive-kernel"
58
+ },
59
+ "dependencies": {
60
+ "zod": "^3.22.4"
61
+ },
62
+ "devDependencies": {
63
+ "@types/node": "^20.10.0",
64
+ "rimraf": "^5.0.5",
65
+ "typescript": "^5.3.0",
66
+ "vitest": "^4.0.16"
67
+ },
68
+ "peerDependencies": {
69
+ "@claude-flow/ruvector-upstream": ">=3.0.0-alpha.1"
70
+ },
71
+ "peerDependenciesMeta": {
72
+ "@claude-flow/ruvector-upstream": {
73
+ "optional": true
74
+ }
75
+ },
76
+ "engines": {
77
+ "node": ">=18.0.0"
78
+ },
79
+ "publishConfig": {
80
+ "access": "public",
81
+ "tag": "v3alpha"
82
+ }
83
+ }