@ghx-dev/core 0.1.0-beta.0 → 0.1.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/README.md +181 -114
- package/dist/agent.d.ts +32 -7
- package/dist/agent.js +29 -12
- package/dist/agent.js.map +1 -1
- package/dist/cards/check_run.annotations.list.yaml +35 -0
- package/dist/cards/issue.assignees.update.yaml +27 -0
- package/dist/cards/issue.blocked_by.add.yaml +23 -0
- package/dist/cards/issue.blocked_by.remove.yaml +24 -0
- package/dist/cards/issue.close.yaml +24 -0
- package/dist/cards/issue.comments.create.yaml +24 -0
- package/dist/cards/issue.comments.list.yaml +48 -0
- package/dist/cards/issue.create.yaml +28 -0
- package/dist/cards/issue.delete.yaml +23 -0
- package/dist/cards/issue.labels.update.yaml +27 -0
- package/dist/cards/issue.linked_prs.list.yaml +34 -0
- package/dist/cards/issue.list.yaml +48 -0
- package/dist/cards/issue.milestone.set.yaml +23 -0
- package/dist/cards/issue.parent.remove.yaml +22 -0
- package/dist/cards/issue.parent.set.yaml +23 -0
- package/dist/cards/issue.relations.get.yaml +54 -0
- package/dist/cards/issue.reopen.yaml +24 -0
- package/dist/cards/issue.update.yaml +27 -0
- package/dist/cards/issue.view.yaml +32 -0
- package/dist/cards/pr.assignees.update.yaml +38 -0
- package/dist/cards/pr.branch.update.yaml +23 -0
- package/dist/cards/pr.checks.get_failed.yaml +42 -0
- package/dist/cards/pr.checks.rerun_all.yaml +26 -0
- package/dist/cards/pr.checks.rerun_failed.yaml +26 -0
- package/dist/cards/pr.comment.reply.yaml +23 -0
- package/dist/cards/pr.comment.resolve.yaml +22 -0
- package/dist/cards/pr.comment.unresolve.yaml +22 -0
- package/dist/cards/pr.comments.list.yaml +98 -0
- package/dist/cards/pr.diff.list_files.yaml +43 -0
- package/dist/cards/pr.list.yaml +48 -0
- package/dist/cards/pr.merge.execute.yaml +29 -0
- package/dist/cards/pr.mergeability.view.yaml +27 -0
- package/dist/cards/pr.ready_for_review.set.yaml +24 -0
- package/dist/cards/pr.review.submit_approve.yaml +26 -0
- package/dist/cards/pr.review.submit_comment.yaml +26 -0
- package/dist/cards/pr.review.submit_request_changes.yaml +26 -0
- package/dist/cards/pr.reviewers.request.yaml +31 -0
- package/dist/cards/pr.reviews.list.yaml +47 -0
- package/dist/cards/pr.status.checks.yaml +42 -0
- package/dist/cards/pr.view.yaml +32 -0
- package/dist/cards/project_v2.fields.list.yaml +37 -0
- package/dist/cards/project_v2.item.add_issue.yaml +23 -0
- package/dist/cards/project_v2.item.field.update.yaml +29 -0
- package/dist/cards/project_v2.items.list.yaml +39 -0
- package/dist/cards/project_v2.org.get.yaml +26 -0
- package/dist/cards/project_v2.user.get.yaml +26 -0
- package/dist/cards/release.create_draft.yaml +36 -0
- package/dist/cards/release.get.yaml +30 -0
- package/dist/cards/release.list.yaml +44 -0
- package/dist/cards/release.publish_draft.yaml +36 -0
- package/dist/cards/release.update.yaml +38 -0
- package/dist/cards/repo.issue_types.list.yaml +40 -0
- package/dist/cards/repo.labels.list.yaml +41 -0
- package/dist/cards/repo.view.yaml +34 -0
- package/dist/cards/workflow.get.yaml +30 -0
- package/dist/cards/workflow.list.yaml +40 -0
- package/dist/cards/workflow_dispatch.run.yaml +29 -0
- package/dist/cards/workflow_job.logs.analyze.yaml +33 -0
- package/dist/cards/workflow_job.logs.get.yaml +24 -0
- package/dist/cards/workflow_run.artifacts.list.yaml +40 -0
- package/dist/cards/workflow_run.cancel.yaml +23 -0
- package/dist/cards/workflow_run.get.yaml +33 -0
- package/dist/cards/workflow_run.jobs.list.yaml +35 -0
- package/dist/cards/workflow_run.rerun_all.yaml +23 -0
- package/dist/cards/workflow_run.rerun_failed.yaml +23 -0
- package/dist/cards/workflow_runs.list.yaml +45 -0
- package/dist/chunk-OL4ARD3R.js +242 -0
- package/dist/chunk-OL4ARD3R.js.map +1 -0
- package/dist/chunk-PJ2JKKQE.js +4148 -0
- package/dist/chunk-PJ2JKKQE.js.map +1 -0
- package/dist/{chunk-MMG6CIKK.js → chunk-SCIJMW5P.js} +14 -4
- package/dist/chunk-SCIJMW5P.js.map +1 -0
- package/dist/cli/assets/skills/ghx/SKILL.md +57 -0
- package/dist/cli/index.js +373 -41
- package/dist/cli/index.js.map +1 -1
- package/dist/core/registry/cards/issue.assignees.update.yaml +27 -0
- package/dist/core/registry/cards/issue.blocked_by.add.yaml +23 -0
- package/dist/core/registry/cards/issue.blocked_by.remove.yaml +24 -0
- package/dist/core/registry/cards/issue.close.yaml +24 -0
- package/dist/core/registry/cards/issue.comments.create.yaml +24 -0
- package/dist/core/registry/cards/issue.create.yaml +28 -0
- package/dist/core/registry/cards/issue.delete.yaml +23 -0
- package/dist/core/registry/cards/issue.labels.update.yaml +27 -0
- package/dist/core/registry/cards/issue.linked_prs.list.yaml +34 -0
- package/dist/core/registry/cards/issue.milestone.set.yaml +23 -0
- package/dist/core/registry/cards/issue.parent.remove.yaml +22 -0
- package/dist/core/registry/cards/issue.parent.set.yaml +23 -0
- package/dist/core/registry/cards/issue.relations.get.yaml +54 -0
- package/dist/core/registry/cards/issue.reopen.yaml +24 -0
- package/dist/core/registry/cards/issue.update.yaml +27 -0
- package/dist/core/registry/cards/pr.assignees.update.yaml +38 -0
- package/dist/core/registry/cards/pr.branch.update.yaml +23 -0
- package/dist/core/registry/cards/pr.checks.rerun_all.yaml +26 -0
- package/dist/core/registry/cards/pr.checks.rerun_failed.yaml +26 -0
- package/dist/core/registry/cards/pr.merge.execute.yaml +29 -0
- package/dist/core/registry/cards/pr.review.submit_approve.yaml +26 -0
- package/dist/core/registry/cards/pr.review.submit_comment.yaml +26 -0
- package/dist/core/registry/cards/pr.review.submit_request_changes.yaml +26 -0
- package/dist/core/registry/cards/pr.reviewers.request.yaml +31 -0
- package/dist/core/registry/cards/project_v2.fields.list.yaml +37 -0
- package/dist/core/registry/cards/project_v2.item.add_issue.yaml +23 -0
- package/dist/core/registry/cards/project_v2.item.field.update.yaml +29 -0
- package/dist/core/registry/cards/project_v2.items.list.yaml +39 -0
- package/dist/core/registry/cards/project_v2.org.get.yaml +26 -0
- package/dist/core/registry/cards/project_v2.user.get.yaml +26 -0
- package/dist/core/registry/cards/release.create_draft.yaml +36 -0
- package/dist/core/registry/cards/release.get.yaml +30 -0
- package/dist/core/registry/cards/release.list.yaml +44 -0
- package/dist/core/registry/cards/release.publish_draft.yaml +36 -0
- package/dist/core/registry/cards/release.update.yaml +38 -0
- package/dist/core/registry/cards/repo.issue_types.list.yaml +40 -0
- package/dist/core/registry/cards/repo.labels.list.yaml +41 -0
- package/dist/core/registry/cards/workflow.get.yaml +30 -0
- package/dist/core/registry/cards/workflow.list.yaml +40 -0
- package/dist/core/registry/cards/workflow_dispatch.run.yaml +29 -0
- package/dist/core/registry/cards/workflow_run.artifacts.list.yaml +40 -0
- package/dist/core/registry/cards/workflow_run.cancel.yaml +23 -0
- package/dist/core/registry/cards/workflow_run.get.yaml +33 -0
- package/dist/core/registry/cards/workflow_run.rerun_all.yaml +23 -0
- package/dist/core/registry/cards/workflow_run.rerun_failed.yaml +23 -0
- package/dist/{core/contracts/envelope.d.ts → envelope-BpF6MNCv.d.ts} +15 -3
- package/dist/index.d.ts +470 -22
- package/dist/index.js +7 -29
- package/package.json +49 -20
- package/dist/agent-interface/prompt/main-skill.d.ts +0 -3
- package/dist/agent-interface/prompt/main-skill.js +0 -7
- package/dist/agent-interface/prompt/main-skill.js.map +0 -1
- package/dist/agent-interface/tools/execute-tool.d.ts +0 -16
- package/dist/agent-interface/tools/execute-tool.js +0 -7
- package/dist/agent-interface/tools/execute-tool.js.map +0 -1
- package/dist/agent-interface/tools/explain-tool.d.ts +0 -11
- package/dist/agent-interface/tools/explain-tool.js +0 -9
- package/dist/agent-interface/tools/explain-tool.js.map +0 -1
- package/dist/agent-interface/tools/list-capabilities-tool.d.ts +0 -7
- package/dist/agent-interface/tools/list-capabilities-tool.js +0 -9
- package/dist/agent-interface/tools/list-capabilities-tool.js.map +0 -1
- package/dist/chunk-2W4L5YCC.js +0 -116
- package/dist/chunk-2W4L5YCC.js.map +0 -1
- package/dist/chunk-3RAT5BCB.js +0 -584
- package/dist/chunk-3RAT5BCB.js.map +0 -1
- package/dist/chunk-3RJCF42N.js +0 -16
- package/dist/chunk-3RJCF42N.js.map +0 -1
- package/dist/chunk-573MDG3I.js +0 -18
- package/dist/chunk-573MDG3I.js.map +0 -1
- package/dist/chunk-5JRLVOF2.js +0 -50
- package/dist/chunk-5JRLVOF2.js.map +0 -1
- package/dist/chunk-B6RLMKS4.js +0 -41
- package/dist/chunk-B6RLMKS4.js.map +0 -1
- package/dist/chunk-BJHVAFTN.js +0 -42
- package/dist/chunk-BJHVAFTN.js.map +0 -1
- package/dist/chunk-D746VR3B.js +0 -38
- package/dist/chunk-D746VR3B.js.map +0 -1
- package/dist/chunk-DJIEG6K7.js +0 -20
- package/dist/chunk-DJIEG6K7.js.map +0 -1
- package/dist/chunk-DLKIQBK6.js +0 -106
- package/dist/chunk-DLKIQBK6.js.map +0 -1
- package/dist/chunk-EBRDO4Y6.js +0 -31
- package/dist/chunk-EBRDO4Y6.js.map +0 -1
- package/dist/chunk-FXN6IIT5.js +0 -14
- package/dist/chunk-FXN6IIT5.js.map +0 -1
- package/dist/chunk-GPU4P7UG.js +0 -92
- package/dist/chunk-GPU4P7UG.js.map +0 -1
- package/dist/chunk-MMG6CIKK.js.map +0 -1
- package/dist/chunk-MT4U5DYD.js +0 -88
- package/dist/chunk-MT4U5DYD.js.map +0 -1
- package/dist/chunk-NFF5VF4U.js +0 -28
- package/dist/chunk-NFF5VF4U.js.map +0 -1
- package/dist/chunk-Q4RTT3DV.js +0 -209
- package/dist/chunk-Q4RTT3DV.js.map +0 -1
- package/dist/chunk-QEAMC4IJ.js +0 -34
- package/dist/chunk-QEAMC4IJ.js.map +0 -1
- package/dist/chunk-QX34GTH6.js +0 -30
- package/dist/chunk-QX34GTH6.js.map +0 -1
- package/dist/chunk-QZZC53HF.js +0 -38
- package/dist/chunk-QZZC53HF.js.map +0 -1
- package/dist/chunk-RUQXGZ35.js +0 -34
- package/dist/chunk-RUQXGZ35.js.map +0 -1
- package/dist/chunk-TCLMLVUQ.js +0 -38
- package/dist/chunk-TCLMLVUQ.js.map +0 -1
- package/dist/chunk-TDTKOJKN.js +0 -52
- package/dist/chunk-TDTKOJKN.js.map +0 -1
- package/dist/chunk-UGWIZ3RI.js +0 -7
- package/dist/chunk-UGWIZ3RI.js.map +0 -1
- package/dist/chunk-UOJWOHRM.js +0 -16
- package/dist/chunk-UOJWOHRM.js.map +0 -1
- package/dist/chunk-VD5NXQP7.js +0 -42
- package/dist/chunk-VD5NXQP7.js.map +0 -1
- package/dist/chunk-W2TKG2UL.js +0 -37
- package/dist/chunk-W2TKG2UL.js.map +0 -1
- package/dist/chunk-W6ROKCY5.js +0 -28
- package/dist/chunk-W6ROKCY5.js.map +0 -1
- package/dist/chunk-WYSY75U7.js +0 -156
- package/dist/chunk-WYSY75U7.js.map +0 -1
- package/dist/chunk-YNNDBMNR.js +0 -113
- package/dist/chunk-YNNDBMNR.js.map +0 -1
- package/dist/chunk-YNQNHCRS.js +0 -198
- package/dist/chunk-YNQNHCRS.js.map +0 -1
- package/dist/chunk-YQDQX4BT.js +0 -624
- package/dist/chunk-YQDQX4BT.js.map +0 -1
- package/dist/cli/commands/capabilities-explain.d.ts +0 -3
- package/dist/cli/commands/capabilities-explain.js +0 -10
- package/dist/cli/commands/capabilities-explain.js.map +0 -1
- package/dist/cli/commands/capabilities-list.d.ts +0 -3
- package/dist/cli/commands/capabilities-list.js +0 -10
- package/dist/cli/commands/capabilities-list.js.map +0 -1
- package/dist/cli/commands/doctor.d.ts +0 -3
- package/dist/cli/commands/doctor.js +0 -7
- package/dist/cli/commands/doctor.js.map +0 -1
- package/dist/cli/commands/routes.d.ts +0 -3
- package/dist/cli/commands/routes.js +0 -7
- package/dist/cli/commands/routes.js.map +0 -1
- package/dist/cli/commands/run.d.ts +0 -3
- package/dist/cli/commands/run.js +0 -31
- package/dist/cli/commands/run.js.map +0 -1
- package/dist/cli/commands/setup.d.ts +0 -3
- package/dist/cli/commands/setup.js +0 -7
- package/dist/cli/commands/setup.js.map +0 -1
- package/dist/cli/formatters/json.d.ts +0 -3
- package/dist/cli/formatters/json.js +0 -8
- package/dist/cli/formatters/json.js.map +0 -1
- package/dist/cli/formatters/table.d.ts +0 -3
- package/dist/cli/formatters/table.js +0 -8
- package/dist/cli/formatters/table.js.map +0 -1
- package/dist/core/contracts/envelope.js +0 -1
- package/dist/core/contracts/envelope.js.map +0 -1
- package/dist/core/contracts/task.d.ts +0 -7
- package/dist/core/contracts/task.js +0 -1
- package/dist/core/contracts/task.js.map +0 -1
- package/dist/core/contracts/tasks/check_run.annotations.list.d.ts +0 -5
- package/dist/core/contracts/tasks/check_run.annotations.list.js +0 -8
- package/dist/core/contracts/tasks/check_run.annotations.list.js.map +0 -1
- package/dist/core/contracts/tasks/issue.comments.list.d.ts +0 -5
- package/dist/core/contracts/tasks/issue.comments.list.js +0 -8
- package/dist/core/contracts/tasks/issue.comments.list.js.map +0 -1
- package/dist/core/contracts/tasks/issue.list.d.ts +0 -5
- package/dist/core/contracts/tasks/issue.list.js +0 -8
- package/dist/core/contracts/tasks/issue.list.js.map +0 -1
- package/dist/core/contracts/tasks/issue.view.d.ts +0 -5
- package/dist/core/contracts/tasks/issue.view.js +0 -8
- package/dist/core/contracts/tasks/issue.view.js.map +0 -1
- package/dist/core/contracts/tasks/pr.checks.get_failed.d.ts +0 -5
- package/dist/core/contracts/tasks/pr.checks.get_failed.js +0 -8
- package/dist/core/contracts/tasks/pr.checks.get_failed.js.map +0 -1
- package/dist/core/contracts/tasks/pr.comment.reply.d.ts +0 -5
- package/dist/core/contracts/tasks/pr.comment.reply.js +0 -8
- package/dist/core/contracts/tasks/pr.comment.reply.js.map +0 -1
- package/dist/core/contracts/tasks/pr.comment.resolve.d.ts +0 -5
- package/dist/core/contracts/tasks/pr.comment.resolve.js +0 -8
- package/dist/core/contracts/tasks/pr.comment.resolve.js.map +0 -1
- package/dist/core/contracts/tasks/pr.comment.unresolve.d.ts +0 -5
- package/dist/core/contracts/tasks/pr.comment.unresolve.js +0 -8
- package/dist/core/contracts/tasks/pr.comment.unresolve.js.map +0 -1
- package/dist/core/contracts/tasks/pr.comments.list.d.ts +0 -5
- package/dist/core/contracts/tasks/pr.comments.list.js +0 -8
- package/dist/core/contracts/tasks/pr.comments.list.js.map +0 -1
- package/dist/core/contracts/tasks/pr.diff.list_files.d.ts +0 -5
- package/dist/core/contracts/tasks/pr.diff.list_files.js +0 -8
- package/dist/core/contracts/tasks/pr.diff.list_files.js.map +0 -1
- package/dist/core/contracts/tasks/pr.list.d.ts +0 -5
- package/dist/core/contracts/tasks/pr.list.js +0 -8
- package/dist/core/contracts/tasks/pr.list.js.map +0 -1
- package/dist/core/contracts/tasks/pr.mergeability.view.d.ts +0 -5
- package/dist/core/contracts/tasks/pr.mergeability.view.js +0 -8
- package/dist/core/contracts/tasks/pr.mergeability.view.js.map +0 -1
- package/dist/core/contracts/tasks/pr.ready_for_review.set.d.ts +0 -5
- package/dist/core/contracts/tasks/pr.ready_for_review.set.js +0 -8
- package/dist/core/contracts/tasks/pr.ready_for_review.set.js.map +0 -1
- package/dist/core/contracts/tasks/pr.reviews.list.d.ts +0 -5
- package/dist/core/contracts/tasks/pr.reviews.list.js +0 -8
- package/dist/core/contracts/tasks/pr.reviews.list.js.map +0 -1
- package/dist/core/contracts/tasks/pr.status.checks.d.ts +0 -5
- package/dist/core/contracts/tasks/pr.status.checks.js +0 -8
- package/dist/core/contracts/tasks/pr.status.checks.js.map +0 -1
- package/dist/core/contracts/tasks/pr.view.d.ts +0 -5
- package/dist/core/contracts/tasks/pr.view.js +0 -8
- package/dist/core/contracts/tasks/pr.view.js.map +0 -1
- package/dist/core/contracts/tasks/repo.view.d.ts +0 -5
- package/dist/core/contracts/tasks/repo.view.js +0 -8
- package/dist/core/contracts/tasks/repo.view.js.map +0 -1
- package/dist/core/contracts/tasks/workflow_job.logs.analyze.d.ts +0 -5
- package/dist/core/contracts/tasks/workflow_job.logs.analyze.js +0 -8
- package/dist/core/contracts/tasks/workflow_job.logs.analyze.js.map +0 -1
- package/dist/core/contracts/tasks/workflow_job.logs.get.d.ts +0 -5
- package/dist/core/contracts/tasks/workflow_job.logs.get.js +0 -8
- package/dist/core/contracts/tasks/workflow_job.logs.get.js.map +0 -1
- package/dist/core/contracts/tasks/workflow_run.jobs.list.d.ts +0 -5
- package/dist/core/contracts/tasks/workflow_run.jobs.list.js +0 -8
- package/dist/core/contracts/tasks/workflow_run.jobs.list.js.map +0 -1
- package/dist/core/contracts/tasks/workflow_runs.list.d.ts +0 -5
- package/dist/core/contracts/tasks/workflow_runs.list.js +0 -8
- package/dist/core/contracts/tasks/workflow_runs.list.js.map +0 -1
- package/dist/core/errors/codes.d.ts +0 -13
- package/dist/core/errors/codes.js +0 -7
- package/dist/core/errors/codes.js.map +0 -1
- package/dist/core/errors/map-error.d.ts +0 -5
- package/dist/core/errors/map-error.js +0 -8
- package/dist/core/errors/map-error.js.map +0 -1
- package/dist/core/errors/retryability.d.ts +0 -3
- package/dist/core/errors/retryability.js +0 -8
- package/dist/core/errors/retryability.js.map +0 -1
- package/dist/core/execute/execute.d.ts +0 -28
- package/dist/core/execute/execute.js +0 -11
- package/dist/core/execute/execute.js.map +0 -1
- package/dist/core/execution/adapters/cli-adapter.d.ts +0 -22
- package/dist/core/execution/adapters/cli-adapter.js +0 -69
- package/dist/core/execution/adapters/cli-adapter.js.map +0 -1
- package/dist/core/execution/adapters/cli-capability-adapter.d.ts +0 -16
- package/dist/core/execution/adapters/cli-capability-adapter.js +0 -11
- package/dist/core/execution/adapters/cli-capability-adapter.js.map +0 -1
- package/dist/core/execution/adapters/graphql-adapter.d.ts +0 -25
- package/dist/core/execution/adapters/graphql-adapter.js +0 -44
- package/dist/core/execution/adapters/graphql-adapter.js.map +0 -1
- package/dist/core/execution/adapters/graphql-capability-adapter.d.ts +0 -20
- package/dist/core/execution/adapters/graphql-capability-adapter.js +0 -11
- package/dist/core/execution/adapters/graphql-capability-adapter.js.map +0 -1
- package/dist/core/execution/adapters/rest-adapter.d.ts +0 -3
- package/dist/core/execution/adapters/rest-adapter.js +0 -8
- package/dist/core/execution/adapters/rest-adapter.js.map +0 -1
- package/dist/core/execution/cli/safe-runner.d.ts +0 -12
- package/dist/core/execution/cli/safe-runner.js +0 -7
- package/dist/core/execution/cli/safe-runner.js.map +0 -1
- package/dist/core/execution/normalizer.d.ts +0 -13
- package/dist/core/execution/normalizer.js +0 -9
- package/dist/core/execution/normalizer.js.map +0 -1
- package/dist/core/execution/preflight.d.ts +0 -24
- package/dist/core/execution/preflight.js +0 -8
- package/dist/core/execution/preflight.js.map +0 -1
- package/dist/core/registry/index.d.ts +0 -15
- package/dist/core/registry/index.js +0 -12
- package/dist/core/registry/index.js.map +0 -1
- package/dist/core/registry/operation-card-schema.d.ts +0 -167
- package/dist/core/registry/operation-card-schema.js +0 -7
- package/dist/core/registry/operation-card-schema.js.map +0 -1
- package/dist/core/registry/schema-validator.d.ts +0 -16
- package/dist/core/registry/schema-validator.js +0 -9
- package/dist/core/registry/schema-validator.js.map +0 -1
- package/dist/core/registry/types.d.ts +0 -51
- package/dist/core/registry/types.js +0 -1
- package/dist/core/registry/types.js.map +0 -1
- package/dist/core/routing/capability-registry.d.ts +0 -8
- package/dist/core/routing/capability-registry.js +0 -15
- package/dist/core/routing/capability-registry.js.map +0 -1
- package/dist/core/routing/engine.d.ts +0 -32
- package/dist/core/routing/engine.js +0 -23
- package/dist/core/routing/engine.js.map +0 -1
- package/dist/core/routing/policy.d.ts +0 -3
- package/dist/core/routing/policy.js +0 -7
- package/dist/core/routing/policy.js.map +0 -1
- package/dist/core/routing/reason-codes.d.ts +0 -4
- package/dist/core/routing/reason-codes.js +0 -15
- package/dist/core/routing/reason-codes.js.map +0 -1
- package/dist/core/telemetry/logger.d.ts +0 -8
- package/dist/core/telemetry/logger.js +0 -9
- package/dist/core/telemetry/logger.js.map +0 -1
- package/dist/core/telemetry/metrics.d.ts +0 -7
- package/dist/core/telemetry/metrics.js +0 -1
- package/dist/core/telemetry/metrics.js.map +0 -1
- package/dist/gql/client.d.ts +0 -183
- package/dist/gql/client.js +0 -17
- package/dist/gql/client.js.map +0 -1
- package/dist/gql/generated/common-types.d.ts +0 -36
- package/dist/gql/generated/common-types.js +0 -1
- package/dist/gql/generated/common-types.js.map +0 -1
- package/dist/gql/operations/issue-comments-list.generated.d.ts +0 -59
- package/dist/gql/operations/issue-comments-list.generated.js +0 -9
- package/dist/gql/operations/issue-comments-list.generated.js.map +0 -1
- package/dist/gql/operations/issue-list.generated.d.ts +0 -40
- package/dist/gql/operations/issue-list.generated.js +0 -9
- package/dist/gql/operations/issue-list.generated.js.map +0 -1
- package/dist/gql/operations/issue-view.generated.d.ts +0 -31
- package/dist/gql/operations/issue-view.generated.js +0 -9
- package/dist/gql/operations/issue-view.generated.js.map +0 -1
- package/dist/gql/operations/pr-comment-reply.generated.d.ts +0 -26
- package/dist/gql/operations/pr-comment-reply.generated.js +0 -25
- package/dist/gql/operations/pr-comment-reply.generated.js.map +0 -1
- package/dist/gql/operations/pr-comment-resolve.generated.d.ts +0 -26
- package/dist/gql/operations/pr-comment-resolve.generated.js +0 -24
- package/dist/gql/operations/pr-comment-resolve.generated.js.map +0 -1
- package/dist/gql/operations/pr-comment-unresolve.generated.d.ts +0 -26
- package/dist/gql/operations/pr-comment-unresolve.generated.js +0 -24
- package/dist/gql/operations/pr-comment-unresolve.generated.js.map +0 -1
- package/dist/gql/operations/pr-comments-list.generated.d.ts +0 -84
- package/dist/gql/operations/pr-comments-list.generated.js +0 -58
- package/dist/gql/operations/pr-comments-list.generated.js.map +0 -1
- package/dist/gql/operations/pr-diff-list-files.generated.d.ts +0 -42
- package/dist/gql/operations/pr-diff-list-files.generated.js +0 -9
- package/dist/gql/operations/pr-diff-list-files.generated.js.map +0 -1
- package/dist/gql/operations/pr-list.generated.d.ts +0 -40
- package/dist/gql/operations/pr-list.generated.js +0 -9
- package/dist/gql/operations/pr-list.generated.js.map +0 -1
- package/dist/gql/operations/pr-reviews-list.generated.d.ts +0 -64
- package/dist/gql/operations/pr-reviews-list.generated.js +0 -9
- package/dist/gql/operations/pr-reviews-list.generated.js.map +0 -1
- package/dist/gql/operations/pr-view.generated.d.ts +0 -31
- package/dist/gql/operations/pr-view.generated.js +0 -9
- package/dist/gql/operations/pr-view.generated.js.map +0 -1
- package/dist/gql/operations/repo-view.generated.d.ts +0 -33
- package/dist/gql/operations/repo-view.generated.js +0 -9
- package/dist/gql/operations/repo-view.generated.js.map +0 -1
- package/dist/shared/constants.d.ts +0 -3
- package/dist/shared/constants.js +0 -6
- package/dist/shared/constants.js.map +0 -1
- package/dist/shared/types.d.ts +0 -3
- package/dist/shared/types.js +0 -1
- package/dist/shared/types.js.map +0 -1
- package/dist/shared/utils.d.ts +0 -3
- package/dist/shared/utils.js +0 -8
- package/dist/shared/utils.js.map +0 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
capability_id: workflow_runs.list
|
|
2
|
+
version: "1.0.0"
|
|
3
|
+
description: List workflow runs for a repository.
|
|
4
|
+
input_schema:
|
|
5
|
+
type: object
|
|
6
|
+
required: [owner, name]
|
|
7
|
+
properties:
|
|
8
|
+
owner: { type: string, minLength: 1 }
|
|
9
|
+
name: { type: string, minLength: 1 }
|
|
10
|
+
first: { type: integer, minimum: 1 }
|
|
11
|
+
branch: { type: string, minLength: 1 }
|
|
12
|
+
event: { type: string, minLength: 1 }
|
|
13
|
+
status: { type: string, minLength: 1 }
|
|
14
|
+
additionalProperties: false
|
|
15
|
+
output_schema:
|
|
16
|
+
type: object
|
|
17
|
+
required: [items, pageInfo]
|
|
18
|
+
properties:
|
|
19
|
+
items:
|
|
20
|
+
type: array
|
|
21
|
+
items:
|
|
22
|
+
type: object
|
|
23
|
+
required: [id, workflowName, status, conclusion, headBranch, url]
|
|
24
|
+
properties:
|
|
25
|
+
id: { type: integer, minimum: 0 }
|
|
26
|
+
workflowName: { type: [string, "null"] }
|
|
27
|
+
status: { type: [string, "null"] }
|
|
28
|
+
conclusion: { type: [string, "null"] }
|
|
29
|
+
headBranch: { type: [string, "null"] }
|
|
30
|
+
url: { type: [string, "null"] }
|
|
31
|
+
additionalProperties: false
|
|
32
|
+
pageInfo:
|
|
33
|
+
type: object
|
|
34
|
+
required: [hasNextPage, endCursor]
|
|
35
|
+
properties:
|
|
36
|
+
hasNextPage: { type: boolean }
|
|
37
|
+
endCursor: { type: [string, "null"] }
|
|
38
|
+
additionalProperties: false
|
|
39
|
+
additionalProperties: false
|
|
40
|
+
routing:
|
|
41
|
+
preferred: cli
|
|
42
|
+
fallbacks: []
|
|
43
|
+
cli:
|
|
44
|
+
command: run list
|
|
45
|
+
jsonFields: [databaseId,workflowName,status,conclusion,headBranch,url]
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
// src/core/registry/index.ts
|
|
2
|
+
import { readdirSync, readFileSync } from "fs";
|
|
3
|
+
import { dirname, extname, join } from "path";
|
|
4
|
+
import { fileURLToPath } from "url";
|
|
5
|
+
import { Ajv } from "ajv";
|
|
6
|
+
import { load as parseYaml } from "js-yaml";
|
|
7
|
+
|
|
8
|
+
// src/core/registry/operation-card-schema.ts
|
|
9
|
+
var operationCardSchema = {
|
|
10
|
+
$id: "https://ghx.local/schemas/operation-card.json",
|
|
11
|
+
type: "object",
|
|
12
|
+
required: ["capability_id", "version", "description", "input_schema", "output_schema", "routing"],
|
|
13
|
+
properties: {
|
|
14
|
+
capability_id: { type: "string", minLength: 1 },
|
|
15
|
+
version: { type: "string", minLength: 1 },
|
|
16
|
+
description: { type: "string", minLength: 1 },
|
|
17
|
+
input_schema: { type: "object" },
|
|
18
|
+
output_schema: { type: "object" },
|
|
19
|
+
routing: {
|
|
20
|
+
type: "object",
|
|
21
|
+
required: ["preferred", "fallbacks"],
|
|
22
|
+
properties: {
|
|
23
|
+
preferred: { enum: ["cli", "graphql", "rest"] },
|
|
24
|
+
fallbacks: {
|
|
25
|
+
type: "array",
|
|
26
|
+
items: { enum: ["cli", "graphql", "rest"] }
|
|
27
|
+
},
|
|
28
|
+
suitability: {
|
|
29
|
+
type: "array",
|
|
30
|
+
items: {
|
|
31
|
+
type: "object",
|
|
32
|
+
required: ["when", "predicate", "reason"],
|
|
33
|
+
properties: {
|
|
34
|
+
when: { enum: ["always", "env", "params"] },
|
|
35
|
+
predicate: { type: "string", minLength: 1 },
|
|
36
|
+
reason: { type: "string", minLength: 1 }
|
|
37
|
+
},
|
|
38
|
+
additionalProperties: false
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
notes: {
|
|
42
|
+
type: "array",
|
|
43
|
+
items: { type: "string" }
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
additionalProperties: false
|
|
47
|
+
},
|
|
48
|
+
graphql: {
|
|
49
|
+
type: "object",
|
|
50
|
+
required: ["operationName", "documentPath"],
|
|
51
|
+
properties: {
|
|
52
|
+
operationName: { type: "string", minLength: 1 },
|
|
53
|
+
documentPath: { type: "string", minLength: 1 },
|
|
54
|
+
variables: { type: "object" },
|
|
55
|
+
limits: {
|
|
56
|
+
type: "object",
|
|
57
|
+
properties: {
|
|
58
|
+
maxPageSize: { type: "number" }
|
|
59
|
+
},
|
|
60
|
+
additionalProperties: false
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
additionalProperties: false
|
|
64
|
+
},
|
|
65
|
+
cli: {
|
|
66
|
+
type: "object",
|
|
67
|
+
required: ["command"],
|
|
68
|
+
properties: {
|
|
69
|
+
command: { type: "string", minLength: 1 },
|
|
70
|
+
jsonFields: {
|
|
71
|
+
type: "array",
|
|
72
|
+
items: { type: "string", minLength: 1 }
|
|
73
|
+
},
|
|
74
|
+
jq: { type: "string" },
|
|
75
|
+
limits: {
|
|
76
|
+
type: "object",
|
|
77
|
+
properties: {
|
|
78
|
+
maxItemsPerCall: { type: "number" }
|
|
79
|
+
},
|
|
80
|
+
additionalProperties: false
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
additionalProperties: false
|
|
84
|
+
},
|
|
85
|
+
rest: {
|
|
86
|
+
type: "object",
|
|
87
|
+
required: ["endpoints"],
|
|
88
|
+
properties: {
|
|
89
|
+
endpoints: {
|
|
90
|
+
type: "array",
|
|
91
|
+
items: {
|
|
92
|
+
type: "object",
|
|
93
|
+
required: ["method", "path"],
|
|
94
|
+
properties: {
|
|
95
|
+
method: { type: "string" },
|
|
96
|
+
path: { type: "string" }
|
|
97
|
+
},
|
|
98
|
+
additionalProperties: false
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
additionalProperties: false
|
|
103
|
+
},
|
|
104
|
+
examples: {
|
|
105
|
+
type: "array",
|
|
106
|
+
items: {
|
|
107
|
+
type: "object",
|
|
108
|
+
required: ["title", "input"],
|
|
109
|
+
properties: {
|
|
110
|
+
title: { type: "string" },
|
|
111
|
+
input: { type: "object" }
|
|
112
|
+
},
|
|
113
|
+
additionalProperties: false
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
additionalProperties: false
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
// src/core/registry/index.ts
|
|
121
|
+
var ajv = new Ajv({ allErrors: true, strict: false });
|
|
122
|
+
var validateCard = ajv.compile(operationCardSchema);
|
|
123
|
+
function cardDirectory() {
|
|
124
|
+
const currentDir = dirname(fileURLToPath(import.meta.url));
|
|
125
|
+
return join(currentDir, "cards");
|
|
126
|
+
}
|
|
127
|
+
function loadCardsFromYaml() {
|
|
128
|
+
const directory = cardDirectory();
|
|
129
|
+
const preferredOrder = [
|
|
130
|
+
"repo.view",
|
|
131
|
+
"repo.labels.list",
|
|
132
|
+
"repo.issue_types.list",
|
|
133
|
+
"issue.view",
|
|
134
|
+
"issue.list",
|
|
135
|
+
"issue.comments.list",
|
|
136
|
+
"issue.create",
|
|
137
|
+
"issue.update",
|
|
138
|
+
"issue.close",
|
|
139
|
+
"issue.reopen",
|
|
140
|
+
"issue.delete",
|
|
141
|
+
"issue.labels.update",
|
|
142
|
+
"issue.assignees.update",
|
|
143
|
+
"issue.milestone.set",
|
|
144
|
+
"issue.comments.create",
|
|
145
|
+
"issue.linked_prs.list",
|
|
146
|
+
"issue.relations.get",
|
|
147
|
+
"issue.parent.set",
|
|
148
|
+
"issue.parent.remove",
|
|
149
|
+
"issue.blocked_by.add",
|
|
150
|
+
"issue.blocked_by.remove",
|
|
151
|
+
"pr.view",
|
|
152
|
+
"pr.list",
|
|
153
|
+
"pr.comments.list",
|
|
154
|
+
"pr.reviews.list",
|
|
155
|
+
"pr.diff.list_files",
|
|
156
|
+
"pr.status.checks",
|
|
157
|
+
"pr.checks.get_failed",
|
|
158
|
+
"pr.mergeability.view",
|
|
159
|
+
"pr.comment.reply",
|
|
160
|
+
"pr.comment.resolve",
|
|
161
|
+
"pr.comment.unresolve",
|
|
162
|
+
"pr.ready_for_review.set",
|
|
163
|
+
"pr.review.submit_approve",
|
|
164
|
+
"pr.review.submit_request_changes",
|
|
165
|
+
"pr.review.submit_comment",
|
|
166
|
+
"pr.merge.execute",
|
|
167
|
+
"pr.checks.rerun_failed",
|
|
168
|
+
"pr.checks.rerun_all",
|
|
169
|
+
"pr.reviewers.request",
|
|
170
|
+
"pr.assignees.update",
|
|
171
|
+
"pr.branch.update",
|
|
172
|
+
"check_run.annotations.list",
|
|
173
|
+
"workflow_runs.list",
|
|
174
|
+
"workflow_run.jobs.list",
|
|
175
|
+
"workflow_job.logs.get",
|
|
176
|
+
"workflow_job.logs.analyze",
|
|
177
|
+
"workflow.list",
|
|
178
|
+
"workflow.get",
|
|
179
|
+
"workflow_run.get",
|
|
180
|
+
"workflow_run.rerun_all",
|
|
181
|
+
"workflow_run.cancel",
|
|
182
|
+
"workflow_run.artifacts.list",
|
|
183
|
+
"project_v2.org.get",
|
|
184
|
+
"project_v2.user.get",
|
|
185
|
+
"project_v2.fields.list",
|
|
186
|
+
"project_v2.items.list",
|
|
187
|
+
"project_v2.item.add_issue",
|
|
188
|
+
"project_v2.item.field.update",
|
|
189
|
+
"release.list",
|
|
190
|
+
"release.get",
|
|
191
|
+
"release.create_draft",
|
|
192
|
+
"release.update",
|
|
193
|
+
"release.publish_draft",
|
|
194
|
+
"workflow_dispatch.run",
|
|
195
|
+
"workflow_run.rerun_failed"
|
|
196
|
+
];
|
|
197
|
+
const orderMap = new Map(preferredOrder.map((id, index) => [id, index]));
|
|
198
|
+
const entries = readdirSync(directory).filter((entry) => {
|
|
199
|
+
const extension = extname(entry).toLowerCase();
|
|
200
|
+
return extension === ".yaml" || extension === ".yml";
|
|
201
|
+
}).sort((a, b) => {
|
|
202
|
+
const capabilityA = a.replace(/\.ya?ml$/i, "");
|
|
203
|
+
const capabilityB = b.replace(/\.ya?ml$/i, "");
|
|
204
|
+
const orderA = orderMap.get(capabilityA) ?? Number.MAX_SAFE_INTEGER;
|
|
205
|
+
const orderB = orderMap.get(capabilityB) ?? Number.MAX_SAFE_INTEGER;
|
|
206
|
+
if (orderA !== orderB) {
|
|
207
|
+
return orderA - orderB;
|
|
208
|
+
}
|
|
209
|
+
return a.localeCompare(b);
|
|
210
|
+
});
|
|
211
|
+
return entries.map((entry) => {
|
|
212
|
+
const filePath = join(directory, entry);
|
|
213
|
+
const raw = readFileSync(filePath, "utf8");
|
|
214
|
+
const parsed = parseYaml(raw);
|
|
215
|
+
const validation = validateOperationCard(parsed);
|
|
216
|
+
if (!validation.ok) {
|
|
217
|
+
throw new Error(`Invalid operation card '${entry}': ${validation.error}`);
|
|
218
|
+
}
|
|
219
|
+
return parsed;
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
function validateOperationCard(card) {
|
|
223
|
+
const valid = validateCard(card);
|
|
224
|
+
if (!valid) {
|
|
225
|
+
const message = validateCard.errors?.[0]?.message ?? "Operation card schema validation failed";
|
|
226
|
+
return { ok: false, error: message };
|
|
227
|
+
}
|
|
228
|
+
return { ok: true };
|
|
229
|
+
}
|
|
230
|
+
var operationCards = loadCardsFromYaml();
|
|
231
|
+
function listOperationCards() {
|
|
232
|
+
return [...operationCards];
|
|
233
|
+
}
|
|
234
|
+
function getOperationCard(capabilityId) {
|
|
235
|
+
return operationCards.find((card) => card.capability_id === capabilityId);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export {
|
|
239
|
+
listOperationCards,
|
|
240
|
+
getOperationCard
|
|
241
|
+
};
|
|
242
|
+
//# sourceMappingURL=chunk-OL4ARD3R.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/core/registry/index.ts","../src/core/registry/operation-card-schema.ts"],"sourcesContent":["import { readdirSync, readFileSync } from \"node:fs\"\nimport { dirname, extname, join } from \"node:path\"\nimport { fileURLToPath } from \"node:url\"\n\nimport { Ajv } from \"ajv\"\nimport { load as parseYaml } from \"js-yaml\"\nimport { operationCardSchema } from \"./operation-card-schema.js\"\nimport type { OperationCard } from \"./types.js\"\n\nconst ajv = new Ajv({ allErrors: true, strict: false })\nconst validateCard = ajv.compile(operationCardSchema)\n\nfunction cardDirectory(): string {\n const currentDir = dirname(fileURLToPath(import.meta.url))\n return join(currentDir, \"cards\")\n}\n\nfunction loadCardsFromYaml(): OperationCard[] {\n const directory = cardDirectory()\n const preferredOrder = [\n \"repo.view\",\n \"repo.labels.list\",\n \"repo.issue_types.list\",\n \"issue.view\",\n \"issue.list\",\n \"issue.comments.list\",\n \"issue.create\",\n \"issue.update\",\n \"issue.close\",\n \"issue.reopen\",\n \"issue.delete\",\n \"issue.labels.update\",\n \"issue.assignees.update\",\n \"issue.milestone.set\",\n \"issue.comments.create\",\n \"issue.linked_prs.list\",\n \"issue.relations.get\",\n \"issue.parent.set\",\n \"issue.parent.remove\",\n \"issue.blocked_by.add\",\n \"issue.blocked_by.remove\",\n \"pr.view\",\n \"pr.list\",\n \"pr.comments.list\",\n \"pr.reviews.list\",\n \"pr.diff.list_files\",\n \"pr.status.checks\",\n \"pr.checks.get_failed\",\n \"pr.mergeability.view\",\n \"pr.comment.reply\",\n \"pr.comment.resolve\",\n \"pr.comment.unresolve\",\n \"pr.ready_for_review.set\",\n \"pr.review.submit_approve\",\n \"pr.review.submit_request_changes\",\n \"pr.review.submit_comment\",\n \"pr.merge.execute\",\n \"pr.checks.rerun_failed\",\n \"pr.checks.rerun_all\",\n \"pr.reviewers.request\",\n \"pr.assignees.update\",\n \"pr.branch.update\",\n \"check_run.annotations.list\",\n \"workflow_runs.list\",\n \"workflow_run.jobs.list\",\n \"workflow_job.logs.get\",\n \"workflow_job.logs.analyze\",\n \"workflow.list\",\n \"workflow.get\",\n \"workflow_run.get\",\n \"workflow_run.rerun_all\",\n \"workflow_run.cancel\",\n \"workflow_run.artifacts.list\",\n \"project_v2.org.get\",\n \"project_v2.user.get\",\n \"project_v2.fields.list\",\n \"project_v2.items.list\",\n \"project_v2.item.add_issue\",\n \"project_v2.item.field.update\",\n \"release.list\",\n \"release.get\",\n \"release.create_draft\",\n \"release.update\",\n \"release.publish_draft\",\n \"workflow_dispatch.run\",\n \"workflow_run.rerun_failed\",\n ]\n const orderMap = new Map(preferredOrder.map((id, index) => [id, index]))\n\n const entries = readdirSync(directory)\n .filter((entry) => {\n const extension = extname(entry).toLowerCase()\n return extension === \".yaml\" || extension === \".yml\"\n })\n .sort((a, b) => {\n const capabilityA = a.replace(/\\.ya?ml$/i, \"\")\n const capabilityB = b.replace(/\\.ya?ml$/i, \"\")\n const orderA = orderMap.get(capabilityA) ?? Number.MAX_SAFE_INTEGER\n const orderB = orderMap.get(capabilityB) ?? Number.MAX_SAFE_INTEGER\n\n if (orderA !== orderB) {\n return orderA - orderB\n }\n\n return a.localeCompare(b)\n })\n\n return entries.map((entry): OperationCard => {\n const filePath = join(directory, entry)\n const raw = readFileSync(filePath, \"utf8\")\n const parsed = parseYaml(raw)\n const validation = validateOperationCard(parsed)\n if (!validation.ok) {\n throw new Error(`Invalid operation card '${entry}': ${validation.error}`)\n }\n\n return parsed as OperationCard\n })\n}\n\nexport function validateOperationCard(card: unknown): { ok: true } | { ok: false; error: string } {\n const valid = validateCard(card)\n if (!valid) {\n const message = validateCard.errors?.[0]?.message ?? \"Operation card schema validation failed\"\n return { ok: false, error: message }\n }\n\n return { ok: true }\n}\n\nconst operationCards = loadCardsFromYaml()\n\nexport function listOperationCards(): OperationCard[] {\n return [...operationCards]\n}\n\nexport function getOperationCard(capabilityId: string): OperationCard | undefined {\n return operationCards.find((card) => card.capability_id === capabilityId)\n}\n","export const operationCardSchema = {\n $id: \"https://ghx.local/schemas/operation-card.json\",\n type: \"object\",\n required: [\"capability_id\", \"version\", \"description\", \"input_schema\", \"output_schema\", \"routing\"],\n properties: {\n capability_id: { type: \"string\", minLength: 1 },\n version: { type: \"string\", minLength: 1 },\n description: { type: \"string\", minLength: 1 },\n input_schema: { type: \"object\" },\n output_schema: { type: \"object\" },\n routing: {\n type: \"object\",\n required: [\"preferred\", \"fallbacks\"],\n properties: {\n preferred: { enum: [\"cli\", \"graphql\", \"rest\"] },\n fallbacks: {\n type: \"array\",\n items: { enum: [\"cli\", \"graphql\", \"rest\"] },\n },\n suitability: {\n type: \"array\",\n items: {\n type: \"object\",\n required: [\"when\", \"predicate\", \"reason\"],\n properties: {\n when: { enum: [\"always\", \"env\", \"params\"] },\n predicate: { type: \"string\", minLength: 1 },\n reason: { type: \"string\", minLength: 1 },\n },\n additionalProperties: false,\n },\n },\n notes: {\n type: \"array\",\n items: { type: \"string\" },\n },\n },\n additionalProperties: false,\n },\n graphql: {\n type: \"object\",\n required: [\"operationName\", \"documentPath\"],\n properties: {\n operationName: { type: \"string\", minLength: 1 },\n documentPath: { type: \"string\", minLength: 1 },\n variables: { type: \"object\" },\n limits: {\n type: \"object\",\n properties: {\n maxPageSize: { type: \"number\" },\n },\n additionalProperties: false,\n },\n },\n additionalProperties: false,\n },\n cli: {\n type: \"object\",\n required: [\"command\"],\n properties: {\n command: { type: \"string\", minLength: 1 },\n jsonFields: {\n type: \"array\",\n items: { type: \"string\", minLength: 1 },\n },\n jq: { type: \"string\" },\n limits: {\n type: \"object\",\n properties: {\n maxItemsPerCall: { type: \"number\" },\n },\n additionalProperties: false,\n },\n },\n additionalProperties: false,\n },\n rest: {\n type: \"object\",\n required: [\"endpoints\"],\n properties: {\n endpoints: {\n type: \"array\",\n items: {\n type: \"object\",\n required: [\"method\", \"path\"],\n properties: {\n method: { type: \"string\" },\n path: { type: \"string\" },\n },\n additionalProperties: false,\n },\n },\n },\n additionalProperties: false,\n },\n examples: {\n type: \"array\",\n items: {\n type: \"object\",\n required: [\"title\", \"input\"],\n properties: {\n title: { type: \"string\" },\n input: { type: \"object\" },\n },\n additionalProperties: false,\n },\n },\n },\n additionalProperties: false,\n} as const\n"],"mappings":";AAAA,SAAS,aAAa,oBAAoB;AAC1C,SAAS,SAAS,SAAS,YAAY;AACvC,SAAS,qBAAqB;AAE9B,SAAS,WAAW;AACpB,SAAS,QAAQ,iBAAiB;;;ACL3B,IAAM,sBAAsB;AAAA,EACjC,KAAK;AAAA,EACL,MAAM;AAAA,EACN,UAAU,CAAC,iBAAiB,WAAW,eAAe,gBAAgB,iBAAiB,SAAS;AAAA,EAChG,YAAY;AAAA,IACV,eAAe,EAAE,MAAM,UAAU,WAAW,EAAE;AAAA,IAC9C,SAAS,EAAE,MAAM,UAAU,WAAW,EAAE;AAAA,IACxC,aAAa,EAAE,MAAM,UAAU,WAAW,EAAE;AAAA,IAC5C,cAAc,EAAE,MAAM,SAAS;AAAA,IAC/B,eAAe,EAAE,MAAM,SAAS;AAAA,IAChC,SAAS;AAAA,MACP,MAAM;AAAA,MACN,UAAU,CAAC,aAAa,WAAW;AAAA,MACnC,YAAY;AAAA,QACV,WAAW,EAAE,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE;AAAA,QAC9C,WAAW;AAAA,UACT,MAAM;AAAA,UACN,OAAO,EAAE,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE;AAAA,QAC5C;AAAA,QACA,aAAa;AAAA,UACX,MAAM;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