pulse8-ai-cortex-knowledge-vault 0.3.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.
- pulse8_ai_cortex_knowledge_vault-0.3.0/.env.example +16 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/.github/workflows/publish-docker.yml +44 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/.github/workflows/publish-pypi.yml +29 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/.github/workflows/pylint.yml +24 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/.gitignore +82 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/CHANGELOG.md +51 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/Dockerfile +34 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/LICENSE.md +248 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/PKG-INFO +266 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/README.md +232 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/claude_desktop_config.example.json +7 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/__init__.py +1 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/api/__init__.py +0 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/api/routes.py +328 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/compiler/__init__.py +0 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/compiler/compiler.py +151 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/compiler/extractor.py +41 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/compiler/prompts.py +35 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/config.py +36 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/graph/__init__.py +0 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/graph/builder.py +70 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/graph/context.py +127 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/graph/engine.py +170 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/log/__init__.py +0 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/log/audit.py +19 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/main.py +89 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/mcp/__init__.py +0 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/mcp/__main__.py +9 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/mcp/http_server.py +227 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/mcp/server.py +227 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/mcp/tools.py +309 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/search/__init__.py +0 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/search/qmd.py +76 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/search/qmd_cache.py +58 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/search/qmd_debounce.py +36 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/search/qmd_http.py +82 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/search/qmd_refresh.py +23 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/vault/__init__.py +0 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/vault/index.py +48 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/vault/models.py +85 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/vault/reader.py +170 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/vault/watcher.py +105 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/cortex/vault/writer.py +80 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/development_plan.md +1255 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/docker/qmd/Dockerfile +29 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/docker/qmd/server.mjs +187 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/docker-compose.yml +43 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/example_vault/.cortex/.gitkeep +0 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/example_vault/agents/.gitkeep +0 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/example_vault/daily/.gitkeep +0 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/example_vault/raw/transformer-paper.txt +17 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/example_vault/sessions/.gitkeep +0 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/example_vault/wiki/transformer-architecture.md +28 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/pyproject.toml +84 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/scripts/__init__.py +0 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/scripts/compile.py +60 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/scripts/env_check.sh +69 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/scripts/lint.py +90 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/scripts/reindex.py +43 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/scripts/serve.py +36 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/scripts/start.sh +61 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/scripts/stop.sh +9 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/tests/__init__.py +0 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/tests/conftest.py +78 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/tests/test_api.py +168 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/tests/test_builder.py +85 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/tests/test_compiler.py +161 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/tests/test_config.py +64 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/tests/test_context.py +182 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/tests/test_debounce.py +81 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/tests/test_graph.py +351 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/tests/test_index_and_log.py +127 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/tests/test_mcp.py +204 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/tests/test_mcp_http.py +233 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/tests/test_models.py +134 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/tests/test_pylint.py +22 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/tests/test_qmd_http.py +233 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/tests/test_qmd_refresh.py +76 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/tests/test_search.py +145 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/tests/test_search_cache.py +121 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/tests/test_start_sh.bats +73 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/tests/test_vault.py +227 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/tests/test_watcher.py +107 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/tests/test_writer.py +179 -0
- pulse8_ai_cortex_knowledge_vault-0.3.0/uv.lock +1073 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Cortex Environment Configuration
|
|
2
|
+
# Copy to .env and fill in your values: cp .env.example .env
|
|
3
|
+
|
|
4
|
+
# ── Required ─────────────────────────────────────────────────────────
|
|
5
|
+
# OpenRouter API key (get one at https://openrouter.ai/keys)
|
|
6
|
+
LLM_API_KEY=sk-or-...
|
|
7
|
+
|
|
8
|
+
# ── Optional ─────────────────────────────────────────────────────────
|
|
9
|
+
# LLM model to use for knowledge compilation
|
|
10
|
+
# COMPILER_MODEL=anthropic/claude-sonnet-4
|
|
11
|
+
|
|
12
|
+
# LLM API base URL (default: OpenRouter)
|
|
13
|
+
# LLM_BASE_URL=https://openrouter.ai/api/v1
|
|
14
|
+
|
|
15
|
+
# Path to your vault directory (default: ./example_vault)
|
|
16
|
+
# VAULT_DIR=./example_vault
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: Publish Docker Image
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: read
|
|
9
|
+
packages: write
|
|
10
|
+
|
|
11
|
+
env:
|
|
12
|
+
REGISTRY: ghcr.io
|
|
13
|
+
IMAGE_NAME: ${{ github.repository }}
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
docker:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v6
|
|
20
|
+
|
|
21
|
+
- name: Log in to GHCR
|
|
22
|
+
uses: docker/login-action@v3
|
|
23
|
+
with:
|
|
24
|
+
registry: ${{ env.REGISTRY }}
|
|
25
|
+
username: ${{ github.actor }}
|
|
26
|
+
password: ${{ secrets.GITHUB_TOKEN }}
|
|
27
|
+
|
|
28
|
+
- name: Extract metadata
|
|
29
|
+
id: meta
|
|
30
|
+
uses: docker/metadata-action@v5
|
|
31
|
+
with:
|
|
32
|
+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
|
33
|
+
tags: |
|
|
34
|
+
type=semver,pattern={{version}}
|
|
35
|
+
type=semver,pattern={{major}}.{{minor}}
|
|
36
|
+
type=sha
|
|
37
|
+
|
|
38
|
+
- name: Build and push
|
|
39
|
+
uses: docker/build-push-action@v6
|
|
40
|
+
with:
|
|
41
|
+
context: .
|
|
42
|
+
push: true
|
|
43
|
+
tags: ${{ steps.meta.outputs.tags }}
|
|
44
|
+
labels: ${{ steps.meta.outputs.labels }}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
id-token: write
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
pypi:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
environment: pypi
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v6
|
|
16
|
+
|
|
17
|
+
- name: Set up Python
|
|
18
|
+
uses: actions/setup-python@v6
|
|
19
|
+
with:
|
|
20
|
+
python-version: "3.12"
|
|
21
|
+
|
|
22
|
+
- name: Install build tools
|
|
23
|
+
run: pip install build
|
|
24
|
+
|
|
25
|
+
- name: Build package
|
|
26
|
+
run: python -m build
|
|
27
|
+
|
|
28
|
+
- name: Publish to PyPI
|
|
29
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: Pylint
|
|
2
|
+
|
|
3
|
+
on: [push]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
strategy:
|
|
9
|
+
matrix:
|
|
10
|
+
python-version: ["3.12", "3.13"]
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v6
|
|
13
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
14
|
+
uses: actions/setup-python@v6
|
|
15
|
+
with:
|
|
16
|
+
python-version: ${{ matrix.python-version }}
|
|
17
|
+
- name: Install dependencies
|
|
18
|
+
run: |
|
|
19
|
+
python -m pip install --upgrade pip
|
|
20
|
+
pip install pylint
|
|
21
|
+
pip install -e ".[dev]"
|
|
22
|
+
- name: Analysing the code with pylint
|
|
23
|
+
run: |
|
|
24
|
+
pylint $(git ls-files '*.py')
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
__pycache__/
|
|
2
|
+
*.py[cod]
|
|
3
|
+
*$py.class
|
|
4
|
+
*.so
|
|
5
|
+
.Python
|
|
6
|
+
build/
|
|
7
|
+
develop-eggs/
|
|
8
|
+
dist/
|
|
9
|
+
downloads/
|
|
10
|
+
eggs/
|
|
11
|
+
.eggs/
|
|
12
|
+
lib/
|
|
13
|
+
lib64/
|
|
14
|
+
parts/
|
|
15
|
+
sdist/
|
|
16
|
+
var/
|
|
17
|
+
wheels/
|
|
18
|
+
*.egg-info/
|
|
19
|
+
.installed.cfg
|
|
20
|
+
*.egg
|
|
21
|
+
*.manifest
|
|
22
|
+
*.spec
|
|
23
|
+
pip-log.txt
|
|
24
|
+
pip-delete-this-directory.txt
|
|
25
|
+
htmlcov/
|
|
26
|
+
.tox/
|
|
27
|
+
.nox/
|
|
28
|
+
.coverage
|
|
29
|
+
.coverage.*
|
|
30
|
+
.cache
|
|
31
|
+
nosetests.xml
|
|
32
|
+
coverage.xml
|
|
33
|
+
*.cover
|
|
34
|
+
*.py,cover
|
|
35
|
+
.hypothesis/
|
|
36
|
+
.pytest_cache/
|
|
37
|
+
cover/
|
|
38
|
+
*.log
|
|
39
|
+
local_settings.py
|
|
40
|
+
db.sqlite3
|
|
41
|
+
db.sqlite3-journal
|
|
42
|
+
instance/
|
|
43
|
+
.webassets-cache
|
|
44
|
+
.scrapy
|
|
45
|
+
docs/_build/
|
|
46
|
+
.pybuilder/
|
|
47
|
+
target/
|
|
48
|
+
.ipynb_checkpoints
|
|
49
|
+
profile_default/
|
|
50
|
+
ipython_config.py
|
|
51
|
+
.pdm.toml
|
|
52
|
+
.pdm-python
|
|
53
|
+
__pypackages__/
|
|
54
|
+
celerybeat-schedule
|
|
55
|
+
celerybeat.pid
|
|
56
|
+
*.sage.py
|
|
57
|
+
.env
|
|
58
|
+
.env.*
|
|
59
|
+
!.env.example
|
|
60
|
+
.venv
|
|
61
|
+
env/
|
|
62
|
+
venv/
|
|
63
|
+
ENV/
|
|
64
|
+
.spyderproject
|
|
65
|
+
.spyproject
|
|
66
|
+
.ropeproject
|
|
67
|
+
/site
|
|
68
|
+
.mypy_cache/
|
|
69
|
+
.dmypy.json
|
|
70
|
+
dmypy.json
|
|
71
|
+
.pyre/
|
|
72
|
+
.pytype/
|
|
73
|
+
cython_debug/
|
|
74
|
+
.ruff_cache/
|
|
75
|
+
.vscode/
|
|
76
|
+
.idea/
|
|
77
|
+
.cursor/
|
|
78
|
+
*.swp
|
|
79
|
+
*.swo
|
|
80
|
+
*~
|
|
81
|
+
.DS_Store
|
|
82
|
+
Thumbs.db
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to PULSE8.ai Cortex are documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
7
|
+
|
|
8
|
+
## [0.2.0] — 2026-04-25
|
|
9
|
+
|
|
10
|
+
### Performance — QMD Search
|
|
11
|
+
|
|
12
|
+
- **Deduplicate periodic refresh**: Cortex no longer runs its own periodic QMD refresh timer when using the Docker stack, since the QMD container already manages its own. Cuts redundant `update` + `embed` cycles in half.
|
|
13
|
+
- **Fix `/update` client timeout**: Extended the `QMDHttpSearch.update()` timeout from 30s to 600s to match the server-side embed duration. Prevents silent client-side timeouts on large vaults.
|
|
14
|
+
- **Debounce write-triggered re-index**: Added `DebouncedQMDUpdate` that coalesces rapid writes into a single deferred `qmd.update()` call, avoiding N full re-indexes during batch operations.
|
|
15
|
+
- **Batch graph edge lookups**: Added `GraphEngine.get_edges_batch()` using `asyncio.gather` to fetch edges for all search results in parallel instead of sequentially.
|
|
16
|
+
- **TTL search cache**: Wrapped QMD search with `CachedQMDSearch` — identical queries within a 30s window return cached results without spawning a QMD process. Cache is invalidated on `update()`.
|
|
17
|
+
- **Skip duplicate `/setup`**: `QMDHttpSearch.initialize()` now polls `/health` first and skips calling `/setup` if the QMD container has already finished its own setup, reducing cold-boot time.
|
|
18
|
+
|
|
19
|
+
### Performance — Vault Loading
|
|
20
|
+
|
|
21
|
+
- **Batch graph persistence**: Added `GraphEngine.batch()` context manager that defers `save()` calls during `build_graph`, replacing O(N) JSON serializations with a single write at the end.
|
|
22
|
+
- **Parallel vault scanning**: Added `scan_vault_async()` that offloads frontmatter parsing to a `ThreadPoolExecutor` for concurrent file I/O during startup.
|
|
23
|
+
- **Wikilink index**: Added `build_wikilink_index()` that pre-builds a stem-to-path lookup map, giving `build_graph` O(1) wikilink resolution instead of per-link filesystem traversals.
|
|
24
|
+
- **Accept pre-scanned notes in `rebuild_index`**: `rebuild_index()` now takes an optional `notes` parameter to skip redundant full vault scans when notes are already loaded.
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- **Consistent search mode**: `build_context_window` now respects `CORTEX_QMD_SEARCH_MODE` instead of always defaulting to `hybrid`, which is the most expensive mode.
|
|
29
|
+
|
|
30
|
+
### New Modules
|
|
31
|
+
|
|
32
|
+
- `cortex/search/qmd_debounce.py` — Debounced update scheduler
|
|
33
|
+
- `cortex/search/qmd_cache.py` — TTL search result cache
|
|
34
|
+
|
|
35
|
+
### Tests
|
|
36
|
+
|
|
37
|
+
- 34 new tests covering all performance improvements
|
|
38
|
+
- Total test count: 200+
|
|
39
|
+
|
|
40
|
+
## [0.1.0] — 2026-04-20
|
|
41
|
+
|
|
42
|
+
Initial open-source release.
|
|
43
|
+
|
|
44
|
+
- Knowledge graph engine (NetworkX) with typed edges and wikilinks
|
|
45
|
+
- Full-text search via QMD (keyword / semantic / hybrid)
|
|
46
|
+
- LLM compiler for transforming raw sources into wiki articles
|
|
47
|
+
- MCP server (streamable HTTP + stdio transport)
|
|
48
|
+
- REST API at `/api/v1/`
|
|
49
|
+
- Real-time vault watcher with filesystem monitoring
|
|
50
|
+
- Docker Compose stack with QMD sidecar
|
|
51
|
+
- Apache 2.0 license with PULSE8.ai additional terms
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
FROM python:3.12-slim
|
|
2
|
+
|
|
3
|
+
LABEL org.opencontainers.image.title="PULSE8.ai Cortex"
|
|
4
|
+
LABEL org.opencontainers.image.description="Agent-native knowledge OS built on Markdown"
|
|
5
|
+
LABEL org.opencontainers.image.vendor="PULSE8.ai"
|
|
6
|
+
|
|
7
|
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
8
|
+
curl \
|
|
9
|
+
poppler-utils \
|
|
10
|
+
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
11
|
+
|
|
12
|
+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
|
|
13
|
+
|
|
14
|
+
WORKDIR /app
|
|
15
|
+
|
|
16
|
+
COPY pyproject.toml uv.lock README.md ./
|
|
17
|
+
RUN uv sync --frozen --no-dev --no-install-project
|
|
18
|
+
|
|
19
|
+
COPY cortex/ cortex/
|
|
20
|
+
COPY scripts/ scripts/
|
|
21
|
+
RUN uv sync --frozen --no-dev
|
|
22
|
+
|
|
23
|
+
RUN mkdir -p /vault/raw /vault/wiki /vault/agents /vault/sessions /vault/daily /vault/.cortex
|
|
24
|
+
|
|
25
|
+
ENV CORTEX_VAULT_PATH=/vault
|
|
26
|
+
ENV CORTEX_MCP_TRANSPORT=http
|
|
27
|
+
ENV CORTEX_MCP_SSE_PORT=8420
|
|
28
|
+
|
|
29
|
+
EXPOSE 8420
|
|
30
|
+
|
|
31
|
+
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
|
|
32
|
+
CMD curl -sf http://localhost:8420/api/v1/health || exit 1
|
|
33
|
+
|
|
34
|
+
CMD ["uv", "run", "uvicorn", "cortex.main:app", "--host", "0.0.0.0", "--port", "8420"]
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
=========================================================================
|
|
179
|
+
|
|
180
|
+
ADDITIONAL TERMS — PULSE8.ai Cortex Open Source License
|
|
181
|
+
|
|
182
|
+
The following additional terms supplement the Apache License 2.0
|
|
183
|
+
and apply to all use of PULSE8.ai Cortex. By using, reproducing,
|
|
184
|
+
or distributing the Work, You agree to these additional terms.
|
|
185
|
+
|
|
186
|
+
=========================================================================
|
|
187
|
+
|
|
188
|
+
A1. Commercial License and Thresholds.
|
|
189
|
+
|
|
190
|
+
PULSE8.ai Cortex may be used for commercial purposes without a
|
|
191
|
+
separate commercial license. However, if You and Your Affiliates,
|
|
192
|
+
on a consolidated basis, meet either of the following thresholds
|
|
193
|
+
(A or B), You must obtain a separate commercial license from
|
|
194
|
+
PULSE8.ai before continuing such use:
|
|
195
|
+
|
|
196
|
+
A. Monthly Active Users (MAU) exceed 1 million.
|
|
197
|
+
|
|
198
|
+
B. Total Monthly Revenue (TMR) exceeds USD 5 million.
|
|
199
|
+
|
|
200
|
+
For the purposes of this section, MAU includes end-users of any
|
|
201
|
+
product or service that integrates PULSE8.ai Cortex, as well as
|
|
202
|
+
AI agents, API consumers, or MCP clients connecting to an instance
|
|
203
|
+
of PULSE8.ai Cortex.
|
|
204
|
+
|
|
205
|
+
A2. Service Attribution Obligation.
|
|
206
|
+
|
|
207
|
+
If You provide products or services to third parties that integrate
|
|
208
|
+
PULSE8.ai Cortex — whether as a hosted API, managed knowledge
|
|
209
|
+
service, embedded backend, or any other form — You must clearly and
|
|
210
|
+
prominently indicate, in the relevant product or service interface
|
|
211
|
+
or in publicly available documentation, that PULSE8.ai Cortex is
|
|
212
|
+
used.
|
|
213
|
+
|
|
214
|
+
A3. Termination of Additional Terms.
|
|
215
|
+
|
|
216
|
+
Where a separate commercial license is required under Section A1 but
|
|
217
|
+
is not obtained before continuing such use, or where the attribution
|
|
218
|
+
obligation under Section A2 is not complied with, this License and
|
|
219
|
+
all rights granted under this License will terminate automatically,
|
|
220
|
+
and no further notice from the Licensor is required.
|
|
221
|
+
|
|
222
|
+
A4. Definitions.
|
|
223
|
+
|
|
224
|
+
In these additional terms, "Affiliates" means any legal entity that
|
|
225
|
+
directly or indirectly controls, is controlled by, or is under
|
|
226
|
+
common control with You. "Control" means the power to direct the
|
|
227
|
+
management and operating decisions of an entity, whether through
|
|
228
|
+
equity ownership, voting rights, contractual arrangements, or
|
|
229
|
+
otherwise.
|
|
230
|
+
|
|
231
|
+
=========================================================================
|
|
232
|
+
|
|
233
|
+
Copyright 2026 PULSE8.ai
|
|
234
|
+
|
|
235
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
236
|
+
you may not use this file except in compliance with the License.
|
|
237
|
+
You may obtain a copy of the License at
|
|
238
|
+
|
|
239
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
240
|
+
|
|
241
|
+
Unless required by applicable law or agreed to in writing, software
|
|
242
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
243
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
244
|
+
implied. See the License for the specific language governing
|
|
245
|
+
permissions and limitations under the License.
|
|
246
|
+
|
|
247
|
+
This software is additionally subject to the PULSE8.ai Cortex
|
|
248
|
+
additional terms set out above (Sections A1–A4).
|