Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions planutils/packages/pddl/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail

python3 -m pip install --no-cache-dir -U pddl

command -v pddl >/dev/null
69 changes: 69 additions & 0 deletions planutils/packages/pddl/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"name": "PDDL: PDDL 3.1 syntax validator",
"description": "Tools for parsing and syntax-validating PDDL domains, problems, and plans using the AI-Planning/pddl parser.",
"homepage": "https://github.com/AI-Planning/pddl",
"install-size": "1M",
"dependencies": [],
"runnable": true,
"endpoint": {
"services": {
"validate_domain": {
"args": [
{
"name": "domain",
"type": "file",
"description": "domain file to validate"
}
],
"call": "pddl {domain} > pddl_domain.log 2>&1",
"return": {
"type": "log",
"files": "pddl_domain.log"
}
},
"validate_task": {
"args": [
{
"name": "domain",
"type": "file",
"description": "domain file to validate"
},
{
"name": "problem",
"type": "file",
"description": "problem file to validate"
}
],
"call": "pddl {domain} {problem} > pddl_task.log 2>&1",
"return": {
"type": "log",
"files": "pddl_task.log"
}
},
"validate_plan": {
"args": [
{
"name": "domain",
"type": "file",
"description": "domain file to validate"
},
{
"name": "problem",
"type": "file",
"description": "problem file to validate"
},
{
"name": "plan",
"type": "file",
"description": "plan file to validate"
}
],
"call": "pddl {domain} {problem} {plan} > pddl_plan.log 2>&1",
"return": {
"type": "log",
"files": "pddl_plan.log"
}
}
}
}
}
4 changes: 4 additions & 0 deletions planutils/packages/pddl/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -euo pipefail

exec pddl "$@"
4 changes: 4 additions & 0 deletions planutils/packages/pddl/uninstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -euo pipefail

python3 -m pip uninstall -y pddl || true