gamemindpilot 3.5.0 → 3.5.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 +12 -12
- package/dist/commands/chat.js +48 -3
- package/dist/commands/chat.js.map +1 -1
- package/package.json +1 -1
- package/src/commands/chat.ts +37 -3
- package/src/index.ts +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# 🛸 GameMindPilot CLI v3.5.
|
|
1
|
+
# 🛸 GameMindPilot CLI v3.5.1 - The Super-Agent Update
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/gamemindpilot)
|
|
4
4
|
[](https://www.npmjs.com/package/gamemindpilot)
|
|
@@ -53,25 +53,25 @@ While we have a massive toolkit, these 5 features are the absolute best in the i
|
|
|
53
53
|
### 5. AI Security Scan (`security-scan`) - "Mission Critical"
|
|
54
54
|
* **The Proof**:
|
|
55
55
|
> **Output Snippet**: "Vulnerability: RPC Spoofing in 'NetController.cs'. Exploit: Cheaters could trigger 'WinGame' events from the client. Remediation: Implement Tick-based HMAC Verification."
|
|
56
|
-
# 🛸 GameMindPilot v3.5.
|
|
56
|
+
# 🛸 GameMindPilot v3.5.1 - The Super-Agent Update
|
|
57
57
|
|
|
58
58
|
**Elevate your Game Development with the Ultimate AI Mission Control.**
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
The "Super-Agent Update" consolidates all production modules into a single, unified chat interface. Command the entire Zenith Suite without leaving the chat.
|
|
61
61
|
|
|
62
62
|
---
|
|
63
63
|
|
|
64
|
-
## 🚀 New in v3.5.
|
|
64
|
+
## 🚀 New in v3.5.1: The Super-Agent Update
|
|
65
65
|
|
|
66
|
-
This
|
|
66
|
+
This release bridges the gap between conversation and production:
|
|
67
67
|
|
|
68
|
-
1.
|
|
69
|
-
2.
|
|
70
|
-
3.
|
|
71
|
-
4.
|
|
72
|
-
5.
|
|
73
|
-
6.
|
|
74
|
-
7.
|
|
68
|
+
1. **🧠 Unified Super-Agent Chat (`chat`)**: THE CORE UPGRADE. The AI chat can now trigger all specialized modules. Want a 3D sword? A voice-over? An economy audit? Just ask in the chat, and Gmpilot will handle the logic.
|
|
69
|
+
2. **🎙️ AI Voice Forge**: Generate professional voice-overs directly from chat or command.
|
|
70
|
+
3. **🎵 Sound & Music Studio**: Architect soundscapes with technical precision.
|
|
71
|
+
4. **💎 Monetization Strategist**: AI-driven economic audits for sustainable monetization.
|
|
72
|
+
5. **🎨 Character Artist**: Detailed 2D Concept Sheets generated on demand.
|
|
73
|
+
6. **🌐 Multiplayer Architect**: Networking logic generation integrated into the chat flow.
|
|
74
|
+
7. **🚀 Engine Live Bridge**: Real-time sync with Unity/Godot.
|
|
75
75
|
|
|
76
76
|
---
|
|
77
77
|
|
package/dist/commands/chat.js
CHANGED
|
@@ -9,6 +9,8 @@ const ora_1 = __importDefault(require("ora"));
|
|
|
9
9
|
const ai_service_1 = require("../utils/ai-service");
|
|
10
10
|
const logger_1 = require("../utils/logger");
|
|
11
11
|
const project_1 = require("../utils/project");
|
|
12
|
+
const assets_1 = require("./assets");
|
|
13
|
+
const utility_1 = require("./utility");
|
|
12
14
|
const chatCommand = async () => {
|
|
13
15
|
logger_1.logger.info('Starting GameMindPilot AI Chat (Memory Enabled)...');
|
|
14
16
|
logger_1.logger.info('Type "exit" or "quit" to end the session.');
|
|
@@ -21,9 +23,10 @@ ${projectSummary}
|
|
|
21
23
|
Files in Project:
|
|
22
24
|
${fileList.join('\n')}
|
|
23
25
|
|
|
24
|
-
Capability:
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
Capability:
|
|
27
|
+
1. **File Edits**: Propose file changes using: [{"path": "string", "content": "string", "action": "create"|"update"|"delete"}]
|
|
28
|
+
2. **Super-Agent Actions**: Trigger specialized CLI modules using: {"trigger": "action_name", "params": "input_string"}
|
|
29
|
+
- Actions: "forge3d", "voice", "music", "character", "economy", "net-code"
|
|
27
30
|
|
|
28
31
|
Always prioritize narrative-first technical excellence.
|
|
29
32
|
`;
|
|
@@ -73,6 +76,48 @@ Always prioritize narrative-first technical excellence.
|
|
|
73
76
|
// JSON might be invalid or just a conversational mention
|
|
74
77
|
}
|
|
75
78
|
}
|
|
79
|
+
// --- Super-Agent Action Logic ---
|
|
80
|
+
const actionStart = response.indexOf('{"trigger"');
|
|
81
|
+
if (actionStart !== -1) {
|
|
82
|
+
const actionEnd = response.lastIndexOf('}') + 1;
|
|
83
|
+
try {
|
|
84
|
+
const action = JSON.parse(response.substring(actionStart, actionEnd));
|
|
85
|
+
if (action.trigger && action.params) {
|
|
86
|
+
const { proceed } = await inquirer_1.default.prompt([{
|
|
87
|
+
type: 'confirm',
|
|
88
|
+
name: 'proceed',
|
|
89
|
+
message: `🚀 Gmpilot wants to execute action: [${action.trigger}]. Proceed?`,
|
|
90
|
+
default: true
|
|
91
|
+
}]);
|
|
92
|
+
if (proceed) {
|
|
93
|
+
switch (action.trigger) {
|
|
94
|
+
case 'forge3d':
|
|
95
|
+
await assets_1.assetCommands.forge3d(action.params);
|
|
96
|
+
break;
|
|
97
|
+
case 'voice':
|
|
98
|
+
await assets_1.assetCommands.voice(action.params);
|
|
99
|
+
break;
|
|
100
|
+
case 'music':
|
|
101
|
+
await assets_1.assetCommands.music(action.params);
|
|
102
|
+
break;
|
|
103
|
+
case 'character':
|
|
104
|
+
await assets_1.assetCommands.character(action.params);
|
|
105
|
+
break;
|
|
106
|
+
case 'economy':
|
|
107
|
+
await utility_1.utilityCommands.economy(action.params);
|
|
108
|
+
break;
|
|
109
|
+
case 'net-code':
|
|
110
|
+
await utility_1.utilityCommands.netCode(action.params);
|
|
111
|
+
break;
|
|
112
|
+
default: logger_1.logger.warn(`Unknown action: ${action.trigger}`);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
catch (e) {
|
|
118
|
+
// Action parse fail
|
|
119
|
+
}
|
|
120
|
+
}
|
|
76
121
|
// Update local session history
|
|
77
122
|
conversationHistory += `\nUser: ${input}\nAI: ${response}`;
|
|
78
123
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.js","sourceRoot":"","sources":["../../src/commands/chat.ts"],"names":[],"mappings":";;;;;;AAAA,wDAAgC;AAChC,8CAAsB;AACtB,oDAAgD;AAChD,4CAAyC;AACzC,8CAAkD;
|
|
1
|
+
{"version":3,"file":"chat.js","sourceRoot":"","sources":["../../src/commands/chat.ts"],"names":[],"mappings":";;;;;;AAAA,wDAAgC;AAChC,8CAAsB;AACtB,oDAAgD;AAChD,4CAAyC;AACzC,8CAAkD;AAClD,qCAAyC;AACzC,uCAA4C;AAErC,MAAM,WAAW,GAAG,KAAK,IAAI,EAAE;IACpC,eAAM,CAAC,IAAI,CAAC,oDAAoD,CAAC,CAAC;IAClE,eAAM,CAAC,IAAI,CAAC,2CAA2C,CAAC,CAAC;IAEzD,MAAM,cAAc,GAAG,wBAAc,CAAC,UAAU,EAAE,CAAC;IACnD,MAAM,QAAQ,GAAG,wBAAc,CAAC,SAAS,EAAE,CAAC;IAC5C,MAAM,YAAY,GAAG;;EAErB,cAAc;;;EAGd,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;;;;;;;;CAQpB,CAAC;IAEA,IAAI,mBAAmB,GAAG,YAAY,CAAC;IAEvC,OAAO,IAAI,EAAE,CAAC;QACZ,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,kBAAQ,CAAC,MAAM,CAAC;YACtC;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,OAAO;gBACb,OAAO,EAAE,OAAO;aACjB;SACF,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;YAAE,MAAM;QAE1D,MAAM,OAAO,GAAG,IAAA,aAAG,EAAC,wBAAwB,CAAC,CAAC,KAAK,EAAE,CAAC;QACtD,IAAI,CAAC;YACH,MAAM,UAAU,G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CAAC,CAAC;oCAAC,MAAM;gCAC9D,KAAK,WAAW;oCAAE,MAAM,sBAAa,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;oCAAC,MAAM;gCACtE,KAAK,SAAS;oCAAE,MAAM,yBAAe,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;oCAAC,MAAM;gCACpE,KAAK,UAAU;oCAAE,MAAM,yBAAe,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;oCAAC,MAAM;gCACrE,OAAO,CAAC,CAAC,eAAM,CAAC,IAAI,CAAC,mBAAmB,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;4BAC5D,CAAC;wBACH,CAAC;oBACH,CAAC;gBACH,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACX,oBAAoB;gBACtB,CAAC;YACH,CAAC;YAED,+BAA+B;YAC/B,mBAAmB,IAAI,WAAW,KAAK,SAAS,QAAQ,EAAE,CAAC;QAC7D,CAAC;QAAC,OAAO,KAAU,EAAE,CAAC;YACpB,OAAO,CAAC,IAAI,EAAE,CAAC;YACf,eAAM,CAAC,KAAK,CAAC,UAAU,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QAC1C,CAAC;IACH,CAAC;AACH,CAAC,CAAC;AA5GW,QAAA,WAAW,eA4GtB"}
|
package/package.json
CHANGED
package/src/commands/chat.ts
CHANGED
|
@@ -3,6 +3,8 @@ import ora from 'ora';
|
|
|
3
3
|
import { AIService } from '../utils/ai-service';
|
|
4
4
|
import { logger } from '../utils/logger';
|
|
5
5
|
import { projectManager } from '../utils/project';
|
|
6
|
+
import { assetCommands } from './assets';
|
|
7
|
+
import { utilityCommands } from './utility';
|
|
6
8
|
|
|
7
9
|
export const chatCommand = async () => {
|
|
8
10
|
logger.info('Starting GameMindPilot AI Chat (Memory Enabled)...');
|
|
@@ -17,9 +19,10 @@ ${projectSummary}
|
|
|
17
19
|
Files in Project:
|
|
18
20
|
${fileList.join('\n')}
|
|
19
21
|
|
|
20
|
-
Capability:
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
Capability:
|
|
23
|
+
1. **File Edits**: Propose file changes using: [{"path": "string", "content": "string", "action": "create"|"update"|"delete"}]
|
|
24
|
+
2. **Super-Agent Actions**: Trigger specialized CLI modules using: {"trigger": "action_name", "params": "input_string"}
|
|
25
|
+
- Actions: "forge3d", "voice", "music", "character", "economy", "net-code"
|
|
23
26
|
|
|
24
27
|
Always prioritize narrative-first technical excellence.
|
|
25
28
|
`;
|
|
@@ -73,6 +76,37 @@ Always prioritize narrative-first technical excellence.
|
|
|
73
76
|
}
|
|
74
77
|
}
|
|
75
78
|
|
|
79
|
+
// --- Super-Agent Action Logic ---
|
|
80
|
+
const actionStart = response.indexOf('{"trigger"');
|
|
81
|
+
if (actionStart !== -1) {
|
|
82
|
+
const actionEnd = response.lastIndexOf('}') + 1;
|
|
83
|
+
try {
|
|
84
|
+
const action = JSON.parse(response.substring(actionStart, actionEnd));
|
|
85
|
+
if (action.trigger && action.params) {
|
|
86
|
+
const { proceed } = await inquirer.prompt([{
|
|
87
|
+
type: 'confirm',
|
|
88
|
+
name: 'proceed',
|
|
89
|
+
message: `🚀 Gmpilot wants to execute action: [${action.trigger}]. Proceed?`,
|
|
90
|
+
default: true
|
|
91
|
+
}]);
|
|
92
|
+
|
|
93
|
+
if (proceed) {
|
|
94
|
+
switch (action.trigger) {
|
|
95
|
+
case 'forge3d': await assetCommands.forge3d(action.params); break;
|
|
96
|
+
case 'voice': await assetCommands.voice(action.params); break;
|
|
97
|
+
case 'music': await assetCommands.music(action.params); break;
|
|
98
|
+
case 'character': await assetCommands.character(action.params); break;
|
|
99
|
+
case 'economy': await utilityCommands.economy(action.params); break;
|
|
100
|
+
case 'net-code': await utilityCommands.netCode(action.params); break;
|
|
101
|
+
default: logger.warn(`Unknown action: ${action.trigger}`);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
} catch (e) {
|
|
106
|
+
// Action parse fail
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
76
110
|
// Update local session history
|
|
77
111
|
conversationHistory += `\nUser: ${input}\nAI: ${response}`;
|
|
78
112
|
} catch (error: any) {
|
package/src/index.ts
CHANGED
|
@@ -12,7 +12,7 @@ const program = new Command();
|
|
|
12
12
|
program
|
|
13
13
|
.name('gmpilot')
|
|
14
14
|
.description('GameMindPilot CLI - Your AI Game Development Assistant')
|
|
15
|
-
.version('3.5.
|
|
15
|
+
.version('3.5.1');
|
|
16
16
|
|
|
17
17
|
import { loginCommand, logoutCommand } from './commands/login';
|
|
18
18
|
import { chatCommand } from './commands/chat';
|