@quantizelab/quantize-brain 1.0.0 → 1.0.1
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/README.md +1 -1
- package/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -106,7 +106,7 @@ The CLI scans for prompt declarations using pattern matching across:
|
|
|
106
106
|
|
|
107
107
|
- **Variable assignments** — `systemPrompt = \`...\`` (JS/TS/Python)
|
|
108
108
|
- **Multi-line strings** — `system_prompt = """..."""`
|
|
109
|
-
- **Annotation blocks** — `// @quantize-prompt`
|
|
109
|
+
- **Annotation blocks** — `// @quantize-prompt` followed by an assignment
|
|
110
110
|
- **Dedicated files** — `*.prompt`, `system_prompt.txt`, `system-prompt.txt`
|
|
111
111
|
|
|
112
112
|
---
|
package/index.js
CHANGED
|
@@ -87,9 +87,9 @@ const PROMPT_REGEXES = [
|
|
|
87
87
|
name: "System Prompt Short String"
|
|
88
88
|
},
|
|
89
89
|
// Special annotation block:
|
|
90
|
-
// @quantize-prompt
|
|
90
|
+
// @quantize-prompt
|
|
91
91
|
{
|
|
92
|
-
pattern: /(
|
|
92
|
+
pattern: /(?:\/\/|#)\s*@quantize-prompt\s*\r?\n(?:const|let|var|self\.)?\w*\s*=\s*(?:"""|'''|`|'|")([\s\S]*?)(?:"""|'''|`|'|")/gi,
|
|
93
93
|
name: "@quantize-prompt Annotation"
|
|
94
94
|
}
|
|
95
95
|
];
|