@hongymagic/q 2026.306.1-next.3e2fb1d → 2026.306.1-next.a5bb0bb

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.
Files changed (2) hide show
  1. package/dist/q.js +3 -3
  2. package/package.json +1 -1
package/dist/q.js CHANGED
@@ -14641,7 +14641,7 @@ import { parseArgs } from "node:util";
14641
14641
  // package.json
14642
14642
  var package_default = {
14643
14643
  name: "@hongymagic/q",
14644
- version: "2026.306.1-next.3e2fb1d",
14644
+ version: "2026.306.1-next.a5bb0bb",
14645
14645
  description: "Quick AI answers from the command line",
14646
14646
  main: "dist/q.js",
14647
14647
  type: "module",
@@ -62668,7 +62668,7 @@ function createPortkeyProvider(config2, providerName, debug = false) {
62668
62668
  logDebug(`Portkey headers:`, debug);
62669
62669
  for (const [key, value] of Object.entries(headers)) {
62670
62670
  const isSensitive = key.toLowerCase().includes("key") || key.toLowerCase() === "authorization";
62671
- const maskedValue = isSensitive && value.length > 12 ? `${value.substring(0, 8)}...${value.substring(value.length - 4)}` : value;
62671
+ const maskedValue = isSensitive ? value.length > 12 ? `${value.substring(0, 8)}...${value.substring(value.length - 4)}` : "********" : value;
62672
62672
  logDebug(` ${key}: ${maskedValue}`, debug);
62673
62673
  }
62674
62674
  const provider = createOpenAI({
@@ -70339,7 +70339,7 @@ function buildUserPrompt(query, context2) {
70339
70339
  if (!context2) {
70340
70340
  return query;
70341
70341
  }
70342
- const safeContext = context2.replace(/<\/context>/gi, "<\\/context>");
70342
+ const safeContext = context2.replace(/<\/\s*context\b[^>]*>/gi, "<\\/context>");
70343
70343
  return `<context>
70344
70344
  ${safeContext}
70345
70345
  </context>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hongymagic/q",
3
- "version": "2026.306.1-next.3e2fb1d",
3
+ "version": "2026.306.1-next.a5bb0bb",
4
4
  "description": "Quick AI answers from the command line",
5
5
  "main": "dist/q.js",
6
6
  "type": "module",