@riconext/hermes-repo 1.0.0 → 1.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.
- package/CHANGELOG.md +6 -0
- package/dist/cli.js +14 -2
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/cli.js
CHANGED
|
@@ -2938,6 +2938,14 @@ import { copyFileSync, mkdirSync as mkdirSync12, writeFileSync as writeFileSync1
|
|
|
2938
2938
|
|
|
2939
2939
|
// src/init/mergeConfig.ts
|
|
2940
2940
|
import { existsSync as existsSync21, readFileSync as readFileSync22 } from "fs";
|
|
2941
|
+
var DEFAULT_LLM = {
|
|
2942
|
+
enabled: false,
|
|
2943
|
+
baseUrl: "https://api.openai.com/v1",
|
|
2944
|
+
model: "gpt-4o"
|
|
2945
|
+
};
|
|
2946
|
+
var DEFAULT_CONSOLIDATE = {
|
|
2947
|
+
autoArchiveDays: 30
|
|
2948
|
+
};
|
|
2941
2949
|
function mergeConfigForInit(repoRoot, assistants) {
|
|
2942
2950
|
const configPath = memoryPath(repoRoot, "config.json");
|
|
2943
2951
|
const existed = existsSync21(configPath);
|
|
@@ -2950,15 +2958,19 @@ function mergeConfigForInit(repoRoot, assistants) {
|
|
|
2950
2958
|
}
|
|
2951
2959
|
}
|
|
2952
2960
|
const prevStorage = existing.storage && typeof existing.storage === "object" && !Array.isArray(existing.storage) ? existing.storage : {};
|
|
2961
|
+
const prevLlm = existing.llm && typeof existing.llm === "object" && !Array.isArray(existing.llm) ? existing.llm : {};
|
|
2962
|
+
const prevConsolidate = existing.consolidate && typeof existing.consolidate === "object" && !Array.isArray(existing.consolidate) ? existing.consolidate : {};
|
|
2953
2963
|
const merged = {
|
|
2954
2964
|
...existing,
|
|
2955
|
-
version:
|
|
2965
|
+
version: 2,
|
|
2956
2966
|
storage: {
|
|
2957
2967
|
...prevStorage,
|
|
2958
2968
|
backend: "file"
|
|
2959
2969
|
},
|
|
2960
2970
|
assistants,
|
|
2961
|
-
debug: existing.debug === true
|
|
2971
|
+
debug: existing.debug === true,
|
|
2972
|
+
llm: { ...DEFAULT_LLM, ...prevLlm },
|
|
2973
|
+
consolidate: { ...DEFAULT_CONSOLIDATE, ...prevConsolidate }
|
|
2962
2974
|
};
|
|
2963
2975
|
return {
|
|
2964
2976
|
content: `${JSON.stringify(merged, null, 2)}
|