@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
|
@@ -2,7 +2,7 @@ export { GMAIL_CHECKS } from './chunk-SE44FKWH.js';
|
|
|
2
2
|
import { gmailErrorEnvelope, gmailSeedSchema, parseSeed, defaultSeedState, notFound, invalidArgument, checkFault, unsupported, validateSearchQuery, SEARCH_MAILBOX_MESSAGE_BUDGET, GmailError, parseSearchQuery, CATEGORY_LABELS, parseDate, parseSize, KNOWN_FIELDS, parseDuration, assertHasOperator } from './chunk-NJ246QPJ.js';
|
|
3
3
|
export { DEFAULT_GMAIL_AGENT_EMAIL, GmailError, SEARCH_MAILBOX_MESSAGE_BUDGET, agentPathInboxMailbox, defaultSeedState, gmailErrorEnvelope, gmailSeedSchema, loadSeedFromEnv, parseSearchQuery, parseSeed, validateSearchQuery } from './chunk-NJ246QPJ.js';
|
|
4
4
|
import './chunk-JWJYNAWI.js';
|
|
5
|
-
import { integerInput, booleanInput, repeatedInput,
|
|
5
|
+
import { routeInputDeclarer, integerInput, booleanInput, repeatedInput, mountDeclaredRoute, UndeclaredInputError, MalformedBodyError } from './chunk-2Q3P45LK.js';
|
|
6
6
|
import { loadMcpToolFixture, deriveMcpToolTable, defineTwin, openTwinDatabase, createApp } from './chunk-TV5S6WQV.js';
|
|
7
7
|
import './chunk-VBATFCWR.js';
|
|
8
8
|
import './chunk-SG6ZTIMT.js';
|
|
@@ -2834,6 +2834,7 @@ function asInputError(fn) {
|
|
|
2834
2834
|
invalidArgument(error instanceof Error ? error.message : "Invalid request");
|
|
2835
2835
|
}
|
|
2836
2836
|
}
|
|
2837
|
+
var declareInputs = routeInputDeclarer("refuse");
|
|
2837
2838
|
var USERS = "/gmail/v1/users/:userId";
|
|
2838
2839
|
var MESSAGES = `${USERS}/messages`;
|
|
2839
2840
|
var MESSAGES_UPLOAD = "/upload/gmail/v1/users/:userId/messages";
|
|
@@ -2965,13 +2966,13 @@ var REFUSED_ITEM = { method: "POST", pathParams: USER_ITEM };
|
|
|
2965
2966
|
var REFUSED_ITEM_PUT = { method: "PUT", pathParams: USER_ITEM };
|
|
2966
2967
|
var GMAIL_ROUTES = {
|
|
2967
2968
|
// messages
|
|
2968
|
-
listMessages:
|
|
2969
|
+
listMessages: declareInputs({
|
|
2969
2970
|
method: "GET",
|
|
2970
2971
|
path: MESSAGES,
|
|
2971
2972
|
pathParams: USER,
|
|
2972
2973
|
query: { ...SEARCH_QUERY, ...LIST_QUERY, labelIds: repeatedInput() }
|
|
2973
2974
|
}),
|
|
2974
|
-
batchModifyMessages:
|
|
2975
|
+
batchModifyMessages: declareInputs({
|
|
2975
2976
|
method: "POST",
|
|
2976
2977
|
path: `${MESSAGES}/batchModify`,
|
|
2977
2978
|
pathParams: USER,
|
|
@@ -2982,173 +2983,173 @@ var GMAIL_ROUTES = {
|
|
|
2982
2983
|
...CLASSIFICATION_BODY
|
|
2983
2984
|
}
|
|
2984
2985
|
}),
|
|
2985
|
-
batchDeleteMessages:
|
|
2986
|
+
batchDeleteMessages: declareInputs({
|
|
2986
2987
|
method: "POST",
|
|
2987
2988
|
path: `${MESSAGES}/batchDelete`,
|
|
2988
2989
|
pathParams: USER,
|
|
2989
2990
|
bodyEncoding: "json",
|
|
2990
2991
|
body: { ids: stringListInput(1e3) }
|
|
2991
2992
|
}),
|
|
2992
|
-
sendMessage:
|
|
2993
|
-
sendMessageUpload:
|
|
2993
|
+
sendMessage: declareInputs({ ...MESSAGE_SEND_SHAPE, path: `${MESSAGES}/send` }),
|
|
2994
|
+
sendMessageUpload: declareInputs({
|
|
2994
2995
|
...MESSAGE_SEND_SHAPE,
|
|
2995
2996
|
path: `${MESSAGES_UPLOAD}/send`
|
|
2996
2997
|
}),
|
|
2997
|
-
importMessage:
|
|
2998
|
-
importMessageUpload:
|
|
2998
|
+
importMessage: declareInputs({ ...MESSAGE_IMPORT_SHAPE, path: `${MESSAGES}/import` }),
|
|
2999
|
+
importMessageUpload: declareInputs({
|
|
2999
3000
|
...MESSAGE_IMPORT_SHAPE,
|
|
3000
3001
|
path: `${MESSAGES_UPLOAD}/import`
|
|
3001
3002
|
}),
|
|
3002
|
-
insertMessage:
|
|
3003
|
-
insertMessageUpload:
|
|
3004
|
-
getMessage:
|
|
3003
|
+
insertMessage: declareInputs({ ...MESSAGE_INSERT_SHAPE, path: MESSAGES }),
|
|
3004
|
+
insertMessageUpload: declareInputs({ ...MESSAGE_INSERT_SHAPE, path: MESSAGES_UPLOAD }),
|
|
3005
|
+
getMessage: declareInputs({
|
|
3005
3006
|
method: "GET",
|
|
3006
3007
|
path: `${MESSAGES}/:id`,
|
|
3007
3008
|
pathParams: USER_ITEM,
|
|
3008
3009
|
query: MESSAGE_FORMAT_QUERY
|
|
3009
3010
|
}),
|
|
3010
|
-
modifyMessage:
|
|
3011
|
+
modifyMessage: declareInputs({
|
|
3011
3012
|
method: "POST",
|
|
3012
3013
|
path: `${MESSAGES}/:id/modify`,
|
|
3013
3014
|
pathParams: USER_ITEM,
|
|
3014
3015
|
bodyEncoding: "json",
|
|
3015
3016
|
body: { ...LABEL_MODIFY_BODY, ...CLASSIFICATION_BODY }
|
|
3016
3017
|
}),
|
|
3017
|
-
trashMessage:
|
|
3018
|
+
trashMessage: declareInputs({
|
|
3018
3019
|
method: "POST",
|
|
3019
3020
|
path: `${MESSAGES}/:id/trash`,
|
|
3020
3021
|
pathParams: USER_ITEM
|
|
3021
3022
|
}),
|
|
3022
|
-
untrashMessage:
|
|
3023
|
+
untrashMessage: declareInputs({
|
|
3023
3024
|
method: "POST",
|
|
3024
3025
|
path: `${MESSAGES}/:id/untrash`,
|
|
3025
3026
|
pathParams: USER_ITEM
|
|
3026
3027
|
}),
|
|
3027
|
-
deleteMessage:
|
|
3028
|
+
deleteMessage: declareInputs({
|
|
3028
3029
|
method: "DELETE",
|
|
3029
3030
|
path: `${MESSAGES}/:id`,
|
|
3030
3031
|
pathParams: USER_ITEM
|
|
3031
3032
|
}),
|
|
3032
|
-
getAttachment:
|
|
3033
|
+
getAttachment: declareInputs({
|
|
3033
3034
|
method: "GET",
|
|
3034
3035
|
path: `${MESSAGES}/:messageId/attachments/:id`,
|
|
3035
3036
|
pathParams: { ...USER_ITEM, messageId: z.string().min(1) }
|
|
3036
3037
|
}),
|
|
3037
|
-
resumableInsertMessage:
|
|
3038
|
-
resumableInsertMessagePut:
|
|
3038
|
+
resumableInsertMessage: declareInputs({ ...REFUSED, path: `${RESUMABLE}/messages` }),
|
|
3039
|
+
resumableInsertMessagePut: declareInputs({
|
|
3039
3040
|
...REFUSED_PUT,
|
|
3040
3041
|
path: `${RESUMABLE}/messages`
|
|
3041
3042
|
}),
|
|
3042
|
-
resumableSendMessage:
|
|
3043
|
-
resumableSendMessagePut:
|
|
3043
|
+
resumableSendMessage: declareInputs({ ...REFUSED, path: `${RESUMABLE}/messages/send` }),
|
|
3044
|
+
resumableSendMessagePut: declareInputs({
|
|
3044
3045
|
...REFUSED_PUT,
|
|
3045
3046
|
path: `${RESUMABLE}/messages/send`
|
|
3046
3047
|
}),
|
|
3047
|
-
resumableImportMessage:
|
|
3048
|
+
resumableImportMessage: declareInputs({
|
|
3048
3049
|
...REFUSED,
|
|
3049
3050
|
path: `${RESUMABLE}/messages/import`
|
|
3050
3051
|
}),
|
|
3051
|
-
resumableImportMessagePut:
|
|
3052
|
+
resumableImportMessagePut: declareInputs({
|
|
3052
3053
|
...REFUSED_PUT,
|
|
3053
3054
|
path: `${RESUMABLE}/messages/import`
|
|
3054
3055
|
}),
|
|
3055
3056
|
// drafts
|
|
3056
|
-
listDrafts:
|
|
3057
|
+
listDrafts: declareInputs({
|
|
3057
3058
|
method: "GET",
|
|
3058
3059
|
path: DRAFTS,
|
|
3059
3060
|
pathParams: USER,
|
|
3060
3061
|
query: { ...SEARCH_QUERY, ...LIST_QUERY }
|
|
3061
3062
|
}),
|
|
3062
|
-
createDraft:
|
|
3063
|
-
createDraftUpload:
|
|
3064
|
-
sendDraft:
|
|
3065
|
-
sendDraftUpload:
|
|
3066
|
-
getDraft:
|
|
3063
|
+
createDraft: declareInputs({ ...DRAFT_CREATE_SHAPE, path: DRAFTS }),
|
|
3064
|
+
createDraftUpload: declareInputs({ ...DRAFT_CREATE_SHAPE, path: DRAFTS_UPLOAD }),
|
|
3065
|
+
sendDraft: declareInputs({ ...DRAFT_SEND_SHAPE, path: `${DRAFTS}/send` }),
|
|
3066
|
+
sendDraftUpload: declareInputs({ ...DRAFT_SEND_SHAPE, path: `${DRAFTS_UPLOAD}/send` }),
|
|
3067
|
+
getDraft: declareInputs({
|
|
3067
3068
|
method: "GET",
|
|
3068
3069
|
path: `${DRAFTS}/:id`,
|
|
3069
3070
|
pathParams: USER_ITEM,
|
|
3070
3071
|
query: { format: MESSAGE_FORMAT_QUERY.format }
|
|
3071
3072
|
}),
|
|
3072
|
-
updateDraft:
|
|
3073
|
-
updateDraftUpload:
|
|
3073
|
+
updateDraft: declareInputs({ ...DRAFT_UPDATE_SHAPE, path: `${DRAFTS}/:id` }),
|
|
3074
|
+
updateDraftUpload: declareInputs({
|
|
3074
3075
|
...DRAFT_UPDATE_SHAPE,
|
|
3075
3076
|
path: `${DRAFTS_UPLOAD}/:id`
|
|
3076
3077
|
}),
|
|
3077
|
-
deleteDraft:
|
|
3078
|
+
deleteDraft: declareInputs({
|
|
3078
3079
|
method: "DELETE",
|
|
3079
3080
|
path: `${DRAFTS}/:id`,
|
|
3080
3081
|
pathParams: USER_ITEM
|
|
3081
3082
|
}),
|
|
3082
|
-
resumableCreateDraft:
|
|
3083
|
-
resumableCreateDraftPut:
|
|
3084
|
-
resumableSendDraft:
|
|
3085
|
-
resumableSendDraftPut:
|
|
3083
|
+
resumableCreateDraft: declareInputs({ ...REFUSED, path: `${RESUMABLE}/drafts` }),
|
|
3084
|
+
resumableCreateDraftPut: declareInputs({ ...REFUSED_PUT, path: `${RESUMABLE}/drafts` }),
|
|
3085
|
+
resumableSendDraft: declareInputs({ ...REFUSED, path: `${RESUMABLE}/drafts/send` }),
|
|
3086
|
+
resumableSendDraftPut: declareInputs({
|
|
3086
3087
|
...REFUSED_PUT,
|
|
3087
3088
|
path: `${RESUMABLE}/drafts/send`
|
|
3088
3089
|
}),
|
|
3089
|
-
resumableUpdateDraft:
|
|
3090
|
-
resumableUpdateDraftPut:
|
|
3090
|
+
resumableUpdateDraft: declareInputs({ ...REFUSED_ITEM, path: `${RESUMABLE}/drafts/:id` }),
|
|
3091
|
+
resumableUpdateDraftPut: declareInputs({
|
|
3091
3092
|
...REFUSED_ITEM_PUT,
|
|
3092
3093
|
path: `${RESUMABLE}/drafts/:id`
|
|
3093
3094
|
}),
|
|
3094
3095
|
// profile, threads
|
|
3095
|
-
getProfile:
|
|
3096
|
-
listThreads:
|
|
3096
|
+
getProfile: declareInputs({ method: "GET", path: `${USERS}/profile`, pathParams: USER }),
|
|
3097
|
+
listThreads: declareInputs({
|
|
3097
3098
|
method: "GET",
|
|
3098
3099
|
path: `${USERS}/threads`,
|
|
3099
3100
|
pathParams: USER,
|
|
3100
3101
|
query: { ...SEARCH_QUERY, ...LIST_QUERY, labelIds: repeatedInput() }
|
|
3101
3102
|
}),
|
|
3102
|
-
getThread:
|
|
3103
|
+
getThread: declareInputs({
|
|
3103
3104
|
method: "GET",
|
|
3104
3105
|
path: `${USERS}/threads/:id`,
|
|
3105
3106
|
pathParams: USER_ITEM,
|
|
3106
3107
|
query: THREAD_FORMAT_QUERY
|
|
3107
3108
|
}),
|
|
3108
|
-
modifyThread:
|
|
3109
|
+
modifyThread: declareInputs({
|
|
3109
3110
|
method: "POST",
|
|
3110
3111
|
path: `${USERS}/threads/:id/modify`,
|
|
3111
3112
|
pathParams: USER_ITEM,
|
|
3112
3113
|
bodyEncoding: "json",
|
|
3113
3114
|
body: LABEL_MODIFY_BODY
|
|
3114
3115
|
}),
|
|
3115
|
-
trashThread:
|
|
3116
|
+
trashThread: declareInputs({
|
|
3116
3117
|
method: "POST",
|
|
3117
3118
|
path: `${USERS}/threads/:id/trash`,
|
|
3118
3119
|
pathParams: USER_ITEM
|
|
3119
3120
|
}),
|
|
3120
|
-
untrashThread:
|
|
3121
|
+
untrashThread: declareInputs({
|
|
3121
3122
|
method: "POST",
|
|
3122
3123
|
path: `${USERS}/threads/:id/untrash`,
|
|
3123
3124
|
pathParams: USER_ITEM
|
|
3124
3125
|
}),
|
|
3125
|
-
deleteThread:
|
|
3126
|
+
deleteThread: declareInputs({
|
|
3126
3127
|
method: "DELETE",
|
|
3127
3128
|
path: `${USERS}/threads/:id`,
|
|
3128
3129
|
pathParams: USER_ITEM
|
|
3129
3130
|
}),
|
|
3130
3131
|
// labels
|
|
3131
|
-
listLabels:
|
|
3132
|
-
getLabel:
|
|
3132
|
+
listLabels: declareInputs({ method: "GET", path: `${USERS}/labels`, pathParams: USER }),
|
|
3133
|
+
getLabel: declareInputs({
|
|
3133
3134
|
method: "GET",
|
|
3134
3135
|
path: `${USERS}/labels/:id`,
|
|
3135
3136
|
pathParams: USER_ITEM
|
|
3136
3137
|
}),
|
|
3137
|
-
createLabel:
|
|
3138
|
+
createLabel: declareInputs({
|
|
3138
3139
|
method: "POST",
|
|
3139
3140
|
path: `${USERS}/labels`,
|
|
3140
3141
|
pathParams: USER,
|
|
3141
3142
|
bodyEncoding: "json",
|
|
3142
3143
|
body: { name: z.string().min(1), ...LABEL_BODY }
|
|
3143
3144
|
}),
|
|
3144
|
-
updateLabel:
|
|
3145
|
+
updateLabel: declareInputs({
|
|
3145
3146
|
method: "PUT",
|
|
3146
3147
|
path: `${USERS}/labels/:id`,
|
|
3147
3148
|
pathParams: USER_ITEM,
|
|
3148
3149
|
bodyEncoding: "json",
|
|
3149
3150
|
body: { name: z.string().min(1), ...LABEL_BODY }
|
|
3150
3151
|
}),
|
|
3151
|
-
patchLabel:
|
|
3152
|
+
patchLabel: declareInputs({
|
|
3152
3153
|
method: "PATCH",
|
|
3153
3154
|
path: `${USERS}/labels/:id`,
|
|
3154
3155
|
pathParams: USER_ITEM,
|
|
@@ -3157,13 +3158,13 @@ var GMAIL_ROUTES = {
|
|
|
3157
3158
|
// "Label name is required"; `.min(1)` here would move that error.
|
|
3158
3159
|
body: { name: z.string().optional(), ...LABEL_BODY }
|
|
3159
3160
|
}),
|
|
3160
|
-
deleteLabel:
|
|
3161
|
+
deleteLabel: declareInputs({
|
|
3161
3162
|
method: "DELETE",
|
|
3162
3163
|
path: `${USERS}/labels/:id`,
|
|
3163
3164
|
pathParams: USER_ITEM
|
|
3164
3165
|
}),
|
|
3165
3166
|
// history
|
|
3166
|
-
listHistory:
|
|
3167
|
+
listHistory: declareInputs({
|
|
3167
3168
|
method: "GET",
|
|
3168
3169
|
path: `${USERS}/history`,
|
|
3169
3170
|
pathParams: USER,
|
|
@@ -3175,51 +3176,51 @@ var GMAIL_ROUTES = {
|
|
|
3175
3176
|
}
|
|
3176
3177
|
}),
|
|
3177
3178
|
// settings
|
|
3178
|
-
listFilters:
|
|
3179
|
+
listFilters: declareInputs({
|
|
3179
3180
|
method: "GET",
|
|
3180
3181
|
path: `${USERS}/settings/filters`,
|
|
3181
3182
|
pathParams: USER
|
|
3182
3183
|
}),
|
|
3183
|
-
getFilter:
|
|
3184
|
+
getFilter: declareInputs({
|
|
3184
3185
|
method: "GET",
|
|
3185
3186
|
path: `${USERS}/settings/filters/:id`,
|
|
3186
3187
|
pathParams: USER_ITEM
|
|
3187
3188
|
}),
|
|
3188
|
-
createFilter:
|
|
3189
|
+
createFilter: declareInputs({
|
|
3189
3190
|
method: "POST",
|
|
3190
3191
|
path: `${USERS}/settings/filters`,
|
|
3191
3192
|
pathParams: USER,
|
|
3192
3193
|
bodyEncoding: "json",
|
|
3193
3194
|
body: { criteria: jsonObjectInput.optional(), action: jsonObjectInput.optional() }
|
|
3194
3195
|
}),
|
|
3195
|
-
deleteFilter:
|
|
3196
|
+
deleteFilter: declareInputs({
|
|
3196
3197
|
method: "DELETE",
|
|
3197
3198
|
path: `${USERS}/settings/filters/:id`,
|
|
3198
3199
|
pathParams: USER_ITEM
|
|
3199
3200
|
}),
|
|
3200
|
-
listForwardingAddresses:
|
|
3201
|
+
listForwardingAddresses: declareInputs({
|
|
3201
3202
|
method: "GET",
|
|
3202
3203
|
path: `${USERS}/settings/forwardingAddresses`,
|
|
3203
3204
|
pathParams: USER
|
|
3204
3205
|
}),
|
|
3205
|
-
getForwardingAddress:
|
|
3206
|
+
getForwardingAddress: declareInputs({
|
|
3206
3207
|
method: "GET",
|
|
3207
3208
|
path: `${USERS}/settings/forwardingAddresses/:forwardingEmail`,
|
|
3208
3209
|
pathParams: { ...USER, forwardingEmail: z.string().min(1) }
|
|
3209
3210
|
}),
|
|
3210
|
-
listSendAs:
|
|
3211
|
+
listSendAs: declareInputs({
|
|
3211
3212
|
method: "GET",
|
|
3212
3213
|
path: `${USERS}/settings/sendAs`,
|
|
3213
3214
|
pathParams: USER
|
|
3214
3215
|
}),
|
|
3215
|
-
getSendAs:
|
|
3216
|
+
getSendAs: declareInputs({
|
|
3216
3217
|
method: "GET",
|
|
3217
3218
|
path: `${USERS}/settings/sendAs/:sendAsEmail`,
|
|
3218
3219
|
pathParams: { ...USER, sendAsEmail: z.string().min(1) }
|
|
3219
3220
|
}),
|
|
3220
3221
|
// Pub/Sub
|
|
3221
|
-
watch:
|
|
3222
|
-
stop:
|
|
3222
|
+
watch: declareInputs({ ...REFUSED, path: `${USERS}/watch` }),
|
|
3223
|
+
stop: declareInputs({ ...REFUSED, path: `${USERS}/stop` })
|
|
3223
3224
|
};
|
|
3224
3225
|
|
|
3225
3226
|
// ../packages/twin-gmail/dist/src/rest-routes-drafts.js
|