pinokiod 3.204.0 → 3.206.0
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/kernel/api/terminal/index.js +6 -0
- package/kernel/shells.js +6 -0
- package/package.json +1 -1
- package/server/public/nav.js +10 -0
- package/server/public/style.css +2 -0
- package/server/views/app.ejs +0 -4
|
@@ -150,6 +150,12 @@ class Terminal {
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
} else if (ondata) {
|
|
153
|
+
if (!params || !params.id) {
|
|
154
|
+
console.warn('[terminal.upload] missing shell id for attachment marker', {
|
|
155
|
+
hasParams: !!params,
|
|
156
|
+
savedCount: saved.length
|
|
157
|
+
})
|
|
158
|
+
}
|
|
153
159
|
ondata({ raw: marker })
|
|
154
160
|
}
|
|
155
161
|
|
package/kernel/shells.js
CHANGED
|
@@ -393,6 +393,12 @@ class Shells {
|
|
|
393
393
|
} else {
|
|
394
394
|
session.emit(params.emit)
|
|
395
395
|
}
|
|
396
|
+
} else {
|
|
397
|
+
const preview = typeof params.emit === 'string' ? params.emit.slice(0, 64) : ''
|
|
398
|
+
console.warn('[shell.emit] missing session for id', params.id, {
|
|
399
|
+
paste: !!params.paste,
|
|
400
|
+
preview
|
|
401
|
+
})
|
|
396
402
|
}
|
|
397
403
|
}
|
|
398
404
|
async send(params, ondata, enter) {
|
package/package.json
CHANGED
package/server/public/nav.js
CHANGED
|
@@ -535,6 +535,16 @@ document.addEventListener("DOMContentLoaded", () => {
|
|
|
535
535
|
console.warn('[PinokioInspector] postMessage failed', err);
|
|
536
536
|
}
|
|
537
537
|
}, true);
|
|
538
|
+
window.addEventListener('message', (event) => {
|
|
539
|
+
if (!event || event.source === window || !event.data || !event.data.pinokioInspector) {
|
|
540
|
+
return;
|
|
541
|
+
}
|
|
542
|
+
try {
|
|
543
|
+
window.top?.postMessage(event.data, '*');
|
|
544
|
+
} catch (err) {
|
|
545
|
+
console.warn('[PinokioInspector] relay failed', err);
|
|
546
|
+
}
|
|
547
|
+
});
|
|
538
548
|
}
|
|
539
549
|
|
|
540
550
|
|
package/server/public/style.css
CHANGED
package/server/views/app.ejs
CHANGED
|
@@ -5488,10 +5488,8 @@ body.dark .pinokio-fork-dropdown-remote, body.dark .pinokio-publish-dropdown-rem
|
|
|
5488
5488
|
}
|
|
5489
5489
|
}
|
|
5490
5490
|
|
|
5491
|
-
console.log({ target, skipPersistedSelection })
|
|
5492
5491
|
if (!target && !skipPersistedSelection) {
|
|
5493
5492
|
preselected = document.querySelector('#devtab.frame-link.selected') || document.querySelector('.frame-link.selected')
|
|
5494
|
-
console.log({ preselected })
|
|
5495
5493
|
}
|
|
5496
5494
|
|
|
5497
5495
|
if (!target && persistedSelectionPayload) {
|
|
@@ -5567,8 +5565,6 @@ body.dark .pinokio-fork-dropdown-remote, body.dark .pinokio-publish-dropdown-rem
|
|
|
5567
5565
|
target = preselected
|
|
5568
5566
|
}
|
|
5569
5567
|
|
|
5570
|
-
console.log({ targetAfter: target })
|
|
5571
|
-
|
|
5572
5568
|
if (!target) {
|
|
5573
5569
|
target = document.querySelector(".frame-link")
|
|
5574
5570
|
}
|