@youdie006/prodex 0.40.35 → 0.40.36
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/dist/chatgpt-browser.js +9 -2
- package/docs/releasing.md +18 -0
- package/package.json +1 -1
package/dist/chatgpt-browser.js
CHANGED
|
@@ -311,12 +311,19 @@ export const CHATGPT_RENDERED_MESSAGE_TEXT_JS = `
|
|
|
311
311
|
}
|
|
312
312
|
const lines = findAll(node, (n) => hasClass(n, "cm-line")).map((line) => line.textContent || "");
|
|
313
313
|
const pre = tagOf(node) === "pre" ? node : findAll(node, (n) => tagOf(n) === "pre")[0];
|
|
314
|
-
|
|
314
|
+
// Some blocks keep their text in a source element with no <pre>
|
|
315
|
+
// (measured 2026-10-19), and the whole block's text carries the toolbar.
|
|
316
|
+
const source = pre || findAll(node, (n) => attr(n, "data-code-block-source") !== null)[0];
|
|
317
|
+
const code = fullCode !== null ? trimEnd(fullCode) : lines.length > 0 ? lines.join(NL) : trimEnd(source ? source.textContent || "" : node.textContent || "");
|
|
315
318
|
const editor = findAll(node, (n) => attr(n, "data-language") !== null)[0];
|
|
316
319
|
const toolbar = findAll(node, (n) => attr(n, "data-markdown-copy") === "exclude")[0];
|
|
317
320
|
const label = toolbar ? collapse(findAll(toolbar, (n) => n.nodeType === 1 && tagOf(n) === "div" && children(n).every((c) => c.nodeType === 3)).map((n) => n.textContent || "")[0] || "").trim() : "";
|
|
318
321
|
const language = ((editor && attr(editor, "data-language")) || label).trim().toLowerCase();
|
|
319
|
-
|
|
322
|
+
// A fence must be longer than any backtick run inside, or a block that
|
|
323
|
+
// shows a fenced example is closed early by it.
|
|
324
|
+
const longestRun = (code.match(new RegExp(BT + "+", "g")) || []).reduce((most, run) => Math.max(most, run.length), 0);
|
|
325
|
+
const fence = BT.repeat(Math.max(3, longestRun + 1));
|
|
326
|
+
return fence + language + NL + code + NL + fence;
|
|
320
327
|
};
|
|
321
328
|
const table = (node) => {
|
|
322
329
|
const cell = (value) => collapse(value).trim().split("|").join(String.fromCharCode(92) + "|");
|
package/docs/releasing.md
CHANGED
|
@@ -16,6 +16,24 @@ Release target: `v0.40.13` on `main`. The GitHub Release records the resolved co
|
|
|
16
16
|
|
|
17
17
|
The release adds a guarded, opt-in transition and more accurate blocker reporting. It does not claim that headless Pro consultation is verified on either deployment target or that authentication can be retained indefinitely.
|
|
18
18
|
|
|
19
|
+
## 0.40.35 Release Record
|
|
20
|
+
|
|
21
|
+
Release commit `4c711c7` on `main` (cut after PR #29, merge `fdf7501`); tag `v0.40.35`.
|
|
22
|
+
|
|
23
|
+
**Publishing**
|
|
24
|
+
- `publish.yml` run 39211269776 passed all six platforms on the first attempt, then npm publish with SLSA v1 provenance and the GitHub Release (2026-10-19 06:40 UTC).
|
|
25
|
+
- `npm run release:verify` passed on the release commit after a build.
|
|
26
|
+
|
|
27
|
+
**Installed**
|
|
28
|
+
- WSL, M3, Mac mini: `prodex --version` reports 0.40.35. Running services were not restarted: 10 stdio MCP servers on WSL and 2 on M3 keep older code until their clients reconnect. The Mac mini had none running.
|
|
29
|
+
- The maintainer watchdog checkout was pulled to `4c711c7` and rebuilt.
|
|
30
|
+
|
|
31
|
+
**Verified live**
|
|
32
|
+
- Host, installed 0.40.35: the special-character stdin prompt (paths, HTML tags and entities, markdown, a link, `$`, tabs, a table, Korean) answered `SPECIAL_OK`; 0.40.34 had refused it as `request_mismatch`.
|
|
33
|
+
|
|
34
|
+
**Browser container**
|
|
35
|
+
- `container/redesign-patches` `62b713e` ports PR #29. Image `9b46b724ea31`; branch suite 2041 passed, 3 skipped. Swapped under the send lock check. Live: the same prompt answered `SPECIAL_OK` (the previous image refused it); smoke `PRODEX_PRO_SMOKE_OK`.
|
|
36
|
+
|
|
19
37
|
## 0.40.34 Release Record
|
|
20
38
|
|
|
21
39
|
Release commit `574e5f0` on `main` (cut after PR #28, merge `1d93de4`); tag `v0.40.34`.
|