sembl 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.
sembl-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Siddharth Totla (speedvibecode)
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.
sembl-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,206 @@
1
+ Metadata-Version: 2.4
2
+ Name: sembl
3
+ Version: 0.1.0
4
+ Summary: Turn messy repo intent into scoped AI Work Orders
5
+ Author-email: speedvibecode <f20220620@hyderabad.bits-pilani.ac.in>, Siddharth Totla <totlasiddharth@gmail.com>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://sembl.vercel.app
8
+ Project-URL: Repository, https://github.com/speedvibecode/sembl
9
+ Project-URL: Issues, https://github.com/speedvibecode/sembl/issues
10
+ Keywords: ai,coding-agents,work-order,code-review,llm,developer-tools
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: Software Development :: Code Generators
20
+ Classifier: Topic :: Software Development :: Quality Assurance
21
+ Requires-Python: >=3.10
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Requires-Dist: openai>=1.30.0
25
+ Requires-Dist: anthropic>=0.25.0
26
+ Requires-Dist: click>=8.1.0
27
+ Requires-Dist: rich>=13.0.0
28
+ Provides-Extra: graph
29
+ Requires-Dist: graphifyy>=0.8.0; extra == "graph"
30
+ Provides-Extra: crg
31
+ Requires-Dist: code-review-graph; extra == "crg"
32
+ Provides-Extra: graph-pipeline
33
+ Requires-Dist: graphifyy>=0.8.0; extra == "graph-pipeline"
34
+ Requires-Dist: code-review-graph; extra == "graph-pipeline"
35
+ Dynamic: license-file
36
+
37
+ # Sembl
38
+
39
+ Turn messy repo intent into scoped AI Work Orders.
40
+
41
+ Sembl is not an AI coding agent. It is the layer that runs before one:
42
+
43
+ ```text
44
+ repo + task -> Work Order -> agent executes with tighter scope
45
+ ```
46
+
47
+ A Work Order is an execution contract. It tells an agent:
48
+
49
+ - what the goal is, and what it is not
50
+ - which files it can touch
51
+ - which files it should inspect but not modify
52
+ - what must be true when it finishes
53
+ - how to prove it succeeded
54
+ - when to stop and ask a human
55
+
56
+ Website: https://sembl.vercel.app
57
+
58
+ ## Current Status
59
+
60
+ Sembl is early but usable for testing. The current CLI supports:
61
+
62
+ - repo probing for language/framework/branch/dirty state
63
+ - optional Graphify context
64
+ - optional code-review-graph context
65
+ - graph-required mode with `--require-graph-context`
66
+ - OpenAI, Anthropic, Gemini, and NVIDIA NIM providers
67
+ - work-order output as Markdown, JSON, executor prompt, and validation plan
68
+
69
+ The best current test path is graph-first:
70
+
71
+ ```powershell
72
+ uv pip install "sembl[graph-pipeline] @ git+https://github.com/speedvibecode/sembl.git"
73
+ sembl generate --repo C:\path\to\repo --task "fix the failing login redirect test" --provider nvidia --require-graph-context
74
+ ```
75
+
76
+ ## Install From GitHub
77
+
78
+ For tester installs without cloning the repo:
79
+
80
+ ```powershell
81
+ uv pip install "sembl[graph-pipeline] @ git+https://github.com/speedvibecode/sembl.git"
82
+ ```
83
+
84
+ For a CLI tool install without graph extras:
85
+
86
+ ```powershell
87
+ uv tool install git+https://github.com/speedvibecode/sembl.git
88
+ ```
89
+
90
+ The future public package path is:
91
+
92
+ ```powershell
93
+ uv tool install sembl
94
+ pip install sembl
95
+ ```
96
+
97
+ That requires publishing the package to PyPI first.
98
+
99
+ ## Install From Source
100
+
101
+ ```powershell
102
+ git clone https://github.com/speedvibecode/sembl
103
+ cd sembl
104
+ uv pip install -e ".[graph-pipeline]"
105
+ ```
106
+
107
+ Plain pip also works:
108
+
109
+ ```powershell
110
+ pip install -e ".[graph-pipeline]"
111
+ ```
112
+
113
+ ## Provider Keys
114
+
115
+ Set one provider key before generation:
116
+
117
+ ```powershell
118
+ $env:OPENAI_API_KEY="..."
119
+ $env:ANTHROPIC_API_KEY="..."
120
+ $env:GEMINI_API_KEY="..."
121
+ $env:NVIDIA_API_KEY="..."
122
+ ```
123
+
124
+ Then choose the provider:
125
+
126
+ ```powershell
127
+ sembl generate --repo C:\path\to\repo --task "replace starter screen text" --provider nvidia
128
+ ```
129
+
130
+ ## Optional Graph Context
131
+
132
+ Sembl can run without graph tools, but the strongest results come from Graphify plus code-review-graph.
133
+
134
+ ```powershell
135
+ graphify update C:\path\to\repo --no-cluster
136
+ code-review-graph build --repo C:\path\to\repo --data-dir C:\path\to\repo-specific-crg-data --skip-flows
137
+
138
+ $env:CRG_DATA_DIR="C:\path\to\repo-specific-crg-data"
139
+ sembl generate --repo C:\path\to\repo --task "fix the failing login redirect test" --provider nvidia --require-graph-context
140
+ ```
141
+
142
+ Sembl guards against stale generic `CRG_DATA_DIR` values by deriving a repo-specific graph data directory when the env var does not look like it belongs to the target repo.
143
+
144
+ ## Usage
145
+
146
+ ```powershell
147
+ # Generate a Work Order for the current repo
148
+ sembl generate --task "add recurring expenses to this tracker" --provider nvidia
149
+
150
+ # Generate for an explicit repo
151
+ sembl generate --repo C:\path\to\repo --task "fix the login redirect bug" --provider nvidia
152
+
153
+ # Refuse direct-probe fallback
154
+ sembl generate --repo C:\path\to\repo --task "fix the login redirect bug" --provider nvidia --require-graph-context
155
+
156
+ # List Work Orders
157
+ sembl list
158
+
159
+ # Show latest Work Order
160
+ sembl show
161
+
162
+ # Show the executor prompt
163
+ sembl show --file executor-prompt
164
+ ```
165
+
166
+ ## Output
167
+
168
+ ```text
169
+ .sembl/work-orders/wo-myproject-{timestamp}-{slug}/
170
+ work-order.md - read this
171
+ executor-prompt.md - paste into your agent
172
+ validation-plan.md - run this after
173
+ work-order.json - machine-readable
174
+ ```
175
+
176
+ ## The 8 Locks
177
+
178
+ | Lock | Purpose |
179
+ |------|---------|
180
+ | Intent | Goal, outcome, task type |
181
+ | Boundary | Non-goals, forbidden areas |
182
+ | Scope | Editable paths, read-only context |
183
+ | Context | Files to inspect, architecture notes |
184
+ | Success | Acceptance criteria, regressions |
185
+ | Proof | Validation commands, tests to add |
186
+ | Safety | Stop conditions, risk level |
187
+ | Executor | Agent-ready prompt, patch expectations |
188
+
189
+ ## Local Test
190
+
191
+ ```powershell
192
+ python -m unittest discover -s tests -v
193
+ python -m compileall -q sembl tests
194
+ ```
195
+
196
+ ## Testing Notes
197
+
198
+ If you test Sembl on a real repo, the best feedback is:
199
+
200
+ - the exact command you ran
201
+ - whether graph context was available
202
+ - the generated `work-order.md`
203
+ - whether the executor agent could complete the task without scope confusion
204
+ - any hallucinated files, missing validation commands, or false stop conditions
205
+
206
+ Models write code. Sembl makes the work governable.
sembl-0.1.0/README.md ADDED
@@ -0,0 +1,170 @@
1
+ # Sembl
2
+
3
+ Turn messy repo intent into scoped AI Work Orders.
4
+
5
+ Sembl is not an AI coding agent. It is the layer that runs before one:
6
+
7
+ ```text
8
+ repo + task -> Work Order -> agent executes with tighter scope
9
+ ```
10
+
11
+ A Work Order is an execution contract. It tells an agent:
12
+
13
+ - what the goal is, and what it is not
14
+ - which files it can touch
15
+ - which files it should inspect but not modify
16
+ - what must be true when it finishes
17
+ - how to prove it succeeded
18
+ - when to stop and ask a human
19
+
20
+ Website: https://sembl.vercel.app
21
+
22
+ ## Current Status
23
+
24
+ Sembl is early but usable for testing. The current CLI supports:
25
+
26
+ - repo probing for language/framework/branch/dirty state
27
+ - optional Graphify context
28
+ - optional code-review-graph context
29
+ - graph-required mode with `--require-graph-context`
30
+ - OpenAI, Anthropic, Gemini, and NVIDIA NIM providers
31
+ - work-order output as Markdown, JSON, executor prompt, and validation plan
32
+
33
+ The best current test path is graph-first:
34
+
35
+ ```powershell
36
+ uv pip install "sembl[graph-pipeline] @ git+https://github.com/speedvibecode/sembl.git"
37
+ sembl generate --repo C:\path\to\repo --task "fix the failing login redirect test" --provider nvidia --require-graph-context
38
+ ```
39
+
40
+ ## Install From GitHub
41
+
42
+ For tester installs without cloning the repo:
43
+
44
+ ```powershell
45
+ uv pip install "sembl[graph-pipeline] @ git+https://github.com/speedvibecode/sembl.git"
46
+ ```
47
+
48
+ For a CLI tool install without graph extras:
49
+
50
+ ```powershell
51
+ uv tool install git+https://github.com/speedvibecode/sembl.git
52
+ ```
53
+
54
+ The future public package path is:
55
+
56
+ ```powershell
57
+ uv tool install sembl
58
+ pip install sembl
59
+ ```
60
+
61
+ That requires publishing the package to PyPI first.
62
+
63
+ ## Install From Source
64
+
65
+ ```powershell
66
+ git clone https://github.com/speedvibecode/sembl
67
+ cd sembl
68
+ uv pip install -e ".[graph-pipeline]"
69
+ ```
70
+
71
+ Plain pip also works:
72
+
73
+ ```powershell
74
+ pip install -e ".[graph-pipeline]"
75
+ ```
76
+
77
+ ## Provider Keys
78
+
79
+ Set one provider key before generation:
80
+
81
+ ```powershell
82
+ $env:OPENAI_API_KEY="..."
83
+ $env:ANTHROPIC_API_KEY="..."
84
+ $env:GEMINI_API_KEY="..."
85
+ $env:NVIDIA_API_KEY="..."
86
+ ```
87
+
88
+ Then choose the provider:
89
+
90
+ ```powershell
91
+ sembl generate --repo C:\path\to\repo --task "replace starter screen text" --provider nvidia
92
+ ```
93
+
94
+ ## Optional Graph Context
95
+
96
+ Sembl can run without graph tools, but the strongest results come from Graphify plus code-review-graph.
97
+
98
+ ```powershell
99
+ graphify update C:\path\to\repo --no-cluster
100
+ code-review-graph build --repo C:\path\to\repo --data-dir C:\path\to\repo-specific-crg-data --skip-flows
101
+
102
+ $env:CRG_DATA_DIR="C:\path\to\repo-specific-crg-data"
103
+ sembl generate --repo C:\path\to\repo --task "fix the failing login redirect test" --provider nvidia --require-graph-context
104
+ ```
105
+
106
+ Sembl guards against stale generic `CRG_DATA_DIR` values by deriving a repo-specific graph data directory when the env var does not look like it belongs to the target repo.
107
+
108
+ ## Usage
109
+
110
+ ```powershell
111
+ # Generate a Work Order for the current repo
112
+ sembl generate --task "add recurring expenses to this tracker" --provider nvidia
113
+
114
+ # Generate for an explicit repo
115
+ sembl generate --repo C:\path\to\repo --task "fix the login redirect bug" --provider nvidia
116
+
117
+ # Refuse direct-probe fallback
118
+ sembl generate --repo C:\path\to\repo --task "fix the login redirect bug" --provider nvidia --require-graph-context
119
+
120
+ # List Work Orders
121
+ sembl list
122
+
123
+ # Show latest Work Order
124
+ sembl show
125
+
126
+ # Show the executor prompt
127
+ sembl show --file executor-prompt
128
+ ```
129
+
130
+ ## Output
131
+
132
+ ```text
133
+ .sembl/work-orders/wo-myproject-{timestamp}-{slug}/
134
+ work-order.md - read this
135
+ executor-prompt.md - paste into your agent
136
+ validation-plan.md - run this after
137
+ work-order.json - machine-readable
138
+ ```
139
+
140
+ ## The 8 Locks
141
+
142
+ | Lock | Purpose |
143
+ |------|---------|
144
+ | Intent | Goal, outcome, task type |
145
+ | Boundary | Non-goals, forbidden areas |
146
+ | Scope | Editable paths, read-only context |
147
+ | Context | Files to inspect, architecture notes |
148
+ | Success | Acceptance criteria, regressions |
149
+ | Proof | Validation commands, tests to add |
150
+ | Safety | Stop conditions, risk level |
151
+ | Executor | Agent-ready prompt, patch expectations |
152
+
153
+ ## Local Test
154
+
155
+ ```powershell
156
+ python -m unittest discover -s tests -v
157
+ python -m compileall -q sembl tests
158
+ ```
159
+
160
+ ## Testing Notes
161
+
162
+ If you test Sembl on a real repo, the best feedback is:
163
+
164
+ - the exact command you ran
165
+ - whether graph context was available
166
+ - the generated `work-order.md`
167
+ - whether the executor agent could complete the task without scope confusion
168
+ - any hallucinated files, missing validation commands, or false stop conditions
169
+
170
+ Models write code. Sembl makes the work governable.
@@ -0,0 +1,66 @@
1
+ [build-system]
2
+ requires = ["setuptools>=77", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "sembl"
7
+ version = "0.1.0"
8
+ description = "Turn messy repo intent into scoped AI Work Orders"
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = "MIT"
12
+ license-files = ["LICENSE"]
13
+ authors = [
14
+ { name = "speedvibecode", email = "f20220620@hyderabad.bits-pilani.ac.in" },
15
+ { name = "Siddharth Totla", email = "totlasiddharth@gmail.com" },
16
+ ]
17
+ keywords = [
18
+ "ai",
19
+ "coding-agents",
20
+ "work-order",
21
+ "code-review",
22
+ "llm",
23
+ "developer-tools",
24
+ ]
25
+ classifiers = [
26
+ "Development Status :: 3 - Alpha",
27
+ "Environment :: Console",
28
+ "Intended Audience :: Developers",
29
+ "Operating System :: OS Independent",
30
+ "Programming Language :: Python :: 3",
31
+ "Programming Language :: Python :: 3.10",
32
+ "Programming Language :: Python :: 3.11",
33
+ "Programming Language :: Python :: 3.12",
34
+ "Topic :: Software Development :: Code Generators",
35
+ "Topic :: Software Development :: Quality Assurance",
36
+ ]
37
+ dependencies = [
38
+ "openai>=1.30.0",
39
+ "anthropic>=0.25.0",
40
+ "click>=8.1.0",
41
+ "rich>=13.0.0",
42
+ ]
43
+
44
+ [project.urls]
45
+ Homepage = "https://sembl.vercel.app"
46
+ Repository = "https://github.com/speedvibecode/sembl"
47
+ Issues = "https://github.com/speedvibecode/sembl/issues"
48
+
49
+ [project.optional-dependencies]
50
+ graph = [
51
+ "graphifyy>=0.8.0",
52
+ ]
53
+ crg = [
54
+ "code-review-graph",
55
+ ]
56
+ graph-pipeline = [
57
+ "graphifyy>=0.8.0",
58
+ "code-review-graph",
59
+ ]
60
+
61
+ [project.scripts]
62
+ sembl = "sembl.cli:main"
63
+
64
+ [tool.setuptools.packages.find]
65
+ where = ["."]
66
+ include = ["sembl*"]
@@ -0,0 +1,6 @@
1
+ """
2
+ Sembl — Work Order generator for AI software development.
3
+ Turn messy repo intent into scoped execution contracts.
4
+ """
5
+
6
+ __version__ = "0.1.0"