omnius 1.0.500 → 1.0.502
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/index.js +29 -15
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -744794,6 +744794,7 @@ ${entry.fullContent}`
|
|
|
744794
744794
|
writeToNeovimOutput(` ${prefix} ${preview}\r
|
|
744795
744795
|
`);
|
|
744796
744796
|
} else {
|
|
744797
|
+
stream?.renderer.flushPendingLine?.();
|
|
744797
744798
|
contentWrite(() => {
|
|
744798
744799
|
renderToolResult(
|
|
744799
744800
|
event.toolName ?? "unknown",
|
|
@@ -745718,21 +745719,34 @@ SEED PROMPT:
|
|
|
745718
745719
|
${seedText}`
|
|
745719
745720
|
].filter(Boolean).join("\n");
|
|
745720
745721
|
try {
|
|
745721
|
-
const
|
|
745722
|
-
|
|
745723
|
-
|
|
745724
|
-
|
|
745725
|
-
|
|
745726
|
-
|
|
745727
|
-
|
|
745728
|
-
|
|
745729
|
-
|
|
745730
|
-
|
|
745731
|
-
|
|
745732
|
-
|
|
745733
|
-
|
|
745734
|
-
|
|
745735
|
-
|
|
745722
|
+
const messages2 = [
|
|
745723
|
+
{
|
|
745724
|
+
role: "system",
|
|
745725
|
+
content: `You are a prompt-expansion engine. You rewrite a user's short seed prompt into a richer, unambiguous instruction that fully captures their intent. Return strict JSON only: {"enhancedPrompt": string}.`
|
|
745726
|
+
},
|
|
745727
|
+
{ role: "user", content: userPrompt }
|
|
745728
|
+
];
|
|
745729
|
+
let resp;
|
|
745730
|
+
try {
|
|
745731
|
+
resp = await backend.chatCompletion({
|
|
745732
|
+
messages: messages2,
|
|
745733
|
+
tools: [],
|
|
745734
|
+
temperature: 0.4,
|
|
745735
|
+
maxTokens: 1400,
|
|
745736
|
+
timeoutMs: 6e4,
|
|
745737
|
+
think: false,
|
|
745738
|
+
responseFormat: { type: "json_object" }
|
|
745739
|
+
});
|
|
745740
|
+
} catch {
|
|
745741
|
+
resp = await backend.chatCompletion({
|
|
745742
|
+
messages: messages2,
|
|
745743
|
+
tools: [],
|
|
745744
|
+
temperature: 0.4,
|
|
745745
|
+
maxTokens: 1400,
|
|
745746
|
+
timeoutMs: 6e4,
|
|
745747
|
+
think: false
|
|
745748
|
+
});
|
|
745749
|
+
}
|
|
745736
745750
|
const rawContent2 = resp.choices?.[0]?.message?.content ?? "";
|
|
745737
745751
|
if (!rawContent2) return null;
|
|
745738
745752
|
const enhanced = extractEnhancedPrompt(rawContent2);
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.502",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "omnius",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.502",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED