prompt-forge-studio-cli 1.0.5 → 1.0.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prompt-forge-studio-cli",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Professional terminal-native prompt engineering studio",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -23,4 +23,4 @@
23
23
  "ora": "^5.4.1",
24
24
  "prompt-forge-studio-cli": "^1.0.4"
25
25
  }
26
- }
26
+ }
package/src/api.js CHANGED
@@ -19,7 +19,7 @@ async function generateResponse(prompt, model) {
19
19
  // We default to the production URL, but users can override this in their forge.config.json
20
20
  const { getConfig } = require('./config');
21
21
  const config = getConfig() || {};
22
- const baseUrl = config.host || 'https://www.promptforgestudio.com';
22
+ const baseUrl = config.host || 'https://prompt-forge-studio.vercel.app';
23
23
 
24
24
  const payload = { prompt };
25
25
  if (model) {
package/src/init.js CHANGED
@@ -35,10 +35,12 @@ function initProject(projectName) {
35
35
  // Create files
36
36
  spinner.start('Generating configuration files...');
37
37
 
38
+ const pkg = require('../package.json');
39
+
38
40
  const configContent = {
39
41
  project: projectName,
40
- version: '1.0.0',
41
- defaultModel: 'gpt-4o',
42
+ version: pkg.version,
43
+ defaultModel: 'nvidia',
42
44
  autoFailover: true
43
45
  };
44
46
  fs.writeFileSync(
package/src/studio.js CHANGED
@@ -110,7 +110,7 @@ async function handleCommand(input) {
110
110
 
111
111
  formatAIResponse(result.text, result.metadata);
112
112
  } catch (error) {
113
- showErrorBox('Generation Failed', error.message);
113
+ showErrorBox('Generation Failed', error.message || String(error));
114
114
  if (!state.autoFailover) {
115
115
  console.log(chalk.cyan('Hint: Try running `:test all` to check model health, or enable auto-failover with `:auto`.\n'));
116
116
  }