@tonyruan/dsh-bridge-host 0.0.0-stage → 0.1.1-beta.10

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 (105) hide show
  1. package/LICENSE +131 -0
  2. package/README.md +21 -2
  3. package/THIRD-PARTY-NOTICES.txt +5317 -0
  4. package/cordis.patch.yml +7 -0
  5. package/lib/agent.mjs +15779 -0
  6. package/lib/child.mjs +48 -0
  7. package/lib/client.js +446 -0
  8. package/lib/controller.mjs +9141 -0
  9. package/lib/index.mjs +14886 -0
  10. package/lib/local-console.mjs +25 -0
  11. package/lib/local-management.mjs +327 -0
  12. package/lib/management.mjs +14544 -0
  13. package/lib/multi-client-profile.mjs +8401 -0
  14. package/lib/multi-client-session.mjs +21879 -0
  15. package/lib/profile-store.mjs +8457 -0
  16. package/lib/session.mjs +22262 -0
  17. package/oss-licenses/INDEX.json +681 -0
  18. package/oss-licenses/JS-INDEX.json +1096 -0
  19. package/oss-licenses/texts/any-signal__4.2.0__LICENSE-APACHE +201 -0
  20. package/oss-licenses/texts/any-signal__4.2.0__LICENSE-MIT +19 -0
  21. package/oss-licenses/texts/cborg__6.1.4__LICENSE +13 -0
  22. package/oss-licenses/texts/chainsafe__as-chacha20poly1305__0.1.0__LICENSE +14 -0
  23. package/oss-licenses/texts/chainsafe__as-sha256__1.2.5__LICENSE +14 -0
  24. package/oss-licenses/texts/chainsafe__is-ip__2.1.0__LICENSE +7 -0
  25. package/oss-licenses/texts/chainsafe__libp2p-noise__17.0.0__LICENSE-APACHE +201 -0
  26. package/oss-licenses/texts/chainsafe__libp2p-noise__17.0.0__LICENSE-MIT +19 -0
  27. package/oss-licenses/texts/chainsafe__netmask__2.0.0__LICENSE +20 -0
  28. package/oss-licenses/texts/delay__7.0.0__license +9 -0
  29. package/oss-licenses/texts/is-electron__2.2.2__LICENSE +21 -0
  30. package/oss-licenses/texts/is-loopback-addr__2.1.0__LICENSE +21 -0
  31. package/oss-licenses/texts/it-length-prefixed__11.0.1__LICENSE-APACHE +201 -0
  32. package/oss-licenses/texts/it-length-prefixed__11.0.1__LICENSE-MIT +19 -0
  33. package/oss-licenses/texts/it-merge__3.0.15__LICENSE +4 -0
  34. package/oss-licenses/texts/it-merge__3.0.15__LICENSE-APACHE +5 -0
  35. package/oss-licenses/texts/it-merge__3.0.15__LICENSE-MIT +19 -0
  36. package/oss-licenses/texts/it-pipe__3.0.1__LICENSE +4 -0
  37. package/oss-licenses/texts/it-pipe__3.0.1__LICENSE-APACHE +5 -0
  38. package/oss-licenses/texts/it-pipe__3.0.1__LICENSE-MIT +19 -0
  39. package/oss-licenses/texts/it-pushable__3.2.4__LICENSE-APACHE +201 -0
  40. package/oss-licenses/texts/it-pushable__3.2.4__LICENSE-MIT +19 -0
  41. package/oss-licenses/texts/it-queueless-pushable__2.0.5__LICENSE +4 -0
  42. package/oss-licenses/texts/it-queueless-pushable__2.0.5__LICENSE-APACHE +5 -0
  43. package/oss-licenses/texts/it-queueless-pushable__2.0.5__LICENSE-MIT +19 -0
  44. package/oss-licenses/texts/libp2p__crypto__5.2.0__LICENSE-APACHE +201 -0
  45. package/oss-licenses/texts/libp2p__crypto__5.2.0__LICENSE-MIT +19 -0
  46. package/oss-licenses/texts/libp2p__interface__3.4.0__LICENSE-APACHE +201 -0
  47. package/oss-licenses/texts/libp2p__interface__3.4.0__LICENSE-MIT +19 -0
  48. package/oss-licenses/texts/libp2p__logger__6.2.16__LICENSE-APACHE +201 -0
  49. package/oss-licenses/texts/libp2p__logger__6.2.16__LICENSE-MIT +19 -0
  50. package/oss-licenses/texts/libp2p__peer-id__6.0.18__LICENSE-APACHE +201 -0
  51. package/oss-licenses/texts/libp2p__peer-id__6.0.18__LICENSE-MIT +19 -0
  52. package/oss-licenses/texts/libp2p__utils__7.4.5__LICENSE-APACHE +201 -0
  53. package/oss-licenses/texts/libp2p__utils__7.4.5__LICENSE-MIT +19 -0
  54. package/oss-licenses/texts/main-event__1.0.5__LICENSE-APACHE +201 -0
  55. package/oss-licenses/texts/main-event__1.0.5__LICENSE-MIT +19 -0
  56. package/oss-licenses/texts/ms__4.0.0-nightly.202508271359__LICENSE +21 -0
  57. package/oss-licenses/texts/multiformats__13.4.2__LICENSE +4 -0
  58. package/oss-licenses/texts/multiformats__13.4.2__LICENSE-APACHE +5 -0
  59. package/oss-licenses/texts/multiformats__13.4.2__LICENSE-MIT +19 -0
  60. package/oss-licenses/texts/multiformats__14.0.5__LICENSE +4 -0
  61. package/oss-licenses/texts/multiformats__14.0.5__LICENSE-APACHE +5 -0
  62. package/oss-licenses/texts/multiformats__14.0.5__LICENSE-MIT +19 -0
  63. package/oss-licenses/texts/multiformats__multiaddr-matcher__3.0.2__LICENSE-APACHE +201 -0
  64. package/oss-licenses/texts/multiformats__multiaddr-matcher__3.0.2__LICENSE-MIT +19 -0
  65. package/oss-licenses/texts/multiformats__multiaddr__13.0.3__LICENSE-APACHE +201 -0
  66. package/oss-licenses/texts/multiformats__multiaddr__13.0.3__LICENSE-MIT +19 -0
  67. package/oss-licenses/texts/netmask__2.1.1__LICENSE.md +21 -0
  68. package/oss-licenses/texts/noble__ciphers__2.4.0__LICENSE +22 -0
  69. package/oss-licenses/texts/noble__curves__2.4.0__LICENSE +21 -0
  70. package/oss-licenses/texts/noble__hashes__2.4.0__LICENSE +21 -0
  71. package/oss-licenses/texts/p-defer__4.0.1__license +9 -0
  72. package/oss-licenses/texts/p-event__8.0.1__license +9 -0
  73. package/oss-licenses/texts/p-timeout__7.0.2__license +9 -0
  74. package/oss-licenses/texts/protons-runtime__5.6.0__LICENSE +4 -0
  75. package/oss-licenses/texts/protons-runtime__5.6.0__LICENSE-APACHE +5 -0
  76. package/oss-licenses/texts/protons-runtime__5.6.0__LICENSE-MIT +19 -0
  77. package/oss-licenses/texts/protons-runtime__7.1.2__LICENSE +4 -0
  78. package/oss-licenses/texts/protons-runtime__7.1.2__LICENSE-APACHE +5 -0
  79. package/oss-licenses/texts/protons-runtime__7.1.2__LICENSE-MIT +19 -0
  80. package/oss-licenses/texts/race-signal__2.0.2__LICENSE-APACHE +201 -0
  81. package/oss-licenses/texts/race-signal__2.0.2__LICENSE-MIT +19 -0
  82. package/oss-licenses/texts/random-int__3.1.0__license +9 -0
  83. package/oss-licenses/texts/sindresorhus__fnv1a__3.1.0__license +9 -0
  84. package/oss-licenses/texts/supports-color__10.2.2__license +9 -0
  85. package/oss-licenses/texts/uint8-varint__2.0.5__LICENSE-APACHE +201 -0
  86. package/oss-licenses/texts/uint8-varint__2.0.5__LICENSE-MIT +19 -0
  87. package/oss-licenses/texts/uint8-varint__3.0.0__LICENSE-APACHE +201 -0
  88. package/oss-licenses/texts/uint8-varint__3.0.0__LICENSE-MIT +19 -0
  89. package/oss-licenses/texts/uint8arraylist__2.4.9__LICENSE-APACHE +201 -0
  90. package/oss-licenses/texts/uint8arraylist__2.4.9__LICENSE-MIT +19 -0
  91. package/oss-licenses/texts/uint8arraylist__3.0.2__LICENSE-APACHE +201 -0
  92. package/oss-licenses/texts/uint8arraylist__3.0.2__LICENSE-MIT +19 -0
  93. package/oss-licenses/texts/uint8arrays__5.1.1__LICENSE-APACHE +201 -0
  94. package/oss-licenses/texts/uint8arrays__5.1.1__LICENSE-MIT +19 -0
  95. package/oss-licenses/texts/uint8arrays__6.1.1__LICENSE-APACHE +201 -0
  96. package/oss-licenses/texts/uint8arrays__6.1.1__LICENSE-MIT +19 -0
  97. package/oss-licenses/texts/unlimited-timeout__0.1.0__license +9 -0
  98. package/oss-licenses/texts/weald__1.1.3__LICENSE-APACHE +201 -0
  99. package/oss-licenses/texts/weald__1.1.3__LICENSE-MIT +19 -0
  100. package/oss-licenses/texts/wherearewe__2.0.1__LICENSE +4 -0
  101. package/oss-licenses/texts/wherearewe__2.0.1__LICENSE-APACHE +5 -0
  102. package/oss-licenses/texts/wherearewe__2.0.1__LICENSE-MIT +19 -0
  103. package/oss-licenses/texts/ws__8.22.0__LICENSE +20 -0
  104. package/package.json +52 -4
  105. package/scripts/prepublish-check.mjs +1 -0
package/LICENSE ADDED
@@ -0,0 +1,131 @@
1
+ # PolyForm Noncommercial License 1.0.0
2
+
3
+ <https://polyformproject.org/licenses/noncommercial/1.0.0>
4
+
5
+ ## Acceptance
6
+
7
+ In order to get any license under these terms, you must agree
8
+ to them as both strict obligations and conditions to all
9
+ your licenses.
10
+
11
+ ## Copyright License
12
+
13
+ The licensor grants you a copyright license for the
14
+ software to do everything you might do with the software
15
+ that would otherwise infringe the licensor's copyright
16
+ in it for any permitted purpose. However, you may
17
+ only distribute the software according to [Distribution
18
+ License](#distribution-license) and make changes or new works
19
+ based on the software according to [Changes and New Works
20
+ License](#changes-and-new-works-license).
21
+
22
+ ## Distribution License
23
+
24
+ The licensor grants you an additional copyright license
25
+ to distribute copies of the software. Your license
26
+ to distribute covers distributing the software with
27
+ changes and new works permitted by [Changes and New Works
28
+ License](#changes-and-new-works-license).
29
+
30
+ ## Notices
31
+
32
+ You must ensure that anyone who gets a copy of any part of
33
+ the software from you also gets a copy of these terms or the
34
+ URL for them above, as well as copies of any plain-text lines
35
+ beginning with `Required Notice:` that the licensor provided
36
+ with the software. For example:
37
+
38
+ > Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
39
+
40
+ ## Changes and New Works License
41
+
42
+ The licensor grants you an additional copyright license to
43
+ make changes and new works based on the software for any
44
+ permitted purpose.
45
+
46
+ ## Patent License
47
+
48
+ The licensor grants you a patent license for the software that
49
+ covers patent claims the licensor can license, or becomes able
50
+ to license, that you would infringe by using the software.
51
+
52
+ ## Noncommercial Purposes
53
+
54
+ Any noncommercial purpose is a permitted purpose.
55
+
56
+ ## Personal Uses
57
+
58
+ Personal use for research, experiment, and testing for
59
+ the benefit of public knowledge, personal study, private
60
+ entertainment, hobby projects, amateur pursuits, or religious
61
+ observance, without any anticipated commercial application,
62
+ is use for a permitted purpose.
63
+
64
+ ## Noncommercial Organizations
65
+
66
+ Use by any charitable organization, educational institution,
67
+ public research organization, public safety or health
68
+ organization, environmental protection organization,
69
+ or government institution is use for a permitted purpose
70
+ regardless of the source of funding or obligations resulting
71
+ from the funding.
72
+
73
+ ## Fair Use
74
+
75
+ You may have "fair use" rights for the software under the
76
+ law. These terms do not limit them.
77
+
78
+ ## No Other Rights
79
+
80
+ These terms do not allow you to sublicense or transfer any of
81
+ your licenses to anyone else, or prevent the licensor from
82
+ granting licenses to anyone else. These terms do not imply
83
+ any other licenses.
84
+
85
+ ## Patent Defense
86
+
87
+ If you make any written claim that the software infringes or
88
+ contributes to infringement of any patent, your patent license
89
+ for the software granted under these terms ends immediately. If
90
+ your company makes such a claim, your patent license ends
91
+ immediately for work on behalf of your company.
92
+
93
+ ## Violations
94
+
95
+ The first time you are notified in writing that you have
96
+ violated any of these terms, or done anything with the software
97
+ not covered by your licenses, your licenses can nonetheless
98
+ continue if you come into full compliance with these terms,
99
+ and take practical steps to correct past violations, within
100
+ 32 days of receiving notice. Otherwise, all your licenses
101
+ end immediately.
102
+
103
+ ## No Liability
104
+
105
+ ***As far as the law allows, the software comes as is, without
106
+ any warranty or condition, and the licensor will not be liable
107
+ to you for any damages arising out of these terms or the use
108
+ or nature of the software, under any kind of legal claim.***
109
+
110
+ ## Definitions
111
+
112
+ The **licensor** is the individual or entity offering these
113
+ terms, and the **software** is the software the licensor makes
114
+ available under these terms.
115
+
116
+ **You** refers to the individual or entity agreeing to these
117
+ terms.
118
+
119
+ **Your company** is any legal entity, sole proprietorship,
120
+ or other kind of organization that you work for, plus all
121
+ organizations that have control over, are under the control of,
122
+ or are under common control with that organization. **Control**
123
+ means ownership of substantially all the assets of an entity,
124
+ or the power to direct its management and policies by vote,
125
+ contract, or otherwise. Control can be direct or indirect.
126
+
127
+ **Your licenses** are all the licenses granted to you for the
128
+ software under these terms.
129
+
130
+ **Use** means anything you do with the software requiring one
131
+ of your licenses.
package/README.md CHANGED
@@ -1,3 +1,22 @@
1
- # Temporary Holding Version
1
+ # beta.10 / build30: confirmed-pair automatic login and direct management
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ After explicit local pairing confirmation authorizes automatic login, compatible clients can receive this DSH instance's native process-owner launch token only through the authenticated Noise-encrypted channel. Existing paired devices retain manual login; old trust does not silently gain token access. Revocation blocks future grants and trusted Noise access, but cannot retroactively revoke an already issued native token or cookie.
4
+
5
+ Management requires verified physical LAN provenance or separately marked, pinned and paired LOCAL_DIRECT business transport. Relay, forged labels or headers, unpaired identities and the login-control channel cannot gain management authority. LAN-only transport remains independent of update and diagnostic service configuration. Existing identities, pairings and user configuration are not rewritten.
6
+
7
+ Focused source and real local TCP/Noise cross-feature checks passed. Real native credential/cookie exchange, physical-LAN NIC and cross-WSL acceptance were not exercised. No WSL or firewall setting is changed by this release.
8
+
9
+ # DSH Bridge host beta
10
+
11
+ A community DSH-compatible phone-access plugin, not an official DeepSeek product. Requires Node.js >=24.9.0 and DSH0.2.2-rc.1.
12
+
13
+ Package: @tonyruan/dsh-bridge-host. Use the official DSH plugin manager for installation; stop the target profile before package-name migration. Cordis ID dsh-phone-access, plugin name phone-access, API routes and existing profileDirectory/identity remain stable. The default profile is the existing .dsh-phone-profile; changing an npm name does not authorize replacing data.
14
+
15
+ This generic build contains no personal relay preset or update root/feed. Without relay configuration, new and existing profiles use LAN-only while preserving their identity and paired devices. Existing saved relay configuration is reused. To retain relay access when replacing an old private code-only preset, use the previously supplied local deployment migration helper before replacing it. LAN-only alone neither enables nor blocks independently configured update or diagnostic services.
16
+
17
+ Own project code is licensed under the standard PolyForm Noncommercial License1.0.0 in LICENSE. This is not OSI open-source; permitted purposes and exceptions are governed by that exact text, not a blanket promise about every business/payment scenario. Third-party components retain their own permission, copyright and NOTICE terms in THIRD-PARTY-NOTICES.txt and oss-licenses/. These own-code terms do not restrict upstream rights. The complete own development project/Git repository is not included; npm runtime JavaScript is publicly readable. Native platform download assets are not included in this npm release.
18
+
19
+
20
+ Beta6/build26 retains the original validated persisted connection realm across upgrades and LAN-only restarts, including previously paired WSS realms without an unused relay leaf. Existing trusted deployment is reused without import or rewrite. AUTO still requires trusted TLS material. Legacy private code-only presets require the separately delivered Linux pre-upgrade migration helper before replacement; it statically validates the original local package and pin, never executes old code or fetches a new network leaf. No identity/pairing/schema reinitialization or client update-source JSON is required.
21
+
22
+ Beta7/build27 fixes the setting sidebar icon through the native settings.section.icon slot, without changing the phone-connection name or the general settings icon. An already-native-authenticated hostname may be used only for independently proven direct LAN sockets; the private internal flag cannot authorize relay, unknown, virtual/VPN or unverified interfaces, or bypass native Cookie/Host/Origin. The UI distinguishes native admission403 from the plugin fixed management403, and both remain blocked. Targeted raw-LAN positives use synthetic interface facts; the actual rc.1 browser/navigation checks use an isolated loopback profile. The real user Ubuntu version and route were not inspected, so site-specific resolution and a real physical-LAN success are not claimed.