chaincompiler-archetype 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.
Files changed (25) hide show
  1. chaincompiler_archetype-0.3.2/LICENSE +21 -0
  2. chaincompiler_archetype-0.3.2/PKG-INFO +57 -0
  3. chaincompiler_archetype-0.3.2/README.md +45 -0
  4. {chaincompiler_archetype-0.3.0 → chaincompiler_archetype-0.3.2}/pyproject.toml +5 -3
  5. {chaincompiler_archetype-0.3.0 → chaincompiler_archetype-0.3.2}/src/archetype/__init__.py +1 -1
  6. chaincompiler_archetype-0.3.2/src/chaincompiler_archetype.egg-info/PKG-INFO +57 -0
  7. {chaincompiler_archetype-0.3.0 → chaincompiler_archetype-0.3.2}/src/chaincompiler_archetype.egg-info/SOURCES.txt +2 -0
  8. chaincompiler_archetype-0.3.2/src/chaincompiler_archetype.egg-info/requires.txt +2 -0
  9. chaincompiler_archetype-0.3.0/PKG-INFO +0 -7
  10. chaincompiler_archetype-0.3.0/src/chaincompiler_archetype.egg-info/PKG-INFO +0 -7
  11. chaincompiler_archetype-0.3.0/src/chaincompiler_archetype.egg-info/requires.txt +0 -2
  12. {chaincompiler_archetype-0.3.0 → chaincompiler_archetype-0.3.2}/setup.cfg +0 -0
  13. {chaincompiler_archetype-0.3.0 → chaincompiler_archetype-0.3.2}/src/archetype/cli.py +0 -0
  14. {chaincompiler_archetype-0.3.0 → chaincompiler_archetype-0.3.2}/src/archetype/compile.py +0 -0
  15. {chaincompiler_archetype-0.3.0 → chaincompiler_archetype-0.3.2}/src/archetype/emit.py +0 -0
  16. {chaincompiler_archetype-0.3.0 → chaincompiler_archetype-0.3.2}/src/archetype/infer.py +0 -0
  17. {chaincompiler_archetype-0.3.0 → chaincompiler_archetype-0.3.2}/src/archetype/model.py +0 -0
  18. {chaincompiler_archetype-0.3.0 → chaincompiler_archetype-0.3.2}/src/archetype/odyssey.py +0 -0
  19. {chaincompiler_archetype-0.3.0 → chaincompiler_archetype-0.3.2}/src/archetype/parser.py +0 -0
  20. {chaincompiler_archetype-0.3.0 → chaincompiler_archetype-0.3.2}/src/archetype/stdlib.py +0 -0
  21. {chaincompiler_archetype-0.3.0 → chaincompiler_archetype-0.3.2}/src/archetype/validate.py +0 -0
  22. {chaincompiler_archetype-0.3.0 → chaincompiler_archetype-0.3.2}/src/chaincompiler_archetype.egg-info/dependency_links.txt +0 -0
  23. {chaincompiler_archetype-0.3.0 → chaincompiler_archetype-0.3.2}/src/chaincompiler_archetype.egg-info/entry_points.txt +0 -0
  24. {chaincompiler_archetype-0.3.0 → chaincompiler_archetype-0.3.2}/src/chaincompiler_archetype.egg-info/top_level.txt +0 -0
  25. {chaincompiler_archetype-0.3.0 → chaincompiler_archetype-0.3.2}/tests/test_archetype.py +0 -0
@@ -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.
@@ -0,0 +1,57 @@
1
+ Metadata-Version: 2.4
2
+ Name: chaincompiler-archetype
3
+ Version: 0.3.2
4
+ Summary: The Archetype Compiler — archetype as state machine (Persona/Shadow/Self/Odyssey/Becoming), compiled to the one type
5
+ License-Expression: MIT
6
+ Requires-Python: >=3.11
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENSE
9
+ Requires-Dist: chaincompiler==0.3.2
10
+ Requires-Dist: click
11
+ Dynamic: license-file
12
+
13
+ # chaincompiler-archetype — an archetype compiled as a state machine
14
+
15
+ `chaincompiler-archetype` (import `archetype`) is the archetype compiler of
16
+ [ChainCompiler](https://github.com/sancovp/chaincompiler), a compiler-compiler for cognition. It compiles an archetype as
17
+ a state machine rather than a name, because what an archetype does is change: it has
18
+
19
+ - a **Persona** (the mask it wears),
20
+ - a **Shadow** (the persona's denied inverse),
21
+ - a **Self** (the process that holds both),
22
+ - an **Odyssey** (a succession of journeys, one for each other archetype it meets, ending in a journey after the
23
+ return),
24
+ - and a **Becoming** (the archetype it turns into next).
25
+
26
+ From one seed it infers the aspects it was not given, builds the Odyssey, validates the constraints C1–C6, and emits the
27
+ result as readable text, triples, Prolog, Cypher, JSON or a `SKILL.md` an agent loads.
28
+
29
+ ## Install
30
+
31
+ ```bash
32
+ pip install chaincompiler-archetype
33
+ ```
34
+
35
+ It installs the `archetype` command and brings the [`chaincompiler`](https://pypi.org/project/chaincompiler/) base at the
36
+ same release. To work on it, clone the [repository](https://github.com/sancovp/chaincompiler) and run `./install.sh`,
37
+ which installs all fifteen packages editable.
38
+
39
+ ## Use
40
+
41
+ ```python
42
+ from archetype import compile_archetype, emit, is_valid
43
+
44
+ hero = compile_archetype("Hero") # the missing aspects inferred, the Odyssey built
45
+ print(is_valid(hero)) # True
46
+ print(emit(hero, "readable")) # "# Hero — a recursive individuation circuit" …
47
+ ```
48
+
49
+ Its specification, cited in its code as `ARCHETYPE-COMPILER.md`, is not yet in the repository.
50
+
51
+ ## Its design
52
+
53
+ The repository's [`DESIGN.md`](https://github.com/sancovp/chaincompiler/blob/main/DESIGN.md) §12.
54
+
55
+ ## License
56
+
57
+ MIT.
@@ -0,0 +1,45 @@
1
+ # chaincompiler-archetype — an archetype compiled as a state machine
2
+
3
+ `chaincompiler-archetype` (import `archetype`) is the archetype compiler of
4
+ [ChainCompiler](https://github.com/sancovp/chaincompiler), a compiler-compiler for cognition. It compiles an archetype as
5
+ a state machine rather than a name, because what an archetype does is change: it has
6
+
7
+ - a **Persona** (the mask it wears),
8
+ - a **Shadow** (the persona's denied inverse),
9
+ - a **Self** (the process that holds both),
10
+ - an **Odyssey** (a succession of journeys, one for each other archetype it meets, ending in a journey after the
11
+ return),
12
+ - and a **Becoming** (the archetype it turns into next).
13
+
14
+ From one seed it infers the aspects it was not given, builds the Odyssey, validates the constraints C1–C6, and emits the
15
+ result as readable text, triples, Prolog, Cypher, JSON or a `SKILL.md` an agent loads.
16
+
17
+ ## Install
18
+
19
+ ```bash
20
+ pip install chaincompiler-archetype
21
+ ```
22
+
23
+ It installs the `archetype` command and brings the [`chaincompiler`](https://pypi.org/project/chaincompiler/) base at the
24
+ same release. To work on it, clone the [repository](https://github.com/sancovp/chaincompiler) and run `./install.sh`,
25
+ which installs all fifteen packages editable.
26
+
27
+ ## Use
28
+
29
+ ```python
30
+ from archetype import compile_archetype, emit, is_valid
31
+
32
+ hero = compile_archetype("Hero") # the missing aspects inferred, the Odyssey built
33
+ print(is_valid(hero)) # True
34
+ print(emit(hero, "readable")) # "# Hero — a recursive individuation circuit" …
35
+ ```
36
+
37
+ Its specification, cited in its code as `ARCHETYPE-COMPILER.md`, is not yet in the repository.
38
+
39
+ ## Its design
40
+
41
+ The repository's [`DESIGN.md`](https://github.com/sancovp/chaincompiler/blob/main/DESIGN.md) §12.
42
+
43
+ ## License
44
+
45
+ MIT.
@@ -1,13 +1,15 @@
1
1
  [build-system]
2
- requires = ["setuptools>=68"]
2
+ requires = ["setuptools>=77"]
3
3
  build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "chaincompiler-archetype"
7
- version = "0.3.0"
7
+ version = "0.3.2"
8
8
  description = "The Archetype Compiler — archetype as state machine (Persona/Shadow/Self/Odyssey/Becoming), compiled to the one type"
9
+ readme = "README.md"
9
10
  requires-python = ">=3.11"
10
- dependencies = ["chaincompiler==0.3.0", "click"]
11
+ license = "MIT"
12
+ dependencies = ["chaincompiler==0.3.2", "click"]
11
13
 
12
14
  [project.scripts]
13
15
  archetype = "archetype.cli:main"
@@ -9,7 +9,7 @@ compile the transformation law, don't list the archetypes. Spec: ARCHETYPE-COMPI
9
9
  """
10
10
  from __future__ import annotations
11
11
 
12
- __version__ = "0.3.0"
12
+ __version__ = "0.3.2"
13
13
 
14
14
  from .model import HJ, KNOBS, MetaArchetype, Seed
15
15
  from .stdlib import CYBERNETIC_CITY, CYCLE, PANTHEON, next_in_cycle, seed_for
@@ -0,0 +1,57 @@
1
+ Metadata-Version: 2.4
2
+ Name: chaincompiler-archetype
3
+ Version: 0.3.2
4
+ Summary: The Archetype Compiler — archetype as state machine (Persona/Shadow/Self/Odyssey/Becoming), compiled to the one type
5
+ License-Expression: MIT
6
+ Requires-Python: >=3.11
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENSE
9
+ Requires-Dist: chaincompiler==0.3.2
10
+ Requires-Dist: click
11
+ Dynamic: license-file
12
+
13
+ # chaincompiler-archetype — an archetype compiled as a state machine
14
+
15
+ `chaincompiler-archetype` (import `archetype`) is the archetype compiler of
16
+ [ChainCompiler](https://github.com/sancovp/chaincompiler), a compiler-compiler for cognition. It compiles an archetype as
17
+ a state machine rather than a name, because what an archetype does is change: it has
18
+
19
+ - a **Persona** (the mask it wears),
20
+ - a **Shadow** (the persona's denied inverse),
21
+ - a **Self** (the process that holds both),
22
+ - an **Odyssey** (a succession of journeys, one for each other archetype it meets, ending in a journey after the
23
+ return),
24
+ - and a **Becoming** (the archetype it turns into next).
25
+
26
+ From one seed it infers the aspects it was not given, builds the Odyssey, validates the constraints C1–C6, and emits the
27
+ result as readable text, triples, Prolog, Cypher, JSON or a `SKILL.md` an agent loads.
28
+
29
+ ## Install
30
+
31
+ ```bash
32
+ pip install chaincompiler-archetype
33
+ ```
34
+
35
+ It installs the `archetype` command and brings the [`chaincompiler`](https://pypi.org/project/chaincompiler/) base at the
36
+ same release. To work on it, clone the [repository](https://github.com/sancovp/chaincompiler) and run `./install.sh`,
37
+ which installs all fifteen packages editable.
38
+
39
+ ## Use
40
+
41
+ ```python
42
+ from archetype import compile_archetype, emit, is_valid
43
+
44
+ hero = compile_archetype("Hero") # the missing aspects inferred, the Odyssey built
45
+ print(is_valid(hero)) # True
46
+ print(emit(hero, "readable")) # "# Hero — a recursive individuation circuit" …
47
+ ```
48
+
49
+ Its specification, cited in its code as `ARCHETYPE-COMPILER.md`, is not yet in the repository.
50
+
51
+ ## Its design
52
+
53
+ The repository's [`DESIGN.md`](https://github.com/sancovp/chaincompiler/blob/main/DESIGN.md) §12.
54
+
55
+ ## License
56
+
57
+ MIT.
@@ -1,3 +1,5 @@
1
+ LICENSE
2
+ README.md
1
3
  pyproject.toml
2
4
  src/archetype/__init__.py
3
5
  src/archetype/cli.py
@@ -0,0 +1,2 @@
1
+ chaincompiler==0.3.2
2
+ click
@@ -1,7 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: chaincompiler-archetype
3
- Version: 0.3.0
4
- Summary: The Archetype Compiler — archetype as state machine (Persona/Shadow/Self/Odyssey/Becoming), compiled to the one type
5
- Requires-Python: >=3.11
6
- Requires-Dist: chaincompiler==0.3.0
7
- Requires-Dist: click
@@ -1,7 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: chaincompiler-archetype
3
- Version: 0.3.0
4
- Summary: The Archetype Compiler — archetype as state machine (Persona/Shadow/Self/Odyssey/Becoming), compiled to the one type
5
- Requires-Python: >=3.11
6
- Requires-Dist: chaincompiler==0.3.0
7
- Requires-Dist: click
@@ -1,2 +0,0 @@
1
- chaincompiler==0.3.0
2
- click