Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a read-only repository used to release the sub-tree. Any issues and pull requests should be forwarded to the upstream Action repository.

Action Bundle

Symfony bundle for managing and executing FaaS-like Actions. Provides a Doctrine-backed approval flow, web UI, REST API, MCP endpoint, and console commands on top of linkorb/action-component.

This package lives in the Action repository and is required by the standalone app via a Composer path repository.

Register an ActionPack

# config/services.yaml
services:
    App\ActionPack\MyActionPack:
        tags: ['action.pack']
use LinkORB\Component\Action\Attribute\Action;
use LinkORB\Component\Action\Attribute\ActionPack;
use LinkORB\Component\Action\Host\HostInterface;

#[ActionPack(name: 'my', description: 'My custom actions')]
class MyActionPack
{
    #[Action(
        name: 'hello',
        description: 'Say hello',
        inputSchema: [
            'type' => 'object',
            'properties' => ['name' => ['type' => 'string']],
            'required' => ['name'],
        ],
        outputSchema: [
            'type' => 'object',
            'properties' => ['message' => ['type' => 'string']],
        ],
    )]
    public function hello(array $input, HostInterface $host): array
    {
        $host->log('info', 'Saying hello to ' . $input['name']);

        return ['message' => 'Hello, ' . $input['name'] . '!'];
    }
}

Routes

Surface Path
Web UI /action/actions
Approvals /action/approvals
REST /api/v1/action/actions
MCP /api/action/mcp
bin/console action:run demo.greet --input='{"name":"World"}'
bin/console action:list

About

Read-only mirror of linkorb/action packages/action-bundle. Send PRs to linkorb/action.

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages