@pome-sh/cli 0.21.14 → 0.21.16

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.
@@ -1,4 +1,4 @@
1
- import { bracketedQuery, integerInput, booleanInput, declareRouteInputs, mountDeclaredRoute, UndeclaredInputError } from './chunk-4MQULI7E.js';
1
+ import { routeInputDeclarer, bracketedQuery, integerInput, booleanInput, mountDeclaredRoute, UndeclaredInputError } from './chunk-2Q3P45LK.js';
2
2
  import { failureInjectionRuleSchema, loadMcpToolFixture, openTwinDatabase, createFailureInjectionStore, defineTwin, twinBuildInfo, deriveMcpToolTable, failureInjectionMiddleware, createApp, FAILURE_INJECTION_OVERRIDE_KEY, recordedRequestHeaders, UnknownToolError } from './chunk-TV5S6WQV.js';
3
3
  import './chunk-VBATFCWR.js';
4
4
  import './chunk-SG6ZTIMT.js';
@@ -2782,6 +2782,7 @@ function flattenCreated(created2) {
2782
2782
  }
2783
2783
  return out;
2784
2784
  }
2785
+ var declareInputs = routeInputDeclarer("refuse");
2785
2786
  var ID_PATH = { id: z.string().min(1) };
2786
2787
  var LIST_QUERY = {
2787
2788
  limit: integerInput({ min: 1 }).optional(),
@@ -2864,30 +2865,30 @@ var UPDATE_SUBSCRIPTION_BODY = {
2864
2865
  };
2865
2866
  var STRIPE_ROUTES = {
2866
2867
  // ---------- PaymentIntents ----------
2867
- createPaymentIntent: declareRouteInputs({
2868
+ createPaymentIntent: declareInputs({
2868
2869
  method: "POST",
2869
2870
  path: "/v1/payment_intents",
2870
2871
  bodyEncoding: "form",
2871
2872
  body: CREATE_PAYMENT_INTENT_BODY
2872
2873
  }),
2873
- retrievePaymentIntent: declareRouteInputs({
2874
+ retrievePaymentIntent: declareInputs({
2874
2875
  method: "GET",
2875
2876
  path: "/v1/payment_intents/:id",
2876
2877
  pathParams: ID_PATH
2877
2878
  }),
2878
- listPaymentIntents: declareRouteInputs({
2879
+ listPaymentIntents: declareInputs({
2879
2880
  method: "GET",
2880
2881
  path: "/v1/payment_intents",
2881
2882
  query: LIST_QUERY
2882
2883
  }),
2883
- confirmPaymentIntent: declareRouteInputs({
2884
+ confirmPaymentIntent: declareInputs({
2884
2885
  method: "POST",
2885
2886
  path: "/v1/payment_intents/:id/confirm",
2886
2887
  pathParams: ID_PATH,
2887
2888
  bodyEncoding: "form",
2888
2889
  body: CONFIRM_PAYMENT_INTENT_BODY
2889
2890
  }),
2890
- updatePaymentIntent: declareRouteInputs({
2891
+ updatePaymentIntent: declareInputs({
2891
2892
  method: "POST",
2892
2893
  path: "/v1/payment_intents/:id",
2893
2894
  pathParams: ID_PATH,
@@ -2896,29 +2897,29 @@ var STRIPE_ROUTES = {
2896
2897
  }),
2897
2898
  // Cancellation takes no body at all here. Real Stripe accepts
2898
2899
  // `cancellation_reason`; this twin has never read it, so it is not declared.
2899
- cancelPaymentIntent: declareRouteInputs({
2900
+ cancelPaymentIntent: declareInputs({
2900
2901
  method: "POST",
2901
2902
  path: "/v1/payment_intents/:id/cancel",
2902
2903
  pathParams: ID_PATH
2903
2904
  }),
2904
- simulateCryptoDeposit: declareRouteInputs({
2905
+ simulateCryptoDeposit: declareInputs({
2905
2906
  method: "POST",
2906
2907
  path: "/v1/test_helpers/payment_intents/:id/simulate_crypto_deposit",
2907
2908
  pathParams: ID_PATH
2908
2909
  }),
2909
2910
  // ---------- Charges ----------
2910
- retrieveCharge: declareRouteInputs({
2911
+ retrieveCharge: declareInputs({
2911
2912
  method: "GET",
2912
2913
  path: "/v1/charges/:id",
2913
2914
  pathParams: ID_PATH
2914
2915
  }),
2915
- listCharges: declareRouteInputs({
2916
+ listCharges: declareInputs({
2916
2917
  method: "GET",
2917
2918
  path: "/v1/charges",
2918
2919
  query: { ...LIST_QUERY, payment_intent: z.string().optional(), customer: z.string().optional() }
2919
2920
  }),
2920
2921
  // ---------- Refunds ----------
2921
- createRefund: declareRouteInputs({
2922
+ createRefund: declareInputs({
2922
2923
  method: "POST",
2923
2924
  path: "/v1/refunds",
2924
2925
  // A real declared input on this route: the handler reads it and the domain
@@ -2929,166 +2930,166 @@ var STRIPE_ROUTES = {
2929
2930
  bodyEncoding: "form",
2930
2931
  body: CREATE_REFUND_BODY
2931
2932
  }),
2932
- retrieveRefund: declareRouteInputs({
2933
+ retrieveRefund: declareInputs({
2933
2934
  method: "GET",
2934
2935
  path: "/v1/refunds/:id",
2935
2936
  pathParams: ID_PATH
2936
2937
  }),
2937
- listRefunds: declareRouteInputs({
2938
+ listRefunds: declareInputs({
2938
2939
  method: "GET",
2939
2940
  path: "/v1/refunds",
2940
2941
  query: { ...LIST_QUERY, charge: z.string().optional(), payment_intent: z.string().optional() }
2941
2942
  }),
2942
2943
  // ---------- Customers ----------
2943
- createCustomer: declareRouteInputs({
2944
+ createCustomer: declareInputs({
2944
2945
  method: "POST",
2945
2946
  path: "/v1/customers",
2946
2947
  bodyEncoding: "form",
2947
2948
  body: CUSTOMER_FIELDS_BODY
2948
2949
  }),
2949
- listCustomerPaymentMethods: declareRouteInputs({
2950
+ listCustomerPaymentMethods: declareInputs({
2950
2951
  method: "GET",
2951
2952
  path: "/v1/customers/:id/payment_methods",
2952
2953
  pathParams: ID_PATH,
2953
2954
  query: { ...LIST_QUERY, type: z.string().optional() }
2954
2955
  }),
2955
- retrieveCustomer: declareRouteInputs({
2956
+ retrieveCustomer: declareInputs({
2956
2957
  method: "GET",
2957
2958
  path: "/v1/customers/:id",
2958
2959
  pathParams: ID_PATH
2959
2960
  }),
2960
- updateCustomer: declareRouteInputs({
2961
+ updateCustomer: declareInputs({
2961
2962
  method: "POST",
2962
2963
  path: "/v1/customers/:id",
2963
2964
  pathParams: ID_PATH,
2964
2965
  bodyEncoding: "form",
2965
2966
  body: CUSTOMER_FIELDS_BODY
2966
2967
  }),
2967
- deleteCustomer: declareRouteInputs({
2968
+ deleteCustomer: declareInputs({
2968
2969
  method: "DELETE",
2969
2970
  path: "/v1/customers/:id",
2970
2971
  pathParams: ID_PATH
2971
2972
  }),
2972
- listCustomers: declareRouteInputs({
2973
+ listCustomers: declareInputs({
2973
2974
  method: "GET",
2974
2975
  path: "/v1/customers",
2975
2976
  query: { ...LIST_QUERY, email: z.string().optional() }
2976
2977
  }),
2977
2978
  // ---------- Payment methods ----------
2978
- createPaymentMethod: declareRouteInputs({
2979
+ createPaymentMethod: declareInputs({
2979
2980
  method: "POST",
2980
2981
  path: "/v1/payment_methods",
2981
2982
  bodyEncoding: "form",
2982
2983
  body: CREATE_PAYMENT_METHOD_BODY
2983
2984
  }),
2984
- retrievePaymentMethod: declareRouteInputs({
2985
+ retrievePaymentMethod: declareInputs({
2985
2986
  method: "GET",
2986
2987
  path: "/v1/payment_methods/:id",
2987
2988
  pathParams: ID_PATH
2988
2989
  }),
2989
- attachPaymentMethod: declareRouteInputs({
2990
+ attachPaymentMethod: declareInputs({
2990
2991
  method: "POST",
2991
2992
  path: "/v1/payment_methods/:id/attach",
2992
2993
  pathParams: ID_PATH,
2993
2994
  bodyEncoding: "form",
2994
2995
  body: { customer: z.string().optional() }
2995
2996
  }),
2996
- detachPaymentMethod: declareRouteInputs({
2997
+ detachPaymentMethod: declareInputs({
2997
2998
  method: "POST",
2998
2999
  path: "/v1/payment_methods/:id/detach",
2999
3000
  pathParams: ID_PATH
3000
3001
  }),
3001
3002
  // ---------- Products ----------
3002
- createProduct: declareRouteInputs({
3003
+ createProduct: declareInputs({
3003
3004
  method: "POST",
3004
3005
  path: "/v1/products",
3005
3006
  bodyEncoding: "form",
3006
3007
  body: PRODUCT_FIELDS_BODY
3007
3008
  }),
3008
- retrieveProduct: declareRouteInputs({
3009
+ retrieveProduct: declareInputs({
3009
3010
  method: "GET",
3010
3011
  path: "/v1/products/:id",
3011
3012
  pathParams: ID_PATH
3012
3013
  }),
3013
- listProducts: declareRouteInputs({
3014
+ listProducts: declareInputs({
3014
3015
  method: "GET",
3015
3016
  path: "/v1/products",
3016
3017
  query: { ...LIST_QUERY, active: booleanInput.optional() }
3017
3018
  }),
3018
3019
  // ---------- Prices ----------
3019
- createPrice: declareRouteInputs({
3020
+ createPrice: declareInputs({
3020
3021
  method: "POST",
3021
3022
  path: "/v1/prices",
3022
3023
  bodyEncoding: "form",
3023
3024
  body: CREATE_PRICE_BODY
3024
3025
  }),
3025
- retrievePrice: declareRouteInputs({
3026
+ retrievePrice: declareInputs({
3026
3027
  method: "GET",
3027
3028
  path: "/v1/prices/:id",
3028
3029
  pathParams: ID_PATH
3029
3030
  }),
3030
- listPrices: declareRouteInputs({
3031
+ listPrices: declareInputs({
3031
3032
  method: "GET",
3032
3033
  path: "/v1/prices",
3033
3034
  query: { ...LIST_QUERY, product: z.string().optional(), active: booleanInput.optional() }
3034
3035
  }),
3035
3036
  // ---------- Subscriptions ----------
3036
- createSubscription: declareRouteInputs({
3037
+ createSubscription: declareInputs({
3037
3038
  method: "POST",
3038
3039
  path: "/v1/subscriptions",
3039
3040
  bodyEncoding: "form",
3040
3041
  body: CREATE_SUBSCRIPTION_BODY
3041
3042
  }),
3042
- retrieveSubscription: declareRouteInputs({
3043
+ retrieveSubscription: declareInputs({
3043
3044
  method: "GET",
3044
3045
  path: "/v1/subscriptions/:id",
3045
3046
  pathParams: ID_PATH
3046
3047
  }),
3047
- updateSubscription: declareRouteInputs({
3048
+ updateSubscription: declareInputs({
3048
3049
  method: "POST",
3049
3050
  path: "/v1/subscriptions/:id",
3050
3051
  pathParams: ID_PATH,
3051
3052
  bodyEncoding: "form",
3052
3053
  body: UPDATE_SUBSCRIPTION_BODY
3053
3054
  }),
3054
- cancelSubscription: declareRouteInputs({
3055
+ cancelSubscription: declareInputs({
3055
3056
  method: "DELETE",
3056
3057
  path: "/v1/subscriptions/:id",
3057
3058
  pathParams: ID_PATH
3058
3059
  }),
3059
- listSubscriptions: declareRouteInputs({
3060
+ listSubscriptions: declareInputs({
3060
3061
  method: "GET",
3061
3062
  path: "/v1/subscriptions",
3062
3063
  query: { ...LIST_QUERY, customer: z.string().optional(), status: z.string().optional() }
3063
3064
  }),
3064
3065
  // ---------- Invoices (reads only) ----------
3065
- retrieveInvoice: declareRouteInputs({
3066
+ retrieveInvoice: declareInputs({
3066
3067
  method: "GET",
3067
3068
  path: "/v1/invoices/:id",
3068
3069
  pathParams: ID_PATH
3069
3070
  }),
3070
- listInvoices: declareRouteInputs({
3071
+ listInvoices: declareInputs({
3071
3072
  method: "GET",
3072
3073
  path: "/v1/invoices",
3073
3074
  query: LIST_QUERY
3074
3075
  }),
3075
3076
  // ---------- Balance ----------
3076
- retrieveBalance: declareRouteInputs({
3077
+ retrieveBalance: declareInputs({
3077
3078
  method: "GET",
3078
3079
  path: "/v1/balance"
3079
3080
  }),
3080
- listBalanceTransactions: declareRouteInputs({
3081
+ listBalanceTransactions: declareInputs({
3081
3082
  method: "GET",
3082
3083
  path: "/v1/balance_transactions",
3083
3084
  query: { ...LIST_QUERY, type: z.string().optional() }
3084
3085
  }),
3085
3086
  // ---------- Events ----------
3086
- retrieveEvent: declareRouteInputs({
3087
+ retrieveEvent: declareInputs({
3087
3088
  method: "GET",
3088
3089
  path: "/v1/events/:id",
3089
3090
  pathParams: ID_PATH
3090
3091
  }),
3091
- listEvents: declareRouteInputs({
3092
+ listEvents: declareInputs({
3092
3093
  method: "GET",
3093
3094
  path: "/v1/events",
3094
3095
  query: { ...LIST_QUERY, type: z.string().optional() }
@@ -1,8 +1,8 @@
1
- export { LINEAR_CHECKS } from './chunk-3QVSXFJI.js';
1
+ export { LINEAR_CHECKS } from './chunk-XBT6ZLBG.js';
2
2
  import { MCP_PAGE_MAX, defaultSeedState, linearSeedSchema, notFound, badUserInput, MCP_PAGE_DEFAULT, DEFAULT_LINEAR_EMAIL, RELAY_PAGE_MAX, RELAY_PAGE_DEFAULT, STATE_EXPORT_CAP, parseSeed, DEFAULT_LINEAR_CLOCK, LINEAR_PROVIDER_TOKEN_PREFIX, DEFAULT_LINEAR_SID, DEFAULT_SCOPES, linearErrorEnvelope, unauthorizedEnvelope, unsupportedEnvelope, assertWebhookUrl, ACCESS_TOKEN_TTL_SECONDS, OAUTH_CODE_TTL_SECONDS, TITLE_MAX_BYTES, BODY_MAX_BYTES, LinearTwinError, GRAPHQL_QUERY_MAX_BYTES, GRAPHQL_SELECTION_DEPTH_MAX } from './chunk-ZKID2HS3.js';
3
3
  export { DEFAULT_LINEAR_CLOCK, DEFAULT_LINEAR_EMAIL, DEFAULT_LINEAR_PORT, DEFAULT_LINEAR_SID, DEFAULT_LINEAR_TOKEN, LINEAR_PROVIDER_TOKEN_PREFIX, LinearTwinError, STATE_EXPORT_CAP, assertWebhookUrl, defaultSeedState, linearErrorEnvelope, linearSeedSchema, loadSeedFromEnv, parseSeed, unauthorizedEnvelope, unsupportedEnvelope, webhookUrlError } from './chunk-ZKID2HS3.js';
4
- import './chunk-NY55QTVQ.js';
5
- import { declareRouteInputs, mountDeclaredRoute, UndeclaredInputError } from './chunk-4MQULI7E.js';
4
+ import './chunk-JWJYNAWI.js';
5
+ import { routeInputDeclarer, mountDeclaredRoute, UndeclaredInputError } from './chunk-2Q3P45LK.js';
6
6
  import { loadMcpToolFixture, deriveMcpToolTable, openTwinDatabase, defineTwin, createApp } from './chunk-TV5S6WQV.js';
7
7
  import './chunk-VBATFCWR.js';
8
8
  import './chunk-SG6ZTIMT.js';
@@ -3359,6 +3359,7 @@ function shouldRedact(key) {
3359
3359
  return true;
3360
3360
  return false;
3361
3361
  }
3362
+ var declareInputs = routeInputDeclarer("ignore");
3362
3363
  var VARIABLES_STRING = z.string().optional();
3363
3364
  var VARIABLES_OBJECT = z.union([z.record(z.string(), z.unknown()), z.string()]).optional();
3364
3365
  var AUTHORIZE_PARAMS = {
@@ -3371,7 +3372,7 @@ var AUTHORIZE_PARAMS = {
3371
3372
  code_challenge_method: z.string().optional()
3372
3373
  };
3373
3374
  var LINEAR_ROUTES = {
3374
- graphqlGet: declareRouteInputs({
3375
+ graphqlGet: declareInputs({
3375
3376
  method: "GET",
3376
3377
  path: "/graphql",
3377
3378
  query: {
@@ -3380,7 +3381,7 @@ var LINEAR_ROUTES = {
3380
3381
  operationName: z.string().optional()
3381
3382
  }
3382
3383
  }),
3383
- graphqlPost: declareRouteInputs({
3384
+ graphqlPost: declareInputs({
3384
3385
  method: "POST",
3385
3386
  path: "/graphql",
3386
3387
  bodyEncoding: "form",
@@ -3390,12 +3391,12 @@ var LINEAR_ROUTES = {
3390
3391
  operationName: z.string().optional()
3391
3392
  }
3392
3393
  }),
3393
- oauthAuthorize: declareRouteInputs({
3394
+ oauthAuthorize: declareInputs({
3394
3395
  method: "GET",
3395
3396
  path: "/oauth/authorize",
3396
3397
  query: { ...AUTHORIZE_PARAMS, response_type: z.string().optional() }
3397
3398
  }),
3398
- oauthAuthorizeCallback: declareRouteInputs({
3399
+ oauthAuthorizeCallback: declareInputs({
3399
3400
  method: "POST",
3400
3401
  path: "/oauth/authorize/callback",
3401
3402
  bodyEncoding: "form",
@@ -3404,7 +3405,7 @@ var LINEAR_ROUTES = {
3404
3405
  // equivalent, and declaring it says so out loud.
3405
3406
  body: { ...AUTHORIZE_PARAMS, user_ref: z.string().optional() }
3406
3407
  }),
3407
- oauthToken: declareRouteInputs({
3408
+ oauthToken: declareInputs({
3408
3409
  method: "POST",
3409
3410
  path: "/oauth/token",
3410
3411
  bodyEncoding: "form",
@@ -3422,7 +3423,7 @@ var LINEAR_ROUTES = {
3422
3423
  scope: z.string().optional()
3423
3424
  }
3424
3425
  }),
3425
- oauthRevoke: declareRouteInputs({
3426
+ oauthRevoke: declareInputs({
3426
3427
  method: "POST",
3427
3428
  path: "/oauth/revoke",
3428
3429
  bodyEncoding: "form",