Skip to content

Commit 423427b

Browse files
authored
Merge pull request #25 from AdrianLipa90/codex/analyze-project-architecture-for-setup.py-issue
Package full kernel and add CLI entrypoints
2 parents ac2cdb2 + 8d65208 commit 423427b

File tree

2 files changed

+57
-17
lines changed

2 files changed

+57
-17
lines changed

ciel/cli.py

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
"""Command-line entry points for the CIEL engine.
2+
3+
The CLI exposes lightweight helpers so installed environments can
4+
instantiate and exercise the 12D kernel without relying on repository
5+
paths or manual script wiring.
6+
"""
7+
8+
from __future__ import annotations
9+
10+
import argparse
11+
import json
12+
from typing import Any, Dict
13+
14+
from ciel import CielEngine
15+
16+
17+
def _run_engine(text: str) -> Dict[str, Any]:
18+
engine = CielEngine()
19+
return engine.step(text)
20+
21+
22+
def run_engine() -> None:
23+
"""Execute a single engine step from the command line."""
24+
25+
parser = argparse.ArgumentParser(description="Run the CIEL engine over a prompt")
26+
parser.add_argument(
27+
"text",
28+
nargs="?",
29+
default="hello from CIEL",
30+
help="Input text to feed into the intention/emotion/memory pipeline",
31+
)
32+
args = parser.parse_args()
33+
34+
result = _run_engine(args.text)
35+
print(json.dumps(result, indent=2, sort_keys=True))
36+
37+
38+
def smoke_test() -> None:
39+
"""Run the lightweight smoke test shipped with the package installation."""
40+
41+
result = _run_engine("post-installation smoke test")
42+
ok = result.get("status") == "ok"
43+
keys = sorted(result.keys())
44+
print(f"SMOKE TEST {'OK' if ok else 'FAILED'}: keys={keys}")
45+
46+
47+
if __name__ == "__main__":
48+
run_engine()

setup.py

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,20 @@
44
Licensed under the CIEL Research Non-Commercial License v1.1.
55
"""
66

7-
from setuptools import setup, find_packages
7+
from setuptools import find_packages, setup
8+
89

910
setup(
1011
name="ciel",
1112
version="0.1.0",
12-
packages=find_packages(
13-
exclude=(
14-
"ext",
15-
"ext.*",
16-
"tests",
17-
"tests.*",
18-
"tmp",
19-
"tmp.*",
20-
"examples",
21-
"examples.*",
22-
"experiments",
23-
"experiments.*",
24-
"docs",
25-
"docs.*",
26-
)
27-
),
13+
packages=find_packages(),
2814
install_requires=["numpy", "scipy", "matplotlib", "networkx", "sympy", "pandas"],
15+
entry_points={
16+
"console_scripts": [
17+
"ciel-engine=ciel.cli:run_engine",
18+
"ciel-smoke=ciel.cli:smoke_test",
19+
]
20+
},
2921
description="CIEL — Consciousness-Integrated Emergent Logic (organized from project drafts)",
3022
author="Adrian Lipa",
3123
license="CIEL-Research-NonCommercial-1.1",

0 commit comments

Comments
 (0)