@lanes-sh/link 0.1.0

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 (276) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +144 -0
  3. package/bin/lanes +42 -0
  4. package/instructions/agents/lanes-link-scout.md +73 -0
  5. package/instructions/skills/lanes-link/SKILL.md +187 -0
  6. package/package.json +95 -0
  7. package/src/audit/chain.ts +278 -0
  8. package/src/audit/conformance.ts +374 -0
  9. package/src/audit/fanout.ts +97 -0
  10. package/src/audit/index.ts +218 -0
  11. package/src/audit/stdout.ts +60 -0
  12. package/src/auth/index.ts +220 -0
  13. package/src/auth/oauth/metadata.ts +75 -0
  14. package/src/auth/oauth/server.ts +385 -0
  15. package/src/auth/oauth/store.ts +215 -0
  16. package/src/auth/oidc.ts +206 -0
  17. package/src/auth/remote.ts +72 -0
  18. package/src/cli/argv.ts +94 -0
  19. package/src/cli/callback-page.ts +256 -0
  20. package/src/cli/commands/connect/accounts.ts +94 -0
  21. package/src/cli/commands/connect/authorise.ts +298 -0
  22. package/src/cli/commands/connect/client.ts +284 -0
  23. package/src/cli/commands/connect/index.ts +398 -0
  24. package/src/cli/commands/connect/outcome.ts +119 -0
  25. package/src/cli/commands/connect/requirements.ts +103 -0
  26. package/src/cli/commands/connect/scopes-gate.ts +146 -0
  27. package/src/cli/commands/connect/settle.ts +136 -0
  28. package/src/cli/commands/connect/setup.ts +276 -0
  29. package/src/cli/commands/mcp/assets.ts +189 -0
  30. package/src/cli/commands/mcp/harnesses.ts +143 -0
  31. package/src/cli/commands/mcp/list.ts +70 -0
  32. package/src/cli/commands/mcp/register.ts +199 -0
  33. package/src/cli/commands/mcp/stdio.ts +57 -0
  34. package/src/cli/commands/mcp.ts +22 -0
  35. package/src/cli/commands/operate/attach.ts +121 -0
  36. package/src/cli/commands/operate/audit.ts +119 -0
  37. package/src/cli/commands/operate/inspect.ts +355 -0
  38. package/src/cli/commands/operate/outputs.ts +206 -0
  39. package/src/cli/commands/operate/policy.ts +80 -0
  40. package/src/cli/commands/operate/serve.ts +55 -0
  41. package/src/cli/commands/operate/status.ts +133 -0
  42. package/src/cli/commands/operate/token.ts +70 -0
  43. package/src/cli/commands/operate.ts +27 -0
  44. package/src/cli/commands/owner/memory.ts +110 -0
  45. package/src/cli/commands/owner/shared.ts +125 -0
  46. package/src/cli/commands/owner/skills.ts +92 -0
  47. package/src/cli/commands/owner/vault.ts +140 -0
  48. package/src/cli/commands/owner.ts +46 -0
  49. package/src/cli/commands/profile/removal.ts +278 -0
  50. package/src/cli/commands/profile/remove.ts +315 -0
  51. package/src/cli/commands/profile.ts +156 -0
  52. package/src/cli/commands/secrets.ts +176 -0
  53. package/src/cli/commands/setup.ts +150 -0
  54. package/src/cli/commands/target.ts +310 -0
  55. package/src/cli/config-edit.ts +397 -0
  56. package/src/cli/endpoint-url.ts +77 -0
  57. package/src/cli/identity.ts +109 -0
  58. package/src/cli/lanes.ts +78 -0
  59. package/src/cli/main.ts +333 -0
  60. package/src/cli/oauth-error.ts +13 -0
  61. package/src/cli/oauth-exchange.ts +146 -0
  62. package/src/cli/oauth.ts +354 -0
  63. package/src/cli/output.ts +184 -0
  64. package/src/cli/prompt.ts +180 -0
  65. package/src/cli/publish.ts +185 -0
  66. package/src/cli/runtime/discovery.ts +123 -0
  67. package/src/cli/runtime/open.ts +342 -0
  68. package/src/cli/runtime/registry.ts +185 -0
  69. package/src/cli/runtime/select.ts +124 -0
  70. package/src/cli/runtime.ts +34 -0
  71. package/src/cli/scopes.ts +63 -0
  72. package/src/cli/usage.ts +111 -0
  73. package/src/cli/version.ts +25 -0
  74. package/src/connectivity/auth/README.md +36 -0
  75. package/src/connectivity/auth/api-key/index.ts +43 -0
  76. package/src/connectivity/auth/authorize.ts +49 -0
  77. package/src/connectivity/auth/basic/index.ts +68 -0
  78. package/src/connectivity/auth/bearer/index.ts +13 -0
  79. package/src/connectivity/auth/credential.ts +19 -0
  80. package/src/connectivity/auth/header/index.ts +18 -0
  81. package/src/connectivity/auth/index.ts +35 -0
  82. package/src/connectivity/auth/none/index.ts +12 -0
  83. package/src/connectivity/auth/oauth-authcode/broker.ts +261 -0
  84. package/src/connectivity/auth/oauth-authcode/index.ts +64 -0
  85. package/src/connectivity/auth/oauth-authcode/provider.ts +279 -0
  86. package/src/connectivity/auth/oauth-authcode/refresh.ts +118 -0
  87. package/src/connectivity/auth/resolve.ts +61 -0
  88. package/src/connectivity/auth/strategy/index.ts +14 -0
  89. package/src/connectivity/capability.ts +164 -0
  90. package/src/connectivity/connector.ts +175 -0
  91. package/src/connectivity/context.ts +77 -0
  92. package/src/connectivity/index.ts +94 -0
  93. package/src/connectivity/mail/attachments.ts +368 -0
  94. package/src/connectivity/mail/compose.ts +73 -0
  95. package/src/connectivity/mail/index.ts +40 -0
  96. package/src/connectivity/mail/message.ts +82 -0
  97. package/src/connectivity/mail/nodemailer.d.ts +83 -0
  98. package/src/connectivity/mail/staging.ts +143 -0
  99. package/src/connectivity/mail/url.ts +301 -0
  100. package/src/connectivity/manifest/auth.ts +135 -0
  101. package/src/connectivity/manifest/bundles.ts +23 -0
  102. package/src/connectivity/manifest/connector.ts +168 -0
  103. package/src/connectivity/manifest/credential-ref.ts +73 -0
  104. package/src/connectivity/manifest/identity.ts +43 -0
  105. package/src/connectivity/manifest/index.ts +46 -0
  106. package/src/connectivity/manifest/primitives.ts +20 -0
  107. package/src/connectivity/manifest/provider.ts +208 -0
  108. package/src/connectivity/manifest/requirements.ts +146 -0
  109. package/src/connectivity/manifest/setup.ts +55 -0
  110. package/src/connectivity/provider.ts +163 -0
  111. package/src/connectivity/transports/README.md +33 -0
  112. package/src/connectivity/transports/composite/index.ts +68 -0
  113. package/src/connectivity/transports/dav/calendar.ts +217 -0
  114. package/src/connectivity/transports/dav/capabilities.ts +151 -0
  115. package/src/connectivity/transports/dav/client.ts +226 -0
  116. package/src/connectivity/transports/dav/contacts.ts +75 -0
  117. package/src/connectivity/transports/dav/ical.ts +412 -0
  118. package/src/connectivity/transports/dav/index.ts +143 -0
  119. package/src/connectivity/transports/dav/operations.ts +43 -0
  120. package/src/connectivity/transports/dav/request.ts +161 -0
  121. package/src/connectivity/transports/dav/xml.ts +123 -0
  122. package/src/connectivity/transports/factory.ts +181 -0
  123. package/src/connectivity/transports/fs/capabilities.ts +88 -0
  124. package/src/connectivity/transports/fs/commands.ts +258 -0
  125. package/src/connectivity/transports/fs/index.ts +121 -0
  126. package/src/connectivity/transports/fs/operations.ts +45 -0
  127. package/src/connectivity/transports/fs/paths.ts +120 -0
  128. package/src/connectivity/transports/fs/result.ts +12 -0
  129. package/src/connectivity/transports/http/index.ts +255 -0
  130. package/src/connectivity/transports/imap/attachment.ts +166 -0
  131. package/src/connectivity/transports/imap/capabilities.ts +158 -0
  132. package/src/connectivity/transports/imap/client.ts +398 -0
  133. package/src/connectivity/transports/imap/commands.ts +385 -0
  134. package/src/connectivity/transports/imap/index.ts +152 -0
  135. package/src/connectivity/transports/imap/operations.ts +64 -0
  136. package/src/connectivity/transports/imap/parse.ts +130 -0
  137. package/src/connectivity/transports/imap/parser.ts +272 -0
  138. package/src/connectivity/transports/imap/result.ts +15 -0
  139. package/src/connectivity/transports/imap/send.ts +92 -0
  140. package/src/connectivity/transports/imap/socket.ts +111 -0
  141. package/src/connectivity/transports/imap/utf7.ts +136 -0
  142. package/src/connectivity/transports/index.ts +20 -0
  143. package/src/connectivity/transports/local/index.ts +173 -0
  144. package/src/connectivity/transports/mcp/index.ts +215 -0
  145. package/src/deployments/README.md +63 -0
  146. package/src/deployments/adapters/audit-blob.ts +203 -0
  147. package/src/deployments/adapters/filesystem.ts +184 -0
  148. package/src/deployments/adapters/gcp-secret-manager.ts +492 -0
  149. package/src/deployments/adapters/gcs.ts +191 -0
  150. package/src/deployments/adapters/otlp.ts +128 -0
  151. package/src/deployments/adapters/s3.ts +195 -0
  152. package/src/deployments/azure/README.md +21 -0
  153. package/src/deployments/bootstrap.ts +177 -0
  154. package/src/deployments/deploy.ts +290 -0
  155. package/src/deployments/driver.ts +157 -0
  156. package/src/deployments/drivers.ts +35 -0
  157. package/src/deployments/gcp/Dockerfile +70 -0
  158. package/src/deployments/gcp/cloudbuild.yaml +31 -0
  159. package/src/deployments/gcp/driver.ts +175 -0
  160. package/src/deployments/gcp/gcloud.ts +178 -0
  161. package/src/deployments/gcp/provision.ts +290 -0
  162. package/src/deployments/gcp/survey.ts +319 -0
  163. package/src/deployments/local/README.md +12 -0
  164. package/src/deployments/prepare.ts +257 -0
  165. package/src/deployments/steps.ts +137 -0
  166. package/src/deployments/target.ts +295 -0
  167. package/src/deployments/upload.ts +207 -0
  168. package/src/dispatch/context.ts +195 -0
  169. package/src/dispatch/dispatch.ts +350 -0
  170. package/src/dispatch/index.ts +32 -0
  171. package/src/dispatch/staging.ts +102 -0
  172. package/src/policy/index.ts +179 -0
  173. package/src/policy/limits.ts +77 -0
  174. package/src/profile/authorization.ts +81 -0
  175. package/src/profile/files.ts +71 -0
  176. package/src/profile/index.ts +76 -0
  177. package/src/profile/layout.ts +123 -0
  178. package/src/profile/load.ts +199 -0
  179. package/src/profile/primitives.ts +45 -0
  180. package/src/profile/schema.ts +347 -0
  181. package/src/profile/secret-detection.ts +162 -0
  182. package/src/profile/targets.ts +152 -0
  183. package/src/profile/workspace.ts +262 -0
  184. package/src/providers/custom/index.ts +21 -0
  185. package/src/providers/custom/load.ts +115 -0
  186. package/src/providers/custom/template.ts +156 -0
  187. package/src/providers/example/provider.ts +207 -0
  188. package/src/providers/google/calendar/index.ts +66 -0
  189. package/src/providers/google/calendar/redact.ts +40 -0
  190. package/src/providers/google/contacts/index.ts +50 -0
  191. package/src/providers/google/contacts/redact.ts +21 -0
  192. package/src/providers/google/docs/index.ts +45 -0
  193. package/src/providers/google/drive/hints.ts +28 -0
  194. package/src/providers/google/drive/index.ts +34 -0
  195. package/src/providers/google/drive/redact.ts +39 -0
  196. package/src/providers/google/drive-mcp/index.ts +21 -0
  197. package/src/providers/google/gmail/api.ts +42 -0
  198. package/src/providers/google/gmail/attachment.ts +142 -0
  199. package/src/providers/google/gmail/hints.ts +55 -0
  200. package/src/providers/google/gmail/index.ts +112 -0
  201. package/src/providers/google/gmail/redact.ts +56 -0
  202. package/src/providers/google/gmail/send.ts +365 -0
  203. package/src/providers/google/gmail-mcp/index.ts +35 -0
  204. package/src/providers/google/index.ts +10 -0
  205. package/src/providers/google/shared/oauth.ts +122 -0
  206. package/src/providers/google/shared/scopes.ts +99 -0
  207. package/src/providers/google/shared/setup.ts +80 -0
  208. package/src/providers/google/sheets/hints.ts +45 -0
  209. package/src/providers/google/sheets/index.ts +70 -0
  210. package/src/providers/google/sheets/redact.ts +45 -0
  211. package/src/providers/google/specs/calendar.v3.json +1829 -0
  212. package/src/providers/google/specs/docs.v1.json +381 -0
  213. package/src/providers/google/specs/drive.v3.json +2208 -0
  214. package/src/providers/google/specs/gmail.v1.json +2578 -0
  215. package/src/providers/google/specs/people.v1.json +506 -0
  216. package/src/providers/google/specs/sheets.v4.json +1269 -0
  217. package/src/providers/google/specs/tasks.v1.json +840 -0
  218. package/src/providers/google/specs/vendor.ts +661 -0
  219. package/src/providers/google/tasks/index.ts +53 -0
  220. package/src/providers/google/tasks/redact.ts +34 -0
  221. package/src/providers/harness.ts +95 -0
  222. package/src/providers/icloud/calendar/index.ts +27 -0
  223. package/src/providers/icloud/contacts/index.ts +17 -0
  224. package/src/providers/icloud/drive/index.ts +47 -0
  225. package/src/providers/icloud/index.ts +8 -0
  226. package/src/providers/icloud/mail/index.ts +37 -0
  227. package/src/providers/icloud/shared/setup.ts +66 -0
  228. package/src/providers/index.ts +93 -0
  229. package/src/providers/linear/index.ts +11 -0
  230. package/src/providers/linear/scopes.ts +7 -0
  231. package/src/providers/memory/provider.ts +429 -0
  232. package/src/providers/notion/index.ts +19 -0
  233. package/src/providers/owner.ts +49 -0
  234. package/src/providers/scopes.ts +26 -0
  235. package/src/providers/setup/plan.ts +141 -0
  236. package/src/providers/setup/provider.ts +323 -0
  237. package/src/providers/shared/frontmatter.ts +119 -0
  238. package/src/providers/skills/provider.ts +283 -0
  239. package/src/providers/skills/store.ts +252 -0
  240. package/src/providers/vault/provider.ts +194 -0
  241. package/src/registry/index.ts +36 -0
  242. package/src/registry/policy-bridge.ts +32 -0
  243. package/src/registry/reconcile.ts +313 -0
  244. package/src/registry/registry.ts +240 -0
  245. package/src/secrets/document.ts +293 -0
  246. package/src/secrets/index.ts +154 -0
  247. package/src/secrets/system.ts +173 -0
  248. package/src/secrets/vault.ts +336 -0
  249. package/src/server/attachments.ts +197 -0
  250. package/src/server/container.ts +96 -0
  251. package/src/server/edge.ts +53 -0
  252. package/src/server/endpoint.ts +352 -0
  253. package/src/server/generations.ts +362 -0
  254. package/src/server/harness.ts +400 -0
  255. package/src/server/index.ts +331 -0
  256. package/src/server/logging.ts +41 -0
  257. package/src/server/mcp/build.ts +68 -0
  258. package/src/server/mcp/icon.ts +145 -0
  259. package/src/server/mcp/index.ts +32 -0
  260. package/src/server/mcp/instructions.ts +245 -0
  261. package/src/server/mcp/naming.ts +39 -0
  262. package/src/server/mcp/prompts.ts +78 -0
  263. package/src/server/mcp/resources.ts +106 -0
  264. package/src/server/mcp/routing.ts +117 -0
  265. package/src/server/mcp/schema.ts +78 -0
  266. package/src/server/mcp/tools.ts +186 -0
  267. package/src/server/mcp/visibility.ts +132 -0
  268. package/src/server/oauth.ts +222 -0
  269. package/src/server/rebinding.ts +53 -0
  270. package/src/server/stdio.ts +192 -0
  271. package/src/stores/blobs/conformance.ts +223 -0
  272. package/src/stores/blobs/index.ts +125 -0
  273. package/src/stores/blobs/testing.ts +49 -0
  274. package/src/stores/state/index.ts +247 -0
  275. package/src/stores/state/keys.ts +68 -0
  276. package/src/stores/state/testing.ts +41 -0
package/LICENSE ADDED
@@ -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.
package/README.md ADDED
@@ -0,0 +1,144 @@
1
+ # Lanes Link
2
+
3
+ **One secure endpoint between your AI agents and your real accounts, knowledge, and secrets.**
4
+
5
+ Connect your mail, calendar, files, and notes once, and add the memory and skills that only you
6
+ have. Every agent you use — Claude, ChatGPT, and anything else that speaks MCP — reaches them
7
+ through a single MCP endpoint that you own and run. Open source, self-hosted, no vendor sitting in
8
+ the middle of your data.
9
+
10
+ <picture>
11
+ <source media="(prefers-color-scheme: dark)" srcset="docs/images/lanes-link-dark.svg">
12
+ <img alt="Claude, ChatGPT, and any MCP client reach one Lanes Link endpoint, which you run on your own machine or your own cloud. The profiles it serves sit inside that boundary: Work, holding Gmail, Calendar, and Docs; and Personal, holding Gmail, Memory, and Skills." src="docs/images/lanes-link-light.svg">
13
+ </picture>
14
+
15
+ ## Why
16
+
17
+ - **Connect once, use everywhere.** No per-agent integrations, no re-authorising every new tool.
18
+ - **You decide what agents can touch.** Permissions default to deny, and the runtime enforces
19
+ them — it does not ask the model to behave.
20
+ - **Work and personal never mix.** Separate profiles, separate credentials, separate stores.
21
+ - **Every call is recorded.** An append-only log of what was reached, and what was refused.
22
+
23
+ ## What people use it for
24
+
25
+ - **A personal assistant on your phone.** A deployment is a URL, so the claude.ai or ChatGPT app
26
+ reaches your mail, calendar, and files from anywhere — "what's on tomorrow", "reply to Ana's
27
+ thread", "find the invoice from March". This is the case that needs [your own
28
+ cloud](#run-it-anywhere); everything below works on your machine.
29
+ - **Inbox triage you sign off on.** An agent searches, reads, labels, and composes — and saves a
30
+ draft for you to send rather than sending it, until you decide otherwise.
31
+ - **Coding agents that start from your context.** Claude Code and Codex reach the same Linear
32
+ issues, Notion pages, and notes you do, so a session begins from what you already know instead
33
+ of an empty prompt.
34
+ - **One set of notes behind every agent.** What you have Claude Code write down, claude.ai reads
35
+ back later — your accumulated context follows you between tools instead of being trapped in
36
+ whichever one recorded it.
37
+ - **Your own procedures, followed rather than guessed.** How a standup update reads, where an
38
+ invoice gets filed, who gets cc'd on a contract — written down once, and every agent you use
39
+ follows the same one.
40
+
41
+ ## Quickstart
42
+
43
+ Needs [Bun](https://bun.com) 1.3.11+. Nothing else — no account anywhere.
44
+
45
+ ```console
46
+ $ bun install -g @lanes-sh/link # puts `lanes` on your PATH
47
+ $ lanes link profile add personal --default
48
+ $ lanes link start
49
+ ok serving http://127.0.0.1:7337/mcp
50
+ profiles: personal
51
+ ```
52
+
53
+ Then, in another shell:
54
+
55
+ ```console
56
+ $ lanes link mcp add # every agent installed; or name one: claude, codex
57
+ ok registered lanes-link with Claude Code (user scope)
58
+ ok registered lanes-link with Codex
59
+ ```
60
+
61
+ Your agents can now use it. Memory, skills, and the vault hold your own material rather than an
62
+ account, so switching them on costs nothing — one command each, no credentials, no browser. Mail and
63
+ calendar are the next step. **[Full quickstart →](docs/quickstart.md)**
64
+
65
+ ## What your agent gets
66
+
67
+ | | | Manage it with |
68
+ |---|---|---|
69
+ | **Connections** | your external accounts — mail, calendar, files, issues | `lanes link connect` |
70
+ | **Memory** | what you want remembered between sessions | `lanes link memory` |
71
+ | **Skills** | your own procedures, handed to an agent as instructions | `lanes link skills` |
72
+ | **Vault** | passwords and API keys, released only where you allow it | `lanes link vault` |
73
+
74
+ Memory and skills are plain Markdown files, so a text editor and an agent reach the same bytes. All
75
+ four belong to one profile: what you add under `work` is invisible under `personal`.
76
+
77
+ ## Connect an account
78
+
79
+ One command per account. Run it again to add a second mailbox, a second calendar, a second anything.
80
+
81
+ | | Connect with |
82
+ |---|---|
83
+ | Gmail | `lanes link connect gmail` |
84
+ | Google Drive | `lanes link connect drive` |
85
+ | Google Sheets | `lanes link connect sheets` |
86
+ | Google Docs | `lanes link connect docs` |
87
+ | Google Calendar | `lanes link connect calendar` |
88
+ | Google Tasks | `lanes link connect tasks` |
89
+ | Google Contacts | `lanes link connect contacts` |
90
+ | iCloud Mail | `lanes link connect icloud_mail` |
91
+ | iCloud Calendar | `lanes link connect icloud_calendar` |
92
+ | iCloud Contacts | `lanes link connect icloud_contacts` |
93
+ | iCloud Drive | `lanes link connect icloud_drive` |
94
+ | Notion | `lanes link connect notion` |
95
+ | Linear | `lanes link connect linear` |
96
+ | Gmail (Google MCP) | `lanes link connect gmail_mcp` |
97
+ | Drive (Google MCP) | `lanes link connect drive_mcp` |
98
+
99
+ Two things worth knowing up front: `lanes link connect icloud` sets up Mail, Calendar, and Contacts
100
+ together, because one app-specific password covers all three. And Google needs no OAuth client of
101
+ your own: `lanes link connect gmail` authorises against the one Lanes operates, so there is no
102
+ Cloud console to visit. Add `--own-client` if you would rather register your own.
103
+
104
+ Full guide — what each one gives your agent, what it needs, and adding your own:
105
+ **[docs/connect.md](docs/connect.md)**.
106
+
107
+ ## Run it anywhere
108
+
109
+ The same code, the same config, in all three. Only the storage adapters change.
110
+
111
+ | | **Local** | **Your own cloud** | **Lanes Cloud** |
112
+ |---|---|---|---|
113
+ | Runs on | your machine | your GCP project, on Cloud Run | managed for you |
114
+ | Needs | Bun, nothing else | a Google Cloud billing account | — |
115
+ | Set up with | `lanes link start` | `lanes link deploy` | [join the waitlist](https://lanes.sh/forms/f/a46d8b45-4759-485b-841c-d117a823b645) |
116
+ | Reachable from | that machine | anywhere, including your phone | anywhere |
117
+ | Status | ready | ready | **coming soon** |
118
+
119
+ **Local** is the fastest way to start, and where most people stay. **Your own cloud** is what you
120
+ want if you need to reach it from claude.ai, ChatGPT, or a phone — `lanes link deploy` creates the
121
+ project, the bucket, the service account, and the revision on its first run. **Lanes Cloud** is the
122
+ managed version; because it is the same data model, a workspace you build today moves across rather
123
+ than being rebuilt.
124
+ [Join the waitlist](https://lanes.sh/forms/f/a46d8b45-4759-485b-841c-d117a823b645) to hear when it opens.
125
+
126
+ ## Docs
127
+
128
+ - **[Quickstart](docs/quickstart.md)** — from nothing to a working endpoint
129
+ - **[Connect your accounts](docs/connect.md)** — every provider, and what each one needs
130
+ - **[Add it to your agent](docs/clients.md)** — Claude Code, Codex, Claude Desktop, claude.ai, ChatGPT
131
+ - **[Deploy to your own cloud](docs/deploy.md)** — five commands to a URL
132
+ - **[Full reference](docs/detailed/)** — architecture, configuration, the CLI, the security model,
133
+ writing a provider, and the decision records
134
+
135
+ ## Security
136
+
137
+ Lanes Link holds live credentials to your email and documents. The
138
+ [security model](docs/detailed/security.md) states its limits plainly rather than implying
139
+ guarantees the code does not deliver — read it before you trust it with an account. To report a
140
+ vulnerability, see [`SECURITY.md`](SECURITY.md); please do not open a public issue.
141
+
142
+ ## License
143
+
144
+ [Apache-2.0](LICENSE)
package/bin/lanes ADDED
@@ -0,0 +1,42 @@
1
+ #!/bin/sh
2
+ #
3
+ # The `lanes` command, as installed from npm.
4
+ #
5
+ # `src/cli/lanes.ts` carries `#!/usr/bin/env bun`, and pointing package.json's
6
+ # `bin` straight at it was the obvious thing — until a machine without Bun
7
+ # installs cleanly and then answers every invocation with
8
+ # `env: bun: No such file or directory`, which names neither this project nor
9
+ # the thing it is missing. A `#!/usr/bin/env node` shim inverts the problem for
10
+ # anyone who has Bun and not Node. `/bin/sh` is the one interpreter present in
11
+ # both cases, so the check lives here.
12
+ #
13
+ # This is also what `bun link` puts on the PATH during development, so the
14
+ # installed path and the contributor path are one path rather than two.
15
+
16
+ set -e
17
+
18
+ # npm and bun both install a bin as a symlink in a global directory, so "$0" is
19
+ # the link rather than this file, and "$(dirname "$0")/.." is that directory's
20
+ # parent rather than the package. `readlink -f` would resolve it in one call and
21
+ # does not exist on macOS, which is where most of these installs land.
22
+ self=$0
23
+ while [ -L "$self" ]; do
24
+ link=$(readlink "$self")
25
+ case $link in
26
+ /*) self=$link ;;
27
+ *) self=$(dirname "$self")/$link ;;
28
+ esac
29
+ done
30
+ root=$(cd "$(dirname "$self")/.." && pwd)
31
+
32
+ if ! command -v bun >/dev/null 2>&1; then
33
+ echo "lanes needs Bun 1.3.11+ to run — it is not on your PATH." >&2
34
+ echo "" >&2
35
+ echo " curl -fsSL https://bun.sh/install | bash" >&2
36
+ echo " brew install bun" >&2
37
+ echo "" >&2
38
+ echo "Then run this command again. Nothing else is needed." >&2
39
+ exit 1
40
+ fi
41
+
42
+ exec bun run "$root/src/cli/lanes.ts" "$@"
@@ -0,0 +1,73 @@
1
+ ---
2
+ name: lanes-link-scout
3
+ description: Use when answering a question needs a wide read across someone's Lanes Link context — searching their memory, mail, files, and issues for the same thing and reporting back what is there. Good for "have I discussed X anywhere", "find everything about this client", "what do we already know about Y". Not for acting on what it finds: this agent reads and reports, and every write stays in the main thread.
4
+ ---
5
+
6
+ # Lanes Link scout
7
+
8
+ You search one person's own context through the `lanes-link` MCP server and
9
+ report what you found. A wide sweep across mail, files, notes, and issues costs
10
+ a lot of reading, and the point of doing it here is that only the answer goes
11
+ back — not the forty results you rejected on the way.
12
+
13
+ ## What you return
14
+
15
+ A digest, not a transcript. For each thing you found that matters: what it is,
16
+ where it is (the profile, the connection, and the identifier — a message id, a
17
+ file name, a memory entry id), and the one or two lines that make it relevant.
18
+ Enough that the main thread can open any of them directly without searching
19
+ again.
20
+
21
+ Say what you did **not** find, and where you looked. "Nothing in memory or mail
22
+ about this" is a real answer and is often the useful one. So is "the endpoint
23
+ serves a `work` profile I did not search, because you asked about personal."
24
+
25
+ Quote sparingly. You are reading someone's mail and notes; pull the sentence
26
+ that answers the question, not the surrounding thread.
27
+
28
+ ## How to search
29
+
30
+ Ask the endpoint what it has rather than assuming. Its instructions name the
31
+ profiles and connections that are actually reachable.
32
+
33
+ **Start with memory.** It is the only source that is already the owner's own
34
+ distillation, and it is small enough to search several ways cheaply. Substring
35
+ matching, not ranked relevance — so try the obvious phrasing, then a synonym,
36
+ then a narrower fragment, before concluding something is not there.
37
+
38
+ **Then the accounts,** narrowing by whatever the provider gives you — a date
39
+ range, a label, a folder. A broad query returning two hundred results and a
40
+ narrow one returning none are both failures; move between them deliberately
41
+ rather than retrying the same shape.
42
+
43
+ **One profile unless told otherwise.** Profiles are how someone separates work
44
+ from personal. If the question does not say which, search the one the
45
+ conversation is about and name the other in your report rather than reaching
46
+ into it.
47
+
48
+ ## Read, do not write
49
+
50
+ Report what you found and stop. Do not send, move, label, delete, or store
51
+ anything, and do not write a memory entry to "save" what you learned — the main
52
+ thread decides what is worth keeping, and an entry written here is served back
53
+ to every future session.
54
+
55
+ **This instruction is guidance, and guidance is not a boundary.** What actually
56
+ stops a write is policy on the endpoint:
57
+
58
+ ```console
59
+ $ lanes link policy deny memory.write
60
+ $ lanes link policy list
61
+ ```
62
+
63
+ If you are running against a profile that grants writes, that is the owner's
64
+ configuration and this file does not override it — so hold the line yourself,
65
+ and say plainly in your report if you were asked to do something that would have
66
+ needed one.
67
+
68
+ ## When a call is refused
69
+
70
+ It was refused on purpose. Only permitted capabilities are visible at all, so a
71
+ missing tool was not granted and retrying will not reveal it. Note the refusal in
72
+ your report and carry on with the sources you can reach — do not look for another
73
+ route to the same data.
@@ -0,0 +1,187 @@
1
+ ---
2
+ name: lanes-link
3
+ description: Use when the user refers to their own accounts, knowledge, procedures, or secrets through Lanes Link — "check my mail", "what do I know about X", "remember this", "which profile am I in" — or asks to connect, register, or set up their Lanes Link MCP server with this agent. Also covers what to do when a Lanes Link call is refused, or when the endpoint is not running.
4
+ ---
5
+
6
+ # Lanes Link
7
+
8
+ A self-hosted gateway to one person's own context: the accounts they have
9
+ connected, the knowledge they have accumulated, the procedures they have
10
+ written down, and their secrets. One endpoint serves every profile in a
11
+ workspace under one token, and each call names which profile it means.
12
+
13
+ The endpoint describes its own live state when you connect — which profiles
14
+ exist, what is reachable in each. This file is the part that does not change:
15
+ how to behave with it.
16
+
17
+ ## Profiles are a boundary, not a setting
18
+
19
+ Every tool takes `profile` and `connection`. Profiles are how someone keeps work
20
+ and personal apart; they share no database and no credential store.
21
+
22
+ **Ask which profile is meant when it is ambiguous. Do not default to whichever
23
+ is listed first.** Quietly picking one crosses the line the profile exists to
24
+ draw. There is no "current profile" to switch — the choice is made per call, and
25
+ `lanes link profile list` shows what exists.
26
+
27
+ A `connection` names an account within that profile. One profile may hold
28
+ several of the same kind, and naming a connection belonging to a *different*
29
+ profile is refused rather than guessed at.
30
+
31
+ ## Reach for memory before answering from nothing
32
+
33
+ `memory.search` before concluding you do not know something about this person or
34
+ their work. It is a substring search over their own notes, not a ranked index —
35
+ try more than one wording before deciding it is not there.
36
+
37
+ Writing is a separate grant, and it should be. What you write is served back to
38
+ every later session, including to a different agent, so **write when you are
39
+ asked to remember something, not as a habit.** The owner reaches the same
40
+ entries with `lanes link memory list` and a text editor.
41
+
42
+ ## Skills are theirs, not yours
43
+
44
+ A skill is a procedure the owner wrote down. They arrive as prompts — slash
45
+ commands — and are selected by the person rather than chosen by the model. You
46
+ cannot read a skill's body; that is deliberate, not a gap to work around.
47
+
48
+ So when a task has a skill for it, **say the skill exists and let them invoke
49
+ it** rather than improvising your own version of their procedure. They manage
50
+ these with `lanes link skills list` and `lanes link skills show <name>`.
51
+
52
+ ## Vault values are credentials
53
+
54
+ Use one to do the thing that needs it. Never quote it back, summarise it, echo
55
+ it into a file, or paste it into a command whose output you will show. If a
56
+ value has been printed by accident, say so.
57
+
58
+ ## Attachments are named, not carried
59
+
60
+ Where a tool takes `attachments`, each entry names **one** source and the endpoint
61
+ reads the bytes itself. Naming two is refused rather than resolved.
62
+
63
+ ```jsonc
64
+ { "path": "/Users/them/Downloads/invoice.pdf" } // on the endpoint's own machine
65
+ { "url": "https://example.com/invoice.pdf" } // fetched here, HTTPS only
66
+ { "message_id": "18f…", "attachment_id": "quote.pdf" } // already on a message in that mailbox
67
+ { "handle": "att_01j7k…" } // staged out of band
68
+ { "data": "JVBERi0…", "filename": "invoice.pdf" } // base64, and a last resort
69
+ ```
70
+
71
+ `attachment_id` takes a filename, a position, or the vendor's own id, and can be
72
+ omitted when the message has one attachment. `filename` and `content_type`
73
+ override what the source implies.
74
+
75
+ **Never encode a file into a call.** A 239 KB PDF is roughly 320,000 characters
76
+ of base64 — more than you can write in one message — and the way that fails is a
77
+ mail which mentions an attachment and does not have one. The other four sources
78
+ exist so you never have to.
79
+
80
+ **Forwarding something that arrived by mail is free.** Use `message_id` rather
81
+ than fetching the attachment and passing its bytes along. Reading them is not
82
+ offered anyway: the read tools report each attachment's name, type and size, not
83
+ its content.
84
+
85
+ **If the endpoint is not on the same machine as the file**, `path` names the
86
+ *server's* filesystem rather than theirs, and will not find it. Ask them to run
87
+ `lanes link attach <file> --connection <provider>.<account>`, which prints a
88
+ handle to use instead.
89
+
90
+ **`draft_only: true`** saves instead of sending, where they should see it before
91
+ it goes out.
92
+
93
+ Sent mail shows the account's own name when the connection sets `from_name`. If
94
+ something you sent arrived as a bare address, say so — it is a one-line config
95
+ fix, not a reason to write a signature into the body.
96
+
97
+ Every send records each attachment's filename, size, type and digest, and where
98
+ the bytes came from.
99
+
100
+ ## A refusal is the system working
101
+
102
+ Only permitted capabilities are visible at all, so something missing was not
103
+ granted, and retrying will not reveal it. A call that *is* refused was refused by
104
+ policy on purpose.
105
+
106
+ Report it plainly and let the owner decide whether to widen the grant —
107
+ `lanes link policy list` shows the rules, `lanes link policy allow <capability>`
108
+ changes them, and that is their call, not yours. **Do not look for another route
109
+ to the same data.** Every call is audited either way; `lanes link audit tail`
110
+ shows what was attempted, refusals included.
111
+
112
+ ## Setting something up
113
+
114
+ Call `setup_overview` before answering any question about what you can reach, and
115
+ before suggesting that anything be connected. It names the accounts reachable in a
116
+ profile and the providers that are not connected yet. `setup_provider` then gives
117
+ one provider's console steps, the values it will ask for, and the exact command.
118
+
119
+ **Take the command from `setup_provider`; never compose one yourself.** It carries
120
+ the right profile and, where the provider stores a credential per account, the
121
+ `--id` it needs. A command you assembled is one the owner pastes and watches fail.
122
+
123
+ You cannot do the setup. This endpoint writes no configuration and stores no
124
+ credential — those are `lanes link` in a terminal, deliberately. What you can do is
125
+ know exactly what to hand over, and say what it will ask for before they start.
126
+
127
+ If you have a shell, you can run it yourself for anything that does *not* need a
128
+ browser: `lanes link setup plan <provider> --json` lists what to store,
129
+ `lanes link secrets set <ref>` takes the value on stdin, and
130
+ `lanes link connect <provider> --id <name> --non-interactive --json` finishes.
131
+ Anything with a browser sign-in belongs to whoever owns the account — give them
132
+ the line.
133
+
134
+ **Never pass `--accept-broad-scopes` yourself.** When a provider asks for more than
135
+ it needs, print the scopes and let the owner add the flag. Deciding that is theirs.
136
+
137
+ A new connection is not served until the endpoint restarts, so a `setup_overview`
138
+ straight after connecting will still not show it. Say so rather than retrying.
139
+
140
+ ## Registering it, and re-registering it
141
+
142
+ `lanes link mcp add` runs each harness's own registration command and installs
143
+ this skill where that harness keeps them. With no argument it does every harness
144
+ installed; name one (`claude`, `codex`) to be specific. Run it again after
145
+ `lanes link token rotate` — add `--force`, since Claude Code stores the token as
146
+ a value rather than a command.
147
+
148
+ **Never paste the token.** There is a right way and a wrong way, and the
149
+ difference matters:
150
+
151
+ ```bash
152
+ # RIGHT — the token goes from the CLI to the harness. You never see it.
153
+ claude mcp add --transport http lanes-link http://127.0.0.1:7337/mcp \
154
+ --header "Authorization: Bearer $(lanes link token show --raw)"
155
+
156
+ # WRONG — the token is now in your context, and in the transcript, forever.
157
+ lanes link token show --show # then copying the value into the command
158
+ ```
159
+
160
+ The token reaches every account of every profile the endpoint serves. Use the
161
+ substitution form. If you have already printed one by accident, say so and offer
162
+ `lanes link token rotate`.
163
+
164
+ Prefer `lanes link mcp add` to writing the command yourself: it checks the
165
+ endpoint is reachable, refuses to silently shadow an existing registration, and
166
+ cannot mistype the token. For a harness it does not know, take the command from
167
+ `lanes link outputs` rather than writing it blind — that command checks whether
168
+ `lanes` resolves on this machine and prints a longer working form if it does
169
+ not, where guessing gives you an empty substitution, a `Bearer ` header, and a
170
+ 401 that reads as a bad token.
171
+
172
+ If you register Codex, tell the user to export the token — Codex stores only the
173
+ variable name, so nothing works until it is set:
174
+
175
+ ```bash
176
+ export LANES_LINK_TOKEN="$(lanes link token show --raw)"
177
+ ```
178
+
179
+ One registration covers every profile. Do not add one per profile; they share a
180
+ URL and a token.
181
+
182
+ ## When it is not running
183
+
184
+ `lanes link start` runs in the foreground and serves until stopped. Tell the
185
+ user the command rather than backgrounding it silently on their behalf.
186
+ Registration works while it is down — the harness simply cannot reach it yet,
187
+ and the first symptom is a failed call much later.