tesseract-agent 0.8.0 → 0.8.1
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/dist-bundle/cli.js +24 -6
- package/package.json +1 -1
package/dist-bundle/cli.js
CHANGED
|
@@ -3805,7 +3805,7 @@ var init_permissions = __esm({
|
|
|
3805
3805
|
{
|
|
3806
3806
|
id: "full-disk-access",
|
|
3807
3807
|
label: "Full Disk Access",
|
|
3808
|
-
why: "Show the folders you pinned in Finder\u2019s sidebar.",
|
|
3808
|
+
why: "Show the folders you pinned in Finder\u2019s sidebar, and import your Safari logins.",
|
|
3809
3809
|
icon: "FolderLock",
|
|
3810
3810
|
category: "system",
|
|
3811
3811
|
applicablePlatforms: ["darwin"],
|
|
@@ -3849,7 +3849,7 @@ var init_permissions = __esm({
|
|
|
3849
3849
|
});
|
|
3850
3850
|
|
|
3851
3851
|
// ../../packages/shared/dist/ws-protocol.js
|
|
3852
|
-
var MIRRORED_AGENT_EVENTS;
|
|
3852
|
+
var MIRRORED_AGENT_EVENTS, OWN_STUN_HOST, OWN_STUN_PORT, OWN_STUN_URL, PUBLIC_STUN_URLS, DEFAULT_ICE_SERVERS;
|
|
3853
3853
|
var init_ws_protocol = __esm({
|
|
3854
3854
|
"../../packages/shared/dist/ws-protocol.js"() {
|
|
3855
3855
|
"use strict";
|
|
@@ -3899,6 +3899,18 @@ var init_ws_protocol = __esm({
|
|
|
3899
3899
|
// would stomp a co-viewer's own picker with the driver's host); session:forked
|
|
3900
3900
|
// and agent:context_usage are driver-only correlation/host-local replies.
|
|
3901
3901
|
]);
|
|
3902
|
+
OWN_STUN_HOST = "bridge.fineguide.ai";
|
|
3903
|
+
OWN_STUN_PORT = 3478;
|
|
3904
|
+
OWN_STUN_URL = `stun:${OWN_STUN_HOST}:${OWN_STUN_PORT}`;
|
|
3905
|
+
PUBLIC_STUN_URLS = [
|
|
3906
|
+
"stun:stun.l.google.com:19302",
|
|
3907
|
+
"stun:stun1.l.google.com:19302",
|
|
3908
|
+
"stun:stun.cloudflare.com:3478"
|
|
3909
|
+
];
|
|
3910
|
+
DEFAULT_ICE_SERVERS = [
|
|
3911
|
+
{ urls: OWN_STUN_URL },
|
|
3912
|
+
...PUBLIC_STUN_URLS.map((urls) => ({ urls }))
|
|
3913
|
+
];
|
|
3902
3914
|
}
|
|
3903
3915
|
});
|
|
3904
3916
|
|
|
@@ -5266,6 +5278,7 @@ var init_dist = __esm({
|
|
|
5266
5278
|
init_surface_merge();
|
|
5267
5279
|
init_permissions();
|
|
5268
5280
|
init_ws_protocol();
|
|
5281
|
+
init_ws_protocol();
|
|
5269
5282
|
init_frame();
|
|
5270
5283
|
init_domain_id();
|
|
5271
5284
|
init_plans();
|
|
@@ -53490,12 +53503,17 @@ async function dialLadder(opts) {
|
|
|
53490
53503
|
}
|
|
53491
53504
|
|
|
53492
53505
|
// ../../packages/host-core/dist/peer-link/manager.js
|
|
53506
|
+
init_dist();
|
|
53493
53507
|
var LISTEN_PORT = Number(process.env.CCB_P2P_PORT ?? 0);
|
|
53494
53508
|
var UDP_PORT = Number(process.env.CCB_P2P_UDP_PORT ?? 0);
|
|
53495
53509
|
var RENDEZVOUS_TIMEOUT_MS = 25e3;
|
|
53496
53510
|
var INBOUND_WAIT_MS = 2e4;
|
|
53497
|
-
var
|
|
53498
|
-
|
|
53511
|
+
var DEFAULT_STUN_SERVERS = [
|
|
53512
|
+
{ host: OWN_STUN_HOST, port: OWN_STUN_PORT },
|
|
53513
|
+
// our coturn first
|
|
53514
|
+
{ host: "stun.l.google.com", port: 19302 }
|
|
53515
|
+
// public fallback
|
|
53516
|
+
];
|
|
53499
53517
|
var provisionedStun = null;
|
|
53500
53518
|
function provisionStun(host, port = 3478) {
|
|
53501
53519
|
if (host)
|
|
@@ -53510,7 +53528,7 @@ function resolveStunServers() {
|
|
|
53510
53528
|
list.push({ host: env, port: Number(process.env.CCB_STUN_PORT ?? 3478) });
|
|
53511
53529
|
if (provisionedStun)
|
|
53512
53530
|
list.push(provisionedStun);
|
|
53513
|
-
list.push(
|
|
53531
|
+
list.push(...DEFAULT_STUN_SERVERS);
|
|
53514
53532
|
const seen = /* @__PURE__ */ new Set();
|
|
53515
53533
|
return list.filter((s) => {
|
|
53516
53534
|
const k = `${s.host}:${s.port}`;
|
|
@@ -57755,7 +57773,7 @@ function fetchIceServers() {
|
|
|
57755
57773
|
const i = iceWaiters.indexOf(resolve10);
|
|
57756
57774
|
if (i >= 0) {
|
|
57757
57775
|
iceWaiters.splice(i, 1);
|
|
57758
|
-
resolve10(
|
|
57776
|
+
resolve10(DEFAULT_ICE_SERVERS);
|
|
57759
57777
|
}
|
|
57760
57778
|
}, 2500);
|
|
57761
57779
|
});
|