Skip to content

Commit f86a5a8

Browse files
committed
keep npm tooling local
1 parent b24eb2f commit f86a5a8

6 files changed

Lines changed: 25 additions & 917 deletions

File tree

.github/workflows/r2-large-assets.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ jobs:
4646

4747
- name: Plan large asset sync
4848
if: inputs.mode == 'plan'
49-
run: npm run r2:large-assets:plan
49+
run: node scripts/sync-large-assets-r2.cjs
5050

5151
- name: Verify large asset URLs
5252
if: inputs.mode == 'verify'
53-
run: npm run r2:large-assets:verify
53+
run: node scripts/sync-large-assets-r2.cjs --verify
5454

5555
- name: Upload missing large assets
5656
if: inputs.mode == 'upload'
57-
run: npm run r2:large-assets:upload
57+
run: node scripts/sync-large-assets-r2.cjs --upload

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ settings.json
1111
AGENTS.md
1212
CLAUDE.md
1313
node_modules/
14+
/package.json
15+
/package-lock.json
1416
ssn-streamdeck/
1517
package.lock
1618
electron_app_reference/
1719
.npm-cache/
1820
tests/
19-
scripts/test-*.cjs
21+
scripts/test-*.cjs
22+
issue/
2023

2124
# Local browser model blobs (download at install/runtime, not in git)
2225
thirdparty/models/qwen3.5-0.8b-onnx/onnx/*.onnx_data

background.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11488,9 +11488,21 @@ async function trySendTargetP2P(data, target) {
1148811488
// function to send data to a labelled page via the VDO.Ninja API
1148911489
if (ninjaBridge && ninjaBridge.isReady()) {
1149011490
try {
11491-
var sdkResult = await ninjaBridge.sendToLabel(data, target);
11492-
if (sdkResult !== false) {
11493-
return true;
11491+
var sdkPeers = typeof ninjaBridge.getPeers === "function" ? ninjaBridge.getPeers() : null;
11492+
var hasSdkTarget = !sdkPeers;
11493+
if (sdkPeers) {
11494+
for (var sdkUUID in sdkPeers) {
11495+
if (sdkPeers[sdkUUID] === target) {
11496+
hasSdkTarget = true;
11497+
break;
11498+
}
11499+
}
11500+
}
11501+
if (hasSdkTarget) {
11502+
var sdkResult = await ninjaBridge.sendToLabel(data, target);
11503+
if (sdkResult !== false) {
11504+
return true;
11505+
}
1149411506
}
1149511507
} catch (e) {
1149611508
console.warn("SDK sendTargetP2P failed", e);

0 commit comments

Comments
 (0)