specrun 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -0
- package/README.md +319 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +123 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +30 -0
- package/dist/index.js.map +1 -0
- package/dist/prompts.d.ts +38 -0
- package/dist/prompts.d.ts.map +1 -0
- package/dist/prompts.js +537 -0
- package/dist/prompts.js.map +1 -0
- package/dist/server.d.ts +38 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +305 -0
- package/dist/server.js.map +1 -0
- package/dist/tools.d.ts +43 -0
- package/dist/tools.d.ts.map +1 -0
- package/dist/tools.js +249 -0
- package/dist/tools.js.map +1 -0
- package/dist/types.d.ts +60 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +4 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/auth.d.ts +6 -0
- package/dist/utils/auth.d.ts.map +1 -0
- package/dist/utils/auth.js +173 -0
- package/dist/utils/auth.js.map +1 -0
- package/dist/utils/http-client.d.ts +17 -0
- package/dist/utils/http-client.d.ts.map +1 -0
- package/dist/utils/http-client.js +233 -0
- package/dist/utils/http-client.js.map +1 -0
- package/dist/utils/openapi-parser.d.ts +6 -0
- package/dist/utils/openapi-parser.d.ts.map +1 -0
- package/dist/utils/openapi-parser.js +398 -0
- package/dist/utils/openapi-parser.js.map +1 -0
- package/package.json +62 -0
- package/specs/.env +20 -0
- package/specs/cars.swagger.json +105 -0
- package/specs/github.yaml +164 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
openapi: 3.0.0
|
|
2
|
+
info:
|
|
3
|
+
title: GitHub API (Subset)
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: A subset of the GitHub REST API for demonstration
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://api.github.com
|
|
8
|
+
paths:
|
|
9
|
+
/user:
|
|
10
|
+
get:
|
|
11
|
+
operationId: getAuthenticatedUser
|
|
12
|
+
summary: Get the authenticated user
|
|
13
|
+
description: Get the authenticated user's public profile information
|
|
14
|
+
responses:
|
|
15
|
+
"200":
|
|
16
|
+
description: User profile
|
|
17
|
+
"401":
|
|
18
|
+
description: Requires authentication
|
|
19
|
+
security:
|
|
20
|
+
- bearerAuth: []
|
|
21
|
+
|
|
22
|
+
/user/repos:
|
|
23
|
+
get:
|
|
24
|
+
operationId: listUserRepos
|
|
25
|
+
summary: List repositories for the authenticated user
|
|
26
|
+
description: Lists repositories that the authenticated user has explicit permission to access
|
|
27
|
+
parameters:
|
|
28
|
+
- name: type
|
|
29
|
+
in: query
|
|
30
|
+
schema:
|
|
31
|
+
type: string
|
|
32
|
+
enum: [all, owner, member]
|
|
33
|
+
default: all
|
|
34
|
+
description: Type of repositories to list
|
|
35
|
+
- name: sort
|
|
36
|
+
in: query
|
|
37
|
+
schema:
|
|
38
|
+
type: string
|
|
39
|
+
enum: [created, updated, pushed, full_name]
|
|
40
|
+
default: full_name
|
|
41
|
+
description: Sort order
|
|
42
|
+
- name: per_page
|
|
43
|
+
in: query
|
|
44
|
+
schema:
|
|
45
|
+
type: integer
|
|
46
|
+
minimum: 1
|
|
47
|
+
maximum: 100
|
|
48
|
+
default: 30
|
|
49
|
+
description: Results per page
|
|
50
|
+
responses:
|
|
51
|
+
"200":
|
|
52
|
+
description: List of repositories
|
|
53
|
+
"401":
|
|
54
|
+
description: Requires authentication
|
|
55
|
+
security:
|
|
56
|
+
- bearerAuth: []
|
|
57
|
+
|
|
58
|
+
/repos/{owner}/{repo}:
|
|
59
|
+
get:
|
|
60
|
+
operationId: getRepository
|
|
61
|
+
summary: Get a repository
|
|
62
|
+
description: Get a repository by owner and name
|
|
63
|
+
parameters:
|
|
64
|
+
- name: owner
|
|
65
|
+
in: path
|
|
66
|
+
required: true
|
|
67
|
+
schema:
|
|
68
|
+
type: string
|
|
69
|
+
description: Repository owner
|
|
70
|
+
- name: repo
|
|
71
|
+
in: path
|
|
72
|
+
required: true
|
|
73
|
+
schema:
|
|
74
|
+
type: string
|
|
75
|
+
description: Repository name
|
|
76
|
+
responses:
|
|
77
|
+
"200":
|
|
78
|
+
description: Repository information
|
|
79
|
+
"404":
|
|
80
|
+
description: Repository not found
|
|
81
|
+
|
|
82
|
+
/repos/{owner}/{repo}/issues:
|
|
83
|
+
get:
|
|
84
|
+
operationId: listRepoIssues
|
|
85
|
+
summary: List repository issues
|
|
86
|
+
description: List issues in a repository
|
|
87
|
+
parameters:
|
|
88
|
+
- name: owner
|
|
89
|
+
in: path
|
|
90
|
+
required: true
|
|
91
|
+
schema:
|
|
92
|
+
type: string
|
|
93
|
+
description: Repository owner
|
|
94
|
+
- name: repo
|
|
95
|
+
in: path
|
|
96
|
+
required: true
|
|
97
|
+
schema:
|
|
98
|
+
type: string
|
|
99
|
+
description: Repository name
|
|
100
|
+
- name: state
|
|
101
|
+
in: query
|
|
102
|
+
schema:
|
|
103
|
+
type: string
|
|
104
|
+
enum: [open, closed, all]
|
|
105
|
+
default: open
|
|
106
|
+
description: Issue state
|
|
107
|
+
- name: labels
|
|
108
|
+
in: query
|
|
109
|
+
schema:
|
|
110
|
+
type: string
|
|
111
|
+
description: Comma-separated list of label names
|
|
112
|
+
responses:
|
|
113
|
+
"200":
|
|
114
|
+
description: List of issues
|
|
115
|
+
|
|
116
|
+
post:
|
|
117
|
+
operationId: createIssue
|
|
118
|
+
summary: Create an issue
|
|
119
|
+
description: Create a new issue
|
|
120
|
+
parameters:
|
|
121
|
+
- name: owner
|
|
122
|
+
in: path
|
|
123
|
+
required: true
|
|
124
|
+
schema:
|
|
125
|
+
type: string
|
|
126
|
+
description: Repository owner
|
|
127
|
+
- name: repo
|
|
128
|
+
in: path
|
|
129
|
+
required: true
|
|
130
|
+
schema:
|
|
131
|
+
type: string
|
|
132
|
+
description: Repository name
|
|
133
|
+
requestBody:
|
|
134
|
+
required: true
|
|
135
|
+
content:
|
|
136
|
+
application/json:
|
|
137
|
+
schema:
|
|
138
|
+
type: object
|
|
139
|
+
required: [title]
|
|
140
|
+
properties:
|
|
141
|
+
title:
|
|
142
|
+
type: string
|
|
143
|
+
description: Issue title
|
|
144
|
+
body:
|
|
145
|
+
type: string
|
|
146
|
+
description: Issue body
|
|
147
|
+
labels:
|
|
148
|
+
type: array
|
|
149
|
+
items:
|
|
150
|
+
type: string
|
|
151
|
+
description: Labels to associate with the issue
|
|
152
|
+
responses:
|
|
153
|
+
"201":
|
|
154
|
+
description: Issue created
|
|
155
|
+
"422":
|
|
156
|
+
description: Validation failed
|
|
157
|
+
security:
|
|
158
|
+
- bearerAuth: []
|
|
159
|
+
|
|
160
|
+
components:
|
|
161
|
+
securitySchemes:
|
|
162
|
+
bearerAuth:
|
|
163
|
+
type: http
|
|
164
|
+
scheme: bearer
|