Files
rea/licenses/upstream-sources.json
Ysopwnableandgensokyo-dev e5945805a4 feat(managed): inspect WPF BAML documents (#17167)
* feat(managed): generate WPF's known BAML type and property IDs

BAML names WPF's own types, properties and strings by negative IDs. The
table is generated from KnownTypes.cs and Baml2006KnownTypes.cs at a
pinned dotnet/wpf commit, with the source digests recorded and the MIT
license preserved.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* feat(managed): describe the BAML document report and its read budgets

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* feat(managed): decode BAML record streams into their element tree

Read the BAML 0.96 records WPF's Baml2006Reader reads, without loading
any type: the element tree with names, keys and code-behind connection
IDs; property values with their converters, markup extensions and known
binary serializers; dictionary keys and their static resources from the
deferred key section; bindings and resource references. WPF's own types,
properties and strings are named from the generated known-type table.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* feat(analysis): summarize retained BAML documents

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* feat(managed): read BAML files through an identity-checked provider

The provider reads one bounded regular file and decodes it; a refusal at
max_records, max_elements or max_file_bytes names the budget to raise.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* feat(managed): add the inspect_baml tool

CLI inspect-baml and MCP inspect_baml decode a WPF BAML document, such as
a view extracted from <Assembly>.g.resources, without loading WPF or the
document's assemblies. Large reports return the retained summary within
the agent budget.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* feat(artifacts): point .NET resource sets with BAML views at inspect_baml

A resource set now proposes extraction, and inspect_baml when it holds
.baml members.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* docs(managed): describe WPF BAML document inspection

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* docs(skill): route extracted BAML views to inspect_baml

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* ci: scope the BAML reader with the managed formats

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* build: expose the BAML provider and its identity as dotnet entry files

Composition constructs the provider and the capability declarations name
its identity, as they do for the managed static provider.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* refactor(managed): fold BAML coverage through the coverage accumulator

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* refactor(managed): refuse oversized BAML files through the shared parse-limit owner

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* chore(schemas): record the advertised inspect_baml catalog summary

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* build: fetch the pinned WPF sources for the BAML known-type table

The generator now downloads KnownTypes.cs and Baml2006KnownTypes.cs at the
pinned dotnet/wpf commit and checks their recorded digests, instead of
reading a caller-supplied checkout, and runs as
npm run generate:wpf-baml-known-types. The regenerated table is unchanged.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* test(managed): cover inspect-baml through the CLI and declare its conformance case

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* feat(artifacts): recognise BAML documents and route them to inspect_baml

A file that starts with the MSBAML FormatVersion header is a standalone
baml artifact; inspect_artifact proposes inspect_baml for it, as it does
for other formats a dedicated tool reads.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* feat(managed): add a max_text_bytes budget for reported BAML text

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* fix(managed): bound BAML expansion and validate its nesting and dictionaries

- Every reported copy of a declared name counts against max_text_bytes,
  so repeated references to one long name cannot expand without bound.
- The nearest open element is kept on its own stack, and a property or
  constructor scope must open directly inside an element.
- Deferred content must fit its document and enclosing section; each
  dictionary key's value position must start a value element.
- Bindings inside MultiBinding or PriorityBinding report the container's
  target property.
- A test names WPF's known IDs by the literal numbers of the pinned source.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* docs(managed): describe BAML recognition and the text budget

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* chore(schemas): record the inspect_baml max_text_bytes input

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* fix(managed): inherit BAML binding targets instead of walking ancestors

Each element records the binding target it inherits, so a binding inside
nested MultiBinding or PriorityBinding containers resolves its target in
constant time. TemplateBinding and resource-extension elements now also
charge their reported copies against max_text_bytes.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* fix(managed): count declared BAML type and assembly names against the text budget

Every declared type reports its assembly's name, so many types can repeat
one long assembly name; those copies now count against max_text_bytes too.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

---------

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-12-06 03:17:31 +08:00

98 lines
4.5 KiB
JSON

[
{
"file": "licenses/ghidra-12.2-LICENSE.txt",
"source": "https://raw.githubusercontent.com/NationalSecurityAgency/ghidra/Ghidra_12.2_build/LICENSE",
"sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4"
},
{
"file": "licenses/ghidra-12.2-NOTICE.txt",
"source": "https://raw.githubusercontent.com/NationalSecurityAgency/ghidra/Ghidra_12.2_build/NOTICE",
"sha256": "ad4b2bb6e75e908251226180081b5afa01c7161d7710e08b603d0c340a08a23f"
},
{
"file": "licenses/ghidra-12.2-DISCLAIMER.txt",
"source": "https://raw.githubusercontent.com/NationalSecurityAgency/ghidra/Ghidra_12.2_build/DISCLAIMER.md",
"sha256": "324f4544abe620362f7bc66fbd8ec3c90e62e1aeac249fb850aef67e71c8b24d"
},
{
"file": "licenses/dotnet-runtime-MIT.txt",
"source": "https://raw.githubusercontent.com/dotnet/runtime/a3b2d40328be0be3f8dd43f0e5cc925b8827b044/LICENSE.TXT",
"sha256": "cfc21f5e8bd655ae997eec916138b707b1d290b83272c02a95c9f821b8c87310"
},
{
"file": "licenses/cfworker-MIT.txt",
"source": "https://raw.githubusercontent.com/cfworker/cfworker/5409fdc2bd144f68e8b28c61c71fcb16600000a6/LICENSE.md",
"sha256": "376944252ab78ca6b41aee44ddea8894927ee67891e77e61eb9d59af63e35094"
},
{
"file": "licenses/xterm-MIT.txt",
"source": "https://raw.githubusercontent.com/xtermjs/xterm.js/f447274f430fd22513f6adbf9862d19524471c04/LICENSE",
"sha256": "b569f629d00f2626a8100df2a1798210535621e42164dfd426a6fe5aac7b0ccd"
},
{
"file": "licenses/Apache-2.0.txt",
"source": "https://www.apache.org/licenses/LICENSE-2.0.txt",
"sha256": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30"
},
{
"file": "licenses/MIT-template.txt",
"source": "https://raw.githubusercontent.com/spdx/license-list-data/main/text/MIT.txt",
"sha256": "b05785f9f18e6716bab63424b11454513b9943a222595b70411009202fc592b5"
},
{
"file": "licenses/MinGW-w64-runtime.txt",
"source": "https://raw.githubusercontent.com/mingw-w64/mingw-w64/v12.0.0/COPYING.MinGW-w64-runtime/COPYING.MinGW-w64-runtime.txt",
"sha256": "e9b2dc02451ea29092a1f25fa0f3c07207ed421f1807dffb0c4e6dce69dee7bd"
},
{
"file": "licenses/GPL-3.0.txt",
"source": "https://raw.githubusercontent.com/gcc-mirror/gcc/releases/gcc-14.2.0/COPYING3",
"sha256": "8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903"
},
{
"file": "licenses/GCC-Runtime-Library-Exception-3.1.txt",
"source": "https://raw.githubusercontent.com/gcc-mirror/gcc/releases/gcc-14.2.0/COPYING.RUNTIME",
"sha256": "9d6b43ce4d8de0c878bf16b54d8e7a10d9bd42b75178153e3af6a815bdc90f74"
},
{
"file": "licenses/Node-22.19.0-LICENSE.txt",
"source": "https://raw.githubusercontent.com/nodejs/node/v22.19.0/LICENSE",
"sha256": "e991d81497a85bb24fc6bffae0a3637a6accd6c6bc5ce1f2c5698bd555cf9d49"
},
{
"file": "licenses/frida-17.23.2-COPYING.txt",
"source": "https://raw.githubusercontent.com/frida/frida/9adf8ed33ab6f1122b17399ee96dcbe101b941c9/COPYING",
"sha256": "5ea1544b51a28bc823b03159190d4108f9fb4f4ef912389f5137c6d295e175b2"
},
{
"file": "licenses/LGPL-2.0.txt",
"source": "https://www.gnu.org/licenses/old-licenses/lgpl-2.0.txt",
"sha256": "cc535c21133c895b56b374c8a1dc1eb948d99003ed2b47372069456b62f42b24"
},
{
"file": "licenses/protobuf-es-v2.17.0-LICENSE.txt",
"source": "https://raw.githubusercontent.com/bufbuild/protobuf-es/01a8c3b7c95d17758c641b2b9e8ee2f14a3ee9d7/LICENSE",
"sha256": "c04b4216f1cd4c5a4f7fb2f2a1b0ae70d847e9e0cac7c9dee9bf8cc03177c449"
},
{
"file": "licenses/pefile-2024.8.26-LICENSE.txt",
"source": "https://raw.githubusercontent.com/erocarrera/pefile/4b3b1e2e568a88d4f1897d694d684f23d9e270c4/LICENSE",
"sha256": "b44409c067c6da52bfb54bb6624fb11a7b52157c3a13ae1400232f8196e86ad3"
},
{
"file": "licenses/microsoft-uf2-MIT.txt",
"source": "https://raw.githubusercontent.com/microsoft/uf2/cf3bd7f9c274b949528f8cd6a19eef2502a687d2/LICENSE.txt",
"sha256": "c581accf1e5449482b70ac5fcdfb171599317ccff559cf0794d771671486f800"
},
{
"file": "licenses/napi-rs-MIT.txt",
"source": "https://raw.githubusercontent.com/napi-rs/napi-rs/a9362f80ff9bc65f011e7a487c27ab5a104ea194/LICENSE",
"sha256": "3f1ce66533302df3a32edbfdfc0b78f0dd34659e4c1f5817162e5ea3c2297215"
},
{
"file": "licenses/dotnet-wpf-MIT.txt",
"source": "https://raw.githubusercontent.com/dotnet/wpf/bddc4298f5d714c9bc5d8a7441a14ef415c4be32/LICENSE.TXT",
"sha256": "ae48df11a335dc1a615f4f938b69cba73bcf4485c4f97af49b38efb0f216353b"
}
]