@hellolynk-ai/openclaw-channel 0.0.0-stage → 0.2.100

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 (170) hide show
  1. package/LICENSE +92 -0
  2. package/README.md +86 -2
  3. package/bin/hellolynk-client-setup.mjs +2748 -0
  4. package/bin/hellolynk-mcp-config-shape.mjs +23 -0
  5. package/clients/core/hellolynk-agent-configurator.mjs +701 -0
  6. package/clients/core/hellolynk-client-account.mjs +180 -0
  7. package/clients/core/hellolynk-client-core.mjs +770 -0
  8. package/clients/core/hellolynk-client-profile.mjs +191 -0
  9. package/clients/core/hellolynk-client-update-entry.mjs +31 -0
  10. package/clients/core/hellolynk-client-update-runtime.mjs +600 -0
  11. package/clients/core/hellolynk-client-update.mjs +453 -0
  12. package/clients/core/hellolynk-contact-request-e2ee.mjs +867 -0
  13. package/clients/core/hellolynk-device-enrollment.mjs +435 -0
  14. package/clients/core/hellolynk-direct-text-e2ee-client.mjs +1964 -0
  15. package/clients/core/hellolynk-direct-text-e2ee.mjs +1207 -0
  16. package/clients/core/hellolynk-host-auth.mjs +347 -0
  17. package/clients/core/hellolynk-host-protected-store.mjs +2721 -0
  18. package/clients/core/hellolynk-host-transport-client.mjs +946 -0
  19. package/clients/core/hellolynk-host.mjs +2374 -0
  20. package/clients/core/hellolynk-human-confirmation-ledger.mjs +256 -0
  21. package/clients/core/hellolynk-human-relationship-controller.mjs +1234 -0
  22. package/clients/core/hellolynk-inbox-read-state.mjs +11 -0
  23. package/clients/core/hellolynk-indexed-message-store.mjs +1558 -0
  24. package/clients/core/hellolynk-instance-conversation.mjs +185 -0
  25. package/clients/core/hellolynk-local-contact-requests.mjs +1733 -0
  26. package/clients/core/hellolynk-local-contacts.mjs +1228 -0
  27. package/clients/core/hellolynk-local-data-migration.mjs +766 -0
  28. package/clients/core/hellolynk-local-data-protection.mjs +747 -0
  29. package/clients/core/hellolynk-local-identity-trust.mjs +274 -0
  30. package/clients/core/hellolynk-local-messaging.mjs +3043 -0
  31. package/clients/core/hellolynk-local-peer-transport.mjs +103 -0
  32. package/clients/core/hellolynk-local-process-lock.mjs +157 -0
  33. package/clients/core/hellolynk-model-inbox.mjs +230 -0
  34. package/clients/core/hellolynk-model-notices.cjs +60 -0
  35. package/clients/core/hellolynk-native-addressing-tools.cjs +231 -0
  36. package/clients/core/hellolynk-native-conversations.mjs +280 -0
  37. package/clients/core/hellolynk-native-human-confirmation-broker.mjs +1036 -0
  38. package/clients/core/hellolynk-native-inbox-runtime.mjs +553 -0
  39. package/clients/core/hellolynk-native-notice.mjs +50 -0
  40. package/clients/core/hellolynk-native-reply-routes.mjs +96 -0
  41. package/clients/core/hellolynk-native-worker-lease.mjs +84 -0
  42. package/clients/core/hellolynk-neutral-host-assembly.mjs +955 -0
  43. package/clients/core/hellolynk-neutral-host-installation-store.mjs +765 -0
  44. package/clients/core/hellolynk-neutral-host-launcher.mjs +665 -0
  45. package/clients/core/hellolynk-neutral-host-process.mjs +4374 -0
  46. package/clients/core/hellolynk-neutral-host-store-adapters.mjs +548 -0
  47. package/clients/core/hellolynk-neutral-host-workbench-read-model.mjs +1365 -0
  48. package/clients/core/hellolynk-platform-credential-store.mjs +773 -0
  49. package/clients/core/hellolynk-relay-client-cli.mjs +232 -0
  50. package/clients/core/hellolynk-release-retention.mjs +160 -0
  51. package/clients/core/hellolynk-runtime-safety.cjs +471 -0
  52. package/clients/core/hellolynk-workbench-action-grants.mjs +457 -0
  53. package/clients/core/hellolynk-workbench-connection.mjs +234 -0
  54. package/clients/platform/windows/configure-agent.ps1 +281 -0
  55. package/clients/platform/windows/credential-store.ps1 +844 -0
  56. package/clients/platform/windows/hellolynk-host-protected-store.ps1 +2866 -0
  57. package/clients/platform/windows/hellolynk-human-confirmation-ledger.ps1 +155 -0
  58. package/clients/platform/windows/hellolynk-local-data-key.ps1 +300 -0
  59. package/clients/platform/windows/hellolynk-native-human-confirmation-broker.ps1 +216 -0
  60. package/clients/workbench/contract.mjs +1314 -0
  61. package/clients/workbench/service.mjs +485 -0
  62. package/hellolynk-client-pack-manifest.json +854 -0
  63. package/hellolynk-client-pack-pin.json +4 -0
  64. package/integrations/openclaw-channel/dist/control-ui/index.js +63 -0
  65. package/integrations/openclaw-channel/index.mjs +5 -0
  66. package/integrations/openclaw-channel/openclaw.plugin.json +57 -0
  67. package/integrations/openclaw-channel/package.json +50 -0
  68. package/integrations/openclaw-channel/setup-entry.mjs +4 -0
  69. package/integrations/openclaw-channel/skills/hellolynk-messaging/SKILL.md +9 -0
  70. package/integrations/openclaw-channel/src/authorized-messaging-tools.mjs +423 -0
  71. package/integrations/openclaw-channel/src/channel-dispatch.mjs +657 -0
  72. package/integrations/openclaw-channel/src/channel.mjs +368 -0
  73. package/integrations/openclaw-channel/src/config-schema.mjs +33 -0
  74. package/integrations/openclaw-channel/src/control-ui.mjs +411 -0
  75. package/integrations/openclaw-channel/src/inbound-policy.mjs +44 -0
  76. package/integrations/openclaw-channel/src/native-origins.mjs +53 -0
  77. package/integrations/openclaw-channel/src/neutral-host-adapter.mjs +826 -0
  78. package/integrations/openclaw-channel/src/neutral-read-runtime.mjs +469 -0
  79. package/integrations/openclaw-channel/src/runtime-primitives.mjs +12 -0
  80. package/integrations/openclaw-channel/src/transcript-attribution.mjs +140 -0
  81. package/package.json +69 -4
  82. package/runtime/connect-activate.mjs +837 -0
  83. package/runtime/core/hellolynk-agent-configurator.mjs +701 -0
  84. package/runtime/core/hellolynk-client-account.mjs +180 -0
  85. package/runtime/core/hellolynk-client-core.mjs +770 -0
  86. package/runtime/core/hellolynk-client-profile.mjs +191 -0
  87. package/runtime/core/hellolynk-client-update-entry.mjs +31 -0
  88. package/runtime/core/hellolynk-client-update-runtime.mjs +600 -0
  89. package/runtime/core/hellolynk-client-update.mjs +453 -0
  90. package/runtime/core/hellolynk-contact-request-e2ee.mjs +867 -0
  91. package/runtime/core/hellolynk-device-enrollment.mjs +435 -0
  92. package/runtime/core/hellolynk-direct-text-e2ee-client.mjs +1964 -0
  93. package/runtime/core/hellolynk-direct-text-e2ee.mjs +1207 -0
  94. package/runtime/core/hellolynk-host-auth.mjs +347 -0
  95. package/runtime/core/hellolynk-host-protected-store.mjs +2721 -0
  96. package/runtime/core/hellolynk-host-transport-client.mjs +946 -0
  97. package/runtime/core/hellolynk-host.mjs +2374 -0
  98. package/runtime/core/hellolynk-human-confirmation-ledger.mjs +256 -0
  99. package/runtime/core/hellolynk-human-relationship-controller.mjs +1234 -0
  100. package/runtime/core/hellolynk-inbox-read-state.mjs +11 -0
  101. package/runtime/core/hellolynk-indexed-message-store.mjs +1558 -0
  102. package/runtime/core/hellolynk-instance-conversation.mjs +185 -0
  103. package/runtime/core/hellolynk-local-contact-requests.mjs +1733 -0
  104. package/runtime/core/hellolynk-local-contacts.mjs +1228 -0
  105. package/runtime/core/hellolynk-local-data-migration.mjs +766 -0
  106. package/runtime/core/hellolynk-local-data-protection.mjs +747 -0
  107. package/runtime/core/hellolynk-local-identity-trust.mjs +274 -0
  108. package/runtime/core/hellolynk-local-messaging.mjs +3043 -0
  109. package/runtime/core/hellolynk-local-peer-transport.mjs +103 -0
  110. package/runtime/core/hellolynk-local-process-lock.mjs +157 -0
  111. package/runtime/core/hellolynk-model-inbox.mjs +230 -0
  112. package/runtime/core/hellolynk-model-notices.cjs +60 -0
  113. package/runtime/core/hellolynk-native-addressing-tools.cjs +231 -0
  114. package/runtime/core/hellolynk-native-conversations.mjs +280 -0
  115. package/runtime/core/hellolynk-native-human-confirmation-broker.mjs +1036 -0
  116. package/runtime/core/hellolynk-native-inbox-runtime.mjs +553 -0
  117. package/runtime/core/hellolynk-native-notice.mjs +50 -0
  118. package/runtime/core/hellolynk-native-reply-routes.mjs +96 -0
  119. package/runtime/core/hellolynk-native-worker-lease.mjs +84 -0
  120. package/runtime/core/hellolynk-neutral-host-assembly.mjs +955 -0
  121. package/runtime/core/hellolynk-neutral-host-installation-store.mjs +765 -0
  122. package/runtime/core/hellolynk-neutral-host-launcher.mjs +665 -0
  123. package/runtime/core/hellolynk-neutral-host-process.mjs +4374 -0
  124. package/runtime/core/hellolynk-neutral-host-store-adapters.mjs +548 -0
  125. package/runtime/core/hellolynk-neutral-host-workbench-read-model.mjs +1365 -0
  126. package/runtime/core/hellolynk-platform-credential-store.mjs +773 -0
  127. package/runtime/core/hellolynk-relay-client-cli.mjs +232 -0
  128. package/runtime/core/hellolynk-release-retention.mjs +160 -0
  129. package/runtime/core/hellolynk-runtime-safety.cjs +471 -0
  130. package/runtime/core/hellolynk-workbench-action-grants.mjs +457 -0
  131. package/runtime/core/hellolynk-workbench-connection.mjs +234 -0
  132. package/runtime/neutral-host-bootstrap.mjs +57 -0
  133. package/runtime/neutral-host-release-entry.mjs +81 -0
  134. package/runtime/neutral-host-release-loader.mjs +156 -0
  135. package/runtime/neutral-host-release-manifest.json +302 -0
  136. package/runtime/neutral-host-release-pin.json +4 -0
  137. package/runtime/platform/windows/configure-agent.ps1 +281 -0
  138. package/runtime/platform/windows/credential-store.ps1 +844 -0
  139. package/runtime/platform/windows/hellolynk-host-protected-store.ps1 +2866 -0
  140. package/runtime/platform/windows/hellolynk-human-confirmation-ledger.ps1 +155 -0
  141. package/runtime/platform/windows/hellolynk-local-data-key.ps1 +300 -0
  142. package/runtime/platform/windows/hellolynk-native-human-confirmation-broker.ps1 +216 -0
  143. package/runtime/workbench/candidate-bootstrap.mjs +54 -0
  144. package/runtime/workbench/contract.mjs +1314 -0
  145. package/runtime/workbench/hellolynk-workbench-build.json +215 -0
  146. package/runtime/workbench/host-capabilities.mjs +80 -0
  147. package/runtime/workbench/i18n.mjs +1127 -0
  148. package/runtime/workbench/loopback-surface.mjs +740 -0
  149. package/runtime/workbench/mcp-app-bundle.mjs +97 -0
  150. package/runtime/workbench/service.mjs +485 -0
  151. package/runtime/workbench/state.mjs +421 -0
  152. package/runtime/workbench/transports.mjs +171 -0
  153. package/runtime/workbench/ui/app.mjs +6120 -0
  154. package/runtime/workbench/ui/connection-form.mjs +155 -0
  155. package/runtime/workbench/ui/hellolynk-mark.png +0 -0
  156. package/runtime/workbench/ui/http-transport.mjs +247 -0
  157. package/runtime/workbench/ui/icons/arrow-left.svg +3 -0
  158. package/runtime/workbench/ui/icons/close.svg +3 -0
  159. package/runtime/workbench/ui/icons/contacts.svg +3 -0
  160. package/runtime/workbench/ui/icons/inbox.svg +3 -0
  161. package/runtime/workbench/ui/icons/refresh.svg +3 -0
  162. package/runtime/workbench/ui/icons/search.svg +3 -0
  163. package/runtime/workbench/ui/icons/security.svg +3 -0
  164. package/runtime/workbench/ui/icons/settings.svg +3 -0
  165. package/runtime/workbench/ui/index.html +139 -0
  166. package/runtime/workbench/ui/loopback-entry.mjs +26 -0
  167. package/runtime/workbench/ui/mcp-app-client.mjs +151 -0
  168. package/runtime/workbench/ui/mcp-app-entry.mjs +452 -0
  169. package/runtime/workbench/ui/styles.css +686 -0
  170. package/tools/hellolynk-activate-neutral-host-clients.mjs +837 -0
@@ -0,0 +1,23 @@
1
+ import fs from "node:fs/promises";
2
+ import path from "node:path";
3
+
4
+ export function isHelloLynkMcpServerShape(clientInput, server) {
5
+ const client = String(clientInput || "");
6
+ if (!server || typeof server !== "object" || Array.isArray(server)) return false;
7
+ const keys = Object.keys(server).sort().join(",");
8
+ if (keys === "args,command,env") return true;
9
+ return client === "workbuddy"
10
+ && keys === "args,command,disabled,env"
11
+ && server.disabled === false;
12
+ }
13
+
14
+ export async function traeConfigPaths(appData) {
15
+ // The merged client migrates its config to Trae CN but leaves SOLO data behind.
16
+ // Select the current client first; do not update the retired copy as well.
17
+ const current = path.join(appData, "Trae CN");
18
+ const previous = path.join(appData, "TRAE SOLO CN");
19
+ const directory = await exists(current) || !await exists(previous) ? current : previous;
20
+ return [path.join(directory, "User", "mcp.json")];
21
+ }
22
+
23
+ async function exists(file) { return fs.access(file).then(() => true, () => false); }