create-pga-ai 0.1.0 → 0.8.0
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 +7 -7
- package/dist/generator.js +108 -30
- package/dist/generator.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/dist/prompts.d.ts +1 -0
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +10 -0
- package/dist/prompts.js.map +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# create-pga-ai
|
|
2
2
|
|
|
3
|
-
**The fastest way to start building with
|
|
3
|
+
**The fastest way to start building with GSEP Platform** — Create a complete GSEP agent project with a single command.
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
6
|
npm create pga-ai@latest my-agent
|
|
@@ -39,7 +39,7 @@ nano .env
|
|
|
39
39
|
npm run dev
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
That's it! Your agent is now running with
|
|
42
|
+
That's it! Your agent is now running with GSEP's self-evolution capabilities.
|
|
43
43
|
|
|
44
44
|
## Usage
|
|
45
45
|
|
|
@@ -150,7 +150,7 @@ EVOLUTION_MODE=aggressive # Options: conservative, balanced, aggressive
|
|
|
150
150
|
Depending on your configuration, the installer adds:
|
|
151
151
|
|
|
152
152
|
**Core Package:**
|
|
153
|
-
- `@pga-ai/core` — Main
|
|
153
|
+
- `@pga-ai/core` — Main GSEP framework
|
|
154
154
|
|
|
155
155
|
**LLM Adapters:**
|
|
156
156
|
- `@pga-ai/adapters-llm-anthropic` — Claude integration
|
|
@@ -258,15 +258,15 @@ node --version # Should be v18 or higher
|
|
|
258
258
|
|
|
259
259
|
## Learn More
|
|
260
260
|
|
|
261
|
-
- **Documentation:** [https://
|
|
262
|
-
- **API Reference:** [https://
|
|
261
|
+
- **Documentation:** [https://gsepcore.com/docs](https://gsepcore.com/docs)
|
|
262
|
+
- **API Reference:** [https://gsepcore.com/api](https://gsepcore.com/api)
|
|
263
263
|
- **Discord Community:** [https://discord.gg/pga](https://discord.gg/pga)
|
|
264
264
|
- **GitHub:** [https://github.com/pga-platform](https://github.com/pga-platform)
|
|
265
265
|
|
|
266
266
|
## License
|
|
267
267
|
|
|
268
|
-
MIT ©
|
|
268
|
+
MIT © GSEP Platform
|
|
269
269
|
|
|
270
270
|
---
|
|
271
271
|
|
|
272
|
-
**Built with
|
|
272
|
+
**Built with GSEP** 🧬 — The world's first genomic self-evolving AI system
|
package/dist/generator.js
CHANGED
|
@@ -63,7 +63,7 @@ async function generateTsConfig(projectPath) {
|
|
|
63
63
|
await fs.writeJson(path.join(projectPath, 'tsconfig.json'), tsconfig, { spaces: 2 });
|
|
64
64
|
}
|
|
65
65
|
async function generateEnvFile(projectPath, config) {
|
|
66
|
-
let envContent = '#
|
|
66
|
+
let envContent = '# GSEP Platform Configuration\n\n';
|
|
67
67
|
if (config.llmProvider === 'anthropic' || config.llmProvider === 'both') {
|
|
68
68
|
envContent += '# Anthropic API Key\nANTHROPIC_API_KEY=your-api-key-here\n\n';
|
|
69
69
|
}
|
|
@@ -77,7 +77,7 @@ async function generateEnvFile(projectPath, config) {
|
|
|
77
77
|
await fs.writeFile(path.join(projectPath, '.env'), envContent);
|
|
78
78
|
}
|
|
79
79
|
async function generateEnvExample(projectPath, config) {
|
|
80
|
-
let envContent = '#
|
|
80
|
+
let envContent = '# GSEP Platform Configuration\n\n';
|
|
81
81
|
if (config.llmProvider === 'anthropic' || config.llmProvider === 'both') {
|
|
82
82
|
envContent += '# Anthropic API Key\nANTHROPIC_API_KEY=\n\n';
|
|
83
83
|
}
|
|
@@ -102,7 +102,7 @@ dist/
|
|
|
102
102
|
async function generateReadme(projectPath, projectName, config) {
|
|
103
103
|
const readme = `# ${projectName}
|
|
104
104
|
|
|
105
|
-
Created with [
|
|
105
|
+
Created with [GSEP Platform](https://gsepcore.com) — Genomic Self-Evolving Prompts
|
|
106
106
|
|
|
107
107
|
## 🚀 Quick Start
|
|
108
108
|
|
|
@@ -128,12 +128,13 @@ Created with [PGA Platform](https://pga.ai) — Genomic Self-Evolving Prompts
|
|
|
128
128
|
- **LLM Provider**: ${config.llmProvider}
|
|
129
129
|
- **Storage**: ${config.storage}
|
|
130
130
|
- **Evolution Boost**: ${config.evolutionBoost ? 'Enabled (10x faster!)' : 'Disabled'}
|
|
131
|
+
- **Living Agent**: ${config.livingAgent ? 'Enabled (10 cognitive layers)' : 'Disabled'}
|
|
131
132
|
- **Template**: ${config.template}
|
|
132
133
|
|
|
133
134
|
## 📚 Documentation
|
|
134
135
|
|
|
135
|
-
- [
|
|
136
|
-
- [API Reference](https://
|
|
136
|
+
- [GSEP Documentation](https://gsepcore.com/docs)
|
|
137
|
+
- [API Reference](https://gsepcore.com/api)
|
|
137
138
|
- [Discord Community](https://discord.gg/pga)
|
|
138
139
|
|
|
139
140
|
## 🛠️ Development
|
|
@@ -147,7 +148,7 @@ npm test # Run tests
|
|
|
147
148
|
|
|
148
149
|
---
|
|
149
150
|
|
|
150
|
-
**Built with
|
|
151
|
+
**Built with GSEP** 🧬
|
|
151
152
|
`;
|
|
152
153
|
await fs.writeFile(path.join(projectPath, 'README.md'), readme);
|
|
153
154
|
}
|
|
@@ -162,7 +163,7 @@ async function generateSourceFiles(projectPath, config) {
|
|
|
162
163
|
await fs.writeFile(path.join(srcPath, 'agent.ts'), agentContent);
|
|
163
164
|
}
|
|
164
165
|
function generateIndexFile(config) {
|
|
165
|
-
let imports = `import 'dotenv/config';\n`;
|
|
166
|
+
let imports = `import 'dotenv/config';\nimport { PGA } from '@pga-ai/core';\n`;
|
|
166
167
|
if (config.llmProvider === 'anthropic') {
|
|
167
168
|
imports += `import { ClaudeAdapter } from '@pga-ai/adapters-llm-anthropic';\n`;
|
|
168
169
|
}
|
|
@@ -175,17 +176,60 @@ function generateIndexFile(config) {
|
|
|
175
176
|
if (config.storage === 'postgres') {
|
|
176
177
|
imports += `import { PostgresAdapter } from '@pga-ai/adapters-storage-postgres';\n`;
|
|
177
178
|
}
|
|
178
|
-
|
|
179
|
+
else {
|
|
180
|
+
imports += `import { InMemoryStorage } from '@pga-ai/core';\n`;
|
|
181
|
+
}
|
|
182
|
+
imports += `\nimport { setupAgent } from './agent.js';\n\n`;
|
|
179
183
|
const llmSetup = config.llmProvider === 'anthropic'
|
|
180
|
-
? `const llm = new ClaudeAdapter({\n
|
|
181
|
-
: `const llm = new OpenAIAdapter({\n
|
|
184
|
+
? `const llm = new ClaudeAdapter({\n apiKey: process.env.ANTHROPIC_API_KEY!,\n model: 'claude-sonnet-4-5-20250929',\n });\n`
|
|
185
|
+
: `const llm = new OpenAIAdapter({\n apiKey: process.env.OPENAI_API_KEY!,\n model: 'gpt-4-turbo-preview',\n });\n`;
|
|
186
|
+
const storageSetup = config.storage === 'postgres'
|
|
187
|
+
? `const storage = new PostgresAdapter({\n connectionString: process.env.DATABASE_URL!,\n });\n`
|
|
188
|
+
: `const storage = new InMemoryStorage();\n`;
|
|
189
|
+
// Living Agent demo lines
|
|
190
|
+
const livingAgentDemo = config.livingAgent
|
|
191
|
+
? `
|
|
192
|
+
// --- Living Agent capabilities demo ---
|
|
193
|
+
const emotion = genome.inferEmotion(message);
|
|
194
|
+
if (emotion) {
|
|
195
|
+
console.log(\` Emotion detected: \${emotion.primary} (intensity: \${emotion.intensity.toFixed(2)})\\n\`);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
const narrative = genome.getNarrativeSummary();
|
|
199
|
+
if (narrative) {
|
|
200
|
+
console.log(\` Relationship: \${narrative.relationshipStage} (\${narrative.interactionCount} interactions)\\n\`);
|
|
201
|
+
}
|
|
202
|
+
`
|
|
203
|
+
: '';
|
|
182
204
|
return `${imports}async function main() {
|
|
183
|
-
console.log('🧬 Starting
|
|
205
|
+
console.log('🧬 Starting GSEP Agent...\\n');
|
|
184
206
|
|
|
185
207
|
// Initialize LLM adapter
|
|
186
208
|
${llmSetup}
|
|
187
|
-
//
|
|
188
|
-
|
|
209
|
+
// Initialize storage
|
|
210
|
+
${storageSetup}
|
|
211
|
+
// Initialize GSEP
|
|
212
|
+
const pga = new PGA({
|
|
213
|
+
llm,
|
|
214
|
+
storage,
|
|
215
|
+
});
|
|
216
|
+
|
|
217
|
+
await pga.initialize();
|
|
218
|
+
console.log('✅ GSEP initialized\\n');
|
|
219
|
+
|
|
220
|
+
// Setup agent genome
|
|
221
|
+
const genome = await setupAgent(pga);
|
|
222
|
+
|
|
223
|
+
// Example conversation
|
|
224
|
+
const userId = 'demo-user';
|
|
225
|
+
const message = 'Hello! What can you do?';
|
|
226
|
+
|
|
227
|
+
console.log(\`User: \${message}\\n\`);
|
|
228
|
+
const response = await genome.chat(message, { userId, taskType: 'general' });
|
|
229
|
+
console.log(\`Agent: \${response}\\n\`);
|
|
230
|
+
${livingAgentDemo}
|
|
231
|
+
console.log('✨ Your GSEP-powered agent is working!');
|
|
232
|
+
console.log('Next: Customize the genome in src/agent.ts\\n');
|
|
189
233
|
}
|
|
190
234
|
|
|
191
235
|
main().catch(console.error);
|
|
@@ -193,38 +237,72 @@ main().catch(console.error);
|
|
|
193
237
|
}
|
|
194
238
|
function generateAgentFile(config) {
|
|
195
239
|
const template = config.template;
|
|
196
|
-
let
|
|
240
|
+
let coreIdentity = '';
|
|
241
|
+
let capabilities = '';
|
|
197
242
|
switch (template) {
|
|
198
243
|
case 'chatbot':
|
|
199
|
-
|
|
244
|
+
coreIdentity = 'You are a helpful AI assistant that provides friendly and informative responses.';
|
|
245
|
+
capabilities = 'You can answer questions, provide explanations, and help with various tasks.';
|
|
200
246
|
break;
|
|
201
247
|
case 'code-assistant':
|
|
202
|
-
|
|
248
|
+
coreIdentity = 'You are an expert programming assistant with deep knowledge of software development.';
|
|
249
|
+
capabilities = 'You can help with code reviews, debugging, architecture design, and best practices.';
|
|
203
250
|
break;
|
|
204
251
|
case 'customer-support':
|
|
205
|
-
|
|
252
|
+
coreIdentity = 'You are a professional customer support agent focused on solving user problems efficiently.';
|
|
253
|
+
capabilities = 'You can handle inquiries, troubleshoot issues, and provide product information.';
|
|
206
254
|
break;
|
|
207
255
|
case 'data-analysis':
|
|
208
|
-
|
|
256
|
+
coreIdentity = 'You are a data analysis expert who helps users understand their data.';
|
|
257
|
+
capabilities = 'You can analyze datasets, create visualizations, and provide statistical insights.';
|
|
209
258
|
break;
|
|
210
259
|
default:
|
|
211
|
-
|
|
260
|
+
coreIdentity = 'You are an AI agent designed to assist users effectively.';
|
|
261
|
+
capabilities = 'You can help with various tasks and adapt to user needs.';
|
|
212
262
|
}
|
|
213
|
-
|
|
263
|
+
// Build autonomous config block
|
|
264
|
+
const autonomousConfig = config.livingAgent
|
|
265
|
+
? `
|
|
266
|
+
autonomous: {
|
|
267
|
+
// --- Evolution (v0.5.0) ---
|
|
268
|
+
continuousEvolution: true, // Auto-evolve every N interactions
|
|
269
|
+
evolveEveryN: 10, // Evolve every 10 interactions
|
|
270
|
+
autoMutateOnDrift: true, // Auto-fix when performance drifts
|
|
271
|
+
autoCompressOnPressure: true, // Auto-compress when tokens overflow
|
|
272
|
+
enableSelfModel: true, // Agent knows its strengths/weaknesses
|
|
273
|
+
enablePatternMemory: true, // Tracks behavioral patterns
|
|
274
|
+
maxPatterns: 50,
|
|
214
275
|
|
|
215
|
-
|
|
216
|
-
|
|
276
|
+
// --- Living Agent (v0.6.0) ---
|
|
277
|
+
enableMetacognition: true, // Pre/post response confidence analysis
|
|
278
|
+
enableEmotionalModel: true, // Detects user emotions, adapts tone
|
|
279
|
+
enableCalibratedAutonomy: true, // Learns when to act vs ask permission
|
|
280
|
+
enablePersonalNarrative: true, // Tracks relationship history
|
|
281
|
+
enableAnalyticMemory: true, // Knowledge graph with inference
|
|
282
|
+
},`
|
|
283
|
+
: `
|
|
284
|
+
autonomous: {
|
|
285
|
+
continuousEvolution: true,
|
|
286
|
+
evolveEveryN: 10,
|
|
287
|
+
autoMutateOnDrift: true,
|
|
288
|
+
},`;
|
|
289
|
+
return `import type { PGA, GenomeInstance } from '@pga-ai/core';
|
|
217
290
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
291
|
+
/**
|
|
292
|
+
* Setup the agent genome with initial configuration
|
|
293
|
+
*/
|
|
294
|
+
export async function setupAgent(pga: PGA): Promise<GenomeInstance> {
|
|
295
|
+
console.log('🧬 Creating agent genome...\\n');
|
|
296
|
+
|
|
297
|
+
const genome = await pga.createGenome({
|
|
298
|
+
name: 'my-agent',
|
|
299
|
+
config: {${autonomousConfig}
|
|
300
|
+
},
|
|
223
301
|
});
|
|
224
302
|
|
|
225
|
-
console.log('
|
|
226
|
-
|
|
227
|
-
|
|
303
|
+
console.log('✅ Genome created with ${config.livingAgent ? '10 cognitive layers' : 'evolution enabled'}\\n');
|
|
304
|
+
|
|
305
|
+
return genome;
|
|
228
306
|
}
|
|
229
307
|
`;
|
|
230
308
|
}
|
package/dist/generator.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../src/generator.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,KAAK,CAAC;AAGtB,MAAM,CAAC,KAAK,UAAU,eAAe,CACjC,WAAmB,EACnB,MAAqB;IAErB,MAAM,OAAO,GAAG,GAAG,CAAC,+BAA+B,CAAC,CAAC,KAAK,EAAE,CAAC;IAE7D,IAAI,CAAC;QACD,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,WAAW,CAAC,CAAC;QAE1D,2BAA2B;QAC3B,MAAM,EAAE,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;QAEhC,iBAAiB;QACjB,MAAM,mBAAmB,CAAC,WAAW,EAAE,WAAW,EAA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B,CAAC,CAAC,CAAC,mBAAmB;;;;CAItG,CAAC;AACF,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
* create-pga-ai — Interactive
|
|
3
|
+
* create-pga-ai — Interactive GSEP Platform Installer
|
|
4
4
|
*
|
|
5
|
-
* One command to create a complete
|
|
5
|
+
* One command to create a complete GSEP agent project:
|
|
6
6
|
* npm create pga-ai@latest my-agent
|
|
7
7
|
*
|
|
8
8
|
* @author Luis Alfredo Velasquez Duran
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
* create-pga-ai — Interactive
|
|
3
|
+
* create-pga-ai — Interactive GSEP Platform Installer
|
|
4
4
|
*
|
|
5
|
-
* One command to create a complete
|
|
5
|
+
* One command to create a complete GSEP agent project:
|
|
6
6
|
* npm create pga-ai@latest my-agent
|
|
7
7
|
*
|
|
8
8
|
* @author Luis Alfredo Velasquez Duran
|
|
@@ -19,7 +19,7 @@ const program = new Command();
|
|
|
19
19
|
// Display welcome banner
|
|
20
20
|
function displayBanner() {
|
|
21
21
|
console.log('\n');
|
|
22
|
-
console.log(chalk.cyan(figlet.textSync('
|
|
22
|
+
console.log(chalk.cyan(figlet.textSync('GSEP Platform', {
|
|
23
23
|
font: 'Standard',
|
|
24
24
|
horizontalLayout: 'default',
|
|
25
25
|
})));
|
|
@@ -34,13 +34,14 @@ function displayBanner() {
|
|
|
34
34
|
// Main CLI
|
|
35
35
|
program
|
|
36
36
|
.name('create-pga-ai')
|
|
37
|
-
.description('Create a new
|
|
37
|
+
.description('Create a new GSEP agent project')
|
|
38
38
|
.version('0.1.0')
|
|
39
39
|
.argument('[project-name]', 'Project name')
|
|
40
40
|
.option('--template <template>', 'Project template (chatbot|code-assistant|customer-support|custom)')
|
|
41
41
|
.option('--llm <provider>', 'LLM provider (anthropic|openai|both)')
|
|
42
42
|
.option('--storage <type>', 'Storage type (postgres|memory)')
|
|
43
43
|
.option('--boost', 'Enable Evolution Boost 2.0')
|
|
44
|
+
.option('--living-agent', 'Enable Living Agent v0.6.0 (10 cognitive layers)')
|
|
44
45
|
.option('--skip-install', 'Skip dependency installation')
|
|
45
46
|
.action(async (projectName, options) => {
|
|
46
47
|
try {
|
|
@@ -66,7 +67,7 @@ program
|
|
|
66
67
|
]));
|
|
67
68
|
name = inputName;
|
|
68
69
|
}
|
|
69
|
-
console.log(chalk.cyan('\n📋 Let\'s configure your
|
|
70
|
+
console.log(chalk.cyan('\n📋 Let\'s configure your GSEP agent...\n'));
|
|
70
71
|
// Prompt user for configuration
|
|
71
72
|
const config = await promptUser(options);
|
|
72
73
|
// Generate project
|
|
@@ -87,7 +88,7 @@ program
|
|
|
87
88
|
});
|
|
88
89
|
function displaySuccessMessage(projectName, config) {
|
|
89
90
|
console.log('\n');
|
|
90
|
-
console.log(boxen(chalk.green.bold('🎉 Success! Your
|
|
91
|
+
console.log(boxen(chalk.green.bold('🎉 Success! Your GSEP agent is ready.\n\n') +
|
|
91
92
|
chalk.white('Next steps:\n') +
|
|
92
93
|
chalk.cyan(` cd ${projectName}\n`) +
|
|
93
94
|
chalk.cyan(' npm run dev\n\n') +
|
|
@@ -95,8 +96,9 @@ function displaySuccessMessage(projectName, config) {
|
|
|
95
96
|
chalk.gray(` • LLM: ${config.llmProvider}\n`) +
|
|
96
97
|
chalk.gray(` • Storage: ${config.storage}\n`) +
|
|
97
98
|
chalk.gray(` • Evolution Boost: ${config.evolutionBoost ? 'Yes (10x faster!)' : 'No'}\n`) +
|
|
99
|
+
chalk.gray(` • Living Agent: ${config.livingAgent ? 'Yes (10 cognitive layers!)' : 'No'}\n`) +
|
|
98
100
|
chalk.gray(` • Template: ${config.template}\n\n`) +
|
|
99
|
-
chalk.white('Documentation: ') + chalk.cyan('https://
|
|
101
|
+
chalk.white('Documentation: ') + chalk.cyan('https://gsepcore.com/docs\n') +
|
|
100
102
|
chalk.white('Discord: ') + chalk.cyan('https://discord.gg/pga'), {
|
|
101
103
|
padding: 1,
|
|
102
104
|
margin: 1,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;;;GAQG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,yBAAyB;AACzB,SAAS,aAAa;IAClB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAClB,OAAO,CAAC,GAAG,CACP,KAAK,CAAC,IAAI,CACN,MAAM,CAAC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;;;GAQG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,yBAAyB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/dist/prompts.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export interface ProjectConfig {
|
|
|
5
5
|
llmProvider: 'anthropic' | 'openai' | 'both';
|
|
6
6
|
storage: 'postgres' | 'memory';
|
|
7
7
|
evolutionBoost: boolean;
|
|
8
|
+
livingAgent: boolean;
|
|
8
9
|
template: 'chatbot' | 'code-assistant' | 'customer-support' | 'data-analysis' | 'custom';
|
|
9
10
|
}
|
|
10
11
|
export declare function promptUser(cliOptions: any): Promise<ProjectConfig>;
|
package/dist/prompts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,MAAM,WAAW,aAAa;IAC1B,WAAW,EAAE,WAAW,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC7C,OAAO,EAAE,UAAU,GAAG,QAAQ,CAAC;IAC/B,cAAc,EAAE,OAAO,CAAC;IACxB,QAAQ,EAAE,SAAS,GAAG,gBAAgB,GAAG,kBAAkB,GAAG,eAAe,GAAG,QAAQ,CAAC;CAC5F;AAED,wBAAsB,UAAU,CAAC,UAAU,EAAE,GAAG,GAAG,OAAO,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,MAAM,WAAW,aAAa;IAC1B,WAAW,EAAE,WAAW,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC7C,OAAO,EAAE,UAAU,GAAG,QAAQ,CAAC;IAC/B,cAAc,EAAE,OAAO,CAAC;IACxB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,SAAS,GAAG,gBAAgB,GAAG,kBAAkB,GAAG,eAAe,GAAG,QAAQ,CAAC;CAC5F;AAED,wBAAsB,UAAU,CAAC,UAAU,EAAE,GAAG,GAAG,OAAO,CAAC,aAAa,CAAC,CA4GxE"}
|
package/dist/prompts.js
CHANGED
|
@@ -56,6 +56,15 @@ export async function promptUser(cliOptions) {
|
|
|
56
56
|
default: true,
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
+
// Living Agent (v0.6.0)
|
|
60
|
+
if (!cliOptions.livingAgent) {
|
|
61
|
+
questions.push({
|
|
62
|
+
type: 'confirm',
|
|
63
|
+
name: 'livingAgent',
|
|
64
|
+
message: 'Enable Living Agent v0.6.0? ' + chalk.gray('(10 cognitive layers: metacognition, empathy, autonomy, memory graph, narrative)'),
|
|
65
|
+
default: true,
|
|
66
|
+
});
|
|
67
|
+
}
|
|
59
68
|
// Template
|
|
60
69
|
if (!cliOptions.template) {
|
|
61
70
|
questions.push({
|
|
@@ -92,6 +101,7 @@ export async function promptUser(cliOptions) {
|
|
|
92
101
|
llmProvider: cliOptions.llm || answers.llmProvider,
|
|
93
102
|
storage: cliOptions.storage || answers.storage,
|
|
94
103
|
evolutionBoost: cliOptions.boost || answers.evolutionBoost,
|
|
104
|
+
livingAgent: cliOptions.livingAgent || answers.livingAgent || false,
|
|
95
105
|
template: cliOptions.template || answers.template,
|
|
96
106
|
};
|
|
97
107
|
}
|
package/dist/prompts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,UAAe;IAC5C,MAAM,SAAS,GAAU,EAAE,CAAC;IAE5B,eAAe;IACf,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC;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AI,OAAO,CAAC,OAAO;QAC9C,cAAc,EAAE,UAAU,CAAC,KAAK,IAAI,OAAO,CAAC,cAAc;QAC1D,WAAW,EAAE,UAAU,CAAC,WAAW,IAAI,OAAO,CAAC,WAAW,IAAI,KAAK;QACnE,QAAQ,EAAE,UAAU,CAAC,QAAQ,IAAI,OAAO,CAAC,QAAQ;KACpD,CAAC;AACN,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pga-ai",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Create
|
|
5
|
-
"author": "Luis Alfredo Velasquez Duran <contact@
|
|
3
|
+
"version": "0.8.0",
|
|
4
|
+
"description": "Create GSEP agents with one command - Interactive installer for GSEP Platform",
|
|
5
|
+
"author": "Luis Alfredo Velasquez Duran <contact@gsepcore.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "https://github.com/pga-platform
|
|
9
|
+
"url": "https://github.com/LuisvelMarketer/pga-platform",
|
|
10
10
|
"directory": "packages/create-pga-ai"
|
|
11
11
|
},
|
|
12
|
-
"homepage": "https://
|
|
12
|
+
"homepage": "https://gsepcore.com",
|
|
13
13
|
"bugs": {
|
|
14
|
-
"url": "https://github.com/pga-platform/
|
|
14
|
+
"url": "https://github.com/LuisvelMarketer/pga-platform/issues"
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"bin": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"clean": "rm -rf dist"
|
|
28
28
|
},
|
|
29
29
|
"keywords": [
|
|
30
|
-
"
|
|
30
|
+
"gsep",
|
|
31
31
|
"create-pga-ai",
|
|
32
32
|
"installer",
|
|
33
33
|
"cli",
|