content-mcp 0.2.0__py3-none-any.whl

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.
@@ -0,0 +1,3 @@
1
+ """Content MCP server package. The server wiring lives in ``server.py`` (it
2
+ imports the ``mcp`` package); the tool logic lives in ``service.py`` (SDK only).
3
+ """
content_mcp/server.py ADDED
@@ -0,0 +1,148 @@
1
+ """The official Content MCP server — a thin agentic facade over the SDK.
2
+
3
+ It exposes **intention-level** Tools (not one-per-endpoint) and read-only
4
+ Resources, each delegating to ``service.py`` which speaks only the SDK. No REST,
5
+ no business logic here. stdio transport (HTTP can come later).
6
+ """
7
+
8
+ from __future__ import annotations
9
+
10
+ from typing import Any
11
+
12
+ from content_sdk import ContentClient
13
+ from mcp.server import MCPServer
14
+
15
+ from . import service
16
+
17
+ INSTRUCTIONS = (
18
+ "Content turns sources (a URL, a file) into artifacts (video, audio, "
19
+ "subtitles, transcript, summary…). Typical flow: analyze_source to see what "
20
+ "a source is and what can be produced, then generate with the returned "
21
+ "analysis_id, then poll get_job until it is terminal and read its artifacts. "
22
+ "The engine names every artifact after the analyzed resource; when the "
23
+ "server's delivery policy is on (see get_config), finished files are also "
24
+ "copied into the server's media library and each artifact reports its "
25
+ "delivered_path there. An output spec may carry delivery "
26
+ '{"mode": "inherit|deliver|none", "folder": …, "filename": …} to steer this.'
27
+ )
28
+
29
+
30
+ def build_server(client: ContentClient | None = None) -> MCPServer:
31
+ client = client or ContentClient()
32
+ server = MCPServer(name="content", version="0.2.0", instructions=INSTRUCTIONS)
33
+
34
+ # --- tools (intention-level) ---------------------------------------------
35
+ @server.tool()
36
+ def analyze_source(url: str, credential: str | None = None) -> dict[str, Any]:
37
+ """Analyze a source URL: report what it is and what can be produced."""
38
+ return service.analyze_source(client, url, credential=credential)
39
+
40
+ @server.tool()
41
+ def list_capabilities(analysis_id: str) -> dict[str, Any]:
42
+ """Resolve the public capabilities available for an analyzed source."""
43
+ return service.list_capabilities(client, analysis_id)
44
+
45
+ @server.tool()
46
+ def generate(analysis_id: str, outputs: list[Any]) -> dict[str, Any]:
47
+ """Start a job producing the requested outputs from an analyzed source.
48
+ Each output is a type string ("audio") or a {type, options, ...} dict."""
49
+ return service.generate(client, analysis_id, outputs)
50
+
51
+ @server.tool()
52
+ def get_job(job_id: str) -> dict[str, Any]:
53
+ """Get a job's status and, once terminal, its produced artifacts."""
54
+ return service.get_job(client, job_id)
55
+
56
+ @server.tool()
57
+ def cancel_job(job_id: str) -> dict[str, Any]:
58
+ """Request cooperative cancellation of a running job."""
59
+ return service.cancel_job(client, job_id)
60
+
61
+ @server.tool()
62
+ def list_jobs(limit: int = 20) -> dict[str, Any]:
63
+ """List recent jobs (most recent first)."""
64
+ return service.list_jobs(client, limit)
65
+
66
+ @server.tool()
67
+ def get_artifact(artifact_id: str) -> dict[str, Any]:
68
+ """Artifact metadata; small text artifacts are inlined, larger/binary
69
+ ones return a download reference (never raw bytes over MCP)."""
70
+ return service.get_artifact(client, artifact_id)
71
+
72
+ @server.tool()
73
+ def get_config() -> dict[str, Any]:
74
+ """Server-side context for building requests: credential ids for
75
+ authenticated sources, whether delivery-by-default is on, and the
76
+ existing library folders."""
77
+ return service.get_config(client)
78
+
79
+ # --- resources (read-only, single content:// namespace) -------------------
80
+ @server.resource("content://analyses/{analysis_id}")
81
+ def analysis_resource(analysis_id: str) -> dict[str, Any]:
82
+ return service.analysis_resource(client, analysis_id)
83
+
84
+ @server.resource("content://jobs/{job_id}")
85
+ def job_resource(job_id: str) -> dict[str, Any]:
86
+ return service.job_resource(client, job_id)
87
+
88
+ @server.resource("content://artifacts/{artifact_id}")
89
+ def artifact_resource(artifact_id: str) -> dict[str, Any]:
90
+ return service.artifact_resource(client, artifact_id)
91
+
92
+ return server
93
+
94
+
95
+ _HELP = """\
96
+ content-mcp — the official MCP server for the Content engine (stdio).
97
+
98
+ Run it from an MCP client, not by hand: the client spawns the process and
99
+ speaks JSON-RPC over stdin/stdout. Configuration is one environment variable:
100
+
101
+ CONTENT_API_URL base URL of your Content engine (default http://localhost:8010)
102
+
103
+ Example client configuration:
104
+
105
+ {
106
+ "mcpServers": {
107
+ "content": {
108
+ "command": "content-mcp",
109
+ "env": { "CONTENT_API_URL": "http://localhost:8010" }
110
+ }
111
+ }
112
+ }
113
+
114
+ Options:
115
+ --help show this help and exit
116
+ --version show the version and exit
117
+ """
118
+
119
+
120
+ def main(argv: list[str] | None = None) -> None:
121
+ # A stdio MCP server owns stdout for JSON-RPC framing, so the only argv
122
+ # handling is the pair every tool owes its installer — and both exit
123
+ # before the transport starts. Anything else is a mistake worth stopping
124
+ # on (an MCP client passes no arguments).
125
+ import sys
126
+
127
+ args = sys.argv[1:] if argv is None else argv
128
+ if "--help" in args or "-h" in args:
129
+ print(_HELP, end="")
130
+ return
131
+ if "--version" in args:
132
+ # The wheel's own metadata, so `make version-update` has a single
133
+ # declaration to rewrite here (the MCPServer version= literal).
134
+ from importlib.metadata import PackageNotFoundError, version
135
+
136
+ try:
137
+ print(f"content-mcp {version('content-mcp')}")
138
+ except PackageNotFoundError:
139
+ print("content-mcp (uninstalled source tree)")
140
+ return
141
+ if args:
142
+ print(f"content-mcp: unexpected argument {args[0]!r} (try --help)")
143
+ raise SystemExit(2)
144
+ build_server().run("stdio")
145
+
146
+
147
+ if __name__ == "__main__":
148
+ main()
content_mcp/service.py ADDED
@@ -0,0 +1,180 @@
1
+ """Intention-level operations over the Content SDK — the MCP server's logic.
2
+
3
+ These pure functions take a ``content_sdk`` client and translate an agent's
4
+ intent into SDK calls, returning plain JSON-able dicts. They contain **no** MCP
5
+ types and **no** HTTP — the SDK is the only door to the engine. ``server.py``
6
+ merely exposes them as MCP tools/resources.
7
+ """
8
+
9
+ from __future__ import annotations
10
+
11
+ from typing import Any
12
+
13
+ from content_sdk import ContentClient, outputs
14
+
15
+ # get_artifact never streams large binaries over MCP (refinement 6): only small
16
+ # text artifacts are inlined; everything else returns metadata + a reference.
17
+ MAX_INLINE_BYTES = 256 * 1024
18
+ _INLINE_TEXT_TYPES = {"application/json", "application/x-subrip", "text/vtt"}
19
+
20
+
21
+ def _is_inlineable_text(media_type: str) -> bool:
22
+ return media_type.startswith("text/") or media_type in _INLINE_TEXT_TYPES
23
+
24
+
25
+ def _output_from_spec(spec: Any) -> dict[str, Any]:
26
+ """Accept a plain type string or a {type, options, from_sources, ...} dict."""
27
+ if isinstance(spec, str):
28
+ return outputs.output(spec)
29
+ return outputs.output(
30
+ spec["type"],
31
+ id=spec.get("id"),
32
+ from_sources=spec.get("from_sources"),
33
+ from_outputs=spec.get("from_outputs"),
34
+ scope=spec.get("scope"),
35
+ required=spec.get("required"),
36
+ # {mode, folder, filename} — where/how the artifact is delivered into
37
+ # the server library (ADR 0018); omitted = the server policy decides.
38
+ delivery=spec.get("delivery"),
39
+ options=spec.get("options"),
40
+ )
41
+
42
+
43
+ # --- tools --------------------------------------------------------------------
44
+
45
+
46
+ def analyze_source(
47
+ client: ContentClient, url: str, credential: str | None = None
48
+ ) -> dict[str, Any]:
49
+ """Analyze a URL and report what it is + what can be produced from it."""
50
+ analysis = client.analyze(outputs.url_source(url, credential_id=credential))
51
+ caps = client.get_capabilities(analysis.id)
52
+ entry = analysis.sources[0]
53
+ return {
54
+ "analysis_id": analysis.id,
55
+ "resource_type": entry.resource_type,
56
+ "title": entry.title,
57
+ "entries": len(entry.entries),
58
+ "capabilities": [
59
+ {"id": c.id, "status": c.status} for c in caps.sources[0].capabilities
60
+ ],
61
+ }
62
+
63
+
64
+ def list_capabilities(client: ContentClient, analysis_id: str) -> dict[str, Any]:
65
+ """Resolve the public capabilities for a previously analyzed source."""
66
+ caps = client.get_capabilities(analysis_id)
67
+ src = caps.sources[0]
68
+ return {
69
+ "analysis_id": caps.analysis_id,
70
+ "source_id": src.source_id,
71
+ "capabilities": [
72
+ {"id": c.id, "status": c.status, "reason": c.reason}
73
+ for c in src.capabilities
74
+ ],
75
+ }
76
+
77
+
78
+ def generate(
79
+ client: ContentClient, analysis_id: str, outputs_spec: list[Any]
80
+ ) -> dict[str, Any]:
81
+ """Start a generation job for an analyzed source. `outputs_spec` items are
82
+ either a type string ("audio") or a dict {type, options, ...}."""
83
+ job = client.generate(analysis_id, [_output_from_spec(s) for s in outputs_spec])
84
+ return {"job_id": job.id, "status": job.status}
85
+
86
+
87
+ def get_job(client: ContentClient, job_id: str) -> dict[str, Any]:
88
+ """Job status; once terminal, the produced artifacts (metadata only)."""
89
+ job = client.get_job(job_id)
90
+ result: dict[str, Any] = {
91
+ "job_id": job.id,
92
+ "status": job.status,
93
+ "error": job.data.error,
94
+ }
95
+ if job.is_terminal:
96
+ result["artifacts"] = [
97
+ {
98
+ "id": a.id,
99
+ "type": a.type,
100
+ # The name to show a user (ADR 0017); the technical job-store
101
+ # name is an implementation detail agents don't need.
102
+ "filename": a.display_filename or a.filename,
103
+ # Where the file landed in the server's delivery library,
104
+ # relative to its root ("" = no delivered copy) — ADR 0018.
105
+ "delivered_path": a.delivered_path,
106
+ "media_type": a.media_type,
107
+ "size_bytes": a.size_bytes,
108
+ }
109
+ for a in client.artifacts(job_id)
110
+ ]
111
+ return result
112
+
113
+
114
+ def cancel_job(client: ContentClient, job_id: str) -> dict[str, Any]:
115
+ """Request cooperative cancellation of a job."""
116
+ return client.cancel(job_id)
117
+
118
+
119
+ def get_config(client: ContentClient) -> dict[str, Any]:
120
+ """What an agent needs to parameterize requests: the credential ids for
121
+ authenticated sources, whether artifacts are delivered into the server
122
+ library by default, and the existing library folders to choose from."""
123
+ config = client.config()
124
+ return {
125
+ "credentials": config.get("credentials", []),
126
+ "delivery_by_default": config.get("delivery", {}).get("by_default", False),
127
+ "folders": client.folders(),
128
+ "language": config.get("language", {}),
129
+ }
130
+
131
+
132
+ def list_jobs(client: ContentClient, limit: int = 20) -> dict[str, Any]:
133
+ """Recent jobs (most recent first)."""
134
+ return {
135
+ "jobs": [
136
+ {"job_id": j.job_id, "status": j.status}
137
+ for j in client.list_jobs(limit=limit)
138
+ ]
139
+ }
140
+
141
+
142
+ def get_artifact(client: ContentClient, artifact_id: str) -> dict[str, Any]:
143
+ """Artifact metadata; inline the content ONLY for small text artifacts,
144
+ otherwise return a download reference (never large binaries over MCP)."""
145
+ art = client.get_artifact(artifact_id)
146
+ meta = {
147
+ "id": art.id,
148
+ "type": art.type,
149
+ "filename": art.display_filename or art.filename,
150
+ "delivered_path": art.delivered_path,
151
+ "media_type": art.media_type,
152
+ "size_bytes": art.size_bytes,
153
+ }
154
+ if _is_inlineable_text(art.media_type) and art.size_bytes <= MAX_INLINE_BYTES:
155
+ text = client.artifact_bytes(artifact_id).decode("utf-8", errors="replace")
156
+ return {**meta, "inlined": True, "content": text}
157
+ return {
158
+ **meta,
159
+ "inlined": False,
160
+ "download_path": f"/api/v1/artifacts/{artifact_id}/content",
161
+ "note": (
162
+ f"not inlined (binary or larger than {MAX_INLINE_BYTES} bytes); "
163
+ "fetch the bytes via the API download path"
164
+ ),
165
+ }
166
+
167
+
168
+ # --- resources (read-only JSON) -----------------------------------------------
169
+
170
+
171
+ def analysis_resource(client: ContentClient, analysis_id: str) -> dict[str, Any]:
172
+ return client.get_analysis(analysis_id).data.model_dump()
173
+
174
+
175
+ def job_resource(client: ContentClient, job_id: str) -> dict[str, Any]:
176
+ return client.get_job(job_id).data.model_dump()
177
+
178
+
179
+ def artifact_resource(client: ContentClient, artifact_id: str) -> dict[str, Any]:
180
+ return client.get_artifact(artifact_id).model_dump()
@@ -0,0 +1,158 @@
1
+ Metadata-Version: 2.4
2
+ Name: content-mcp
3
+ Version: 0.2.0
4
+ Summary: Official MCP server for the Content engine (agentic facade over the SDK).
5
+ Project-URL: Homepage, https://github.com/LatentNoise/content
6
+ Project-URL: Source, https://github.com/LatentNoise/content
7
+ Project-URL: Issues, https://github.com/LatentNoise/content/issues
8
+ Project-URL: Documentation, https://github.com/LatentNoise/content/blob/main/apps/mcp/README.md
9
+ Author: Yann Orieult
10
+ License-Expression: AGPL-3.0-or-later
11
+ License-File: LICENSE
12
+ License-File: NOTICE
13
+ Keywords: content,mcp,media,model-context-protocol,self-hosted
14
+ Classifier: Development Status :: 4 - Beta
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Intended Audience :: System Administrators
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Multimedia :: Video
22
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
+ Requires-Python: >=3.11
24
+ Requires-Dist: content-sdk==0.2.0
25
+ Requires-Dist: mcp>=1.2
26
+ Description-Content-Type: text/markdown
27
+
28
+ # `content-mcp` — Content MCP server
29
+
30
+ The official **MCP server** for the Content engine: give Claude, an IDE or any
31
+ MCP-compatible agent the ability to drive your Content instance — analyze a
32
+ URL, generate video/audio/subtitles/transcripts, watch the job, land the files
33
+ in your library. It is an agentic facade over the official
34
+ [Python SDK](../../packages/python-sdk/README.md): **no REST of its own, no
35
+ business logic**.
36
+
37
+ ```text
38
+ any MCP client → content-mcp (this) → content_sdk → your Content engine (/api/v1)
39
+ ```
40
+
41
+ ## Install
42
+
43
+ Once published, the server is an ordinary Python application — nothing to
44
+ clone:
45
+
46
+ ```bash
47
+ uv tool install content-mcp # isolated, on your PATH — recommended
48
+ content-mcp --help
49
+
50
+ # or
51
+ pipx install content-mcp
52
+ ```
53
+
54
+ `content-mcp` pulls `content-sdk` from PyPI as an ordinary dependency, pinned
55
+ to the matching release.
56
+
57
+ > **Not published yet.** Until the first publication the packages are attached
58
+ > to each GitHub release as wheels; see *From a release* below. The commands
59
+ > above are what will work afterwards.
60
+
61
+ ### From a release (today)
62
+
63
+ Download `content_sdk-<version>-py3-none-any.whl` and
64
+ `content_mcp-<version>-py3-none-any.whl` from the
65
+ [latest release](https://github.com/LatentNoise/content/releases/latest), then:
66
+
67
+ ```bash
68
+ uv tool install ./content_mcp-<version>-py3-none-any.whl \
69
+ --find-links . # --find-links lets it resolve the SDK beside it
70
+ ```
71
+
72
+ ## Connect it to your engine
73
+
74
+ One environment variable: `CONTENT_API_URL` (default `http://localhost:8010`).
75
+ The server speaks stdio — your MCP client spawns it; you never run it by hand.
76
+
77
+ ### Claude Code
78
+
79
+ ```bash
80
+ claude mcp add content --env CONTENT_API_URL=http://localhost:8010 -- content-mcp
81
+ ```
82
+
83
+ ### Claude Desktop, Cursor, and other clients
84
+
85
+ Claude Desktop (`claude_desktop_config.json`), Cursor (`.cursor/mcp.json`) and
86
+ any other client using the standard JSON shape:
87
+
88
+ ```json
89
+ {
90
+ "mcpServers": {
91
+ "content": {
92
+ "command": "content-mcp",
93
+ "env": { "CONTENT_API_URL": "http://localhost:8010" }
94
+ }
95
+ }
96
+ }
97
+ ```
98
+
99
+ Then ask for something like *"analyze this YouTube URL and download the audio
100
+ into my library"* — the expected flow is `get_config` → `analyze_source` →
101
+ `generate` → `get_job`, ending with a `delivered_path` you can find under the
102
+ engine's delivery folder.
103
+
104
+ Logs go to **stderr** (stdout carries only the MCP JSON-RPC framing), so a
105
+ client's log pane shows them without corrupting the session.
106
+
107
+ ## Tools (intention-level, not one-per-endpoint)
108
+
109
+ | Tool | Intent |
110
+ | --- | --- |
111
+ | `analyze_source` | Analyze a URL: what it is + what can be produced |
112
+ | `list_capabilities` | Resolve the capabilities for an analyzed source |
113
+ | `generate` | Start a job producing outputs from an `analysis_id`; an output spec may carry `delivery` (`mode`/`folder`/`filename`, ADR 0018) |
114
+ | `get_job` | Job status; once terminal, its artifacts — user-facing names (ADR 0017) and `delivered_path` in the server library |
115
+ | `cancel_job` | Cooperative cancellation |
116
+ | `list_jobs` | Recent jobs |
117
+ | `get_artifact` | Artifact metadata; **small text is inlined**, larger/binary returns a download reference (never raw bytes over MCP) |
118
+ | `get_config` | Request-building context: credential ids, whether delivery-by-default is on, the existing library folders |
119
+
120
+ ## Resources (read-only, `content://` namespace)
121
+
122
+ `content://analyses/{id}`, `content://jobs/{id}`, `content://artifacts/{id}` —
123
+ JSON views for a host to attach as context. Prompts are intentionally not
124
+ provided yet.
125
+
126
+ ## For development
127
+
128
+ From a clone:
129
+
130
+ ```bash
131
+ make install # editable installs of the engine, SDK, CLI and MCP in one venv
132
+ claude mcp add content --env CONTENT_API_URL=http://localhost:8010 \
133
+ -- apps/backend/.venv/bin/python -m content_mcp.server
134
+ ```
135
+
136
+ Build the distributions with `make wheels` (they land in `dist/`).
137
+
138
+ ## Verification status
139
+
140
+ - Service logic over a mock transport: **verified** (`tests/test_service.py`).
141
+ - The MCP wiring against the real `mcp` library (tools, resource templates):
142
+ **verified** (`tests/test_server.py`).
143
+ - The full journey — MCP service → SDK → real FastAPI engine → executor →
144
+ delivery library, including `delivery` intent and `mode: "none"`:
145
+ **verified in-process** (`tests/test_end_to_end.py`, in `make validate`).
146
+ - The installed wheel driven over stdio by an MCP client session against a
147
+ running engine: **verified** at packaging time (see the repository's
148
+ release notes); re-run it after any transport change.
149
+
150
+ ## Design
151
+
152
+ - `service.py` — the intention logic; takes an SDK client, returns JSON. No MCP
153
+ imports, no HTTP. Fully unit-tested over a mock transport.
154
+ - `server.py` — thin wiring: registers the tools/resources on an `MCPServer` and
155
+ runs stdio. `content-mcp` → `content_mcp.server:main`.
156
+ - The layering is enforced by tests: the MCP server may import `content_sdk`
157
+ only — never an HTTP client, never backend internals
158
+ (`tests/test_layering.py` at the repo root).
@@ -0,0 +1,9 @@
1
+ content_mcp/__init__.py,sha256=406RG1jyKb3piNFlXO6-cs_U5iuUem9DXZkce-I1ZpE,161
2
+ content_mcp/server.py,sha256=LN0tmqZkb2JscmyqB1S2B4FZfQGi326Q27IrzGQaOqc,5688
3
+ content_mcp/service.py,sha256=TCHSMebEOZTiIdWJgkf7lRzkO8bgFKnKjRf6r-_3nFY,6684
4
+ content_mcp-0.2.0.dist-info/METADATA,sha256=z7FvLTqL0VNKg5ki-sWqd-CK23OpCIpw5RkQxD-kklE,6142
5
+ content_mcp-0.2.0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
6
+ content_mcp-0.2.0.dist-info/entry_points.txt,sha256=Yw-FcOv634m3TAue3s2zbFUkJST-G9TncTwV-H_f1t4,56
7
+ content_mcp-0.2.0.dist-info/licenses/LICENSE,sha256=UzbgYnVAKZ_x28AC54pY4P1QmwYSVhDF8QJu-WpfK6I,34522
8
+ content_mcp-0.2.0.dist-info/licenses/NOTICE,sha256=0uIDSiuf2W9Uk6j45FqjuhiXV0uN6MaHmyX68La_kic,2816
9
+ content_mcp-0.2.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.31.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ content-mcp = content_mcp.server:main
@@ -0,0 +1,683 @@
1
+ GNU AFFERO GENERAL PUBLIC LICENSE
2
+ Version 3, 19 November 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU Affero General Public License is a free, copyleft
11
+ license for software and other kinds of works, specifically designed to
12
+ ensure cooperation with the community in the case of network server
13
+ software.
14
+
15
+ The licenses for most software and other practical works are designed
16
+ to take away your freedom to share and change the works. By contrast,
17
+ our General Public Licenses are intended to guarantee your freedom to
18
+ share and change all versions of a program--to make sure it remains free
19
+ software for all its users.
20
+
21
+ When we speak of free software, we are referring to freedom, not
22
+ price. Our General Public Licenses are designed to make sure that you
23
+ have the freedom to distribute copies of free software (and charge for
24
+ them if you wish), that you receive source code or can get it if you
25
+ want it, that you can change the software or use pieces of it in new
26
+ free programs, and that you know you can do these things.
27
+
28
+ Developers that use our General Public Licenses protect your rights
29
+ with two steps: (1) assert copyright on the software, and (2) offer
30
+ you this License which gives you legal permission to copy, distribute
31
+ and/or modify the software.
32
+
33
+ A secondary benefit of defending all users' freedom is that
34
+ improvements made in alternate versions of the program, if they
35
+ receive widespread use, become available for other developers to
36
+ incorporate. Many developers of free software are heartened and
37
+ encouraged by the resulting cooperation. However, in the case of
38
+ software used on network servers, this result may fail to come about.
39
+ The GNU General Public License permits making a modified version and
40
+ letting the public access it on a server without ever releasing its
41
+ source code to the public.
42
+
43
+ The GNU Affero General Public License is designed specifically to
44
+ ensure that, in such cases, the modified source code becomes available
45
+ to the community. It requires the operator of a network server to
46
+ provide the source code of the modified version running there to the
47
+ users of that server. Therefore, public use of a modified version, on
48
+ a publicly accessible server, gives the public access to the source
49
+ code of the modified version.
50
+
51
+ An older license, called the Affero General Public License and
52
+ published by Affero, was designed to accomplish similar goals. This
53
+ is a different license, not a version of the Affero GPL, but Affero
54
+ has released a new version of the Affero GPL which permits relicensing
55
+ under this license.
56
+
57
+ The precise terms and conditions for copying, distribution and
58
+ modification follow.
59
+
60
+ TERMS AND CONDITIONS
61
+
62
+ 0. Definitions.
63
+
64
+ "This License" refers to version 3 of the GNU Affero General
65
+ Public License.
66
+
67
+ "Copyright" also means copyright-like laws that apply to other
68
+ kinds of works, such as semiconductor masks.
69
+
70
+ "The Program" refers to any copyrightable work licensed under this
71
+ License. Each licensee is addressed as "you". "Licensees" and
72
+ "recipients" may be individuals or organizations.
73
+
74
+ To "modify" a work means to copy from or adapt all or part of the
75
+ work in a fashion requiring copyright permission, other than the
76
+ making of an exact copy. The resulting work is called a "modified
77
+ version" of the earlier work or a work "based on" the earlier work.
78
+
79
+ A "covered work" means either the unmodified Program or a work
80
+ based on the Program.
81
+
82
+ To "propagate" a work means to do anything with it that, without
83
+ permission, would make you directly or secondarily liable for
84
+ infringement under applicable copyright law, except executing it on a
85
+ computer or modifying a private copy. Propagation includes copying,
86
+ distribution (with or without modification), making available to the
87
+ public, and in some countries other activities as well.
88
+
89
+ To "convey" a work means any kind of propagation that enables
90
+ other parties to make or receive copies. Mere interaction with a user
91
+ through a computer network, with no transfer of a copy, is not
92
+ conveying.
93
+
94
+ An interactive user interface displays "Appropriate Legal Notices"
95
+ to the extent that it includes a convenient and prominently visible
96
+ feature that (1) displays an appropriate copyright notice, and (2)
97
+ tells the user that there is no warranty for the work (except to the
98
+ extent that warranties are provided), that licensees may convey the
99
+ work under this License, and how to view a copy of this License. If
100
+ the interface presents a list of user commands or options, such as a
101
+ menu, a prominent item in the list meets this criterion.
102
+
103
+ 1. Source Code.
104
+
105
+ The "source code" for a work means the preferred form of the work
106
+ for making modifications to it. "Object code" means any non-source
107
+ form of a work.
108
+
109
+ A "Standard Interface" means an interface that either is an
110
+ official standard defined by a recognized standards body, or, in the
111
+ case of interfaces specified for a particular programming language,
112
+ one that is widely used among developers working in that language.
113
+
114
+ The "System Libraries" of an executable work include anything,
115
+ other than the work as a whole, that (a) is included in the normal
116
+ form of packaging a Major Component, but which is not part of that
117
+ Major Component, and (b) serves only to enable use of the work with
118
+ that Major Component, or to implement a Standard Interface for which
119
+ an implementation is available to the public in source code form. A
120
+ "Major Component", in this context, means a major essential component
121
+ (kernel, window system, and so on) of the specific operating system
122
+ (if any) on which the executable work runs, or a compiler used to
123
+ produce the work, or an object code interpreter used to run it.
124
+
125
+ The "Corresponding Source" for a work in object code form means
126
+ all the source code needed to generate, install, and (for an
127
+ executable work) run the object code and to modify the work,
128
+ including scripts to control those activities. However, it does not
129
+ include the work's System Libraries, or general-purpose tools or
130
+ generally available free programs which are used unmodified in
131
+ performing those activities but which are not part of the work. For
132
+ example, Corresponding Source includes interface definition files
133
+ associated with source files for the work, and the source code for
134
+ shared libraries and dynamically linked subprograms that the work is
135
+ specifically designed to require, such as by intimate data
136
+ communication or control flow between those subprograms and other
137
+ parts of the work.
138
+
139
+ The Corresponding Source need not include anything that users
140
+ can regenerate automatically from other parts of the Corresponding
141
+ Source.
142
+
143
+ The Corresponding Source for a work in source code form is that
144
+ same work.
145
+
146
+ 2. Basic Permissions.
147
+
148
+ All rights granted under this License are granted for the term of
149
+ copyright on the Program, and are irrevocable provided the stated
150
+ conditions are met. This License explicitly affirms your unlimited
151
+ permission to run the unmodified Program. The output from running a
152
+ covered work is covered by this License only if the output, given its
153
+ content, constitutes a covered work. This License acknowledges your
154
+ rights of fair use or other equivalent, as provided by copyright law.
155
+
156
+ You may make, run and propagate covered works that you do not
157
+ convey, without conditions so long as your license otherwise remains
158
+ in force. You may convey covered works to others for the sole
159
+ purpose of having them make modifications exclusively for you, or
160
+ provide you with facilities for running those works, provided that
161
+ you comply with the terms of this License in conveying all material
162
+ for which you do not control copyright. Those thus making or running
163
+ the covered works for you must do so exclusively on your behalf,
164
+ under your direction and control, on terms that prohibit them from
165
+ making any copies of your copyrighted material outside their
166
+ relationship with you.
167
+
168
+ Conveying under any other circumstances is permitted solely under
169
+ the conditions stated below. Sublicensing is not allowed; section 10
170
+ makes it unnecessary.
171
+
172
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
173
+
174
+ No covered work shall be deemed part of an effective technological
175
+ measure under any applicable law fulfilling obligations under article
176
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
177
+ similar laws prohibiting or restricting circumvention of such
178
+ measures.
179
+
180
+ When you convey a covered work, you waive any legal power to
181
+ forbid circumvention of technological measures to the extent such
182
+ circumvention is effected by exercising rights under this License
183
+ with respect to the covered work, and you disclaim any intention to
184
+ limit operation or modification of the work as a means of enforcing,
185
+ against the work's users, your or third parties' legal rights to
186
+ forbid circumvention of technological measures.
187
+
188
+ 4. Conveying Verbatim Copies.
189
+
190
+ You may convey verbatim copies of the Program's source code as
191
+ you receive it, in any medium, provided that you conspicuously and
192
+ appropriately publish on each copy an appropriate copyright notice;
193
+ keep intact all notices stating that this License and any
194
+ non-permissive terms added in accord with section 7 apply to the
195
+ code; keep intact all notices of the absence of any warranty; and
196
+ give all recipients a copy of this License along with the Program.
197
+
198
+ You may charge any price or no price for each copy that you
199
+ convey, and you may offer support or warranty protection for a fee.
200
+
201
+ 5. Conveying Modified Source Versions.
202
+
203
+ You may convey a work based on the Program, or the modifications
204
+ to produce it from the Program, in the form of source code under the
205
+ terms of section 4, provided that you also meet all of these
206
+ conditions:
207
+
208
+ a) The work must carry prominent notices stating that you modified
209
+ it, and giving a relevant date.
210
+
211
+ b) The work must carry prominent notices stating that it is
212
+ released under this License and any conditions added under section
213
+ 7. This requirement modifies the requirement in section 4 to
214
+ "keep intact all notices".
215
+
216
+ c) You must license the entire work, as a whole, under this
217
+ License to anyone who comes into possession of a copy. This
218
+ License will therefore apply, along with any applicable section 7
219
+ additional terms, to the whole of the work, and all its parts,
220
+ regardless of how they are packaged. This License gives no
221
+ permission to license the work in any other way, but it does not
222
+ invalidate such permission if you have separately received it.
223
+
224
+ d) If the work has interactive user interfaces, each must display
225
+ Appropriate Legal Notices; however, if the Program has interactive
226
+ interfaces that do not display Appropriate Legal Notices, your
227
+ work need not make them do so.
228
+
229
+ A compilation of a covered work with other separate and
230
+ independent works, which are not by their nature extensions of the
231
+ covered work, and which are not combined with it such as to form a
232
+ larger program, in or on a volume of a storage or distribution
233
+ medium, is called an "aggregate" if the compilation and its
234
+ resulting copyright are not used to limit the access or legal rights
235
+ of the compilation's users beyond what the individual works permit.
236
+ Inclusion of a covered work in an aggregate does not cause this
237
+ License to apply to the other parts of the aggregate.
238
+
239
+ 6. Conveying Non-Source Forms.
240
+
241
+ You may convey a covered work in object code form under the terms
242
+ of sections 4 and 5, provided that you also convey the
243
+ machine-readable Corresponding Source under the terms of this
244
+ License, in one of these ways:
245
+
246
+ a) Convey the object code in, or embodied in, a physical product
247
+ (including a physical distribution medium), accompanied by the
248
+ Corresponding Source fixed on a durable physical medium
249
+ customarily used for software interchange.
250
+
251
+ b) Convey the object code in, or embodied in, a physical product
252
+ (including a physical distribution medium), accompanied by a
253
+ written offer, valid for at least three years and valid for as
254
+ long as you offer spare parts or customer support for that product
255
+ model, to give anyone who possesses the object code either (1) a
256
+ copy of the Corresponding Source for all the software in the
257
+ product that is covered by this License, on a durable physical
258
+ medium customarily used for software interchange, for a price no
259
+ more than your reasonable cost of physically performing this
260
+ conveying of source, or (2) access to copy the
261
+ Corresponding Source from a network server at no charge.
262
+
263
+ c) Convey individual copies of the object code with a copy of the
264
+ written offer to provide the Corresponding Source. This
265
+ alternative is allowed only occasionally and noncommercially, and
266
+ only if you received the object code with such an offer, in accord
267
+ with subsection 6b.
268
+
269
+ d) Convey the object code by offering access from a designated
270
+ place (gratis or for a charge), and offer equivalent access to the
271
+ Corresponding Source in the same way through the same place at no
272
+ further charge. You need not require recipients to copy the
273
+ Corresponding Source along with the object code. If the place to
274
+ copy the object code is a network server, the Corresponding Source
275
+ may be on a different server (operated by you or a third party)
276
+ that supports equivalent copying facilities, provided you maintain
277
+ clear directions next to the object code saying where to find the
278
+ Corresponding Source. Regardless of what server hosts the
279
+ Corresponding Source, you remain obligated to ensure that it is
280
+ available for as long as needed to satisfy these requirements.
281
+
282
+ e) Convey the object code using peer-to-peer transmission, provided
283
+ you inform other peers where the object code and Corresponding
284
+ Source of the work are being offered to the general public at no
285
+ charge under subsection 6d.
286
+
287
+ A separable portion of the object code, whose source code is
288
+ excluded from the Corresponding Source as a System Library, need not
289
+ be included in conveying the object code work.
290
+
291
+ A "User Product" is either (1) a "consumer product", which means
292
+ any tangible personal property which is normally used for personal,
293
+ family, or household purposes, or (2) anything designed or sold for
294
+ incorporation into a dwelling. In determining whether a product is a
295
+ consumer product, doubtful cases shall be resolved in favor of
296
+ coverage. For a particular product received by a particular user,
297
+ "normally used" refers to a typical or common use of that class of
298
+ product, regardless of the status of the particular user or of the
299
+ way in which the particular user actually uses, or expects or is
300
+ expected to use, the product. A product is a consumer product
301
+ regardless of whether the product has substantial commercial,
302
+ industrial or non-consumer uses, unless such uses represent the only
303
+ significant mode of use of the product.
304
+
305
+ "Installation Information" for a User Product means any methods,
306
+ procedures, authorization keys, or other information required to
307
+ install and execute modified versions of a covered work in that User
308
+ Product from a modified version of its Corresponding Source. The
309
+ information must suffice to ensure that the continued functioning of
310
+ the modified object code is in no case prevented or interfered with
311
+ solely because modification has been made.
312
+
313
+ If you convey an object code work under this section in, or with,
314
+ or specifically for use in, a User Product, and the conveying occurs
315
+ as part of a transaction in which the right of possession and use of
316
+ the User Product is transferred to the recipient in perpetuity or for
317
+ a fixed term (regardless of how the transaction is characterized),
318
+ the Corresponding Source conveyed under this section must be
319
+ accompanied by the Installation Information. But this requirement
320
+ does not apply if neither you nor any third party retains the
321
+ ability to install modified object code on the User Product (for
322
+ example, the work has been installed in ROM).
323
+
324
+ The requirement to provide Installation Information does not
325
+ include a requirement to continue to provide support service,
326
+ warranty, or updates for a work that has been modified or installed
327
+ by the recipient, or for the User Product in which it has been
328
+ modified or installed. Access to a network may be denied when the
329
+ modification itself materially and adversely affects the operation of
330
+ the network or violates the rules and protocols for communication
331
+ across the network.
332
+
333
+ Corresponding Source conveyed, and Installation Information
334
+ provided, in accord with this section must be in a format that is
335
+ publicly documented (and with an implementation available to the
336
+ public in source code form), and must require no special password or
337
+ key for unpacking, reading or copying.
338
+
339
+ 7. Additional Terms.
340
+
341
+ "Additional permissions" are terms that supplement the terms of
342
+ this License by making exceptions from one or more of its
343
+ conditions. Additional permissions that are applicable to the
344
+ entire Program shall be treated as though they were included in this
345
+ License, to the extent that they are valid under applicable law. If
346
+ additional permissions apply only to part of the Program, that part
347
+ may be used separately under those permissions, but the entire
348
+ Program remains governed by this License without regard to the
349
+ additional permissions.
350
+
351
+ When you convey a copy of a covered work, you may at your option
352
+ remove any additional permissions from that copy, or from any part
353
+ of it. (Additional permissions may be written to require their own
354
+ removal in certain cases when you modify the work.) You may place
355
+ additional permissions on material, added by you to a covered work,
356
+ for which you have or can give appropriate copyright permission.
357
+
358
+ Notwithstanding any other provision of this License, for material
359
+ you add to a covered work, you may (if authorized by the copyright
360
+ holders of that material) supplement the terms of this License with
361
+ terms:
362
+
363
+ a) Disclaiming warranty or limiting liability differently from the
364
+ terms of sections 15 and 16 of this License; or
365
+
366
+ b) Requiring preservation of specified reasonable legal notices or
367
+ author attributions in that material or in the Appropriate Legal
368
+ Notices displayed by works containing it; or
369
+
370
+ c) Prohibiting misrepresentation of the origin of that material, or
371
+ requiring that modified versions of such material be marked in
372
+ reasonable ways as different from the original version; or
373
+
374
+ d) Limiting the use for publicity purposes of names of licensors or
375
+ authors of the material; or
376
+
377
+ e) Declining to grant rights under trademark law for use of some
378
+ trade names, trademarks, or service marks; or
379
+
380
+ f) Requiring indemnification of licensors and authors of that
381
+ material by anyone who conveys the material (or modified versions
382
+ of it) with contractual assumptions of liability to the recipient,
383
+ for any liability that these contractual assumptions directly
384
+ impose on those licensors and authors.
385
+
386
+ All other non-permissive additional terms are considered "further
387
+ restrictions" within the meaning of section 10. If the Program as
388
+ you received it, or any part of it, contains a notice stating that it
389
+ is governed by this License along with a term that is a further
390
+ restriction, you may remove that term. If a license document
391
+ contains a further restriction but permits relicensing or conveying
392
+ under this License, you may add to a covered work material governed
393
+ by the terms of that license document, provided that the further
394
+ restriction does not survive such relicensing or conveying.
395
+
396
+ If you add terms to a covered work in accord with this section,
397
+ you must place, in the relevant source files, a statement of the
398
+ additional terms that apply to those files, or a notice indicating
399
+ where to find the applicable terms.
400
+
401
+ Additional terms, permissive or non-permissive, may be stated in
402
+ the form of a separately written license, or stated as exceptions;
403
+ the above requirements apply either way.
404
+
405
+ 8. Termination.
406
+
407
+ You may not propagate or modify a covered work except as
408
+ expressly provided under this License. Any attempt otherwise to
409
+ propagate or modify it is void, and will automatically terminate your
410
+ rights under this License (including any patent licenses granted
411
+ under the third paragraph of section 11).
412
+
413
+ However, if you cease all violation of this License, then your
414
+ license from a particular copyright holder is reinstated (a)
415
+ provisionally, unless and until the copyright holder explicitly and
416
+ finally terminates your license, and (b) permanently, if the
417
+ copyright holder fails to notify you of the violation by some
418
+ reasonable means prior to 60 days after the cessation.
419
+
420
+ Moreover, your license from a particular copyright holder is
421
+ reinstated permanently if the copyright holder notifies you of the
422
+ violation by some reasonable means, this is the first time you have
423
+ received notice of violation of this License (for any work) from
424
+ that copyright holder, and you cure the violation prior to 30 days
425
+ after your receipt of the notice.
426
+
427
+ Termination of your rights under this section does not terminate
428
+ the licenses of parties who have received copies or rights from you
429
+ under this License. If your rights have been terminated and not
430
+ permanently reinstated, you do not qualify to receive new licenses
431
+ for the same material under section 10.
432
+
433
+ 9. Acceptance Not Required for Having Copies.
434
+
435
+ You are not required to accept this License in order to receive or
436
+ run a copy of the Program. Ancillary propagation of a covered work
437
+ occurring solely as a consequence of using peer-to-peer
438
+ transmission to receive a copy likewise does not require acceptance.
439
+ However, nothing other than this License grants you permission to
440
+ propagate or modify any covered work. These actions infringe
441
+ copyright if you do not accept this License. Therefore, by
442
+ modifying or propagating a covered work, you indicate your
443
+ acceptance of this License to do so.
444
+
445
+ 10. Automatic Licensing of Downstream Recipients.
446
+
447
+ Each time you convey a covered work, the recipient automatically
448
+ receives a license from the original licensors, to run, modify and
449
+ propagate that work, subject to this License. You are not
450
+ responsible for enforcing compliance by third parties with this
451
+ License.
452
+
453
+ An "entity transaction" is a transaction transferring control of
454
+ an organization, or substantially all assets of one, or subdividing
455
+ an organization, or merging organizations. If propagation of a
456
+ covered work results from an entity transaction, each party to that
457
+ transaction who receives a copy of the work also receives whatever
458
+ licenses to the work the party's predecessor in interest had or could
459
+ give under the previous paragraph, plus a right to possession of the
460
+ Corresponding Source of the work from the predecessor in interest, if
461
+ the predecessor has it or can get it with reasonable efforts.
462
+
463
+ You may not impose any further restrictions on the exercise of the
464
+ rights granted or affirmed under this License. For example, you may
465
+ not impose a license fee, royalty, or other charge for exercise of
466
+ rights granted under this License, and you may not initiate
467
+ litigation (including a cross-claim or counterclaim in a lawsuit)
468
+ alleging that any patent claim is infringed by making, using,
469
+ selling, offering for sale, or importing the Program or any portion
470
+ of it.
471
+
472
+ 11. Patents.
473
+
474
+ A "contributor" is a copyright holder who authorizes use under
475
+ this License of the Program or a work on which the Program is based.
476
+ The work thus licensed is called the contributor's "contributor
477
+ version".
478
+
479
+ A contributor's "essential patent claims" are all patent claims
480
+ owned or controlled by the contributor, whether already acquired or
481
+ hereafter acquired, that would be infringed by some manner, permitted
482
+ by this License, of making, using, or selling its contributor
483
+ version, but do not include claims that would be infringed only as a
484
+ consequence of further modification of the contributor version. For
485
+ purposes of this definition, "control" includes the right to grant
486
+ patent sublicenses in a manner consistent with the requirements of
487
+ this License.
488
+
489
+ Each contributor grants you a non-exclusive, worldwide,
490
+ royalty-free patent license under the contributor's essential patent
491
+ claims, to make, use, sell, offer for sale, import and otherwise
492
+ run, modify and propagate the contents of its contributor version.
493
+
494
+ In the following three paragraphs, a "patent license" is any
495
+ express agreement or commitment, however denominated, not to enforce
496
+ a patent (such as an express permission to practice a patent or
497
+ covenant not to sue for patent infringement). To "grant" such a
498
+ patent license to a party means to make such an agreement or
499
+ commitment not to enforce a patent against the party.
500
+
501
+ If you convey a covered work, knowingly relying on a patent
502
+ license, and the Corresponding Source of the work is not available
503
+ for anyone to copy, free of charge and under the terms of this
504
+ License, through a publicly available network server or other
505
+ readily accessible means, then you must either (1) cause the
506
+ Corresponding Source to be so available, or (2) arrange to deprive
507
+ yourself of the benefit of the patent license for this particular
508
+ work, or (3) arrange, in a manner consistent with the requirements
509
+ of this License, to extend the patent license to downstream
510
+ recipients. "Knowingly relying" means you have actual knowledge
511
+ that, but for the patent license, your conveying the covered work in
512
+ a country, or your recipient's use of the covered work in a country,
513
+ would infringe one or more identifiable patents in that country that
514
+ you have reason to believe are valid.
515
+
516
+ If, pursuant to or in connection with a single transaction or
517
+ arrangement, you convey, or propagate by procuring conveyance of, a
518
+ covered work, and grant a patent license to some of the parties
519
+ receiving the covered work authorizing them to use, propagate,
520
+ modify or convey a specific copy of the covered work, then the
521
+ patent license you grant is automatically extended to all recipients
522
+ of the covered work and works based on it.
523
+
524
+ A patent license is "discriminatory" if it does not include within
525
+ the scope of its coverage, prohibits the exercise of, or is
526
+ conditioned on the non-exercise of one or more of the rights that
527
+ are specifically granted under this License. You may not convey a
528
+ covered work if you are a party to an arrangement with a third party
529
+ that is in the business of distributing software, under which you
530
+ make payment to the third party based on the extent of your activity
531
+ of conveying the work, and under which the third party grants, to
532
+ any of the parties who would receive the covered work from you, a
533
+ discriminatory patent license (a) in connection with copies of the
534
+ covered work conveyed by you (or copies made from those copies), or
535
+ (b) primarily for and in connection with specific products or
536
+ compilations that contain the covered work, unless you entered into
537
+ that arrangement, or that patent license was granted, prior to 28
538
+ March 2007.
539
+
540
+ Nothing in this License shall be construed as excluding or
541
+ limiting any implied license or other defenses to infringement that
542
+ may otherwise be available to you under applicable patent law.
543
+
544
+ 12. No Surrender of Others' Freedom.
545
+
546
+ If conditions are imposed on you (whether by court order,
547
+ agreement or otherwise) that contradict the conditions of this
548
+ License, they do not excuse you from the conditions of this License.
549
+ If you cannot convey a covered work so as to satisfy simultaneously
550
+ your obligations under this License and any other pertinent
551
+ obligations, then as a consequence you may not convey it at all.
552
+ For example, if you agree to terms that obligate you to collect a
553
+ royalty for further conveying from those to whom you convey the
554
+ Program, the only way you could satisfy both those terms and this
555
+ License would be to refrain entirely from conveying the Program.
556
+
557
+ 13. Remote Network Interaction; Use with the GNU General Public License.
558
+
559
+ Notwithstanding any other provision of this License, if you modify
560
+ the Program, your modified version must prominently offer all users
561
+ interacting with it remotely through a computer network (if your
562
+ version supports such interaction) an opportunity to receive the
563
+ Corresponding Source of your version by providing access to the
564
+ Corresponding Source from a network server at no charge, through
565
+ some standard or customary means of facilitating copying of software.
566
+ This Corresponding Source shall include the Corresponding Source for
567
+ any work covered by version 3 of the GNU General Public License that
568
+ is incorporated pursuant to the following paragraph.
569
+
570
+ Notwithstanding any other provision of this License, you have
571
+ permission to link or combine any covered work with a work licensed
572
+ under version 3 of the GNU General Public License into a single
573
+ combined work, and to convey the resulting work. The terms of this
574
+ License will continue to apply to the part which is the covered
575
+ work, but the work with which it is combined will remain governed by
576
+ version 3 of the GNU General Public License.
577
+
578
+ 14. Revised Versions of this License.
579
+
580
+ The Free Software Foundation may publish revised and/or new
581
+ versions of the GNU Affero General Public License from time to time.
582
+ Such new versions will be similar in spirit to the present version,
583
+ but may differ in detail to address new problems or concerns.
584
+
585
+ Each version is given a distinguishing version number. If the
586
+ Program specifies that a certain numbered version of the GNU Affero
587
+ General Public License "or any later version" applies to it, you have
588
+ the option of following the terms and conditions either of that
589
+ numbered version or of any later version published by the Free
590
+ Software Foundation. If the Program does not specify a version
591
+ number of the GNU Affero General Public License, you may choose any
592
+ version ever published by the Free Software Foundation.
593
+
594
+ If the Program specifies that a proxy can decide which future
595
+ versions of the GNU Affero General Public License can be used, that
596
+ proxy's public statement of acceptance of a version permanently
597
+ authorizes you to choose that version for the Program.
598
+
599
+ Later license versions may give you additional or different
600
+ permissions. However, no additional obligations are imposed on any
601
+ author or copyright holder as a result of your choosing to follow a
602
+ later version.
603
+
604
+ 15. Disclaimer of Warranty.
605
+
606
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
607
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE
608
+ COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS"
609
+ WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
610
+ BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
611
+ FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY
612
+ AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE
613
+ DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
614
+ CORRECTION.
615
+
616
+ 16. Limitation of Liability.
617
+
618
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
619
+ WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES
620
+ AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
621
+ DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL
622
+ DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM
623
+ (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
624
+ INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF
625
+ THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER
626
+ OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
627
+
628
+ 17. Interpretation of Sections 15 and 16.
629
+
630
+ If the disclaimer of warranty and limitation of liability provided
631
+ above cannot be given local legal effect according to their terms,
632
+ reviewing courts shall apply local law that most closely approximates
633
+ an absolute waiver of all civil liability in connection with the
634
+ Program, unless a warranty or assumption of liability accompanies a
635
+ copy of the Program in return for a fee.
636
+
637
+ END OF TERMS AND CONDITIONS
638
+
639
+ How to Apply These Terms to Your New Programs
640
+
641
+ If you develop a new program, and you want it to be of the
642
+ greatest possible use to the public, the best way to achieve this is
643
+ to make it free software which everyone can redistribute and change
644
+ under these terms.
645
+
646
+ To do so, attach the following notices to the program. It is
647
+ safest to attach them to the start of each source file to most
648
+ effectively state the exclusion of warranty; and each file should
649
+ have at least the "copyright" line and a pointer to where the full
650
+ notice is found.
651
+
652
+ <one line to give the program's name and a brief idea of what it does.>
653
+ Copyright (C) <year> <name of author>
654
+
655
+ This program is free software: you can redistribute it and/or modify
656
+ it under the terms of the GNU Affero General Public License as
657
+ published by the Free Software Foundation, either version 3 of the
658
+ License, or (at your option) any later version.
659
+
660
+ This program is distributed in the hope that it will be useful,
661
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
662
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
663
+ GNU Affero General Public License for more details.
664
+
665
+ You should have received a copy of the GNU Affero General Public
666
+ License along with this program. If not, see
667
+ <https://www.gnu.org/licenses/>.
668
+
669
+ Also add information on how to contact you by electronic and paper
670
+ mail.
671
+
672
+ If your software can interact with users remotely through a
673
+ computer network, you should also make sure that it provides a way
674
+ for users to get its source. For example, if your program is a web
675
+ application, its interface could display a "Source" link that leads
676
+ users to an archive of the code. There are many ways you could
677
+ offer source, and different solutions will be better for different
678
+ programs; see section 13 for the specific requirements.
679
+
680
+ You should also get your employer (if you work as a programmer) or
681
+ school, if any, to sign a "copyright disclaimer" for the program, if
682
+ necessary. For more information on this, and how to apply and
683
+ follow the GNU AGPL, see <https://www.gnu.org/licenses/>.
@@ -0,0 +1,65 @@
1
+ Content — declarative resource-to-artifact generation engine
2
+ Copyright (C) 2026 Yann Orieult
3
+
4
+ SPDX-License-Identifier: AGPL-3.0-or-later
5
+ Source: https://github.com/LatentNoise/content
6
+
7
+ This program is free software: you can redistribute it and/or modify it under
8
+ the terms of the GNU Affero General Public License as published by the Free
9
+ Software Foundation, either version 3 of the License, or (at your option) any
10
+ later version.
11
+
12
+ This program is distributed in the hope that it will be useful, but WITHOUT ANY
13
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14
+ PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
15
+
16
+ You should have received a copy of the GNU Affero General Public License along
17
+ with this program. If not, see <https://www.gnu.org/licenses/>.
18
+
19
+ ---
20
+
21
+ Third-party components
22
+ ----------------------
23
+
24
+ Content depends on third-party software that it does not include: yt-dlp,
25
+ ffmpeg/ffprobe, Ollama, faster-whisper, and its Python dependencies. Each
26
+ remains under its own licence, held by its own authors, and nothing here alters
27
+ those terms. The container images built from this repository bundle some of
28
+ these; consult each component for its licence.
29
+
30
+ No additional restriction is imposed beyond the licences that apply.
31
+
32
+ Redistributed in the container images
33
+ -------------------------------------
34
+
35
+ The official container images built from this repository include the following
36
+ components in binary form. They are named here because redistribution, unlike a
37
+ runtime dependency, carries attribution obligations.
38
+
39
+ Typst — https://github.com/typst/typst
40
+ Copyright (c) The Typst Project Developers
41
+ Licensed under the Apache License, Version 2.0.
42
+ A copy of that licence is installed in the image at
43
+ /usr/local/share/licenses/typst/LICENSE, and is available at
44
+ <http://www.apache.org/licenses/LICENSE-2.0>.
45
+ Used as the default PDF renderer; the binary is unmodified.
46
+ Omit it at build time with --build-arg INSTALL_TYPST=false.
47
+
48
+ ReportLab — https://www.reportlab.com/
49
+ Copyright (c) ReportLab Europe Ltd.
50
+ Licensed under the BSD 3-Clause License.
51
+ Installed as a Python wheel; used as the fallback PDF renderer.
52
+
53
+ DejaVu fonts — https://dejavu-fonts.github.io/
54
+ Licensed under the DejaVu Fonts License (a permissive, Bitstream Vera
55
+ derived licence). Installed via the Alpine `ttf-dejavu` package and used for
56
+ PDF output outside the Latin-1 repertoire.
57
+
58
+ Copyright ownership
59
+ -------------------
60
+
61
+ Copyright in this project is held by its author alone. The project accepts no
62
+ code contributions (see CONTRIBUTING.md), so no third party holds copyright in
63
+ any part of it. That is deliberate: undivided ownership is what allows Content
64
+ to be offered under separate commercial terms alongside the AGPL — see
65
+ COMMERCIAL.md.