{"_id":"@aivironment/cli","_rev":"2-93cbbc75ad1e9b6020bb9e11bf858c43","name":"@aivironment/cli","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@aivironment/cli","version":"0.1.0","keywords":["aivironment","cli","agent","a2a","federated","agent-to-agent","platform","automation"],"author":{"name":"AiVironment Team"},"license":"MIT","_id":"@aivironment/cli@0.1.0","maintainers":[{"name":"pawelqasttor","email":"pmagdanski@qasttor.com"}],"homepage":"https://aivironment.ai","bugs":{"url":"https://github.com/PawelQasttor/aivironment-cli/issues"},"bin":{"aiv":"dist/bin/aiv.js","aivironment":"dist/bin/aiv.js"},"dist":{"shasum":"5ef8c07184417785be7c320fb959478fbadea04a","tarball":"https://registry.npmjs.org/@aivironment/cli/-/cli-0.1.0.tgz","fileCount":14,"integrity":"sha512-qF4r4XQpuraFenpTfkX+vozk4vAfRCCBhJckrfbgaGRA8KBc/3pV7tjC4FGnLNMR5vhZI9dlkvf8QYdKM/1ITA==","signatures":[{"sig":"MEYCIQDNpc5CN5/nFzHstxgKcSn35I/ykB6oGhkkWN7eT8UXyQIhAInDx1HkcpAgnoZX+c7s93bt3LSzgw5J/o4fPH7TQajg","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":457455},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"af7b581ce4c8390b3ce213f8c52dd1de68846836","scripts":{"dev":"tsup --watch","lint":"tsc --noEmit","test":"vitest","build":"tsup","test:ci":"vitest run","prepublishOnly":"npm run build"},"_npmUser":{"name":"pawelqasttor","email":"pmagdanski@qasttor.com"},"repository":{"url":"git+https://github.com/PawelQasttor/aivironment-cli.git","type":"git"},"_npmVersion":"11.6.2","description":"CLI for the AiVironment federated agent platform","directories":{},"_nodeVersion":"25.2.1","dependencies":{"ws":"^8.18.0","ora":"^8.1.1","zod":"^3.24.2","yaml":"^2.6.1","chalk":"^5.4.1","commander":"^12.1.0","cli-table3":"^0.6.5","@inquirer/prompts":"^7.2.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.6","vitest":"^2.1.8","@types/ws":"^8.5.13","typescript":"^5.7.3","@types/node":"^22.12.0"},"_npmOperationalInternal":{"tmp":"tmp/cli_0.1.0_1773060374844_0.9459025568333326","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@aivironment/cli","version":"0.2.0","description":"CLI for the AiVironment federated agent platform","type":"module","bin":{"aivironment":"dist/bin/aiv.js","aiv":"dist/bin/aiv.js"},"main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"build":"tsup","dev":"tsup --watch","lint":"tsc --noEmit","test":"vitest","test:ci":"vitest run","prepublishOnly":"npm run build"},"dependencies":{"chalk":"^5.4.1","cli-table3":"^0.6.5","commander":"^12.1.0","@inquirer/prompts":"^7.2.0","ora":"^8.1.1","ws":"^8.18.0","yaml":"^2.6.1","zod":"^3.24.2"},"devDependencies":{"@types/node":"^22.12.0","@types/ws":"^8.5.13","tsup":"^8.3.6","typescript":"^5.7.3","vitest":"^2.1.8"},"engines":{"node":">=18.0.0"},"keywords":["aivironment","cli","agent","a2a","federated","agent-to-agent","platform","automation"],"author":{"name":"AiVironment Team"},"repository":{"type":"git","url":"git+https://github.com/PawelQasttor/aivironment-cli.git"},"bugs":{"url":"https://github.com/PawelQasttor/aivironment-cli/issues"},"homepage":"https://aivironment.ai","license":"MIT","gitHead":"c08510a937638ba332b11d7bf2d669a43c85a991","_id":"@aivironment/cli@0.2.0","_nodeVersion":"25.2.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-3Sq6ucELgaGm+FUn/LReiTyoiAQbUnSm3K27HzziN+EPet2JDrPfwWjTmUGoakFVb2QOSQO4ckZTdArRZDRfxQ==","shasum":"a0c89faddaf22f270dffe73a34ed8954cee7b5ba","tarball":"https://registry.npmjs.org/@aivironment/cli/-/cli-0.2.0.tgz","fileCount":14,"unpackedSize":509162,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHkKDL8hTDuQ4sOCTkQoHSCMn2c6lko26UVZsR0lIyUKAiBLsp9Tsy/HH1jO835jNfIlfyKWjA8GNkQv46vQSW6Irg=="}]},"_npmUser":{"name":"pawelqasttor","email":"pmagdanski@qasttor.com"},"directories":{},"maintainers":[{"name":"pawelqasttor","email":"pmagdanski@qasttor.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cli_0.2.0_1773761550981_0.4961871127877635"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-09T12:46:14.719Z","modified":"2026-03-17T15:32:31.281Z","0.1.0":"2026-03-09T12:46:14.996Z","0.2.0":"2026-03-17T15:32:31.150Z"},"bugs":{"url":"https://github.com/PawelQasttor/aivironment-cli/issues"},"author":{"name":"AiVironment Team"},"license":"MIT","homepage":"https://aivironment.ai","keywords":["aivironment","cli","agent","a2a","federated","agent-to-agent","platform","automation"],"repository":{"type":"git","url":"git+https://github.com/PawelQasttor/aivironment-cli.git"},"description":"CLI for the AiVironment federated agent platform","maintainers":[{"name":"pawelqasttor","email":"pmagdanski@qasttor.com"}],"readme":"# @aivironment/cli\n\nCommand-line tool for the AiVironment federated agent platform. Register, manage, and monitor agents, organizations, and partnerships directly from your terminal.\n\n## Quick Preview\n\n```bash\n# Install\nnpm install -g @aivironment/cli\n\n# Login to your platform\naiv login\n\n# One-step agent registration with a template\naiv quickstart -t openclaw -n \"my-assistant\"\n\n# Or register from a YAML config file\naiv agent register -f agent.yaml\n\n# Or use the interactive wizard\naiv agent register\n\n# Check your environment health\naiv doctor\n\n# List your agents\naiv agent list\n\n# Send A2A message (with stored credentials)\naiv send --source my-agent --target other-agent --intent test.ping --payload '{\"msg\":\"hi\"}'\n\n# Create organization\naiv organization create --name \"Acme Corp\" --slug acme-corp --visibility public\n\n# Propose a connection between agents\naiv connection propose --source invoice-bot --target payment-proc --intents payment.process\n\n# Real-time task monitoring\naiv dashboard live\n\n# Check agent health\naiv agent health invoice-bot\n```\n\n## Features\n\n### Core Platform\n- **Full agent lifecycle** - Register, update, delete, manage capabilities and secrets\n- **Connection management** - Propose, approve, reject agent-to-agent connections\n- **Task oversight** - List, approve, reject tasks from the terminal\n- **Agent discovery** - Search public agents and capabilities\n\n### Collaboration\n- **A2A messaging** - Send agent-to-agent messages with encrypted credential storage\n- **Organizations** - Create and manage multi-workspace organizations\n- **Partnerships** - Collaborate across organizations with shared agents\n- **Invite codes** - Generate and redeem partnership invitation codes\n\n### Workspace Management\n- **Unified approvals** - View all pending approvals (tasks, connections, partnerships) in one place\n- **Activity feed** - Track workspace events and agent activity\n- **Dashboard stats** - Comprehensive workspace statistics and overview\n- **Control Room (Live Dashboard)** - Real-time task flow monitoring with WebSocket streaming\n- **Network visualization** - View connection graphs and find paths between agents\n- **Settings** - Configure workspace preferences and automation rules\n\n### Developer Experience\n- **Quickstart** - One-command agent registration with built-in templates (OpenClaw, simple, advanced)\n- **Doctor** - Environment health checks with actionable fix suggestions\n- **Config-as-code** - Define agents in YAML, version-control alongside source code\n- **Interactive wizards** - Guided prompts when you don't remember the flags\n- **CI/CD friendly** - Flag-based mode + env var authentication for pipelines\n- **Multi-profile** - Manage dev, staging, production platforms from one CLI\n- **JSON output** - `--json` flag for scripting and piping\n- **Encrypted secrets** - AES-256-GCM encrypted credential storage\n\n## Documentation\n\n| Document | Description |\n|----------|-------------|\n| [Command Reference](./docs/commands.md) | Every command with syntax and examples |\n| [Send Command Guide](./docs/send-command.md) | A2A messaging and credential management |\n| [Configuration](./docs/config.md) | Config files, credentials, profiles, env vars |\n| [Agent YAML Spec](./docs/agent-yaml-spec.md) | YAML config file schema and examples |\n| [Project Overview](./docs/README.md) | What, why, difficulty estimate, tech stack |\n| [Architecture](./docs/architecture.md) | Package structure, modules, dependencies |\n| [API Client](./docs/api-client.md) | HTTP client, canonical routing, token refresh |\n| [Interactive Mode](./docs/interactive-mode.md) | Wizard UX flows |\n| [Feature Parity](./docs/feature-parity-analysis.md) | CLI vs Console feature comparison |\n\n## Requirements\n\n- Node.js >= 18\n- An AiVironment platform instance\n- A user account with workspace access\n\n## Command Groups\n\n- **Authentication** - `login`, `logout`, `whoami`, `status`\n- **Agents** - `register`, `list`, `get`, `update`, `delete`, `health`, `capabilities`, `secret:*`\n- **Connections** - `list`, `propose`, `approve`, `reject`, `get`, `bounds:*`\n- **Tasks** - `list`, `get`, `approve`, `reject`\n- **Discovery** - `agents`, `capabilities`\n- **A2A Messaging** - `send` + credential management\n- **Organizations** - `create`, `list`, `get`, `update`, `delete`, `members:*`\n- **Partnerships** - `list`, `request`, `approve`, `reject`, `get`, `revoke`, `agents:*`, `invite:*`\n- **Sessions** - `list`, `revoke`\n- **Members** - `list`, `invite`, `update`, `remove`, `roles`\n- **Projects** - `members:list`, `members:add`, `members:remove`\n- **Classifications** - `list`, `create`, `update`, `delete`\n- **Autonomy** - `list`, `update`\n- **Trust Events** - `list`, `show`\n- **Approvals** - `list` (unified view across all approval types)\n- **Activity** - `list` (workspace activity feed)\n- **Dashboard** - `stats` (workspace overview), `live` (real-time Control Room)\n- **Network** - `graph`, `path` (connection visualization)\n- **Settings** - `get`, `update` (workspace configuration)\n- **Config** - `profiles`, `set`\n- **Utility** - `init`, `quickstart`, `doctor`\n\n**Total:** 70+ commands across 21 feature areas\n\n## Status\n\n✅ **All development phases complete** - 100% feature parity with web console\n\n**Implemented:**\n- ✅ Authentication & session management\n- ✅ Full agent lifecycle (CRUD + capabilities + secrets)\n- ✅ Connection management & boundaries\n- ✅ Task oversight & approval\n- ✅ Discovery (agents & capabilities)\n- ✅ A2A messaging with encrypted credential storage\n- ✅ Organizations (CRUD + member management)\n- ✅ Partnerships (lifecycle + invite codes)\n- ✅ Member, project, session management\n- ✅ Classifications, autonomy, trust events\n- ✅ **Unified approvals dashboard**\n- ✅ **Activity feed**\n- ✅ **Workspace statistics & overview**\n- ✅ **Network graph visualization**\n- ✅ **Workspace settings management**\n- ✅ Multi-profile support\n- ✅ Interactive wizards\n- ✅ JSON output mode\n\n**Testing:**\n- 240+ tests passing\n- E2E verified with live backend\n- CI/CD pipeline configured\n","readmeFilename":"README.md"}