UNPKG

automagik-genie

Version:

Self-evolving AI agent orchestration framework with Model Context Protocol support

45 lines (44 loc) 2.92 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.runHelp = runHelp; const view_helpers_1 = require("../lib/view-helpers"); const help_1 = require("../views/help"); async function runHelp(parsed, config, _paths) { const backgroundDefault = Boolean(config.defaults && config.defaults.background); const commandRows = [ { command: 'init', args: '[template] [--yes]', description: 'Initialize Genie in this workspace' }, { command: 'rollback', args: '[--id <backup>]', description: 'Restore a previous Genie snapshot' }, { command: 'run', args: '<agent> "<prompt>" [-x <executor>] [-m <model>]', description: 'Run agent with browser UI + monitoring (JSON output)' }, { command: 'task', args: '<agent> "<prompt>" [monitor <attemptId>]', description: 'Headless task execution (instant JSON, optional monitor)' }, { command: 'list agents', args: '', description: 'Show all available agents' }, { command: 'list tasks', args: '', description: 'Display active and recent runs' }, { command: 'resume', args: '<taskId> "<prompt>"', description: 'Continue a background task' }, { command: 'view', args: '<taskId> [--full]', description: 'Show transcript for a task' }, { command: 'stop', args: '<taskId>', description: 'End a background task' }, { command: 'statusline', args: '', description: 'Emit deprecated status line output' }, { command: 'help', args: '', description: 'Show this panel' } ]; const envelope = (0, help_1.buildHelpView)({ backgroundDefault, commandRows, promptFramework: { title: '🧞 Genie Framework', bulletPoints: [ 'Plan → Load mission/roadmap/standards context, clarify scope, log assumptions/decisions, and produce the planning brief with branch/tracker guidance.', 'Wish → Convert the planning brief into an approved wish with context ledger, inline <spec_contract>, execution groups, and blocker protocol.', 'Forge → Break the wish into execution groups and task files, document validation hooks, evidence paths, personas, and branch strategy before implementation.', 'Review → Audit delivery by consolidating evidence, replaying agreed checks, and issuing a verdict or follow-up report before marking the wish complete.' ] }, examples: [ 'genie init code --yes', 'genie run code/analyze "[Discovery] mission @.genie/product/mission.md"', 'genie task code/analyze "[Discovery] mission context" --raw', 'genie run --help # Show browser + monitoring help', 'genie task monitor <attempt-id>', 'genie view code-analyze-2510201015', 'genie list tasks' ] }); await (0, view_helpers_1.emitView)(envelope, parsed.options); }