@ghx-dev/core 0.1.2 → 0.2.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/.claude-plugin/plugin.json +21 -0
- package/README.md +12 -15
- package/dist/cards/issue.assignees.add.yaml +50 -0
- package/dist/cards/issue.assignees.remove.yaml +50 -0
- package/dist/cards/issue.assignees.set.yaml +47 -0
- package/dist/cards/issue.close.yaml +16 -2
- package/dist/cards/issue.comments.create.yaml +16 -2
- package/dist/cards/issue.create.yaml +11 -0
- package/dist/cards/issue.delete.yaml +16 -2
- package/dist/cards/issue.labels.add.yaml +48 -0
- package/dist/cards/issue.labels.remove.yaml +50 -0
- package/dist/cards/issue.labels.set.yaml +47 -0
- package/dist/cards/issue.milestone.clear.yaml +40 -0
- package/dist/cards/issue.milestone.set.yaml +23 -4
- package/dist/{core/registry/cards/issue.blocked_by.add.yaml → cards/issue.relations.blocked_by.add.yaml} +3 -2
- package/dist/cards/{issue.blocked_by.remove.yaml → issue.relations.blocked_by.remove.yaml} +1 -1
- package/dist/cards/{issue.parent.remove.yaml → issue.relations.parent.remove.yaml} +11 -1
- package/dist/{core/registry/cards/issue.parent.set.yaml → cards/issue.relations.parent.set.yaml} +3 -2
- package/dist/{core/registry/cards/issue.linked_prs.list.yaml → cards/issue.relations.prs.list.yaml} +1 -1
- package/dist/cards/{issue.relations.get.yaml → issue.relations.view.yaml} +1 -1
- package/dist/cards/issue.reopen.yaml +16 -2
- package/dist/cards/issue.update.yaml +16 -2
- package/dist/cards/issue.view.yaml +7 -5
- package/dist/cards/{pr.review.submit_approve.yaml → pr.assignees.add.yaml} +12 -9
- package/dist/cards/pr.assignees.remove.yaml +29 -0
- package/dist/{core/registry/cards/pr.status.checks.yaml → cards/pr.checks.list.yaml} +15 -2
- package/dist/{core/registry/cards/pr.checks.rerun_all.yaml → cards/pr.checks.rerun.all.yaml} +2 -4
- package/dist/{core/registry/cards/pr.checks.rerun_failed.yaml → cards/pr.checks.rerun.failed.yaml} +3 -5
- package/dist/cards/pr.create.yaml +30 -0
- package/dist/cards/{pr.diff.list_files.yaml → pr.diff.files.yaml} +1 -1
- package/dist/cards/{pr.ready_for_review.set.yaml → pr.diff.view.yaml} +6 -8
- package/dist/{core/registry/cards/pr.mergeability.view.yaml → cards/pr.merge.status.yaml} +6 -3
- package/dist/{core/registry/cards/pr.merge.execute.yaml → cards/pr.merge.yaml} +1 -1
- package/dist/cards/pr.reviews.list.yaml +1 -1
- package/dist/cards/{pr.reviewers.request.yaml → pr.reviews.request.yaml} +1 -1
- package/dist/cards/pr.reviews.submit.yaml +67 -0
- package/dist/cards/{pr.comments.list.yaml → pr.threads.list.yaml} +2 -2
- package/dist/cards/{pr.comment.reply.yaml → pr.threads.reply.yaml} +4 -2
- package/dist/cards/{pr.comment.resolve.yaml → pr.threads.resolve.yaml} +1 -1
- package/dist/cards/{pr.comment.unresolve.yaml → pr.threads.unresolve.yaml} +1 -1
- package/dist/cards/pr.update.yaml +29 -0
- package/dist/cards/pr.view.yaml +7 -5
- package/dist/{core/registry/cards/project_v2.item.field.update.yaml → cards/project_v2.items.field.update.yaml} +1 -1
- package/dist/{core/registry/cards/project_v2.item.add_issue.yaml → cards/project_v2.items.issue.add.yaml} +1 -1
- package/dist/cards/project_v2.items.issue.remove.yaml +23 -0
- package/dist/{core/registry/cards/project_v2.org.get.yaml → cards/project_v2.org.view.yaml} +1 -1
- package/dist/cards/{project_v2.user.get.yaml → project_v2.user.view.yaml} +1 -1
- package/dist/{core/registry/cards/release.create_draft.yaml → cards/release.create.yaml} +1 -1
- package/dist/cards/{release.publish_draft.yaml → release.publish.yaml} +1 -1
- package/dist/{core/registry/cards/release.get.yaml → cards/release.view.yaml} +1 -1
- package/dist/cards/repo.view.yaml +2 -4
- package/dist/cards/{workflow_dispatch.run.yaml → workflow.dispatch.yaml} +1 -1
- package/dist/cards/{workflow_job.logs.get.yaml → workflow.job.logs.raw.yaml} +2 -2
- package/dist/{core/registry/cards/workflow_job.logs.analyze.yaml → cards/workflow.job.logs.view.yaml} +1 -1
- package/dist/{core/registry/cards/workflow_run.artifacts.list.yaml → cards/workflow.run.artifacts.list.yaml} +1 -1
- package/dist/cards/{workflow_run.cancel.yaml → workflow.run.cancel.yaml} +1 -1
- package/dist/cards/{workflow_run.rerun_all.yaml → workflow.run.rerun.all.yaml} +3 -3
- package/dist/{core/registry/cards/workflow_run.rerun_failed.yaml → cards/workflow.run.rerun.failed.yaml} +3 -3
- package/dist/{core/registry/cards/workflow_run.get.yaml → cards/workflow.run.view.yaml} +19 -4
- package/dist/cards/{workflow_runs.list.yaml → workflow.runs.list.yaml} +1 -1
- package/dist/cards/{workflow.get.yaml → workflow.view.yaml} +2 -2
- package/dist/chunk-3DU2WHXF.js +15 -0
- package/dist/chunk-3DU2WHXF.js.map +1 -0
- package/dist/chunk-3P3KHWFU.js +5779 -0
- package/dist/chunk-3P3KHWFU.js.map +1 -0
- package/dist/chunk-BIWBJA2F.js +228 -0
- package/dist/chunk-BIWBJA2F.js.map +1 -0
- package/dist/chunk-HEHONZTO.js +121 -0
- package/dist/chunk-HEHONZTO.js.map +1 -0
- package/dist/chunk-Q7RCIK2C.js +773 -0
- package/dist/chunk-Q7RCIK2C.js.map +1 -0
- package/dist/chunk-R3CBGJZX.js +12 -0
- package/dist/chunk-R3CBGJZX.js.map +1 -0
- package/dist/chunk-TDABI6C7.js +167 -0
- package/dist/chunk-TDABI6C7.js.map +1 -0
- package/dist/chunk-TPQYVCAS.js +15 -0
- package/dist/chunk-TPQYVCAS.js.map +1 -0
- package/dist/cli/index.js +202 -21
- package/dist/cli/index.js.map +1 -1
- package/dist/core/registry/cards/issue.assignees.add.yaml +50 -0
- package/dist/core/registry/cards/issue.assignees.remove.yaml +50 -0
- package/dist/core/registry/cards/issue.assignees.set.yaml +47 -0
- package/dist/core/registry/cards/issue.close.yaml +16 -2
- package/dist/core/registry/cards/issue.comments.create.yaml +16 -2
- package/dist/core/registry/cards/issue.create.yaml +11 -0
- package/dist/core/registry/cards/issue.delete.yaml +16 -2
- package/dist/core/registry/cards/issue.labels.add.yaml +48 -0
- package/dist/core/registry/cards/issue.labels.remove.yaml +50 -0
- package/dist/core/registry/cards/issue.labels.set.yaml +47 -0
- package/dist/core/registry/cards/issue.milestone.clear.yaml +40 -0
- package/dist/core/registry/cards/issue.milestone.set.yaml +23 -4
- package/dist/{cards/issue.blocked_by.add.yaml → core/registry/cards/issue.relations.blocked_by.add.yaml} +3 -2
- package/dist/core/registry/cards/{issue.blocked_by.remove.yaml → issue.relations.blocked_by.remove.yaml} +1 -1
- package/dist/core/registry/cards/{issue.parent.remove.yaml → issue.relations.parent.remove.yaml} +11 -1
- package/dist/{cards/issue.parent.set.yaml → core/registry/cards/issue.relations.parent.set.yaml} +3 -2
- package/dist/{cards/issue.linked_prs.list.yaml → core/registry/cards/issue.relations.prs.list.yaml} +1 -1
- package/dist/core/registry/cards/{issue.relations.get.yaml → issue.relations.view.yaml} +1 -1
- package/dist/core/registry/cards/issue.reopen.yaml +16 -2
- package/dist/core/registry/cards/issue.update.yaml +16 -2
- package/dist/core/registry/cards/issue.view.yaml +7 -5
- package/dist/core/registry/cards/pr.assignees.add.yaml +29 -0
- package/dist/core/registry/cards/pr.assignees.remove.yaml +29 -0
- package/dist/{cards/pr.status.checks.yaml → core/registry/cards/pr.checks.list.yaml} +15 -2
- package/dist/{cards/pr.checks.rerun_all.yaml → core/registry/cards/pr.checks.rerun.all.yaml} +2 -4
- package/dist/{cards/pr.checks.rerun_failed.yaml → core/registry/cards/pr.checks.rerun.failed.yaml} +3 -5
- package/dist/core/registry/cards/pr.create.yaml +30 -0
- package/dist/core/registry/cards/{pr.diff.list_files.yaml → pr.diff.files.yaml} +1 -1
- package/dist/core/registry/cards/{pr.ready_for_review.set.yaml → pr.diff.view.yaml} +6 -8
- package/dist/{cards/pr.mergeability.view.yaml → core/registry/cards/pr.merge.status.yaml} +6 -3
- package/dist/{cards/pr.merge.execute.yaml → core/registry/cards/pr.merge.yaml} +1 -1
- package/dist/core/registry/cards/pr.reviews.list.yaml +1 -1
- package/dist/core/registry/cards/{pr.reviewers.request.yaml → pr.reviews.request.yaml} +1 -1
- package/dist/core/registry/cards/pr.reviews.submit.yaml +67 -0
- package/dist/core/registry/cards/{pr.comments.list.yaml → pr.threads.list.yaml} +2 -2
- package/dist/core/registry/cards/{pr.comment.reply.yaml → pr.threads.reply.yaml} +4 -2
- package/dist/core/registry/cards/{pr.comment.resolve.yaml → pr.threads.resolve.yaml} +1 -1
- package/dist/core/registry/cards/{pr.comment.unresolve.yaml → pr.threads.unresolve.yaml} +1 -1
- package/dist/core/registry/cards/pr.update.yaml +29 -0
- package/dist/core/registry/cards/pr.view.yaml +7 -5
- package/dist/{cards/project_v2.item.field.update.yaml → core/registry/cards/project_v2.items.field.update.yaml} +1 -1
- package/dist/{cards/project_v2.item.add_issue.yaml → core/registry/cards/project_v2.items.issue.add.yaml} +1 -1
- package/dist/core/registry/cards/project_v2.items.issue.remove.yaml +23 -0
- package/dist/{cards/project_v2.org.get.yaml → core/registry/cards/project_v2.org.view.yaml} +1 -1
- package/dist/core/registry/cards/{project_v2.user.get.yaml → project_v2.user.view.yaml} +1 -1
- package/dist/{cards/release.create_draft.yaml → core/registry/cards/release.create.yaml} +1 -1
- package/dist/core/registry/cards/{release.publish_draft.yaml → release.publish.yaml} +1 -1
- package/dist/{cards/release.get.yaml → core/registry/cards/release.view.yaml} +1 -1
- package/dist/core/registry/cards/repo.view.yaml +2 -4
- package/dist/core/registry/cards/{workflow_dispatch.run.yaml → workflow.dispatch.yaml} +1 -1
- package/dist/core/registry/cards/{workflow_job.logs.get.yaml → workflow.job.logs.raw.yaml} +2 -2
- package/dist/{cards/workflow_job.logs.analyze.yaml → core/registry/cards/workflow.job.logs.view.yaml} +1 -1
- package/dist/{cards/workflow_run.artifacts.list.yaml → core/registry/cards/workflow.run.artifacts.list.yaml} +1 -1
- package/dist/core/registry/cards/{workflow_run.cancel.yaml → workflow.run.cancel.yaml} +1 -1
- package/dist/core/registry/cards/{workflow_run.rerun_all.yaml → workflow.run.rerun.all.yaml} +3 -3
- package/dist/{cards/workflow_run.rerun_failed.yaml → core/registry/cards/workflow.run.rerun.failed.yaml} +3 -3
- package/dist/{cards/workflow_run.get.yaml → core/registry/cards/workflow.run.view.yaml} +19 -4
- package/dist/core/registry/cards/{workflow_runs.list.yaml → workflow.runs.list.yaml} +1 -1
- package/dist/core/registry/cards/{workflow.get.yaml → workflow.view.yaml} +2 -2
- package/dist/index.d.ts +374 -35
- package/dist/index.js +33 -5
- package/dist/index.js.map +1 -1
- package/dist/issue-mutations-FJNZW7L5.js +668 -0
- package/dist/issue-mutations-FJNZW7L5.js.map +1 -0
- package/dist/issue-queries-GRA4MKPD.js +208 -0
- package/dist/issue-queries-GRA4MKPD.js.map +1 -0
- package/dist/pr-mutations-UG67YOF5.js +344 -0
- package/dist/pr-mutations-UG67YOF5.js.map +1 -0
- package/dist/pr-queries-UOEOXIJQ.js +331 -0
- package/dist/pr-queries-UOEOXIJQ.js.map +1 -0
- package/dist/repo-JDUHFPZF.js +66 -0
- package/dist/repo-JDUHFPZF.js.map +1 -0
- package/package.json +16 -13
- package/skills/using-ghx/SKILL.md +61 -0
- package/dist/agent.d.ts +0 -32
- package/dist/agent.js +0 -36
- package/dist/agent.js.map +0 -1
- package/dist/cards/check_run.annotations.list.yaml +0 -35
- package/dist/cards/issue.assignees.update.yaml +0 -27
- package/dist/cards/issue.labels.update.yaml +0 -27
- package/dist/cards/pr.assignees.update.yaml +0 -38
- package/dist/cards/pr.checks.get_failed.yaml +0 -42
- package/dist/cards/pr.review.submit_comment.yaml +0 -26
- package/dist/cards/pr.review.submit_request_changes.yaml +0 -26
- package/dist/cards/workflow_run.jobs.list.yaml +0 -35
- package/dist/chunk-2FCPR3XZ.js +0 -54
- package/dist/chunk-2FCPR3XZ.js.map +0 -1
- package/dist/chunk-RDUPMVHG.js +0 -4139
- package/dist/chunk-RDUPMVHG.js.map +0 -1
- package/dist/chunk-UN5YHUNK.js +0 -245
- package/dist/chunk-UN5YHUNK.js.map +0 -1
- package/dist/cli/assets/skills/ghx/SKILL.md +0 -57
- package/dist/core/registry/cards/check_run.annotations.list.yaml +0 -35
- package/dist/core/registry/cards/issue.assignees.update.yaml +0 -27
- package/dist/core/registry/cards/issue.labels.update.yaml +0 -27
- package/dist/core/registry/cards/pr.assignees.update.yaml +0 -38
- package/dist/core/registry/cards/pr.checks.get_failed.yaml +0 -42
- package/dist/core/registry/cards/pr.review.submit_approve.yaml +0 -26
- package/dist/core/registry/cards/pr.review.submit_comment.yaml +0 -26
- package/dist/core/registry/cards/pr.review.submit_request_changes.yaml +0 -26
- package/dist/core/registry/cards/workflow_run.jobs.list.yaml +0 -35
- package/dist/envelope-BpF6MNCv.d.ts +0 -55
package/dist/agent.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/agent-interface/prompt/main-skill.ts","../src/agent-interface/tools/execute-tool.ts"],"sourcesContent":["export const MAIN_SKILL_TEXT = `\nUse execute(capability_id, params) for all GitHub actions.\nNever call gh help and never fetch GraphQL schema/introspection.\nIf required params are unknown, call explain(capability_id) or ask the user.\nTreat ResultEnvelope.ok=false as a failure.\nIf error.retryable=true, retry once unless user requested otherwise.\nOnly reason about ResultEnvelope.data and ResultEnvelope.error.\n`.trim()\n","import type { ResultEnvelope } from \"../../core/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":";;;;;;;AAAO,IAAM,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAO7B,KAAK;;;ACCA,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":[]}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
capability_id: check_run.annotations.list
|
|
2
|
-
version: "1.0.0"
|
|
3
|
-
description: List annotations for one check run.
|
|
4
|
-
input_schema:
|
|
5
|
-
type: object
|
|
6
|
-
required: [owner, name, checkRunId]
|
|
7
|
-
properties:
|
|
8
|
-
owner: { type: string, minLength: 1 }
|
|
9
|
-
name: { type: string, minLength: 1 }
|
|
10
|
-
checkRunId: { type: integer, minimum: 1 }
|
|
11
|
-
additionalProperties: false
|
|
12
|
-
output_schema:
|
|
13
|
-
type: object
|
|
14
|
-
required: [items]
|
|
15
|
-
properties:
|
|
16
|
-
items:
|
|
17
|
-
type: array
|
|
18
|
-
items:
|
|
19
|
-
type: object
|
|
20
|
-
required: [path, startLine, endLine, level, message, title, details]
|
|
21
|
-
properties:
|
|
22
|
-
path: { type: [string, "null"] }
|
|
23
|
-
startLine: { type: [integer, "null"] }
|
|
24
|
-
endLine: { type: [integer, "null"] }
|
|
25
|
-
level: { type: [string, "null"] }
|
|
26
|
-
message: { type: [string, "null"] }
|
|
27
|
-
title: { type: [string, "null"] }
|
|
28
|
-
details: { type: [string, "null"] }
|
|
29
|
-
additionalProperties: false
|
|
30
|
-
additionalProperties: false
|
|
31
|
-
routing:
|
|
32
|
-
preferred: cli
|
|
33
|
-
fallbacks: []
|
|
34
|
-
cli:
|
|
35
|
-
command: api
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
capability_id: issue.assignees.update
|
|
2
|
-
version: "1.0.0"
|
|
3
|
-
description: Replace issue assignees.
|
|
4
|
-
input_schema:
|
|
5
|
-
type: object
|
|
6
|
-
required: [issueId, assignees]
|
|
7
|
-
properties:
|
|
8
|
-
issueId: { type: string, minLength: 1 }
|
|
9
|
-
assignees:
|
|
10
|
-
type: array
|
|
11
|
-
items: { type: string, minLength: 1 }
|
|
12
|
-
additionalProperties: false
|
|
13
|
-
output_schema:
|
|
14
|
-
type: object
|
|
15
|
-
required: [id, assignees]
|
|
16
|
-
properties:
|
|
17
|
-
id: { type: string, minLength: 1 }
|
|
18
|
-
assignees:
|
|
19
|
-
type: array
|
|
20
|
-
items: { type: string, minLength: 1 }
|
|
21
|
-
additionalProperties: false
|
|
22
|
-
routing:
|
|
23
|
-
preferred: graphql
|
|
24
|
-
fallbacks: []
|
|
25
|
-
graphql:
|
|
26
|
-
operationName: IssueAssigneesUpdate
|
|
27
|
-
documentPath: src/gql/operations/issue-assignees-update.graphql
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
capability_id: issue.labels.update
|
|
2
|
-
version: "1.0.0"
|
|
3
|
-
description: Replace issue labels.
|
|
4
|
-
input_schema:
|
|
5
|
-
type: object
|
|
6
|
-
required: [issueId, labels]
|
|
7
|
-
properties:
|
|
8
|
-
issueId: { type: string, minLength: 1 }
|
|
9
|
-
labels:
|
|
10
|
-
type: array
|
|
11
|
-
items: { type: string, minLength: 1 }
|
|
12
|
-
additionalProperties: false
|
|
13
|
-
output_schema:
|
|
14
|
-
type: object
|
|
15
|
-
required: [id, labels]
|
|
16
|
-
properties:
|
|
17
|
-
id: { type: string, minLength: 1 }
|
|
18
|
-
labels:
|
|
19
|
-
type: array
|
|
20
|
-
items: { type: string, minLength: 1 }
|
|
21
|
-
additionalProperties: false
|
|
22
|
-
routing:
|
|
23
|
-
preferred: graphql
|
|
24
|
-
fallbacks: []
|
|
25
|
-
graphql:
|
|
26
|
-
operationName: IssueLabelsUpdate
|
|
27
|
-
documentPath: src/gql/operations/issue-labels-update.graphql
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
capability_id: pr.assignees.update
|
|
2
|
-
version: "1.0.0"
|
|
3
|
-
description: Update pull request assignees.
|
|
4
|
-
input_schema:
|
|
5
|
-
type: object
|
|
6
|
-
required: [owner, name, prNumber]
|
|
7
|
-
properties:
|
|
8
|
-
owner: { type: string, minLength: 1 }
|
|
9
|
-
name: { type: string, minLength: 1 }
|
|
10
|
-
prNumber: { type: integer, minimum: 1 }
|
|
11
|
-
add:
|
|
12
|
-
type: array
|
|
13
|
-
items: { type: string, minLength: 1 }
|
|
14
|
-
remove:
|
|
15
|
-
type: array
|
|
16
|
-
items: { type: string, minLength: 1 }
|
|
17
|
-
anyOf:
|
|
18
|
-
- required: [add]
|
|
19
|
-
- required: [remove]
|
|
20
|
-
additionalProperties: false
|
|
21
|
-
output_schema:
|
|
22
|
-
type: object
|
|
23
|
-
required: [prNumber, add, remove, updated]
|
|
24
|
-
properties:
|
|
25
|
-
prNumber: { type: integer, minimum: 1 }
|
|
26
|
-
add:
|
|
27
|
-
type: array
|
|
28
|
-
items: { type: string, minLength: 1 }
|
|
29
|
-
remove:
|
|
30
|
-
type: array
|
|
31
|
-
items: { type: string, minLength: 1 }
|
|
32
|
-
updated: { type: boolean }
|
|
33
|
-
additionalProperties: false
|
|
34
|
-
routing:
|
|
35
|
-
preferred: cli
|
|
36
|
-
fallbacks: []
|
|
37
|
-
cli:
|
|
38
|
-
command: pr edit
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
capability_id: pr.checks.get_failed
|
|
2
|
-
version: "1.0.0"
|
|
3
|
-
description: List failed pull request checks.
|
|
4
|
-
input_schema:
|
|
5
|
-
type: object
|
|
6
|
-
required: [owner, name, prNumber]
|
|
7
|
-
properties:
|
|
8
|
-
owner: { type: string, minLength: 1 }
|
|
9
|
-
name: { type: string, minLength: 1 }
|
|
10
|
-
prNumber: { type: integer, minimum: 1 }
|
|
11
|
-
additionalProperties: false
|
|
12
|
-
output_schema:
|
|
13
|
-
type: object
|
|
14
|
-
required: [items, summary]
|
|
15
|
-
properties:
|
|
16
|
-
items:
|
|
17
|
-
type: array
|
|
18
|
-
items:
|
|
19
|
-
type: object
|
|
20
|
-
required: [name, state, workflow, link]
|
|
21
|
-
properties:
|
|
22
|
-
name: { type: [string, "null"] }
|
|
23
|
-
state: { type: [string, "null"] }
|
|
24
|
-
workflow: { type: [string, "null"] }
|
|
25
|
-
link: { type: [string, "null"] }
|
|
26
|
-
additionalProperties: false
|
|
27
|
-
summary:
|
|
28
|
-
type: object
|
|
29
|
-
required: [total, failed, pending, passed]
|
|
30
|
-
properties:
|
|
31
|
-
total: { type: integer, minimum: 0 }
|
|
32
|
-
failed: { type: integer, minimum: 0 }
|
|
33
|
-
pending: { type: integer, minimum: 0 }
|
|
34
|
-
passed: { type: integer, minimum: 0 }
|
|
35
|
-
additionalProperties: false
|
|
36
|
-
additionalProperties: false
|
|
37
|
-
routing:
|
|
38
|
-
preferred: cli
|
|
39
|
-
fallbacks: []
|
|
40
|
-
cli:
|
|
41
|
-
command: pr checks
|
|
42
|
-
jsonFields: [name, state, workflow, link]
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
capability_id: pr.review.submit_comment
|
|
2
|
-
version: "1.0.0"
|
|
3
|
-
description: Submit a comment-only pull request review.
|
|
4
|
-
input_schema:
|
|
5
|
-
type: object
|
|
6
|
-
required: [owner, name, prNumber, body]
|
|
7
|
-
properties:
|
|
8
|
-
owner: { type: string, minLength: 1 }
|
|
9
|
-
name: { type: string, minLength: 1 }
|
|
10
|
-
prNumber: { type: integer, minimum: 1 }
|
|
11
|
-
body: { type: string, minLength: 1 }
|
|
12
|
-
additionalProperties: false
|
|
13
|
-
output_schema:
|
|
14
|
-
type: object
|
|
15
|
-
required: [prNumber, event, submitted, body]
|
|
16
|
-
properties:
|
|
17
|
-
prNumber: { type: integer, minimum: 1 }
|
|
18
|
-
event: { type: string, const: COMMENT }
|
|
19
|
-
submitted: { type: boolean }
|
|
20
|
-
body: { type: string, minLength: 1 }
|
|
21
|
-
additionalProperties: false
|
|
22
|
-
routing:
|
|
23
|
-
preferred: cli
|
|
24
|
-
fallbacks: []
|
|
25
|
-
cli:
|
|
26
|
-
command: pr review
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
capability_id: pr.review.submit_request_changes
|
|
2
|
-
version: "1.0.0"
|
|
3
|
-
description: Submit a pull request review requesting changes.
|
|
4
|
-
input_schema:
|
|
5
|
-
type: object
|
|
6
|
-
required: [owner, name, prNumber, body]
|
|
7
|
-
properties:
|
|
8
|
-
owner: { type: string, minLength: 1 }
|
|
9
|
-
name: { type: string, minLength: 1 }
|
|
10
|
-
prNumber: { type: integer, minimum: 1 }
|
|
11
|
-
body: { type: string, minLength: 1 }
|
|
12
|
-
additionalProperties: false
|
|
13
|
-
output_schema:
|
|
14
|
-
type: object
|
|
15
|
-
required: [prNumber, event, submitted, body]
|
|
16
|
-
properties:
|
|
17
|
-
prNumber: { type: integer, minimum: 1 }
|
|
18
|
-
event: { type: string, const: REQUEST_CHANGES }
|
|
19
|
-
submitted: { type: boolean }
|
|
20
|
-
body: { type: string, minLength: 1 }
|
|
21
|
-
additionalProperties: false
|
|
22
|
-
routing:
|
|
23
|
-
preferred: cli
|
|
24
|
-
fallbacks: []
|
|
25
|
-
cli:
|
|
26
|
-
command: pr review
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
capability_id: workflow_run.jobs.list
|
|
2
|
-
version: "1.0.0"
|
|
3
|
-
description: List jobs in a workflow run.
|
|
4
|
-
input_schema:
|
|
5
|
-
type: object
|
|
6
|
-
required: [owner, name, runId]
|
|
7
|
-
properties:
|
|
8
|
-
owner: { type: string, minLength: 1 }
|
|
9
|
-
name: { type: string, minLength: 1 }
|
|
10
|
-
runId: { type: integer, minimum: 1 }
|
|
11
|
-
additionalProperties: false
|
|
12
|
-
output_schema:
|
|
13
|
-
type: object
|
|
14
|
-
required: [items]
|
|
15
|
-
properties:
|
|
16
|
-
items:
|
|
17
|
-
type: array
|
|
18
|
-
items:
|
|
19
|
-
type: object
|
|
20
|
-
required: [id, name, status, conclusion, startedAt, completedAt, url]
|
|
21
|
-
properties:
|
|
22
|
-
id: { type: integer, minimum: 0 }
|
|
23
|
-
name: { type: [string, "null"] }
|
|
24
|
-
status: { type: [string, "null"] }
|
|
25
|
-
conclusion: { type: [string, "null"] }
|
|
26
|
-
startedAt: { type: [string, "null"] }
|
|
27
|
-
completedAt: { type: [string, "null"] }
|
|
28
|
-
url: { type: [string, "null"] }
|
|
29
|
-
additionalProperties: false
|
|
30
|
-
additionalProperties: false
|
|
31
|
-
routing:
|
|
32
|
-
preferred: cli
|
|
33
|
-
fallbacks: []
|
|
34
|
-
cli:
|
|
35
|
-
command: run view
|
package/dist/chunk-2FCPR3XZ.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getOperationCard,
|
|
3
|
-
listOperationCards
|
|
4
|
-
} from "./chunk-UN5YHUNK.js";
|
|
5
|
-
|
|
6
|
-
// src/agent-interface/tools/explain-tool.ts
|
|
7
|
-
function extractRequiredInputs(inputSchema) {
|
|
8
|
-
if (!inputSchema || typeof inputSchema !== "object") {
|
|
9
|
-
return [];
|
|
10
|
-
}
|
|
11
|
-
const required = inputSchema.required;
|
|
12
|
-
if (!Array.isArray(required)) {
|
|
13
|
-
return [];
|
|
14
|
-
}
|
|
15
|
-
return required.filter((entry) => typeof entry === "string");
|
|
16
|
-
}
|
|
17
|
-
function extractOutputFields(outputSchema) {
|
|
18
|
-
if (!outputSchema || typeof outputSchema !== "object") {
|
|
19
|
-
return [];
|
|
20
|
-
}
|
|
21
|
-
const properties = outputSchema.properties;
|
|
22
|
-
if (!properties || typeof properties !== "object") {
|
|
23
|
-
return [];
|
|
24
|
-
}
|
|
25
|
-
return Object.keys(properties);
|
|
26
|
-
}
|
|
27
|
-
function explainCapability(capabilityId) {
|
|
28
|
-
const card = getOperationCard(capabilityId);
|
|
29
|
-
if (!card) {
|
|
30
|
-
throw new Error(`Unknown capability: ${capabilityId}`);
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
capability_id: card.capability_id,
|
|
34
|
-
purpose: card.description,
|
|
35
|
-
required_inputs: extractRequiredInputs(card.input_schema),
|
|
36
|
-
preferred_route: card.routing.preferred,
|
|
37
|
-
fallback_routes: [...card.routing.fallbacks],
|
|
38
|
-
output_fields: extractOutputFields(card.output_schema)
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// src/agent-interface/tools/list-capabilities-tool.ts
|
|
43
|
-
function listCapabilities() {
|
|
44
|
-
return listOperationCards().map((card) => ({
|
|
45
|
-
capability_id: card.capability_id,
|
|
46
|
-
description: card.description
|
|
47
|
-
}));
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export {
|
|
51
|
-
explainCapability,
|
|
52
|
-
listCapabilities
|
|
53
|
-
};
|
|
54
|
-
//# sourceMappingURL=chunk-2FCPR3XZ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/agent-interface/tools/explain-tool.ts","../src/agent-interface/tools/list-capabilities-tool.ts"],"sourcesContent":["import { getOperationCard } from \"../../core/registry/index.js\"\n\nexport type CapabilityExplanation = {\n capability_id: string\n purpose: string\n required_inputs: string[]\n preferred_route: \"cli\" | \"graphql\" | \"rest\"\n fallback_routes: Array<\"cli\" | \"graphql\" | \"rest\">\n output_fields: string[]\n}\n\nfunction extractRequiredInputs(inputSchema: Record<string, unknown> | null | undefined): string[] {\n if (!inputSchema || typeof inputSchema !== \"object\") {\n return []\n }\n\n const required = (inputSchema as Record<string, unknown>).required\n if (!Array.isArray(required)) {\n return []\n }\n\n return required.filter((entry): entry is string => typeof entry === \"string\")\n}\n\nfunction extractOutputFields(outputSchema: Record<string, unknown> | null | undefined): string[] {\n if (!outputSchema || typeof outputSchema !== \"object\") {\n return []\n }\n\n const properties = (outputSchema as Record<string, unknown>).properties\n if (!properties || typeof properties !== \"object\") {\n return []\n }\n\n return Object.keys(properties)\n}\n\nexport function explainCapability(capabilityId: string): CapabilityExplanation {\n const card = getOperationCard(capabilityId)\n if (!card) {\n throw new Error(`Unknown capability: ${capabilityId}`)\n }\n\n return {\n capability_id: card.capability_id,\n purpose: card.description,\n required_inputs: extractRequiredInputs(card.input_schema),\n preferred_route: card.routing.preferred,\n fallback_routes: [...card.routing.fallbacks],\n output_fields: extractOutputFields(card.output_schema),\n }\n}\n","import { listOperationCards } from \"../../core/registry/index.js\"\n\nexport type CapabilityListItem = {\n capability_id: string\n description: string\n}\n\nexport function listCapabilities(): CapabilityListItem[] {\n return listOperationCards().map((card) => ({\n capability_id: card.capability_id,\n description: card.description,\n }))\n}\n"],"mappings":";;;;;;AAWA,SAAS,sBAAsB,aAAmE;AAChG,MAAI,CAAC,eAAe,OAAO,gBAAgB,UAAU;AACnD,WAAO,CAAC;AAAA,EACV;AAEA,QAAM,WAAY,YAAwC;AAC1D,MAAI,CAAC,MAAM,QAAQ,QAAQ,GAAG;AAC5B,WAAO,CAAC;AAAA,EACV;AAEA,SAAO,SAAS,OAAO,CAAC,UAA2B,OAAO,UAAU,QAAQ;AAC9E;AAEA,SAAS,oBAAoB,cAAoE;AAC/F,MAAI,CAAC,gBAAgB,OAAO,iBAAiB,UAAU;AACrD,WAAO,CAAC;AAAA,EACV;AAEA,QAAM,aAAc,aAAyC;AAC7D,MAAI,CAAC,cAAc,OAAO,eAAe,UAAU;AACjD,WAAO,CAAC;AAAA,EACV;AAEA,SAAO,OAAO,KAAK,UAAU;AAC/B;AAEO,SAAS,kBAAkB,cAA6C;AAC7E,QAAM,OAAO,iBAAiB,YAAY;AAC1C,MAAI,CAAC,MAAM;AACT,UAAM,IAAI,MAAM,uBAAuB,YAAY,EAAE;AAAA,EACvD;AAEA,SAAO;AAAA,IACL,eAAe,KAAK;AAAA,IACpB,SAAS,KAAK;AAAA,IACd,iBAAiB,sBAAsB,KAAK,YAAY;AAAA,IACxD,iBAAiB,KAAK,QAAQ;AAAA,IAC9B,iBAAiB,CAAC,GAAG,KAAK,QAAQ,SAAS;AAAA,IAC3C,eAAe,oBAAoB,KAAK,aAAa;AAAA,EACvD;AACF;;;AC5CO,SAAS,mBAAyC;AACvD,SAAO,mBAAmB,EAAE,IAAI,CAAC,UAAU;AAAA,IACzC,eAAe,KAAK;AAAA,IACpB,aAAa,KAAK;AAAA,EACpB,EAAE;AACJ;","names":[]}
|