@actiondock/core 2.10.0 → 2.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. package/README.md +1 -2
  2. package/dist/catalog/action-catalog.js +3 -33
  3. package/dist/catalog/discovery.d.ts +0 -3
  4. package/dist/catalog/discovery.js +4 -4
  5. package/dist/catalog/graph.d.ts +0 -4
  6. package/dist/catalog/graph.js +8 -14
  7. package/dist/{profile/client-actions.d.ts → client/actions.d.ts} +1 -1
  8. package/dist/{profile/client-actions.js → client/actions.js} +2 -8
  9. package/dist/{profile/client-config.d.ts → client/config.d.ts} +1 -1
  10. package/dist/{profile/client-config.js → client/config.js} +1 -1
  11. package/dist/client/dispatcher.d.ts +4 -0
  12. package/dist/client/dispatcher.js +21 -0
  13. package/dist/client/health.d.ts +38 -0
  14. package/dist/{profile/client-health.js → client/health.js} +9 -6
  15. package/dist/client/index.d.ts +16 -0
  16. package/dist/client/index.js +20 -0
  17. package/dist/{profile/client-playbooks.d.ts → client/playbooks.d.ts} +1 -1
  18. package/dist/{profile/client-playbooks.js → client/playbooks.js} +1 -1
  19. package/dist/{profile/client-runs.d.ts → client/runs.d.ts} +4 -2
  20. package/dist/{profile/client-runs.js → client/runs.js} +7 -1
  21. package/dist/{profile/client-state.d.ts → client/state.d.ts} +1 -1
  22. package/dist/{profile/client-state.js → client/state.js} +1 -1
  23. package/dist/{profile/client-transport.d.ts → client/transport.d.ts} +29 -10
  24. package/dist/{profile/client-transport.js → client/transport.js} +125 -35
  25. package/dist/doctor/checks/index.d.ts +1 -1
  26. package/dist/doctor/checks/index.js +1 -1
  27. package/dist/doctor/checks/project.js +20 -88
  28. package/dist/doctor/checks/runtime.d.ts +0 -4
  29. package/dist/doctor/checks/runtime.js +0 -28
  30. package/dist/doctor/doctor.js +1 -2
  31. package/dist/errors.d.ts +53 -3
  32. package/dist/errors.js +53 -3
  33. package/dist/execution/service.d.ts +55 -37
  34. package/dist/execution/service.js +601 -212
  35. package/dist/execution/types.d.ts +24 -5
  36. package/dist/host/host.d.ts +42 -22
  37. package/dist/host/host.js +562 -149
  38. package/dist/host/routing.js +6 -6
  39. package/dist/host/types.d.ts +25 -13
  40. package/dist/index.d.ts +9 -4
  41. package/dist/index.js +5 -2
  42. package/dist/input/advice.d.ts +0 -44
  43. package/dist/input/advice.js +7 -141
  44. package/dist/input/flat-materializer.js +1 -1
  45. package/dist/input/flat-parser.js +1 -1
  46. package/dist/input/index.d.ts +0 -1
  47. package/dist/input/index.js +0 -1
  48. package/dist/input/input-resolver.js +1 -1
  49. package/dist/input/validation-mapper.d.ts +1 -1
  50. package/dist/ipc/diagnostic.d.ts +8 -21
  51. package/dist/ipc/diagnostic.js +24 -57
  52. package/dist/ipc/host.js +21 -7
  53. package/dist/ipc/service.d.ts +14 -0
  54. package/dist/ipc/service.js +132 -26
  55. package/dist/ipc/types.d.ts +0 -4
  56. package/dist/package/index.d.ts +4 -5
  57. package/dist/package/index.js +1 -2
  58. package/dist/package/runtime.d.ts +94 -23
  59. package/dist/package/runtime.js +628 -274
  60. package/dist/package/static-index.d.ts +3 -6
  61. package/dist/package/static-index.js +11 -40
  62. package/dist/package/types.d.ts +19 -4
  63. package/dist/platform/index.d.ts +2 -1
  64. package/dist/platform/index.js +2 -1
  65. package/dist/platform/loader-hook.d.ts +32 -0
  66. package/dist/platform/loader-hook.js +90 -0
  67. package/dist/{node → platform}/module-loader.d.ts +13 -0
  68. package/dist/{node → platform}/module-loader.js +51 -4
  69. package/dist/platform/node.d.ts +19 -8
  70. package/dist/platform/node.js +50 -20
  71. package/dist/platform/types.d.ts +7 -47
  72. package/dist/process/context-process.d.ts +3 -18
  73. package/dist/process/context-process.js +3 -44
  74. package/dist/process/control.d.ts +21 -0
  75. package/dist/process/control.js +34 -0
  76. package/dist/process/converters.d.ts +23 -0
  77. package/dist/process/converters.js +92 -0
  78. package/dist/process/cursor.js +2 -22
  79. package/dist/process/{diagnostics-sink.d.ts → diagnostics.d.ts} +0 -7
  80. package/dist/process/{diagnostics-sink.js → diagnostics.js} +6 -8
  81. package/dist/process/index.d.ts +1 -3
  82. package/dist/process/index.js +1 -3
  83. package/dist/process/input-dispatcher.d.ts +4 -13
  84. package/dist/process/input-dispatcher.js +48 -69
  85. package/dist/process/managed-record.d.ts +3 -31
  86. package/dist/process/metadata-store.d.ts +0 -41
  87. package/dist/process/metadata-store.js +2 -341
  88. package/dist/process/process-driver.js +2 -2
  89. package/dist/process/process-manager.d.ts +8 -50
  90. package/dist/process/process-manager.js +28 -417
  91. package/dist/process/quotas.d.ts +14 -0
  92. package/dist/process/quotas.js +29 -0
  93. package/dist/process/run-executor.js +0 -1
  94. package/dist/process/terminal-output-cache.d.ts +20 -34
  95. package/dist/process/terminal-output-cache.js +43 -64
  96. package/dist/profile/index.d.ts +1 -2
  97. package/dist/profile/index.js +1 -2
  98. package/dist/profile/manager.d.ts +2 -4
  99. package/dist/profile/manager.js +10 -40
  100. package/dist/profile/types.d.ts +1 -17
  101. package/dist/project/digest.d.ts +5 -1
  102. package/dist/project/digest.js +81 -219
  103. package/dist/project/index.d.ts +4 -5
  104. package/dist/project/index.js +4 -5
  105. package/dist/project/init.js +2 -2
  106. package/dist/project/loader.d.ts +3 -3
  107. package/dist/project/loader.js +72 -50
  108. package/dist/project/lockfile.js +6 -5
  109. package/dist/project/manifest.js +5 -4
  110. package/dist/project/transactions.d.ts +4 -42
  111. package/dist/project/transactions.js +83 -138
  112. package/dist/project/types-generator.js +2 -1
  113. package/dist/project/types.d.ts +2 -0
  114. package/dist/registry/index.d.ts +0 -1
  115. package/dist/registry/index.js +0 -1
  116. package/dist/registry/lock.d.ts +2 -11
  117. package/dist/registry/lock.js +14 -183
  118. package/dist/registry/registry.d.ts +1 -6
  119. package/dist/registry/registry.js +5 -17
  120. package/dist/runtime/action-registry.d.ts +1 -5
  121. package/dist/runtime/action-registry.js +0 -12
  122. package/dist/runtime/context.js +2 -2
  123. package/dist/runtime/events.d.ts +11 -50
  124. package/dist/runtime/events.js +88 -368
  125. package/dist/runtime/index.d.ts +0 -4
  126. package/dist/runtime/index.js +0 -4
  127. package/dist/runtime/run-persistence.d.ts +2 -0
  128. package/dist/runtime/run-persistence.js +2 -1
  129. package/dist/runtime/standalone-commands.d.ts +18 -0
  130. package/dist/runtime/standalone-commands.js +466 -0
  131. package/dist/runtime/standalone-help.d.ts +20 -0
  132. package/dist/runtime/standalone-help.js +72 -0
  133. package/dist/runtime/standalone.d.ts +1 -44
  134. package/dist/runtime/standalone.js +32 -573
  135. package/dist/schema/validator.d.ts +2 -2
  136. package/dist/schema/validator.js +2 -9
  137. package/dist/server/index.d.ts +0 -2
  138. package/dist/server/index.js +0 -2
  139. package/dist/server/routes/actions.js +1 -1
  140. package/dist/server/routes/info.js +1 -1
  141. package/dist/server/routes/playbooks.js +1 -1
  142. package/dist/server/routes/runs.js +123 -16
  143. package/dist/server/routes/state.js +43 -18
  144. package/dist/server/security.d.ts +1 -1
  145. package/dist/server/security.js +2 -2
  146. package/dist/server/server.js +3 -7
  147. package/dist/service/factory.js +4 -3
  148. package/dist/service/index.d.ts +1 -1
  149. package/dist/service/index.js +1 -1
  150. package/dist/service/remote-errors.d.ts +1 -1
  151. package/dist/service/remote-errors.js +6 -6
  152. package/dist/service/remote-polling.d.ts +3 -0
  153. package/dist/service/remote-polling.js +10 -5
  154. package/dist/service/remote.d.ts +5 -1
  155. package/dist/service/remote.js +108 -17
  156. package/dist/service/sse-stream.js +2 -2
  157. package/dist/service/types.d.ts +22 -19
  158. package/dist/service/types.js +1 -24
  159. package/dist/storage/clock.d.ts +1 -1
  160. package/dist/storage/clock.js +1 -1
  161. package/dist/storage/data-dir-lock.d.ts +10 -22
  162. package/dist/storage/data-dir-lock.js +28 -56
  163. package/dist/storage/file-lock.d.ts +64 -0
  164. package/dist/storage/file-lock.js +447 -0
  165. package/dist/storage/index.d.ts +2 -2
  166. package/dist/storage/index.js +5 -4
  167. package/dist/storage/run-liveness.d.ts +48 -0
  168. package/dist/storage/run-liveness.js +44 -0
  169. package/dist/storage/sqlite-config.d.ts +16 -0
  170. package/dist/storage/sqlite-config.js +59 -0
  171. package/dist/storage/sqlite-driver.d.ts +3 -1
  172. package/dist/storage/sqlite-driver.js +14 -4
  173. package/dist/storage/sqlite-events.d.ts +13 -0
  174. package/dist/storage/sqlite-events.js +48 -0
  175. package/dist/storage/sqlite-runs.d.ts +107 -0
  176. package/dist/storage/sqlite-runs.js +622 -0
  177. package/dist/storage/sqlite-schema.d.ts +5 -0
  178. package/dist/storage/sqlite-schema.js +143 -0
  179. package/dist/storage/sqlite-state.d.ts +33 -0
  180. package/dist/storage/sqlite-state.js +270 -0
  181. package/dist/storage/sqlite.d.ts +30 -57
  182. package/dist/storage/sqlite.js +84 -741
  183. package/dist/storage/types.d.ts +35 -2
  184. package/dist/utils/index.d.ts +18 -14
  185. package/dist/utils/index.js +37 -29
  186. package/dist/utils/semver.d.ts +18 -0
  187. package/dist/utils/semver.js +19 -0
  188. package/dist/utils/warning.d.ts +1 -0
  189. package/dist/utils/warning.js +52 -0
  190. package/dist/{json/value-validator.d.ts → value-validator.d.ts} +9 -0
  191. package/dist/value-validator.js +330 -0
  192. package/dist/version.d.ts +1 -1
  193. package/dist/version.js +1 -1
  194. package/package.json +10 -12
  195. package/dist/execution/index.d.ts +0 -2
  196. package/dist/execution/index.js +0 -2
  197. package/dist/filter/index.d.ts +0 -1
  198. package/dist/filter/index.js +0 -1
  199. package/dist/graph/index.d.ts +0 -4
  200. package/dist/graph/index.js +0 -4
  201. package/dist/input/metadata.d.ts +0 -99
  202. package/dist/input/metadata.js +0 -99
  203. package/dist/invocation/index.d.ts +0 -2
  204. package/dist/invocation/index.js +0 -2
  205. package/dist/ipc/index.d.ts +0 -4
  206. package/dist/ipc/index.js +0 -4
  207. package/dist/json/index.d.ts +0 -1
  208. package/dist/json/index.js +0 -1
  209. package/dist/json/value-validator.js +0 -330
  210. package/dist/node/index.d.ts +0 -1
  211. package/dist/node/index.js +0 -1
  212. package/dist/platform/node-fs.d.ts +0 -37
  213. package/dist/platform/node-fs.js +0 -81
  214. package/dist/process/control-arbiter.d.ts +0 -108
  215. package/dist/process/control-arbiter.js +0 -250
  216. package/dist/process/process-executor.d.ts +0 -47
  217. package/dist/process/process-executor.js +0 -296
  218. package/dist/profile/client-health.d.ts +0 -14
  219. package/dist/profile/client-query.d.ts +0 -30
  220. package/dist/profile/client-query.js +0 -69
  221. package/dist/profile/client.d.ts +0 -26
  222. package/dist/profile/client.js +0 -31
  223. package/dist/project/closure.d.ts +0 -25
  224. package/dist/project/closure.js +0 -74
  225. package/dist/registry/store.d.ts +0 -42
  226. package/dist/registry/store.js +0 -43
  227. package/dist/runtime/clock.d.ts +0 -7
  228. package/dist/runtime/clock.js +0 -7
  229. package/dist/runtime/module-loader.d.ts +0 -2
  230. package/dist/runtime/module-loader.js +0 -1
  231. package/dist/runtime/process.d.ts +0 -8
  232. package/dist/runtime/process.js +0 -1
  233. package/dist/runtime/runner.d.ts +0 -234
  234. package/dist/runtime/runner.js +0 -609
  235. package/dist/schema/index.d.ts +0 -1
  236. package/dist/schema/index.js +0 -1
  237. package/dist/server/dispatcher.d.ts +0 -25
  238. package/dist/server/dispatcher.js +0 -54
  239. package/dist/service/local.d.ts +0 -27
  240. package/dist/service/local.js +0 -141
  241. package/dist/storage/driver.d.ts +0 -10
  242. package/dist/storage/driver.js +0 -10
  243. package/dist/storage/lazy.d.ts +0 -8
  244. package/dist/storage/lazy.js +0 -45
  245. package/dist/storage/lock-core.d.ts +0 -158
  246. package/dist/storage/lock-core.js +0 -872
  247. package/dist/utils/net.d.ts +0 -10
  248. package/dist/utils/net.js +0 -16
  249. package/dist/utils/process.d.ts +0 -10
  250. package/dist/utils/process.js +0 -21
  251. /package/dist/{filter → utils}/intent.d.ts +0 -0
  252. /package/dist/{filter → utils}/intent.js +0 -0
@@ -1,2 +0,0 @@
1
- export type { ModuleLoader } from "../node/module-loader.js";
2
- export { NodeModuleLoader, unwrapDefaultExport, } from "../node/module-loader.js";
@@ -1 +0,0 @@
1
- export { NodeModuleLoader, unwrapDefaultExport, } from "../node/module-loader.js";
@@ -1,8 +0,0 @@
1
- import type { ProcessAPI } from "@actiondock/sdk";
2
- /**
3
- * 进程执行器统一契约别名。
4
- *
5
- * 面向宿主与上层服务的进程能力均以 ProcessAPI 接口为准,
6
- * 具体实现由各平台适配层(如 NodeProcessExecutor)提供。
7
- */
8
- export type ProcessExecutor = ProcessAPI;
@@ -1 +0,0 @@
1
- export {};
@@ -1,234 +0,0 @@
1
- import type { ActionDefinition, ActionRef, ExecutionResult, Logger, ProcessAPI, ProgressReporter } from "@actiondock/sdk";
2
- import type { ProjectConfig } from "../project/types.js";
3
- import type { RuntimeStorage } from "../storage/types.js";
4
- import type { Clock } from "./clock.js";
5
- import type { ProcessOwner } from "../process/index.js";
6
- import type { PackageIdentity } from "./identity.js";
7
- import type { ActionInvoker } from "../execution/types.js";
8
- /**
9
- * 局部动作解析器委托函数契约(仅限当前包内部动作)。
10
- */
11
- export type LocalActionResolver = (actionId: string) => ActionDefinition | undefined | Promise<ActionDefinition | undefined>;
12
- /**
13
- * ActionRunner 初始化配置选项。
14
- */
15
- export interface ActionRunnerOptions {
16
- /** 显式注入的包物理与快照身份标识值对象(必填单一事实源) */
17
- identity: PackageIdentity;
18
- /** 持久化运行时存储实例(SQLite) */
19
- storage: RuntimeStorage;
20
- /** 全局共享持久化存储实例(SQLite,用于单例池化避免泄漏) */
21
- globalStorage?: RuntimeStorage;
22
- /** 项目根目录绝对路径 */
23
- projectRoot?: string;
24
- /** 项目元数据配置 */
25
- projectConfig?: ProjectConfig;
26
- /** CLI 或上层注入的临时配置覆盖项 */
27
- configOverrides?: Record<string, unknown>;
28
- /** 预加载的 Action 映射表 */
29
- actions?: Map<string, ActionDefinition>;
30
- /** 外部注入的进程执行器 */
31
- process?: ProcessAPI;
32
- /** 可选的时间与时钟源(默认使用存储内嵌时钟或系统时间) */
33
- clock?: Clock;
34
- /** 仅支持当前包局部 Action 的动态解析委托函数 */
35
- actionResolver?: LocalActionResolver;
36
- /** 自定义 ActionDock 用户家目录(用于测试隔离与多租户环境) */
37
- customHome?: string;
38
- /** 执行宿主会话标识 */
39
- hostSessionId?: string;
40
- /** 子任务调用委托函数 */
41
- actionInvoker?: ActionInvoker;
42
- }
43
- /**
44
- * 启动 Action 执行时的可选控制参数。
45
- */
46
- export interface ExecutionStartOptions {
47
- /** 显式指定的运行 ID */
48
- runId?: string;
49
- /** 根运行 ID */
50
- rootRunId?: string;
51
- /** 父级运行 ID(嵌套调用场景下建立调用链树) */
52
- parentRunId?: string;
53
- /** 包物理实例标识 */
54
- packageInstanceId?: string;
55
- /** 快照代次标识 */
56
- generationId?: string;
57
- /** 执行所有者标识 */
58
- ownerId?: string;
59
- /** 租户标识 */
60
- tenantId?: string;
61
- /** 主体标识 */
62
- principalId?: string;
63
- /** 显式执行归属所有者契约 */
64
- owner?: ProcessOwner;
65
- /** 执行宿主会话标识 */
66
- hostSessionId?: string;
67
- /** 调用栈数组(用于检测 A -> B -> A 环路死锁) */
68
- callStack?: string[];
69
- /** 外部传入的 AbortSignal 取消信号 */
70
- signal?: AbortSignal;
71
- /** 最大超时时间(毫秒),超时将自动中止执行并标记为 ACTION_TIMEOUT */
72
- timeoutMs?: number;
73
- /** 最大调用深度覆盖 */
74
- maxCallDepth?: number;
75
- /** 外部注入的进程执行器 */
76
- process?: ProcessAPI;
77
- /** 可选的时间与时钟源 */
78
- clock?: Clock;
79
- /** 外部注入的进度报告器 */
80
- progress?: ProgressReporter;
81
- /** 外部注入的日志记录器 */
82
- logger?: Logger;
83
- /** 执行级临时配置覆盖项 */
84
- configOverrides?: Record<string, unknown>;
85
- /** 子任务调用委托函数 */
86
- actionInvoker?: ActionInvoker;
87
- }
88
- /**
89
- * 异步执行句柄,支持获取执行结果 Promise 与主动取消操作。
90
- */
91
- export interface ExecutionHandle {
92
- /** 本次执行生成的全局唯一运行 ID */
93
- runId: string;
94
- /** 最终执行结果信封 Promise */
95
- result: Promise<ExecutionResult>;
96
- /**
97
- * 取消当前正在执行的任务
98
- * @param reason 取消原因
99
- * @returns 是否成功触发取消
100
- */
101
- cancel(reason?: string): boolean;
102
- }
103
- /**
104
- * Action 解析结果判别联合类型。
105
- */
106
- export type ActionResolution = {
107
- status: "found";
108
- action: ActionDefinition;
109
- } | {
110
- status: "not_found";
111
- reason?: string;
112
- };
113
- /**
114
- * ActionDock 核心执行引擎(ActionRunner)。
115
- *
116
- * 本类为执行编排壳:负责 Action 执行的全生命周期编排(校验、深度与环路检测、
117
- * 超时与取消竞态、子调用 uses 授权与错误分类),并将单一职责域委托至独立模块:
118
- * - Action 注册与检索委托 ActionRegistry(action-registry.ts)
119
- * - RunRecord 构造与落库委托 run-persistence.ts
120
- * - 跨包动作调用委托注入的 ActionInvoker 并重返目标包执行服务
121
- *
122
- * 入参 (inputSchema) 与出参 (outputSchema) 的 JSON Schema 严格校验、嵌套 Action
123
- * 相互调用的环路检测(Cycle Detection)、超时 (Timeout) 与中断信号 (AbortSignal)
124
- * 竞态控制与运行记录持久化编排仍由本类承担。
125
- */
126
- export declare class ActionRunner {
127
- readonly identity: PackageIdentity;
128
- readonly packageId: string;
129
- readonly packageInstanceId: string;
130
- readonly generationId: string;
131
- private storage;
132
- private globalStorage?;
133
- private projectRoot?;
134
- private projectConfig?;
135
- private configOverrides;
136
- private registry;
137
- private clock?;
138
- private process?;
139
- private customHome?;
140
- private actionResolver?;
141
- private hostSessionId?;
142
- private actionInvoker?;
143
- constructor(options: ActionRunnerOptions);
144
- /** 本地 Action 注册表底层映射 */
145
- private get actions();
146
- getStorage(): RuntimeStorage;
147
- /**
148
- * 注册单个 Action 到当前 Runner。
149
- */
150
- registerAction(id: string, action: ActionDefinition): void;
151
- registerAction(action: ({
152
- id: string;
153
- action?: ActionDefinition;
154
- } & Partial<ActionDefinition>) | ActionDefinition): void;
155
- /**
156
- * 根据 ID 检索注册的 Action。
157
- */
158
- getAction(id: string): ActionDefinition | undefined;
159
- /**
160
- * 设置子任务动作调用委托器。
161
- */
162
- setActionInvoker(invoker?: ActionInvoker): void;
163
- /**
164
- * 动态解析 Action(支持本地注册表、自定义解析器委托与已链接包目录索引检索)。
165
- *
166
- * @param actionOrRef Action 定义对象、引用或标识符
167
- * @returns 解析判别联合结果(found | not_found)
168
- */
169
- resolveAction(actionOrRef: ActionDefinition | ActionRef | string): Promise<ActionResolution>;
170
- /**
171
- * 获取当前 Runner 已注册的所有 Action 列表。
172
- */
173
- listActions(): ActionDefinition[];
174
- /**
175
- * 异步启动 Action 的执行并立即返回 ExecutionHandle 句柄。
176
- *
177
- * @param actionOrId Action 定义对象、引用或标识符
178
- * @param input 传递给 Action 的输入数据
179
- * @param options 执行控制选项(超时、取消信号、父运行 ID 等)
180
- * @returns 包含 runId、result Promise 和 cancel 方法的执行句柄
181
- */
182
- start(actionOrId: ActionDefinition | ActionRef | string, input?: unknown, options?: ExecutionStartOptions): ExecutionHandle;
183
- /**
184
- * 计算根运行标识(优先显式 rootRunId,其次 parentRunId,最后自身 runId)。
185
- */
186
- private computeRootRunId;
187
- /**
188
- * 预解析执行目标并装配运行期共享上下文对象(runId、目标标识、时钟源与调用栈快照)。
189
- */
190
- private prepareRunContext;
191
- /**
192
- * 依据运行期上下文装配落库模块入参(RunRecord 构造领域契约)。
193
- */
194
- private buildRunPersistenceInput;
195
- /**
196
- * 输入参数 JSON Schema 校验(若 action 已就绪,返回校验错误或 undefined)。
197
- */
198
- private checkActionInputSchema;
199
- /**
200
- * 构建 ActionContext 运行时上下文(内嵌子 Action 调用委托提为私有方法)。
201
- */
202
- private buildActionContext;
203
- /**
204
- * 子 Action 调用委托:
205
- * 必须委托 Host 动作调用器(走 Host 执行主链与 InvocationPolicy 鉴权);
206
- * 缺少 actionInvoker 时直接抛出 INVOCATION_UNSUPPORTED,严禁跨包或同包无约束执行逃逸。
207
- */
208
- private invokeChildAction;
209
- /**
210
- * 执行 Action 业务逻辑并与取消/超时信号进行竞态,返回执行结果信封 Promise。
211
- */
212
- private raceExecutionAndAbort;
213
- /**
214
- * 输出结果 Schema 校验(返回校验错误或 undefined)。
215
- */
216
- private checkActionOutputSchema;
217
- /**
218
- * 异常分类收敛:超时、取消与业务失败分别映射为对应终态与错误码。
219
- */
220
- private classifyExecutionError;
221
- /**
222
- * 释放 Runner 持有的资源。
223
- * 铁律 4:Runner 仅执行自己所属 Package 的 Action,不管理外部包生命周期。
224
- */
225
- dispose(): Promise<void>;
226
- /**
227
- * 同步等待方式执行指定 Action,直接返回 ExecutionResult 信封结果。
228
- *
229
- * @param actionOrId Action 定义对象、引用或标识符
230
- * @param input 输入参数
231
- * @param options 执行控制选项
232
- */
233
- execute(actionOrId: ActionDefinition | ActionRef | string, input?: unknown, options?: ExecutionStartOptions): Promise<ExecutionResult>;
234
- }