working out the worker/execution interface
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Get parameter from environment
|
||||
MESSAGE="${ATTUNE_ACTION_message:-Hello from basic-pack!}"
|
||||
|
||||
# Output JSON result
|
||||
echo "{\"result\": \"$MESSAGE\"}"
|
||||
@@ -1,27 +0,0 @@
|
||||
name: echo
|
||||
ref: basic-pack.echo
|
||||
description: "Echo a message"
|
||||
runner_type: shell
|
||||
enabled: true
|
||||
entry_point: echo.sh
|
||||
|
||||
parameters:
|
||||
type: object
|
||||
properties:
|
||||
message:
|
||||
type: string
|
||||
description: "Message to echo"
|
||||
default: "Hello from basic-pack!"
|
||||
required: []
|
||||
|
||||
output:
|
||||
type: object
|
||||
properties:
|
||||
result:
|
||||
type: string
|
||||
description: "The echoed message"
|
||||
|
||||
tags:
|
||||
- basic
|
||||
- shell
|
||||
- example
|
||||
@@ -1,14 +0,0 @@
|
||||
ref: basic-pack
|
||||
label: "Basic Example Pack"
|
||||
description: "A minimal example pack with a shell action"
|
||||
version: "1.0.0"
|
||||
author: "Attune Team"
|
||||
email: "dev@attune.io"
|
||||
|
||||
system: false
|
||||
enabled: true
|
||||
|
||||
tags:
|
||||
- example
|
||||
- basic
|
||||
- shell
|
||||
@@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
import json
|
||||
import os
|
||||
|
||||
# Get parameters from environment
|
||||
name = os.environ.get('ATTUNE_ACTION_name', 'Python User')
|
||||
count = int(os.environ.get('ATTUNE_ACTION_count', '1'))
|
||||
|
||||
# Generate greetings
|
||||
greetings = [f"Hello, {name}! (greeting {i+1})" for i in range(count)]
|
||||
|
||||
# Output result as JSON
|
||||
result = {
|
||||
"greetings": greetings,
|
||||
"total_count": len(greetings)
|
||||
}
|
||||
|
||||
print(json.dumps(result))
|
||||
@@ -1,37 +0,0 @@
|
||||
name: hello
|
||||
ref: python-pack.hello
|
||||
description: "Python hello world action"
|
||||
runner_type: python
|
||||
enabled: true
|
||||
entry_point: hello.py
|
||||
|
||||
parameters:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
description: "Name to greet"
|
||||
default: "Python User"
|
||||
count:
|
||||
type: integer
|
||||
description: "Number of times to greet"
|
||||
default: 1
|
||||
minimum: 1
|
||||
maximum: 10
|
||||
required: []
|
||||
|
||||
output:
|
||||
type: object
|
||||
properties:
|
||||
greetings:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
description: "List of greeting messages"
|
||||
total_count:
|
||||
type: integer
|
||||
description: "Total number of greetings"
|
||||
|
||||
tags:
|
||||
- python
|
||||
- example
|
||||
@@ -1,13 +0,0 @@
|
||||
ref: python-pack
|
||||
label: "Python Example Pack"
|
||||
description: "Example pack with Python actions"
|
||||
version: "1.0.0"
|
||||
author: "Attune Team"
|
||||
email: "dev@attune.io"
|
||||
|
||||
system: false
|
||||
enabled: true
|
||||
|
||||
tags:
|
||||
- example
|
||||
- python
|
||||
Reference in New Issue
Block a user