engine7 7.1.137 → 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/README.md +3 -1
- package/dist/bg-worker.mjs +133 -127
- package/dist/cli.mjs +4418 -3209
- package/dist/cpu-router-worker.mjs +604 -8
- package/dist/device-connectors/reader +0 -0
- package/dist/engine-startup.mjs +10270 -5968
- package/dist/main.mjs +10262 -5939
- package/dist/optional-deps.json +78 -0
- package/dist/recall-worker.mjs +57 -53
- package/dist/sqlite-maintenance-worker.mjs +16 -18
- package/dist/topics-worker.mjs +56 -52
- package/dist/travel-authority.mjs +71 -25
- package/dist/travel-console.mjs +301 -110
- package/dist/travel-controller.mjs +321 -56
- package/dist/travel-data.mjs +655 -351
- package/dist/travel-gateway.mjs +34863 -2643
- package/dist/travel-host.mjs +43421 -0
- package/dist/travel-node-data.mjs +609 -281
- package/dist/travel-node.mjs +1424 -621
- package/dist/travel-pairing.mjs +35915 -0
- package/dist/travel-resource.mjs +131 -0
- package/dist/travel-retire.mjs +136 -60
- package/dist/web-console.mjs +2095 -290
- package/package.json +17 -8
- package/scripts/verify-cpu-router-package.mjs +14 -1
- package/templates/config.template.json +14 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "engine7",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "7.1.
|
|
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",
|
|
@@ -84,7 +85,12 @@
|
|
|
84
85
|
"test:recall-worker": "tsx src/mem7/core/__tests__/read-budget.test.ts && tsx --test --test-concurrency=1 src/mem7/core/__tests__/read-only-store.test.ts src/memory/memdir/recall-worker.test.ts src/memory/memdir/recall-worker.lifecycle.test.ts src/memory/memdir/recall-worker.status.test.ts src/memory/memdir/recall-worker.failure.test.ts src/core/handle-query.async-history.test.ts src/core/query.recall-steer.test.ts",
|
|
85
86
|
"test:recall-worker:bundle": "tsx --test src/memory/memdir/recall-worker.bundle.test.ts",
|
|
86
87
|
"test:stop-history:bundle": "tsx --test src/nudge/stop-history-worker.bundle.test.ts",
|
|
87
|
-
"test:rebuild-mac": "node --test scripts/rebuild-mac.test.mjs"
|
|
88
|
+
"test:rebuild-mac": "node --test scripts/rebuild-mac.test.mjs",
|
|
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",
|
|
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",
|
|
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",
|
|
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"
|
|
88
94
|
},
|
|
89
95
|
"engines": {
|
|
90
96
|
"node": ">=22"
|
|
@@ -99,16 +105,18 @@
|
|
|
99
105
|
"arm64"
|
|
100
106
|
],
|
|
101
107
|
"devDependencies": {
|
|
108
|
+
"@anthropic-ai/claude-agent-sdk": "^0.3.317",
|
|
109
|
+
"@ffmpeg-installer/ffmpeg": "^1.1.0",
|
|
102
110
|
"@types/node": "^22.19.19",
|
|
103
|
-
"@types/turndown": "^5.0.6",
|
|
104
111
|
"@types/ws": "^8.18.2",
|
|
105
112
|
"esbuild": "^0.25.10",
|
|
113
|
+
"onnxruntime-node": "1.19.2",
|
|
114
|
+
"marked": "15.0.12",
|
|
106
115
|
"qrcode": "^1.5.4",
|
|
107
116
|
"tsx": "^4.22.3",
|
|
108
117
|
"typescript": "^6.0.0"
|
|
109
118
|
},
|
|
110
119
|
"dependencies": {
|
|
111
|
-
"@anthropic-ai/claude-agent-sdk": "^0.3.317",
|
|
112
120
|
"@larksuiteoapi/node-sdk": "^1.66.1",
|
|
113
121
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
114
122
|
"baileys": "7.0.0-rc14",
|
|
@@ -120,6 +128,7 @@
|
|
|
120
128
|
"qrcode-terminal": "^0.12.0",
|
|
121
129
|
"sharp": "^0.34.5",
|
|
122
130
|
"sqlite-vec": "^0.1.9",
|
|
131
|
+
"tar": "6.2.1",
|
|
123
132
|
"turndown": "^7.2.4",
|
|
124
133
|
"typebox": "^1.1.38",
|
|
125
134
|
"ws": "^8.22.0"
|
|
@@ -127,12 +136,10 @@
|
|
|
127
136
|
"optionalDependencies": {
|
|
128
137
|
"@discordjs/opus": "^0.10.0",
|
|
129
138
|
"@engine7/lancedb-intel": "^1.0.0",
|
|
130
|
-
"@ffmpeg-installer/ffmpeg": "^1.1.0",
|
|
131
139
|
"@huggingface/tokenizers": "0.2.0",
|
|
132
140
|
"@lancedb/lancedb": "^0.38.0",
|
|
133
141
|
"@node-rs/jieba": "^2.0.3",
|
|
134
142
|
"apache-arrow": "18.1.0",
|
|
135
|
-
"onnxruntime-node": "1.19.2",
|
|
136
143
|
"sqlite-vec-darwin-arm64": "^0.1.9",
|
|
137
144
|
"sqlite-vec-darwin-x64": "^0.1.9",
|
|
138
145
|
"sqlite-vec-linux-arm64": "^0.1.9",
|
|
@@ -141,6 +148,8 @@
|
|
|
141
148
|
},
|
|
142
149
|
"files": [
|
|
143
150
|
"dist/**/*.mjs",
|
|
151
|
+
"dist/optional-deps.json",
|
|
152
|
+
"dist/device-connectors/reader",
|
|
144
153
|
"dist/prompts/**/*.md",
|
|
145
154
|
"dist/models/cpu-router-v2/**/*",
|
|
146
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
|
-
|
|
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",
|