linc-device-kit 1.0.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,41 @@
1
+ """linc-device-kit — shared device models and protocols for LINC tools."""
2
+
3
+ from linc_device_kit.exceptions import (
4
+ BuildFailed,
5
+ DeviceKitError,
6
+ DeviceNotConfigured,
7
+ DeviceNotReachable,
8
+ InstallFailed,
9
+ QualityGateFailed,
10
+ SigningError,
11
+ WDAStartupFailed,
12
+ )
13
+ from linc_device_kit.models import (
14
+ DeviceInfo,
15
+ DeviceType,
16
+ ElementNode,
17
+ Platform,
18
+ Rect,
19
+ ScreenState,
20
+ SemanticRole,
21
+ )
22
+ from linc_device_kit.protocol import IDeviceIO
23
+
24
+ __all__ = [
25
+ "BuildFailed",
26
+ "DeviceInfo",
27
+ "DeviceKitError",
28
+ "DeviceNotConfigured",
29
+ "DeviceNotReachable",
30
+ "DeviceType",
31
+ "ElementNode",
32
+ "IDeviceIO",
33
+ "InstallFailed",
34
+ "Platform",
35
+ "QualityGateFailed",
36
+ "Rect",
37
+ "ScreenState",
38
+ "SemanticRole",
39
+ "SigningError",
40
+ "WDAStartupFailed",
41
+ ]
@@ -0,0 +1,36 @@
1
+ """Typed failure taxonomy for LINC device operations.
2
+
3
+ No I/O — these are pure exception class definitions.
4
+ """
5
+
6
+
7
+ class DeviceKitError(Exception):
8
+ """Base exception for all linc-device-kit errors."""
9
+
10
+
11
+ class DeviceNotReachable(DeviceKitError):
12
+ """Device is not connected or not responding."""
13
+
14
+
15
+ class DeviceNotConfigured(DeviceKitError):
16
+ """Device exists but lacks required configuration."""
17
+
18
+
19
+ class BuildFailed(DeviceKitError):
20
+ """Project build step failed."""
21
+
22
+
23
+ class InstallFailed(DeviceKitError):
24
+ """App installation onto device failed."""
25
+
26
+
27
+ class QualityGateFailed(DeviceKitError):
28
+ """Quality gate (lint, test, score) did not pass."""
29
+
30
+
31
+ class WDAStartupFailed(DeviceKitError):
32
+ """WebDriverAgent failed to start on iOS device."""
33
+
34
+
35
+ class SigningError(DeviceKitError):
36
+ """Code signing or provisioning profile error."""
@@ -0,0 +1,214 @@
1
+ """Shared device models for LINC tools.
2
+
3
+ Pure data structures — no I/O, no subprocess, no network.
4
+ """
5
+
6
+ from __future__ import annotations
7
+
8
+ from dataclasses import dataclass, field
9
+ from enum import StrEnum
10
+ from typing import Any
11
+
12
+
13
+ class Platform(StrEnum):
14
+ """Target mobile platform."""
15
+
16
+ ANDROID = "android"
17
+ IOS = "ios"
18
+
19
+
20
+ class DeviceType(StrEnum):
21
+ """Physical or virtual device form factor."""
22
+
23
+ PHONE = "phone"
24
+ TABLET = "tablet"
25
+ WATCH = "watch"
26
+ TV = "tv"
27
+ EMULATOR = "emulator"
28
+ SIMULATOR = "simulator"
29
+
30
+
31
+ class SemanticRole(StrEnum):
32
+ """UI element semantic role (accessibility role)."""
33
+
34
+ BUTTON = "button"
35
+ TEXT = "text"
36
+ IMAGE = "image"
37
+ CHECKBOX = "checkbox"
38
+ SWITCH = "switch"
39
+ SLIDER = "slider"
40
+ TEXT_FIELD = "text_field"
41
+ HEADING = "heading"
42
+ LIST = "list"
43
+ LIST_ITEM = "list_item"
44
+ TAB = "tab"
45
+ LINK = "link"
46
+ CONTAINER = "container"
47
+ UNKNOWN = "unknown"
48
+
49
+
50
+ @dataclass
51
+ class DeviceInfo:
52
+ """Identity and metadata for a connected device."""
53
+
54
+ serial: str
55
+ platform: Platform
56
+ device_type: DeviceType
57
+ model: str = ""
58
+ os_version: str = ""
59
+
60
+ def to_dict(self) -> dict[str, Any]:
61
+ return {
62
+ "serial": self.serial,
63
+ "platform": str(self.platform),
64
+ "device_type": str(self.device_type),
65
+ "model": self.model,
66
+ "os_version": self.os_version,
67
+ }
68
+
69
+ @classmethod
70
+ def from_dict(cls, d: dict[str, Any]) -> DeviceInfo:
71
+ return cls(
72
+ serial=d["serial"],
73
+ platform=Platform(d["platform"]),
74
+ device_type=DeviceType(d["device_type"]),
75
+ model=d.get("model", ""),
76
+ os_version=d.get("os_version", ""),
77
+ )
78
+
79
+
80
+ @dataclass
81
+ class Rect:
82
+ """Axis-aligned bounding rectangle in screen coordinates."""
83
+
84
+ x: int
85
+ y: int
86
+ width: int
87
+ height: int
88
+
89
+ def to_dict(self) -> dict[str, int]:
90
+ return {"x": self.x, "y": self.y, "width": self.width, "height": self.height}
91
+
92
+ @classmethod
93
+ def from_dict(cls, d: dict[str, int]) -> Rect:
94
+ return cls(x=d["x"], y=d["y"], width=d["width"], height=d["height"])
95
+
96
+
97
+ @dataclass
98
+ class ElementNode:
99
+ """A single UI element in the accessibility tree."""
100
+
101
+ id: str = ""
102
+ text: str = ""
103
+ description: str = ""
104
+ value: str | None = None
105
+ role: str = ""
106
+ bounds: Rect | None = None
107
+ clickable: bool = False
108
+ enabled: bool = True
109
+ focused: bool = False
110
+ scrollable: bool = False
111
+ checked: bool | None = None
112
+ children: list[ElementNode] = field(default_factory=list)
113
+
114
+ def to_dict(self) -> dict[str, Any]:
115
+ """Compact serialization — omits fields that match their defaults."""
116
+ d: dict[str, Any] = {}
117
+ if self.id:
118
+ d["id"] = self.id
119
+ if self.text:
120
+ d["text"] = self.text
121
+ if self.description:
122
+ d["description"] = self.description
123
+ if self.value is not None:
124
+ d["value"] = self.value
125
+ if self.role:
126
+ d["role"] = self.role
127
+ if self.bounds is not None:
128
+ d["bounds"] = self.bounds.to_dict()
129
+ if self.clickable:
130
+ d["clickable"] = True
131
+ if not self.enabled:
132
+ d["enabled"] = False
133
+ if self.focused:
134
+ d["focused"] = True
135
+ if self.scrollable:
136
+ d["scrollable"] = True
137
+ if self.checked is not None:
138
+ d["checked"] = self.checked
139
+ if self.children:
140
+ d["children"] = [c.to_dict() for c in self.children]
141
+ return d
142
+
143
+ @classmethod
144
+ def from_dict(cls, d: dict[str, Any]) -> ElementNode:
145
+ bounds_raw = d.get("bounds")
146
+ children_raw = d.get("children", [])
147
+ return cls(
148
+ id=d.get("id", ""),
149
+ text=d.get("text", ""),
150
+ description=d.get("description", ""),
151
+ value=d.get("value"),
152
+ role=d.get("role", ""),
153
+ bounds=Rect.from_dict(bounds_raw) if bounds_raw else None,
154
+ clickable=d.get("clickable", False),
155
+ enabled=d.get("enabled", True),
156
+ focused=d.get("focused", False),
157
+ scrollable=d.get("scrollable", False),
158
+ checked=d.get("checked"),
159
+ children=[ElementNode.from_dict(c) for c in children_raw],
160
+ )
161
+
162
+
163
+ def _count_nodes(node: ElementNode) -> int:
164
+ """Total number of nodes in an element subtree (the node plus all descendants)."""
165
+ return 1 + sum(_count_nodes(child) for child in node.children)
166
+
167
+
168
+ @dataclass
169
+ class ScreenState:
170
+ """Snapshot of a device screen at a point in time."""
171
+
172
+ device: DeviceInfo
173
+ timestamp: str # ISO 8601
174
+ elements: ElementNode
175
+ screenshot: bytes | None = None
176
+ foreground_app: str = ""
177
+ screen_name: str | None = None
178
+
179
+ @property
180
+ def element_count(self) -> int:
181
+ """Number of elements in the tree (root + descendants).
182
+
183
+ Computed from ``elements`` so it can never drift from the real child
184
+ count — there is no independently-settable backing field.
185
+ """
186
+ return _count_nodes(self.elements)
187
+
188
+ def to_dict(self) -> dict[str, Any]:
189
+ """Serialize — excludes binary screenshot."""
190
+ d: dict[str, Any] = {
191
+ "device": self.device.to_dict(),
192
+ "timestamp": self.timestamp,
193
+ "elements": self.elements.to_dict(),
194
+ "element_count": self.element_count,
195
+ "foreground_app": self.foreground_app,
196
+ }
197
+ if self.screen_name is not None:
198
+ d["screen_name"] = self.screen_name
199
+ return d
200
+
201
+ @classmethod
202
+ def from_dict(cls, d: dict[str, Any]) -> ScreenState:
203
+ """Reconstruct from ``to_dict`` output.
204
+
205
+ ``element_count`` is ignored if present (it is a computed property), so
206
+ ``from_dict(to_dict()) == s`` holds.
207
+ """
208
+ return cls(
209
+ device=DeviceInfo.from_dict(d["device"]),
210
+ timestamp=d["timestamp"],
211
+ elements=ElementNode.from_dict(d.get("elements", {})),
212
+ foreground_app=d.get("foreground_app", ""),
213
+ screen_name=d.get("screen_name"),
214
+ )
@@ -0,0 +1,65 @@
1
+ """Device I/O protocol — the contract that all device adapters must satisfy.
2
+
3
+ No I/O — this is a typing.Protocol definition only.
4
+ """
5
+
6
+ from __future__ import annotations
7
+
8
+ from typing import Protocol, runtime_checkable
9
+
10
+ from linc_device_kit.models import ElementNode
11
+
12
+
13
+ @runtime_checkable
14
+ class IDeviceIO(Protocol):
15
+ """Uniform interface for interacting with a connected device."""
16
+
17
+ def screenshot(self) -> bytes: ...
18
+
19
+ def elements(self) -> ElementNode: ...
20
+
21
+ def foreground_app(self) -> str: ...
22
+
23
+ def logs(self, lines: int = 50, tag: str = "") -> list[str]: ...
24
+
25
+ def tap(self, x: int, y: int) -> None: ...
26
+
27
+ def swipe(
28
+ self, x1: int, y1: int, x2: int, y2: int, duration_ms: int = 300
29
+ ) -> None: ...
30
+
31
+ def type_text(self, text: str) -> None: ...
32
+
33
+ def press_key(self, key: str) -> None: ...
34
+
35
+ def install(self, artifact_path: str) -> None: ...
36
+
37
+ def launch(self, package: str, uri: str = "") -> None: ...
38
+
39
+ def kill(self, package: str) -> None: ...
40
+
41
+ def clear_app_data(self, package: str) -> None:
42
+ """Wipe an app's data + cache, returning it to first-install state.
43
+
44
+ On Android this is ``pm clear`` — it revokes granted runtime
45
+ permissions and removes AndroidKeystore aliases as a side effect, so
46
+ callers that need a permission pre-granted afterward must re-grant it
47
+ (see ``grant_permission``). Used to force a true cold start for
48
+ consent/onboarding-gated test flows.
49
+ """
50
+ ...
51
+
52
+ def grant_permission(self, package: str, permission: str) -> None:
53
+ """Grant a runtime permission to an app without the system dialog.
54
+
55
+ On Android this is ``pm grant``. Companion to ``clear_app_data`` —
56
+ which revokes runtime permissions — so a cold-start flow can re-grant
57
+ (e.g. ``android.permission.CAMERA``) as part of its setup.
58
+ """
59
+ ...
60
+
61
+ def forward_debug_port(self, pid: int) -> int: ...
62
+
63
+ def list_debug_targets(self) -> list[dict]: ...
64
+
65
+ def capabilities(self) -> set[str]: ...
@@ -0,0 +1,101 @@
1
+ Metadata-Version: 2.5
2
+ Name: linc-device-kit
3
+ Version: 1.0.0
4
+ Summary: Shared device models and protocols for LINC tools
5
+ Project-URL: Homepage, https://github.com/LincForge/device-kit
6
+ Project-URL: Issues, https://github.com/LincForge/device-kit/issues
7
+ Author: LINC Innovations
8
+ License-Expression: Apache-2.0
9
+ License-File: LICENSE
10
+ License-File: NOTICE
11
+ Requires-Python: >=3.12
12
+ Provides-Extra: dev
13
+ Requires-Dist: pytest>=8.0; extra == 'dev'
14
+ Requires-Dist: ruff>=0.9; extra == 'dev'
15
+ Description-Content-Type: text/markdown
16
+
17
+ # linc-device-kit
18
+
19
+ Plain data types for tools that drive Android and iOS devices: an accessibility-tree node, a
20
+ screen snapshot, device identity, and the `IDeviceIO` protocol a device adapter implements.
21
+ Pure dataclasses with no I/O and no dependencies, so an MCP server, a test harness and a
22
+ quality checker can share one vocabulary and one compact JSON shape.
23
+ [nerve](https://github.com/LincForge/nerve) uses it.
24
+
25
+ ## Install
26
+
27
+ ```bash
28
+ pip install linc-device-kit # or: uv add linc-device-kit
29
+ ```
30
+
31
+ Python 3.12+. No runtime dependencies.
32
+
33
+ ## Example
34
+
35
+ ```python
36
+ import json
37
+
38
+ from linc_device_kit import (
39
+ DeviceInfo, DeviceType, ElementNode, Platform, Rect, ScreenState, SemanticRole,
40
+ )
41
+
42
+ login = ElementNode(
43
+ id="login", text="Sign in", role=SemanticRole.BUTTON,
44
+ bounds=Rect(x=40, y=900, width=400, height=96), clickable=True,
45
+ )
46
+ root = ElementNode(role=SemanticRole.CONTAINER, children=[login])
47
+ state = ScreenState(
48
+ device=DeviceInfo("emulator-5554", Platform.ANDROID, DeviceType.EMULATOR),
49
+ timestamp="2026-10-01T12:00:00Z",
50
+ elements=root,
51
+ foreground_app="com.example.app",
52
+ )
53
+
54
+ payload = state.to_dict() # compact: fields at their defaults are omitted
55
+ print(json.dumps(payload["elements"]))
56
+ print(payload["element_count"])
57
+ assert ScreenState.from_dict(payload) == state
58
+ ```
59
+
60
+ ```console
61
+ $ python example.py
62
+ {"role": "container", "children": [{"id": "login", "text": "Sign in", "role": "button", "bounds": {"x": 40, "y": 900, "width": 400, "height": 96}, "clickable": true}]}
63
+ 2
64
+ ```
65
+
66
+ `ElementNode.to_dict()` leaves out every field that is at its default, which keeps an
67
+ accessibility tree small enough to hand to an AI agent. `from_dict` restores the defaults, so
68
+ `from_dict(to_dict(x)) == x`. `ScreenState.to_dict()` never includes the screenshot bytes.
69
+
70
+ ## What is in it
71
+
72
+ | Type | What it holds |
73
+ |------|---------------|
74
+ | `ElementNode` | One accessibility-tree node: id, text, description, value, role, bounds, clickable/enabled/focused/scrollable/checked, children |
75
+ | `ScreenState` | A screen at a point in time: device, ISO 8601 timestamp, element tree, optional screenshot bytes, foreground app, screen name; `element_count` is computed from the tree |
76
+ | `DeviceInfo` | Serial, platform, device type, model, OS version |
77
+ | `Rect` | Axis-aligned bounds: x, y, width, height |
78
+ | `Platform`, `DeviceType`, `SemanticRole` | `StrEnum`s, so they serialise as plain strings |
79
+ | `IDeviceIO` | `@runtime_checkable` protocol: screenshot, elements, foreground_app, logs, tap, swipe, type_text, press_key, install, launch, kill, clear_app_data, grant_permission, forward_debug_port, list_debug_targets, capabilities |
80
+ | `DeviceKitError` | Base of the exception hierarchy (`DeviceNotReachable`, `DeviceNotConfigured`, `InstallFailed`, `BuildFailed`, `SigningError`, `WDAStartupFailed`, `QualityGateFailed`) |
81
+
82
+ ## Development
83
+
84
+ ```bash
85
+ uv sync --all-extras
86
+ uv run pytest
87
+ ```
88
+
89
+ ## How this repo works
90
+
91
+ This is a release mirror of a private LINC repository. The code is built by LINC's AI software
92
+ factory under human review, and each release lands here as one commit. Issues are welcome; see
93
+ [CONTRIBUTING.md](CONTRIBUTING.md). To report a security problem, see [SECURITY.md](SECURITY.md).
94
+
95
+ ## License
96
+
97
+ Apache-2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE).
98
+
99
+ ---
100
+
101
+ Built by [LINC Innovations](https://lincinnovations.com/audit?utm_source=github&utm_medium=readme&utm_campaign=device-kit). We diagnose flaky device test suites.
@@ -0,0 +1,9 @@
1
+ linc_device_kit/__init__.py,sha256=hn1hUkapcqEWJtTlR6NCd02GIzbu3hQv7_cRoMe4eGY,821
2
+ linc_device_kit/exceptions.py,sha256=azMlRF_uai6J5r8IFW4PdDh8oSNWlAU6FqabUxCnYB8,856
3
+ linc_device_kit/models.py,sha256=U_Fvn9hDDDlgMSUT_7Ry5gl7qpYn92yQYS-T67bfDBc,6135
4
+ linc_device_kit/protocol.py,sha256=lfTK3G8sNxZnRK6m2YMiY1FT6fzG_St74PxbSViw_QU,2050
5
+ linc_device_kit-1.0.0.dist-info/METADATA,sha256=V5qSx1mYyG7iIB6Q1NlEupg5ox-bLPW8TxM43x9vLAk,3966
6
+ linc_device_kit-1.0.0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
7
+ linc_device_kit-1.0.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
8
+ linc_device_kit-1.0.0.dist-info/licenses/NOTICE,sha256=BOZcYurhcLejYR6xkeYCG5HjDRe7Wy3wePw3tJj_zkY,52
9
+ linc_device_kit-1.0.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,2 @@
1
+ LINC Device Kit
2
+ Copyright 2026 LINC Innovations LLC