dbxdebug 0.2.1__tar.gz → 0.4.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.
Files changed (63) hide show
  1. dbxdebug-0.4.0/.github/dependabot.yml +17 -0
  2. dbxdebug-0.4.0/.github/workflows/release.yml +87 -0
  3. dbxdebug-0.4.0/.github/workflows/test.yml +75 -0
  4. {dbxdebug-0.2.1 → dbxdebug-0.4.0}/.pre-commit-config.yaml +0 -7
  5. dbxdebug-0.4.0/.release-please-manifest.json +3 -0
  6. dbxdebug-0.4.0/CHANGELOG.md +76 -0
  7. dbxdebug-0.4.0/LICENSE +151 -0
  8. dbxdebug-0.4.0/PKG-INFO +531 -0
  9. dbxdebug-0.4.0/README.md +509 -0
  10. dbxdebug-0.4.0/docs/migration.md +563 -0
  11. dbxdebug-0.4.0/plugin.json +11 -0
  12. {dbxdebug-0.2.1 → dbxdebug-0.4.0}/pyproject.toml +16 -12
  13. dbxdebug-0.4.0/release-please-config.json +13 -0
  14. dbxdebug-0.4.0/skills/debug-dos-programs/SKILL.md +360 -0
  15. dbxdebug-0.4.0/skills/debug-dos-programs/references/recipes.md +404 -0
  16. dbxdebug-0.4.0/skills/debug-dos-programs/references/troubleshooting.md +385 -0
  17. dbxdebug-0.4.0/skills/dosbox-x-debug-protocol/SKILL.md +324 -0
  18. dbxdebug-0.4.0/skills/dosbox-x-debug-protocol/references/history.md +343 -0
  19. dbxdebug-0.4.0/skills/dosbox-x-debug-protocol/references/packets.md +284 -0
  20. dbxdebug-0.4.0/skills/dosbox-x-debug-protocol/references/qmp-commands.md +302 -0
  21. {dbxdebug-0.2.1 → dbxdebug-0.4.0}/src/dbxdebug/__init__.py +4 -1
  22. dbxdebug-0.4.0/src/dbxdebug/addressing.py +143 -0
  23. {dbxdebug-0.2.1 → dbxdebug-0.4.0}/src/dbxdebug/cli.py +182 -18
  24. {dbxdebug-0.2.1 → dbxdebug-0.4.0}/src/dbxdebug/dbx_kbd.py +46 -18
  25. dbxdebug-0.4.0/src/dbxdebug/doctor.py +182 -0
  26. dbxdebug-0.4.0/src/dbxdebug/frames.py +285 -0
  27. dbxdebug-0.4.0/src/dbxdebug/gdb.py +804 -0
  28. {dbxdebug-0.2.1 → dbxdebug-0.4.0}/src/dbxdebug/html.py +2 -2
  29. dbxdebug-0.4.0/src/dbxdebug/paths.py +81 -0
  30. dbxdebug-0.4.0/src/dbxdebug/qmp.py +492 -0
  31. dbxdebug-0.4.0/src/dbxdebug/registry.py +515 -0
  32. dbxdebug-0.4.0/src/dbxdebug/session.py +1115 -0
  33. {dbxdebug-0.2.1 → dbxdebug-0.4.0}/src/dbxdebug/utils.py +8 -4
  34. {dbxdebug-0.2.1 → dbxdebug-0.4.0}/src/dbxdebug/video.py +121 -44
  35. dbxdebug-0.4.0/tests/integration/__init__.py +1 -0
  36. dbxdebug-0.4.0/tests/integration/conftest.py +134 -0
  37. dbxdebug-0.4.0/tests/integration/test_headless.py +282 -0
  38. dbxdebug-0.4.0/tests/integration/test_live_session.py +769 -0
  39. dbxdebug-0.4.0/tests/test_addressing.py +70 -0
  40. {dbxdebug-0.2.1 → dbxdebug-0.4.0}/tests/test_basic.py +21 -3
  41. dbxdebug-0.4.0/tests/test_cli_session.py +228 -0
  42. dbxdebug-0.4.0/tests/test_frames.py +355 -0
  43. dbxdebug-0.4.0/tests/test_gdb_capabilities.py +147 -0
  44. dbxdebug-0.4.0/tests/test_gdb_framing.py +436 -0
  45. dbxdebug-0.4.0/tests/test_gdb_registers.py +176 -0
  46. dbxdebug-0.4.0/tests/test_paths.py +142 -0
  47. dbxdebug-0.4.0/tests/test_qmp_commands.py +261 -0
  48. dbxdebug-0.4.0/tests/test_read_bulk.py +325 -0
  49. dbxdebug-0.4.0/tests/test_registry.py +202 -0
  50. dbxdebug-0.4.0/tests/test_session.py +366 -0
  51. dbxdebug-0.4.0/tests/test_video_client_ownership.py +345 -0
  52. {dbxdebug-0.2.1 → dbxdebug-0.4.0}/uv.lock +0 -346
  53. dbxdebug-0.2.1/.github/workflows/lint.yml +0 -29
  54. dbxdebug-0.2.1/.github/workflows/publish.yml +0 -65
  55. dbxdebug-0.2.1/.github/workflows/test.yml +0 -73
  56. dbxdebug-0.2.1/PKG-INFO +0 -164
  57. dbxdebug-0.2.1/README.md +0 -143
  58. dbxdebug-0.2.1/src/dbxdebug/gdb.py +0 -297
  59. dbxdebug-0.2.1/src/dbxdebug/qmp.py +0 -239
  60. {dbxdebug-0.2.1 → dbxdebug-0.4.0}/.gitignore +0 -0
  61. {dbxdebug-0.2.1 → dbxdebug-0.4.0}/src/dbxdebug/capture_io.py +0 -0
  62. {dbxdebug-0.2.1 → dbxdebug-0.4.0}/src/dbxdebug/keyboard.py +0 -0
  63. {dbxdebug-0.2.1 → dbxdebug-0.4.0}/tests/__init__.py +0 -0
@@ -0,0 +1,17 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: github-actions
4
+ directory: /
5
+ schedule:
6
+ interval: weekly
7
+ groups:
8
+ github-actions:
9
+ patterns: ["*"]
10
+
11
+ - package-ecosystem: uv
12
+ directory: /
13
+ schedule:
14
+ interval: weekly
15
+ groups:
16
+ python:
17
+ patterns: ["*"]
@@ -0,0 +1,87 @@
1
+ name: Release
2
+
3
+ # release-please maintains a "Release vX.Y.Z" PR from the conventional-commit
4
+ # history. Merging that PR updates CHANGELOG.md and the manifest, then creates
5
+ # the vX.Y.Z tag and GitHub Release. hatch-vcs derives the package version from
6
+ # that tag at build time. Publishing must run in this same workflow run, because
7
+ # a tag/release created with GITHUB_TOKEN does not trigger a separate workflow.
8
+
9
+ on:
10
+ push:
11
+ branches: [main]
12
+ # Recovery path. A tag/release created with GITHUB_TOKEN does not trigger a
13
+ # workflow, so a publish that fails for an environmental reason (a bad
14
+ # publisher/metadata pairing, a PyPI outage) cannot be retried by re-running
15
+ # the original run -- a re-run replays the workflow file from that commit,
16
+ # including whatever was broken. Dispatch this against the existing tag
17
+ # instead. It rebuilds from that tag and republishes; it never creates a tag.
18
+ workflow_dispatch:
19
+ inputs:
20
+ tag:
21
+ description: "Existing tag to build and publish, e.g. v0.3.0"
22
+ required: true
23
+ type: string
24
+
25
+ permissions: {}
26
+
27
+ concurrency:
28
+ group: release-${{ github.ref }}
29
+ cancel-in-progress: false
30
+
31
+ jobs:
32
+ release-please:
33
+ if: ${{ github.event_name == 'push' }}
34
+ runs-on: ubuntu-latest
35
+ permissions:
36
+ contents: write # create the release + tag
37
+ pull-requests: write # open/maintain the release PR
38
+ outputs:
39
+ release_created: ${{ steps.release.outputs.release_created }}
40
+ tag_name: ${{ steps.release.outputs.tag_name }}
41
+ steps:
42
+ - uses: googleapis/release-please-action@5c625bfb5d1ff62eadeeb3772007f7f66fdcf071 # v4.4.1
43
+ id: release
44
+ with:
45
+ config-file: release-please-config.json
46
+ manifest-file: .release-please-manifest.json
47
+
48
+ # Full CI (lint + format + pyright + test matrix + build) gates the publish.
49
+ # If anything here fails, the publish job below is skipped and nothing ships.
50
+ ci:
51
+ needs: release-please
52
+ if: ${{ !cancelled() && (needs.release-please.outputs.release_created == 'true' || github.event_name == 'workflow_dispatch') }}
53
+ permissions:
54
+ contents: read
55
+ uses: ./.github/workflows/test.yml
56
+
57
+ publish:
58
+ needs: [release-please, ci]
59
+ if: ${{ !cancelled() && needs.ci.result == 'success' && (needs.release-please.outputs.release_created == 'true' || github.event_name == 'workflow_dispatch') }}
60
+ runs-on: ubuntu-latest
61
+ environment:
62
+ name: pypi
63
+ url: https://pypi.org/p/dbxdebug
64
+ permissions:
65
+ id-token: write # OIDC for PyPI Trusted Publishing
66
+ contents: write # upload built artifacts to the GitHub Release
67
+ steps:
68
+ - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
69
+ with:
70
+ ref: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || needs.release-please.outputs.tag_name }}
71
+ fetch-depth: 0 # Full history + tags for hatch-vcs version
72
+
73
+ - name: Install uv and set up Python
74
+ uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
75
+ with:
76
+ python-version: "3.11"
77
+
78
+ - name: Build
79
+ run: uv build
80
+
81
+ - name: Publish to PyPI
82
+ uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
83
+
84
+ - name: Attach artifacts to the GitHub Release
85
+ env:
86
+ GH_TOKEN: ${{ github.token }}
87
+ run: gh release upload "${{ github.event_name == 'workflow_dispatch' && inputs.tag || needs.release-please.outputs.tag_name }}" dist/* --clobber
@@ -0,0 +1,75 @@
1
+ name: Test
2
+
3
+ on:
4
+ push:
5
+ branches: ["**"] # All branches, not tags
6
+ pull_request:
7
+ branches: [main]
8
+ workflow_call: # invoked by release.yml to gate publishing
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ concurrency:
14
+ group: test-${{ github.workflow }}-${{ github.ref }}
15
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
16
+
17
+ jobs:
18
+ lint:
19
+ runs-on: ubuntu-latest
20
+ steps:
21
+ - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
22
+
23
+ - name: Install uv and set up Python
24
+ uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
25
+ with:
26
+ python-version: "3.11"
27
+
28
+ - name: Install dependencies
29
+ run: uv sync --locked --dev
30
+
31
+ - name: Ruff check
32
+ run: uv run ruff check src/ tests/
33
+
34
+ - name: Ruff format check
35
+ run: uv run ruff format --check src/ tests/
36
+
37
+ - name: Pyright
38
+ # No path argument on purpose: that makes pyright use [tool.pyright]
39
+ # `include` from pyproject.toml, so CI can never check fewer paths
40
+ # than the config claims to cover (it once skipped tests/ entirely).
41
+ run: uv run pyright
42
+
43
+ test:
44
+ needs: lint
45
+ runs-on: ubuntu-latest
46
+ strategy:
47
+ matrix:
48
+ python-version: ["3.11", "3.12"]
49
+ steps:
50
+ - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
51
+
52
+ - name: Install uv and set up Python ${{ matrix.python-version }}
53
+ uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
54
+ with:
55
+ python-version: ${{ matrix.python-version }}
56
+
57
+ - name: Install dependencies
58
+ run: uv sync --locked --dev
59
+
60
+ - name: Run tests
61
+ run: uv run pytest tests -v
62
+
63
+ build:
64
+ needs: test
65
+ runs-on: ubuntu-latest
66
+ steps:
67
+ - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
68
+ with:
69
+ fetch-depth: 0 # Full history for hatch-vcs
70
+
71
+ - name: Install uv
72
+ uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
73
+
74
+ - name: Build (packaging smoke test)
75
+ run: uv build
@@ -62,13 +62,6 @@ repos:
62
62
  # - --allow-init-docstring=True
63
63
  # exclude: ^(tests/|src/dbxdebug/cli\.py)
64
64
 
65
- # Commitizen for commit message linting (Conventional Commits)
66
- - repo: https://github.com/commitizen-tools/commitizen
67
- rev: v3.29.1
68
- hooks:
69
- - id: commitizen
70
- stages: [commit-msg]
71
-
72
65
  # Actionlint for GitHub Actions workflow linting
73
66
  - repo: https://github.com/rhysd/actionlint
74
67
  rev: v1.7.4
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.4.0"
3
+ }
@@ -0,0 +1,76 @@
1
+ # Changelog
2
+
3
+ ## [0.4.0](https://github.com/lokkju/dbxdebug/compare/v0.3.0...v0.4.0) (2026-09-05)
4
+
5
+
6
+ ### ⚠ BREAKING CHANGES
7
+
8
+ * **session:** DosboxSession now runs the emulator headless by default. A caller that relied on seeing the window -- to watch the guest while debugging, or to drive it by hand -- must now pass headless=False explicitly. Everything else is unaffected: the debug surface is identical headless, and screen capture was verified byte-identical between the two modes. Note also that `headless` sits mid-dataclass, so positional construction past `connect=` shifts.
9
+
10
+ ### Features
11
+
12
+ * **session:** add DosboxSession(headless=True), on by default ([8af1f56](https://github.com/lokkju/dbxdebug/commit/8af1f56528977c2dbc4a2ddec442f4aa6f76933d)), closes [#3](https://github.com/lokkju/dbxdebug/issues/3)
13
+ * **session:** add read_bulk, a one-call bulk memory read ([f8e228b](https://github.com/lokkju/dbxdebug/commit/f8e228b101b14e682e3b4ec98b434f1fd7e5e7c7)), closes [#9](https://github.com/lokkju/dbxdebug/issues/9)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * **ci:** unblock publishing and add a recovery path for a failed one ([9c69a87](https://github.com/lokkju/dbxdebug/commit/9c69a87c73f30b0a249e1bd5ec3c4cc4f2af0736))
19
+ * **gdb:** bound reads and resynchronise the packet stream ([5940242](https://github.com/lokkju/dbxdebug/commit/5940242035181668c4d35e61db56d5b2342aa620))
20
+ * **session:** record that headless is now the default ([d649d70](https://github.com/lokkju/dbxdebug/commit/d649d705bb46261d38c30a23fc9c39bd390f7c87))
21
+ * **video,cli:** let a GDB client be borrowed instead of reopened ([bb9d351](https://github.com/lokkju/dbxdebug/commit/bb9d35170283407f9c7fbd64f4cfd4f1d75f1d64))
22
+
23
+
24
+ ### Performance Improvements
25
+
26
+ * **clients:** set TCP_NODELAY, and correct what read_bulk is now worth ([c535e3b](https://github.com/lokkju/dbxdebug/commit/c535e3bafe2799e708714e4f771046fd35a55d81))
27
+
28
+
29
+ ### Documentation
30
+
31
+ * correct the hazard write-ups now that the GDB stream is fixed ([a1821aa](https://github.com/lokkju/dbxdebug/commit/a1821aa8904987afd73ad1ba97d022fee5e30213)), closes [#4](https://github.com/lokkju/dbxdebug/issues/4) [#5](https://github.com/lokkju/dbxdebug/issues/5)
32
+ * **migration:** fix the gaps a real migration hit ([96ffaa7](https://github.com/lokkju/dbxdebug/commit/96ffaa7a901a35529e14a81828f8a36d550664d9))
33
+
34
+ ## [0.3.0](https://github.com/lokkju/dbxdebug/compare/v0.2.1...v0.3.0) (2026-09-05)
35
+
36
+
37
+ ### ⚠ BREAKING CHANGES
38
+
39
+ * **session:** set_breakpoint(seg, off) now computes a LINEAR address via addressing.linear(seg, off) instead of packing seg:off as a far pointer. Current DOSBox-X builds decode Z0/z0 as linear (this package's GDBClient requires dosbox-x-linear-bp+ at connect), so the old packed form would silently misplace the breakpoint while gdbserver still answered OK.
40
+ * **gdb:** read_registers()["eip"] is now documented as an offset within CS, not a linear address, matching the fixed GDB stub semantics (register 8 is EIP-within-CS in both g and G directions on stubs that advertise dosbox-x-eip-offset+). Code that combined the old eip value directly as a linear address is silently wrong against a fixed stub; call linear_pc() to get the linear program counter instead.
41
+ * **utils:** parse_x86_address (and anything that calls it, including the `dbxdebug mem`/`cpu` CLI commands) now interprets a bare digit string with no "0x" prefix as hexadecimal instead of decimal. Callers that were relying on decimal parsing of unprefixed strings (e.g. passing "1000" and expecting 1000 rather than 4096) must add an explicit base-10 conversion before calling, or use a "0x"-prefixed or already-hex string.
42
+ * **gdb:** GDBClient now refuses to connect to a stub that does not advertise dosbox-x-linear-bp+. Such builds split the Z0 argument as a packed far pointer, so any breakpoint above 64 KB answers OK and never fires -- silently. Pass require_capabilities=False to proceed against an old build deliberately.
43
+
44
+ ### Features
45
+
46
+ * **addressing:** add the linear addressing module ([e73ce82](https://github.com/lokkju/dbxdebug/commit/e73ce82479a8b1883305fb4db2d33b4f0d960e7c))
47
+ * **cli:** add session list, session reap and doctor ([8179f94](https://github.com/lokkju/dbxdebug/commit/8179f94e11aa07a536ab027dec7dbc3dd425f16c))
48
+ * **frames:** add real-mode stack frame walking ([02c2990](https://github.com/lokkju/dbxdebug/commit/02c29909e1a492e1392d0ddecec994da8e71ea83))
49
+ * **gdb:** add register list, linear PC, and register write to GDBClient ([fc5729e](https://github.com/lokkju/dbxdebug/commit/fc5729e6e0561310c49d1ac94a84368bb051deed))
50
+ * **gdb:** require dosbox-x-linear-bp+ at connect ([b8cc28f](https://github.com/lokkju/dbxdebug/commit/b8cc28fb31d444a961d8850987eef2bbe0bc6d34))
51
+ * **qmp:** wrap memdump, screendump, savestate, loadstate, system_reset and quit ([c7a97c6](https://github.com/lokkju/dbxdebug/commit/c7a97c67561f2b732cff7d62b57f994fe8d922c8))
52
+ * **registry:** add the session registry with list and reap ([2af648d](https://github.com/lokkju/dbxdebug/commit/2af648db88c446f1563ed83ab297b22b929f278d))
53
+ * **session:** port the DosboxSession lifecycle from a downstream consumer ([70f26d9](https://github.com/lokkju/dbxdebug/commit/70f26d948cc49f57463c9d91657a7c0f896d0372))
54
+ * **skills:** ship the two Agent Skills from this repo ([ff01e0d](https://github.com/lokkju/dbxdebug/commit/ff01e0daad568a9de0e031b5f5ed87d56fe1638b))
55
+
56
+
57
+ ### Bug Fixes
58
+
59
+ * add shifted punctuation mappings to char_to_qcode ([6a19fb4](https://github.com/lokkju/dbxdebug/commit/6a19fb47a0de76841815664eeee78b3537502f86))
60
+ * **addressing:** validate seg:off components and clarify parse errors ([c5d67a5](https://github.com/lokkju/dbxdebug/commit/c5d67a5792392dd373860f8cf880863d20b8d2e0))
61
+ * **cli:** report the real package version instead of a hardcoded 0.1.0 ([8100d53](https://github.com/lokkju/dbxdebug/commit/8100d53cf9c228d31d0ed3997561680c4aa18f04))
62
+ * **frames:** correct steps_out threshold and close review gaps ([880a965](https://github.com/lokkju/dbxdebug/commit/880a965c6855a22ae6de2edbc78091a8be05e028))
63
+ * **paths:** unify dosbox-x binary resolution between session and doctor ([0bda742](https://github.com/lokkju/dbxdebug/commit/0bda742a35e8f56f74367268612b7fd45e3c528d))
64
+ * satisfy ruff C420 and formatting gates ([d464033](https://github.com/lokkju/dbxdebug/commit/d46403357cce148df2d424ac1df54c24fcd296c3))
65
+ * **session:** close start()/stop() review gaps from Task 8 round 1 ([6032fcb](https://github.com/lokkju/dbxdebug/commit/6032fcb7f1414149adc8f5363c433bded29f7e86))
66
+ * **session:** restore process-group sweep lost by round-1's kill_group pid= ([c3cd6ff](https://github.com/lokkju/dbxdebug/commit/c3cd6ff5faed880ac9d9ef94ec3db2852ce3ab73))
67
+ * **tests:** re-scope the desync guard and close integration review gaps ([0832b6d](https://github.com/lokkju/dbxdebug/commit/0832b6d3a6026c89d03c9574b43b5c727b019b88))
68
+ * **utils:** parse bare address digits as hex, not decimal ([b0ba5be](https://github.com/lokkju/dbxdebug/commit/b0ba5bedb5b109f4279ba2e4119ee3a4268d0fda))
69
+
70
+
71
+ ### Documentation
72
+
73
+ * add CI, PyPI, and license badges to README ([cb3d2fd](https://github.com/lokkju/dbxdebug/commit/cb3d2fda3cd81c736f20dba706ef90e8e6f3e4b4))
74
+ * document the migration path onto dbxdebug ([e868090](https://github.com/lokkju/dbxdebug/commit/e8680907b976fd8ddb3ce7c5cdf5db0301fc6d54))
75
+ * **frames:** neutralise downstream references and drop a false claim ([cbbec5a](https://github.com/lokkju/dbxdebug/commit/cbbec5ad2b446ea50902872ad3d76a4034e604ad))
76
+ * rewrite the README around the session lifecycle ([5cd96ce](https://github.com/lokkju/dbxdebug/commit/5cd96ce8858f8ca4244237f158f8f067d3ab5f8b))
dbxdebug-0.4.0/LICENSE ADDED
@@ -0,0 +1,151 @@
1
+ # Polyform Shield License 1.0.0
2
+
3
+ <https://polyformproject.org/licenses/shield/1.0.0>
4
+
5
+ ## Acceptance
6
+
7
+ In order to get any license under these terms, you must agree
8
+ to them as both strict obligations and conditions to all
9
+ your licenses.
10
+
11
+ ## Copyright License
12
+
13
+ The licensor grants you a copyright license for the
14
+ software to do everything you might do with the software
15
+ that would otherwise infringe the licensor's copyright
16
+ in it for any permitted purpose. However, you may
17
+ only distribute the software according to [Distribution
18
+ License](#distribution-license) and make changes or new works
19
+ based on the software according to [Changes and New Works
20
+ License](#changes-and-new-works-license).
21
+
22
+ ## Distribution License
23
+
24
+ The licensor grants you an additional copyright license
25
+ to distribute copies of the software. Your license
26
+ to distribute covers distributing the software with
27
+ changes and new works permitted by [Changes and New Works
28
+ License](#changes-and-new-works-license).
29
+
30
+ ## Notices
31
+
32
+ You must ensure that anyone who gets a copy of any part of
33
+ the software from you also gets a copy of these terms or the
34
+ URL for them above, as well as copies of any plain-text lines
35
+ beginning with `Required Notice:` that the licensor provided
36
+ with the software. For example:
37
+
38
+ > Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
39
+
40
+ ## Changes and New Works License
41
+
42
+ The licensor grants you an additional copyright license to
43
+ make changes and new works based on the software for any
44
+ permitted purpose.
45
+
46
+ ## Patent License
47
+
48
+ The licensor grants you a patent license for the software that
49
+ covers patent claims the licensor can license, or becomes able
50
+ to license, that you would infringe by using the software.
51
+
52
+ ## Noncompete
53
+
54
+ Any purpose is a permitted purpose, except for providing any
55
+ product that competes with the software or any product the
56
+ licensor or any of its affiliates provides using the software.
57
+
58
+ ## Competition
59
+
60
+ Goods and services compete even when they provide functionality
61
+ through different kinds of interfaces or for different technical
62
+ platforms. Applications can compete with services, libraries
63
+ with plugins, frameworks with development tools, and so on,
64
+ even if they're written in different programming languages
65
+ or for different computer architectures. Goods and services
66
+ compete even when provided free of charge. If you market a
67
+ product as a practical substitute for the software or another
68
+ product, it definitely competes.
69
+
70
+ ## New Products
71
+
72
+ If you are using the software to provide a product that does
73
+ not compete, you may continue doing so even if the licensor or
74
+ any of its affiliates later provides a competing product.
75
+
76
+ ## Discontinued Products
77
+
78
+ You may begin using the software to provide a product that
79
+ competes with one the licensor or any of its affiliates has
80
+ stopped providing, unless the licensor includes a plain-text
81
+ line beginning with `Licensor Line of Business:` with the
82
+ software that mentions that line of business. For example:
83
+
84
+ > Licensor Line of Business: YoyodyneTM Desktop Software (http://example.com/desktop)
85
+
86
+ ## Sales of Business
87
+
88
+ If the licensor or any of its affiliates sells a line of
89
+ business developing the software or using the software
90
+ to provide a product, the buyer can also enforce
91
+ [Noncompete](#noncompete) for that product.
92
+
93
+ ## Fair Use
94
+
95
+ You may have "fair use" rights for the software under the
96
+ law. These terms do not limit them.
97
+
98
+ ## No Other Rights
99
+
100
+ These terms do not allow you to sublicense or transfer any of
101
+ your licenses to anyone else, or prevent the licensor from
102
+ granting licenses to anyone else. These terms do not imply
103
+ any other licenses.
104
+
105
+ ## Patent Defense
106
+
107
+ If you make any written claim that the software infringes or
108
+ contributes to infringement of any patent, your patent license
109
+ for the software granted under these terms ends immediately. If
110
+ your company makes such a claim, your patent license ends
111
+ immediately for work on behalf of your company.
112
+
113
+ ## Violations
114
+
115
+ The first time you are notified in writing that you have
116
+ violated any of these terms, or done anything with the software
117
+ not covered by your licenses, your licenses can nonetheless
118
+ continue if you come into full compliance with these terms,
119
+ and take practical steps to correct past violations, within
120
+ 32 days of receiving notice. Otherwise, all your licenses
121
+ end immediately.
122
+
123
+ ## No Liability
124
+
125
+ ***As far as the law allows, the software comes as is, without
126
+ any warranty or condition, and the licensor will not be liable
127
+ to anyone for any damages related to this software or this
128
+ license, under any kind of legal claim.***
129
+
130
+ ## Definitions
131
+
132
+ The **licensor** is the individual or entity offering these
133
+ terms, and the **software** is the software the licensor makes
134
+ available under these terms.
135
+
136
+ **You** refers to the individual or entity agreeing to these
137
+ terms.
138
+
139
+ **Your company** is any legal entity, sole proprietorship,
140
+ or other kind of organization that you work for, plus all
141
+ organizations that have control over, are under the control of,
142
+ or are under common control with that organization. **Control**
143
+ means ownership of substantially all the assets of an entity,
144
+ or the power to direct its management and policies by vote,
145
+ contract, or otherwise. Control can be direct or indirect.
146
+
147
+ **Your licenses** are all the licenses granted to you for the
148
+ software under these terms.
149
+
150
+ **Use** means anything you do with the software requiring one
151
+ of your licenses.