chore(cli): drop unused config-instruction module
The getConfigInstruction() helper and its config-help subcommand were the module's only consumers, so remove both. The schema URL referenced via CONFIG_SCHEMA_URL still lives in core and is reachable from the yaml's $schema field for editor-side completion. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
89cade2228
commit
cb58e15d02
|
|
@ -1,154 +0,0 @@
|
|||
/**
|
||||
* Returns the complete AO config schema as formatted text.
|
||||
* Used by `ao config-help` and injected into orchestrator system prompts.
|
||||
*/
|
||||
import { CONFIG_SCHEMA_URL } from "@aoagents/ao-core";
|
||||
|
||||
export function getConfigInstruction(): string {
|
||||
return `
|
||||
# Agent Orchestrator Config Reference
|
||||
# File: agent-orchestrator.yaml
|
||||
|
||||
$schema: ${CONFIG_SCHEMA_URL}
|
||||
|
||||
# ── Top-level settings ──────────────────────────────────────────────
|
||||
# Runtime data paths are auto-derived from the config location under:
|
||||
# ~/.agent-orchestrator/{hash}-{projectId}/
|
||||
|
||||
port: 3000 # Dashboard port
|
||||
terminalPort: 14800 # Optional terminal WebSocket port override
|
||||
directTerminalPort: 14801 # Optional direct terminal WebSocket port override
|
||||
readyThresholdMs: 300000 # Ms before "ready" becomes "idle" (default: 5 min)
|
||||
|
||||
# ── Default plugins ─────────────────────────────────────────────────
|
||||
# These apply to all projects unless overridden per-project.
|
||||
|
||||
defaults:
|
||||
runtime: tmux # tmux | process
|
||||
agent: claude-code # claude-code | aider | codex | cursor | kimicode | opencode
|
||||
workspace: worktree # worktree | clone
|
||||
notifiers:
|
||||
- desktop # desktop | discord | slack | webhook | composio | openclaw
|
||||
orchestrator:
|
||||
agent: claude-code # Optional override for orchestrator sessions
|
||||
worker:
|
||||
agent: claude-code # Optional override for worker sessions
|
||||
|
||||
# ── Installer-managed marketplace plugins (optional) ───────────────
|
||||
# External plugins are declared here. Built-ins do not need entries.
|
||||
|
||||
plugins:
|
||||
- name: owasp-auditor
|
||||
source: registry # registry | npm | local
|
||||
package: "@ao-plugins/owasp-auditor"
|
||||
version: "^0.1.0"
|
||||
enabled: true
|
||||
- name: local-dev-plugin
|
||||
source: local
|
||||
path: ./plugins/local-dev-plugin
|
||||
enabled: true
|
||||
|
||||
# ── Projects ────────────────────────────────────────────────────────
|
||||
# Each key is a project ID (typically the repo directory name).
|
||||
|
||||
projects:
|
||||
my-app:
|
||||
name: My App # Display name
|
||||
repo: owner/repo # GitHub "owner/repo" format
|
||||
path: ~/code/my-app # Local path to the repo
|
||||
defaultBranch: main # main | master | next | develop
|
||||
sessionPrefix: myapp # Prefix for session names (e.g. myapp-1, myapp-2)
|
||||
|
||||
# ── Per-project plugin overrides (optional) ───────────────────
|
||||
runtime: tmux # Override default runtime
|
||||
agent: claude-code # Override default agent
|
||||
workspace: worktree # Override default workspace
|
||||
|
||||
# ── Agent configuration (optional) ────────────────────────────
|
||||
agentConfig:
|
||||
# permissions controls whether Claude Code skips tool-use confirmation prompts.
|
||||
# DEFAULT is "permissionless" — passes --dangerously-skip-permissions to Claude Code.
|
||||
# Claude Code will show a one-time confirmation prompt on first run;
|
||||
# if dismissed, the session silently exits. Accept it in the dashboard terminal.
|
||||
# Use "default" for fully interactive mode where Claude asks before each action.
|
||||
permissions: permissionless # permissionless | default | auto-edit | suggest
|
||||
model: claude-sonnet-4-20250514
|
||||
|
||||
# ── Agent rules (optional) ────────────────────────────────────
|
||||
agentRules: | # Inline rules passed to every agent prompt
|
||||
Always run tests before committing.
|
||||
Use conventional commits.
|
||||
agentRulesFile: .ao-rules # Or point to a file (relative to project path)
|
||||
orchestratorRules: | # Rules for the orchestrator agent
|
||||
|
||||
# ── Orchestrator session strategy (optional) ──────────────────
|
||||
# Controls what happens to the orchestrator session on restart.
|
||||
orchestratorSessionStrategy: reuse
|
||||
# Options: reuse | delete | ignore | delete-new | ignore-new | kill-previous
|
||||
|
||||
# ── Workspace setup (optional) ────────────────────────────────
|
||||
symlinks: # Files/dirs to symlink into workspaces
|
||||
- .env
|
||||
- node_modules
|
||||
postCreate: # Commands to run after workspace creation
|
||||
- pnpm install
|
||||
|
||||
# ── Issue tracker (optional) ──────────────────────────────────
|
||||
tracker:
|
||||
plugin: github # github | linear | gitlab
|
||||
# Linear-specific:
|
||||
# teamId: TEAM-123
|
||||
# projectId: PROJECT-456
|
||||
|
||||
# ── SCM configuration (optional, usually auto-detected) ───────
|
||||
scm:
|
||||
plugin: github # github | gitlab
|
||||
|
||||
# ── Per-project reaction overrides (optional) ─────────────────
|
||||
# reactions:
|
||||
# ci-failed:
|
||||
# auto: true
|
||||
# retries: 2
|
||||
|
||||
# ── Notification channels (optional) ────────────────────────────────
|
||||
|
||||
notifiers:
|
||||
desktop:
|
||||
plugin: desktop
|
||||
slack:
|
||||
plugin: slack
|
||||
# Requires SLACK_WEBHOOK_URL env var
|
||||
webhook:
|
||||
plugin: webhook
|
||||
# url: https://example.com/hook
|
||||
openclaw:
|
||||
plugin: openclaw
|
||||
# url: http://127.0.0.1:18789/hooks/agent
|
||||
# token: \${OPENCLAW_HOOKS_TOKEN}
|
||||
# Run 'ao setup openclaw' for guided configuration
|
||||
|
||||
# ── Notification routing (optional) ─────────────────────────────────
|
||||
# Route notifications by priority level.
|
||||
|
||||
notificationRouting:
|
||||
urgent:
|
||||
- desktop
|
||||
- slack
|
||||
action:
|
||||
- desktop
|
||||
warning:
|
||||
- slack
|
||||
info:
|
||||
- composio
|
||||
|
||||
# ── Available plugins ───────────────────────────────────────────────
|
||||
#
|
||||
# Agent: claude-code, aider, codex, cursor, kimicode, opencode
|
||||
# Runtime: tmux, process
|
||||
# Workspace: worktree, clone
|
||||
# SCM: github, gitlab
|
||||
# Tracker: github, linear, gitlab
|
||||
# Notifier: desktop, discord, slack, webhook, composio, openclaw
|
||||
# Terminal: iterm2, web
|
||||
`.trim();
|
||||
}
|
||||
|
|
@ -17,7 +17,6 @@ import { registerProjectCommand } from "./commands/project.js";
|
|||
import { registerMigrateStorage } from "./commands/migrate-storage.js";
|
||||
import { registerCompletion } from "./commands/completion.js";
|
||||
import { registerEvents } from "./commands/events.js";
|
||||
import { getConfigInstruction } from "./lib/config-instruction.js";
|
||||
import { getCliVersion } from "./options/version.js";
|
||||
|
||||
export function createProgram(): Command {
|
||||
|
|
@ -50,12 +49,5 @@ export function createProgram(): Command {
|
|||
registerCompletion(program);
|
||||
registerEvents(program);
|
||||
|
||||
program
|
||||
.command("config-help")
|
||||
.description("Show config schema and guide for creating agent-orchestrator.yaml")
|
||||
.action(() => {
|
||||
console.log(getConfigInstruction());
|
||||
});
|
||||
|
||||
return program;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue