create-personality
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -9,3 +9,3 @@ import Conf from "conf"; | ||
const name = "create-personality"; | ||
const version = "0.2.2"; | ||
const version = "0.2.3"; | ||
const description = "Library for crafting and sustaining AI personalities"; | ||
@@ -385,3 +385,3 @@ const homepage = "https://github.com/pigeonposse/personality"; | ||
const successRes = (id, initValue) => log.success(this.questions[id] + ":\n" + gray(initValue)); | ||
const choiceFN = (id) => async () => { | ||
const choiceFN = (id, cache = true) => async () => { | ||
const initValue = this.flags[id] || this.answers[id]; | ||
@@ -398,3 +398,3 @@ if (initValue !== void 0) { | ||
})), | ||
initialValue: this.cache.get(id) | ||
initialValue: cache ? this.cache.get(id) : void 0 | ||
}); | ||
@@ -413,3 +413,3 @@ }; | ||
}, | ||
[this.ID.selectedModel]: choiceFN(this.ID.selectedModel), | ||
[this.ID.selectedModel]: choiceFN(this.ID.selectedModel, false), | ||
[this.ID.tone]: choiceFN(this.ID.tone), | ||
@@ -416,0 +416,0 @@ [this.ID.formality]: choiceFN(this.ID.formality), |
{ | ||
"name": "create-personality", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Library for crafting and sustaining AI personalities", | ||
@@ -53,10 +53,10 @@ "keywords": [ | ||
"devDependencies": { | ||
"@backan/builder": "0.0.16", | ||
"@backan/builder": "0.0.19", | ||
"@changesets/changelog-github": "0.5.0", | ||
"@changesets/cli": "2.27.8", | ||
"@chialab/esbuild-plugin-babel": "^0.18.0", | ||
"@chialab/esbuild-plugin-meta-url": "^0.18.2", | ||
"@chialab/esbuild-plugin-babel": "0.18.0", | ||
"@chialab/esbuild-plugin-meta-url": "0.18.2", | ||
"@commitlint/cli": "19.5.0", | ||
"@pigeon-posse/eslint-config": "1.0.1", | ||
"@rsbuild/core": "^1.0.2", | ||
"@rsbuild/core": "1.0.5", | ||
"@typescript-eslint/eslint-plugin": "8.2.0", | ||
@@ -82,3 +82,3 @@ "@typescript-eslint/parser": "8.2.0", | ||
"typescript": "5.6.2", | ||
"vite": "^5.4.4" | ||
"vite": "5.4.6" | ||
}, | ||
@@ -128,5 +128,5 @@ "dependencies": { | ||
"dev": "vite build && node dist/cli.js", | ||
"build": "pnpm run --sequential \"/^build:.*/\"", | ||
"build": "pnpm run --sequential \"/build:.*/\"", | ||
"build:lib": "vite build", | ||
"build:bins": "rsbuild build && node ./build.js", | ||
"build:bins": "rsbuild build -c .dev/build-lib.mjs && node .dev/build-bin.mjs", | ||
"update-version": "changeset && changeset version", | ||
@@ -133,0 +133,0 @@ "push": "git add . && cz && git push -f origin $@", |
62175