tessera-codegraph-linux-arm64-musl 1.2.0 → 1.2.1
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 +176 -0
- package/THIRD-PARTY-NOTICES +2035 -0
- package/bin/LICENSE +176 -0
- package/bin/README.md +338 -0
- package/bin/THIRD-PARTY-NOTICES +2035 -0
- package/bin/tessera +0 -0
- package/package.json +4 -2
package/bin/LICENSE
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
package/bin/README.md
ADDED
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<picture>
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="assets/logo-dark.svg">
|
|
4
|
+
<img src="assets/logo-light.svg" alt="Tessera" width="420">
|
|
5
|
+
</picture>
|
|
6
|
+
</p>
|
|
7
|
+
|
|
8
|
+
<h3 align="center">Your agent says done. Tessera checks.</h3>
|
|
9
|
+
|
|
10
|
+
<p align="center">
|
|
11
|
+
Deterministic blast radius before every edit and verification after it, for any AI coding agent.<br>
|
|
12
|
+
Local, no LLM, Apache-2.0.
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<a href="https://github.com/iamsaquib8/tessera/actions/workflows/ci.yml"><img src="https://github.com/iamsaquib8/tessera/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
|
|
17
|
+
<a href="https://crates.io/crates/tessera-codegraph"><img src="https://img.shields.io/crates/v/tessera-codegraph.svg" alt="crates.io"></a>
|
|
18
|
+
<a href="https://www.npmjs.com/package/tessera-codegraph"><img src="https://img.shields.io/npm/v/tessera-codegraph.svg" alt="npm"></a>
|
|
19
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue.svg" alt="License: Apache-2.0"></a>
|
|
20
|
+
<a href="https://iamsaquib8.github.io/tessera/"><img src="https://img.shields.io/badge/docs-iamsaquib8.github.io%2Ftessera-2b4bdb.svg" alt="Docs"></a>
|
|
21
|
+
</p>
|
|
22
|
+
|
|
23
|
+
<p align="center">
|
|
24
|
+
<img src="assets/demo.svg" alt="tessera blast ranks the callers of formatName; tessera context shows findById with its callers and callees; tessera verify catches two calls to functions that do not exist" width="760">
|
|
25
|
+
</p>
|
|
26
|
+
|
|
27
|
+
## Why
|
|
28
|
+
|
|
29
|
+
Coding agents edit code they have only partly read. They grep, open a few
|
|
30
|
+
files, change a function, and report success. The caller in another module
|
|
31
|
+
that still passes the old arguments turns up later, in CI, in review, or in
|
|
32
|
+
production.
|
|
33
|
+
|
|
34
|
+
Tessera gives the agent an exact local map of the code and checks its work
|
|
35
|
+
against it:
|
|
36
|
+
|
|
37
|
+
- **Before an edit:** `blast` ranks every caller a change can affect and lists
|
|
38
|
+
the tests to run. `context` returns the body, callers, and callees in one
|
|
39
|
+
budgeted read instead of five file opens.
|
|
40
|
+
- **After an edit:** `verify` catches calls to names that do not exist, wrong
|
|
41
|
+
argument counts, broken imports, and call sites a rename left behind.
|
|
42
|
+
Hooks run it after every edit and hold the agent at "done" until the
|
|
43
|
+
breakage is fixed, in Claude Code, Codex, Gemini CLI, Copilot, Cursor and
|
|
44
|
+
more.
|
|
45
|
+
- **Across services:** `map` links HTTP routes, gRPC methods, GraphQL fields,
|
|
46
|
+
Kafka topics, tables, and config keys to the code on both sides, in any
|
|
47
|
+
language Tessera reads, so a changed endpoint shows the frontend code that
|
|
48
|
+
calls it, and `verify` catches a removed route that a client still calls.
|
|
49
|
+
- **On every pull request:** the GitHub Action comments what the change
|
|
50
|
+
breaks, who calls the changed code, and which tests to run.
|
|
51
|
+
|
|
52
|
+
The map is deterministic. tree-sitter parses, SQLite stores, and the same code
|
|
53
|
+
always gives the same answer. No model builds it, and nothing leaves your
|
|
54
|
+
machine.
|
|
55
|
+
|
|
56
|
+
## Quick start
|
|
57
|
+
|
|
58
|
+
Install the binary (macOS and Linux; checksum-verified, from the GitHub
|
|
59
|
+
release):
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
curl -fsSL https://raw.githubusercontent.com/iamsaquib8/tessera/main/install.sh | sh
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Then, inside any repository:
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
tessera blast <symbol>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
There is no setup step: the first query builds the index in `.tessera/`, and
|
|
72
|
+
every later query refreshes only what changed. Then wire it into your agents:
|
|
73
|
+
|
|
74
|
+
```sh
|
|
75
|
+
tessera init
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
The same commands run without installing anything (Node 18+):
|
|
79
|
+
`npx tessera-codegraph blast <symbol>` and `npx tessera-codegraph init`.
|
|
80
|
+
|
|
81
|
+
`init` finds the agents you use (Claude Code, Codex, Gemini CLI, Cursor,
|
|
82
|
+
Copilot and 16 more), shows the diff of every config change, and asks before
|
|
83
|
+
writing. It adds the MCP server and, where the agent supports them, the
|
|
84
|
+
[edit-safety hooks](docs/hooks.md). In Claude Code you can install the plugin
|
|
85
|
+
instead:
|
|
86
|
+
|
|
87
|
+
```text
|
|
88
|
+
/plugin marketplace add iamsaquib8/tessera
|
|
89
|
+
/plugin install tessera@tessera
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Manual setup for every agent is in [docs/integrations.md](docs/integrations.md),
|
|
93
|
+
and everything else is on the [docs site](https://iamsaquib8.github.io/tessera/).
|
|
94
|
+
|
|
95
|
+
<details>
|
|
96
|
+
<summary>Other ways to install</summary>
|
|
97
|
+
|
|
98
|
+
```sh
|
|
99
|
+
npm i -g tessera-codegraph # Node 18+, prebuilt binary, no install scripts
|
|
100
|
+
cargo binstall tessera-codegraph # prebuilt via cargo-binstall
|
|
101
|
+
cargo install tessera-codegraph # from source, Rust 1.90+
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
A Homebrew tap and a public container image are not available yet.
|
|
105
|
+
|
|
106
|
+
On Windows, use npm, `cargo install`, or the `.zip` on the
|
|
107
|
+
[releases page](https://github.com/iamsaquib8/tessera/releases), which also
|
|
108
|
+
has archives for macOS and Linux (x86_64 and aarch64).
|
|
109
|
+
|
|
110
|
+
</details>
|
|
111
|
+
|
|
112
|
+
## How it works
|
|
113
|
+
|
|
114
|
+
<picture>
|
|
115
|
+
<source media="(prefers-color-scheme: dark)" srcset="assets/how-it-works-dark.svg">
|
|
116
|
+
<img src="assets/how-it-works-light.svg" alt="Before the edit, blast and context; your agent edits; after the edit, verify. Both read a local tree-sitter and SQLite index." width="860">
|
|
117
|
+
</picture>
|
|
118
|
+
|
|
119
|
+
| Command | Answers |
|
|
120
|
+
| --- | --- |
|
|
121
|
+
| `tessera blast <symbol>` / `--diff <rev>` | What does this change affect? Callers ranked by impact, plus tests to run |
|
|
122
|
+
| `tessera context <symbol>` | What do I need to read before editing this? |
|
|
123
|
+
| `tessera verify --changed` / `--staged` / `--diff <rev>` | Did this change break a call site, an argument count, or an import? Exits 1 if so |
|
|
124
|
+
| `tessera verify --snippet <file> --language <lang>` | Does everything this code calls exist? |
|
|
125
|
+
| `tessera find <symbol>` / `--path <file>` | Where is it defined? What is in this file? |
|
|
126
|
+
| `tessera refs <symbol \| file>` | Who calls it? Who imports this file? |
|
|
127
|
+
| `tessera cycles` | Which modules import each other circularly? |
|
|
128
|
+
| `tessera search <pattern>` / `--unused` | Which symbols match? Which functions are never called? |
|
|
129
|
+
| `tessera path <from> <to>` | Does A reach B, and how? Follows routes and gRPC calls across services |
|
|
130
|
+
| `tessera map <route\|rpc\|graphql\|topic\|table\|config\|service> [query]` | Which services call this endpoint, method, field, or topic? Who sets the config key this code reads? |
|
|
131
|
+
| `tessera map route --drift` | Do the routes served in code match the OpenAPI or Swagger documents? |
|
|
132
|
+
| `tessera affected <rev>` | Which tests does this change reach, and why? |
|
|
133
|
+
| `tessera ui` | What does my working tree change, and how do the services connect? In the browser |
|
|
134
|
+
| `tessera stats` | What did the edit hooks catch, and did the agent fix it? |
|
|
135
|
+
| `tessera export` | The call graph as Mermaid or Graphviz DOT |
|
|
136
|
+
| `tessera status` | Is the index fresh? Is anything misconfigured? |
|
|
137
|
+
| `tessera init` | Wire Tessera into the agents this project uses |
|
|
138
|
+
|
|
139
|
+
Eleven queries are also MCP tools (`tessera mcp`): `find`, `search`, `refs`,
|
|
140
|
+
`blast`, `verify`, `context`, `path`, `map`, `status`, `affected`, and
|
|
141
|
+
`import_cycles` (the CLI's `cycles`). The tools are read-only, paginated, and
|
|
142
|
+
return compact text so they cost few tokens ([docs/mcp.md](docs/mcp.md)).
|
|
143
|
+
Every command takes `--json`. See
|
|
144
|
+
[the guides](docs/guides/index.md) for real output.
|
|
145
|
+
|
|
146
|
+
## See the impact
|
|
147
|
+
|
|
148
|
+
```sh
|
|
149
|
+
tessera ui --open
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
<p align="center">
|
|
153
|
+
<img src="assets/ui-impact.png" alt="Change impact for a renamed gRPC handler in microservices-demo: two problems to fix, the checkout and frontend calls to ShippingService/GetQuote that it no longer serves" width="49%">
|
|
154
|
+
<img src="assets/ui-map.png" alt="The contract map of microservices-demo: one tile per service, linked by the gRPC methods between them" width="49%">
|
|
155
|
+
</p>
|
|
156
|
+
|
|
157
|
+
A local page on `127.0.0.1` shows what your uncommitted work touches:
|
|
158
|
+
blocking problems, changed symbols, their callers ranked by impact,
|
|
159
|
+
contracts with services on the other side, and the tests to run. The
|
|
160
|
+
contract map draws services and the routes, gRPC methods, and topics
|
|
161
|
+
between them, grouped by directory when there are many, and lists every
|
|
162
|
+
contract with its tables; every symbol links to its definition, callers,
|
|
163
|
+
and tests. Nothing loads from the network. `tessera ui --export
|
|
164
|
+
site/` writes the same page as a static site for a demo or an internal wiki.
|
|
165
|
+
|
|
166
|
+
## On every pull request
|
|
167
|
+
|
|
168
|
+
```yaml
|
|
169
|
+
# .github/workflows/tessera.yml
|
|
170
|
+
name: Tessera
|
|
171
|
+
on: pull_request
|
|
172
|
+
permissions:
|
|
173
|
+
contents: read
|
|
174
|
+
pull-requests: write
|
|
175
|
+
jobs:
|
|
176
|
+
tessera:
|
|
177
|
+
runs-on: ubuntu-latest
|
|
178
|
+
steps:
|
|
179
|
+
- uses: actions/checkout@v4
|
|
180
|
+
- uses: iamsaquib8/tessera/action@v1
|
|
181
|
+
with:
|
|
182
|
+
fail-on: blocking # or `never` (default) to only comment
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
One comment per pull request, updated on every push: problems to fix,
|
|
186
|
+
contracts the change touches, callers of the changed code, tests to run,
|
|
187
|
+
and changed functions no test reaches. On forks it writes the job summary
|
|
188
|
+
instead. The same report is `tessera verify --diff <base> --format
|
|
189
|
+
markdown` for any other CI. [action/README.md](action/README.md) lists the
|
|
190
|
+
inputs, including `upload-sarif` for code scanning.
|
|
191
|
+
|
|
192
|
+
- **Run only the tests the change reaches.** `tessera affected origin/main`
|
|
193
|
+
lists them, each with the chain from the test to the changed code;
|
|
194
|
+
lockfile, build-file and CI-configuration changes run everything and
|
|
195
|
+
say why. `--format jest | vitest | pytest | go-test | cargo` prints the
|
|
196
|
+
command. The Action exposes the list as the `tests` and `tests-file`
|
|
197
|
+
outputs, and the reason to run everything as `full-run`. On three public
|
|
198
|
+
monorepos it selected 249 of 251 failing test files after seeded breaks
|
|
199
|
+
([ROADMAP.md](ROADMAP.md)).
|
|
200
|
+
- **Adopt it on a codebase with known problems.** `tessera baseline`
|
|
201
|
+
records today's findings so only new ones block; `tessera accept
|
|
202
|
+
<fingerprint> --reason …` records an intended break, with an optional
|
|
203
|
+
expiry.
|
|
204
|
+
- **Any CI, any review tool.** `verify --format` takes `human`, `agent`,
|
|
205
|
+
`json`, `sarif`, `markdown`, `gitlab` (Code Quality), `azure`, `bitbucket`
|
|
206
|
+
(Code Insights), `ndjson` and `junit`. `tessera cache export <file>` and
|
|
207
|
+
`tessera cache import <file>` carry the index between CI runs. See
|
|
208
|
+
[docs/ci.md](docs/ci.md).
|
|
209
|
+
|
|
210
|
+
## Works with every agent and every model
|
|
211
|
+
|
|
212
|
+
Tessera never calls a model, so Claude, GPT, Gemini, Grok, DeepSeek, Qwen, and
|
|
213
|
+
local models all work. `tessera init` sets up each agent below.
|
|
214
|
+
|
|
215
|
+
| Agent | MCP tools | Checks every edit |
|
|
216
|
+
| --- | --- | --- |
|
|
217
|
+
| Claude Code | ✓ | ✓ plugin or `init` |
|
|
218
|
+
| Codex CLI | ✓ | ✓ |
|
|
219
|
+
| Gemini CLI | ✓ | ✓ |
|
|
220
|
+
| GitHub Copilot CLI | ✓ | ✓ |
|
|
221
|
+
| Cursor | ✓ | ✓ |
|
|
222
|
+
| Qwen Code | ✓ | ✓ |
|
|
223
|
+
| Augment (Auggie) | ✓ `--global` | ✓ |
|
|
224
|
+
| Google Antigravity | ✓ | ✓ reported at stop |
|
|
225
|
+
| VS Code Copilot agent | ✓ | git hook |
|
|
226
|
+
| Grok Build | ✓ | git hook |
|
|
227
|
+
| OpenCode | ✓ | git hook |
|
|
228
|
+
| Kilo Code | ✓ | git hook |
|
|
229
|
+
| Kiro | ✓ | git hook |
|
|
230
|
+
| JetBrains Junie | ✓ | git hook |
|
|
231
|
+
| Amp | ✓ | git hook |
|
|
232
|
+
| Warp | ✓ | git hook |
|
|
233
|
+
| Continue | ✓ | git hook |
|
|
234
|
+
| Cline | ✓ `--global` | git hook |
|
|
235
|
+
| Devin Desktop | ✓ `--global` | git hook |
|
|
236
|
+
| Zed | ✓ `--global` | git hook |
|
|
237
|
+
| Goose | ✓ `--global` | git hook |
|
|
238
|
+
| Aider | lint loop | git hook |
|
|
239
|
+
|
|
240
|
+
**Checks every edit** means hooks that run `verify` after each edit and
|
|
241
|
+
hold the agent at "done" while a break remains ([docs/hooks.md](docs/hooks.md)).
|
|
242
|
+
**git hook** is `tessera init --git-hook`: a pre-commit check that refuses a
|
|
243
|
+
commit that breaks a call site or an import, for any agent and for people.
|
|
244
|
+
`--global` agents keep MCP config only in the home directory. Config for each
|
|
245
|
+
agent is in [docs/integrations.md](docs/integrations.md); the sourced matrix
|
|
246
|
+
of hook capabilities is in [docs/agents.md](docs/agents.md).
|
|
247
|
+
|
|
248
|
+
## Languages
|
|
249
|
+
|
|
250
|
+
TypeScript, TSX/React, JavaScript (ESM and CommonJS), Java, Python, Go, Rust,
|
|
251
|
+
C, C++, C#, Ruby, PHP. TypeScript interfaces, type aliases and enums are
|
|
252
|
+
indexed as symbols.
|
|
253
|
+
|
|
254
|
+
**Deep tier: TypeScript, TSX, JavaScript, and Java.** References resolve
|
|
255
|
+
through imports, re-exports, tsconfig paths, workspace packages, Java
|
|
256
|
+
packages, declared types, and overloads, and every one carries a confidence.
|
|
257
|
+
Against scip-typescript and scip-java ground truth on excalidraw, nest,
|
|
258
|
+
Ghost core, and two Spring applications, a high-confidence reference is
|
|
259
|
+
right **99.8%** of the time in TypeScript/JavaScript and **99.5%** in Java.
|
|
260
|
+
Tessera finds 99.0% of direct calls, 91.2% of calls on typed receivers, and
|
|
261
|
+
98.6% of type references in TypeScript/JavaScript, and 87.2%, 93.5% and
|
|
262
|
+
100% in Java. Some repositories fall below the release gate in one category
|
|
263
|
+
(Ghost's typed receivers, for one), and the Java sample is small: read the
|
|
264
|
+
numbers with their sample sizes in [accuracy](docs/accuracy.md).
|
|
265
|
+
|
|
266
|
+
The other languages are at the **standard** tier: resolved within a file and
|
|
267
|
+
by unique name, labelled when a match is only possible.
|
|
268
|
+
[Current limits](docs/when-not-to-use.md) are listed plainly.
|
|
269
|
+
|
|
270
|
+
Contracts between services are read for gRPC in Go, C#, Node, Python, Java
|
|
271
|
+
and C++; for HTTP in Express, Fastify, NestJS, Next.js, Spring, Go
|
|
272
|
+
(`net/http`, chi, gin, echo), FastAPI, Flask, Django, Rails, Sinatra,
|
|
273
|
+
actix-web, Slim and ASP.NET minimal APIs, with their clients; and for Kafka,
|
|
274
|
+
GraphQL, config keys, and SQL, JPA, TypeORM, Sequelize and Prisma tables
|
|
275
|
+
([docs/contracts.md](docs/contracts.md)). Hand-labelled on
|
|
276
|
+
microservices-demo, 15 of 15 gRPC servers and 34 of 34 clients link, with no
|
|
277
|
+
wrong links; HTTP client recall is lower where a URL is assembled at
|
|
278
|
+
runtime ([measured](docs/contracts.md#accuracy)).
|
|
279
|
+
|
|
280
|
+
`tessera map route --drift` compares the routes declared in OpenAPI 3 and
|
|
281
|
+
Swagger documents with the routes served in code, and lists those served but
|
|
282
|
+
not documented, documented but not served, or served under another method
|
|
283
|
+
([spec drift](docs/contracts.md#spec-drift)). The Slim and ASP.NET packs,
|
|
284
|
+
spec drift and `verify --format junit` are on `main` and not yet in a
|
|
285
|
+
release; the other commands, formats and packs here are in 1.2.0.
|
|
286
|
+
|
|
287
|
+
## FAQ
|
|
288
|
+
|
|
289
|
+
**Why not just run `tsc` or use an LSP?** Run them too. Tessera checks only
|
|
290
|
+
the changed code against an index of the whole repository, so it fits in an
|
|
291
|
+
agent's edit loop. It works the same way in all twelve languages, including
|
|
292
|
+
JavaScript, Python, and Ruby projects that have no type checker, and it
|
|
293
|
+
covers breaks between services that no compiler sees. An LSP answers one
|
|
294
|
+
editor's questions about one project; Tessera keeps one index for the whole
|
|
295
|
+
repository, or a workspace of repositories, that any agent can query.
|
|
296
|
+
|
|
297
|
+
**Does my code leave my machine?** No. The index is a SQLite file in
|
|
298
|
+
`.tessera/`, gitignored automatically. Tessera makes no network calls, and
|
|
299
|
+
`blast --diff` runs only a local `git diff`.
|
|
300
|
+
|
|
301
|
+
**Is it accurate?** Measured, not claimed: on public TypeScript,
|
|
302
|
+
JavaScript, and Java repositories, 99.8% (TypeScript/JavaScript) and 99.5%
|
|
303
|
+
(Java) of high-confidence references match SCIP ground truth
|
|
304
|
+
([accuracy](docs/accuracy.md)). Weaker matches are labelled, never silent.
|
|
305
|
+
The benchmark is public ([tessera-bench](https://github.com/iamsaquib8/tessera-bench)),
|
|
306
|
+
so you can check the numbers yourself.
|
|
307
|
+
|
|
308
|
+
**Will it slow my agent down?** The MCP server keeps the index fresh in the
|
|
309
|
+
background as files change. A CLI query first checks that the index is
|
|
310
|
+
fresh, a stat walk of the repository. Perf budgets run in CI on a synthetic
|
|
311
|
+
10,000-file index: the freshness check under 100 ms, and `find` and `refs`
|
|
312
|
+
under 50 ms at p95 ([tests/perf.rs](tests/perf.rs)). Indexing is incremental.
|
|
313
|
+
|
|
314
|
+
**Can I build on it?** Yes. Commands, flags, `--json` fields, MCP tool
|
|
315
|
+
schemas, hook replies, and exit codes are stable for 1.x, and a test suite
|
|
316
|
+
pins them ([docs/stability.md](docs/stability.md)).
|
|
317
|
+
|
|
318
|
+
## Roadmap
|
|
319
|
+
|
|
320
|
+
Released: v1.0 and, in 1.2.0, the completed contract map (v1.1) and team and
|
|
321
|
+
CI features (v1.2). Next are every install channel published on every
|
|
322
|
+
release (1.2.x), no silent wrong answers (v1.3), and the public launch
|
|
323
|
+
(v1.4). [ROADMAP.md](ROADMAP.md) has every planned version through v2.0 and
|
|
324
|
+
what proves each one done.
|
|
325
|
+
|
|
326
|
+
## Contributing
|
|
327
|
+
|
|
328
|
+
New languages, framework packs, and agent adapters are small, self-contained
|
|
329
|
+
pull requests with fixtures. [CONTRIBUTING.md](CONTRIBUTING.md) explains each
|
|
330
|
+
one. Issues labelled
|
|
331
|
+
[`good first issue`](https://github.com/iamsaquib8/tessera/labels/good%20first%20issue)
|
|
332
|
+
are scoped for a first PR.
|
|
333
|
+
|
|
334
|
+
If Tessera saves your agent from a bad edit, a star helps other people find it.
|
|
335
|
+
|
|
336
|
+
## License
|
|
337
|
+
|
|
338
|
+
Apache-2.0. See [LICENSE](LICENSE).
|