klayout-klink 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 (184) hide show
  1. klayout_klink-0.1.0.dist-info/METADATA +416 -0
  2. klayout_klink-0.1.0.dist-info/RECORD +184 -0
  3. klayout_klink-0.1.0.dist-info/WHEEL +5 -0
  4. klayout_klink-0.1.0.dist-info/entry_points.txt +3 -0
  5. klayout_klink-0.1.0.dist-info/licenses/LICENSE +201 -0
  6. klayout_klink-0.1.0.dist-info/top_level.txt +1 -0
  7. klink/__init__.py +31 -0
  8. klink/_meta.py +16 -0
  9. klink/anchor/__init__.py +24 -0
  10. klink/anchor/inference.py +166 -0
  11. klink/anchor/naming.py +12 -0
  12. klink/anchor/workflow.py +196 -0
  13. klink/cli.py +135 -0
  14. klink/client.py +899 -0
  15. klink/doctor.py +117 -0
  16. klink/domains/__init__.py +8 -0
  17. klink/domains/measurement/__init__.py +22 -0
  18. klink/domains/measurement/binding.py +96 -0
  19. klink/domains/measurement/results.py +246 -0
  20. klink/domains/nanodevice/__init__.py +44 -0
  21. klink/domains/nanodevice/_deps.py +54 -0
  22. klink/domains/nanodevice/devices/__init__.py +6 -0
  23. klink/domains/nanodevice/devices/hallbar.py +187 -0
  24. klink/domains/nanodevice/devices/wraparound.py +264 -0
  25. klink/domains/nanodevice/ebl/__init__.py +18 -0
  26. klink/domains/nanodevice/ebl/marks.py +90 -0
  27. klink/domains/nanodevice/ebl/patching.py +155 -0
  28. klink/domains/nanodevice/ebl/validation.py +97 -0
  29. klink/domains/nanodevice/ebl/writefield.py +212 -0
  30. klink/domains/nanodevice/flake/__init__.py +74 -0
  31. klink/domains/nanodevice/flake/align.py +14 -0
  32. klink/domains/nanodevice/flake/artifacts.py +139 -0
  33. klink/domains/nanodevice/flake/combine.py +111 -0
  34. klink/domains/nanodevice/flake/commit.py +7 -0
  35. klink/domains/nanodevice/flake/detect.py +208 -0
  36. klink/domains/nanodevice/flake/detectors.py +150 -0
  37. klink/domains/nanodevice/flake/klayoutclaw.py +710 -0
  38. klink/domains/nanodevice/flake/priors/graphene_shape_priors.json +293 -0
  39. klink/domains/nanodevice/flake/priors/graphite_classifier.json +44 -0
  40. klink/domains/nanodevice/flake/priors/graphite_priors.json +56 -0
  41. klink/domains/nanodevice/flake/priors/graphite_shape_priors.json +195 -0
  42. klink/domains/nanodevice/flake/review.py +7 -0
  43. klink/domains/nanodevice/orchestrators.py +471 -0
  44. klink/domains/nanodevice/pipeline.py +37 -0
  45. klink/domains/photonics/__init__.py +10 -0
  46. klink/domains/photonics/blackbox.py +181 -0
  47. klink/domains/photonics/gf_import.py +513 -0
  48. klink/domains/photonics/net_intent.py +1422 -0
  49. klink/domains/structdevice/__init__.py +49 -0
  50. klink/domains/structdevice/connectivity.py +290 -0
  51. klink/domains/structdevice/device_extractor.py +230 -0
  52. klink/domains/structdevice/extracted_netlist.py +158 -0
  53. klink/domains/structdevice/layout_engine.py +875 -0
  54. klink/domains/structdevice/logic_map.py +267 -0
  55. klink/domains/structdevice/lvs_lite.py +214 -0
  56. klink/domains/structdevice/netlist_build.py +307 -0
  57. klink/domains/structdevice/netlist_lint.py +199 -0
  58. klink/domains/structdevice/orchestrators.py +1667 -0
  59. klink/domains/structdevice/pcell_fitter.py +237 -0
  60. klink/domains/structdevice/recipes.py +169 -0
  61. klink/domains/structdevice/reference_netlist.py +141 -0
  62. klink/domains/structdevice/sizing.py +156 -0
  63. klink/domains/structdevice/yosys_flow.py +237 -0
  64. klink/errors.py +25 -0
  65. klink/handshake.py +62 -0
  66. klink/mcp/CLAUDE.md +315 -0
  67. klink/mcp/README.md +166 -0
  68. klink/mcp/__init__.py +3 -0
  69. klink/mcp/__main__.py +258 -0
  70. klink/mcp/agents/README.md +91 -0
  71. klink/mcp/agents/lanes.json +207 -0
  72. klink/mcp/bridge.py +210 -0
  73. klink/mcp/catalog.py +351 -0
  74. klink/mcp/config.py +7 -0
  75. klink/mcp/connection.py +225 -0
  76. klink/mcp/diagnostics.py +70 -0
  77. klink/mcp/guide.py +140 -0
  78. klink/mcp/interaction_context.py +333 -0
  79. klink/mcp/local_tools/__init__.py +77 -0
  80. klink/mcp/local_tools/_helpers.py +273 -0
  81. klink/mcp/local_tools/discovery.py +132 -0
  82. klink/mcp/local_tools/interaction.py +141 -0
  83. klink/mcp/local_tools/nanodevice.py +101 -0
  84. klink/mcp/local_tools/photonics.py +324 -0
  85. klink/mcp/local_tools/routing.py +556 -0
  86. klink/mcp/local_tools/session.py +388 -0
  87. klink/mcp/local_tools/structdevice.py +352 -0
  88. klink/mcp/profiles.py +129 -0
  89. klink/mcp/registry.py +108 -0
  90. klink/mcp/results.py +24 -0
  91. klink/mcp/server.py +127 -0
  92. klink/mcp/session.py +136 -0
  93. klink/mcp/session_registry.py +99 -0
  94. klink/mcp/skills/klayout/SKILL.md +379 -0
  95. klink/mcp/skills/klayout-gdsfactory/SKILL.md +218 -0
  96. klink/port/__init__.py +64 -0
  97. klink/port/blackbox.py +11 -0
  98. klink/port/inference.py +305 -0
  99. klink/port/naming.py +42 -0
  100. klink/port/validation.py +67 -0
  101. klink/port/workflow.py +452 -0
  102. klink/process_stack.py +159 -0
  103. klink/routing/__init__.py +88 -0
  104. klink/routing/backends/__init__.py +1 -0
  105. klink/routing/backends/flexdr/__init__.py +1 -0
  106. klink/routing/backends/flexdr/flexdr.py +1183 -0
  107. klink/routing/backends/gdsfactory/__init__.py +1 -0
  108. klink/routing/backends/gdsfactory/gdsfactory_backend.py +740 -0
  109. klink/routing/backends/gdsfactory/gdsfactory_components.py +162 -0
  110. klink/routing/backends/gdsfactory/gdsfactory_ports.py +348 -0
  111. klink/routing/backends/geometric/__init__.py +1 -0
  112. klink/routing/backends/geometric/damped.py +290 -0
  113. klink/routing/backends/geometric/global_channel.py +693 -0
  114. klink/routing/backends/geometric/multilayer.py +227 -0
  115. klink/routing/backends/geometric/steiner.py +460 -0
  116. klink/routing/backends/geometric/tapered.py +987 -0
  117. klink/routing/backends/geometric/tapered_segments.py +2081 -0
  118. klink/routing/backends/negotiated/__init__.py +1 -0
  119. klink/routing/backends/negotiated/bounded_router.py +253 -0
  120. klink/routing/backends/negotiated/hier_router.py +238 -0
  121. klink/routing/backends/negotiated/negotiated.py +239 -0
  122. klink/routing/backends/negotiated/negotiated_grid.py +372 -0
  123. klink/routing/backends/negotiated/negotiated_resources.py +289 -0
  124. klink/routing/backends/pnr_multilayer/__init__.py +24 -0
  125. klink/routing/backends/pnr_multilayer/dr/__init__.py +31 -0
  126. klink/routing/backends/pnr_multilayer/dr/legality.py +81 -0
  127. klink/routing/backends/pnr_multilayer/dr/maze.py +555 -0
  128. klink/routing/backends/pnr_multilayer/dr/rust_bridge.py +116 -0
  129. klink/routing/backends/pnr_multilayer/dr/trackgrid_adapter.py +111 -0
  130. klink/routing/backends/pnr_multilayer/gr3d/__init__.py +17 -0
  131. klink/routing/backends/pnr_multilayer/gr3d/layer_assign.py +291 -0
  132. klink/routing/backends/pnr_multilayer/grid/__init__.py +12 -0
  133. klink/routing/backends/pnr_multilayer/grid/track_grid.py +347 -0
  134. klink/routing/backends/pnr_multilayer/pa/__init__.py +28 -0
  135. klink/routing/backends/pnr_multilayer/pa/flexpa.py +146 -0
  136. klink/routing/backends/pnr_multilayer/pnr_flexdr.py +1290 -0
  137. klink/routing/backends/pnr_multilayer/pnr_flexta.py +679 -0
  138. klink/routing/backends/pnr_multilayer/ta/__init__.py +17 -0
  139. klink/routing/backends/pnr_multilayer/ta/track_assign.py +169 -0
  140. klink/routing/core/__init__.py +1 -0
  141. klink/routing/core/intent.py +161 -0
  142. klink/routing/core/validation.py +230 -0
  143. klink/routing/geom/__init__.py +1 -0
  144. klink/routing/geom/bends.py +180 -0
  145. klink/routing/geom/constraints.py +185 -0
  146. klink/routing/geom/geometric.py +498 -0
  147. klink/routing/geom/geometry.py +208 -0
  148. klink/routing/geom/path_quality.py +174 -0
  149. klink/routing/geom/planner.py +382 -0
  150. klink/routing/geom/port.py +264 -0
  151. klink/routing/geom/run.py +104 -0
  152. klink/routing/geom/writeback.py +44 -0
  153. klink/routing/grid/__init__.py +1 -0
  154. klink/routing/grid/capacity_grid.py +456 -0
  155. klink/routing/grid/cell_realize.py +120 -0
  156. klink/routing/grid/clean_pdn.py +141 -0
  157. klink/routing/grid/feature_grid.py +316 -0
  158. klink/routing/grid/feature_grid_3d.py +331 -0
  159. klink/routing/grid/floorplan.py +127 -0
  160. klink/routing/grid/gcell.py +80 -0
  161. klink/routing/grid/global_router.py +319 -0
  162. klink/routing/grid/pad_harvest.py +106 -0
  163. klink/routing/grid/pathfinder.py +362 -0
  164. klink/routing/grid/placer.py +101 -0
  165. klink/routing/grid/process_profile.py +119 -0
  166. klink/spec/__init__.py +24 -0
  167. klink/spec/v1.py +271 -0
  168. klink/templates/project/AGENTS.md +84 -0
  169. klink/templates/project/CLAUDE.md +35 -0
  170. klink/templates/project/README.md +65 -0
  171. klink/templates/project/README.zh-CN.md +55 -0
  172. klink/templates/project/custom_devices/README.md +24 -0
  173. klink/templates/project/custom_devices/digital_pnr_lvs.py +107 -0
  174. klink/templates/project/example_template/ebl_wraparound.py +110 -0
  175. klink/templates/project/example_template/gf_mzi_module.py +270 -0
  176. klink/templates/project/example_template/hallbar.py +170 -0
  177. klink/templates/project/example_template/neural_electrode.py +538 -0
  178. klink/templates/project/gitignore +17 -0
  179. klink/templates/project/mcp.example.json +19 -0
  180. klink/templates/project/pdk.py +125 -0
  181. klink/templates/project/recipes/README.md +54 -0
  182. klink/transfer.py +482 -0
  183. klink/transport.py +93 -0
  184. klink/types.py +34 -0
@@ -0,0 +1,416 @@
1
+ Metadata-Version: 2.4
2
+ Name: klayout-klink
3
+ Version: 0.1.0
4
+ Summary: AI-native control plane for KLayout — thin RPC bridge + modular external workers
5
+ Author: klink developers
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/klinkdev2026/klayout-klink
8
+ Project-URL: Repository, https://github.com/klinkdev2026/klayout-klink
9
+ Project-URL: Issues, https://github.com/klinkdev2026/klayout-klink/issues
10
+ Keywords: klayout,eda,gds,rpc,ipc
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Science/Research
13
+ Classifier: License :: OSI Approved :: Apache Software License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)
16
+ Requires-Python: >=3.10
17
+ Description-Content-Type: text/markdown
18
+ License-File: LICENSE
19
+ Requires-Dist: klink-boxmaze-rs<0.2,>=0.1
20
+ Requires-Dist: klink-trackmaze-rs<0.2,>=0.1
21
+ Provides-Extra: photonics
22
+ Requires-Dist: gdsfactory<10,>=9.40; extra == "photonics"
23
+ Dynamic: license-file
24
+
25
+ # klink
26
+
27
+ <p align="right">
28
+ <a href="./README.md">English</a> | <a href="./README.zh-CN.md">中文</a>
29
+ </p>
30
+
31
+ klink is an AI-native control plane for [KLayout](https://www.klayout.de/).
32
+ It turns a running KLayout GUI into a scriptable layout kernel that can be
33
+ controlled from external Python processes, MCP clients, and AI agents.
34
+
35
+ The project is split into three layers:
36
+
37
+ - `klink`: the external Python client, MCP bridge, routing/domain logic, and
38
+ agent-facing workflows.
39
+ - `klink_plugin`: a thin KLayout-side RPC plugin that exposes selected `pya`
40
+ and GUI operations.
41
+ - `examples_klink/public`, `tests/public`, and `docs/public`: examples,
42
+ validation, and release documentation.
43
+
44
+ The core Python package pulls in no third-party runtime libraries — its only
45
+ declared dependency is klink's own Rust acceleration kernel, shipped as a
46
+ prebuilt wheel. Virtual environments, caches, build outputs, and local test
47
+ artifacts are intentionally not part of a clean release.
48
+
49
+ ## What It Does
50
+
51
+ - Controls KLayout over local TCP RPC, with batch methods sized for generated
52
+ layouts (thousands of shapes/instances/PCells per call).
53
+ - Reads layout, cell, layer, shape, view, selection, and method metadata.
54
+ - Creates and edits shapes, text, cells, instances, PCells, Ports, and Anchors.
55
+ - Routes: tapered/steiner/damped/channel backends over Port/Anchor markers,
56
+ plus a detailed-router → live LVS flow for custom-device circuits.
57
+ - Exposes KLayout operations as MCP tools through `klink-mcp`, navigable with
58
+ `klink.find_tools`; runs controlled `pya` snippets as the escape hatch.
59
+ - Remembers what you SEND: selections sent from the KLayout toolbar become
60
+ durable ids an agent can resolve ("this area", "the one I just sent").
61
+ - Drives many KLayout sessions from one bridge and moves geometry between
62
+ them with a dry-run-then-commit transfer.
63
+ - Records a working session — manual edits and RPC edits — into a replayable
64
+ Python script (plus a standalone `pya` variant).
65
+ - Supports gdsfactory-oriented workflows, including Port markers, component
66
+ placement, routing, and klive-compatible `c.show()` display.
67
+ - Keeps the KLayout plugin thin while heavier logic runs in external Python.
68
+
69
+ ## Repository Layout
70
+
71
+ ```text
72
+ klink/ Python client, MCP bridge, and core logic
73
+ klink_plugin/ KLayout salt plugin
74
+ examples_klink/public/ Public, open-box-runnable example gallery
75
+ tests/public/ Public test suite (no KLayout required)
76
+ docs/public/ Release documentation
77
+ rust/ Rust acceleration crate (klink_boxmaze)
78
+ pyproject.toml Python packaging configuration
79
+ README.md English README
80
+ README.zh-CN.md Chinese README
81
+ CLAUDE.md Claude Code operating rules and project context
82
+ LICENSE Apache-2.0 license
83
+ THIRD_PARTY_NOTICES.md Third-party notices
84
+ ```
85
+
86
+ ## Requirements
87
+
88
+ - **KLayout** — the layout editor klink controls; for everything live this is
89
+ the core prerequisite. Install the standard desktop build from
90
+ <https://www.klayout.de/build.html>. klink is developed and tested against
91
+ KLayout 0.30.x; any recent official desktop build (whose macro environment
92
+ provides the `pya` Qt bindings) should work. Purely offline workflows (the
93
+ public test suite and the offline demos) run without it.
94
+ - Python 3.10 or newer (the bundled Rust kernel targets CPython 3.10–3.13).
95
+ - Optional: Claude Code or another MCP client.
96
+ - Optional: gdsfactory, the `klayout` Python package, NumPy/OpenCV, or detector
97
+ dependencies depending on the workflow.
98
+
99
+ ## Install Python Package
100
+
101
+ For normal use, install the published package from PyPI:
102
+
103
+ ```powershell
104
+ python -m pip install klayout-klink
105
+ ```
106
+
107
+ `pip install klayout-klink` installs klink **and its Rust acceleration kernel**
108
+ (`klink-boxmaze-rs`) — klink's own code, shipped as a pre-built wheel for
109
+ Linux / macOS / Windows on CPython 3.10–3.13. You get the fast path
110
+ automatically; nothing else to do.
111
+
112
+ > **On a platform with no pre-built kernel wheel** (an unusual OS / arch /
113
+ > Python), pip falls back to building the kernel from source, which needs a
114
+ > Rust toolchain (rustup). If you don't have one — or want the lightest possible
115
+ > install — use `pip install klayout-klink --no-deps` for the **pure-Python core
116
+ > only**: everything still works (the kernel has a pure-Python fallback), just
117
+ > slower on large place-and-route jobs.
118
+
119
+ **Third-party** scientific libraries (klayout, gdsfactory, numpy, …) are **not**
120
+ bundled — install the ones a feature needs yourself, into the same interpreter:
121
+
122
+ ```powershell
123
+ python -m pip install klayout # offline DB / LVS extraction
124
+ python -m pip install gdsfactory # silicon-photonics routing
125
+ python -m pip install numpy opencv-python-headless # nanodevice flake
126
+ python -m pip install scipy scikit-learn scikit-image # flake detectors
127
+ ```
128
+
129
+ When a feature needs a library that is missing, klink returns an error naming
130
+ the exact `pip install` command — you do not have to know these in advance.
131
+
132
+ ### From source (development only)
133
+
134
+ Use an editable install (`-e`) only when you are working on klink itself — it
135
+ points the package at your working tree so source edits take effect immediately.
136
+ Normal users do not need this.
137
+
138
+ Windows PowerShell:
139
+
140
+ ```powershell
141
+ git clone <repo-url> klink
142
+ cd klink
143
+ py -3.11 -m venv .venv
144
+ .\.venv\Scripts\Activate.ps1
145
+ python -m pip install -U pip
146
+ python -m pip install -e .
147
+ ```
148
+
149
+ Linux / macOS:
150
+
151
+ ```bash
152
+ git clone <repo-url> klink
153
+ cd klink
154
+ python3 -m venv .venv
155
+ source .venv/bin/activate
156
+ python -m pip install -U pip
157
+ python -m pip install -e .
158
+ ```
159
+
160
+ ## Install KLayout Plugin
161
+
162
+ Prerequisite: KLayout itself must be installed first — get the desktop build
163
+ for your OS from <https://www.klayout.de/build.html>.
164
+
165
+ `klink_plugin` is a KLayout salt package. Once installed, KLayout autoruns
166
+ `pymacros/klink.lym` and starts:
167
+
168
+ - klink RPC on `127.0.0.1:8765`. If the port is busy, it tries the next ports up
169
+ to `8799`.
170
+ - a klive-compatible server on `127.0.0.1:8082` for gdsfactory-style `c.show()`
171
+ workflows.
172
+
173
+ Windows:
174
+
175
+ ```powershell
176
+ cd path\to\klink
177
+ New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\KLayout\salt" | Out-Null
178
+ Copy-Item -Path ".\klink_plugin" -Destination "$env:USERPROFILE\KLayout\salt\" -Recurse -Force
179
+ ```
180
+
181
+ Linux / macOS:
182
+
183
+ ```bash
184
+ cd /path/to/klink
185
+ mkdir -p ~/.klayout/salt
186
+ cp -R klink_plugin ~/.klayout/salt/
187
+ ```
188
+
189
+ Either way the plugin ends up at `<KLayout salt dir>/klink_plugin/` (the folder
190
+ that contains `grain.xml`).
191
+
192
+ Restart KLayout after copying the plugin. Each KLayout window runs its own
193
+ klink session: it binds the first free port in `8765`–`8799` and registers as
194
+ session `klayout-<port>`, so with several windows open there is one listener
195
+ per window (`8765`, `8766`, …). A successful startup prints:
196
+
197
+ ```text
198
+ [klink.server] listening on 127.0.0.1:8765
199
+ ```
200
+
201
+ When upgrading an old plugin copy, close KLayout, remove the old
202
+ `salt/klink_plugin` directory, copy the new `klink_plugin` folder, then restart
203
+ KLayout.
204
+
205
+ ## Smoke Test
206
+
207
+ Start KLayout with the plugin loaded, then connect directly from Python:
208
+
209
+ ```python
210
+ from klink import KLinkClient
211
+
212
+ with KLinkClient() as c:
213
+ print(c.ping(nonce=42))
214
+ print(c.layout_info(verbosity="summary"))
215
+ ```
216
+
217
+ If KLayout is listening on a non-default port:
218
+
219
+ ```python
220
+ from klink import KLinkClient
221
+
222
+ with KLinkClient(port=8766) as c:
223
+ print(c.ping())
224
+ ```
225
+
226
+ For a first end-to-end result with no external geometry, run one of the public
227
+ demos (see [`docs/public/demos.md`](docs/public/demos.md)):
228
+
229
+ ```bash
230
+ python -m examples_klink.public.demos.ebl_wraparound # fully offline
231
+ ```
232
+
233
+ ## Claude Code / MCP
234
+
235
+ After installing the Python package, `klink-mcp` is available as a command-line
236
+ entry point.
237
+
238
+ Install the agent skills and project memory files:
239
+
240
+ ```powershell
241
+ cd path\to\klink
242
+ klink-mcp --setup .
243
+ ```
244
+
245
+ This installs or updates:
246
+
247
+ ```text
248
+ .claude/skills/klayout/SKILL.md
249
+ .claude/skills/klayout-gdsfactory/SKILL.md
250
+ CLAUDE.md
251
+ ```
252
+
253
+ Register the MCP server with Claude Code:
254
+
255
+ ```powershell
256
+ claude mcp add klayout -- python -m klink.mcp --profile read,write,verify,escape --session-id project-klink
257
+ ```
258
+
259
+ Common profiles:
260
+
261
+ | Profile | Purpose |
262
+ | --- | --- |
263
+ | `read` | Read-only exploration: layout, cell, layer, shape, view, and selection queries. |
264
+ | `write` | Editing tools: create cells, layers, shapes, instances, PCells, and undo records. |
265
+ | `verify` | DRC / LVS verification tools. |
266
+ | `escape` | Escape-hatch tools such as `exec.python`. |
267
+ | `all` | Expose everything. |
268
+
269
+ Profiles can be combined:
270
+
271
+ ```powershell
272
+ python -m klink.mcp --profile read,write,verify,escape
273
+ ```
274
+
275
+ Optional libraries must be installed into the same Python environment that
276
+ runs `klink.mcp`. For example, if gdsfactory tools report missing dependencies,
277
+ install gdsfactory into that same environment:
278
+
279
+ ```powershell
280
+ python -m pip install gdsfactory
281
+ ```
282
+
283
+ Use the MCP `klink.status` tool to inspect the active interpreter, detected
284
+ capabilities, and KLayout connection state.
285
+
286
+ ## Tests
287
+
288
+ The public test suite is pure-Python and does not require KLayout:
289
+
290
+ ```powershell
291
+ python -m pytest -q tests/public
292
+ ```
293
+
294
+ Integration tests (routing, LVS, recorder) need a live KLayout with the
295
+ `klink_plugin` loaded and are exercised in the development repository.
296
+
297
+ ## Publishing to PyPI (maintainers)
298
+
299
+ One tag publishes TWO PyPI projects: `klayout-klink` (pure-Python core) and
300
+ `klink-boxmaze-rs` (the Rust kernel, platform wheels for Linux/macOS/Windows ×
301
+ CPython 3.10–3.13). The KLayout plugin is shipped separately as a salt package
302
+ and is not on PyPI. Publishing is done by CI (`.github/workflows/release.yml`),
303
+ not by hand — it builds everything, gates on a 16-combo `pip install` smoke
304
+ test, then uploads via PyPI Trusted Publishing:
305
+
306
+ ```powershell
307
+ git tag v0.1.0 # version must match klink/_meta.py + rust/klink_boxmaze/pyproject.toml
308
+ git push origin v0.1.0 # triggers the Release workflow
309
+ ```
310
+
311
+ One-time setup: on pypi.org add a *pending publisher* (GitHub) for each of the
312
+ two project names, pointing at this repo and `release.yml`.
313
+
314
+ After publishing, users install with `pip install klayout-klink` — no clone and
315
+ no `-e`. The editable (`-e`) install is only for developing klink itself.
316
+
317
+ ## Troubleshooting
318
+
319
+ ### Connecting from Python fails
320
+
321
+ Check that:
322
+
323
+ - KLayout is running.
324
+ - `klink_plugin` was copied into the KLayout salt directory.
325
+ - KLayout was restarted after plugin installation.
326
+ - Port `8765` is available, or use the actual session port such as `8766`.
327
+ - Firewall or security software is not blocking localhost TCP.
328
+
329
+ ### MCP tools exist but return KLayout connection errors
330
+
331
+ The MCP server is running, but KLayout is not reachable. Start KLayout with the
332
+ plugin loaded, then call `klink.reconnect` or restart the MCP client. Use
333
+ `klink.status` to inspect the last connection error.
334
+
335
+ ### gdsfactory or detector tools report missing dependencies
336
+
337
+ Install the missing library in the same environment used by the script or MCP
338
+ server (the error names the exact one):
339
+
340
+ ```powershell
341
+ python -m pip install gdsfactory
342
+ python -m pip install scipy scikit-learn scikit-image
343
+ ```
344
+
345
+ ### PowerShell blocks `.venv` activation
346
+
347
+ Allow script execution for the current PowerShell process:
348
+
349
+ ```powershell
350
+ Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
351
+ .\.venv\Scripts\Activate.ps1
352
+ ```
353
+
354
+ ## Further Reading
355
+
356
+ - [`docs/public/getting-started.md`](docs/public/getting-started.md): install, configure, and first result.
357
+ - [`docs/public/architecture.md`](docs/public/architecture.md): the three tiers and the control path.
358
+ - [`docs/public/demos.md`](docs/public/demos.md): the demos and what each requires.
359
+ - [`docs/public/control-plane.md`](docs/public/control-plane.md): the typed RPC surface, the MCP tool catalogue, batch authoring.
360
+ - [`docs/public/interactive-workflows.md`](docs/public/interactive-workflows.md): SEND selection memory, multi-session transfer, the recorder.
361
+ - [`CLAUDE.md`](CLAUDE.md): Claude Code operating rules and project context.
362
+ - [`klink/mcp/README.md`](klink/mcp/README.md): MCP bridge details.
363
+
364
+ ## Contributing
365
+
366
+ Contributions are welcome. A few project-specific rules keep klink coherent:
367
+
368
+ - **Process purity.** `klink/` is pure mechanism and holds zero process data
369
+ (no hardcoded layers, devices, DRC numbers, ports, or PDK instances). Process
370
+ facts live in an example or user `pdk.py` and are passed explicitly into the
371
+ APIs. Do not add process constants to `klink/`.
372
+ - **One intention = one call.** New agent-facing tools use one call per user
373
+ intention, errors that instruct (carry a `next_action`), validate-before-mutate,
374
+ and state persisted on disk.
375
+ - **Tests must pass.** Run the public suite before sending a change:
376
+ `python -m pytest -q tests/public`. Routing/LVS changes count as done only on
377
+ a live KLayout LVS `match=True`.
378
+ - **Byte-frozen router.** `klink/routing/backends/flexdr/` and the crate under
379
+ `rust/` are byte-parity baselines — the Rust kernel is a speed-only port of
380
+ the pure-Python reference. Do not alter them casually.
381
+ - **Preflight.** `python -m klink.doctor` checks your interpreter, the plugin
382
+ connection, and the client/plugin version handshake.
383
+
384
+ Open an issue or a pull request describing the change and how you verified it.
385
+ Contributions are accepted under the project's Apache-2.0 license.
386
+
387
+ Want to contribute a PR, discuss a larger change, or co-develop a feature?
388
+ Reach the maintainers at **klinkdev2026@163.com** (or open a GitHub issue).
389
+
390
+ ## Acknowledgements
391
+
392
+ klink builds on and borrows from excellent open-source work:
393
+
394
+ - **[KLayout](https://www.klayout.de/)** — the layout editor and `pya`/`db` APIs
395
+ klink drives and embeds into.
396
+ - **[OpenROAD](https://github.com/The-OpenROAD-Project/OpenROAD)** (BSD-3-Clause)
397
+ — klink's routing engine contains faithful ports and concept adaptations of
398
+ OpenROAD's detailed router `drt` (FlexDR / FlexPA / FlexGC) and global
399
+ router `grt` (FastRoute).
400
+ - **[gdsfactory](https://github.com/gdsfactory/gdsfactory)** — the photonic
401
+ component and `route_bundle` backend behind the silicon-photonics workflows.
402
+ - **[klive](https://github.com/gdsfactory/klive)** (MIT) — the display protocol
403
+ that klink's plugin reimplements on port 8082 so gdsfactory-style
404
+ `Component.show()` works unchanged.
405
+ - **[KlayoutClaw](https://github.com/caidish/KlayoutClaw)** (MIT) — nanodevice
406
+ flake-detection priors and morphological mask helpers.
407
+ - **[Klayout-Router](https://github.com/Legendrexial/Klayout-Router)** (MIT) —
408
+ the EBL auto-patching idea behind the writefield patch generator.
409
+
410
+ Formal third-party copyright and license texts are in
411
+ [`THIRD_PARTY_NOTICES.md`](THIRD_PARTY_NOTICES.md).
412
+
413
+ ## License
414
+
415
+ Apache-2.0. See `LICENSE`. Third-party components retain their own licenses; see
416
+ `THIRD_PARTY_NOTICES.md`.
@@ -0,0 +1,184 @@
1
+ klayout_klink-0.1.0.dist-info/licenses/LICENSE,sha256=CaI9WHrY2Mes7zzH8AZPDWzkFsOxg9pIdLQX4A5leWs,11342
2
+ klink/__init__.py,sha256=4ihorH5cNip8uJ-UXOgt5_Fc7fK1g_TsDPWNykwm7Po,808
3
+ klink/_meta.py,sha256=_P-79k1_cFf1gP5Oh_sY2eVoKapxLuNcgS9Lf2czOpc,611
4
+ klink/cli.py,sha256=Bhnj7sJAR5rdE0FbnmWv1rWquJ04gVpLpJeeBY8_dHs,5552
5
+ klink/client.py,sha256=V778P6qQIurEZo-_OwObPpqF4HcBYLLTr_Pqj0mPew0,38809
6
+ klink/doctor.py,sha256=hnLUll4vhWr6tjlu_MswceylYUmI34CeRuyGR-ftAao,3864
7
+ klink/errors.py,sha256=fg1q1CH4-0PoK2_4Ma3g9q1yL7sWlNSSJiAg2WRG98g,697
8
+ klink/handshake.py,sha256=34uKM-Mpf9uKfRGT9AJtYVTmpCUAv1bc1Fe-CRm1IKA,2553
9
+ klink/process_stack.py,sha256=VL4ohi25iYyJ-YpfdKvcEAVUh4-7gsptKNPyL1zvJEw,6224
10
+ klink/transfer.py,sha256=v6nKlxZVFt0fMZ04iIPRdJmOqIhCnz-8miRGxLqYVMA,17029
11
+ klink/transport.py,sha256=cPi3i5CGgZTq3cPayzfKfIZS9xanqKxMsRFgk1FDZ1U,3134
12
+ klink/types.py,sha256=veDzIQdOTcFuWV55AftEHaYoY2OsJJtU3xR3NOTf4IY,986
13
+ klink/anchor/__init__.py,sha256=wWT2m8YHO7z82KdQ9BCkvRhfA58nXZCsQci-Pnx7o6w,581
14
+ klink/anchor/inference.py,sha256=4485uBcHTZAJPUfm-pNQGq69_y0YmU8gqvgFrHLt3Pk,5209
15
+ klink/anchor/naming.py,sha256=DJuhOFy07V85lEGAwkBRG69r0Iu3yz0ksqG_W0qWsBk,308
16
+ klink/anchor/workflow.py,sha256=49f89vTKEiusF0t693izta5z_FkbCliHQuLRkNnmREg,6391
17
+ klink/domains/__init__.py,sha256=KnY5EqCqMKdPQO5vG7pcoH5HPceLAQ1JyrmeyBrslU4,328
18
+ klink/domains/measurement/__init__.py,sha256=6QsMrbMe33JT_yYAgwsRqogxoXMjmcaIgJCYOQjfc8I,463
19
+ klink/domains/measurement/binding.py,sha256=VXKViIOR6OHrRN8ANyjvQaWtUaZbySolbZV57_wY6us,3373
20
+ klink/domains/measurement/results.py,sha256=hLGBtRevyj1hZXQP1HKxIv7nQU6dImOLAuUkJiTYFzs,9748
21
+ klink/domains/nanodevice/__init__.py,sha256=WL0aOsNiIi85RYiBMJ1sGtPw-rGKKbh8dtDL1DG4a20,1789
22
+ klink/domains/nanodevice/_deps.py,sha256=HgsvTxqig4xgAv2fiVPiE-D5qbQrJKXBrrHrfkM0NeA,1810
23
+ klink/domains/nanodevice/orchestrators.py,sha256=L4J0csgon_J8HLoG7McZF-DgkZtvMwtGNIAKee0m31I,16747
24
+ klink/domains/nanodevice/pipeline.py,sha256=TUKssnNZqo8gZY2MLrL6B5FyVePmh_shVkmEzoGhkbY,1466
25
+ klink/domains/nanodevice/devices/__init__.py,sha256=sAtLCq2RMBpNPtE9QteUYK9YMzE-wsNdVM0PS6CRQAU,200
26
+ klink/domains/nanodevice/devices/hallbar.py,sha256=5ofsbjm2pi_0RFBWKByxMZac0eypiI7wWfVPZxAc4dQ,7417
27
+ klink/domains/nanodevice/devices/wraparound.py,sha256=3679bPQ5BAkRCznThUW8cY8n67PMT3-Ard4H4FgPYuM,10556
28
+ klink/domains/nanodevice/ebl/__init__.py,sha256=lmkP6hBG2l55Ruw1qYoH592T6iP0n_s9YPO9nDBGQg0,635
29
+ klink/domains/nanodevice/ebl/marks.py,sha256=lnwzgrbHoP0Cpf1ca_RV5qCLNZ3p_1udZtndq8cg2H0,2921
30
+ klink/domains/nanodevice/ebl/patching.py,sha256=A-lUS53bFb4IIUmO79lb4221JbPA6OUpfndQXxSedqc,5398
31
+ klink/domains/nanodevice/ebl/validation.py,sha256=QeV9UYfcnanwIhAuWMrGe56VSB9lIhQtxevvrFJfjzg,3991
32
+ klink/domains/nanodevice/ebl/writefield.py,sha256=He9ik-sgqGnmEq-1hIElJYFbHvkE3tSWLWbmGLApH0Y,8084
33
+ klink/domains/nanodevice/flake/__init__.py,sha256=HTwd1rlA4OZaa9ZP0DKe6ylD0RAqhBL8m-VjlVSTQ9g,2223
34
+ klink/domains/nanodevice/flake/align.py,sha256=xQ8kGKSrWKC-YXFP7NJ_QQ0wLzEIt0OOYKGw3D6MNc8,393
35
+ klink/domains/nanodevice/flake/artifacts.py,sha256=97Sh_cPCZFprl1KKGCY-hCg9JMmuFdyOLFjJOA2Ac_w,4012
36
+ klink/domains/nanodevice/flake/combine.py,sha256=WYdKCZTZNEA7TypzGof31MAgX6jH9nqb4FsyUy8ShJ4,3889
37
+ klink/domains/nanodevice/flake/commit.py,sha256=hggmsQbeFiL-4kGqp-4FicJCNUzIZBCFXX2vxuKZUxI,246
38
+ klink/domains/nanodevice/flake/detect.py,sha256=DFcoXxBvZ2gF_0L-2lkpgaM-8O0FDV3eFs7tF4aNxL0,6834
39
+ klink/domains/nanodevice/flake/detectors.py,sha256=lX34wSd6WXt3-m3QfBBdKEpX9T06vzUn_fNC_5M1qgk,5489
40
+ klink/domains/nanodevice/flake/klayoutclaw.py,sha256=_ht_VxvVcNRafZdCzvyQuDtmTnoNkmm3VG7-er861UY,24575
41
+ klink/domains/nanodevice/flake/review.py,sha256=PNpf3q_-xL_UbWAYi-2bZKbbcKdSy2fDwrXwgFZS8WM,245
42
+ klink/domains/nanodevice/flake/priors/graphene_shape_priors.json,sha256=yjAFbx8zkZacoUCuVXLoG92miZ-J8c0QdmqUJQEq-OU,8263
43
+ klink/domains/nanodevice/flake/priors/graphite_classifier.json,sha256=XFdBU6tA-0vFtXrxWMvDE0g2eiixAm57TGgvB7UFh_g,796
44
+ klink/domains/nanodevice/flake/priors/graphite_priors.json,sha256=RZG1QOjaVGjjLwJie22oubeghGNR9eheReEf3JbflsU,1149
45
+ klink/domains/nanodevice/flake/priors/graphite_shape_priors.json,sha256=z4Ax32mtFFYL0CtrlTcjtgOpfjOBJk-5a4Gt6lTMfR4,5116
46
+ klink/domains/photonics/__init__.py,sha256=sHy6o4NNdmVCLkwlzxRYruq6nXY5lw9IGE2Votl2h9E,343
47
+ klink/domains/photonics/blackbox.py,sha256=-NhIU73TOrIN0xn88i8DT7f0KTkhtFEw5BpO5xDQuRE,6634
48
+ klink/domains/photonics/gf_import.py,sha256=jYBipMcsbrDE526iJlGUfpGOFtf5o_4HNaDvHKNc6v8,22560
49
+ klink/domains/photonics/net_intent.py,sha256=eFUb71Drb13T6QsXG_TZtC4UhvWH1NCnck6JNYEbXCU,63958
50
+ klink/domains/structdevice/__init__.py,sha256=30VOAsdFxDA0unXs3lAI6UQHgLQguNpSyeak26qNVNA,1208
51
+ klink/domains/structdevice/connectivity.py,sha256=xKT54B1dbTuHM8jtjZoYUKkYq0UAVwnAIUpkrD9Pu2M,11316
52
+ klink/domains/structdevice/device_extractor.py,sha256=5kcLJbTcNNcqtX41ytvECq5qxuIKUC7ZIO7Ie32w968,9488
53
+ klink/domains/structdevice/extracted_netlist.py,sha256=xfTq3RTQIp1oTKlLtyNC-4Ow8KIOlN7inCjElqgWWTg,6517
54
+ klink/domains/structdevice/layout_engine.py,sha256=UyY_rwJHqfCwvvnACiDeK8NsjZzukvHRi29k_tWbd4M,44092
55
+ klink/domains/structdevice/logic_map.py,sha256=poOpxTxNfYHEI1RSF-scz1kc97BKjI9dR8eRmjGMJJA,12679
56
+ klink/domains/structdevice/lvs_lite.py,sha256=PGFWz2E0WEDg6RrWPRDWEi6rdDmqeTPeDuEC0-Ji54c,8402
57
+ klink/domains/structdevice/netlist_build.py,sha256=oqdTb9e1MTf_DWGoJB2tzJri56j4yvxUDU-IEXoJwFM,15114
58
+ klink/domains/structdevice/netlist_lint.py,sha256=u8jUxvB-6HzdlGWiUnPFf_xJ3gjWypmCkFfj3qc1rT8,10814
59
+ klink/domains/structdevice/orchestrators.py,sha256=mZ8RwqdgNADVJeUXOqJSvXUmmqiLLj0S9FTjdQqE_Aw,75237
60
+ klink/domains/structdevice/pcell_fitter.py,sha256=lJA0pKLXR5oK6Tfcpl-sjAJJ-mY25lTOu7SmHwDNTZE,10477
61
+ klink/domains/structdevice/recipes.py,sha256=qivzsAtuMfTD_RhLPrkM9ZYwJBDKPg3eF0HED1Hw088,6567
62
+ klink/domains/structdevice/reference_netlist.py,sha256=Hu2SYhwYMm7rv8vzm3xBZet-uwFYodRKroLs5DyZTFE,5474
63
+ klink/domains/structdevice/sizing.py,sha256=uRT5uiumGAdFs5w0Bp18OZvYcG6EZfvML56YrsnME3Y,6899
64
+ klink/domains/structdevice/yosys_flow.py,sha256=3kyKllTF1CddjY8Ny28ZCnDlqbm1Co3veybxfCymS3Q,8851
65
+ klink/mcp/CLAUDE.md,sha256=1_l4Ncp4ce0stfputJb0RTKtVYG5SDx__X3TOwvAFUg,12205
66
+ klink/mcp/README.md,sha256=7ER6_313wqhQ_ZIdydjYBCpUhx1Mtb7N_nuIbYUkLh0,6280
67
+ klink/mcp/__init__.py,sha256=ZHmojvE072PQAZ4penDZisy1ghuoPGnumz6GzlgAoF8,55
68
+ klink/mcp/__main__.py,sha256=ufEC0K-450TyCOdvCMt-dochN3wjGq-vIQild8xFgKw,8809
69
+ klink/mcp/bridge.py,sha256=_dPTUziBWHi2wkn9QavXWNXWfZGxB4Y_oZR9S7Kqwyk,8383
70
+ klink/mcp/catalog.py,sha256=nwGLCbOfQk_u_bu-HJN-9EvAZTS4t0BoLGI1EFE_ho8,21532
71
+ klink/mcp/config.py,sha256=iJ93jXa-dB8xFAwtvTwAOHK2Lv_I9hxW2YTmjlqVdy0,204
72
+ klink/mcp/connection.py,sha256=twOhQrgdgBGcI3VWVMfHdugeb5bUoOsZ4H01Fixuk2c,9242
73
+ klink/mcp/diagnostics.py,sha256=7wiwX1YnN2LIyFRDPR5wP11WQKAP4rPTCL6zXJ8DkDY,2644
74
+ klink/mcp/guide.py,sha256=S2C36IKinxK66XbXo3NBAXGV7K7OCVvmH5iwFT6OpvY,6639
75
+ klink/mcp/interaction_context.py,sha256=JtP8E8cJP1wxulS2tHq_r-A_340YqV5wYuizY2HbuU8,12122
76
+ klink/mcp/profiles.py,sha256=Gtd4LbVMaxzkbh_9UDGrf-kluwNa103ae9zKflhi_7I,4703
77
+ klink/mcp/registry.py,sha256=oRU59oMgsljPIprbJNEB9v4haeq73GlQUtA69DLe5ws,4390
78
+ klink/mcp/results.py,sha256=H0_U-eWLbnyY1r4PXd149z4rxQZjT7EAtKph4OishFg,587
79
+ klink/mcp/server.py,sha256=UEdHLAmJ2o_j16Y0HHNdqMPOSReP954Xriaq3nK2D5w,4230
80
+ klink/mcp/session.py,sha256=QBdD0rzHJEqz6eqCs9w5hCHIpHf6pUcOB20i8idLvYA,5404
81
+ klink/mcp/session_registry.py,sha256=mORAmSJoP25v8xr_bxZg8k0MLyp8EsijDy1MCsIj6hU,3437
82
+ klink/mcp/agents/README.md,sha256=ob8e3Yi-T5Topdk-PolTzP25NSOk-ATyAyjKzeUTROU,3789
83
+ klink/mcp/agents/lanes.json,sha256=W3XLHTY5hWtNbJ28t6lWwC4_e7aHAYhFzBVBojiWovY,8479
84
+ klink/mcp/local_tools/__init__.py,sha256=8VJjwZ1Z7hXYQd0QrMrmAP9fjZJdMeo4SudheQz8M1Q,2522
85
+ klink/mcp/local_tools/_helpers.py,sha256=VSchtPCPjUNxllyh8h4mySGy5kywEIwUM3kEdxipAeo,11016
86
+ klink/mcp/local_tools/discovery.py,sha256=iy1rcx32AAn8-YPUpr07lAU0knTRrwsCBCQDXj4QyX8,5234
87
+ klink/mcp/local_tools/interaction.py,sha256=5f4kTER_azdZ5L4qoAQ1Z16-XpV_vH2ahWV4V_vaJMw,4715
88
+ klink/mcp/local_tools/nanodevice.py,sha256=qvs6R0klGK8zPBOldJmkLNiy4tyL4jIu9wT8N877s1Y,4551
89
+ klink/mcp/local_tools/photonics.py,sha256=HZr-Hqwlq9LoPErjFogQx5CxU0cV3nATLzir1D_frZU,15482
90
+ klink/mcp/local_tools/routing.py,sha256=PiZZKth6zUcFoJNT30ano6pBXu5bU1MyEaRSfn5KCLU,25772
91
+ klink/mcp/local_tools/session.py,sha256=CnPCmNeY5fmcXP-IK9IXH51EQLKnNPQ0s78iNcrb_jk,14926
92
+ klink/mcp/local_tools/structdevice.py,sha256=op1pliWwgjlF5HXBtEyE4l3QsMfpPVP__CC4Y6VuVfU,16916
93
+ klink/mcp/skills/klayout/SKILL.md,sha256=l60GXdIbgGgai3m-QgX011mqTlSw_bGYDg1_HUAkVMo,15050
94
+ klink/mcp/skills/klayout-gdsfactory/SKILL.md,sha256=-2uMzzmCWkUa4tD8l4Yb2phYCp71dBcK2iH9zj3kfXo,7032
95
+ klink/port/__init__.py,sha256=Q3IDGJ3O_ItxMHo8zTyhSZH8XjGt5UoDo3-qRQt5wRI,1733
96
+ klink/port/blackbox.py,sha256=0DGKb2mCfDYGjjh_sTZ5rcJFuFiqqOkM_QhkmCi-y4M,310
97
+ klink/port/inference.py,sha256=4W7ldB32YrWT9AXfR0ZmLYe6BmvbqIDA7_BGXUce9sU,10485
98
+ klink/port/naming.py,sha256=NUfvzM_OFxM5oOieYZ9s4zlqavBI0W83hSZezwqLD4g,1076
99
+ klink/port/validation.py,sha256=MGdk8Ty7jqJlNiDs4bmJeCfSCHspLg1mw9HISBLfwWI,2142
100
+ klink/port/workflow.py,sha256=QJCSF8qQQpLad8hT3jvomr1Dj5rnPiIX2ajWp7wL7xQ,13714
101
+ klink/routing/__init__.py,sha256=cn3BcLNDqyeiTNkJckp63-BWuf9OFfHWmzV5emZtQog,3934
102
+ klink/routing/backends/__init__.py,sha256=ykNWIf1Ef1XRj5e0jfW_BxKYVAUELHTXQsaJhbvHKK8,72
103
+ klink/routing/backends/flexdr/__init__.py,sha256=kXCAUAu357tsJBBAVpOnOol-12XG0LsaPWmTncNGIhw,79
104
+ klink/routing/backends/flexdr/flexdr.py,sha256=dY6_F-S5Ot4U-0ZnUb1wD9DHn09qkpK18zmPKeHnPqQ,58794
105
+ klink/routing/backends/gdsfactory/__init__.py,sha256=EfKryXZAO8l4S-A01LzGOm4yHtO7zzp-ldBtLY9lUY8,83
106
+ klink/routing/backends/gdsfactory/gdsfactory_backend.py,sha256=mLIbg8zc0ttGR48ATbSW5KUusstwCj8MIe_9GmIQWEc,30121
107
+ klink/routing/backends/gdsfactory/gdsfactory_components.py,sha256=u_4hHE228X7DCt929p0c1EvRHk_JamcC0Y5q1ng2Syw,5283
108
+ klink/routing/backends/gdsfactory/gdsfactory_ports.py,sha256=Tr6bfolHQUOZWCLtvQL2TuVb628aoUy044Ffw38NHNw,14688
109
+ klink/routing/backends/geometric/__init__.py,sha256=JlZy-rMh3a1EwFjRXslaVwJBGiR2yf2iM0LXfLZHqcw,82
110
+ klink/routing/backends/geometric/damped.py,sha256=YkW0YoR0Clot6tnN8vCpYuhqE9vhsTBXHG1PGQK_DO0,9988
111
+ klink/routing/backends/geometric/global_channel.py,sha256=rlEEeQCHBMsOo5D3EYh-D38QzwdoXwZlvVi4K_PRTZA,26031
112
+ klink/routing/backends/geometric/multilayer.py,sha256=Y5_z6x8D0i6Wo3WG-4wyVdCV_1iqK-WrqW5QV-1Enx0,7558
113
+ klink/routing/backends/geometric/steiner.py,sha256=q2NTrT-gbOtzUa4xv_OHGwYSG3xOHWjQ9aPpHFzaIME,17045
114
+ klink/routing/backends/geometric/tapered.py,sha256=NDrh8RlTDMhiEjgz7j8r-hOy9lqm9mh2rZUfNarXuss,34187
115
+ klink/routing/backends/geometric/tapered_segments.py,sha256=NQz_iMacG-HG4f5DfL182nvoZ41RL_mcg0GvWh8YJko,81605
116
+ klink/routing/backends/negotiated/__init__.py,sha256=ru7Vcm-JfT4Y2msjDGCgdwIMq9Q_PEhpB2OtTX-zKRk,83
117
+ klink/routing/backends/negotiated/bounded_router.py,sha256=5wRjmM4nc-LgS0GqY3G8oZIGjmNRal6GHBahyIoln0Y,10237
118
+ klink/routing/backends/negotiated/hier_router.py,sha256=uzGzTHLvM06gWHvp-cP5map7dSW28lNsRBM-S-c_Yqg,10679
119
+ klink/routing/backends/negotiated/negotiated.py,sha256=9CaMrJVzX8imfB15MbZdFZxSXGdCGDv4vHN-Fe06N9E,8159
120
+ klink/routing/backends/negotiated/negotiated_grid.py,sha256=XYigr8C5iazZWu1UDuEATraschob37E9dfM-tdx0n5s,15884
121
+ klink/routing/backends/negotiated/negotiated_resources.py,sha256=OMMO9EUMXeZdBpY4S4bmvWP4QfKiybYw60pnqzFcPyY,10858
122
+ klink/routing/backends/pnr_multilayer/__init__.py,sha256=-0tu9ytSzTvBsP7LLTjKarJYLDW1cCfp6K2sVkXnhtQ,1240
123
+ klink/routing/backends/pnr_multilayer/pnr_flexdr.py,sha256=wRMxvb3qoutMAXxoZEyObjboDHeqVAJHh4l8Cx_vgTQ,64326
124
+ klink/routing/backends/pnr_multilayer/pnr_flexta.py,sha256=oAiOlURo44Plx9ldx0qsEh9F5sCPJh8CZGVw9OxUCMw,31311
125
+ klink/routing/backends/pnr_multilayer/dr/__init__.py,sha256=ou8KLIWNi8rtgumM8s-lxz9haTihXRnGVCgNOaOB6_k,1019
126
+ klink/routing/backends/pnr_multilayer/dr/legality.py,sha256=elp0GCfwUGY-FxywasoP0yRhnRlzd61vYQMNaT5oiXY,3927
127
+ klink/routing/backends/pnr_multilayer/dr/maze.py,sha256=gDcuwemvAVABnndwV0RQpq0pnURGUjM-ZptS82CH-eI,27948
128
+ klink/routing/backends/pnr_multilayer/dr/rust_bridge.py,sha256=HIRnWvTl-PS6hYtoK9FCOI_OSdruUk9Kn4_IHgaQwM4,4490
129
+ klink/routing/backends/pnr_multilayer/dr/trackgrid_adapter.py,sha256=Hp_TwddR0T9EQuoSrDEXxs3CHvST-uI2TpQqdaamqDY,4891
130
+ klink/routing/backends/pnr_multilayer/gr3d/__init__.py,sha256=uy_n6d5Qsb4EJQa8bCJ2qIav3_H8hq8t1gyN4DpwmXs,654
131
+ klink/routing/backends/pnr_multilayer/gr3d/layer_assign.py,sha256=SJJcuiI-NxVKlMOePTlsU_qjeYeU-dREl_4mS420KNI,11444
132
+ klink/routing/backends/pnr_multilayer/grid/__init__.py,sha256=hSKLmOgvg5JfzYqhM8_Ha72nuSO_2HQgNkF5leTg4wY,490
133
+ klink/routing/backends/pnr_multilayer/grid/track_grid.py,sha256=gXhbucvu4Foso2re3TWq_wkHacaw2zgPaFb8HC68yQk,15116
134
+ klink/routing/backends/pnr_multilayer/pa/__init__.py,sha256=5Ry8DZ3HoH4FnM1SIZLmHGXxW1OEWVAGzu0gg6JdBPE,768
135
+ klink/routing/backends/pnr_multilayer/pa/flexpa.py,sha256=Uwoh8g597yWzJEPtrZ1WFbRTDp9BGZkqlMf8NDrssd4,5513
136
+ klink/routing/backends/pnr_multilayer/ta/__init__.py,sha256=rh-k2f8cmKeM3-bL4JRBho1iMtjvB5hHCc-dbsdJyZ0,647
137
+ klink/routing/backends/pnr_multilayer/ta/track_assign.py,sha256=tinVaf60RVwF6xgdX_sW5vUKVYOD17-teiTqnw-31zA,7104
138
+ klink/routing/core/__init__.py,sha256=hIjZm7QtXRLRiN0qYKvdIokujDElin3Cf-OEEDvcfU0,68
139
+ klink/routing/core/intent.py,sha256=WzIoKvYfHBFmhTnZXL57GD789Anf-I6O5vx153nkX2c,6055
140
+ klink/routing/core/validation.py,sha256=UxJ8xXwkEKI8qHqr_R4fpgbhGuPkmTrN4MCTrOgnMmo,8688
141
+ klink/routing/geom/__init__.py,sha256=aXvAJmVueTdn-9a_WYneAeVtoqnrJ-V41Wl4m1jHpws,68
142
+ klink/routing/geom/bends.py,sha256=8H6pwldzq3qlCqm3dk5IS8Hj73T4QMR12SO9D7NerK4,7483
143
+ klink/routing/geom/constraints.py,sha256=bYzpU42Y-B1Lm5DL23KjsrfXwvRj6Z1xXWJ9t_Z1Tmk,7486
144
+ klink/routing/geom/geometric.py,sha256=SnEXWYxHz4fiiD5y4VHzWhnxpcOCibilE4v-6QAzRUo,18637
145
+ klink/routing/geom/geometry.py,sha256=yq3nxymW8zONc0hqErfsD32SaDChyT2YRY2aVd4nO14,7824
146
+ klink/routing/geom/path_quality.py,sha256=oMdJt9pTRvIhhemzZc4S_7birDM8mphmbAe7Mv4AqbA,5697
147
+ klink/routing/geom/planner.py,sha256=ZMhOH-UbMeLr0iqrGjikCpwR6_XxVPV90Ew9um2UHC0,15603
148
+ klink/routing/geom/port.py,sha256=uuyPbfLJmhXykQI_orF7Q3iP1CI-a0rB3aT0Jk_XTNM,8949
149
+ klink/routing/geom/run.py,sha256=S0kExMJM8GsCQ_UunZPLI51Fgv8bbDpw5ze8fbNV71c,3616
150
+ klink/routing/geom/writeback.py,sha256=HWUl3GCyeD1cZqldcj0Lq6qEYIJw3i18XnRmJnqiVJU,1409
151
+ klink/routing/grid/__init__.py,sha256=cbrv2_X3v6lBY-dSHxIlycAdzi1y61Q0yMZLZdX0Ggo,68
152
+ klink/routing/grid/capacity_grid.py,sha256=W69l_FtbNgzonO6AEjY5fjSBmRWadO6iiCXKXNgv2_4,20197
153
+ klink/routing/grid/cell_realize.py,sha256=DirxaJTOiQnUn8zuSjU1fOWR0wn9YB6Doh6-9YGAltE,6129
154
+ klink/routing/grid/clean_pdn.py,sha256=KoDgMN0l_UmCylkzAWbhgZTftcT4I0FXbJ08QfM8DA8,6983
155
+ klink/routing/grid/feature_grid.py,sha256=u6Gr8LH1X5Wz3eDA4lxyyRBgcBMFPn2pWe4oxQgclaU,11715
156
+ klink/routing/grid/feature_grid_3d.py,sha256=0cMhLImbps0VmuCSkcuWaCpWBzDZK8zscWYstV0xn2g,13740
157
+ klink/routing/grid/floorplan.py,sha256=RLLE9w7-wJE6_Eo3jRXk3sfPQHGdWGLNgCyizdU80EM,6281
158
+ klink/routing/grid/gcell.py,sha256=axFlVjKQfk6P32I-V6PIr2vOHS0dSGRV0F4sgUSpU0Y,3286
159
+ klink/routing/grid/global_router.py,sha256=I6vGIaajGVTjxVsYU0XQRV6voyXKdvwLUcK6DnyffAk,10838
160
+ klink/routing/grid/pad_harvest.py,sha256=YXBRYxt1tOlcBMYvH_N6TUKpBrQhg2adiXOgDBQA704,4999
161
+ klink/routing/grid/pathfinder.py,sha256=1_7as9Z9n80BODKBzibfpSxWJMzbOROKPxi_mJKuHa8,13475
162
+ klink/routing/grid/placer.py,sha256=c1LsaXDeg-9BwCGbURn-nn_OO24F7ZrbQMO1sTbaylU,3886
163
+ klink/routing/grid/process_profile.py,sha256=xGU18227NP9DrqextoPoKMjv3wEIZ2OL1iXMnSF24XI,6785
164
+ klink/spec/__init__.py,sha256=ZNK6ItXnpkk54GHzz0q1lkZF7NBm6v5e7KOk4NIP60w,443
165
+ klink/spec/v1.py,sha256=PCeO2EEkPIK6boL72Yr8oVPKC5aSKgmv-e0etzUSTMM,10796
166
+ klink/templates/project/AGENTS.md,sha256=F9wF3B7dsG6X1SeOyoNfdN1ZbpOc5WypjM-X3F6ijm8,4108
167
+ klink/templates/project/CLAUDE.md,sha256=fCebqOjJ1oD9pbGod5DJ4BIGAttwSGkDqEtGDRdTuco,1802
168
+ klink/templates/project/README.md,sha256=2GgJq5gw4377C73W1EyB3zBXP8f88s-mLBhOxQ_eytg,2919
169
+ klink/templates/project/README.zh-CN.md,sha256=Yz94hAeQdwmWoZLvNbuhabdBG1dJY1ToNC52MyOQbcU,2548
170
+ klink/templates/project/gitignore,sha256=J2TirHSVLNthtcjQ-qkq-5pKitxecjSmv6j6rreNFYI,295
171
+ klink/templates/project/mcp.example.json,sha256=z9hUYAC4cj9ET8XTMRPw6yDuxpp9QKYewWFAsCmJVd0,532
172
+ klink/templates/project/pdk.py,sha256=z4j4QJYThk2bffCY9N2IGzIwPBpe8PuRapIDEiC8rjw,6312
173
+ klink/templates/project/custom_devices/README.md,sha256=ZX5VCngXWJxkvFVTxb6IM8YV9sMTS3xDf6Xeqvlp0co,797
174
+ klink/templates/project/custom_devices/digital_pnr_lvs.py,sha256=h3b1mlEEah5hpc9XQQ3O23Xptnu8Svfyh4TnL2rYg10,5013
175
+ klink/templates/project/example_template/ebl_wraparound.py,sha256=7UMNC3vQFGkvLpI3quYqm8Uy9RaM5O_h9tekS3hl6qs,3866
176
+ klink/templates/project/example_template/gf_mzi_module.py,sha256=UaHrfFSO2TR6_gh64qV2ImhE4tXyxBmeCcvS65OI3XM,12561
177
+ klink/templates/project/example_template/hallbar.py,sha256=zgKtXNUgDicmyq4VH-F444HDB691ihXX4H6yu1v-YdU,6417
178
+ klink/templates/project/example_template/neural_electrode.py,sha256=l-zV2xgm8hD9Eo9gQQIuBlJRQw4gtspKJSVufXpsc5k,22466
179
+ klink/templates/project/recipes/README.md,sha256=AIJm8gVShW8_NCT1aCl09MZxKpxeuhnYjSxrAowX1T4,3608
180
+ klayout_klink-0.1.0.dist-info/METADATA,sha256=Gat--fZKNWE5-YoKva4zM_woswuOxHhY5bNW2LuGv54,15839
181
+ klayout_klink-0.1.0.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
182
+ klayout_klink-0.1.0.dist-info/entry_points.txt,sha256=VSqPjG4TqWmozTqvLLx5d90KyEq7MHJZQF0HTyVqnS0,77
183
+ klayout_klink-0.1.0.dist-info/top_level.txt,sha256=nwsbP-zo4YU1iBNjS7d0z-jig46BkmBrSD3hOo5w-RA,6
184
+ klayout_klink-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (83.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ klink = klink.cli:main
3
+ klink-mcp = klink.mcp.__main__:main