prompt-forge-studio-cli 1.0.1 → 1.0.3
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 +1 -1
- package/src/api.js +2 -2
- package/src/index.js +3 -2
package/package.json
CHANGED
package/src/api.js
CHANGED
|
@@ -17,10 +17,10 @@ async function generateResponse(prompt, model) {
|
|
|
17
17
|
|
|
18
18
|
// Send request to your local or deployed Prompt Forge instance
|
|
19
19
|
// Assuming user runs local for now, but usually they'd specify a host.
|
|
20
|
-
// We'll default to localhost
|
|
20
|
+
// We'll default to 127.0.0.1 instead of localhost to bypass Node's IPv6 resolution delay on Windows.
|
|
21
21
|
const { getConfig } = require('./config');
|
|
22
22
|
const config = getConfig() || {};
|
|
23
|
-
const baseUrl = config.host || 'http://
|
|
23
|
+
const baseUrl = config.host || 'http://127.0.0.1:3000';
|
|
24
24
|
|
|
25
25
|
const payload = { prompt };
|
|
26
26
|
if (model) {
|
package/src/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
1
|
+
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const { program } = require('commander');
|
|
4
4
|
const { initProject } = require('./init');
|
|
@@ -6,11 +6,12 @@ const { startStudio } = require('./studio');
|
|
|
6
6
|
const { showBanner } = require('./ui');
|
|
7
7
|
const fs = require('fs');
|
|
8
8
|
const path = require('path');
|
|
9
|
+
const pkg = require('../package.json');
|
|
9
10
|
|
|
10
11
|
program
|
|
11
12
|
.name('forge')
|
|
12
13
|
.description('Prompt Forge Studio - Professional Terminal-Native Prompt Engineering Studio')
|
|
13
|
-
.version(
|
|
14
|
+
.version(pkg.version);
|
|
14
15
|
|
|
15
16
|
// Command: init
|
|
16
17
|
program
|