@telepath-computer/television 0.1.215 → 0.1.216
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/cli.cjs +62 -19
- package/dist/views/artifact-missing/index.html +2 -2
- package/dist/views/markdown/index.html +22 -22
- package/dist/web/assets/artifact-bridge-3Trk-B2L.js +1 -0
- package/dist/web/assets/{artifactMissing-9rcTXhkH.js → artifactMissing-BiK_l3Ts.js} +1 -1
- package/dist/web/assets/main-V14r9Psb.js +596 -0
- package/dist/web/assets/{urlUnsupported-kgq7Zh2V.js → urlUnsupported-RGIrhMDe.js} +1 -1
- package/dist/web/index.html +2 -2
- package/dist/web/views/artifact-missing/index.html +2 -2
- package/dist/web/views/url-unsupported/index.html +2 -2
- package/package.json +1 -1
- package/dist/web/assets/artifact-bridge-BXDhGuL-.js +0 -1
- package/dist/web/assets/main-Z-io-D9l.js +0 -596
package/dist/cli.cjs
CHANGED
|
@@ -50691,6 +50691,53 @@ function installBridge(win = window, options = {}) {
|
|
|
50691
50691
|
startPollLoop();
|
|
50692
50692
|
}
|
|
50693
50693
|
if (options.reportNavigation !== false) {
|
|
50694
|
+
const browserLocalProtocols = /* @__PURE__ */ new Set([
|
|
50695
|
+
"about:",
|
|
50696
|
+
"blob:",
|
|
50697
|
+
"chrome-extension:",
|
|
50698
|
+
"chrome:",
|
|
50699
|
+
"data:",
|
|
50700
|
+
"devtools:",
|
|
50701
|
+
"file:",
|
|
50702
|
+
"filesystem:",
|
|
50703
|
+
"javascript:",
|
|
50704
|
+
"view-source:"
|
|
50705
|
+
]);
|
|
50706
|
+
const applicationNavigationURL = (value, baseURL) => {
|
|
50707
|
+
try {
|
|
50708
|
+
const parsed = new URL(value, baseURL);
|
|
50709
|
+
if (parsed.protocol === "http:" || parsed.protocol === "https:") return null;
|
|
50710
|
+
return browserLocalProtocols.has(parsed.protocol) ? null : parsed;
|
|
50711
|
+
} catch {
|
|
50712
|
+
return null;
|
|
50713
|
+
}
|
|
50714
|
+
};
|
|
50715
|
+
const webNavigationURL = (value, baseURL) => {
|
|
50716
|
+
try {
|
|
50717
|
+
const parsed = new URL(value, baseURL);
|
|
50718
|
+
return parsed.protocol === "http:" || parsed.protocol === "https:" ? parsed : null;
|
|
50719
|
+
} catch {
|
|
50720
|
+
return null;
|
|
50721
|
+
}
|
|
50722
|
+
};
|
|
50723
|
+
const handleApplicationAnchorActivation = (event) => {
|
|
50724
|
+
const leftClick = event.type === "click" && event.button === 0;
|
|
50725
|
+
const middleClick = event.type === "auxclick" && event.button === 1;
|
|
50726
|
+
if (!leftClick && !middleClick) return;
|
|
50727
|
+
const elementConstructor = win.document.defaultView?.Element;
|
|
50728
|
+
if (!elementConstructor || !(event.target instanceof elementConstructor)) return;
|
|
50729
|
+
const anchor = event.target.closest("a[href]");
|
|
50730
|
+
if (!anchor) return;
|
|
50731
|
+
const url2 = applicationNavigationURL(anchor.href, win.document.baseURI);
|
|
50732
|
+
if (!url2) return;
|
|
50733
|
+
const target = anchor.target.toLowerCase();
|
|
50734
|
+
const requestsAnotherContext = middleClick || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || target !== "" && target !== "_self";
|
|
50735
|
+
if (!requestsAnotherContext && !anchor.hasAttribute("download")) return;
|
|
50736
|
+
event.preventDefault();
|
|
50737
|
+
win.location.href = url2.href;
|
|
50738
|
+
};
|
|
50739
|
+
win.document.addEventListener("click", handleApplicationAnchorActivation, true);
|
|
50740
|
+
win.document.addEventListener("auxclick", handleApplicationAnchorActivation, true);
|
|
50694
50741
|
const postNavigationRequest = (message) => {
|
|
50695
50742
|
win.parent.postMessage({ type: "navigation-request", ...message }, "*");
|
|
50696
50743
|
};
|
|
@@ -50701,6 +50748,8 @@ function installBridge(win = window, options = {}) {
|
|
|
50701
50748
|
const navigateEvent = event;
|
|
50702
50749
|
const url2 = navigateEvent.destination?.url;
|
|
50703
50750
|
if (typeof url2 !== "string") return;
|
|
50751
|
+
const parsedURL = webNavigationURL(url2, win.location.href);
|
|
50752
|
+
if (!parsedURL) return;
|
|
50704
50753
|
const sameDocument = navigateEvent.destination?.sameDocument === true;
|
|
50705
50754
|
const message = {
|
|
50706
50755
|
url: url2,
|
|
@@ -50711,12 +50760,9 @@ function installBridge(win = window, options = {}) {
|
|
|
50711
50760
|
postNavigationRequest(message);
|
|
50712
50761
|
return;
|
|
50713
50762
|
}
|
|
50714
|
-
|
|
50715
|
-
|
|
50716
|
-
|
|
50717
|
-
return;
|
|
50718
|
-
}
|
|
50719
|
-
} catch {
|
|
50763
|
+
if (parsedURL.origin === win.location.origin) {
|
|
50764
|
+
postNavigationRequest({ ...message, native: true });
|
|
50765
|
+
return;
|
|
50720
50766
|
}
|
|
50721
50767
|
const canIntercept = navigateEvent.canIntercept;
|
|
50722
50768
|
if (canIntercept !== false) {
|
|
@@ -50737,13 +50783,9 @@ function installBridge(win = window, options = {}) {
|
|
|
50737
50783
|
if (anchor.target && anchor.target.toLowerCase() !== "_self") return;
|
|
50738
50784
|
if (anchor.hasAttribute("download")) return;
|
|
50739
50785
|
const href = anchor.getAttribute("href");
|
|
50740
|
-
if (!href
|
|
50741
|
-
|
|
50742
|
-
|
|
50743
|
-
url2 = new URL(anchor.href, win.document.baseURI);
|
|
50744
|
-
} catch {
|
|
50745
|
-
return;
|
|
50746
|
-
}
|
|
50786
|
+
if (!href) return;
|
|
50787
|
+
const url2 = webNavigationURL(anchor.href, win.document.baseURI);
|
|
50788
|
+
if (!url2) return;
|
|
50747
50789
|
if (url2.origin === win.location.origin && url2.pathname === win.location.pathname && url2.search === win.location.search && url2.hash !== "") {
|
|
50748
50790
|
postNavigationRequest({ url: url2.href, sameDocument: true });
|
|
50749
50791
|
return;
|
|
@@ -50777,9 +50819,10 @@ function installBridge(win = window, options = {}) {
|
|
|
50777
50819
|
const formConstructor = win.document.defaultView?.HTMLFormElement;
|
|
50778
50820
|
if (!formConstructor || !(form instanceof formConstructor)) return;
|
|
50779
50821
|
if (form.target && form.target.toLowerCase() !== "_self") return;
|
|
50822
|
+
const action = webNavigationURL(form.action || win.location.href, win.document.baseURI);
|
|
50823
|
+
if (!action) return;
|
|
50780
50824
|
submit.preventDefault();
|
|
50781
50825
|
const method = form.method.toLowerCase();
|
|
50782
|
-
const action = new URL(form.action || win.location.href, win.document.baseURI);
|
|
50783
50826
|
if (method === "get") {
|
|
50784
50827
|
const formDataConstructor = win.document.defaultView?.FormData;
|
|
50785
50828
|
if (!formDataConstructor) return;
|
|
@@ -53251,7 +53294,7 @@ function disabledTelemetryRuntime() {
|
|
|
53251
53294
|
|
|
53252
53295
|
// ../server/src/updates/version.ts
|
|
53253
53296
|
function readVersionStamp() {
|
|
53254
|
-
if ("0.1.
|
|
53297
|
+
if ("0.1.216".length > 0) return "0.1.216";
|
|
53255
53298
|
return void 0;
|
|
53256
53299
|
}
|
|
53257
53300
|
function resolveUpdateReleaseVersion(env = process.env, stamp = readVersionStamp()) {
|
|
@@ -53763,8 +53806,8 @@ var Server = class {
|
|
|
53763
53806
|
};
|
|
53764
53807
|
};
|
|
53765
53808
|
function readServerPackageVersion() {
|
|
53766
|
-
if ("0.1.
|
|
53767
|
-
return telemetryVersion("0.1.
|
|
53809
|
+
if ("0.1.216".length > 0) {
|
|
53810
|
+
return telemetryVersion("0.1.216");
|
|
53768
53811
|
}
|
|
53769
53812
|
const packageJsonPath = import_node_path11.default.resolve(import_node_path11.default.dirname((0, import_node_url.fileURLToPath)(import_meta.url)), "..", "package.json");
|
|
53770
53813
|
if (!(0, import_node_fs9.existsSync)(packageJsonPath)) return telemetryVersion("0.0.0");
|
|
@@ -55733,8 +55776,8 @@ function resolveVercelSkillsInstallerBin() {
|
|
|
55733
55776
|
return localRequire.resolve("skills/bin/cli.mjs");
|
|
55734
55777
|
}
|
|
55735
55778
|
function readCLIVersion() {
|
|
55736
|
-
if ("0.1.
|
|
55737
|
-
return "0.1.
|
|
55779
|
+
if ("0.1.216".length > 0) {
|
|
55780
|
+
return "0.1.216";
|
|
55738
55781
|
}
|
|
55739
55782
|
const devPackageJsonPath = import_node_path18.default.join(getDevPackageDir(), "package.json");
|
|
55740
55783
|
if (!(0, import_node_fs16.existsSync)(devPackageJsonPath)) {
|
|
@@ -123,8 +123,8 @@ p {
|
|
|
123
123
|
display: none !important;
|
|
124
124
|
}
|
|
125
125
|
</style>
|
|
126
|
-
<script type="module" crossorigin src="../../assets/artifactMissing-
|
|
127
|
-
<link rel="modulepreload" crossorigin href="../../assets/artifact-bridge-
|
|
126
|
+
<script type="module" crossorigin src="../../assets/artifactMissing-BiK_l3Ts.js"></script>
|
|
127
|
+
<link rel="modulepreload" crossorigin href="../../assets/artifact-bridge-3Trk-B2L.js">
|
|
128
128
|
<link rel="modulepreload" crossorigin href="../../assets/missing-artifact-page-DVzJ41AE.js">
|
|
129
129
|
</head>
|
|
130
130
|
<body>
|