neurokeeper 0.3.3__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.
- neurokeeper-0.3.3/.claude-plugin/marketplace.json +16 -0
- neurokeeper-0.3.3/.claude-plugin/plugin.json +11 -0
- neurokeeper-0.3.3/.gitattributes +7 -0
- neurokeeper-0.3.3/.github/ISSUE_TEMPLATE/bug_report.yml +51 -0
- neurokeeper-0.3.3/.github/ISSUE_TEMPLATE/config.yml +5 -0
- neurokeeper-0.3.3/.github/ISSUE_TEMPLATE/feature_request.yml +49 -0
- neurokeeper-0.3.3/.github/PULL_REQUEST_TEMPLATE.md +11 -0
- neurokeeper-0.3.3/.github/dependabot.yml +28 -0
- neurokeeper-0.3.3/.github/workflows/deploy-wiki.yml +94 -0
- neurokeeper-0.3.3/.github/workflows/release.yml +29 -0
- neurokeeper-0.3.3/.github/workflows/test.yml +98 -0
- neurokeeper-0.3.3/.gitignore +18 -0
- neurokeeper-0.3.3/.pre-commit-hooks.yaml +27 -0
- neurokeeper-0.3.3/CHANGELOG.md +78 -0
- neurokeeper-0.3.3/CODE_OF_CONDUCT.md +131 -0
- neurokeeper-0.3.3/CONTRIBUTING.md +75 -0
- neurokeeper-0.3.3/LICENSE +21 -0
- neurokeeper-0.3.3/PKG-INFO +196 -0
- neurokeeper-0.3.3/README.md +176 -0
- neurokeeper-0.3.3/RELEASING.md +59 -0
- neurokeeper-0.3.3/SECURITY.md +34 -0
- neurokeeper-0.3.3/THIRD-PARTY-LICENSES.md +23 -0
- neurokeeper-0.3.3/action.yml +47 -0
- neurokeeper-0.3.3/assets/brand/neurokeeper-mark-dark.svg +14 -0
- neurokeeper-0.3.3/assets/brand/neurokeeper-mark.svg +14 -0
- neurokeeper-0.3.3/assets/brand/neurokeeper-social.png +0 -0
- neurokeeper-0.3.3/assets/brand/neurokeeper-social.svg +40 -0
- neurokeeper-0.3.3/bin/claude-cheap +47 -0
- neurokeeper-0.3.3/bin/claude-cheap.ps1 +36 -0
- neurokeeper-0.3.3/bin/neurokeeper +7 -0
- neurokeeper-0.3.3/bootstrap/RUNBOOK.md +82 -0
- neurokeeper-0.3.3/bootstrap/bootstrap.ps1 +47 -0
- neurokeeper-0.3.3/bootstrap/bootstrap.sh +76 -0
- neurokeeper-0.3.3/bootstrap/repos.example.txt +10 -0
- neurokeeper-0.3.3/bootstrap/test/README.md +113 -0
- neurokeeper-0.3.3/bootstrap/test/test-bootstrap.ps1 +155 -0
- neurokeeper-0.3.3/bootstrap/test/test-bootstrap.sh +192 -0
- neurokeeper-0.3.3/bootstrap/tools-manifest.md +31 -0
- neurokeeper-0.3.3/config.example/cheap-lane.env.example +13 -0
- neurokeeper-0.3.3/config.example/frontmatter-schema.example.yaml +87 -0
- neurokeeper-0.3.3/config.example/harness.config.example.yaml +28 -0
- neurokeeper-0.3.3/docs/DISTRIBUTION.md +62 -0
- neurokeeper-0.3.3/docs/SOURCES.md +35 -0
- neurokeeper-0.3.3/docs/adr-0001-backend-contract.md +78 -0
- neurokeeper-0.3.3/docs/adr-0002-doctor-exit-semantics.md +50 -0
- neurokeeper-0.3.3/docs/capability-registry.md +29 -0
- neurokeeper-0.3.3/docs/ci-adapters.md +63 -0
- neurokeeper-0.3.3/docs/competitive-landscape.md +87 -0
- neurokeeper-0.3.3/docs/obsidian-integration.md +139 -0
- neurokeeper-0.3.3/docs/pattern-portable-core-and-adapters.md +254 -0
- neurokeeper-0.3.3/docs/roadmap.md +302 -0
- neurokeeper-0.3.3/docs/two-lane-model-handoff.md +96 -0
- neurokeeper-0.3.3/examples/vault/02 - Projects/migration-plan.md +11 -0
- neurokeeper-0.3.3/examples/vault/02 - Projects/sample-project.md +16 -0
- neurokeeper-0.3.3/examples/vault/05 - Knowledge/portable-core.md +13 -0
- neurokeeper-0.3.3/examples/vault/10 - Attachments/diagram.png +0 -0
- neurokeeper-0.3.3/examples/vault/README.md +13 -0
- neurokeeper-0.3.3/examples/vault/overview.canvas +11 -0
- neurokeeper-0.3.3/hooks/hooks.json +16 -0
- neurokeeper-0.3.3/neurokeeper/__init__.py +2 -0
- neurokeeper-0.3.3/neurokeeper/cli.py +69 -0
- neurokeeper-0.3.3/prompts/memory-audit.md +41 -0
- neurokeeper-0.3.3/pyproject.toml +51 -0
- neurokeeper-0.3.3/requirements-dev.txt +5 -0
- neurokeeper-0.3.3/scripts/_backend.py +280 -0
- neurokeeper-0.3.3/scripts/_vault_guard.py +47 -0
- neurokeeper-0.3.3/scripts/_vault_lib.py +148 -0
- neurokeeper-0.3.3/scripts/check-release.py +85 -0
- neurokeeper-0.3.3/scripts/memory-consolidate.py +347 -0
- neurokeeper-0.3.3/scripts/registry-generate.py +131 -0
- neurokeeper-0.3.3/scripts/vault-doctor.py +111 -0
- neurokeeper-0.3.3/scripts/vault-frontmatter-fix.py +136 -0
- neurokeeper-0.3.3/scripts/vault-frontmatter-lint.py +138 -0
- neurokeeper-0.3.3/scripts/vault-name-reconcile.py +135 -0
- neurokeeper-0.3.3/scripts/vault-ref-audit.py +270 -0
- neurokeeper-0.3.3/scripts/vault-set-note-type.py +107 -0
- neurokeeper-0.3.3/scripts/vault-tag-reconcile.py +145 -0
- neurokeeper-0.3.3/scripts/vault-taxonomy-inventory.py +168 -0
- neurokeeper-0.3.3/skills/memory-audit/SKILL.md +22 -0
- neurokeeper-0.3.3/tests/conftest.py +145 -0
- neurokeeper-0.3.3/tests/test_backend.py +159 -0
- neurokeeper-0.3.3/tests/test_ci_adapters.py +31 -0
- neurokeeper-0.3.3/tests/test_doctor.py +70 -0
- neurokeeper-0.3.3/tests/test_frontmatter_fix.py +85 -0
- neurokeeper-0.3.3/tests/test_lint_inventory.py +52 -0
- neurokeeper-0.3.3/tests/test_memory_consolidate.py +134 -0
- neurokeeper-0.3.3/tests/test_name_reconcile.py +100 -0
- neurokeeper-0.3.3/tests/test_ref_audit.py +87 -0
- neurokeeper-0.3.3/tests/test_release_and_example.py +26 -0
- neurokeeper-0.3.3/tests/test_set_note_type.py +47 -0
- neurokeeper-0.3.3/tests/test_tag_reconcile.py +41 -0
- neurokeeper-0.3.3/tests/test_vault_guard.py +34 -0
- neurokeeper-0.3.3/tests/test_vault_lib.py +173 -0
- neurokeeper-0.3.3/tests/test_wiki_coverage.py +93 -0
- neurokeeper-0.3.3/tools.lock +11 -0
- neurokeeper-0.3.3/wiki/README.md +86 -0
- neurokeeper-0.3.3/wiki/content/brand/index.md +59 -0
- neurokeeper-0.3.3/wiki/content/explanation/index.md +150 -0
- neurokeeper-0.3.3/wiki/content/how-to/index.md +252 -0
- neurokeeper-0.3.3/wiki/content/index.md +50 -0
- neurokeeper-0.3.3/wiki/content/reference/index.md +210 -0
- neurokeeper-0.3.3/wiki/content/tutorials/index.md +113 -0
- neurokeeper-0.3.3/wiki/quartz.config.ts +115 -0
- neurokeeper-0.3.3/wiki/quartz.layout.ts +81 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "neurokeeper",
|
|
3
|
+
"owner": { "name": "neurokeeper contributors" },
|
|
4
|
+
"metadata": {
|
|
5
|
+
"description": "Portable-core harness: deterministic vault-hygiene engines + memory-audit + thin adapters."
|
|
6
|
+
},
|
|
7
|
+
"plugins": [
|
|
8
|
+
{
|
|
9
|
+
"name": "neurokeeper",
|
|
10
|
+
"source": "./",
|
|
11
|
+
"description": "Deterministic Obsidian-vault hygiene engines (tags / frontmatter / taxonomy / link-aware rename / reference-integrity audit) + a deterministic memory-audit + an optional two-lane self-hosted-model handoff. One portable core, runnable as a Claude Code plugin AND a standalone CLI.",
|
|
12
|
+
"category": "knowledge-management",
|
|
13
|
+
"keywords": ["obsidian", "vault", "knowledge-management", "frontmatter", "tags", "memory", "linting", "config-as-code"]
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/claude-code-plugin-manifest.json",
|
|
3
|
+
"name": "neurokeeper",
|
|
4
|
+
"version": "0.3.3",
|
|
5
|
+
"description": "Portable-core Claude Code harness: deterministic engines + prompt templates + thin adapters (skill/MCP/CLI). Engines are harness-agnostic; the Claude Code plugin is one adapter.",
|
|
6
|
+
"author": { "name": "neurokeeper contributors" },
|
|
7
|
+
"homepage": "https://wombat164.github.io/neurokeeper/",
|
|
8
|
+
"repository": "https://github.com/Wombat164/neurokeeper",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"keywords": ["obsidian", "vault", "knowledge-management", "frontmatter", "tags", "memory", "linting", "config-as-code"]
|
|
11
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: An engine crashes, produces wrong output, or contradicts the docs
|
|
3
|
+
labels: [bug]
|
|
4
|
+
body:
|
|
5
|
+
- type: markdown
|
|
6
|
+
attributes:
|
|
7
|
+
value: |
|
|
8
|
+
Thanks for the report. Security issues do NOT go here: use the private
|
|
9
|
+
vulnerability reporting form under the Security tab (see SECURITY.md).
|
|
10
|
+
- type: input
|
|
11
|
+
id: engine
|
|
12
|
+
attributes:
|
|
13
|
+
label: Engine / entry point
|
|
14
|
+
description: Which engine or component (name-reconcile, tag-reconcile, frontmatter-lint, frontmatter-fix, set-note-type, taxonomy-inventory, ref-audit, doctor, memory-consolidate, registry-generate, CLI dispatcher, plugin adapter, ...)
|
|
15
|
+
placeholder: "ref-audit"
|
|
16
|
+
validations:
|
|
17
|
+
required: true
|
|
18
|
+
- type: textarea
|
|
19
|
+
id: what-happened
|
|
20
|
+
attributes:
|
|
21
|
+
label: What happened
|
|
22
|
+
description: What you ran, what you expected, what you got. Paste the exact command and output.
|
|
23
|
+
placeholder: |
|
|
24
|
+
Command:
|
|
25
|
+
Expected:
|
|
26
|
+
Got:
|
|
27
|
+
validations:
|
|
28
|
+
required: true
|
|
29
|
+
- type: textarea
|
|
30
|
+
id: repro
|
|
31
|
+
attributes:
|
|
32
|
+
label: Minimal reproduction
|
|
33
|
+
description: The smallest notes/config that shows the problem. Strip anything private BEFORE pasting.
|
|
34
|
+
validations:
|
|
35
|
+
required: false
|
|
36
|
+
- type: input
|
|
37
|
+
id: environment
|
|
38
|
+
attributes:
|
|
39
|
+
label: Environment
|
|
40
|
+
description: OS, Python version, install mode (editable / plugin), and relevant versions.
|
|
41
|
+
placeholder: "Windows 11, Python 3.11, pip install -e ., Obsidian 1.6"
|
|
42
|
+
validations:
|
|
43
|
+
required: true
|
|
44
|
+
- type: checkboxes
|
|
45
|
+
id: checks
|
|
46
|
+
attributes:
|
|
47
|
+
label: Checks
|
|
48
|
+
options:
|
|
49
|
+
- label: I ran the test suite (pytest -q) and this is not already covered by a failing test
|
|
50
|
+
- label: This report contains no private or organisation-internal content
|
|
51
|
+
required: true
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
name: Feature request
|
|
2
|
+
description: Propose a capability or an improvement
|
|
3
|
+
labels: [enhancement]
|
|
4
|
+
body:
|
|
5
|
+
- type: markdown
|
|
6
|
+
attributes:
|
|
7
|
+
value: |
|
|
8
|
+
Before proposing: docs/roadmap.md lists what is planned, and the ADRs
|
|
9
|
+
under docs/ (adr-0001, adr-0002, ...) record why things are the way they
|
|
10
|
+
are.
|
|
11
|
+
- type: textarea
|
|
12
|
+
id: problem
|
|
13
|
+
attributes:
|
|
14
|
+
label: Problem
|
|
15
|
+
description: What can't you do today, or what is painful? Describe the workflow, not the solution.
|
|
16
|
+
validations:
|
|
17
|
+
required: true
|
|
18
|
+
- type: textarea
|
|
19
|
+
id: proposal
|
|
20
|
+
attributes:
|
|
21
|
+
label: Proposed shape
|
|
22
|
+
description: What would it look like (CLI flag, config key, new engine)? Prior art in other tools is very welcome; this project prefers adopting or imitating proven patterns over inventing.
|
|
23
|
+
validations:
|
|
24
|
+
required: false
|
|
25
|
+
- type: dropdown
|
|
26
|
+
id: area
|
|
27
|
+
attributes:
|
|
28
|
+
label: Area
|
|
29
|
+
options:
|
|
30
|
+
- "link/reference audit (ref-audit)"
|
|
31
|
+
- "frontmatter (lint/fix)"
|
|
32
|
+
- "tags (tag-reconcile)"
|
|
33
|
+
- "naming / rename (name-reconcile)"
|
|
34
|
+
- "note-type / taxonomy"
|
|
35
|
+
- "memory-audit (memory-consolidate)"
|
|
36
|
+
- "doctor / aggregate health"
|
|
37
|
+
- "CI adapters (pre-commit / GitHub Action)"
|
|
38
|
+
- "packaging / CLI"
|
|
39
|
+
- "docs / wiki"
|
|
40
|
+
- "other"
|
|
41
|
+
validations:
|
|
42
|
+
required: true
|
|
43
|
+
- type: checkboxes
|
|
44
|
+
id: checks
|
|
45
|
+
attributes:
|
|
46
|
+
label: Checks
|
|
47
|
+
options:
|
|
48
|
+
- label: This fits the domain-neutral portable core; consumer-specific behaviour belongs in an adapter/config
|
|
49
|
+
required: true
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# What this changes
|
|
2
|
+
|
|
3
|
+
<!-- One or two sentences: the problem and the shape of the fix. Link the issue if one exists. -->
|
|
4
|
+
|
|
5
|
+
## Checklist
|
|
6
|
+
|
|
7
|
+
- [ ] Tests land with the change (see CONTRIBUTING.md)
|
|
8
|
+
- [ ] `pytest -q` green locally
|
|
9
|
+
- [ ] The portable core stays domain-neutral: no organisation-, locale-, or consumer-specific content in code, comments, or example config
|
|
10
|
+
- [ ] Docs updated where behaviour changed: a new engine or flag is documented in the wiki reference (tests/test_wiki_coverage.py enforces this)
|
|
11
|
+
- [ ] Honest scoping: anything intentionally NOT done is stated in the PR description
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
# Python deps (pyproject.toml runtime + optional-dependencies, requirements-dev.txt).
|
|
4
|
+
# The runtime surface is intentionally tiny (stdlib + pyyaml); this keeps it fresh + secure.
|
|
5
|
+
- package-ecosystem: "pip"
|
|
6
|
+
directory: "/"
|
|
7
|
+
schedule:
|
|
8
|
+
interval: "weekly"
|
|
9
|
+
open-pull-requests-limit: 5
|
|
10
|
+
commit-message:
|
|
11
|
+
prefix: "deps"
|
|
12
|
+
labels: ["dependencies", "python"]
|
|
13
|
+
groups:
|
|
14
|
+
python:
|
|
15
|
+
patterns: ["*"]
|
|
16
|
+
|
|
17
|
+
# GitHub Actions used by the CI / release / wiki workflows.
|
|
18
|
+
- package-ecosystem: "github-actions"
|
|
19
|
+
directory: "/"
|
|
20
|
+
schedule:
|
|
21
|
+
interval: "weekly"
|
|
22
|
+
open-pull-requests-limit: 5
|
|
23
|
+
commit-message:
|
|
24
|
+
prefix: "ci"
|
|
25
|
+
labels: ["dependencies", "github-actions"]
|
|
26
|
+
groups:
|
|
27
|
+
actions:
|
|
28
|
+
patterns: ["*"]
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# Deploy the neurokeeper docs site (Quartz v4) to GitHub Pages.
|
|
2
|
+
#
|
|
3
|
+
# Verified against the official Quartz v4 GitHub Pages recipe:
|
|
4
|
+
# https://github.com/jackyzha0/quartz/blob/v4/docs/hosting.md (action versions, permissions,
|
|
5
|
+
# concurrency, node 22, build command, upload/deploy actions)
|
|
6
|
+
#
|
|
7
|
+
# This repo holds ONLY our config + content under wiki/ - the Quartz framework is NOT vendored
|
|
8
|
+
# (see wiki/README.md). So this workflow differs from the vanilla recipe in one way: instead of
|
|
9
|
+
# building the repo as-is, it FETCHES Quartz v4 (pinned to a commit SHA), overlays
|
|
10
|
+
# wiki/quartz.config.ts + wiki/quartz.layout.ts + wiki/content/, then builds. The verified parts
|
|
11
|
+
# (action versions, permissions, concurrency, the upload-pages-artifact -> deploy-pages handoff)
|
|
12
|
+
# are kept exactly as the official recipe specifies.
|
|
13
|
+
#
|
|
14
|
+
# PREREQUISITE: enable Pages first - repo Settings > Pages > Source = "GitHub Actions". Until then the
|
|
15
|
+
# deploy job fails by design. To deploy automatically on wiki changes, enable Pages and uncomment the
|
|
16
|
+
# push trigger below.
|
|
17
|
+
|
|
18
|
+
name: Deploy wiki to GitHub Pages
|
|
19
|
+
|
|
20
|
+
on:
|
|
21
|
+
push:
|
|
22
|
+
branches: [main]
|
|
23
|
+
paths: ["wiki/**", ".github/workflows/deploy-wiki.yml"]
|
|
24
|
+
workflow_dispatch: {} # manual trigger
|
|
25
|
+
|
|
26
|
+
# Least-privilege default for the whole workflow; the deploy job widens its own scope below.
|
|
27
|
+
permissions:
|
|
28
|
+
contents: read
|
|
29
|
+
|
|
30
|
+
# Allow one in-flight Pages deployment; do not cancel a running one.
|
|
31
|
+
concurrency:
|
|
32
|
+
group: "pages"
|
|
33
|
+
cancel-in-progress: false
|
|
34
|
+
|
|
35
|
+
jobs:
|
|
36
|
+
build:
|
|
37
|
+
runs-on: ubuntu-22.04
|
|
38
|
+
steps:
|
|
39
|
+
- name: Checkout this repo (config + content)
|
|
40
|
+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
41
|
+
with:
|
|
42
|
+
fetch-depth: 0 # full history so CreatedModifiedDate can use git dates
|
|
43
|
+
|
|
44
|
+
# --- overlay adaptation (framework is fetched, not vendored) ---
|
|
45
|
+
- name: Fetch Quartz v4 framework (pinned commit)
|
|
46
|
+
run: |
|
|
47
|
+
set -euo pipefail
|
|
48
|
+
# Pinned to the v4 branch HEAD at 2026-04-20 for reproducible builds. Bump deliberately.
|
|
49
|
+
QUARTZ_SHA=d25a6eabf96751ffca56f8a8139272def7a65041 # v4 @ 2026-04-20
|
|
50
|
+
git init .quartz-build
|
|
51
|
+
git -C .quartz-build remote add origin https://github.com/jackyzha0/quartz.git
|
|
52
|
+
git -C .quartz-build fetch --depth 1 origin "$QUARTZ_SHA"
|
|
53
|
+
git -C .quartz-build checkout "$QUARTZ_SHA"
|
|
54
|
+
|
|
55
|
+
- name: Overlay our config + content into Quartz
|
|
56
|
+
run: |
|
|
57
|
+
cp wiki/quartz.config.ts .quartz-build/quartz.config.ts
|
|
58
|
+
cp wiki/quartz.layout.ts .quartz-build/quartz.layout.ts
|
|
59
|
+
rm -rf .quartz-build/content
|
|
60
|
+
cp -r wiki/content .quartz-build/content
|
|
61
|
+
# --- end overlay adaptation; below mirrors the verified vanilla recipe ---
|
|
62
|
+
|
|
63
|
+
- name: Setup Node
|
|
64
|
+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
|
65
|
+
with:
|
|
66
|
+
node-version: 22
|
|
67
|
+
|
|
68
|
+
- name: Install dependencies
|
|
69
|
+
working-directory: .quartz-build
|
|
70
|
+
run: npm ci
|
|
71
|
+
|
|
72
|
+
- name: Build Quartz
|
|
73
|
+
working-directory: .quartz-build
|
|
74
|
+
run: npx quartz build
|
|
75
|
+
|
|
76
|
+
- name: Upload artifact
|
|
77
|
+
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
|
|
78
|
+
with:
|
|
79
|
+
path: .quartz-build/public
|
|
80
|
+
|
|
81
|
+
deploy:
|
|
82
|
+
needs: build
|
|
83
|
+
# Only the deploy job needs the Pages-deploy privileges.
|
|
84
|
+
permissions:
|
|
85
|
+
pages: write
|
|
86
|
+
id-token: write
|
|
87
|
+
environment:
|
|
88
|
+
name: github-pages
|
|
89
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
90
|
+
runs-on: ubuntu-latest
|
|
91
|
+
steps:
|
|
92
|
+
- name: Deploy to GitHub Pages
|
|
93
|
+
id: deployment
|
|
94
|
+
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# neurokeeper - PyPI release via Trusted Publishing (OIDC, no stored tokens).
|
|
2
|
+
# Runs on a published GitHub Release. Requires a configured PyPI Trusted Publisher for this repo
|
|
3
|
+
# (PyPI project settings) so the OIDC handshake can mint a short-lived upload token.
|
|
4
|
+
name: release
|
|
5
|
+
on:
|
|
6
|
+
release:
|
|
7
|
+
types: [published]
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
pypi:
|
|
14
|
+
name: build + publish to PyPI
|
|
15
|
+
# GATED: runs only once a PyPI Trusted Publisher is configured for this repo AND the repo variable
|
|
16
|
+
# PYPI_ENABLE=true is set (Settings > Secrets and variables > Actions > Variables). Until then it is
|
|
17
|
+
# SKIPPED, so cutting a GitHub Release stays green. See RELEASING.md.
|
|
18
|
+
if: ${{ vars.PYPI_ENABLE == 'true' }}
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
environment: pypi
|
|
21
|
+
permissions:
|
|
22
|
+
id-token: write # OIDC -> PyPI Trusted Publishing (no API token)
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
25
|
+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
|
|
26
|
+
with: { python-version: '3.13' }
|
|
27
|
+
- run: pip install build
|
|
28
|
+
- run: python -m build
|
|
29
|
+
- uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# neurokeeper - GitHub Actions CI.
|
|
2
|
+
# Fast engine tests run on every push/PR (no system installs). The heavy bootstrap
|
|
3
|
+
# matrix (apt/brew/winget-installs whole toolchains) is GATED to manual dispatch,
|
|
4
|
+
# releases, and a weekly schedule - it doesn't need to run on every commit.
|
|
5
|
+
name: ci
|
|
6
|
+
|
|
7
|
+
on:
|
|
8
|
+
push:
|
|
9
|
+
pull_request:
|
|
10
|
+
workflow_dispatch:
|
|
11
|
+
release:
|
|
12
|
+
types: [published]
|
|
13
|
+
schedule:
|
|
14
|
+
- cron: "0 6 * * 1" # Mon 06:00 UTC - exercise the heavy bootstrap matrix weekly
|
|
15
|
+
|
|
16
|
+
concurrency:
|
|
17
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
18
|
+
cancel-in-progress: true
|
|
19
|
+
|
|
20
|
+
permissions:
|
|
21
|
+
contents: read
|
|
22
|
+
|
|
23
|
+
jobs:
|
|
24
|
+
# ---- fast: the engines (every push/PR, all 3 OS, python floor matrix) ----
|
|
25
|
+
engine-tests:
|
|
26
|
+
name: engines (${{ matrix.os }} py${{ matrix.py }})
|
|
27
|
+
runs-on: ${{ matrix.os }}
|
|
28
|
+
strategy:
|
|
29
|
+
fail-fast: false
|
|
30
|
+
matrix:
|
|
31
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
32
|
+
py: ['3.9', '3.11', '3.13']
|
|
33
|
+
steps:
|
|
34
|
+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
35
|
+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
|
|
36
|
+
with:
|
|
37
|
+
python-version: ${{ matrix.py }}
|
|
38
|
+
- run: pip install -r requirements-dev.txt
|
|
39
|
+
- run: python -m pytest tests/ -q
|
|
40
|
+
|
|
41
|
+
# ---- lint ----
|
|
42
|
+
lint:
|
|
43
|
+
name: ruff
|
|
44
|
+
runs-on: ubuntu-latest
|
|
45
|
+
steps:
|
|
46
|
+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
47
|
+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
|
|
48
|
+
with: { python-version: '3.13' }
|
|
49
|
+
- run: pip install ruff
|
|
50
|
+
- run: ruff check scripts/ tests/ neurokeeper/
|
|
51
|
+
|
|
52
|
+
# ---- secret scan (gitleaks DEFAULT rules; blocking). Pinned + checksum-verified ----
|
|
53
|
+
secrets:
|
|
54
|
+
name: gitleaks (secret scan)
|
|
55
|
+
runs-on: ubuntu-latest
|
|
56
|
+
steps:
|
|
57
|
+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
58
|
+
with: { fetch-depth: 0 }
|
|
59
|
+
- name: gitleaks (pinned version, checksum-verified)
|
|
60
|
+
run: |
|
|
61
|
+
set -euo pipefail
|
|
62
|
+
VER=8.28.0
|
|
63
|
+
SHA=a65b5253807a68ac0cafa4414031fd740aeb55f54fb7e55f386acb52e6a840eb
|
|
64
|
+
curl -fsSL "https://github.com/gitleaks/gitleaks/releases/download/v${VER}/gitleaks_${VER}_linux_x64.tar.gz" -o gl.tgz
|
|
65
|
+
echo "${SHA} gl.tgz" | sha256sum -c -
|
|
66
|
+
tar -xzf gl.tgz gitleaks
|
|
67
|
+
# DEFAULT rules only (secret-only - API keys/tokens/private keys). Safe to publish.
|
|
68
|
+
./gitleaks detect --source . --redact --no-banner --exit-code 1
|
|
69
|
+
|
|
70
|
+
# ---- release manifests: version-sync + plugin/marketplace sanity (offline, stdlib-only) ----
|
|
71
|
+
release-gate:
|
|
72
|
+
name: release manifests
|
|
73
|
+
runs-on: ubuntu-latest
|
|
74
|
+
steps:
|
|
75
|
+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
76
|
+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
|
|
77
|
+
with: { python-version: '3.13' }
|
|
78
|
+
- run: python scripts/check-release.py
|
|
79
|
+
|
|
80
|
+
# ---- heavy: real bootstrap install test. GATED (not on every push) ----
|
|
81
|
+
bootstrap-test:
|
|
82
|
+
name: bootstrap (${{ matrix.os }})
|
|
83
|
+
if: github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || github.event_name == 'release'
|
|
84
|
+
runs-on: ${{ matrix.os }}
|
|
85
|
+
strategy:
|
|
86
|
+
fail-fast: false
|
|
87
|
+
matrix:
|
|
88
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
89
|
+
steps:
|
|
90
|
+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
91
|
+
- name: Run bootstrap test (bash)
|
|
92
|
+
if: runner.os != 'Windows'
|
|
93
|
+
shell: bash
|
|
94
|
+
run: bash bootstrap/test/test-bootstrap.sh
|
|
95
|
+
- name: Run bootstrap test (pwsh)
|
|
96
|
+
if: runner.os == 'Windows'
|
|
97
|
+
shell: pwsh
|
|
98
|
+
run: pwsh -NoProfile -File bootstrap/test/test-bootstrap.ps1
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
__pycache__/
|
|
2
|
+
*.pyc
|
|
3
|
+
.DS_Store
|
|
4
|
+
Thumbs.db
|
|
5
|
+
*.tmp
|
|
6
|
+
.pytest_cache/
|
|
7
|
+
.ruff_cache/
|
|
8
|
+
# Secrets / keys -- never commit:
|
|
9
|
+
.env
|
|
10
|
+
*.pem
|
|
11
|
+
*.key
|
|
12
|
+
id_rsa
|
|
13
|
+
# Private pre-publish OPSEC keyword-scan config (enumerates private names/codes; kept local only):
|
|
14
|
+
.gitleaks-opsec.toml
|
|
15
|
+
# L2 config + content never live here (this is L1a portable-core only):
|
|
16
|
+
config/
|
|
17
|
+
*.local.*
|
|
18
|
+
bootstrap/repos.txt
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# neurokeeper pre-commit hooks. Consume from another (vault) repo's .pre-commit-config.yaml:
|
|
2
|
+
#
|
|
3
|
+
# repos:
|
|
4
|
+
# - repo: https://github.com/Wombat164/neurokeeper
|
|
5
|
+
# rev: v0.3.0
|
|
6
|
+
# hooks:
|
|
7
|
+
# - id: neurokeeper-doctor # aggregate health gate (recommended)
|
|
8
|
+
# # - id: neurokeeper-ref-audit # or just reference integrity
|
|
9
|
+
#
|
|
10
|
+
# pre-commit builds an isolated venv and installs this package, so the `neurokeeper` CLI is the entry.
|
|
11
|
+
# The engines scan VAULT_ROOT (defaults to the repo root). doctor SKIPS engines whose config is absent
|
|
12
|
+
# (no FRONTMATTER_SCHEMA / CLAUDE_MEMORY_DIR) -- it never false-fails on unconfigured checks. Pair with
|
|
13
|
+
# lychee / markdownlint / check-jsonschema for the commoditized checks this deliberately does NOT do.
|
|
14
|
+
- id: neurokeeper-doctor
|
|
15
|
+
name: neurokeeper doctor (vault health gate)
|
|
16
|
+
description: Aggregate read-only health; fails on broken .canvas/.base refs or an engine error (honest tri-state).
|
|
17
|
+
entry: neurokeeper doctor --check
|
|
18
|
+
language: python
|
|
19
|
+
pass_filenames: false
|
|
20
|
+
always_run: true
|
|
21
|
+
- id: neurokeeper-ref-audit
|
|
22
|
+
name: neurokeeper ref-audit (reference integrity)
|
|
23
|
+
description: Reference-integrity gate; broken .canvas/.base fail, unresolved wikilinks informational (add --strict to fail).
|
|
24
|
+
entry: neurokeeper ref-audit --check
|
|
25
|
+
language: python
|
|
26
|
+
pass_filenames: false
|
|
27
|
+
always_run: true
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to neurokeeper are recorded here. The format follows
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/), and the project uses semantic versioning.
|
|
5
|
+
Full per-release notes: https://github.com/Wombat164/neurokeeper/releases
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [0.3.3] - 2026-07-04
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- R20 wiki-coverage gate (`tests/test_wiki_coverage.py`): a deterministic test that fails CI when a
|
|
13
|
+
user-facing engine or flag is missing from the wiki reference catalog, deriving ground truth from
|
|
14
|
+
`cli.py`'s dispatch map and each engine's declared flags. Escape hatches: `INTERNAL` (plumbing
|
|
15
|
+
subcommands) and `IGNORE_FLAGS`.
|
|
16
|
+
- Community-health files: `CONTRIBUTING.md`, `CODE_OF_CONDUCT.md` (Contributor Covenant 2.1),
|
|
17
|
+
issue templates, pull-request template, and `THIRD-PARTY-LICENSES.md`.
|
|
18
|
+
- PyPI distribution under the natural name `neurokeeper`, published via Trusted Publishing (OIDC,
|
|
19
|
+
no stored tokens) on a published GitHub Release. Install with `pipx install neurokeeper` or run
|
|
20
|
+
one-shot with `uvx neurokeeper`.
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
- `frontmatter-lint` / `taxonomy-inventory` (#3, secondary): the shared `md_files()` walker now skips
|
|
24
|
+
dot-prefixed directories (`.obsidian`, `.git`, tool caches) the way Obsidian does, so notes under
|
|
25
|
+
`.extractor_cache/` etc. no longer inflate `no_fm` and other counts. The #2 dot-dir skip had landed
|
|
26
|
+
only in `ref-audit`'s own walk; this moves it into the shared walker for every consumer.
|
|
27
|
+
- Documented three flags that the coverage gate surfaced as undocumented: `name-reconcile --under`
|
|
28
|
+
and `--no-exclusions`, and `frontmatter-fix --dates`.
|
|
29
|
+
- Corrected docs that wrongly stated the PyPI name `neurokeeper` was taken (it is unregistered and
|
|
30
|
+
free); removed the obsolete "rename the distribution" guidance from RELEASING.md.
|
|
31
|
+
|
|
32
|
+
### Changed
|
|
33
|
+
- README refreshed (centered header, badges, nav, ASCII-clean prose); documentation version pins
|
|
34
|
+
bumped to v0.3.2.
|
|
35
|
+
|
|
36
|
+
## [0.3.2] - 2026-07-04
|
|
37
|
+
|
|
38
|
+
### Added
|
|
39
|
+
- `memory-consolidate --lint` (R11): an advisory index compression + size-cap + link-integrity check
|
|
40
|
+
for the always-loaded entrypoint index (200-line / 25KB cap, with headroom targets and context-aware
|
|
41
|
+
exclusion of wikilink targets and backtick paths). Never blocks (exit 0).
|
|
42
|
+
|
|
43
|
+
### Fixed
|
|
44
|
+
- `frontmatter-lint --json` (#3): off-vocabulary paths now live at `offvocab.<field>.<value> = [paths]`
|
|
45
|
+
(per value; count is the list length), and each value is the note's relpath. v0.3.1 emitted the
|
|
46
|
+
containing directory, which was not actionable.
|
|
47
|
+
|
|
48
|
+
## [0.3.1] - 2026-07-04
|
|
49
|
+
|
|
50
|
+
### Fixed
|
|
51
|
+
- `ref-audit`: skip dot-prefixed directories by default (Obsidian semantics), so tool caches no longer
|
|
52
|
+
inflate the orphan / dead-end / isolated counts (#2).
|
|
53
|
+
- `frontmatter-lint --json`: emit a `files` block with per-finding paths, actionable without a second
|
|
54
|
+
pass (#3).
|
|
55
|
+
- `config.example`: `memory_bytes_budget` corrected to 25000, the real index load cap (#4).
|
|
56
|
+
- `memory-consolidate`: `BYTES_BUDGET` recalibrated from 45000 to 25000.
|
|
57
|
+
|
|
58
|
+
### Added
|
|
59
|
+
- Obsidian integration guide (`docs/obsidian-integration.md`) mapping each backend seam
|
|
60
|
+
(LINK / METADATA / TAGS / STORE / GUARD) to the Obsidian adapter; the core stays backend-agnostic.
|
|
61
|
+
- Dependabot: weekly grouped pip + github-actions updates.
|
|
62
|
+
|
|
63
|
+
## [0.3.0] - 2026-06-28
|
|
64
|
+
|
|
65
|
+
### Changed
|
|
66
|
+
- Project renamed to **neurokeeper** (the prior name was taken on PyPI/npm and saturated on GitHub; a
|
|
67
|
+
`vault*` name would have tied the project to Obsidian, against the backend-agnostic design). No
|
|
68
|
+
functional changes in this release: the package, CLI command, plugin, and docs URLs were renamed.
|
|
69
|
+
|
|
70
|
+
## [0.2.2] and earlier
|
|
71
|
+
|
|
72
|
+
The earlier release line. See the GitHub releases for details.
|
|
73
|
+
|
|
74
|
+
[Unreleased]: https://github.com/Wombat164/neurokeeper/compare/v0.3.3...HEAD
|
|
75
|
+
[0.3.3]: https://github.com/Wombat164/neurokeeper/releases/tag/v0.3.3
|
|
76
|
+
[0.3.2]: https://github.com/Wombat164/neurokeeper/releases/tag/v0.3.2
|
|
77
|
+
[0.3.1]: https://github.com/Wombat164/neurokeeper/releases/tag/v0.3.1
|
|
78
|
+
[0.3.0]: https://github.com/Wombat164/neurokeeper/releases/tag/v0.3.0
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our
|
|
6
|
+
community a harassment-free experience for everyone, regardless of age, body
|
|
7
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
8
|
+
identity and expression, level of experience, education, socio-economic status,
|
|
9
|
+
nationality, personal appearance, race, caste, color, religion, or sexual
|
|
10
|
+
identity and orientation.
|
|
11
|
+
|
|
12
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
13
|
+
diverse, inclusive, and healthy community.
|
|
14
|
+
|
|
15
|
+
## Our Standards
|
|
16
|
+
|
|
17
|
+
Examples of behavior that contributes to a positive environment for our
|
|
18
|
+
community include:
|
|
19
|
+
|
|
20
|
+
* Demonstrating empathy and kindness toward other people
|
|
21
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
|
22
|
+
* Giving and gracefully accepting constructive feedback
|
|
23
|
+
* Accepting responsibility and apologizing to those affected by our mistakes,
|
|
24
|
+
and learning from the experience
|
|
25
|
+
* Focusing on what is best not just for us as individuals, but for the overall
|
|
26
|
+
community
|
|
27
|
+
|
|
28
|
+
Examples of unacceptable behavior include:
|
|
29
|
+
|
|
30
|
+
* The use of sexualized language or imagery, and sexual attention or advances of
|
|
31
|
+
any kind
|
|
32
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
33
|
+
* Public or private harassment
|
|
34
|
+
* Publishing others' private information, such as a physical or email address,
|
|
35
|
+
without their explicit permission
|
|
36
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
|
37
|
+
professional setting
|
|
38
|
+
|
|
39
|
+
## Enforcement Responsibilities
|
|
40
|
+
|
|
41
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
|
42
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
|
43
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
44
|
+
or harmful.
|
|
45
|
+
|
|
46
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
|
47
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
48
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
49
|
+
decisions when appropriate.
|
|
50
|
+
|
|
51
|
+
## Scope
|
|
52
|
+
|
|
53
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
|
54
|
+
an individual is officially representing the community in public spaces.
|
|
55
|
+
Examples of representing our community include using an official email address,
|
|
56
|
+
posting via an official social media account, or acting as an appointed
|
|
57
|
+
representative at an online or offline event.
|
|
58
|
+
|
|
59
|
+
## Enforcement
|
|
60
|
+
|
|
61
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
62
|
+
reported to the maintainer via GitHub, by mentioning or messaging @Wombat164.
|
|
63
|
+
All complaints will be reviewed and investigated promptly and fairly.
|
|
64
|
+
|
|
65
|
+
All community leaders are obligated to respect the privacy and security of the
|
|
66
|
+
reporter of any incident.
|
|
67
|
+
|
|
68
|
+
## Enforcement Guidelines
|
|
69
|
+
|
|
70
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
|
71
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
|
72
|
+
|
|
73
|
+
### 1. Correction
|
|
74
|
+
|
|
75
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
76
|
+
unprofessional or unwelcome in the community.
|
|
77
|
+
|
|
78
|
+
**Consequence**: A private, written warning from community leaders, providing
|
|
79
|
+
clarity around the nature of the violation and an explanation of why the
|
|
80
|
+
behavior was inappropriate. A public apology may be requested.
|
|
81
|
+
|
|
82
|
+
### 2. Warning
|
|
83
|
+
|
|
84
|
+
**Community Impact**: A violation through a single incident or series of
|
|
85
|
+
actions.
|
|
86
|
+
|
|
87
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
|
88
|
+
interaction with the people involved, including unsolicited interaction with
|
|
89
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
|
90
|
+
includes avoiding interactions in community spaces as well as external channels
|
|
91
|
+
like social media. Violating these terms may lead to a temporary or permanent
|
|
92
|
+
ban.
|
|
93
|
+
|
|
94
|
+
### 3. Temporary Ban
|
|
95
|
+
|
|
96
|
+
**Community Impact**: A serious violation of community standards, including
|
|
97
|
+
sustained inappropriate behavior.
|
|
98
|
+
|
|
99
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
|
100
|
+
communication with the community for a specified period of time. No public or
|
|
101
|
+
private interaction with the people involved, including unsolicited interaction
|
|
102
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
|
103
|
+
Violating these terms may lead to a permanent ban.
|
|
104
|
+
|
|
105
|
+
### 4. Permanent Ban
|
|
106
|
+
|
|
107
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
|
108
|
+
standards, including sustained inappropriate behavior, harassment of an
|
|
109
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
|
110
|
+
|
|
111
|
+
**Consequence**: A permanent ban from any sort of public interaction within the
|
|
112
|
+
community.
|
|
113
|
+
|
|
114
|
+
## Attribution
|
|
115
|
+
|
|
116
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
117
|
+
version 2.1, available at
|
|
118
|
+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
|
119
|
+
|
|
120
|
+
Community Impact Guidelines were inspired by
|
|
121
|
+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
|
|
122
|
+
|
|
123
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
|
124
|
+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
|
|
125
|
+
[https://www.contributor-covenant.org/translations][translations].
|
|
126
|
+
|
|
127
|
+
[homepage]: https://www.contributor-covenant.org
|
|
128
|
+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
|
129
|
+
[Mozilla CoC]: https://github.com/mozilla/diversity
|
|
130
|
+
[FAQ]: https://www.contributor-covenant.org/faq
|
|
131
|
+
[translations]: https://www.contributor-covenant.org/translations
|