@suwenguang/pi-feishu-bridge 0.6.4 → 0.6.6
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/.pi/feishu/debug.pi.log
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
{"at":"2026-11-
|
|
2
|
-
{"at":"2026-11-
|
|
3
|
-
{"at":"2026-11-
|
|
4
|
-
{"at":"2026-11-
|
|
5
|
-
{"at":"2026-11-
|
|
6
|
-
{"at":"2026-11-
|
|
7
|
-
{"at":"2026-11-
|
|
8
|
-
{"at":"2026-11-
|
|
9
|
-
{"at":"2026-11-
|
|
10
|
-
{"at":"2026-11-
|
|
11
|
-
{"at":"2026-11-
|
|
12
|
-
{"at":"2026-11-
|
|
13
|
-
{"at":"2026-11-
|
|
14
|
-
{"at":"2026-11-
|
|
15
|
-
{"at":"2026-11-
|
|
16
|
-
{"at":"2026-11-
|
|
17
|
-
{"at":"2026-11-
|
|
18
|
-
{"at":"2026-11-
|
|
19
|
-
{"at":"2026-11-
|
|
20
|
-
{"at":"2026-11-
|
|
21
|
-
{"at":"2026-11-
|
|
22
|
-
{"at":"2026-11-
|
|
23
|
-
{"at":"2026-11-
|
|
24
|
-
{"at":"2026-11-
|
|
25
|
-
{"at":"2026-11-
|
|
26
|
-
{"at":"2026-11-
|
|
27
|
-
{"at":"2026-11-
|
|
28
|
-
{"at":"2026-11-
|
|
29
|
-
{"at":"2026-11-
|
|
30
|
-
{"at":"2026-11-
|
|
31
|
-
{"at":"2026-11-
|
|
32
|
-
{"at":"2026-11-
|
|
33
|
-
{"at":"2026-11-
|
|
34
|
-
{"at":"2026-11-
|
|
35
|
-
{"at":"2026-11-
|
|
36
|
-
{"at":"2026-11-
|
|
37
|
-
{"at":"2026-11-
|
|
38
|
-
{"at":"2026-11-
|
|
39
|
-
{"at":"2026-11-
|
|
40
|
-
{"at":"2026-11-
|
|
41
|
-
{"at":"2026-11-
|
|
42
|
-
{"at":"2026-11-
|
|
43
|
-
{"at":"2026-11-
|
|
44
|
-
{"at":"2026-11-
|
|
45
|
-
{"at":"2026-11-
|
|
46
|
-
{"at":"2026-11-
|
|
47
|
-
{"at":"2026-11-
|
|
48
|
-
{"at":"2026-11-
|
|
49
|
-
{"at":"2026-11-
|
|
50
|
-
{"at":"2026-11-
|
|
51
|
-
{"at":"2026-11-
|
|
52
|
-
{"at":"2026-11-
|
|
53
|
-
{"at":"2026-11-
|
|
54
|
-
{"at":"2026-11-
|
|
55
|
-
{"at":"2026-11-
|
|
56
|
-
{"at":"2026-11-
|
|
57
|
-
{"at":"2026-11-
|
|
58
|
-
{"at":"2026-11-
|
|
59
|
-
{"at":"2026-11-
|
|
60
|
-
{"at":"2026-11-
|
|
61
|
-
{"at":"2026-11-
|
|
62
|
-
{"at":"2026-11-
|
|
63
|
-
{"at":"2026-11-
|
|
64
|
-
{"at":"2026-11-
|
|
65
|
-
{"at":"2026-11-
|
|
66
|
-
{"at":"2026-11-
|
|
67
|
-
{"at":"2026-11-
|
|
68
|
-
{"at":"2026-11-
|
|
69
|
-
{"at":"2026-11-
|
|
70
|
-
{"at":"2026-11-
|
|
71
|
-
{"at":"2026-11-
|
|
72
|
-
{"at":"2026-11-
|
|
73
|
-
{"at":"2026-11-
|
|
74
|
-
{"at":"2026-11-
|
|
75
|
-
{"at":"2026-11-
|
|
76
|
-
{"at":"2026-11-
|
|
77
|
-
{"at":"2026-11-
|
|
78
|
-
{"at":"2026-11-
|
|
79
|
-
{"at":"2026-11-
|
|
80
|
-
{"at":"2026-11-
|
|
81
|
-
{"at":"2026-11-
|
|
1
|
+
{"at":"2026-11-13T09:14:33.670Z","event":"feishu.ask.partial","details":{"askId":"ask_mwerg4sl_qijgek","key":"group:test","questionIndex":0,"label":"推进开发","custom":false,"answered":1}}
|
|
2
|
+
{"at":"2026-11-13T09:14:33.670Z","event":"feishu.ask.answered","details":{"askId":"ask_mwerg4sl_qijgek","key":"group:test","label":"全量推进","custom":false,"allAnswered":true}}
|
|
3
|
+
{"at":"2026-11-13T09:14:33.681Z","event":"feishu.ask.partial","details":{"askId":"ask_mwerg4sx_uwipp3","key":"group:test","questionIndex":0,"label":"推进开发","custom":false,"answered":1}}
|
|
4
|
+
{"at":"2026-11-13T09:14:33.681Z","event":"feishu.ask.answered","details":{"askId":"ask_mwerg4sx_uwipp3","key":"group:test","label":"全量推进","custom":false,"allAnswered":true}}
|
|
5
|
+
{"at":"2026-11-13T09:14:33.683Z","event":"feishu.ask.partial","details":{"askId":"ask_mwerg4sz_0yspc9","key":"group:test","questionIndex":1,"label":"全量推进","custom":false,"answered":1}}
|
|
6
|
+
{"at":"2026-11-13T09:14:33.685Z","event":"feishu.ask.answered","details":{"askId":"ask_mwerg4sz_0yspc9","key":"group:test","label":"推进开发","custom":false,"allAnswered":true}}
|
|
7
|
+
{"at":"2026-11-13T09:14:33.690Z","event":"feishu.ask.partial","details":{"askId":"ask_mwerg4t6_23dihu","key":"group:test","questionIndex":0,"label":"手敲的答案","custom":true,"answered":1}}
|
|
8
|
+
{"at":"2026-11-13T09:14:33.692Z","event":"feishu.ask.answered","details":{"askId":"ask_mwerg4t6_23dihu","key":"group:test","label":"只出设计","custom":false,"allAnswered":true}}
|
|
9
|
+
{"at":"2026-11-13T09:14:33.700Z","event":"feishu.ask.partial","details":{"askId":"ask_mwerg4te_6l3ddb","key":"group:test","questionIndex":0,"label":"推进开发","custom":false,"answered":1}}
|
|
10
|
+
{"at":"2026-11-13T09:14:33.700Z","event":"feishu.ask.answered","details":{"askId":"ask_mwerg4te_6l3ddb","key":"group:test","label":"全量推进","custom":false,"allAnswered":true}}
|
|
11
|
+
{"at":"2026-11-13T09:14:34.219Z","event":"feishu.cardkit.started","details":{"cardId":"card-1","messageId":"outgoing-1","mode":"reply","printFrequencyMs":50,"printStep":1}}
|
|
12
|
+
{"at":"2026-11-13T09:14:34.423Z","event":"feishu.cardkit.closed","details":{"cardId":"card-1","length":0,"finalStatus":"done","headerTitle":"回复","hasStopButton":false}}
|
|
13
|
+
{"at":"2026-11-13T09:14:34.742Z","event":"feishu.gateway.lock_acquired","details":{"pid":2570,"cwd":"/tmp/ws","force":false}}
|
|
14
|
+
{"at":"2026-11-13T09:14:34.746Z","event":"feishu.gateway.lock_acquired","details":{"pid":2570,"cwd":"/tmp/ws","force":false}}
|
|
15
|
+
{"at":"2026-11-13T09:14:34.749Z","event":"feishu.gateway.lock_released","details":{"pid":2570}}
|
|
16
|
+
{"at":"2026-11-13T09:14:34.755Z","event":"feishu.gateway.lock_released","details":{"pid":2570}}
|
|
17
|
+
{"at":"2026-11-13T09:14:34.760Z","event":"feishu.gateway.lock_acquired","details":{"pid":2570,"cwd":"/tmp/ws","force":false}}
|
|
18
|
+
{"at":"2026-11-13T09:14:34.761Z","event":"feishu.gateway.lock_busy","details":{"ownerPid":2570,"heartbeatAt":"2026-11-13T09:14:34.758Z","currentPid":2570}}
|
|
19
|
+
{"at":"2026-11-13T09:14:34.763Z","event":"feishu.gateway.lock_released","details":{"pid":2570}}
|
|
20
|
+
{"at":"2026-11-13T09:14:34.768Z","event":"feishu.gateway.lock_acquired","details":{"pid":2570,"cwd":"/tmp/ws","force":false}}
|
|
21
|
+
{"at":"2026-11-13T09:14:34.770Z","event":"feishu.gateway.lock_released","details":{"pid":2570}}
|
|
22
|
+
{"at":"2026-11-13T09:14:35.357Z","event":"feishu.image.upload.error","details":{"filePath":"/tmp/bridge-img-L3CQcn/a.png","attempt":1,"error":"99991672 no permission"}}
|
|
23
|
+
{"at":"2026-11-13T09:14:35.363Z","event":"feishu.image.upload.error","details":{"filePath":"/tmp/bridge-img-pvSsAa/a.png","attempt":1,"error":"write EPIPE"}}
|
|
24
|
+
{"at":"2026-11-13T09:14:35.666Z","event":"feishu.image.upload.error","details":{"filePath":"/tmp/bridge-img-hplBcr/a.png","attempt":1,"error":"99991672 no permission"}}
|
|
25
|
+
{"at":"2026-11-13T09:14:35.675Z","event":"feishu.image.upload.error","details":{"filePath":"/tmp/bridge-img-o2AD5h/a.png","attempt":1,"error":"boom"}}
|
|
26
|
+
{"at":"2026-11-13T09:14:35.757Z","event":"feishu.reply_card.local_images","details":{"count":1,"total":1}}
|
|
27
|
+
{"at":"2026-11-13T09:14:35.757Z","event":"feishu.reply_card.local_image_sent","details":{"path":"/tmp/bridge-img-WS7dg7/a.png","messageId":"om_fake_image"}}
|
|
28
|
+
{"at":"2026-11-13T09:14:35.759Z","event":"feishu.reply_card.local_images","details":{"count":1,"total":1}}
|
|
29
|
+
{"at":"2026-11-13T09:14:35.759Z","event":"feishu.reply_card.local_image_sent","details":{"path":"/tmp/bridge-img-GQ8GG5/a.png","messageId":"om_fake_image"}}
|
|
30
|
+
{"at":"2026-11-13T09:14:35.760Z","event":"feishu.reply_card.local_image_dropped","details":{"status":"failed","count":1,"paths":["/tmp/bridge-img-xNxSiU/a.png"]}}
|
|
31
|
+
{"at":"2026-11-13T09:14:36.009Z","event":"feishu.ask.card_creating","details":{"askId":"ask_mwerg6ll_wbwbki","key":"p2p:ou_test","historyCount":0}}
|
|
32
|
+
{"at":"2026-11-13T09:14:36.014Z","event":"feishu.ask.settled","details":{"key":"p2p:ou_test","timedOut":false,"canceled":true,"answered":0,"total":1}}
|
|
33
|
+
{"at":"2026-11-13T09:14:36.014Z","event":"feishu.ask.card_creating","details":{"askId":"ask_mwerg6lq_bq3j42","key":"p2p:ou_test","historyCount":0}}
|
|
34
|
+
{"at":"2026-11-13T09:14:36.018Z","event":"feishu.ask.settled","details":{"key":"p2p:ou_test","timedOut":false,"canceled":true,"answered":0,"total":1}}
|
|
35
|
+
{"at":"2026-11-13T09:14:37.647Z","event":"feishu.live_cards.finished_on_exit","details":{"total":1,"ok":1,"note":"服务重启中,本轮回复已中断,请重发这条消息"}}
|
|
36
|
+
{"at":"2026-11-13T09:14:37.650Z","event":"feishu.live_cards.finished_on_exit","details":{"total":1,"ok":1,"note":"x"}}
|
|
37
|
+
{"at":"2026-11-13T09:14:37.712Z","event":"feishu.live_cards.finish_error","details":{"error":"卡片收尾超时(60ms)"}}
|
|
38
|
+
{"at":"2026-11-13T09:14:37.713Z","event":"feishu.live_cards.finished_on_exit","details":{"total":2,"ok":1,"note":"y"}}
|
|
39
|
+
{"at":"2026-11-13T09:14:37.714Z","event":"feishu.live_cards.finish_error","details":{"error":"飞书接口挂了"}}
|
|
40
|
+
{"at":"2026-11-13T09:14:37.714Z","event":"feishu.live_cards.finished_on_exit","details":{"total":2,"ok":1,"note":"z"}}
|
|
41
|
+
{"at":"2026-11-13T09:14:37.717Z","event":"feishu.live_cards.finished_on_exit","details":{"total":1,"ok":1,"note":"服务重启中,本轮回复已中断,请重发这条消息"}}
|
|
42
|
+
{"at":"2026-11-13T09:14:37.769Z","event":"feishu.live_cards.finish_error","details":{"error":"飞书接口挂了"}}
|
|
43
|
+
{"at":"2026-11-13T09:14:37.769Z","event":"feishu.live_cards.finished_on_exit","details":{"total":1,"ok":0,"note":"服务重启中,本轮回复已中断,请重发这条消息"}}
|
|
44
|
+
{"at":"2026-11-13T09:14:37.872Z","event":"feishu.live_cards.finished_on_exit","details":{"total":1,"ok":1,"note":"自定义说明"}}
|
|
45
|
+
{"at":"2026-11-13T09:14:38.409Z","event":"feishu.cardkit.started","details":{"cardId":"card-1","messageId":"out-1","mode":"reply","printFrequencyMs":50,"printStep":1}}
|
|
46
|
+
{"at":"2026-11-13T09:14:38.614Z","event":"feishu.cardkit.closed","details":{"cardId":"card-1","length":0,"finalStatus":"done","headerTitle":"回复","hasStopButton":false}}
|
|
47
|
+
{"at":"2026-11-13T09:14:38.620Z","event":"feishu.cardkit.started","details":{"cardId":"card-1","messageId":"out-1","mode":"reply","printFrequencyMs":50,"printStep":1}}
|
|
48
|
+
{"at":"2026-11-13T09:14:38.823Z","event":"feishu.cardkit.closed","details":{"cardId":"card-1","length":0,"finalStatus":"done","headerTitle":"回复","hasStopButton":false}}
|
|
49
|
+
{"at":"2026-11-13T09:14:38.828Z","event":"feishu.cardkit.started","details":{"cardId":"card-1","messageId":"out-1","mode":"reply","printFrequencyMs":50,"printStep":1}}
|
|
50
|
+
{"at":"2026-11-13T09:14:39.033Z","event":"feishu.cardkit.closed","details":{"cardId":"card-1","length":0,"finalStatus":"done","headerTitle":"回复","hasStopButton":false}}
|
|
51
|
+
{"at":"2026-11-13T09:14:39.035Z","event":"feishu.progress.tool_start","details":{"key":"p2p:u1","runId":"7f39fff3-f247-476b-ac1d-8a86595ea4a3","toolCallId":"t1","toolName":"read","steps":1}}
|
|
52
|
+
{"at":"2026-11-13T09:14:39.035Z","event":"feishu.progress.tool_start","details":{"key":"p2p:u1","runId":"7f39fff3-f247-476b-ac1d-8a86595ea4a3","toolCallId":"t2","toolName":"bash","steps":2}}
|
|
53
|
+
{"at":"2026-11-13T09:14:39.036Z","event":"feishu.progress.abort_all","details":{"count":1,"total":2}}
|
|
54
|
+
{"at":"2026-11-13T09:14:39.036Z","event":"feishu.reply_card.progress_aborted","details":{"key":"p2p:u1","runId":"7f39fff3-f247-476b-ac1d-8a86595ea4a3","status":"stopped","steps":2}}
|
|
55
|
+
{"at":"2026-11-13T09:14:39.039Z","event":"feishu.cardkit.started","details":{"cardId":"card-1","messageId":"out-1","mode":"reply","printFrequencyMs":50,"printStep":1}}
|
|
56
|
+
{"at":"2026-11-13T09:14:39.241Z","event":"feishu.cardkit.full_update_error","details":{"status":200,"code":200860,"msg":"card size exceed","bodyBytes":15,"progressBytes":26}}
|
|
57
|
+
{"at":"2026-11-13T09:14:39.242Z","event":"feishu.cardkit.oversize_fallback_sent","details":{"messageId":"out-1","rawBytes":26,"trimmedBytes":26,"finalStatus":"done"}}
|
|
58
|
+
{"at":"2026-11-13T09:14:39.244Z","event":"feishu.cardkit.started","details":{"cardId":"card-1","messageId":"out-1","mode":"reply","printFrequencyMs":50,"printStep":1}}
|
|
59
|
+
{"at":"2026-11-13T09:14:39.447Z","event":"feishu.cardkit.closed","details":{"cardId":"card-1","length":2,"finalStatus":"done","headerTitle":"回复","hasStopButton":false}}
|
|
60
|
+
{"at":"2026-11-13T09:14:39.449Z","event":"feishu.cardkit.started","details":{"cardId":"card-1","messageId":"out-1","mode":"reply","printFrequencyMs":50,"printStep":1}}
|
|
61
|
+
{"at":"2026-11-13T09:14:39.650Z","event":"feishu.cardkit.full_update_error","details":{"status":200,"code":200860,"msg":"card size exceed","bodyBytes":6,"progressBytes":0}}
|
|
62
|
+
{"at":"2026-11-13T09:14:39.990Z","event":"feishu.progress.abort_all","details":{"count":1,"total":2}}
|
|
63
|
+
{"at":"2026-11-13T09:14:40.042Z","event":"feishu.pi.session_hot_reload","details":{"key":"p2p:ou_test","sessionFile":"/tmp/feishu-pi-test-IuqQ3b/session_001.jsonl","recordedMtime":1794561280041.1646,"currentMtime":1794561282041,"recordedSize":34,"currentSize":84}}
|
|
64
|
+
{"at":"2026-11-13T09:14:40.594Z","event":"feishu.reply_card.started_static","details":{"key":"p2p:user","runId":"89a7cc9d-2e86-44da-af4b-271efeac58bd","cardMessageId":"m1"}}
|
|
65
|
+
{"at":"2026-11-13T09:14:40.595Z","event":"feishu.reply_card.paused","details":{"key":"p2p:user","runId":"89a7cc9d-2e86-44da-af4b-271efeac58bd","segmentStart":5,"bodyLength":5}}
|
|
66
|
+
{"at":"2026-11-13T09:14:40.596Z","event":"feishu.reply_card.started_static","details":{"key":"p2p:user","runId":"89a7cc9d-2e86-44da-af4b-271efeac58bd","cardMessageId":"m2"}}
|
|
67
|
+
{"at":"2026-11-13T09:14:40.597Z","event":"feishu.reply_card.started_static","details":{"key":"p2p:user","runId":"44776c8c-ce34-41ee-bda0-84a4fded7113","cardMessageId":"m1"}}
|
|
68
|
+
{"at":"2026-11-13T09:14:40.597Z","event":"feishu.reply_card.paused","details":{"key":"p2p:user","runId":"44776c8c-ce34-41ee-bda0-84a4fded7113","segmentStart":4,"bodyLength":4}}
|
|
69
|
+
{"at":"2026-11-13T09:14:40.598Z","event":"feishu.reply_card.started_static","details":{"key":"p2p:user","runId":"e1958838-0a70-4b82-8ee9-370dab0e1791","cardMessageId":"m1"}}
|
|
70
|
+
{"at":"2026-11-13T09:14:40.599Z","event":"feishu.reply_card.paused","details":{"key":"p2p:user","runId":"e1958838-0a70-4b82-8ee9-370dab0e1791","segmentStart":3,"bodyLength":3}}
|
|
71
|
+
{"at":"2026-11-13T09:14:40.599Z","event":"feishu.reply_card.started_static","details":{"key":"p2p:user","runId":"e1958838-0a70-4b82-8ee9-370dab0e1791","cardMessageId":"m2"}}
|
|
72
|
+
{"at":"2026-11-13T09:14:40.599Z","event":"feishu.reply_card.segment_offset_mismatch","details":{"key":"p2p:user","runId":"e1958838-0a70-4b82-8ee9-370dab0e1791","segmentStart":3,"segmentDeltaChars":3,"finalLength":3}}
|
|
73
|
+
{"at":"2026-11-13T09:14:40.602Z","event":"feishu.reply_card.started_static","details":{"key":"p2p:user","runId":"e4dddff4-dfac-4d2d-ba14-46a04e7a4112","cardMessageId":"m1"}}
|
|
74
|
+
{"at":"2026-11-13T09:14:40.602Z","event":"feishu.reply_card.paused","details":{"key":"p2p:user","runId":"e4dddff4-dfac-4d2d-ba14-46a04e7a4112","segmentStart":2,"bodyLength":2}}
|
|
75
|
+
{"at":"2026-11-13T09:14:40.602Z","event":"feishu.reply_card.started_static","details":{"key":"p2p:user","runId":"e4dddff4-dfac-4d2d-ba14-46a04e7a4112","cardMessageId":"m2"}}
|
|
76
|
+
{"at":"2026-11-13T09:14:41.203Z","event":"feishu.restart.ack_sent","details":{"ok":true,"cardMessageId":"om_card_1"}}
|
|
77
|
+
{"at":"2026-11-13T09:14:41.205Z","event":"feishu.restart.ack_sent","details":{"ok":false,"cardMessageId":"om_card_1"}}
|
|
78
|
+
{"at":"2026-11-13T09:14:41.869Z","event":"feishu.user_name.missing","details":{"openId":"ou_empty","code":0}}
|
|
79
|
+
{"at":"2026-11-13T09:14:41.871Z","event":"feishu.user_name.missing","details":{"openId":"ou_outside","code":41050,"msg":"no user authority error"}}
|
|
80
|
+
{"at":"2026-11-13T09:14:41.904Z","event":"feishu.user_name.error","details":{"openId":"ou_slow","error":"tenant token 超时"}}
|
|
81
|
+
{"at":"2026-11-13T09:14:41.909Z","event":"feishu.user_name.missing","details":{"openId":"ou_miss","code":0}}
|
package/.pi/feishu/state.pi.json
CHANGED
package/package.json
CHANGED
package/src/adapters/pi/index.ts
CHANGED
|
@@ -987,14 +987,17 @@ function listProcesses() {
|
|
|
987
987
|
}
|
|
988
988
|
|
|
989
989
|
function looksLikeFeishuDaemon(command: string, extensionPath: string) {
|
|
990
|
-
// 启动命令经 quoteShell 处理,每个参数单独加引号('--mode' 'rpc'
|
|
990
|
+
// 启动命令经 quoteShell 处理,每个参数单独加引号('--mode' 'rpc'),
|
|
991
991
|
// 直接匹配 "--mode rpc" 永远失败 —— 那样残留的 daemon 空壳(bash + tail 喂 stdin)
|
|
992
992
|
// 永远不会被 reap 掉。所以先去引号再匹配。
|
|
993
|
+
//
|
|
994
|
+
// 2026-11-13 起 daemon 不再带 --no-* 开关(与 TUI 等同),判据改为三件套:
|
|
995
|
+
// rpc 模式 + 给 stdin 续命的 `tail -f /dev/null` + `-e` 紧跟本实例入口。
|
|
996
|
+
// 只「引用了启动命令」的脚本 / heredoc 缺那只 tail,仍然认不出来。
|
|
993
997
|
const normalized = command.replace(/'/g, "");
|
|
994
|
-
const
|
|
995
|
-
&& normalized.includes("
|
|
996
|
-
|
|
997
|
-
if (!hasDaemonFlags) return false;
|
|
998
|
+
const hasDaemonShape = normalized.includes("--mode rpc")
|
|
999
|
+
&& normalized.includes("tail -f /dev/null");
|
|
1000
|
+
if (!hasDaemonShape) return false;
|
|
998
1001
|
if (!extensionPath) return false;
|
|
999
1002
|
// 入口路径必须**紧跟在 `-e` 后面**(daemon 的启动形状),而不是「命令行里提到过这个路径」:
|
|
1000
1003
|
// 否则一段只是引用了启动命令的脚本 / heredoc(测试探针、重启脚本)也会被当成 daemon 回收。
|
|
@@ -20,14 +20,12 @@ export function quoteShell(value: string): string {
|
|
|
20
20
|
|
|
21
21
|
export function daemonSpec(extensionPath: string): DaemonSpec {
|
|
22
22
|
const piBin = process.env.PI_BIN || "pi";
|
|
23
|
+
// 2026-11-13 用户口径:「飞书进程应该与 pi 的 TUI 等同」。
|
|
24
|
+
// 以前这里是 rpc + 六个 --no-*(关扩展 / 技能 / 提示模板 / 主题 / 上下文文件 / 内置工具),
|
|
25
|
+
// 结果桥接侧与 TUI 能力面不一致:拿不到 skills、AGENTS.md 注入变少、内置工具也少。
|
|
26
|
+
// 现在只保留 rpc 协议本身与显式 -e(显式入口不依赖扩展自动发现,settings 写坏也起得来)。
|
|
23
27
|
const args = [
|
|
24
28
|
"--mode", "rpc",
|
|
25
|
-
"--no-extensions",
|
|
26
|
-
"--no-skills",
|
|
27
|
-
"--no-prompt-templates",
|
|
28
|
-
"--no-themes",
|
|
29
|
-
"--no-context-files",
|
|
30
|
-
"--no-builtin-tools",
|
|
31
29
|
"-e", extensionPath,
|
|
32
30
|
];
|
|
33
31
|
return { extensionPath, piBin, args };
|