sick-agent 0.2.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.
- sick_agent-0.2.0/.env.example +20 -0
- sick_agent-0.2.0/.github/workflows/ci.yml +42 -0
- sick_agent-0.2.0/.github/workflows/publish.yml +43 -0
- sick_agent-0.2.0/.gitignore +34 -0
- sick_agent-0.2.0/.python-version +1 -0
- sick_agent-0.2.0/ARCHITECTURE.md +32 -0
- sick_agent-0.2.0/AUDIT.md +111 -0
- sick_agent-0.2.0/CHANGELOG.md +42 -0
- sick_agent-0.2.0/CONTRIBUTING.md +27 -0
- sick_agent-0.2.0/Dockerfile +15 -0
- sick_agent-0.2.0/GLOSSARY.md +27 -0
- sick_agent-0.2.0/LICENSE +201 -0
- sick_agent-0.2.0/PKG-INFO +308 -0
- sick_agent-0.2.0/README.md +274 -0
- sick_agent-0.2.0/WINDOWS.md +45 -0
- sick_agent-0.2.0/bin/sick +19 -0
- sick_agent-0.2.0/bin/sick.cmd +18 -0
- sick_agent-0.2.0/demos/hello.py +18 -0
- sick_agent-0.2.0/demos/pdf_to_feature.py +71 -0
- sick_agent-0.2.0/demos/refactor_legacy.py +55 -0
- sick_agent-0.2.0/demos/sdlc_gate.py +48 -0
- sick_agent-0.2.0/demos/self_evolve.py +18 -0
- sick_agent-0.2.0/demos/visual_demo.py +63 -0
- sick_agent-0.2.0/demos/web_research.py +67 -0
- sick_agent-0.2.0/docs/adr/0001-evidence-gated-sdlc.md +51 -0
- sick_agent-0.2.0/experiments/001-self-modify/README.md +21 -0
- sick_agent-0.2.0/install.bat +5 -0
- sick_agent-0.2.0/install.ps1 +122 -0
- sick_agent-0.2.0/install.sh +107 -0
- sick_agent-0.2.0/nooa.md +207 -0
- sick_agent-0.2.0/pyproject.toml +101 -0
- sick_agent-0.2.0/src/sick/__init__.py +5 -0
- sick_agent-0.2.0/src/sick/agent.py +477 -0
- sick_agent-0.2.0/src/sick/audit.py +102 -0
- sick_agent-0.2.0/src/sick/cli.py +184 -0
- sick_agent-0.2.0/src/sick/config.py +59 -0
- sick_agent-0.2.0/src/sick/design_check.py +66 -0
- sick_agent-0.2.0/src/sick/learn.py +137 -0
- sick_agent-0.2.0/src/sick/lifecycle.py +338 -0
- sick_agent-0.2.0/src/sick/logging_conf.py +53 -0
- sick_agent-0.2.0/src/sick/lsp/__init__.py +1 -0
- sick_agent-0.2.0/src/sick/lsp/server.py +110 -0
- sick_agent-0.2.0/src/sick/memory.py +108 -0
- sick_agent-0.2.0/src/sick/preflight.py +137 -0
- sick_agent-0.2.0/src/sick/providers.py +244 -0
- sick_agent-0.2.0/src/sick/skills.py +106 -0
- sick_agent-0.2.0/src/sick/templates.py +68 -0
- sick_agent-0.2.0/src/sick/tools/__init__.py +12 -0
- sick_agent-0.2.0/src/sick/tools/base.py +86 -0
- sick_agent-0.2.0/src/sick/tools/exec.py +89 -0
- sick_agent-0.2.0/src/sick/tools/files.py +89 -0
- sick_agent-0.2.0/src/sick/tools/git.py +101 -0
- sick_agent-0.2.0/src/sick/tools/pdf.py +67 -0
- sick_agent-0.2.0/src/sick/tools/registry.py +86 -0
- sick_agent-0.2.0/src/sick/tools/research.py +380 -0
- sick_agent-0.2.0/src/sick/tools/search.py +75 -0
- sick_agent-0.2.0/src/sick/tools/self.py +21 -0
- sick_agent-0.2.0/src/sick/tools/web.py +68 -0
- sick_agent-0.2.0/src/sick/tui/__init__.py +8 -0
- sick_agent-0.2.0/src/sick/tui/app.py +556 -0
- sick_agent-0.2.0/src/sick/tui/chat.py +39 -0
- sick_agent-0.2.0/src/sick/tui/commands.py +858 -0
- sick_agent-0.2.0/src/sick/tui/host.py +80 -0
- sick_agent-0.2.0/src/sick/tui/inputbar.py +147 -0
- sick_agent-0.2.0/templates/cli/cookiecutter.json +4 -0
- sick_agent-0.2.0/templates/cli/{{cookiecutter.project_slug}}/pyproject.toml +8 -0
- sick_agent-0.2.0/templates/fastapi/cookiecutter.json +5 -0
- sick_agent-0.2.0/templates/fastapi/{{cookiecutter.project_slug}}/app/main.py +5 -0
- sick_agent-0.2.0/templates/fastapi/{{cookiecutter.project_slug}}/pyproject.toml +8 -0
- sick_agent-0.2.0/templates/remotion/cookiecutter.json +4 -0
- sick_agent-0.2.0/templates/remotion/{{cookiecutter.project_slug}}/src/Root.tsx +1 -0
- sick_agent-0.2.0/tests/test_cli.py +96 -0
- sick_agent-0.2.0/tests/test_learn.py +73 -0
- sick_agent-0.2.0/tests/test_lifecycle.py +159 -0
- sick_agent-0.2.0/tests/test_providers.py +117 -0
- sick_agent-0.2.0/tests/test_research.py +89 -0
- sick_agent-0.2.0/tests/test_security.py +92 -0
- sick_agent-0.2.0/tests/test_skills.py +102 -0
- sick_agent-0.2.0/tests/test_tools.py +400 -0
- sick_agent-0.2.0/tests/test_tui.py +436 -0
- sick_agent-0.2.0/uv.lock +4039 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# ── LLM provider (set ONE) ─────────────────────────────────────────────
|
|
2
|
+
# NVIDIA NIM
|
|
3
|
+
NVIDIA_API_KEY=
|
|
4
|
+
# or Anthropic
|
|
5
|
+
ANTHROPIC_API_KEY=
|
|
6
|
+
# or OpenAI / OpenAI-compatible endpoints
|
|
7
|
+
OPENAI_API_KEY=
|
|
8
|
+
|
|
9
|
+
# ── Optional overrides ─────────────────────────────────────────────────
|
|
10
|
+
# Model override (defaults: nvidia/llama-3.1-8b-instruct,
|
|
11
|
+
# claude-sonnet-4-20250514, or gpt-4o-mini depending on provider)
|
|
12
|
+
SICK_MODEL=
|
|
13
|
+
# Base URL for OpenAI-compatible custom endpoints
|
|
14
|
+
SICK_BASE_URL=
|
|
15
|
+
# Where experiences are stored (default: ~/.sick)
|
|
16
|
+
SICK_MEMORY_DIR=
|
|
17
|
+
# Where the remotion skills were installed (default: ~/.agents/skills)
|
|
18
|
+
SICK_REMOTION_DIR=
|
|
19
|
+
# Run bash inside a bwrap sandbox without the --sandbox flag ("1" to enable)
|
|
20
|
+
SICK_SANDBOX=
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
name: ci
|
|
2
|
+
"on":
|
|
3
|
+
push:
|
|
4
|
+
branches: [main, master]
|
|
5
|
+
pull_request:
|
|
6
|
+
jobs:
|
|
7
|
+
test:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
timeout-minutes: 15
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v4
|
|
12
|
+
- uses: astral-sh/setup-uv@v5
|
|
13
|
+
with:
|
|
14
|
+
python-version: "3.13"
|
|
15
|
+
enable-cache: true
|
|
16
|
+
- run: uv sync --group dev
|
|
17
|
+
- run: uv run ruff check src tests
|
|
18
|
+
- run: uv run mypy src --ignore-missing-imports || true
|
|
19
|
+
- run: uv run pytest -q --cov=sick --cov-report=term-missing
|
|
20
|
+
- run: uv run sick --preflight || true
|
|
21
|
+
windows-smoke:
|
|
22
|
+
# platform-agnostic subset only: the full suite exercises POSIX shell
|
|
23
|
+
# behavior (bash tool, .sh editor scripts, symlinks). See WINDOWS.md.
|
|
24
|
+
runs-on: windows-latest
|
|
25
|
+
timeout-minutes: 15
|
|
26
|
+
steps:
|
|
27
|
+
- uses: actions/checkout@v4
|
|
28
|
+
- uses: astral-sh/setup-uv@v5
|
|
29
|
+
with:
|
|
30
|
+
python-version: "3.13"
|
|
31
|
+
enable-cache: true
|
|
32
|
+
- run: uv sync --group dev
|
|
33
|
+
- run: uv run pytest -q tests/test_providers.py tests/test_learn.py tests/test_skills.py --no-cov
|
|
34
|
+
- run: uv run sick --version
|
|
35
|
+
- run: uv run sick --list-templates
|
|
36
|
+
docker:
|
|
37
|
+
runs-on: ubuntu-latest
|
|
38
|
+
needs: test
|
|
39
|
+
if: github.ref == 'refs/heads/main'
|
|
40
|
+
steps:
|
|
41
|
+
- uses: actions/checkout@v4
|
|
42
|
+
- run: docker build -t sick:ci .
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
name: publish
|
|
2
|
+
"on":
|
|
3
|
+
push:
|
|
4
|
+
tags: ["v*"]
|
|
5
|
+
workflow_dispatch:
|
|
6
|
+
permissions:
|
|
7
|
+
id-token: write
|
|
8
|
+
contents: write
|
|
9
|
+
jobs:
|
|
10
|
+
build:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v4
|
|
14
|
+
- uses: astral-sh/setup-uv@v5
|
|
15
|
+
with:
|
|
16
|
+
python-version: "3.13"
|
|
17
|
+
- run: uv build
|
|
18
|
+
- uses: actions/upload-artifact@v4
|
|
19
|
+
with:
|
|
20
|
+
name: dist
|
|
21
|
+
path: dist/*
|
|
22
|
+
publish-pypi:
|
|
23
|
+
needs: build
|
|
24
|
+
runs-on: ubuntu-latest
|
|
25
|
+
environment: pypi
|
|
26
|
+
permissions:
|
|
27
|
+
id-token: write
|
|
28
|
+
steps:
|
|
29
|
+
- uses: actions/download-artifact@v4
|
|
30
|
+
with:
|
|
31
|
+
name: dist
|
|
32
|
+
path: dist
|
|
33
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
34
|
+
release:
|
|
35
|
+
needs: publish-pypi
|
|
36
|
+
runs-on: ubuntu-latest
|
|
37
|
+
permissions:
|
|
38
|
+
contents: write
|
|
39
|
+
steps:
|
|
40
|
+
- uses: softprops/action-gh-release@v2
|
|
41
|
+
with:
|
|
42
|
+
files: dist/*
|
|
43
|
+
generate_release_notes: true
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Python-generated files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[oc]
|
|
4
|
+
build/
|
|
5
|
+
dist/
|
|
6
|
+
wheels/
|
|
7
|
+
*.egg-info
|
|
8
|
+
|
|
9
|
+
# Virtual environments
|
|
10
|
+
.venv
|
|
11
|
+
|
|
12
|
+
# Testing
|
|
13
|
+
.pytest_cache/
|
|
14
|
+
.sick/
|
|
15
|
+
.coverage
|
|
16
|
+
htmlcov/
|
|
17
|
+
|
|
18
|
+
# Runtime data (belongs in ~/.sick, never in the repo)
|
|
19
|
+
memory.jsonl
|
|
20
|
+
|
|
21
|
+
# Runtime data (belongs in ~/.sick, never in the repo)
|
|
22
|
+
memory.jsonl
|
|
23
|
+
|
|
24
|
+
# Session trajectories (may contain recorded output — never publish)
|
|
25
|
+
trajectory-*.json
|
|
26
|
+
|
|
27
|
+
# Environment
|
|
28
|
+
.env
|
|
29
|
+
.env.*
|
|
30
|
+
!.env.example
|
|
31
|
+
|
|
32
|
+
# IDE
|
|
33
|
+
.vscode/
|
|
34
|
+
.idea/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.13
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Architecture — Sick
|
|
2
|
+
|
|
3
|
+
```
|
|
4
|
+
CLI (cli.py) ──detect provider──► SickAgent (agent.py)
|
|
5
|
+
│ InteractiveAgent (nooa)
|
|
6
|
+
├─ ToolRegistry (tools/registry.py) ──► ToolResult (tools/base.py)
|
|
7
|
+
│ Read/Write/Edit/Bash/Grep/Glob/ParsePdf/CodeResearch/Self*/FetchUrl/Checkpoint…
|
|
8
|
+
├─ Lifecycle (lifecycle.py) — SDLC runs, gates, artifacts .sick/runs/<id>/
|
|
9
|
+
├─ DesignCheck (design_check.py) — AST checks over changed files
|
|
10
|
+
├─ Skills → context blocks (ponytail/pdf/remotion/sdlc pointer) + phase-routed SKILL.md
|
|
11
|
+
├─ memory (global ~/.sick/memory.jsonl)
|
|
12
|
+
├─ audit (per-workspace .sick/audit.jsonl)
|
|
13
|
+
└─ handle() @hidden ← TurnHost (tui/host.py) queue_manager.race()
|
|
14
|
+
|
|
15
|
+
TUI: SickApp (tui/app.py) compose Header+ChatView+SickInput → TurnHost dispatcher
|
|
16
|
+
_expand_attachments @file → read_file/pdf (workspace-checked) → host.submit → agent.handle → respond() (LLM CodeAct)
|
|
17
|
+
!cmd → agent.bash (thread) + hidden _send ; /cmd → SlashCommandRegistry (tui/commands.py)
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Key flows
|
|
21
|
+
- **SDLC gate** `lifecycle.py` — every turn/one-shot starts a Run; phases are observed from ToolResults (exploration→DESIGN, mutation→IMPLEMENT, passing verify command after last mutation→VERIFY). `finish()` runs DesignCheck + `can_deliver()`: STANDARD needs post-edit verification evidence, RISKY also needs approval + checkpoint (CLI invocation = approval; TUI needs `/plan`→`/approve`), TRIVIAL fast-paths. Blocked runs record experience as `blocked`, never `success`. Artifacts: `.sick/runs/<id>/{requirements,design,plan,verification,summary}`. See `docs/adr/0001-evidence-gated-sdlc.md`, `GLOSSARY.md`.
|
|
22
|
+
- **ToolResult** `tools/base.py` — every `Tool.execute()` returns `ToolResult{ok, output, error}`; `ToolRegistry.call()` (tools/registry.py) is the single seam for timing, audit, counts, lifecycle recording, and legacy-return wrapping. Agent proxies render `.output` for the LLM.
|
|
23
|
+
- **Checkpoint** `tools/git.py` — `sick-checkpoints` branch, `add -A; commit; rev-parse HEAD; checkout -`, `restore` uses `git restore || git checkout + clean -fd`.
|
|
24
|
+
- **CodeResearch** `tools/research.py` — ast chunks (.py) + 100-line bands, lexical 4/2/1 scoring, optional embeddings, mtime cache `.sick/indexes/code-index.json`.
|
|
25
|
+
- **Confinement** — every `WorkspaceTool` gates via `resolve_path` (`relative_to`); TUI re-checks `@` paths.
|
|
26
|
+
- **FetchUrl** `tools/web.py` — urllib, 100KB/10s bound, SSRF denylist (private nets, metadata host).
|
|
27
|
+
- **Preflight** `preflight.py` — checks import/git/pytest/bwrap/docling/npx.
|
|
28
|
+
|
|
29
|
+
## Decisions
|
|
30
|
+
- Evidence-gated, risk-tiered SDLC in the host process instead of prompt instructions (ADR 0001).
|
|
31
|
+
- Lexical index not embeddings by default (upgrade via litellm behind same API).
|
|
32
|
+
- Audit redacts API keys; memory tolerates corrupt JSONL.
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# Audit — Sick (2026-10-31)
|
|
2
|
+
|
|
3
|
+
Multi-axis review (correctness, security, performance, maintainability) of the
|
|
4
|
+
full source tree, tests, packaging, and installer. Baseline before fixes:
|
|
5
|
+
67 tests passing, coverage 50.33% (gate: 50%), `ruff` 1 error, `mypy` 55 errors
|
|
6
|
+
(CI tolerates with `|| true`). After fixes: **81 tests passing, coverage
|
|
7
|
+
56.4%, `ruff` clean, no new `mypy` errors.**
|
|
8
|
+
|
|
9
|
+
## Critical bugs (fixed)
|
|
10
|
+
|
|
11
|
+
1. **Checkpoint could commit onto the user's working branch.**
|
|
12
|
+
[git.py](/home/mahtwog/sick/src/sick/tools/git.py) `Checkpoint.execute`
|
|
13
|
+
ignored the return codes of `git checkout sick-checkpoints` and the switch
|
|
14
|
+
back. When the checkout was refused (dirty tree conflicting with the
|
|
15
|
+
diverged checkpoint branch — the normal state of this very repo), the
|
|
16
|
+
following `git add -A; git commit` ran on the user's current branch,
|
|
17
|
+
breaking the tool's core promise ("master untouched"). Observed live during
|
|
18
|
+
this audit: uncommitted edits were swept into `[sick] session start`
|
|
19
|
+
commits on `main` by test runs. Fix: create the branch ref without
|
|
20
|
+
switching, check every step, verify HEAD is on the checkpoint branch
|
|
21
|
+
before committing, abort with `[error: ...]` otherwise. Regression test:
|
|
22
|
+
`test_git_checkpoint_never_commits_to_working_branch`.
|
|
23
|
+
|
|
24
|
+
2. **Empty env vars resolved to `Path(".")`, disabling skills and leaking
|
|
25
|
+
memory into the cwd.** `SICK_MEMORY_DIR=` / `SICK_REMOTION_DIR=` (the
|
|
26
|
+
shipped `.env.example` defaults) made
|
|
27
|
+
[memory.py](/home/mahtwog/sick/src/sick/memory.py) write `memory.jsonl`
|
|
28
|
+
into whatever directory `sick` was started in (the copy tracked at the
|
|
29
|
+
repo root was exactly this leak; now untracked + gitignored), and made
|
|
30
|
+
[agent.py](/home/mahtwog/sick/src/sick/agent.py) look for Remotion
|
|
31
|
+
`SKILL.md` files relative to the cwd, so the Remotion skill *always*
|
|
32
|
+
fell back to the "files are missing" prompt even when installed. Fix:
|
|
33
|
+
treat empty as unset at both read sites; regression tests in
|
|
34
|
+
[test_skills.py](/home/mahtwog/sick/tests/test_skills.py).
|
|
35
|
+
|
|
36
|
+
3. **Wheel build was broken.** The global hatch `force-include` rewrote
|
|
37
|
+
`templates` inside the sdist, so `uv build` (and the tag-publish CI)
|
|
38
|
+
failed with `Forced include not found: .../sick-0.1.0/templates`. Fix:
|
|
39
|
+
scope `force-include` to the wheel target in
|
|
40
|
+
[pyproject.toml](/home/mahtwog/sick/pyproject.toml). Verified: sdist +
|
|
41
|
+
wheel build, wheel contains `sick/templates/*` and `sick/skills.py`.
|
|
42
|
+
|
|
43
|
+
## Dead code (removed)
|
|
44
|
+
|
|
45
|
+
| Location | What | Why dead |
|
|
46
|
+
|---|---|---|
|
|
47
|
+
| `agent.py` | `REMOTION_PROMPT = ""` | never read; loader is lazy via `_get_remotion_prompt()` |
|
|
48
|
+
| `config.py` | `_max_bytes()` | never called; duplicated in 3 tool modules |
|
|
49
|
+
| `config.py` | `SickConfig` fields `workspace`, `provider`, `embedding_model`, `embedding_provider`, `hybrid_alpha` | no reader anywhere (embeddings read env vars directly) |
|
|
50
|
+
| `research.py` | `CodeIndex.status()` | no callers in src/tests/demos |
|
|
51
|
+
| `research.py` | `MAX_FILE_BYTES` + `_get_max_bytes()` copies in `search.py`/`files.py` | consolidated into one `max_read_bytes()` in [base.py](/home/mahtwog/sick/src/sick/tools/base.py) |
|
|
52
|
+
| repo root | `memory.jsonl` (tracked) | runtime data leaked by bug 2; untracked + gitignored |
|
|
53
|
+
|
|
54
|
+
Made live instead of deleting: `SickConfig` gained `command` and `tracing`
|
|
55
|
+
fields — [cli.py](/home/mahtwog/sick/src/sick/cli.py) already read
|
|
56
|
+
`cfg.get("tracing")` and [commands.py](/home/mahtwog/sick/src/sick/tui/commands.py)
|
|
57
|
+
already read `cfg.get("command")`, both always `None` before (config-file
|
|
58
|
+
custom commands and the tracing toggle silently never worked).
|
|
59
|
+
|
|
60
|
+
## Skills — now all of them are used
|
|
61
|
+
|
|
62
|
+
Only the two Remotion skills were ever loaded from disk (and, per bug 2,
|
|
63
|
+
never successfully). New [skills.py](/home/mahtwog/sick/src/sick/skills.py)
|
|
64
|
+
discovers **every** `SKILL.md` under `~/.agents/skills`, `~/.sick/skills`,
|
|
65
|
+
and workspace `.sick/skills` (67 found on the audit machine), indexes
|
|
66
|
+
name + description into the agent context, and loads full bodies on demand
|
|
67
|
+
via the new `load_skill(name)` agent method — so all installed skills are
|
|
68
|
+
usable without blowing up the context window.
|
|
69
|
+
|
|
70
|
+
## Other fixes
|
|
71
|
+
|
|
72
|
+
- [preflight.py](/home/mahtwog/sick/src/sick/preflight.py): import check no
|
|
73
|
+
longer shells out to `uv run` + instantiates `SickAgent` (slow index build;
|
|
74
|
+
false `FAILED` when the uv cache is read-only/offline — preflight failed
|
|
75
|
+
inside this repo for that reason). Now `sys.executable` import-only;
|
|
76
|
+
pytest summary picks the real summary line instead of tracing noise;
|
|
77
|
+
portalocker check actually imports portalocker (the old `try` could never
|
|
78
|
+
fail).
|
|
79
|
+
- [audit.py](/home/mahtwog/sick/src/sick/audit.py): arg values truncated at
|
|
80
|
+
1000 chars — full `write_file` contents no longer land in `audit.jsonl`.
|
|
81
|
+
- [commands.py](/home/mahtwog/sick/src/sick/tui/commands.py): `_expand_template`
|
|
82
|
+
read attached files twice; now once.
|
|
83
|
+
- [app.py](/home/mahtwog/sick/src/sick/tui/app.py): `@file.pdf` outside the
|
|
84
|
+
workspace embedded the tool's error string as if it were the document;
|
|
85
|
+
now reported as `[unreadable: ...]`.
|
|
86
|
+
- `providers.py`: ruff import-sort (the 1 baseline lint error).
|
|
87
|
+
- [bin/sick](/home/mahtwog/sick/bin/sick): prefers the checkout venv binary
|
|
88
|
+
(fast, offline) over `uv run` on every invocation.
|
|
89
|
+
- [install.sh](/home/mahtwog/sick/install.sh): added `--global`
|
|
90
|
+
(`uv tool install`), `--uninstall`, `--help`; skips `uv python install`
|
|
91
|
+
when a Python already resolves; `GIT_LFS_SKIP_SMUDGE=1` so the `nooa` git
|
|
92
|
+
dependency clones without git-lfs. Verified end-to-end with a scratch
|
|
93
|
+
`$HOME` (sync → shim → preflight `ok` → `sick --version` from another
|
|
94
|
+
directory → uninstall → reinstall). `--global` was verified up to
|
|
95
|
+
dependency resolution; the final PyPI download is blocked by this
|
|
96
|
+
sandbox's proxy, so a full global install still needs one run on an
|
|
97
|
+
unrestricted network.
|
|
98
|
+
|
|
99
|
+
## Known limitations (not fixed, by design or out of scope)
|
|
100
|
+
|
|
101
|
+
- `FetchUrl` SSRF guard matches literal hosts/IPs only; DNS resolution to
|
|
102
|
+
private addresses (rebinding) is not checked.
|
|
103
|
+
- `Restore` runs `git clean -fd` (deletes untracked files) after a
|
|
104
|
+
successful restore — documented behavior, keep backups via checkpoints.
|
|
105
|
+
- `mypy` still reports the 55 pre-existing errors (mostly `Tool.execute`
|
|
106
|
+
signature-vs-ABC noise and missing `nooa` stubs); CI already tolerates
|
|
107
|
+
them. New/edited files (`skills.py`, `config.py`, `tools/base.py`) are
|
|
108
|
+
clean and the total did not grow.
|
|
109
|
+
- `cli.py` shows 0% *in-process* coverage because CLI tests exercise it via
|
|
110
|
+
subprocess (`--help`/`--version`/`--list-templates`); it is covered
|
|
111
|
+
end-to-end, just not attributed by coverage.py.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
## Unreleased
|
|
3
|
+
- Real SDLC: `sick.lifecycle` evidence-gated runs (phases observed from tool results, risk-tiered delivery gates, `.sick/runs/<id>/` artifacts, `/run` command, `/plan`→`/approve` backed by run state); `handle()` no longer records unconditional success — unverified edits record `blocked` `lifecycle.py`, `agent.py`, `tui/commands.py`, `cli.py` (exit 3 when blocked)
|
|
4
|
+
- Real OO seam: every tool returns typed `ToolResult`, dispatched via `ToolRegistry` (audit/counts/lifecycle in one place); removed `isinstance` output-sniffing in `agent._call`, fixed private leaks (`registry.set_sandboxed()`, `registry.counts()`), removed duplicate `_register_discovered_skills` `tools/base.py`, `tools/registry.py`, all `tools/*.py`
|
|
5
|
+
- AST design checks on changed files (duplicate definitions block, size/private-access recorded), skill-routed phases via existing discovery, `/learn` mines blocked runs `design_check.py`, `learn.py`
|
|
6
|
+
- Tests: +12 (lifecycle gates, registry, agent handle gating, plan lifecycle, blocked-run lessons); demo `demos/sdlc_gate.py` (no LLM); `GLOSSARY.md`, `docs/adr/0001-evidence-gated-sdlc.md`
|
|
7
|
+
- Add `/learn [focus]` self-improvement (audit/memory mining → lesson → verified self-edit, rollback via checkpoint) + `sick --learn`; memory writes are now best-effort `learn.py`, `agent.py`, `tui/commands.py`, `cli.py`, `memory.py`
|
|
8
|
+
- Add OpenCode-basic TUI commands: `/undo`, `/redo`, `/compact` (`/summarize`), `/export`, `/init`, `/sessions` (`/resume`/`/continue`), `/details`, `/thinking`, `/editor`, `/connect`, `/themes`, `/update` + `ctrl+x u/r/s` bindings and a conversation transcript for export `tui/commands.py`, `tui/app.py`
|
|
9
|
+
- Tests: +13 (learn core, new-command dispatch, undo/redo roundtrip, editor)
|
|
10
|
+
- First run without a key now opens a setup wizard (provider → hidden key entry → saved to `.env`, mode 600) instead of an edit-this-file error; non-interactive runs still exit 2 with a hint `providers.py:prompt_for_api_key`, `cli.py`
|
|
11
|
+
- TUI redesign: custom `sick` theme, status sidebar + status bar (live turns/tools/view state, auto-hide <90 cols), restyled chat roles/input, grouped `/help` with full keymap, OpenCode-style `ctrl+x` leader keymap (`n` new, `c` compact, `l` learn, `s` sessions, `u` undo…) + `ctrl+t` theme cycling `tui/app.py`, `tui/chat.py`, `tui/inputbar.py`, `tui/commands.py`
|
|
12
|
+
- Windows support: `install.ps1` + `install.bat` + `bin/sick.cmd` (uv sync/tool, `sick` on PATH, preflight), drive-safe LSP file URIs, Windows-safe `$EDITOR` parsing, `windows-smoke` CI job, compatibility matrix in `WINDOWS.md` (bwrap sandbox stays Linux-only; WSL for 100%)
|
|
13
|
+
- Fix `ctrl+x` leader keymap: Textual binding commas mean alternative keys, not chords, so leader keys typed into the input instead of dispatching — now a real leader handler (`handle_leader_key`) with regression test; `install.ps1` now fails loudly when `uv` fails instead of reporting success
|
|
14
|
+
- Fix `Checkpoint` committing onto the working branch when the branch switch fails (checks every git step, verifies HEAD before committing) `tools/git.py`
|
|
15
|
+
- Fix empty `SICK_MEMORY_DIR=`/`SICK_REMOTION_DIR=` resolving to `Path(".")` — memory leaked into the cwd and Remotion skills never loaded `memory.py`, `agent.py`
|
|
16
|
+
- Fix broken wheel build: scope hatch `force-include` to the wheel target `pyproject.toml`
|
|
17
|
+
- Add skill discovery: every installed `SKILL.md` indexed in context, `load_skill(name)` loads bodies on demand `skills.py`, `agent.py`
|
|
18
|
+
- Dead code removed: `REMOTION_PROMPT`, `config._max_bytes`, `CodeIndex.status`, unused `SickConfig` fields; byte-limit helpers consolidated into `tools/base.py:max_read_bytes`
|
|
19
|
+
- `SickConfig` gains `command` + `tracing` so config-file custom commands and the tracing toggle actually work `config.py`
|
|
20
|
+
- `preflight` import check uses the current interpreter (no `uv run`, no agent instantiation); real portalocker probe; cleaner pytest summary `preflight.py`
|
|
21
|
+
- Audit arg values truncated at 1000 chars `audit.py`; TUI `@file.pdf` outside workspace and double-read in template expansion fixed `tui/`
|
|
22
|
+
- `install.sh`: `--global` (uv tool), `--uninstall`, offline-safe re-runs, LFS-skip for the `nooa` git dep; `bin/sick` prefers the venv binary
|
|
23
|
+
- Tests: 67 → 81, coverage 50.3% → 56.4%; see `AUDIT.md`
|
|
24
|
+
|
|
25
|
+
## 0.1.0 — 2026-08-28
|
|
26
|
+
- Fix `_call` ok-heuristic for bool/list/str (audit correctness) `agent.py:190`
|
|
27
|
+
- Fix `excluded` union (preserve node_modules/.venv/.git) + thread to CodeIndex `agent.py:156`, `tools/research.py:59`, `tools/base.py:6`
|
|
28
|
+
- CLI `--attach` now supports non-PDF via bounded read `agent.py:177`
|
|
29
|
+
- `_record_experience` now captures tool counts `agent.py:254`
|
|
30
|
+
- `preflight` returns `tuple[str,bool]`, adds bwrap/docling/npx probes `preflight.py:10`
|
|
31
|
+
- `git` checkpoint uses `rev-parse HEAD` short hash, restore cleans untracked `tools/git.py:27`
|
|
32
|
+
- `FetchUrl` SSRF denylist + content-type guard `tools/web.py:11`
|
|
33
|
+
- `Grep` uses fnmatch + 200-result cap `tools/search.py:14`, `base.py` expanded EXCLUDED_DIRS
|
|
34
|
+
- `Bash` sandbox binds /usr/local,/opt,~/.cargo,/tmp `tools/exec.py:13`
|
|
35
|
+
- TUI `@` confinement (`resolve_path` re-check) + trailing punct strip + truncation notice `tui/app.py:116`
|
|
36
|
+
- `FileSuggester` nested path completion `tui/inputbar.py:10`
|
|
37
|
+
- `Memory/Audit` corrupt-line tolerance + audit redaction `memory.py:30`, `audit.py:18`
|
|
38
|
+
- `Providers` dotenv `override=False`, SICK_PROVIDER + prefix inference, timeouts `providers.py:7`
|
|
39
|
+
- Packaging: pyproject `>=3.11`, ruff/mypy/pytest config, wheel, Dockerfile, CI workflow `pyproject.toml`, `.github/workflows/ci.yml`
|
|
40
|
+
- Tests: `test_providers.py`, `test_security.py`, `test_cli.py`, fix mktemp `tests/test_tools.py:177`
|
|
41
|
+
- Demos: `pdf_to_feature.py`, `refactor_legacy.py`, `web_research.py`, `visual_demo.py`; fix `self_evolve.py`
|
|
42
|
+
- Docs: `CONTRIBUTING.md`, `ARCHITECTURE.md`, `CHANGELOG.md`
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Contributing to Sick
|
|
2
|
+
|
|
3
|
+
## Dev setup
|
|
4
|
+
```bash
|
|
5
|
+
./install.sh
|
|
6
|
+
uv sync --group dev
|
|
7
|
+
uv run pytest -q --cov
|
|
8
|
+
uv run ruff check src tests
|
|
9
|
+
uv run sick --preflight
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Project structure
|
|
13
|
+
- `src/sick/agent.py` — `SickAgent(InteractiveAgent)` composition root, tools registry, skills
|
|
14
|
+
- `src/sick/tools/` — bounded, workspace-confined tools (`base.py` is security boundary)
|
|
15
|
+
- `src/sick/tui/` — Textual app (`app.py`+`host.py` dispatch `queue_manager.race()`)
|
|
16
|
+
- `experiments/001-self-modify/README.md` — keep updated with quantitative results
|
|
17
|
+
|
|
18
|
+
## Conventions
|
|
19
|
+
- `ponytail` always active: stdlib > deps, shortest correct diff, `ponytail:` comment on shortcuts.
|
|
20
|
+
- All file tools must `resolve_path` and respect `excluded`; add tests in `tests/test_security.py`.
|
|
21
|
+
- No `pip`, only `uv`. No secrets in `audit.jsonl` (redaction in `audit.py`).
|
|
22
|
+
- `uv run pytest -q` must pass before push; CI runs `ruff`, `mypy`, `pytest --cov`.
|
|
23
|
+
|
|
24
|
+
## Adding a tool
|
|
25
|
+
1. Subclass `WorkspaceTool` or `Tool` in `src/sick/tools/`, add `name/descript/execute`.
|
|
26
|
+
2. Register in `SickAgent.__init__` `agent.py:149` and wire `excluded` merge.
|
|
27
|
+
3. Add unit test + security test, update `README.md` tools table.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
FROM python:3.13-slim
|
|
2
|
+
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1
|
|
3
|
+
RUN apt-get update && apt-get install -y --no-install-recommends git curl bubblewrap && rm -rf /var/lib/apt/lists/*
|
|
4
|
+
# uv
|
|
5
|
+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
|
|
6
|
+
WORKDIR /app
|
|
7
|
+
COPY pyproject.toml uv.lock README.md ./
|
|
8
|
+
COPY src ./src
|
|
9
|
+
COPY templates ./templates
|
|
10
|
+
RUN uv sync --frozen --no-dev || uv sync --no-dev
|
|
11
|
+
COPY . .
|
|
12
|
+
RUN chmod +x install.sh
|
|
13
|
+
EXPOSE 8000
|
|
14
|
+
ENTRYPOINT ["uv", "run", "sick"]
|
|
15
|
+
CMD ["--help"]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Glossary
|
|
2
|
+
|
|
3
|
+
Domain language for Sick's evidence-gated SDLC. Definitions only — no
|
|
4
|
+
implementation details.
|
|
5
|
+
|
|
6
|
+
**Run**: One task's lifecycle instance, from intake to a terminal outcome.
|
|
7
|
+
|
|
8
|
+
**Phase**: A Run's current stage: `intake`, `requirements`, `design`,
|
|
9
|
+
`implement`, `verify`, `deliver`, `blocked`, or `cancelled`.
|
|
10
|
+
|
|
11
|
+
**RiskTier**: How dangerous a Run is judged to be: `trivial`, `standard`,
|
|
12
|
+
or `risky`. The tier decides which Gates apply.
|
|
13
|
+
|
|
14
|
+
**Artifact**: A persisted output of a Run (requirements, design, plan,
|
|
15
|
+
verification, summary) that a human can audit after the fact.
|
|
16
|
+
|
|
17
|
+
**Evidence**: A recorded verification result (test/lint run) that occurred
|
|
18
|
+
after a Run's last change.
|
|
19
|
+
|
|
20
|
+
**Gate**: A rule that decides whether a Run may be delivered. A failing
|
|
21
|
+
Gate blocks delivery regardless of what anyone claims.
|
|
22
|
+
|
|
23
|
+
**ToolResult**: The outcome of one tool call: whether it succeeded, what
|
|
24
|
+
it produced, and how it failed if it did.
|
|
25
|
+
|
|
26
|
+
**DesignIssue**: A deterministic finding about changed code. Hard issues
|
|
27
|
+
block delivery; warnings are recorded.
|
sick_agent-0.2.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
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
|
|
200
|
+
implied. See the License for the specific language governing
|
|
201
|
+
permissions and limitations under the License.
|