CliCommandsModule · packages/server/src/cli/commands/agent.ts:422

AgentCommand

component

penguin agent, as a contribution to the CLI's CliCommandsModule.commands: the data half is the entry below, the code half the register this class binds. The command lives in the server package (it is the server resource API's client); the CLI's boot collects it.

API

@Component({
  contributes: {
    "CliCommandsModule.commands": [
      {
        id: "cli.agent",
        key: "agent",
        summary: {
          en: "Manage the project's agents",
          zh: "管理 Project 的 Agent",
        },
      },
    ],
  },
})
export class AgentCommand {
  @Bind("cli.agent") command!: CliCommandCode<Messages>;
  setup();
}

Dependencies & Wiring

Extracted from class decorators
@Bindbinds (1)
command → cli.agent: CliCommandCode<Messages>

Contributes

{
  "CliCommandsModule.commands": [
    {
      "id": "cli.agent",
      "key": "agent",
      "summary": {
        "en": "Manage the project's agents",
        "zh": "管理 Project 的 Agent"
      }
    }
  ]
}

Target slots: CliCommandsModule.commands

Methods (1)

setup

setup()