@norskvideo/ctl-dev-kit 0.2.125 → 0.2.127
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.
|
@@ -23,6 +23,16 @@
|
|
|
23
23
|
- **No `Co-Authored-By` tags on commits.** Imperative subject. Short body, only
|
|
24
24
|
if the why isn't obvious from the diff. Each commit logically scoped — don't
|
|
25
25
|
dump a phase into one commit.
|
|
26
|
+
- **No agent-workflow residue in history.** Write for a reader who has never
|
|
27
|
+
seen your workflow, plans or TODO list. Cite only real, shared references:
|
|
28
|
+
issues and PRs (`id3as/<repo>#N`), CI runs, release versions. Never put
|
|
29
|
+
private workflow labels in commits, branch names, comments, tests or committed
|
|
30
|
+
notes: no "task 23", "phase 2", "cycle ii", "R1s", "plan 037", "verifier gap
|
|
31
|
+
G12", run tags, TODO item names, or agent roles ("planner", "implementor",
|
|
32
|
+
"verifier"). No workflow-only commits ("Proof: ...", "verifier cycle N",
|
|
33
|
+
plans, verdicts, handovers): a proof goes in the same commit as the change it
|
|
34
|
+
proves. One commit per coherent change, not one per loop round: fold review
|
|
35
|
+
and verify fix-ups in before pushing. Check `git log @{u}..` before you push.
|
|
26
36
|
- **No emojis** in code, commits, or docs unless explicitly asked.
|
|
27
37
|
- **Minimal comments.** Names explain _what_; comments explain _why_ —
|
|
28
38
|
non-obvious constraints, surprising invariants, workarounds for upstream bugs.
|
|
@@ -86,6 +86,11 @@ export async function startInstanceProxy(opts) {
|
|
|
86
86
|
return ok ? undefined : new Response("ws upgrade failed", { status: 400 });
|
|
87
87
|
}
|
|
88
88
|
const headers = new Headers(req.headers);
|
|
89
|
+
// Studio refuses a browser write whose Origin is not the host it was
|
|
90
|
+
// reached at (id3as/norsk-studio#328). The browser reached this proxy, so
|
|
91
|
+
// say so, as a real reverse proxy would; otherwise a non-loopback upstream
|
|
92
|
+
// (direct mode, <id>-studio-1:8000) sees every dashboard POST as foreign.
|
|
93
|
+
headers.set("x-forwarded-host", req.headers.get("host") ?? u.host);
|
|
89
94
|
headers.delete("host");
|
|
90
95
|
const body = req.method === "GET" || req.method === "HEAD" ? undefined : await req.arrayBuffer();
|
|
91
96
|
// Studio being briefly unreachable is ordinary while a guide polls it; a
|