@ghx-dev/core 0.2.0 → 0.2.1
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/.claude-plugin/plugin.json +2 -2
- package/README.md +44 -37
- package/dist/cards/issue.assignees.add.yaml +1 -0
- package/dist/cards/issue.assignees.remove.yaml +1 -0
- package/dist/cards/issue.assignees.set.yaml +1 -0
- package/dist/cards/issue.close.yaml +1 -0
- package/dist/cards/issue.comments.create.yaml +1 -0
- package/dist/cards/issue.comments.list.yaml +1 -0
- package/dist/cards/issue.create.yaml +1 -0
- package/dist/cards/issue.delete.yaml +1 -0
- package/dist/cards/issue.labels.add.yaml +1 -0
- package/dist/cards/issue.labels.remove.yaml +1 -0
- package/dist/cards/issue.labels.set.yaml +1 -0
- package/dist/cards/issue.list.yaml +1 -0
- package/dist/cards/issue.milestone.clear.yaml +1 -0
- package/dist/cards/issue.milestone.set.yaml +1 -0
- package/dist/cards/issue.relations.blocked_by.add.yaml +1 -0
- package/dist/cards/issue.relations.blocked_by.remove.yaml +1 -0
- package/dist/cards/issue.relations.parent.remove.yaml +1 -0
- package/dist/cards/issue.relations.parent.set.yaml +1 -0
- package/dist/cards/issue.relations.prs.list.yaml +1 -0
- package/dist/cards/issue.relations.view.yaml +1 -0
- package/dist/cards/issue.reopen.yaml +1 -0
- package/dist/cards/issue.update.yaml +1 -0
- package/dist/cards/issue.view.yaml +1 -0
- package/dist/cards/pr.assignees.add.yaml +6 -2
- package/dist/cards/pr.assignees.remove.yaml +6 -2
- package/dist/cards/pr.branch.update.yaml +6 -2
- package/dist/cards/pr.create.yaml +7 -3
- package/dist/cards/pr.diff.files.yaml +1 -0
- package/dist/cards/pr.list.yaml +1 -0
- package/dist/cards/pr.merge.status.yaml +1 -0
- package/dist/cards/pr.merge.yaml +9 -3
- package/dist/cards/pr.reviews.list.yaml +1 -0
- package/dist/cards/pr.reviews.request.yaml +6 -3
- package/dist/cards/pr.reviews.submit.yaml +1 -0
- package/dist/cards/pr.threads.list.yaml +1 -0
- package/dist/cards/pr.threads.reply.yaml +1 -0
- package/dist/cards/pr.threads.resolve.yaml +1 -0
- package/dist/cards/pr.threads.unresolve.yaml +1 -0
- package/dist/cards/pr.update.yaml +7 -2
- package/dist/cards/pr.view.yaml +1 -0
- package/dist/cards/project_v2.fields.list.yaml +18 -2
- package/dist/cards/project_v2.items.field.update.yaml +8 -5
- package/dist/cards/project_v2.items.issue.add.yaml +9 -5
- package/dist/cards/project_v2.items.issue.remove.yaml +8 -5
- package/dist/cards/project_v2.items.list.yaml +8 -2
- package/dist/cards/project_v2.org.view.yaml +6 -2
- package/dist/cards/project_v2.user.view.yaml +6 -2
- package/dist/cards/release.list.yaml +8 -3
- package/dist/cards/release.view.yaml +8 -4
- package/dist/cards/repo.issue_types.list.yaml +7 -3
- package/dist/cards/repo.labels.list.yaml +7 -2
- package/dist/cards/repo.view.yaml +1 -0
- package/dist/chunk-7HUKYNI2.js +536 -0
- package/dist/chunk-7HUKYNI2.js.map +1 -0
- package/dist/chunk-GQO6BHJV.js +98 -0
- package/dist/chunk-GQO6BHJV.js.map +1 -0
- package/dist/chunk-H7CLZHRO.js +280 -0
- package/dist/chunk-H7CLZHRO.js.map +1 -0
- package/dist/{chunk-3P3KHWFU.js → chunk-M5PJLKL5.js} +1079 -726
- package/dist/chunk-M5PJLKL5.js.map +1 -0
- package/dist/chunk-NQ53ETYV.js +128 -0
- package/dist/chunk-NQ53ETYV.js.map +1 -0
- package/dist/{chunk-BIWBJA2F.js → chunk-OQWLEFAH.js} +220 -12
- package/dist/chunk-OQWLEFAH.js.map +1 -0
- package/dist/{chunk-Q7RCIK2C.js → chunk-Q2NW7DJE.js} +167 -62
- package/dist/chunk-Q2NW7DJE.js.map +1 -0
- package/dist/{pr-queries-UOEOXIJQ.js → chunk-QRHKAMRY.js} +11 -131
- package/dist/chunk-QRHKAMRY.js.map +1 -0
- package/dist/{issue-queries-GRA4MKPD.js → chunk-TGL33GEA.js} +7 -83
- package/dist/chunk-TGL33GEA.js.map +1 -0
- package/dist/chunk-ZGBVX2VG.js +32 -0
- package/dist/chunk-ZGBVX2VG.js.map +1 -0
- package/dist/cli/index.js +79 -14
- package/dist/cli/index.js.map +1 -1
- package/dist/core/registry/cards/issue.assignees.add.yaml +1 -0
- package/dist/core/registry/cards/issue.assignees.remove.yaml +1 -0
- package/dist/core/registry/cards/issue.assignees.set.yaml +1 -0
- package/dist/core/registry/cards/issue.close.yaml +1 -0
- package/dist/core/registry/cards/issue.comments.create.yaml +1 -0
- package/dist/core/registry/cards/issue.comments.list.yaml +1 -0
- package/dist/core/registry/cards/issue.create.yaml +1 -0
- package/dist/core/registry/cards/issue.delete.yaml +1 -0
- package/dist/core/registry/cards/issue.labels.add.yaml +1 -0
- package/dist/core/registry/cards/issue.labels.remove.yaml +1 -0
- package/dist/core/registry/cards/issue.labels.set.yaml +1 -0
- package/dist/core/registry/cards/issue.list.yaml +1 -0
- package/dist/core/registry/cards/issue.milestone.clear.yaml +1 -0
- package/dist/core/registry/cards/issue.milestone.set.yaml +1 -0
- package/dist/core/registry/cards/issue.relations.blocked_by.add.yaml +1 -0
- package/dist/core/registry/cards/issue.relations.blocked_by.remove.yaml +1 -0
- package/dist/core/registry/cards/issue.relations.parent.remove.yaml +1 -0
- package/dist/core/registry/cards/issue.relations.parent.set.yaml +1 -0
- package/dist/core/registry/cards/issue.relations.prs.list.yaml +1 -0
- package/dist/core/registry/cards/issue.relations.view.yaml +1 -0
- package/dist/core/registry/cards/issue.reopen.yaml +1 -0
- package/dist/core/registry/cards/issue.update.yaml +1 -0
- package/dist/core/registry/cards/issue.view.yaml +1 -0
- package/dist/core/registry/cards/pr.assignees.add.yaml +6 -2
- package/dist/core/registry/cards/pr.assignees.remove.yaml +6 -2
- package/dist/core/registry/cards/pr.branch.update.yaml +6 -2
- package/dist/core/registry/cards/pr.create.yaml +7 -3
- package/dist/core/registry/cards/pr.diff.files.yaml +1 -0
- package/dist/core/registry/cards/pr.list.yaml +1 -0
- package/dist/core/registry/cards/pr.merge.status.yaml +1 -0
- package/dist/core/registry/cards/pr.merge.yaml +9 -3
- package/dist/core/registry/cards/pr.reviews.list.yaml +1 -0
- package/dist/core/registry/cards/pr.reviews.request.yaml +6 -3
- package/dist/core/registry/cards/pr.reviews.submit.yaml +1 -0
- package/dist/core/registry/cards/pr.threads.list.yaml +1 -0
- package/dist/core/registry/cards/pr.threads.reply.yaml +1 -0
- package/dist/core/registry/cards/pr.threads.resolve.yaml +1 -0
- package/dist/core/registry/cards/pr.threads.unresolve.yaml +1 -0
- package/dist/core/registry/cards/pr.update.yaml +7 -2
- package/dist/core/registry/cards/pr.view.yaml +1 -0
- package/dist/core/registry/cards/project_v2.fields.list.yaml +18 -2
- package/dist/core/registry/cards/project_v2.items.field.update.yaml +8 -5
- package/dist/core/registry/cards/project_v2.items.issue.add.yaml +9 -5
- package/dist/core/registry/cards/project_v2.items.issue.remove.yaml +8 -5
- package/dist/core/registry/cards/project_v2.items.list.yaml +8 -2
- package/dist/core/registry/cards/project_v2.org.view.yaml +6 -2
- package/dist/core/registry/cards/project_v2.user.view.yaml +6 -2
- package/dist/core/registry/cards/release.list.yaml +8 -3
- package/dist/core/registry/cards/release.view.yaml +8 -4
- package/dist/core/registry/cards/repo.issue_types.list.yaml +7 -3
- package/dist/core/registry/cards/repo.labels.list.yaml +7 -2
- package/dist/core/registry/cards/repo.view.yaml +1 -0
- package/dist/index.d.ts +297 -0
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/{issue-mutations-FJNZW7L5.js → issue-mutations-OW464JP3.js} +97 -120
- package/dist/issue-mutations-OW464JP3.js.map +1 -0
- package/dist/issue-queries-ORG3VPK4.js +93 -0
- package/dist/issue-queries-ORG3VPK4.js.map +1 -0
- package/dist/{pr-mutations-UG67YOF5.js → pr-mutations-WOTG6FAB.js} +234 -94
- package/dist/pr-mutations-WOTG6FAB.js.map +1 -0
- package/dist/pr-queries-6CJJW7BT.js +143 -0
- package/dist/pr-queries-6CJJW7BT.js.map +1 -0
- package/dist/project-QFSCYDDW.js +429 -0
- package/dist/project-QFSCYDDW.js.map +1 -0
- package/dist/release-33236BBA.js +57 -0
- package/dist/release-33236BBA.js.map +1 -0
- package/dist/repo-M6DKCWBG.js +82 -0
- package/dist/repo-M6DKCWBG.js.map +1 -0
- package/package.json +6 -6
- package/skills/using-ghx/SKILL.md +76 -10
- package/dist/chunk-3P3KHWFU.js.map +0 -1
- package/dist/chunk-BIWBJA2F.js.map +0 -1
- package/dist/chunk-Q7RCIK2C.js.map +0 -1
- package/dist/chunk-TDABI6C7.js +0 -167
- package/dist/chunk-TDABI6C7.js.map +0 -1
- package/dist/issue-mutations-FJNZW7L5.js.map +0 -1
- package/dist/issue-queries-GRA4MKPD.js.map +0 -1
- package/dist/pr-mutations-UG67YOF5.js.map +0 -1
- package/dist/pr-queries-UOEOXIJQ.js.map +0 -1
- package/dist/repo-JDUHFPZF.js +0 -66
- package/dist/repo-JDUHFPZF.js.map +0 -1
|
@@ -7,6 +7,8 @@ input_schema:
|
|
|
7
7
|
properties:
|
|
8
8
|
owner: { type: string, minLength: 1 }
|
|
9
9
|
projectNumber: { type: integer, minimum: 1 }
|
|
10
|
+
first: { type: integer, minimum: 1 }
|
|
11
|
+
after: { type: [string, "null"] }
|
|
10
12
|
additionalProperties: false
|
|
11
13
|
output_schema:
|
|
12
14
|
type: object
|
|
@@ -21,6 +23,15 @@ output_schema:
|
|
|
21
23
|
id: { type: [string, "null"] }
|
|
22
24
|
name: { type: [string, "null"] }
|
|
23
25
|
dataType: { type: [string, "null"] }
|
|
26
|
+
options:
|
|
27
|
+
type: [array, "null"]
|
|
28
|
+
items:
|
|
29
|
+
type: object
|
|
30
|
+
required: [id, name]
|
|
31
|
+
properties:
|
|
32
|
+
id: { type: string }
|
|
33
|
+
name: { type: string }
|
|
34
|
+
additionalProperties: false
|
|
24
35
|
additionalProperties: false
|
|
25
36
|
pageInfo:
|
|
26
37
|
type: object
|
|
@@ -31,7 +42,12 @@ output_schema:
|
|
|
31
42
|
additionalProperties: false
|
|
32
43
|
additionalProperties: false
|
|
33
44
|
routing:
|
|
34
|
-
preferred:
|
|
35
|
-
fallbacks: []
|
|
45
|
+
preferred: graphql
|
|
46
|
+
fallbacks: [cli]
|
|
47
|
+
graphql:
|
|
48
|
+
# GQL limitation: user fallback handled in domain handler
|
|
49
|
+
operationName: ProjectV2FieldsListOrg
|
|
50
|
+
operationType: query
|
|
51
|
+
documentPath: src/gql/operations/project-v2-fields-list-org.graphql
|
|
36
52
|
cli:
|
|
37
53
|
command: project field-list
|
|
@@ -17,13 +17,16 @@ input_schema:
|
|
|
17
17
|
additionalProperties: false
|
|
18
18
|
output_schema:
|
|
19
19
|
type: object
|
|
20
|
-
required: [itemId
|
|
20
|
+
required: [itemId]
|
|
21
21
|
properties:
|
|
22
|
-
itemId: { type:
|
|
23
|
-
updated: { type: boolean }
|
|
22
|
+
itemId: { type: string }
|
|
24
23
|
additionalProperties: false
|
|
25
24
|
routing:
|
|
26
|
-
preferred:
|
|
27
|
-
fallbacks: []
|
|
25
|
+
preferred: graphql
|
|
26
|
+
fallbacks: [cli]
|
|
27
|
+
graphql:
|
|
28
|
+
operationName: UpdateProjectV2ItemField
|
|
29
|
+
operationType: mutation
|
|
30
|
+
documentPath: src/gql/operations/project-v2-item-field-update.graphql
|
|
28
31
|
cli:
|
|
29
32
|
command: project item-edit
|
|
@@ -11,13 +11,17 @@ input_schema:
|
|
|
11
11
|
additionalProperties: false
|
|
12
12
|
output_schema:
|
|
13
13
|
type: object
|
|
14
|
-
required: [itemId,
|
|
14
|
+
required: [itemId, itemType]
|
|
15
15
|
properties:
|
|
16
|
-
itemId: { type:
|
|
17
|
-
|
|
16
|
+
itemId: { type: string }
|
|
17
|
+
itemType: { type: [string, "null"] }
|
|
18
18
|
additionalProperties: false
|
|
19
19
|
routing:
|
|
20
|
-
preferred:
|
|
21
|
-
fallbacks: []
|
|
20
|
+
preferred: graphql
|
|
21
|
+
fallbacks: [cli]
|
|
22
|
+
graphql:
|
|
23
|
+
operationName: AddProjectV2Item
|
|
24
|
+
operationType: mutation
|
|
25
|
+
documentPath: src/gql/operations/project-v2-item-add.graphql
|
|
22
26
|
cli:
|
|
23
27
|
command: project item-add
|
|
@@ -11,13 +11,16 @@ input_schema:
|
|
|
11
11
|
additionalProperties: false
|
|
12
12
|
output_schema:
|
|
13
13
|
type: object
|
|
14
|
-
required: [
|
|
14
|
+
required: [deletedItemId]
|
|
15
15
|
properties:
|
|
16
|
-
|
|
17
|
-
removed: { type: boolean }
|
|
16
|
+
deletedItemId: { type: string, minLength: 1 }
|
|
18
17
|
additionalProperties: false
|
|
19
18
|
routing:
|
|
20
|
-
preferred:
|
|
21
|
-
fallbacks: []
|
|
19
|
+
preferred: graphql
|
|
20
|
+
fallbacks: [cli]
|
|
21
|
+
graphql:
|
|
22
|
+
operationName: RemoveProjectV2Item
|
|
23
|
+
operationType: mutation
|
|
24
|
+
documentPath: src/gql/operations/project-v2-item-remove.graphql
|
|
22
25
|
cli:
|
|
23
26
|
command: project item-delete
|
|
@@ -8,6 +8,7 @@ input_schema:
|
|
|
8
8
|
owner: { type: string, minLength: 1 }
|
|
9
9
|
projectNumber: { type: integer, minimum: 1 }
|
|
10
10
|
first: { type: integer, minimum: 1 }
|
|
11
|
+
after: { type: [string, "null"] }
|
|
11
12
|
additionalProperties: false
|
|
12
13
|
output_schema:
|
|
13
14
|
type: object
|
|
@@ -33,7 +34,12 @@ output_schema:
|
|
|
33
34
|
additionalProperties: false
|
|
34
35
|
additionalProperties: false
|
|
35
36
|
routing:
|
|
36
|
-
preferred:
|
|
37
|
-
fallbacks: []
|
|
37
|
+
preferred: graphql
|
|
38
|
+
fallbacks: [cli]
|
|
39
|
+
graphql:
|
|
40
|
+
# GQL limitation: user fallback handled in domain handler
|
|
41
|
+
operationName: ProjectV2ItemsListOrg
|
|
42
|
+
operationType: query
|
|
43
|
+
documentPath: src/gql/operations/project-v2-items-list-org.graphql
|
|
38
44
|
cli:
|
|
39
45
|
command: project item-list
|
|
@@ -20,7 +20,11 @@ output_schema:
|
|
|
20
20
|
url: { type: [string, "null"] }
|
|
21
21
|
additionalProperties: false
|
|
22
22
|
routing:
|
|
23
|
-
preferred:
|
|
24
|
-
fallbacks: []
|
|
23
|
+
preferred: graphql
|
|
24
|
+
fallbacks: [cli]
|
|
25
|
+
graphql:
|
|
26
|
+
operationName: ProjectV2OrgView
|
|
27
|
+
operationType: query
|
|
28
|
+
documentPath: src/gql/operations/project-v2-org-view.graphql
|
|
25
29
|
cli:
|
|
26
30
|
command: project view
|
|
@@ -20,7 +20,11 @@ output_schema:
|
|
|
20
20
|
url: { type: [string, "null"] }
|
|
21
21
|
additionalProperties: false
|
|
22
22
|
routing:
|
|
23
|
-
preferred:
|
|
24
|
-
fallbacks: []
|
|
23
|
+
preferred: graphql
|
|
24
|
+
fallbacks: [cli]
|
|
25
|
+
graphql:
|
|
26
|
+
operationName: ProjectV2UserView
|
|
27
|
+
operationType: query
|
|
28
|
+
documentPath: src/gql/operations/project-v2-user-view.graphql
|
|
25
29
|
cli:
|
|
26
30
|
command: project view
|
|
@@ -8,6 +8,7 @@ input_schema:
|
|
|
8
8
|
owner: { type: string, minLength: 1 }
|
|
9
9
|
name: { type: string, minLength: 1 }
|
|
10
10
|
first: { type: integer, minimum: 1 }
|
|
11
|
+
after: { type: [string, "null"] }
|
|
11
12
|
additionalProperties: false
|
|
12
13
|
output_schema:
|
|
13
14
|
type: object
|
|
@@ -19,7 +20,7 @@ output_schema:
|
|
|
19
20
|
type: object
|
|
20
21
|
required: [id, tagName, name, isDraft, isPrerelease, url, targetCommitish, createdAt, publishedAt]
|
|
21
22
|
properties:
|
|
22
|
-
id: { type: integer, minimum: 0 }
|
|
23
|
+
id: { type: ["integer", "null"], minimum: 0 }
|
|
23
24
|
tagName: { type: [string, "null"] }
|
|
24
25
|
name: { type: [string, "null"] }
|
|
25
26
|
isDraft: { type: boolean }
|
|
@@ -38,7 +39,11 @@ output_schema:
|
|
|
38
39
|
additionalProperties: false
|
|
39
40
|
additionalProperties: false
|
|
40
41
|
routing:
|
|
41
|
-
preferred:
|
|
42
|
-
fallbacks: []
|
|
42
|
+
preferred: graphql
|
|
43
|
+
fallbacks: [cli]
|
|
44
|
+
graphql:
|
|
45
|
+
operationName: ReleaseList
|
|
46
|
+
operationType: query
|
|
47
|
+
documentPath: src/gql/operations/release-list.graphql
|
|
43
48
|
cli:
|
|
44
49
|
command: api
|
|
@@ -13,8 +13,8 @@ output_schema:
|
|
|
13
13
|
type: object
|
|
14
14
|
required: [id, tagName, name, isDraft, isPrerelease, url, targetCommitish, createdAt, publishedAt]
|
|
15
15
|
properties:
|
|
16
|
-
id: { type: integer, minimum: 0 }
|
|
17
|
-
tagName: { type:
|
|
16
|
+
id: { type: ["integer", "null"], minimum: 0 }
|
|
17
|
+
tagName: { type: string }
|
|
18
18
|
name: { type: [string, "null"] }
|
|
19
19
|
isDraft: { type: boolean }
|
|
20
20
|
isPrerelease: { type: boolean }
|
|
@@ -24,7 +24,11 @@ output_schema:
|
|
|
24
24
|
publishedAt: { type: [string, "null"] }
|
|
25
25
|
additionalProperties: false
|
|
26
26
|
routing:
|
|
27
|
-
preferred:
|
|
28
|
-
fallbacks: []
|
|
27
|
+
preferred: graphql
|
|
28
|
+
fallbacks: [cli]
|
|
29
|
+
graphql:
|
|
30
|
+
operationName: ReleaseView
|
|
31
|
+
operationType: query
|
|
32
|
+
documentPath: src/gql/operations/release-view.graphql
|
|
29
33
|
cli:
|
|
30
34
|
command: api
|
|
@@ -8,7 +8,7 @@ input_schema:
|
|
|
8
8
|
owner: { type: string, minLength: 1 }
|
|
9
9
|
name: { type: string, minLength: 1 }
|
|
10
10
|
first: { type: integer, minimum: 1 }
|
|
11
|
-
after: { type: string,
|
|
11
|
+
after: { type: [string, "null"] }
|
|
12
12
|
additionalProperties: false
|
|
13
13
|
output_schema:
|
|
14
14
|
type: object
|
|
@@ -34,7 +34,11 @@ output_schema:
|
|
|
34
34
|
additionalProperties: false
|
|
35
35
|
additionalProperties: false
|
|
36
36
|
routing:
|
|
37
|
-
preferred:
|
|
38
|
-
fallbacks: []
|
|
37
|
+
preferred: graphql
|
|
38
|
+
fallbacks: [cli]
|
|
39
|
+
graphql:
|
|
40
|
+
operationName: RepoIssueTypesList
|
|
41
|
+
operationType: query
|
|
42
|
+
documentPath: src/gql/operations/repo-issue-types-list.graphql
|
|
39
43
|
cli:
|
|
40
44
|
command: api graphql
|
|
@@ -8,6 +8,7 @@ input_schema:
|
|
|
8
8
|
owner: { type: string, minLength: 1 }
|
|
9
9
|
name: { type: string, minLength: 1 }
|
|
10
10
|
first: { type: integer, minimum: 1 }
|
|
11
|
+
after: { type: [string, "null"] }
|
|
11
12
|
additionalProperties: false
|
|
12
13
|
output_schema:
|
|
13
14
|
type: object
|
|
@@ -34,8 +35,12 @@ output_schema:
|
|
|
34
35
|
additionalProperties: false
|
|
35
36
|
additionalProperties: false
|
|
36
37
|
routing:
|
|
37
|
-
preferred:
|
|
38
|
-
fallbacks: []
|
|
38
|
+
preferred: graphql
|
|
39
|
+
fallbacks: [cli]
|
|
40
|
+
graphql:
|
|
41
|
+
operationName: RepoLabelsList
|
|
42
|
+
operationType: query
|
|
43
|
+
documentPath: src/gql/operations/repo-labels-list.graphql
|
|
39
44
|
cli:
|
|
40
45
|
command: label list
|
|
41
46
|
jsonFields: [id,name,description,color,isDefault]
|
package/dist/index.d.ts
CHANGED
|
@@ -197,6 +197,7 @@ interface OperationCard<Input = Record<string, unknown>> {
|
|
|
197
197
|
};
|
|
198
198
|
graphql?: {
|
|
199
199
|
operationName: string;
|
|
200
|
+
operationType: "query" | "mutation";
|
|
200
201
|
documentPath: string;
|
|
201
202
|
variables?: Record<string, string>;
|
|
202
203
|
limits?: {
|
|
@@ -383,6 +384,57 @@ type PrViewQueryVariables = Exact<{
|
|
|
383
384
|
prNumber: Scalars["Int"]["input"];
|
|
384
385
|
}>;
|
|
385
386
|
|
|
387
|
+
type ProjectV2FieldsListQueryVariables = Exact<{
|
|
388
|
+
owner: Scalars["String"]["input"];
|
|
389
|
+
projectNumber: Scalars["Int"]["input"];
|
|
390
|
+
first: Scalars["Int"]["input"];
|
|
391
|
+
after?: InputMaybe<Scalars["String"]["input"]>;
|
|
392
|
+
}>;
|
|
393
|
+
|
|
394
|
+
type ProjectV2ItemsListQueryVariables = Exact<{
|
|
395
|
+
owner: Scalars["String"]["input"];
|
|
396
|
+
projectNumber: Scalars["Int"]["input"];
|
|
397
|
+
first: Scalars["Int"]["input"];
|
|
398
|
+
after?: InputMaybe<Scalars["String"]["input"]>;
|
|
399
|
+
}>;
|
|
400
|
+
|
|
401
|
+
type ProjectV2OrgViewQueryVariables = Exact<{
|
|
402
|
+
org: Scalars["String"]["input"];
|
|
403
|
+
projectNumber: Scalars["Int"]["input"];
|
|
404
|
+
}>;
|
|
405
|
+
|
|
406
|
+
type ProjectV2UserViewQueryVariables = Exact<{
|
|
407
|
+
user: Scalars["String"]["input"];
|
|
408
|
+
projectNumber: Scalars["Int"]["input"];
|
|
409
|
+
}>;
|
|
410
|
+
|
|
411
|
+
type ReleaseListQueryVariables = Exact<{
|
|
412
|
+
owner: Scalars["String"]["input"];
|
|
413
|
+
name: Scalars["String"]["input"];
|
|
414
|
+
first: Scalars["Int"]["input"];
|
|
415
|
+
after?: InputMaybe<Scalars["String"]["input"]>;
|
|
416
|
+
}>;
|
|
417
|
+
|
|
418
|
+
type ReleaseViewQueryVariables = Exact<{
|
|
419
|
+
owner: Scalars["String"]["input"];
|
|
420
|
+
name: Scalars["String"]["input"];
|
|
421
|
+
tagName: Scalars["String"]["input"];
|
|
422
|
+
}>;
|
|
423
|
+
|
|
424
|
+
type RepoIssueTypesListQueryVariables = Exact<{
|
|
425
|
+
owner: Scalars["String"]["input"];
|
|
426
|
+
name: Scalars["String"]["input"];
|
|
427
|
+
first: Scalars["Int"]["input"];
|
|
428
|
+
after?: InputMaybe<Scalars["String"]["input"]>;
|
|
429
|
+
}>;
|
|
430
|
+
|
|
431
|
+
type RepoLabelsListQueryVariables = Exact<{
|
|
432
|
+
owner: Scalars["String"]["input"];
|
|
433
|
+
name: Scalars["String"]["input"];
|
|
434
|
+
first: Scalars["Int"]["input"];
|
|
435
|
+
after?: InputMaybe<Scalars["String"]["input"]>;
|
|
436
|
+
}>;
|
|
437
|
+
|
|
386
438
|
type RepoViewQueryVariables = Exact<{
|
|
387
439
|
owner: Scalars["String"]["input"];
|
|
388
440
|
name: Scalars["String"]["input"];
|
|
@@ -547,6 +599,16 @@ type IssueLabelsAddData = {
|
|
|
547
599
|
id: string;
|
|
548
600
|
labels: string[];
|
|
549
601
|
};
|
|
602
|
+
type IssueLabelsRemoveInput = {
|
|
603
|
+
owner: string;
|
|
604
|
+
name: string;
|
|
605
|
+
issueNumber: number;
|
|
606
|
+
labels: string[];
|
|
607
|
+
};
|
|
608
|
+
type IssueLabelsRemoveData = {
|
|
609
|
+
issueNumber: number;
|
|
610
|
+
removed: string[];
|
|
611
|
+
};
|
|
550
612
|
type IssueAssigneesUpdateData = {
|
|
551
613
|
id: string;
|
|
552
614
|
assignees: string[];
|
|
@@ -563,6 +625,15 @@ type IssueMilestoneSetData = {
|
|
|
563
625
|
id: string;
|
|
564
626
|
milestoneNumber: number | null;
|
|
565
627
|
};
|
|
628
|
+
type IssueMilestoneClearInput = {
|
|
629
|
+
owner: string;
|
|
630
|
+
name: string;
|
|
631
|
+
issueNumber: number;
|
|
632
|
+
};
|
|
633
|
+
type IssueMilestoneClearData = {
|
|
634
|
+
issueNumber: number;
|
|
635
|
+
cleared: boolean;
|
|
636
|
+
};
|
|
566
637
|
type IssueCommentCreateData = {
|
|
567
638
|
id: string;
|
|
568
639
|
body: string;
|
|
@@ -736,6 +807,211 @@ type PrReviewSubmitData = {
|
|
|
736
807
|
url: string;
|
|
737
808
|
body: string | null;
|
|
738
809
|
};
|
|
810
|
+
type RepoLabelsListInput = RepoLabelsListQueryVariables;
|
|
811
|
+
type RepoLabelItemData = {
|
|
812
|
+
id: string | null;
|
|
813
|
+
name: string | null;
|
|
814
|
+
description: string | null;
|
|
815
|
+
color: string | null;
|
|
816
|
+
isDefault: boolean | null;
|
|
817
|
+
};
|
|
818
|
+
type RepoLabelsListData = {
|
|
819
|
+
items: RepoLabelItemData[];
|
|
820
|
+
pageInfo: {
|
|
821
|
+
hasNextPage: boolean;
|
|
822
|
+
endCursor: string | null;
|
|
823
|
+
};
|
|
824
|
+
};
|
|
825
|
+
type RepoIssueTypesListInput = RepoIssueTypesListQueryVariables;
|
|
826
|
+
type RepoIssueTypeItemData = {
|
|
827
|
+
id: string | null;
|
|
828
|
+
name: string | null;
|
|
829
|
+
color: string | null;
|
|
830
|
+
isEnabled: boolean | null;
|
|
831
|
+
};
|
|
832
|
+
type RepoIssueTypesListData = {
|
|
833
|
+
items: RepoIssueTypeItemData[];
|
|
834
|
+
pageInfo: {
|
|
835
|
+
hasNextPage: boolean;
|
|
836
|
+
endCursor: string | null;
|
|
837
|
+
};
|
|
838
|
+
};
|
|
839
|
+
type ReleaseViewInput = ReleaseViewQueryVariables;
|
|
840
|
+
type ReleaseViewData = {
|
|
841
|
+
id: number | null;
|
|
842
|
+
tagName: string;
|
|
843
|
+
name: string | null;
|
|
844
|
+
isDraft: boolean;
|
|
845
|
+
isPrerelease: boolean;
|
|
846
|
+
url: string | null;
|
|
847
|
+
targetCommitish: string | null;
|
|
848
|
+
createdAt: string | null;
|
|
849
|
+
publishedAt: string | null;
|
|
850
|
+
};
|
|
851
|
+
type ReleaseListInput = ReleaseListQueryVariables;
|
|
852
|
+
type ReleaseItemData = ReleaseViewData;
|
|
853
|
+
type ReleaseListData = {
|
|
854
|
+
items: ReleaseItemData[];
|
|
855
|
+
pageInfo: {
|
|
856
|
+
hasNextPage: boolean;
|
|
857
|
+
endCursor: string | null;
|
|
858
|
+
};
|
|
859
|
+
};
|
|
860
|
+
type ProjectV2OrgViewInput = ProjectV2OrgViewQueryVariables;
|
|
861
|
+
type ProjectV2OrgViewData = {
|
|
862
|
+
id: string | null;
|
|
863
|
+
title: string | null;
|
|
864
|
+
shortDescription: string | null;
|
|
865
|
+
public: boolean | null;
|
|
866
|
+
closed: boolean | null;
|
|
867
|
+
url: string | null;
|
|
868
|
+
};
|
|
869
|
+
type ProjectV2UserViewInput = ProjectV2UserViewQueryVariables;
|
|
870
|
+
type ProjectV2UserViewData = ProjectV2OrgViewData;
|
|
871
|
+
type ProjectV2FieldsListInput = ProjectV2FieldsListQueryVariables;
|
|
872
|
+
type ProjectV2FieldItemData = {
|
|
873
|
+
id: string | null;
|
|
874
|
+
name: string | null;
|
|
875
|
+
dataType: string | null;
|
|
876
|
+
options?: Array<{
|
|
877
|
+
id: string;
|
|
878
|
+
name: string;
|
|
879
|
+
}> | null;
|
|
880
|
+
};
|
|
881
|
+
type ProjectV2FieldsListData = {
|
|
882
|
+
items: ProjectV2FieldItemData[];
|
|
883
|
+
pageInfo: {
|
|
884
|
+
hasNextPage: boolean;
|
|
885
|
+
endCursor: string | null;
|
|
886
|
+
};
|
|
887
|
+
};
|
|
888
|
+
type ProjectV2ItemsListInput = ProjectV2ItemsListQueryVariables;
|
|
889
|
+
type ProjectV2ItemData = {
|
|
890
|
+
id: string | null;
|
|
891
|
+
contentType: string | null;
|
|
892
|
+
contentNumber: number | null;
|
|
893
|
+
contentTitle: string | null;
|
|
894
|
+
};
|
|
895
|
+
type ProjectV2ItemsListData = {
|
|
896
|
+
items: ProjectV2ItemData[];
|
|
897
|
+
pageInfo: {
|
|
898
|
+
hasNextPage: boolean;
|
|
899
|
+
endCursor: string | null;
|
|
900
|
+
};
|
|
901
|
+
};
|
|
902
|
+
type PrCreateInput = {
|
|
903
|
+
owner: string;
|
|
904
|
+
name: string;
|
|
905
|
+
baseRefName: string;
|
|
906
|
+
headRefName: string;
|
|
907
|
+
title: string;
|
|
908
|
+
body?: string;
|
|
909
|
+
draft?: boolean;
|
|
910
|
+
};
|
|
911
|
+
type PrCreateData = {
|
|
912
|
+
number: number;
|
|
913
|
+
url: string;
|
|
914
|
+
title: string;
|
|
915
|
+
state: string;
|
|
916
|
+
draft: boolean;
|
|
917
|
+
};
|
|
918
|
+
type PrUpdateInput = {
|
|
919
|
+
owner: string;
|
|
920
|
+
name: string;
|
|
921
|
+
prNumber: number;
|
|
922
|
+
title?: string;
|
|
923
|
+
body?: string;
|
|
924
|
+
draft?: boolean;
|
|
925
|
+
};
|
|
926
|
+
type PrUpdateData = {
|
|
927
|
+
number: number;
|
|
928
|
+
url: string;
|
|
929
|
+
title: string;
|
|
930
|
+
state: string;
|
|
931
|
+
draft: boolean;
|
|
932
|
+
};
|
|
933
|
+
type PrMergeInput = {
|
|
934
|
+
owner: string;
|
|
935
|
+
name: string;
|
|
936
|
+
prNumber: number;
|
|
937
|
+
mergeMethod?: string;
|
|
938
|
+
deleteBranch?: boolean;
|
|
939
|
+
};
|
|
940
|
+
type PrMergeData = {
|
|
941
|
+
prNumber: number;
|
|
942
|
+
method: string;
|
|
943
|
+
isMethodAssumed: boolean;
|
|
944
|
+
queued: boolean;
|
|
945
|
+
deleteBranch: boolean;
|
|
946
|
+
};
|
|
947
|
+
type PrBranchUpdateInput = {
|
|
948
|
+
owner: string;
|
|
949
|
+
name: string;
|
|
950
|
+
prNumber: number;
|
|
951
|
+
updateMethod?: string;
|
|
952
|
+
};
|
|
953
|
+
type PrBranchUpdateData = {
|
|
954
|
+
prNumber: number;
|
|
955
|
+
updated: boolean;
|
|
956
|
+
};
|
|
957
|
+
type PrAssigneesInput = {
|
|
958
|
+
owner: string;
|
|
959
|
+
name: string;
|
|
960
|
+
prNumber: number;
|
|
961
|
+
assignees: string[];
|
|
962
|
+
};
|
|
963
|
+
type PrAssigneesAddInput = PrAssigneesInput;
|
|
964
|
+
type PrAssigneesRemoveInput = PrAssigneesInput;
|
|
965
|
+
type PrAssigneesAddData = {
|
|
966
|
+
prNumber: number;
|
|
967
|
+
added: string[];
|
|
968
|
+
};
|
|
969
|
+
type PrAssigneesRemoveData = {
|
|
970
|
+
prNumber: number;
|
|
971
|
+
removed: string[];
|
|
972
|
+
};
|
|
973
|
+
type PrReviewsRequestInput = {
|
|
974
|
+
owner: string;
|
|
975
|
+
name: string;
|
|
976
|
+
prNumber: number;
|
|
977
|
+
reviewers: string[];
|
|
978
|
+
};
|
|
979
|
+
type PrReviewsRequestData = {
|
|
980
|
+
prNumber: number;
|
|
981
|
+
reviewers: string[];
|
|
982
|
+
updated: boolean;
|
|
983
|
+
};
|
|
984
|
+
type ProjectV2ItemAddInput = {
|
|
985
|
+
owner: string;
|
|
986
|
+
projectNumber: number;
|
|
987
|
+
issueUrl: string;
|
|
988
|
+
};
|
|
989
|
+
type ProjectV2ItemAddData = {
|
|
990
|
+
itemId: string;
|
|
991
|
+
itemType: string | null;
|
|
992
|
+
};
|
|
993
|
+
type ProjectV2ItemRemoveInput = {
|
|
994
|
+
owner: string;
|
|
995
|
+
projectNumber: number;
|
|
996
|
+
itemId: string;
|
|
997
|
+
};
|
|
998
|
+
type ProjectV2ItemRemoveData = {
|
|
999
|
+
deletedItemId: string;
|
|
1000
|
+
};
|
|
1001
|
+
type ProjectV2ItemFieldUpdateInput = {
|
|
1002
|
+
projectId: string;
|
|
1003
|
+
itemId: string;
|
|
1004
|
+
fieldId: string;
|
|
1005
|
+
valueText?: string;
|
|
1006
|
+
valueNumber?: number;
|
|
1007
|
+
valueDate?: string;
|
|
1008
|
+
valueSingleSelectOptionId?: string;
|
|
1009
|
+
valueIterationId?: string;
|
|
1010
|
+
clear?: boolean;
|
|
1011
|
+
};
|
|
1012
|
+
type ProjectV2ItemFieldUpdateData = {
|
|
1013
|
+
itemId: string;
|
|
1014
|
+
};
|
|
739
1015
|
|
|
740
1016
|
interface GithubClient extends GraphqlClient {
|
|
741
1017
|
fetchRepoView(input: RepoViewInput): Promise<RepoViewData>;
|
|
@@ -747,10 +1023,12 @@ interface GithubClient extends GraphqlClient {
|
|
|
747
1023
|
deleteIssue(input: IssueMutationInput): Promise<IssueMutationData>;
|
|
748
1024
|
updateIssueLabels(input: IssueLabelsUpdateInput): Promise<IssueLabelsUpdateData>;
|
|
749
1025
|
addIssueLabels(input: IssueLabelsAddInput): Promise<IssueLabelsAddData>;
|
|
1026
|
+
removeIssueLabels(input: IssueLabelsRemoveInput): Promise<IssueLabelsRemoveData>;
|
|
750
1027
|
updateIssueAssignees(input: IssueAssigneesUpdateInput): Promise<IssueAssigneesUpdateData>;
|
|
751
1028
|
addIssueAssignees(input: IssueAssigneesAddInput): Promise<IssueAssigneesAddData>;
|
|
752
1029
|
removeIssueAssignees(input: IssueAssigneesRemoveInput): Promise<IssueAssigneesRemoveData>;
|
|
753
1030
|
setIssueMilestone(input: IssueMilestoneSetInput): Promise<IssueMilestoneSetData>;
|
|
1031
|
+
clearIssueMilestone(input: IssueMilestoneClearInput): Promise<IssueMilestoneClearData>;
|
|
754
1032
|
createIssueComment(input: IssueCommentCreateInput): Promise<IssueCommentCreateData>;
|
|
755
1033
|
fetchIssueLinkedPrs(input: IssueLinkedPrsListInput): Promise<IssueLinkedPrsListData>;
|
|
756
1034
|
fetchIssueRelations(input: IssueRelationsGetInput): Promise<IssueRelationsGetData>;
|
|
@@ -770,6 +1048,24 @@ interface GithubClient extends GraphqlClient {
|
|
|
770
1048
|
resolveReviewThread(input: ReviewThreadMutationInput): Promise<ReviewThreadMutationData>;
|
|
771
1049
|
unresolveReviewThread(input: ReviewThreadMutationInput): Promise<ReviewThreadMutationData>;
|
|
772
1050
|
submitPrReview(input: PrReviewSubmitInput): Promise<PrReviewSubmitData>;
|
|
1051
|
+
fetchRepoLabelsList(input: RepoLabelsListInput): Promise<RepoLabelsListData>;
|
|
1052
|
+
fetchRepoIssueTypesList(input: RepoIssueTypesListInput): Promise<RepoIssueTypesListData>;
|
|
1053
|
+
fetchReleaseView(input: ReleaseViewInput): Promise<ReleaseViewData>;
|
|
1054
|
+
fetchReleaseList(input: ReleaseListInput): Promise<ReleaseListData>;
|
|
1055
|
+
fetchProjectV2OrgView(input: ProjectV2OrgViewInput): Promise<ProjectV2OrgViewData>;
|
|
1056
|
+
fetchProjectV2UserView(input: ProjectV2UserViewInput): Promise<ProjectV2UserViewData>;
|
|
1057
|
+
fetchProjectV2FieldsList(input: ProjectV2FieldsListInput): Promise<ProjectV2FieldsListData>;
|
|
1058
|
+
fetchProjectV2ItemsList(input: ProjectV2ItemsListInput): Promise<ProjectV2ItemsListData>;
|
|
1059
|
+
createPr(input: PrCreateInput): Promise<PrCreateData>;
|
|
1060
|
+
updatePr(input: PrUpdateInput): Promise<PrUpdateData>;
|
|
1061
|
+
mergePr(input: PrMergeInput): Promise<PrMergeData>;
|
|
1062
|
+
updatePrBranch(input: PrBranchUpdateInput): Promise<PrBranchUpdateData>;
|
|
1063
|
+
addPrAssignees(input: PrAssigneesAddInput): Promise<PrAssigneesAddData>;
|
|
1064
|
+
removePrAssignees(input: PrAssigneesRemoveInput): Promise<PrAssigneesRemoveData>;
|
|
1065
|
+
requestPrReviews(input: PrReviewsRequestInput): Promise<PrReviewsRequestData>;
|
|
1066
|
+
addProjectV2Item(input: ProjectV2ItemAddInput): Promise<ProjectV2ItemAddData>;
|
|
1067
|
+
removeProjectV2Item(input: ProjectV2ItemRemoveInput): Promise<ProjectV2ItemRemoveData>;
|
|
1068
|
+
updateProjectV2ItemField(input: ProjectV2ItemFieldUpdateInput): Promise<ProjectV2ItemFieldUpdateData>;
|
|
773
1069
|
}
|
|
774
1070
|
declare function createGithubClientFromToken(tokenOrOptions: string | TokenClientOptions): GithubClient;
|
|
775
1071
|
declare function createGithubClient(transport: GraphqlTransport): GithubClient;
|
|
@@ -800,6 +1096,7 @@ type ExecutionDeps = {
|
|
|
800
1096
|
reason?: RouteReasonCode;
|
|
801
1097
|
resolutionCache?: ResolutionCache;
|
|
802
1098
|
};
|
|
1099
|
+
|
|
803
1100
|
declare function executeTask(request: TaskRequest, deps: ExecutionDeps): Promise<ResultEnvelope>;
|
|
804
1101
|
declare function executeTasks(requests: Array<{
|
|
805
1102
|
task: string;
|
package/dist/index.js
CHANGED
|
@@ -10,10 +10,18 @@ import {
|
|
|
10
10
|
getOperationCard,
|
|
11
11
|
listCapabilities,
|
|
12
12
|
listOperationCards
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-M5PJLKL5.js";
|
|
14
|
+
import "./chunk-H7CLZHRO.js";
|
|
15
|
+
import "./chunk-NQ53ETYV.js";
|
|
16
|
+
import "./chunk-TGL33GEA.js";
|
|
17
|
+
import "./chunk-Q2NW7DJE.js";
|
|
15
18
|
import "./chunk-3DU2WHXF.js";
|
|
16
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-QRHKAMRY.js";
|
|
20
|
+
import "./chunk-TPQYVCAS.js";
|
|
21
|
+
import "./chunk-7HUKYNI2.js";
|
|
22
|
+
import "./chunk-ZGBVX2VG.js";
|
|
23
|
+
import "./chunk-GQO6BHJV.js";
|
|
24
|
+
import "./chunk-R3CBGJZX.js";
|
|
17
25
|
import {
|
|
18
26
|
createGraphqlClient
|
|
19
27
|
} from "./chunk-HEHONZTO.js";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/core/execute/execute-tool.ts"],"sourcesContent":["import type { ResultEnvelope } from \"../contracts/envelope.js\"\n\ntype ExecuteTaskFn = (request: {\n task: string\n input: Record<string, unknown>\n options?: Record<string, unknown>\n}) => Promise<ResultEnvelope>\n\nexport function createExecuteTool(deps: { executeTask: ExecuteTaskFn }) {\n return {\n execute(\n capabilityId: string,\n params: Record<string, unknown>,\n options?: Record<string, unknown>,\n ): Promise<ResultEnvelope> {\n const request = {\n task: capabilityId,\n input: params,\n ...(options ? { options } : {}),\n }\n\n return deps.executeTask(request)\n },\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/core/execute/execute-tool.ts"],"sourcesContent":["import type { ResultEnvelope } from \"../contracts/envelope.js\"\n\ntype ExecuteTaskFn = (request: {\n task: string\n input: Record<string, unknown>\n options?: Record<string, unknown>\n}) => Promise<ResultEnvelope>\n\nexport function createExecuteTool(deps: { executeTask: ExecuteTaskFn }) {\n return {\n execute(\n capabilityId: string,\n params: Record<string, unknown>,\n options?: Record<string, unknown>,\n ): Promise<ResultEnvelope> {\n const request = {\n task: capabilityId,\n input: params,\n ...(options ? { options } : {}),\n }\n\n return deps.executeTask(request)\n },\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQO,SAAS,kBAAkB,MAAsC;AACtE,SAAO;AAAA,IACL,QACE,cACA,QACA,SACyB;AACzB,YAAM,UAAU;AAAA,QACd,MAAM;AAAA,QACN,OAAO;AAAA,QACP,GAAI,UAAU,EAAE,QAAQ,IAAI,CAAC;AAAA,MAC/B;AAEA,aAAO,KAAK,YAAY,OAAO;AAAA,IACjC;AAAA,EACF;AACF;","names":[]}
|