Add explanatory comments across codebase

This commit is contained in:
Stefano Zini
2026-11-04 14:23:18 +01:00
parent b8aa5548a2
commit 82b72b6c28
34 changed files with 934 additions and 0 deletions
+6
View File
@@ -1,7 +1,11 @@
// Pinokio menu "Start": runs the local server (server.py) and records its URL.
module.exports = {
// daemon: keeps the server running in the background until stopped from Pinokio.
daemon: true,
run: [
// Step 1: start the server.
{
// Run server.py in app/ with uv (its script dependencies are resolved by uv).
method: "shell.run",
params: {
path: "app",
@@ -10,12 +14,14 @@ module.exports = {
// port stays 18765: the browser extension's host_permissions hardcode it
message: "uv run --script server.py",
on: [{
// Wait for the URL the server prints (http://IP:port); the step is done once it matches.
event: "/(http:\\/\\/[0-9.:]+)/",
done: true
}]
}
},
{
// Step 2: save the URL so pinokio.js can show "Open Web UI".
method: "local.set",
params: {
url: "{{input.event[1]}}"