engine7 7.1.138 → 7.1.140

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "engine7",
3
3
  "license": "Apache-2.0",
4
- "version": "7.1.138",
4
+ "version": "7.1.140",
5
5
  "type": "module",
6
6
  "description": "Engine7 — 给助手一个家 / A home for your AI assistant · https://www.twinsun.top",
7
7
  "homepage": "https://www.twinsun.top",
@@ -22,7 +22,8 @@
22
22
  "test:continuity": "tsx --test src/continuity/*.test.ts",
23
23
  "test:cc-desktop": "tsx --test src/cc-driver/desktop.test.ts src/cc-driver/desktop-cli.test.ts src/cc-driver/session-activity.test.ts src/tools/cc-ask-desktop.test.ts src/tools/cc-progress.test.ts",
24
24
  "build": "node scripts/build.mjs",
25
- "test:console": "node --test web-console/server.test.mjs web-console/travel-onboarding.test.mjs",
25
+ "test:console": "node --test web-console/server.test.mjs web-console/travel-onboarding.test.mjs web-console/chat.test.mjs web-console/device-connectors.test.mjs",
26
+ "test:console-device-browser": "node --test web-console/device-connectors-browser.test.mjs",
26
27
  "test:mem7:cognition": "tsx src/mem7/core/__tests__/relationship-cognition.test.ts && tsx src/mem7/core/__tests__/cognition-single-pass.test.ts",
27
28
  "test:mem7:social-boundary": "tsx src/mem7/core/__tests__/social-material-boundary.test.ts && tsx src/mem7/core/__tests__/social-demand-context.test.ts",
28
29
  "test:mem7:usable": "tsx src/mem7/core/__tests__/projection-window.test.ts && tsx src/mem7/core/__tests__/artifact-basis-bounded.test.ts && tsx src/mem7/core/__tests__/foresight-context-retention.test.ts && tsx src/mem7/core/__tests__/empty-keyword-search.test.ts && tsx src/mem7/core/__tests__/retire-graph-audits.test.ts && tsx src/memory/proactive/__tests__/bounded-memory-graph.test.ts && tsx src/memory/proactive/__tests__/retire-stale-derived.test.ts && tsx src/memory/proactive/__tests__/foresight-opportunity-release.test.ts && tsx src/memory/proactive/__tests__/scoped-opportunity-delivery.test.ts && tsx src/mem7/core/__tests__/graph-memory-context.test.ts && tsx src/mem7/core/__tests__/scoped-opportunity.test.ts && tsx src/mem7/core/__tests__/milestones-e2e.test.ts",
@@ -69,7 +70,7 @@
69
70
  "smoke:boot": "node scripts/boot-smoke.mjs",
70
71
  "smoke:boot:baseline": "node scripts/boot-smoke.mjs --baseline",
71
72
  "gen:template": "tsx scripts/gen-config-template.ts",
72
- "test:config": "tsx src/config/registry.test.ts && tsx src/config/writer.test.ts && tsx src/config/secrets-io.test.ts && tsx src/config/secrets-env.test.ts && tsx src/config/migrations/index.test.ts && tsx src/config/migrations/persona.test.ts && tsx src/config/migrations/channel-secrets.test.ts && tsx src/config/cli-config.test.ts && tsx src/config/tts-providers.test.ts && tsx src/config/tts-voices.test.ts && tsx src/free-tier-apply.test.ts && tsx src/startup/free-tier-video-fixup.test.ts && tsx src/startup/free-tier-voice-fixup.test.ts && tsx src/startup/mem7-services-fixup.test.ts && tsx src/startup/emotion-tools-fixup.test.ts && tsx --test src/startup/context-window-fixup.test.ts",
73
+ "test:config": "tsx src/config/registry.test.ts && tsx src/config/writer.test.ts && tsx src/config/secrets-io.test.ts && tsx src/config/secrets-env.test.ts && tsx src/config/migrations/index.test.ts && tsx src/config/migrations/persona.test.ts && tsx src/config/migrations/channel-secrets.test.ts && tsx src/config/cli-config.test.ts && tsx --test src/config/model-services.test.ts && tsx src/config/tts-providers.test.ts && tsx src/config/tts-voices.test.ts && tsx src/free-tier-apply.test.ts && tsx src/startup/free-tier-video-fixup.test.ts && tsx src/startup/free-tier-voice-fixup.test.ts && tsx src/startup/mem7-services-fixup.test.ts && tsx src/startup/emotion-tools-fixup.test.ts && tsx --test src/startup/context-window-fixup.test.ts",
73
74
  "test:time": "tsx src/time/tz-matrix.test.ts && tsx src/time/time-discipline.test.ts && tsx src/time/tsc-guard.test.ts && tsx src/memory/memdir/recall-time-label.test.ts && tsx --test src/session/session-history.time.test.ts",
74
75
  "test:tts": "tsx src/config/tts-providers.test.ts && tsx src/tools/tts/pick.test.ts && tsx src/tools/tts/route.test.ts && tsx src/tools/tts/relay.test.ts && tsx src/tools/tts/providers.test.ts && tsx src/tools/tts/impl.test.ts && tsx src/tools/tts/usage.test.ts && tsx src/tools/my-voice.dispatch.test.ts && tsx src/tools/opus-encoder.test.ts",
75
76
  "test:toolstate": "tsx src/core/names-from-history.test.ts && tsx src/tools/tool-loading.test.ts && tsx src/core/query.deferred.test.ts && tsx src/core/query.toolgate.test.ts && tsx src/tools/read-repeat.test.ts",
@@ -88,7 +89,8 @@
88
89
  "test:chan7-questions": "tsx --test src/tools/AskUserQuestionTool/chan7-card.test.ts src/channels/chan7.test.ts src/startup/chan7-questions.http.test.ts src/startup/chan7-migration.http.test.ts",
89
90
  "test:chan7-interactions": "tsx --test src/channels/chan7-suggestions.test.ts src/channels/chan7-files.test.ts src/channels/chan7.test.ts src/channels/chan7-reactions.test.ts src/startup/chan7-reactions.http.test.ts src/startup/chan7-files.http.test.ts src/startup/chan7-questions.http.test.ts src/startup/chan7-migration.http.test.ts src/tools/AskUserQuestionTool/chan7-card.test.ts src/core/handle-query.chan7.test.ts",
90
91
  "test:desktop-tasks": "tsx --test src/startup/desktop-tasks.test.ts src/startup/desktop-tasks.http.test.ts src/startup/desktop-tasks.review.test.ts src/startup/desktop-task-actions.test.ts",
91
- "test:chat-stop": "tsx --test src/startup/chat-stop.test.ts src/startup/chat-stop.integration.test.ts src/startup/input-preparation.test.ts"
92
+ "test:chat-stop": "tsx --test src/startup/chat-stop.test.ts src/startup/chat-stop.integration.test.ts src/startup/input-preparation.test.ts",
93
+ "test:console-billing": "node --test web-console/billing-browser.test.mjs"
92
94
  },
93
95
  "engines": {
94
96
  "node": ">=22"
@@ -103,16 +105,18 @@
103
105
  "arm64"
104
106
  ],
105
107
  "devDependencies": {
108
+ "@anthropic-ai/claude-agent-sdk": "^0.3.317",
109
+ "@ffmpeg-installer/ffmpeg": "^1.1.0",
106
110
  "@types/node": "^22.19.19",
107
- "@types/turndown": "^5.0.6",
108
111
  "@types/ws": "^8.18.2",
109
112
  "esbuild": "^0.25.10",
113
+ "onnxruntime-node": "1.19.2",
114
+ "marked": "15.0.12",
110
115
  "qrcode": "^1.5.4",
111
116
  "tsx": "^4.22.3",
112
117
  "typescript": "^6.0.0"
113
118
  },
114
119
  "dependencies": {
115
- "@anthropic-ai/claude-agent-sdk": "^0.3.317",
116
120
  "@larksuiteoapi/node-sdk": "^1.66.1",
117
121
  "@modelcontextprotocol/sdk": "^1.29.0",
118
122
  "baileys": "7.0.0-rc14",
@@ -124,6 +128,7 @@
124
128
  "qrcode-terminal": "^0.12.0",
125
129
  "sharp": "^0.34.5",
126
130
  "sqlite-vec": "^0.1.9",
131
+ "tar": "6.2.1",
127
132
  "turndown": "^7.2.4",
128
133
  "typebox": "^1.1.38",
129
134
  "ws": "^8.22.0"
@@ -131,12 +136,10 @@
131
136
  "optionalDependencies": {
132
137
  "@discordjs/opus": "^0.10.0",
133
138
  "@engine7/lancedb-intel": "^1.0.0",
134
- "@ffmpeg-installer/ffmpeg": "^1.1.0",
135
139
  "@huggingface/tokenizers": "0.2.0",
136
140
  "@lancedb/lancedb": "^0.38.0",
137
141
  "@node-rs/jieba": "^2.0.3",
138
142
  "apache-arrow": "18.1.0",
139
- "onnxruntime-node": "1.19.2",
140
143
  "sqlite-vec-darwin-arm64": "^0.1.9",
141
144
  "sqlite-vec-darwin-x64": "^0.1.9",
142
145
  "sqlite-vec-linux-arm64": "^0.1.9",
@@ -145,6 +148,8 @@
145
148
  },
146
149
  "files": [
147
150
  "dist/**/*.mjs",
151
+ "dist/optional-deps.json",
152
+ "dist/device-connectors/reader",
148
153
  "dist/prompts/**/*.md",
149
154
  "dist/models/cpu-router-v2/**/*",
150
155
  "scripts/check-cpu-router-payload.mjs",
@@ -9,7 +9,20 @@ const root = path.resolve(process.argv[2] ?? '.')
9
9
  const modelDir = path.join(root, 'dist/models/cpu-router-v2')
10
10
  checkCpuRouterPayload(modelDir)
11
11
  assert.ok(fs.existsSync(path.join(root, 'dist/cpu-router-worker.mjs')))
12
- if (!process.argv.includes('--manifest-only')) {
12
+ // 1115 瘦身:onnxruntime-node 可能按需化(dist/optional-deps.json 列了它且 payload
13
+ // 没带运行时)——worker 此刻跑不了推理是**预期**(装机后启动预取),等同 manifest-only
14
+ // 跳过,别把 dmg 构建卡死。
15
+ const onDemandList = path.join(root, 'dist/optional-deps.json')
16
+ let ortOnDemand = false
17
+ if (!fs.existsSync(path.join(root, 'node_modules/onnxruntime-node')) && fs.existsSync(onDemandList)) {
18
+ try {
19
+ const list = JSON.parse(fs.readFileSync(onDemandList, 'utf8'))
20
+ ortOnDemand = Object.values(list).some((v) => v?.main?.name === 'onnxruntime-node')
21
+ } catch { /* 清单坏了留给引擎侧填表校验去炸 */ }
22
+ }
23
+ if (ortOnDemand) {
24
+ console.log('[cpu-router] onnxruntime-node is on-demand (engine prefetches after install) — skipping native inference check')
25
+ } else if (!process.argv.includes('--manifest-only')) {
13
26
  const worker = new Worker(pathToFileURL(path.join(root, 'dist/cpu-router-worker.mjs')), {
14
27
  workerData: { modelDir, threads: 4 }, execArgv: [],
15
28
  })
@@ -47,6 +47,16 @@
47
47
  "dmScope": "main",
48
48
  "groupScope": "main"
49
49
  },
50
+ "mcpServers": {
51
+ "playwright": {
52
+ "enabled": true,
53
+ "command": "npx",
54
+ "args": [
55
+ "-y",
56
+ "@playwright/mcp@latest"
57
+ ]
58
+ }
59
+ },
50
60
  "sandbox": {
51
61
  "mode": "off"
52
62
  },
@@ -163,6 +173,10 @@
163
173
  "my_selfie",
164
174
  "my_eyes",
165
175
  "chat_history",
176
+ "chan7_suggest",
177
+ "chan7_discovery",
178
+ "tracking_goal",
179
+ "device_data",
166
180
  "read",
167
181
  "edit",
168
182
  "write",