omnius 1.0.501 → 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 CHANGED
@@ -745719,21 +745719,34 @@ SEED PROMPT:
745719
745719
  ${seedText}`
745720
745720
  ].filter(Boolean).join("\n");
745721
745721
  try {
745722
- const resp = await backend.chatCompletion({
745723
- messages: [
745724
- {
745725
- role: "system",
745726
- 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}.`
745727
- },
745728
- { role: "user", content: userPrompt }
745729
- ],
745730
- tools: [],
745731
- temperature: 0.4,
745732
- maxTokens: 1400,
745733
- timeoutMs: 6e4,
745734
- think: false,
745735
- responseFormat: { type: "json_object" }
745736
- });
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
+ }
745737
745750
  const rawContent2 = resp.choices?.[0]?.message?.content ?? "";
745738
745751
  if (!rawContent2) return null;
745739
745752
  const enhanced = extractEnhancedPrompt(rawContent2);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.501",
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.501",
9
+ "version": "1.0.502",
10
10
  "bundleDependencies": [
11
11
  "image-to-ascii"
12
12
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.501",
3
+ "version": "1.0.502",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",