assistsx-js 0.2.3 → 0.2.4
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/README.md +14 -51
- package/dist/index.cjs +679 -145
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2001 -611
- package/dist/index.d.ts +2001 -611
- package/dist/index.global.js +2 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +672 -145
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/assistsx-async.ts +33 -0
- package/src/assistsx.ts +33 -0
- package/src/call-method.ts +1 -0
- package/src/db/db-call-method.ts +11 -0
- package/src/db/db.ts +254 -0
- package/src/global.d.ts +8 -0
- package/src/index.ts +5 -0
- package/src/log/log-call-method.ts +3 -0
- package/src/log/log.ts +108 -23
- package/src/plugin-info.ts +70 -0
- package/src/screenshot/screenshot-call-method.ts +16 -0
- package/src/screenshot/screenshot.ts +200 -0
- package/src/window-flags.ts +21 -0
- package/dist/step-DnFA4DEb.d.mts +0 -1196
- package/dist/step-DnFA4DEb.d.ts +0 -1196
- package/dist/step-flow/index.cjs +0 -4367
- package/dist/step-flow/index.cjs.map +0 -1
- package/dist/step-flow/index.d.mts +0 -83
- package/dist/step-flow/index.d.ts +0 -83
- package/dist/step-flow/index.js +0 -4331
- package/dist/step-flow/index.js.map +0 -1
- package/src/step-flow/index.ts +0 -5
- package/src/step-flow/types.ts +0 -41
package/src/step-flow/index.ts
DELETED
package/src/step-flow/types.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { Step, StepData } from "../step";
|
|
2
|
-
|
|
3
|
-
/** 流程步骤执行结果:事件 / 重复 / 结束 / 委托 legacy StepImpl */
|
|
4
|
-
export type StepFlowOutcome =
|
|
5
|
-
| { type: "event"; name: string }
|
|
6
|
-
| { type: "repeat" }
|
|
7
|
-
| { type: "end" }
|
|
8
|
-
| { type: "legacy"; impl: import("../step").StepImpl };
|
|
9
|
-
|
|
10
|
-
/** 流程步骤实现:只描述 UI 与分支事件,不直接决定下一状态 */
|
|
11
|
-
export type FlowStepImpl = (step: Step) => Promise<StepFlowOutcome>;
|
|
12
|
-
|
|
13
|
-
/** 单个流程状态定义 */
|
|
14
|
-
export interface FlowStateDef {
|
|
15
|
-
run: FlowStepImpl;
|
|
16
|
-
/** 事件名 -> 下一状态名 */
|
|
17
|
-
on: Record<string, string>;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/** StepFlow 运行配置 */
|
|
21
|
-
export interface StepFlowConfig {
|
|
22
|
-
id?: string;
|
|
23
|
-
initial: string;
|
|
24
|
-
states: Record<string, FlowStateDef>;
|
|
25
|
-
/** 写入 step.data.payload 的初始业务数据 */
|
|
26
|
-
data?: StepData;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/** 库写入 step.data.__flow 的结构 */
|
|
30
|
-
export interface StepFlowMeta {
|
|
31
|
-
id?: string;
|
|
32
|
-
state: string;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/** step.data 推荐结构(payload 用户读写,__flow 库维护) */
|
|
36
|
-
export interface StepFlowData {
|
|
37
|
-
payload?: StepData;
|
|
38
|
-
__flow?: StepFlowMeta;
|
|
39
|
-
finishMethod?: import("../step").StepImpl;
|
|
40
|
-
[key: string]: unknown;
|
|
41
|
-
}
|