Context-Engine Source Available License 1.0

Licensor:  Context Engine Inc. and John Donalson (john@context-engine.ai)

Copyright (c) 2025 Context Engine Inc. and John Donalson.
All rights reserved.

-----------------------------------------------------------------------------

Grant of License

Permission is hereby granted, free of charge, to any person or Entity
obtaining a copy of this software and associated documentation files (the
"Software"), to use, copy, and modify the Software, subject to the
following conditions:

1. USE. You may use the Software for any purpose — personal, internal
   business, commercial, academic, or governmental — provided that such
   use does not violate the Competition Restriction below.

2. LIMITED MODIFICATION. You may modify the Software, subject to the
   following:
   (a) You may not distribute, publish, or make publicly available any
       modified version of the Software, except by contributing changes
       back to the official project repository.
   (b) All modifications, derivative works, improvements, additions, and
       contributions based on or incorporating the Software (collectively,
       "Modifications") are and shall remain the sole and exclusive
       intellectual property of the Licensor, Context Engine Inc.
   (c) By creating any Modification, you hereby irrevocably assign to the
       Licensor all right, title, and interest in and to such Modification,
       including all intellectual property rights therein.
   (d) You waive any moral rights in your Modifications to the fullest
       extent permitted by applicable law.

3. NO REDISTRIBUTION. You may not sublicense, sell, resell, lease, rent,
   lend, distribute, or otherwise transfer the Software or any copy thereof
   to any third party, except by directing them to the original source
   repository.

4. COMPETITION RESTRICTION. You may not use the Software, directly or
   indirectly, to provide a Competing Service. A "Competing Service" means
   any product or service that:
   (a) provides code search, code intelligence, code navigation, code
       indexing, or semantic code analysis functionality; AND
   (b) is made available to third parties as a hosted, managed, cloud-based,
       or on-premises service, whether paid or free.
   For clarity, using the Software internally within your own organization
   for your own code is permitted. Using it to build and sell a code search
   or code intelligence product to others is not.

5. NO REVERSE ENGINEERING. You may not decompile, disassemble, or reverse
   engineer any compiled or obfuscated portions of the Software, except to
   the extent expressly permitted by applicable law.

6. ATTRIBUTION. You must retain all copyright notices, this license text,
   and any other proprietary notices in all copies of the Software.

Commercial Licensing

Use that violates the Competition Restriction, or any use of Premium
Features (see Plugin Licensing below), requires a separate commercial
license from the Licensor.

To obtain a commercial license, contact:
   Email: john@context-engine.ai

-----------------------------------------------------------------------------

Plugin Licensing

NEO4J KNOWLEDGE GRAPH PLUGIN (plugins/neo4j_graph):

PERMITTED WITHOUT LICENSE:
- Local development and testing on developer machines
- Evaluation and proof-of-concept work
- Non-commercial personal projects

COMMERCIAL LICENSE REQUIRED FOR:
- Production deployments
- Commercial use (revenue-generating applications)
- Redistribution or inclusion in commercial products
- Use in hosted/managed services

To obtain a commercial license, contact:
   Email: john@context-engine.ai

THIRD-PARTY DEPENDENCY - NEO4J DATABASE:
The plugin requires Neo4j database software, which is licensed separately
by Neo4j, Inc. You must independently comply with Neo4j's licensing terms:

   - Neo4j Community Edition: GPL v3 License
   - Neo4j Enterprise Edition: Commercial License (contact Neo4j, Inc.)
   - Neo4j AuraDB (Cloud): Subscription agreement with Neo4j, Inc.

   See https://neo4j.com/licensing/ for Neo4j licensing details.

This License grants no rights to Neo4j software or any Neo4j trademarks.
Neo4j® is a registered trademark of Neo4j, Inc.

OPEN CORE COMPONENTS:
The default Qdrant-based graph backend (scripts/graph_backends/) is included
in the base Licensed Work and requires no additional plugin license.

-----------------------------------------------------------------------------

Termination

Any use of the Software in violation of this License will automatically and
immediately terminate your rights under this License. Upon termination, you
must cease all use of the Software and destroy all copies in your possession.

-----------------------------------------------------------------------------

Disclaimer of Warranty

TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE SOFTWARE IS PROVIDED "AS IS",
WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
NON-INFRINGEMENT, AND TITLE. THE ENTIRE RISK AS TO THE QUALITY AND
PERFORMANCE OF THE SOFTWARE IS WITH YOU.

Limitation of Liability

IN NO EVENT SHALL THE LICENSOR BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING
FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
