Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Expose effective definition provenance through a public read-only report

未关闭
#457 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
css, typescript

调研方向

Start with site/architecture/styling-ir-roadmap.md and the related issues #455 and #456 to understand the planned boundaries. Define the versioned public read-only result and documented error or unknown states before choosing the compiler or schema entry point. Done means the public-only example, replacement/import and diagnostic tests, parity and boundary checks, bundle review, and site documentation meet the listed acceptance criteria.

由索引模型根据 Issue 内容生成。

描述

Goal

Expose a read-only, source-located explanation of effective project definitions after imports and whole-definition replacement, without making private parser/binding IR a public SPI.

Roadmap: #455 and #456. Design context: site/architecture/styling-ir-roadmap.md.

Concrete use case

A token browser asks why paint-brand uses a particular utility and token when two imported stylesheets define the same identity. The answer must identify the effective authored definition, its source range, and any replaced definition that matters to the explanation. An unresolved or unavailable source must be reported, not guessed from a default preset.

Ownership and compatibility

  • Compiler/project owns import graph orchestration and the public read-only report; Rust owns parser and lowering semantics. Schema may hold a dependency-light contract if consumers require it.
  • Keep the report outside runtime bundles and Manifest v1 execution data. Do not expose raw parse IR or @master/css-internal.
  • Define a versioned public result and documented error/unknown states before adding an export. Additive 2.x API only; no CSS output change.

Acceptance criteria

  • A public-only example explains effective and replaced definitions across imports with stable source identity and ranges, including a missing/unreadable source case.
  • Tests cover replacement, duplicate declarations, native conditional blocks, an import/reference cycle diagnostic, native/Wasm parity where applicable, and no silent preset fallback.
  • Compiler type-check/build/lint, boundary checks, and runtime bundle review pass. Document the capability and limits in site/.
主要语言
TypeScript
星标
2k
派生
44
平均合并
1 天 3 小时
30 天内合并 PR
1

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

master-co/css 的其他 Issue

查看 master-co/css 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。