@sourcegraph/amp 0.0.1748361686-ga6cbdd → 0.0.1748376091-g59fbbf

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.
Files changed (45) hide show
  1. package/dist/amp.js +3 -3
  2. package/dist/{client-DfrJv231.js → client-D37xwk4h.js} +2 -2
  3. package/dist/{client-DfrJv231.js.map → client-D37xwk4h.js.map} +1 -1
  4. package/dist/{color-Bf2jGwiV.js → color-BV9wbewg.js} +24 -20
  5. package/dist/color-BV9wbewg.js.map +1 -0
  6. package/dist/create_file.node-D2LDnTZ6.js +24 -0
  7. package/dist/create_file.node-D2LDnTZ6.js.map +1 -0
  8. package/dist/{edit_file.node-D2Wa6RXM.js → edit_file.node-Ccrf_Tyh.js} +3 -3
  9. package/dist/{edit_file.node-D2Wa6RXM.js.map → edit_file.node-Ccrf_Tyh.js.map} +1 -1
  10. package/dist/{executable-Cf6tmsfm.js → executable-DndKF3B_.js} +2 -2
  11. package/dist/{executable-Cf6tmsfm.js.map → executable-DndKF3B_.js.map} +1 -1
  12. package/dist/{files-U5BBkj-L.js → files-CApLN3XI.js} +2 -2
  13. package/dist/{files-U5BBkj-L.js.map → files-CApLN3XI.js.map} +1 -1
  14. package/dist/{glob.node-Cfv1JwiF.js → glob.node-C_0Pojo_.js} +3 -3
  15. package/dist/{glob.node-Cfv1JwiF.js.map → glob.node-C_0Pojo_.js.map} +1 -1
  16. package/dist/{list_directory.node-Dmx2XM_W.js → list_directory.node-CChuHPoL.js} +2 -2
  17. package/dist/{list_directory.node-Dmx2XM_W.js.map → list_directory.node-CChuHPoL.js.map} +1 -1
  18. package/dist/{load-profile-Bu7wgoOq.js → load-profile-CBXx5Izf.js} +2 -2
  19. package/dist/{load-profile-Bu7wgoOq.js.map → load-profile-CBXx5Izf.js.map} +1 -1
  20. package/dist/{main-CmK9yaC9.js → main-90Zv8RqJ.js} +487 -477
  21. package/dist/{main-CmK9yaC9.js.map → main-90Zv8RqJ.js.map} +1 -1
  22. package/dist/{node-DSPACSAV.js → node-B8I2GAD6.js} +3 -3
  23. package/dist/{node-DSPACSAV.js.map → node-B8I2GAD6.js.map} +1 -1
  24. package/dist/{node-7PIWGuuc.js → node-BGD834Zv.js} +4 -4
  25. package/dist/node-BGD834Zv.js.map +1 -0
  26. package/dist/{node-DUQOAXRE.js → node-BcU66Cp7.js} +3 -3
  27. package/dist/{node-DUQOAXRE.js.map → node-BcU66Cp7.js.map} +1 -1
  28. package/dist/{node-C1YHImbI.js → node-DgFnFiEl.js} +3 -3
  29. package/dist/{node-C1YHImbI.js.map → node-DgFnFiEl.js.map} +1 -1
  30. package/dist/{node-W217cnDV.js → node-Dmg_Tr9C.js} +3 -3
  31. package/dist/{node-W217cnDV.js.map → node-Dmg_Tr9C.js.map} +1 -1
  32. package/dist/{node-Bt-aqwyP.js → node-gL35nPzg.js} +2 -2
  33. package/dist/{node-Bt-aqwyP.js.map → node-gL35nPzg.js.map} +1 -1
  34. package/dist/{read_file.node-2sVFQX4N.js → read_file.node-FBiGQRUp.js} +2 -2
  35. package/dist/{read_file.node-2sVFQX4N.js.map → read_file.node-FBiGQRUp.js.map} +1 -1
  36. package/dist/{stdio-CNkqPrBz.js → stdio-8fytXW34.js} +3 -3
  37. package/dist/{stdio-CNkqPrBz.js.map → stdio-8fytXW34.js.map} +1 -1
  38. package/dist/storybook.js +1 -1
  39. package/dist/{undo_edit.node-CQG6mtZj.js → undo_edit.node-NCKppvcB.js} +2 -2
  40. package/dist/{undo_edit.node-CQG6mtZj.js.map → undo_edit.node-NCKppvcB.js.map} +1 -1
  41. package/package.json +1 -1
  42. package/dist/color-Bf2jGwiV.js.map +0 -1
  43. package/dist/create_file.node-BnMPGgD2.js +0 -22
  44. package/dist/create_file.node-BnMPGgD2.js.map +0 -1
  45. package/dist/node-7PIWGuuc.js.map +0 -1
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
- import { B as Nr, O as It, s as Gn, c as ub, a as ur, b as eu, f as it, d as is, p as ms, m as at, e as gs, g as kn, h as ys, i as BM, j as cb, M as pr, l as VM, k as oe, N as gl, n as zh, r as wn, o as Yh, t as HM, q as GM, u as Zh, v as WM, w as gy, x as Rl, y as KM, z as qn, A as XG, C as os, D as JM, E as zM, H as YM, F as lo, G as fb, I as ZM, J as no, K as db, L as hb, P as jM, Q as QM, R as sh, S as XM, T as ek, U as tk, V as nk, W as rk, X as tf, Y as ik, Z as pb, _ as yy, $ as ok, a0 as sk, a1 as ak, a2 as lk, a3 as uk, a4 as mb, a5 as ck, a6 as fk, a7 as dk, a8 as hk, a9 as vy, aa as pk, ab as mk, ac as gk, ad as yk, ae as vk, af as _k, ag as wk, ah as bk, ai as Tk, aj as Ck, ak as Sk, al as Ek, am as Ak, an as xk, ao as Rk, ap as Ik, aq as Mk, ar as kk, as as Pk, at as jh, au as Il, av as Ok, aw as Lk, ax as Nk, ay as Dk, az as gb, aA as ah, aB as st, aC as Fk, aD as $k, aE as Uk, aF as qk, aG as yb, aH as vb, aI as Bk, aJ as Vk, aK as Hk, aL as Gk, aM as Wk, aN as Kk } from "./color-Bf2jGwiV.js";
2
+ import { B as Nr, O as It, s as Gn, c as ub, a as ur, b as eu, f as it, d as is, p as ms, m as at, e as gs, g as kn, h as ys, i as BM, j as cb, M as pr, l as VM, k as oe, N as gl, n as zh, r as wn, o as Yh, t as HM, q as GM, u as Zh, v as WM, w as gy, x as Rl, y as KM, z as qn, A as XG, C as os, D as JM, E as zM, H as YM, F as lo, G as fb, I as ZM, J as no, K as db, L as hb, P as jM, Q as QM, R as sh, S as XM, T as ek, U as tk, V as nk, W as rk, X as tf, Y as ik, Z as pb, _ as yy, $ as ok, a0 as sk, a1 as ak, a2 as lk, a3 as uk, a4 as mb, a5 as ck, a6 as fk, a7 as dk, a8 as hk, a9 as vy, aa as pk, ab as mk, ac as gk, ad as yk, ae as vk, af as _k, ag as wk, ah as bk, ai as Tk, aj as Ck, ak as Sk, al as Ek, am as Ak, an as xk, ao as Rk, ap as Ik, aq as Mk, ar as kk, as as Pk, at as jh, au as Il, av as Ok, aw as Lk, ax as Nk, ay as Dk, az as Fk, aA as $k, aB as gb, aC as ah, aD as st, aE as Uk, aF as qk, aG as yb, aH as vb, aI as Bk, aJ as Vk, aK as Hk, aL as Gk, aM as Wk, aN as Kk } from "./color-BV9wbewg.js";
3
3
  import * as Jk from "node:fs/promises";
4
4
  import ro, { readdir as zk, stat as Yk, readFile as li, mkdir as Qh, writeFile as Xh, unlink as Zk } from "node:fs/promises";
5
5
  import * as jk from "node:path";
6
6
  import Je, { join as Qk } from "node:path";
7
- import { f as Dr, i as Xk } from "./client-DfrJv231.js";
7
+ import { f as Dr, i as Xk } from "./client-D37xwk4h.js";
8
8
  import * as eP from "node:child_process";
9
9
  import tP, { exec as ii, spawn as tu } from "node:child_process";
10
10
  import ep from "node:events";
@@ -2880,7 +2880,7 @@ var Pe;
2880
2880
  (function(r) {
2881
2881
  r.ZodString = "ZodString", r.ZodNumber = "ZodNumber", r.ZodNaN = "ZodNaN", r.ZodBigInt = "ZodBigInt", r.ZodBoolean = "ZodBoolean", r.ZodDate = "ZodDate", r.ZodSymbol = "ZodSymbol", r.ZodUndefined = "ZodUndefined", r.ZodNull = "ZodNull", r.ZodAny = "ZodAny", r.ZodUnknown = "ZodUnknown", r.ZodNever = "ZodNever", r.ZodVoid = "ZodVoid", r.ZodArray = "ZodArray", r.ZodObject = "ZodObject", r.ZodUnion = "ZodUnion", r.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", r.ZodIntersection = "ZodIntersection", r.ZodTuple = "ZodTuple", r.ZodRecord = "ZodRecord", r.ZodMap = "ZodMap", r.ZodSet = "ZodSet", r.ZodFunction = "ZodFunction", r.ZodLazy = "ZodLazy", r.ZodLiteral = "ZodLiteral", r.ZodEnum = "ZodEnum", r.ZodEffects = "ZodEffects", r.ZodNativeEnum = "ZodNativeEnum", r.ZodOptional = "ZodOptional", r.ZodNullable = "ZodNullable", r.ZodDefault = "ZodDefault", r.ZodCatch = "ZodCatch", r.ZodPromise = "ZodPromise", r.ZodBranded = "ZodBranded", r.ZodPipeline = "ZodPipeline", r.ZodReadonly = "ZodReadonly";
2882
2882
  })(Pe || (Pe = {}));
2883
- const ue = Bn.create, Nt = di.create;
2883
+ const ce = Bn.create, Nt = di.create;
2884
2884
  hi.create;
2885
2885
  const ln = Pl.create;
2886
2886
  fo.create;
@@ -2906,7 +2906,7 @@ const Ui = {
2906
2906
  ip,
2907
2907
  "2024-11-05",
2908
2908
  "2024-10-07"
2909
- ], iu = "2.0", Ab = Ft([ue(), Nt().int()]), xb = ue(), jP = xe({
2909
+ ], iu = "2.0", Ab = Ft([ce(), Nt().int()]), xb = ce(), jP = xe({
2910
2910
  /**
2911
2911
  * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
2912
2912
  */
@@ -2914,7 +2914,7 @@ const Ui = {
2914
2914
  }).passthrough(), On = xe({
2915
2915
  _meta: Ae(jP)
2916
2916
  }).passthrough(), un = xe({
2917
- method: ue(),
2917
+ method: ce(),
2918
2918
  params: Ae(On)
2919
2919
  }), Ts = xe({
2920
2920
  /**
@@ -2922,14 +2922,14 @@ const Ui = {
2922
2922
  */
2923
2923
  _meta: Ae(xe({}).passthrough())
2924
2924
  }).passthrough(), zn = xe({
2925
- method: ue(),
2925
+ method: ce(),
2926
2926
  params: Ae(Ts)
2927
2927
  }), Ln = xe({
2928
2928
  /**
2929
2929
  * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
2930
2930
  */
2931
2931
  _meta: Ae(xe({}).passthrough())
2932
- }).passthrough(), ou = Ft([ue(), Nt().int()]), Rb = xe({
2932
+ }).passthrough(), ou = Ft([ce(), Nt().int()]), Rb = xe({
2933
2933
  jsonrpc: je(iu),
2934
2934
  id: ou
2935
2935
  }).merge(un).strict(), QP = (r) => Rb.safeParse(r).success, Ib = xe({
@@ -2954,7 +2954,7 @@ const kb = xe({
2954
2954
  /**
2955
2955
  * A short description of the error. The message SHOULD be limited to a concise single sentence.
2956
2956
  */
2957
- message: ue(),
2957
+ message: ce(),
2958
2958
  /**
2959
2959
  * Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).
2960
2960
  */
@@ -2977,11 +2977,11 @@ const kb = xe({
2977
2977
  /**
2978
2978
  * An optional string describing the reason for the cancellation. This MAY be logged or presented to the user.
2979
2979
  */
2980
- reason: ue().optional()
2980
+ reason: ce().optional()
2981
2981
  })
2982
2982
  }), Pb = xe({
2983
- name: ue(),
2984
- version: ue()
2983
+ name: ce(),
2984
+ version: ce()
2985
2985
  }).passthrough(), nO = xe({
2986
2986
  /**
2987
2987
  * Experimental, non-standard capabilities that the client supports.
@@ -3006,7 +3006,7 @@ const kb = xe({
3006
3006
  /**
3007
3007
  * The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well.
3008
3008
  */
3009
- protocolVersion: ue(),
3009
+ protocolVersion: ce(),
3010
3010
  capabilities: nO,
3011
3011
  clientInfo: Pb
3012
3012
  })
@@ -3058,7 +3058,7 @@ const kb = xe({
3058
3058
  /**
3059
3059
  * The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect.
3060
3060
  */
3061
- protocolVersion: ue(),
3061
+ protocolVersion: ce(),
3062
3062
  capabilities: iO,
3063
3063
  serverInfo: Pb,
3064
3064
  /**
@@ -3066,7 +3066,7 @@ const kb = xe({
3066
3066
  *
3067
3067
  * This can be used by clients to improve the LLM's understanding of available tools, resources, etc. It can be thought of like a "hint" to the model. For example, this information MAY be added to the system prompt.
3068
3068
  */
3069
- instructions: Ae(ue())
3069
+ instructions: Ae(ce())
3070
3070
  }), oO = zn.extend({
3071
3071
  method: je("notifications/initialized")
3072
3072
  }), sp = un.extend({
@@ -3106,63 +3106,63 @@ const kb = xe({
3106
3106
  /**
3107
3107
  * The URI of this resource.
3108
3108
  */
3109
- uri: ue(),
3109
+ uri: ce(),
3110
3110
  /**
3111
3111
  * The MIME type of this resource, if known.
3112
3112
  */
3113
- mimeType: Ae(ue())
3113
+ mimeType: Ae(ce())
3114
3114
  }).passthrough(), Nb = Lb.extend({
3115
3115
  /**
3116
3116
  * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
3117
3117
  */
3118
- text: ue()
3118
+ text: ce()
3119
3119
  }), Db = Lb.extend({
3120
3120
  /**
3121
3121
  * A base64-encoded string representing the binary data of the item.
3122
3122
  */
3123
- blob: ue().base64()
3123
+ blob: ce().base64()
3124
3124
  }), aO = xe({
3125
3125
  /**
3126
3126
  * The URI of this resource.
3127
3127
  */
3128
- uri: ue(),
3128
+ uri: ce(),
3129
3129
  /**
3130
3130
  * A human-readable name for this resource.
3131
3131
  *
3132
3132
  * This can be used by clients to populate UI elements.
3133
3133
  */
3134
- name: ue(),
3134
+ name: ce(),
3135
3135
  /**
3136
3136
  * A description of what this resource represents.
3137
3137
  *
3138
3138
  * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
3139
3139
  */
3140
- description: Ae(ue()),
3140
+ description: Ae(ce()),
3141
3141
  /**
3142
3142
  * The MIME type of this resource, if known.
3143
3143
  */
3144
- mimeType: Ae(ue())
3144
+ mimeType: Ae(ce())
3145
3145
  }).passthrough(), lO = xe({
3146
3146
  /**
3147
3147
  * A URI template (according to RFC 6570) that can be used to construct resource URIs.
3148
3148
  */
3149
- uriTemplate: ue(),
3149
+ uriTemplate: ce(),
3150
3150
  /**
3151
3151
  * A human-readable name for the type of resource this template refers to.
3152
3152
  *
3153
3153
  * This can be used by clients to populate UI elements.
3154
3154
  */
3155
- name: ue(),
3155
+ name: ce(),
3156
3156
  /**
3157
3157
  * A description of what this template is for.
3158
3158
  *
3159
3159
  * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
3160
3160
  */
3161
- description: Ae(ue()),
3161
+ description: Ae(ce()),
3162
3162
  /**
3163
3163
  * The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type.
3164
3164
  */
3165
- mimeType: Ae(ue())
3165
+ mimeType: Ae(ce())
3166
3166
  }).passthrough(), uO = su.extend({
3167
3167
  method: je("resources/list")
3168
3168
  }), Fb = au.extend({
@@ -3177,7 +3177,7 @@ const kb = xe({
3177
3177
  /**
3178
3178
  * The URI of the resource to read. The URI can use any protocol; it is up to the server how to interpret it.
3179
3179
  */
3180
- uri: ue()
3180
+ uri: ce()
3181
3181
  })
3182
3182
  }), Ub = Ln.extend({
3183
3183
  contents: Qe(Ft([Nb, Db]))
@@ -3189,7 +3189,7 @@ const kb = xe({
3189
3189
  /**
3190
3190
  * The URI of the resource to subscribe to. The URI can use any protocol; it is up to the server how to interpret it.
3191
3191
  */
3192
- uri: ue()
3192
+ uri: ce()
3193
3193
  })
3194
3194
  }), pO = un.extend({
3195
3195
  method: je("resources/unsubscribe"),
@@ -3197,7 +3197,7 @@ const kb = xe({
3197
3197
  /**
3198
3198
  * The URI of the resource to unsubscribe from.
3199
3199
  */
3200
- uri: ue()
3200
+ uri: ce()
3201
3201
  })
3202
3202
  }), mO = zn.extend({
3203
3203
  method: je("notifications/resources/updated"),
@@ -3205,17 +3205,17 @@ const kb = xe({
3205
3205
  /**
3206
3206
  * The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to.
3207
3207
  */
3208
- uri: ue()
3208
+ uri: ce()
3209
3209
  })
3210
3210
  }), gO = xe({
3211
3211
  /**
3212
3212
  * The name of the argument.
3213
3213
  */
3214
- name: ue(),
3214
+ name: ce(),
3215
3215
  /**
3216
3216
  * A human-readable description of the argument.
3217
3217
  */
3218
- description: Ae(ue()),
3218
+ description: Ae(ce()),
3219
3219
  /**
3220
3220
  * Whether this argument must be provided.
3221
3221
  */
@@ -3224,11 +3224,11 @@ const kb = xe({
3224
3224
  /**
3225
3225
  * The name of the prompt or prompt template.
3226
3226
  */
3227
- name: ue(),
3227
+ name: ce(),
3228
3228
  /**
3229
3229
  * An optional description of what this prompt provides
3230
3230
  */
3231
- description: Ae(ue()),
3231
+ description: Ae(ce()),
3232
3232
  /**
3233
3233
  * A list of arguments to use for templating the prompt.
3234
3234
  */
@@ -3243,38 +3243,38 @@ const kb = xe({
3243
3243
  /**
3244
3244
  * The name of the prompt or prompt template.
3245
3245
  */
3246
- name: ue(),
3246
+ name: ce(),
3247
3247
  /**
3248
3248
  * Arguments to use for templating the prompt.
3249
3249
  */
3250
- arguments: Ae(rp(ue()))
3250
+ arguments: Ae(rp(ce()))
3251
3251
  })
3252
3252
  }), lu = xe({
3253
3253
  type: je("text"),
3254
3254
  /**
3255
3255
  * The text content of the message.
3256
3256
  */
3257
- text: ue()
3257
+ text: ce()
3258
3258
  }).passthrough(), uu = xe({
3259
3259
  type: je("image"),
3260
3260
  /**
3261
3261
  * The base64-encoded image data.
3262
3262
  */
3263
- data: ue().base64(),
3263
+ data: ce().base64(),
3264
3264
  /**
3265
3265
  * The MIME type of the image. Different providers may support different image types.
3266
3266
  */
3267
- mimeType: ue()
3267
+ mimeType: ce()
3268
3268
  }).passthrough(), cu = xe({
3269
3269
  type: je("audio"),
3270
3270
  /**
3271
3271
  * The base64-encoded audio data.
3272
3272
  */
3273
- data: ue().base64(),
3273
+ data: ce().base64(),
3274
3274
  /**
3275
3275
  * The MIME type of the audio. Different providers may support different audio types.
3276
3276
  */
3277
- mimeType: ue()
3277
+ mimeType: ce()
3278
3278
  }).passthrough(), Bb = xe({
3279
3279
  type: je("resource"),
3280
3280
  resource: Ft([Nb, Db])
@@ -3290,7 +3290,7 @@ const kb = xe({
3290
3290
  /**
3291
3291
  * An optional description for the prompt.
3292
3292
  */
3293
- description: Ae(ue()),
3293
+ description: Ae(ce()),
3294
3294
  messages: Qe(wO)
3295
3295
  }), bO = zn.extend({
3296
3296
  method: je("notifications/prompts/list_changed")
@@ -3298,7 +3298,7 @@ const kb = xe({
3298
3298
  /**
3299
3299
  * A human-readable title for the tool.
3300
3300
  */
3301
- title: Ae(ue()),
3301
+ title: Ae(ce()),
3302
3302
  /**
3303
3303
  * If true, the tool does not modify its environment.
3304
3304
  *
@@ -3336,11 +3336,11 @@ const kb = xe({
3336
3336
  /**
3337
3337
  * The name of the tool.
3338
3338
  */
3339
- name: ue(),
3339
+ name: ce(),
3340
3340
  /**
3341
3341
  * A human-readable description of the tool.
3342
3342
  */
3343
- description: Ae(ue()),
3343
+ description: Ae(ce()),
3344
3344
  /**
3345
3345
  * A JSON Schema object defining the expected parameters for the tool.
3346
3346
  */
@@ -3366,7 +3366,7 @@ lp.or(Ln.extend({
3366
3366
  const EO = un.extend({
3367
3367
  method: je("tools/call"),
3368
3368
  params: On.extend({
3369
- name: ue(),
3369
+ name: ce(),
3370
3370
  arguments: Ae(rp(ho()))
3371
3371
  })
3372
3372
  }), Gb = zn.extend({
@@ -3398,7 +3398,7 @@ const EO = un.extend({
3398
3398
  /**
3399
3399
  * An optional name of the logger issuing this message.
3400
3400
  */
3401
- logger: Ae(ue()),
3401
+ logger: Ae(ce()),
3402
3402
  /**
3403
3403
  * The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here.
3404
3404
  */
@@ -3408,7 +3408,7 @@ const EO = un.extend({
3408
3408
  /**
3409
3409
  * A hint for a model name.
3410
3410
  */
3411
- name: ue().optional()
3411
+ name: ce().optional()
3412
3412
  }).passthrough(), IO = xe({
3413
3413
  /**
3414
3414
  * Optional hints to use for model selection.
@@ -3436,7 +3436,7 @@ const EO = un.extend({
3436
3436
  /**
3437
3437
  * An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt.
3438
3438
  */
3439
- systemPrompt: Ae(ue()),
3439
+ systemPrompt: Ae(ce()),
3440
3440
  /**
3441
3441
  * A request to include context from one or more MCP servers (including the caller), to be attached to the prompt. The client MAY ignore this request.
3442
3442
  */
@@ -3446,7 +3446,7 @@ const EO = un.extend({
3446
3446
  * The maximum number of tokens to sample, as requested by the server. The client MAY choose to sample fewer tokens than requested.
3447
3447
  */
3448
3448
  maxTokens: Nt().int(),
3449
- stopSequences: Ae(Qe(ue())),
3449
+ stopSequences: Ae(Qe(ce())),
3450
3450
  /**
3451
3451
  * Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific.
3452
3452
  */
@@ -3460,11 +3460,11 @@ const EO = un.extend({
3460
3460
  /**
3461
3461
  * The name of the model that generated the message.
3462
3462
  */
3463
- model: ue(),
3463
+ model: ce(),
3464
3464
  /**
3465
3465
  * The reason why sampling stopped.
3466
3466
  */
3467
- stopReason: Ae(vi(["endTurn", "stopSequence", "maxTokens"]).or(ue())),
3467
+ stopReason: Ae(vi(["endTurn", "stopSequence", "maxTokens"]).or(ce())),
3468
3468
  role: vi(["user", "assistant"]),
3469
3469
  content: zP("type", [
3470
3470
  lu,
@@ -3476,13 +3476,13 @@ const EO = un.extend({
3476
3476
  /**
3477
3477
  * The URI or URI template of the resource.
3478
3478
  */
3479
- uri: ue()
3479
+ uri: ce()
3480
3480
  }).passthrough(), LO = xe({
3481
3481
  type: je("ref/prompt"),
3482
3482
  /**
3483
3483
  * The name of the prompt or prompt template
3484
3484
  */
3485
- name: ue()
3485
+ name: ce()
3486
3486
  }).passthrough(), NO = un.extend({
3487
3487
  method: je("completion/complete"),
3488
3488
  params: On.extend({
@@ -3494,11 +3494,11 @@ const EO = un.extend({
3494
3494
  /**
3495
3495
  * The name of the argument
3496
3496
  */
3497
- name: ue(),
3497
+ name: ce(),
3498
3498
  /**
3499
3499
  * The value of the argument to use for completion matching.
3500
3500
  */
3501
- value: ue()
3501
+ value: ce()
3502
3502
  }).passthrough()
3503
3503
  })
3504
3504
  }), Kb = Ln.extend({
@@ -3506,7 +3506,7 @@ const EO = un.extend({
3506
3506
  /**
3507
3507
  * An array of completion values. Must not exceed 100 items.
3508
3508
  */
3509
- values: Qe(ue()).max(100),
3509
+ values: Qe(ce()).max(100),
3510
3510
  /**
3511
3511
  * The total number of completion options available. This can exceed the number of values actually sent in the response.
3512
3512
  */
@@ -3520,11 +3520,11 @@ const EO = un.extend({
3520
3520
  /**
3521
3521
  * The URI identifying the root. This *must* start with file:// for now.
3522
3522
  */
3523
- uri: ue().startsWith("file://"),
3523
+ uri: ce().startsWith("file://"),
3524
3524
  /**
3525
3525
  * An optional name for the root.
3526
3526
  */
3527
- name: Ae(ue())
3527
+ name: Ae(ce())
3528
3528
  }).passthrough(), FO = un.extend({
3529
3529
  method: je("roots/list")
3530
3530
  }), $O = Ln.extend({
@@ -4401,65 +4401,65 @@ async function XO(r) {
4401
4401
  };
4402
4402
  }
4403
4403
  const eL = xe({
4404
- issuer: ue(),
4405
- authorization_endpoint: ue(),
4406
- token_endpoint: ue(),
4407
- registration_endpoint: ue().optional(),
4408
- scopes_supported: Qe(ue()).optional(),
4409
- response_types_supported: Qe(ue()),
4410
- response_modes_supported: Qe(ue()).optional(),
4411
- grant_types_supported: Qe(ue()).optional(),
4412
- token_endpoint_auth_methods_supported: Qe(ue()).optional(),
4413
- token_endpoint_auth_signing_alg_values_supported: Qe(ue()).optional(),
4414
- service_documentation: ue().optional(),
4415
- revocation_endpoint: ue().optional(),
4416
- revocation_endpoint_auth_methods_supported: Qe(ue()).optional(),
4417
- revocation_endpoint_auth_signing_alg_values_supported: Qe(ue()).optional(),
4418
- introspection_endpoint: ue().optional(),
4419
- introspection_endpoint_auth_methods_supported: Qe(ue()).optional(),
4420
- introspection_endpoint_auth_signing_alg_values_supported: Qe(ue()).optional(),
4421
- code_challenge_methods_supported: Qe(ue()).optional()
4404
+ issuer: ce(),
4405
+ authorization_endpoint: ce(),
4406
+ token_endpoint: ce(),
4407
+ registration_endpoint: ce().optional(),
4408
+ scopes_supported: Qe(ce()).optional(),
4409
+ response_types_supported: Qe(ce()),
4410
+ response_modes_supported: Qe(ce()).optional(),
4411
+ grant_types_supported: Qe(ce()).optional(),
4412
+ token_endpoint_auth_methods_supported: Qe(ce()).optional(),
4413
+ token_endpoint_auth_signing_alg_values_supported: Qe(ce()).optional(),
4414
+ service_documentation: ce().optional(),
4415
+ revocation_endpoint: ce().optional(),
4416
+ revocation_endpoint_auth_methods_supported: Qe(ce()).optional(),
4417
+ revocation_endpoint_auth_signing_alg_values_supported: Qe(ce()).optional(),
4418
+ introspection_endpoint: ce().optional(),
4419
+ introspection_endpoint_auth_methods_supported: Qe(ce()).optional(),
4420
+ introspection_endpoint_auth_signing_alg_values_supported: Qe(ce()).optional(),
4421
+ code_challenge_methods_supported: Qe(ce()).optional()
4422
4422
  }).passthrough(), zb = xe({
4423
- access_token: ue(),
4424
- token_type: ue(),
4423
+ access_token: ce(),
4424
+ token_type: ce(),
4425
4425
  expires_in: Nt().optional(),
4426
- scope: ue().optional(),
4427
- refresh_token: ue().optional()
4426
+ scope: ce().optional(),
4427
+ refresh_token: ce().optional()
4428
4428
  }).strip();
4429
4429
  xe({
4430
- error: ue(),
4431
- error_description: ue().optional(),
4432
- error_uri: ue().optional()
4430
+ error: ce(),
4431
+ error_description: ce().optional(),
4432
+ error_uri: ce().optional()
4433
4433
  });
4434
4434
  const tL = xe({
4435
- redirect_uris: Qe(ue()).refine((r) => r.every((t) => URL.canParse(t)), { message: "redirect_uris must contain valid URLs" }),
4436
- token_endpoint_auth_method: ue().optional(),
4437
- grant_types: Qe(ue()).optional(),
4438
- response_types: Qe(ue()).optional(),
4439
- client_name: ue().optional(),
4440
- client_uri: ue().optional(),
4441
- logo_uri: ue().optional(),
4442
- scope: ue().optional(),
4443
- contacts: Qe(ue()).optional(),
4444
- tos_uri: ue().optional(),
4445
- policy_uri: ue().optional(),
4446
- jwks_uri: ue().optional(),
4435
+ redirect_uris: Qe(ce()).refine((r) => r.every((t) => URL.canParse(t)), { message: "redirect_uris must contain valid URLs" }),
4436
+ token_endpoint_auth_method: ce().optional(),
4437
+ grant_types: Qe(ce()).optional(),
4438
+ response_types: Qe(ce()).optional(),
4439
+ client_name: ce().optional(),
4440
+ client_uri: ce().optional(),
4441
+ logo_uri: ce().optional(),
4442
+ scope: ce().optional(),
4443
+ contacts: Qe(ce()).optional(),
4444
+ tos_uri: ce().optional(),
4445
+ policy_uri: ce().optional(),
4446
+ jwks_uri: ce().optional(),
4447
4447
  jwks: JP().optional(),
4448
- software_id: ue().optional(),
4449
- software_version: ue().optional()
4448
+ software_id: ce().optional(),
4449
+ software_version: ce().optional()
4450
4450
  }).strip(), nL = xe({
4451
- client_id: ue(),
4452
- client_secret: ue().optional(),
4451
+ client_id: ce(),
4452
+ client_secret: ce().optional(),
4453
4453
  client_id_issued_at: Nt().optional(),
4454
4454
  client_secret_expires_at: Nt().optional()
4455
4455
  }).strip(), rL = tL.merge(nL);
4456
4456
  xe({
4457
- error: ue(),
4458
- error_description: ue().optional()
4457
+ error: ce(),
4458
+ error_description: ce().optional()
4459
4459
  }).strip();
4460
4460
  xe({
4461
- token: ue(),
4462
- token_type_hint: ue().optional()
4461
+ token: ce(),
4462
+ token_type_hint: ce().optional()
4463
4463
  }).strip();
4464
4464
  class Go extends Error {
4465
4465
  constructor(t) {
@@ -4817,10 +4817,10 @@ async function dL(r, t, e) {
4817
4817
  if ("url" in r)
4818
4818
  n = new cL(new URL(r.url));
4819
4819
  else {
4820
- const { loadProfileEnvironmentVariables: i } = await import("./load-profile-Bu7wgoOq.js"), o = e.loadProfile === "never" || !e.workingDirectory ? process.env : await it(
4820
+ const { loadProfileEnvironmentVariables: i } = await import("./load-profile-CBXx5Izf.js"), o = e.loadProfile === "never" || !e.workingDirectory ? process.env : await it(
4821
4821
  i(e.workingDirectory, e.loadProfile)
4822
4822
  );
4823
- n = await import("./stdio-CNkqPrBz.js").then(
4823
+ n = await import("./stdio-8fytXW34.js").then(
4824
4824
  ({ StdioClientTransport: s }) => new s({
4825
4825
  ...r,
4826
4826
  stderr: "pipe",
@@ -6198,9 +6198,9 @@ function BL(r = !0) {
6198
6198
  // --- Type ---
6199
6199
  type: qL.optional(),
6200
6200
  // --- Annotations ---
6201
- format: ue().optional(),
6202
- title: ue().optional(),
6203
- description: ue().optional(),
6201
+ format: ce().optional(),
6202
+ title: ce().optional(),
6203
+ description: ce().optional(),
6204
6204
  default: ho().optional(),
6205
6205
  // --- Array Validations ---
6206
6206
  items: t.optional(),
@@ -6209,18 +6209,18 @@ function BL(r = !0) {
6209
6209
  // --- Generic Validations ---
6210
6210
  enum: Qe(ho()).optional(),
6211
6211
  // --- Object Validations ---
6212
- properties: rp(ue(), t).optional(),
6213
- required: Qe(ue()).optional(),
6212
+ properties: rp(ce(), t).optional(),
6213
+ required: Qe(ce()).optional(),
6214
6214
  minProperties: Ui.string().optional(),
6215
6215
  maxProperties: Ui.string().optional(),
6216
- propertyOrdering: Qe(ue()).optional(),
6216
+ propertyOrdering: Qe(ce()).optional(),
6217
6217
  // --- Numeric Validations ---
6218
6218
  minimum: Nt().optional(),
6219
6219
  maximum: Nt().optional(),
6220
6220
  // --- String Validations ---
6221
6221
  minLength: Ui.string().optional(),
6222
6222
  maxLength: Ui.string().optional(),
6223
- pattern: ue().optional(),
6223
+ pattern: ce().optional(),
6224
6224
  // --- Schema Composition ---
6225
6225
  anyOf: Qe(t).optional(),
6226
6226
  // --- Additional Properties --- This field is not included in the
@@ -13199,7 +13199,7 @@ var Mq = ns.exports, Yv;
13199
13199
  function kq() {
13200
13200
  return Yv || (Yv = 1, function(r, t) {
13201
13201
  (function() {
13202
- var e, n = "4.17.21", i = 200, o = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", u = "Invalid `variable` option passed into `_.template`", l = "__lodash_hash_undefined__", c = 500, d = "__lodash_placeholder__", g = 1, y = 2, w = 4, b = 1, _ = 2, C = 1, m = 2, T = 4, S = 8, A = 16, x = 32, D = 64, U = 128, O = 256, k = 512, H = 30, V = "...", N = 800, $ = 16, j = 1, K = 2, P = 3, I = 1 / 0, B = 9007199254740991, W = 17976931348623157e292, z = NaN, ee = 4294967295, ne = ee - 1, ce = ee >>> 1, te = [
13202
+ var e, n = "4.17.21", i = 200, o = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", u = "Invalid `variable` option passed into `_.template`", l = "__lodash_hash_undefined__", c = 500, d = "__lodash_placeholder__", g = 1, y = 2, w = 4, b = 1, _ = 2, C = 1, m = 2, T = 4, S = 8, A = 16, x = 32, D = 64, U = 128, O = 256, k = 512, H = 30, V = "...", N = 800, $ = 16, j = 1, K = 2, P = 3, I = 1 / 0, B = 9007199254740991, W = 17976931348623157e292, z = NaN, ee = 4294967295, ne = ee - 1, ue = ee >>> 1, te = [
13203
13203
  ["ary", U],
13204
13204
  ["bind", C],
13205
13205
  ["bindKey", m],
@@ -14501,7 +14501,7 @@ function kq() {
14501
14501
  }
14502
14502
  function na(a, f, v) {
14503
14503
  var E = 0, R = a == null ? E : a.length;
14504
- if (typeof f == "number" && f === f && R <= ce) {
14504
+ if (typeof f == "number" && f === f && R <= ue) {
14505
14505
  for (; E < R; ) {
14506
14506
  var L = E + R >>> 1, G = a[L];
14507
14507
  G !== null && !nn(G) && (v ? G <= f : G < f) ? E = L + 1 : R = L;
@@ -21871,7 +21871,7 @@ async function tV(r, t) {
21871
21871
  }
21872
21872
  }
21873
21873
  async function nV(r, t) {
21874
- return (await import("./list_directory.node-Dmx2XM_W.js")).resolveArgumentDirectoryNode(r, t);
21874
+ return (await import("./list_directory.node-CChuHPoL.js")).resolveArgumentDirectoryNode(r, t);
21875
21875
  }
21876
21876
  function rV(r, t) {
21877
21877
  r["~debug"] = {
@@ -22252,7 +22252,7 @@ async function lV({
22252
22252
  fileMentions: void 0,
22253
22253
  userState: void 0
22254
22254
  };
22255
- const o = (await import("./files-U5BBkj-L.js").then(
22255
+ const o = (await import("./files-CApLN3XI.js").then(
22256
22256
  ({ getFileMentions: u }) => u(
22257
22257
  hb(e.content),
22258
22258
  i,
@@ -22316,8 +22316,8 @@ class to {
22316
22316
  static async cancelToolRun(t, e) {
22317
22317
  await this.threadWorkers.get(t)?.findAndCancelToolRun(e);
22318
22318
  }
22319
- static async detachToolRun(t, e) {
22320
- await this.threadWorkers.get(t)?.detachToolRun(e);
22319
+ static async sendToolRunMessage(t, e, n) {
22320
+ await this.threadWorkers.get(t)?.sendToolRunMessage(e, n);
22321
22321
  }
22322
22322
  static async cancel(t) {
22323
22323
  await this.threadWorkers.get(t)?.cancel();
@@ -22895,14 +22895,14 @@ class to {
22895
22895
  async findAndCancelToolRun(t, e) {
22896
22896
  this.cancelInference(), no(this.thread, t) && await this.cancelTool(t, e);
22897
22897
  }
22898
- async detachToolRun(t) {
22898
+ async sendToolRunMessage(t, e) {
22899
22899
  if (!no(this.thread, t)) return;
22900
- const n = this.ops.toolMessages[t];
22901
- if (!n) {
22900
+ const i = this.ops.toolMessages[t];
22901
+ if (!i) {
22902
22902
  oe.warn("unable to detach tool use, missing toolMessages", { id: t });
22903
22903
  return;
22904
22904
  }
22905
- n.next({ type: "detach-terminal" });
22905
+ i.next(e);
22906
22906
  }
22907
22907
  cancelDataForToolRun(t) {
22908
22908
  const n = os(this.thread).get(t)?.run;
@@ -23079,7 +23079,7 @@ IMPORTANT: The result of this tool (if any) should be displayed directly to the
23079
23079
  },
23080
23080
  source: "builtin"
23081
23081
  },
23082
- fn: import("./node-W217cnDV.js").then(({ runRoutine: r }) => r)
23082
+ fn: import("./node-Dmg_Tr9C.js").then(({ runRoutine: r }) => r)
23083
23083
  };
23084
23084
  let u_ = !1;
23085
23085
  async function hC(r, t = !1) {
@@ -25146,9 +25146,9 @@ var gC;
25146
25146
  if (!(z === ne - 1 || ee === 1)) if (z !== ne - 1 && ee === 2) {
25147
25147
  if (B.length < 2 || W !== 2 || B.charCodeAt(B.length - 1) !== 46 || B.charCodeAt(B.length - 2) !== 46) {
25148
25148
  if (B.length > 2) {
25149
- var ce = B.lastIndexOf("/");
25150
- if (ce !== B.length - 1) {
25151
- ce === -1 ? (B = "", W = 0) : W = (B = B.slice(0, ce)).length - 1 - B.lastIndexOf("/"), z = ne, ee = 0;
25149
+ var ue = B.lastIndexOf("/");
25150
+ if (ue !== B.length - 1) {
25151
+ ue === -1 ? (B = "", W = 0) : W = (B = B.slice(0, ue)).length - 1 - B.lastIndexOf("/"), z = ne, ee = 0;
25152
25152
  continue;
25153
25153
  }
25154
25154
  } else if (B.length === 2 || B.length === 1) {
@@ -25186,21 +25186,21 @@ var gC;
25186
25186
  if (N(K), N(P), K === P || (K = j.resolve(K)) === (P = j.resolve(P))) return "";
25187
25187
  for (var I = 1; I < K.length && K.charCodeAt(I) === 47; ++I) ;
25188
25188
  for (var B = K.length, W = B - I, z = 1; z < P.length && P.charCodeAt(z) === 47; ++z) ;
25189
- for (var ee = P.length - z, ne = W < ee ? W : ee, ce = -1, te = 0; te <= ne; ++te) {
25189
+ for (var ee = P.length - z, ne = W < ee ? W : ee, ue = -1, te = 0; te <= ne; ++te) {
25190
25190
  if (te === ne) {
25191
25191
  if (ee > ne) {
25192
25192
  if (P.charCodeAt(z + te) === 47) return P.slice(z + te + 1);
25193
25193
  if (te === 0) return P.slice(z + te);
25194
- } else W > ne && (K.charCodeAt(I + te) === 47 ? ce = te : te === 0 && (ce = 0));
25194
+ } else W > ne && (K.charCodeAt(I + te) === 47 ? ue = te : te === 0 && (ue = 0));
25195
25195
  break;
25196
25196
  }
25197
25197
  var fe = K.charCodeAt(I + te);
25198
25198
  if (fe !== P.charCodeAt(z + te)) break;
25199
- fe === 47 && (ce = te);
25199
+ fe === 47 && (ue = te);
25200
25200
  }
25201
25201
  var Y = "";
25202
- for (te = I + ce + 1; te <= B; ++te) te !== B && K.charCodeAt(te) !== 47 || (Y.length === 0 ? Y += ".." : Y += "/..");
25203
- return Y.length > 0 ? Y + P.slice(z + ce) : (z += ce, P.charCodeAt(z) === 47 && ++z, P.slice(z));
25202
+ for (te = I + ue + 1; te <= B; ++te) te !== B && K.charCodeAt(te) !== 47 || (Y.length === 0 ? Y += ".." : Y += "/..");
25203
+ return Y.length > 0 ? Y + P.slice(z + ue) : (z += ue, P.charCodeAt(z) === 47 && ++z, P.slice(z));
25204
25204
  }, _makeLong: function(K) {
25205
25205
  return K;
25206
25206
  }, dirname: function(K) {
@@ -25220,13 +25220,13 @@ var gC;
25220
25220
  if (P.length === K.length && P === K) return "";
25221
25221
  var ee = P.length - 1, ne = -1;
25222
25222
  for (I = K.length - 1; I >= 0; --I) {
25223
- var ce = K.charCodeAt(I);
25224
- if (ce === 47) {
25223
+ var ue = K.charCodeAt(I);
25224
+ if (ue === 47) {
25225
25225
  if (!z) {
25226
25226
  B = I + 1;
25227
25227
  break;
25228
25228
  }
25229
- } else ne === -1 && (z = !1, ne = I + 1), ee >= 0 && (ce === P.charCodeAt(ee) ? --ee == -1 && (W = I) : (ee = -1, W = ne));
25229
+ } else ne === -1 && (z = !1, ne = I + 1), ee >= 0 && (ue === P.charCodeAt(ee) ? --ee == -1 && (W = I) : (ee = -1, W = ne));
25230
25230
  }
25231
25231
  return B === W ? W = ne : W === -1 && (W = K.length), K.slice(B, W);
25232
25232
  }
@@ -25260,8 +25260,8 @@ var gC;
25260
25260
  if (K.length === 0) return P;
25261
25261
  var I, B = K.charCodeAt(0), W = B === 47;
25262
25262
  W ? (P.root = "/", I = 1) : I = 0;
25263
- for (var z = -1, ee = 0, ne = -1, ce = !0, te = K.length - 1, fe = 0; te >= I; --te) if ((B = K.charCodeAt(te)) !== 47) ne === -1 && (ce = !1, ne = te + 1), B === 46 ? z === -1 ? z = te : fe !== 1 && (fe = 1) : z !== -1 && (fe = -1);
25264
- else if (!ce) {
25263
+ for (var z = -1, ee = 0, ne = -1, ue = !0, te = K.length - 1, fe = 0; te >= I; --te) if ((B = K.charCodeAt(te)) !== 47) ne === -1 && (ue = !1, ne = te + 1), B === 46 ? z === -1 ? z = te : fe !== 1 && (fe = 1) : z !== -1 && (fe = -1);
25264
+ else if (!ue) {
25265
25265
  ee = te + 1;
25266
25266
  break;
25267
25267
  }
@@ -25644,7 +25644,7 @@ function Gh(r) {
25644
25644
  changes: e
25645
25645
  };
25646
25646
  }
25647
- const xV = import("./node-7PIWGuuc.js").then(
25647
+ const xV = import("./node-BGD834Zv.js").then(
25648
25648
  ({ nodeFileSystem: r }) => r
25649
25649
  );
25650
25650
  class RV {
@@ -25786,6 +25786,42 @@ async function v_(r) {
25786
25786
 
25787
25787
  `).trimEnd();
25788
25788
  }
25789
+ async function OV() {
25790
+ const r = Je.join(process.cwd(), Lk), t = Je.join(process.cwd(), ".sourcegraph", "memory.md");
25791
+ let e = !0, n = !1;
25792
+ try {
25793
+ await li(t, "utf-8");
25794
+ try {
25795
+ await li(r, "utf-8"), e = !1;
25796
+ } catch {
25797
+ try {
25798
+ await Qh(Je.dirname(r), { recursive: !0 });
25799
+ const o = await li(t, "utf-8");
25800
+ await Xh(r, o, "utf-8"), await Zk(t), e = !1, n = !0;
25801
+ } catch (o) {
25802
+ oe.error("Failed to migrate memory.md to AGENT.md", o), e = !0;
25803
+ }
25804
+ }
25805
+ } catch {
25806
+ try {
25807
+ await li(r, "utf-8"), e = !1;
25808
+ } catch {
25809
+ e = !0;
25810
+ }
25811
+ }
25812
+ return {
25813
+ shouldGenerate: e,
25814
+ migrated: n
25815
+ };
25816
+ }
25817
+ async function LV(r) {
25818
+ await r.handle({
25819
+ type: "user:message",
25820
+ message: {
25821
+ content: [{ type: "text", text: Nk }]
25822
+ }
25823
+ });
25824
+ }
25789
25825
  var vf = {}, La = {}, _f, __;
25790
25826
  function cn() {
25791
25827
  if (__) return _f;
@@ -25894,7 +25930,7 @@ Found: `.concat(C.toString().split(`
25894
25930
  }, _f;
25895
25931
  }
25896
25932
  var zo = { exports: {} }, wf = { exports: {} }, bf = { exports: {} }, Tf = { exports: {} }, w_;
25897
- function OV() {
25933
+ function NV() {
25898
25934
  return w_ || (w_ = 1, function(r) {
25899
25935
  var t = {};
25900
25936
  r.exports = t;
@@ -25958,7 +25994,7 @@ function OV() {
25958
25994
  }(Tf)), Tf.exports;
25959
25995
  }
25960
25996
  var Cf, b_;
25961
- function LV() {
25997
+ function DV() {
25962
25998
  return b_ || (b_ = 1, Cf = function(r, t) {
25963
25999
  t = t || process.argv || [];
25964
26000
  var e = t.indexOf("--"), n = /^-{1,2}/.test(r) ? "" : "--", i = t.indexOf(n + r);
@@ -25966,10 +26002,10 @@ function LV() {
25966
26002
  }), Cf;
25967
26003
  }
25968
26004
  var Sf, T_;
25969
- function NV() {
26005
+ function FV() {
25970
26006
  if (T_) return Sf;
25971
26007
  T_ = 1;
25972
- var r = gr, t = LV(), e = process.env, n = void 0;
26008
+ var r = gr, t = DV(), e = process.env, n = void 0;
25973
26009
  t("no-color") || t("no-colors") || t("color=false") ? n = !1 : (t("color") || t("colors") || t("color=true") || t("color=always")) && (n = !0), "FORCE_COLOR" in e && (n = e.FORCE_COLOR.length === 0 || parseInt(e.FORCE_COLOR, 10) !== 0);
25974
26010
  function i(u) {
25975
26011
  return u === 0 ? !1 : {
@@ -26023,7 +26059,7 @@ function NV() {
26023
26059
  }, Sf;
26024
26060
  }
26025
26061
  var Ef = { exports: {} }, C_;
26026
- function DV() {
26062
+ function $V() {
26027
26063
  return C_ || (C_ = 1, function(r) {
26028
26064
  r.exports = function(e, n) {
26029
26065
  var i = "";
@@ -26084,7 +26120,7 @@ function DV() {
26084
26120
  }(Ef)), Ef.exports;
26085
26121
  }
26086
26122
  var Af = { exports: {} }, S_;
26087
- function FV() {
26123
+ function UV() {
26088
26124
  return S_ || (S_ = 1, function(r) {
26089
26125
  r.exports = function(e, n) {
26090
26126
  e = e || " he is here ";
@@ -26246,7 +26282,7 @@ function FV() {
26246
26282
  }(Af)), Af.exports;
26247
26283
  }
26248
26284
  var xf = { exports: {} }, E_;
26249
- function $V() {
26285
+ function qV() {
26250
26286
  return E_ || (E_ = 1, function(r) {
26251
26287
  r.exports = function(t) {
26252
26288
  return function(e, n, i) {
@@ -26264,7 +26300,7 @@ function $V() {
26264
26300
  }(xf)), xf.exports;
26265
26301
  }
26266
26302
  var Rf = { exports: {} }, A_;
26267
- function UV() {
26303
+ function BV() {
26268
26304
  return A_ || (A_ = 1, function(r) {
26269
26305
  r.exports = function(t) {
26270
26306
  return function(e, n, i) {
@@ -26274,7 +26310,7 @@ function UV() {
26274
26310
  }(Rf)), Rf.exports;
26275
26311
  }
26276
26312
  var If = { exports: {} }, x_;
26277
- function qV() {
26313
+ function VV() {
26278
26314
  return x_ || (x_ = 1, function(r) {
26279
26315
  r.exports = function(t) {
26280
26316
  var e = ["red", "yellow", "green", "blue", "magenta"];
@@ -26285,7 +26321,7 @@ function qV() {
26285
26321
  }(If)), If.exports;
26286
26322
  }
26287
26323
  var Mf = { exports: {} }, R_;
26288
- function BV() {
26324
+ function HV() {
26289
26325
  return R_ || (R_ = 1, function(r) {
26290
26326
  r.exports = function(t) {
26291
26327
  var e = [
@@ -26314,12 +26350,12 @@ function BV() {
26314
26350
  }(Mf)), Mf.exports;
26315
26351
  }
26316
26352
  var I_;
26317
- function VV() {
26353
+ function GV() {
26318
26354
  return I_ || (I_ = 1, function(r) {
26319
26355
  var t = {};
26320
26356
  r.exports = t, t.themes = {};
26321
- var e = Jn, n = t.styles = OV(), i = Object.defineProperties, o = new RegExp(/[\r\n]+/g);
26322
- t.supportsColor = NV().supportsColor, typeof t.enabled > "u" && (t.enabled = t.supportsColor() !== !1), t.enable = function() {
26357
+ var e = Jn, n = t.styles = NV(), i = Object.defineProperties, o = new RegExp(/[\r\n]+/g);
26358
+ t.supportsColor = FV().supportsColor, typeof t.enabled > "u" && (t.enabled = t.supportsColor() !== !1), t.enable = function() {
26323
26359
  t.enabled = !0;
26324
26360
  }, t.disable = function() {
26325
26361
  t.enabled = !1;
@@ -26400,7 +26436,7 @@ function VV() {
26400
26436
  var T = m.split("");
26401
26437
  return T = T.map(C), T.join("");
26402
26438
  };
26403
- t.trap = DV(), t.zalgo = FV(), t.maps = {}, t.maps.america = $V()(t), t.maps.zebra = UV()(t), t.maps.rainbow = qV()(t), t.maps.random = BV()(t);
26439
+ t.trap = $V(), t.zalgo = UV(), t.maps = {}, t.maps.america = qV()(t), t.maps.zebra = BV()(t), t.maps.rainbow = VV()(t), t.maps.random = HV()(t);
26404
26440
  for (var b in t.maps)
26405
26441
  (function(_) {
26406
26442
  t[_] = function(C) {
@@ -26413,12 +26449,12 @@ function VV() {
26413
26449
  var M_;
26414
26450
  function wC() {
26415
26451
  return M_ || (M_ = 1, function(r) {
26416
- var t = VV();
26452
+ var t = GV();
26417
26453
  r.exports = t;
26418
26454
  }(wf)), wf.exports;
26419
26455
  }
26420
26456
  var kf = {}, Pf = {}, Na = {}, k_;
26421
- function HV() {
26457
+ function WV() {
26422
26458
  return k_ || (k_ = 1, Na.levels = {
26423
26459
  error: 0,
26424
26460
  warn: 1,
@@ -26444,7 +26480,7 @@ function HV() {
26444
26480
  }), Na;
26445
26481
  }
26446
26482
  var Da = {}, P_;
26447
- function GV() {
26483
+ function KV() {
26448
26484
  return P_ || (P_ = 1, Da.levels = {
26449
26485
  error: 0,
26450
26486
  warn: 1,
@@ -26464,7 +26500,7 @@ function GV() {
26464
26500
  }), Da;
26465
26501
  }
26466
26502
  var Fa = {}, O_;
26467
- function WV() {
26503
+ function JV() {
26468
26504
  return O_ || (O_ = 1, Fa.levels = {
26469
26505
  emerg: 0,
26470
26506
  alert: 1,
@@ -26486,14 +26522,14 @@ function WV() {
26486
26522
  }), Fa;
26487
26523
  }
26488
26524
  var L_;
26489
- function KV() {
26525
+ function zV() {
26490
26526
  return L_ || (L_ = 1, function(r) {
26491
26527
  Object.defineProperty(r, "cli", {
26492
- value: HV()
26528
+ value: WV()
26493
26529
  }), Object.defineProperty(r, "npm", {
26494
- value: GV()
26530
+ value: KV()
26495
26531
  }), Object.defineProperty(r, "syslog", {
26496
- value: WV()
26532
+ value: JV()
26497
26533
  });
26498
26534
  }(Pf)), Pf;
26499
26535
  }
@@ -26507,7 +26543,7 @@ function bt() {
26507
26543
  }), Object.defineProperty(r, "SPLAT", {
26508
26544
  value: Symbol.for("splat")
26509
26545
  }), Object.defineProperty(r, "configs", {
26510
- value: KV()
26546
+ value: zV()
26511
26547
  });
26512
26548
  }(kf)), kf;
26513
26549
  }
@@ -26607,7 +26643,7 @@ function kp() {
26607
26643
  }, zo.exports.Colorizer = zo.exports.Format = g, zo.exports;
26608
26644
  }
26609
26645
  var Of, F_;
26610
- function JV() {
26646
+ function YV() {
26611
26647
  if (F_) return Of;
26612
26648
  F_ = 1;
26613
26649
  var r = kp(), t = r.Colorizer;
@@ -26616,7 +26652,7 @@ function JV() {
26616
26652
  }, Of;
26617
26653
  }
26618
26654
  var Lf, $_;
26619
- function zV() {
26655
+ function ZV() {
26620
26656
  if ($_) return Lf;
26621
26657
  $_ = 1;
26622
26658
  var r = cn();
@@ -26756,7 +26792,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
26756
26792
  }, Yo.exports.Padder = Yo.exports.Format = C, Yo.exports;
26757
26793
  }
26758
26794
  var q_;
26759
- function YV() {
26795
+ function jV() {
26760
26796
  if (q_) return $a.exports;
26761
26797
  q_ = 1;
26762
26798
  function r(b) {
@@ -26810,7 +26846,7 @@ function YV() {
26810
26846
  }, $a.exports.Format = w, $a.exports;
26811
26847
  }
26812
26848
  var Ua = { exports: {} }, B_;
26813
- function ZV() {
26849
+ function QV() {
26814
26850
  if (B_) return Ua.exports;
26815
26851
  B_ = 1;
26816
26852
  var r = cn();
@@ -26837,7 +26873,7 @@ function ZV() {
26837
26873
  }, Ua.exports.cascade = t, Ua.exports;
26838
26874
  }
26839
26875
  var Nf, V_;
26840
- function jV() {
26876
+ function XV() {
26841
26877
  if (V_) return Nf;
26842
26878
  V_ = 1;
26843
26879
  function r(l) {
@@ -26996,7 +27032,7 @@ function Rs() {
26996
27032
  return "null";
26997
27033
  if (I.indexOf(ee) !== -1)
26998
27034
  return A;
26999
- let ne = "", ce = ",";
27035
+ let ne = "", ue = ",";
27000
27036
  const te = z;
27001
27037
  if (Array.isArray(ee)) {
27002
27038
  if (ee.length === 0)
@@ -27004,18 +27040,18 @@ function Rs() {
27004
27040
  if (O < I.length + 1)
27005
27041
  return '"[Array]"';
27006
27042
  I.push(ee), W !== "" && (z += W, ne += `
27007
- ${z}`, ce = `,
27043
+ ${z}`, ue = `,
27008
27044
  ${z}`);
27009
27045
  const Ce = Math.min(ee.length, k);
27010
27046
  let F = 0;
27011
27047
  for (; F < Ce - 1; F++) {
27012
27048
  const de = H(String(F), ee, I, B, W, z);
27013
- ne += de !== void 0 ? de : "null", ne += ce;
27049
+ ne += de !== void 0 ? de : "null", ne += ue;
27014
27050
  }
27015
27051
  const q = H(String(F), ee, I, B, W, z);
27016
27052
  if (ne += q !== void 0 ? q : "null", ee.length - 1 > k) {
27017
27053
  const de = ee.length - k - 1;
27018
- ne += `${ce}"... ${b(de)} not stringified"`;
27054
+ ne += `${ue}"... ${b(de)} not stringified"`;
27019
27055
  }
27020
27056
  return W !== "" && (ne += `
27021
27057
  ${te}`), I.pop(), `[${ne}]`;
@@ -27027,17 +27063,17 @@ ${te}`), I.pop(), `[${ne}]`;
27027
27063
  if (O < I.length + 1)
27028
27064
  return '"[Object]"';
27029
27065
  let Z = "", ie = "";
27030
- W !== "" && (z += W, ce = `,
27066
+ W !== "" && (z += W, ue = `,
27031
27067
  ${z}`, Z = " ");
27032
27068
  const me = Math.min(Y, k);
27033
27069
  D && !l(ee) && (fe = s(fe, U)), I.push(ee);
27034
27070
  for (let Ce = 0; Ce < me; Ce++) {
27035
27071
  const F = fe[Ce], q = H(F, ee, I, B, W, z);
27036
- q !== void 0 && (ne += `${ie}${o(F)}:${Z}${q}`, ie = ce);
27072
+ q !== void 0 && (ne += `${ie}${o(F)}:${Z}${q}`, ie = ue);
27037
27073
  }
27038
27074
  if (Y > k) {
27039
27075
  const Ce = Y - k;
27040
- ne += `${ie}"...":${Z}"${b(Ce)} not stringified"`, ie = ce;
27076
+ ne += `${ie}"...":${Z}"${b(Ce)} not stringified"`, ie = ue;
27041
27077
  }
27042
27078
  return W !== "" && ie.length > 1 && (ne = `
27043
27079
  ${z}${ne}
@@ -27067,37 +27103,37 @@ ${te}`), I.pop(), `{${ne}}`;
27067
27103
  if (I.indexOf(P) !== -1)
27068
27104
  return A;
27069
27105
  const ee = z;
27070
- let ne = "", ce = ",";
27106
+ let ne = "", ue = ",";
27071
27107
  if (Array.isArray(P)) {
27072
27108
  if (P.length === 0)
27073
27109
  return "[]";
27074
27110
  if (O < I.length + 1)
27075
27111
  return '"[Array]"';
27076
27112
  I.push(P), W !== "" && (z += W, ne += `
27077
- ${z}`, ce = `,
27113
+ ${z}`, ue = `,
27078
27114
  ${z}`);
27079
27115
  const Y = Math.min(P.length, k);
27080
27116
  let Z = 0;
27081
27117
  for (; Z < Y - 1; Z++) {
27082
27118
  const me = V(String(Z), P[Z], I, B, W, z);
27083
- ne += me !== void 0 ? me : "null", ne += ce;
27119
+ ne += me !== void 0 ? me : "null", ne += ue;
27084
27120
  }
27085
27121
  const ie = V(String(Z), P[Z], I, B, W, z);
27086
27122
  if (ne += ie !== void 0 ? ie : "null", P.length - 1 > k) {
27087
27123
  const me = P.length - k - 1;
27088
- ne += `${ce}"... ${b(me)} not stringified"`;
27124
+ ne += `${ue}"... ${b(me)} not stringified"`;
27089
27125
  }
27090
27126
  return W !== "" && (ne += `
27091
27127
  ${ee}`), I.pop(), `[${ne}]`;
27092
27128
  }
27093
27129
  I.push(P);
27094
27130
  let te = "";
27095
- W !== "" && (z += W, ce = `,
27131
+ W !== "" && (z += W, ue = `,
27096
27132
  ${z}`, te = " ");
27097
27133
  let fe = "";
27098
27134
  for (const Y of B) {
27099
27135
  const Z = V(Y, P[Y], I, B, W, z);
27100
- Z !== void 0 && (ne += `${fe}${o(Y)}:${te}${Z}`, fe = ce);
27136
+ Z !== void 0 && (ne += `${fe}${o(Y)}:${te}${Z}`, fe = ue);
27101
27137
  }
27102
27138
  return W !== "" && fe.length > 1 && (ne = `
27103
27139
  ${z}${ne}
@@ -27163,17 +27199,17 @@ ${z}`, I.pop(), `[${Z}]`;
27163
27199
  if (O < I.length + 1)
27164
27200
  return '"[Object]"';
27165
27201
  W += B;
27166
- const ce = `,
27202
+ const ue = `,
27167
27203
  ${W}`;
27168
27204
  let te = "", fe = "", Y = Math.min(ne, k);
27169
- l(P) && (te += c(P, ce, k), ee = ee.slice(P.length), Y -= P.length, fe = ce), D && (ee = s(ee, U)), I.push(P);
27205
+ l(P) && (te += c(P, ue, k), ee = ee.slice(P.length), Y -= P.length, fe = ue), D && (ee = s(ee, U)), I.push(P);
27170
27206
  for (let Z = 0; Z < Y; Z++) {
27171
27207
  const ie = ee[Z], me = N(ie, P[ie], I, B, W);
27172
- me !== void 0 && (te += `${fe}${o(ie)}: ${me}`, fe = ce);
27208
+ me !== void 0 && (te += `${fe}${o(ie)}: ${me}`, fe = ue);
27173
27209
  }
27174
27210
  if (ne > k) {
27175
27211
  const Z = ne - k;
27176
- te += `${fe}"...": "${b(Z)} not stringified"`, fe = ce;
27212
+ te += `${fe}"...": "${b(Z)} not stringified"`, fe = ue;
27177
27213
  }
27178
27214
  return fe !== "" && (te = `
27179
27215
  ${W}${te}
@@ -27235,9 +27271,9 @@ ${z}`), I.pop(), `{${te}}`;
27235
27271
  return "{}";
27236
27272
  if (O < I.length + 1)
27237
27273
  return '"[Object]"';
27238
- let ne = "", ce = Math.min(ee, k);
27239
- W && l(P) && (B += c(P, ",", k), z = z.slice(P.length), ce -= P.length, ne = ","), D && (z = s(z, U)), I.push(P);
27240
- for (let te = 0; te < ce; te++) {
27274
+ let ne = "", ue = Math.min(ee, k);
27275
+ W && l(P) && (B += c(P, ",", k), z = z.slice(P.length), ue -= P.length, ne = ","), D && (z = s(z, U)), I.push(P);
27276
+ for (let te = 0; te < ue; te++) {
27241
27277
  const fe = z[te], Y = $(fe, P[fe], I);
27242
27278
  Y !== void 0 && (B += `${ne}${o(fe)}:${Y}`, ne = ",");
27243
27279
  }
@@ -27280,7 +27316,7 @@ ${z}`), I.pop(), `{${te}}`;
27280
27316
  }(qa, qa.exports)), qa.exports;
27281
27317
  }
27282
27318
  var Df, G_;
27283
- function QV() {
27319
+ function e5() {
27284
27320
  if (G_) return Df;
27285
27321
  G_ = 1;
27286
27322
  var r = cn(), t = bt(), e = t.MESSAGE, n = Rs();
@@ -27293,7 +27329,7 @@ function QV() {
27293
27329
  }), Df;
27294
27330
  }
27295
27331
  var Ff, W_;
27296
- function XV() {
27332
+ function t5() {
27297
27333
  if (W_) return Ff;
27298
27334
  W_ = 1;
27299
27335
  var r = cn();
@@ -27302,7 +27338,7 @@ function XV() {
27302
27338
  }), Ff;
27303
27339
  }
27304
27340
  var $f, K_;
27305
- function e5() {
27341
+ function n5() {
27306
27342
  if (K_) return $f;
27307
27343
  K_ = 1;
27308
27344
  var r = cn(), t = bt(), e = t.MESSAGE, n = Rs();
@@ -27312,7 +27348,7 @@ function e5() {
27312
27348
  }), $f;
27313
27349
  }
27314
27350
  var Uf, J_;
27315
- function t5() {
27351
+ function r5() {
27316
27352
  if (J_) return Uf;
27317
27353
  J_ = 1;
27318
27354
  function r(u) {
@@ -27362,7 +27398,7 @@ function t5() {
27362
27398
  }), Uf;
27363
27399
  }
27364
27400
  var qf, z_;
27365
- function n5() {
27401
+ function i5() {
27366
27402
  if (z_) return qf;
27367
27403
  z_ = 1;
27368
27404
  var r = 1e3, t = r * 60, e = t * 60, n = e * 24, i = n * 7, o = n * 365.25;
@@ -27444,17 +27480,17 @@ function n5() {
27444
27480
  return qf;
27445
27481
  }
27446
27482
  var Bf, Y_;
27447
- function r5() {
27483
+ function o5() {
27448
27484
  if (Y_) return Bf;
27449
27485
  Y_ = 1;
27450
- var r = void 0, t = cn(), e = n5();
27486
+ var r = void 0, t = cn(), e = i5();
27451
27487
  return Bf = t(function(n) {
27452
27488
  var i = +/* @__PURE__ */ new Date();
27453
27489
  return r.diff = i - (r.prevTime || i), r.prevTime = i, n.ms = "+".concat(e(r.diff)), n;
27454
27490
  }), Bf;
27455
27491
  }
27456
27492
  var Vf, Z_;
27457
- function i5() {
27493
+ function s5() {
27458
27494
  if (Z_) return Vf;
27459
27495
  Z_ = 1;
27460
27496
  var r = Jn.inspect, t = cn(), e = bt(), n = e.LEVEL, i = e.MESSAGE, o = e.SPLAT;
@@ -27464,7 +27500,7 @@ function i5() {
27464
27500
  }), Vf;
27465
27501
  }
27466
27502
  var Zo = { exports: {} }, j_;
27467
- function o5() {
27503
+ function a5() {
27468
27504
  if (j_) return Zo.exports;
27469
27505
  j_ = 1;
27470
27506
  function r(c) {
@@ -27517,7 +27553,7 @@ function o5() {
27517
27553
  }, Zo.exports.Printf = Zo.exports.Format = l, Zo.exports;
27518
27554
  }
27519
27555
  var Hf, Q_;
27520
- function s5() {
27556
+ function l5() {
27521
27557
  if (Q_) return Hf;
27522
27558
  Q_ = 1;
27523
27559
  var r = cn(), t = bt(), e = t.MESSAGE, n = Rs();
@@ -27531,7 +27567,7 @@ function s5() {
27531
27567
  }), Hf;
27532
27568
  }
27533
27569
  var Gf, X_;
27534
- function a5() {
27570
+ function u5() {
27535
27571
  if (X_) return Gf;
27536
27572
  X_ = 1;
27537
27573
  function r(T) {
@@ -27637,7 +27673,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
27637
27673
  return new m(T);
27638
27674
  }, Gf;
27639
27675
  }
27640
- var TC = /d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g, Mr = "\\d\\d?", Ir = "\\d\\d", l5 = "\\d{3}", u5 = "\\d{4}", ds = "[^\\s]+", CC = /\[([^]*?)\]/gm;
27676
+ var TC = /d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g, Mr = "\\d\\d?", Ir = "\\d\\d", c5 = "\\d{3}", f5 = "\\d{4}", ds = "[^\\s]+", CC = /\[([^]*?)\]/gm;
27641
27677
  function SC(r, t) {
27642
27678
  for (var e = [], n = 0, i = r.length; n < i; n++)
27643
27679
  e.push(r[n].substr(0, t));
@@ -27682,10 +27718,10 @@ var EC = [
27682
27718
  "October",
27683
27719
  "November",
27684
27720
  "December"
27685
- ], c5 = SC(AC, 3), f5 = SC(EC, 3), Pp = {
27686
- dayNamesShort: f5,
27721
+ ], d5 = SC(AC, 3), h5 = SC(EC, 3), Pp = {
27722
+ dayNamesShort: h5,
27687
27723
  dayNames: EC,
27688
- monthNamesShort: c5,
27724
+ monthNamesShort: d5,
27689
27725
  monthNames: AC,
27690
27726
  amPm: ["am", "pm"],
27691
27727
  DoFn: function(r) {
@@ -27699,7 +27735,7 @@ var EC = [
27699
27735
  for (t === void 0 && (t = 2), r = String(r); r.length < t; )
27700
27736
  r = "0" + r;
27701
27737
  return r;
27702
- }, d5 = {
27738
+ }, p5 = {
27703
27739
  D: function(r) {
27704
27740
  return String(r.getDate());
27705
27741
  },
@@ -27806,7 +27842,7 @@ var EC = [
27806
27842
  }
27807
27843
  return 0;
27808
27844
  }
27809
- ], h5 = {
27845
+ ], m5 = {
27810
27846
  D: ["day", Mr],
27811
27847
  DD: ["day", Ir],
27812
27848
  Do: ["day", Mr + ds, function(r) {
@@ -27830,14 +27866,14 @@ var EC = [
27830
27866
  mm: ["minute", Ir],
27831
27867
  s: ["second", Mr],
27832
27868
  ss: ["second", Ir],
27833
- YYYY: ["year", u5],
27869
+ YYYY: ["year", f5],
27834
27870
  S: ["millisecond", "\\d", function(r) {
27835
27871
  return +r * 100;
27836
27872
  }],
27837
27873
  SS: ["millisecond", Ir, function(r) {
27838
27874
  return +r * 10;
27839
27875
  }],
27840
- SSS: ["millisecond", l5],
27876
+ SSS: ["millisecond", c5],
27841
27877
  d: r0,
27842
27878
  dd: r0,
27843
27879
  ddd: i0,
@@ -27871,7 +27907,7 @@ var EC = [
27871
27907
  });
27872
27908
  var i = Wr(Wr({}, jl), e);
27873
27909
  return t = t.replace(TC, function(o) {
27874
- return d5[o](r, i);
27910
+ return p5[o](r, i);
27875
27911
  }), t.replace(/@@@/g, function() {
27876
27912
  return n.shift();
27877
27913
  });
@@ -27895,7 +27931,7 @@ function MC(r, t, e) {
27895
27931
  return s.push(t0(x)), "@@@";
27896
27932
  }), l = {}, c = {};
27897
27933
  u = t0(u).replace(TC, function(A) {
27898
- var x = h5[A], D = x[0], U = x[1], O = x[3];
27934
+ var x = m5[A], D = x[0], U = x[1], O = x[3];
27899
27935
  if (l[D])
27900
27936
  throw new Error("Invalid format. " + D + " specified twice in format");
27901
27937
  return l[D] = !0, O && (c[O] = !0), o.push(x), "(" + U + ")";
@@ -27931,35 +27967,35 @@ function MC(r, t, e) {
27931
27967
  return null;
27932
27968
  return m;
27933
27969
  }
27934
- var p5 = {
27970
+ var g5 = {
27935
27971
  format: IC,
27936
27972
  parse: MC,
27937
27973
  defaultI18n: Pp,
27938
27974
  setGlobalDateI18n: xC,
27939
27975
  setGlobalDateMasks: RC
27940
27976
  };
27941
- const m5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
27977
+ const y5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
27942
27978
  __proto__: null,
27943
27979
  assign: Wr,
27944
- default: p5,
27980
+ default: g5,
27945
27981
  defaultI18n: Pp,
27946
27982
  format: IC,
27947
27983
  parse: MC,
27948
27984
  setGlobalDateI18n: xC,
27949
27985
  setGlobalDateMasks: RC
27950
- }, Symbol.toStringTag, { value: "Module" })), g5 = /* @__PURE__ */ Lk(m5);
27986
+ }, Symbol.toStringTag, { value: "Module" })), v5 = /* @__PURE__ */ Dk(y5);
27951
27987
  var Wf, a0;
27952
- function y5() {
27988
+ function _5() {
27953
27989
  if (a0) return Wf;
27954
27990
  a0 = 1;
27955
- var r = g5, t = cn();
27991
+ var r = v5, t = cn();
27956
27992
  return Wf = t(function(e) {
27957
27993
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
27958
27994
  return n.format && (e.timestamp = typeof n.format == "function" ? n.format() : r.format(/* @__PURE__ */ new Date(), n.format)), e.timestamp || (e.timestamp = (/* @__PURE__ */ new Date()).toISOString()), n.alias && (e[n.alias] = e.timestamp), e;
27959
27995
  }), Wf;
27960
27996
  }
27961
27997
  var Kf, l0;
27962
- function v5() {
27998
+ function w5() {
27963
27999
  if (l0) return Kf;
27964
28000
  l0 = 1;
27965
28001
  var r = wC(), t = cn(), e = bt(), n = e.MESSAGE;
@@ -27972,40 +28008,40 @@ function kC() {
27972
28008
  if (u0) return La;
27973
28009
  u0 = 1;
27974
28010
  var r = La.format = cn();
27975
- return La.levels = JV(), Object.defineProperty(r, "align", {
27976
- value: zV()
28011
+ return La.levels = YV(), Object.defineProperty(r, "align", {
28012
+ value: ZV()
27977
28013
  }), Object.defineProperty(r, "cli", {
27978
- value: YV()
28014
+ value: jV()
27979
28015
  }), Object.defineProperty(r, "colorize", {
27980
28016
  value: kp()
27981
28017
  }), Object.defineProperty(r, "combine", {
27982
- value: ZV()
28018
+ value: QV()
27983
28019
  }), Object.defineProperty(r, "errors", {
27984
- value: jV()
28020
+ value: XV()
27985
28021
  }), Object.defineProperty(r, "json", {
27986
- value: QV()
28022
+ value: e5()
27987
28023
  }), Object.defineProperty(r, "label", {
27988
- value: XV()
28024
+ value: t5()
27989
28025
  }), Object.defineProperty(r, "logstash", {
27990
- value: e5()
28026
+ value: n5()
27991
28027
  }), Object.defineProperty(r, "metadata", {
27992
- value: t5()
27993
- }), Object.defineProperty(r, "ms", {
27994
28028
  value: r5()
28029
+ }), Object.defineProperty(r, "ms", {
28030
+ value: o5()
27995
28031
  }), Object.defineProperty(r, "padLevels", {
27996
28032
  value: bC()
27997
28033
  }), Object.defineProperty(r, "prettyPrint", {
27998
- value: i5()
28034
+ value: s5()
27999
28035
  }), Object.defineProperty(r, "printf", {
28000
- value: o5()
28036
+ value: a5()
28001
28037
  }), Object.defineProperty(r, "simple", {
28002
- value: s5()
28038
+ value: l5()
28003
28039
  }), Object.defineProperty(r, "splat", {
28004
- value: a5()
28040
+ value: u5()
28005
28041
  }), Object.defineProperty(r, "timestamp", {
28006
- value: y5()
28042
+ value: _5()
28007
28043
  }), Object.defineProperty(r, "uncolorize", {
28008
- value: v5()
28044
+ value: w5()
28009
28045
  }), La;
28010
28046
  }
28011
28047
  var Jf = {}, c0;
@@ -28041,11 +28077,11 @@ function PC() {
28041
28077
  };
28042
28078
  }(Jf)), Jf;
28043
28079
  }
28044
- const _5 = "3.17.0", w5 = {
28045
- version: _5
28080
+ const b5 = "3.17.0", T5 = {
28081
+ version: b5
28046
28082
  };
28047
28083
  var zf = {}, Ba = { exports: {} }, Yf = { exports: {} }, Zf, f0;
28048
- function b5() {
28084
+ function C5() {
28049
28085
  if (f0) return Zf;
28050
28086
  f0 = 1, Zf = r;
28051
28087
  function r(e, n) {
@@ -28214,7 +28250,7 @@ function Is() {
28214
28250
  }), Va.exports;
28215
28251
  }
28216
28252
  var td, y0;
28217
- function T5() {
28253
+ function S5() {
28218
28254
  if (y0) return td;
28219
28255
  y0 = 1;
28220
28256
  function r(b, _) {
@@ -28381,7 +28417,7 @@ function T5() {
28381
28417
  var nd = {}, Ha = { exports: {} };
28382
28418
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
28383
28419
  var v0;
28384
- function C5() {
28420
+ function E5() {
28385
28421
  return v0 || (v0 = 1, function(r, t) {
28386
28422
  var e = ru, n = e.Buffer;
28387
28423
  function i(s, u) {
@@ -28416,7 +28452,7 @@ var _0;
28416
28452
  function w0() {
28417
28453
  if (_0) return nd;
28418
28454
  _0 = 1;
28419
- var r = C5().Buffer, t = r.isEncoding || function(m) {
28455
+ var r = E5().Buffer, t = r.isEncoding || function(m) {
28420
28456
  switch (m = "" + m, m && m.toLowerCase()) {
28421
28457
  case "hex":
28422
28458
  case "utf8":
@@ -28618,7 +28654,7 @@ function Op() {
28618
28654
  return rd = i, rd;
28619
28655
  }
28620
28656
  var id, T0;
28621
- function S5() {
28657
+ function A5() {
28622
28658
  if (T0) return id;
28623
28659
  T0 = 1;
28624
28660
  var r;
@@ -28744,7 +28780,7 @@ function S5() {
28744
28780
  return id = T, id;
28745
28781
  }
28746
28782
  var od, C0;
28747
- function E5() {
28783
+ function x5() {
28748
28784
  return C0 || (C0 = 1, od = function() {
28749
28785
  throw new Error("Readable.from is not available in the browser");
28750
28786
  }), od;
@@ -28768,7 +28804,7 @@ function DC() {
28768
28804
  var u = Jn, l;
28769
28805
  u && u.debuglog ? l = u.debuglog("stream") : l = function() {
28770
28806
  };
28771
- var c = T5(), d = LC(), g = NC(), y = g.getHighWaterMark, w = Eo().codes, b = w.ERR_INVALID_ARG_TYPE, _ = w.ERR_STREAM_PUSH_AFTER_EOF, C = w.ERR_METHOD_NOT_IMPLEMENTED, m = w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, T, S, A;
28807
+ var c = S5(), d = LC(), g = NC(), y = g.getHighWaterMark, w = Eo().codes, b = w.ERR_INVALID_ARG_TYPE, _ = w.ERR_STREAM_PUSH_AFTER_EOF, C = w.ERR_METHOD_NOT_IMPLEMENTED, m = w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, T, S, A;
28772
28808
  Is()(k, e);
28773
28809
  var x = d.errorOrDestroy, D = ["error", "close", "destroy", "pause", "resume"];
28774
28810
  function U(F, q, de) {
@@ -28967,7 +29003,7 @@ function DC() {
28967
29003
  return Ve === -1 ? this : (q.pipes.splice(Ve, 1), q.pipesCount -= 1, q.pipesCount === 1 && (q.pipes = q.pipes[0]), F.emit("unpipe", this, de), this);
28968
29004
  }, k.prototype.on = function(F, q) {
28969
29005
  var de = e.prototype.on.call(this, F, q), ye = this._readableState;
28970
- return F === "data" ? (ye.readableListening = this.listenerCount("readable") > 0, ye.flowing !== !1 && this.resume()) : F === "readable" && !ye.endEmitted && !ye.readableListening && (ye.readableListening = ye.needReadable = !0, ye.flowing = !1, ye.emittedReadable = !1, l("on readable", ye.length, ye.reading), ye.length ? I(this) : ye.reading || process.nextTick(ce, this)), de;
29006
+ return F === "data" ? (ye.readableListening = this.listenerCount("readable") > 0, ye.flowing !== !1 && this.resume()) : F === "readable" && !ye.endEmitted && !ye.readableListening && (ye.readableListening = ye.needReadable = !0, ye.flowing = !1, ye.emittedReadable = !1, l("on readable", ye.length, ye.reading), ye.length ? I(this) : ye.reading || process.nextTick(ue, this)), de;
28971
29007
  }, k.prototype.addListener = k.prototype.on, k.prototype.removeListener = function(F, q) {
28972
29008
  var de = e.prototype.removeListener.call(this, F, q);
28973
29009
  return F === "readable" && process.nextTick(ne, this), de;
@@ -28979,7 +29015,7 @@ function DC() {
28979
29015
  var q = F._readableState;
28980
29016
  q.readableListening = F.listenerCount("readable") > 0, q.resumeScheduled && !q.paused ? q.flowing = !0 : F.listenerCount("data") > 0 && F.resume();
28981
29017
  }
28982
- function ce(F) {
29018
+ function ue(F) {
28983
29019
  l("readable nexttick read 0"), F.read(0);
28984
29020
  }
28985
29021
  k.prototype.resume = function() {
@@ -29025,7 +29061,7 @@ function DC() {
29025
29061
  l("wrapped _read", Ve), ye && (ye = !1, F.resume());
29026
29062
  }, this;
29027
29063
  }, typeof Symbol == "function" && (k.prototype[Symbol.asyncIterator] = function() {
29028
- return S === void 0 && (S = S5()), S(this);
29064
+ return S === void 0 && (S = A5()), S(this);
29029
29065
  }), Object.defineProperty(k.prototype, "readableHighWaterMark", {
29030
29066
  // making it explicit this property is not enumerable
29031
29067
  // because otherwise some prototype manipulation in
@@ -29078,7 +29114,7 @@ function DC() {
29078
29114
  }
29079
29115
  }
29080
29116
  typeof Symbol == "function" && (k.from = function(F, q) {
29081
- return A === void 0 && (A = E5()), A(k, F, q);
29117
+ return A === void 0 && (A = x5()), A(k, F, q);
29082
29118
  });
29083
29119
  function Ce(F, q) {
29084
29120
  for (var de = 0, ye = F.length; de < ye; de++)
@@ -29164,7 +29200,7 @@ function Mu() {
29164
29200
  var t;
29165
29201
  O.WritableState = D;
29166
29202
  var e = {
29167
- deprecate: b5()
29203
+ deprecate: C5()
29168
29204
  }, n = OC(), i = ru.Buffer, o = (typeof qn < "u" ? qn : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
29169
29205
  };
29170
29206
  function s(Y) {
@@ -29280,7 +29316,7 @@ function Mu() {
29280
29316
  Z.writelen = me, Z.writecb = q, Z.writing = !0, Z.sync = !0, Z.destroyed ? Z.onwrite(new C("write")) : ie ? Y._writev(Ce, Z.onwrite) : Y._write(Ce, F, Z.onwrite), Z.sync = !1;
29281
29317
  }
29282
29318
  function j(Y, Z, ie, me, Ce) {
29283
- --Z.pendingcb, ie ? (process.nextTick(Ce, me), process.nextTick(ce, Y, Z), Y._writableState.errorEmitted = !0, A(Y, me)) : (Ce(me), Y._writableState.errorEmitted = !0, A(Y, me), ce(Y, Z));
29319
+ --Z.pendingcb, ie ? (process.nextTick(Ce, me), process.nextTick(ue, Y, Z), Y._writableState.errorEmitted = !0, A(Y, me)) : (Ce(me), Y._writableState.errorEmitted = !0, A(Y, me), ue(Y, Z));
29284
29320
  }
29285
29321
  function K(Y) {
29286
29322
  Y.writing = !1, Y.writecb = null, Y.length -= Y.writelen, Y.writelen = 0;
@@ -29295,7 +29331,7 @@ function Mu() {
29295
29331
  }
29296
29332
  }
29297
29333
  function I(Y, Z, ie, me) {
29298
- ie || B(Y, Z), Z.pendingcb--, me(), ce(Y, Z);
29334
+ ie || B(Y, Z), Z.pendingcb--, me(), ue(Y, Z);
29299
29335
  }
29300
29336
  function B(Y, Z) {
29301
29337
  Z.length === 0 && Z.needDrain && (Z.needDrain = !1, Y.emit("drain"));
@@ -29338,13 +29374,13 @@ function Mu() {
29338
29374
  }
29339
29375
  function ee(Y, Z) {
29340
29376
  Y._final(function(ie) {
29341
- Z.pendingcb--, ie && A(Y, ie), Z.prefinished = !0, Y.emit("prefinish"), ce(Y, Z);
29377
+ Z.pendingcb--, ie && A(Y, ie), Z.prefinished = !0, Y.emit("prefinish"), ue(Y, Z);
29342
29378
  });
29343
29379
  }
29344
29380
  function ne(Y, Z) {
29345
29381
  !Z.prefinished && !Z.finalCalled && (typeof Y._final == "function" && !Z.destroyed ? (Z.pendingcb++, Z.finalCalled = !0, process.nextTick(ee, Y, Z)) : (Z.prefinished = !0, Y.emit("prefinish")));
29346
29382
  }
29347
- function ce(Y, Z) {
29383
+ function ue(Y, Z) {
29348
29384
  var ie = z(Z);
29349
29385
  if (ie && (ne(Y, Z), Z.pendingcb === 0 && (Z.finished = !0, Y.emit("finish"), Z.autoDestroy))) {
29350
29386
  var me = Y._readableState;
@@ -29353,7 +29389,7 @@ function Mu() {
29353
29389
  return ie;
29354
29390
  }
29355
29391
  function te(Y, Z, ie) {
29356
- Z.ending = !0, ce(Y, Z), ie && (Z.finished ? process.nextTick(ie) : Y.once("finish", ie)), Z.ended = !0, Y.writable = !1;
29392
+ Z.ending = !0, ue(Y, Z), ie && (Z.finished ? process.nextTick(ie) : Y.once("finish", ie)), Z.ended = !0, Y.writable = !1;
29357
29393
  }
29358
29394
  function fe(Y, Z, ie) {
29359
29395
  var me = Y.entry;
@@ -29444,7 +29480,7 @@ function FC() {
29444
29480
  }, Yf.exports;
29445
29481
  }
29446
29482
  var ud = { exports: {} }, R0;
29447
- function A5() {
29483
+ function R5() {
29448
29484
  if (R0) return ud.exports;
29449
29485
  R0 = 1;
29450
29486
  var r = Jn, t = bt(), e = t.LEVEL, n = FC(), i = ud.exports = function() {
@@ -29474,10 +29510,10 @@ function A5() {
29474
29510
  }
29475
29511
  var I0;
29476
29512
  function Ms() {
29477
- return I0 || (I0 = 1, Ba.exports = FC(), Ba.exports.LegacyTransportStream = A5()), Ba.exports;
29513
+ return I0 || (I0 = 1, Ba.exports = FC(), Ba.exports.LegacyTransportStream = R5()), Ba.exports;
29478
29514
  }
29479
29515
  var cd, M0;
29480
- function x5() {
29516
+ function I5() {
29481
29517
  if (M0) return cd;
29482
29518
  M0 = 1;
29483
29519
  function r(T) {
@@ -29607,7 +29643,7 @@ function Lp() {
29607
29643
  }(Ka, Ka.exports)), Ka.exports;
29608
29644
  }
29609
29645
  var Un = {}, Ja = { exports: {} }, za = { exports: {} }, P0;
29610
- function R5() {
29646
+ function M5() {
29611
29647
  return P0 || (P0 = 1, function(r, t) {
29612
29648
  Object.defineProperty(t, "__esModule", {
29613
29649
  value: !0
@@ -29620,7 +29656,7 @@ function R5() {
29620
29656
  }(za, za.exports)), za.exports;
29621
29657
  }
29622
29658
  var or = {}, O0;
29623
- function I5() {
29659
+ function k5() {
29624
29660
  if (O0) return or;
29625
29661
  O0 = 1, Object.defineProperty(or, "__esModule", {
29626
29662
  value: !0
@@ -29636,12 +29672,12 @@ function I5() {
29636
29672
  return r ? o = queueMicrotask : t ? o = setImmediate : e ? o = process.nextTick : o = n, or.default = i(o), or;
29637
29673
  }
29638
29674
  var L0;
29639
- function M5() {
29675
+ function P5() {
29640
29676
  return L0 || (L0 = 1, function(r, t) {
29641
29677
  Object.defineProperty(t, "__esModule", {
29642
29678
  value: !0
29643
29679
  }), t.default = l;
29644
- var e = R5(), n = u(e), i = I5(), o = u(i), s = Ao();
29680
+ var e = M5(), n = u(e), i = k5(), o = u(i), s = Ao();
29645
29681
  function u(g) {
29646
29682
  return g && g.__esModule ? g : { default: g };
29647
29683
  }
@@ -29686,7 +29722,7 @@ function Ao() {
29686
29722
  N0 = 1, Object.defineProperty(Un, "__esModule", {
29687
29723
  value: !0
29688
29724
  }), Un.isAsyncIterable = Un.isAsyncGenerator = Un.isAsync = void 0;
29689
- var r = M5(), t = e(r);
29725
+ var r = P5(), t = e(r);
29690
29726
  function e(u) {
29691
29727
  return u && u.__esModule ? u : { default: u };
29692
29728
  }
@@ -29727,7 +29763,7 @@ function ks() {
29727
29763
  }(Ya, Ya.exports)), Ya.exports;
29728
29764
  }
29729
29765
  var F0;
29730
- function k5() {
29766
+ function O5() {
29731
29767
  return F0 || (F0 = 1, function(r, t) {
29732
29768
  Object.defineProperty(t, "__esModule", {
29733
29769
  value: !0
@@ -29765,7 +29801,7 @@ function $C() {
29765
29801
  }(Xa, Xa.exports)), Xa.exports;
29766
29802
  }
29767
29803
  var el = { exports: {} }, tl = { exports: {} }, U0;
29768
- function P5() {
29804
+ function L5() {
29769
29805
  return U0 || (U0 = 1, function(r, t) {
29770
29806
  Object.defineProperty(t, "__esModule", {
29771
29807
  value: !0
@@ -29775,12 +29811,12 @@ function P5() {
29775
29811
  }(tl, tl.exports)), tl.exports;
29776
29812
  }
29777
29813
  var q0;
29778
- function O5() {
29814
+ function N5() {
29779
29815
  return q0 || (q0 = 1, function(r, t) {
29780
29816
  Object.defineProperty(t, "__esModule", {
29781
29817
  value: !0
29782
29818
  }), t.default = d;
29783
- var e = Lp(), n = s(e), i = P5(), o = s(i);
29819
+ var e = Lp(), n = s(e), i = L5(), o = s(i);
29784
29820
  function s(g) {
29785
29821
  return g && g.__esModule ? g : { default: g };
29786
29822
  }
@@ -29840,7 +29876,7 @@ function Np() {
29840
29876
  }(il, il.exports)), il.exports;
29841
29877
  }
29842
29878
  var H0;
29843
- function L5() {
29879
+ function D5() {
29844
29880
  return H0 || (H0 = 1, function(r, t) {
29845
29881
  Object.defineProperty(t, "__esModule", {
29846
29882
  value: !0
@@ -29883,12 +29919,12 @@ function L5() {
29883
29919
  }(rl, rl.exports)), rl.exports;
29884
29920
  }
29885
29921
  var G0;
29886
- function N5() {
29922
+ function F5() {
29887
29923
  return G0 || (G0 = 1, function(r, t) {
29888
29924
  Object.defineProperty(t, "__esModule", {
29889
29925
  value: !0
29890
29926
  });
29891
- var e = $C(), n = w(e), i = O5(), o = w(i), s = UC(), u = w(s), l = Ao(), c = L5(), d = w(c), g = Np(), y = w(g);
29927
+ var e = $C(), n = w(e), i = N5(), o = w(i), s = UC(), u = w(s), l = Ao(), c = D5(), d = w(c), g = Np(), y = w(g);
29892
29928
  function w(b) {
29893
29929
  return b && b.__esModule ? b : { default: b };
29894
29930
  }
@@ -29935,7 +29971,7 @@ function qC() {
29935
29971
  Object.defineProperty(t, "__esModule", {
29936
29972
  value: !0
29937
29973
  });
29938
- var e = N5(), n = l(e), i = Ao(), o = l(i), s = ks(), u = l(s);
29974
+ var e = F5(), n = l(e), i = Ao(), o = l(i), s = ks(), u = l(s);
29939
29975
  function l(d) {
29940
29976
  return d && d.__esModule ? d : { default: d };
29941
29977
  }
@@ -29946,7 +29982,7 @@ function qC() {
29946
29982
  }(ja, ja.exports)), ja.exports;
29947
29983
  }
29948
29984
  var K0;
29949
- function D5() {
29985
+ function $5() {
29950
29986
  return K0 || (K0 = 1, function(r, t) {
29951
29987
  Object.defineProperty(t, "__esModule", {
29952
29988
  value: !0
@@ -29962,12 +29998,12 @@ function D5() {
29962
29998
  }(Za, Za.exports)), Za.exports;
29963
29999
  }
29964
30000
  var J0;
29965
- function F5() {
30001
+ function U5() {
29966
30002
  return J0 || (J0 = 1, function(r, t) {
29967
30003
  Object.defineProperty(t, "__esModule", {
29968
30004
  value: !0
29969
30005
  }), t.default = u;
29970
- var e = k5(), n = s(e), i = D5(), o = s(i);
30006
+ var e = O5(), n = s(e), i = $5(), o = s(i);
29971
30007
  function s(l) {
29972
30008
  return l && l.__esModule ? l : { default: l };
29973
30009
  }
@@ -30037,7 +30073,7 @@ function BC() {
30037
30073
  return fd;
30038
30074
  }
30039
30075
  var dd, Y0;
30040
- function $5() {
30076
+ function q5() {
30041
30077
  if (Y0) return dd;
30042
30078
  Y0 = 1, dd = t;
30043
30079
  var r = BC();
@@ -30051,7 +30087,7 @@ function $5() {
30051
30087
  }, dd;
30052
30088
  }
30053
30089
  var hd, Z0;
30054
- function U5() {
30090
+ function B5() {
30055
30091
  if (Z0) return hd;
30056
30092
  Z0 = 1;
30057
30093
  var r;
@@ -30117,7 +30153,7 @@ function U5() {
30117
30153
  var j0;
30118
30154
  function xo() {
30119
30155
  return j0 || (j0 = 1, function(r, t) {
30120
- t = r.exports = DC(), t.Stream = t, t.Readable = t, t.Writable = Mu(), t.Duplex = yo(), t.Transform = BC(), t.PassThrough = $5(), t.finished = Op(), t.pipeline = U5();
30156
+ t = r.exports = DC(), t.Stream = t, t.Readable = t, t.Writable = Mu(), t.Duplex = yo(), t.Transform = BC(), t.PassThrough = q5(), t.finished = Op(), t.pipeline = B5();
30121
30157
  }(ol, ol.exports)), ol.exports;
30122
30158
  }
30123
30159
  var sl = { exports: {} }, pd, Q0;
@@ -30184,7 +30220,7 @@ function VC() {
30184
30220
  }, pd;
30185
30221
  }
30186
30222
  var md, X0;
30187
- function q5() {
30223
+ function V5() {
30188
30224
  if (X0) return md;
30189
30225
  X0 = 1;
30190
30226
  var r = VC(), t = r(function e(n, i) {
@@ -30193,16 +30229,16 @@ function q5() {
30193
30229
  return md = t, md;
30194
30230
  }
30195
30231
  var gd = { exports: {} }, yd = { exports: {} }, vd, ew;
30196
- function B5() {
30232
+ function H5() {
30197
30233
  return ew || (ew = 1, vd = function(t) {
30198
30234
  return !t || typeof t == "string" ? !1 : t instanceof Array || Array.isArray(t) || t.length >= 0 && (t.splice instanceof Function || Object.getOwnPropertyDescriptor(t, t.length - 1) && t.constructor.name !== "String");
30199
30235
  }), vd;
30200
30236
  }
30201
30237
  var tw;
30202
- function V5() {
30238
+ function G5() {
30203
30239
  if (tw) return yd.exports;
30204
30240
  tw = 1;
30205
- var r = B5(), t = Array.prototype.concat, e = Array.prototype.slice, n = yd.exports = function(o) {
30241
+ var r = H5(), t = Array.prototype.concat, e = Array.prototype.slice, n = yd.exports = function(o) {
30206
30242
  for (var s = [], u = 0, l = o.length; u < l; u++) {
30207
30243
  var c = o[u];
30208
30244
  r(c) ? s = t.call(s, e.call(c)) : s.push(c);
@@ -30216,10 +30252,10 @@ function V5() {
30216
30252
  }, yd.exports;
30217
30253
  }
30218
30254
  var nw;
30219
- function H5() {
30255
+ function W5() {
30220
30256
  if (nw) return gd.exports;
30221
30257
  nw = 1;
30222
- var r = Nk(), t = V5(), e = Object.hasOwnProperty, n = /* @__PURE__ */ Object.create(null);
30258
+ var r = Fk(), t = G5(), e = Object.hasOwnProperty, n = /* @__PURE__ */ Object.create(null);
30223
30259
  for (var i in r)
30224
30260
  e.call(r, i) && (n[r[i]] = i);
30225
30261
  var o = gd.exports = {
@@ -30312,7 +30348,7 @@ function H5() {
30312
30348
  return gd.exports;
30313
30349
  }
30314
30350
  var _d = { exports: {} }, wd, rw;
30315
- function G5() {
30351
+ function K5() {
30316
30352
  return rw || (rw = 1, wd = {
30317
30353
  aliceblue: [240, 248, 255],
30318
30354
  antiquewhite: [250, 235, 215],
@@ -30468,7 +30504,7 @@ var iw;
30468
30504
  function HC() {
30469
30505
  if (iw) return _d.exports;
30470
30506
  iw = 1;
30471
- var r = G5(), t = {};
30507
+ var r = K5(), t = {};
30472
30508
  for (var e in r)
30473
30509
  r.hasOwnProperty(e) && (t[r[e]] = e);
30474
30510
  var n = _d.exports = {
@@ -30733,7 +30769,7 @@ function HC() {
30733
30769
  }, _d.exports;
30734
30770
  }
30735
30771
  var bd, ow;
30736
- function W5() {
30772
+ function J5() {
30737
30773
  if (ow) return bd;
30738
30774
  ow = 1;
30739
30775
  var r = HC();
@@ -30775,10 +30811,10 @@ function W5() {
30775
30811
  }, bd;
30776
30812
  }
30777
30813
  var Td, sw;
30778
- function K5() {
30814
+ function z5() {
30779
30815
  if (sw) return Td;
30780
30816
  sw = 1;
30781
- var r = HC(), t = W5(), e = {}, n = Object.keys(r);
30817
+ var r = HC(), t = J5(), e = {}, n = Object.keys(r);
30782
30818
  function i(s) {
30783
30819
  var u = function(l) {
30784
30820
  return l == null ? l : (arguments.length > 1 && (l = Array.prototype.slice.call(arguments)), s(l));
@@ -30808,10 +30844,10 @@ function K5() {
30808
30844
  }), Td = e, Td;
30809
30845
  }
30810
30846
  var Cd, aw;
30811
- function J5() {
30847
+ function Y5() {
30812
30848
  if (aw) return Cd;
30813
30849
  aw = 1;
30814
- var r = H5(), t = K5(), e = [].slice, n = [
30850
+ var r = W5(), t = z5(), e = [].slice, n = [
30815
30851
  // to be honest, I don't really feel like keyword belongs in color convert, but eh.
30816
30852
  "keyword",
30817
30853
  // gray conflicts with some method names, and has its own method defined.
@@ -31066,7 +31102,7 @@ function J5() {
31066
31102
  return Cd = s, Cd;
31067
31103
  }
31068
31104
  var Sd, lw;
31069
- function z5() {
31105
+ function Z5() {
31070
31106
  return lw || (lw = 1, Sd = function(t) {
31071
31107
  for (var e = 0, n = 0; e < t.length; n = t.charCodeAt(e++) + ((n << 5) - n)) ;
31072
31108
  var i = Math.floor(
@@ -31078,10 +31114,10 @@ function z5() {
31078
31114
  }), Sd;
31079
31115
  }
31080
31116
  var Ed, uw;
31081
- function Y5() {
31117
+ function j5() {
31082
31118
  if (uw) return Ed;
31083
31119
  uw = 1;
31084
- var r = J5(), t = z5();
31120
+ var r = Y5(), t = Z5();
31085
31121
  return Ed = function(n, i) {
31086
31122
  var o = n.split(i || ":"), s = t(o[0]);
31087
31123
  if (!o.length) return s;
@@ -31091,10 +31127,10 @@ function Y5() {
31091
31127
  }, Ed;
31092
31128
  }
31093
31129
  var Ad, cw;
31094
- function Z5() {
31130
+ function Q5() {
31095
31131
  if (cw) return Ad;
31096
31132
  cw = 1;
31097
- var r = Y5();
31133
+ var r = j5();
31098
31134
  return Ad = function(e, n) {
31099
31135
  var i = n.namespace;
31100
31136
  if (n.colors === !1)
@@ -31104,7 +31140,7 @@ function Z5() {
31104
31140
  }, Ad;
31105
31141
  }
31106
31142
  var xd, fw;
31107
- function j5() {
31143
+ function X5() {
31108
31144
  return fw || (fw = 1, xd = function(t, e) {
31109
31145
  if (!e) return !1;
31110
31146
  for (var n = e.split(/[\s,]+/), i = 0; i < n.length; i++) {
@@ -31123,7 +31159,7 @@ var Rd, dw;
31123
31159
  function GC() {
31124
31160
  if (dw) return Rd;
31125
31161
  dw = 1;
31126
- var r = j5();
31162
+ var r = X5();
31127
31163
  return Rd = function(e) {
31128
31164
  return function(i) {
31129
31165
  try {
@@ -31135,7 +31171,7 @@ function GC() {
31135
31171
  }, Rd;
31136
31172
  }
31137
31173
  var Id, hw;
31138
- function Q5() {
31174
+ function eH() {
31139
31175
  if (hw) return Id;
31140
31176
  hw = 1;
31141
31177
  var r = GC();
@@ -31144,7 +31180,7 @@ function Q5() {
31144
31180
  }), Id;
31145
31181
  }
31146
31182
  var Md, pw;
31147
- function X5() {
31183
+ function tH() {
31148
31184
  if (pw) return Md;
31149
31185
  pw = 1;
31150
31186
  var r = GC();
@@ -31153,7 +31189,7 @@ function X5() {
31153
31189
  }), Md;
31154
31190
  }
31155
31191
  var kd, mw;
31156
- function eH() {
31192
+ function nH() {
31157
31193
  return mw || (mw = 1, kd = function(r, t) {
31158
31194
  try {
31159
31195
  Function.prototype.apply.call(console.log, console, t);
@@ -31162,20 +31198,20 @@ function eH() {
31162
31198
  }), kd;
31163
31199
  }
31164
31200
  var Pd, gw;
31165
- function tH() {
31201
+ function rH() {
31166
31202
  if (gw) return Pd;
31167
31203
  gw = 1;
31168
31204
  var r = VC(), t = r(function e(n, i) {
31169
31205
  return i = i || {}, i.namespace = n, i.prod = !1, i.dev = !0, !e.enabled(n) && !(i.force || e.force) ? e.nope(i) : e.yep(i);
31170
31206
  });
31171
- return t.modify(Z5()), t.use(Q5()), t.use(X5()), t.set(eH()), Pd = t, Pd;
31207
+ return t.modify(Q5()), t.use(eH()), t.use(tH()), t.set(nH()), Pd = t, Pd;
31172
31208
  }
31173
31209
  var yw;
31174
31210
  function ku() {
31175
- return yw || (yw = 1, process.env.NODE_ENV === "production" ? sl.exports = q5() : sl.exports = tH()), sl.exports;
31211
+ return yw || (yw = 1, process.env.NODE_ENV === "production" ? sl.exports = V5() : sl.exports = rH()), sl.exports;
31176
31212
  }
31177
31213
  var Od, vw;
31178
- function nH() {
31214
+ function iH() {
31179
31215
  if (vw) return Od;
31180
31216
  vw = 1;
31181
31217
  var r = uo, t = uP, e = t.StringDecoder, n = xo(), i = n.Stream;
@@ -31213,7 +31249,7 @@ function nH() {
31213
31249
  }, Od;
31214
31250
  }
31215
31251
  var Ld, _w;
31216
- function rH() {
31252
+ function oH() {
31217
31253
  if (_w) return Ld;
31218
31254
  _w = 1;
31219
31255
  function r(H) {
@@ -31286,7 +31322,7 @@ function rH() {
31286
31322
  return N.__proto__ = $, N;
31287
31323
  }, y(H, V);
31288
31324
  }
31289
- var w = uo, b = Je, _ = F5(), C = lP, m = bt(), T = m.MESSAGE, S = xo(), A = S.Stream, x = S.PassThrough, D = Ms(), U = ku()("winston:file"), O = gr, k = nH();
31325
+ var w = uo, b = Je, _ = U5(), C = lP, m = bt(), T = m.MESSAGE, S = xo(), A = S.Stream, x = S.PassThrough, D = Ms(), U = ku()("winston:file"), O = gr, k = iH();
31290
31326
  return Ld = /* @__PURE__ */ function(H) {
31291
31327
  function V() {
31292
31328
  var N, $ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -31396,7 +31432,7 @@ function rH() {
31396
31432
  }, {
31397
31433
  key: "query",
31398
31434
  value: function($, j) {
31399
- typeof $ == "function" && (j = $, $ = {}), $ = ce($);
31435
+ typeof $ == "function" && (j = $, $ = {}), $ = ue($);
31400
31436
  var K = b.join(this.dirname, this.filename), P = "", I = [], B = 0, W = w.createReadStream(K, {
31401
31437
  encoding: "utf8"
31402
31438
  });
@@ -31435,7 +31471,7 @@ function rH() {
31435
31471
  return !0;
31436
31472
  }
31437
31473
  }
31438
- function ce(te) {
31474
+ function ue(te) {
31439
31475
  return te = te || {}, te.rows = te.rows || te.limit || 10, te.start = te.start || 0, te.until = te.until || /* @__PURE__ */ new Date(), r(te.until) !== "object" && (te.until = new Date(te.until)), te.from = te.from || te.until - 24 * 60 * 60 * 1e3, r(te.from) !== "object" && (te.from = new Date(te.from)), te.order = te.order || "desc", te;
31440
31476
  }
31441
31477
  }
@@ -31663,11 +31699,11 @@ function rH() {
31663
31699
  if (this.maxFiles) {
31664
31700
  for (var B = this.zippedArchive ? ".gz" : "", W = this.maxFiles - 1; W > 1; W--)
31665
31701
  I.push(function(z, ee) {
31666
- var ne = this, ce = "".concat(j).concat(z - 1).concat($).concat(B), te = b.join(this.dirname, ce);
31702
+ var ne = this, ue = "".concat(j).concat(z - 1).concat($).concat(B), te = b.join(this.dirname, ue);
31667
31703
  w.exists(te, function(fe) {
31668
31704
  if (!fe)
31669
31705
  return ee(null);
31670
- ce = "".concat(j).concat(z).concat($).concat(B), w.rename(te, b.join(ne.dirname, ce), ee);
31706
+ ue = "".concat(j).concat(z).concat($).concat(B), w.rename(te, b.join(ne.dirname, ue), ee);
31671
31707
  });
31672
31708
  }.bind(this, W));
31673
31709
  _(I, function() {
@@ -31706,7 +31742,7 @@ function rH() {
31706
31742
  }(D), Ld;
31707
31743
  }
31708
31744
  var Nd, ww;
31709
- function iH() {
31745
+ function sH() {
31710
31746
  if (ww) return Nd;
31711
31747
  ww = 1;
31712
31748
  function r(U) {
@@ -31965,7 +32001,7 @@ function WC() {
31965
32001
  return r.writable = (t) => r(t) && t.writable !== !1 && typeof t._write == "function" && typeof t._writableState == "object", r.readable = (t) => r(t) && t.readable !== !1 && typeof t._read == "function" && typeof t._readableState == "object", r.duplex = (t) => r.writable(t) && r.readable(t), r.transform = (t) => r.duplex(t) && typeof t._transform == "function", Dd = r, Dd;
31966
32002
  }
31967
32003
  var Fd, Tw;
31968
- function oH() {
32004
+ function aH() {
31969
32005
  if (Tw) return Fd;
31970
32006
  Tw = 1;
31971
32007
  function r(T) {
@@ -32062,31 +32098,31 @@ function oH() {
32062
32098
  }(m), Fd;
32063
32099
  }
32064
32100
  var Cw;
32065
- function sH() {
32101
+ function lH() {
32066
32102
  return Cw || (Cw = 1, function(r) {
32067
32103
  Object.defineProperty(r, "Console", {
32068
32104
  configurable: !0,
32069
32105
  enumerable: !0,
32070
32106
  get: function() {
32071
- return x5();
32107
+ return I5();
32072
32108
  }
32073
32109
  }), Object.defineProperty(r, "File", {
32074
32110
  configurable: !0,
32075
32111
  enumerable: !0,
32076
32112
  get: function() {
32077
- return rH();
32113
+ return oH();
32078
32114
  }
32079
32115
  }), Object.defineProperty(r, "Http", {
32080
32116
  configurable: !0,
32081
32117
  enumerable: !0,
32082
32118
  get: function() {
32083
- return iH();
32119
+ return sH();
32084
32120
  }
32085
32121
  }), Object.defineProperty(r, "Stream", {
32086
32122
  configurable: !0,
32087
32123
  enumerable: !0,
32088
32124
  get: function() {
32089
- return oH();
32125
+ return aH();
32090
32126
  }
32091
32127
  });
32092
32128
  }(zf)), zf;
@@ -32099,7 +32135,7 @@ function Dp() {
32099
32135
  return Vi.cli = r.levels(e.cli), Vi.npm = r.levels(e.npm), Vi.syslog = r.levels(e.syslog), Vi.addColors = r.levels, Vi;
32100
32136
  }
32101
32137
  var al = { exports: {} }, ll = { exports: {} }, Ew;
32102
- function aH() {
32138
+ function uH() {
32103
32139
  return Ew || (Ew = 1, function(r, t) {
32104
32140
  Object.defineProperty(t, "__esModule", {
32105
32141
  value: !0
@@ -32129,7 +32165,7 @@ function aH() {
32129
32165
  }(ll, ll.exports)), ll.exports;
32130
32166
  }
32131
32167
  var ul = { exports: {} }, Aw;
32132
- function lH() {
32168
+ function cH() {
32133
32169
  return Aw || (Aw = 1, function(r, t) {
32134
32170
  Object.defineProperty(t, "__esModule", {
32135
32171
  value: !0
@@ -32146,7 +32182,7 @@ function Fp() {
32146
32182
  Object.defineProperty(t, "__esModule", {
32147
32183
  value: !0
32148
32184
  });
32149
- var e = aH(), n = d(e), i = lH(), o = d(i), s = Ao(), u = d(s), l = ks(), c = d(l);
32185
+ var e = uH(), n = d(e), i = cH(), o = d(i), s = Ao(), u = d(s), l = ks(), c = d(l);
32150
32186
  function d(y) {
32151
32187
  return y && y.__esModule ? y : { default: y };
32152
32188
  }
@@ -32157,7 +32193,7 @@ function Fp() {
32157
32193
  }(al, al.exports)), al.exports;
32158
32194
  }
32159
32195
  var $d, Rw;
32160
- function uH() {
32196
+ function fH() {
32161
32197
  if (Rw) return $d;
32162
32198
  Rw = 1;
32163
32199
  var r = Object.prototype.toString;
@@ -32175,7 +32211,7 @@ var Ud, Iw;
32175
32211
  function KC() {
32176
32212
  if (Iw) return Ud;
32177
32213
  Iw = 1;
32178
- var r = uH();
32214
+ var r = fH();
32179
32215
  return Ud = function(e) {
32180
32216
  var n = 0, i;
32181
32217
  function o() {
@@ -32275,7 +32311,7 @@ function JC() {
32275
32311
  }(qd)), qd;
32276
32312
  }
32277
32313
  var Bd, kw;
32278
- function cH() {
32314
+ function dH() {
32279
32315
  if (kw) return Bd;
32280
32316
  kw = 1;
32281
32317
  function r(_) {
@@ -32404,7 +32440,7 @@ function zC() {
32404
32440
  }
32405
32441
  return String(y);
32406
32442
  }
32407
- var s = gr, u = Fp(), l = ku()("winston:exception"), c = KC(), d = JC(), g = cH();
32443
+ var s = gr, u = Fp(), l = ku()("winston:exception"), c = KC(), d = JC(), g = dH();
32408
32444
  return Vd = /* @__PURE__ */ function() {
32409
32445
  function y(w) {
32410
32446
  if (t(this, y), !w)
@@ -32571,7 +32607,7 @@ function zC() {
32571
32607
  }(), Vd;
32572
32608
  }
32573
32609
  var Hd, Ow;
32574
- function fH() {
32610
+ function hH() {
32575
32611
  if (Ow) return Hd;
32576
32612
  Ow = 1;
32577
32613
  function r(_) {
@@ -32700,7 +32736,7 @@ function YC() {
32700
32736
  }
32701
32737
  return String(y);
32702
32738
  }
32703
- var s = gr, u = Fp(), l = ku()("winston:rejection"), c = KC(), d = JC(), g = fH();
32739
+ var s = gr, u = Fp(), l = ku()("winston:rejection"), c = KC(), d = JC(), g = hH();
32704
32740
  return Gd = /* @__PURE__ */ function() {
32705
32741
  function y(w) {
32706
32742
  if (t(this, y), !w)
@@ -32867,7 +32903,7 @@ function YC() {
32867
32903
  }(), Gd;
32868
32904
  }
32869
32905
  var Wd = { exports: {} }, Kd = { exports: {} }, Nw;
32870
- function dH() {
32906
+ function pH() {
32871
32907
  if (Nw) return Kd.exports;
32872
32908
  Nw = 1;
32873
32909
  const r = Jn, t = Mu(), { LEVEL: e } = bt(), n = Kd.exports = function(o = {}) {
@@ -32934,10 +32970,10 @@ function dH() {
32934
32970
  }, Kd.exports;
32935
32971
  }
32936
32972
  var Dw;
32937
- function hH() {
32973
+ function mH() {
32938
32974
  if (Dw) return Wd.exports;
32939
32975
  Dw = 1;
32940
- const r = Jn, { LEVEL: t } = bt(), e = dH(), n = Wd.exports = function(o = {}) {
32976
+ const r = Jn, { LEVEL: t } = bt(), e = pH(), n = Wd.exports = function(o = {}) {
32941
32977
  if (e.call(this, o), !o.transport || typeof o.transport.log != "function")
32942
32978
  throw new Error("Invalid transport, must be an object with a log method.");
32943
32979
  this.transport = o.transport, this.level = this.level || o.transport.level, this.handleExceptions = this.handleExceptions || o.transport.handleExceptions, this._deprecated();
@@ -32970,7 +33006,7 @@ function hH() {
32970
33006
  }, Wd.exports;
32971
33007
  }
32972
33008
  var Jd, Fw;
32973
- function pH() {
33009
+ function gH() {
32974
33010
  if (Fw) return Jd;
32975
33011
  Fw = 1;
32976
33012
  function r(u) {
@@ -33029,7 +33065,7 @@ function pH() {
33029
33065
  return Jd = s, Jd;
33030
33066
  }
33031
33067
  var zd, $w;
33032
- function mH() {
33068
+ function yH() {
33033
33069
  if ($w) return zd;
33034
33070
  $w = 1;
33035
33071
  class r extends Error {
@@ -33054,10 +33090,10 @@ Found: ${e.toString().split(`
33054
33090
  }, zd;
33055
33091
  }
33056
33092
  var Yd, Uw;
33057
- function gH() {
33093
+ function vH() {
33058
33094
  if (Uw) return Yd;
33059
33095
  Uw = 1;
33060
- const r = mH(), { MESSAGE: t } = bt(), e = Rs();
33096
+ const r = yH(), { MESSAGE: t } = bt(), e = Rs();
33061
33097
  function n(i, o) {
33062
33098
  return typeof o == "bigint" ? o.toString() : o;
33063
33099
  }
@@ -33143,7 +33179,7 @@ function $p() {
33143
33179
  return B.__proto__ = W, B;
33144
33180
  }, w(P, I);
33145
33181
  }
33146
- var b = xo(), _ = b.Stream, C = b.Transform, m = Fp(), T = bt(), S = T.LEVEL, A = T.SPLAT, x = WC(), D = zC(), U = YC(), O = hH(), k = pH(), H = PC(), V = H.warn, N = Dp(), $ = /%[scdjifoO%]/g, j = /* @__PURE__ */ function(P) {
33182
+ var b = xo(), _ = b.Stream, C = b.Transform, m = Fp(), T = bt(), S = T.LEVEL, A = T.SPLAT, x = WC(), D = zC(), U = YC(), O = mH(), k = gH(), H = PC(), V = H.warn, N = Dp(), $ = /%[scdjifoO%]/g, j = /* @__PURE__ */ function(P) {
33147
33183
  function I(B) {
33148
33184
  var W;
33149
33185
  return e(this, I), W = u(this, I, [{
@@ -33157,8 +33193,8 @@ function $p() {
33157
33193
  return Object.create(z, {
33158
33194
  write: {
33159
33195
  value: function(ne) {
33160
- var ce = Object.assign({}, W, ne);
33161
- ne instanceof Error && (ce.stack = ne.stack, ce.message = ne.message), z.write(ce);
33196
+ var ue = Object.assign({}, W, ne);
33197
+ ne instanceof Error && (ue.stack = ne.stack, ue.message = ne.message), z.write(ue);
33162
33198
  }
33163
33199
  }
33164
33200
  });
@@ -33174,8 +33210,8 @@ function $p() {
33174
33210
  }, {
33175
33211
  key: "configure",
33176
33212
  value: function() {
33177
- var W = this, z = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, ee = z.silent, ne = z.format, ce = z.defaultMeta, te = z.levels, fe = z.level, Y = fe === void 0 ? "info" : fe, Z = z.exitOnError, ie = Z === void 0 ? !0 : Z, me = z.transports, Ce = z.colors, F = z.emitErrs, q = z.formatters, de = z.padLevels, ye = z.rewriters, nt = z.stripColors, $e = z.exceptionHandlers, Ve = z.rejectionHandlers;
33178
- if (this.transports.length && this.clear(), this.silent = ee, this.format = ne || this.format || gH()(), this.defaultMeta = ce || null, this.levels = te || this.levels || N.npm.levels, this.level = Y, this.exceptions && this.exceptions.unhandle(), this.rejections && this.rejections.unhandle(), this.exceptions = new D(this), this.rejections = new U(this), this.profilers = {}, this.exitOnError = ie, me && (me = Array.isArray(me) ? me : [me], me.forEach(function(Sn) {
33213
+ var W = this, z = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, ee = z.silent, ne = z.format, ue = z.defaultMeta, te = z.levels, fe = z.level, Y = fe === void 0 ? "info" : fe, Z = z.exitOnError, ie = Z === void 0 ? !0 : Z, me = z.transports, Ce = z.colors, F = z.emitErrs, q = z.formatters, de = z.padLevels, ye = z.rewriters, nt = z.stripColors, $e = z.exceptionHandlers, Ve = z.rejectionHandlers;
33214
+ if (this.transports.length && this.clear(), this.silent = ee, this.format = ne || this.format || vH()(), this.defaultMeta = ue || null, this.levels = te || this.levels || N.npm.levels, this.level = Y, this.exceptions && this.exceptions.unhandle(), this.rejections && this.rejections.unhandle(), this.exceptions = new D(this), this.rejections = new U(this), this.profilers = {}, this.exitOnError = ie, me && (me = Array.isArray(me) ? me : [me], me.forEach(function(Sn) {
33179
33215
  return W.add(Sn);
33180
33216
  })), Ce || F || q || de || ye || nt)
33181
33217
  throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.", "Use a custom winston.format(function) instead.", "See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
@@ -33193,11 +33229,11 @@ function $p() {
33193
33229
  return !1;
33194
33230
  if (!this.transports || this.transports.length === 0)
33195
33231
  return ne >= ee;
33196
- var ce = this.transports.findIndex(function(te) {
33232
+ var ue = this.transports.findIndex(function(te) {
33197
33233
  var fe = K(z.levels, te.level);
33198
33234
  return fe === null && (fe = ne), fe >= ee;
33199
33235
  });
33200
- return ce !== -1;
33236
+ return ue !== -1;
33201
33237
  }
33202
33238
  /* eslint-disable valid-jsdoc */
33203
33239
  /**
@@ -33232,8 +33268,8 @@ function $p() {
33232
33268
  }, {
33233
33269
  key: "log",
33234
33270
  value: function(W, z) {
33235
- for (var ee = arguments.length, ne = new Array(ee > 2 ? ee - 2 : 0), ce = 2; ce < ee; ce++)
33236
- ne[ce - 2] = arguments[ce];
33271
+ for (var ee = arguments.length, ne = new Array(ee > 2 ? ee - 2 : 0), ue = 2; ue < ee; ue++)
33272
+ ne[ue - 2] = arguments[ue];
33237
33273
  if (arguments.length === 1)
33238
33274
  return W[S] = W.level, this._addDefaultMeta(W), this.write(W), this;
33239
33275
  if (arguments.length === 2)
@@ -33351,7 +33387,7 @@ function $p() {
33351
33387
  value: function(W, z) {
33352
33388
  typeof W == "function" && (z = W, W = {}), W = W || {};
33353
33389
  var ee = {}, ne = Object.assign({}, W.query || {});
33354
- function ce(fe, Y) {
33390
+ function ue(fe, Y) {
33355
33391
  W.query && typeof fe.formatQuery == "function" && (W.query = fe.formatQuery(ne)), fe.query(W, function(Z, ie) {
33356
33392
  if (Z)
33357
33393
  return Y(Z);
@@ -33359,7 +33395,7 @@ function $p() {
33359
33395
  });
33360
33396
  }
33361
33397
  function te(fe, Y) {
33362
- ce(fe, function(Z, ie) {
33398
+ ue(fe, function(Z, ie) {
33363
33399
  Y && (ie = Z || ie, ie && (ee[fe.name] = ie), Y()), Y = null;
33364
33400
  });
33365
33401
  }
@@ -33384,10 +33420,10 @@ function $p() {
33384
33420
  }, this.transports.filter(function(ne) {
33385
33421
  return !!ne.stream;
33386
33422
  }).forEach(function(ne) {
33387
- var ce = ne.stream(W);
33388
- ce && (ee.push(ce), ce.on("log", function(te) {
33423
+ var ue = ne.stream(W);
33424
+ ue && (ee.push(ue), ue.on("log", function(te) {
33389
33425
  te.transport = te.transport || [], te.transport.push(ne.name), z.emit("log", te);
33390
- }), ce.on("error", function(te) {
33426
+ }), ue.on("error", function(te) {
33391
33427
  te.transport = te.transport || [], te.transport.push(ne.name), z.emit("error", te);
33392
33428
  }));
33393
33429
  }), z;
@@ -33423,10 +33459,10 @@ function $p() {
33423
33459
  if (this.profilers[W]) {
33424
33460
  var ee = this.profilers[W];
33425
33461
  delete this.profilers[W];
33426
- for (var ne = arguments.length, ce = new Array(ne > 1 ? ne - 1 : 0), te = 1; te < ne; te++)
33427
- ce[te - 1] = arguments[te];
33428
- typeof ce[ce.length - 2] == "function" && (console.warn("Callback function no longer supported as of winston@3.0.0"), ce.pop());
33429
- var fe = t(ce[ce.length - 1]) === "object" ? ce.pop() : {};
33462
+ for (var ne = arguments.length, ue = new Array(ne > 1 ? ne - 1 : 0), te = 1; te < ne; te++)
33463
+ ue[te - 1] = arguments[te];
33464
+ typeof ue[ue.length - 2] == "function" && (console.warn("Callback function no longer supported as of winston@3.0.0"), ue.pop());
33465
+ var fe = t(ue[ue.length - 1]) === "object" ? ue.pop() : {};
33430
33466
  return fe.level = fe.level || "info", fe.durationMs = z - ee, fe.message = fe.message || W, this.write(fe);
33431
33467
  }
33432
33468
  return this.profilers[W] = z, this;
@@ -33587,7 +33623,7 @@ function ZC() {
33587
33623
  }, jd;
33588
33624
  }
33589
33625
  var Qd, Vw;
33590
- function yH() {
33626
+ function _H() {
33591
33627
  if (Vw) return Qd;
33592
33628
  Vw = 1;
33593
33629
  function r(u) {
@@ -33714,10 +33750,10 @@ function yH() {
33714
33750
  }(), Qd;
33715
33751
  }
33716
33752
  var Hw;
33717
- function vH() {
33753
+ function wH() {
33718
33754
  return Hw || (Hw = 1, function(r) {
33719
33755
  var t = kC(), e = PC(), n = e.warn;
33720
- r.version = w5.version, r.transports = sH(), r.config = Dp(), r.addColors = t.levels, r.format = t.format, r.createLogger = ZC(), r.Logger = $p(), r.ExceptionHandler = zC(), r.RejectionHandler = YC(), r.Container = yH(), r.Transport = Ms(), r.loggers = new r.Container();
33756
+ r.version = T5.version, r.transports = lH(), r.config = Dp(), r.addColors = t.levels, r.format = t.format, r.createLogger = ZC(), r.Logger = $p(), r.ExceptionHandler = zC(), r.RejectionHandler = YC(), r.Container = _H(), r.Transport = Ms(), r.loggers = new r.Container();
33721
33757
  var i = r.createLogger();
33722
33758
  Object.keys(r.config.npm.levels).concat(["log", "query", "stream", "add", "remove", "clear", "profile", "startTimer", "handleExceptions", "unhandleExceptions", "handleRejections", "unhandleRejections", "configure", "child"]).forEach(function(o) {
33723
33759
  return r[o] = function() {
@@ -33758,8 +33794,8 @@ function vH() {
33758
33794
  }), n.deprecated(r, "setLevels"), n.forFunctions(r, "useFormat", ["cli"]), n.forProperties(r, "useFormat", ["padLevels", "stripColors"]), n.forFunctions(r, "deprecated", ["addRewriter", "addFilter", "clone", "extend"]), n.forProperties(r, "deprecated", ["emitErrs", "levelLength"]);
33759
33795
  }(vf)), vf;
33760
33796
  }
33761
- var _H = vH();
33762
- const Hi = /* @__PURE__ */ jh(_H), Gw = Object.keys(oe);
33797
+ var bH = wH();
33798
+ const Hi = /* @__PURE__ */ jh(bH), Gw = Object.keys(oe);
33763
33799
  function Up(r) {
33764
33800
  const t = Je.join(CV || Je.join(nu(), ".cache"), "amp", "logs"), e = r?.logFile || Je.join(t, "cli.log"), n = r?.logLevel || "info";
33765
33801
  Gw.includes(n) || console.warn(`Invalid log level: ${n}. Using 'info' instead.`);
@@ -33777,7 +33813,7 @@ function Up(r) {
33777
33813
  ),
33778
33814
  transports: [new Hi.transports.File({ filename: e })]
33779
33815
  });
33780
- Dk({
33816
+ $k({
33781
33817
  error: i.error.bind(i),
33782
33818
  warn: i.warn.bind(i),
33783
33819
  info: i.info.bind(i),
@@ -33786,7 +33822,7 @@ function Up(r) {
33786
33822
  });
33787
33823
  }
33788
33824
  const Xd = _b(eP.exec);
33789
- async function wH(r) {
33825
+ async function TH(r) {
33790
33826
  const t = {
33791
33827
  displayName: _V.basename(r)
33792
33828
  };
@@ -33816,7 +33852,7 @@ async function wH(r) {
33816
33852
  ...t,
33817
33853
  repository: {
33818
33854
  type: "git",
33819
- url: bH(n.trim()),
33855
+ url: CH(n.trim()),
33820
33856
  ref: i.trim() ?? void 0,
33821
33857
  sha: o.trim() ?? void 0
33822
33858
  }
@@ -33825,7 +33861,7 @@ async function wH(r) {
33825
33861
  return oe.error("Error getting repository info:", e, { dir: r.fsPath }), t;
33826
33862
  }
33827
33863
  }
33828
- function bH(r) {
33864
+ function CH(r) {
33829
33865
  const t = ["github.com", "gitlab.com", "bitbucket.org"], e = r.replace(/\.git$/, "");
33830
33866
  let n = null, i = null;
33831
33867
  const o = e.match(/^git@([^:]+)[:|/](.+)$/);
@@ -33840,7 +33876,7 @@ function bH(r) {
33840
33876
  return n && i && t.includes(n) ? `https://${n}/${i}` : r;
33841
33877
  }
33842
33878
  let eh;
33843
- function TH() {
33879
+ function SH() {
33844
33880
  if (!eh) {
33845
33881
  const t = !(typeof process < "u" && process.versions && process.versions.node);
33846
33882
  let e = "linux";
@@ -33858,8 +33894,8 @@ function TH() {
33858
33894
  }
33859
33895
  return eh;
33860
33896
  }
33861
- function CH() {
33862
- const r = gb(), t = TH();
33897
+ function EH() {
33898
+ const r = gb(), t = SH();
33863
33899
  return {
33864
33900
  os: t.os,
33865
33901
  webBrowser: t.webBrowser,
@@ -33868,10 +33904,10 @@ function CH() {
33868
33904
  clientType: r.type
33869
33905
  };
33870
33906
  }
33871
- async function SH() {
33907
+ async function AH() {
33872
33908
  return {
33873
- trees: await Promise.all([process.cwd()].map((r) => wH(Mp.file(r)))),
33874
- platform: CH(),
33909
+ trees: await Promise.all([process.cwd()].map((r) => TH(Mp.file(r)))),
33910
+ platform: EH(),
33875
33911
  interactive: !0
33876
33912
  };
33877
33913
  }
@@ -33966,7 +34002,7 @@ const jC = {
33966
34002
  visible: !1,
33967
34003
  description: "Custom hooks for extending Amp functionality"
33968
34004
  }
33969
- }, EH = Object.fromEntries(
34005
+ }, xH = Object.fromEntries(
33970
34006
  Object.entries(jC).filter(([, r]) => r.visible).map(([r, t]) => [`amp.${r}`, t.value])
33971
34007
  ), cl = {
33972
34008
  examples: [
@@ -33985,14 +34021,14 @@ const jC = {
33985
34021
  ],
33986
34022
  configuration: {
33987
34023
  description: `Amp can be configured using a JSON settings file located at ${xs}. All settings use the "amp." prefix.`,
33988
- sampleConfig: JSON.stringify(EH, null, 2),
34024
+ sampleConfig: JSON.stringify(xH, null, 2),
33989
34025
  keyDescriptions: Object.entries(jC).filter(([, r]) => r.visible).map(([r, t]) => ({
33990
34026
  key: `amp.${r}`,
33991
34027
  description: t.description
33992
34028
  }))
33993
34029
  }
33994
34030
  };
33995
- class AH {
34031
+ class RH {
33996
34032
  cache = /* @__PURE__ */ new Map();
33997
34033
  maxSize;
33998
34034
  constructor(t = 100) {
@@ -34025,7 +34061,7 @@ class Ww {
34025
34061
  process = null;
34026
34062
  messageId = 0;
34027
34063
  pendingRequests = /* @__PURE__ */ new Map();
34028
- queryCache = new AH(50);
34064
+ queryCache = new RH(50);
34029
34065
  constructor() {
34030
34066
  }
34031
34067
  async start() {
@@ -34090,7 +34126,7 @@ class Ww {
34090
34126
  this.process && (this.process.kill(), this.process = null);
34091
34127
  }
34092
34128
  }
34093
- async function xH(r, t) {
34129
+ async function IH(r, t) {
34094
34130
  const e = gr.homedir();
34095
34131
  if (Je.resolve(t) === Je.resolve(e)) {
34096
34132
  oe.debug("Skipping indexing for home directory");
@@ -34128,7 +34164,7 @@ async function xH(r, t) {
34128
34164
  });
34129
34165
  });
34130
34166
  }
34131
- function RH(r, t) {
34167
+ function MH(r, t) {
34132
34168
  const e = gr.homedir();
34133
34169
  if (Je.resolve(t) === Je.resolve(e))
34134
34170
  return oe.debug("Skipping file watching for home directory"), { dispose: () => {
@@ -34183,15 +34219,15 @@ function RH(r, t) {
34183
34219
  }
34184
34220
  };
34185
34221
  }
34186
- const IH = Je.join(Zl || Je.join(nu(), ".local/share"), "amp"), MH = Je.join(IH, "history.json"), kH = 1e3;
34187
- class PH {
34222
+ const kH = Je.join(Zl || Je.join(nu(), ".local/share"), "amp"), PH = Je.join(kH, "history.json"), OH = 1e3;
34223
+ class LH {
34188
34224
  history = [];
34189
34225
  index = -1;
34190
34226
  loaded = !1;
34191
34227
  historyFile;
34192
34228
  maxSize;
34193
34229
  constructor(t) {
34194
- this.historyFile = t?.historyFile || MH, this.maxSize = t?.maxSize || kH, this.ensureLoaded();
34230
+ this.historyFile = t?.historyFile || PH, this.maxSize = t?.maxSize || OH, this.ensureLoaded();
34195
34231
  }
34196
34232
  async ensureLoaded() {
34197
34233
  if (!this.loaded) {
@@ -34234,7 +34270,7 @@ class PH {
34234
34270
  this.index = -1;
34235
34271
  }
34236
34272
  }
34237
- const OH = Buffer.from([1]), LH = Buffer.from([2]), QC = Buffer.from([3]), XC = Buffer.from([4]), NH = Buffer.from([5]), DH = Buffer.from([6]), FH = Buffer.from([8]), $H = Buffer.from([11]), UH = Buffer.from([12]), qH = Buffer.from([14]), BH = Buffer.from([16]), VH = Buffer.from([21]), HH = Buffer.from([23]), GH = Buffer.from([25]), WH = Buffer.from([7]), KH = Buffer.from([15]), JH = Buffer.from([17]), zH = Buffer.from([18]), YH = Buffer.from([19]), ZH = Buffer.from([20]), jH = Buffer.from([22]), QH = Buffer.from([24]), XH = Buffer.from([26]), eS = Buffer.from([27]), eG = Buffer.from([13]), tG = Buffer.from([10]), nG = Buffer.from([127]), rG = Buffer.from([9]), iG = Buffer.from([27, 91, 90]), oG = Buffer.from([27, 91, 65]), sG = Buffer.from([27, 91, 66]), aG = Buffer.from([27, 91, 67]), lG = Buffer.from([27, 91, 68]), uG = Buffer.from([27, 91, 53, 126]), cG = Buffer.from([27, 91, 54, 126]), fG = Buffer.from([27, 91, 72]), dG = Buffer.from([27, 91, 70]), hG = Buffer.from([27, 91, 49, 126]), pG = Buffer.from([27, 91, 52, 126]), mG = Buffer.from([27, 91, 51, 126]), gG = Buffer.from([27, 102]), yG = Buffer.from([27, 98]), vG = Buffer.from([27, 100]), _G = Buffer.from([27, 127]), wG = Buffer.from([27, 91, 50, 55, 59, 50, 59, 49, 51, 126]), tS = Buffer.from([27, 91, 50, 55, 59, 53, 59, 49, 51, 126]), nS = Buffer.from([27, 91, 50, 55, 59, 56, 59, 49, 51, 126]), Ne = {
34273
+ const NH = Buffer.from([1]), DH = Buffer.from([2]), QC = Buffer.from([3]), XC = Buffer.from([4]), FH = Buffer.from([5]), $H = Buffer.from([6]), UH = Buffer.from([8]), qH = Buffer.from([11]), BH = Buffer.from([12]), VH = Buffer.from([14]), HH = Buffer.from([16]), GH = Buffer.from([21]), WH = Buffer.from([23]), KH = Buffer.from([25]), JH = Buffer.from([7]), zH = Buffer.from([15]), YH = Buffer.from([17]), ZH = Buffer.from([18]), jH = Buffer.from([19]), QH = Buffer.from([20]), XH = Buffer.from([22]), eG = Buffer.from([24]), tG = Buffer.from([26]), eS = Buffer.from([27]), nG = Buffer.from([13]), rG = Buffer.from([10]), iG = Buffer.from([127]), oG = Buffer.from([9]), sG = Buffer.from([27, 91, 90]), aG = Buffer.from([27, 91, 65]), lG = Buffer.from([27, 91, 66]), uG = Buffer.from([27, 91, 67]), cG = Buffer.from([27, 91, 68]), fG = Buffer.from([27, 91, 53, 126]), dG = Buffer.from([27, 91, 54, 126]), hG = Buffer.from([27, 91, 72]), pG = Buffer.from([27, 91, 70]), mG = Buffer.from([27, 91, 49, 126]), gG = Buffer.from([27, 91, 52, 126]), yG = Buffer.from([27, 91, 51, 126]), vG = Buffer.from([27, 102]), _G = Buffer.from([27, 98]), wG = Buffer.from([27, 100]), bG = Buffer.from([27, 127]), TG = Buffer.from([27, 91, 50, 55, 59, 50, 59, 49, 51, 126]), tS = Buffer.from([27, 91, 50, 55, 59, 53, 59, 49, 51, 126]), nS = Buffer.from([27, 91, 50, 55, 59, 56, 59, 49, 51, 126]), Ne = {
34238
34274
  ESC: Buffer.from([27, 91, 50, 55, 117]),
34239
34275
  // CSI 27 u (Escape key)
34240
34276
  // Control keys
@@ -34321,7 +34357,7 @@ const OH = Buffer.from([1]), LH = Buffer.from([2]), QC = Buffer.from([3]), XC =
34321
34357
  }
34322
34358
  };
34323
34359
  var fl = { exports: {} }, Kw;
34324
- function bG() {
34360
+ function CG() {
34325
34361
  if (Kw) return fl.exports;
34326
34362
  Kw = 1;
34327
34363
  const r = 55296, t = 56319, e = 56320, n = 127462, i = 127487, o = 127995, s = 127999, u = 65024, l = 65039, c = 8400, d = 8447, g = 8205, y = [
@@ -34418,15 +34454,15 @@ function bG() {
34418
34454
  }
34419
34455
  return fl.exports = w, fl.exports.substr = O, fl.exports;
34420
34456
  }
34421
- var TG = bG();
34422
- const Te = /* @__PURE__ */ jh(TG);
34457
+ var SG = CG();
34458
+ const Te = /* @__PURE__ */ jh(SG);
34423
34459
  function Wh(r, t) {
34424
34460
  return r.length > t.length ? !1 : Buffer.from(Uint8Array.prototype.slice.call(t, 0, r.length)).equals(r);
34425
34461
  }
34426
34462
  function ge(r) {
34427
34463
  return Array.from(r).map((t) => t.toString(16).padStart(2, "0")).join("");
34428
34464
  }
34429
- function CG(r) {
34465
+ function EG(r) {
34430
34466
  const t = r.stdin || process.stdin, e = r.stdout || process.stdout, n = r.stderr || process.stderr, i = r.prompt || "", o = r.history, s = e.columns || 80, u = e.rows || 24, l = {
34431
34467
  lines: [""],
34432
34468
  cursorLine: 0,
@@ -34450,7 +34486,7 @@ function CG(r) {
34450
34486
  }))
34451
34487
  ), d = ah(e, "resize").pipe(
34452
34488
  at(() => ({ type: "resize" }))
34453
- ), g = new pr(), y = SG({
34489
+ ), g = new pr(), y = AG({
34454
34490
  stdout: e,
34455
34491
  stderr: n,
34456
34492
  state: l,
@@ -34579,7 +34615,7 @@ function CG(r) {
34579
34615
  })
34580
34616
  };
34581
34617
  }
34582
- function SG({
34618
+ function AG({
34583
34619
  stdout: r,
34584
34620
  stderr: t,
34585
34621
  state: e,
@@ -34591,14 +34627,14 @@ function SG({
34591
34627
  history: l
34592
34628
  }) {
34593
34629
  const c = {}, d = () => {
34594
- }, g = EG(o);
34595
- c[ge(eG)] = g, c[ge(tS)] = g, c[ge(Ne.CTRL_ENTER)] = g, c[ge(nS)] = g, c[ge(OH)] = Jw, c[ge(Ne.CTRL_A)] = Jw, c[ge(NH)] = Yw, c[ge(Ne.CTRL_E)] = Yw;
34630
+ }, g = xG(o);
34631
+ c[ge(nG)] = g, c[ge(tS)] = g, c[ge(Ne.CTRL_ENTER)] = g, c[ge(nS)] = g, c[ge(NH)] = Jw, c[ge(Ne.CTRL_A)] = Jw, c[ge(FH)] = Yw, c[ge(Ne.CTRL_E)] = Yw;
34596
34632
  const y = (_, C, m, T) => {
34597
- AG(_, C, m, T, l);
34633
+ RG(_, C, m, T, l);
34598
34634
  }, w = (_, C, m, T) => {
34599
- xG(_, C, m, T, l);
34635
+ IG(_, C, m, T, l);
34600
34636
  };
34601
- c[ge(oG)] = y, c[ge(BH)] = y, c[ge(Ne.CTRL_P)] = y, c[ge(sG)] = w, c[ge(qH)] = w, c[ge(Ne.CTRL_N)] = w, c[ge(aG)] = th, c[ge(DH)] = th, c[ge(Ne.CTRL_F)] = th, c[ge(lG)] = nh, c[ge(LH)] = nh, c[ge(Ne.CTRL_B)] = nh, c[ge(nG)] = dl, c[ge(FH)] = dl, c[ge(Ne.CTRL_H)] = dl, c[ge(Ne.SHIFT_BACKSPACE)] = dl, c[ge(VH)] = Zw, c[ge(Ne.CTRL_U)] = Zw, c[ge($H)] = jw, c[ge(Ne.CTRL_K)] = jw, c[ge(HH)] = hl, c[ge(Ne.CTRL_W)] = hl, c[ge(_G)] = hl, c[ge(Ne.ALT_BACKSPACE)] = hl, c[ge(GH)] = eb, c[ge(Ne.CTRL_Y)] = eb, c[ge(UH)] = tb, c[ge(Ne.CTRL_L)] = tb, c[ge(wG)] = hs, c[ge(Ne.SHIFT_ENTER)] = hs, c[ge(tG)] = hs, l && (c[ge(uG)] = Qw(l), c[ge(cG)] = Xw(l), c[ge(Ne.PAGE_UP)] = Qw(l), c[ge(Ne.PAGE_DOWN)] = Xw(l)), c[ge(fG)] = rh, c[ge(hG)] = rh, c[ge(Ne.HOME)] = rh, c[ge(dG)] = ih, c[ge(pG)] = ih, c[ge(Ne.END)] = ih, c[ge(gG)] = nb, c[ge(Ne.ALT_F)] = nb, c[ge(yG)] = rb, c[ge(Ne.ALT_B)] = rb, c[ge(XC)] = pl, c[ge(Ne.CTRL_D)] = pl, c[ge(vG)] = zw, c[ge(Ne.ALT_D)] = zw, c[ge(mG)] = pl, c[ge(Ne.DEL)] = pl, c[ge(rG)] = RG(u), c[ge(iG)] = ib(u), c[ge(Ne.SHIFT_TAB)] = ib(u), c[ge(WH)] = d, c[ge(Ne.CTRL_G)] = d, c[ge(KH)] = d, c[ge(Ne.CTRL_O)] = d, c[ge(JH)] = d, c[ge(Ne.CTRL_Q)] = d, c[ge(zH)] = d, c[ge(Ne.CTRL_R)] = d, c[ge(YH)] = d, c[ge(Ne.CTRL_S)] = d, c[ge(ZH)] = d, c[ge(Ne.CTRL_T)] = d, c[ge(jH)] = d, c[ge(Ne.CTRL_V)] = d, c[ge(QH)] = d, c[ge(Ne.CTRL_X)] = d, c[ge(XH)] = d, c[ge(Ne.CTRL_Z)] = d;
34637
+ c[ge(aG)] = y, c[ge(HH)] = y, c[ge(Ne.CTRL_P)] = y, c[ge(lG)] = w, c[ge(VH)] = w, c[ge(Ne.CTRL_N)] = w, c[ge(uG)] = th, c[ge($H)] = th, c[ge(Ne.CTRL_F)] = th, c[ge(cG)] = nh, c[ge(DH)] = nh, c[ge(Ne.CTRL_B)] = nh, c[ge(iG)] = dl, c[ge(UH)] = dl, c[ge(Ne.CTRL_H)] = dl, c[ge(Ne.SHIFT_BACKSPACE)] = dl, c[ge(GH)] = Zw, c[ge(Ne.CTRL_U)] = Zw, c[ge(qH)] = jw, c[ge(Ne.CTRL_K)] = jw, c[ge(WH)] = hl, c[ge(Ne.CTRL_W)] = hl, c[ge(bG)] = hl, c[ge(Ne.ALT_BACKSPACE)] = hl, c[ge(KH)] = eb, c[ge(Ne.CTRL_Y)] = eb, c[ge(BH)] = tb, c[ge(Ne.CTRL_L)] = tb, c[ge(TG)] = hs, c[ge(Ne.SHIFT_ENTER)] = hs, c[ge(rG)] = hs, l && (c[ge(fG)] = Qw(l), c[ge(dG)] = Xw(l), c[ge(Ne.PAGE_UP)] = Qw(l), c[ge(Ne.PAGE_DOWN)] = Xw(l)), c[ge(hG)] = rh, c[ge(mG)] = rh, c[ge(Ne.HOME)] = rh, c[ge(pG)] = ih, c[ge(gG)] = ih, c[ge(Ne.END)] = ih, c[ge(vG)] = nb, c[ge(Ne.ALT_F)] = nb, c[ge(_G)] = rb, c[ge(Ne.ALT_B)] = rb, c[ge(XC)] = pl, c[ge(Ne.CTRL_D)] = pl, c[ge(wG)] = zw, c[ge(Ne.ALT_D)] = zw, c[ge(yG)] = pl, c[ge(Ne.DEL)] = pl, c[ge(oG)] = MG(u), c[ge(sG)] = ib(u), c[ge(Ne.SHIFT_TAB)] = ib(u), c[ge(JH)] = d, c[ge(Ne.CTRL_G)] = d, c[ge(zH)] = d, c[ge(Ne.CTRL_O)] = d, c[ge(YH)] = d, c[ge(Ne.CTRL_Q)] = d, c[ge(ZH)] = d, c[ge(Ne.CTRL_R)] = d, c[ge(jH)] = d, c[ge(Ne.CTRL_S)] = d, c[ge(QH)] = d, c[ge(Ne.CTRL_T)] = d, c[ge(XH)] = d, c[ge(Ne.CTRL_V)] = d, c[ge(eG)] = d, c[ge(Ne.CTRL_X)] = d, c[ge(tG)] = d, c[ge(Ne.CTRL_Z)] = d;
34602
34638
  function b(_) {
34603
34639
  if (_.length === 0) return _;
34604
34640
  for (const [k, H] of Object.entries(c)) {
@@ -34685,7 +34721,7 @@ function zw(r, t, e, n) {
34685
34721
  t.write(`\x1B[${n.length + l + 1}G`);
34686
34722
  }
34687
34723
  }
34688
- function EG(r) {
34724
+ function xG(r) {
34689
34725
  return (t, e, n, i) => {
34690
34726
  if (n.isProcessingPaste) {
34691
34727
  hs(t, e, n, i);
@@ -34729,7 +34765,7 @@ function Yw(r, t, e, n) {
34729
34765
  const s = n ? n.length : 0, u = st(i);
34730
34766
  t.write(`\x1B[${u + s + 1}G`);
34731
34767
  }
34732
- function AG(r, t, e, n, i) {
34768
+ function RG(r, t, e, n, i) {
34733
34769
  if (e.cursorLine === 0 && i) {
34734
34770
  if (!e.isNavigatingHistory) {
34735
34771
  const s = e.lines.join(`
@@ -34743,7 +34779,7 @@ function AG(r, t, e, n, i) {
34743
34779
  Pu(o, s, t, e, n), e.cursorLine = o, e.cursorColumn = s;
34744
34780
  }
34745
34781
  }
34746
- function xG(r, t, e, n, i) {
34782
+ function IG(r, t, e, n, i) {
34747
34783
  if (e.cursorLine === e.lines.length - 1 && i && e.isNavigatingHistory) {
34748
34784
  const s = i.next();
34749
34785
  s !== null ? wi(t, e, n, s) : e.currentHistoryContent !== null ? (wi(t, e, n, e.currentHistoryContent), e.isNavigatingHistory = !1, e.currentHistoryContent = null, i.reset()) : t.write("\x07");
@@ -34903,7 +34939,7 @@ function hs(r, t, e, n) {
34903
34939
  }
34904
34940
  e.cursorLine++, e.cursorColumn = 0, hr(t, e, n, e.cursorLine);
34905
34941
  }
34906
- function RG(r) {
34942
+ function MG(r) {
34907
34943
  return (t, e, n, i) => {
34908
34944
  Ou(n) && n.completions.length > 0 && r({ type: "cycle-completion", direction: "forward" });
34909
34945
  };
@@ -35004,12 +35040,12 @@ function sb(r, t, e, n) {
35004
35040
  }
35005
35041
  const oh = _b(ii);
35006
35042
  let Xl = null;
35007
- async function IG(r = qr, t) {
35008
- Xl = await MG(35789);
35043
+ async function kG(r = qr, t) {
35044
+ Xl = await PG(35789);
35009
35045
  const e = `${Xl}`;
35010
35046
  return oe.info(`Generated callback port: ${e}`), `${r}/auth/cli-login?authToken=${encodeURIComponent(t)}&callbackPort=${encodeURIComponent(e)}`;
35011
35047
  }
35012
- async function MG(r, t = 10) {
35048
+ async function PG(r, t = 10) {
35013
35049
  oe.info(`Finding available port starting from ${r}`);
35014
35050
  for (let e = 0; e < t; e++) {
35015
35051
  const n = r + e;
@@ -35029,7 +35065,7 @@ async function MG(r, t = 10) {
35029
35065
  }
35030
35066
  throw new Error(`Could not find an available port after ${t} attempts`);
35031
35067
  }
35032
- async function kG(r, t = 5 * 60 * 1e3) {
35068
+ async function OG(r, t = 5 * 60 * 1e3) {
35033
35069
  if (oe.info("Starting local HTTP server to receive API key from browser"), !Xl)
35034
35070
  throw new Error("No port selected. Call generateLoginLink first.");
35035
35071
  const e = Xl;
@@ -35086,10 +35122,10 @@ async function kG(r, t = 5 * 60 * 1e3) {
35086
35122
  });
35087
35123
  });
35088
35124
  }
35089
- async function PG(r, t = qr, e) {
35125
+ async function LG(r, t = qr, e) {
35090
35126
  await e.set("apiKey", r, t), oe.info("API key stored successfully");
35091
35127
  }
35092
- async function OG(r) {
35128
+ async function NG(r) {
35093
35129
  try {
35094
35130
  switch (sP()) {
35095
35131
  case "win32":
@@ -35151,7 +35187,7 @@ async function Or(r, t, { stdin: e, stdout: n } = { stdin: process.stdin, stdout
35151
35187
  e.on("data", u), e.once("error", l);
35152
35188
  });
35153
35189
  }
35154
- async function LG(r) {
35190
+ async function DG(r) {
35155
35191
  try {
35156
35192
  const t = new AbortController(), e = setTimeout(() => t.abort(), 500), n = await fetch("https://registry.npmjs.org/@sourcegraph/amp/latest", {
35157
35193
  signal: t.signal
@@ -35159,12 +35195,12 @@ async function LG(r) {
35159
35195
  if (clearTimeout(e), !n.ok)
35160
35196
  return { hasUpdate: !1 };
35161
35197
  const o = (await n.json()).version;
35162
- return o === void 0 ? { hasUpdate: !1 } : { hasUpdate: NG(r, o) < 0, latestVersion: o };
35198
+ return o === void 0 ? { hasUpdate: !1 } : { hasUpdate: FG(r, o) < 0, latestVersion: o };
35163
35199
  } catch {
35164
35200
  return { hasUpdate: !1 };
35165
35201
  }
35166
35202
  }
35167
- function NG(r, t) {
35203
+ function FG(r, t) {
35168
35204
  const e = (s) => {
35169
35205
  const [u, l] = s.split("-");
35170
35206
  return { parts: u?.split(".").map(Number) || [], label: l };
@@ -35176,7 +35212,7 @@ function NG(r, t) {
35176
35212
  }
35177
35213
  return n.label === i.label ? 0 : !n.label && i.label ? 1 : n.label && !i.label ? -1 : n.label && i.label ? n.label < i.label ? -1 : 1 : 0;
35178
35214
  }
35179
- async function DG() {
35215
+ async function $G() {
35180
35216
  const r = process.env.npm_config_user_agent;
35181
35217
  if (r) {
35182
35218
  if (r.includes("pnpm")) return "pnpm";
@@ -35201,7 +35237,7 @@ async function ml(r) {
35201
35237
  e.on("close", (n) => t(n === 0)), e.on("error", () => t(!1));
35202
35238
  });
35203
35239
  }
35204
- function FG(r) {
35240
+ function UG(r) {
35205
35241
  switch (r) {
35206
35242
  case "pnpm":
35207
35243
  return ["pnpm", ["add", "-g", "@sourcegraph/amp"]];
@@ -35214,11 +35250,11 @@ function FG(r) {
35214
35250
  return ["npm", ["install", "-g", "@sourcegraph/amp"]];
35215
35251
  }
35216
35252
  }
35217
- async function $G() {
35218
- const r = await DG();
35253
+ async function qG() {
35254
+ const r = await $G();
35219
35255
  if (!r)
35220
35256
  throw new Error("No supported package manager found.");
35221
- const [t, e] = FG(r);
35257
+ const [t, e] = UG(r);
35222
35258
  return new Promise((n, i) => {
35223
35259
  const o = tu(t, e, {
35224
35260
  stdio: "pipe"
@@ -35243,42 +35279,6 @@ ${c}`)
35243
35279
  });
35244
35280
  });
35245
35281
  }
35246
- async function UG() {
35247
- const r = Je.join(process.cwd(), Fk), t = Je.join(process.cwd(), ".sourcegraph", "memory.md");
35248
- let e = !0, n = !1;
35249
- try {
35250
- await li(t, "utf-8");
35251
- try {
35252
- await li(r, "utf-8"), e = !1;
35253
- } catch {
35254
- try {
35255
- await Qh(Je.dirname(r), { recursive: !0 });
35256
- const o = await li(t, "utf-8");
35257
- await Xh(r, o, "utf-8"), await Zk(t), e = !1, n = !0;
35258
- } catch (o) {
35259
- oe.error("Failed to migrate memory.md to AGENT.md", o), e = !0;
35260
- }
35261
- }
35262
- } catch {
35263
- try {
35264
- await li(r, "utf-8"), e = !1;
35265
- } catch {
35266
- e = !0;
35267
- }
35268
- }
35269
- return {
35270
- shouldGenerate: e,
35271
- migrated: n
35272
- };
35273
- }
35274
- async function qG(r) {
35275
- await r.handle({
35276
- type: "user:message",
35277
- message: {
35278
- content: [{ type: "text", text: $k }]
35279
- }
35280
- });
35281
- }
35282
35282
  const Kh = Je.join(
35283
35283
  TV || Je.join(process.env.HOME || process.cwd(), ".local", "state"),
35284
35284
  "amp",
@@ -35354,7 +35354,7 @@ async function xl(r, t) {
35354
35354
  Up({
35355
35355
  logLevel: t.logLevel || process.env.AMP_LOG_LEVEL,
35356
35356
  logFile: t.logFile || process.env.AMP_LOG_FILE
35357
- }), Hk("0.0.1748361686-ga6cbdd");
35357
+ }), Hk("0.0.1748376091-g59fbbf");
35358
35358
  const e = t.settingsFile ?? process.env.AMP_SETTINGS_FILE;
35359
35359
  oe.info("Using settings file", { settingsFile: e });
35360
35360
  const n = Gh(), i = AV({ settingsFile: e }), o = process.env.AMP_API_KEY;
@@ -35370,11 +35370,11 @@ async function xl(r, t) {
35370
35370
  if (r.isInteractiveMode) {
35371
35371
  d = new Ww(), await d.start();
35372
35372
  try {
35373
- xH(d, process.cwd());
35373
+ IH(d, process.cwd());
35374
35374
  } catch (m) {
35375
35375
  oe.error("Failed to index files for fuzzy completion", m);
35376
35376
  }
35377
- g = RH(d, process.cwd());
35377
+ g = MH(d, process.cwd());
35378
35378
  } else
35379
35379
  d = new class extends Ww {
35380
35380
  async start() {
@@ -35415,7 +35415,7 @@ async function HG(r, t) {
35415
35415
  `), !1) : await oS(r, t);
35416
35416
  }
35417
35417
  async function oS(r, t) {
35418
- const e = oP(32).toString("hex"), n = await IG(r.ampURL, e);
35418
+ const e = oP(32).toString("hex"), n = await kG(r.ampURL, e);
35419
35419
  tt.write(
35420
35420
  `If your browser doesn't open automatically, visit:
35421
35421
 
@@ -35427,7 +35427,7 @@ ${r.printer.print(n, {
35427
35427
  `
35428
35428
  );
35429
35429
  try {
35430
- await OG(n);
35430
+ await NG(n);
35431
35431
  } catch {
35432
35432
  Ge.write(
35433
35433
  `${r.printer.print("Error opening browser!", { foreground: "red" })}
@@ -35440,8 +35440,8 @@ ${r.printer.print(n, {
35440
35440
 
35441
35441
  `);
35442
35442
  try {
35443
- const i = await kG(e);
35444
- return await PG(i, r.ampURL, t), tt.write(`
35443
+ const i = await OG(e);
35444
+ return await LG(i, r.ampURL, t), tt.write(`
35445
35445
  Login successful! You can now use the Amp CLI.
35446
35446
  `), !0;
35447
35447
  } catch (i) {
@@ -35451,7 +35451,7 @@ Login failed: ${i instanceof Error ? i.message : String(i)}
35451
35451
  }
35452
35452
  }
35453
35453
  function GG(r) {
35454
- const t = new vV().name("amp").description("AI-powered coding assistant").version("0.0.1748361686-ga6cbdd").option("--thread-id [THREAD_ID]", "ID of the thread to continue running", void 0);
35454
+ const t = new vV().name("amp").description("AI-powered coding assistant").version("0.0.1748376091-g59fbbf").option("--thread-id [THREAD_ID]", "ID of the thread to continue running", void 0);
35455
35455
  t.addHelpText(
35456
35456
  "after",
35457
35457
  (() => {
@@ -35773,7 +35773,7 @@ async function lb(r, t) {
35773
35773
  configService: i,
35774
35774
  threadService: l,
35775
35775
  toolService: s,
35776
- getThreadEnvironment: SH,
35776
+ getThreadEnvironment: AH,
35777
35777
  systemPromptService: o,
35778
35778
  threadSummaryService: c,
35779
35779
  createFileSystem: await xV
@@ -35803,7 +35803,7 @@ async function lb(r, t) {
35803
35803
  return oe.error("Completion failed", B), [];
35804
35804
  }
35805
35805
  }
35806
- const D = r.isInteractiveMode ? new PH() : void 0, U = r.isInteractiveMode ? CG({
35806
+ const D = r.isInteractiveMode ? new LH() : void 0, U = r.isInteractiveMode ? EG({
35807
35807
  prompt: "> ",
35808
35808
  complete: x,
35809
35809
  printer: r.printer,
@@ -35863,15 +35863,18 @@ Interrupt the agent with `, { foreground: "gray" })}${r.printer.print("Ctrl+C",
35863
35863
  }), r.isInteractiveMode) {
35864
35864
  if (ee && I.type !== "confirming-compaction") {
35865
35865
  const ne = ee.used / ee.maxAvailable;
35866
- let ce, te = I.compactionPromptState;
35867
- if (ne > sS && I.compactionPromptState === "none" ? (ce = r.printer.print(
35866
+ let ue, te = I.compactionPromptState;
35867
+ if (ne > 0.98 ? (ue = r.printer.print(
35868
+ "You're running out of tokens. Compact thread?",
35869
+ { foreground: "red", style: "bold" }
35870
+ ), te = "final") : ne > sS && I.compactionPromptState === "none" ? (ue = r.printer.print(
35868
35871
  "You're running out of tokens. Compact thread?",
35869
35872
  { foreground: "yellow" }
35870
- ), te = "first") : ne > aS && I.compactionPromptState === "first" && (ce = r.printer.print(
35873
+ ), te = "first") : ne > aS && I.compactionPromptState === "first" && (ue = r.printer.print(
35871
35874
  "You're running out of tokens. Compact thread?",
35872
35875
  { foreground: "red" }
35873
- ), te = "final"), ce)
35874
- return sn(), n && Ma("requires-user-input"), Or(ce, ["y", "n"]).then((fe) => {
35876
+ ), te = "final"), ue)
35877
+ return sn(), n && Ma("requires-user-input"), Or(ue, ["y", "n"]).then((fe) => {
35875
35878
  tt.write(`
35876
35879
  `), $.next({
35877
35880
  type: "yes-no-confirmation",
@@ -35897,7 +35900,7 @@ Interrupt the agent with `, { foreground: "gray" })}${r.printer.print("Ctrl+C",
35897
35900
  if (B.type === "line-editor-state") {
35898
35901
  if (B.state == "off" && I.type === "initial") {
35899
35902
  const ee = m.value.last?.messages.length === 0;
35900
- return r.isInteractiveMode && ee && !t.threadId ? (UG().then((ne) => {
35903
+ return r.isInteractiveMode && ee && !t.threadId ? (OV().then((ne) => {
35901
35904
  $.next({
35902
35905
  type: "agent-file-check-complete",
35903
35906
  shouldGenerate: ne.shouldGenerate,
@@ -35944,12 +35947,12 @@ Interrupt the agent with `, { foreground: "gray" })}${r.printer.print("Ctrl+C",
35944
35947
  maxAvailable: ne.maxInputTokens
35945
35948
  }), I.type === "awaiting-user-confirmation")
35946
35949
  return B.thread.messages.at(-1)?.content.some(
35947
- (ce) => ce.type === "tool_result" && (ce.run.status === "in-progress" || ce.run.status === "done")
35950
+ (ue) => ue.type === "tool_result" && (ue.run.status === "in-progress" || ue.run.status === "done")
35948
35951
  ) ? {
35949
35952
  ...I,
35950
35953
  type: "awaiting-agent",
35951
35954
  statusMessage: B.thread.messages.some(
35952
- (ce) => ce.role === "assistant" && ce.state.type === "streaming"
35955
+ (ue) => ue.role === "assistant" && ue.state.type === "streaming"
35953
35956
  ) ? "Thinking..." : "Working...",
35954
35957
  displayedError: null,
35955
35958
  tokenUsage: ee
@@ -35959,7 +35962,7 @@ Interrupt the agent with `, { foreground: "gray" })}${r.printer.print("Ctrl+C",
35959
35962
  tokenUsage: ee
35960
35963
  };
35961
35964
  if (I.type === "awaiting-agent" || I.type === "compacting") {
35962
- const ce = B.thread.messages.at(-1), te = Gk(
35965
+ const ue = B.thread.messages.at(-1), te = Gk(
35963
35966
  B.thread,
35964
35967
  C,
35965
35968
  T
@@ -35985,7 +35988,7 @@ Interrupt the agent with `, { foreground: "gray" })}${r.printer.print("Ctrl+C",
35985
35988
  tokenUsage: null,
35986
35989
  compactionPromptState: "none"
35987
35990
  };
35988
- if (ce?.role === "assistant" && ce?.state.type === "complete" && ce?.state.stopReason === "end_turn") {
35991
+ if (ue?.role === "assistant" && ue?.state.type === "complete" && ue?.state.stopReason === "end_turn") {
35989
35992
  const ie = z();
35990
35993
  return {
35991
35994
  ...ie,
@@ -36086,20 +36089,22 @@ The ${r.printer.print(me.name, { foreground: "green" })} tool call is not allowe
36086
36089
  if (I.type === "awaiting-user-confirmation" && B.status.state === "active" && B.status.ephemeralError)
36087
36090
  return I;
36088
36091
  const ee = m.value.last?.messages.at(-1);
36089
- let ne = null, ce = I.tokenUsage;
36092
+ let ne = null, ue = I.tokenUsage;
36090
36093
  if (B.status.state === "active") {
36091
36094
  const te = m.value.last?.["~debug"]?.lastInferenceUsage;
36092
- te && (ce = {
36095
+ te && (ue = {
36093
36096
  used: te.totalInputTokens,
36094
36097
  maxAvailable: te.maxInputTokens
36095
36098
  });
36096
36099
  }
36100
+ if (I.type === "confirming-compaction")
36101
+ return { ...I, tokenUsage: ue };
36097
36102
  switch (B.status.state) {
36098
36103
  case "initial":
36099
36104
  return {
36100
36105
  ...I,
36101
36106
  type: "awaiting-user-message",
36102
- tokenUsage: ce
36107
+ tokenUsage: ue
36103
36108
  };
36104
36109
  case "active":
36105
36110
  if (B.status.ephemeralError) {
@@ -36130,16 +36135,21 @@ Visit ` + r.printer.print(
36130
36135
  }), {
36131
36136
  ...I,
36132
36137
  type: "out-of-credits",
36133
- tokenUsage: ce
36138
+ tokenUsage: ue
36134
36139
  });
36135
36140
  if (bP(B.status.ephemeralError))
36136
- sn(), ne = r.printer.print(
36141
+ return sn(), I.tokenUsage ? I.tokenUsage.used = I.tokenUsage.maxAvailable : I.tokenUsage = {
36142
+ used: 1,
36143
+ maxAvailable: 1
36144
+ }, ne = r.printer.print(
36137
36145
  "The context is full. Please start a new thread.",
36138
36146
  {
36139
36147
  foreground: "red"
36140
36148
  }
36141
- );
36142
- else if (B.status.ephemeralError.message.includes(
36149
+ ), Ge.write(ne + `
36150
+
36151
+ `), z();
36152
+ if (B.status.ephemeralError.message.includes(
36143
36153
  "401 unauthorized"
36144
36154
  )) {
36145
36155
  sn();
@@ -36174,7 +36184,7 @@ Visit ` + r.printer.print(
36174
36184
  }), {
36175
36185
  ...I,
36176
36186
  type: "awaiting-user-confirmation",
36177
- tokenUsage: ce
36187
+ tokenUsage: ue
36178
36188
  }) : I;
36179
36189
  }
36180
36190
  switch (B.status.inferenceState) {
@@ -36186,10 +36196,10 @@ Visit ` + r.printer.print(
36186
36196
  (te) => te.role === "assistant" && te.state.type === "streaming"
36187
36197
  ) ? "Thinking..." : "Working...",
36188
36198
  displayedError: ne,
36189
- tokenUsage: ce
36199
+ tokenUsage: ue
36190
36200
  };
36191
36201
  case "cancelled":
36192
- return { ...z(), tokenUsage: ce };
36202
+ return { ...z(), tokenUsage: ue };
36193
36203
  case "idle":
36194
36204
  if (ee?.content.some(
36195
36205
  (te) => te.type === "tool_result" && te.run.status === "blocked-on-user"
@@ -36197,7 +36207,7 @@ Visit ` + r.printer.print(
36197
36207
  return {
36198
36208
  ...I,
36199
36209
  type: "awaiting-user-confirmation",
36200
- tokenUsage: ce
36210
+ tokenUsage: ue
36201
36211
  };
36202
36212
  if (m.value.last?.messages.some(
36203
36213
  (te) => te.role === "user" && te.content.some(
@@ -36216,10 +36226,10 @@ Visit ` + r.printer.print(
36216
36226
  (fe) => fe.role === "assistant" && fe.state.type === "streaming"
36217
36227
  ) ? "Thinking..." : "Working...",
36218
36228
  displayedError: ne,
36219
- tokenUsage: ce
36229
+ tokenUsage: ue
36220
36230
  };
36221
36231
  } else if (ee?.role === "assistant" && ee?.state.type === "complete" && ee?.state.stopReason === "end_turn")
36222
- return A(), { ...z(), tokenUsage: ce };
36232
+ return A(), { ...z(), tokenUsage: ue };
36223
36233
  }
36224
36234
  }
36225
36235
  } else if (B.type === "yes-no-confirmation")
@@ -36256,7 +36266,7 @@ Visit ` + r.printer.print(
36256
36266
  return B.value ? (tt.write(`
36257
36267
  Generating AGENT.md file...
36258
36268
 
36259
- `), qG(S).catch((ee) => {
36269
+ `), LV(S).catch((ee) => {
36260
36270
  oe.error("Agent file generation failed", ee);
36261
36271
  }), {
36262
36272
  ...I,
@@ -36267,7 +36277,7 @@ Generating AGENT.md file...
36267
36277
  }
36268
36278
  else {
36269
36279
  if (B.type === "compaction-result")
36270
- return B.result ? I : (Or(
36280
+ return B.result ? { ...I, tokenUsage: null } : (Or(
36271
36281
  r.printer.print("Compaction failed! Retry?", {
36272
36282
  foreground: "red"
36273
36283
  }),
@@ -36400,8 +36410,8 @@ function JG(r, t, e, n) {
36400
36410
  }
36401
36411
  }
36402
36412
  function qp(r, t) {
36403
- const e = r.used / r.maxAvailable, n = Math.round(e * 100), i = "▁▂▃▄▅▆▇█", o = i[Math.floor(e * i.length)], s = `${n}% ┃${o}┃`;
36404
- return e >= aS ? t.print(s, { foreground: "red" }) : e >= sS ? t.print(s, { foreground: "yellow" }) : s;
36413
+ const e = r.used / r.maxAvailable, n = Math.round(e * 100), i = Math.max(0, Math.min(n, 100)), o = "▁▂▃▄▅▆▇█", s = Math.floor(i * o.length / 100), u = Math.max(0, Math.min(s, o.length - 1)), l = o[u], c = `${i}% ┃${l}┃`;
36414
+ return e >= aS ? t.print(c, { foreground: "red" }) : e >= sS ? t.print(c, { foreground: "yellow" }) : c;
36405
36415
  }
36406
36416
  function zG(r, t) {
36407
36417
  const e = [];
@@ -36412,10 +36422,10 @@ function sn() {
36412
36422
  }
36413
36423
  async function YG(r, t) {
36414
36424
  try {
36415
- const e = await LG("0.0.1748361686-ga6cbdd");
36425
+ const e = await DG("0.0.1748376091-g59fbbf");
36416
36426
  e.hasUpdate && e.latestVersion && (t ? (r.next({ type: "update-start-updating" }), setTimeout(async () => {
36417
36427
  try {
36418
- await $G(), r.next({
36428
+ await qG(), r.next({
36419
36429
  type: "update-result",
36420
36430
  success: !0,
36421
36431
  version: e.latestVersion
@@ -36427,7 +36437,7 @@ async function YG(r, t) {
36427
36437
  version: e.latestVersion
36428
36438
  });
36429
36439
  }
36430
- }, 100)) : oe.info(`New version available: 0.0.1748361686-ga6cbdd → ${e.latestVersion}`));
36440
+ }, 100)) : oe.info(`New version available: 0.0.1748376091-g59fbbf → ${e.latestVersion}`));
36431
36441
  } catch (e) {
36432
36442
  oe.debug("Update check failed", e);
36433
36443
  }
@@ -36478,7 +36488,7 @@ export {
36478
36488
  xe as o,
36479
36489
  YB as p,
36480
36490
  rp as r,
36481
- ue as s,
36491
+ ce as s,
36482
36492
  Ft as u
36483
36493
  };
36484
- //# sourceMappingURL=main-CmK9yaC9.js.map
36494
+ //# sourceMappingURL=main-90Zv8RqJ.js.map