henosis-engine 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.
- henosis_engine-0.1.0/.github/workflows/ci.yml +77 -0
- henosis_engine-0.1.0/.github/workflows/release.yml +55 -0
- henosis_engine-0.1.0/.gitignore +45 -0
- henosis_engine-0.1.0/.mcp.json +19 -0
- henosis_engine-0.1.0/LICENSE +21 -0
- henosis_engine-0.1.0/PKG-INFO +255 -0
- henosis_engine-0.1.0/README.md +211 -0
- henosis_engine-0.1.0/SECURITY.md +90 -0
- henosis_engine-0.1.0/contracts/openapi.json +1613 -0
- henosis_engine-0.1.0/examples/cooper_basin/README.md +138 -0
- henosis_engine-0.1.0/examples/cooper_basin/components/deferment_attribution.py +132 -0
- henosis_engine-0.1.0/examples/cooper_basin/components/maintenance_schedule.py +292 -0
- henosis_engine-0.1.0/examples/cooper_basin/components/production_allocation.py +104 -0
- henosis_engine-0.1.0/examples/cooper_basin/components/schedule_dispatch.py +89 -0
- henosis_engine-0.1.0/examples/cooper_basin/components/work_order_dispatch.py +162 -0
- henosis_engine-0.1.0/examples/cooper_basin/glb_gen.py +156 -0
- henosis_engine-0.1.0/examples/cooper_basin/henosis.yaml +36 -0
- henosis_engine-0.1.0/examples/cooper_basin/legacy_fixtures.yaml +11752 -0
- henosis_engine-0.1.0/examples/cooper_basin/models/actions.yaml +20 -0
- henosis_engine-0.1.0/examples/cooper_basin/models/activity.yaml +92 -0
- henosis_engine-0.1.0/examples/cooper_basin/models/basin.yaml +58 -0
- henosis_engine-0.1.0/examples/cooper_basin/models/completed_intervention.yaml +56 -0
- henosis_engine-0.1.0/examples/cooper_basin/models/compressor.yaml +86 -0
- henosis_engine-0.1.0/examples/cooper_basin/models/crew.yaml +29 -0
- henosis_engine-0.1.0/examples/cooper_basin/models/defect.yaml +53 -0
- henosis_engine-0.1.0/examples/cooper_basin/models/field.yaml +101 -0
- henosis_engine-0.1.0/examples/cooper_basin/models/formation.yaml +29 -0
- henosis_engine-0.1.0/examples/cooper_basin/models/licence.yaml +54 -0
- henosis_engine-0.1.0/examples/cooper_basin/models/maintenance_strategy.yaml +31 -0
- henosis_engine-0.1.0/examples/cooper_basin/models/operator.yaml +15 -0
- henosis_engine-0.1.0/examples/cooper_basin/models/pipeline.yaml +107 -0
- henosis_engine-0.1.0/examples/cooper_basin/models/planned_intervention.yaml +54 -0
- henosis_engine-0.1.0/examples/cooper_basin/models/plant.yaml +77 -0
- henosis_engine-0.1.0/examples/cooper_basin/models/well.yaml +258 -0
- henosis_engine-0.1.0/examples/cooper_basin/models/well_event.yaml +36 -0
- henosis_engine-0.1.0/examples/cooper_basin/models/work_order.yaml +61 -0
- henosis_engine-0.1.0/examples/cooper_basin/seed_demo.py +554 -0
- henosis_engine-0.1.0/examples/energy_distributor/.gitignore +7 -0
- henosis_engine-0.1.0/examples/energy_distributor/README.md +131 -0
- henosis_engine-0.1.0/examples/energy_distributor/components/work_order_dispatch.py +146 -0
- henosis_engine-0.1.0/examples/energy_distributor/glb_gen.py +165 -0
- henosis_engine-0.1.0/examples/energy_distributor/henosis.yaml +29 -0
- henosis_engine-0.1.0/examples/energy_distributor/models/actions.yaml +20 -0
- henosis_engine-0.1.0/examples/energy_distributor/models/connection_point.yaml +50 -0
- henosis_engine-0.1.0/examples/energy_distributor/models/defect.yaml +50 -0
- henosis_engine-0.1.0/examples/energy_distributor/models/distribution_transformer.yaml +92 -0
- henosis_engine-0.1.0/examples/energy_distributor/models/feeder.yaml +144 -0
- henosis_engine-0.1.0/examples/energy_distributor/models/operator.yaml +19 -0
- henosis_engine-0.1.0/examples/energy_distributor/models/outage.yaml +53 -0
- henosis_engine-0.1.0/examples/energy_distributor/models/service_area.yaml +50 -0
- henosis_engine-0.1.0/examples/energy_distributor/models/transformer.yaml +139 -0
- henosis_engine-0.1.0/examples/energy_distributor/models/work_order.yaml +57 -0
- henosis_engine-0.1.0/examples/energy_distributor/models/zone_substation.yaml +89 -0
- henosis_engine-0.1.0/examples/energy_distributor/seed_demo.py +935 -0
- henosis_engine-0.1.0/hatch_build.py +56 -0
- henosis_engine-0.1.0/logo/henosis-hero-dark.svg +242 -0
- henosis_engine-0.1.0/logo/henosis-hero-light.svg +242 -0
- henosis_engine-0.1.0/logo/henosis-lockup.svg +10 -0
- henosis_engine-0.1.0/logo/henosis-mark.svg +5 -0
- henosis_engine-0.1.0/logo/henosis-overview.svg +113 -0
- henosis_engine-0.1.0/pyproject.toml +122 -0
- henosis_engine-0.1.0/snowflake/Dockerfile.engine +27 -0
- henosis_engine-0.1.0/snowflake/compose.yaml +46 -0
- henosis_engine-0.1.0/snowflake/manifest.yml +63 -0
- henosis_engine-0.1.0/snowflake/readme.md +45 -0
- henosis_engine-0.1.0/snowflake/service_spec.yaml +52 -0
- henosis_engine-0.1.0/snowflake/setup_script.sql +80 -0
- henosis_engine-0.1.0/src/henosis/__init__.py +11 -0
- henosis_engine-0.1.0/src/henosis/cli/__init__.py +1 -0
- henosis_engine-0.1.0/src/henosis/cli/cmd_compile.py +65 -0
- henosis_engine-0.1.0/src/henosis/cli/cmd_explorer.py +23 -0
- henosis_engine-0.1.0/src/henosis/cli/cmd_export.py +83 -0
- henosis_engine-0.1.0/src/henosis/cli/cmd_graph.py +25 -0
- henosis_engine-0.1.0/src/henosis/cli/cmd_init.py +134 -0
- henosis_engine-0.1.0/src/henosis/cli/cmd_serve.py +46 -0
- henosis_engine-0.1.0/src/henosis/cli/cmd_sync.py +49 -0
- henosis_engine-0.1.0/src/henosis/cli/cmd_validate.py +41 -0
- henosis_engine-0.1.0/src/henosis/cli/main.py +61 -0
- henosis_engine-0.1.0/src/henosis/cli/progress.py +105 -0
- henosis_engine-0.1.0/src/henosis/components/__init__.py +48 -0
- henosis_engine-0.1.0/src/henosis/components/component_runner.py +49 -0
- henosis_engine-0.1.0/src/henosis/components/contract.py +203 -0
- henosis_engine-0.1.0/src/henosis/components/launcher.py +118 -0
- henosis_engine-0.1.0/src/henosis/components/registry.py +93 -0
- henosis_engine-0.1.0/src/henosis/connectors/__init__.py +1 -0
- henosis_engine-0.1.0/src/henosis/connectors/attach/__init__.py +47 -0
- henosis_engine-0.1.0/src/henosis/connectors/attach/_common.py +20 -0
- henosis_engine-0.1.0/src/henosis/connectors/attach/file_glob.py +45 -0
- henosis_engine-0.1.0/src/henosis/connectors/attach/mysql.py +45 -0
- henosis_engine-0.1.0/src/henosis/connectors/attach/ogr.py +67 -0
- henosis_engine-0.1.0/src/henosis/connectors/attach/postgres.py +45 -0
- henosis_engine-0.1.0/src/henosis/connectors/attach/snowflake.py +301 -0
- henosis_engine-0.1.0/src/henosis/connectors/attach/sqlite.py +36 -0
- henosis_engine-0.1.0/src/henosis/connectors/attach_base.py +332 -0
- henosis_engine-0.1.0/src/henosis/connectors/documents.py +62 -0
- henosis_engine-0.1.0/src/henosis/connectors/duckdb_ext.py +83 -0
- henosis_engine-0.1.0/src/henosis/connectors/fallback_base.py +165 -0
- henosis_engine-0.1.0/src/henosis/connectors/pi_web_api.py +224 -0
- henosis_engine-0.1.0/src/henosis/connectors/registry.py +197 -0
- henosis_engine-0.1.0/src/henosis/connectors/rest.py +324 -0
- henosis_engine-0.1.0/src/henosis/engine/__init__.py +3 -0
- henosis_engine-0.1.0/src/henosis/engine/engine.py +1792 -0
- henosis_engine-0.1.0/src/henosis/engine/mapper.py +79 -0
- henosis_engine-0.1.0/src/henosis/engine/planner.py +861 -0
- henosis_engine-0.1.0/src/henosis/engine/selection.py +607 -0
- henosis_engine-0.1.0/src/henosis/engine/session.py +45 -0
- henosis_engine-0.1.0/src/henosis/engine/types.py +364 -0
- henosis_engine-0.1.0/src/henosis/explorer/__init__.py +0 -0
- henosis_engine-0.1.0/src/henosis/explorer/router.py +41 -0
- henosis_engine-0.1.0/src/henosis/explorer/static/assets/main.css +281 -0
- henosis_engine-0.1.0/src/henosis/explorer/static/assets/main.js +979 -0
- henosis_engine-0.1.0/src/henosis/explorer/static/index.html +108 -0
- henosis_engine-0.1.0/src/henosis/graph/__init__.py +7 -0
- henosis_engine-0.1.0/src/henosis/graph/store.py +92 -0
- henosis_engine-0.1.0/src/henosis/graph/sync.py +183 -0
- henosis_engine-0.1.0/src/henosis/ontology/__init__.py +1 -0
- henosis_engine-0.1.0/src/henosis/ontology/compiler.py +401 -0
- henosis_engine-0.1.0/src/henosis/ontology/loader.py +156 -0
- henosis_engine-0.1.0/src/henosis/ontology/models.py +980 -0
- henosis_engine-0.1.0/src/henosis/ontology/owl_export.py +328 -0
- henosis_engine-0.1.0/src/henosis/ontology/probe.py +303 -0
- henosis_engine-0.1.0/src/henosis/ontology/schema_gen.py +26 -0
- henosis_engine-0.1.0/src/henosis/ontology/store.py +1055 -0
- henosis_engine-0.1.0/src/henosis/ontology/validator.py +752 -0
- henosis_engine-0.1.0/src/henosis/scaffold/__init__.py +26 -0
- henosis_engine-0.1.0/src/henosis/scaffold/catalog.py +90 -0
- henosis_engine-0.1.0/src/henosis/scaffold/templates.py +76 -0
- henosis_engine-0.1.0/src/henosis/security/__init__.py +1 -0
- henosis_engine-0.1.0/src/henosis/security/backends/__init__.py +1 -0
- henosis_engine-0.1.0/src/henosis/security/backends/base.py +24 -0
- henosis_engine-0.1.0/src/henosis/security/backends/env.py +25 -0
- henosis_engine-0.1.0/src/henosis/security/backends/snowflake.py +44 -0
- henosis_engine-0.1.0/src/henosis/security/backends/vault.py +10 -0
- henosis_engine-0.1.0/src/henosis/security/credentials.py +40 -0
- henosis_engine-0.1.0/src/henosis/serving/__init__.py +1 -0
- henosis_engine-0.1.0/src/henosis/serving/api/__init__.py +0 -0
- henosis_engine-0.1.0/src/henosis/serving/api/app.py +97 -0
- henosis_engine-0.1.0/src/henosis/serving/api/contract.py +55 -0
- henosis_engine-0.1.0/src/henosis/serving/api/deps.py +54 -0
- henosis_engine-0.1.0/src/henosis/serving/api/routes/__init__.py +0 -0
- henosis_engine-0.1.0/src/henosis/serving/api/routes/actions.py +82 -0
- henosis_engine-0.1.0/src/henosis/serving/api/routes/connections.py +31 -0
- henosis_engine-0.1.0/src/henosis/serving/api/routes/documents.py +41 -0
- henosis_engine-0.1.0/src/henosis/serving/api/routes/entities.py +80 -0
- henosis_engine-0.1.0/src/henosis/serving/api/routes/graph.py +33 -0
- henosis_engine-0.1.0/src/henosis/serving/api/routes/health.py +15 -0
- henosis_engine-0.1.0/src/henosis/serving/api/routes/observations.py +43 -0
- henosis_engine-0.1.0/src/henosis/serving/api/routes/ontology.py +25 -0
- henosis_engine-0.1.0/src/henosis/serving/api/routes/project.py +40 -0
- henosis_engine-0.1.0/src/henosis/serving/api/routes/relationships.py +56 -0
- henosis_engine-0.1.0/src/henosis/serving/api/routes/search.py +34 -0
- henosis_engine-0.1.0/src/henosis/serving/api/routes/select.py +43 -0
- henosis_engine-0.1.0/src/henosis/serving/locking.py +20 -0
- henosis_engine-0.1.0/src/henosis/serving/mcp/__init__.py +1 -0
- henosis_engine-0.1.0/src/henosis/serving/mcp/formats.py +136 -0
- henosis_engine-0.1.0/src/henosis/serving/mcp/handlers.py +541 -0
- henosis_engine-0.1.0/src/henosis/serving/mcp/instrumentation.py +80 -0
- henosis_engine-0.1.0/src/henosis/serving/mcp/server.py +523 -0
- henosis_engine-0.1.0/tests/conftest.py +56 -0
- henosis_engine-0.1.0/tests/fixtures/sample_project/henosis.yaml +15 -0
- henosis_engine-0.1.0/tests/fixtures/sample_project/instances/fields.yaml +12 -0
- henosis_engine-0.1.0/tests/fixtures/sample_project/models/field.yaml +11 -0
- henosis_engine-0.1.0/tests/fixtures/sample_project/models/maintenance_event.yaml +26 -0
- henosis_engine-0.1.0/tests/fixtures/sample_project/models/well.yaml +27 -0
- henosis_engine-0.1.0/tests/integration/_demo_project.py +177 -0
- henosis_engine-0.1.0/tests/integration/_pi_server.py +116 -0
- henosis_engine-0.1.0/tests/integration/_rest_project.py +87 -0
- henosis_engine-0.1.0/tests/integration/_rest_server.py +145 -0
- henosis_engine-0.1.0/tests/integration/conftest.py +67 -0
- henosis_engine-0.1.0/tests/integration/test_combined_serve.py +68 -0
- henosis_engine-0.1.0/tests/integration/test_cooper_basin.py +170 -0
- henosis_engine-0.1.0/tests/integration/test_entity_queries.py +76 -0
- henosis_engine-0.1.0/tests/integration/test_explorer_api.py +60 -0
- henosis_engine-0.1.0/tests/integration/test_init_quickstart.py +39 -0
- henosis_engine-0.1.0/tests/integration/test_mcp_server.py +120 -0
- henosis_engine-0.1.0/tests/integration/test_pi_observations.py +119 -0
- henosis_engine-0.1.0/tests/integration/test_pi_web_api.py +106 -0
- henosis_engine-0.1.0/tests/integration/test_rest_compile_probe.py +36 -0
- henosis_engine-0.1.0/tests/integration/test_rest_no_persist.py +64 -0
- henosis_engine-0.1.0/tests/integration/test_rest_pagination.py +71 -0
- henosis_engine-0.1.0/tests/integration/test_rest_source.py +54 -0
- henosis_engine-0.1.0/tests/unit/cli/test_cmd_compile.py +30 -0
- henosis_engine-0.1.0/tests/unit/cli/test_cmd_init.py +55 -0
- henosis_engine-0.1.0/tests/unit/cli/test_version.py +34 -0
- henosis_engine-0.1.0/tests/unit/components/test_components.py +111 -0
- henosis_engine-0.1.0/tests/unit/components/test_subprocess_launcher.py +68 -0
- henosis_engine-0.1.0/tests/unit/connectors/test_attach_base.py +323 -0
- henosis_engine-0.1.0/tests/unit/connectors/test_duckdb_ext.py +311 -0
- henosis_engine-0.1.0/tests/unit/connectors/test_registry.py +121 -0
- henosis_engine-0.1.0/tests/unit/connectors/test_test_connection.py +112 -0
- henosis_engine-0.1.0/tests/unit/engine/test_actions.py +496 -0
- henosis_engine-0.1.0/tests/unit/engine/test_engine.py +1389 -0
- henosis_engine-0.1.0/tests/unit/engine/test_mapper.py +69 -0
- henosis_engine-0.1.0/tests/unit/engine/test_planner.py +695 -0
- henosis_engine-0.1.0/tests/unit/engine/test_polymorphic_relationships.py +183 -0
- henosis_engine-0.1.0/tests/unit/engine/test_selection.py +38 -0
- henosis_engine-0.1.0/tests/unit/ontology/test_compiler.py +283 -0
- henosis_engine-0.1.0/tests/unit/ontology/test_loader.py +78 -0
- henosis_engine-0.1.0/tests/unit/ontology/test_models.py +555 -0
- henosis_engine-0.1.0/tests/unit/ontology/test_owl_export.py +225 -0
- henosis_engine-0.1.0/tests/unit/ontology/test_probe.py +226 -0
- henosis_engine-0.1.0/tests/unit/ontology/test_schema_gen.py +18 -0
- henosis_engine-0.1.0/tests/unit/ontology/test_store.py +420 -0
- henosis_engine-0.1.0/tests/unit/ontology/test_validator.py +400 -0
- henosis_engine-0.1.0/tests/unit/scaffold/test_catalog.py +69 -0
- henosis_engine-0.1.0/tests/unit/scaffold/test_templates.py +61 -0
- henosis_engine-0.1.0/tests/unit/security/test_credentials.py +80 -0
- henosis_engine-0.1.0/tests/unit/serving/api/conftest.py +143 -0
- henosis_engine-0.1.0/tests/unit/serving/api/test_actions_route.py +226 -0
- henosis_engine-0.1.0/tests/unit/serving/api/test_observations_route.py +63 -0
- henosis_engine-0.1.0/tests/unit/serving/api/test_openapi_contract.py +29 -0
- henosis_engine-0.1.0/tests/unit/serving/api/test_routes.py +264 -0
- henosis_engine-0.1.0/tests/unit/serving/mcp/conftest.py +107 -0
- henosis_engine-0.1.0/tests/unit/serving/mcp/test_handlers.py +182 -0
- henosis_engine-0.1.0/tests/unit/serving/mcp/test_mcp_format.py +83 -0
- henosis_engine-0.1.0/tests/unit/serving/mcp/test_server.py +82 -0
- henosis_engine-0.1.0/tests/unit/test_dlt_import_boundary.py +52 -0
- henosis_engine-0.1.0/uv.lock +2510 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
concurrency:
|
|
12
|
+
group: ci-${{ github.ref }}
|
|
13
|
+
cancel-in-progress: true
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
test:
|
|
17
|
+
name: test (py${{ matrix.python-version }})
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
strategy:
|
|
20
|
+
fail-fast: false
|
|
21
|
+
matrix:
|
|
22
|
+
python-version: ["3.11", "3.12", "3.13"]
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@v4
|
|
25
|
+
|
|
26
|
+
- uses: astral-sh/setup-uv@v5
|
|
27
|
+
with:
|
|
28
|
+
enable-cache: true
|
|
29
|
+
python-version: ${{ matrix.python-version }}
|
|
30
|
+
|
|
31
|
+
# No --all-extras: the snowflake extra is deliberately absent here, which
|
|
32
|
+
# is what the mypy override in pyproject.toml assumes.
|
|
33
|
+
- run: uv sync --locked
|
|
34
|
+
|
|
35
|
+
- run: uv run ruff check .
|
|
36
|
+
|
|
37
|
+
- run: uv run mypy
|
|
38
|
+
|
|
39
|
+
- run: uv run pytest -q
|
|
40
|
+
|
|
41
|
+
# Guards the one failure the unit tests structurally cannot catch: hatch_build.py
|
|
42
|
+
# ships _examples/ into the wheel, and if that stops working the package still
|
|
43
|
+
# builds and every test still passes while `henosis init` breaks for new users.
|
|
44
|
+
wheel:
|
|
45
|
+
name: wheel smoke test
|
|
46
|
+
runs-on: ubuntu-latest
|
|
47
|
+
steps:
|
|
48
|
+
- uses: actions/checkout@v4
|
|
49
|
+
|
|
50
|
+
- uses: astral-sh/setup-uv@v5
|
|
51
|
+
with:
|
|
52
|
+
enable-cache: true
|
|
53
|
+
python-version: "3.11"
|
|
54
|
+
|
|
55
|
+
- run: uv build --out-dir dist
|
|
56
|
+
|
|
57
|
+
- name: Validate package metadata
|
|
58
|
+
run: uvx twine check dist/*
|
|
59
|
+
|
|
60
|
+
- name: Wheel bundles the example templates
|
|
61
|
+
run: |
|
|
62
|
+
count=$(unzip -l dist/*.whl | grep -c 'henosis/_examples/')
|
|
63
|
+
echo "example files in wheel: $count"
|
|
64
|
+
[ "$count" -gt 0 ] || { echo "::error::wheel ships no _examples/ — henosis init will fail"; exit 1; }
|
|
65
|
+
|
|
66
|
+
- name: Install the wheel into a clean environment
|
|
67
|
+
run: |
|
|
68
|
+
uv venv /tmp/smoke
|
|
69
|
+
VIRTUAL_ENV=/tmp/smoke uv pip install dist/*.whl
|
|
70
|
+
|
|
71
|
+
- name: A new user's first commands work
|
|
72
|
+
run: |
|
|
73
|
+
/tmp/smoke/bin/henosis --version
|
|
74
|
+
/tmp/smoke/bin/henosis init --list
|
|
75
|
+
cd "$(mktemp -d)"
|
|
76
|
+
/tmp/smoke/bin/henosis init cooper-basin
|
|
77
|
+
test -f cooper-basin/.henosis/ontology.duckdb
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
# Tagging v0.1.0 publishes 0.1.0 to PyPI.
|
|
5
|
+
push:
|
|
6
|
+
tags: ["v*"]
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
|
|
17
|
+
- uses: astral-sh/setup-uv@v5
|
|
18
|
+
with:
|
|
19
|
+
enable-cache: true
|
|
20
|
+
python-version: "3.11"
|
|
21
|
+
|
|
22
|
+
# Without this, tagging v0.2.0 while pyproject still says 0.1.0 publishes
|
|
23
|
+
# 0.1.0 — and PyPI never lets that version number be reused.
|
|
24
|
+
- name: Tag matches the project version
|
|
25
|
+
run: |
|
|
26
|
+
tag="${GITHUB_REF_NAME#v}"
|
|
27
|
+
version=$(uv run --no-project python -c "import tomllib;print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")
|
|
28
|
+
echo "tag=$tag project version=$version"
|
|
29
|
+
if [ "$tag" != "$version" ]; then
|
|
30
|
+
echo "::error::tag $tag does not match pyproject version $version"
|
|
31
|
+
exit 1
|
|
32
|
+
fi
|
|
33
|
+
|
|
34
|
+
- run: uv build --out-dir dist
|
|
35
|
+
|
|
36
|
+
- name: Validate package metadata
|
|
37
|
+
run: uvx twine check dist/*
|
|
38
|
+
|
|
39
|
+
- uses: actions/upload-artifact@v4
|
|
40
|
+
with:
|
|
41
|
+
name: dist
|
|
42
|
+
path: dist/
|
|
43
|
+
|
|
44
|
+
pypi:
|
|
45
|
+
needs: build
|
|
46
|
+
runs-on: ubuntu-latest
|
|
47
|
+
environment: pypi
|
|
48
|
+
permissions:
|
|
49
|
+
id-token: write # Trusted Publishing — no API token is stored anywhere.
|
|
50
|
+
steps:
|
|
51
|
+
- uses: actions/download-artifact@v4
|
|
52
|
+
with:
|
|
53
|
+
name: dist
|
|
54
|
+
path: dist/
|
|
55
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
__pycache__/
|
|
2
|
+
*.py[cod]
|
|
3
|
+
.venv/
|
|
4
|
+
.mypy_cache/
|
|
5
|
+
.ruff_cache/
|
|
6
|
+
.pytest_cache/
|
|
7
|
+
*.egg-info/
|
|
8
|
+
dist/
|
|
9
|
+
|
|
10
|
+
# Generated demo/example data — regenerate with seed_demo.py, never durable
|
|
11
|
+
examples/*/data/
|
|
12
|
+
# Component-owned output stores — written at runtime by logic components
|
|
13
|
+
# (e.g. deferment.parquet, network_allocation.parquet), never durable
|
|
14
|
+
examples/*/components/*.parquet
|
|
15
|
+
|
|
16
|
+
# Compiled ontology store — regenerate with `henosis compile`, never durable
|
|
17
|
+
.henosis/
|
|
18
|
+
|
|
19
|
+
# Benchmark harness run artifacts (spec 008) — per-call JSONL logs + reports,
|
|
20
|
+
# regenerated by `henosis-bench run`, never durable. Gold-task fixtures under
|
|
21
|
+
# bench/tasks/ ARE committed; only the run outputs are ignored.
|
|
22
|
+
bench/runs/
|
|
23
|
+
node_modules
|
|
24
|
+
|
|
25
|
+
.claude
|
|
26
|
+
|
|
27
|
+
# impeccable design-tool output — local config/cache, screenshots, and
|
|
28
|
+
# generated design/product specs; never durable
|
|
29
|
+
.impeccable/
|
|
30
|
+
.critique-shots/
|
|
31
|
+
|
|
32
|
+
# Secrets — only the ${ENV_VAR} templates are ever committed. Real values live
|
|
33
|
+
# in .env.local / .env, which must stay local (see security/credentials.py).
|
|
34
|
+
.env
|
|
35
|
+
.env.*
|
|
36
|
+
!.env.example
|
|
37
|
+
*.pem
|
|
38
|
+
*.key
|
|
39
|
+
credentials.json
|
|
40
|
+
|
|
41
|
+
# macOS
|
|
42
|
+
.DS_Store
|
|
43
|
+
# A stray second graphify output tree; the real one is at the repo root.
|
|
44
|
+
src/graphify-out/
|
|
45
|
+
graphify-out
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"mcpServers": {
|
|
3
|
+
"henosis": {
|
|
4
|
+
"command": "uv",
|
|
5
|
+
"args": [
|
|
6
|
+
"run",
|
|
7
|
+
"henosis",
|
|
8
|
+
"serve",
|
|
9
|
+
"--stdio",
|
|
10
|
+
"--project",
|
|
11
|
+
"examples/cooper_basin"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"henosis-canvas": {
|
|
15
|
+
"type": "http",
|
|
16
|
+
"url": "http://localhost:3000/api/mcp"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Chris Bouras
|
|
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,255 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: henosis-engine
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: An open-source context engine for physical assets.
|
|
5
|
+
Project-URL: Homepage, https://www.henos.io
|
|
6
|
+
Project-URL: Documentation, https://www.henos.io/docs
|
|
7
|
+
Project-URL: Repository, https://github.com/henos-io/henosis
|
|
8
|
+
Project-URL: Issues, https://github.com/henos-io/henosis/issues
|
|
9
|
+
Author-email: Chris Bouras <chris.bouras@henos.io>
|
|
10
|
+
License-Expression: MIT
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Keywords: asset-management,data-federation,digital-twin,duckdb,historian,industrial,knowledge-graph,mcp,model-context-protocol,ontology
|
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
|
14
|
+
Classifier: Environment :: Console
|
|
15
|
+
Classifier: Framework :: FastAPI
|
|
16
|
+
Classifier: Intended Audience :: Developers
|
|
17
|
+
Classifier: Intended Audience :: Information Technology
|
|
18
|
+
Classifier: Intended Audience :: Science/Research
|
|
19
|
+
Classifier: Operating System :: OS Independent
|
|
20
|
+
Classifier: Programming Language :: Python :: 3
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
24
|
+
Classifier: Topic :: Database
|
|
25
|
+
Classifier: Topic :: Scientific/Engineering :: Information Analysis
|
|
26
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
27
|
+
Requires-Python: >=3.11
|
|
28
|
+
Requires-Dist: common-expression-language>=0.7
|
|
29
|
+
Requires-Dist: dlt>=1.4
|
|
30
|
+
Requires-Dist: duckdb>=1.0
|
|
31
|
+
Requires-Dist: fastapi>=0.115
|
|
32
|
+
Requires-Dist: mcp>=2
|
|
33
|
+
Requires-Dist: pyarrow>=14
|
|
34
|
+
Requires-Dist: pydantic>=2.7
|
|
35
|
+
Requires-Dist: pytz
|
|
36
|
+
Requires-Dist: pyyaml>=6.0
|
|
37
|
+
Requires-Dist: typer>=0.12
|
|
38
|
+
Requires-Dist: uvicorn>=0.30
|
|
39
|
+
Provides-Extra: owl
|
|
40
|
+
Requires-Dist: rdflib>=7.0; extra == 'owl'
|
|
41
|
+
Provides-Extra: snowflake
|
|
42
|
+
Requires-Dist: snowflake-connector-python[pandas]>=3.0; extra == 'snowflake'
|
|
43
|
+
Description-Content-Type: text/markdown
|
|
44
|
+
|
|
45
|
+
# henosis
|
|
46
|
+
|
|
47
|
+
**One asset context. Every decision.**
|
|
48
|
+
|
|
49
|
+
*Open-source context engine for physical assets.*
|
|
50
|
+
|
|
51
|
+
Bring your operational systems together in one live, shared view so people,
|
|
52
|
+
software and AI agents can find answers and take action without moving your data.
|
|
53
|
+
|
|
54
|
+
**[henos.io](https://www.henos.io)** · [Docs](https://www.henos.io/docs) · [Quickstart](https://www.henos.io/docs/quickstart)
|
|
55
|
+
|
|
56
|
+
<picture>
|
|
57
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/henos-io/henosis/main/logo/henosis-hero-dark.svg">
|
|
58
|
+
<img alt="One asset context, every decision. People, applications and AI agents draw on shared asset context assembled from existing source systems, with actions flowing back to where the work happens." src="https://raw.githubusercontent.com/henos-io/henosis/main/logo/henosis-hero-light.svg">
|
|
59
|
+
</picture>
|
|
60
|
+
|
|
61
|
+
> **Early and under active development.** henosis is at an early stage and
|
|
62
|
+
> changing quickly — expect rough edges, and expect APIs, the ontology grammar
|
|
63
|
+
> and the CLI to change between releases. It is not yet recommended for
|
|
64
|
+
> production use.
|
|
65
|
+
>
|
|
66
|
+
> **Available today:** the henosis Engine, REST API, MCP server and developer
|
|
67
|
+
> Explorer. The end-user Canvas shown above is in development and is not yet
|
|
68
|
+
> publicly available.
|
|
69
|
+
|
|
70
|
+
## Built around how asset decisions are made
|
|
71
|
+
|
|
72
|
+
henosis organises information about your operation into five clear roles:
|
|
73
|
+
|
|
74
|
+
- **Identity** — what it is
|
|
75
|
+
- **Location** — where it is
|
|
76
|
+
- **Observation** — what it is doing, now and over time
|
|
77
|
+
- **Documents** — what is known about it
|
|
78
|
+
- **Relationships** — what it is connected to
|
|
79
|
+
|
|
80
|
+
These roles give each piece of information a clear purpose. Locations can appear on
|
|
81
|
+
maps, observations can be plotted over time, and relationships can be followed
|
|
82
|
+
directly. The meaning is built into the model instead of recreated in every tool.
|
|
83
|
+
|
|
84
|
+
A decision draws on those roles. An action can then write the result back to the
|
|
85
|
+
source system, making the new state available to the next decision.
|
|
86
|
+
|
|
87
|
+
## Engine, Explorer and Canvas
|
|
88
|
+
|
|
89
|
+
### Engine
|
|
90
|
+
|
|
91
|
+
The **Engine** is the open-source software in this repository. It compiles the YAML
|
|
92
|
+
model, resolves data from connected systems and serves the result through:
|
|
93
|
+
|
|
94
|
+
- **REST API** (`/v1`) for applications and integrations
|
|
95
|
+
- **MCP tools** (`/mcp`) for AI agents
|
|
96
|
+
|
|
97
|
+
Operational values stay in their source systems. The Engine stores the compiled
|
|
98
|
+
model, routing information and relationship index.
|
|
99
|
+
|
|
100
|
+
### Explorer
|
|
101
|
+
|
|
102
|
+
The **Explorer** is a developer interface included with the Engine. Use it to inspect
|
|
103
|
+
the ontology, test connections, exercise REST endpoints and browse entities while
|
|
104
|
+
building a model.
|
|
105
|
+
|
|
106
|
+
The Explorer is not an operational dashboard and is not the Canvas.
|
|
107
|
+
|
|
108
|
+
### Canvas
|
|
109
|
+
|
|
110
|
+
The **Canvas** is a separate end-user workspace being developed on top of the
|
|
111
|
+
Engine. It will bring maps, trends, entity details and agent-driven workflows into
|
|
112
|
+
one operational surface.
|
|
113
|
+
|
|
114
|
+
The Canvas is not included in this repository and is not yet publicly available.
|
|
115
|
+
|
|
116
|
+
## Why henosis
|
|
117
|
+
|
|
118
|
+
- **One model, multiple interfaces.** Applications use the REST API and AI agents
|
|
119
|
+
call MCP tools today. The Canvas will bring the same model to people.
|
|
120
|
+
- **MIT licensed and self-hosted.** Run henosis in your own environment. Inspect,
|
|
121
|
+
adapt and extend the code.
|
|
122
|
+
- **Read data where it lives.** henosis queries historians, maintenance records,
|
|
123
|
+
maps and documents in their source systems. There is no migration or duplicate
|
|
124
|
+
data layer.
|
|
125
|
+
- **Write actions back to source systems.** People and agents can act on what they
|
|
126
|
+
find, with governed changes recorded where the work happens.
|
|
127
|
+
|
|
128
|
+
## Works with what you already run
|
|
129
|
+
|
|
130
|
+
Connect the systems that already hold your operational context:
|
|
131
|
+
|
|
132
|
+
| System | Connectors available today |
|
|
133
|
+
|---|---|
|
|
134
|
+
| Historians and signals | AVEVA PI Web API |
|
|
135
|
+
| Databases | PostgreSQL · MySQL · Snowflake · SQLite |
|
|
136
|
+
| Services and APIs | REST / HTTP APIs |
|
|
137
|
+
| Files and lakes | Parquet · CSV |
|
|
138
|
+
| Geospatial services | ArcGIS · WFS |
|
|
139
|
+
| Documents | Local file-backed documents |
|
|
140
|
+
|
|
141
|
+
Need another source? Register a connector without forking or changing the Engine
|
|
142
|
+
core. Snowflake support uses the optional `snowflake` dependency.
|
|
143
|
+
|
|
144
|
+
## Where it fits
|
|
145
|
+
|
|
146
|
+
A generic graph can show what is connected without defining what each connection
|
|
147
|
+
means. henosis gives information a clear role and provides tools for querying it,
|
|
148
|
+
so applications and agents spend less time working out where to look.
|
|
149
|
+
|
|
150
|
+
henosis complements an existing data foundation. It does not replace a warehouse,
|
|
151
|
+
knowledge graph, digital twin, dashboard or RAG system. It provides a live,
|
|
152
|
+
opinionated asset model that those systems can supply or consume.
|
|
153
|
+
|
|
154
|
+
## Install
|
|
155
|
+
|
|
156
|
+
henosis requires Python 3.11+. The package name is `henosis-engine`; the CLI command
|
|
157
|
+
is `henosis`.
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
uv tool install henosis-engine
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Or install from source:
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
git clone https://github.com/henos-io/henosis.git
|
|
167
|
+
cd henosis
|
|
168
|
+
uv tool install .
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
## Quickstart
|
|
172
|
+
|
|
173
|
+
Create the included Cooper Basin example and start the local server:
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
henosis init cooper-basin
|
|
177
|
+
henosis serve -p cooper-basin --mcp
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
Open <http://127.0.0.1:8000> to explore the live model. Search across entity types,
|
|
181
|
+
then follow an asset's relationships, readings, location and documents.
|
|
182
|
+
|
|
183
|
+
The example is a synthetic upstream gas operation backed by local SQLite and
|
|
184
|
+
Parquet sources. `henosis init` creates the project, generates its data, compiles
|
|
185
|
+
the ontology and builds the relationship index.
|
|
186
|
+
|
|
187
|
+
Run `henosis init --list` to see the other worked examples. Each scaffolded project
|
|
188
|
+
is yours to edit, and its YAML files are the source of truth for the model. See
|
|
189
|
+
[Ontology and data sources](https://www.henos.io/docs/ontology-and-data-sources)
|
|
190
|
+
for the authoring guide.
|
|
191
|
+
|
|
192
|
+
## Connect an AI agent
|
|
193
|
+
|
|
194
|
+
Start the server with MCP mounted, then point your client at it through
|
|
195
|
+
[`mcp-remote`](https://www.npmjs.com/package/mcp-remote):
|
|
196
|
+
|
|
197
|
+
```bash
|
|
198
|
+
henosis serve -p cooper-basin --mcp
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
```json
|
|
202
|
+
{
|
|
203
|
+
"mcpServers": {
|
|
204
|
+
"henosis": {
|
|
205
|
+
"command": "npx",
|
|
206
|
+
"args": ["-y", "mcp-remote", "http://127.0.0.1:8000/mcp", "--http"]
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
This works with any MCP client and lets several clients share one running
|
|
213
|
+
server. Clients that speak Streamable HTTP natively can point at `/mcp` directly.
|
|
214
|
+
|
|
215
|
+
Alternatively, a client can launch henosis as a local subprocess over stdio,
|
|
216
|
+
which needs no server running and no Node:
|
|
217
|
+
|
|
218
|
+
```json
|
|
219
|
+
{
|
|
220
|
+
"mcpServers": {
|
|
221
|
+
"henosis": {
|
|
222
|
+
"command": "henosis",
|
|
223
|
+
"args": ["serve", "--stdio", "-p", "/absolute/path/to/cooper-basin"]
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
Use authentication and HTTPS for any deployment beyond localhost.
|
|
230
|
+
|
|
231
|
+
## Status
|
|
232
|
+
|
|
233
|
+
henosis is an early technical preview. The Engine, compiler, ontology store,
|
|
234
|
+
connectors, REST and MCP serving, CLI, developer Explorer and worked examples are
|
|
235
|
+
built and exercised against the included scenarios.
|
|
236
|
+
|
|
237
|
+
APIs may change during the preview. The Canvas remains in development and is not
|
|
238
|
+
yet available.
|
|
239
|
+
|
|
240
|
+
## Feedback
|
|
241
|
+
|
|
242
|
+
If this idea maps to a problem in your environment, open an issue or contact
|
|
243
|
+
[Chris Bouras](mailto:chris.bouras@henos.io).
|
|
244
|
+
|
|
245
|
+
## Security
|
|
246
|
+
|
|
247
|
+
The Engine does not yet include built-in authentication. `serve` binds to
|
|
248
|
+
`127.0.0.1` by default. Any deployment reachable beyond localhost needs
|
|
249
|
+
authentication and TLS in front of it.
|
|
250
|
+
|
|
251
|
+
To report a vulnerability, see [SECURITY.md](https://github.com/henos-io/henosis/blob/main/SECURITY.md).
|
|
252
|
+
|
|
253
|
+
## License
|
|
254
|
+
|
|
255
|
+
[MIT License](https://github.com/henos-io/henosis/blob/main/LICENSE).
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
# henosis
|
|
2
|
+
|
|
3
|
+
**One asset context. Every decision.**
|
|
4
|
+
|
|
5
|
+
*Open-source context engine for physical assets.*
|
|
6
|
+
|
|
7
|
+
Bring your operational systems together in one live, shared view so people,
|
|
8
|
+
software and AI agents can find answers and take action without moving your data.
|
|
9
|
+
|
|
10
|
+
**[henos.io](https://www.henos.io)** · [Docs](https://www.henos.io/docs) · [Quickstart](https://www.henos.io/docs/quickstart)
|
|
11
|
+
|
|
12
|
+
<picture>
|
|
13
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/henos-io/henosis/main/logo/henosis-hero-dark.svg">
|
|
14
|
+
<img alt="One asset context, every decision. People, applications and AI agents draw on shared asset context assembled from existing source systems, with actions flowing back to where the work happens." src="https://raw.githubusercontent.com/henos-io/henosis/main/logo/henosis-hero-light.svg">
|
|
15
|
+
</picture>
|
|
16
|
+
|
|
17
|
+
> **Early and under active development.** henosis is at an early stage and
|
|
18
|
+
> changing quickly — expect rough edges, and expect APIs, the ontology grammar
|
|
19
|
+
> and the CLI to change between releases. It is not yet recommended for
|
|
20
|
+
> production use.
|
|
21
|
+
>
|
|
22
|
+
> **Available today:** the henosis Engine, REST API, MCP server and developer
|
|
23
|
+
> Explorer. The end-user Canvas shown above is in development and is not yet
|
|
24
|
+
> publicly available.
|
|
25
|
+
|
|
26
|
+
## Built around how asset decisions are made
|
|
27
|
+
|
|
28
|
+
henosis organises information about your operation into five clear roles:
|
|
29
|
+
|
|
30
|
+
- **Identity** — what it is
|
|
31
|
+
- **Location** — where it is
|
|
32
|
+
- **Observation** — what it is doing, now and over time
|
|
33
|
+
- **Documents** — what is known about it
|
|
34
|
+
- **Relationships** — what it is connected to
|
|
35
|
+
|
|
36
|
+
These roles give each piece of information a clear purpose. Locations can appear on
|
|
37
|
+
maps, observations can be plotted over time, and relationships can be followed
|
|
38
|
+
directly. The meaning is built into the model instead of recreated in every tool.
|
|
39
|
+
|
|
40
|
+
A decision draws on those roles. An action can then write the result back to the
|
|
41
|
+
source system, making the new state available to the next decision.
|
|
42
|
+
|
|
43
|
+
## Engine, Explorer and Canvas
|
|
44
|
+
|
|
45
|
+
### Engine
|
|
46
|
+
|
|
47
|
+
The **Engine** is the open-source software in this repository. It compiles the YAML
|
|
48
|
+
model, resolves data from connected systems and serves the result through:
|
|
49
|
+
|
|
50
|
+
- **REST API** (`/v1`) for applications and integrations
|
|
51
|
+
- **MCP tools** (`/mcp`) for AI agents
|
|
52
|
+
|
|
53
|
+
Operational values stay in their source systems. The Engine stores the compiled
|
|
54
|
+
model, routing information and relationship index.
|
|
55
|
+
|
|
56
|
+
### Explorer
|
|
57
|
+
|
|
58
|
+
The **Explorer** is a developer interface included with the Engine. Use it to inspect
|
|
59
|
+
the ontology, test connections, exercise REST endpoints and browse entities while
|
|
60
|
+
building a model.
|
|
61
|
+
|
|
62
|
+
The Explorer is not an operational dashboard and is not the Canvas.
|
|
63
|
+
|
|
64
|
+
### Canvas
|
|
65
|
+
|
|
66
|
+
The **Canvas** is a separate end-user workspace being developed on top of the
|
|
67
|
+
Engine. It will bring maps, trends, entity details and agent-driven workflows into
|
|
68
|
+
one operational surface.
|
|
69
|
+
|
|
70
|
+
The Canvas is not included in this repository and is not yet publicly available.
|
|
71
|
+
|
|
72
|
+
## Why henosis
|
|
73
|
+
|
|
74
|
+
- **One model, multiple interfaces.** Applications use the REST API and AI agents
|
|
75
|
+
call MCP tools today. The Canvas will bring the same model to people.
|
|
76
|
+
- **MIT licensed and self-hosted.** Run henosis in your own environment. Inspect,
|
|
77
|
+
adapt and extend the code.
|
|
78
|
+
- **Read data where it lives.** henosis queries historians, maintenance records,
|
|
79
|
+
maps and documents in their source systems. There is no migration or duplicate
|
|
80
|
+
data layer.
|
|
81
|
+
- **Write actions back to source systems.** People and agents can act on what they
|
|
82
|
+
find, with governed changes recorded where the work happens.
|
|
83
|
+
|
|
84
|
+
## Works with what you already run
|
|
85
|
+
|
|
86
|
+
Connect the systems that already hold your operational context:
|
|
87
|
+
|
|
88
|
+
| System | Connectors available today |
|
|
89
|
+
|---|---|
|
|
90
|
+
| Historians and signals | AVEVA PI Web API |
|
|
91
|
+
| Databases | PostgreSQL · MySQL · Snowflake · SQLite |
|
|
92
|
+
| Services and APIs | REST / HTTP APIs |
|
|
93
|
+
| Files and lakes | Parquet · CSV |
|
|
94
|
+
| Geospatial services | ArcGIS · WFS |
|
|
95
|
+
| Documents | Local file-backed documents |
|
|
96
|
+
|
|
97
|
+
Need another source? Register a connector without forking or changing the Engine
|
|
98
|
+
core. Snowflake support uses the optional `snowflake` dependency.
|
|
99
|
+
|
|
100
|
+
## Where it fits
|
|
101
|
+
|
|
102
|
+
A generic graph can show what is connected without defining what each connection
|
|
103
|
+
means. henosis gives information a clear role and provides tools for querying it,
|
|
104
|
+
so applications and agents spend less time working out where to look.
|
|
105
|
+
|
|
106
|
+
henosis complements an existing data foundation. It does not replace a warehouse,
|
|
107
|
+
knowledge graph, digital twin, dashboard or RAG system. It provides a live,
|
|
108
|
+
opinionated asset model that those systems can supply or consume.
|
|
109
|
+
|
|
110
|
+
## Install
|
|
111
|
+
|
|
112
|
+
henosis requires Python 3.11+. The package name is `henosis-engine`; the CLI command
|
|
113
|
+
is `henosis`.
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
uv tool install henosis-engine
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Or install from source:
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
git clone https://github.com/henos-io/henosis.git
|
|
123
|
+
cd henosis
|
|
124
|
+
uv tool install .
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## Quickstart
|
|
128
|
+
|
|
129
|
+
Create the included Cooper Basin example and start the local server:
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
henosis init cooper-basin
|
|
133
|
+
henosis serve -p cooper-basin --mcp
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
Open <http://127.0.0.1:8000> to explore the live model. Search across entity types,
|
|
137
|
+
then follow an asset's relationships, readings, location and documents.
|
|
138
|
+
|
|
139
|
+
The example is a synthetic upstream gas operation backed by local SQLite and
|
|
140
|
+
Parquet sources. `henosis init` creates the project, generates its data, compiles
|
|
141
|
+
the ontology and builds the relationship index.
|
|
142
|
+
|
|
143
|
+
Run `henosis init --list` to see the other worked examples. Each scaffolded project
|
|
144
|
+
is yours to edit, and its YAML files are the source of truth for the model. See
|
|
145
|
+
[Ontology and data sources](https://www.henos.io/docs/ontology-and-data-sources)
|
|
146
|
+
for the authoring guide.
|
|
147
|
+
|
|
148
|
+
## Connect an AI agent
|
|
149
|
+
|
|
150
|
+
Start the server with MCP mounted, then point your client at it through
|
|
151
|
+
[`mcp-remote`](https://www.npmjs.com/package/mcp-remote):
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
henosis serve -p cooper-basin --mcp
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
```json
|
|
158
|
+
{
|
|
159
|
+
"mcpServers": {
|
|
160
|
+
"henosis": {
|
|
161
|
+
"command": "npx",
|
|
162
|
+
"args": ["-y", "mcp-remote", "http://127.0.0.1:8000/mcp", "--http"]
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
This works with any MCP client and lets several clients share one running
|
|
169
|
+
server. Clients that speak Streamable HTTP natively can point at `/mcp` directly.
|
|
170
|
+
|
|
171
|
+
Alternatively, a client can launch henosis as a local subprocess over stdio,
|
|
172
|
+
which needs no server running and no Node:
|
|
173
|
+
|
|
174
|
+
```json
|
|
175
|
+
{
|
|
176
|
+
"mcpServers": {
|
|
177
|
+
"henosis": {
|
|
178
|
+
"command": "henosis",
|
|
179
|
+
"args": ["serve", "--stdio", "-p", "/absolute/path/to/cooper-basin"]
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
Use authentication and HTTPS for any deployment beyond localhost.
|
|
186
|
+
|
|
187
|
+
## Status
|
|
188
|
+
|
|
189
|
+
henosis is an early technical preview. The Engine, compiler, ontology store,
|
|
190
|
+
connectors, REST and MCP serving, CLI, developer Explorer and worked examples are
|
|
191
|
+
built and exercised against the included scenarios.
|
|
192
|
+
|
|
193
|
+
APIs may change during the preview. The Canvas remains in development and is not
|
|
194
|
+
yet available.
|
|
195
|
+
|
|
196
|
+
## Feedback
|
|
197
|
+
|
|
198
|
+
If this idea maps to a problem in your environment, open an issue or contact
|
|
199
|
+
[Chris Bouras](mailto:chris.bouras@henos.io).
|
|
200
|
+
|
|
201
|
+
## Security
|
|
202
|
+
|
|
203
|
+
The Engine does not yet include built-in authentication. `serve` binds to
|
|
204
|
+
`127.0.0.1` by default. Any deployment reachable beyond localhost needs
|
|
205
|
+
authentication and TLS in front of it.
|
|
206
|
+
|
|
207
|
+
To report a vulnerability, see [SECURITY.md](https://github.com/henos-io/henosis/blob/main/SECURITY.md).
|
|
208
|
+
|
|
209
|
+
## License
|
|
210
|
+
|
|
211
|
+
[MIT License](https://github.com/henos-io/henosis/blob/main/LICENSE).
|