genesis-ai-cli 9.0.0 → 9.0.2
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.
|
@@ -32,7 +32,8 @@ export { EthicistAgent, createEthicistAgent } from './ethicist.js';
|
|
|
32
32
|
export { BuilderAgent, createBuilderAgent } from './builder.js';
|
|
33
33
|
export { NarratorAgent, createNarratorAgent } from './narrator.js';
|
|
34
34
|
export { SensorAgent, createSensorAgent } from './sensor.js';
|
|
35
|
-
export { AgentCoordinator,
|
|
35
|
+
export { AgentCoordinator, AgentCoordinator as Coordinator, // v9.0.2: Alias for backwards compatibility
|
|
36
|
+
getCoordinator, createCoordinator, resetCoordinator, coordinateAgents, routeToAgent, runWorkflow, type CoordinationPattern, type AggregationStrategy, type CoordinationTask, type AgentResponse, type WorkflowStep, type Workflow, type WorkflowContext, type DebateConfig, type VoteResult, } from './coordinator.js';
|
|
36
37
|
export { AgentPool, getAgentPool, resetAgentPool, quickExecute, parallelExecute, researchBuildReview, AGENT_CAPABILITIES, type PooledAgent, type PoolConfig, type TaskRequest, type TaskResult, type AgentCapability, } from './agent-pool.js';
|
|
37
38
|
import './explorer.js';
|
|
38
39
|
import './memory.js';
|
package/dist/src/agents/index.js
CHANGED
|
@@ -35,7 +35,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
35
35
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
36
36
|
};
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.AgentRegistry = exports.AGENT_CAPABILITIES = exports.researchBuildReview = exports.parallelExecute = exports.quickExecute = exports.resetAgentPool = exports.getAgentPool = exports.AgentPool = exports.runWorkflow = exports.routeToAgent = exports.coordinateAgents = exports.resetCoordinator = exports.createCoordinator = exports.getCoordinator = exports.AgentCoordinator = exports.createSensorAgent = exports.SensorAgent = exports.createNarratorAgent = exports.NarratorAgent = exports.createBuilderAgent = exports.BuilderAgent = exports.createEthicistAgent = exports.EthicistAgent = exports.createCriticAgent = exports.CriticAgent = exports.createFeelingAgent = exports.FeelingAgent = exports.createPredictorAgent = exports.PredictorAgent = exports.createPlannerAgent = exports.PlannerAgent = exports.createMemoryAgent = exports.MemoryAgent = exports.createExplorerAgent = exports.ExplorerAgent = exports.listAgentTypes = exports.getAgentFactory = exports.registerAgentFactory = exports.BaseAgent = exports.messageBus = exports.MessageBus = void 0;
|
|
38
|
+
exports.AgentRegistry = exports.AGENT_CAPABILITIES = exports.researchBuildReview = exports.parallelExecute = exports.quickExecute = exports.resetAgentPool = exports.getAgentPool = exports.AgentPool = exports.runWorkflow = exports.routeToAgent = exports.coordinateAgents = exports.resetCoordinator = exports.createCoordinator = exports.getCoordinator = exports.Coordinator = exports.AgentCoordinator = exports.createSensorAgent = exports.SensorAgent = exports.createNarratorAgent = exports.NarratorAgent = exports.createBuilderAgent = exports.BuilderAgent = exports.createEthicistAgent = exports.EthicistAgent = exports.createCriticAgent = exports.CriticAgent = exports.createFeelingAgent = exports.FeelingAgent = exports.createPredictorAgent = exports.PredictorAgent = exports.createPlannerAgent = exports.PlannerAgent = exports.createMemoryAgent = exports.MemoryAgent = exports.createExplorerAgent = exports.ExplorerAgent = exports.listAgentTypes = exports.getAgentFactory = exports.registerAgentFactory = exports.BaseAgent = exports.messageBus = exports.MessageBus = void 0;
|
|
39
39
|
exports.createAgentEcosystem = createAgentEcosystem;
|
|
40
40
|
exports.spawnAgent = spawnAgent;
|
|
41
41
|
// ============================================================================
|
|
@@ -88,6 +88,7 @@ Object.defineProperty(exports, "createSensorAgent", { enumerable: true, get: fun
|
|
|
88
88
|
// ============================================================================
|
|
89
89
|
var coordinator_js_1 = require("./coordinator.js");
|
|
90
90
|
Object.defineProperty(exports, "AgentCoordinator", { enumerable: true, get: function () { return coordinator_js_1.AgentCoordinator; } });
|
|
91
|
+
Object.defineProperty(exports, "Coordinator", { enumerable: true, get: function () { return coordinator_js_1.AgentCoordinator; } });
|
|
91
92
|
Object.defineProperty(exports, "getCoordinator", { enumerable: true, get: function () { return coordinator_js_1.getCoordinator; } });
|
|
92
93
|
Object.defineProperty(exports, "createCoordinator", { enumerable: true, get: function () { return coordinator_js_1.createCoordinator; } });
|
|
93
94
|
Object.defineProperty(exports, "resetCoordinator", { enumerable: true, get: function () { return coordinator_js_1.resetCoordinator; } });
|
package/dist/src/index.js
CHANGED
|
@@ -320,6 +320,50 @@ async function cmdPublish(specFile) {
|
|
|
320
320
|
console.log(' STORAGE: memory (knowledge persistence)');
|
|
321
321
|
}
|
|
322
322
|
async function cmdChat(options, promptArg) {
|
|
323
|
+
// v9.0.1: --help support for chat command
|
|
324
|
+
if (options.help === 'true' || options.h === 'true') {
|
|
325
|
+
// ANSI codes: \x1b[36m=cyan, \x1b[32m=green, \x1b[33m=yellow, \x1b[1m=bold, \x1b[2m=dim, \x1b[0m=reset
|
|
326
|
+
console.log(`
|
|
327
|
+
\x1b[36m\x1b[1mgenesis chat\x1b[0m - Interactive AI chat with Genesis
|
|
328
|
+
|
|
329
|
+
\x1b[1mUsage:\x1b[0m
|
|
330
|
+
genesis chat [options]
|
|
331
|
+
|
|
332
|
+
\x1b[1mOptions:\x1b[0m
|
|
333
|
+
\x1b[32m--local\x1b[0m Use Ollama (free, local) - DEFAULT
|
|
334
|
+
\x1b[32m--provider <p>\x1b[0m LLM provider: ollama, openai, anthropic
|
|
335
|
+
\x1b[32m--model <m>\x1b[0m Model name (e.g., mistral, gpt-4o, claude-sonnet-4-20250514)
|
|
336
|
+
\x1b[32m--verbose\x1b[0m Show latency and token usage
|
|
337
|
+
\x1b[32m--stream\x1b[0m Enable real-time streaming with live cost counter
|
|
338
|
+
\x1b[32m-p, --print "text"\x1b[0m Headless mode: process prompt and exit
|
|
339
|
+
\x1b[32m--format <f>\x1b[0m Output format: text (default), json
|
|
340
|
+
\x1b[32m-r, --resume [id]\x1b[0m Resume previous session (default: last)
|
|
341
|
+
\x1b[32m--name <name>\x1b[0m Name for the current session
|
|
342
|
+
\x1b[32m-h, --help\x1b[0m Show this help
|
|
343
|
+
|
|
344
|
+
\x1b[1mChat Commands:\x1b[0m \x1b[2m(inside chat)\x1b[0m
|
|
345
|
+
\x1b[33m/help\x1b[0m Show all available commands
|
|
346
|
+
\x1b[33m/quit\x1b[0m Exit the chat
|
|
347
|
+
\x1b[33m/clear\x1b[0m Clear conversation history
|
|
348
|
+
\x1b[33m/export <file>\x1b[0m Export conversation to file
|
|
349
|
+
\x1b[33m/mode <mode>\x1b[0m Switch mode: chat, code, research, reason
|
|
350
|
+
\x1b[33m/tools\x1b[0m Show available MCP tools
|
|
351
|
+
\x1b[33m/call <tool>\x1b[0m Call an MCP tool directly
|
|
352
|
+
\x1b[33m/brain\x1b[0m Show brain status and φ level
|
|
353
|
+
\x1b[33m/model <name>\x1b[0m Switch model mid-conversation
|
|
354
|
+
|
|
355
|
+
\x1b[1mExamples:\x1b[0m
|
|
356
|
+
genesis chat \x1b[2mInteractive chat with Mistral (local)\x1b[0m
|
|
357
|
+
genesis chat --provider anthropic \x1b[2mChat with Claude\x1b[0m
|
|
358
|
+
genesis chat --stream \x1b[2mReal-time streaming with cost counter\x1b[0m
|
|
359
|
+
genesis chat --resume \x1b[2mResume last session\x1b[0m
|
|
360
|
+
genesis chat --resume abc123 \x1b[2mResume specific session by ID\x1b[0m
|
|
361
|
+
genesis chat -p "Explain recursion" \x1b[2mHeadless: single prompt, output, exit\x1b[0m
|
|
362
|
+
echo "2+2?" | genesis chat -p \x1b[2mHeadless: read from stdin\x1b[0m
|
|
363
|
+
genesis chat -p "..." --format json \x1b[2mHeadless: JSON output for scripting\x1b[0m
|
|
364
|
+
`);
|
|
365
|
+
return;
|
|
366
|
+
}
|
|
323
367
|
// Ollama models - if any of these is specified, use Ollama
|
|
324
368
|
const ollamaModels = ['mistral', 'mistral-small', 'qwen2.5-coder', 'phi3.5', 'deepseek-coder', 'llama3', 'codellama'];
|
|
325
369
|
// --local flag forces Ollama, or if model is an Ollama model
|
package/dist/src/tools/index.js
CHANGED
|
@@ -23,11 +23,24 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.toolRegistry = void 0;
|
|
26
|
+
exports.listTools = listTools;
|
|
27
|
+
exports.getToolCount = getToolCount;
|
|
28
|
+
exports.getTool = getTool;
|
|
26
29
|
__exportStar(require("./bash.js"), exports);
|
|
27
30
|
__exportStar(require("./edit.js"), exports);
|
|
28
31
|
__exportStar(require("./git.js"), exports);
|
|
29
32
|
// Will be populated as tools are added
|
|
30
33
|
exports.toolRegistry = new Map();
|
|
34
|
+
// v9.0.2: Helper methods for toolRegistry
|
|
35
|
+
function listTools() {
|
|
36
|
+
return Array.from(exports.toolRegistry.keys());
|
|
37
|
+
}
|
|
38
|
+
function getToolCount() {
|
|
39
|
+
return exports.toolRegistry.size;
|
|
40
|
+
}
|
|
41
|
+
function getTool(name) {
|
|
42
|
+
return exports.toolRegistry.get(name);
|
|
43
|
+
}
|
|
31
44
|
// Register bash tool
|
|
32
45
|
const bash_js_1 = require("./bash.js");
|
|
33
46
|
exports.toolRegistry.set('bash', {
|
package/package.json
CHANGED