@soleri/core 2.1.0 → 2.5.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/brain/brain.d.ts +10 -1
- package/dist/brain/brain.d.ts.map +1 -1
- package/dist/brain/brain.js +116 -13
- package/dist/brain/brain.js.map +1 -1
- package/dist/brain/intelligence.d.ts +36 -1
- package/dist/brain/intelligence.d.ts.map +1 -1
- package/dist/brain/intelligence.js +119 -14
- package/dist/brain/intelligence.js.map +1 -1
- package/dist/brain/types.d.ts +34 -2
- package/dist/brain/types.d.ts.map +1 -1
- package/dist/cognee/client.d.ts +3 -0
- package/dist/cognee/client.d.ts.map +1 -1
- package/dist/cognee/client.js +17 -0
- package/dist/cognee/client.js.map +1 -1
- package/dist/cognee/sync-manager.d.ts +94 -0
- package/dist/cognee/sync-manager.d.ts.map +1 -0
- package/dist/cognee/sync-manager.js +293 -0
- package/dist/cognee/sync-manager.js.map +1 -0
- package/dist/control/identity-manager.d.ts +22 -0
- package/dist/control/identity-manager.d.ts.map +1 -0
- package/dist/control/identity-manager.js +233 -0
- package/dist/control/identity-manager.js.map +1 -0
- package/dist/control/intent-router.d.ts +32 -0
- package/dist/control/intent-router.d.ts.map +1 -0
- package/dist/control/intent-router.js +242 -0
- package/dist/control/intent-router.js.map +1 -0
- package/dist/control/types.d.ts +68 -0
- package/dist/control/types.d.ts.map +1 -0
- package/dist/control/types.js +9 -0
- package/dist/control/types.js.map +1 -0
- package/dist/curator/curator.d.ts +37 -1
- package/dist/curator/curator.d.ts.map +1 -1
- package/dist/curator/curator.js +199 -1
- package/dist/curator/curator.js.map +1 -1
- package/dist/errors/classify.d.ts +13 -0
- package/dist/errors/classify.d.ts.map +1 -0
- package/dist/errors/classify.js +97 -0
- package/dist/errors/classify.js.map +1 -0
- package/dist/errors/index.d.ts +6 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +4 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/errors/retry.d.ts +40 -0
- package/dist/errors/retry.d.ts.map +1 -0
- package/dist/errors/retry.js +97 -0
- package/dist/errors/retry.js.map +1 -0
- package/dist/errors/types.d.ts +48 -0
- package/dist/errors/types.d.ts.map +1 -0
- package/dist/errors/types.js +59 -0
- package/dist/errors/types.js.map +1 -0
- package/dist/facades/types.d.ts +1 -1
- package/dist/governance/governance.d.ts +42 -0
- package/dist/governance/governance.d.ts.map +1 -0
- package/dist/governance/governance.js +488 -0
- package/dist/governance/governance.js.map +1 -0
- package/dist/governance/index.d.ts +3 -0
- package/dist/governance/index.d.ts.map +1 -0
- package/dist/governance/index.js +2 -0
- package/dist/governance/index.js.map +1 -0
- package/dist/governance/types.d.ts +102 -0
- package/dist/governance/types.d.ts.map +1 -0
- package/dist/governance/types.js +3 -0
- package/dist/governance/types.js.map +1 -0
- package/dist/index.d.ts +52 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +47 -1
- package/dist/index.js.map +1 -1
- package/dist/intake/content-classifier.d.ts +14 -0
- package/dist/intake/content-classifier.d.ts.map +1 -0
- package/dist/intake/content-classifier.js +125 -0
- package/dist/intake/content-classifier.js.map +1 -0
- package/dist/intake/dedup-gate.d.ts +17 -0
- package/dist/intake/dedup-gate.d.ts.map +1 -0
- package/dist/intake/dedup-gate.js +66 -0
- package/dist/intake/dedup-gate.js.map +1 -0
- package/dist/intake/intake-pipeline.d.ts +63 -0
- package/dist/intake/intake-pipeline.d.ts.map +1 -0
- package/dist/intake/intake-pipeline.js +373 -0
- package/dist/intake/intake-pipeline.js.map +1 -0
- package/dist/intake/types.d.ts +65 -0
- package/dist/intake/types.d.ts.map +1 -0
- package/dist/intake/types.js +3 -0
- package/dist/intake/types.js.map +1 -0
- package/dist/intelligence/loader.js +1 -1
- package/dist/intelligence/loader.js.map +1 -1
- package/dist/intelligence/types.d.ts +3 -1
- package/dist/intelligence/types.d.ts.map +1 -1
- package/dist/logging/logger.d.ts +37 -0
- package/dist/logging/logger.d.ts.map +1 -0
- package/dist/logging/logger.js +145 -0
- package/dist/logging/logger.js.map +1 -0
- package/dist/logging/types.d.ts +19 -0
- package/dist/logging/types.d.ts.map +1 -0
- package/dist/logging/types.js +2 -0
- package/dist/logging/types.js.map +1 -0
- package/dist/loop/loop-manager.d.ts +100 -0
- package/dist/loop/loop-manager.d.ts.map +1 -0
- package/dist/loop/loop-manager.js +379 -0
- package/dist/loop/loop-manager.js.map +1 -0
- package/dist/loop/types.d.ts +103 -0
- package/dist/loop/types.d.ts.map +1 -0
- package/dist/loop/types.js +11 -0
- package/dist/loop/types.js.map +1 -0
- package/dist/persistence/index.d.ts +3 -0
- package/dist/persistence/index.d.ts.map +1 -0
- package/dist/persistence/index.js +2 -0
- package/dist/persistence/index.js.map +1 -0
- package/dist/persistence/sqlite-provider.d.ts +25 -0
- package/dist/persistence/sqlite-provider.d.ts.map +1 -0
- package/dist/persistence/sqlite-provider.js +59 -0
- package/dist/persistence/sqlite-provider.js.map +1 -0
- package/dist/persistence/types.d.ts +36 -0
- package/dist/persistence/types.d.ts.map +1 -0
- package/dist/persistence/types.js +8 -0
- package/dist/persistence/types.js.map +1 -0
- package/dist/planning/gap-analysis.d.ts +72 -0
- package/dist/planning/gap-analysis.d.ts.map +1 -0
- package/dist/planning/gap-analysis.js +442 -0
- package/dist/planning/gap-analysis.js.map +1 -0
- package/dist/planning/gap-types.d.ts +29 -0
- package/dist/planning/gap-types.d.ts.map +1 -0
- package/dist/planning/gap-types.js +28 -0
- package/dist/planning/gap-types.js.map +1 -0
- package/dist/planning/planner.d.ts +421 -4
- package/dist/planning/planner.d.ts.map +1 -1
- package/dist/planning/planner.js +949 -21
- package/dist/planning/planner.js.map +1 -1
- package/dist/playbooks/generic/brainstorming.d.ts +9 -0
- package/dist/playbooks/generic/brainstorming.d.ts.map +1 -0
- package/dist/playbooks/generic/brainstorming.js +105 -0
- package/dist/playbooks/generic/brainstorming.js.map +1 -0
- package/dist/playbooks/generic/code-review.d.ts +11 -0
- package/dist/playbooks/generic/code-review.d.ts.map +1 -0
- package/dist/playbooks/generic/code-review.js +176 -0
- package/dist/playbooks/generic/code-review.js.map +1 -0
- package/dist/playbooks/generic/subagent-execution.d.ts +9 -0
- package/dist/playbooks/generic/subagent-execution.d.ts.map +1 -0
- package/dist/playbooks/generic/subagent-execution.js +68 -0
- package/dist/playbooks/generic/subagent-execution.js.map +1 -0
- package/dist/playbooks/generic/systematic-debugging.d.ts +9 -0
- package/dist/playbooks/generic/systematic-debugging.d.ts.map +1 -0
- package/dist/playbooks/generic/systematic-debugging.js +87 -0
- package/dist/playbooks/generic/systematic-debugging.js.map +1 -0
- package/dist/playbooks/generic/tdd.d.ts +9 -0
- package/dist/playbooks/generic/tdd.d.ts.map +1 -0
- package/dist/playbooks/generic/tdd.js +70 -0
- package/dist/playbooks/generic/tdd.js.map +1 -0
- package/dist/playbooks/generic/verification.d.ts +9 -0
- package/dist/playbooks/generic/verification.d.ts.map +1 -0
- package/dist/playbooks/generic/verification.js +74 -0
- package/dist/playbooks/generic/verification.js.map +1 -0
- package/dist/playbooks/index.d.ts +4 -0
- package/dist/playbooks/index.d.ts.map +1 -0
- package/dist/playbooks/index.js +5 -0
- package/dist/playbooks/index.js.map +1 -0
- package/dist/playbooks/playbook-registry.d.ts +42 -0
- package/dist/playbooks/playbook-registry.d.ts.map +1 -0
- package/dist/playbooks/playbook-registry.js +227 -0
- package/dist/playbooks/playbook-registry.js.map +1 -0
- package/dist/playbooks/playbook-seeder.d.ts +47 -0
- package/dist/playbooks/playbook-seeder.d.ts.map +1 -0
- package/dist/playbooks/playbook-seeder.js +104 -0
- package/dist/playbooks/playbook-seeder.js.map +1 -0
- package/dist/playbooks/playbook-types.d.ts +132 -0
- package/dist/playbooks/playbook-types.d.ts.map +1 -0
- package/dist/playbooks/playbook-types.js +12 -0
- package/dist/playbooks/playbook-types.js.map +1 -0
- package/dist/project/project-registry.d.ts +79 -0
- package/dist/project/project-registry.d.ts.map +1 -0
- package/dist/project/project-registry.js +274 -0
- package/dist/project/project-registry.js.map +1 -0
- package/dist/project/types.d.ts +28 -0
- package/dist/project/types.d.ts.map +1 -0
- package/dist/project/types.js +5 -0
- package/dist/project/types.js.map +1 -0
- package/dist/prompts/index.d.ts +4 -0
- package/dist/prompts/index.d.ts.map +1 -0
- package/dist/prompts/index.js +3 -0
- package/dist/prompts/index.js.map +1 -0
- package/dist/prompts/parser.d.ts +17 -0
- package/dist/prompts/parser.d.ts.map +1 -0
- package/dist/prompts/parser.js +47 -0
- package/dist/prompts/parser.js.map +1 -0
- package/dist/prompts/template-manager.d.ts +25 -0
- package/dist/prompts/template-manager.d.ts.map +1 -0
- package/dist/prompts/template-manager.js +71 -0
- package/dist/prompts/template-manager.js.map +1 -0
- package/dist/prompts/types.d.ts +26 -0
- package/dist/prompts/types.d.ts.map +1 -0
- package/dist/prompts/types.js +5 -0
- package/dist/prompts/types.js.map +1 -0
- package/dist/runtime/admin-extra-ops.d.ts +15 -0
- package/dist/runtime/admin-extra-ops.d.ts.map +1 -0
- package/dist/runtime/admin-extra-ops.js +595 -0
- package/dist/runtime/admin-extra-ops.js.map +1 -0
- package/dist/runtime/admin-ops.d.ts +15 -0
- package/dist/runtime/admin-ops.d.ts.map +1 -0
- package/dist/runtime/admin-ops.js +329 -0
- package/dist/runtime/admin-ops.js.map +1 -0
- package/dist/runtime/capture-ops.d.ts +15 -0
- package/dist/runtime/capture-ops.d.ts.map +1 -0
- package/dist/runtime/capture-ops.js +363 -0
- package/dist/runtime/capture-ops.js.map +1 -0
- package/dist/runtime/cognee-sync-ops.d.ts +12 -0
- package/dist/runtime/cognee-sync-ops.d.ts.map +1 -0
- package/dist/runtime/cognee-sync-ops.js +55 -0
- package/dist/runtime/cognee-sync-ops.js.map +1 -0
- package/dist/runtime/core-ops.d.ts +9 -3
- package/dist/runtime/core-ops.d.ts.map +1 -1
- package/dist/runtime/core-ops.js +693 -10
- package/dist/runtime/core-ops.js.map +1 -1
- package/dist/runtime/curator-extra-ops.d.ts +9 -0
- package/dist/runtime/curator-extra-ops.d.ts.map +1 -0
- package/dist/runtime/curator-extra-ops.js +71 -0
- package/dist/runtime/curator-extra-ops.js.map +1 -0
- package/dist/runtime/domain-ops.d.ts.map +1 -1
- package/dist/runtime/domain-ops.js +61 -15
- package/dist/runtime/domain-ops.js.map +1 -1
- package/dist/runtime/grading-ops.d.ts +14 -0
- package/dist/runtime/grading-ops.d.ts.map +1 -0
- package/dist/runtime/grading-ops.js +105 -0
- package/dist/runtime/grading-ops.js.map +1 -0
- package/dist/runtime/intake-ops.d.ts +14 -0
- package/dist/runtime/intake-ops.d.ts.map +1 -0
- package/dist/runtime/intake-ops.js +110 -0
- package/dist/runtime/intake-ops.js.map +1 -0
- package/dist/runtime/loop-ops.d.ts +14 -0
- package/dist/runtime/loop-ops.d.ts.map +1 -0
- package/dist/runtime/loop-ops.js +251 -0
- package/dist/runtime/loop-ops.js.map +1 -0
- package/dist/runtime/memory-cross-project-ops.d.ts +12 -0
- package/dist/runtime/memory-cross-project-ops.d.ts.map +1 -0
- package/dist/runtime/memory-cross-project-ops.js +165 -0
- package/dist/runtime/memory-cross-project-ops.js.map +1 -0
- package/dist/runtime/memory-extra-ops.d.ts +13 -0
- package/dist/runtime/memory-extra-ops.d.ts.map +1 -0
- package/dist/runtime/memory-extra-ops.js +173 -0
- package/dist/runtime/memory-extra-ops.js.map +1 -0
- package/dist/runtime/orchestrate-ops.d.ts +17 -0
- package/dist/runtime/orchestrate-ops.d.ts.map +1 -0
- package/dist/runtime/orchestrate-ops.js +246 -0
- package/dist/runtime/orchestrate-ops.js.map +1 -0
- package/dist/runtime/planning-extra-ops.d.ts +25 -0
- package/dist/runtime/planning-extra-ops.d.ts.map +1 -0
- package/dist/runtime/planning-extra-ops.js +663 -0
- package/dist/runtime/planning-extra-ops.js.map +1 -0
- package/dist/runtime/playbook-ops.d.ts +14 -0
- package/dist/runtime/playbook-ops.d.ts.map +1 -0
- package/dist/runtime/playbook-ops.js +141 -0
- package/dist/runtime/playbook-ops.js.map +1 -0
- package/dist/runtime/project-ops.d.ts +15 -0
- package/dist/runtime/project-ops.d.ts.map +1 -0
- package/dist/runtime/project-ops.js +186 -0
- package/dist/runtime/project-ops.js.map +1 -0
- package/dist/runtime/runtime.d.ts.map +1 -1
- package/dist/runtime/runtime.js +65 -3
- package/dist/runtime/runtime.js.map +1 -1
- package/dist/runtime/types.d.ts +29 -0
- package/dist/runtime/types.d.ts.map +1 -1
- package/dist/runtime/vault-extra-ops.d.ts +10 -0
- package/dist/runtime/vault-extra-ops.d.ts.map +1 -0
- package/dist/runtime/vault-extra-ops.js +536 -0
- package/dist/runtime/vault-extra-ops.js.map +1 -0
- package/dist/telemetry/telemetry.d.ts +48 -0
- package/dist/telemetry/telemetry.d.ts.map +1 -0
- package/dist/telemetry/telemetry.js +87 -0
- package/dist/telemetry/telemetry.js.map +1 -0
- package/dist/vault/playbook.d.ts +34 -0
- package/dist/vault/playbook.d.ts.map +1 -0
- package/dist/vault/playbook.js +60 -0
- package/dist/vault/playbook.js.map +1 -0
- package/dist/vault/vault.d.ts +97 -4
- package/dist/vault/vault.d.ts.map +1 -1
- package/dist/vault/vault.js +424 -65
- package/dist/vault/vault.js.map +1 -1
- package/package.json +7 -3
- package/src/__tests__/admin-extra-ops.test.ts +467 -0
- package/src/__tests__/admin-ops.test.ts +271 -0
- package/src/__tests__/brain-intelligence.test.ts +205 -0
- package/src/__tests__/brain.test.ts +134 -3
- package/src/__tests__/capture-ops.test.ts +509 -0
- package/src/__tests__/cognee-integration.test.ts +80 -0
- package/src/__tests__/cognee-sync-manager.test.ts +103 -0
- package/src/__tests__/core-ops.test.ts +292 -2
- package/src/__tests__/curator-extra-ops.test.ts +381 -0
- package/src/__tests__/domain-ops.test.ts +66 -0
- package/src/__tests__/errors.test.ts +388 -0
- package/src/__tests__/governance.test.ts +522 -0
- package/src/__tests__/grading-ops.test.ts +361 -0
- package/src/__tests__/identity-manager.test.ts +243 -0
- package/src/__tests__/intake-pipeline.test.ts +162 -0
- package/src/__tests__/intent-router.test.ts +222 -0
- package/src/__tests__/logger.test.ts +200 -0
- package/src/__tests__/loop-ops.test.ts +469 -0
- package/src/__tests__/memory-cross-project-ops.test.ts +248 -0
- package/src/__tests__/memory-extra-ops.test.ts +352 -0
- package/src/__tests__/orchestrate-ops.test.ts +289 -0
- package/src/__tests__/persistence.test.ts +225 -0
- package/src/__tests__/planner.test.ts +416 -7
- package/src/__tests__/planning-extra-ops.test.ts +706 -0
- package/src/__tests__/playbook-registry.test.ts +326 -0
- package/src/__tests__/playbook-seeder.test.ts +163 -0
- package/src/__tests__/playbook.test.ts +389 -0
- package/src/__tests__/project-ops.test.ts +381 -0
- package/src/__tests__/template-manager.test.ts +222 -0
- package/src/__tests__/vault-extra-ops.test.ts +482 -0
- package/src/brain/brain.ts +185 -16
- package/src/brain/intelligence.ts +179 -10
- package/src/brain/types.ts +40 -2
- package/src/cognee/client.ts +18 -0
- package/src/cognee/sync-manager.ts +389 -0
- package/src/control/identity-manager.ts +354 -0
- package/src/control/intent-router.ts +326 -0
- package/src/control/types.ts +102 -0
- package/src/curator/curator.ts +295 -1
- package/src/errors/classify.ts +102 -0
- package/src/errors/index.ts +5 -0
- package/src/errors/retry.ts +132 -0
- package/src/errors/types.ts +81 -0
- package/src/governance/governance.ts +698 -0
- package/src/governance/index.ts +18 -0
- package/src/governance/types.ts +111 -0
- package/src/index.ts +213 -2
- package/src/intake/content-classifier.ts +146 -0
- package/src/intake/dedup-gate.ts +92 -0
- package/src/intake/intake-pipeline.ts +503 -0
- package/src/intake/types.ts +69 -0
- package/src/intelligence/loader.ts +1 -1
- package/src/intelligence/types.ts +3 -1
- package/src/logging/logger.ts +154 -0
- package/src/logging/types.ts +21 -0
- package/src/loop/loop-manager.ts +448 -0
- package/src/loop/types.ts +115 -0
- package/src/persistence/index.ts +7 -0
- package/src/persistence/sqlite-provider.ts +62 -0
- package/src/persistence/types.ts +44 -0
- package/src/planning/gap-analysis.ts +775 -0
- package/src/planning/gap-types.ts +61 -0
- package/src/planning/planner.ts +1273 -24
- package/src/playbooks/generic/brainstorming.ts +110 -0
- package/src/playbooks/generic/code-review.ts +181 -0
- package/src/playbooks/generic/subagent-execution.ts +74 -0
- package/src/playbooks/generic/systematic-debugging.ts +92 -0
- package/src/playbooks/generic/tdd.ts +75 -0
- package/src/playbooks/generic/verification.ts +79 -0
- package/src/playbooks/index.ts +27 -0
- package/src/playbooks/playbook-registry.ts +284 -0
- package/src/playbooks/playbook-seeder.ts +119 -0
- package/src/playbooks/playbook-types.ts +162 -0
- package/src/project/project-registry.ts +370 -0
- package/src/project/types.ts +31 -0
- package/src/prompts/index.ts +3 -0
- package/src/prompts/parser.ts +59 -0
- package/src/prompts/template-manager.ts +77 -0
- package/src/prompts/types.ts +28 -0
- package/src/runtime/admin-extra-ops.ts +652 -0
- package/src/runtime/admin-ops.ts +340 -0
- package/src/runtime/capture-ops.ts +404 -0
- package/src/runtime/cognee-sync-ops.ts +63 -0
- package/src/runtime/core-ops.ts +787 -9
- package/src/runtime/curator-extra-ops.ts +85 -0
- package/src/runtime/domain-ops.ts +67 -15
- package/src/runtime/grading-ops.ts +130 -0
- package/src/runtime/intake-ops.ts +126 -0
- package/src/runtime/loop-ops.ts +277 -0
- package/src/runtime/memory-cross-project-ops.ts +191 -0
- package/src/runtime/memory-extra-ops.ts +186 -0
- package/src/runtime/orchestrate-ops.ts +278 -0
- package/src/runtime/planning-extra-ops.ts +718 -0
- package/src/runtime/playbook-ops.ts +169 -0
- package/src/runtime/project-ops.ts +202 -0
- package/src/runtime/runtime.ts +77 -3
- package/src/runtime/types.ts +29 -0
- package/src/runtime/vault-extra-ops.ts +606 -0
- package/src/telemetry/telemetry.ts +118 -0
- package/src/vault/playbook.ts +87 -0
- package/src/vault/vault.ts +575 -98
|
@@ -34,8 +34,8 @@ describe('createCoreOps', () => {
|
|
|
34
34
|
return op;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
it('should return
|
|
38
|
-
expect(ops.length).toBe(
|
|
37
|
+
it('should return 203 ops', () => {
|
|
38
|
+
expect(ops.length).toBe(203);
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
it('should have all expected op names', () => {
|
|
@@ -60,6 +60,8 @@ describe('createCoreOps', () => {
|
|
|
60
60
|
expect(names).toContain('complete_plan');
|
|
61
61
|
// Brain
|
|
62
62
|
expect(names).toContain('record_feedback');
|
|
63
|
+
expect(names).toContain('brain_feedback');
|
|
64
|
+
expect(names).toContain('brain_feedback_stats');
|
|
63
65
|
expect(names).toContain('rebuild_vocabulary');
|
|
64
66
|
expect(names).toContain('brain_stats');
|
|
65
67
|
expect(names).toContain('llm_status');
|
|
@@ -75,6 +77,9 @@ describe('createCoreOps', () => {
|
|
|
75
77
|
expect(names).toContain('brain_archive_sessions');
|
|
76
78
|
expect(names).toContain('brain_promote_proposals');
|
|
77
79
|
expect(names).toContain('brain_lifecycle');
|
|
80
|
+
expect(names).toContain('brain_reset_extracted');
|
|
81
|
+
// Brain decay report (#89)
|
|
82
|
+
expect(names).toContain('brain_decay_report');
|
|
78
83
|
// Curator
|
|
79
84
|
expect(names).toContain('curator_status');
|
|
80
85
|
expect(names).toContain('curator_detect_duplicates');
|
|
@@ -84,6 +89,158 @@ describe('createCoreOps', () => {
|
|
|
84
89
|
expect(names).toContain('curator_groom_all');
|
|
85
90
|
expect(names).toContain('curator_consolidate');
|
|
86
91
|
expect(names).toContain('curator_health_audit');
|
|
92
|
+
// Control
|
|
93
|
+
expect(names).toContain('get_identity');
|
|
94
|
+
expect(names).toContain('update_identity');
|
|
95
|
+
expect(names).toContain('add_guideline');
|
|
96
|
+
expect(names).toContain('remove_guideline');
|
|
97
|
+
expect(names).toContain('rollback_identity');
|
|
98
|
+
expect(names).toContain('route_intent');
|
|
99
|
+
expect(names).toContain('morph');
|
|
100
|
+
expect(names).toContain('get_behavior_rules');
|
|
101
|
+
// Cognee
|
|
102
|
+
expect(names).toContain('cognee_status');
|
|
103
|
+
expect(names).toContain('cognee_search');
|
|
104
|
+
expect(names).toContain('cognee_add');
|
|
105
|
+
expect(names).toContain('cognee_cognify');
|
|
106
|
+
expect(names).toContain('cognee_config');
|
|
107
|
+
// LLM
|
|
108
|
+
expect(names).toContain('llm_rotate');
|
|
109
|
+
expect(names).toContain('llm_call');
|
|
110
|
+
// Governance
|
|
111
|
+
expect(names).toContain('governance_policy');
|
|
112
|
+
expect(names).toContain('governance_proposals');
|
|
113
|
+
expect(names).toContain('governance_stats');
|
|
114
|
+
expect(names).toContain('governance_expire');
|
|
115
|
+
expect(names).toContain('governance_dashboard');
|
|
116
|
+
// Playbook (5)
|
|
117
|
+
expect(names).toContain('playbook_list');
|
|
118
|
+
expect(names).toContain('playbook_get');
|
|
119
|
+
expect(names).toContain('playbook_match');
|
|
120
|
+
expect(names).toContain('playbook_seed');
|
|
121
|
+
expect(names).toContain('playbook_create');
|
|
122
|
+
// Planning Extra (9)
|
|
123
|
+
expect(names).toContain('plan_iterate');
|
|
124
|
+
expect(names).toContain('plan_split');
|
|
125
|
+
expect(names).toContain('plan_reconcile');
|
|
126
|
+
expect(names).toContain('plan_complete_lifecycle');
|
|
127
|
+
expect(names).toContain('plan_dispatch');
|
|
128
|
+
expect(names).toContain('plan_review');
|
|
129
|
+
expect(names).toContain('plan_archive');
|
|
130
|
+
expect(names).toContain('plan_list_tasks');
|
|
131
|
+
expect(names).toContain('plan_stats');
|
|
132
|
+
// Memory Extra (8)
|
|
133
|
+
expect(names).toContain('memory_delete');
|
|
134
|
+
expect(names).toContain('memory_stats');
|
|
135
|
+
expect(names).toContain('memory_export');
|
|
136
|
+
expect(names).toContain('memory_import');
|
|
137
|
+
expect(names).toContain('memory_prune');
|
|
138
|
+
expect(names).toContain('memory_deduplicate');
|
|
139
|
+
expect(names).toContain('memory_topics');
|
|
140
|
+
expect(names).toContain('memory_by_project');
|
|
141
|
+
// Vault Extra (12 + 3 temporal)
|
|
142
|
+
expect(names).toContain('vault_get');
|
|
143
|
+
expect(names).toContain('vault_update');
|
|
144
|
+
expect(names).toContain('vault_remove');
|
|
145
|
+
expect(names).toContain('vault_bulk_add');
|
|
146
|
+
expect(names).toContain('vault_bulk_remove');
|
|
147
|
+
expect(names).toContain('vault_tags');
|
|
148
|
+
expect(names).toContain('vault_domains');
|
|
149
|
+
expect(names).toContain('vault_recent');
|
|
150
|
+
expect(names).toContain('vault_import');
|
|
151
|
+
expect(names).toContain('vault_seed');
|
|
152
|
+
expect(names).toContain('vault_backup');
|
|
153
|
+
expect(names).toContain('vault_age_report');
|
|
154
|
+
// #89: Bi-temporal
|
|
155
|
+
expect(names).toContain('vault_set_temporal');
|
|
156
|
+
expect(names).toContain('vault_find_expiring');
|
|
157
|
+
expect(names).toContain('vault_find_expired');
|
|
158
|
+
// Admin (8)
|
|
159
|
+
expect(names).toContain('admin_health');
|
|
160
|
+
expect(names).toContain('admin_tool_list');
|
|
161
|
+
expect(names).toContain('admin_config');
|
|
162
|
+
expect(names).toContain('admin_vault_size');
|
|
163
|
+
expect(names).toContain('admin_uptime');
|
|
164
|
+
expect(names).toContain('admin_version');
|
|
165
|
+
expect(names).toContain('admin_reset_cache');
|
|
166
|
+
expect(names).toContain('admin_diagnostic');
|
|
167
|
+
// Admin Extra (10)
|
|
168
|
+
expect(names).toContain('admin_telemetry');
|
|
169
|
+
expect(names).toContain('admin_telemetry_recent');
|
|
170
|
+
expect(names).toContain('admin_telemetry_reset');
|
|
171
|
+
expect(names).toContain('admin_permissions');
|
|
172
|
+
expect(names).toContain('admin_vault_analytics');
|
|
173
|
+
expect(names).toContain('admin_search_insights');
|
|
174
|
+
expect(names).toContain('admin_module_status');
|
|
175
|
+
expect(names).toContain('admin_env');
|
|
176
|
+
expect(names).toContain('admin_gc');
|
|
177
|
+
expect(names).toContain('admin_export_config');
|
|
178
|
+
// Loop (7)
|
|
179
|
+
expect(names).toContain('loop_start');
|
|
180
|
+
expect(names).toContain('loop_iterate');
|
|
181
|
+
expect(names).toContain('loop_status');
|
|
182
|
+
expect(names).toContain('loop_cancel');
|
|
183
|
+
expect(names).toContain('loop_history');
|
|
184
|
+
expect(names).toContain('loop_is_active');
|
|
185
|
+
expect(names).toContain('loop_complete');
|
|
186
|
+
// Orchestrate (5)
|
|
187
|
+
expect(names).toContain('orchestrate_plan');
|
|
188
|
+
expect(names).toContain('orchestrate_execute');
|
|
189
|
+
expect(names).toContain('orchestrate_complete');
|
|
190
|
+
expect(names).toContain('orchestrate_status');
|
|
191
|
+
expect(names).toContain('orchestrate_quick_capture');
|
|
192
|
+
// Grading (5)
|
|
193
|
+
expect(names).toContain('plan_grade');
|
|
194
|
+
expect(names).toContain('plan_check_history');
|
|
195
|
+
expect(names).toContain('plan_latest_check');
|
|
196
|
+
expect(names).toContain('plan_meets_grade');
|
|
197
|
+
expect(names).toContain('plan_auto_improve');
|
|
198
|
+
// Capture (4)
|
|
199
|
+
expect(names).toContain('capture_knowledge');
|
|
200
|
+
expect(names).toContain('capture_quick');
|
|
201
|
+
expect(names).toContain('search_intelligent');
|
|
202
|
+
expect(names).toContain('search_feedback');
|
|
203
|
+
// Curator Extra (4 + 1 hybrid)
|
|
204
|
+
expect(names).toContain('curator_entry_history');
|
|
205
|
+
expect(names).toContain('curator_record_snapshot');
|
|
206
|
+
expect(names).toContain('curator_queue_stats');
|
|
207
|
+
expect(names).toContain('curator_enrich');
|
|
208
|
+
// #36: Hybrid contradiction detection
|
|
209
|
+
expect(names).toContain('curator_hybrid_contradictions');
|
|
210
|
+
// Project (12)
|
|
211
|
+
expect(names).toContain('project_get');
|
|
212
|
+
expect(names).toContain('project_list');
|
|
213
|
+
expect(names).toContain('project_unregister');
|
|
214
|
+
expect(names).toContain('project_get_rules');
|
|
215
|
+
expect(names).toContain('project_list_rules');
|
|
216
|
+
expect(names).toContain('project_add_rule');
|
|
217
|
+
expect(names).toContain('project_remove_rule');
|
|
218
|
+
expect(names).toContain('project_link');
|
|
219
|
+
expect(names).toContain('project_unlink');
|
|
220
|
+
expect(names).toContain('project_get_links');
|
|
221
|
+
expect(names).toContain('project_linked_projects');
|
|
222
|
+
expect(names).toContain('project_touch');
|
|
223
|
+
// Prompt templates
|
|
224
|
+
expect(names).toContain('render_prompt');
|
|
225
|
+
expect(names).toContain('list_templates');
|
|
226
|
+
// Cognee Sync ops
|
|
227
|
+
expect(names).toContain('cognee_sync_status');
|
|
228
|
+
expect(names).toContain('cognee_sync_drain');
|
|
229
|
+
expect(names).toContain('cognee_sync_reconcile');
|
|
230
|
+
// Intake ops
|
|
231
|
+
expect(names).toContain('intake_ingest_book');
|
|
232
|
+
expect(names).toContain('intake_process');
|
|
233
|
+
expect(names).toContain('intake_status');
|
|
234
|
+
expect(names).toContain('intake_preview');
|
|
235
|
+
});
|
|
236
|
+
|
|
237
|
+
it('register should include governance summary', async () => {
|
|
238
|
+
const result = (await findOp('register').handler({ projectPath: '/tmp/test-gov-reg' })) as {
|
|
239
|
+
governance: { pendingProposals: number; quotaPercent: number; isQuotaWarning: boolean };
|
|
240
|
+
};
|
|
241
|
+
expect(typeof result.governance.pendingProposals).toBe('number');
|
|
242
|
+
expect(typeof result.governance.quotaPercent).toBe('number');
|
|
243
|
+
expect(typeof result.governance.isQuotaWarning).toBe('boolean');
|
|
87
244
|
});
|
|
88
245
|
|
|
89
246
|
it('search should query vault via brain', async () => {
|
|
@@ -196,6 +353,47 @@ describe('createCoreOps', () => {
|
|
|
196
353
|
expect(results.length).toBeGreaterThan(0);
|
|
197
354
|
});
|
|
198
355
|
|
|
356
|
+
it('brain_feedback should record enhanced feedback', async () => {
|
|
357
|
+
runtime.vault.seed([
|
|
358
|
+
{
|
|
359
|
+
id: 'bf-1',
|
|
360
|
+
type: 'pattern',
|
|
361
|
+
domain: 'testing',
|
|
362
|
+
title: 'Brain feedback test',
|
|
363
|
+
severity: 'warning',
|
|
364
|
+
description: 'Test.',
|
|
365
|
+
tags: ['test'],
|
|
366
|
+
},
|
|
367
|
+
]);
|
|
368
|
+
ops = createCoreOps(runtime);
|
|
369
|
+
const result = (await findOp('brain_feedback').handler({
|
|
370
|
+
query: 'test',
|
|
371
|
+
entryId: 'bf-1',
|
|
372
|
+
action: 'modified',
|
|
373
|
+
source: 'recommendation',
|
|
374
|
+
confidence: 0.8,
|
|
375
|
+
})) as { id: number; action: string; source: string };
|
|
376
|
+
expect(result.id).toBeGreaterThan(0);
|
|
377
|
+
expect(result.action).toBe('modified');
|
|
378
|
+
expect(result.source).toBe('recommendation');
|
|
379
|
+
});
|
|
380
|
+
|
|
381
|
+
it('brain_feedback_stats should return stats', async () => {
|
|
382
|
+
const stats = (await findOp('brain_feedback_stats').handler({})) as {
|
|
383
|
+
total: number;
|
|
384
|
+
acceptanceRate: number;
|
|
385
|
+
};
|
|
386
|
+
expect(typeof stats.total).toBe('number');
|
|
387
|
+
expect(typeof stats.acceptanceRate).toBe('number');
|
|
388
|
+
});
|
|
389
|
+
|
|
390
|
+
it('brain_reset_extracted should return reset count', async () => {
|
|
391
|
+
const result = (await findOp('brain_reset_extracted').handler({ all: true })) as {
|
|
392
|
+
reset: number;
|
|
393
|
+
};
|
|
394
|
+
expect(typeof result.reset).toBe('number');
|
|
395
|
+
});
|
|
396
|
+
|
|
199
397
|
it('export should return bundles', async () => {
|
|
200
398
|
runtime.vault.seed([
|
|
201
399
|
{
|
|
@@ -215,4 +413,96 @@ describe('createCoreOps', () => {
|
|
|
215
413
|
expect(result.exported).toBe(true);
|
|
216
414
|
expect(result.totalEntries).toBe(1);
|
|
217
415
|
});
|
|
416
|
+
|
|
417
|
+
it('cognee_status should return health check result', async () => {
|
|
418
|
+
// Cognee is not running in tests — should degrade gracefully
|
|
419
|
+
const result = (await findOp('cognee_status').handler({})) as {
|
|
420
|
+
available: boolean;
|
|
421
|
+
url: string;
|
|
422
|
+
};
|
|
423
|
+
expect(typeof result.available).toBe('boolean');
|
|
424
|
+
expect(typeof result.url).toBe('string');
|
|
425
|
+
});
|
|
426
|
+
|
|
427
|
+
it('cognee_search should return empty when unavailable', async () => {
|
|
428
|
+
const results = (await findOp('cognee_search').handler({
|
|
429
|
+
query: 'test pattern',
|
|
430
|
+
})) as unknown[];
|
|
431
|
+
expect(results).toEqual([]);
|
|
432
|
+
});
|
|
433
|
+
|
|
434
|
+
it('cognee_add should return 0 when unavailable', async () => {
|
|
435
|
+
runtime.vault.seed([
|
|
436
|
+
{
|
|
437
|
+
id: 'cog-1',
|
|
438
|
+
type: 'pattern',
|
|
439
|
+
domain: 'testing',
|
|
440
|
+
title: 'Cognee test',
|
|
441
|
+
severity: 'warning',
|
|
442
|
+
description: 'Test.',
|
|
443
|
+
tags: ['test'],
|
|
444
|
+
},
|
|
445
|
+
]);
|
|
446
|
+
const result = (await findOp('cognee_add').handler({
|
|
447
|
+
entryIds: ['cog-1'],
|
|
448
|
+
})) as { added: number };
|
|
449
|
+
expect(result.added).toBe(0);
|
|
450
|
+
});
|
|
451
|
+
|
|
452
|
+
it('cognee_cognify should return unavailable when Cognee is down', async () => {
|
|
453
|
+
const result = (await findOp('cognee_cognify').handler({})) as { status: string };
|
|
454
|
+
expect(result.status).toBe('unavailable');
|
|
455
|
+
});
|
|
456
|
+
|
|
457
|
+
it('cognee_config should return config and null status', async () => {
|
|
458
|
+
const result = (await findOp('cognee_config').handler({})) as {
|
|
459
|
+
config: { baseUrl: string; dataset: string };
|
|
460
|
+
cachedStatus: null;
|
|
461
|
+
};
|
|
462
|
+
expect(result.config.baseUrl).toBe('http://localhost:8000');
|
|
463
|
+
expect(result.config.dataset).toBe('test-core-ops');
|
|
464
|
+
expect(result.cachedStatus).toBeNull();
|
|
465
|
+
});
|
|
466
|
+
|
|
467
|
+
it('llm_rotate should return rotation status', async () => {
|
|
468
|
+
const result = (await findOp('llm_rotate').handler({ provider: 'openai' })) as {
|
|
469
|
+
rotated?: boolean;
|
|
470
|
+
poolSize?: number;
|
|
471
|
+
error?: string;
|
|
472
|
+
};
|
|
473
|
+
// Either reports no keys or successfully rotates
|
|
474
|
+
expect(typeof result.rotated === 'boolean' || typeof result.error === 'string').toBe(true);
|
|
475
|
+
});
|
|
476
|
+
|
|
477
|
+
it('governance_policy get should return defaults', async () => {
|
|
478
|
+
const result = (await findOp('governance_policy').handler({
|
|
479
|
+
action: 'get',
|
|
480
|
+
projectPath: '/test',
|
|
481
|
+
})) as { quotas: { maxEntriesTotal: number } };
|
|
482
|
+
expect(result.quotas.maxEntriesTotal).toBe(500);
|
|
483
|
+
});
|
|
484
|
+
|
|
485
|
+
it('governance_stats should return quota and proposal stats', async () => {
|
|
486
|
+
const result = (await findOp('governance_stats').handler({
|
|
487
|
+
projectPath: '/test',
|
|
488
|
+
})) as {
|
|
489
|
+
quotaStatus: { total: number };
|
|
490
|
+
proposalStats: { total: number };
|
|
491
|
+
};
|
|
492
|
+
expect(typeof result.quotaStatus.total).toBe('number');
|
|
493
|
+
expect(typeof result.proposalStats.total).toBe('number');
|
|
494
|
+
});
|
|
495
|
+
|
|
496
|
+
it('governance_dashboard should return combined view', async () => {
|
|
497
|
+
const result = (await findOp('governance_dashboard').handler({
|
|
498
|
+
projectPath: '/test',
|
|
499
|
+
})) as {
|
|
500
|
+
vaultSize: number;
|
|
501
|
+
quotaPercent: number;
|
|
502
|
+
pendingProposals: number;
|
|
503
|
+
};
|
|
504
|
+
expect(typeof result.vaultSize).toBe('number');
|
|
505
|
+
expect(typeof result.quotaPercent).toBe('number');
|
|
506
|
+
expect(result.pendingProposals).toBe(0);
|
|
507
|
+
});
|
|
218
508
|
});
|