@restormel/reasoning-core 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.
Files changed (37) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/LICENSE +21 -0
  3. package/README.md +54 -0
  4. package/dist/constitution/evaluator.d.ts +30 -0
  5. package/dist/constitution/evaluator.d.ts.map +1 -0
  6. package/dist/constitution/evaluator.js +444 -0
  7. package/dist/constitution/rules.d.ts +3 -0
  8. package/dist/constitution/rules.d.ts.map +1 -0
  9. package/dist/constitution/rules.js +91 -0
  10. package/dist/context.d.ts +36 -0
  11. package/dist/context.d.ts.map +1 -0
  12. package/dist/context.js +1 -0
  13. package/dist/extraction.d.ts +6 -0
  14. package/dist/extraction.d.ts.map +1 -0
  15. package/dist/extraction.js +59 -0
  16. package/dist/index.d.ts +8 -0
  17. package/dist/index.d.ts.map +1 -0
  18. package/dist/index.js +6 -0
  19. package/dist/meta-block.d.ts +10 -0
  20. package/dist/meta-block.d.ts.map +1 -0
  21. package/dist/meta-block.js +24 -0
  22. package/dist/pipeline.d.ts +68 -0
  23. package/dist/pipeline.d.ts.map +1 -0
  24. package/dist/pipeline.js +96 -0
  25. package/dist/prompts/constitution-eval.d.ts +8 -0
  26. package/dist/prompts/constitution-eval.d.ts.map +1 -0
  27. package/dist/prompts/constitution-eval.js +45 -0
  28. package/dist/prompts/reasoning-eval.d.ts +4 -0
  29. package/dist/prompts/reasoning-eval.d.ts.map +1 -0
  30. package/dist/prompts/reasoning-eval.js +36 -0
  31. package/dist/prompts/verification-extraction.d.ts +4 -0
  32. package/dist/prompts/verification-extraction.d.ts.map +1 -0
  33. package/dist/prompts/verification-extraction.js +46 -0
  34. package/dist/reasoning-eval.d.ts +15 -0
  35. package/dist/reasoning-eval.d.ts.map +1 -0
  36. package/dist/reasoning-eval.js +69 -0
  37. package/package.json +53 -0
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@restormel/reasoning-core",
3
+ "version": "0.1.0",
4
+ "description": "Knowledge Verify pipeline — claim extraction, reasoning evaluation, and constitution checks (no DB or engine dependencies).",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/Allotment-Technology-Ltd/restormel-keys.git",
9
+ "directory": "packages/reasoning-core"
10
+ },
11
+ "type": "module",
12
+ "main": "./dist/index.js",
13
+ "types": "./dist/index.d.ts",
14
+ "files": [
15
+ "dist",
16
+ "README.md",
17
+ "CHANGELOG.md"
18
+ ],
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/index.d.ts",
22
+ "import": "./dist/index.js"
23
+ }
24
+ },
25
+ "engines": {
26
+ "node": ">=20"
27
+ },
28
+ "dependencies": {
29
+ "zod": "^4.3.6",
30
+ "@restormel/contracts": "0.1.1"
31
+ },
32
+ "peerDependencies": {
33
+ "ai": ">=4.0.0"
34
+ },
35
+ "peerDependenciesMeta": {
36
+ "ai": {
37
+ "optional": true
38
+ }
39
+ },
40
+ "devDependencies": {
41
+ "ai": "^4.3.19",
42
+ "typescript": "^5.7.0",
43
+ "vitest": "^4.1.0"
44
+ },
45
+ "publishConfig": {
46
+ "access": "public"
47
+ },
48
+ "scripts": {
49
+ "build": "tsc -b tsconfig.json",
50
+ "typecheck": "tsc -b tsconfig.json",
51
+ "test": "vitest run"
52
+ }
53
+ }