@youdie006/prodex 0.40.9 → 0.40.10

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.
@@ -5223,7 +5223,9 @@ export function transcriptContainsWholeSentPrompt(userText, sentPrompt) {
5223
5223
  }
5224
5224
  const NORMALIZED_PROMPT_MATCH_CHARS = 120;
5225
5225
  function normalizeChatGptPromptText(value) {
5226
- return value.replace(/\\([\\`*_{}[\]()#+\-.!>~|])/g, "$1").replace(/\s+/g, " ").trim();
5226
+ const unescaped = value.replace(/\\([\\`*_{}[\]()#+\-.!>~|])/g, "$1");
5227
+ const renderedFences = unescaped.replace(/(^|\r?\n)```text[ \t]*\r?\n([\s\S]*?)\r?\n```(?=\r?\n|$)/g, "$1text\n$2");
5228
+ return renderedFences.replace(/\s+/g, " ").trim();
5227
5229
  }
5228
5230
  function chatGptRequestMarkerMatches(userText, requestId) {
5229
5231
  const markers = [...normalizeChatGptPromptText(userText).matchAll(/\[prodex-request:([a-f0-9]{32})\]/g)];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youdie006/prodex",
3
- "version": "0.40.9",
3
+ "version": "0.40.10",
4
4
  "description": "Local receipt bus for coordinating Codex execution with ChatGPT Pro/Projects consultation.",
5
5
  "author": "youdie006",
6
6
  "license": "MIT",