@downcity/agent 1.1.71 → 1.1.72

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 (204) hide show
  1. package/bin/executor/tools/shell/ShellToolFormatting.js +1 -1
  2. package/bin/executor/tools/shell/ShellToolFormatting.js.map +1 -1
  3. package/bin/index.d.ts +1 -4
  4. package/bin/index.d.ts.map +1 -1
  5. package/bin/index.js +1 -5
  6. package/bin/index.js.map +1 -1
  7. package/bin/rpc/Client.d.ts +2 -2
  8. package/bin/rpc/Client.d.ts.map +1 -1
  9. package/bin/rpc/Server.js +2 -2
  10. package/bin/rpc/Server.js.map +1 -1
  11. package/bin/runtime/auth/AuthEnv.d.ts.map +1 -0
  12. package/bin/runtime/auth/AuthEnv.js.map +1 -0
  13. package/bin/runtime/auth/CliAuthStateStore.d.ts.map +1 -0
  14. package/bin/runtime/auth/CliAuthStateStore.js.map +1 -0
  15. package/bin/runtime/{server/http/control → control}/AuthControlService.d.ts +3 -3
  16. package/bin/runtime/control/AuthControlService.d.ts.map +1 -0
  17. package/bin/runtime/control/AuthControlService.js.map +1 -0
  18. package/bin/runtime/control/CommonHelpers.d.ts.map +1 -0
  19. package/bin/runtime/control/CommonHelpers.js.map +1 -0
  20. package/bin/runtime/{server/http/control → control}/ExecuteBySession.d.ts +4 -4
  21. package/bin/runtime/control/ExecuteBySession.d.ts.map +1 -0
  22. package/bin/runtime/control/ExecuteBySession.js.map +1 -0
  23. package/bin/runtime/{server/http/control → control}/ExecuteInput.d.ts +1 -1
  24. package/bin/runtime/control/ExecuteInput.d.ts.map +1 -0
  25. package/bin/runtime/{server/http/control → control}/ExecuteInput.js +2 -2
  26. package/bin/runtime/control/ExecuteInput.js.map +1 -0
  27. package/bin/runtime/control/Helpers.d.ts.map +1 -0
  28. package/bin/runtime/control/Helpers.js.map +1 -0
  29. package/bin/runtime/{server/http/control → control}/MessageTimeline.d.ts +2 -2
  30. package/bin/runtime/control/MessageTimeline.d.ts.map +1 -0
  31. package/bin/runtime/{server/http/control → control}/MessageTimeline.js +2 -2
  32. package/bin/runtime/control/MessageTimeline.js.map +1 -0
  33. package/bin/runtime/{server/http/control → control}/SessionSummaryStore.d.ts +2 -2
  34. package/bin/runtime/control/SessionSummaryStore.d.ts.map +1 -0
  35. package/bin/runtime/{server/http/control → control}/SessionSummaryStore.js +1 -1
  36. package/bin/runtime/control/SessionSummaryStore.js.map +1 -0
  37. package/bin/runtime/{server/http/control → control}/TaskStore.d.ts +1 -1
  38. package/bin/runtime/control/TaskStore.d.ts.map +1 -0
  39. package/bin/runtime/{server/http/control → control}/TaskStore.js +1 -1
  40. package/bin/runtime/control/TaskStore.js.map +1 -0
  41. package/bin/runtime/{server/http/control → control}/types/AuthControl.d.ts +1 -1
  42. package/bin/runtime/control/types/AuthControl.d.ts.map +1 -0
  43. package/bin/runtime/control/types/AuthControl.js.map +1 -0
  44. package/bin/runtime/control/types/ControlSessionExecute.d.ts.map +1 -0
  45. package/bin/runtime/control/types/ControlSessionExecute.js.map +1 -0
  46. package/bin/runtime/{server/http/control → control}/types/ControlViewData.d.ts +1 -1
  47. package/bin/runtime/control/types/ControlViewData.d.ts.map +1 -0
  48. package/bin/runtime/control/types/ControlViewData.js.map +1 -0
  49. package/bin/runtime/host/ProjectSetup.d.ts.map +1 -0
  50. package/bin/runtime/host/{daemon/ProjectSetup.js → ProjectSetup.js} +1 -1
  51. package/bin/runtime/host/ProjectSetup.js.map +1 -0
  52. package/package.json +3 -3
  53. package/src/executor/tools/shell/ShellToolFormatting.ts +1 -1
  54. package/src/index.ts +1 -15
  55. package/src/rpc/Client.ts +2 -2
  56. package/src/rpc/Server.ts +3 -3
  57. package/src/runtime/{server/http/control → control}/AuthControlService.ts +1 -1
  58. package/src/runtime/{server/http/control → control}/ExecuteBySession.ts +1 -1
  59. package/src/runtime/{server/http/control → control}/ExecuteInput.ts +1 -1
  60. package/src/runtime/{server/http/control → control}/MessageTimeline.ts +1 -1
  61. package/src/runtime/{server/http/control → control}/SessionSummaryStore.ts +1 -1
  62. package/src/runtime/{server/http/control → control}/TaskStore.ts +1 -1
  63. package/tsconfig.tsbuildinfo +1 -1
  64. package/bin/runtime/host/daemon/Api.d.ts +0 -60
  65. package/bin/runtime/host/daemon/Api.d.ts.map +0 -1
  66. package/bin/runtime/host/daemon/Api.js +0 -10
  67. package/bin/runtime/host/daemon/Api.js.map +0 -1
  68. package/bin/runtime/host/daemon/Client.d.ts +0 -17
  69. package/bin/runtime/host/daemon/Client.d.ts.map +0 -1
  70. package/bin/runtime/host/daemon/Client.js +0 -168
  71. package/bin/runtime/host/daemon/Client.js.map +0 -1
  72. package/bin/runtime/host/daemon/Paths.d.ts +0 -20
  73. package/bin/runtime/host/daemon/Paths.d.ts.map +0 -1
  74. package/bin/runtime/host/daemon/Paths.js +0 -23
  75. package/bin/runtime/host/daemon/Paths.js.map +0 -1
  76. package/bin/runtime/host/daemon/ProjectSetup.d.ts.map +0 -1
  77. package/bin/runtime/host/daemon/ProjectSetup.js.map +0 -1
  78. package/bin/runtime/server/http/Server.d.ts +0 -48
  79. package/bin/runtime/server/http/Server.d.ts.map +0 -1
  80. package/bin/runtime/server/http/Server.js +0 -129
  81. package/bin/runtime/server/http/Server.js.map +0 -1
  82. package/bin/runtime/server/http/auth/AuthEnv.d.ts.map +0 -1
  83. package/bin/runtime/server/http/auth/AuthEnv.js.map +0 -1
  84. package/bin/runtime/server/http/auth/CliAuthStateStore.d.ts.map +0 -1
  85. package/bin/runtime/server/http/auth/CliAuthStateStore.js.map +0 -1
  86. package/bin/runtime/server/http/control/AuthControlService.d.ts.map +0 -1
  87. package/bin/runtime/server/http/control/AuthControlService.js.map +0 -1
  88. package/bin/runtime/server/http/control/CommonHelpers.d.ts.map +0 -1
  89. package/bin/runtime/server/http/control/CommonHelpers.js.map +0 -1
  90. package/bin/runtime/server/http/control/ControlApiRoutes.d.ts +0 -14
  91. package/bin/runtime/server/http/control/ControlApiRoutes.d.ts.map +0 -1
  92. package/bin/runtime/server/http/control/ControlApiRoutes.js +0 -25
  93. package/bin/runtime/server/http/control/ControlApiRoutes.js.map +0 -1
  94. package/bin/runtime/server/http/control/ControlAuthorizationRoutes.d.ts +0 -17
  95. package/bin/runtime/server/http/control/ControlAuthorizationRoutes.d.ts.map +0 -1
  96. package/bin/runtime/server/http/control/ControlAuthorizationRoutes.js +0 -84
  97. package/bin/runtime/server/http/control/ControlAuthorizationRoutes.js.map +0 -1
  98. package/bin/runtime/server/http/control/ControlRouter.d.ts +0 -35
  99. package/bin/runtime/server/http/control/ControlRouter.d.ts.map +0 -1
  100. package/bin/runtime/server/http/control/ControlRouter.js +0 -28
  101. package/bin/runtime/server/http/control/ControlRouter.js.map +0 -1
  102. package/bin/runtime/server/http/control/ExecuteBySession.d.ts.map +0 -1
  103. package/bin/runtime/server/http/control/ExecuteBySession.js.map +0 -1
  104. package/bin/runtime/server/http/control/ExecuteInput.d.ts.map +0 -1
  105. package/bin/runtime/server/http/control/ExecuteInput.js.map +0 -1
  106. package/bin/runtime/server/http/control/Helpers.d.ts.map +0 -1
  107. package/bin/runtime/server/http/control/Helpers.js.map +0 -1
  108. package/bin/runtime/server/http/control/MessageTimeline.d.ts.map +0 -1
  109. package/bin/runtime/server/http/control/MessageTimeline.js.map +0 -1
  110. package/bin/runtime/server/http/control/OverviewRoutes.d.ts +0 -13
  111. package/bin/runtime/server/http/control/OverviewRoutes.d.ts.map +0 -1
  112. package/bin/runtime/server/http/control/OverviewRoutes.js +0 -101
  113. package/bin/runtime/server/http/control/OverviewRoutes.js.map +0 -1
  114. package/bin/runtime/server/http/control/SessionRoutes.d.ts +0 -14
  115. package/bin/runtime/server/http/control/SessionRoutes.d.ts.map +0 -1
  116. package/bin/runtime/server/http/control/SessionRoutes.js +0 -334
  117. package/bin/runtime/server/http/control/SessionRoutes.js.map +0 -1
  118. package/bin/runtime/server/http/control/SessionSummaryStore.d.ts.map +0 -1
  119. package/bin/runtime/server/http/control/SessionSummaryStore.js.map +0 -1
  120. package/bin/runtime/server/http/control/TaskRoutes.d.ts +0 -13
  121. package/bin/runtime/server/http/control/TaskRoutes.d.ts.map +0 -1
  122. package/bin/runtime/server/http/control/TaskRoutes.js +0 -364
  123. package/bin/runtime/server/http/control/TaskRoutes.js.map +0 -1
  124. package/bin/runtime/server/http/control/TaskStore.d.ts.map +0 -1
  125. package/bin/runtime/server/http/control/TaskStore.js.map +0 -1
  126. package/bin/runtime/server/http/control/types/AuthControl.d.ts.map +0 -1
  127. package/bin/runtime/server/http/control/types/AuthControl.js.map +0 -1
  128. package/bin/runtime/server/http/control/types/ControlRoutes.d.ts +0 -28
  129. package/bin/runtime/server/http/control/types/ControlRoutes.d.ts.map +0 -1
  130. package/bin/runtime/server/http/control/types/ControlRoutes.js +0 -9
  131. package/bin/runtime/server/http/control/types/ControlRoutes.js.map +0 -1
  132. package/bin/runtime/server/http/control/types/ControlSessionExecute.d.ts.map +0 -1
  133. package/bin/runtime/server/http/control/types/ControlSessionExecute.js.map +0 -1
  134. package/bin/runtime/server/http/control/types/ControlViewData.d.ts.map +0 -1
  135. package/bin/runtime/server/http/control/types/ControlViewData.js.map +0 -1
  136. package/bin/runtime/server/http/execute/execute.d.ts +0 -25
  137. package/bin/runtime/server/http/execute/execute.d.ts.map +0 -1
  138. package/bin/runtime/server/http/execute/execute.js +0 -63
  139. package/bin/runtime/server/http/execute/execute.js.map +0 -1
  140. package/bin/runtime/server/http/health/health.d.ts +0 -14
  141. package/bin/runtime/server/http/health/health.d.ts.map +0 -1
  142. package/bin/runtime/server/http/health/health.js +0 -24
  143. package/bin/runtime/server/http/health/health.js.map +0 -1
  144. package/bin/runtime/server/http/plugins/plugins.d.ts +0 -25
  145. package/bin/runtime/server/http/plugins/plugins.d.ts.map +0 -1
  146. package/bin/runtime/server/http/plugins/plugins.js +0 -114
  147. package/bin/runtime/server/http/plugins/plugins.js.map +0 -1
  148. package/bin/runtime/server/http/sdk/Router.d.ts +0 -14
  149. package/bin/runtime/server/http/sdk/Router.d.ts.map +0 -1
  150. package/bin/runtime/server/http/sdk/Router.js +0 -18
  151. package/bin/runtime/server/http/sdk/Router.js.map +0 -1
  152. package/bin/runtime/server/http/sdk/SessionRoutes.d.ts +0 -15
  153. package/bin/runtime/server/http/sdk/SessionRoutes.d.ts.map +0 -1
  154. package/bin/runtime/server/http/sdk/SessionRoutes.js +0 -249
  155. package/bin/runtime/server/http/sdk/SessionRoutes.js.map +0 -1
  156. package/bin/runtime/server/http/static/static.d.ts +0 -25
  157. package/bin/runtime/server/http/static/static.d.ts.map +0 -1
  158. package/bin/runtime/server/http/static/static.js +0 -99
  159. package/bin/runtime/server/http/static/static.js.map +0 -1
  160. package/bin/types/runtime/daemon/Daemon.d.ts +0 -46
  161. package/bin/types/runtime/daemon/Daemon.d.ts.map +0 -1
  162. package/bin/types/runtime/daemon/Daemon.js +0 -14
  163. package/bin/types/runtime/daemon/Daemon.js.map +0 -1
  164. package/src/runtime/host/daemon/Api.ts +0 -64
  165. package/src/runtime/host/daemon/Client.ts +0 -204
  166. package/src/runtime/host/daemon/Paths.ts +0 -33
  167. package/src/runtime/server/http/Server.ts +0 -183
  168. package/src/runtime/server/http/control/ControlApiRoutes.ts +0 -29
  169. package/src/runtime/server/http/control/ControlAuthorizationRoutes.ts +0 -103
  170. package/src/runtime/server/http/control/ControlRouter.ts +0 -47
  171. package/src/runtime/server/http/control/OverviewRoutes.ts +0 -115
  172. package/src/runtime/server/http/control/SessionRoutes.ts +0 -427
  173. package/src/runtime/server/http/control/TaskRoutes.ts +0 -436
  174. package/src/runtime/server/http/control/types/ControlRoutes.ts +0 -31
  175. package/src/runtime/server/http/execute/execute.ts +0 -97
  176. package/src/runtime/server/http/health/health.ts +0 -27
  177. package/src/runtime/server/http/plugins/plugins.ts +0 -150
  178. package/src/runtime/server/http/sdk/Router.ts +0 -22
  179. package/src/runtime/server/http/sdk/SessionRoutes.ts +0 -300
  180. package/src/runtime/server/http/static/static.ts +0 -120
  181. package/src/types/runtime/daemon/Daemon.ts +0 -53
  182. /package/bin/runtime/{server/http/auth → auth}/AuthEnv.d.ts +0 -0
  183. /package/bin/runtime/{server/http/auth → auth}/AuthEnv.js +0 -0
  184. /package/bin/runtime/{server/http/auth → auth}/CliAuthStateStore.d.ts +0 -0
  185. /package/bin/runtime/{server/http/auth → auth}/CliAuthStateStore.js +0 -0
  186. /package/bin/runtime/{server/http/control → control}/AuthControlService.js +0 -0
  187. /package/bin/runtime/{server/http/control → control}/CommonHelpers.d.ts +0 -0
  188. /package/bin/runtime/{server/http/control → control}/CommonHelpers.js +0 -0
  189. /package/bin/runtime/{server/http/control → control}/ExecuteBySession.js +0 -0
  190. /package/bin/runtime/{server/http/control → control}/Helpers.d.ts +0 -0
  191. /package/bin/runtime/{server/http/control → control}/Helpers.js +0 -0
  192. /package/bin/runtime/{server/http/control → control}/types/AuthControl.js +0 -0
  193. /package/bin/runtime/{server/http/control → control}/types/ControlSessionExecute.d.ts +0 -0
  194. /package/bin/runtime/{server/http/control → control}/types/ControlSessionExecute.js +0 -0
  195. /package/bin/runtime/{server/http/control → control}/types/ControlViewData.js +0 -0
  196. /package/bin/runtime/host/{daemon/ProjectSetup.d.ts → ProjectSetup.d.ts} +0 -0
  197. /package/src/runtime/{server/http/auth → auth}/AuthEnv.ts +0 -0
  198. /package/src/runtime/{server/http/auth → auth}/CliAuthStateStore.ts +0 -0
  199. /package/src/runtime/{server/http/control → control}/CommonHelpers.ts +0 -0
  200. /package/src/runtime/{server/http/control → control}/Helpers.ts +0 -0
  201. /package/src/runtime/{server/http/control → control}/types/AuthControl.ts +0 -0
  202. /package/src/runtime/{server/http/control → control}/types/ControlSessionExecute.ts +0 -0
  203. /package/src/runtime/{server/http/control → control}/types/ControlViewData.ts +0 -0
  204. /package/src/runtime/host/{daemon/ProjectSetup.ts → ProjectSetup.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProjectSetup.js","sourceRoot":"","sources":["../../../src/runtime/host/ProjectSetup.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EACL,eAAe,EACf,4BAA4B,EAC5B,cAAc,EACd,gBAAgB,EAChB,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,mBAAmB,CAAC;AAE3B;;GAEG;AACH,SAAS,kBAAkB,CAAC,WAAmB;IAC7C,4CAA4C;IAC5C,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC;QAClD,OAAO,CAAC,KAAK,CACX,iEAAiE,CAClE,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAED,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,mBAAmB,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC;QACrD,OAAO,CAAC,KAAK,CACX,sEAAsE,CACvE,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAS,qBAAqB,CAAC,WAAmB;IAChD,yDAAyD;IACzD,EAAE,CAAC,aAAa,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC,CAAC;IAClD,EAAE,CAAC,aAAa,CAAC,uBAAuB,CAAC,WAAW,CAAC,CAAC,CAAC;IACvD,EAAE,CAAC,aAAa,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,CAAC;IAC9C,EAAE,CAAC,aAAa,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC;IAC/C,EAAE,CAAC,aAAa,CAAC,yBAAyB,CAAC,WAAW,CAAC,CAAC,CAAC;IACzD,EAAE,CAAC,aAAa,CAAC,sBAAsB,CAAC,WAAW,CAAC,CAAC,CAAC;IACtD,EAAE,CAAC,aAAa,CAAC,4BAA4B,CAAC,WAAW,CAAC,CAAC,CAAC;IAC5D,EAAE,CAAC,aAAa,CAAC,wBAAwB,CAAC,WAAW,CAAC,CAAC,CAAC;IACxD,EAAE,CAAC,aAAa,CAAC,wBAAwB,CAAC,WAAW,CAAC,CAAC,CAAC;IACxD,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;IACvE,EAAE,CAAC,aAAa,CAAC,uBAAuB,CAAC,WAAW,CAAC,CAAC,CAAC;AACzD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAAC,WAAmB;IAC3D,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAChC,qBAAqB,CAAC,WAAW,CAAC,CAAC;AACrC,CAAC"}
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@downcity/agent",
3
- "version": "1.1.71",
3
+ "version": "1.1.72",
4
4
  "type": "module",
5
- "description": "Downcity Agent 运行时 — 单 Agent 执行壳与 HTTP 服务能力",
5
+ "description": "Downcity Agent 运行时 — 单 Agent 执行壳与本机 RPC 能力",
6
6
  "main": "./bin/index.js",
7
7
  "types": "./bin/index.d.ts",
8
8
  "exports": {
@@ -29,7 +29,7 @@
29
29
  "node-cron": "^4.2.1",
30
30
  "ws": "^8.21.0",
31
31
  "zod": "^4.4.3",
32
- "@downcity/type": "0.1.13"
32
+ "@downcity/type": "0.1.14"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/fs-extra": "^11.0.4",
@@ -6,7 +6,7 @@
6
6
  * - 这里仅保留当前仍被 tool 与测试复用的最小能力:命令安全校验与 env 注入。
7
7
  */
8
8
 
9
- import { stripInvocationAuthEnv } from "@/runtime/server/http/auth/AuthEnv.js";
9
+ import { stripInvocationAuthEnv } from "@/runtime/auth/AuthEnv.js";
10
10
  import { getSessionRunScope } from "@executor/SessionRunScope.js";
11
11
 
12
12
  function setEnvString(
package/src/index.ts CHANGED
@@ -110,9 +110,6 @@ export {
110
110
  // Agent RPC 集成
111
111
  export { startRpcServer } from "./rpc/Server.js";
112
112
 
113
- // 宿主 HTTP gateway 集成
114
- export { startServer } from "./runtime/server/http/Server.js";
115
-
116
113
  // Runtime plugin 运行集成
117
114
  export {
118
115
  startAllPlugins,
@@ -137,7 +134,7 @@ export {
137
134
  export { loadDowncityConfig } from "./config/Config.js";
138
135
  export {
139
136
  ensureRuntimeProjectReady,
140
- } from "./runtime/host/daemon/ProjectSetup.js";
137
+ } from "./runtime/host/ProjectSetup.js";
141
138
  export { assertProjectExecutionTarget } from "./config/ExecutionBinding.js";
142
139
 
143
140
  // 日志
@@ -198,17 +195,6 @@ export type {
198
195
  PlatformAgentShipStartConfig,
199
196
  } from "./types/runtime/platform/PlatformGateway.js";
200
197
 
201
- // Daemon 协议类型
202
- export {
203
- DAEMON_LOG_FILENAME,
204
- DAEMON_META_FILENAME,
205
- DAEMON_PID_FILENAME,
206
- } from "./types/runtime/daemon/Daemon.js";
207
- export type {
208
- DaemonMeta,
209
- DaemonStaleReason,
210
- } from "./types/runtime/daemon/Daemon.js";
211
-
212
198
  // Inline instant 协议类型
213
199
  export type {
214
200
  InlineInstantExecutorType,
package/src/rpc/Client.ts CHANGED
@@ -30,8 +30,8 @@ import type {
30
30
  } from "@/plugin/types/Plugin.js";
31
31
  import type { AgentSessionEvent } from "@/types/sdk/AgentSessionEvent.js";
32
32
  import type { AgentSessionPromptInput } from "@/types/sdk/AgentSessionPrompt.js";
33
- import type { ControlSessionExecuteAttachmentInput } from "@/runtime/server/http/control/types/ControlSessionExecute.js";
34
- import type { AuthControlPayload } from "@/runtime/server/http/control/types/AuthControl.js";
33
+ import type { ControlSessionExecuteAttachmentInput } from "@/runtime/control/types/ControlSessionExecute.js";
34
+ import type { AuthControlPayload } from "@/runtime/control/types/AuthControl.js";
35
35
 
36
36
  type RpcClientRequest =
37
37
  | {
package/src/rpc/Server.ts CHANGED
@@ -22,12 +22,12 @@ import type { AgentRuntime } from "@/types/runtime/agent/AgentRuntime.js";
22
22
  import type { JsonValue } from "@/types/common/Json.js";
23
23
  import type { JsonObject } from "@/types/common/Json.js";
24
24
  import type { PluginStateControlAction } from "@/plugin/types/Plugin.js";
25
- import type { ControlSessionExecuteAttachmentInput } from "@/runtime/server/http/control/types/ControlSessionExecute.js";
25
+ import type { ControlSessionExecuteAttachmentInput } from "@/runtime/control/types/ControlSessionExecute.js";
26
26
  import {
27
27
  readAuthControlPayload,
28
28
  setAuthControlUserRole,
29
29
  writeAuthControlConfig,
30
- } from "@/runtime/server/http/control/AuthControlService.js";
30
+ } from "@/runtime/control/AuthControlService.js";
31
31
  import {
32
32
  getDowncityChatHistoryPath,
33
33
  getDowncitySessionMessagesPath,
@@ -39,7 +39,7 @@ import {
39
39
  } from "@/plugin/core/PluginStateController.js";
40
40
  import { parsePluginCommandRequestBody } from "@/plugin/core/PluginCommandRequest.js";
41
41
  import { runPluginCommand } from "@/plugin/core/PluginActionRunner.js";
42
- import { executeBySessionId } from "@/runtime/server/http/control/ExecuteBySession.js";
42
+ import { executeBySessionId } from "@/runtime/control/ExecuteBySession.js";
43
43
 
44
44
  type RpcSessionRequest =
45
45
  | {
@@ -9,7 +9,7 @@
9
9
 
10
10
  import type { AgentContext } from "@/types/runtime/agent/AgentContext.js";
11
11
  import type { JsonObject } from "@/types/common/Json.js";
12
- import type { AuthControlPayload } from "@/runtime/server/http/control/types/AuthControl.js";
12
+ import type { AuthControlPayload } from "@/runtime/control/types/AuthControl.js";
13
13
 
14
14
  const AUTH_PLUGIN_NAME = "auth";
15
15
  const AUTH_ACTIONS = {
@@ -8,7 +8,7 @@
8
8
 
9
9
  import type { AgentRuntime } from "@/types/runtime/agent/AgentRuntime.js";
10
10
  import type { AgentContext } from "@/types/runtime/agent/AgentContext.js";
11
- import type { ControlSessionExecuteAttachmentInput } from "@/runtime/server/http/control/types/ControlSessionExecute.js";
11
+ import type { ControlSessionExecuteAttachmentInput } from "@/runtime/control/types/ControlSessionExecute.js";
12
12
  import { buildExecuteInputText } from "./Helpers.js";
13
13
 
14
14
  /**
@@ -13,7 +13,7 @@ import { renderChatMessageFileTag } from "@/executor/messages/ChatMessageMarkup.
13
13
  import type {
14
14
  ControlSessionExecuteAttachmentInput,
15
15
  ControlSessionExecuteAttachmentType,
16
- } from "@/runtime/server/http/control/types/ControlSessionExecute.js";
16
+ } from "@/runtime/control/types/ControlSessionExecute.js";
17
17
 
18
18
  const EXECUTE_ATTACHMENT_MAX_COUNT = 8;
19
19
  const EXECUTE_ATTACHMENT_MAX_BYTES = 2 * 1024 * 1024;
@@ -19,7 +19,7 @@ import type {
19
19
  } from "@/executor/types/SessionMessages.js";
20
20
  import { pickLastSuccessfulChatSendText } from "@/executor/messages/UserVisibleText.js";
21
21
  import { extractToolCallsFromUiMessage } from "@/executor/messages/UIMessageTransformer.js";
22
- import type { ControlTimelineEvent, ControlTimelineRole } from "@/runtime/server/http/control/types/ControlViewData.js";
22
+ import type { ControlTimelineEvent, ControlTimelineRole } from "@/runtime/control/types/ControlViewData.js";
23
23
  import { truncateText } from "./CommonHelpers.js";
24
24
 
25
25
  type AnyUiPart = UIMessagePart<Record<string, never>, Record<string, never>>;
@@ -12,7 +12,7 @@ import {
12
12
  getDowncitySessionMessagesPath,
13
13
  getDowncitySessionRootDirPath,
14
14
  } from "@/config/Paths.js";
15
- import type { ControlSessionSummary } from "@/runtime/server/http/control/types/ControlViewData.js";
15
+ import type { ControlSessionSummary } from "@/runtime/control/types/ControlViewData.js";
16
16
  import { decodeMaybe, truncateText } from "./CommonHelpers.js";
17
17
  import { loadSessionMessagesFromFile, resolveUiMessagePreview } from "./MessageTimeline.js";
18
18
 
@@ -13,7 +13,7 @@ import type {
13
13
  ControlLogEntry,
14
14
  ControlTaskRunDetail,
15
15
  ControlTaskRunSummary,
16
- } from "@/runtime/server/http/control/types/ControlViewData.js";
16
+ } from "@/runtime/control/types/ControlViewData.js";
17
17
  import { truncateText } from "./CommonHelpers.js";
18
18
  import { loadSessionMessagesFromFile, toUiMessageTimeline } from "./MessageTimeline.js";
19
19