engine7 7.1.95 → 7.1.96

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/dist/cli.mjs CHANGED
@@ -18320,7 +18320,8 @@ function buildLightHistory(history, opts) {
18320
18320
  function buildLightStablePrompt(workspace, mode, opts) {
18321
18321
  const lp = liveConfig.get(`channels.${mode}.liveSystemPrompt`);
18322
18322
  const parts = [];
18323
- for (const f of lp?.files ?? ["SOUL.md"]) {
18323
+ const files = lp?.files ?? (mode === "emotion" ? ["SOUL.md", "EMOTION.md"] : ["SOUL.md"]);
18324
+ for (const f of files) {
18324
18325
  try {
18325
18326
  parts.push(readFileSync22(join29(workspace, f), "utf-8").trim());
18326
18327
  } catch {
@@ -18343,7 +18344,7 @@ function buildLightStablePrompt(workspace, mode, opts) {
18343
18344
  ].join("\n"));
18344
18345
  }
18345
18346
  const built = parts.join("\n\n");
18346
- console.log(`[light-stable] mode=${mode} files=[${(lp?.files ?? ["SOUL.md"]).join(",")}] ~${Math.round(built.length / 3)} tokens`);
18347
+ console.log(`[light-stable] mode=${mode} files=[${files.join(",")}] ~${Math.round(built.length / 3)} tokens`);
18347
18348
  return built;
18348
18349
  }
18349
18350
  var init_light_mode = __esm({
@@ -24614,7 +24614,8 @@ function buildLightHistory(history, opts) {
24614
24614
  function buildLightStablePrompt(workspace, mode, opts) {
24615
24615
  const lp = liveConfig.get(`channels.${mode}.liveSystemPrompt`);
24616
24616
  const parts = [];
24617
- for (const f of lp?.files ?? ["SOUL.md"]) {
24617
+ const files = lp?.files ?? (mode === "emotion" ? ["SOUL.md", "EMOTION.md"] : ["SOUL.md"]);
24618
+ for (const f of files) {
24618
24619
  try {
24619
24620
  parts.push(readFileSync11(join18(workspace, f), "utf-8").trim());
24620
24621
  } catch {
@@ -24637,7 +24638,7 @@ function buildLightStablePrompt(workspace, mode, opts) {
24637
24638
  ].join("\n"));
24638
24639
  }
24639
24640
  const built = parts.join("\n\n");
24640
- console.log(`[light-stable] mode=${mode} files=[${(lp?.files ?? ["SOUL.md"]).join(",")}] ~${Math.round(built.length / 3)} tokens`);
24641
+ console.log(`[light-stable] mode=${mode} files=[${files.join(",")}] ~${Math.round(built.length / 3)} tokens`);
24641
24642
  return built;
24642
24643
  }
24643
24644
 
package/dist/main.mjs CHANGED
@@ -24911,7 +24911,8 @@ function buildLightHistory(history, opts) {
24911
24911
  function buildLightStablePrompt(workspace, mode, opts) {
24912
24912
  const lp = liveConfig.get(`channels.${mode}.liveSystemPrompt`);
24913
24913
  const parts = [];
24914
- for (const f of lp?.files ?? ["SOUL.md"]) {
24914
+ const files = lp?.files ?? (mode === "emotion" ? ["SOUL.md", "EMOTION.md"] : ["SOUL.md"]);
24915
+ for (const f of files) {
24915
24916
  try {
24916
24917
  parts.push(readFileSync12(join19(workspace, f), "utf-8").trim());
24917
24918
  } catch {
@@ -24934,7 +24935,7 @@ function buildLightStablePrompt(workspace, mode, opts) {
24934
24935
  ].join("\n"));
24935
24936
  }
24936
24937
  const built = parts.join("\n\n");
24937
- console.log(`[light-stable] mode=${mode} files=[${(lp?.files ?? ["SOUL.md"]).join(",")}] ~${Math.round(built.length / 3)} tokens`);
24938
+ console.log(`[light-stable] mode=${mode} files=[${files.join(",")}] ~${Math.round(built.length / 3)} tokens`);
24938
24939
  return built;
24939
24940
  }
24940
24941
 
package/package.json CHANGED
@@ -1,85 +1,85 @@
1
- {
2
- "name": "engine7",
3
- "license": "Apache-2.0",
4
- "version": "7.1.95",
5
- "type": "module",
6
- "description": "Engine 7 — 给助手一个家 / A home for your AI assistant",
7
- "main": "dist/main.mjs",
8
- "bin": {
9
- "engine7": "bin/engine7"
10
- },
11
- "scripts": {
12
- "build": "node scripts/build.mjs",
13
- "test:goal": "tsx src/goals/store.test.ts",
14
- "test:goal:aim": "tsx src/goals/aim-adapter.test.ts",
15
- "test:goal:task": "tsx src/goals/task-adapter.test.ts",
16
- "test:goal:remote": "tsx src/goals/remote-task-adapter.test.ts",
17
- "test:goal:recovery": "tsx src/goals/recovery.test.ts",
18
- "test:goal:gate": "tsx src/nudge/registration-gate.test.ts",
19
- "test:goal:command": "tsx src/commands/goal.test.ts",
20
- "test:goal:all": "npm run test:goal && npm run test:goal:calendar && npm run test:goal:restart && npm run test:goal:aim && npm run test:goal:task && npm run test:goal:remote && npm run test:goal:recovery && npm run test:goal:gate && npm run test:goal:command && npm run test:goal:e2e",
21
- "test:goal:calendar": "tsx src/goals/calendar-adapter.test.ts",
22
- "test:goal:restart": "powershell -NoProfile -Command \"$d = Join-Path ([System.IO.Path]::GetTempPath()) ('engine7-goal-' + [guid]::NewGuid()); New-Item -ItemType Directory -Path $d | Out-Null; $id = (npx tsx src/goals/restart-writer.ts $d); npx tsx src/goals/restart-reader.ts $d $id; Remove-Item -Recurse -Force $d\"",
23
- "test:goal:e2e": "powershell -NoProfile -Command \"$d = Join-Path ([System.IO.Path]::GetTempPath()) ('engine7-goal-e2e-' + [guid]::NewGuid()); New-Item -ItemType Directory -Path $d | Out-Null; npx tsx src/goals/e2e-phase1.ts $d; if ($LASTEXITCODE -ne 0) { Remove-Item -Recurse -Force $d; exit 1 }; npx tsx src/goals/e2e-phase2.ts $d; $code = $LASTEXITCODE; Remove-Item -Recurse -Force $d; exit $code\"",
24
- "test:reload": "tsx src/reload/orchestrator.test.ts && tsx src/hooks/config.test.ts && tsx src/channels/manager.reconcile.test.ts && tsx src/engine-startup.shouldSkipReload.test.ts && tsx src/optional/voice-chat/plugin.deps.test.ts && tsx src/cron/cron-plugin.resync.test.ts && tsx src/startup/message-pipeline.test.ts && tsx src/utils/sanitize-error.test.ts",
25
- "test:installer": "tsx src/cli-events.test.ts && tsx src/cli-init-config.test.ts && tsx src/cli-init-answers.test.ts && tsx src/cli-init.headless.e2e.test.ts && tsx src/cli-reconfig.test.ts && tsx src/cli-doctor.test.ts && tsx src/config/secrets-env.test.ts && tsx src/startup/api-status.test.ts && tsx src/cli-service.test.ts && tsx src/emotion-hook.test.ts && tsx src/emotion-hook.golden.test.ts && tsx src/tools/tavily-pool.test.ts",
26
- "test:responses": "tsx src/models/openai-responses-provider.test.ts && tsx src/session/responses-reasoning-roundtrip.test.ts && tsx src/compact/tokenEstimate.test.ts",
27
- "build:public": "node scripts/build.mjs --public",
28
- "prepublishOnly": "npm run build:public",
29
- "start": "node dist/main.mjs",
30
- "smoke:boot": "node scripts/boot-smoke.mjs",
31
- "smoke:boot:baseline": "node scripts/boot-smoke.mjs --baseline",
32
- "gen:template": "tsx scripts/gen-config-template.ts",
33
- "test:time": "tsx src/time/tz-matrix.test.ts && tsx src/time/time-discipline.test.ts && tsx src/time/tsc-guard.test.ts",
34
- "prepack": "npm run test:time"
35
- },
36
- "engines": {
37
- "node": ">=22"
38
- },
39
- "os": [
40
- "win32",
41
- "linux",
42
- "darwin"
43
- ],
44
- "cpu": [
45
- "x64",
46
- "arm64"
47
- ],
48
- "devDependencies": {
49
- "@types/node": "^22.19.19",
50
- "@types/turndown": "^5.0.6",
51
- "esbuild": "^0.25.10",
52
- "tsx": "^4.22.3",
53
- "typescript": "^6.0.0"
54
- },
55
- "dependencies": {
56
- "@larksuiteoapi/node-sdk": "^1.66.1",
57
- "@modelcontextprotocol/sdk": "^1.29.0",
58
- "chokidar": "^5.0.0",
59
- "croner": "^10.0.1",
60
- "discord.js": "^14.26.4",
61
- "https-proxy-agent": "^9.1.0",
62
- "qrcode-terminal": "^0.12.0",
63
- "sharp": "^0.34.5",
64
- "sqlite-vec": "^0.1.9",
65
- "turndown": "^7.2.4",
66
- "typebox": "^1.1.38"
67
- },
68
- "optionalDependencies": {
69
- "@discordjs/opus": "^0.10.0",
70
- "sqlite-vec-darwin-arm64": "^0.1.9",
71
- "sqlite-vec-darwin-x64": "^0.1.9",
72
- "sqlite-vec-linux-arm64": "^0.1.9",
73
- "sqlite-vec-linux-x64": "^0.1.9",
74
- "sqlite-vec-windows-x64": "^0.1.9",
75
- "@lancedb/lancedb": "^0.38.0",
76
- "@node-rs/jieba": "^2.0.3"
77
- },
78
- "files": [
79
- "dist/**/*.mjs",
80
- "bin/**/*",
81
- "templates/**/*",
82
- "src/memory/everos/python/**/*",
83
- "README.md"
84
- ]
85
- }
1
+ {
2
+ "name": "engine7",
3
+ "license": "Apache-2.0",
4
+ "version": "7.1.96",
5
+ "type": "module",
6
+ "description": "Engine 7 — 给助手一个家 / A home for your AI assistant",
7
+ "main": "dist/main.mjs",
8
+ "bin": {
9
+ "engine7": "bin/engine7"
10
+ },
11
+ "scripts": {
12
+ "build": "node scripts/build.mjs",
13
+ "test:goal": "tsx src/goals/store.test.ts",
14
+ "test:goal:aim": "tsx src/goals/aim-adapter.test.ts",
15
+ "test:goal:task": "tsx src/goals/task-adapter.test.ts",
16
+ "test:goal:remote": "tsx src/goals/remote-task-adapter.test.ts",
17
+ "test:goal:recovery": "tsx src/goals/recovery.test.ts",
18
+ "test:goal:gate": "tsx src/nudge/registration-gate.test.ts",
19
+ "test:goal:command": "tsx src/commands/goal.test.ts",
20
+ "test:goal:all": "npm run test:goal && npm run test:goal:calendar && npm run test:goal:restart && npm run test:goal:aim && npm run test:goal:task && npm run test:goal:remote && npm run test:goal:recovery && npm run test:goal:gate && npm run test:goal:command && npm run test:goal:e2e",
21
+ "test:goal:calendar": "tsx src/goals/calendar-adapter.test.ts",
22
+ "test:goal:restart": "powershell -NoProfile -Command \"$d = Join-Path ([System.IO.Path]::GetTempPath()) ('engine7-goal-' + [guid]::NewGuid()); New-Item -ItemType Directory -Path $d | Out-Null; $id = (npx tsx src/goals/restart-writer.ts $d); npx tsx src/goals/restart-reader.ts $d $id; Remove-Item -Recurse -Force $d\"",
23
+ "test:goal:e2e": "powershell -NoProfile -Command \"$d = Join-Path ([System.IO.Path]::GetTempPath()) ('engine7-goal-e2e-' + [guid]::NewGuid()); New-Item -ItemType Directory -Path $d | Out-Null; npx tsx src/goals/e2e-phase1.ts $d; if ($LASTEXITCODE -ne 0) { Remove-Item -Recurse -Force $d; exit 1 }; npx tsx src/goals/e2e-phase2.ts $d; $code = $LASTEXITCODE; Remove-Item -Recurse -Force $d; exit $code\"",
24
+ "test:reload": "tsx src/reload/orchestrator.test.ts && tsx src/hooks/config.test.ts && tsx src/channels/manager.reconcile.test.ts && tsx src/engine-startup.shouldSkipReload.test.ts && tsx src/optional/voice-chat/plugin.deps.test.ts && tsx src/cron/cron-plugin.resync.test.ts && tsx src/startup/message-pipeline.test.ts && tsx src/utils/sanitize-error.test.ts",
25
+ "test:installer": "tsx src/cli-events.test.ts && tsx src/cli-init-config.test.ts && tsx src/cli-init-answers.test.ts && tsx src/cli-init.headless.e2e.test.ts && tsx src/cli-reconfig.test.ts && tsx src/cli-doctor.test.ts && tsx src/config/secrets-env.test.ts && tsx src/startup/api-status.test.ts && tsx src/cli-service.test.ts && tsx src/emotion-hook.test.ts && tsx src/emotion-hook.golden.test.ts && tsx src/tools/tavily-pool.test.ts",
26
+ "test:responses": "tsx src/models/openai-responses-provider.test.ts && tsx src/session/responses-reasoning-roundtrip.test.ts && tsx src/compact/tokenEstimate.test.ts",
27
+ "build:public": "node scripts/build.mjs --public",
28
+ "prepublishOnly": "npm run build:public",
29
+ "start": "node dist/main.mjs",
30
+ "smoke:boot": "node scripts/boot-smoke.mjs",
31
+ "smoke:boot:baseline": "node scripts/boot-smoke.mjs --baseline",
32
+ "gen:template": "tsx scripts/gen-config-template.ts",
33
+ "test:time": "tsx src/time/tz-matrix.test.ts && tsx src/time/time-discipline.test.ts && tsx src/time/tsc-guard.test.ts",
34
+ "prepack": "npm run test:time"
35
+ },
36
+ "engines": {
37
+ "node": ">=22"
38
+ },
39
+ "os": [
40
+ "win32",
41
+ "linux",
42
+ "darwin"
43
+ ],
44
+ "cpu": [
45
+ "x64",
46
+ "arm64"
47
+ ],
48
+ "devDependencies": {
49
+ "@types/node": "^22.19.19",
50
+ "@types/turndown": "^5.0.6",
51
+ "esbuild": "^0.25.10",
52
+ "tsx": "^4.22.3",
53
+ "typescript": "^6.0.0"
54
+ },
55
+ "dependencies": {
56
+ "@larksuiteoapi/node-sdk": "^1.66.1",
57
+ "@modelcontextprotocol/sdk": "^1.29.0",
58
+ "chokidar": "^5.0.0",
59
+ "croner": "^10.0.1",
60
+ "discord.js": "^14.26.4",
61
+ "https-proxy-agent": "^9.1.0",
62
+ "qrcode-terminal": "^0.12.0",
63
+ "sharp": "^0.34.5",
64
+ "sqlite-vec": "^0.1.9",
65
+ "turndown": "^7.2.4",
66
+ "typebox": "^1.1.38"
67
+ },
68
+ "optionalDependencies": {
69
+ "@discordjs/opus": "^0.10.0",
70
+ "sqlite-vec-darwin-arm64": "^0.1.9",
71
+ "sqlite-vec-darwin-x64": "^0.1.9",
72
+ "sqlite-vec-linux-arm64": "^0.1.9",
73
+ "sqlite-vec-linux-x64": "^0.1.9",
74
+ "sqlite-vec-windows-x64": "^0.1.9",
75
+ "@lancedb/lancedb": "^0.38.0",
76
+ "@node-rs/jieba": "^2.0.3"
77
+ },
78
+ "files": [
79
+ "dist/**/*.mjs",
80
+ "bin/**/*",
81
+ "templates/**/*",
82
+ "src/memory/everos/python/**/*",
83
+ "README.md"
84
+ ]
85
+ }