relay-companion 0.1.394 → 0.1.396

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 (140) hide show
  1. package/THIRD_PARTY_NOTICES.md +49 -0
  2. package/bin/relay-hook.js +18 -0
  3. package/bin/relay.js +1076 -0
  4. package/licenses/Apache-2.0.txt +201 -0
  5. package/npm-shrinkwrap.json +2866 -0
  6. package/overlay/attention-queue.cjs +170 -0
  7. package/overlay/chat-read-presence.cjs +39 -0
  8. package/overlay/claudeCodeMark.svg +3 -0
  9. package/overlay/codex-open-current.cjs +166 -0
  10. package/overlay/codexMark.svg +3 -0
  11. package/overlay/deep-link.cjs +33 -0
  12. package/overlay/elevation-policy.cjs +22 -0
  13. package/overlay/fonts/inter-var.woff2 +0 -0
  14. package/overlay/fonts/newsreader-var.woff2 +0 -0
  15. package/overlay/fonts/plexmono-400.woff2 +0 -0
  16. package/overlay/fonts/plexmono-500.woff2 +0 -0
  17. package/overlay/host-select.cjs +143 -0
  18. package/overlay/hover-intent.js +384 -0
  19. package/overlay/inbox.html +12984 -0
  20. package/overlay/main.cjs +8404 -0
  21. package/overlay/message-face.cjs +71 -0
  22. package/overlay/packet-documents.cjs +49 -0
  23. package/overlay/perf-counters.cjs +48 -0
  24. package/overlay/preload.cjs +231 -0
  25. package/overlay/preview-preload-source.cjs +207 -0
  26. package/overlay/preview-preload.cjs +6579 -0
  27. package/overlay/preview-renderer.js +1779 -0
  28. package/overlay/preview.html +800 -0
  29. package/overlay/read-receipts.cjs +87 -0
  30. package/overlay/relay.ico +0 -0
  31. package/overlay/relayAppIcon.svg +27 -0
  32. package/overlay/relayTrayTemplate.png +0 -0
  33. package/overlay/relayTrayTemplate@2x.png +0 -0
  34. package/overlay/slackMark.png +0 -0
  35. package/overlay/sounds/tink.wav +0 -0
  36. package/overlay/space-presence.cjs +128 -0
  37. package/overlay/state-ack-worker.cjs +116 -0
  38. package/overlay/tray-position.cjs +121 -0
  39. package/overlay/visibility.cjs +173 -0
  40. package/overlay/window-fit.cjs +84 -0
  41. package/overlay/work-ui.js +444 -0
  42. package/package.json +27 -7
  43. package/src/account.js +153 -0
  44. package/src/agent-relay-context.cjs +413 -0
  45. package/src/ai-session-transcript.js +350 -0
  46. package/src/atomic-json.cjs +74 -0
  47. package/src/attachments.js +229 -0
  48. package/src/auto-update.js +1164 -0
  49. package/src/autostart-registration.js +145 -0
  50. package/src/canonical-runtime.js +886 -0
  51. package/src/canonical-updater.js +763 -0
  52. package/src/capabilities.js +111 -0
  53. package/src/channel-server.js +256 -0
  54. package/src/chat-agent-work-presentation.js +160 -0
  55. package/src/claude-desktop-code.js +595 -0
  56. package/src/claude-hook.js +142 -0
  57. package/src/claude-inject.cjs +813 -0
  58. package/src/claude-materializer.js +106 -0
  59. package/src/claude-native-work-feed.js +786 -0
  60. package/src/claude-session-runtime.js +43 -0
  61. package/src/claude-session-writer.js +856 -0
  62. package/src/cli-trampoline.js +153 -0
  63. package/src/client.js +1237 -0
  64. package/src/codex-app-server-activity.js +204 -0
  65. package/src/codex-app-server.js +155 -0
  66. package/src/codex-desktop.js +1255 -0
  67. package/src/codex-hook.js +101 -0
  68. package/src/codex-inject.js +493 -0
  69. package/src/codex-one-shot.js +445 -0
  70. package/src/codex-project-repair.js +148 -0
  71. package/src/codex-session-writer.js +195 -0
  72. package/src/codex-state.js +146 -0
  73. package/src/config.js +414 -0
  74. package/src/content-field-migration.js +136 -0
  75. package/src/cowork-sessions.js +90 -0
  76. package/src/credential-store.cjs +228 -0
  77. package/src/cwd-select.js +213 -0
  78. package/src/desktop-hosts.js +231 -0
  79. package/src/desktop-migration.js +272 -0
  80. package/src/desktop-wake.js +198 -0
  81. package/src/e2ee-claude-control.js +99 -0
  82. package/src/e2ee-claude-runtime.js +145 -0
  83. package/src/e2ee-device-history.js +427 -0
  84. package/src/e2ee-device-trust.js +213 -0
  85. package/src/e2ee-group-product.js +423 -0
  86. package/src/e2ee-groups.js +995 -0
  87. package/src/e2ee-history-import.js +191 -0
  88. package/src/e2ee-identity.cjs +220 -0
  89. package/src/e2ee-mcp-certificate-store.js +118 -0
  90. package/src/e2ee-mcp-certificate.js +108 -0
  91. package/src/e2ee-mcp-oauth-state.js +160 -0
  92. package/src/e2ee-mcp-oauth.js +476 -0
  93. package/src/e2ee-mcp-tunnel.js +283 -0
  94. package/src/e2ee-mls.js +1209 -0
  95. package/src/e2ee-remote-mcp.js +335 -0
  96. package/src/e2ee-state.js +1166 -0
  97. package/src/e2ee-sync.js +255 -0
  98. package/src/hook-launcher.js +147 -0
  99. package/src/host-json.js +14 -0
  100. package/src/host-paths.js +78 -0
  101. package/src/inbox-item-id.cjs +27 -0
  102. package/src/install.js +2797 -0
  103. package/src/installation-authorization.js +572 -0
  104. package/src/links.js +83 -0
  105. package/src/local-credential-store.cjs +154 -0
  106. package/src/local-time.cjs +37 -0
  107. package/src/local-trace.cjs +49 -0
  108. package/src/log-rotate.js +169 -0
  109. package/src/mac-app-identity.cjs +11 -0
  110. package/src/materializer.js +1035 -0
  111. package/src/mcp-launcher.js +45 -0
  112. package/src/mcp.js +2072 -0
  113. package/src/native-turn.js +44 -0
  114. package/src/notifications.js +796 -0
  115. package/src/outbox.cjs +480 -0
  116. package/src/pill-control.js +49 -0
  117. package/src/pinning.js +43 -0
  118. package/src/product-features.cjs +57 -0
  119. package/src/product-features.js +39 -0
  120. package/src/provider-auth-runner.exp +24 -0
  121. package/src/provider-auth.js +555 -0
  122. package/src/provider-completion.js +159 -0
  123. package/src/provider-inventory-cache.js +144 -0
  124. package/src/provider-work-feed.js +703 -0
  125. package/src/relay-briefing.js +612 -0
  126. package/src/release-trust.json +11 -0
  127. package/src/repo-identity.js +147 -0
  128. package/src/repo-index.js +274 -0
  129. package/src/request-safety.js +97 -0
  130. package/src/runtime.js +1350 -0
  131. package/src/safe-attachment-preview.js +183 -0
  132. package/src/schedule.js +1116 -0
  133. package/src/session-controller.js +902 -0
  134. package/src/session-directory.js +306 -0
  135. package/src/setup-activation.js +276 -0
  136. package/src/setup-open.js +83 -0
  137. package/src/state-lock.cjs +110 -0
  138. package/src/task-daemon.js +969 -0
  139. package/src/work-conversation.js +1278 -0
  140. package/src/work-push-bridge.js +565 -0
@@ -0,0 +1,49 @@
1
+ # Third-party notices
2
+
3
+ The Relay preview preload embeds the following open-source software in
4
+ `overlay/preview-preload.cjs`.
5
+
6
+ ## markdown-it 14.3.0
7
+
8
+ Copyright (c) 2014 Vitaly Puzrin, Alex Kocharin.
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ ## DOMPurify 3.4.13
29
+
30
+ Copyright (c) Cure53 and other contributors.
31
+
32
+ DOMPurify is distributed under the Apache License 2.0 or the Mozilla Public
33
+ License 2.0. Relay distributes its embedded copy under the Apache License 2.0.
34
+ The complete terms are included in [`licenses/Apache-2.0.txt`](licenses/Apache-2.0.txt).
35
+
36
+ ## E2EE runtime libraries (MIT)
37
+
38
+ The Companion uses the following packages for its RFC 9420 one-to-one text
39
+ implementation. Each npm package includes its own complete MIT license text.
40
+
41
+ - `ts-mls` 1.6.2 — Copyright Luka Jacobowitz and contributors.
42
+ - `@hpke/core` 1.8.0 — Copyright hpke-js contributors.
43
+ - `@noble/hashes` 2.0.1 — Copyright Paul Miller and contributors.
44
+ - `@noble/ciphers` 2.1.1 — Copyright Paul Miller and contributors.
45
+ - `@noble/curves` 2.0.1 — Copyright Paul Miller and contributors.
46
+
47
+ `ts-mls` states that it has not undergone a formal security audit. Relay's own
48
+ architecture documentation treats independent cryptographic and application
49
+ review as a prerequisite for a public production E2EE claim.
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env node
2
+
3
+ // Dedicated hook entrypoint: unlike the user-facing CLI, this does not import
4
+ // setup, updater, Electron, MCP, or daemon modules on every agent event.
5
+ const hook = process.argv[2];
6
+
7
+ try {
8
+ if (hook === "claude-hook") {
9
+ const { runClaudeHook } = await import("../src/claude-hook.js");
10
+ await runClaudeHook();
11
+ } else if (hook === "codex-hook") {
12
+ const { runCodexHook } = await import("../src/codex-hook.js");
13
+ await runCodexHook();
14
+ }
15
+ } catch {
16
+ // Hook context is advisory. It must never block or visibly break the host.
17
+ process.exitCode = 0;
18
+ }