@tonyruan/dsh-bridge-host 0.0.0-stage → 0.1.1-beta.11
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.
- package/LICENSE +131 -0
- package/README.md +25 -2
- package/THIRD-PARTY-NOTICES.txt +5317 -0
- package/cordis.patch.yml +7 -0
- package/lib/agent.mjs +15811 -0
- package/lib/child.mjs +48 -0
- package/lib/client.js +448 -0
- package/lib/controller.mjs +9260 -0
- package/lib/index.mjs +15181 -0
- package/lib/local-console.mjs +25 -0
- package/lib/local-management.mjs +327 -0
- package/lib/management.mjs +14726 -0
- package/lib/multi-client-profile.mjs +8404 -0
- package/lib/multi-client-session.mjs +22030 -0
- package/lib/profile-store.mjs +8576 -0
- package/lib/session.mjs +22415 -0
- package/oss-licenses/INDEX.json +681 -0
- package/oss-licenses/JS-INDEX.json +1096 -0
- package/oss-licenses/texts/any-signal__4.2.0__LICENSE-APACHE +201 -0
- package/oss-licenses/texts/any-signal__4.2.0__LICENSE-MIT +19 -0
- package/oss-licenses/texts/cborg__6.1.4__LICENSE +13 -0
- package/oss-licenses/texts/chainsafe__as-chacha20poly1305__0.1.0__LICENSE +14 -0
- package/oss-licenses/texts/chainsafe__as-sha256__1.2.5__LICENSE +14 -0
- package/oss-licenses/texts/chainsafe__is-ip__2.1.0__LICENSE +7 -0
- package/oss-licenses/texts/chainsafe__libp2p-noise__17.0.0__LICENSE-APACHE +201 -0
- package/oss-licenses/texts/chainsafe__libp2p-noise__17.0.0__LICENSE-MIT +19 -0
- package/oss-licenses/texts/chainsafe__netmask__2.0.0__LICENSE +20 -0
- package/oss-licenses/texts/delay__7.0.0__license +9 -0
- package/oss-licenses/texts/is-electron__2.2.2__LICENSE +21 -0
- package/oss-licenses/texts/is-loopback-addr__2.1.0__LICENSE +21 -0
- package/oss-licenses/texts/it-length-prefixed__11.0.1__LICENSE-APACHE +201 -0
- package/oss-licenses/texts/it-length-prefixed__11.0.1__LICENSE-MIT +19 -0
- package/oss-licenses/texts/it-merge__3.0.15__LICENSE +4 -0
- package/oss-licenses/texts/it-merge__3.0.15__LICENSE-APACHE +5 -0
- package/oss-licenses/texts/it-merge__3.0.15__LICENSE-MIT +19 -0
- package/oss-licenses/texts/it-pipe__3.0.1__LICENSE +4 -0
- package/oss-licenses/texts/it-pipe__3.0.1__LICENSE-APACHE +5 -0
- package/oss-licenses/texts/it-pipe__3.0.1__LICENSE-MIT +19 -0
- package/oss-licenses/texts/it-pushable__3.2.4__LICENSE-APACHE +201 -0
- package/oss-licenses/texts/it-pushable__3.2.4__LICENSE-MIT +19 -0
- package/oss-licenses/texts/it-queueless-pushable__2.0.5__LICENSE +4 -0
- package/oss-licenses/texts/it-queueless-pushable__2.0.5__LICENSE-APACHE +5 -0
- package/oss-licenses/texts/it-queueless-pushable__2.0.5__LICENSE-MIT +19 -0
- package/oss-licenses/texts/libp2p__crypto__5.2.0__LICENSE-APACHE +201 -0
- package/oss-licenses/texts/libp2p__crypto__5.2.0__LICENSE-MIT +19 -0
- package/oss-licenses/texts/libp2p__interface__3.4.0__LICENSE-APACHE +201 -0
- package/oss-licenses/texts/libp2p__interface__3.4.0__LICENSE-MIT +19 -0
- package/oss-licenses/texts/libp2p__logger__6.2.16__LICENSE-APACHE +201 -0
- package/oss-licenses/texts/libp2p__logger__6.2.16__LICENSE-MIT +19 -0
- package/oss-licenses/texts/libp2p__peer-id__6.0.18__LICENSE-APACHE +201 -0
- package/oss-licenses/texts/libp2p__peer-id__6.0.18__LICENSE-MIT +19 -0
- package/oss-licenses/texts/libp2p__utils__7.4.5__LICENSE-APACHE +201 -0
- package/oss-licenses/texts/libp2p__utils__7.4.5__LICENSE-MIT +19 -0
- package/oss-licenses/texts/main-event__1.0.5__LICENSE-APACHE +201 -0
- package/oss-licenses/texts/main-event__1.0.5__LICENSE-MIT +19 -0
- package/oss-licenses/texts/ms__4.0.0-nightly.202508271359__LICENSE +21 -0
- package/oss-licenses/texts/multiformats__13.4.2__LICENSE +4 -0
- package/oss-licenses/texts/multiformats__13.4.2__LICENSE-APACHE +5 -0
- package/oss-licenses/texts/multiformats__13.4.2__LICENSE-MIT +19 -0
- package/oss-licenses/texts/multiformats__14.0.5__LICENSE +4 -0
- package/oss-licenses/texts/multiformats__14.0.5__LICENSE-APACHE +5 -0
- package/oss-licenses/texts/multiformats__14.0.5__LICENSE-MIT +19 -0
- package/oss-licenses/texts/multiformats__multiaddr-matcher__3.0.2__LICENSE-APACHE +201 -0
- package/oss-licenses/texts/multiformats__multiaddr-matcher__3.0.2__LICENSE-MIT +19 -0
- package/oss-licenses/texts/multiformats__multiaddr__13.0.3__LICENSE-APACHE +201 -0
- package/oss-licenses/texts/multiformats__multiaddr__13.0.3__LICENSE-MIT +19 -0
- package/oss-licenses/texts/netmask__2.1.1__LICENSE.md +21 -0
- package/oss-licenses/texts/noble__ciphers__2.4.0__LICENSE +22 -0
- package/oss-licenses/texts/noble__curves__2.4.0__LICENSE +21 -0
- package/oss-licenses/texts/noble__hashes__2.4.0__LICENSE +21 -0
- package/oss-licenses/texts/p-defer__4.0.1__license +9 -0
- package/oss-licenses/texts/p-event__8.0.1__license +9 -0
- package/oss-licenses/texts/p-timeout__7.0.2__license +9 -0
- package/oss-licenses/texts/protons-runtime__5.6.0__LICENSE +4 -0
- package/oss-licenses/texts/protons-runtime__5.6.0__LICENSE-APACHE +5 -0
- package/oss-licenses/texts/protons-runtime__5.6.0__LICENSE-MIT +19 -0
- package/oss-licenses/texts/protons-runtime__7.1.2__LICENSE +4 -0
- package/oss-licenses/texts/protons-runtime__7.1.2__LICENSE-APACHE +5 -0
- package/oss-licenses/texts/protons-runtime__7.1.2__LICENSE-MIT +19 -0
- package/oss-licenses/texts/race-signal__2.0.2__LICENSE-APACHE +201 -0
- package/oss-licenses/texts/race-signal__2.0.2__LICENSE-MIT +19 -0
- package/oss-licenses/texts/random-int__3.1.0__license +9 -0
- package/oss-licenses/texts/sindresorhus__fnv1a__3.1.0__license +9 -0
- package/oss-licenses/texts/supports-color__10.2.2__license +9 -0
- package/oss-licenses/texts/uint8-varint__2.0.5__LICENSE-APACHE +201 -0
- package/oss-licenses/texts/uint8-varint__2.0.5__LICENSE-MIT +19 -0
- package/oss-licenses/texts/uint8-varint__3.0.0__LICENSE-APACHE +201 -0
- package/oss-licenses/texts/uint8-varint__3.0.0__LICENSE-MIT +19 -0
- package/oss-licenses/texts/uint8arraylist__2.4.9__LICENSE-APACHE +201 -0
- package/oss-licenses/texts/uint8arraylist__2.4.9__LICENSE-MIT +19 -0
- package/oss-licenses/texts/uint8arraylist__3.0.2__LICENSE-APACHE +201 -0
- package/oss-licenses/texts/uint8arraylist__3.0.2__LICENSE-MIT +19 -0
- package/oss-licenses/texts/uint8arrays__5.1.1__LICENSE-APACHE +201 -0
- package/oss-licenses/texts/uint8arrays__5.1.1__LICENSE-MIT +19 -0
- package/oss-licenses/texts/uint8arrays__6.1.1__LICENSE-APACHE +201 -0
- package/oss-licenses/texts/uint8arrays__6.1.1__LICENSE-MIT +19 -0
- package/oss-licenses/texts/unlimited-timeout__0.1.0__license +9 -0
- package/oss-licenses/texts/weald__1.1.3__LICENSE-APACHE +201 -0
- package/oss-licenses/texts/weald__1.1.3__LICENSE-MIT +19 -0
- package/oss-licenses/texts/wherearewe__2.0.1__LICENSE +4 -0
- package/oss-licenses/texts/wherearewe__2.0.1__LICENSE-APACHE +5 -0
- package/oss-licenses/texts/wherearewe__2.0.1__LICENSE-MIT +19 -0
- package/oss-licenses/texts/ws__8.22.0__LICENSE +20 -0
- package/package.json +52 -4
- 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,26 @@
|
|
|
1
|
-
#
|
|
1
|
+
# beta.11 / build31: restart recovery and actionable diagnostics
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Linux profile ownership now uses the kernel flock mutex. Normal close, process death and reboot release ownership while the format marker stays in place. Existing profile.json identity and pairing data are unchanged. Linux requires the existing /usr/bin/flock from util-linux; unsafe or ambiguous legacy empty locks remain preserved rather than being silently deleted. Older releases cannot reopen the new persistent lock marker on downgrade.
|
|
4
|
+
|
|
5
|
+
An existing opted-in diagnostic identity loads before the business profile. Startup failures retain an authenticated read-only status/report surface and an independent uploader. The original validated deployment can supply the receiver before identity storage is available; a separate public receiver cache then keeps logging independent of backend changes. No new identity or opt-in is created during startup. A trusted receiver and registered diagnostic public key are still required.
|
|
6
|
+
|
|
7
|
+
Fixed v1 events distinguish profile locks, transport refusal, TLS, native login and cookie failures without exception text, addresses, tokens or business content. Important records persist before upload, with one-second batches and bounded backoff; offline records replay under the same key. Opt-out still stops collection and upload. The native settings page has a support-report download with public state and allowed diagnostic events only.
|
|
8
|
+
|
|
9
|
+
Actual native DSH 0.2.2-rc.1 testing upgraded the formal beta.10 installation, retained identity/pairing and diagnostic keys, reproduced an old empty lock, and located it from signed TLS1.3 records stored on an isolated cloud collector. Refused TCP, rejected token, expired cookie, offline replay and SIGKILL restart were verified. Windows runtime protocol testing used Linux with explicit loopback carrier adapters; it does not claim a second physical-device LAN or Windows GUI/DPAPI test. The production relay was not reconfigured or restarted.
|
|
10
|
+
|
|
11
|
+
Diagnostic version 0.1.31 corresponds to Host build31. The existing signed v1 ingestion schema remains compatible with older clients.
|
|
12
|
+
|
|
13
|
+
# DSH Bridge host beta
|
|
14
|
+
|
|
15
|
+
A community DSH-compatible phone-access plugin, not an official DeepSeek product. Requires Node.js >=24.9.0 and DSH0.2.2-rc.1.
|
|
16
|
+
|
|
17
|
+
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.
|
|
18
|
+
|
|
19
|
+
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.
|
|
20
|
+
|
|
21
|
+
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.
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
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.
|
|
25
|
+
|
|
26
|
+
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.
|