psyche-ai 4.0.0 → 5.0.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/README.md +5 -1
- package/dist/core.js +8 -2
- package/dist/ethics.d.ts +64 -0
- package/dist/ethics.js +577 -0
- package/dist/experiential-field.d.ts +46 -0
- package/dist/experiential-field.js +646 -0
- package/dist/generative-self.d.ts +88 -0
- package/dist/generative-self.js +647 -0
- package/dist/index.d.ts +10 -2
- package/dist/index.js +9 -1
- package/dist/psyche-file.js +6 -3
- package/dist/shared-intentionality.d.ts +72 -0
- package/dist/shared-intentionality.js +486 -0
- package/dist/types.d.ts +37 -2
- package/dist/types.js +13 -0
- package/dist/update.js +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/types.js
CHANGED
|
@@ -96,6 +96,19 @@ export const DEFAULT_METACOGNITIVE_STATE = {
|
|
|
96
96
|
avgEmotionalConfidence: 0.5,
|
|
97
97
|
totalAssessments: 0,
|
|
98
98
|
};
|
|
99
|
+
// ── Personhood Types (v6) ────────────────────────────────────
|
|
100
|
+
/** Max causal insights to persist */
|
|
101
|
+
export const MAX_CAUSAL_INSIGHTS = 20;
|
|
102
|
+
/** Max ethical concern history entries */
|
|
103
|
+
export const MAX_ETHICAL_HISTORY = 15;
|
|
104
|
+
/** Default empty personhood state */
|
|
105
|
+
export const DEFAULT_PERSONHOOD_STATE = {
|
|
106
|
+
causalInsights: [],
|
|
107
|
+
growthDirection: "stable",
|
|
108
|
+
identityNarrative: "",
|
|
109
|
+
ethicalConcernHistory: [],
|
|
110
|
+
theoryOfMind: {},
|
|
111
|
+
};
|
|
99
112
|
/** Default relationship for new users */
|
|
100
113
|
export const DEFAULT_RELATIONSHIP = {
|
|
101
114
|
trust: 50,
|
package/dist/update.js
CHANGED
|
@@ -11,7 +11,7 @@ import { execFile } from "node:child_process";
|
|
|
11
11
|
import { promisify } from "node:util";
|
|
12
12
|
const execFileAsync = promisify(execFile);
|
|
13
13
|
const PACKAGE_NAME = "psyche-ai";
|
|
14
|
-
const CURRENT_VERSION = "
|
|
14
|
+
const CURRENT_VERSION = "5.0.0";
|
|
15
15
|
const CHECK_INTERVAL_MS = 60 * 60 * 1000; // 1 hour
|
|
16
16
|
const CACHE_DIR = join(homedir(), ".psyche-ai");
|
|
17
17
|
const CACHE_FILE = join(CACHE_DIR, "update-check.json");
|
package/openclaw.plugin.json
CHANGED