chore: 清理仓库审计问题——修正 CLAUDE.md、删除冗余 yoga-layout、清除 621 个未使用的类型 stub (#354)

- 修正 CLAUDE.md/AGENTS.md 六处过时陈述:modifiers-napi、url-handler-napi 已非 stub,
  Magic Docs/LSP Server/Plugins/Marketplace 已恢复
- 删除未使用的 src/native-ts/yoga-layout/ 冗余副本(2715 行),权威版本保留在 packages/@ant/ink
- 删除 src/ 下 621 个 Auto-generated type stub 文件(全部 export type X = any,无活跃引用)

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
claude-code-best
2026-04-25 08:54:18 +08:00
committed by GitHub
parent e38d45460e
commit c07ad4c738
626 changed files with 260 additions and 4386 deletions

View File

@@ -1,134 +0,0 @@
/**
* Yoga enums — ported from yoga-layout/src/generated/YGEnums.ts
* Kept as `const` objects (not TS enums) per repo convention.
* Values match upstream exactly so callers don't change.
*/
export const Align = {
Auto: 0,
FlexStart: 1,
Center: 2,
FlexEnd: 3,
Stretch: 4,
Baseline: 5,
SpaceBetween: 6,
SpaceAround: 7,
SpaceEvenly: 8,
} as const
export type Align = (typeof Align)[keyof typeof Align]
export const BoxSizing = {
BorderBox: 0,
ContentBox: 1,
} as const
export type BoxSizing = (typeof BoxSizing)[keyof typeof BoxSizing]
export const Dimension = {
Width: 0,
Height: 1,
} as const
export type Dimension = (typeof Dimension)[keyof typeof Dimension]
export const Direction = {
Inherit: 0,
LTR: 1,
RTL: 2,
} as const
export type Direction = (typeof Direction)[keyof typeof Direction]
export const Display = {
Flex: 0,
None: 1,
Contents: 2,
} as const
export type Display = (typeof Display)[keyof typeof Display]
export const Edge = {
Left: 0,
Top: 1,
Right: 2,
Bottom: 3,
Start: 4,
End: 5,
Horizontal: 6,
Vertical: 7,
All: 8,
} as const
export type Edge = (typeof Edge)[keyof typeof Edge]
export const Errata = {
None: 0,
StretchFlexBasis: 1,
AbsolutePositionWithoutInsetsExcludesPadding: 2,
AbsolutePercentAgainstInnerSize: 4,
All: 2147483647,
Classic: 2147483646,
} as const
export type Errata = (typeof Errata)[keyof typeof Errata]
export const ExperimentalFeature = {
WebFlexBasis: 0,
} as const
export type ExperimentalFeature =
(typeof ExperimentalFeature)[keyof typeof ExperimentalFeature]
export const FlexDirection = {
Column: 0,
ColumnReverse: 1,
Row: 2,
RowReverse: 3,
} as const
export type FlexDirection = (typeof FlexDirection)[keyof typeof FlexDirection]
export const Gutter = {
Column: 0,
Row: 1,
All: 2,
} as const
export type Gutter = (typeof Gutter)[keyof typeof Gutter]
export const Justify = {
FlexStart: 0,
Center: 1,
FlexEnd: 2,
SpaceBetween: 3,
SpaceAround: 4,
SpaceEvenly: 5,
} as const
export type Justify = (typeof Justify)[keyof typeof Justify]
export const MeasureMode = {
Undefined: 0,
Exactly: 1,
AtMost: 2,
} as const
export type MeasureMode = (typeof MeasureMode)[keyof typeof MeasureMode]
export const Overflow = {
Visible: 0,
Hidden: 1,
Scroll: 2,
} as const
export type Overflow = (typeof Overflow)[keyof typeof Overflow]
export const PositionType = {
Static: 0,
Relative: 1,
Absolute: 2,
} as const
export type PositionType = (typeof PositionType)[keyof typeof PositionType]
export const Unit = {
Undefined: 0,
Point: 1,
Percent: 2,
Auto: 3,
} as const
export type Unit = (typeof Unit)[keyof typeof Unit]
export const Wrap = {
NoWrap: 0,
Wrap: 1,
WrapReverse: 2,
} as const
export type Wrap = (typeof Wrap)[keyof typeof Wrap]

File diff suppressed because it is too large Load Diff