@orkestrel/reason 0.0.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/LICENSE +21 -0
- package/README.md +74 -0
- package/dist/src/core/index.cjs +6087 -0
- package/dist/src/core/index.cjs.map +1 -0
- package/dist/src/core/index.d.cts +4852 -0
- package/dist/src/core/index.d.ts +4852 -0
- package/dist/src/core/index.js +5912 -0
- package/dist/src/core/index.js.map +1 -0
- package/package.json +83 -0
package/package.json
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@orkestrel/reason",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "A typed reasoning engine: definitions, subjects, and quantitative/logical/symbolic/inferential reasoners. Part of the @orkestrel line.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"decision-engine",
|
|
7
|
+
"inference",
|
|
8
|
+
"reason",
|
|
9
|
+
"reasoning",
|
|
10
|
+
"rules-engine",
|
|
11
|
+
"typescript"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://github.com/orkestrel/reason#readme",
|
|
14
|
+
"bugs": "https://github.com/orkestrel/reason/issues",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/orkestrel/reason.git"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"README.md"
|
|
23
|
+
],
|
|
24
|
+
"type": "module",
|
|
25
|
+
"sideEffects": false,
|
|
26
|
+
"main": "./dist/src/core/index.cjs",
|
|
27
|
+
"module": "./dist/src/core/index.js",
|
|
28
|
+
"types": "./dist/src/core/index.d.ts",
|
|
29
|
+
"exports": {
|
|
30
|
+
".": {
|
|
31
|
+
"import": {
|
|
32
|
+
"types": "./dist/src/core/index.d.ts",
|
|
33
|
+
"default": "./dist/src/core/index.js"
|
|
34
|
+
},
|
|
35
|
+
"require": {
|
|
36
|
+
"types": "./dist/src/core/index.d.cts",
|
|
37
|
+
"default": "./dist/src/core/index.cjs"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"./package.json": "./package.json"
|
|
41
|
+
},
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"access": "public"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"clean": "node -e \"try{require('node:fs').rmSync('dist',{recursive:true,force:true})}catch{}\"",
|
|
47
|
+
"copy": "node -e \"const fs=require('node:fs'),p=require('node:path'),a=process.argv[1],b=process.argv[2];fs.mkdirSync(p.dirname(b),{recursive:true});fs.cpSync(a,b,{force:true});console.log('Copied: '+a+' to '+b)\"",
|
|
48
|
+
"tmp:txt": "node -e \"const fs=require('node:fs'),p=require('node:path');function walk(d){for(const e of fs.readdirSync(d,{withFileTypes:true})){const f=p.join(d,e.name);if(e.isDirectory()){walk(f)}else if(!e.name.endsWith('.md')&&!e.name.endsWith('.txt')){const t=f+'.txt';if(!fs.existsSync(t)){fs.renameSync(f,t)}else{console.warn('Skipping '+f+' — target exists: '+t)}}}}try{walk('tmp')}catch(e){if(e.code!=='ENOENT')throw e}\"",
|
|
49
|
+
"lint": "oxlint --config .oxlintrc.json --fix .",
|
|
50
|
+
"check": "tsc --noEmit --project tsconfig.json",
|
|
51
|
+
"check:src": "npm run check:src:core",
|
|
52
|
+
"check:src:core": "tsc --noEmit -p configs/src/tsconfig.core.json",
|
|
53
|
+
"format": "oxfmt --config .oxfmtrc.json --write .",
|
|
54
|
+
"format:check": "oxfmt --config .oxfmtrc.json --check .",
|
|
55
|
+
"lint:check": "oxlint --config .oxlintrc.json .",
|
|
56
|
+
"test": "npm run test:src && npm run test:guides",
|
|
57
|
+
"test:src": "vitest run --config vite.config.ts --no-cache --reporter=dot --project src:core",
|
|
58
|
+
"test:src:core": "vitest run --config vite.config.ts --no-cache --reporter=dot --project src:core",
|
|
59
|
+
"test:guides": "vitest run --config vite.config.ts --reporter=dot --project guides",
|
|
60
|
+
"build": "npm run clean && npm run build:src",
|
|
61
|
+
"build:src": "npm run build:src:core",
|
|
62
|
+
"build:src:core": "vite build --config configs/src/vite.core.config.ts && npm run copy dist/src/core/index.d.ts dist/src/core/index.d.cts",
|
|
63
|
+
"prepublishOnly": "npm run format:check && npm run lint:check && npm run check && npm run check:src && npm run build && npm test"
|
|
64
|
+
},
|
|
65
|
+
"dependencies": {
|
|
66
|
+
"@orkestrel/contract": "^0.0.1",
|
|
67
|
+
"@orkestrel/emitter": "^0.0.1"
|
|
68
|
+
},
|
|
69
|
+
"devDependencies": {
|
|
70
|
+
"@microsoft/api-extractor": "^7.58.9",
|
|
71
|
+
"@orkestrel/guide": "^0.0.1",
|
|
72
|
+
"@types/node": "^26.1.1",
|
|
73
|
+
"oxfmt": "^0.58.0",
|
|
74
|
+
"oxlint": "^1.73.0",
|
|
75
|
+
"typescript": "^6.0.3",
|
|
76
|
+
"vite": "^8.1.4",
|
|
77
|
+
"vite-plugin-dts": "^5.0.3",
|
|
78
|
+
"vitest": "^4.1.10"
|
|
79
|
+
},
|
|
80
|
+
"engines": {
|
|
81
|
+
"node": ">=24"
|
|
82
|
+
}
|
|
83
|
+
}
|