@krx3d/tizentube2 1.31.570 → 1.31.590
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/.github/workflows/build-publish-cleanup.yml +22 -6
- package/.github/workflows/claude.yml +1 -1
- package/.github/workflows/codeql.yml +1 -1
- package/.github/workflows/upstream-sync.yml +1 -1
- package/AGENTS.md +3 -0
- package/dist/userScript.js +1 -1
- package/package.json +1 -1
- package/standalone/index.html +57 -36
- package/standalone/preview/preview.js +55 -50
|
@@ -186,11 +186,15 @@ env:
|
|
|
186
186
|
# refused request writes nothing, and if npm allows this again for
|
|
187
187
|
# automation, removal resumes on the next run with no change here.
|
|
188
188
|
# Set to 'false' only to stop attempting it altogether.
|
|
189
|
-
|
|
189
|
+
# 'false': npm refuses unpublish from this granular bypass-2FA token
|
|
190
|
+
# (see "Decide versions" below), so every attempt only produced a 403 and a
|
|
191
|
+
# warning. Old versions are deprecated instead; scripts/npm-cleanup removes
|
|
192
|
+
# them locally.
|
|
193
|
+
ALLOW_UNPUBLISH: 'false'
|
|
190
194
|
|
|
191
195
|
jobs:
|
|
192
196
|
build-publish-clean:
|
|
193
|
-
runs-on: ubuntu-
|
|
197
|
+
runs-on: ubuntu-24.04
|
|
194
198
|
|
|
195
199
|
# Prevent loop on bot commits and on our own "[skip ci]" commits.
|
|
196
200
|
#
|
|
@@ -956,10 +960,22 @@ jobs:
|
|
|
956
960
|
# continue-on-error here, a benign throttle still failed the whole
|
|
957
961
|
# job even though that fallback ran and succeeded.
|
|
958
962
|
continue-on-error: true
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
+
# Was egad13/purge-jsdelivr-cache@v1, which targets Node 20 (deprecated
|
|
964
|
+
# on the runners). jsDelivr's purge API is one JSON POST, so it is done
|
|
965
|
+
# here directly: paths without the host, all in one request.
|
|
966
|
+
env:
|
|
967
|
+
CDN_URLS: ${{ steps.cdn_urls.outputs.urls }}
|
|
968
|
+
run: |
|
|
969
|
+
set -euo pipefail
|
|
970
|
+
BODY=$(node -e 'const u=(process.env.CDN_URLS||"").split(",").filter(Boolean).map(x=>x.replace(/^https:\/\/cdn\.jsdelivr\.net/,""));process.stdout.write(JSON.stringify({path:u}))')
|
|
971
|
+
echo "Purging $(echo "$BODY" | node -e 'let s="";process.stdin.on("data",d=>s+=d).on("end",()=>console.log(JSON.parse(s).path.length))') paths"
|
|
972
|
+
for attempt in 1 2 3; do
|
|
973
|
+
CODE=$(curl -s -o /tmp/purge.json -w '%{http_code}' -X POST https://purge.jsdelivr.net/ -H 'Content-Type: application/json' -d "$BODY" || true)
|
|
974
|
+
echo "attempt ${attempt}: HTTP ${CODE}"; head -c 600 /tmp/purge.json || true; echo
|
|
975
|
+
if [ "$CODE" -ge 200 ] && [ "$CODE" -lt 300 ]; then exit 0; fi
|
|
976
|
+
sleep 5
|
|
977
|
+
done
|
|
978
|
+
exit 1
|
|
963
979
|
|
|
964
980
|
- name: Purge individual URLs (fallback if batch fails)
|
|
965
981
|
if: steps.confirm_publish.outputs.confirmed == 'true' && failure()
|
|
@@ -17,7 +17,7 @@ jobs:
|
|
|
17
17
|
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
|
|
18
18
|
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
|
|
19
19
|
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
|
|
20
|
-
runs-on: ubuntu-
|
|
20
|
+
runs-on: ubuntu-24.04
|
|
21
21
|
permissions:
|
|
22
22
|
contents: write
|
|
23
23
|
pull-requests: write
|
package/AGENTS.md
CHANGED
|
@@ -75,6 +75,8 @@ standalone/ # standalone installable app — see "Standalone mo
|
|
|
75
75
|
config.xml # Tizen app manifest — app id: krx3dTtSt1.TizenTubeStandalone
|
|
76
76
|
index.html # loading screen, decides injector vs proxy path
|
|
77
77
|
icon.png, icon_16b9.png
|
|
78
|
+
preview/preview.js # PreviewService: publishes the TV home bar row (Smart Hub Preview) from
|
|
79
|
+
# tt-home-bar-preview.json and exits; plain ES5, copied as-is (Node 4.4.3)
|
|
78
80
|
service/ # standalone's own local proxy + CDP injector (NOT mods/'s service/)
|
|
79
81
|
index.js # Express proxy: rewrites youtube.com/tv, injects userscript <script> tag
|
|
80
82
|
injector.js # CDP-based injector (same technique TizenBrew itself uses)
|
|
@@ -146,6 +148,7 @@ scripts/pc-installer/ # PC-side install/update script (SDB from the PC,
|
|
|
146
148
|
| `videoQueuing.js` | Manual video queue feature. |
|
|
147
149
|
| `playlistBatchCollect.js` | Batch-collects playlist items (`enablePlaylistBatchCollect`). |
|
|
148
150
|
| `logServer.js` | Optional remote log server (`logServerEnabled`) for on-device debugging. In TizenBrew mode, relays via TizenBrew's own `127.0.0.1:8081` service + CDP-queue fallback. In standalone mode (`window.location.hostname === 'localhost'`), instead POSTs to the standalone service's own `POST /tizentube/log` (see `standalone/service/index.js`), which relays to the PC receiver at `logServerHost`:`logServerPort` (same `/tv-log` path/JSON shape as TizenBrew's `remoteLogger.js`, so the receiver script at `scripts/log-receiver/receiver.ps1` works for both). Host/port are set via the RED-key theme overlay (`mods/ui/ui.js`), standalone-only fields — there's no free-text entry in the native TV settings menu. The standalone *service itself* also self-logs its own lifecycle (startup, uncaught exceptions, DIAL service load, proxy errors) unconditionally to a hardcoded `DEFAULT_LOG_HOST`/`DEFAULT_LOG_PORT` in `standalone/service/index.js`, independent of any page config — added specifically because the service can crash before the page/userscript ever loads, at which point page-driven config never gets read. `relayLog` (the single choke point both the page-side proxy fetch and the CDP-queue drain ultimately funnel through) tracks per-`host:port` availability: after the first failed attempt (fast `ECONNREFUSED`, or a 3s timeout for a genuinely unreachable host that would otherwise hang far longer at the OS TCP-connect level) it skips all further attempts to that target for the rest of the process, so an unreachable/not-running PC receiver can't add repeated delay to every subsequent log call. |
|
|
151
|
+
| `homeBarPreview.js` | Standalone only: builds TizenTube's row on the TV home bar (Smart Hub Preview, TVs up to 2021) from the latest unfinished history entry, the latest playlists and the subscriptions page, via the InnerTube client; hands it to the service (POST on the proxy path, `window.__ttHomeBarPreview` drained by the injector's CDP poll otherwise). `openLaunchAction()` opens what a tile asked for (`window.__ttLaunchAction`, set by the injector from index.html's `ttLaunch`). |
|
|
149
152
|
| `visualConsole.js` | On-screen debug console (`enableDebugConsole`) — shows version via `../../package.json`, executes commands via `resolveCommand`. |
|
|
150
153
|
|
|
151
154
|
## UI map (`mods/ui/*.js`)
|