-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathopenapi.yaml
71 lines (71 loc) · 2.44 KB
/
openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
openapi: 3.0.0
info:
title: Pandora
description: Pandora is a lightweight and powerful tool for interacting with the file system and executing shell commands.
version: 1.0.0
paths:
/exec:
post:
summary: Executes a shell command. Current dir is /pandora/WORKDIR
operationId: exec
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
command:
type: string
description: Shell command to execute. Eg `ls .`, `curl foo`, `apk add foo`, `docker run`
guideFollowed:
type: bool
required: false
description: Whether the guide has been read and is being followed
responses:
'200':
description: The command was executed successfully.
/getGuide:
get:
operationId: getGuide
summary: Returns the LLM's guide to this plugin. This MUST be read and understood.
responses:
'200':
description: The guide was returned successfully.
/writeFile:
post:
operationId: writeFile
summary: Writes content to a file. Current dir is /pandora/WORKDIR
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
filePath:
type: string
description: The path of the file to write to.
content:
type: string
description: The content to write to the file.
force:
type: boolean
description: If true, overwrite the file if it exists.
required: true
appendNewlineAtEOF:
description: Append a newline to the end of the file.
type: boolean
default: false
permissions:
description: The file permissions to set, in octal format with leading 0 (e.g., "0644").
required: false
type: string
pattern: '^[0-7]{4}$'
guideFollowed:
type: bool
required: false
description: Whether the guide has been read and is being followed
responses:
'200':
description: The file was written successfully.