weflow-cli 1.17.0 → 1.19.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/CHANGELOG.md +30 -0
- package/README.md +3 -0
- package/bin/weflow-cli.ts +167 -0
- package/dist/bin/weflow-cli.js +199 -0
- package/dist/bin/weflow-cli.js.map +1 -1
- package/dist/src/services/diagnosticReport.d.ts +6 -0
- package/dist/src/services/diagnosticReport.d.ts.map +1 -1
- package/dist/src/services/diagnosticReport.js +16 -0
- package/dist/src/services/diagnosticReport.js.map +1 -1
- package/dist/src/services/wechatCompat.d.ts +29 -0
- package/dist/src/services/wechatCompat.d.ts.map +1 -0
- package/dist/src/services/wechatCompat.js +65 -0
- package/dist/src/services/wechatCompat.js.map +1 -0
- package/docs/DATA_CONTRACT.md +25 -25
- package/docs/DECISIONS.md +26 -0
- package/docs/FUNCTIONAL-IMPROVEMENT-SPEC.md +365 -365
- package/docs/HEALTH-CHECK.md +104 -104
- package/docs/JEV/345/272/224/347/224/250/346/226/275/345/267/245/346/226/207/346/241/243.md +310 -310
- package/docs/NEXT_ACTIONS.md +236 -236
- package/docs/NPM-PUBLISH.md +130 -130
- package/docs/NT_DATABASES.md +47 -0
- package/docs/POSITIONING.md +68 -68
- package/docs/PROJECT_STATE.md +2 -1
- package/docs/RELEASING.md +4 -0
- package/package.json +1 -1
- package/requirements-3x.txt +4 -4
- package/requirements-voice.txt +15 -15
- package/resources/js/graph3d/NOTICE.txt +35 -35
- package/resources/js/graph3d/d3-binarytree.min.js +2 -2
- package/resources/js/graph3d/d3-dispatch.min.js +2 -2
- package/resources/js/graph3d/d3-force-3d.min.js +2 -2
- package/resources/js/graph3d/d3-octree.min.js +2 -2
- package/resources/js/graph3d/d3-quadtree.min.js +2 -2
- package/resources/js/graph3d/d3-timer.min.js +2 -2
- package/resources/js/graph3d/three.min.js +6 -6
- package/resources/panel/quick-menu.cjs +197 -197
- package/scripts/_utils.py +1338 -1338
- package/scripts/annual_report.py +3 -1
- package/scripts/article_notes.py +423 -423
- package/scripts/contact_schema.py +339 -339
- package/scripts/create_reading_notes.py +11 -11
- package/scripts/daily_task.ps1 +213 -213
- package/scripts/extract_todos.py +3 -1
- package/scripts/fav_notes.py +321 -321
- package/scripts/health_check.py +473 -473
- package/scripts/imported_chats.py +68 -68
- package/scripts/install_tasks.ps1 +105 -105
- package/scripts/leads.py +179 -179
- package/scripts/mcp_bridge.py +3 -1
- package/scripts/media_index.py +150 -0
- package/scripts/network.py +206 -206
- package/scripts/nt_common.py +32 -0
- package/scripts/nt_decrypt.py +19 -15
- package/scripts/opinion_timeline.py +138 -138
- package/scripts/replay.py +803 -803
- package/scripts/run_hidden.vbs +24 -24
- package/scripts/semantic_search.py +5 -1
- package/scripts/user_notes.py +315 -315
- package/scripts/voice_transcribe.py +139 -139
- package/scripts/watch_issues.py +212 -212
- package/scripts/watch_mail.py +131 -131
- package/scripts/wechat_avatar.py +185 -0
- package/scripts/wechat_ledger.py +190 -0
- package/src/services/cursorProbe.ts +222 -222
- package/src/services/diagnosticReport.ts +22 -0
- package/src/services/qchatImport.ts +327 -327
- package/src/services/setupVenv.ts +238 -238
- package/src/services/syncService.ts +363 -363
- package/src/services/syncState.ts +275 -275
- package/src/services/wechatCompat.ts +67 -0
- package/src/services/wechatMedia.ts +166 -166
package/scripts/run_hidden.vbs
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
' Silent launcher for the WeFlow daily task.
|
|
2
|
-
'
|
|
3
|
-
' Why this file exists: a scheduled action that runs "powershell.exe -File ..." starts a
|
|
4
|
-
' CONSOLE program, so Windows creates a console window before PowerShell can hide it - you
|
|
5
|
-
' see a black box appear, and it is especially intrusive over a full-screen game. wscript.exe
|
|
6
|
-
' is a GUI process with no console at all, and WshShell.Run with window style 0 keeps the
|
|
7
|
-
' child hidden too.
|
|
8
|
-
'
|
|
9
|
-
' Arguments are forwarded verbatim, so "run_hidden.vbs noon" is the noon pass.
|
|
10
|
-
'
|
|
11
|
-
' ASCII only on purpose: Windows Script Host reads this file with the ANSI code page.
|
|
12
|
-
|
|
13
|
-
Dim fso, here, script, cmd, sh
|
|
14
|
-
Set fso = CreateObject("Scripting.FileSystemObject")
|
|
15
|
-
here = fso.GetParentFolderName(WScript.ScriptFullName)
|
|
16
|
-
script = fso.BuildPath(here, "daily_task.ps1")
|
|
17
|
-
|
|
18
|
-
cmd = "powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -WindowStyle Hidden -File """ & script & """"
|
|
19
|
-
If WScript.Arguments.Count > 0 Then
|
|
20
|
-
cmd = cmd & " " & WScript.Arguments(0)
|
|
21
|
-
End If
|
|
22
|
-
|
|
23
|
-
Set sh = CreateObject("WScript.Shell")
|
|
24
|
-
' 0 = hidden window, True = wait for the child so the task's last result reflects the run.
|
|
1
|
+
' Silent launcher for the WeFlow daily task.
|
|
2
|
+
'
|
|
3
|
+
' Why this file exists: a scheduled action that runs "powershell.exe -File ..." starts a
|
|
4
|
+
' CONSOLE program, so Windows creates a console window before PowerShell can hide it - you
|
|
5
|
+
' see a black box appear, and it is especially intrusive over a full-screen game. wscript.exe
|
|
6
|
+
' is a GUI process with no console at all, and WshShell.Run with window style 0 keeps the
|
|
7
|
+
' child hidden too.
|
|
8
|
+
'
|
|
9
|
+
' Arguments are forwarded verbatim, so "run_hidden.vbs noon" is the noon pass.
|
|
10
|
+
'
|
|
11
|
+
' ASCII only on purpose: Windows Script Host reads this file with the ANSI code page.
|
|
12
|
+
|
|
13
|
+
Dim fso, here, script, cmd, sh
|
|
14
|
+
Set fso = CreateObject("Scripting.FileSystemObject")
|
|
15
|
+
here = fso.GetParentFolderName(WScript.ScriptFullName)
|
|
16
|
+
script = fso.BuildPath(here, "daily_task.ps1")
|
|
17
|
+
|
|
18
|
+
cmd = "powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -WindowStyle Hidden -File """ & script & """"
|
|
19
|
+
If WScript.Arguments.Count > 0 Then
|
|
20
|
+
cmd = cmd & " " & WScript.Arguments(0)
|
|
21
|
+
End If
|
|
22
|
+
|
|
23
|
+
Set sh = CreateObject("WScript.Shell")
|
|
24
|
+
' 0 = hidden window, True = wait for the child so the task's last result reflects the run.
|
|
25
25
|
sh.Run cmd, 0, True
|
|
@@ -63,6 +63,7 @@ except:
|
|
|
63
63
|
|
|
64
64
|
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
|
65
65
|
from _utils import load_config, decrypt_lock, get_dashscope_key, get_api_key, LINE_LABELS # noqa: E402
|
|
66
|
+
from nt_common import decode_content # noqa: E402
|
|
66
67
|
from jev_client import create_client
|
|
67
68
|
|
|
68
69
|
OUTPUT_ROOT = 'output'
|
|
@@ -248,7 +249,10 @@ def collect_chat_messages(conns, name_map, days=90, per_talker=500):
|
|
|
248
249
|
except Exception:
|
|
249
250
|
continue
|
|
250
251
|
for rid, ts, sender, content in rows:
|
|
251
|
-
|
|
252
|
+
# 正文可能是 zstd 压缩的 BLOB(issue #12):先解码再判断长度,
|
|
253
|
+
# 否则这些消息会被整条跳过、索引里永远缺一段。
|
|
254
|
+
content = decode_content(content)
|
|
255
|
+
if len(content) < 10:
|
|
252
256
|
continue
|
|
253
257
|
item_id = f"chat:{talker}:{ts}:{rid}"
|
|
254
258
|
if item_id in seen:
|