把 export/generated 纳入 prettier 忽略,恢复 ts-rs 原始输出
- .prettierignore 增加 apps/ai-game-creator-shell/src/view/project-development/export/generated/,与其余四个 ts-rs 生成目录同口径:一律以原始输出提交,禁止 prettier 二次改写,否则生成绑定校验会误报内容变化。 - 重新生成 export/generated 下 12 份绑定,覆盖上一提交中被 prettier 改写过的内容。
This commit is contained in:
@@ -7,6 +7,7 @@ public/Icons
|
||||
packages/shared/src/contracts/generated/
|
||||
apps/ai-game-creator-shell/src/features/ui-editor/types/
|
||||
apps/ai-game-creator-shell/src/view/project-development/chat/generated/
|
||||
apps/ai-game-creator-shell/src/view/project-development/export/generated/
|
||||
apps/ai-game-creator-shell/src/services/generated/
|
||||
apps/ai-game-creator-shell/src-tauri/resources/agc-skills/
|
||||
media
|
||||
|
||||
+5
-6
@@ -1,8 +1,7 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ArtifactMissing = {
|
||||
/**
|
||||
* 产物相对项目根的路径。
|
||||
*/
|
||||
path: string;
|
||||
};
|
||||
export type ArtifactMissing = {
|
||||
/**
|
||||
* 产物相对项目根的路径。
|
||||
*/
|
||||
path: string, };
|
||||
|
||||
+9
-10
@@ -1,12 +1,11 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type BuildScriptMissing = {
|
||||
/**
|
||||
* 期望的脚本名(`build:xhs-minitool`)。
|
||||
*/
|
||||
script: string;
|
||||
/**
|
||||
* 宿主找过哪些 `package.json`,让用户知道去哪看。
|
||||
*/
|
||||
searched: Array<string>;
|
||||
};
|
||||
export type BuildScriptMissing = {
|
||||
/**
|
||||
* 期望的脚本名(`build:xhs-minitool`)。
|
||||
*/
|
||||
script: string,
|
||||
/**
|
||||
* 宿主找过哪些 `package.json`,让用户知道去哪看。
|
||||
*/
|
||||
searched: Array<string>, };
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type CommandFailed = { exitCode: number | null; outputTail: string };
|
||||
export type CommandFailed = { exitCode: number | null, outputTail: string, };
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ExportUnavailable = { cause: string };
|
||||
export type ExportUnavailable = { cause: string, };
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { XHSMiniToolExportField } from './XHSMiniToolExportField';
|
||||
import type { XHSMiniToolExportField } from "./XHSMiniToolExportField";
|
||||
|
||||
export type FormInvalid = { field: XHSMiniToolExportField; reason: string };
|
||||
export type FormInvalid = { field: XHSMiniToolExportField, reason: string, };
|
||||
|
||||
+5
-6
@@ -1,8 +1,7 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type RegistryMalformed = {
|
||||
/**
|
||||
* 解析器原文。它是引导语,不是给前端做判断的依据。
|
||||
*/
|
||||
cause: string;
|
||||
};
|
||||
export type RegistryMalformed = {
|
||||
/**
|
||||
* 解析器原文。它是引导语,不是给前端做判断的依据。
|
||||
*/
|
||||
cause: string, };
|
||||
|
||||
+10
-11
@@ -1,13 +1,12 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { XHSMiniToolExportForm } from './XHSMiniToolExportForm';
|
||||
import type { XHSMiniToolExportForm } from "./XHSMiniToolExportForm";
|
||||
|
||||
export type SaveConflict = {
|
||||
/**
|
||||
* 文件里现在是什么(字段级二选一的「文件里的」那一侧)。
|
||||
*/
|
||||
current: XHSMiniToolExportForm;
|
||||
/**
|
||||
* 冲突时文件的指纹;用户选完之后带着它重试保存。
|
||||
*/
|
||||
contentHash: string;
|
||||
};
|
||||
export type SaveConflict = {
|
||||
/**
|
||||
* 文件里现在是什么(字段级二选一的「文件里的」那一侧)。
|
||||
*/
|
||||
current: XHSMiniToolExportForm,
|
||||
/**
|
||||
* 冲突时文件的指纹;用户选完之后带着它重试保存。
|
||||
*/
|
||||
contentHash: string, };
|
||||
|
||||
+8
-15
@@ -1,17 +1,10 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { ArtifactMissing } from './ArtifactMissing';
|
||||
import type { BuildScriptMissing } from './BuildScriptMissing';
|
||||
import type { CommandFailed } from './CommandFailed';
|
||||
import type { ExportUnavailable } from './ExportUnavailable';
|
||||
import type { FormInvalid } from './FormInvalid';
|
||||
import type { RegistryMalformed } from './RegistryMalformed';
|
||||
import type { SaveConflict } from './SaveConflict';
|
||||
import type { ArtifactMissing } from "./ArtifactMissing";
|
||||
import type { BuildScriptMissing } from "./BuildScriptMissing";
|
||||
import type { CommandFailed } from "./CommandFailed";
|
||||
import type { ExportUnavailable } from "./ExportUnavailable";
|
||||
import type { FormInvalid } from "./FormInvalid";
|
||||
import type { RegistryMalformed } from "./RegistryMalformed";
|
||||
import type { SaveConflict } from "./SaveConflict";
|
||||
|
||||
export type XHSMiniToolExportError =
|
||||
| ({ type: 'registryMalformed' } & RegistryMalformed)
|
||||
| ({ type: 'formInvalid' } & FormInvalid)
|
||||
| ({ type: 'buildScriptMissing' } & BuildScriptMissing)
|
||||
| ({ type: 'saveConflict' } & SaveConflict)
|
||||
| ({ type: 'commandFailed' } & CommandFailed)
|
||||
| ({ type: 'artifactMissing' } & ArtifactMissing)
|
||||
| ({ type: 'exportUnavailable' } & ExportUnavailable);
|
||||
export type XHSMiniToolExportError = { "type": "registryMalformed" } & RegistryMalformed | { "type": "formInvalid" } & FormInvalid | { "type": "buildScriptMissing" } & BuildScriptMissing | { "type": "saveConflict" } & SaveConflict | { "type": "commandFailed" } & CommandFailed | { "type": "artifactMissing" } & ArtifactMissing | { "type": "exportUnavailable" } & ExportUnavailable;
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
/**
|
||||
* 表单里出错的字段。前端按它把原因挂到对应输入框,不解析文案。
|
||||
*/
|
||||
export type XHSMiniToolExportField = 'name' | 'introduction' | 'iconPath';
|
||||
export type XHSMiniToolExportField = "name" | "introduction" | "iconPath";
|
||||
|
||||
+5
-8
@@ -7,11 +7,8 @@
|
||||
* `deny_unknown_fields` 是刻意的:这个文件也由 code agent 手写,字段漂移必须当场可见,不能
|
||||
* 被静默忽略后带着半份表单继续走。
|
||||
*/
|
||||
export type XHSMiniToolExportForm = {
|
||||
name: string;
|
||||
introduction: string;
|
||||
/**
|
||||
* 项目内相对路径。icon 文件与目标无关,多个导出目标可以共用同一个。
|
||||
*/
|
||||
iconPath: string;
|
||||
};
|
||||
export type XHSMiniToolExportForm = { name: string, introduction: string,
|
||||
/**
|
||||
* 项目内相对路径。icon 文件与目标无关,多个导出目标可以共用同一个。
|
||||
*/
|
||||
iconPath: string, };
|
||||
|
||||
+5
-7
@@ -3,10 +3,8 @@
|
||||
/**
|
||||
* 一次成功导出的结果。产物路径是常量(`.export/xhs-minitool.zip`),不进 DTO。
|
||||
*/
|
||||
export type XHSMiniToolExportRunResult = {
|
||||
exitCode: number | null;
|
||||
/**
|
||||
* 成功时为空;失败时是被截断的输出尾部(stdout 与 stderr 合并),够定位就行。
|
||||
*/
|
||||
outputTail: string;
|
||||
};
|
||||
export type XHSMiniToolExportRunResult = { exitCode: number | null,
|
||||
/**
|
||||
* 成功时为空;失败时是被截断的输出尾部(stdout 与 stderr 合并),够定位就行。
|
||||
*/
|
||||
outputTail: string, };
|
||||
|
||||
+10
-12
@@ -1,5 +1,5 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { XHSMiniToolExportForm } from './XHSMiniToolExportForm';
|
||||
import type { XHSMiniToolExportForm } from "./XHSMiniToolExportForm";
|
||||
|
||||
/**
|
||||
* 面板读到的现场状态。
|
||||
@@ -7,14 +7,12 @@ import type { XHSMiniToolExportForm } from './XHSMiniToolExportForm';
|
||||
* 没有「产物是否已存在」:每次导出都重新构建。也没有 status / 已适配标记——「有没有脚本」
|
||||
* 永远从 npm 包的 `package.json` 现算,不落盘。
|
||||
*/
|
||||
export type XHSMiniToolExportState = {
|
||||
form: XHSMiniToolExportForm;
|
||||
/**
|
||||
* `scripts["build:xhs-minitool"]` 是否存在。
|
||||
*/
|
||||
hasScript: boolean;
|
||||
/**
|
||||
* 注册表文件的当前内容指纹。保存时原样带回做冲突判据;它不写进文件。
|
||||
*/
|
||||
contentHash: string;
|
||||
};
|
||||
export type XHSMiniToolExportState = { form: XHSMiniToolExportForm,
|
||||
/**
|
||||
* `scripts["build:xhs-minitool"]` 是否存在。
|
||||
*/
|
||||
hasScript: boolean,
|
||||
/**
|
||||
* 注册表文件的当前内容指纹。保存时原样带回做冲突判据;它不写进文件。
|
||||
*/
|
||||
contentHash: string, };
|
||||
|
||||
Reference in New Issue
Block a user