@c4a/extract-style 0.0.0-bootstrap.0
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/LICENSE +21 -0
- package/README.md +7 -0
- package/README.zh-CN.md +7 -0
- package/index.js +23049 -0
- package/package.json +28 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 context4ai
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# @c4a/extract-style
|
|
2
|
+
|
|
3
|
+
Lightweight CSS and SCSS evidence adapter for Context. It uses PostCSS and the `postcss-scss` syntax to parse caller-registered text without compiling Sass or fetching imports.
|
|
4
|
+
|
|
5
|
+
The catalog covers CSS `@import`, Sass `@use`/`@forward`, custom properties, static Sass variables, token references, selectors, syntactic variant/state evidence, and component-link candidates. Declaration values and external import URLs are represented by digest rather than raw text. Dynamic selectors or import sources make a file unsupported; unresolved relative imports remain explicit warnings.
|
|
6
|
+
|
|
7
|
+
All emitted facts use `lightweight-evidence` and denominator `none`. The package does not create selector knowledge pages, infer visual behavior, or increase eligible-file, LOC, symbol, or protocol coverage.
|
package/README.zh-CN.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# @c4a/extract-style
|
|
2
|
+
|
|
3
|
+
面向 Context 的 CSS/SCSS 轻量 evidence adapter。它使用 PostCSS 与 `postcss-scss` syntax,只解析调用方登记的文本,不编译 Sass,也不拉取 import。
|
|
4
|
+
|
|
5
|
+
catalog 覆盖 CSS `@import`、Sass `@use`/`@forward`、custom property、静态 Sass 变量、token reference、selector、语法层 variant/state evidence 和组件关联候选。声明值与外部 import URL 只保存 digest,不保存原文。动态 selector 或 import source 会使文件成为 `unsupported`;未登记的相对 import 作为显式 warning 保留。
|
|
6
|
+
|
|
7
|
+
全部 facts 使用 `lightweight-evidence` 且 denominator 固定为 `none`。该包不生成 selector 知识页、不推断视觉行为,也不增加 eligible-file、LOC、symbol 或 protocol 覆盖率。
|