rhachet-brains-xai 0.0.0 → 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.
|
@@ -5,8 +5,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.genBrainAtom = void 0;
|
|
7
7
|
const openai_1 = __importDefault(require("openai"));
|
|
8
|
-
const zod_1 = require("zod");
|
|
9
8
|
const rhachet_1 = require("rhachet");
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
10
|
/**
|
|
11
11
|
* .what = model configuration by slug
|
|
12
12
|
* .why = maps slugs to API model names, descriptions, and context sizes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"genBrainAtom.js","sourceRoot":"","sources":["../../../src/domain.operations/atom/genBrainAtom.ts"],"names":[],"mappings":";;;;;;AAAA,oDAA4B;
|
|
1
|
+
{"version":3,"file":"genBrainAtom.js","sourceRoot":"","sources":["../../../src/domain.operations/atom/genBrainAtom.ts"],"names":[],"mappings":";;;;;;AAAA,oDAA4B;AAC5B,qCAAwD;AAIxD,6BAAwB;AAaxB;;;GAGG;AACH,MAAM,cAAc,GAGhB;IACF,sBAAsB,EAAE;QACtB,KAAK,EAAE,kBAAkB;QACzB,WAAW,EAAE,wDAAwD;QACrE,OAAO,EAAE,MAAO;KACjB;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,oCAAoC;QACjD,OAAO,EAAE,MAAO;KACjB;IACD,iBAAiB,EAAE;QACjB,KAAK,EAAE,kBAAkB;QACzB,WAAW,EAAE,8CAA8C;QAC3D,OAAO,EAAE,MAAO;KACjB;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,cAAc;QACrB,WAAW,EAAE,oCAAoC;QACjD,OAAO,EAAE,MAAO;KACjB;IACD,iBAAiB,EAAE;QACjB,KAAK,EAAE,uBAAuB;QAC9B,WA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,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC;gBACpD,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,QAAQ;gBACR,eAAe,EAAE;oBACf,IAAI,EAAE,aAAa;oBACnB,WAAW,EAAE;wBACX,IAAI,EAAE,UAAU;wBAChB,MAAM,EAAE,IAAI;wBACZ,MAAM,EAAE,UAAU;qBACnB;iBACF;aACF,CAAC,CAAC;YAEH,gCAAgC;YAChC,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,IAAI,EAAE,CAAC;YAE5D,8CAA8C;YAC9C,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YACnC,OAAO,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC9C,CAAC;KACF,CAAC,CAAC;AACL,CAAC,CAAC;AAjEW,QAAA,YAAY,gBAiEvB"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "rhachet-brains-xai",
|
|
3
3
|
"author": "ehmpathy",
|
|
4
4
|
"description": "rhachet brain.atom adapter for xai grok models",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.1.0",
|
|
6
6
|
"repository": "ehmpathy/rhachet-brains-xai",
|
|
7
7
|
"homepage": "https://github.com/ehmpathy/rhachet-brains-xai",
|
|
8
8
|
"keywords": [
|
|
@@ -22,15 +22,47 @@
|
|
|
22
22
|
"files": [
|
|
23
23
|
"/dist"
|
|
24
24
|
],
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build:ts": "tsc -p ./tsconfig.build.json",
|
|
27
|
+
"commit:with-cli": "npx cz",
|
|
28
|
+
"fix:format:biome": "biome check --write",
|
|
29
|
+
"fix:format": "npm run fix:format:biome",
|
|
30
|
+
"fix:lint": "biome check --write",
|
|
31
|
+
"fix": "npm run fix:format && npm run fix:lint",
|
|
32
|
+
"build:clean:bun": "rm -f ./bin/*.bc",
|
|
33
|
+
"build:clean:tsc": "(chmod -R u+w dist 2>/dev/null || true) && rm -rf dist/",
|
|
34
|
+
"build:clean": "npm run build:clean:tsc && npm run build:clean:bun",
|
|
35
|
+
"build:compile:tsc": "tsc -p ./tsconfig.build.json && tsc-alias -p ./tsconfig.build.json",
|
|
36
|
+
"build:compile": "npm run build:compile:tsc && npm run build:compile:bun --if-present",
|
|
37
|
+
"build": "npm run build:clean && npm run build:compile && npm run build:complete --if-present",
|
|
38
|
+
"test:commits": "LAST_TAG=$(git describe --tags --abbrev=0 @^ 2> /dev/null || git rev-list --max-parents=0 HEAD) && npx commitlint --from $LAST_TAG --to HEAD --verbose",
|
|
39
|
+
"test:types": "tsc -p ./tsconfig.json --noEmit",
|
|
40
|
+
"test:format:biome": "biome format",
|
|
41
|
+
"test:format": "npm run test:format:biome",
|
|
42
|
+
"test:lint:deps": "npx depcheck -c ./.depcheckrc.yml",
|
|
43
|
+
"test:lint:biome": "biome check --diagnostic-level=error",
|
|
44
|
+
"test:lint:biome:all": "biome check",
|
|
45
|
+
"test:lint": "npm run test:lint:biome && npm run test:lint:deps",
|
|
46
|
+
"test:unit": "jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main') $([ -n $RESNAP ] && echo '--updateSnapshot')",
|
|
47
|
+
"test:integration": "jest -c ./jest.integration.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main') $([ -n $RESNAP ] && echo '--updateSnapshot')",
|
|
48
|
+
"test:acceptance:locally": "npm run build && LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests $([ -n $RESNAP ] && echo '--updateSnapshot')",
|
|
49
|
+
"test": "npm run test:commits && npm run test:types && npm run test:format && npm run test:lint && npm run test:unit && npm run test:integration && npm run test:acceptance:locally",
|
|
50
|
+
"test:acceptance": "npm run build && jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests $([ -n $RESNAP ] && echo '--updateSnapshot')",
|
|
51
|
+
"prepush": "npm run test && npm run build",
|
|
52
|
+
"prepublish": "npm run build",
|
|
53
|
+
"preversion": "npm run prepush",
|
|
54
|
+
"postversion": "git push origin HEAD --tags --no-verify",
|
|
55
|
+
"prepare:husky": "husky install && chmod ug+x .husky/*",
|
|
56
|
+
"prepare:rhachet": "rhachet init --mode upsert && rhachet roles link --repo ehmpathy --role mechanic && rhachet roles link --repo bhuild --role behaver && rhachet roles link --repo bhrain --role reviewer && rhachet roles init --role mechanic && rhachet roles init --role behaver",
|
|
57
|
+
"prepare": "if [ -e .git ] && [ -z $CI ]; then npm run prepare:husky && npm run prepare:rhachet; fi"
|
|
58
|
+
},
|
|
25
59
|
"dependencies": {
|
|
26
|
-
"@openai/codex-sdk": "0.77.0",
|
|
27
60
|
"domain-objects": "0.31.9",
|
|
28
61
|
"helpful-errors": "1.5.3",
|
|
29
62
|
"openai": "5.8.2",
|
|
30
63
|
"rhachet-artifact": "1.0.1",
|
|
31
64
|
"rhachet-artifact-git": "1.1.5",
|
|
32
65
|
"type-fns": "1.21.0",
|
|
33
|
-
"wrapper-fns": "1.1.7",
|
|
34
66
|
"zod": "4.3.4"
|
|
35
67
|
},
|
|
36
68
|
"devDependencies": {
|
|
@@ -67,37 +99,5 @@
|
|
|
67
99
|
"path": "./node_modules/cz-conventional-changelog"
|
|
68
100
|
}
|
|
69
101
|
},
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
"commit:with-cli": "npx cz",
|
|
73
|
-
"fix:format:biome": "biome check --write",
|
|
74
|
-
"fix:format": "npm run fix:format:biome",
|
|
75
|
-
"fix:lint": "biome check --write",
|
|
76
|
-
"fix": "npm run fix:format && npm run fix:lint",
|
|
77
|
-
"build:clean:bun": "rm -f ./bin/*.bc",
|
|
78
|
-
"build:clean:tsc": "(chmod -R u+w dist 2>/dev/null || true) && rm -rf dist/",
|
|
79
|
-
"build:clean": "npm run build:clean:tsc && npm run build:clean:bun",
|
|
80
|
-
"build:compile:tsc": "tsc -p ./tsconfig.build.json && tsc-alias -p ./tsconfig.build.json",
|
|
81
|
-
"build:compile": "npm run build:compile:tsc && npm run build:compile:bun --if-present",
|
|
82
|
-
"build": "npm run build:clean && npm run build:compile && npm run build:complete --if-present",
|
|
83
|
-
"test:commits": "LAST_TAG=$(git describe --tags --abbrev=0 @^ 2> /dev/null || git rev-list --max-parents=0 HEAD) && npx commitlint --from $LAST_TAG --to HEAD --verbose",
|
|
84
|
-
"test:types": "tsc -p ./tsconfig.json --noEmit",
|
|
85
|
-
"test:format:biome": "biome format",
|
|
86
|
-
"test:format": "npm run test:format:biome",
|
|
87
|
-
"test:lint:deps": "npx depcheck -c ./.depcheckrc.yml",
|
|
88
|
-
"test:lint:biome": "biome check --diagnostic-level=error",
|
|
89
|
-
"test:lint:biome:all": "biome check",
|
|
90
|
-
"test:lint": "npm run test:lint:biome && npm run test:lint:deps",
|
|
91
|
-
"test:unit": "jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main') $([ -n $RESNAP ] && echo '--updateSnapshot')",
|
|
92
|
-
"test:integration": "jest -c ./jest.integration.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main') $([ -n $RESNAP ] && echo '--updateSnapshot')",
|
|
93
|
-
"test:acceptance:locally": "npm run build && LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests $([ -n $RESNAP ] && echo '--updateSnapshot')",
|
|
94
|
-
"test": "npm run test:commits && npm run test:types && npm run test:format && npm run test:lint && npm run test:unit && npm run test:integration && npm run test:acceptance:locally",
|
|
95
|
-
"test:acceptance": "npm run build && jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests $([ -n $RESNAP ] && echo '--updateSnapshot')",
|
|
96
|
-
"prepush": "npm run test && npm run build",
|
|
97
|
-
"prepublish": "npm run build",
|
|
98
|
-
"preversion": "npm run prepush",
|
|
99
|
-
"postversion": "git push origin HEAD --tags --no-verify",
|
|
100
|
-
"prepare:husky": "husky install && chmod ug+x .husky/*",
|
|
101
|
-
"prepare:rhachet": "rhachet init --mode upsert && rhachet roles link --repo ehmpathy --role mechanic && rhachet roles link --repo bhuild --role behaver && rhachet roles link --repo bhrain --role reviewer && rhachet roles init --role mechanic && rhachet roles init --role behaver"
|
|
102
|
-
}
|
|
103
|
-
}
|
|
102
|
+
"packageManager": "pnpm@10.24.0"
|
|
103
|
+
}
|