sccc 0.3.0__tar.gz → 0.3.2__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.
- sccc-0.3.2/LICENSE +21 -0
- sccc-0.3.2/PKG-INFO +58 -0
- sccc-0.3.2/README.md +42 -0
- {sccc-0.3.0 → sccc-0.3.2}/pyproject.toml +5 -3
- {sccc-0.3.0 → sccc-0.3.2}/src/sccc/__init__.py +1 -1
- sccc-0.3.2/src/sccc.egg-info/PKG-INFO +58 -0
- {sccc-0.3.0 → sccc-0.3.2}/src/sccc.egg-info/SOURCES.txt +2 -0
- sccc-0.3.2/src/sccc.egg-info/requires.txt +6 -0
- sccc-0.3.0/PKG-INFO +0 -11
- sccc-0.3.0/src/sccc.egg-info/PKG-INFO +0 -11
- sccc-0.3.0/src/sccc.egg-info/requires.txt +0 -6
- {sccc-0.3.0 → sccc-0.3.2}/setup.cfg +0 -0
- {sccc-0.3.0 → sccc-0.3.2}/src/sccc/cli.py +0 -0
- {sccc-0.3.0 → sccc-0.3.2}/src/sccc/forge.py +0 -0
- {sccc-0.3.0 → sccc-0.3.2}/src/sccc/notation.py +0 -0
- {sccc-0.3.0 → sccc-0.3.2}/src/sccc.egg-info/dependency_links.txt +0 -0
- {sccc-0.3.0 → sccc-0.3.2}/src/sccc.egg-info/entry_points.txt +0 -0
- {sccc-0.3.0 → sccc-0.3.2}/src/sccc.egg-info/top_level.txt +0 -0
- {sccc-0.3.0 → sccc-0.3.2}/tests/test_sccc.py +0 -0
sccc-0.3.2/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 sancovp
|
|
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.
|
sccc-0.3.2/PKG-INFO
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sccc
|
|
3
|
+
Version: 0.3.2
|
|
4
|
+
Summary: Skillchain Compiler-Compiler — chains ACs + CoRs + skills into one SKILL.md
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Requires-Python: >=3.11
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: chaincompiler-accc==0.3.2
|
|
10
|
+
Requires-Dist: corcc==0.3.2
|
|
11
|
+
Requires-Dist: chaincompiler==0.3.2
|
|
12
|
+
Requires-Dist: rulecatcher==0.3.2
|
|
13
|
+
Requires-Dist: skillchain-compiler==0.3.2
|
|
14
|
+
Requires-Dist: click
|
|
15
|
+
Dynamic: license-file
|
|
16
|
+
|
|
17
|
+
# sccc — the skill-chain compiler
|
|
18
|
+
|
|
19
|
+
`sccc` is the highest of the three chain compilers of [ChainCompiler](https://github.com/sancovp/chaincompiler), a
|
|
20
|
+
compiler-compiler for cognition. It compiles **skill chains**: `[ac:x] ⇒ [cor:y] ⇒ [skill:z] ⇒ |Result|`, a sequence of
|
|
21
|
+
attention chains, chains of reasoning and ordinary skills, rolled up into one `SKILL.md`.
|
|
22
|
+
|
|
23
|
+
- `forge(name, sequences, db=…)` forges the sequence grammar (scope `sc:<name>`), and `lint(language, sequence)` gates a
|
|
24
|
+
sequence against it;
|
|
25
|
+
- `parse_sequence(sequence)` reads a sequence into its steps and its held result;
|
|
26
|
+
- `package(name, sequence, out_dir=…, skills_dir=…)` resolves every step to a skill folder on disk — the skills folder
|
|
27
|
+
it is given first, then `~/.claude/skills` and `~/.claude/plugins` — and refuses to package while any step is missing,
|
|
28
|
+
so a rollup never names a skill that is not there.
|
|
29
|
+
|
|
30
|
+
The rollup itself is written by [`skillchain-compiler`](https://pypi.org/project/skillchain-compiler/). It is made from the
|
|
31
|
+
[`chaincompiler`](https://pypi.org/project/chaincompiler/) base, above
|
|
32
|
+
[`chaincompiler-accc`](https://pypi.org/project/chaincompiler-accc/) and [`corcc`](https://pypi.org/project/corcc/).
|
|
33
|
+
|
|
34
|
+
## Install
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
pip install sccc
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
It installs the `sccc` command. To work on it, clone the [repository](https://github.com/sancovp/chaincompiler) and run
|
|
41
|
+
`./install.sh`, which installs all fifteen packages editable.
|
|
42
|
+
|
|
43
|
+
## Use
|
|
44
|
+
|
|
45
|
+
```python
|
|
46
|
+
from sccc import parse_sequence
|
|
47
|
+
|
|
48
|
+
steps, held = parse_sequence("[ac:triage] ⇒ [cor:bandit] ⇒ [skill:report] ⇒ |Result|")
|
|
49
|
+
print([(s.kind, s.ref) for s in steps], held) # [('ac', 'triage'), ('cor', 'bandit'), ('skill', 'report')] Result
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Its design
|
|
53
|
+
|
|
54
|
+
The repository's [`DESIGN.md`](https://github.com/sancovp/chaincompiler/blob/main/DESIGN.md) §5.
|
|
55
|
+
|
|
56
|
+
## License
|
|
57
|
+
|
|
58
|
+
MIT.
|
sccc-0.3.2/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# sccc — the skill-chain compiler
|
|
2
|
+
|
|
3
|
+
`sccc` is the highest of the three chain compilers of [ChainCompiler](https://github.com/sancovp/chaincompiler), a
|
|
4
|
+
compiler-compiler for cognition. It compiles **skill chains**: `[ac:x] ⇒ [cor:y] ⇒ [skill:z] ⇒ |Result|`, a sequence of
|
|
5
|
+
attention chains, chains of reasoning and ordinary skills, rolled up into one `SKILL.md`.
|
|
6
|
+
|
|
7
|
+
- `forge(name, sequences, db=…)` forges the sequence grammar (scope `sc:<name>`), and `lint(language, sequence)` gates a
|
|
8
|
+
sequence against it;
|
|
9
|
+
- `parse_sequence(sequence)` reads a sequence into its steps and its held result;
|
|
10
|
+
- `package(name, sequence, out_dir=…, skills_dir=…)` resolves every step to a skill folder on disk — the skills folder
|
|
11
|
+
it is given first, then `~/.claude/skills` and `~/.claude/plugins` — and refuses to package while any step is missing,
|
|
12
|
+
so a rollup never names a skill that is not there.
|
|
13
|
+
|
|
14
|
+
The rollup itself is written by [`skillchain-compiler`](https://pypi.org/project/skillchain-compiler/). It is made from the
|
|
15
|
+
[`chaincompiler`](https://pypi.org/project/chaincompiler/) base, above
|
|
16
|
+
[`chaincompiler-accc`](https://pypi.org/project/chaincompiler-accc/) and [`corcc`](https://pypi.org/project/corcc/).
|
|
17
|
+
|
|
18
|
+
## Install
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
pip install sccc
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
It installs the `sccc` command. To work on it, clone the [repository](https://github.com/sancovp/chaincompiler) and run
|
|
25
|
+
`./install.sh`, which installs all fifteen packages editable.
|
|
26
|
+
|
|
27
|
+
## Use
|
|
28
|
+
|
|
29
|
+
```python
|
|
30
|
+
from sccc import parse_sequence
|
|
31
|
+
|
|
32
|
+
steps, held = parse_sequence("[ac:triage] ⇒ [cor:bandit] ⇒ [skill:report] ⇒ |Result|")
|
|
33
|
+
print([(s.kind, s.ref) for s in steps], held) # [('ac', 'triage'), ('cor', 'bandit'), ('skill', 'report')] Result
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Its design
|
|
37
|
+
|
|
38
|
+
The repository's [`DESIGN.md`](https://github.com/sancovp/chaincompiler/blob/main/DESIGN.md) §5.
|
|
39
|
+
|
|
40
|
+
## License
|
|
41
|
+
|
|
42
|
+
MIT.
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["setuptools>=
|
|
2
|
+
requires = ["setuptools>=77"]
|
|
3
3
|
build-backend = "setuptools.build_meta"
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "sccc"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.2"
|
|
8
8
|
description = "Skillchain Compiler-Compiler — chains ACs + CoRs + skills into one SKILL.md"
|
|
9
|
+
readme = "README.md"
|
|
9
10
|
requires-python = ">=3.11"
|
|
10
|
-
|
|
11
|
+
license = "MIT"
|
|
12
|
+
dependencies = ["chaincompiler-accc==0.3.2", "corcc==0.3.2", "chaincompiler==0.3.2", "rulecatcher==0.3.2", "skillchain-compiler==0.3.2", "click"]
|
|
11
13
|
|
|
12
14
|
[project.scripts]
|
|
13
15
|
sccc = "sccc.cli:main"
|
|
@@ -5,7 +5,7 @@ Same *CC shape (catch → lint → compile → package as SKILL.md). Built on th
|
|
|
5
5
|
"""
|
|
6
6
|
from __future__ import annotations
|
|
7
7
|
|
|
8
|
-
__version__ = "0.3.
|
|
8
|
+
__version__ = "0.3.2"
|
|
9
9
|
|
|
10
10
|
from .forge import SCLanguage, StepRef, forge, lint, package, parse_sequence, resolve_steps
|
|
11
11
|
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sccc
|
|
3
|
+
Version: 0.3.2
|
|
4
|
+
Summary: Skillchain Compiler-Compiler — chains ACs + CoRs + skills into one SKILL.md
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Requires-Python: >=3.11
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: chaincompiler-accc==0.3.2
|
|
10
|
+
Requires-Dist: corcc==0.3.2
|
|
11
|
+
Requires-Dist: chaincompiler==0.3.2
|
|
12
|
+
Requires-Dist: rulecatcher==0.3.2
|
|
13
|
+
Requires-Dist: skillchain-compiler==0.3.2
|
|
14
|
+
Requires-Dist: click
|
|
15
|
+
Dynamic: license-file
|
|
16
|
+
|
|
17
|
+
# sccc — the skill-chain compiler
|
|
18
|
+
|
|
19
|
+
`sccc` is the highest of the three chain compilers of [ChainCompiler](https://github.com/sancovp/chaincompiler), a
|
|
20
|
+
compiler-compiler for cognition. It compiles **skill chains**: `[ac:x] ⇒ [cor:y] ⇒ [skill:z] ⇒ |Result|`, a sequence of
|
|
21
|
+
attention chains, chains of reasoning and ordinary skills, rolled up into one `SKILL.md`.
|
|
22
|
+
|
|
23
|
+
- `forge(name, sequences, db=…)` forges the sequence grammar (scope `sc:<name>`), and `lint(language, sequence)` gates a
|
|
24
|
+
sequence against it;
|
|
25
|
+
- `parse_sequence(sequence)` reads a sequence into its steps and its held result;
|
|
26
|
+
- `package(name, sequence, out_dir=…, skills_dir=…)` resolves every step to a skill folder on disk — the skills folder
|
|
27
|
+
it is given first, then `~/.claude/skills` and `~/.claude/plugins` — and refuses to package while any step is missing,
|
|
28
|
+
so a rollup never names a skill that is not there.
|
|
29
|
+
|
|
30
|
+
The rollup itself is written by [`skillchain-compiler`](https://pypi.org/project/skillchain-compiler/). It is made from the
|
|
31
|
+
[`chaincompiler`](https://pypi.org/project/chaincompiler/) base, above
|
|
32
|
+
[`chaincompiler-accc`](https://pypi.org/project/chaincompiler-accc/) and [`corcc`](https://pypi.org/project/corcc/).
|
|
33
|
+
|
|
34
|
+
## Install
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
pip install sccc
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
It installs the `sccc` command. To work on it, clone the [repository](https://github.com/sancovp/chaincompiler) and run
|
|
41
|
+
`./install.sh`, which installs all fifteen packages editable.
|
|
42
|
+
|
|
43
|
+
## Use
|
|
44
|
+
|
|
45
|
+
```python
|
|
46
|
+
from sccc import parse_sequence
|
|
47
|
+
|
|
48
|
+
steps, held = parse_sequence("[ac:triage] ⇒ [cor:bandit] ⇒ [skill:report] ⇒ |Result|")
|
|
49
|
+
print([(s.kind, s.ref) for s in steps], held) # [('ac', 'triage'), ('cor', 'bandit'), ('skill', 'report')] Result
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Its design
|
|
53
|
+
|
|
54
|
+
The repository's [`DESIGN.md`](https://github.com/sancovp/chaincompiler/blob/main/DESIGN.md) §5.
|
|
55
|
+
|
|
56
|
+
## License
|
|
57
|
+
|
|
58
|
+
MIT.
|
sccc-0.3.0/PKG-INFO
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: sccc
|
|
3
|
-
Version: 0.3.0
|
|
4
|
-
Summary: Skillchain Compiler-Compiler — chains ACs + CoRs + skills into one SKILL.md
|
|
5
|
-
Requires-Python: >=3.11
|
|
6
|
-
Requires-Dist: chaincompiler-accc==0.3.0
|
|
7
|
-
Requires-Dist: corcc==0.3.0
|
|
8
|
-
Requires-Dist: chaincompiler==0.3.0
|
|
9
|
-
Requires-Dist: rulecatcher==0.3.0
|
|
10
|
-
Requires-Dist: skillchain-compiler==0.3.0
|
|
11
|
-
Requires-Dist: click
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: sccc
|
|
3
|
-
Version: 0.3.0
|
|
4
|
-
Summary: Skillchain Compiler-Compiler — chains ACs + CoRs + skills into one SKILL.md
|
|
5
|
-
Requires-Python: >=3.11
|
|
6
|
-
Requires-Dist: chaincompiler-accc==0.3.0
|
|
7
|
-
Requires-Dist: corcc==0.3.0
|
|
8
|
-
Requires-Dist: chaincompiler==0.3.0
|
|
9
|
-
Requires-Dist: rulecatcher==0.3.0
|
|
10
|
-
Requires-Dist: skillchain-compiler==0.3.0
|
|
11
|
-
Requires-Dist: click
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|