synaptane 1.0.0rc2__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.
- synaptane-1.0.0rc2/.gitignore +37 -0
- synaptane-1.0.0rc2/CHANGELOG.md +240 -0
- synaptane-1.0.0rc2/LICENSE +202 -0
- synaptane-1.0.0rc2/NOTICE +8 -0
- synaptane-1.0.0rc2/PKG-INFO +356 -0
- synaptane-1.0.0rc2/README.md +307 -0
- synaptane-1.0.0rc2/THIRD_PARTY_NOTICES.md +350 -0
- synaptane-1.0.0rc2/pyproject.toml +143 -0
- synaptane-1.0.0rc2/src/synaptane/__init__.py +53 -0
- synaptane-1.0.0rc2/src/synaptane/__main__.py +3 -0
- synaptane-1.0.0rc2/src/synaptane/ai/__init__.py +1 -0
- synaptane-1.0.0rc2/src/synaptane/ai/anthropic_provider.py +160 -0
- synaptane-1.0.0rc2/src/synaptane/ai/base.py +137 -0
- synaptane-1.0.0rc2/src/synaptane/ai/cli_agents.py +535 -0
- synaptane-1.0.0rc2/src/synaptane/ai/cli_contract.py +427 -0
- synaptane-1.0.0rc2/src/synaptane/ai/embeddings.py +148 -0
- synaptane-1.0.0rc2/src/synaptane/ai/openai_compat.py +123 -0
- synaptane-1.0.0rc2/src/synaptane/ai/pricing.py +119 -0
- synaptane-1.0.0rc2/src/synaptane/ai/providers.py +81 -0
- synaptane-1.0.0rc2/src/synaptane/ai/quota.py +94 -0
- synaptane-1.0.0rc2/src/synaptane/api/__init__.py +1 -0
- synaptane-1.0.0rc2/src/synaptane/api/content.py +694 -0
- synaptane-1.0.0rc2/src/synaptane/api/health.py +101 -0
- synaptane-1.0.0rc2/src/synaptane/api/hooks.py +38 -0
- synaptane-1.0.0rc2/src/synaptane/api/integrations.py +268 -0
- synaptane-1.0.0rc2/src/synaptane/api/routes.py +557 -0
- synaptane-1.0.0rc2/src/synaptane/api/routines.py +197 -0
- synaptane-1.0.0rc2/src/synaptane/api/tidy.py +277 -0
- synaptane-1.0.0rc2/src/synaptane/api/vocation.py +151 -0
- synaptane-1.0.0rc2/src/synaptane/cli.py +670 -0
- synaptane-1.0.0rc2/src/synaptane/config.py +147 -0
- synaptane-1.0.0rc2/src/synaptane/core/__init__.py +1 -0
- synaptane-1.0.0rc2/src/synaptane/core/access.py +93 -0
- synaptane-1.0.0rc2/src/synaptane/core/errors.py +93 -0
- synaptane-1.0.0rc2/src/synaptane/core/logs.py +68 -0
- synaptane-1.0.0rc2/src/synaptane/core/markdown.py +458 -0
- synaptane-1.0.0rc2/src/synaptane/core/names.py +54 -0
- synaptane-1.0.0rc2/src/synaptane/core/secret_scan.py +184 -0
- synaptane-1.0.0rc2/src/synaptane/core/security.py +74 -0
- synaptane-1.0.0rc2/src/synaptane/core/throttle.py +115 -0
- synaptane-1.0.0rc2/src/synaptane/extract.py +593 -0
- synaptane-1.0.0rc2/src/synaptane/extract_ppt.py +433 -0
- synaptane-1.0.0rc2/src/synaptane/git/__init__.py +1 -0
- synaptane-1.0.0rc2/src/synaptane/git/credential_helper.py +46 -0
- synaptane-1.0.0rc2/src/synaptane/git/credentials.py +218 -0
- synaptane-1.0.0rc2/src/synaptane/git/repo.py +1027 -0
- synaptane-1.0.0rc2/src/synaptane/mcp/__init__.py +1 -0
- synaptane-1.0.0rc2/src/synaptane/mcp/errors.py +100 -0
- synaptane-1.0.0rc2/src/synaptane/mcp/kit.py +216 -0
- synaptane-1.0.0rc2/src/synaptane/mcp/oauth.py +466 -0
- synaptane-1.0.0rc2/src/synaptane/mcp/pages.py +140 -0
- synaptane-1.0.0rc2/src/synaptane/mcp/prompts.py +116 -0
- synaptane-1.0.0rc2/src/synaptane/mcp/reading.py +707 -0
- synaptane-1.0.0rc2/src/synaptane/mcp/server.py +606 -0
- synaptane-1.0.0rc2/src/synaptane/py.typed +0 -0
- synaptane-1.0.0rc2/src/synaptane/server.py +323 -0
- synaptane-1.0.0rc2/src/synaptane/services/__init__.py +92 -0
- synaptane-1.0.0rc2/src/synaptane/services/accounts.py +514 -0
- synaptane-1.0.0rc2/src/synaptane/services/activity.py +88 -0
- synaptane-1.0.0rc2/src/synaptane/services/ai_settings.py +301 -0
- synaptane-1.0.0rc2/src/synaptane/services/alerts.py +210 -0
- synaptane-1.0.0rc2/src/synaptane/services/assistants.py +52 -0
- synaptane-1.0.0rc2/src/synaptane/services/backup.py +376 -0
- synaptane-1.0.0rc2/src/synaptane/services/budget.py +252 -0
- synaptane-1.0.0rc2/src/synaptane/services/changes.py +417 -0
- synaptane-1.0.0rc2/src/synaptane/services/content.py +492 -0
- synaptane-1.0.0rc2/src/synaptane/services/demo.py +315 -0
- synaptane-1.0.0rc2/src/synaptane/services/deposits.py +478 -0
- synaptane-1.0.0rc2/src/synaptane/services/extraction.py +301 -0
- synaptane-1.0.0rc2/src/synaptane/services/freshness.py +667 -0
- synaptane-1.0.0rc2/src/synaptane/services/git_sync.py +736 -0
- synaptane-1.0.0rc2/src/synaptane/services/health.py +316 -0
- synaptane-1.0.0rc2/src/synaptane/services/inbox.py +142 -0
- synaptane-1.0.0rc2/src/synaptane/services/inbox_text.py +66 -0
- synaptane-1.0.0rc2/src/synaptane/services/invitations.py +230 -0
- synaptane-1.0.0rc2/src/synaptane/services/jobs.py +216 -0
- synaptane-1.0.0rc2/src/synaptane/services/links.py +127 -0
- synaptane-1.0.0rc2/src/synaptane/services/mail.py +447 -0
- synaptane-1.0.0rc2/src/synaptane/services/offsite.py +221 -0
- synaptane-1.0.0rc2/src/synaptane/services/organizations.py +118 -0
- synaptane-1.0.0rc2/src/synaptane/services/related.py +967 -0
- synaptane-1.0.0rc2/src/synaptane/services/routine_agent.py +1376 -0
- synaptane-1.0.0rc2/src/synaptane/services/routines.py +539 -0
- synaptane-1.0.0rc2/src/synaptane/services/search.py +1056 -0
- synaptane-1.0.0rc2/src/synaptane/services/secrets.py +126 -0
- synaptane-1.0.0rc2/src/synaptane/services/semantic.py +464 -0
- synaptane-1.0.0rc2/src/synaptane/services/spaces.py +169 -0
- synaptane-1.0.0rc2/src/synaptane/services/sso.py +467 -0
- synaptane-1.0.0rc2/src/synaptane/services/tidy.py +1157 -0
- synaptane-1.0.0rc2/src/synaptane/services/tidy_commit.py +133 -0
- synaptane-1.0.0rc2/src/synaptane/services/tidy_journal.py +616 -0
- synaptane-1.0.0rc2/src/synaptane/services/tidy_metrics.py +259 -0
- synaptane-1.0.0rc2/src/synaptane/services/tidy_notices.py +121 -0
- synaptane-1.0.0rc2/src/synaptane/services/tidy_tools.py +1130 -0
- synaptane-1.0.0rc2/src/synaptane/services/vocation.py +481 -0
- synaptane-1.0.0rc2/src/synaptane/services/vocation_templates/blank.fr.md +40 -0
- synaptane-1.0.0rc2/src/synaptane/services/vocation_templates/blank.md +40 -0
- synaptane-1.0.0rc2/src/synaptane/services/vocation_templates/client.fr.md +46 -0
- synaptane-1.0.0rc2/src/synaptane/services/vocation_templates/client.md +46 -0
- synaptane-1.0.0rc2/src/synaptane/services/vocation_templates/family.fr.md +47 -0
- synaptane-1.0.0rc2/src/synaptane/services/vocation_templates/family.md +47 -0
- synaptane-1.0.0rc2/src/synaptane/services/vocation_templates/infra.fr.md +48 -0
- synaptane-1.0.0rc2/src/synaptane/services/vocation_templates/infra.md +48 -0
- synaptane-1.0.0rc2/src/synaptane/services/vocation_templates/job-search.fr.md +42 -0
- synaptane-1.0.0rc2/src/synaptane/services/vocation_templates/job-search.md +42 -0
- synaptane-1.0.0rc2/src/synaptane/services/vocation_templates/marketing.fr.md +48 -0
- synaptane-1.0.0rc2/src/synaptane/services/vocation_templates/marketing.md +48 -0
- synaptane-1.0.0rc2/src/synaptane/services/vocation_templates/personal.fr.md +43 -0
- synaptane-1.0.0rc2/src/synaptane/services/vocation_templates/personal.md +43 -0
- synaptane-1.0.0rc2/src/synaptane/services/vocation_templates/product.fr.md +45 -0
- synaptane-1.0.0rc2/src/synaptane/services/vocation_templates/product.md +45 -0
- synaptane-1.0.0rc2/src/synaptane/services/webhooks.py +304 -0
- synaptane-1.0.0rc2/src/synaptane/services/workspace.py +86 -0
- synaptane-1.0.0rc2/src/synaptane/storage/__init__.py +1 -0
- synaptane-1.0.0rc2/src/synaptane/storage/db.py +150 -0
- synaptane-1.0.0rc2/src/synaptane/storage/migrations/env.py +13 -0
- synaptane-1.0.0rc2/src/synaptane/storage/migrations/script.py.mako +23 -0
- synaptane-1.0.0rc2/src/synaptane/storage/migrations/versions/0001_comptes_organisations_espaces.py +220 -0
- synaptane-1.0.0rc2/src/synaptane/storage/migrations/versions/0002_synchronisation_git_et_taches.py +81 -0
- synaptane-1.0.0rc2/src/synaptane/storage/migrations/versions/0003_oauth_mcp.py +96 -0
- synaptane-1.0.0rc2/src/synaptane/storage/migrations/versions/0004_rangement_nocturne.py +105 -0
- synaptane-1.0.0rc2/src/synaptane/storage/migrations/versions/0005_recherche_hybride.py +68 -0
- synaptane-1.0.0rc2/src/synaptane/storage/migrations/versions/0006_sso_et_webhooks.py +107 -0
- synaptane-1.0.0rc2/src/synaptane/storage/migrations/versions/0007_invitations_et_courriels.py +104 -0
- synaptane-1.0.0rc2/src/synaptane/storage/migrations/versions/0008_modifications_calculees_depuis_git.py +47 -0
- synaptane-1.0.0rc2/src/synaptane/storage/migrations/versions/0009_cout_et_budget_du_rangement.py +38 -0
- synaptane-1.0.0rc2/src/synaptane/storage/migrations/versions/0010_jetons_restreints.py +35 -0
- synaptane-1.0.0rc2/src/synaptane/storage/migrations/versions/0011_activite_des_assistants.py +36 -0
- synaptane-1.0.0rc2/src/synaptane/storage/migrations/versions/0012_verification_des_emails.py +45 -0
- synaptane-1.0.0rc2/src/synaptane/storage/migrations/versions/0013_finitions.py +32 -0
- synaptane-1.0.0rc2/src/synaptane/storage/migrations/versions/0014_securite.py +39 -0
- synaptane-1.0.0rc2/src/synaptane/storage/migrations/versions/0015_quota_abonnement.py +24 -0
- synaptane-1.0.0rc2/src/synaptane/storage/migrations/versions/0016_rangement_robuste.py +37 -0
- synaptane-1.0.0rc2/src/synaptane/storage/migrations/versions/0017_disjoncteur_des_webhooks.py +27 -0
- synaptane-1.0.0rc2/src/synaptane/storage/migrations/versions/0018_rangement_au_fil_de_l_eau.py +28 -0
- synaptane-1.0.0rc2/src/synaptane/storage/migrations/versions/0019_qualite_du_rangement.py +25 -0
- synaptane-1.0.0rc2/src/synaptane/storage/migrations/versions/0020_routines_d_agent.py +141 -0
- synaptane-1.0.0rc2/src/synaptane/storage/migrations/versions/0021_verification_des_pages.py +29 -0
- synaptane-1.0.0rc2/src/synaptane/storage/migrations/versions/0022_domaines_sso.py +35 -0
- synaptane-1.0.0rc2/src/synaptane/storage/migrations/versions/0023_seuil_de_sens.py +28 -0
- synaptane-1.0.0rc2/src/synaptane/storage/models.py +655 -0
- synaptane-1.0.0rc2/src/synaptane/web/__init__.py +1 -0
- synaptane-1.0.0rc2/src/synaptane/web/account_pages.py +302 -0
- synaptane-1.0.0rc2/src/synaptane/web/admin_pages.py +145 -0
- synaptane-1.0.0rc2/src/synaptane/web/health_pages.py +37 -0
- synaptane-1.0.0rc2/src/synaptane/web/home_pages.py +202 -0
- synaptane-1.0.0rc2/src/synaptane/web/i18n.py +92 -0
- synaptane-1.0.0rc2/src/synaptane/web/inbox_pages.py +485 -0
- synaptane-1.0.0rc2/src/synaptane/web/invite_pages.py +305 -0
- synaptane-1.0.0rc2/src/synaptane/web/locales/fr.json +1487 -0
- synaptane-1.0.0rc2/src/synaptane/web/login_pages.py +94 -0
- synaptane-1.0.0rc2/src/synaptane/web/oauth_pages.py +91 -0
- synaptane-1.0.0rc2/src/synaptane/web/org_pages.py +281 -0
- synaptane-1.0.0rc2/src/synaptane/web/pages.py +821 -0
- synaptane-1.0.0rc2/src/synaptane/web/render.py +137 -0
- synaptane-1.0.0rc2/src/synaptane/web/routine_pages.py +382 -0
- synaptane-1.0.0rc2/src/synaptane/web/space_pages.py +288 -0
- synaptane-1.0.0rc2/src/synaptane/web/sso_pages.py +235 -0
- synaptane-1.0.0rc2/src/synaptane/web/static/app.css +1282 -0
- synaptane-1.0.0rc2/src/synaptane/web/static/fonts/Geist-latin.woff2 +0 -0
- synaptane-1.0.0rc2/src/synaptane/web/static/fonts/GeistMono-latin.woff2 +0 -0
- synaptane-1.0.0rc2/src/synaptane/web/static/fonts/InstrumentSans-latin.woff2 +0 -0
- synaptane-1.0.0rc2/src/synaptane/web/static/fonts/JetBrainsMono-latin.woff2 +0 -0
- synaptane-1.0.0rc2/src/synaptane/web/static/fonts/Newsreader-italic-latin.woff2 +0 -0
- synaptane-1.0.0rc2/src/synaptane/web/static/fonts/Newsreader-latin.woff2 +0 -0
- synaptane-1.0.0rc2/src/synaptane/web/static/fonts/OFL-Geist.txt +93 -0
- synaptane-1.0.0rc2/src/synaptane/web/static/fonts/OFL-InstrumentSans.txt +93 -0
- synaptane-1.0.0rc2/src/synaptane/web/static/fonts/OFL-JetBrainsMono.txt +93 -0
- synaptane-1.0.0rc2/src/synaptane/web/static/fonts/OFL-Newsreader.txt +93 -0
- synaptane-1.0.0rc2/src/synaptane/web/static/icon.svg +1 -0
- synaptane-1.0.0rc2/src/synaptane/web/static/preferences.js +731 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/account-assistants.html +95 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/account-base.html +26 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/account-profile.html +46 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/account-security.html +44 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/admin-base.html +16 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/admin-mail.html +43 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/admin-orgs.html +36 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/admin-sso.html +55 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/admin-user.html +55 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/admin-users.html +40 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/base.html +109 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/consent.html +38 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/deposit-form.html +31 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/deposit.html +23 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/error.html +28 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/forgot.html +17 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/home.html +118 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/icons.html +61 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/inbox.html +112 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/invite.html +24 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/login.html +43 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/members-table.html +41 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/org-ai.html +94 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/org-base.html +27 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/org-embeddings.html +32 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/org-members.html +52 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/org-new-space.html +20 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/org-settings.html +17 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/org-spaces.html +25 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/org-webhooks.html +36 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/provider-help.html +55 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/public-card.html +9 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/reset.html +16 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/routine-ui.html +27 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/search.html +36 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/space-activity.html +33 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/space-compare.html +10 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/space-general.html +18 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/space-git.html +127 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/space-header.html +9 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/space-health.html +85 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/space-members.html +12 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/space-routine-form.html +57 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/space-routine.html +92 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/space-routines.html +70 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/space-semantic.html +13 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/space-settings-base.html +24 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/space-sidebar.html +38 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/space-tabs.html +21 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/space-tidy-settings.html +29 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/space-tree-fragment.html +2 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/space-tree.html +22 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/space-vocation.html +93 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/theme-control.html +2 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/tidy-metrics.html +28 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/tidy-run-now.html +8 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/tidy.html +139 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/ui.html +90 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/verify-email.html +22 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/wiki-related.html +28 -0
- synaptane-1.0.0rc2/src/synaptane/web/templates/wiki.html +254 -0
- synaptane-1.0.0rc2/src/synaptane/web/tidy_pages.py +395 -0
- synaptane-1.0.0rc2/src/synaptane/web/vocation_pages.py +213 -0
- synaptane-1.0.0rc2/src/synaptane/web/wiki.py +790 -0
- synaptane-1.0.0rc2/src/synaptane/worker/__init__.py +1 -0
- synaptane-1.0.0rc2/src/synaptane/worker/runner.py +382 -0
- synaptane-1.0.0rc2/tests/__init__.py +0 -0
- synaptane-1.0.0rc2/tests/eval/__init__.py +7 -0
- synaptane-1.0.0rc2/tests/eval/__main__.py +166 -0
- synaptane-1.0.0rc2/tests/eval/env.py +131 -0
- synaptane-1.0.0rc2/tests/eval/scenarios.py +672 -0
- synaptane-1.0.0rc2/tests/eval/search_bench.py +192 -0
- synaptane-1.0.0rc2/tests/eval/tidy_bench.py +293 -0
- synaptane-1.0.0rc2/tests/eval/wikidata.py +332 -0
- synaptane-1.0.0rc2/tests/fixtures/codex-features-0.163.0.txt +175 -0
- synaptane-1.0.0rc2/tests/fixtures/legacy/README.md +36 -0
- synaptane-1.0.0rc2/tests/fixtures/legacy/kickoff-slides.ppt +0 -0
- synaptane-1.0.0rc2/tests/fixtures/legacy/poi-basic-test.ppt +0 -0
- synaptane-1.0.0rc2/tests/fixtures/legacy/poi-password-protected.ppt +0 -0
- synaptane-1.0.0rc2/tests/fixtures/legacy/printer-memo.doc +0 -0
- synaptane-1.0.0rc2/tests/fixtures/legacy/spare-parts.xls +0 -0
- synaptane-1.0.0rc2/tests/fixtures/scan-fr.pdf +0 -0
- synaptane-1.0.0rc2/tests/fixtures/scan_fr.py +88 -0
- synaptane-1.0.0rc2/tests/htmlutil.py +270 -0
- synaptane-1.0.0rc2/tests/integration/__init__.py +0 -0
- synaptane-1.0.0rc2/tests/integration/conftest.py +152 -0
- synaptane-1.0.0rc2/tests/integration/gitutil.py +80 -0
- synaptane-1.0.0rc2/tests/integration/test_ai_costs.py +353 -0
- synaptane-1.0.0rc2/tests/integration/test_ai_test_worker.py +124 -0
- synaptane-1.0.0rc2/tests/integration/test_alert_mails.py +248 -0
- synaptane-1.0.0rc2/tests/integration/test_alerts.py +48 -0
- synaptane-1.0.0rc2/tests/integration/test_api.py +240 -0
- synaptane-1.0.0rc2/tests/integration/test_backup.py +390 -0
- synaptane-1.0.0rc2/tests/integration/test_changes.py +172 -0
- synaptane-1.0.0rc2/tests/integration/test_cli.py +60 -0
- synaptane-1.0.0rc2/tests/integration/test_commit_before_response.py +62 -0
- synaptane-1.0.0rc2/tests/integration/test_content.py +586 -0
- synaptane-1.0.0rc2/tests/integration/test_data_migrations.py +95 -0
- synaptane-1.0.0rc2/tests/integration/test_default_locale.py +102 -0
- synaptane-1.0.0rc2/tests/integration/test_demo.py +344 -0
- synaptane-1.0.0rc2/tests/integration/test_eval_bench.py +52 -0
- synaptane-1.0.0rc2/tests/integration/test_extraction_bounds.py +256 -0
- synaptane-1.0.0rc2/tests/integration/test_find_and_follow.py +269 -0
- synaptane-1.0.0rc2/tests/integration/test_freshness.py +511 -0
- synaptane-1.0.0rc2/tests/integration/test_git_interfaces.py +151 -0
- synaptane-1.0.0rc2/tests/integration/test_git_network.py +424 -0
- synaptane-1.0.0rc2/tests/integration/test_git_recovery.py +228 -0
- synaptane-1.0.0rc2/tests/integration/test_git_sync.py +226 -0
- synaptane-1.0.0rc2/tests/integration/test_inbox.py +410 -0
- synaptane-1.0.0rc2/tests/integration/test_interface_languages.py +110 -0
- synaptane-1.0.0rc2/tests/integration/test_invitations.py +355 -0
- synaptane-1.0.0rc2/tests/integration/test_jobs.py +131 -0
- synaptane-1.0.0rc2/tests/integration/test_legacy_office.py +132 -0
- synaptane-1.0.0rc2/tests/integration/test_links_health.py +221 -0
- synaptane-1.0.0rc2/tests/integration/test_mcp.py +1094 -0
- synaptane-1.0.0rc2/tests/integration/test_mcp_protocol.py +198 -0
- synaptane-1.0.0rc2/tests/integration/test_migrations.py +26 -0
- synaptane-1.0.0rc2/tests/integration/test_oauth_reuse.py +42 -0
- synaptane-1.0.0rc2/tests/integration/test_offsite.py +142 -0
- synaptane-1.0.0rc2/tests/integration/test_related.py +399 -0
- synaptane-1.0.0rc2/tests/integration/test_rights_html.py +371 -0
- synaptane-1.0.0rc2/tests/integration/test_routines.py +626 -0
- synaptane-1.0.0rc2/tests/integration/test_routines_web.py +255 -0
- synaptane-1.0.0rc2/tests/integration/test_search_v3.py +164 -0
- synaptane-1.0.0rc2/tests/integration/test_security_v2.py +111 -0
- synaptane-1.0.0rc2/tests/integration/test_semantic.py +329 -0
- synaptane-1.0.0rc2/tests/integration/test_services.py +132 -0
- synaptane-1.0.0rc2/tests/integration/test_signup_and_mail_limits.py +238 -0
- synaptane-1.0.0rc2/tests/integration/test_space_settings_web.py +276 -0
- synaptane-1.0.0rc2/tests/integration/test_ssh_credentials_storage.py +108 -0
- synaptane-1.0.0rc2/tests/integration/test_sso_webhooks.py +747 -0
- synaptane-1.0.0rc2/tests/integration/test_symlinks.py +53 -0
- synaptane-1.0.0rc2/tests/integration/test_tidy.py +527 -0
- synaptane-1.0.0rc2/tests/integration/test_tidy_agent.py +413 -0
- synaptane-1.0.0rc2/tests/integration/test_tidy_commit.py +372 -0
- synaptane-1.0.0rc2/tests/integration/test_tidy_guardrails.py +219 -0
- synaptane-1.0.0rc2/tests/integration/test_tidy_interfaces.py +145 -0
- synaptane-1.0.0rc2/tests/integration/test_tidy_journal.py +216 -0
- synaptane-1.0.0rc2/tests/integration/test_tidy_metrics.py +146 -0
- synaptane-1.0.0rc2/tests/integration/test_tidy_paths.py +547 -0
- synaptane-1.0.0rc2/tests/integration/test_tidy_robustness.py +145 -0
- synaptane-1.0.0rc2/tests/integration/test_tidy_v3.py +191 -0
- synaptane-1.0.0rc2/tests/integration/test_vocation.py +520 -0
- synaptane-1.0.0rc2/tests/integration/test_watermark_without_tidy.py +137 -0
- synaptane-1.0.0rc2/tests/integration/test_web.py +224 -0
- synaptane-1.0.0rc2/tests/integration/test_worker.py +281 -0
- synaptane-1.0.0rc2/tests/integration/test_worker_tasks.py +182 -0
- synaptane-1.0.0rc2/tests/integration/waiting.py +28 -0
- synaptane-1.0.0rc2/tests/integration/wikidata.py +107 -0
- synaptane-1.0.0rc2/tests/unit/__init__.py +0 -0
- synaptane-1.0.0rc2/tests/unit/test_access.py +59 -0
- synaptane-1.0.0rc2/tests/unit/test_account_clients.py +12 -0
- synaptane-1.0.0rc2/tests/unit/test_ai_providers.py +92 -0
- synaptane-1.0.0rc2/tests/unit/test_ancestry.py +19 -0
- synaptane-1.0.0rc2/tests/unit/test_backup_url.py +7 -0
- synaptane-1.0.0rc2/tests/unit/test_cli_agents.py +217 -0
- synaptane-1.0.0rc2/tests/unit/test_cli_basics.py +94 -0
- synaptane-1.0.0rc2/tests/unit/test_cli_contract.py +213 -0
- synaptane-1.0.0rc2/tests/unit/test_commit_authors.py +32 -0
- synaptane-1.0.0rc2/tests/unit/test_commit_labels.py +40 -0
- synaptane-1.0.0rc2/tests/unit/test_deploy_script.py +279 -0
- synaptane-1.0.0rc2/tests/unit/test_embedding_models.py +25 -0
- synaptane-1.0.0rc2/tests/unit/test_extract.py +227 -0
- synaptane-1.0.0rc2/tests/unit/test_extract_legacy.py +244 -0
- synaptane-1.0.0rc2/tests/unit/test_extract_ppt.py +412 -0
- synaptane-1.0.0rc2/tests/unit/test_freshness.py +233 -0
- synaptane-1.0.0rc2/tests/unit/test_git_credentials.py +162 -0
- synaptane-1.0.0rc2/tests/unit/test_git_read.py +86 -0
- synaptane-1.0.0rc2/tests/unit/test_htmlutil.py +78 -0
- synaptane-1.0.0rc2/tests/unit/test_i18n.py +327 -0
- synaptane-1.0.0rc2/tests/unit/test_image_metadata.py +76 -0
- synaptane-1.0.0rc2/tests/unit/test_inbox_format.py +22 -0
- synaptane-1.0.0rc2/tests/unit/test_kind_of.py +23 -0
- synaptane-1.0.0rc2/tests/unit/test_link_rewrite.py +126 -0
- synaptane-1.0.0rc2/tests/unit/test_links.py +96 -0
- synaptane-1.0.0rc2/tests/unit/test_mail_templates.py +269 -0
- synaptane-1.0.0rc2/tests/unit/test_names_and_config.py +87 -0
- synaptane-1.0.0rc2/tests/unit/test_offsite.py +162 -0
- synaptane-1.0.0rc2/tests/unit/test_pricing.py +55 -0
- synaptane-1.0.0rc2/tests/unit/test_related_text.py +34 -0
- synaptane-1.0.0rc2/tests/unit/test_routine_schedule.py +113 -0
- synaptane-1.0.0rc2/tests/unit/test_search_text.py +137 -0
- synaptane-1.0.0rc2/tests/unit/test_secret_scan.py +103 -0
- synaptane-1.0.0rc2/tests/unit/test_security.py +41 -0
- synaptane-1.0.0rc2/tests/unit/test_semantic_chunks.py +81 -0
- synaptane-1.0.0rc2/tests/unit/test_ssh_credentials.py +133 -0
- synaptane-1.0.0rc2/tests/unit/test_throttle.py +93 -0
- synaptane-1.0.0rc2/tests/unit/test_tidy_journal.py +228 -0
- synaptane-1.0.0rc2/tests/unit/test_tidy_merge.py +26 -0
- synaptane-1.0.0rc2/tests/unit/test_web_assets.py +74 -0
- synaptane-1.0.0rc2/uv.lock +1480 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Python and tools
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
.venv/
|
|
5
|
+
build/
|
|
6
|
+
dist/
|
|
7
|
+
*.egg-info/
|
|
8
|
+
.pytest_cache/
|
|
9
|
+
.mypy_cache/
|
|
10
|
+
.ruff_cache/
|
|
11
|
+
.coverage
|
|
12
|
+
.coverage.*
|
|
13
|
+
coverage.xml
|
|
14
|
+
htmlcov/
|
|
15
|
+
|
|
16
|
+
# Local configuration, secrets and data
|
|
17
|
+
.env*
|
|
18
|
+
!.env.example
|
|
19
|
+
synaptane.toml
|
|
20
|
+
local/
|
|
21
|
+
data/
|
|
22
|
+
*.key
|
|
23
|
+
*.pem
|
|
24
|
+
*.log
|
|
25
|
+
|
|
26
|
+
# OCR test corpus (large, kept out of Git)
|
|
27
|
+
tests/fixtures/ocr/
|
|
28
|
+
|
|
29
|
+
# AI agent tools (settings and local working copies)
|
|
30
|
+
.claude/
|
|
31
|
+
.g2-input/
|
|
32
|
+
|
|
33
|
+
# Editors and systems
|
|
34
|
+
.DS_Store
|
|
35
|
+
.vscode/
|
|
36
|
+
.idea/
|
|
37
|
+
*.swp
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to Synaptane are documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this
|
|
6
|
+
project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
Before each upgrade, back up your instance (see `docs/admin/backup.md`) and read the section
|
|
9
|
+
of the target version.
|
|
10
|
+
|
|
11
|
+
## [Unreleased]
|
|
12
|
+
|
|
13
|
+
## [1.0.0-rc.2] - 2026-10-25
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- Semantic search with Voyage AI: pages and queries are embedded with the prompts Voyage
|
|
17
|
+
prepends for its `input_type` ("document" and "query"), which its models are tuned for.
|
|
18
|
+
Vectors made without them stay compatible; `synaptane reindex` rebuilds an existing index
|
|
19
|
+
with them.
|
|
20
|
+
- Agent CLIs of the image (subscription mode): Claude Code 2.1.303 and Codex 0.163.0. Codex's
|
|
21
|
+
new `browser_annotation_api` feature is turned off on each run; its other new features
|
|
22
|
+
(service tiers, access programs, interruptions, desktop voice) open nothing.
|
|
23
|
+
- Anthropic provider: `anthropic` 2.0.0, which calls the Claude API with version 2026-10-21
|
|
24
|
+
and sends the API key in `Authorization: Bearer` instead of `X-Api-Key`. Requests to the
|
|
25
|
+
Claude API itself are unchanged. **If the organization's AI goes through a gateway or proxy
|
|
26
|
+
(an "API address" set for Anthropic), check that it accepts the key in `Authorization`**;
|
|
27
|
+
one that only reads `X-Api-Key` now refuses the requests ("key refused"). The `anthropic`
|
|
28
|
+
package is now under Apache-2.0 (MIT before; see `THIRD_PARTY_NOTICES.md`).
|
|
29
|
+
|
|
30
|
+
### Security
|
|
31
|
+
- Pillow 13.0.0: fixes in the image decoders (JPEG, TIFF, GIF, PDF, EPS), which open the
|
|
32
|
+
images uploaded for OCR.
|
|
33
|
+
- opentelemetry-api 1.45.1 (pulled in by anthropic, fastapi and mcp): its `tracestate` parser
|
|
34
|
+
no longer takes quadratic time on a crafted header (CVE-2026-114603). Synaptane does not
|
|
35
|
+
extract trace headers itself.
|
|
36
|
+
|
|
37
|
+
### Added
|
|
38
|
+
- Prices of the Voyage 4 embedding models (`voyage-4-large`, `voyage-4`, `voyage-4-lite`), so
|
|
39
|
+
that their indexing is counted at its real cost instead of the table's highest price.
|
|
40
|
+
- Semantic search: an optional **minimal similarity** per organization, next to its embedding
|
|
41
|
+
model (Semantic search page, REST `meaning_min_similarity`). Set, the best page found by
|
|
42
|
+
meaning must reach it instead of standing out from the median of its neighbours: in a space
|
|
43
|
+
of similar pages (call transcripts, tickets), relevant questions never stood out enough and
|
|
44
|
+
meaning added nothing. Empty by default: nothing changes. Cleared when the model changes,
|
|
45
|
+
since its scale is the model's.
|
|
46
|
+
|
|
47
|
+
### Fixed
|
|
48
|
+
- A space created after its tidy-up time (02:00 by default) no longer gets a scheduled run
|
|
49
|
+
right away, before its repository is even synchronized, which failed with "This space has
|
|
50
|
+
not been synchronized with its repository yet". Its first run is the next night, and no
|
|
51
|
+
scheduled run starts before the first synchronization.
|
|
52
|
+
- The failed-run alert offers to test the AI connection only when the cause may lie with the
|
|
53
|
+
AI; a space not synchronized yet points to the repository status.
|
|
54
|
+
- A UTF-8 text file whose 8 KiB detection window cut a multi-byte character (an accented
|
|
55
|
+
letter at byte 8192) was taken for a binary file: shown as a download, without its text for
|
|
56
|
+
search and AI assistants. It is text again; an invalid byte still makes a file binary.
|
|
57
|
+
|
|
58
|
+
## [1.0.0-rc.1] - 2026-10-12
|
|
59
|
+
|
|
60
|
+
First public release.
|
|
61
|
+
|
|
62
|
+
### Added
|
|
63
|
+
|
|
64
|
+
#### Wiki stored in Git
|
|
65
|
+
- Organizations group spaces. Each space is a Git repository on any host (GitHub, GitLab,
|
|
66
|
+
Gitea…), over HTTPS with a token or over SSH. Its `content/` folder is the wiki, in plain
|
|
67
|
+
Markdown; PDF, Office documents and images are stored next to the pages.
|
|
68
|
+
- Markdown first, and all your files: PDF (built-in viewer; text layer, or OCR for scanned
|
|
69
|
+
pages), Word, PowerPoint and Excel documents and their OpenDocument equivalents (`.docx`,
|
|
70
|
+
`.pptx`, `.xlsx`, `.odt`, `.odp`, `.ods`: download, with the extracted text), images
|
|
71
|
+
(displayed, text read by OCR), standalone HTML pages (rendered in an isolated frame, source
|
|
72
|
+
one click away) and any text file (syntax highlighting) are searchable and readable by AI
|
|
73
|
+
assistants. Other files are stored, versioned and downloadable.
|
|
74
|
+
- The old binary Office formats `.doc`, `.xls` and `.ppt` are searchable too, their text read
|
|
75
|
+
in the same bounded process and shown under the download link. Word 6 to 2003 and Excel 5 to
|
|
76
|
+
2003 are read by catdoc (`catdoc`, `xls2csv`, included in the Docker image); without it,
|
|
77
|
+
these files are kept without text and `synaptane doctor` warns. PowerPoint 97 to 2003 is read
|
|
78
|
+
by Synaptane itself (with olefile), whether the file was saved by PowerPoint or LibreOffice:
|
|
79
|
+
titles, bodies, free text boxes, tables and speaker notes, slide after slide. A
|
|
80
|
+
password-protected file is kept without text, its failure recorded in the extraction
|
|
81
|
+
manifest.
|
|
82
|
+
- Two-way sync, triggered by an incoming webhook or by polling, with conflict resolution in
|
|
83
|
+
the web UI. Nothing local is lost when the repository URL changes or after a force-push.
|
|
84
|
+
- Reading and editing in the web UI: page tree, outline, backlinks, wiki links `[[name]]`,
|
|
85
|
+
history and diffs. Moving a page rewrites the links that point to it, in the same commit.
|
|
86
|
+
- **Health** tab per space: broken links with suggestions, orphan, empty or untitled pages,
|
|
87
|
+
pages not changed for months.
|
|
88
|
+
- **Page verification**: owner, verification date and review cycle in the front matter
|
|
89
|
+
(`owner`, `verified`, `review_every`). Badges, a list of pages due for review, and a weekly
|
|
90
|
+
email to owners.
|
|
91
|
+
- **Related pages** under each page (by meaning, rare words in common, links, folder), with a
|
|
92
|
+
one-click proposal to link two pages.
|
|
93
|
+
|
|
94
|
+
#### Inbox and AI tidy-up
|
|
95
|
+
- Each space has an inbox. Notes, with attachments, come from AI assistants (MCP), the web UI
|
|
96
|
+
or the REST API. Pages changed directly are integrated as well.
|
|
97
|
+
- Every night (or a few minutes after each drop, if enabled), an AI agent files the notes into
|
|
98
|
+
the wiki, updates existing pages, fixes links and commits. A run can be undone in one click.
|
|
99
|
+
- **Space purpose** (`.synaptane/vocation.md`) and space-specific **tidy rules**
|
|
100
|
+
(`.synaptane/prompts/tidy.md`), edited in the web UI, with eight templates (infrastructure,
|
|
101
|
+
marketing, product, client project, personal, family, job search, blank).
|
|
102
|
+
- Guardrails: at most 10 deletions per run; caps on tokens, model calls and tool calls per run
|
|
103
|
+
(2 million tokens, 120 model calls and 400 tool calls for the tidy-up; 1 million, 60 and 200
|
|
104
|
+
for a routine); an optional monthly budget per organization with alerts at 80 % and 100 %;
|
|
105
|
+
file-by-file merge when someone edits a page during a run.
|
|
106
|
+
- The agent reads attachments (text, PDF, Office, OCR) and searches by words and meaning
|
|
107
|
+
before writing, to complete pages rather than duplicate them.
|
|
108
|
+
- Run log with cost, tokens, quality metrics (broken links introduced, orphan pages created…)
|
|
109
|
+
and a link to the commit. People who dropped notes get an email saying where they were
|
|
110
|
+
filed.
|
|
111
|
+
- Offline evaluation bench for the tidy-up and search (`tests/eval/`).
|
|
112
|
+
|
|
113
|
+
#### Agent routines
|
|
114
|
+
- Scheduled AI agents per space (daily, weekly or monthly) that read a part of the wiki and
|
|
115
|
+
write only to their outputs: a report page, inbox items, an email, the `routine.done`
|
|
116
|
+
webhook.
|
|
117
|
+
- Two ready-made routines: **Consistency check** (contradictions, outdated information,
|
|
118
|
+
duplicates) and **Weekly digest**.
|
|
119
|
+
|
|
120
|
+
#### Search
|
|
121
|
+
- Full-text search with ripgrep: accent and ligature folding, light English and French
|
|
122
|
+
stemming, BM25-style ranking, one readable excerpt per result that links to its section.
|
|
123
|
+
- Text extracted from PDF, Office documents and images (Tesseract OCR) in a separate, bounded
|
|
124
|
+
process.
|
|
125
|
+
- Optional hybrid semantic search with pgvector and reciprocal rank fusion. Embedding
|
|
126
|
+
providers: Ollama, OpenAI, Google Gemini, Mistral, Voyage AI, any OpenAI-compatible API.
|
|
127
|
+
- Notes waiting in the inbox are shown above the results. Search palette on every page
|
|
128
|
+
(Ctrl/Cmd+K or `/`).
|
|
129
|
+
|
|
130
|
+
#### MCP server for AI assistants
|
|
131
|
+
- Streamable HTTP server at `/mcp` with OAuth 2.1 (PKCE, dynamic client registration, token
|
|
132
|
+
rotation) or personal tokens. A connection can be limited to read-only or to some spaces.
|
|
133
|
+
- 20 tools to list spaces, search, read, browse, follow history, manage the inbox, write,
|
|
134
|
+
move, delete and verify pages. `search` and `fetch` follow the ChatGPT connector format.
|
|
135
|
+
- 3 prompts: `save`, `answer_with_sources`, `briefing`.
|
|
136
|
+
- Tested with Claude.ai, Claude Desktop, Claude Code and ChatGPT (developer mode). A
|
|
137
|
+
**Test the connection** page shows calls as they arrive.
|
|
138
|
+
|
|
139
|
+
#### AI providers
|
|
140
|
+
- Anthropic (default model `claude-sonnet-5-5`), OpenAI, Mistral, Ollama and any
|
|
141
|
+
OpenAI-compatible endpoint, configured per organization, with a per-space model override.
|
|
142
|
+
- Claude and ChatGPT subscriptions through the official Claude Code and Codex CLIs (super
|
|
143
|
+
admin only, self-built image), with quota tracking for Claude.
|
|
144
|
+
- Automatic cost estimates for Claude models; manual price per million tokens for the others.
|
|
145
|
+
- The monthly budget covers tidy-up, routines and semantic indexing (embedding tokens priced
|
|
146
|
+
for OpenAI, Gemini, Mistral and Voyage AI). With a provider billed per use, the form
|
|
147
|
+
suggests a budget of 20 € a month and the AI page warns while none is set.
|
|
148
|
+
|
|
149
|
+
#### Accounts and teams
|
|
150
|
+
- Roles: super admin, organization admin, contributor, reader. Invitations by email or by
|
|
151
|
+
link, password reset, email verification.
|
|
152
|
+
- Single sign-on: OIDC, GitHub, GitLab, Google, with optional allowed email domains per
|
|
153
|
+
provider.
|
|
154
|
+
- Personal tokens and connected applications, managed in **My account**.
|
|
155
|
+
- Alerts to organization admins: failing tidy-up, routine or sync, inbox not reviewed,
|
|
156
|
+
deletion cap reached, big changes, subscription quota above 90 %, budget.
|
|
157
|
+
|
|
158
|
+
#### APIs
|
|
159
|
+
- REST API covering the web features, with an optional OpenAPI schema and interactive docs
|
|
160
|
+
(`api_docs`).
|
|
161
|
+
- Webhooks signed with HMAC-SHA256, with automatic disabling after repeated failures.
|
|
162
|
+
|
|
163
|
+
#### Operations
|
|
164
|
+
- Docker Compose deployment, behind the host's reverse proxy or all-in-one with nginx and
|
|
165
|
+
Let's Encrypt. Image published at `ghcr.io/synaptane/synaptane`, without the Claude Code and
|
|
166
|
+
Codex CLIs; the Dockerfile can build them in.
|
|
167
|
+
- `SYNAPTANE_VERSION` selects the image tag; `SYNAPTANE_DEFAULT_LOCALE` sets the default
|
|
168
|
+
language of the UI (`en` or `fr`).
|
|
169
|
+
- The Compose file pulls the published images at its own version by default
|
|
170
|
+
(`SYNAPTANE_VERSION`, `1.0.0-rc.1` for this release; there is no `latest` to follow) and
|
|
171
|
+
never builds. Building from the repository goes through `compose.build.yaml`, under the local
|
|
172
|
+
name `synaptane:local`. Both images carry `LICENSE`, `NOTICE` and the third-party notices in
|
|
173
|
+
`/usr/share/doc/synaptane/`.
|
|
174
|
+
- Demo data set (`examples/acme-wiki/`, the wiki of a fictional IT team) and the
|
|
175
|
+
`synaptane demo` command, which loads it into a disposable instance.
|
|
176
|
+
- Eight sample files in the demo data set, linked from its pages: a PDF contract, a scanned
|
|
177
|
+
delivery note (OCR), a Word checklist, a PowerPoint review, an Excel inventory, the 2019
|
|
178
|
+
inventory in the old Excel format (`.xls`), a rack diagram (PNG, OCR) and an HTML status
|
|
179
|
+
report, generated by `scripts/demo_files.py` (the `.xls` file by `scripts/legacy_files.py`).
|
|
180
|
+
- `synaptane doctor` checks the installation; `synaptane check-clis` checks that the agent
|
|
181
|
+
CLIs only expose Synaptane's tools.
|
|
182
|
+
- Verified backups and atomic restore. Off-site copies encrypted with age and sent with
|
|
183
|
+
rclone to one or more destinations (S3, B2, SFTP, WebDAV, SMB, Google Drive…), with
|
|
184
|
+
retention. Monthly restore drill script.
|
|
185
|
+
- Server scripts in `deploy/host/`: `deploy.sh` (backup, build, checks, automatic rollback),
|
|
186
|
+
`backup.sh`, `install-nginx.sh`.
|
|
187
|
+
- The running version and commit are shown by `synaptane --version`, `doctor`, the
|
|
188
|
+
administration page and backup manifests.
|
|
189
|
+
|
|
190
|
+
#### Interface
|
|
191
|
+
- Web UI in English and French, light and dark themes, usable on mobile and with the
|
|
192
|
+
keyboard.
|
|
193
|
+
|
|
194
|
+
### Changed
|
|
195
|
+
- Agent instructions in English; the agent writes in the language of the space.
|
|
196
|
+
- Interface strings now have English source keys; French is a translation (fr.json); REST
|
|
197
|
+
errors follow Accept-Language.
|
|
198
|
+
|
|
199
|
+
### Security
|
|
200
|
+
- No default account. A random master key (mode 0600) encrypts secrets stored in the
|
|
201
|
+
database; changing an API or repository URL requires entering its secret again.
|
|
202
|
+
- Passwords hashed with Argon2, tokens stored hashed, CSRF protection on every form, login
|
|
203
|
+
throttling per account and per address.
|
|
204
|
+
- One authorization check shared by the web UI, the REST API and MCP. Through an assistant,
|
|
205
|
+
even a super admin reaches only the spaces they are a member of.
|
|
206
|
+
- Email addresses are verified by a link that must be confirmed from the signed-in account
|
|
207
|
+
that asked for it.
|
|
208
|
+
- OAuth consent screen warns when an application name does not match its redirect address.
|
|
209
|
+
For an account in several organizations, the consent screen and the personal token form
|
|
210
|
+
select only the spaces of one organization by default.
|
|
211
|
+
- Single sign-on never creates accounts unless enabled per provider (off by default), and
|
|
212
|
+
can be limited to allowed email domains. A GitHub, Google or gitlab.com provider that would
|
|
213
|
+
let anyone sign up is flagged as "Open to everyone".
|
|
214
|
+
- Rate limits, answered with HTTP 429: 3 email verification links per account per hour, 30
|
|
215
|
+
invitations per organization per hour, 120 inbox drops per account per hour, 5 manual
|
|
216
|
+
tidy-up runs per person and space per day (20 for an organization admin).
|
|
217
|
+
- Sign-in logs never contain an unknown login as typed, only a short fingerprint.
|
|
218
|
+
- A monthly budget requires a known price for every model in use; a model that loses its
|
|
219
|
+
price is counted at the highest known price, never zero.
|
|
220
|
+
- Probable secrets are refused before any commit (pages, notes, attachments, agent output).
|
|
221
|
+
- Content read by AI agents is framed as untrusted data, including everything the MCP tools
|
|
222
|
+
return to assistants. Every MCP write tool is declared destructive, so that clients ask
|
|
223
|
+
for confirmation. The tidy-up agent and routines have no shell, file or network access;
|
|
224
|
+
subscription CLIs are restricted to Synaptane's tools, checked in CI.
|
|
225
|
+
- Hardened Git use: Git hooks disabled, no symbolic links, literal paths.
|
|
226
|
+
- Markdown rendered through an HTML sanitizer, with a strict Content Security Policy.
|
|
227
|
+
- Document extraction isolated in a process limited in memory and time.
|
|
228
|
+
- Webhooks protected against requests to private networks.
|
|
229
|
+
- Hardened containers: read-only file system, all capabilities dropped, no privilege
|
|
230
|
+
escalation, PostgreSQL not exposed, app bound to `127.0.0.1`, forwarded headers trusted
|
|
231
|
+
only from configured proxies.
|
|
232
|
+
|
|
233
|
+
### Notes
|
|
234
|
+
- Synaptane is **alpha software (preview)**, provided as is and maintained on a best-effort
|
|
235
|
+
basis by one person. The REST API, MCP tools and configuration may still change.
|
|
236
|
+
- See [Known limitations](README.md#known-limitations) in the README.
|
|
237
|
+
|
|
238
|
+
[Unreleased]: https://github.com/synaptane/synaptane/compare/v1.0.0-rc.2...HEAD
|
|
239
|
+
[1.0.0-rc.2]: https://github.com/synaptane/synaptane/compare/v1.0.0-rc.1...v1.0.0-rc.2
|
|
240
|
+
[1.0.0-rc.1]: https://github.com/synaptane/synaptane/releases/tag/v1.0.0-rc.1
|
|
@@ -0,0 +1,202 @@
|
|
|
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
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
202
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Synaptane
|
|
2
|
+
Copyright 2026 René Cotton and the Synaptane contributors
|
|
3
|
+
|
|
4
|
+
This product is licensed under the Apache License, Version 2.0 (see LICENSE).
|
|
5
|
+
|
|
6
|
+
It includes third-party components (fonts, icons, and the libraries and tools
|
|
7
|
+
bundled in the Docker images) distributed under their own licenses: see
|
|
8
|
+
THIRD_PARTY_NOTICES.md.
|