@pome-sh/cli 0.21.15 → 0.21.17
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/dist/build-info.json +3 -3
- package/dist/{checks-OFV75GDL.js → checks-DH7XLBI3.js} +1 -1
- package/dist/{chunk-4MQULI7E.js → chunk-2Q3P45LK.js} +17 -3
- package/dist/{chunk-BA4N7AOZ.js → chunk-3JUWDIJ2.js} +11 -11
- package/dist/{chunk-GDZ6Z3B2.js → chunk-HZEOZGFN.js} +1 -1
- package/dist/{chunk-F4RV373I.js → chunk-IUXQAUYY.js} +2 -2
- package/dist/{chunk-IYDTDANH.js → chunk-IWTB3NN5.js} +1 -1
- package/dist/{chunk-OQWXMHRG.js → chunk-SRG5CJM7.js} +1 -1
- package/dist/{runDemo-ELZN7OT2.js → runDemo-CNAK5VH3.js} +4 -4
- package/dist/{runTrialGroup-WEBKLT7T.js → runTrialGroup-DGAWGKIA.js} +3 -3
- package/dist/src/cli/main.js +12 -12
- package/dist/{src-566DJYOC.js → src-C2SRMLET.js} +41 -40
- package/dist/{src-PUE6CMDF.js → src-RK3UVW3W.js} +62 -61
- package/dist/{src-GIKWIJM2.js → src-SZSXWHUI.js} +68 -67
- package/dist/{src-V5JLDT6T.js → src-T5I5JGEK.js} +5 -4
- package/dist/{src-ECRGORXR.js → src-WZSM2RYX.js} +151 -105
- package/dist/twinHarness-SBJDUUMK.js +5 -0
- package/dist/{twinStart-36ZSLZE7.js → twinStart-R4RLPJ3F.js} +2 -2
- package/package.json +2 -2
- package/dist/twinHarness-QGMYTU5N.js +0 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './chunk-FKZZWWYC.js';
|
|
2
2
|
import { defaultSeedState, parseSeed } from './chunk-SGDUD7KK.js';
|
|
3
3
|
export { defaultSeedState, parseSeed, seedSchema } from './chunk-SGDUD7KK.js';
|
|
4
|
-
import {
|
|
4
|
+
import { routeInputDeclarer, integerInput, mountDeclaredRoute, UndeclaredInputError, MalformedBodyError } from './chunk-2Q3P45LK.js';
|
|
5
5
|
import { loadMcpToolFixture, defineTwin, twinBuildInfo, deriveMcpToolTable, UnknownToolError, openTwinDatabase, createApp } from './chunk-TV5S6WQV.js';
|
|
6
6
|
import './chunk-VBATFCWR.js';
|
|
7
7
|
import './chunk-SG6ZTIMT.js';
|
|
@@ -3852,6 +3852,7 @@ var GitHubDomain = class {
|
|
|
3852
3852
|
this.db.prepare("INSERT INTO audit_log (ts, action, repo_full_name, payload_json) VALUES (?, ?, ?, ?)").run(nowIso(), action, repoFullName, JSON.stringify(payload));
|
|
3853
3853
|
}
|
|
3854
3854
|
};
|
|
3855
|
+
var declareInputs = routeInputDeclarer("ignore");
|
|
3855
3856
|
var repoParams = { owner: z.string().min(1), repo: z.string().min(1) };
|
|
3856
3857
|
var numberParam = integerInput({ min: 1 });
|
|
3857
3858
|
var pageQuery = {
|
|
@@ -3868,12 +3869,12 @@ var repositoryBody = {
|
|
|
3868
3869
|
var commentBody = { body: z.string().min(1) };
|
|
3869
3870
|
var GITHUB_ROUTES = {
|
|
3870
3871
|
// ----- search -----
|
|
3871
|
-
searchRepositories:
|
|
3872
|
+
searchRepositories: declareInputs({
|
|
3872
3873
|
method: "GET",
|
|
3873
3874
|
path: "/search/repositories",
|
|
3874
3875
|
query: { q: z.string().optional(), ...pageQuery }
|
|
3875
3876
|
}),
|
|
3876
|
-
searchCode:
|
|
3877
|
+
searchCode: declareInputs({
|
|
3877
3878
|
method: "GET",
|
|
3878
3879
|
path: "/search/code",
|
|
3879
3880
|
query: {
|
|
@@ -3883,7 +3884,7 @@ var GITHUB_ROUTES = {
|
|
|
3883
3884
|
...pageQuery
|
|
3884
3885
|
}
|
|
3885
3886
|
}),
|
|
3886
|
-
searchIssues:
|
|
3887
|
+
searchIssues: declareInputs({
|
|
3887
3888
|
method: "GET",
|
|
3888
3889
|
path: "/search/issues",
|
|
3889
3890
|
query: {
|
|
@@ -3894,12 +3895,12 @@ var GITHUB_ROUTES = {
|
|
|
3894
3895
|
...pageQuery
|
|
3895
3896
|
}
|
|
3896
3897
|
}),
|
|
3897
|
-
searchUsers:
|
|
3898
|
+
searchUsers: declareInputs({
|
|
3898
3899
|
method: "GET",
|
|
3899
3900
|
path: "/search/users",
|
|
3900
3901
|
query: { q: z.string().optional(), ...pageQuery }
|
|
3901
3902
|
}),
|
|
3902
|
-
searchCommits:
|
|
3903
|
+
searchCommits: declareInputs({
|
|
3903
3904
|
method: "GET",
|
|
3904
3905
|
path: "/search/commits",
|
|
3905
3906
|
query: {
|
|
@@ -3910,12 +3911,12 @@ var GITHUB_ROUTES = {
|
|
|
3910
3911
|
}
|
|
3911
3912
|
}),
|
|
3912
3913
|
// ----- repositories -----
|
|
3913
|
-
getRepository:
|
|
3914
|
+
getRepository: declareInputs({
|
|
3914
3915
|
method: "GET",
|
|
3915
3916
|
path: "/repos/:owner/:repo",
|
|
3916
3917
|
pathParams: { ...repoParams }
|
|
3917
3918
|
}),
|
|
3918
|
-
createUserRepository:
|
|
3919
|
+
createUserRepository: declareInputs({
|
|
3919
3920
|
method: "POST",
|
|
3920
3921
|
path: "/user/repos",
|
|
3921
3922
|
bodyEncoding: "json",
|
|
@@ -3928,14 +3929,14 @@ var GITHUB_ROUTES = {
|
|
|
3928
3929
|
// one would turn that into a 422 for a request the twin has always accepted —
|
|
3929
3930
|
// a divergence this ticket invented rather than found. The declaration records
|
|
3930
3931
|
// what is true: two locations, one of which the handler ignores.
|
|
3931
|
-
createOrgRepository:
|
|
3932
|
+
createOrgRepository: declareInputs({
|
|
3932
3933
|
method: "POST",
|
|
3933
3934
|
path: "/orgs/:owner/repos",
|
|
3934
3935
|
pathParams: { owner: repoParams.owner },
|
|
3935
3936
|
bodyEncoding: "json",
|
|
3936
3937
|
body: { ...repositoryBody, owner: z.string().min(1).optional() }
|
|
3937
3938
|
}),
|
|
3938
|
-
forkRepository:
|
|
3939
|
+
forkRepository: declareInputs({
|
|
3939
3940
|
method: "POST",
|
|
3940
3941
|
path: "/repos/:owner/:repo/forks",
|
|
3941
3942
|
pathParams: { ...repoParams },
|
|
@@ -3943,19 +3944,19 @@ var GITHUB_ROUTES = {
|
|
|
3943
3944
|
body: { organization: z.string().optional() }
|
|
3944
3945
|
}),
|
|
3945
3946
|
// ----- contents & commits -----
|
|
3946
|
-
getRepositoryRootContents:
|
|
3947
|
+
getRepositoryRootContents: declareInputs({
|
|
3947
3948
|
method: "GET",
|
|
3948
3949
|
path: "/repos/:owner/:repo/contents",
|
|
3949
3950
|
pathParams: { ...repoParams },
|
|
3950
3951
|
query: { ref: z.string().optional() }
|
|
3951
3952
|
}),
|
|
3952
|
-
getFileContents:
|
|
3953
|
+
getFileContents: declareInputs({
|
|
3953
3954
|
method: "GET",
|
|
3954
3955
|
path: "/repos/:owner/:repo/contents/*",
|
|
3955
3956
|
pathParams: { ...repoParams, path: z.string().min(1) },
|
|
3956
3957
|
query: { ref: z.string().optional() }
|
|
3957
3958
|
}),
|
|
3958
|
-
createOrUpdateFile:
|
|
3959
|
+
createOrUpdateFile: declareInputs({
|
|
3959
3960
|
method: "PUT",
|
|
3960
3961
|
path: "/repos/:owner/:repo/contents/*",
|
|
3961
3962
|
pathParams: { ...repoParams, path: z.string().min(1) },
|
|
@@ -3968,13 +3969,13 @@ var GITHUB_ROUTES = {
|
|
|
3968
3969
|
encoding: z.enum(["utf-8", "base64"]).optional()
|
|
3969
3970
|
}
|
|
3970
3971
|
}),
|
|
3971
|
-
listCommits:
|
|
3972
|
+
listCommits: declareInputs({
|
|
3972
3973
|
method: "GET",
|
|
3973
3974
|
path: "/repos/:owner/:repo/commits",
|
|
3974
3975
|
pathParams: { ...repoParams },
|
|
3975
3976
|
query: { sha: z.string().optional(), ...pageQuery }
|
|
3976
3977
|
}),
|
|
3977
|
-
createRef:
|
|
3978
|
+
createRef: declareInputs({
|
|
3978
3979
|
method: "POST",
|
|
3979
3980
|
path: "/repos/:owner/:repo/git/refs",
|
|
3980
3981
|
pathParams: { ...repoParams },
|
|
@@ -3982,7 +3983,7 @@ var GITHUB_ROUTES = {
|
|
|
3982
3983
|
body: { ref: z.string().min(1), sha: z.string().optional() }
|
|
3983
3984
|
}),
|
|
3984
3985
|
// ----- issues -----
|
|
3985
|
-
listIssues:
|
|
3986
|
+
listIssues: declareInputs({
|
|
3986
3987
|
method: "GET",
|
|
3987
3988
|
path: "/repos/:owner/:repo/issues",
|
|
3988
3989
|
pathParams: { ...repoParams },
|
|
@@ -3993,7 +3994,7 @@ var GITHUB_ROUTES = {
|
|
|
3993
3994
|
...pageQuery
|
|
3994
3995
|
}
|
|
3995
3996
|
}),
|
|
3996
|
-
createIssue:
|
|
3997
|
+
createIssue: declareInputs({
|
|
3997
3998
|
method: "POST",
|
|
3998
3999
|
path: "/repos/:owner/:repo/issues",
|
|
3999
4000
|
pathParams: { ...repoParams },
|
|
@@ -4005,12 +4006,12 @@ var GITHUB_ROUTES = {
|
|
|
4005
4006
|
assignees: z.array(z.string()).optional()
|
|
4006
4007
|
}
|
|
4007
4008
|
}),
|
|
4008
|
-
getIssue:
|
|
4009
|
+
getIssue: declareInputs({
|
|
4009
4010
|
method: "GET",
|
|
4010
4011
|
path: "/repos/:owner/:repo/issues/:number",
|
|
4011
4012
|
pathParams: { ...repoParams, number: numberParam }
|
|
4012
4013
|
}),
|
|
4013
|
-
updateIssue:
|
|
4014
|
+
updateIssue: declareInputs({
|
|
4014
4015
|
method: "PATCH",
|
|
4015
4016
|
path: "/repos/:owner/:repo/issues/:number",
|
|
4016
4017
|
pathParams: { ...repoParams, number: numberParam },
|
|
@@ -4023,25 +4024,25 @@ var GITHUB_ROUTES = {
|
|
|
4023
4024
|
assignees: z.array(z.string()).optional()
|
|
4024
4025
|
}
|
|
4025
4026
|
}),
|
|
4026
|
-
listIssueComments:
|
|
4027
|
+
listIssueComments: declareInputs({
|
|
4027
4028
|
method: "GET",
|
|
4028
4029
|
path: "/repos/:owner/:repo/issues/:number/comments",
|
|
4029
4030
|
pathParams: { ...repoParams, number: numberParam },
|
|
4030
4031
|
query: { ...pageQuery }
|
|
4031
4032
|
}),
|
|
4032
|
-
addIssueComment:
|
|
4033
|
+
addIssueComment: declareInputs({
|
|
4033
4034
|
method: "POST",
|
|
4034
4035
|
path: "/repos/:owner/:repo/issues/:number/comments",
|
|
4035
4036
|
pathParams: { ...repoParams, number: numberParam },
|
|
4036
4037
|
bodyEncoding: "json",
|
|
4037
4038
|
body: { ...commentBody }
|
|
4038
4039
|
}),
|
|
4039
|
-
listRepositoryLabels:
|
|
4040
|
+
listRepositoryLabels: declareInputs({
|
|
4040
4041
|
method: "GET",
|
|
4041
4042
|
path: "/repos/:owner/:repo/labels",
|
|
4042
4043
|
pathParams: { ...repoParams }
|
|
4043
4044
|
}),
|
|
4044
|
-
createRepositoryLabel:
|
|
4045
|
+
createRepositoryLabel: declareInputs({
|
|
4045
4046
|
method: "POST",
|
|
4046
4047
|
path: "/repos/:owner/:repo/labels",
|
|
4047
4048
|
pathParams: { ...repoParams },
|
|
@@ -4052,34 +4053,34 @@ var GITHUB_ROUTES = {
|
|
|
4052
4053
|
description: z.string().default("")
|
|
4053
4054
|
}
|
|
4054
4055
|
}),
|
|
4055
|
-
listIssueLabels:
|
|
4056
|
+
listIssueLabels: declareInputs({
|
|
4056
4057
|
method: "GET",
|
|
4057
4058
|
path: "/repos/:owner/:repo/issues/:number/labels",
|
|
4058
4059
|
pathParams: { ...repoParams, number: numberParam }
|
|
4059
4060
|
}),
|
|
4060
|
-
addIssueLabels:
|
|
4061
|
+
addIssueLabels: declareInputs({
|
|
4061
4062
|
method: "POST",
|
|
4062
4063
|
path: "/repos/:owner/:repo/issues/:number/labels",
|
|
4063
4064
|
pathParams: { ...repoParams, number: numberParam },
|
|
4064
4065
|
bodyEncoding: "json",
|
|
4065
4066
|
body: { labels: z.array(z.string().min(1)).min(1) }
|
|
4066
4067
|
}),
|
|
4067
|
-
deleteIssueLabel:
|
|
4068
|
+
deleteIssueLabel: declareInputs({
|
|
4068
4069
|
method: "DELETE",
|
|
4069
4070
|
path: "/repos/:owner/:repo/issues/:number/labels/:name",
|
|
4070
4071
|
pathParams: { ...repoParams, number: numberParam, name: z.string().min(1) }
|
|
4071
4072
|
}),
|
|
4072
|
-
listCollaborators:
|
|
4073
|
+
listCollaborators: declareInputs({
|
|
4073
4074
|
method: "GET",
|
|
4074
4075
|
path: "/repos/:owner/:repo/collaborators",
|
|
4075
4076
|
pathParams: { ...repoParams }
|
|
4076
4077
|
}),
|
|
4077
|
-
checkCollaborator:
|
|
4078
|
+
checkCollaborator: declareInputs({
|
|
4078
4079
|
method: "GET",
|
|
4079
4080
|
path: "/repos/:owner/:repo/collaborators/:username",
|
|
4080
4081
|
pathParams: { ...repoParams, username: z.string().min(1) }
|
|
4081
4082
|
}),
|
|
4082
|
-
addAssignees:
|
|
4083
|
+
addAssignees: declareInputs({
|
|
4083
4084
|
method: "POST",
|
|
4084
4085
|
path: "/repos/:owner/:repo/issues/:number/assignees",
|
|
4085
4086
|
pathParams: { ...repoParams, number: numberParam },
|
|
@@ -4087,13 +4088,13 @@ var GITHUB_ROUTES = {
|
|
|
4087
4088
|
body: { assignees: z.array(z.string().min(1)).min(1) }
|
|
4088
4089
|
}),
|
|
4089
4090
|
// ----- pull requests -----
|
|
4090
|
-
listPullRequests:
|
|
4091
|
+
listPullRequests: declareInputs({
|
|
4091
4092
|
method: "GET",
|
|
4092
4093
|
path: "/repos/:owner/:repo/pulls",
|
|
4093
4094
|
pathParams: { ...repoParams },
|
|
4094
4095
|
query: { state: stateFilter, ...pageQuery }
|
|
4095
4096
|
}),
|
|
4096
|
-
createPullRequest:
|
|
4097
|
+
createPullRequest: declareInputs({
|
|
4097
4098
|
method: "POST",
|
|
4098
4099
|
path: "/repos/:owner/:repo/pulls",
|
|
4099
4100
|
pathParams: { ...repoParams },
|
|
@@ -4105,24 +4106,24 @@ var GITHUB_ROUTES = {
|
|
|
4105
4106
|
base: z.string().optional()
|
|
4106
4107
|
}
|
|
4107
4108
|
}),
|
|
4108
|
-
getPullRequest:
|
|
4109
|
+
getPullRequest: declareInputs({
|
|
4109
4110
|
method: "GET",
|
|
4110
4111
|
path: "/repos/:owner/:repo/pulls/:number",
|
|
4111
4112
|
pathParams: { ...repoParams, number: numberParam }
|
|
4112
4113
|
}),
|
|
4113
|
-
listPullRequestFiles:
|
|
4114
|
+
listPullRequestFiles: declareInputs({
|
|
4114
4115
|
method: "GET",
|
|
4115
4116
|
path: "/repos/:owner/:repo/pulls/:number/files",
|
|
4116
4117
|
pathParams: { ...repoParams, number: numberParam },
|
|
4117
4118
|
query: { ...pageQuery }
|
|
4118
4119
|
}),
|
|
4119
|
-
listPullRequestReviews:
|
|
4120
|
+
listPullRequestReviews: declareInputs({
|
|
4120
4121
|
method: "GET",
|
|
4121
4122
|
path: "/repos/:owner/:repo/pulls/:number/reviews",
|
|
4122
4123
|
pathParams: { ...repoParams, number: numberParam },
|
|
4123
4124
|
query: { ...pageQuery }
|
|
4124
4125
|
}),
|
|
4125
|
-
createPullRequestReview:
|
|
4126
|
+
createPullRequestReview: declareInputs({
|
|
4126
4127
|
method: "POST",
|
|
4127
4128
|
path: "/repos/:owner/:repo/pulls/:number/reviews",
|
|
4128
4129
|
pathParams: { ...repoParams, number: numberParam },
|
|
@@ -4132,25 +4133,25 @@ var GITHUB_ROUTES = {
|
|
|
4132
4133
|
body: z.string().optional()
|
|
4133
4134
|
}
|
|
4134
4135
|
}),
|
|
4135
|
-
listPullRequestComments:
|
|
4136
|
+
listPullRequestComments: declareInputs({
|
|
4136
4137
|
method: "GET",
|
|
4137
4138
|
path: "/repos/:owner/:repo/pulls/:number/comments",
|
|
4138
4139
|
pathParams: { ...repoParams, number: numberParam },
|
|
4139
4140
|
query: { ...pageQuery }
|
|
4140
4141
|
}),
|
|
4141
|
-
getPullRequestStatus:
|
|
4142
|
+
getPullRequestStatus: declareInputs({
|
|
4142
4143
|
method: "GET",
|
|
4143
4144
|
path: "/repos/:owner/:repo/pulls/:number/status",
|
|
4144
4145
|
pathParams: { ...repoParams, number: numberParam }
|
|
4145
4146
|
}),
|
|
4146
|
-
mergePullRequest:
|
|
4147
|
+
mergePullRequest: declareInputs({
|
|
4147
4148
|
method: "PUT",
|
|
4148
4149
|
path: "/repos/:owner/:repo/pulls/:number/merge",
|
|
4149
4150
|
pathParams: { ...repoParams, number: numberParam },
|
|
4150
4151
|
bodyEncoding: "json-optional",
|
|
4151
4152
|
body: { commit_title: z.string().optional(), commit_message: z.string().optional() }
|
|
4152
4153
|
}),
|
|
4153
|
-
updatePullRequestBranch:
|
|
4154
|
+
updatePullRequestBranch: declareInputs({
|
|
4154
4155
|
method: "PUT",
|
|
4155
4156
|
path: "/repos/:owner/:repo/pulls/:number/update-branch",
|
|
4156
4157
|
pathParams: { ...repoParams, number: numberParam },
|
|
@@ -4158,7 +4159,7 @@ var GITHUB_ROUTES = {
|
|
|
4158
4159
|
body: { expected_head_sha: z.string().optional() }
|
|
4159
4160
|
}),
|
|
4160
4161
|
// ----- v2 cluster A — branches & files -----
|
|
4161
|
-
listBranches:
|
|
4162
|
+
listBranches: declareInputs({
|
|
4162
4163
|
method: "GET",
|
|
4163
4164
|
path: "/repos/:owner/:repo/branches",
|
|
4164
4165
|
pathParams: { ...repoParams },
|
|
@@ -4166,17 +4167,17 @@ var GITHUB_ROUTES = {
|
|
|
4166
4167
|
}),
|
|
4167
4168
|
// `branch` is the wildcard: a branch name may contain `/`, so the tail is the
|
|
4168
4169
|
// whole remainder of the path. The mechanism reads and URL-decodes it.
|
|
4169
|
-
getBranch:
|
|
4170
|
+
getBranch: declareInputs({
|
|
4170
4171
|
method: "GET",
|
|
4171
4172
|
path: "/repos/:owner/:repo/branches/*",
|
|
4172
4173
|
pathParams: { ...repoParams, branch: z.string().min(1) }
|
|
4173
4174
|
}),
|
|
4174
|
-
deleteBranch:
|
|
4175
|
+
deleteBranch: declareInputs({
|
|
4175
4176
|
method: "DELETE",
|
|
4176
4177
|
path: "/repos/:owner/:repo/git/refs/heads/*",
|
|
4177
4178
|
pathParams: { ...repoParams, branch: z.string().min(1) }
|
|
4178
4179
|
}),
|
|
4179
|
-
deleteFile:
|
|
4180
|
+
deleteFile: declareInputs({
|
|
4180
4181
|
method: "DELETE",
|
|
4181
4182
|
path: "/repos/:owner/:repo/contents/*",
|
|
4182
4183
|
pathParams: { ...repoParams, path: z.string().min(1) },
|
|
@@ -4188,25 +4189,25 @@ var GITHUB_ROUTES = {
|
|
|
4188
4189
|
}
|
|
4189
4190
|
}),
|
|
4190
4191
|
// ----- v2 cluster B — commits & diffs -----
|
|
4191
|
-
getCommit:
|
|
4192
|
+
getCommit: declareInputs({
|
|
4192
4193
|
method: "GET",
|
|
4193
4194
|
path: "/repos/:owner/:repo/commits/:ref",
|
|
4194
4195
|
pathParams: { ...repoParams, ref: z.string().min(1) }
|
|
4195
4196
|
}),
|
|
4196
4197
|
// `:basehead{.+}` is a NAMED param with a regex tail, not a wildcard; the
|
|
4197
4198
|
// handler is what splits `base...head` out of it.
|
|
4198
|
-
compareCommits:
|
|
4199
|
+
compareCommits: declareInputs({
|
|
4199
4200
|
method: "GET",
|
|
4200
4201
|
path: "/repos/:owner/:repo/compare/:basehead{.+}",
|
|
4201
4202
|
pathParams: { ...repoParams, basehead: z.string().min(1) }
|
|
4202
4203
|
}),
|
|
4203
|
-
getPullRequestDiff:
|
|
4204
|
+
getPullRequestDiff: declareInputs({
|
|
4204
4205
|
method: "GET",
|
|
4205
4206
|
path: "/repos/:owner/:repo/pulls/:number/diff",
|
|
4206
4207
|
pathParams: { ...repoParams, number: numberParam }
|
|
4207
4208
|
}),
|
|
4208
4209
|
// ----- v2 cluster C — pull requests deeper -----
|
|
4209
|
-
updatePullRequest:
|
|
4210
|
+
updatePullRequest: declareInputs({
|
|
4210
4211
|
method: "PATCH",
|
|
4211
4212
|
path: "/repos/:owner/:repo/pulls/:number",
|
|
4212
4213
|
pathParams: { ...repoParams, number: numberParam },
|
|
@@ -4218,13 +4219,13 @@ var GITHUB_ROUTES = {
|
|
|
4218
4219
|
base: z.string().optional()
|
|
4219
4220
|
}
|
|
4220
4221
|
}),
|
|
4221
|
-
listPullRequestCommits:
|
|
4222
|
+
listPullRequestCommits: declareInputs({
|
|
4222
4223
|
method: "GET",
|
|
4223
4224
|
path: "/repos/:owner/:repo/pulls/:number/commits",
|
|
4224
4225
|
pathParams: { ...repoParams, number: numberParam },
|
|
4225
4226
|
query: { ...pageQuery }
|
|
4226
4227
|
}),
|
|
4227
|
-
createPullRequestReviewComment:
|
|
4228
|
+
createPullRequestReviewComment: declareInputs({
|
|
4228
4229
|
method: "POST",
|
|
4229
4230
|
path: "/repos/:owner/:repo/pulls/:number/comments",
|
|
4230
4231
|
pathParams: { ...repoParams, number: numberParam },
|
|
@@ -4237,7 +4238,7 @@ var GITHUB_ROUTES = {
|
|
|
4237
4238
|
commit_id: z.string().optional()
|
|
4238
4239
|
}
|
|
4239
4240
|
}),
|
|
4240
|
-
replyToPullRequestReviewComment:
|
|
4241
|
+
replyToPullRequestReviewComment: declareInputs({
|
|
4241
4242
|
method: "POST",
|
|
4242
4243
|
path: "/repos/:owner/:repo/pulls/:number/comments/:comment_id/replies",
|
|
4243
4244
|
pathParams: { ...repoParams, number: numberParam, comment_id: numberParam },
|
|
@@ -4245,26 +4246,26 @@ var GITHUB_ROUTES = {
|
|
|
4245
4246
|
body: { ...commentBody }
|
|
4246
4247
|
}),
|
|
4247
4248
|
// ----- v2 cluster D — issue comments deeper -----
|
|
4248
|
-
updateIssueComment:
|
|
4249
|
+
updateIssueComment: declareInputs({
|
|
4249
4250
|
method: "PATCH",
|
|
4250
4251
|
path: "/repos/:owner/:repo/issues/comments/:comment_id",
|
|
4251
4252
|
pathParams: { ...repoParams, comment_id: numberParam },
|
|
4252
4253
|
bodyEncoding: "json",
|
|
4253
4254
|
body: { ...commentBody }
|
|
4254
4255
|
}),
|
|
4255
|
-
deleteIssueComment:
|
|
4256
|
+
deleteIssueComment: declareInputs({
|
|
4256
4257
|
method: "DELETE",
|
|
4257
4258
|
path: "/repos/:owner/:repo/issues/comments/:comment_id",
|
|
4258
4259
|
pathParams: { ...repoParams, comment_id: numberParam }
|
|
4259
4260
|
}),
|
|
4260
4261
|
// ----- v2 cluster E — milestones -----
|
|
4261
|
-
listMilestones:
|
|
4262
|
+
listMilestones: declareInputs({
|
|
4262
4263
|
method: "GET",
|
|
4263
4264
|
path: "/repos/:owner/:repo/milestones",
|
|
4264
4265
|
pathParams: { ...repoParams },
|
|
4265
4266
|
query: { state: stateFilter, ...pageQuery }
|
|
4266
4267
|
}),
|
|
4267
|
-
createMilestone:
|
|
4268
|
+
createMilestone: declareInputs({
|
|
4268
4269
|
method: "POST",
|
|
4269
4270
|
path: "/repos/:owner/:repo/milestones",
|
|
4270
4271
|
pathParams: { ...repoParams },
|
|
@@ -4276,7 +4277,7 @@ var GITHUB_ROUTES = {
|
|
|
4276
4277
|
state: stateWrite
|
|
4277
4278
|
}
|
|
4278
4279
|
}),
|
|
4279
|
-
updateMilestone:
|
|
4280
|
+
updateMilestone: declareInputs({
|
|
4280
4281
|
method: "PATCH",
|
|
4281
4282
|
path: "/repos/:owner/:repo/milestones/:number",
|
|
4282
4283
|
pathParams: { ...repoParams, number: numberParam },
|
|
@@ -4288,13 +4289,13 @@ var GITHUB_ROUTES = {
|
|
|
4288
4289
|
state: stateWrite
|
|
4289
4290
|
}
|
|
4290
4291
|
}),
|
|
4291
|
-
deleteMilestone:
|
|
4292
|
+
deleteMilestone: declareInputs({
|
|
4292
4293
|
method: "DELETE",
|
|
4293
4294
|
path: "/repos/:owner/:repo/milestones/:number",
|
|
4294
4295
|
pathParams: { ...repoParams, number: numberParam }
|
|
4295
4296
|
}),
|
|
4296
4297
|
// ----- v2 cluster F — commit status + checks -----
|
|
4297
|
-
createCommitStatus:
|
|
4298
|
+
createCommitStatus: declareInputs({
|
|
4298
4299
|
method: "POST",
|
|
4299
4300
|
path: "/repos/:owner/:repo/statuses/:sha",
|
|
4300
4301
|
pathParams: { ...repoParams, sha: z.string().min(1) },
|
|
@@ -4306,12 +4307,12 @@ var GITHUB_ROUTES = {
|
|
|
4306
4307
|
target_url: z.string().optional()
|
|
4307
4308
|
}
|
|
4308
4309
|
}),
|
|
4309
|
-
getCombinedStatusForRef:
|
|
4310
|
+
getCombinedStatusForRef: declareInputs({
|
|
4310
4311
|
method: "GET",
|
|
4311
4312
|
path: "/repos/:owner/:repo/commits/:ref/status",
|
|
4312
4313
|
pathParams: { ...repoParams, ref: z.string().min(1) }
|
|
4313
4314
|
}),
|
|
4314
|
-
createCheckRun:
|
|
4315
|
+
createCheckRun: declareInputs({
|
|
4315
4316
|
method: "POST",
|
|
4316
4317
|
path: "/repos/:owner/:repo/check-runs",
|
|
4317
4318
|
pathParams: { ...repoParams },
|
|
@@ -4337,36 +4338,36 @@ var GITHUB_ROUTES = {
|
|
|
4337
4338
|
completed_at: z.string().optional()
|
|
4338
4339
|
}
|
|
4339
4340
|
}),
|
|
4340
|
-
listCheckRunsForRef:
|
|
4341
|
+
listCheckRunsForRef: declareInputs({
|
|
4341
4342
|
method: "GET",
|
|
4342
4343
|
path: "/repos/:owner/:repo/commits/:ref/check-runs",
|
|
4343
4344
|
pathParams: { ...repoParams, ref: z.string().min(1) },
|
|
4344
4345
|
query: { ...pageQuery }
|
|
4345
4346
|
}),
|
|
4346
4347
|
// ----- v2 cluster G — tags & releases -----
|
|
4347
|
-
listTags:
|
|
4348
|
+
listTags: declareInputs({
|
|
4348
4349
|
method: "GET",
|
|
4349
4350
|
path: "/repos/:owner/:repo/tags",
|
|
4350
4351
|
pathParams: { ...repoParams },
|
|
4351
4352
|
query: { ...pageQuery }
|
|
4352
4353
|
}),
|
|
4353
|
-
listReleases:
|
|
4354
|
+
listReleases: declareInputs({
|
|
4354
4355
|
method: "GET",
|
|
4355
4356
|
path: "/repos/:owner/:repo/releases",
|
|
4356
4357
|
pathParams: { ...repoParams },
|
|
4357
4358
|
query: { ...pageQuery }
|
|
4358
4359
|
}),
|
|
4359
|
-
getLatestRelease:
|
|
4360
|
+
getLatestRelease: declareInputs({
|
|
4360
4361
|
method: "GET",
|
|
4361
4362
|
path: "/repos/:owner/:repo/releases/latest",
|
|
4362
4363
|
pathParams: { ...repoParams }
|
|
4363
4364
|
}),
|
|
4364
|
-
getReleaseByTag:
|
|
4365
|
+
getReleaseByTag: declareInputs({
|
|
4365
4366
|
method: "GET",
|
|
4366
4367
|
path: "/repos/:owner/:repo/releases/tags/*",
|
|
4367
4368
|
pathParams: { ...repoParams, tag: z.string().min(1) }
|
|
4368
4369
|
}),
|
|
4369
|
-
createRelease:
|
|
4370
|
+
createRelease: declareInputs({
|
|
4370
4371
|
method: "POST",
|
|
4371
4372
|
path: "/repos/:owner/:repo/releases",
|
|
4372
4373
|
pathParams: { ...repoParams },
|
|
@@ -4383,8 +4384,8 @@ var GITHUB_ROUTES = {
|
|
|
4383
4384
|
// ----- v2 cluster H — identity & collaborators -----
|
|
4384
4385
|
// The authenticated login comes from the session claim, not from a request
|
|
4385
4386
|
// input, so this surface declares nothing.
|
|
4386
|
-
getAuthenticatedUser:
|
|
4387
|
-
addCollaborator:
|
|
4387
|
+
getAuthenticatedUser: declareInputs({ method: "GET", path: "/user" }),
|
|
4388
|
+
addCollaborator: declareInputs({
|
|
4388
4389
|
method: "PUT",
|
|
4389
4390
|
path: "/repos/:owner/:repo/collaborators/:username",
|
|
4390
4391
|
pathParams: { ...repoParams, username: z.string().min(1) },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { SLACK_CHECKS } from './chunk-6OT4IW25.js';
|
|
2
2
|
import './chunk-JWJYNAWI.js';
|
|
3
|
-
import {
|
|
3
|
+
import { routeInputDeclarer, booleanInput, integerInput, mountDeclaredRoute, UndeclaredInputError } from './chunk-2Q3P45LK.js';
|
|
4
4
|
import { loadMcpToolFixture, defineTwin, queryTokenResolver, formTokenResolver, deriveMcpToolTable, UnknownToolError, openTwinDatabase, createApp } from './chunk-TV5S6WQV.js';
|
|
5
5
|
import './chunk-VBATFCWR.js';
|
|
6
6
|
import './chunk-SG6ZTIMT.js';
|
|
@@ -2251,17 +2251,18 @@ var SlackDomain = class {
|
|
|
2251
2251
|
return row?.name ?? id;
|
|
2252
2252
|
}
|
|
2253
2253
|
};
|
|
2254
|
+
var declareInputs = routeInputDeclarer("ignore");
|
|
2254
2255
|
var AMBIENT_INPUTS = { token: z.string().optional() };
|
|
2255
2256
|
function slackRead(path, args) {
|
|
2256
2257
|
const shape = { ...AMBIENT_INPUTS, ...args };
|
|
2257
2258
|
return {
|
|
2258
|
-
get:
|
|
2259
|
-
post:
|
|
2259
|
+
get: declareInputs({ method: "GET", path, query: shape }),
|
|
2260
|
+
post: declareInputs({ method: "POST", path, body: shape, bodyEncoding: "form" })
|
|
2260
2261
|
};
|
|
2261
2262
|
}
|
|
2262
2263
|
function slackWrite(path, args) {
|
|
2263
2264
|
const shape = { ...AMBIENT_INPUTS, ...args };
|
|
2264
|
-
return
|
|
2265
|
+
return declareInputs({ method: "POST", path, body: shape, bodyEncoding: "form" });
|
|
2265
2266
|
}
|
|
2266
2267
|
var emptyIfAbsent = () => z.string().default("");
|
|
2267
2268
|
var absentIfEmpty = () => z.string().optional().transform((value) => value ? value : void 0);
|