chore: 初始化仓库(零源工具箱 0.1.0 基线)
- Go 主进程 cmd/zerorigin(托盘常驻 + 触发器/规则/动作引擎) - Wails v3 设置进程 cmd/settings(独立 module) - 监督进程 cmd/watchdog(-supervise 异常重启) - 构建脚本 build.bat / NSIS 安装包 deploy/、便携版 portable/ - 架构与 MVP 计划文档 docs/、阶段 0-4 验收记录 deploy/acceptance-0-4.md
This commit is contained in:
commit
0a1c1e82ea
188 files changed
+19926
No files matched your search
@@ -0,0 +1,9 @@
|
||||
//@ts-check
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore: Unused imports
|
||||
import { Create as $Create } from "@wailsio/runtime";
|
||||
|
||||
Object.freeze($Create.Events);
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
@@ -0,0 +1,37 @@
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
/**
|
||||
* ConfigService 为前端提供配置读写能力。
|
||||
* 通过 Wails 绑定,前端可直接调用其导出方法。
|
||||
* @module
|
||||
*/
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore: Unused imports
|
||||
import { Call as $Call, CancellablePromise as $CancellablePromise } from "@wailsio/runtime";
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore: Unused imports
|
||||
import * as $models from "./models.js";
|
||||
|
||||
/**
|
||||
* Load 读取当前配置。配置文件缺失时返回错误,前端引导用户先运行主程序。
|
||||
*/
|
||||
export function Load(): $CancellablePromise<$models.AppConfig | null> {
|
||||
return $Call.ByID(1374598707);
|
||||
}
|
||||
|
||||
/**
|
||||
* Meta 返回静态元数据(触发器/动作类型清单)。
|
||||
*/
|
||||
export function Meta(): $CancellablePromise<$models.Meta | null> {
|
||||
return $Call.ByID(3472161870);
|
||||
}
|
||||
|
||||
/**
|
||||
* Save 校验并原子保存配置。返回校验警告(不阻塞保存)与错误。
|
||||
*/
|
||||
export function Save(cfg: $models.Config | null): $CancellablePromise<string[] | null> {
|
||||
return $Call.ByID(2730444782, cfg);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
import * as ConfigService from "./configservice.js";
|
||||
export {
|
||||
ConfigService
|
||||
};
|
||||
|
||||
export type {
|
||||
ActionConfig,
|
||||
AppConfig,
|
||||
ConditionConfig,
|
||||
Config,
|
||||
GlobalConfig,
|
||||
Meta,
|
||||
Rule,
|
||||
TriggerConfig
|
||||
} from "./models.js";
|
||||
@@ -0,0 +1,77 @@
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
/**
|
||||
* ActionConfig 为动作配置。
|
||||
*/
|
||||
export interface ActionConfig {
|
||||
"type": string;
|
||||
"params": { [_ in string]?: any } | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* AppConfig 为返回给前端的完整配置视图(含可选元数据)。
|
||||
*/
|
||||
export interface AppConfig {
|
||||
"config": Config | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* ConditionConfig 为条件配置(MVP 仅空列表)。
|
||||
*/
|
||||
export interface ConditionConfig {
|
||||
"type": string;
|
||||
"params": { [_ in string]?: any } | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Config 为配置根结构(版本 1),与主进程一致。
|
||||
*/
|
||||
export interface Config {
|
||||
"version": number;
|
||||
"global": GlobalConfig;
|
||||
"rules": Rule[] | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* GlobalConfig 为全局设置。
|
||||
*/
|
||||
export interface GlobalConfig {
|
||||
"enabled": boolean;
|
||||
"theme": string;
|
||||
"log_level": string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Meta 为前端下拉与展示所需的静态元数据。
|
||||
*/
|
||||
export interface Meta {
|
||||
"trigger_types": { [_ in string]?: string } | null;
|
||||
"action_types": { [_ in string]?: string } | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Rule 为一条规则。
|
||||
*/
|
||||
export interface Rule {
|
||||
"id": string;
|
||||
"name": string;
|
||||
"enabled": boolean;
|
||||
"priority": number;
|
||||
"trigger": TriggerConfig;
|
||||
"conditions"?: ConditionConfig[] | null;
|
||||
"actions": ActionConfig[] | null;
|
||||
"cooldown_ms": number;
|
||||
|
||||
/**
|
||||
* Fullscreen 全屏行为:"" / "ignore"(默认,全屏前台窗口时忽略)/ "allow"(豁免)。
|
||||
*/
|
||||
"fullscreen"?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* TriggerConfig 为触发器配置。JSON 采用扁平形式(与主进程一致):
|
||||
*
|
||||
* {"type": "mouse_corner", "corner": "bottom_left", "screen": "all"}
|
||||
*/
|
||||
export type TriggerConfig = any;
|
||||
Reference in new issue
Block a user