tolvi-forge 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tolvi_forge-0.1.0/.github/workflows/ci.yml +29 -0
- tolvi_forge-0.1.0/.github/workflows/release.yml +51 -0
- tolvi_forge-0.1.0/.gitignore +46 -0
- tolvi_forge-0.1.0/CHANGELOG.md +26 -0
- tolvi_forge-0.1.0/CLAUDE.md +29 -0
- tolvi_forge-0.1.0/CODEOWNERS +2 -0
- tolvi_forge-0.1.0/CODE_OF_CONDUCT.md +83 -0
- tolvi_forge-0.1.0/CONTRIBUTING.md +24 -0
- tolvi_forge-0.1.0/LICENSE +202 -0
- tolvi_forge-0.1.0/NOTICE +5 -0
- tolvi_forge-0.1.0/PKG-INFO +157 -0
- tolvi_forge-0.1.0/README.md +133 -0
- tolvi_forge-0.1.0/RELEASE.md +38 -0
- tolvi_forge-0.1.0/ROADMAP.md +12 -0
- tolvi_forge-0.1.0/SECURITY.md +9 -0
- tolvi_forge-0.1.0/docs/PLAN.md +37 -0
- tolvi_forge-0.1.0/docs/superpowers/plans/2026-06-01-forge-p1-skeleton-installer.md +1156 -0
- tolvi_forge-0.1.0/docs/superpowers/plans/2026-06-01-forge-p2-index.md +1220 -0
- tolvi_forge-0.1.0/docs/superpowers/plans/2026-06-01-forge-p3a-context-engine.md +757 -0
- tolvi_forge-0.1.0/docs/superpowers/plans/2026-06-02-forge-p3b-plan-workflow.md +632 -0
- tolvi_forge-0.1.0/docs/superpowers/plans/2026-06-02-forge-p4-mcp-editors.md +394 -0
- tolvi_forge-0.1.0/docs/superpowers/plans/2026-06-02-forge-p5-profiles-agents.md +580 -0
- tolvi_forge-0.1.0/docs/superpowers/plans/2026-06-05-forge-watch.md +779 -0
- tolvi_forge-0.1.0/docs/superpowers/plans/2026-06-05-watch-state-plumbing.md +437 -0
- tolvi_forge-0.1.0/docs/superpowers/plans/2026-07-07-forge-measurement-harness.md +731 -0
- tolvi_forge-0.1.0/docs/superpowers/specs/2026-06-01-forge-design.md +318 -0
- tolvi_forge-0.1.0/docs/superpowers/specs/2026-06-05-forge-watch-design.md +188 -0
- tolvi_forge-0.1.0/docs/superpowers/specs/2026-06-06-forge-start-design.md +89 -0
- tolvi_forge-0.1.0/docs/superpowers/specs/2026-07-07-forge-measurement-harness-design.md +84 -0
- tolvi_forge-0.1.0/docs/superpowers/specs/2026-07-07-vault-decision-relevance-selection-design.md +48 -0
- tolvi_forge-0.1.0/integrations/claude-code/README.md +39 -0
- tolvi_forge-0.1.0/integrations/claude-code/commands/forge.md +69 -0
- tolvi_forge-0.1.0/integrations/claude-code/install.sh +70 -0
- tolvi_forge-0.1.0/integrations/cursor/README.md +11 -0
- tolvi_forge-0.1.0/integrations/cursor/mcp.json +56 -0
- tolvi_forge-0.1.0/integrations/vscode/README.md +10 -0
- tolvi_forge-0.1.0/integrations/vscode/config.yaml +28 -0
- tolvi_forge-0.1.0/mcp/servers.json +56 -0
- tolvi_forge-0.1.0/ollama/Modelfile.tmpl +34 -0
- tolvi_forge-0.1.0/packaging/homebrew/tolvi-forge.rb +45 -0
- tolvi_forge-0.1.0/pyproject.toml +44 -0
- tolvi_forge-0.1.0/setup/bootstrap.sh +88 -0
- tolvi_forge-0.1.0/setup/detect-hardware.sh +62 -0
- tolvi_forge-0.1.0/src/forge/__init__.py +3 -0
- tolvi_forge-0.1.0/src/forge/agents/__init__.py +1 -0
- tolvi_forge-0.1.0/src/forge/agents/orchestrator.py +39 -0
- tolvi_forge-0.1.0/src/forge/agents/roles.py +26 -0
- tolvi_forge-0.1.0/src/forge/assembler.py +49 -0
- tolvi_forge-0.1.0/src/forge/chunker/__init__.py +39 -0
- tolvi_forge-0.1.0/src/forge/chunker/chunk.py +53 -0
- tolvi_forge-0.1.0/src/forge/chunker/fallback.py +41 -0
- tolvi_forge-0.1.0/src/forge/chunker/treesitter.py +80 -0
- tolvi_forge-0.1.0/src/forge/cli.py +595 -0
- tolvi_forge-0.1.0/src/forge/config.py +78 -0
- tolvi_forge-0.1.0/src/forge/embedder/__init__.py +1 -0
- tolvi_forge-0.1.0/src/forge/embedder/embedder.py +69 -0
- tolvi_forge-0.1.0/src/forge/index.py +89 -0
- tolvi_forge-0.1.0/src/forge/llm.py +35 -0
- tolvi_forge-0.1.0/src/forge/modelfile.py +10 -0
- tolvi_forge-0.1.0/src/forge/plan/__init__.py +1 -0
- tolvi_forge-0.1.0/src/forge/plan/manifest.py +98 -0
- tolvi_forge-0.1.0/src/forge/plan/outcomes.py +145 -0
- tolvi_forge-0.1.0/src/forge/plan/workflow.py +85 -0
- tolvi_forge-0.1.0/src/forge/profiles.py +52 -0
- tolvi_forge-0.1.0/src/forge/profiles_data/__init__.py +1 -0
- tolvi_forge-0.1.0/src/forge/profiles_data/fullstack-firebase.json +8 -0
- tolvi_forge-0.1.0/src/forge/profiles_data/java-backend.json +8 -0
- tolvi_forge-0.1.0/src/forge/profiles_data/nextjs.json +8 -0
- tolvi_forge-0.1.0/src/forge/profiles_data/python-backend.json +8 -0
- tolvi_forge-0.1.0/src/forge/profiles_data/react-node.json +8 -0
- tolvi_forge-0.1.0/src/forge/retriever/__init__.py +1 -0
- tolvi_forge-0.1.0/src/forge/retriever/retriever.py +24 -0
- tolvi_forge-0.1.0/src/forge/runtime.py +149 -0
- tolvi_forge-0.1.0/src/forge/store/__init__.py +1 -0
- tolvi_forge-0.1.0/src/forge/store/chroma.py +64 -0
- tolvi_forge-0.1.0/src/forge/vault/__init__.py +1 -0
- tolvi_forge-0.1.0/src/forge/vault/loader.py +127 -0
- tolvi_forge-0.1.0/src/forge/vault/selector.py +58 -0
- tolvi_forge-0.1.0/src/forge/watch.py +365 -0
- tolvi_forge-0.1.0/tests/fixtures/sample-repo/.gitignore +1 -0
- tolvi_forge-0.1.0/tests/fixtures/sample-repo/secret/keys.py +1 -0
- tolvi_forge-0.1.0/tests/fixtures/sample-repo/src/LoginForm.tsx +3 -0
- tolvi_forge-0.1.0/tests/fixtures/sample-repo/src/auth.py +7 -0
- tolvi_forge-0.1.0/tests/fixtures/sample-repo/styles/buttons.css +2 -0
- tolvi_forge-0.1.0/tests/fixtures/sample-vault/.vault-meta.json +1 -0
- tolvi_forge-0.1.0/tests/fixtures/sample-vault/decisions/2026-01-01-use-postgres.md +22 -0
- tolvi_forge-0.1.0/tests/fixtures/sample-vault/decisions/2026-02-01-old-auth.md +10 -0
- tolvi_forge-0.1.0/tests/fixtures/sample-vault/patterns/result-type.md +8 -0
- tolvi_forge-0.1.0/tests/integration/test_index_sample_repo.py +32 -0
- tolvi_forge-0.1.0/tests/unit/test_assembler.py +33 -0
- tolvi_forge-0.1.0/tests/unit/test_chunker.py +98 -0
- tolvi_forge-0.1.0/tests/unit/test_cli.py +399 -0
- tolvi_forge-0.1.0/tests/unit/test_config.py +63 -0
- tolvi_forge-0.1.0/tests/unit/test_editor_configs.py +33 -0
- tolvi_forge-0.1.0/tests/unit/test_embedder.py +71 -0
- tolvi_forge-0.1.0/tests/unit/test_index.py +81 -0
- tolvi_forge-0.1.0/tests/unit/test_llm.py +42 -0
- tolvi_forge-0.1.0/tests/unit/test_manifest.py +62 -0
- tolvi_forge-0.1.0/tests/unit/test_mcp_config.py +50 -0
- tolvi_forge-0.1.0/tests/unit/test_modelfile.py +34 -0
- tolvi_forge-0.1.0/tests/unit/test_orchestrator.py +42 -0
- tolvi_forge-0.1.0/tests/unit/test_outcomes.py +132 -0
- tolvi_forge-0.1.0/tests/unit/test_profiles.py +29 -0
- tolvi_forge-0.1.0/tests/unit/test_retriever.py +33 -0
- tolvi_forge-0.1.0/tests/unit/test_runtime.py +218 -0
- tolvi_forge-0.1.0/tests/unit/test_store.py +68 -0
- tolvi_forge-0.1.0/tests/unit/test_vault_loader.py +89 -0
- tolvi_forge-0.1.0/tests/unit/test_vault_selector.py +51 -0
- tolvi_forge-0.1.0/tests/unit/test_watch.py +270 -0
- tolvi_forge-0.1.0/tests/unit/test_workflow.py +120 -0
- tolvi_forge-0.1.0/uv.lock +2514 -0
- tolvi_forge-0.1.0/vault/.vault-meta.json +5 -0
- tolvi_forge-0.1.0/vault/decisions/2026-06-01-standalone-config-and-python-core.md +23 -0
- tolvi_forge-0.1.0/vault/decisions/2026-06-02-class-level-chunking.md +26 -0
- tolvi_forge-0.1.0/vault/decisions/2026-06-02-lightweight-orchestrator-over-langgraph.md +28 -0
- tolvi_forge-0.1.0/vault/decisions/2026-06-02-mcp-package-verification.md +30 -0
- tolvi_forge-0.1.0/vault/decisions/2026-06-02-tolvi-vault-bridge.md +28 -0
- tolvi_forge-0.1.0/vault/decisions/2026-06-02-tree-sitter-language-pack.md +26 -0
- tolvi_forge-0.1.0/vault/decisions/2026-06-05-cli-path-via-local-bin-symlink.md +30 -0
- tolvi_forge-0.1.0/vault/decisions/2026-06-05-forge-vault-env-var-override.md +31 -0
- tolvi_forge-0.1.0/vault/decisions/2026-06-05-forge-watch-tui-design.md +41 -0
- tolvi_forge-0.1.0/vault/decisions/2026-06-05-watch-state-plumbing-design.md +48 -0
- tolvi_forge-0.1.0/vault/decisions/2026-06-06-forge-start-stop-runtime.md +29 -0
- tolvi_forge-0.1.0/vault/decisions/2026-06-06-tolvi-modelfile-personality.md +27 -0
- tolvi_forge-0.1.0/vault/decisions/2026-07-04-forge-defer-ship-until-usage-data.md +31 -0
- tolvi_forge-0.1.0/vault/decisions/2026-07-08-measure-ship-gate-from-plan-loop.md +32 -0
- tolvi_forge-0.1.0/vault/decisions/2026-07-10-forge-v0-batch-lane.md +32 -0
- tolvi_forge-0.1.0/vault/decisions/2026-07-10-trd-external-checklist-ephemeral.md +32 -0
- tolvi_forge-0.1.0/vault/decisions/2026-08-14-qwen3-coder-upgrade.md +32 -0
- tolvi_forge-0.1.0/vault/patterns/.gitkeep +0 -0
- tolvi_forge-0.1.0/vault/sessions/.gitkeep +0 -0
- tolvi_forge-0.1.0/vault/sessions/2026-06-01.md +36 -0
- tolvi_forge-0.1.0/vault/sessions/2026-06-02.md +83 -0
- tolvi_forge-0.1.0/vault/sessions/2026-06-05.md +112 -0
- tolvi_forge-0.1.0/vault/sessions/2026-06-06.md +67 -0
- tolvi_forge-0.1.0/vault/sessions/2026-07-04.md +27 -0
- tolvi_forge-0.1.0/vault/sessions/2026-07-07.md +61 -0
- tolvi_forge-0.1.0/vault/sessions/2026-07-08.md +30 -0
- tolvi_forge-0.1.0/vault/sessions/2026-07-10.md +33 -0
- tolvi_forge-0.1.0/vault/sessions/2026-08-14.md +27 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
test:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
- name: Install uv
|
|
14
|
+
uses: astral-sh/setup-uv@v5
|
|
15
|
+
with:
|
|
16
|
+
enable-cache: true
|
|
17
|
+
# Reproducible install from uv.lock. --locked fails if the lock is stale,
|
|
18
|
+
# so a dependency bump has to go through `uv lock` and be reviewed, rather
|
|
19
|
+
# than CI silently resolving a newer (possibly breaking) version.
|
|
20
|
+
- name: Sync (locked)
|
|
21
|
+
run: uv sync --extra dev --locked
|
|
22
|
+
- name: Lint
|
|
23
|
+
run: uv run ruff check .
|
|
24
|
+
- name: Test
|
|
25
|
+
run: uv run pytest -v
|
|
26
|
+
- name: Shellcheck
|
|
27
|
+
run: |
|
|
28
|
+
sudo apt-get update && sudo apt-get install -y shellcheck
|
|
29
|
+
shellcheck setup/*.sh
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
# Publishes tolvi-forge to PyPI when a GitHub Release is published. Nothing runs
|
|
4
|
+
# on push — cutting a Release is the deliberate publish trigger.
|
|
5
|
+
#
|
|
6
|
+
# One-time PyPI setup (Trusted Publishing, no API token needed): on PyPI, add a
|
|
7
|
+
# pending publisher for project `tolvi-forge` with
|
|
8
|
+
# owner: tolvi-labs repo: forge workflow: release.yml environment: pypi
|
|
9
|
+
# See https://docs.pypi.org/trusted-publishers/
|
|
10
|
+
|
|
11
|
+
on:
|
|
12
|
+
release:
|
|
13
|
+
types: [published]
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: read
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
build:
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v4
|
|
23
|
+
- name: Install uv
|
|
24
|
+
uses: astral-sh/setup-uv@v5
|
|
25
|
+
- name: Build sdist + wheel
|
|
26
|
+
run: uv build
|
|
27
|
+
- name: Check that the tag matches the package version
|
|
28
|
+
run: |
|
|
29
|
+
TAG="${GITHUB_REF_NAME#v}"
|
|
30
|
+
PKG=$(grep -m1 '^version' pyproject.toml | sed 's/.*"\(.*\)".*/\1/')
|
|
31
|
+
if [ "$TAG" != "$PKG" ]; then
|
|
32
|
+
echo "Release tag ($TAG) does not match pyproject version ($PKG)"; exit 1
|
|
33
|
+
fi
|
|
34
|
+
- uses: actions/upload-artifact@v4
|
|
35
|
+
with:
|
|
36
|
+
name: dist
|
|
37
|
+
path: dist/
|
|
38
|
+
|
|
39
|
+
publish:
|
|
40
|
+
needs: build
|
|
41
|
+
runs-on: ubuntu-latest
|
|
42
|
+
environment: pypi
|
|
43
|
+
permissions:
|
|
44
|
+
id-token: write # OIDC token for PyPI Trusted Publishing
|
|
45
|
+
steps:
|
|
46
|
+
- uses: actions/download-artifact@v4
|
|
47
|
+
with:
|
|
48
|
+
name: dist
|
|
49
|
+
path: dist/
|
|
50
|
+
- name: Publish to PyPI
|
|
51
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
.venv/
|
|
5
|
+
venv/
|
|
6
|
+
*.egg-info/
|
|
7
|
+
build/
|
|
8
|
+
dist/
|
|
9
|
+
.pytest_cache/
|
|
10
|
+
.ruff_cache/
|
|
11
|
+
.mypy_cache/
|
|
12
|
+
.coverage
|
|
13
|
+
htmlcov/
|
|
14
|
+
|
|
15
|
+
# Secrets & local env — never commit (but keep example templates)
|
|
16
|
+
.env
|
|
17
|
+
.env.*
|
|
18
|
+
!.env.example
|
|
19
|
+
!.env.*.example
|
|
20
|
+
*.local
|
|
21
|
+
*.pem
|
|
22
|
+
*.key
|
|
23
|
+
*.pfx
|
|
24
|
+
*.p12
|
|
25
|
+
credentials.json
|
|
26
|
+
service-account*.json
|
|
27
|
+
gha-creds-*.json
|
|
28
|
+
.continue/
|
|
29
|
+
|
|
30
|
+
# Node / MCP tooling (arrives in P4)
|
|
31
|
+
node_modules/
|
|
32
|
+
npm-debug.log*
|
|
33
|
+
|
|
34
|
+
# Forge runtime artifacts (written to XDG dirs, never the repo)
|
|
35
|
+
*.chroma/
|
|
36
|
+
hardware-profile.json
|
|
37
|
+
Modelfile
|
|
38
|
+
|
|
39
|
+
# OS & editor cruft
|
|
40
|
+
.DS_Store
|
|
41
|
+
Thumbs.db
|
|
42
|
+
.idea/
|
|
43
|
+
*.swp
|
|
44
|
+
*.swo
|
|
45
|
+
*~
|
|
46
|
+
.superpowers/
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to Forge are documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog 1.1.0](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [0.1.0] - 2026-09-09
|
|
11
|
+
|
|
12
|
+
Initial release. Published to PyPI as `tolvi-forge`.
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- Local-first Claude → Local → Claude workflow: Claude plans and verifies, a tuned local model (qwen2.5-coder via Ollama) does the high-volume implementation at zero token cost and full privacy.
|
|
17
|
+
- `forge index` — Tree-sitter AST chunking across 9 languages with a line-based fallback, local embeddings via `nomic-embed-text`, and a ChromaDB store with file-checksum incremental re-indexing.
|
|
18
|
+
- `forge search` / `forge chat` — semantic retrieval and chat with a hybrid CAG + RAG context window, including the repo's Tolvi vault when present.
|
|
19
|
+
- `forge plan load/next/complete/status` and `forge verify` — drive a Claude-produced `tasks.json` in dependency order with per-task auto-commits and an exportable diff.
|
|
20
|
+
- `forge outcome` / `forge report` — measure the local-model gate as a byproduct of the plan loop: `outcome` auto-fills rework churn (from git) and local tokens (from `inference.log`) and records accepted/trust/type/failure-reason to a per-plan `outcomes.jsonl`; `report [--all]` pools those into acceptance rate, median churn, token economics, and mean trust.
|
|
21
|
+
- `forge start` / `stop` / `status` / `doctor` — Ollama lifecycle, model/`forge-coder` provisioning, and environment diagnostics.
|
|
22
|
+
- `forge watch` — live TUI dashboard for active plans, loop phase, inference rate, and context fill.
|
|
23
|
+
- `forge profile` — stack profiles that shape the context window.
|
|
24
|
+
- Tolvi vault bridge: decisions and rejected alternatives from a repo's `vault/` (or `FORGE_VAULT`) are fed into the model's always-on context, selected by relevance to the query beyond a recency-based core.
|
|
25
|
+
- Editor integrations: Continue.dev (VS Code) and Cursor against the same Ollama backend, plus a pre-wired MCP layer for Claude Code.
|
|
26
|
+
- `setup/bootstrap.sh` installer: hardware detection, model pulls, `forge-coder` build, CLI install into a dedicated Python 3.12 venv, and editor/MCP config generation.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Forge — agent conventions
|
|
2
|
+
|
|
3
|
+
Forge is a local-first AI dev environment, part of Tolvi Labs. Python core, Click CLI, installed into a 3.12 venv via uv. Match existing style; run `ruff check .` and `pytest` before committing.
|
|
4
|
+
|
|
5
|
+
<!-- VAULT-INDEX:START repo=forge generated=2026-07-10 -->
|
|
6
|
+
## Vault Index
|
|
7
|
+
|
|
8
|
+
*Auto-generated. Re-run the index generator to refresh.*
|
|
9
|
+
|
|
10
|
+
### Decisions
|
|
11
|
+
|
|
12
|
+
- `2026-07-10-trd-external-checklist-ephemeral.md` — Plans live external and uncommitted; the repo keeps code and durable decisions
|
|
13
|
+
- `2026-07-10-forge-v0-batch-lane.md` — Forge v0: the local model's lane is async batch execution, not the keystroke line
|
|
14
|
+
- `2026-07-08-measure-ship-gate-from-plan-loop.md` — Measure the ship gate as a byproduct of the plan loop
|
|
15
|
+
- `2026-07-04-forge-defer-ship-until-usage-data.md` — Ship Forge — but defer until there is real personal usage data
|
|
16
|
+
- `2026-06-06-tolvi-modelfile-personality.md` — Tolvi personality in the forge-coder Modelfile
|
|
17
|
+
- `2026-06-06-forge-start-stop-runtime.md` — forge start / forge stop — runtime lifecycle commands
|
|
18
|
+
- `2026-06-05-watch-state-plumbing-design.md` — Watch state: three artifact files for TUI consumption
|
|
19
|
+
- `2026-06-05-forge-watch-tui-design.md` — forge watch: poll-based Rich TUI with auto-discovery and tab navigation
|
|
20
|
+
- `2026-06-05-forge-vault-env-var-override.md` — FORGE_VAULT env var overrides the default vault path
|
|
21
|
+
- `2026-06-05-cli-path-via-local-bin-symlink.md` — CLI made available on PATH via ~/.local/bin symlink
|
|
22
|
+
- `2026-06-02-tree-sitter-language-pack.md` — Tree-sitter language-pack binding
|
|
23
|
+
- `2026-06-02-mcp-package-verification.md` — MCP package npm-verification
|
|
24
|
+
- `2026-06-02-lightweight-orchestrator-over-langgraph.md` — Multi-agent scaffold; LangGraph deferred
|
|
25
|
+
- `2026-06-02-tolvi-vault-bridge.md` — Tolvi vault bridge
|
|
26
|
+
- `2026-06-02-class-level-chunking.md` — Class-level chunking granularity
|
|
27
|
+
- `2026-06-01-standalone-config-and-python-core.md` — Standalone config and Python core
|
|
28
|
+
|
|
29
|
+
<!-- VAULT-INDEX:END -->
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
|
|
6
|
+
|
|
7
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
|
8
|
+
|
|
9
|
+
## Our Standards
|
|
10
|
+
|
|
11
|
+
Examples of behavior that contributes to a positive environment for our community include:
|
|
12
|
+
|
|
13
|
+
* Demonstrating empathy and kindness toward other people
|
|
14
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
|
15
|
+
* Giving and gracefully accepting constructive feedback
|
|
16
|
+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
|
17
|
+
* Focusing on what is best not just for us as individuals, but for the overall community
|
|
18
|
+
|
|
19
|
+
Examples of unacceptable behavior include:
|
|
20
|
+
|
|
21
|
+
* The use of sexualized language or imagery, and sexual attention or advances of any kind
|
|
22
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
23
|
+
* Public or private harassment
|
|
24
|
+
* Publishing others' private information, such as a physical or email address, without their explicit permission
|
|
25
|
+
* Other conduct which could reasonably be considered inappropriate in a professional setting
|
|
26
|
+
|
|
27
|
+
## Enforcement Responsibilities
|
|
28
|
+
|
|
29
|
+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
|
30
|
+
|
|
31
|
+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
|
32
|
+
|
|
33
|
+
## Scope
|
|
34
|
+
|
|
35
|
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
|
36
|
+
|
|
37
|
+
## Enforcement
|
|
38
|
+
|
|
39
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at opening a private security advisory in this repository (until `conduct@tolvilabs.com` is live). All complaints will be reviewed and investigated promptly and fairly.
|
|
40
|
+
|
|
41
|
+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
|
42
|
+
|
|
43
|
+
## Enforcement Guidelines
|
|
44
|
+
|
|
45
|
+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
|
46
|
+
|
|
47
|
+
### 1. Correction
|
|
48
|
+
|
|
49
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
|
50
|
+
|
|
51
|
+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
|
52
|
+
|
|
53
|
+
### 2. Warning
|
|
54
|
+
|
|
55
|
+
**Community Impact**: A violation through a single incident or series of actions.
|
|
56
|
+
|
|
57
|
+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
|
58
|
+
|
|
59
|
+
### 3. Temporary Ban
|
|
60
|
+
|
|
61
|
+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
|
62
|
+
|
|
63
|
+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
|
64
|
+
|
|
65
|
+
### 4. Permanent Ban
|
|
66
|
+
|
|
67
|
+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
|
68
|
+
|
|
69
|
+
**Consequence**: A permanent ban from any sort of public interaction within the community.
|
|
70
|
+
|
|
71
|
+
## Attribution
|
|
72
|
+
|
|
73
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
|
74
|
+
|
|
75
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
|
|
76
|
+
|
|
77
|
+
For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
|
|
78
|
+
|
|
79
|
+
[homepage]: https://www.contributor-covenant.org
|
|
80
|
+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
|
81
|
+
[Mozilla CoC]: https://github.com/mozilla/diversity
|
|
82
|
+
[FAQ]: https://www.contributor-covenant.org/faq
|
|
83
|
+
[translations]: https://www.contributor-covenant.org/translations
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Contributing to Forge
|
|
2
|
+
|
|
3
|
+
Forge is part of the Tolvi Labs family of open-source developer tools.
|
|
4
|
+
|
|
5
|
+
## Development setup
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
git clone https://github.com/tolvi-labs/forge
|
|
9
|
+
cd forge
|
|
10
|
+
uv venv --python 3.12 .venv
|
|
11
|
+
source .venv/bin/activate
|
|
12
|
+
uv pip install -e ".[dev]"
|
|
13
|
+
pytest
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Conventions
|
|
17
|
+
|
|
18
|
+
- Match the existing code style. Run `ruff check .` and `ruff format .` before committing.
|
|
19
|
+
- New functions get a test. New CLI commands get a `CliRunner` test.
|
|
20
|
+
- Keep files focused: one clear responsibility per module.
|
|
21
|
+
|
|
22
|
+
## Brand isolation
|
|
23
|
+
|
|
24
|
+
External contributors must keep contributions brand-neutral. Do not reference Torres Atlantic internal products, private repositories, customer names, or non-public infrastructure in code, comments, tests, or docs. Forge ships under the public `tolvi-labs` brand only.
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|