f808abff86
Fix JSON syntax errors in .devcontainer/devcontainer.json (removed
invalid JS-style // comments) and .devcontainer/opencode.json (removed
90+ trailing commas). Apply auto-fixes for end-of-file and trailing
whitespace issues across 100+ files. Fix SIM105 ruff violations in
benchmarks/core_circuit_breaker_bench.py (use contextlib.suppress).
Note: The security fix from issue #7478 (validate_path startswith bypass)
was already delivered to master in commit e18ac5f2. This PR as currently
structured is non-atomic (35 commits across 10+ issues) and needs
significant restructure before merge. This commit only addresses the
CI/pre-commit failures.
ISSUES CLOSED: #7478
37 lines
936 B
YAML
37 lines
936 B
YAML
# Inline-tool skill example — self-contained tools defined inline
|
|
# Register: agents skill add --config inline-tool.yaml
|
|
|
|
name: local/text-processing
|
|
description: "Simple text transformation utilities"
|
|
|
|
inline_tools:
|
|
- name: word_count
|
|
description: "Count words in text"
|
|
source: custom
|
|
code: |
|
|
def run(input_data):
|
|
text = input_data.get("text", "")
|
|
return {"count": len(text.split())}
|
|
input_schema:
|
|
type: object
|
|
properties:
|
|
text:
|
|
type: string
|
|
description: "Text to count words in"
|
|
required: ["text"]
|
|
writes: false
|
|
|
|
- name: to_uppercase
|
|
description: "Convert text to uppercase"
|
|
source: custom
|
|
code: |
|
|
def run(input_data):
|
|
return {"result": input_data.get("text", "").upper()}
|
|
input_schema:
|
|
type: object
|
|
properties:
|
|
text:
|
|
type: string
|
|
required: ["text"]
|
|
writes: false
|