diff --git a/.github/workflows/macos_app.yml b/.github/workflows/macos_app.yml index aefd1ab6..3d5d3d27 100644 --- a/.github/workflows/macos_app.yml +++ b/.github/workflows/macos_app.yml @@ -7,6 +7,11 @@ on: - ".github/workflows/macos_app.yml" - "setup/macos/**" - "tests/setup/**" + - "kilin/plugins/**" + - "kilin/tools/**" + - "kilin/project_types/**" + - "kilin/project_type.py" + - "examples/plugins/**" - "kilin/gui/**" - "pyproject.toml" - "uv.lock" @@ -17,6 +22,11 @@ on: - ".github/workflows/macos_app.yml" - "setup/macos/**" - "tests/setup/**" + - "kilin/plugins/**" + - "kilin/tools/**" + - "kilin/project_types/**" + - "kilin/project_type.py" + - "examples/plugins/**" - "kilin/gui/**" - "pyproject.toml" - "uv.lock" @@ -48,13 +58,18 @@ jobs: run: >- python -m unittest tests.setup.test__macos_builder + tests.setup.test__macos_version tests.setup.test__macos_launcher_lock tests.setup.test__macos_launcher_update tests.setup.test__macos_backend_repair -v + - name: Verify plugin lifecycle on macOS + run: >- + uv run --locked --no-dev --python 3.12 + python examples/plugins/check_examples.py - name: Build ad-hoc signed application with bundled wheel run: bash setup/macos/build_app.sh --wheel - name: Inspect actual application, signing and disk image - run: bash tests/setup/check_macos_app.sh + run: bash tests/setup/check_macos_app.sh --wheel - name: Upload validated ad-hoc signed disk image if: ${{ github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/v') }} uses: actions/upload-artifact@v4 diff --git a/.github/workflows/native_release.yml b/.github/workflows/native_release.yml index 5ada1323..59f44bdb 100644 --- a/.github/workflows/native_release.yml +++ b/.github/workflows/native_release.yml @@ -21,6 +21,7 @@ jobs: outputs: version: ${{ steps.version.outputs.version }} prerelease: ${{ steps.version.outputs.prerelease }} + commit: ${{ steps.commit.outputs.sha }} steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 @@ -41,7 +42,8 @@ jobs: with Path("pyproject.toml").open("rb") as stream: version = tomllib.load(stream)["project"]["version"] if not isinstance(version, str) or not re.fullmatch( - r"[0-9]+\.[0-9]+\.[0-9]+(?:b[0-9]+|rc[0-9]+)?", + r"(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)" + r"(?:(?:b|rc)[1-9][0-9]{0,2})?", version, ): raise SystemExit(f"Unsupported release version: {version!r}") @@ -55,6 +57,13 @@ jobs: file=output, ) PYTHON + - name: Record validated source commit + id: commit + shell: bash + run: | + set -euo pipefail + commit=$(git rev-parse --verify HEAD^{commit}) + echo "sha=$commit" >> "$GITHUB_OUTPUT" - name: Verify tag-pinned PyPI description run: python -m setup.generate_pypi_readme --check @@ -113,6 +122,7 @@ jobs: RELEASE_TAG: ${{ github.ref_name }} RELEASE_VERSION: ${{ needs.validate.outputs.version }} IS_PRERELEASE: ${{ needs.validate.outputs.prerelease }} + RELEASE_COMMIT: ${{ needs.validate.outputs.commit }} run: | set -euo pipefail assets=( @@ -120,7 +130,87 @@ jobs: "release-assets/KiLin-Setup-${RELEASE_VERSION}.exe" "release-assets/SHA256SUMS.txt" ) - if gh release view "$RELEASE_TAG" >/dev/null 2>&1; then + # A failed API request is not evidence that a release is absent. + # Include draft releases and all pages of assets in the preflight. + existing=$(python3 - "${assets[@]}" <<'PYTHON' + import json + import os + from pathlib import Path + import re + import subprocess + import sys + + repo = f"repos/{os.environ['GH_REPO']}" + tag = os.environ["RELEASE_TAG"] + commit = os.environ["RELEASE_COMMIT"] + stage = os.environ["IS_PRERELEASE"] + if stage not in {"true", "false"}: + raise SystemExit("Invalid release classification") + prerelease = stage == "true" + + def api(*args): + return json.loads(subprocess.check_output( + ["gh", "api", *args], encoding="utf-8", + )) + + def items(path): + pages = api("--paginate", "--slurp", path) + if not isinstance(pages, list) or not all( + isinstance(page, list) for page in pages + ): + raise SystemExit("Invalid paginated GitHub response") + return [item for page in pages for item in page] + + releases = [ + release for release in items(f"{repo}/releases?per_page=100") + if release["tag_name"] == tag + ] + if len(releases) > 1: + raise SystemExit("Multiple releases match the version tag") + if releases: + release = releases[0] + if release["prerelease"] is not prerelease: + raise SystemExit("Existing release classification differs") + if release.get("immutable") is True: + raise SystemExit("Existing release is immutable") + release_id = release["id"] + if type(release_id) is not int or release_id <= 0: + raise SystemExit("Invalid existing release identity") + names = { + asset["name"] for asset in items( + f"{repo}/releases/{release_id}/assets?per_page=100" + ) + } + conflicts = names.intersection(Path(p).name for p in sys.argv[1:]) + if conflicts: + raise SystemExit( + "Release assets already exist: " + + ", ".join(sorted(conflicts)) + ) + + # Peel annotated tags to the commit actually used by the builds. + # Resolve the explicit tag ref rather than an ambiguous branch name. + if not re.fullmatch(r"[0-9a-f]{40}", commit): + raise SystemExit("Invalid validated source commit") + target = api(f"{repo}/git/ref/tags/{tag}")["object"] + seen = set() + while True: + sha = target["sha"] + if not re.fullmatch(r"[0-9a-f]{40}", sha) or sha in seen: + raise SystemExit("Invalid release tag target") + if target["type"] == "commit": + break + if target["type"] != "tag": + raise SystemExit("Release tag does not identify a commit") + seen.add(sha) + target = api(f"{repo}/git/tags/{sha}")["object"] + if sha != commit: + raise SystemExit("Release tag no longer identifies built commit") + + print("true" if releases else "false") + PYTHON + ) + if [[ "$existing" == "true" ]]; then # Do not overwrite published assets: a rerun must be reviewed. gh release upload "$RELEASE_TAG" "${assets[@]}" else diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index af8edd6f..11d06d12 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -34,6 +34,8 @@ jobs: run: uv build - name: Verify PyPI metadata in wheel and source archive run: python -m setup.check_pypi_distribution + - name: Verify the source distribution authoring pack + run: python examples/plugins/check_examples.py --sdist dist/*.tar.gz - name: Install wheel in a separate environment run: | uv venv --python 3.12 "$RUNNER_TEMP/kilin-wheel-env" @@ -43,6 +45,11 @@ jobs: run: >- "$RUNNER_TEMP/kilin-wheel-env/bin/python" -I "$GITHUB_WORKSPACE/tests/setup/check_installed_wheel.py" + - name: Exercise user plugins with the installed wheel + working-directory: ${{ runner.temp }} + run: >- + "$RUNNER_TEMP/kilin-wheel-env/bin/python" -I + "$GITHUB_WORKSPACE/examples/plugins/check_examples.py" - name: Upload distributions for review uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/windows_app.yml b/.github/workflows/windows_app.yml index 10556b2b..9722d92f 100644 --- a/.github/workflows/windows_app.yml +++ b/.github/workflows/windows_app.yml @@ -7,6 +7,13 @@ on: - ".github/workflows/windows_app.yml" - "setup/windows/**" - "tests/setup/**" + - "kilin/plugins/**" + - "kilin/tools/**" + - "kilin/project_types/**" + - "kilin/project_type.py" + - "examples/plugins/**" + - "kilin/gui/**" + - "MANIFEST.in" - "pyproject.toml" - "uv.lock" pull_request: @@ -15,6 +22,13 @@ on: - ".github/workflows/windows_app.yml" - "setup/windows/**" - "tests/setup/**" + - "kilin/plugins/**" + - "kilin/tools/**" + - "kilin/project_types/**" + - "kilin/project_type.py" + - "examples/plugins/**" + - "kilin/gui/**" + - "MANIFEST.in" - "pyproject.toml" - "uv.lock" workflow_dispatch: @@ -61,14 +75,106 @@ jobs: $version = (Select-String pyproject.toml -Pattern '^version = "(.*)"$').Matches[0].Groups[1].Value $runtime = Join-Path $env:LOCALAPPDATA "kilin\runtime\$version" if (-not (Test-Path "$runtime\Scripts\kilin-gui.exe")) { throw "kilin-gui.exe is missing." } - & "$runtime\Scripts\python.exe" -c "import kilin, PySide6, torch, transformers; print(torch.__version__)" - if ($LASTEXITCODE -ne 0) { throw "The installed runtime cannot import KiLin." } + & "$runtime\Scripts\python.exe" -I "$env:GITHUB_WORKSPACE\tests\setup\check_windows_runtime.py" ` + "$runtime" "$env:GITHUB_WORKSPACE\pyproject.toml" + if ($LASTEXITCODE -ne 0) { throw "Installed runtime verification failed." } + & "$runtime\Scripts\python.exe" -I "$env:GITHUB_WORKSPACE\examples\plugins\check_examples.py" + if ($LASTEXITCODE -ne 0) { throw "Installed plugin lifecycle failed." } $shortcut = Join-Path ([Environment]::GetFolderPath("Programs")) "KíLín.lnk" if (-not (Test-Path -LiteralPath $shortcut)) { throw "The Start-menu shortcut is missing." } $uv = [Environment]::GetEnvironmentVariable("KILIN_APP_UV", "User") $spec = [Environment]::GetEnvironmentVariable("KILIN_APP_SPEC", "User") if (-not (Test-Path -LiteralPath $uv)) { throw "KILIN_APP_UV does not name uv.exe." } if (-not $spec.EndsWith("[app]")) { throw "KILIN_APP_SPEC is $spec." } + - name: Verify failed same-version reinstall restores the runtime + env: + # Force package resolution to fail without a network outage or a + # test-only switch in the production installer. The wheel alone + # cannot supply its dependencies, and uv may not use its cache. + UV_OFFLINE: "1" + UV_NO_CACHE: "1" + UV_NO_CONFIG: "1" + run: | + $version = (Select-String pyproject.toml -Pattern '^version = "(.*)"$').Matches[0].Groups[1].Value + $runtime = Join-Path $env:LOCALAPPDATA "kilin\runtime\$version" + $backup = "$runtime.rollback" + $probe = Join-Path $runtime "reinstall-probe.txt" + $shortcut = Join-Path ([Environment]::GetFolderPath("Programs")) "KíLín.lnk" + $shortcutHash = (Get-FileHash -LiteralPath $shortcut).Hash + $uv = [Environment]::GetEnvironmentVariable("KILIN_APP_UV", "User") + $spec = [Environment]::GetEnvironmentVariable("KILIN_APP_SPEC", "User") + if ((Test-Path -LiteralPath $probe) -or (Test-Path -LiteralPath $backup)) { + throw "Reinstall probe or rollback directory already exists." + } + Set-Content -LiteralPath $probe -Value "Original installed runtime" + $probeHash = (Get-FileHash -LiteralPath $probe).Hash + $setup = Get-ChildItem dist -Filter "KiLin-Setup-*.exe" | Select-Object -First 1 + try { + foreach ($scenario in @("failed", "interrupted")) { + if ($scenario -eq "interrupted") { + # Simulate termination after the backup rename and + # creation of a partial replacement at the final path. + Move-Item -LiteralPath $runtime -Destination $backup + New-Item -ItemType Directory -Path $runtime | Out-Null + Set-Content -LiteralPath (Join-Path $runtime "partial.txt") -Value "Incomplete runtime" + } + $log = "$scenario-reinstall.log" + $process = Start-Process -FilePath $setup.FullName -Wait -PassThru ` + -ArgumentList "/VERYSILENT", "/SUPPRESSMSGBOXES", "/NORESTART", "/LOG=$log" + Get-Content -LiteralPath $log -Tail 40 + if ($process.ExitCode -eq 0) { throw "Offline reinstall unexpectedly succeeded." } + $details = Get-Content -LiteralPath $log -Raw + if (-not $details.Contains("Preserved previous runtime at") -or + -not $details.Contains("Restored previous runtime at")) { + throw "Setup did not exercise runtime rollback ($scenario)." + } + if (Test-Path -LiteralPath $backup) { throw "Rollback did not restore the backup." } + if (Test-Path -LiteralPath (Join-Path $runtime "partial.txt")) { + throw "Partial replacement survived rollback." + } + if ((Get-FileHash -LiteralPath $probe).Hash -ne $probeHash) { + throw "Failed reinstall changed the original runtime." + } + if ((Get-FileHash -LiteralPath $shortcut).Hash -ne $shortcutHash -or + [Environment]::GetEnvironmentVariable("KILIN_APP_UV", "User") -ne $uv -or + [Environment]::GetEnvironmentVariable("KILIN_APP_SPEC", "User") -ne $spec) { + throw "Failed reinstall changed the shortcut or repair variables." + } + & "$runtime\Scripts\python.exe" -I "$env:GITHUB_WORKSPACE\tests\setup\check_windows_runtime.py" ` + "$runtime" "$env:GITHUB_WORKSPACE\pyproject.toml" + if ($LASTEXITCODE -ne 0) { throw "Restored runtime verification failed ($scenario)." } + } + } finally { + if (Test-Path -LiteralPath $probe) { Remove-Item -LiteralPath $probe } + } + - name: Verify user plugin files survive reinstall + run: | + # Hosted runner only: seed a reviewed example in the default user store. + $plugins = Join-Path $env:LOCALAPPDATA "kilin\plugins" + $tool = Join-Path $plugins "tools\repeat_question" + $type = Join-Path $plugins "project_types\repetition.json" + if ((Test-Path $tool) -or (Test-Path $type)) { throw "Plugin probe already exists." } + New-Item -ItemType Directory -Force -Path $tool, (Split-Path $type) | Out-Null + Copy-Item "examples\plugins\tools\repeat_question\__init__.py" -Destination $tool + Copy-Item "examples\plugins\project_types\repetition.json" -Destination $type + $toolFile = Join-Path $tool "__init__.py" + $toolHash = (Get-FileHash $toolFile).Hash + $typeHash = (Get-FileHash $type).Hash + $setup = Get-ChildItem dist -Filter "KiLin-Setup-*.exe" | Select-Object -First 1 + $process = Start-Process -FilePath $setup.FullName -Wait -PassThru ` + -ArgumentList "/VERYSILENT", "/SUPPRESSMSGBOXES", "/LOG=reinstall.log" + if ($process.ExitCode -ne 0) { throw "Reinstall failed with $($process.ExitCode)." } + $version = (Select-String pyproject.toml -Pattern '^version = "(.*)"$').Matches[0].Groups[1].Value + $runtime = Join-Path $env:LOCALAPPDATA "kilin\runtime\$version" + if (Test-Path -LiteralPath "$runtime.rollback") { throw "Reinstall left a rollback directory." } + & "$runtime\Scripts\python.exe" -I "$env:GITHUB_WORKSPACE\tests\setup\check_windows_runtime.py" ` + "$runtime" "$env:GITHUB_WORKSPACE\pyproject.toml" + if ($LASTEXITCODE -ne 0) { throw "Reinstalled runtime verification failed." } + if ((Get-FileHash $toolFile).Hash -ne $toolHash -or (Get-FileHash $type).Hash -ne $typeHash) { + throw "Reinstall changed user plugins." + } + "KILIN_PROBE_TOOL_HASH=$toolHash" >> $env:GITHUB_ENV + "KILIN_PROBE_TYPE_HASH=$typeHash" >> $env:GITHUB_ENV - name: Uninstall silently and check what is removed run: | $uninstaller = Join-Path $env:LOCALAPPDATA "Programs\KiLin\unins000.exe" @@ -78,6 +184,12 @@ jobs: for ($i = 0; $i -lt 60 -and (Test-Path $runtime); $i++) { Start-Sleep -Seconds 1 } if (Test-Path $runtime) { throw "The runtime was not removed." } if ([Environment]::GetEnvironmentVariable("KILIN_APP_UV", "User")) { throw "KILIN_APP_UV was not removed." } + $plugins = Join-Path $env:LOCALAPPDATA "kilin\plugins" + $toolFile = Join-Path $plugins "tools\repeat_question\__init__.py" + $type = Join-Path $plugins "project_types\repetition.json" + if ((Get-FileHash $toolFile).Hash -ne $env:KILIN_PROBE_TOOL_HASH -or (Get-FileHash $type).Hash -ne $env:KILIN_PROBE_TYPE_HASH) { + throw "Uninstall changed user plugins." + } - name: Upload the unsigned development installer uses: actions/upload-artifact@v4 with: diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..bb0fd02a --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,5 @@ +# KíLín changelog + +This changelog records application changes and releases. Changelog maintenance begins after the +first stable release of KíLín (`0.1.0`). No beta or release-candidate +history is required. diff --git a/CITATION.cff b/CITATION.cff index 2f6fea05..7614d9c6 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -11,4 +11,4 @@ authors: family-names: "Manzo" - given-names: "Giovanni" family-names: "Volpe" -version: "0.1.0b1" +version: "0.1.0b2" diff --git a/MANIFEST.in b/MANIFEST.in index 0ccd99a9..f8dada7f 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,15 @@ +include CHANGELOG.md include CITATION.cff include README.md include README.pypi.md +include docs/versioning.md +include docs/PLUGIN_API_CHANGELOG.md +include docs/PROJECT_TYPE_SCHEMA_CHANGELOG.md +include docs/TRACE_FORMAT_CHANGELOG.md +include docs/PLUGIN_API.md +include docs/PROJECT_TYPE_SCHEMA.md +include docs/PLUGIN_AUTHORING.md +recursive-include examples/plugins *.py *.json *.md + +# Development tests require the complete repository checkout. +prune tests diff --git a/README.md b/README.md index 89bfc29b..108eda0d 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,9 @@
Your AI. Your Knowledge. Your Control.
-
-
Your AI. Your Knowledge. Your Control. Projects remain in the folder you choose. iCloud, OneDrive, or another service may synchronize that folder; choose a non-synchronized location for sensitive data. Application-wide tools and project types, independent of the current project. Application, compatibility contracts, tools, project types, persistent formats and current project origin. Reports include local plugin paths and diagnostics; review before sharing. Manage the accepted role vocabulary, relationships and automatic discovery for this project, separately from indexing. Open a project to edit source organization.
+
+
@@ -40,52 +40,59 @@ and data without depending on a remote AI service for every answer.
KíLín provides six built-in project types for code, literature, writing,
grounded brainstorming, creative brainstorming, and researcher-directed
reviewing. Source-grounded responses reference project files for independent
-inspection.
+inspection. Projects can organize selected files by role and relationship,
+while citations retain their original physical source locations.
-**Version `0.1.0b1` (beta):** This is the first public prerelease.
+**Version `0.1.0b2` (beta):** This is the second public beta.
Backward compatibility of public interfaces and saved project
formats is not guaranteed before the stable release.
## Installation
-**KíLín `0.1.0b1` requires Python 3.12.** Supported platforms are
-Apple Silicon macOS and Linux; Windows support is experimental. Language
-model inference runs locally. Package and model downloads require network
-access unless previously cached.
+**KíLín `0.1.0b2` requires Python 3.12.** The supported setup targets are
+native Apple Silicon macOS and Linux (x86-64 or ARM64). Windows x64 support
+is experimental; Intel macOS and Rosetta are not supported by the current
+setup. Language model inference runs locally. Package and model downloads
+require network access unless previously cached.
### Python package
-In a Python 3.12 environment, install the GUI and its model backend:
+Once this version is available on PyPI, install the GUI and its model
+backend in a Python 3.12 environment:
```sh
-python -m pip install "kilin[app]==0.1.0b1"
+python -m pip install "kilin[app]==0.1.0b2"
kilin-gui
```
-The `app` extra installs the graphical interface and the computation backend
-appropriate to the platform (MLX on supported Apple Silicon Macs, PyTorch
-elsewhere). For the core without the GUI, use `kilin==0.1.0b1`; to select a
-backend explicitly, see the
-[model-management guide](docs/model_management.md).
+The `app` extra installs the graphical interface and the platform-default
+computation backend (MLX on supported Apple Silicon Macs, PyTorch elsewhere).
+The core package (`kilin==0.1.0b2`) installs neither a model backend nor the
+GUI. The `mlx` and `torch` extras select a backend explicitly, and the `gui`
+extra adds the graphical interface without either backend. See the
+[model-management guide](docs/model_management.md) for backend selection.
### Experimental desktop installers
-The [v0.1.0b1 GitHub release](https://github.com/DeepTrackAI/KiLin/releases/tag/v0.1.0b1)
-includes two experimental desktop installers built from that version's
-source: `KiLin-0.1.0b1-macos-arm64.dmg` for Apple Silicon Macs (macOS 14+)
-and `KiLin-Setup-0.1.0b1.exe` for 64-bit Windows 10 or 11.
-
-The macOS launcher downloads Python 3.12 and dependencies on first launch;
-the Windows installer downloads them during setup. Model weights are
-obtained separately when requested. **Neither installer is a signed,
-notarized production distribution:** the macOS app is ad-hoc signed and
-not notarized, while the Windows EXE is unsigned. Gatekeeper or Windows
-SmartScreen may display security warnings or block installation. Verify
-the downloaded files against the release checksums and read the
+Obtain the experimental desktop installers from the
+[v0.1.0b2 GitHub release](https://github.com/DeepTrackAI/KiLin/releases/tag/v0.1.0b2)
+when its assets are available. Choose `KiLin-0.1.0b2-macos-arm64.dmg` for
+Apple Silicon Macs (macOS 14+) or `KiLin-Setup-0.1.0b2.exe` for 64-bit
+Windows 10 or 11. Both installers are built from the tagged source.
+
+The macOS launcher installs Python 3.12 and dependencies on first launch;
+the Windows installer installs them during setup. The Windows installer
+uses uv's automatic PyTorch backend selection for CUDA or CPU. The pip
+command above does not perform this automatic selection. Model weights
+are obtained separately when requested. **Neither installer is a
+production-signed build:** the macOS app is ad-hoc signed and not
+notarized, while the Windows EXE is unsigned. Gatekeeper or Windows SmartScreen may display
+security warnings or block installation. Verify the downloaded files
+against the release checksums and read the
[native installer guidance](docs/release.md) before using them.
-Because these installers are not signed, macOS and Windows show a
-security warning the first time you open KíLín. To open it anyway:
+If the operating system displays a security warning for a verified,
+trusted installer:
- **macOS:** open KíLín once and close the warning. Then open **System
Settings → Privacy & Security**, scroll to **Security**, click **Open
@@ -99,15 +106,33 @@ GitHub or from the KíLín team.
## Getting started
-After installation, open `kilin-gui`, select models and a project workspace,
-create a project of the appropriate type, and add source files. Ask a
-question, inspect the retrieved evidence, and save useful conversations.
-
-The GUI requires a **beta invitation passkey** on first launch for each
-user account. Contact the project maintainers to obtain one. This is a
-local client-side check, not a security boundary; the open-source
-Python API does not require a passkey. See the
-[GUI guide](kilin/gui/README.md) for details.
+Launch the installed desktop app, or run `kilin-gui` from the installed
+Python environment. The GUI requires a **beta invitation passkey** on
+first launch for each user account. Contact the project maintainers to
+obtain one. This is a local client-side check, not a security boundary;
+the open-source Python API does not require a passkey.
+
+1. Review and accept the terms of use.
+2. Confirm the folder where KíLín will store managed projects.
+3. In Settings, select the backend and models for new projects and use
+ the Download buttons for missing models. GUI project preparation does
+ not automatically download model weights.
+4. Create a project of the appropriate type, with or without sources, or
+ resume a saved project using its own saved backend and model settings.
+5. Ask a question, inspect the retrieved evidence, and save useful
+ conversations.
+
+Use **Organize sources** in Workspace to assign roles and relate supporting
+files to their parent documents. Review the proposed changes before applying
+them. For existing workspaces with missing semantic metadata, initialize it
+explicitly through the editor; see [Accepted source organization](docs/source_manifest.md).
+See the [GUI guide](kilin/gui/README.md) for details.
+
+Check the application version with `kilin --version` or inspect the full
+component inventory with `kilin --versions` (`--versions --json` for
+structured output). In the desktop app, open **Settings → Versions**.
+The report may contain local paths and plugin diagnostics. Review it
+before sharing. See the [versioning policy](docs/versioning.md).
To run KíLín from a source checkout, on macOS or Linux:
@@ -122,17 +147,21 @@ On Windows, perform development setup with PowerShell:
powershell -NoProfile -ExecutionPolicy Bypass -File setup/setup.ps1
```
-Then run `uv run kilin --gui`. Select the checkout's `.venv` Python
+Then run `uv run kilin --gui`. If setup has installed uv and the current
+terminal cannot find it, open a new terminal or use the full-path launch
+command printed by the setup script. Run the launch command from the
+checkout root. Select the checkout's `.venv` Python
kernel when following the tutorials. The
[development guide](docs/development.md)
covers setup, dependency and test requirements.
## Tutorials and documentation
-KíLín includes **19 progressive Jupyter notebooks** covering models,
+KíLín includes **21 progressive Jupyter notebooks** covering models,
source processing, semantic/lexical/code retrieval, indexing, project chat,
-diagnostic traces, project types, conversation memory, custom tools, and
-an end-to-end research assistant.
+diagnostic traces, project types and source organization, conversation
+memory, custom tools, an end-to-end research assistant, and LLM-assisted
+plugin development.
Begin with the
[complete tutorial guide](tutorials/README.md),
@@ -153,11 +182,17 @@ and [extension interfaces](docs/extension_interfaces.md).
## Privacy and limitations
KíLín is designed for local control, but local model execution does not
-make installation and all optional actions offline. Conversations, source
-snapshots, and diagnostic traces may contain sensitive material. KíLín
-does not provide encrypted workspaces, an execution sandbox, or guaranteed
-scientific correctness. Never share a workspace or trace archive assuming
-it has been anonymized.
+make installation and all optional actions offline. The optional
+[reference lookup](kilin/tools/reference_check/README.md) sends selected
+bibliographic information to Crossref or OpenAlex only after explicit user
+authorization. Choose a projects folder that is not cloud-synchronized when
+working with sensitive data; KíLín does not control synchronization by
+services such as iCloud or OneDrive.
+
+Conversations, source snapshots, and diagnostic traces may contain sensitive
+material. KíLín does not provide encrypted workspaces, an execution
+sandbox, or guaranteed scientific correctness. Never share a workspace or
+trace archive assuming it has been anonymized.
Read the
[security notes](docs/security.md)
diff --git a/README.pypi.md b/README.pypi.md
index f8a761cf..dd5b05de 100644
--- a/README.pypi.md
+++ b/README.pypi.md
@@ -3,8 +3,8 @@
+
Projects folder
-
+
+ Plugins
+ Versions
Project
@@ -272,6 +314,12 @@ Source-card generation
+ Source organization
+ Manage remembered messages