cc-viewer 1.6.272 → 1.6.274

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.
Files changed (136) hide show
  1. package/cli.js +44 -43
  2. package/concepts/ar/GlobalSettings.md +2 -2
  3. package/concepts/ar/MainAgent.md +1 -1
  4. package/concepts/ar/ProxySwitch.md +1 -1
  5. package/concepts/ar/UltraPlan.md +2 -2
  6. package/concepts/da/GlobalSettings.md +2 -2
  7. package/concepts/da/MainAgent.md +1 -1
  8. package/concepts/da/ProxySwitch.md +1 -1
  9. package/concepts/da/UltraPlan.md +2 -2
  10. package/concepts/de/GlobalSettings.md +2 -2
  11. package/concepts/de/MainAgent.md +1 -1
  12. package/concepts/de/ProxySwitch.md +1 -1
  13. package/concepts/de/UltraPlan.md +2 -2
  14. package/concepts/en/GlobalSettings.md +2 -2
  15. package/concepts/en/MainAgent.md +1 -1
  16. package/concepts/en/ProxySwitch.md +1 -1
  17. package/concepts/en/UltraPlan.md +2 -2
  18. package/concepts/es/GlobalSettings.md +2 -2
  19. package/concepts/es/MainAgent.md +1 -1
  20. package/concepts/es/ProxySwitch.md +1 -1
  21. package/concepts/es/UltraPlan.md +2 -2
  22. package/concepts/fr/GlobalSettings.md +2 -2
  23. package/concepts/fr/MainAgent.md +1 -1
  24. package/concepts/fr/ProxySwitch.md +1 -1
  25. package/concepts/fr/UltraPlan.md +2 -2
  26. package/concepts/it/GlobalSettings.md +2 -2
  27. package/concepts/it/MainAgent.md +1 -1
  28. package/concepts/it/ProxySwitch.md +1 -1
  29. package/concepts/it/UltraPlan.md +2 -2
  30. package/concepts/ja/GlobalSettings.md +2 -2
  31. package/concepts/ja/MainAgent.md +1 -1
  32. package/concepts/ja/ProxySwitch.md +1 -1
  33. package/concepts/ja/UltraPlan.md +2 -2
  34. package/concepts/ko/GlobalSettings.md +2 -2
  35. package/concepts/ko/MainAgent.md +1 -1
  36. package/concepts/ko/ProxySwitch.md +1 -1
  37. package/concepts/ko/UltraPlan.md +2 -2
  38. package/concepts/no/GlobalSettings.md +2 -2
  39. package/concepts/no/MainAgent.md +1 -1
  40. package/concepts/no/ProxySwitch.md +1 -1
  41. package/concepts/no/UltraPlan.md +2 -2
  42. package/concepts/pl/GlobalSettings.md +2 -2
  43. package/concepts/pl/MainAgent.md +1 -1
  44. package/concepts/pl/ProxySwitch.md +1 -1
  45. package/concepts/pl/UltraPlan.md +2 -2
  46. package/concepts/pt-BR/GlobalSettings.md +2 -2
  47. package/concepts/pt-BR/MainAgent.md +1 -1
  48. package/concepts/pt-BR/ProxySwitch.md +1 -1
  49. package/concepts/pt-BR/UltraPlan.md +2 -2
  50. package/concepts/ru/GlobalSettings.md +2 -2
  51. package/concepts/ru/MainAgent.md +1 -1
  52. package/concepts/ru/ProxySwitch.md +1 -1
  53. package/concepts/ru/UltraPlan.md +2 -2
  54. package/concepts/th/GlobalSettings.md +2 -2
  55. package/concepts/th/MainAgent.md +1 -1
  56. package/concepts/th/ProxySwitch.md +1 -1
  57. package/concepts/th/UltraPlan.md +2 -2
  58. package/concepts/tr/GlobalSettings.md +2 -2
  59. package/concepts/tr/MainAgent.md +1 -1
  60. package/concepts/tr/ProxySwitch.md +1 -1
  61. package/concepts/tr/UltraPlan.md +2 -2
  62. package/concepts/uk/GlobalSettings.md +2 -2
  63. package/concepts/uk/MainAgent.md +1 -1
  64. package/concepts/uk/ProxySwitch.md +1 -1
  65. package/concepts/uk/UltraPlan.md +2 -2
  66. package/concepts/zh/GlobalSettings.md +2 -2
  67. package/concepts/zh/MainAgent.md +1 -1
  68. package/concepts/zh/ProxySwitch.md +1 -1
  69. package/concepts/zh/UltraPlan.md +2 -2
  70. package/concepts/zh-TW/GlobalSettings.md +2 -2
  71. package/concepts/zh-TW/MainAgent.md +1 -1
  72. package/concepts/zh-TW/ProxySwitch.md +1 -1
  73. package/concepts/zh-TW/UltraPlan.md +2 -2
  74. package/dist/assets/App-BediOgt6.js +1 -0
  75. package/dist/assets/{MdxEditorPanel-B9-2mx30.js → MdxEditorPanel-BAnfnKiF.js} +1 -1
  76. package/dist/assets/{Mobile-BzYULksa.js → Mobile-C_nqfEXb.js} +1 -1
  77. package/dist/assets/{index-Yhf-Rgbr.js → index-CuE3VwXB.js} +2 -2
  78. package/dist/assets/seqResourceLoaders-CgNKpehN.js +2 -0
  79. package/dist/assets/{seqResourceLoaders-CaZOVtSc.css → seqResourceLoaders-Dd_x1M9-.css} +2 -2
  80. package/dist/index.html +1 -1
  81. package/findcc.js +26 -7
  82. package/interceptor.js +11 -1061
  83. package/package.json +6 -12
  84. package/plugins/.gitkeep +0 -0
  85. package/server/_paths.js +35 -0
  86. package/server/interceptor.js +1057 -0
  87. package/{lib → server/lib}/approval-modal-prefs.js +2 -1
  88. package/{lib → server/lib}/ask-store.js +51 -10
  89. package/server/lib/cli-inject.js +81 -0
  90. package/{lib → server/lib}/context-watcher.js +41 -1
  91. package/{lib → server/lib}/delta-reconstructor.js +1 -0
  92. package/{lib → server/lib}/enrich-plan-input.js +2 -2
  93. package/{lib → server/lib}/ensure-hooks.js +76 -12
  94. package/{lib → server/lib}/extract-plugin-name.mjs +1 -1
  95. package/{lib → server/lib}/file-access-policy.js +2 -2
  96. package/{lib → server/lib}/jsonl-archive.js +1 -1
  97. package/{lib → server/lib}/plugin-loader.js +5 -4
  98. package/{lib → server/lib}/plugin-manager.js +1 -1
  99. package/{lib → server/lib}/sdk-manager.js +1 -1
  100. package/{lib → server/lib}/session-transcript-reader.js +1 -1
  101. package/{lib → server/lib}/terminal-env.js +1 -1
  102. package/{lib → server/lib}/tools-xml-formatter.js +2 -1
  103. package/{lib → server/lib}/updater.js +3 -2
  104. package/{lib → server/lib}/voice-pack-events.js +4 -3
  105. package/{lib → server/lib}/voice-pack-manager.js +4 -8
  106. package/{proxy.js → server/proxy.js} +1 -1
  107. package/{pty-manager.js → server/pty-manager.js} +19 -5
  108. package/{scratch-pty-manager.js → server/scratch-pty-manager.js} +16 -4
  109. package/server/server.js +5467 -0
  110. package/{workspace-registry.js → server/workspace-registry.js} +2 -2
  111. package/server.js +5 -5459
  112. package/dist/assets/App-KL1CbE6B.js +0 -1
  113. package/dist/assets/seqResourceLoaders-B2bHcUzO.js +0 -2
  114. /package/{i18n.js → server/i18n.js} +0 -0
  115. /package/{lib → server/lib}/ask-bridge.js +0 -0
  116. /package/{lib → server/lib}/ask-constants.js +0 -0
  117. /package/{lib → server/lib}/ccv-editor.js +0 -0
  118. /package/{lib → server/lib}/claude-md-discovery.js +0 -0
  119. /package/{lib → server/lib}/file-api.js +0 -0
  120. /package/{lib → server/lib}/git-diff.js +0 -0
  121. /package/{lib → server/lib}/interceptor-core.js +0 -0
  122. /package/{lib → server/lib}/kv-cache-analyzer.js +0 -0
  123. /package/{lib → server/lib}/log-management.js +0 -0
  124. /package/{lib → server/lib}/log-stream.js +0 -0
  125. /package/{lib → server/lib}/log-watcher.js +0 -0
  126. /package/{lib → server/lib}/perm-bridge.js +0 -0
  127. /package/{lib → server/lib}/proxy-env.js +0 -0
  128. /package/{lib → server/lib}/proxy-errors.js +0 -0
  129. /package/{lib → server/lib}/sdk-adapter.js +0 -0
  130. /package/{lib → server/lib}/skills-api.js +0 -0
  131. /package/{lib → server/lib}/sse-backpressure.js +0 -0
  132. /package/{lib → server/lib}/stats-worker.js +0 -0
  133. /package/{lib → server/lib}/team-runtime.js +0 -0
  134. /package/{lib → server/lib}/turn-end-bridge.js +0 -0
  135. /package/{lib → server/lib}/user-profile.js +0 -0
  136. /package/{lib → server/lib}/zip-safety.js +0 -0
@@ -6,7 +6,7 @@ MainAgent は、Claude Code が非 agent team 状態における主幹リクエ
6
6
 
7
7
  ## 識別方法
8
8
 
9
- cc-viewer では、MainAgent は `req.mainAgent === true` で識別され、`interceptor.js` がリクエストキャプチャ時に自動的にマーキングします。
9
+ cc-viewer では、MainAgent は `req.mainAgent === true` で識別され、`server/interceptor.js` がリクエストキャプチャ時に自動的にマーキングします。
10
10
 
11
11
  判定条件(すべて満たす):
12
12
  - リクエストボディに `system` フィールド(system prompt)が含まれる
@@ -18,7 +18,7 @@ Hot-Switch Proxy lets you dynamically redirect API requests to a different endpo
18
18
 
19
19
  ## How It Works
20
20
 
21
- When a proxy is active, `interceptor.js` performs the following before each API request:
21
+ When a proxy is active, `server/interceptor.js` performs the following before each API request:
22
22
 
23
23
  1. **URL Rewrite** — Replaces the request origin with the proxy's Base URL
24
24
  2. **Auth Replace** — Replaces `x-api-key` or `Authorization` header with the proxy's API Key
@@ -63,7 +63,7 @@ Below are the two raw prompt templates UltraPlan actually sends to Claude Code (
63
63
  ### Code Expert (codeExpert)
64
64
 
65
65
  <textarea readonly><system-reminder>
66
- [SCOPED INSTRUCTION] The following instructions apply only to the next 1–3 interactions. Once the task is complete, these instructions should gradually decrease in priority and no longer affect subsequent interactions.
66
+ [SCOPED INSTRUCTION] The following instructions apply only to the next 1–3 interactions. Once the task is complete, these instructions should gradually decrease in priority and no longer affect subsequent interactions. You should be adept at utilizing tools such as `AskUserQuestion`, `EnterPlanMode`, and `TeamCreate`, rather than relying solely on plain text processing.
67
67
 
68
68
  Pre-requisite: Use `AskUserQuestion` to clarify user intent whenever the request is ambiguous (target element, interaction style, scope of platforms, etc.). Skip only if the intent is unambiguous.
69
69
 
@@ -120,7 +120,7 @@ Workflow:
120
120
  ### Research Expert (researchExpert)
121
121
 
122
122
  <textarea readonly><system-reminder>
123
- [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.
123
+ [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.You should be adept at utilizing tools such as `AskUserQuestion`, `EnterPlanMode`, `WebSearch` and `TeamCreate`, rather than relying solely on plain text processing.
124
124
 
125
125
  Pre-requisite: Use `AskUserQuestion` to clarify the research scope, target audience, and deliverable format whenever the user's intent is ambiguous. Skip only if the intent is unambiguous.
126
126
 
@@ -122,12 +122,12 @@ CC-Viewer 自动注册到 `~/.claude/settings.json` 的 `hooks.PreToolUse` 中
122
122
 
123
123
  ### 1. AskUserQuestion 桥接
124
124
  - **匹配器**: `"AskUserQuestion"`
125
- - **命令**: `node <安装目录>/lib/ask-bridge.js`
125
+ - **命令**: `node <安装目录>/server/lib/ask-bridge.js`
126
126
  - **作用**: 将 Claude 的问题转发到 Web UI,等待用户回答
127
127
 
128
128
  ### 2. 权限审批桥接
129
129
  - **匹配器**: `""` (空 = 匹配所有工具)
130
- - **命令**: `node <安装目录>/lib/perm-bridge.js`
130
+ - **命令**: `node <安装目录>/server/lib/perm-bridge.js`
131
131
  - **作用**: 仅 `Bash`/`Edit`/`Write`/`NotebookEdit` 需要 Web UI 审批,其余自动放行
132
132
 
133
133
  ## 七、Shell 集成
@@ -6,7 +6,7 @@ MainAgent는 Claude Code가 비 agent team 상태에서의 주간 요청 체인
6
6
 
7
7
  ## 식별 방법
8
8
 
9
- cc-viewer에서 MainAgent는 `req.mainAgent === true`로 식별되며, `interceptor.js`가 요청 캡처 시 자동으로 마킹합니다.
9
+ cc-viewer에서 MainAgent는 `req.mainAgent === true`로 식별되며, `server/interceptor.js`가 요청 캡처 시 자동으로 마킹합니다.
10
10
 
11
11
  판정 조건 (모두 충족):
12
12
  - 요청 본문에 `system` 필드 (system prompt) 포함
@@ -18,7 +18,7 @@ Hot-Switch Proxy lets you dynamically redirect API requests to a different endpo
18
18
 
19
19
  ## How It Works
20
20
 
21
- When a proxy is active, `interceptor.js` performs the following before each API request:
21
+ When a proxy is active, `server/interceptor.js` performs the following before each API request:
22
22
 
23
23
  1. **URL Rewrite** — Replaces the request origin with the proxy's Base URL
24
24
  2. **Auth Replace** — Replaces `x-api-key` or `Authorization` header with the proxy's API Key
@@ -63,7 +63,7 @@ Below are the two raw prompt templates UltraPlan actually sends to Claude Code (
63
63
  ### Code Expert (codeExpert)
64
64
 
65
65
  <textarea readonly><system-reminder>
66
- [SCOPED INSTRUCTION] The following instructions apply only to the next 1–3 interactions. Once the task is complete, these instructions should gradually decrease in priority and no longer affect subsequent interactions.
66
+ [SCOPED INSTRUCTION] The following instructions apply only to the next 1–3 interactions. Once the task is complete, these instructions should gradually decrease in priority and no longer affect subsequent interactions. You should be adept at utilizing tools such as `AskUserQuestion`, `EnterPlanMode`, and `TeamCreate`, rather than relying solely on plain text processing.
67
67
 
68
68
  Pre-requisite: Use `AskUserQuestion` to clarify user intent whenever the request is ambiguous (target element, interaction style, scope of platforms, etc.). Skip only if the intent is unambiguous.
69
69
 
@@ -120,7 +120,7 @@ Workflow:
120
120
  ### Research Expert (researchExpert)
121
121
 
122
122
  <textarea readonly><system-reminder>
123
- [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.
123
+ [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.You should be adept at utilizing tools such as `AskUserQuestion`, `EnterPlanMode`, `WebSearch` and `TeamCreate`, rather than relying solely on plain text processing.
124
124
 
125
125
  Pre-requisite: Use `AskUserQuestion` to clarify the research scope, target audience, and deliverable format whenever the user's intent is ambiguous. Skip only if the intent is unambiguous.
126
126
 
@@ -122,12 +122,12 @@ CC-Viewer 自动注册到 `~/.claude/settings.json` 的 `hooks.PreToolUse` 中
122
122
 
123
123
  ### 1. AskUserQuestion 桥接
124
124
  - **匹配器**: `"AskUserQuestion"`
125
- - **命令**: `node <安装目录>/lib/ask-bridge.js`
125
+ - **命令**: `node <安装目录>/server/lib/ask-bridge.js`
126
126
  - **作用**: 将 Claude 的问题转发到 Web UI,等待用户回答
127
127
 
128
128
  ### 2. 权限审批桥接
129
129
  - **匹配器**: `""` (空 = 匹配所有工具)
130
- - **命令**: `node <安装目录>/lib/perm-bridge.js`
130
+ - **命令**: `node <安装目录>/server/lib/perm-bridge.js`
131
131
  - **作用**: 仅 `Bash`/`Edit`/`Write`/`NotebookEdit` 需要 Web UI 审批,其余自动放行
132
132
 
133
133
  ## 七、Shell 集成
@@ -6,7 +6,7 @@ MainAgent er hovedforespørselskjeden i Claude Code når den ikke er i agent tea
6
6
 
7
7
  ## Identifisering
8
8
 
9
- I cc-viewer identifiseres MainAgent gjennom `req.mainAgent === true`, som automatisk settes av `interceptor.js` ved forespørselsfangst.
9
+ I cc-viewer identifiseres MainAgent gjennom `req.mainAgent === true`, som automatisk settes av `server/interceptor.js` ved forespørselsfangst.
10
10
 
11
11
  Bestemmelsesvilkår (alle må oppfylles):
12
12
  - Forespørselskroppen inneholder `system`-felt (system prompt)
@@ -18,7 +18,7 @@ Hot-Switch Proxy lets you dynamically redirect API requests to a different endpo
18
18
 
19
19
  ## How It Works
20
20
 
21
- When a proxy is active, `interceptor.js` performs the following before each API request:
21
+ When a proxy is active, `server/interceptor.js` performs the following before each API request:
22
22
 
23
23
  1. **URL Rewrite** — Replaces the request origin with the proxy's Base URL
24
24
  2. **Auth Replace** — Replaces `x-api-key` or `Authorization` header with the proxy's API Key
@@ -63,7 +63,7 @@ Below are the two raw prompt templates UltraPlan actually sends to Claude Code (
63
63
  ### Code Expert (codeExpert)
64
64
 
65
65
  <textarea readonly><system-reminder>
66
- [SCOPED INSTRUCTION] The following instructions apply only to the next 1–3 interactions. Once the task is complete, these instructions should gradually decrease in priority and no longer affect subsequent interactions.
66
+ [SCOPED INSTRUCTION] The following instructions apply only to the next 1–3 interactions. Once the task is complete, these instructions should gradually decrease in priority and no longer affect subsequent interactions. You should be adept at utilizing tools such as `AskUserQuestion`, `EnterPlanMode`, and `TeamCreate`, rather than relying solely on plain text processing.
67
67
 
68
68
  Pre-requisite: Use `AskUserQuestion` to clarify user intent whenever the request is ambiguous (target element, interaction style, scope of platforms, etc.). Skip only if the intent is unambiguous.
69
69
 
@@ -120,7 +120,7 @@ Workflow:
120
120
  ### Research Expert (researchExpert)
121
121
 
122
122
  <textarea readonly><system-reminder>
123
- [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.
123
+ [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.You should be adept at utilizing tools such as `AskUserQuestion`, `EnterPlanMode`, `WebSearch` and `TeamCreate`, rather than relying solely on plain text processing.
124
124
 
125
125
  Pre-requisite: Use `AskUserQuestion` to clarify the research scope, target audience, and deliverable format whenever the user's intent is ambiguous. Skip only if the intent is unambiguous.
126
126
 
@@ -122,12 +122,12 @@ CC-Viewer 自动注册到 `~/.claude/settings.json` 的 `hooks.PreToolUse` 中
122
122
 
123
123
  ### 1. AskUserQuestion 桥接
124
124
  - **匹配器**: `"AskUserQuestion"`
125
- - **命令**: `node <安装目录>/lib/ask-bridge.js`
125
+ - **命令**: `node <安装目录>/server/lib/ask-bridge.js`
126
126
  - **作用**: 将 Claude 的问题转发到 Web UI,等待用户回答
127
127
 
128
128
  ### 2. 权限审批桥接
129
129
  - **匹配器**: `""` (空 = 匹配所有工具)
130
- - **命令**: `node <安装目录>/lib/perm-bridge.js`
130
+ - **命令**: `node <安装目录>/server/lib/perm-bridge.js`
131
131
  - **作用**: 仅 `Bash`/`Edit`/`Write`/`NotebookEdit` 需要 Web UI 审批,其余自动放行
132
132
 
133
133
  ## 七、Shell 集成
@@ -6,7 +6,7 @@ MainAgent to główny łańcuch żądań Claude Code w trybie bez agent team. Ka
6
6
 
7
7
  ## Sposób identyfikacji
8
8
 
9
- W cc-viewer MainAgent jest identyfikowany przez `req.mainAgent === true`, automatycznie oznaczany przez `interceptor.js` podczas przechwytywania żądania.
9
+ W cc-viewer MainAgent jest identyfikowany przez `req.mainAgent === true`, automatycznie oznaczany przez `server/interceptor.js` podczas przechwytywania żądania.
10
10
 
11
11
  Warunki kwalifikacji (wszystkie muszą być spełnione):
12
12
  - Treść żądania zawiera pole `system` (system prompt)
@@ -18,7 +18,7 @@ Hot-Switch Proxy lets you dynamically redirect API requests to a different endpo
18
18
 
19
19
  ## How It Works
20
20
 
21
- When a proxy is active, `interceptor.js` performs the following before each API request:
21
+ When a proxy is active, `server/interceptor.js` performs the following before each API request:
22
22
 
23
23
  1. **URL Rewrite** — Replaces the request origin with the proxy's Base URL
24
24
  2. **Auth Replace** — Replaces `x-api-key` or `Authorization` header with the proxy's API Key
@@ -63,7 +63,7 @@ Below are the two raw prompt templates UltraPlan actually sends to Claude Code (
63
63
  ### Code Expert (codeExpert)
64
64
 
65
65
  <textarea readonly><system-reminder>
66
- [SCOPED INSTRUCTION] The following instructions apply only to the next 1–3 interactions. Once the task is complete, these instructions should gradually decrease in priority and no longer affect subsequent interactions.
66
+ [SCOPED INSTRUCTION] The following instructions apply only to the next 1–3 interactions. Once the task is complete, these instructions should gradually decrease in priority and no longer affect subsequent interactions. You should be adept at utilizing tools such as `AskUserQuestion`, `EnterPlanMode`, and `TeamCreate`, rather than relying solely on plain text processing.
67
67
 
68
68
  Pre-requisite: Use `AskUserQuestion` to clarify user intent whenever the request is ambiguous (target element, interaction style, scope of platforms, etc.). Skip only if the intent is unambiguous.
69
69
 
@@ -120,7 +120,7 @@ Workflow:
120
120
  ### Research Expert (researchExpert)
121
121
 
122
122
  <textarea readonly><system-reminder>
123
- [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.
123
+ [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.You should be adept at utilizing tools such as `AskUserQuestion`, `EnterPlanMode`, `WebSearch` and `TeamCreate`, rather than relying solely on plain text processing.
124
124
 
125
125
  Pre-requisite: Use `AskUserQuestion` to clarify the research scope, target audience, and deliverable format whenever the user's intent is ambiguous. Skip only if the intent is unambiguous.
126
126
 
@@ -122,12 +122,12 @@ CC-Viewer 自动注册到 `~/.claude/settings.json` 的 `hooks.PreToolUse` 中
122
122
 
123
123
  ### 1. AskUserQuestion 桥接
124
124
  - **匹配器**: `"AskUserQuestion"`
125
- - **命令**: `node <安装目录>/lib/ask-bridge.js`
125
+ - **命令**: `node <安装目录>/server/lib/ask-bridge.js`
126
126
  - **作用**: 将 Claude 的问题转发到 Web UI,等待用户回答
127
127
 
128
128
  ### 2. 权限审批桥接
129
129
  - **匹配器**: `""` (空 = 匹配所有工具)
130
- - **命令**: `node <安装目录>/lib/perm-bridge.js`
130
+ - **命令**: `node <安装目录>/server/lib/perm-bridge.js`
131
131
  - **作用**: 仅 `Bash`/`Edit`/`Write`/`NotebookEdit` 需要 Web UI 审批,其余自动放行
132
132
 
133
133
  ## 七、Shell 集成
@@ -6,7 +6,7 @@ MainAgent é a cadeia de requisições principal do Claude Code quando não est
6
6
 
7
7
  ## Como Identificar
8
8
 
9
- No cc-viewer, o MainAgent é identificado por `req.mainAgent === true`, marcado automaticamente pelo `interceptor.js` durante a captura da requisição.
9
+ No cc-viewer, o MainAgent é identificado por `req.mainAgent === true`, marcado automaticamente pelo `server/interceptor.js` durante a captura da requisição.
10
10
 
11
11
  Condições de identificação (todas devem ser atendidas):
12
12
  - O corpo da requisição contém o campo `system` (system prompt)
@@ -18,7 +18,7 @@ Hot-Switch Proxy lets you dynamically redirect API requests to a different endpo
18
18
 
19
19
  ## How It Works
20
20
 
21
- When a proxy is active, `interceptor.js` performs the following before each API request:
21
+ When a proxy is active, `server/interceptor.js` performs the following before each API request:
22
22
 
23
23
  1. **URL Rewrite** — Replaces the request origin with the proxy's Base URL
24
24
  2. **Auth Replace** — Replaces `x-api-key` or `Authorization` header with the proxy's API Key
@@ -63,7 +63,7 @@ Below are the two raw prompt templates UltraPlan actually sends to Claude Code (
63
63
  ### Code Expert (codeExpert)
64
64
 
65
65
  <textarea readonly><system-reminder>
66
- [SCOPED INSTRUCTION] The following instructions apply only to the next 1–3 interactions. Once the task is complete, these instructions should gradually decrease in priority and no longer affect subsequent interactions.
66
+ [SCOPED INSTRUCTION] The following instructions apply only to the next 1–3 interactions. Once the task is complete, these instructions should gradually decrease in priority and no longer affect subsequent interactions. You should be adept at utilizing tools such as `AskUserQuestion`, `EnterPlanMode`, and `TeamCreate`, rather than relying solely on plain text processing.
67
67
 
68
68
  Pre-requisite: Use `AskUserQuestion` to clarify user intent whenever the request is ambiguous (target element, interaction style, scope of platforms, etc.). Skip only if the intent is unambiguous.
69
69
 
@@ -120,7 +120,7 @@ Workflow:
120
120
  ### Research Expert (researchExpert)
121
121
 
122
122
  <textarea readonly><system-reminder>
123
- [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.
123
+ [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.You should be adept at utilizing tools such as `AskUserQuestion`, `EnterPlanMode`, `WebSearch` and `TeamCreate`, rather than relying solely on plain text processing.
124
124
 
125
125
  Pre-requisite: Use `AskUserQuestion` to clarify the research scope, target audience, and deliverable format whenever the user's intent is ambiguous. Skip only if the intent is unambiguous.
126
126
 
@@ -122,12 +122,12 @@ CC-Viewer 自动注册到 `~/.claude/settings.json` 的 `hooks.PreToolUse` 中
122
122
 
123
123
  ### 1. AskUserQuestion 桥接
124
124
  - **匹配器**: `"AskUserQuestion"`
125
- - **命令**: `node <安装目录>/lib/ask-bridge.js`
125
+ - **命令**: `node <安装目录>/server/lib/ask-bridge.js`
126
126
  - **作用**: 将 Claude 的问题转发到 Web UI,等待用户回答
127
127
 
128
128
  ### 2. 权限审批桥接
129
129
  - **匹配器**: `""` (空 = 匹配所有工具)
130
- - **命令**: `node <安装目录>/lib/perm-bridge.js`
130
+ - **命令**: `node <安装目录>/server/lib/perm-bridge.js`
131
131
  - **作用**: 仅 `Bash`/`Edit`/`Write`/`NotebookEdit` 需要 Web UI 审批,其余自动放行
132
132
 
133
133
  ## 七、Shell 集成
@@ -6,7 +6,7 @@ MainAgent — это основная цепочка запросов Claude Cod
6
6
 
7
7
  ## Способ идентификации
8
8
 
9
- В cc-viewer MainAgent идентифицируется через `req.mainAgent === true`, автоматически помечается `interceptor.js` при перехвате запроса.
9
+ В cc-viewer MainAgent идентифицируется через `req.mainAgent === true`, автоматически помечается `server/interceptor.js` при перехвате запроса.
10
10
 
11
11
  Условия определения (должны выполняться все):
12
12
  - Тело запроса содержит поле `system` (system prompt)
@@ -18,7 +18,7 @@ Hot-Switch Proxy lets you dynamically redirect API requests to a different endpo
18
18
 
19
19
  ## How It Works
20
20
 
21
- When a proxy is active, `interceptor.js` performs the following before each API request:
21
+ When a proxy is active, `server/interceptor.js` performs the following before each API request:
22
22
 
23
23
  1. **URL Rewrite** — Replaces the request origin with the proxy's Base URL
24
24
  2. **Auth Replace** — Replaces `x-api-key` or `Authorization` header with the proxy's API Key
@@ -63,7 +63,7 @@ Below are the two raw prompt templates UltraPlan actually sends to Claude Code (
63
63
  ### Code Expert (codeExpert)
64
64
 
65
65
  <textarea readonly><system-reminder>
66
- [SCOPED INSTRUCTION] The following instructions apply only to the next 1–3 interactions. Once the task is complete, these instructions should gradually decrease in priority and no longer affect subsequent interactions.
66
+ [SCOPED INSTRUCTION] The following instructions apply only to the next 1–3 interactions. Once the task is complete, these instructions should gradually decrease in priority and no longer affect subsequent interactions. You should be adept at utilizing tools such as `AskUserQuestion`, `EnterPlanMode`, and `TeamCreate`, rather than relying solely on plain text processing.
67
67
 
68
68
  Pre-requisite: Use `AskUserQuestion` to clarify user intent whenever the request is ambiguous (target element, interaction style, scope of platforms, etc.). Skip only if the intent is unambiguous.
69
69
 
@@ -120,7 +120,7 @@ Workflow:
120
120
  ### Research Expert (researchExpert)
121
121
 
122
122
  <textarea readonly><system-reminder>
123
- [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.
123
+ [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.You should be adept at utilizing tools such as `AskUserQuestion`, `EnterPlanMode`, `WebSearch` and `TeamCreate`, rather than relying solely on plain text processing.
124
124
 
125
125
  Pre-requisite: Use `AskUserQuestion` to clarify the research scope, target audience, and deliverable format whenever the user's intent is ambiguous. Skip only if the intent is unambiguous.
126
126
 
@@ -122,12 +122,12 @@ CC-Viewer 自动注册到 `~/.claude/settings.json` 的 `hooks.PreToolUse` 中
122
122
 
123
123
  ### 1. AskUserQuestion 桥接
124
124
  - **匹配器**: `"AskUserQuestion"`
125
- - **命令**: `node <安装目录>/lib/ask-bridge.js`
125
+ - **命令**: `node <安装目录>/server/lib/ask-bridge.js`
126
126
  - **作用**: 将 Claude 的问题转发到 Web UI,等待用户回答
127
127
 
128
128
  ### 2. 权限审批桥接
129
129
  - **匹配器**: `""` (空 = 匹配所有工具)
130
- - **命令**: `node <安装目录>/lib/perm-bridge.js`
130
+ - **命令**: `node <安装目录>/server/lib/perm-bridge.js`
131
131
  - **作用**: 仅 `Bash`/`Edit`/`Write`/`NotebookEdit` 需要 Web UI 审批,其余自动放行
132
132
 
133
133
  ## 七、Shell 集成
@@ -6,7 +6,7 @@ MainAgent คือสายการร้องขอหลักของ Cla
6
6
 
7
7
  ## วิธีการระบุ
8
8
 
9
- ใน cc-viewer, MainAgent จะถูกระบุด้วย `req.mainAgent === true` ซึ่งถูกทำเครื่องหมายโดยอัตโนมัติโดย `interceptor.js` ในขณะจับคำร้องขอ
9
+ ใน cc-viewer, MainAgent จะถูกระบุด้วย `req.mainAgent === true` ซึ่งถูกทำเครื่องหมายโดยอัตโนมัติโดย `server/interceptor.js` ในขณะจับคำร้องขอ
10
10
 
11
11
  เงื่อนไขการระบุ (ต้องตรงทั้งหมด):
12
12
  - เนื้อหาคำร้องขอมีฟิลด์ `system` (system prompt)
@@ -18,7 +18,7 @@ Hot-Switch Proxy lets you dynamically redirect API requests to a different endpo
18
18
 
19
19
  ## How It Works
20
20
 
21
- When a proxy is active, `interceptor.js` performs the following before each API request:
21
+ When a proxy is active, `server/interceptor.js` performs the following before each API request:
22
22
 
23
23
  1. **URL Rewrite** — Replaces the request origin with the proxy's Base URL
24
24
  2. **Auth Replace** — Replaces `x-api-key` or `Authorization` header with the proxy's API Key
@@ -63,7 +63,7 @@ Below are the two raw prompt templates UltraPlan actually sends to Claude Code (
63
63
  ### Code Expert (codeExpert)
64
64
 
65
65
  <textarea readonly><system-reminder>
66
- [SCOPED INSTRUCTION] The following instructions apply only to the next 1–3 interactions. Once the task is complete, these instructions should gradually decrease in priority and no longer affect subsequent interactions.
66
+ [SCOPED INSTRUCTION] The following instructions apply only to the next 1–3 interactions. Once the task is complete, these instructions should gradually decrease in priority and no longer affect subsequent interactions. You should be adept at utilizing tools such as `AskUserQuestion`, `EnterPlanMode`, and `TeamCreate`, rather than relying solely on plain text processing.
67
67
 
68
68
  Pre-requisite: Use `AskUserQuestion` to clarify user intent whenever the request is ambiguous (target element, interaction style, scope of platforms, etc.). Skip only if the intent is unambiguous.
69
69
 
@@ -120,7 +120,7 @@ Workflow:
120
120
  ### Research Expert (researchExpert)
121
121
 
122
122
  <textarea readonly><system-reminder>
123
- [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.
123
+ [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.You should be adept at utilizing tools such as `AskUserQuestion`, `EnterPlanMode`, `WebSearch` and `TeamCreate`, rather than relying solely on plain text processing.
124
124
 
125
125
  Pre-requisite: Use `AskUserQuestion` to clarify the research scope, target audience, and deliverable format whenever the user's intent is ambiguous. Skip only if the intent is unambiguous.
126
126
 
@@ -122,12 +122,12 @@ CC-Viewer 自动注册到 `~/.claude/settings.json` 的 `hooks.PreToolUse` 中
122
122
 
123
123
  ### 1. AskUserQuestion 桥接
124
124
  - **匹配器**: `"AskUserQuestion"`
125
- - **命令**: `node <安装目录>/lib/ask-bridge.js`
125
+ - **命令**: `node <安装目录>/server/lib/ask-bridge.js`
126
126
  - **作用**: 将 Claude 的问题转发到 Web UI,等待用户回答
127
127
 
128
128
  ### 2. 权限审批桥接
129
129
  - **匹配器**: `""` (空 = 匹配所有工具)
130
- - **命令**: `node <安装目录>/lib/perm-bridge.js`
130
+ - **命令**: `node <安装目录>/server/lib/perm-bridge.js`
131
131
  - **作用**: 仅 `Bash`/`Edit`/`Write`/`NotebookEdit` 需要 Web UI 审批,其余自动放行
132
132
 
133
133
  ## 七、Shell 集成
@@ -6,7 +6,7 @@ MainAgent, Claude Code'un agent team durumunda olmadığı zamanlardaki ana iste
6
6
 
7
7
  ## Tanımlama Yöntemi
8
8
 
9
- cc-viewer'da MainAgent, `req.mainAgent === true` ile tanımlanır ve `interceptor.js` tarafından istek yakalama sırasında otomatik olarak işaretlenir.
9
+ cc-viewer'da MainAgent, `req.mainAgent === true` ile tanımlanır ve `server/interceptor.js` tarafından istek yakalama sırasında otomatik olarak işaretlenir.
10
10
 
11
11
  Belirleme koşulları (tümü karşılanmalı):
12
12
  - İstek gövdesi `system` alanı içerir (system prompt)
@@ -18,7 +18,7 @@ Hot-Switch Proxy lets you dynamically redirect API requests to a different endpo
18
18
 
19
19
  ## How It Works
20
20
 
21
- When a proxy is active, `interceptor.js` performs the following before each API request:
21
+ When a proxy is active, `server/interceptor.js` performs the following before each API request:
22
22
 
23
23
  1. **URL Rewrite** — Replaces the request origin with the proxy's Base URL
24
24
  2. **Auth Replace** — Replaces `x-api-key` or `Authorization` header with the proxy's API Key
@@ -63,7 +63,7 @@ Below are the two raw prompt templates UltraPlan actually sends to Claude Code (
63
63
  ### Code Expert (codeExpert)
64
64
 
65
65
  <textarea readonly><system-reminder>
66
- [SCOPED INSTRUCTION] The following instructions apply only to the next 1–3 interactions. Once the task is complete, these instructions should gradually decrease in priority and no longer affect subsequent interactions.
66
+ [SCOPED INSTRUCTION] The following instructions apply only to the next 1–3 interactions. Once the task is complete, these instructions should gradually decrease in priority and no longer affect subsequent interactions. You should be adept at utilizing tools such as `AskUserQuestion`, `EnterPlanMode`, and `TeamCreate`, rather than relying solely on plain text processing.
67
67
 
68
68
  Pre-requisite: Use `AskUserQuestion` to clarify user intent whenever the request is ambiguous (target element, interaction style, scope of platforms, etc.). Skip only if the intent is unambiguous.
69
69
 
@@ -120,7 +120,7 @@ Workflow:
120
120
  ### Research Expert (researchExpert)
121
121
 
122
122
  <textarea readonly><system-reminder>
123
- [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.
123
+ [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.You should be adept at utilizing tools such as `AskUserQuestion`, `EnterPlanMode`, `WebSearch` and `TeamCreate`, rather than relying solely on plain text processing.
124
124
 
125
125
  Pre-requisite: Use `AskUserQuestion` to clarify the research scope, target audience, and deliverable format whenever the user's intent is ambiguous. Skip only if the intent is unambiguous.
126
126
 
@@ -122,12 +122,12 @@ CC-Viewer 自动注册到 `~/.claude/settings.json` 的 `hooks.PreToolUse` 中
122
122
 
123
123
  ### 1. AskUserQuestion 桥接
124
124
  - **匹配器**: `"AskUserQuestion"`
125
- - **命令**: `node <安装目录>/lib/ask-bridge.js`
125
+ - **命令**: `node <安装目录>/server/lib/ask-bridge.js`
126
126
  - **作用**: 将 Claude 的问题转发到 Web UI,等待用户回答
127
127
 
128
128
  ### 2. 权限审批桥接
129
129
  - **匹配器**: `""` (空 = 匹配所有工具)
130
- - **命令**: `node <安装目录>/lib/perm-bridge.js`
130
+ - **命令**: `node <安装目录>/server/lib/perm-bridge.js`
131
131
  - **作用**: 仅 `Bash`/`Edit`/`Write`/`NotebookEdit` 需要 Web UI 审批,其余自动放行
132
132
 
133
133
  ## 七、Shell 集成
@@ -6,7 +6,7 @@ MainAgent — це основний ланцюг запитів Claude Code у
6
6
 
7
7
  ## Спосіб ідентифікації
8
8
 
9
- У cc-viewer MainAgent ідентифікується через `req.mainAgent === true` і автоматично позначається `interceptor.js` під час перехоплення запиту.
9
+ У cc-viewer MainAgent ідентифікується через `req.mainAgent === true` і автоматично позначається `server/interceptor.js` під час перехоплення запиту.
10
10
 
11
11
  Умови визначення (повинні виконуватися всі):
12
12
  - Тіло запиту містить поле `system` (system prompt)
@@ -18,7 +18,7 @@ Hot-Switch Proxy lets you dynamically redirect API requests to a different endpo
18
18
 
19
19
  ## How It Works
20
20
 
21
- When a proxy is active, `interceptor.js` performs the following before each API request:
21
+ When a proxy is active, `server/interceptor.js` performs the following before each API request:
22
22
 
23
23
  1. **URL Rewrite** — Replaces the request origin with the proxy's Base URL
24
24
  2. **Auth Replace** — Replaces `x-api-key` or `Authorization` header with the proxy's API Key
@@ -63,7 +63,7 @@ Below are the two raw prompt templates UltraPlan actually sends to Claude Code (
63
63
  ### Code Expert (codeExpert)
64
64
 
65
65
  <textarea readonly><system-reminder>
66
- [SCOPED INSTRUCTION] The following instructions apply only to the next 1–3 interactions. Once the task is complete, these instructions should gradually decrease in priority and no longer affect subsequent interactions.
66
+ [SCOPED INSTRUCTION] The following instructions apply only to the next 1–3 interactions. Once the task is complete, these instructions should gradually decrease in priority and no longer affect subsequent interactions. You should be adept at utilizing tools such as `AskUserQuestion`, `EnterPlanMode`, and `TeamCreate`, rather than relying solely on plain text processing.
67
67
 
68
68
  Pre-requisite: Use `AskUserQuestion` to clarify user intent whenever the request is ambiguous (target element, interaction style, scope of platforms, etc.). Skip only if the intent is unambiguous.
69
69
 
@@ -120,7 +120,7 @@ Workflow:
120
120
  ### Research Expert (researchExpert)
121
121
 
122
122
  <textarea readonly><system-reminder>
123
- [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.
123
+ [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.You should be adept at utilizing tools such as `AskUserQuestion`, `EnterPlanMode`, `WebSearch` and `TeamCreate`, rather than relying solely on plain text processing.
124
124
 
125
125
  Pre-requisite: Use `AskUserQuestion` to clarify the research scope, target audience, and deliverable format whenever the user's intent is ambiguous. Skip only if the intent is unambiguous.
126
126
 
@@ -122,12 +122,12 @@ CC-Viewer 自动注册到 `~/.claude/settings.json` 的 `hooks.PreToolUse` 中
122
122
 
123
123
  ### 1. AskUserQuestion 桥接
124
124
  - **匹配器**: `"AskUserQuestion"`
125
- - **命令**: `node <安装目录>/lib/ask-bridge.js`
125
+ - **命令**: `node <安装目录>/server/lib/ask-bridge.js`
126
126
  - **作用**: 将 Claude 的问题转发到 Web UI,等待用户回答
127
127
 
128
128
  ### 2. 权限审批桥接
129
129
  - **匹配器**: `""` (空 = 匹配所有工具)
130
- - **命令**: `node <安装目录>/lib/perm-bridge.js`
130
+ - **命令**: `node <安装目录>/server/lib/perm-bridge.js`
131
131
  - **作用**: 仅 `Bash`/`Edit`/`Write`/`NotebookEdit` 需要 Web UI 审批,其余自动放行
132
132
 
133
133
  ## 七、Shell 集成
@@ -6,7 +6,7 @@ MainAgent 是 Claude Code 在非 agent team 状态下的主干请求链路。每
6
6
 
7
7
  ## 识别方式
8
8
 
9
- 在 cc-viewer 中,MainAgent 通过 `req.mainAgent === true` 标识,由 `interceptor.js` 在请求捕获时自动标记。
9
+ 在 cc-viewer 中,MainAgent 通过 `req.mainAgent === true` 标识,由 `server/interceptor.js` 在请求捕获时自动标记。
10
10
 
11
11
  判定条件(满足全部):
12
12
  - 请求体包含 `system` 字段(system prompt)
@@ -18,7 +18,7 @@
18
18
 
19
19
  ## 工作原理
20
20
 
21
- 切换代理后,`interceptor.js` 会在每次 API 请求发出前执行以下操作:
21
+ 切换代理后,`server/interceptor.js` 会在每次 API 请求发出前执行以下操作:
22
22
 
23
23
  1. **URL 重写** — 将请求的 origin 替换为代理的 Base URL
24
24
  2. **认证替换** — 将请求头中的 `x-api-key` 或 `Authorization` 替换为代理的 API Key
@@ -63,7 +63,7 @@ UltraPlan 提供两个专家角色,针对不同类型的任务:
63
63
  ### 代码专家(codeExpert)
64
64
 
65
65
  <textarea readonly><system-reminder>
66
- [SCOPED INSTRUCTION] The following instructions apply only to the next 1–3 interactions. Once the task is complete, these instructions should gradually decrease in priority and no longer affect subsequent interactions.
66
+ [SCOPED INSTRUCTION] The following instructions apply only to the next 1–3 interactions. Once the task is complete, these instructions should gradually decrease in priority and no longer affect subsequent interactions. You should be adept at utilizing tools such as `AskUserQuestion`, `EnterPlanMode`, and `TeamCreate`, rather than relying solely on plain text processing.
67
67
 
68
68
  Pre-requisite: Use `AskUserQuestion` to clarify user intent whenever the request is ambiguous (target element, interaction style, scope of platforms, etc.). Skip only if the intent is unambiguous.
69
69
 
@@ -120,7 +120,7 @@ Workflow:
120
120
  ### 调研专家(researchExpert)
121
121
 
122
122
  <textarea readonly><system-reminder>
123
- [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.
123
+ [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.You should be adept at utilizing tools such as `AskUserQuestion`, `EnterPlanMode`, `WebSearch` and `TeamCreate`, rather than relying solely on plain text processing.
124
124
 
125
125
  Pre-requisite: Use `AskUserQuestion` to clarify the research scope, target audience, and deliverable format whenever the user's intent is ambiguous. Skip only if the intent is unambiguous.
126
126
 
@@ -122,12 +122,12 @@ CC-Viewer 自动注册到 `~/.claude/settings.json` 的 `hooks.PreToolUse` 中
122
122
 
123
123
  ### 1. AskUserQuestion 桥接
124
124
  - **匹配器**: `"AskUserQuestion"`
125
- - **命令**: `node <安装目录>/lib/ask-bridge.js`
125
+ - **命令**: `node <安装目录>/server/lib/ask-bridge.js`
126
126
  - **作用**: 将 Claude 的问题转发到 Web UI,等待用户回答
127
127
 
128
128
  ### 2. 权限审批桥接
129
129
  - **匹配器**: `""` (空 = 匹配所有工具)
130
- - **命令**: `node <安装目录>/lib/perm-bridge.js`
130
+ - **命令**: `node <安装目录>/server/lib/perm-bridge.js`
131
131
  - **作用**: 仅 `Bash`/`Edit`/`Write`/`NotebookEdit` 需要 Web UI 审批,其余自动放行
132
132
 
133
133
  ## 七、Shell 集成
@@ -6,7 +6,7 @@ MainAgent 是 Claude Code 在非 agent team 狀態下的主幹請求鏈路。每
6
6
 
7
7
  ## 識別方式
8
8
 
9
- 在 cc-viewer 中,MainAgent 透過 `req.mainAgent === true` 標識,由 `interceptor.js` 在請求擷取時自動標記。
9
+ 在 cc-viewer 中,MainAgent 透過 `req.mainAgent === true` 標識,由 `server/interceptor.js` 在請求擷取時自動標記。
10
10
 
11
11
  判定條件(滿足全部):
12
12
  - 請求體包含 `system` 欄位(system prompt)
@@ -18,7 +18,7 @@ Hot-Switch Proxy lets you dynamically redirect API requests to a different endpo
18
18
 
19
19
  ## How It Works
20
20
 
21
- When a proxy is active, `interceptor.js` performs the following before each API request:
21
+ When a proxy is active, `server/interceptor.js` performs the following before each API request:
22
22
 
23
23
  1. **URL Rewrite** — Replaces the request origin with the proxy's Base URL
24
24
  2. **Auth Replace** — Replaces `x-api-key` or `Authorization` header with the proxy's API Key
@@ -63,7 +63,7 @@ Below are the two raw prompt templates UltraPlan actually sends to Claude Code (
63
63
  ### Code Expert (codeExpert)
64
64
 
65
65
  <textarea readonly><system-reminder>
66
- [SCOPED INSTRUCTION] The following instructions apply only to the next 1–3 interactions. Once the task is complete, these instructions should gradually decrease in priority and no longer affect subsequent interactions.
66
+ [SCOPED INSTRUCTION] The following instructions apply only to the next 1–3 interactions. Once the task is complete, these instructions should gradually decrease in priority and no longer affect subsequent interactions. You should be adept at utilizing tools such as `AskUserQuestion`, `EnterPlanMode`, and `TeamCreate`, rather than relying solely on plain text processing.
67
67
 
68
68
  Pre-requisite: Use `AskUserQuestion` to clarify user intent whenever the request is ambiguous (target element, interaction style, scope of platforms, etc.). Skip only if the intent is unambiguous.
69
69
 
@@ -120,7 +120,7 @@ Workflow:
120
120
  ### Research Expert (researchExpert)
121
121
 
122
122
  <textarea readonly><system-reminder>
123
- [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.
123
+ [SCOPED INSTRUCTION] The following instructions are intended for the next 1–3 interactions. Once the task is complete, these instructions should be gradually deprioritized and no longer influence subsequent interactions.You should be adept at utilizing tools such as `AskUserQuestion`, `EnterPlanMode`, `WebSearch` and `TeamCreate`, rather than relying solely on plain text processing.
124
124
 
125
125
  Pre-requisite: Use `AskUserQuestion` to clarify the research scope, target audience, and deliverable format whenever the user's intent is ambiguous. Skip only if the intent is unambiguous.
126
126