@brokkai/bifrost-win32-x64 0.8.22

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.md ADDED
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
package/README.md ADDED
@@ -0,0 +1,179 @@
1
+ <h1 align="center">Bifrost</h1>
2
+
3
+ <p align="center">
4
+ <a href="https://bifrost.brokk.ai/">
5
+ <img src="docs/src/assets/bifrost-social-card.svg" alt="Bifrost — code intelligence for AI, with structural queries and multi-language analysis designed for repository-scale use" width="720">
6
+ </a>
7
+ </p>
8
+
9
+ <p align="center">
10
+ <a href="https://github.com/BrokkAi/bifrost/actions/workflows/ci.yml"><img src="https://github.com/BrokkAi/bifrost/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
11
+ <a href="https://github.com/BrokkAi/bifrost/releases/latest"><img src="https://img.shields.io/github/v/release/BrokkAi/bifrost" alt="Latest release"></a>
12
+ <a href="https://crates.io/crates/brokk-bifrost"><img src="https://img.shields.io/crates/v/brokk-bifrost" alt="crates.io"></a>
13
+ <a href="https://pypi.org/project/brokk-bifrost-searchtools/"><img src="https://img.shields.io/pypi/v/brokk-bifrost-searchtools" alt="PyPI"></a>
14
+ <a href="LICENSE.md"><img src="https://img.shields.io/github/license/BrokkAi/bifrost" alt="LGPL-3.0-or-later"></a>
15
+ </p>
16
+
17
+ <p align="center">
18
+ <a href="#run-your-first-query">Quickstart</a> ·
19
+ <a href="https://bifrost.brokk.ai/">Documentation</a> ·
20
+ <a href="https://bifrost.brokk.ai/evaluate-bifrost/">Ten-minute evaluation</a> ·
21
+ <a href="https://discord.gg/geYkWUeH">Discord</a>
22
+ </p>
23
+
24
+ ## Why Bifrost?
25
+
26
+ `bifrost` is Brokk's Rust-based static analysis toolbox for AI coding harnesses,
27
+ editors, and large repositories.
28
+
29
+ Bifrost gives every supported language a shared intermediate representation, so
30
+ the same structural query and navigation workflows work across a mixed-language
31
+ repository instead of stopping at language boundaries.
32
+
33
+ - **One multi-language IR.** Parse unbuilt or partially broken workspaces and
34
+ normalize their source structure for cross-language analysis.
35
+ - **A real query language.** Use JSON CodeQuery or the Rune Query Language
36
+ (RQL) to find language-neutral code shapes and traverse indexed declarations,
37
+ references, calls, imports, and type relationships.
38
+ - **Built for agents and editors.** Expose structured MCP tools to coding
39
+ agents, LSP features to editors, and the same analyzer through the CLI,
40
+ Python, and Rust.
41
+ - **Designed for active repositories.** Snapshot isolation, incremental updates,
42
+ content-based caching, and git/worktree awareness keep analysis responsive as
43
+ a repository changes.
44
+
45
+ See [Choose Bifrost](https://bifrost.brokk.ai/choose-bifrost/) for the
46
+ right interface for your workflow, and the [Language and Analysis
47
+ Capabilities](https://bifrost.brokk.ai/capabilities/) matrix for
48
+ language-by-language support, precision tiers, and current analysis boundaries.
49
+
50
+ ## Run Your First Query
51
+
52
+ Install the released CLI, clone the small verified evaluation fixture, and run
53
+ its saved RQL query:
54
+
55
+ ```bash
56
+ curl -fsSL https://raw.githubusercontent.com/BrokkAi/bifrost/refs/heads/master/install.sh | bash
57
+ git clone --depth 1 https://github.com/BrokkAi/bifrost.git
58
+ cd bifrost/docs/fixtures/ten-minute-evaluation
59
+ bifrost --root . --query-file queries/find-audit.rql
60
+ ```
61
+
62
+ Users with [uv](https://docs.astral.sh/uv/) or
63
+ [pipx](https://pipx.pypa.io/) can instead run `uv tool install brokk-bifrost` or
64
+ `pipx install brokk-bifrost`; both install the same native `bifrost` command
65
+ from a platform wheel in an isolated environment. `uvx brokk-bifrost --version`
66
+ runs it without a persistent install.
67
+
68
+ The installer downloads the checksum-verified release binary into `~/.local/bin`
69
+ on macOS (Apple Silicon and Intel), Linux (x86-64 glibc or musl, ARM64 glibc),
70
+ WSL, and Android under Termux. Homebrew users on macOS and Linux (x86-64 and
71
+ ARM64 glibc) can run `brew install brokkai/tap/bifrost`
72
+ instead. On Windows, and on ARM64 musl distributions such as Alpine, build from
73
+ source with `cargo install brokk-bifrost --locked`. See
74
+ [Install Bifrost](docs/src/content/docs/install.md) for the full platform
75
+ table.
76
+
77
+ The result identifies the normalized Python call and its exact source location:
78
+
79
+ ```json
80
+ {
81
+ "isError": false,
82
+ "structuredContent": {
83
+ "results": [
84
+ {
85
+ "enclosing_symbol": "src.app.handle",
86
+ "end_line": 5,
87
+ "kind": "call",
88
+ "language": "python",
89
+ "path": "src/app.py",
90
+ "result_type": "structural_match",
91
+ "start_line": 5,
92
+ "text": "audit(value)"
93
+ }
94
+ ],
95
+ "truncated": false
96
+ }
97
+ }
98
+ ```
99
+
100
+ Continue with the [ten-minute
101
+ evaluation](https://bifrost.brokk.ai/evaluate-bifrost/) to run the same
102
+ query through the CLI, an MCP-connected coding agent, and VS Code.
103
+
104
+ ## See Bifrost in Action
105
+
106
+ ### Turn Source into a Query in VS Code
107
+
108
+ <p align="center">
109
+ <a href="https://bifrost.brokk.ai/rune-ir/">
110
+ <img src="docs/src/assets/bifrost-vscode-query-playground.gif" alt="Selecting Python source in VS Code, inspecting its normalized Rune IR, using the generated starter RQL, and browsing the exact query result" width="900">
111
+ </a>
112
+ </p>
113
+
114
+ Select a source construct and run **Bifrost: Show Rune IR** to inspect its
115
+ language-neutral `.rune` form and get a conservative starter RQL query. Run that
116
+ query from the editor, browse typed results grouped by file, and jump to the
117
+ exact source range. The extension also provides definitions, references, hover,
118
+ rename, symbols, hierarchy, diagnostics, completion, and other LSP features.
119
+
120
+ ### Use the Same Analyzer from the CLI
121
+
122
+ <p align="center">
123
+ <a href="https://bifrost.brokk.ai/cli/">
124
+ <img src="docs/src/assets/bifrost-cli-query.gif" alt="Running a saved RQL query with the Bifrost CLI and receiving an exact structured match" width="900">
125
+ </a>
126
+ </p>
127
+
128
+ Run saved RQL or JSON queries directly, or call the same named tools exposed over
129
+ MCP for shell scripts and reproducible analysis workflows.
130
+
131
+ ## Language Coverage
132
+
133
+ Bifrost includes analyzers for C, C++, C#, Go, Java, JavaScript, Kotlin, PHP,
134
+ Python, Ruby, Rust, Scala, and TypeScript. See the [capability
135
+ matrix](https://bifrost.brokk.ai/capabilities/) for the supported
136
+ analysis and precision boundaries in each language.
137
+
138
+ ## Documentation
139
+
140
+ The public documentation site lives in [`docs/`](docs/) and is published at
141
+ [bifrost.brokk.ai](https://bifrost.brokk.ai/).
142
+
143
+ Useful starting points:
144
+
145
+ - [Choose the right Bifrost interface](docs/src/content/docs/choose-bifrost.md)
146
+ - [Third-party notices](docs/src/content/docs/third-party-notices.md)
147
+ - [Install Bifrost](docs/src/content/docs/install.md)
148
+ - [Evaluate Bifrost in ten minutes](docs/src/content/docs/evaluate-bifrost.md)
149
+ - [MCP server and toolsets](docs/src/content/docs/mcp.md)
150
+ - [LSP server](docs/src/content/docs/lsp.md)
151
+ - [CLI usage](docs/src/content/docs/cli.md)
152
+ - [Code querying](docs/src/content/docs/code-querying.md)
153
+
154
+ Run the docs site locally with:
155
+
156
+ ```bash
157
+ cd docs
158
+ npm install
159
+ npm run dev
160
+ ```
161
+
162
+ GitHub Pages publication is handled by `.github/workflows/docs.yml`. Release tag
163
+ builds publish both the latest docs site and a versioned snapshot under
164
+ `versions/<tag>/`.
165
+
166
+ ## License and Commercial Use
167
+
168
+ Bifrost is licensed under `LGPL-3.0-or-later` and may be used in research,
169
+ internal systems, hosted services, and commercial products. The integration and
170
+ distribution boundary determines your obligations. Read [License and Use
171
+ Cases](https://bifrost.brokk.ai/license-use-cases/) for practical
172
+ subprocess, linked-library, hosted-service, and redistribution examples. That
173
+ guide is an orientation, not legal advice; the [license text](LICENSE.md)
174
+ controls.
175
+
176
+ ## Contributing
177
+
178
+ For local development, test commands, repository-local Python workflow, and
179
+ release tagging, see [CONTRIBUTING.md](CONTRIBUTING.md).
package/SOURCE.md ADDED
@@ -0,0 +1,23 @@
1
+ # Corresponding Source
2
+
3
+ Each official Bifrost artifact identifies its version as `X.Y.Z`. The complete
4
+ corresponding source for that artifact, including the build and installation
5
+ scripts, is the Git tag `vX.Y.Z` in the Bifrost repository:
6
+
7
+ https://github.com/BrokkAi/bifrost/releases/tag/vX.Y.Z
8
+
9
+ Replace `X.Y.Z` with the version printed by `bifrost --version`, recorded in the
10
+ Python package metadata, or displayed by the editor extension. The release page
11
+ provides source archives for that exact tag. The repository history is also
12
+ available at:
13
+
14
+ https://github.com/BrokkAi/bifrost
15
+
16
+ Bifrost is licensed under `LGPL-3.0-or-later`. `LICENSE.md` contains the GNU
17
+ LGPL version 3 text, and `GPL-3.0.md` contains the incorporated GNU GPL version
18
+ 3 text. In binary and wheel artifacts,
19
+ `THIRD_PARTY_LICENSES.html` and `SUPPLEMENTAL_THIRD_PARTY_NOTICES.txt` contain
20
+ license information, standalone notices, and exact source-package links for
21
+ incorporated Rust and vendored native dependencies. An artifact-specific
22
+ third-party notice file covers other bundled dependencies, such as the
23
+ production npm packages inside the VS Code extension.