devtime-ei 0.1.0__tar.gz
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.
- devtime_ei-0.1.0/LICENSE +201 -0
- devtime_ei-0.1.0/PKG-INFO +289 -0
- devtime_ei-0.1.0/README.md +253 -0
- devtime_ei-0.1.0/pyproject.toml +67 -0
- devtime_ei-0.1.0/setup.cfg +4 -0
- devtime_ei-0.1.0/src/devtime/__init__.py +9 -0
- devtime_ei-0.1.0/src/devtime/ai/__init__.py +0 -0
- devtime_ei-0.1.0/src/devtime/ai/local.py +11 -0
- devtime_ei-0.1.0/src/devtime/ai/prompts.py +24 -0
- devtime_ei-0.1.0/src/devtime/ai/providers.py +41 -0
- devtime_ei-0.1.0/src/devtime/assets/devtimeignore.starter +23 -0
- devtime_ei-0.1.0/src/devtime/cli.py +374 -0
- devtime_ei-0.1.0/src/devtime/config.py +67 -0
- devtime_ei-0.1.0/src/devtime/db/__init__.py +0 -0
- devtime_ei-0.1.0/src/devtime/db/connection.py +16 -0
- devtime_ei-0.1.0/src/devtime/db/migrations.py +114 -0
- devtime_ei-0.1.0/src/devtime/db/repository.py +351 -0
- devtime_ei-0.1.0/src/devtime/db/schema.sql +145 -0
- devtime_ei-0.1.0/src/devtime/fixtures/__init__.py +0 -0
- devtime_ei-0.1.0/src/devtime/fixtures/assertions.py +51 -0
- devtime_ei-0.1.0/src/devtime/fixtures/loader.py +52 -0
- devtime_ei-0.1.0/src/devtime/fixtures/runner.py +73 -0
- devtime_ei-0.1.0/src/devtime/intelligence/__init__.py +0 -0
- devtime_ei-0.1.0/src/devtime/intelligence/claims.py +235 -0
- devtime_ei-0.1.0/src/devtime/intelligence/concepts.py +483 -0
- devtime_ei-0.1.0/src/devtime/intelligence/context_pack.py +276 -0
- devtime_ei-0.1.0/src/devtime/intelligence/evidence.py +127 -0
- devtime_ei-0.1.0/src/devtime/intelligence/lineage.py +21 -0
- devtime_ei-0.1.0/src/devtime/intelligence/risk.py +267 -0
- devtime_ei-0.1.0/src/devtime/intelligence/scoring.py +99 -0
- devtime_ei-0.1.0/src/devtime/mcp/__init__.py +0 -0
- devtime_ei-0.1.0/src/devtime/mcp/schemas.py +39 -0
- devtime_ei-0.1.0/src/devtime/mcp/server.py +35 -0
- devtime_ei-0.1.0/src/devtime/mcp/tools.py +90 -0
- devtime_ei-0.1.0/src/devtime/output/__init__.py +0 -0
- devtime_ei-0.1.0/src/devtime/output/json_export.py +50 -0
- devtime_ei-0.1.0/src/devtime/output/markdown.py +50 -0
- devtime_ei-0.1.0/src/devtime/output/terminal.py +208 -0
- devtime_ei-0.1.0/src/devtime/paths.py +40 -0
- devtime_ei-0.1.0/src/devtime/privacy.py +96 -0
- devtime_ei-0.1.0/src/devtime/scanner/__init__.py +0 -0
- devtime_ei-0.1.0/src/devtime/scanner/extractors/__init__.py +0 -0
- devtime_ei-0.1.0/src/devtime/scanner/extractors/base.py +83 -0
- devtime_ei-0.1.0/src/devtime/scanner/extractors/config_files.py +41 -0
- devtime_ei-0.1.0/src/devtime/scanner/extractors/docs.py +35 -0
- devtime_ei-0.1.0/src/devtime/scanner/extractors/nextjs.py +82 -0
- devtime_ei-0.1.0/src/devtime/scanner/extractors/python.py +81 -0
- devtime_ei-0.1.0/src/devtime/scanner/extractors/tests.py +61 -0
- devtime_ei-0.1.0/src/devtime/scanner/extractors/typescript.py +99 -0
- devtime_ei-0.1.0/src/devtime/scanner/file_walker.py +96 -0
- devtime_ei-0.1.0/src/devtime/scanner/ignore.py +96 -0
- devtime_ei-0.1.0/src/devtime/scanner/language.py +36 -0
- devtime_ei-0.1.0/src/devtime/scanner/signals.py +252 -0
- devtime_ei-0.1.0/src/devtime_ei.egg-info/PKG-INFO +289 -0
- devtime_ei-0.1.0/src/devtime_ei.egg-info/SOURCES.txt +57 -0
- devtime_ei-0.1.0/src/devtime_ei.egg-info/dependency_links.txt +1 -0
- devtime_ei-0.1.0/src/devtime_ei.egg-info/entry_points.txt +2 -0
- devtime_ei-0.1.0/src/devtime_ei.egg-info/requires.txt +9 -0
- devtime_ei-0.1.0/src/devtime_ei.egg-info/top_level.txt +1 -0
devtime_ei-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
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
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: devtime-ei
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Local-first Engineering Intelligence for software repositories
|
|
5
|
+
Author-email: Aviad Shakargi <aviad94@gmail.com>
|
|
6
|
+
Maintainer-email: Aviad Shakargi <aviad94@gmail.com>
|
|
7
|
+
License: Apache-2.0
|
|
8
|
+
Project-URL: Homepage, https://github.com/Shakargy/devtime
|
|
9
|
+
Project-URL: Repository, https://github.com/Shakargy/devtime
|
|
10
|
+
Project-URL: Issues, https://github.com/Shakargy/devtime/issues
|
|
11
|
+
Project-URL: Release Notes, https://github.com/Shakargy/devtime/releases/tag/v0.1.0
|
|
12
|
+
Project-URL: Demo, https://youtu.be/1Hiu3Y9J_SI
|
|
13
|
+
Keywords: devtools,cli,static-analysis,repository-analysis,engineering-intelligence,local-first
|
|
14
|
+
Classifier: Development Status :: 3 - Alpha
|
|
15
|
+
Classifier: Environment :: Console
|
|
16
|
+
Classifier: Intended Audience :: Developers
|
|
17
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Topic :: Software Development
|
|
22
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
23
|
+
Classifier: Topic :: Utilities
|
|
24
|
+
Requires-Python: >=3.11
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
License-File: LICENSE
|
|
27
|
+
Requires-Dist: typer>=0.12
|
|
28
|
+
Requires-Dist: rich>=13.7
|
|
29
|
+
Requires-Dist: pydantic>=2.7
|
|
30
|
+
Requires-Dist: sqlalchemy>=2.0
|
|
31
|
+
Requires-Dist: pyyaml>=6.0
|
|
32
|
+
Requires-Dist: pathspec>=0.12
|
|
33
|
+
Provides-Extra: dev
|
|
34
|
+
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
35
|
+
Dynamic: license-file
|
|
36
|
+
|
|
37
|
+
# DevTime
|
|
38
|
+
|
|
39
|
+
**Local-first Engineering Intelligence for software repositories.**
|
|
40
|
+
|
|
41
|
+
DevTime helps a codebase explain itself from evidence.
|
|
42
|
+
|
|
43
|
+
It scans code, tests, configs, routes, and decisions to identify supported software
|
|
44
|
+
concepts, link claims to files, surface uncertainty, and warn about a narrow set of
|
|
45
|
+
risky changes.
|
|
46
|
+
|
|
47
|
+
> No cloud. No telemetry. No code execution. No AI required.
|
|
48
|
+
|
|
49
|
+
[](https://youtu.be/1Hiu3Y9J_SI)
|
|
50
|
+
|
|
51
|
+
Watch the 2-minute demo: DevTime scans a repo locally, explains concepts from
|
|
52
|
+
evidence, surfaces uncertainty, catches a risky diff, and shows how a corroborated
|
|
53
|
+
decision improves understanding.
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Try DevTime in 60 seconds
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
git clone https://github.com/Shakargy/devtime.git
|
|
61
|
+
cd devtime
|
|
62
|
+
python -m venv .venv
|
|
63
|
+
source .venv/bin/activate
|
|
64
|
+
pip install -e ".[dev]"
|
|
65
|
+
cd examples/demo-saas
|
|
66
|
+
dtc init
|
|
67
|
+
dtc scan
|
|
68
|
+
dtc concepts
|
|
69
|
+
dtc explain "Billing Webhooks"
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
On Windows PowerShell:
|
|
73
|
+
|
|
74
|
+
```powershell
|
|
75
|
+
git clone https://github.com/Shakargy/devtime.git
|
|
76
|
+
cd devtime
|
|
77
|
+
python -m venv .venv
|
|
78
|
+
.venv\Scripts\Activate.ps1
|
|
79
|
+
pip install -e ".[dev]"
|
|
80
|
+
cd examples/demo-saas
|
|
81
|
+
dtc init
|
|
82
|
+
dtc scan
|
|
83
|
+
dtc concepts
|
|
84
|
+
dtc explain "Billing Webhooks"
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
You should see Billing Webhooks explained from evidence, including supported claims,
|
|
88
|
+
file references, uncertainty, Understanding Score, and Understanding Debt.
|
|
89
|
+
|
|
90
|
+
To test risk review, make a local change first, then run:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
dtc risk --diff
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
A full, copy-pasteable walkthrough (including the risk-diff and corroborated-decision
|
|
97
|
+
steps) is in **[DEMO_SCRIPT.md](DEMO_SCRIPT.md)**.
|
|
98
|
+
|
|
99
|
+
## Why this exists
|
|
100
|
+
|
|
101
|
+
Git remembers code. It does not remember understanding. It does not tell you why a
|
|
102
|
+
behavior exists, what evidence supports it, or what nobody has decided yet. As AI
|
|
103
|
+
tools generate code faster than teams can review it, that missing understanding
|
|
104
|
+
becomes the bottleneck.
|
|
105
|
+
|
|
106
|
+
DevTime builds evidence-backed repository memory: a local layer that says what a
|
|
107
|
+
repository can prove, and - just as importantly - what it cannot prove yet.
|
|
108
|
+
|
|
109
|
+
## Who it is for
|
|
110
|
+
|
|
111
|
+
DevTime is for developers reviewing unfamiliar code, teams using AI coding tools, and
|
|
112
|
+
maintainers who want repository understanding to be backed by evidence instead of
|
|
113
|
+
generated summaries.
|
|
114
|
+
|
|
115
|
+
It is useful when you want to ask:
|
|
116
|
+
|
|
117
|
+
- where is authentication actually implemented?
|
|
118
|
+
- what files prove that billing webhooks exist?
|
|
119
|
+
- what is still uncertain?
|
|
120
|
+
- did this diff touch a risky concept?
|
|
121
|
+
- is there a decision explaining this behavior?
|
|
122
|
+
|
|
123
|
+
## What DevTime does
|
|
124
|
+
|
|
125
|
+
- Detects concepts from routes, tests, configs, dependencies, and docs.
|
|
126
|
+
- Explains from evidence by linking claims to files and signals.
|
|
127
|
+
- Surfaces uncertainty when evidence is missing or weak.
|
|
128
|
+
- Scores understanding with an Understanding Score and Understanding Debt label.
|
|
129
|
+
- Reviews narrow risky diffs with advisory findings from local memory.
|
|
130
|
+
- Records decisions locally so rationale can reduce uncertainty when corroborated by code.
|
|
131
|
+
|
|
132
|
+
## Supported concepts
|
|
133
|
+
|
|
134
|
+
V0 detects six supported concept families. It does not discover arbitrary domain
|
|
135
|
+
concepts yet:
|
|
136
|
+
|
|
137
|
+
- Authentication
|
|
138
|
+
- Billing Webhooks
|
|
139
|
+
- Background Jobs
|
|
140
|
+
- Data Export
|
|
141
|
+
- Admin Permissions
|
|
142
|
+
- File Uploads
|
|
143
|
+
|
|
144
|
+
Anything outside these six is out of scope for V0. See [LIMITATIONS.md](LIMITATIONS.md).
|
|
145
|
+
|
|
146
|
+
## What DevTime does not do
|
|
147
|
+
|
|
148
|
+
- It does not execute your code.
|
|
149
|
+
- It does not send code or data over the network.
|
|
150
|
+
- It does not require or call an AI model.
|
|
151
|
+
- It does not guarantee correctness or safe changes.
|
|
152
|
+
- It does not replace code review or architecture decisions.
|
|
153
|
+
- It is **not** a documentation generator, a static analyzer, an observability tool,
|
|
154
|
+
a productivity tracker, or an AI coding agent.
|
|
155
|
+
|
|
156
|
+
## Trust model
|
|
157
|
+
|
|
158
|
+
- DevTime stores local repository memory in `.devtime/` (a local SQLite database).
|
|
159
|
+
- **No network access** during a scan.
|
|
160
|
+
- **No code execution** during a scan.
|
|
161
|
+
- Ignored directories are pruned *before* scanning; ignored files and secrets must
|
|
162
|
+
never become evidence or claims.
|
|
163
|
+
- Every claim must link to evidence - *no claim without evidence*.
|
|
164
|
+
- Weak evidence produces **uncertainty**, not confidence.
|
|
165
|
+
- *Usage is not decision*: that a dependency is used does not mean someone decided why.
|
|
166
|
+
- Risk review is **advisory** by default - it does not block PRs.
|
|
167
|
+
|
|
168
|
+
## Commands
|
|
169
|
+
|
|
170
|
+
| Command | Purpose |
|
|
171
|
+
|---------|---------|
|
|
172
|
+
| `dtc init` | Create local `.devtime` memory. |
|
|
173
|
+
| `dtc scan` | Scan the current repository and extract evidence-backed signals. |
|
|
174
|
+
| `dtc concepts` | List detected concepts with confidence and Understanding Debt. |
|
|
175
|
+
| `dtc explain <concept>` | Explain a concept: claims, evidence, confidence, uncertainty, Understanding Debt. |
|
|
176
|
+
| `dtc context <concept>` | Create a governed Context Pack for agents or humans. |
|
|
177
|
+
| `dtc risk --diff` | Review a git diff for risky changes using local evidence (advisory). |
|
|
178
|
+
| `dtc decision add` | Add a local decision record that can reduce uncertainty. |
|
|
179
|
+
|
|
180
|
+
(Also available: `dtc evidence`, `dtc debt`, `dtc status`, `dtc doctor --privacy`,
|
|
181
|
+
`dtc export`, `dtc reset`.)
|
|
182
|
+
|
|
183
|
+
Requires **Python >= 3.11** and git. See **[QUICKSTART.md](QUICKSTART.md)** for a
|
|
184
|
+
step-by-step first run and troubleshooting.
|
|
185
|
+
|
|
186
|
+
## Installation
|
|
187
|
+
|
|
188
|
+
Recommended source install for now:
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
git clone https://github.com/Shakargy/devtime.git
|
|
192
|
+
cd devtime
|
|
193
|
+
python -m venv .venv
|
|
194
|
+
source .venv/bin/activate
|
|
195
|
+
pip install -e ".[dev]"
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
Windows PowerShell:
|
|
199
|
+
|
|
200
|
+
```powershell
|
|
201
|
+
git clone https://github.com/Shakargy/devtime.git
|
|
202
|
+
cd devtime
|
|
203
|
+
python -m venv .venv
|
|
204
|
+
.venv\Scripts\Activate.ps1
|
|
205
|
+
pip install -e ".[dev]"
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
Planned PyPI install (after the package is published and verified):
|
|
209
|
+
|
|
210
|
+
```bash
|
|
211
|
+
pipx install devtime
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
## Example output
|
|
215
|
+
|
|
216
|
+
```
|
|
217
|
+
$ dtc explain "Billing Webhooks"
|
|
218
|
+
Concept: Billing Webhooks
|
|
219
|
+
|
|
220
|
+
Supported claims:
|
|
221
|
+
- Billing Webhooks is present and supported by behavior evidence.
|
|
222
|
+
type: concept confidence: 0.86 evidence: src/billing/stripe-webhook.ts, tests/stripe-signature.test.ts
|
|
223
|
+
- Billing Webhooks has active route handling.
|
|
224
|
+
type: behavior confidence: 0.82 evidence: src/billing/stripe-webhook.ts
|
|
225
|
+
- Billing Webhooks verifies webhook signatures.
|
|
226
|
+
type: behavior confidence: 0.85 evidence: src/billing/stripe-webhook.ts
|
|
227
|
+
|
|
228
|
+
Uncertainty:
|
|
229
|
+
- No decision was found explaining key choices for Billing Webhooks.
|
|
230
|
+
|
|
231
|
+
Understanding Score: 58 / 100
|
|
232
|
+
Understanding Debt: medium
|
|
233
|
+
causes:
|
|
234
|
+
- missing or uncorroborated decision evidence
|
|
235
|
+
- no confirmed owner
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
> Understanding Score is higher = better understanding; Understanding Debt is a
|
|
239
|
+
> label (low/medium/high), not the same number.
|
|
240
|
+
|
|
241
|
+
## Proof
|
|
242
|
+
|
|
243
|
+
DevTime runs on `examples/demo-saas` and on real repositories. During Reality
|
|
244
|
+
Validation it detected - and then learned from - real failures (Next.js App Router
|
|
245
|
+
blindness, a false Billing Webhooks detection on a generic webhook system, a DB
|
|
246
|
+
migration mis-counted as Background Jobs evidence, and more). Each failure became a
|
|
247
|
+
fixture so it cannot silently regress.
|
|
248
|
+
|
|
249
|
+
- Tests grew from 13 to 88 as real failures became fixtures.
|
|
250
|
+
- Scan time on a 355-file real repo dropped from ~27.3s to ~0.48s after ignored-
|
|
251
|
+
directory pruning.
|
|
252
|
+
|
|
253
|
+
Full evidence, before/after examples, and the validation reports are in
|
|
254
|
+
**[PROOF.md](PROOF.md)** and `reports/reality-validation/`.
|
|
255
|
+
|
|
256
|
+
## Privacy and safety
|
|
257
|
+
|
|
258
|
+
- Runs entirely locally; nothing leaves your machine during a scan.
|
|
259
|
+
- No code execution and no network calls during scanning.
|
|
260
|
+
- Secrets and ignored files are excluded from evidence by design (`dtc doctor
|
|
261
|
+
--privacy` reports the boundaries).
|
|
262
|
+
- `dtc reset` deletes local memory; your source code is never modified.
|
|
263
|
+
|
|
264
|
+
## Known limitations
|
|
265
|
+
|
|
266
|
+
DevTime is a **heuristic scanner**, not a full compiler or semantic analyzer. It is
|
|
267
|
+
currently strongest on TypeScript / Next.js / Express / FastAPI-style repositories
|
|
268
|
+
that resemble its fixtures. False positives and false negatives are possible.
|
|
269
|
+
Understanding Debt is a product signal, not an objective universal truth.
|
|
270
|
+
|
|
271
|
+
Read the full list - including framework coverage, risk-review scope, and what is
|
|
272
|
+
intentionally not built yet - in **[LIMITATIONS.md](LIMITATIONS.md)**.
|
|
273
|
+
|
|
274
|
+
## Roadmap
|
|
275
|
+
|
|
276
|
+
This is an early, local-first V0 focused on being trustworthy before being large.
|
|
277
|
+
Not yet built (intentionally): git-history signals, wired MCP transport, an AI
|
|
278
|
+
provider, a UI, and any cloud/team/enterprise features. See **[ROADMAP.md](ROADMAP.md)**.
|
|
279
|
+
|
|
280
|
+
## Contributing
|
|
281
|
+
|
|
282
|
+
The most valuable contribution is a **fixture**: a small repository pattern plus the
|
|
283
|
+
expected concepts, allowed claims, forbidden claims, and required uncertainty. If
|
|
284
|
+
DevTime gets something wrong on your code, that wrong output can become a fixture so
|
|
285
|
+
it never regresses. See **[CONTRIBUTING.md](CONTRIBUTING.md)**.
|
|
286
|
+
|
|
287
|
+
## License
|
|
288
|
+
|
|
289
|
+
Licensed under the **Apache License 2.0**. See [LICENSE](LICENSE).
|