@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.
- package/bin/executor/tools/shell/ShellToolFormatting.js +1 -1
- package/bin/executor/tools/shell/ShellToolFormatting.js.map +1 -1
- package/bin/index.d.ts +1 -4
- package/bin/index.d.ts.map +1 -1
- package/bin/index.js +1 -5
- package/bin/index.js.map +1 -1
- package/bin/rpc/Client.d.ts +2 -2
- package/bin/rpc/Client.d.ts.map +1 -1
- package/bin/rpc/Server.js +2 -2
- package/bin/rpc/Server.js.map +1 -1
- package/bin/runtime/auth/AuthEnv.d.ts.map +1 -0
- package/bin/runtime/auth/AuthEnv.js.map +1 -0
- package/bin/runtime/auth/CliAuthStateStore.d.ts.map +1 -0
- package/bin/runtime/auth/CliAuthStateStore.js.map +1 -0
- package/bin/runtime/{server/http/control → control}/AuthControlService.d.ts +3 -3
- package/bin/runtime/control/AuthControlService.d.ts.map +1 -0
- package/bin/runtime/control/AuthControlService.js.map +1 -0
- package/bin/runtime/control/CommonHelpers.d.ts.map +1 -0
- package/bin/runtime/control/CommonHelpers.js.map +1 -0
- package/bin/runtime/{server/http/control → control}/ExecuteBySession.d.ts +4 -4
- package/bin/runtime/control/ExecuteBySession.d.ts.map +1 -0
- package/bin/runtime/control/ExecuteBySession.js.map +1 -0
- package/bin/runtime/{server/http/control → control}/ExecuteInput.d.ts +1 -1
- package/bin/runtime/control/ExecuteInput.d.ts.map +1 -0
- package/bin/runtime/{server/http/control → control}/ExecuteInput.js +2 -2
- package/bin/runtime/control/ExecuteInput.js.map +1 -0
- package/bin/runtime/control/Helpers.d.ts.map +1 -0
- package/bin/runtime/control/Helpers.js.map +1 -0
- package/bin/runtime/{server/http/control → control}/MessageTimeline.d.ts +2 -2
- package/bin/runtime/control/MessageTimeline.d.ts.map +1 -0
- package/bin/runtime/{server/http/control → control}/MessageTimeline.js +2 -2
- package/bin/runtime/control/MessageTimeline.js.map +1 -0
- package/bin/runtime/{server/http/control → control}/SessionSummaryStore.d.ts +2 -2
- package/bin/runtime/control/SessionSummaryStore.d.ts.map +1 -0
- package/bin/runtime/{server/http/control → control}/SessionSummaryStore.js +1 -1
- package/bin/runtime/control/SessionSummaryStore.js.map +1 -0
- package/bin/runtime/{server/http/control → control}/TaskStore.d.ts +1 -1
- package/bin/runtime/control/TaskStore.d.ts.map +1 -0
- package/bin/runtime/{server/http/control → control}/TaskStore.js +1 -1
- package/bin/runtime/control/TaskStore.js.map +1 -0
- package/bin/runtime/{server/http/control → control}/types/AuthControl.d.ts +1 -1
- package/bin/runtime/control/types/AuthControl.d.ts.map +1 -0
- package/bin/runtime/control/types/AuthControl.js.map +1 -0
- package/bin/runtime/control/types/ControlSessionExecute.d.ts.map +1 -0
- package/bin/runtime/control/types/ControlSessionExecute.js.map +1 -0
- package/bin/runtime/{server/http/control → control}/types/ControlViewData.d.ts +1 -1
- package/bin/runtime/control/types/ControlViewData.d.ts.map +1 -0
- package/bin/runtime/control/types/ControlViewData.js.map +1 -0
- package/bin/runtime/host/ProjectSetup.d.ts.map +1 -0
- package/bin/runtime/host/{daemon/ProjectSetup.js → ProjectSetup.js} +1 -1
- package/bin/runtime/host/ProjectSetup.js.map +1 -0
- package/package.json +3 -3
- package/src/executor/tools/shell/ShellToolFormatting.ts +1 -1
- package/src/index.ts +1 -15
- package/src/rpc/Client.ts +2 -2
- package/src/rpc/Server.ts +3 -3
- package/src/runtime/{server/http/control → control}/AuthControlService.ts +1 -1
- package/src/runtime/{server/http/control → control}/ExecuteBySession.ts +1 -1
- package/src/runtime/{server/http/control → control}/ExecuteInput.ts +1 -1
- package/src/runtime/{server/http/control → control}/MessageTimeline.ts +1 -1
- package/src/runtime/{server/http/control → control}/SessionSummaryStore.ts +1 -1
- package/src/runtime/{server/http/control → control}/TaskStore.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/bin/runtime/host/daemon/Api.d.ts +0 -60
- package/bin/runtime/host/daemon/Api.d.ts.map +0 -1
- package/bin/runtime/host/daemon/Api.js +0 -10
- package/bin/runtime/host/daemon/Api.js.map +0 -1
- package/bin/runtime/host/daemon/Client.d.ts +0 -17
- package/bin/runtime/host/daemon/Client.d.ts.map +0 -1
- package/bin/runtime/host/daemon/Client.js +0 -168
- package/bin/runtime/host/daemon/Client.js.map +0 -1
- package/bin/runtime/host/daemon/Paths.d.ts +0 -20
- package/bin/runtime/host/daemon/Paths.d.ts.map +0 -1
- package/bin/runtime/host/daemon/Paths.js +0 -23
- package/bin/runtime/host/daemon/Paths.js.map +0 -1
- package/bin/runtime/host/daemon/ProjectSetup.d.ts.map +0 -1
- package/bin/runtime/host/daemon/ProjectSetup.js.map +0 -1
- package/bin/runtime/server/http/Server.d.ts +0 -48
- package/bin/runtime/server/http/Server.d.ts.map +0 -1
- package/bin/runtime/server/http/Server.js +0 -129
- package/bin/runtime/server/http/Server.js.map +0 -1
- package/bin/runtime/server/http/auth/AuthEnv.d.ts.map +0 -1
- package/bin/runtime/server/http/auth/AuthEnv.js.map +0 -1
- package/bin/runtime/server/http/auth/CliAuthStateStore.d.ts.map +0 -1
- package/bin/runtime/server/http/auth/CliAuthStateStore.js.map +0 -1
- package/bin/runtime/server/http/control/AuthControlService.d.ts.map +0 -1
- package/bin/runtime/server/http/control/AuthControlService.js.map +0 -1
- package/bin/runtime/server/http/control/CommonHelpers.d.ts.map +0 -1
- package/bin/runtime/server/http/control/CommonHelpers.js.map +0 -1
- package/bin/runtime/server/http/control/ControlApiRoutes.d.ts +0 -14
- package/bin/runtime/server/http/control/ControlApiRoutes.d.ts.map +0 -1
- package/bin/runtime/server/http/control/ControlApiRoutes.js +0 -25
- package/bin/runtime/server/http/control/ControlApiRoutes.js.map +0 -1
- package/bin/runtime/server/http/control/ControlAuthorizationRoutes.d.ts +0 -17
- package/bin/runtime/server/http/control/ControlAuthorizationRoutes.d.ts.map +0 -1
- package/bin/runtime/server/http/control/ControlAuthorizationRoutes.js +0 -84
- package/bin/runtime/server/http/control/ControlAuthorizationRoutes.js.map +0 -1
- package/bin/runtime/server/http/control/ControlRouter.d.ts +0 -35
- package/bin/runtime/server/http/control/ControlRouter.d.ts.map +0 -1
- package/bin/runtime/server/http/control/ControlRouter.js +0 -28
- package/bin/runtime/server/http/control/ControlRouter.js.map +0 -1
- package/bin/runtime/server/http/control/ExecuteBySession.d.ts.map +0 -1
- package/bin/runtime/server/http/control/ExecuteBySession.js.map +0 -1
- package/bin/runtime/server/http/control/ExecuteInput.d.ts.map +0 -1
- package/bin/runtime/server/http/control/ExecuteInput.js.map +0 -1
- package/bin/runtime/server/http/control/Helpers.d.ts.map +0 -1
- package/bin/runtime/server/http/control/Helpers.js.map +0 -1
- package/bin/runtime/server/http/control/MessageTimeline.d.ts.map +0 -1
- package/bin/runtime/server/http/control/MessageTimeline.js.map +0 -1
- package/bin/runtime/server/http/control/OverviewRoutes.d.ts +0 -13
- package/bin/runtime/server/http/control/OverviewRoutes.d.ts.map +0 -1
- package/bin/runtime/server/http/control/OverviewRoutes.js +0 -101
- package/bin/runtime/server/http/control/OverviewRoutes.js.map +0 -1
- package/bin/runtime/server/http/control/SessionRoutes.d.ts +0 -14
- package/bin/runtime/server/http/control/SessionRoutes.d.ts.map +0 -1
- package/bin/runtime/server/http/control/SessionRoutes.js +0 -334
- package/bin/runtime/server/http/control/SessionRoutes.js.map +0 -1
- package/bin/runtime/server/http/control/SessionSummaryStore.d.ts.map +0 -1
- package/bin/runtime/server/http/control/SessionSummaryStore.js.map +0 -1
- package/bin/runtime/server/http/control/TaskRoutes.d.ts +0 -13
- package/bin/runtime/server/http/control/TaskRoutes.d.ts.map +0 -1
- package/bin/runtime/server/http/control/TaskRoutes.js +0 -364
- package/bin/runtime/server/http/control/TaskRoutes.js.map +0 -1
- package/bin/runtime/server/http/control/TaskStore.d.ts.map +0 -1
- package/bin/runtime/server/http/control/TaskStore.js.map +0 -1
- package/bin/runtime/server/http/control/types/AuthControl.d.ts.map +0 -1
- package/bin/runtime/server/http/control/types/AuthControl.js.map +0 -1
- package/bin/runtime/server/http/control/types/ControlRoutes.d.ts +0 -28
- package/bin/runtime/server/http/control/types/ControlRoutes.d.ts.map +0 -1
- package/bin/runtime/server/http/control/types/ControlRoutes.js +0 -9
- package/bin/runtime/server/http/control/types/ControlRoutes.js.map +0 -1
- package/bin/runtime/server/http/control/types/ControlSessionExecute.d.ts.map +0 -1
- package/bin/runtime/server/http/control/types/ControlSessionExecute.js.map +0 -1
- package/bin/runtime/server/http/control/types/ControlViewData.d.ts.map +0 -1
- package/bin/runtime/server/http/control/types/ControlViewData.js.map +0 -1
- package/bin/runtime/server/http/execute/execute.d.ts +0 -25
- package/bin/runtime/server/http/execute/execute.d.ts.map +0 -1
- package/bin/runtime/server/http/execute/execute.js +0 -63
- package/bin/runtime/server/http/execute/execute.js.map +0 -1
- package/bin/runtime/server/http/health/health.d.ts +0 -14
- package/bin/runtime/server/http/health/health.d.ts.map +0 -1
- package/bin/runtime/server/http/health/health.js +0 -24
- package/bin/runtime/server/http/health/health.js.map +0 -1
- package/bin/runtime/server/http/plugins/plugins.d.ts +0 -25
- package/bin/runtime/server/http/plugins/plugins.d.ts.map +0 -1
- package/bin/runtime/server/http/plugins/plugins.js +0 -114
- package/bin/runtime/server/http/plugins/plugins.js.map +0 -1
- package/bin/runtime/server/http/sdk/Router.d.ts +0 -14
- package/bin/runtime/server/http/sdk/Router.d.ts.map +0 -1
- package/bin/runtime/server/http/sdk/Router.js +0 -18
- package/bin/runtime/server/http/sdk/Router.js.map +0 -1
- package/bin/runtime/server/http/sdk/SessionRoutes.d.ts +0 -15
- package/bin/runtime/server/http/sdk/SessionRoutes.d.ts.map +0 -1
- package/bin/runtime/server/http/sdk/SessionRoutes.js +0 -249
- package/bin/runtime/server/http/sdk/SessionRoutes.js.map +0 -1
- package/bin/runtime/server/http/static/static.d.ts +0 -25
- package/bin/runtime/server/http/static/static.d.ts.map +0 -1
- package/bin/runtime/server/http/static/static.js +0 -99
- package/bin/runtime/server/http/static/static.js.map +0 -1
- package/bin/types/runtime/daemon/Daemon.d.ts +0 -46
- package/bin/types/runtime/daemon/Daemon.d.ts.map +0 -1
- package/bin/types/runtime/daemon/Daemon.js +0 -14
- package/bin/types/runtime/daemon/Daemon.js.map +0 -1
- package/src/runtime/host/daemon/Api.ts +0 -64
- package/src/runtime/host/daemon/Client.ts +0 -204
- package/src/runtime/host/daemon/Paths.ts +0 -33
- package/src/runtime/server/http/Server.ts +0 -183
- package/src/runtime/server/http/control/ControlApiRoutes.ts +0 -29
- package/src/runtime/server/http/control/ControlAuthorizationRoutes.ts +0 -103
- package/src/runtime/server/http/control/ControlRouter.ts +0 -47
- package/src/runtime/server/http/control/OverviewRoutes.ts +0 -115
- package/src/runtime/server/http/control/SessionRoutes.ts +0 -427
- package/src/runtime/server/http/control/TaskRoutes.ts +0 -436
- package/src/runtime/server/http/control/types/ControlRoutes.ts +0 -31
- package/src/runtime/server/http/execute/execute.ts +0 -97
- package/src/runtime/server/http/health/health.ts +0 -27
- package/src/runtime/server/http/plugins/plugins.ts +0 -150
- package/src/runtime/server/http/sdk/Router.ts +0 -22
- package/src/runtime/server/http/sdk/SessionRoutes.ts +0 -300
- package/src/runtime/server/http/static/static.ts +0 -120
- package/src/types/runtime/daemon/Daemon.ts +0 -53
- /package/bin/runtime/{server/http/auth → auth}/AuthEnv.d.ts +0 -0
- /package/bin/runtime/{server/http/auth → auth}/AuthEnv.js +0 -0
- /package/bin/runtime/{server/http/auth → auth}/CliAuthStateStore.d.ts +0 -0
- /package/bin/runtime/{server/http/auth → auth}/CliAuthStateStore.js +0 -0
- /package/bin/runtime/{server/http/control → control}/AuthControlService.js +0 -0
- /package/bin/runtime/{server/http/control → control}/CommonHelpers.d.ts +0 -0
- /package/bin/runtime/{server/http/control → control}/CommonHelpers.js +0 -0
- /package/bin/runtime/{server/http/control → control}/ExecuteBySession.js +0 -0
- /package/bin/runtime/{server/http/control → control}/Helpers.d.ts +0 -0
- /package/bin/runtime/{server/http/control → control}/Helpers.js +0 -0
- /package/bin/runtime/{server/http/control → control}/types/AuthControl.js +0 -0
- /package/bin/runtime/{server/http/control → control}/types/ControlSessionExecute.d.ts +0 -0
- /package/bin/runtime/{server/http/control → control}/types/ControlSessionExecute.js +0 -0
- /package/bin/runtime/{server/http/control → control}/types/ControlViewData.js +0 -0
- /package/bin/runtime/host/{daemon/ProjectSetup.d.ts → ProjectSetup.d.ts} +0 -0
- /package/src/runtime/{server/http/auth → auth}/AuthEnv.ts +0 -0
- /package/src/runtime/{server/http/auth → auth}/CliAuthStateStore.ts +0 -0
- /package/src/runtime/{server/http/control → control}/CommonHelpers.ts +0 -0
- /package/src/runtime/{server/http/control → control}/Helpers.ts +0 -0
- /package/src/runtime/{server/http/control → control}/types/AuthControl.ts +0 -0
- /package/src/runtime/{server/http/control → control}/types/ControlSessionExecute.ts +0 -0
- /package/src/runtime/{server/http/control → control}/types/ControlViewData.ts +0 -0
- /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.
|
|
3
|
+
"version": "1.1.72",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "Downcity Agent 运行时 — 单 Agent
|
|
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.
|
|
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/
|
|
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/
|
|
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/
|
|
34
|
-
import type { AuthControlPayload } from "@/runtime/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
16
|
+
} from "@/runtime/control/types/ControlViewData.js";
|
|
17
17
|
import { truncateText } from "./CommonHelpers.js";
|
|
18
18
|
import { loadSessionMessagesFromFile, toUiMessageTimeline } from "./MessageTimeline.js";
|
|
19
19
|
|