wcp 0.1.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.
Files changed (183) hide show
  1. wcp-0.1.0.dist-info/METADATA +82 -0
  2. wcp-0.1.0.dist-info/RECORD +183 -0
  3. wcp-0.1.0.dist-info/WHEEL +5 -0
  4. wcp-0.1.0.dist-info/entry_points.txt +2 -0
  5. wcp-0.1.0.dist-info/licenses/LICENSE +201 -0
  6. wcp-0.1.0.dist-info/top_level.txt +1 -0
  7. wcpd/__init__.py +0 -0
  8. wcpd/adapters/__init__.py +0 -0
  9. wcpd/adapters/_proc.py +41 -0
  10. wcpd/adapters/ai/__init__.py +0 -0
  11. wcpd/adapters/ai/memory.py +143 -0
  12. wcpd/adapters/ai/store.py +135 -0
  13. wcpd/adapters/browser/__init__.py +15 -0
  14. wcpd/adapters/browser/cdp.py +348 -0
  15. wcpd/adapters/browser/port.py +189 -0
  16. wcpd/adapters/catalog.py +125 -0
  17. wcpd/adapters/container/__init__.py +105 -0
  18. wcpd/adapters/events/__init__.py +9 -0
  19. wcpd/adapters/events/manager.py +440 -0
  20. wcpd/adapters/families/__init__.py +0 -0
  21. wcpd/adapters/families/accessibility.py +246 -0
  22. wcpd/adapters/families/ai.py +173 -0
  23. wcpd/adapters/families/apps.py +112 -0
  24. wcpd/adapters/families/audio.py +109 -0
  25. wcpd/adapters/families/browser.py +180 -0
  26. wcpd/adapters/families/camera.py +158 -0
  27. wcpd/adapters/families/clipboard.py +102 -0
  28. wcpd/adapters/families/display.py +119 -0
  29. wcpd/adapters/families/events.py +122 -0
  30. wcpd/adapters/families/goal.py +215 -0
  31. wcpd/adapters/families/graph.py +193 -0
  32. wcpd/adapters/families/hardware.py +42 -0
  33. wcpd/adapters/families/host.py +124 -0
  34. wcpd/adapters/families/identity.py +63 -0
  35. wcpd/adapters/families/input.py +85 -0
  36. wcpd/adapters/families/net.py +144 -0
  37. wcpd/adapters/families/osa.py +55 -0
  38. wcpd/adapters/families/packages.py +119 -0
  39. wcpd/adapters/families/process.py +131 -0
  40. wcpd/adapters/families/scheduler.py +147 -0
  41. wcpd/adapters/families/screen.py +43 -0
  42. wcpd/adapters/families/search.py +177 -0
  43. wcpd/adapters/families/security.py +289 -0
  44. wcpd/adapters/families/services.py +123 -0
  45. wcpd/adapters/families/storage.py +105 -0
  46. wcpd/adapters/families/timeline.py +154 -0
  47. wcpd/adapters/families/window.py +105 -0
  48. wcpd/adapters/families/workspace.py +131 -0
  49. wcpd/adapters/goal/__init__.py +0 -0
  50. wcpd/adapters/goal/store.py +284 -0
  51. wcpd/adapters/graph/__init__.py +8 -0
  52. wcpd/adapters/graph/model.py +586 -0
  53. wcpd/adapters/graph/store.py +346 -0
  54. wcpd/adapters/linux/__init__.py +55 -0
  55. wcpd/adapters/linux/apps.py +89 -0
  56. wcpd/adapters/linux/audio.py +156 -0
  57. wcpd/adapters/linux/ax.py +860 -0
  58. wcpd/adapters/linux/camera.py +178 -0
  59. wcpd/adapters/linux/clipboard.py +83 -0
  60. wcpd/adapters/linux/desktop.py +211 -0
  61. wcpd/adapters/linux/display.py +212 -0
  62. wcpd/adapters/linux/hardware.py +448 -0
  63. wcpd/adapters/linux/host.py +184 -0
  64. wcpd/adapters/linux/identity.py +164 -0
  65. wcpd/adapters/linux/net.py +235 -0
  66. wcpd/adapters/linux/packages.py +241 -0
  67. wcpd/adapters/linux/process.py +131 -0
  68. wcpd/adapters/linux/scheduler.py +328 -0
  69. wcpd/adapters/linux/search.py +154 -0
  70. wcpd/adapters/linux/security.py +84 -0
  71. wcpd/adapters/linux/services.py +178 -0
  72. wcpd/adapters/linux/storage.py +227 -0
  73. wcpd/adapters/macos/__init__.py +62 -0
  74. wcpd/adapters/macos/apps.py +174 -0
  75. wcpd/adapters/macos/audio.py +228 -0
  76. wcpd/adapters/macos/ax.py +1036 -0
  77. wcpd/adapters/macos/camera.py +246 -0
  78. wcpd/adapters/macos/clipboard.py +103 -0
  79. wcpd/adapters/macos/desktop.py +327 -0
  80. wcpd/adapters/macos/display.py +231 -0
  81. wcpd/adapters/macos/hardware.py +429 -0
  82. wcpd/adapters/macos/host.py +162 -0
  83. wcpd/adapters/macos/identity.py +216 -0
  84. wcpd/adapters/macos/net.py +464 -0
  85. wcpd/adapters/macos/osa.py +40 -0
  86. wcpd/adapters/macos/packages.py +166 -0
  87. wcpd/adapters/macos/process.py +255 -0
  88. wcpd/adapters/macos/scheduler.py +419 -0
  89. wcpd/adapters/macos/search.py +160 -0
  90. wcpd/adapters/macos/security.py +204 -0
  91. wcpd/adapters/macos/services.py +235 -0
  92. wcpd/adapters/macos/storage.py +233 -0
  93. wcpd/adapters/ocr.py +14 -0
  94. wcpd/adapters/portable/__init__.py +0 -0
  95. wcpd/adapters/portable/container.py +375 -0
  96. wcpd/adapters/portable/fs.py +522 -0
  97. wcpd/adapters/portable/git.py +561 -0
  98. wcpd/adapters/portable/k8s.py +448 -0
  99. wcpd/adapters/portable/vm.py +379 -0
  100. wcpd/adapters/posix/__init__.py +0 -0
  101. wcpd/adapters/posix/exec.py +222 -0
  102. wcpd/adapters/select.py +167 -0
  103. wcpd/adapters/system.py +235 -0
  104. wcpd/adapters/timeline/__init__.py +0 -0
  105. wcpd/adapters/timeline/store.py +203 -0
  106. wcpd/adapters/windows/__init__.py +61 -0
  107. wcpd/adapters/windows/_win32.py +147 -0
  108. wcpd/adapters/windows/apps.py +92 -0
  109. wcpd/adapters/windows/audio.py +224 -0
  110. wcpd/adapters/windows/ax.py +1028 -0
  111. wcpd/adapters/windows/camera.py +239 -0
  112. wcpd/adapters/windows/clipboard.py +101 -0
  113. wcpd/adapters/windows/desktop.py +87 -0
  114. wcpd/adapters/windows/display.py +216 -0
  115. wcpd/adapters/windows/exec.py +54 -0
  116. wcpd/adapters/windows/hardware.py +295 -0
  117. wcpd/adapters/windows/host.py +203 -0
  118. wcpd/adapters/windows/identity.py +164 -0
  119. wcpd/adapters/windows/net.py +234 -0
  120. wcpd/adapters/windows/packages.py +162 -0
  121. wcpd/adapters/windows/process.py +135 -0
  122. wcpd/adapters/windows/scheduler.py +190 -0
  123. wcpd/adapters/windows/screen.py +49 -0
  124. wcpd/adapters/windows/search.py +170 -0
  125. wcpd/adapters/windows/security.py +107 -0
  126. wcpd/adapters/windows/services.py +184 -0
  127. wcpd/adapters/windows/storage.py +232 -0
  128. wcpd/adapters/workspace/__init__.py +0 -0
  129. wcpd/adapters/workspace/store.py +216 -0
  130. wcpd/bindings/__init__.py +0 -0
  131. wcpd/bindings/mcp_binding.py +105 -0
  132. wcpd/bindings/stdio_binding.py +212 -0
  133. wcpd/cli.py +445 -0
  134. wcpd/config.py +46 -0
  135. wcpd/core/__init__.py +0 -0
  136. wcpd/core/errors.py +34 -0
  137. wcpd/core/manifest.py +43 -0
  138. wcpd/core/model.py +83 -0
  139. wcpd/core/platform.py +26 -0
  140. wcpd/core/registry.py +105 -0
  141. wcpd/export.py +97 -0
  142. wcpd/ports/__init__.py +38 -0
  143. wcpd/ports/ai.py +49 -0
  144. wcpd/ports/apps.py +16 -0
  145. wcpd/ports/audio.py +21 -0
  146. wcpd/ports/ax.py +75 -0
  147. wcpd/ports/browser.py +50 -0
  148. wcpd/ports/camera.py +25 -0
  149. wcpd/ports/clipboard.py +11 -0
  150. wcpd/ports/container.py +35 -0
  151. wcpd/ports/display.py +17 -0
  152. wcpd/ports/events.py +42 -0
  153. wcpd/ports/git.py +30 -0
  154. wcpd/ports/goal.py +57 -0
  155. wcpd/ports/graph.py +72 -0
  156. wcpd/ports/hardware.py +19 -0
  157. wcpd/ports/host.py +21 -0
  158. wcpd/ports/identity.py +17 -0
  159. wcpd/ports/input.py +12 -0
  160. wcpd/ports/k8s.py +73 -0
  161. wcpd/ports/net.py +23 -0
  162. wcpd/ports/osa.py +10 -0
  163. wcpd/ports/packages.py +16 -0
  164. wcpd/ports/process.py +19 -0
  165. wcpd/ports/scheduler.py +29 -0
  166. wcpd/ports/screen.py +11 -0
  167. wcpd/ports/search.py +43 -0
  168. wcpd/ports/security.py +39 -0
  169. wcpd/ports/services.py +16 -0
  170. wcpd/ports/storage.py +15 -0
  171. wcpd/ports/timeline.py +53 -0
  172. wcpd/ports/vm.py +26 -0
  173. wcpd/ports/window.py +20 -0
  174. wcpd/ports/workspace.py +60 -0
  175. wcpd/resolution.py +68 -0
  176. wcpd/security/__init__.py +0 -0
  177. wcpd/security/audit.py +146 -0
  178. wcpd/security/auth.py +111 -0
  179. wcpd/security/scopes.py +218 -0
  180. wcpd/server.py +29 -0
  181. wcpd/tools/__init__.py +0 -0
  182. wcpd/tools/filesystem.py +15 -0
  183. wcpd/tools/util.py +64 -0
@@ -0,0 +1,82 @@
1
+ Metadata-Version: 2.4
2
+ Name: wcp
3
+ Version: 0.1.0
4
+ Summary: wcpd: reference implementation of the Workstation Capability Protocol (WCP)
5
+ Author: The Workstation Capability Protocol contributors
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/kchemorion/WorkstationCapabilityProtocol
8
+ Project-URL: Repository, https://github.com/kchemorion/WorkstationCapabilityProtocol
9
+ Project-URL: Documentation, https://github.com/kchemorion/WorkstationCapabilityProtocol/blob/main/SPEC.md
10
+ Project-URL: Issues, https://github.com/kchemorion/WorkstationCapabilityProtocol/issues
11
+ Keywords: mcp,model-context-protocol,ai-agents,automation,desktop-automation,accessibility,workstation,wcp
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: Apache Software License
15
+ Classifier: Operating System :: MacOS
16
+ Classifier: Operating System :: POSIX :: Linux
17
+ Classifier: Operating System :: Microsoft :: Windows
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Topic :: Software Development :: Libraries
23
+ Classifier: Topic :: System :: Systems Administration
24
+ Requires-Python: >=3.10
25
+ Description-Content-Type: text/markdown
26
+ License-File: LICENSE
27
+ Requires-Dist: pyjwt>=2.8
28
+ Requires-Dist: mcp>=1.2
29
+ Requires-Dist: uvicorn>=0.30
30
+ Requires-Dist: jsonschema>=4.21
31
+ Provides-Extra: dev
32
+ Requires-Dist: pytest>=8; extra == "dev"
33
+ Requires-Dist: pytest-asyncio>=0.23; extra == "dev"
34
+ Requires-Dist: jsonschema>=4.21; extra == "dev"
35
+ Provides-Extra: linux-ax
36
+ Requires-Dist: PyGObject>=3.42; extra == "linux-ax"
37
+ Provides-Extra: windows-ax
38
+ Requires-Dist: comtypes>=1.2; extra == "windows-ax"
39
+ Provides-Extra: graph
40
+ Requires-Dist: rdflib>=6; extra == "graph"
41
+ Dynamic: license-file
42
+
43
+ # wcpd — Workstation Capability Protocol (reference server)
44
+
45
+ `wcpd` is the reference implementation of the **Workstation Capability Protocol (WCP)** — an open, vendor-neutral standard that lets an AI agent discover, understand, and operate a whole workstation under governed, audited, revocable authority.
46
+
47
+ It exposes **35 capability families / 258 operations** — accessibility tree, windows, screen, files, processes, packages, services, containers, VMs, Kubernetes, git, networking, a browser (Chrome DevTools), and an RDF/PROV-O knowledge-graph view of the machine — behind least-privilege scopes, sandbox confinement, and a hash-chained tamper-evident audit log. It speaks the [Model Context Protocol](https://modelcontextprotocol.io), so any MCP client (Claude Desktop, Claude Code, …) can use it today.
48
+
49
+ ## Install
50
+
51
+ ```bash
52
+ pip install wcp
53
+ pip install "wcp[graph]" # + live SPARQL (rdflib) for wcp.graph.export
54
+ ```
55
+
56
+ Extras: `graph` (rdflib for live SPARQL), `linux-ax` (PyGObject for the Linux AT-SPI2 accessibility backend), `windows-ax` (comtypes for the Windows UI Automation backend).
57
+
58
+ ## Run
59
+
60
+ ```bash
61
+ wcpd stdio # local single-user MCP over stdio (OS session = trust boundary)
62
+ wcpd serve # HTTP/MCP binding (workstation-addressed JWT) for networked use
63
+ wcpd doctor # probe which capability tiers this host supports
64
+ ```
65
+
66
+ Restricted scopes are off by default and opt-in per flag:
67
+ `--allow-input --allow-osa --allow-browser-eval --allow-scheduler --allow-secrets`.
68
+
69
+ ## Security
70
+
71
+ Every operation carries exactly one scope (`wcp:<family>:<class>`); five restricted scopes (`input:synthesize`, `osa:run`, `browser:evaluate`, `scheduler:control`, `security:secrets`) are never granted by wildcard and are opt-in per flag. Filesystem-touching families are sandbox-confined; every invocation (including denials) is appended to a SHA-256 hash-chained audit log that `wcp.security.audit_verify` can re-check for tampering. WCP never bypasses SIP/TCC/sudo — where a capability isn't available it returns `WCP_BACKEND_UNAVAILABLE` rather than faking a result.
72
+
73
+ ## Connect to Claude Desktop
74
+
75
+ Install into a venv outside macOS TCC-protected folders, add a `wcp` entry to
76
+ `~/Library/Application Support/Claude/claude_desktop_config.json`, restart Claude Desktop,
77
+ and grant Accessibility + Screen Recording. Full guide, complete capability catalog, and
78
+ the normative spec: **https://github.com/kchemorion/WorkstationCapabilityProtocol**
79
+
80
+ ## License
81
+
82
+ Apache-2.0. See [`LICENSE`](LICENSE).
@@ -0,0 +1,183 @@
1
+ wcp-0.1.0.dist-info/licenses/LICENSE,sha256=bFmgs4OC9zGzp_CZ9uV8ELI95yrO8j3SQZvOlNlAQTM,11378
2
+ wcpd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ wcpd/cli.py,sha256=o_AmnnjdL-jLhv0JPfeyrgNrr2wcM95lqG0YDseKiKU,15543
4
+ wcpd/config.py,sha256=rMWtJ09mPbf6aSoV2A5mVMU6M1weMHAjKsnqAIKqYcM,1572
5
+ wcpd/export.py,sha256=hKF0CgEChy3Oa5q7WC1j-7Y7faWiu3H_9XvrdFk1Q0I,3227
6
+ wcpd/resolution.py,sha256=LyGux0vXTPoqR7Ccsxw7n_ZLmyNdZl_jn7WIDOFa6gg,2488
7
+ wcpd/server.py,sha256=a1Ix4K6DAtyw2tXUiX_SaMjJ2mEhWjEAdf6Vpi8p7BY,975
8
+ wcpd/adapters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
+ wcpd/adapters/_proc.py,sha256=naOkzmcxyROK08ukGmtX_WszXuur4zRLrRokxyt6ppg,1189
10
+ wcpd/adapters/catalog.py,sha256=Zpf_kyXVckb5FjxIm4j1htptUvDDSt8_5vj-wmch2N4,5514
11
+ wcpd/adapters/ocr.py,sha256=Iqj_-gUHC67cn6UOjlMSTjv95w_TkmvbWKelaKJaCCs,509
12
+ wcpd/adapters/select.py,sha256=FuwJhUg_D-jhp4_xDcDaz8ewBYE461qbaha8GejzFxo,8163
13
+ wcpd/adapters/system.py,sha256=PN0GmNxdLSb67ZiUG_uoTOR7KFVkhHptUb46qEsie5A,8308
14
+ wcpd/adapters/ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
+ wcpd/adapters/ai/memory.py,sha256=CQoZlo_W2M-2vVVBjugMLi1eIH3leuIIKp16PhSxFzw,5609
16
+ wcpd/adapters/ai/store.py,sha256=jUKtzB0l_A6flrthGygdEaDJZmKDTQT3MYArd3g-V1U,5911
17
+ wcpd/adapters/browser/__init__.py,sha256=bXa0ltzBJ6JtBK2qjzABV5gyTFFf9-zW7oKg1xA6RQI,782
18
+ wcpd/adapters/browser/cdp.py,sha256=uPaU0q4ml-4rm6FYVo760ydrV0VGfwRfPtvFAOoP4JM,12510
19
+ wcpd/adapters/browser/port.py,sha256=eZ1-3yZivA6vaMxpQs233jI8YnS-d3no4RDZi8dDyXs,7486
20
+ wcpd/adapters/container/__init__.py,sha256=2rY-9Wruy7_k2DAniTpovanH_9FC4BY9vtzrE5e6gvE,5015
21
+ wcpd/adapters/events/__init__.py,sha256=PgFm5jRQZNPmrw0cyN9q5AvWzz2rKk9-PXG0MFYwlok,380
22
+ wcpd/adapters/events/manager.py,sha256=jIjh7e0DbtfRgTJsT-epPJbY80Cls2iy8zEIg_zfO7w,18733
23
+ wcpd/adapters/families/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
+ wcpd/adapters/families/accessibility.py,sha256=RKbf4_ca15DKC7vy6NSSvrUtUolkJuepX4Gr1C5flGM,7353
25
+ wcpd/adapters/families/ai.py,sha256=R_4M4eL5sZ3KmXo8dE-6xQ1JnqCnFZtI7rWOCI0lTUc,6078
26
+ wcpd/adapters/families/apps.py,sha256=Ubl8LRsFYgXMfd3S2nH5CnAWn1HTTMrsq0pbmTWYoWo,2735
27
+ wcpd/adapters/families/audio.py,sha256=83tp4F-C3WQHnp-CHLyuWUMMPcBYG2VlIV_Zmgx93I4,3294
28
+ wcpd/adapters/families/browser.py,sha256=szPHWV-RlqvCuCs4-9yXXzudSQcBKayF6qa6MPuD1xw,4808
29
+ wcpd/adapters/families/camera.py,sha256=H86Nl0jUUWQ3br_btHCs0D6mAugrGNgPFGAD7emjPkw,5443
30
+ wcpd/adapters/families/clipboard.py,sha256=-A8LoLZVyqzwjFNZtMQKgtydXrFEZ-N_db-CfEUtQrs,3362
31
+ wcpd/adapters/families/display.py,sha256=1hujpBw1UeSrH90Lmgi16tqL69XrJGn_OqNqOHvZsdE,3832
32
+ wcpd/adapters/families/events.py,sha256=PKEMtempoyTqoYq-glc6z3eQc_k-O9BHLq6DySdOpdI,4683
33
+ wcpd/adapters/families/goal.py,sha256=qDX2Oj1875LXINMz0KppH1ZgaCEPAaQArBRCQrxGlmw,8183
34
+ wcpd/adapters/families/graph.py,sha256=iSljQeNXPWe-0yjEgm5xCN40fDy3IngSC3MK_LT9fzY,8293
35
+ wcpd/adapters/families/hardware.py,sha256=UKVrj3XZFLD_65FQGbuCrDSk2TLj4uiiO3ZwvYpq2Fg,1626
36
+ wcpd/adapters/families/host.py,sha256=4u7tpDyDp-lfHBrKUGr37Of6W93z2MWAi2pEI-A-u9g,3287
37
+ wcpd/adapters/families/identity.py,sha256=OX_eOYpFdoNShgtgmZFO3hxWgjjGZciOgkdmKXrkmc0,2009
38
+ wcpd/adapters/families/input.py,sha256=9FW8v6r6aNFBN8iB0rrHvFC8PYFEbE_x-I1nH5HxeWY,2613
39
+ wcpd/adapters/families/net.py,sha256=gnAwBCVHuEosn0VSx3cNQNqfq7tsGpIDsr2ATRn6fe4,3829
40
+ wcpd/adapters/families/osa.py,sha256=DB1wJaQQtIoEaVn2j9VNPjUUh_p2De1jQkriN8DV0YA,1863
41
+ wcpd/adapters/families/packages.py,sha256=5GDTiSd6MiZthj46tRdtATG1f9bpSJZUUEp-be-7NTQ,2977
42
+ wcpd/adapters/families/process.py,sha256=1u2qS7dryxiGRg5kZDBCTMkHYeO-TF3xFWzrNj3jnOA,3759
43
+ wcpd/adapters/families/scheduler.py,sha256=Ygfi9wNSpOvzSnx8zdsAvvrQjE5DnY-ZaPtMMrK-J1U,4538
44
+ wcpd/adapters/families/screen.py,sha256=Iz7pUB0GFS9ziOqiJr9kFO0PsLaqC7C6VpNv-g38KZw,1157
45
+ wcpd/adapters/families/search.py,sha256=D-abSEfMRRITyTidoDbFYB-AmpQ_urzyhMupoycgVU4,5518
46
+ wcpd/adapters/families/security.py,sha256=t7O7rOVqOje1aH4w4NIlF2NNFnvxfHf1ahpIzIMyxD4,10703
47
+ wcpd/adapters/families/services.py,sha256=1E7CjKeMQLuXgNK_JYLi6uT7aws33HjdfQl4W6heEeA,3016
48
+ wcpd/adapters/families/storage.py,sha256=mcJyJJfS_u8hk5jIZNw8hPaRR_bpAwEOp_jaBZew2WY,2721
49
+ wcpd/adapters/families/timeline.py,sha256=6PDJL16GKFZjHjLUa2udv2-XeEhPe1cZ9d3eL7BPTzU,5682
50
+ wcpd/adapters/families/window.py,sha256=Py0RZBERzgFYxmFvQXX9QjNurTECqUtvjp1lncnu3Xw,2925
51
+ wcpd/adapters/families/workspace.py,sha256=xDv8EbcwIlXdmu42bUBjKFBzyxvaOvEgxoPBdGogI5w,5405
52
+ wcpd/adapters/goal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
+ wcpd/adapters/goal/store.py,sha256=xJcjYtZk-fqCDXVmYsnYE8zo2BbLy-ohuryc18PZAUc,11124
54
+ wcpd/adapters/graph/__init__.py,sha256=xKB7v5UBS1a48FAJh2XDbz8skssKztqb0FLbftZZD9c,315
55
+ wcpd/adapters/graph/model.py,sha256=AlKJsC-OUA_2yW2wt-f44WULuxQwhqMuSBk0SWWncbw,22292
56
+ wcpd/adapters/graph/store.py,sha256=GuHjZv-ss4JRtPjEkG34Juthj5chFwkZcGdT_PivQo4,12063
57
+ wcpd/adapters/linux/__init__.py,sha256=GPLjy7kaEWqBq1ESy92UdWvZUiw_oAeJRk_o35vf8zo,1904
58
+ wcpd/adapters/linux/apps.py,sha256=45AkdRsoIZerVW5MT1o9Of9blkfuRdbiYc7Rom0Uryo,3663
59
+ wcpd/adapters/linux/audio.py,sha256=iRo6pKkaRqECrELbcwFXHi-EBvMiduU9JgGN-vOOsLs,6606
60
+ wcpd/adapters/linux/ax.py,sha256=Tc8yZ89310iWXruCqIUOQfGXEcPIO-IqqUyTKf8iH2k,35767
61
+ wcpd/adapters/linux/camera.py,sha256=wI_RhbO8bGNGPpnjCg3tKF7dQyQq3aGCx_r3hM6DNJ8,6549
62
+ wcpd/adapters/linux/clipboard.py,sha256=r6YtsZU_3dq6GZ24htI3gGpe6PMjfOf6BTkLSv4FcRA,3521
63
+ wcpd/adapters/linux/desktop.py,sha256=r0oGfMvGOAoz-ABmTdqEm71Pznilk36h1AyEz24EuHc,9142
64
+ wcpd/adapters/linux/display.py,sha256=kr0unPTVJXMZGJNRFvGxjva0Sw656wqSEazJG0Uy79M,8934
65
+ wcpd/adapters/linux/hardware.py,sha256=DBDzMts0H1LTZEaTKPC43bRFeUKftLBkbm8kiLHMAiM,15704
66
+ wcpd/adapters/linux/host.py,sha256=5YOD7v_DJUd0YdKGF7BihhnzZrii7Di0j9H45bx_b30,7714
67
+ wcpd/adapters/linux/identity.py,sha256=qTmNOJTXuxOycJxtwCZbchGi0WrIPeVlHGcEKv4e_zA,5802
68
+ wcpd/adapters/linux/net.py,sha256=HYkZamIpKUnKxKzJPVde-wDkxvcIO8VNcrgR0twT7Xk,9003
69
+ wcpd/adapters/linux/packages.py,sha256=HnOAVVFBi4L-RVr-I6y9C14XnCVMTw9qkiI_HQjLY8I,9803
70
+ wcpd/adapters/linux/process.py,sha256=2-st38KJgR0ozEI4UxjrFTkbk51c1kK65GwXY66BB8M,4481
71
+ wcpd/adapters/linux/scheduler.py,sha256=UtEW4zzTzQOd8pOPfv9_mcYWsi4gQTJOmvwBqD0xpkM,12359
72
+ wcpd/adapters/linux/search.py,sha256=BSx0QY0LdP2hsmYFl-npDlVILzP0MYNcgvZdP8fWo3Q,5425
73
+ wcpd/adapters/linux/security.py,sha256=AUwsAns4X_ktcQdfA9awEKSfaaJDxd6WYEGa9-hUBsw,3763
74
+ wcpd/adapters/linux/services.py,sha256=GET4Iiyeq9Vls-j4_pIU43P8QDWc4jeFWh_8jP_Mq6o,6511
75
+ wcpd/adapters/linux/storage.py,sha256=TGM-y__-erMQuJt0-vUhYI1ZejbpWel9JvbPkIkiBMU,8598
76
+ wcpd/adapters/macos/__init__.py,sha256=QLdbWxM-RjE33HvCkJqqybFz_knFU12rbBHh6vSCrZE,2262
77
+ wcpd/adapters/macos/apps.py,sha256=BitUC8996KZJhPXwzzmHBxMJ9rjxkE8Za6N7btobvxY,6970
78
+ wcpd/adapters/macos/audio.py,sha256=XWbAUZv9hRt0SiO8ifMsNkqXN8JG_bsIz49EChpVd48,9571
79
+ wcpd/adapters/macos/ax.py,sha256=RnUnZGNiSH3RmTfKDtOdVe_LPaWwmvpEXCjmiG0Zb4Y,39773
80
+ wcpd/adapters/macos/camera.py,sha256=iFr4eJBkMvZ27IzqZcjwgPY7M56obx8voQ9MColF7aw,9297
81
+ wcpd/adapters/macos/clipboard.py,sha256=GRTQF2aPuiT4lD4PCUUGNsi0Ru6ZJeEXAipmWDcYsHM,3788
82
+ wcpd/adapters/macos/desktop.py,sha256=qPqTRsKGI0UObUnS2AS5_wIrtdm8n1ZYuhQ8ADxdycA,13201
83
+ wcpd/adapters/macos/display.py,sha256=S1pHvCj6gUEdTRBTGNupnA__8wCXHJW47mzkIzajAEI,9408
84
+ wcpd/adapters/macos/hardware.py,sha256=RLZAy4A0QiW-drw9wes3yntYPfPv6C9kSe6AYVzzDUA,15622
85
+ wcpd/adapters/macos/host.py,sha256=KjVPIqavxoVp-iiwkqWW1rOH8OrvuxZfMh4ZK0Q6_58,6807
86
+ wcpd/adapters/macos/identity.py,sha256=UQpUJ45Rw7NH4ToW2QJAHunkh6M0Ew_BzJSj6U6ZKWI,7736
87
+ wcpd/adapters/macos/net.py,sha256=OBqFhgT7jvN8NCM58Xb0fh33TXDwWg8R0ID4qjdOY0k,16899
88
+ wcpd/adapters/macos/osa.py,sha256=OP8HBwaloFj-MGc4N5Nxg_ztiLXlxS8QOshJbOFPTtM,1621
89
+ wcpd/adapters/macos/packages.py,sha256=XMhcrAr-lirrIOOmc74_VJ6PCqKRi-5OOvIi9XtjmBE,6058
90
+ wcpd/adapters/macos/process.py,sha256=QIUuvv41YnWs3eXsdxX4X_zA1_UPXB3kRs_zjEfJPsg,9065
91
+ wcpd/adapters/macos/scheduler.py,sha256=qX6RlUcF9Xq8F4t9M7QlJNw2qQnzUdRqtraXG-0SIpw,16868
92
+ wcpd/adapters/macos/search.py,sha256=fXLgjlQAom5rs7Gi_G1tpbmE7EOckH6sKxrZ5EZa7Sw,5721
93
+ wcpd/adapters/macos/security.py,sha256=6mG_Jt2ddVxaD6xHbF0ogwwU0rCYCBCOxj3tf4yBpr0,7949
94
+ wcpd/adapters/macos/services.py,sha256=JsUbnypLcJmxRpNUswU5ZZCPDwDnT3ZKrrmlhKiHT20,8194
95
+ wcpd/adapters/macos/storage.py,sha256=y06p6eX5zPyoRzxVX8qfqceXdp45e7canvym0fNafeA,9083
96
+ wcpd/adapters/portable/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
97
+ wcpd/adapters/portable/container.py,sha256=Mf1uD8UPKYHd1sfZao722xUtLO0Jq_8TTpGLb0Hftjg,12608
98
+ wcpd/adapters/portable/fs.py,sha256=tQjksuAeHaQwcoGlr8YRknCQzqCrF89TdurrdKwzrAY,16581
99
+ wcpd/adapters/portable/git.py,sha256=DP56RMWs73_RxqV4hHAq4q-xQvxI4vu1aus8qydtzW0,20072
100
+ wcpd/adapters/portable/k8s.py,sha256=b1hQUQXyK3ElsloaDrdAjmpMp_VWUAnS2vXUxqGSaP0,14692
101
+ wcpd/adapters/portable/vm.py,sha256=-INbGPuWHQFPVjg0U4_0-cBY7LUDazsKwkRySyqibJk,12729
102
+ wcpd/adapters/posix/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
103
+ wcpd/adapters/posix/exec.py,sha256=Dw09kpePFSm0Lis70olCJCAkAYRh-4YsA_-lJVo39K8,7310
104
+ wcpd/adapters/timeline/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
105
+ wcpd/adapters/timeline/store.py,sha256=LbL4ozNr_lUMhlOZpjeMytOc-Fl5gqj2a4StevE4q4g,8122
106
+ wcpd/adapters/windows/__init__.py,sha256=kSrKyN9crIvdXlWlVFeVOGPd69ea4orSnwmIoOs0zdA,2071
107
+ wcpd/adapters/windows/_win32.py,sha256=a_4IP3eCmSLaXVI1JNT961DRzBCBsIbTffiRB987DO8,4358
108
+ wcpd/adapters/windows/apps.py,sha256=QSr8WJ65a27w1JnG9698b1C42CQPlYLMxJiOOtY_EmQ,3583
109
+ wcpd/adapters/windows/audio.py,sha256=JUZOvmoeEGJtsNjzCrboozKnStJywLyNiMEOAua5McI,9193
110
+ wcpd/adapters/windows/ax.py,sha256=n9uPN5j5UsypnFM8mz10VvbB_uRRqTNZdtLUtApacgo,43497
111
+ wcpd/adapters/windows/camera.py,sha256=IdiwwIzdGPPB8jOhudE7oEf5Bx1c361OvAntml4oJUg,9034
112
+ wcpd/adapters/windows/clipboard.py,sha256=KkI86_kv-I1vG6n6M_xY2ZYkNI374yzzpAEi2cDISpc,4080
113
+ wcpd/adapters/windows/desktop.py,sha256=eARnhRmEuZ9NNi0zzE-dI_-u5cymD9vifb0xVhh3Uho,3475
114
+ wcpd/adapters/windows/display.py,sha256=Wja4PKvFOS74jELxFdh-caXRY1zDDyVvy9dGkF4M9yI,9199
115
+ wcpd/adapters/windows/exec.py,sha256=nXbDaqZywxN4LjWM2fpVDhFQhrdyQQEdSQCrrIwYVV4,1675
116
+ wcpd/adapters/windows/hardware.py,sha256=_nKD20iT6078971LYRruKhlqqsPksFbk_YGp_FISD2Y,10315
117
+ wcpd/adapters/windows/host.py,sha256=0Mi61e-p-aXdQMQ4hU74p4OZoJAganG3b5j5MZ1Q2YU,8344
118
+ wcpd/adapters/windows/identity.py,sha256=RzxZ_nL_21LHQ6qBe6JLrjB-_f1VTvlgJiQFrfw1_Co,6205
119
+ wcpd/adapters/windows/net.py,sha256=QwDUtigTW8y2G4oqwsVQe7fm4z9Gr86a6z67H8sRSr8,9105
120
+ wcpd/adapters/windows/packages.py,sha256=cdlHFBXNGAJ5TwXRVVUq7HFPUW6ZnUbn-rYRpe-s0sk,5864
121
+ wcpd/adapters/windows/process.py,sha256=GX21zObsEfa5iuNjzxLywJfvNLT1AkXh4ohEkEtAmZg,4882
122
+ wcpd/adapters/windows/scheduler.py,sha256=9fmqhMVucjgGRMv8D7bcGqHDa0booElNsCkRMohxqcg,6944
123
+ wcpd/adapters/windows/screen.py,sha256=BUR2t-VHGJ67D8_iT0yV88XiawycKFtCLmzG3NNSlTw,1755
124
+ wcpd/adapters/windows/search.py,sha256=2VPIkAkJXDB4V_3CqPLQMmu34qM93Q9s8Q33HkoRKQg,6195
125
+ wcpd/adapters/windows/security.py,sha256=w6VBCJ82q93Plnmj815axf94Y3r89lqmLvr9lYTazO8,3896
126
+ wcpd/adapters/windows/services.py,sha256=aj7MwqFlvmyxKfxk0SMu5OYEHxbuQ01YJhGmsNNJ35E,6930
127
+ wcpd/adapters/windows/storage.py,sha256=GO--QNf5C-Bj5F37M9wgBsa58fzw0f4nWlp8eZwpmW4,9081
128
+ wcpd/adapters/workspace/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
129
+ wcpd/adapters/workspace/store.py,sha256=iIqO-hnuxNdRT9qUM-ElztLdW9nQ21FvdcG1ovG-rcY,9347
130
+ wcpd/bindings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
131
+ wcpd/bindings/mcp_binding.py,sha256=lxN5VIRsWIj2OAyXOL3_4qEdJ7IwBADwqqmhbGGDUOY,3944
132
+ wcpd/bindings/stdio_binding.py,sha256=c30D_azycKJllpeZ9sMv0smWb--dzg3RIBvuKdiv1Us,8750
133
+ wcpd/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
134
+ wcpd/core/errors.py,sha256=l8_lccjwAnpNqqjZYmINa1jcCU3Ku7bzzq3CswuKqV0,716
135
+ wcpd/core/manifest.py,sha256=eeJJ-7SMFDwuSTgENjTcsZnW50Iiqn0_AC3kz3PXLuM,1409
136
+ wcpd/core/model.py,sha256=hsDac4ENfthQ78Dn98GRHSlPTHqEb5V841hFL9bDdzU,2055
137
+ wcpd/core/platform.py,sha256=6HneJb6r9TUQ6_iErgE7Kt-awH9kTKxIHso5LWHYRk8,706
138
+ wcpd/core/registry.py,sha256=raISAOCZkKb5zp2G_F2KN0wkInN8SXpjXujynWqFUAk,3577
139
+ wcpd/ports/__init__.py,sha256=EokK9u_8UI9npNonNSOWo51gWaYaahkIKuAwutgn5NQ,969
140
+ wcpd/ports/ai.py,sha256=TP-AYvN9Rzp02FyXhVewkClTQl-Boef89sNiRdWwlQ8,2128
141
+ wcpd/ports/apps.py,sha256=q8-Re8CfrfjAMo6ZkNycWXMyxEBZUK4vzZx3HOIOuqY,580
142
+ wcpd/ports/audio.py,sha256=9wH8wklFBlIh_ZoN8suVx7zQq5wil70FPNzDwWvIlYg,850
143
+ wcpd/ports/ax.py,sha256=5A5vFmEnusZhQJc4HXkvABTbthiGhQPSlYfJxOu431c,2433
144
+ wcpd/ports/browser.py,sha256=-XUSuh4NuTzbbk9j76MqLUAkOcu76faUrO5ey9TTT0o,1880
145
+ wcpd/ports/camera.py,sha256=blWQybzi9WxksJOyfDemQyyuNBRTOG1pW6E4QdpnF3Y,840
146
+ wcpd/ports/clipboard.py,sha256=mbHRJ7p7kGPlC0gOALVFs8iFXRpcuNvzWMLCJtqSM1c,260
147
+ wcpd/ports/container.py,sha256=m5Ovhu9bBM1IfY73KN_Z9oR5Ktya30OqhWbOparaqIk,1401
148
+ wcpd/ports/display.py,sha256=PDTTd5Cs-9oJOLrrBxRL1iAi8PnJfGSRjtS4QwaHRow,701
149
+ wcpd/ports/events.py,sha256=KxobQ1dnEAM1ZRu8fi8SNAMAJNgqtNW1dBe192NZiQY,1930
150
+ wcpd/ports/git.py,sha256=oxvLt9JC77lp8gbllXwuSwSgUOI1aCiGimX5IsfnRzM,1508
151
+ wcpd/ports/goal.py,sha256=-AmKph7aitmBRj8ZfbYgymx3N6TcGBN7T9BUddVghHk,2840
152
+ wcpd/ports/graph.py,sha256=ii928B1ESOQNAUnTg-B8X55EQwzcBhkAcHrLJ2f4qcE,2597
153
+ wcpd/ports/hardware.py,sha256=lhLCTbyweVZcdOSNpLsQgnFxuPKcB9Y3H6xRHynZLxY,628
154
+ wcpd/ports/host.py,sha256=43hoH07Q9weIzK8pkFmboVMms_PjNdbuL1IrLOjZyUg,830
155
+ wcpd/ports/identity.py,sha256=_8xECa8AZoGx_M0TmRnEBYpEjYahq5nrxekm8_TOBkU,581
156
+ wcpd/ports/input.py,sha256=laprhgIHZOxpN9nqTEcKG7CLTdbH-1G8VbvFdtNNUCc,374
157
+ wcpd/ports/k8s.py,sha256=q2iPgjb-fO9alfhSu1aGgUFsbJ8Ki7gT0-Jg0WIcCiQ,2146
158
+ wcpd/ports/net.py,sha256=OCSCn1bC8jCRnbCLmPnyHMnW4hq1ZNRsGQXCIk8X9qk,1035
159
+ wcpd/ports/osa.py,sha256=z0JYEbWfLmqT42XJwiX4NAbWyFvJV4wLCKvmNclckJU,302
160
+ wcpd/ports/packages.py,sha256=fjxkceXi_4PtnodiwgH3zaNgNdA71XCZ2rL-OZQ5PCQ,566
161
+ wcpd/ports/process.py,sha256=2fB8un0uupdMIGgg7eBVa6BoPksijkANp5eilmjENZk,779
162
+ wcpd/ports/scheduler.py,sha256=JJRvTFdwB0jy7OQMPDKM5InNHRgsuyr5pjBlL-AjsM8,895
163
+ wcpd/ports/screen.py,sha256=wyB01ShZUePtg5H9afOPVvHLF3btn1Djqn4qCanNSmY,333
164
+ wcpd/ports/search.py,sha256=K54lGmVJpNt-Z84mesdq9jA47pELLYK87YYMiNPpNrs,1059
165
+ wcpd/ports/security.py,sha256=w9nc9sYTV4WN0R0crzRwvzlsMCwGlgWgZl8_ym23A_0,1730
166
+ wcpd/ports/services.py,sha256=AljNrV6iQCQkpBT1h8h_xk1ry6JFBIJ33cukZob3rJI,566
167
+ wcpd/ports/storage.py,sha256=MfSBw9r3bvXyvS5RmzqNxUW50rlgJdq0sD76b2VJpPE,547
168
+ wcpd/ports/timeline.py,sha256=GAEe0EmM6pXfe-kpsmrP3gKl2dcygX_MVa8ymm66k8g,2030
169
+ wcpd/ports/vm.py,sha256=7EE5HOMnoMDVLUB5r-adPxFCjFBXWdsbN2YUkEY_cX8,1179
170
+ wcpd/ports/window.py,sha256=q4aIylHwPI2xLk7u-vN2JNRUBfhpZjySMYIPqaCWeG0,849
171
+ wcpd/ports/workspace.py,sha256=NjvpgP8MAWHOMMM-FH5qUvtCc1ohWRZJsdVmUaBbSoE,2666
172
+ wcpd/security/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
173
+ wcpd/security/audit.py,sha256=qRi0_0sJHrk6_l8PQMfZbSNy97n2Wr8oc_pGCnSGlYU,5302
174
+ wcpd/security/auth.py,sha256=k3O1YjaiKy0Kf6V8Mrj_BtmRRWGnfINHgbIk8PJ22ek,3454
175
+ wcpd/security/scopes.py,sha256=cykoxSnzrYcObHGQg1Z7W5QKxZoh8e436YXXQzu98d8,10018
176
+ wcpd/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
177
+ wcpd/tools/filesystem.py,sha256=L9qDffM3FC_iRF24xQOYg8fIq82mgh-2XKhtD8SS1q8,338
178
+ wcpd/tools/util.py,sha256=PQwW20LJ1su6fnnv8siOcbtG8xztrUVxTnyi0s9JZS0,2085
179
+ wcp-0.1.0.dist-info/METADATA,sha256=zxo8klQuBDNuWnsDojsEtispx6jFWC0_QmJfYQSPCBU,4387
180
+ wcp-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
181
+ wcp-0.1.0.dist-info/entry_points.txt,sha256=DfykGCkMsiw7BWxWPfeuIBkPN0uncg5D6aLQce4Mk_Y,39
182
+ wcp-0.1.0.dist-info/top_level.txt,sha256=gGqm-E7sR97NC8oFcf_5MD1pjhigkMCR7MhG8f1gP0I,5
183
+ wcp-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ wcpd = wcpd.cli:main
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or Derivative
95
+ Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 The Workstation Capability Protocol contributors
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1 @@
1
+ wcpd
wcpd/__init__.py ADDED
File without changes
File without changes
wcpd/adapters/_proc.py ADDED
@@ -0,0 +1,41 @@
1
+ """Single subprocess seam for all platform adapters.
2
+
3
+ Every adapter shells out through `run` and discovers tools through
4
+ `which`/`require_tool`, so a unit test mocks exactly one module to exercise
5
+ any adapter on any OS, and a missing backend degrades to a normative
6
+ WCP_BACKEND_UNAVAILABLE instead of a silent no-op.
7
+ """
8
+
9
+ from __future__ import annotations
10
+
11
+ import asyncio
12
+ import shutil
13
+
14
+ from ..core.errors import BackendUnavailable
15
+
16
+
17
+ def which(*names: str) -> str | None:
18
+ for name in names:
19
+ if shutil.which(name):
20
+ return name
21
+ return None
22
+
23
+
24
+ def require_tool(*names: str) -> str:
25
+ found = which(*names)
26
+ if found is None:
27
+ raise BackendUnavailable(
28
+ f"no backend on PATH for this operation (looked for: {', '.join(names)})"
29
+ )
30
+ return found
31
+
32
+
33
+ async def run(*argv: str, input: bytes | None = None) -> tuple[int, bytes, bytes]:
34
+ proc = await asyncio.create_subprocess_exec(
35
+ *argv,
36
+ stdin=asyncio.subprocess.PIPE if input is not None else None,
37
+ stdout=asyncio.subprocess.PIPE,
38
+ stderr=asyncio.subprocess.PIPE,
39
+ )
40
+ out, err = await proc.communicate(input)
41
+ return proc.returncode, out, err
File without changes