@sealant/mend 0.36.0 → 0.37.0-next.1096

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 (96) hide show
  1. package/dist/{chunk-MY3TCM3Q.js → chunk-AG3LQFVW.js} +693 -252
  2. package/dist/{dashboard-7QWLVA5J.js → dashboard-WREOSGDV.js} +1 -1
  3. package/dist/main.js +251 -120
  4. package/man/mend-accounts.1 +1 -1
  5. package/man/mend-adopt.1 +1 -1
  6. package/man/mend-agent-logins.1 +1 -1
  7. package/man/mend-attach.1 +1 -1
  8. package/man/mend-codex.1 +1 -1
  9. package/man/mend-completions.1 +1 -1
  10. package/man/mend-connect-pi.1 +1 -1
  11. package/man/mend-connect.1 +4 -4
  12. package/man/mend-continue.1 +1 -1
  13. package/man/mend-doctor.1 +1 -1
  14. package/man/mend-dotfiles-repo.1 +1 -1
  15. package/man/mend-dotfiles-sync.1 +1 -1
  16. package/man/mend-dotfiles.1 +1 -1
  17. package/man/mend-env-cluster.1 +1 -1
  18. package/man/mend-env-load.1 +2 -2
  19. package/man/mend-env-show.1 +1 -1
  20. package/man/mend-folder-create.1 +1 -1
  21. package/man/mend-folder-list.1 +1 -1
  22. package/man/mend-folder-push.1 +1 -1
  23. package/man/mend-folder-rm.1 +1 -1
  24. package/man/mend-git-author.1 +1 -1
  25. package/man/mend-handoff.1 +1 -1
  26. package/man/mend-help.1 +1 -1
  27. package/man/mend-invite.1 +1 -1
  28. package/man/mend-keys-init.1 +1 -1
  29. package/man/mend-keys-mode.1 +1 -1
  30. package/man/mend-keys-share.1 +1 -1
  31. package/man/mend-keys-show.1 +1 -1
  32. package/man/mend-land.1 +1 -1
  33. package/man/mend-login.1 +1 -1
  34. package/man/mend-logout.1 +1 -1
  35. package/man/mend-logs.1 +1 -1
  36. package/man/mend-man.1 +1 -1
  37. package/man/mend-members.1 +1 -1
  38. package/man/mend-memory-import.1 +1 -1
  39. package/man/mend-memory-rm.1 +1 -1
  40. package/man/mend-memory-show.1 +1 -1
  41. package/man/mend-memory.1 +1 -1
  42. package/man/mend-models.1 +1 -1
  43. package/man/mend-operator-exposure.1 +1 -1
  44. package/man/mend-operator-gate.1 +1 -1
  45. package/man/mend-operator-grant-owner.1 +1 -1
  46. package/man/mend-operator-org-create.1 +1 -1
  47. package/man/mend-operator-org-invite-owner.1 +1 -1
  48. package/man/mend-operator-org-list.1 +1 -1
  49. package/man/mend-operator-org-rename.1 +1 -1
  50. package/man/mend-operator-reset-link.1 +1 -1
  51. package/man/mend-pair.1 +1 -1
  52. package/man/mend-projects.1 +1 -1
  53. package/man/mend-pull.1 +1 -1
  54. package/man/mend-refresh.1 +1 -1
  55. package/man/mend-rejoin.1 +1 -1
  56. package/man/mend-resume.1 +1 -1
  57. package/man/mend-run.1 +1 -1
  58. package/man/mend-secrets-add.1 +1 -1
  59. package/man/mend-secrets-rm.1 +1 -1
  60. package/man/mend-secrets.1 +1 -1
  61. package/man/mend-server-logs.1 +1 -1
  62. package/man/mend-server-restart.1 +1 -1
  63. package/man/mend-server-setup.1 +1 -1
  64. package/man/mend-server-start.1 +1 -1
  65. package/man/mend-server-status.1 +1 -1
  66. package/man/mend-server-stop.1 +1 -1
  67. package/man/mend-server-upgrade.1 +1 -1
  68. package/man/mend-server.1 +1 -1
  69. package/man/mend-service-add.1 +1 -1
  70. package/man/mend-service-connect.1 +1 -1
  71. package/man/mend-service-init.1 +1 -1
  72. package/man/mend-service-list.1 +1 -1
  73. package/man/mend-service-logs.1 +1 -1
  74. package/man/mend-service-restart.1 +1 -1
  75. package/man/mend-service-run.1 +1 -1
  76. package/man/mend-service-stop.1 +1 -1
  77. package/man/mend-session-share.1 +1 -1
  78. package/man/mend-sessions.1 +1 -1
  79. package/man/mend-shell.1 +1 -1
  80. package/man/mend-skills-push.1 +1 -1
  81. package/man/mend-skills.1 +1 -1
  82. package/man/mend-snake.1 +1 -1
  83. package/man/mend-ssh-keys-remove.1 +1 -1
  84. package/man/mend-ssh-keys.1 +1 -1
  85. package/man/mend-ssh-setup.1 +1 -1
  86. package/man/mend-ssh.1 +1 -1
  87. package/man/mend-stop.1 +1 -1
  88. package/man/mend-ui.1 +1 -1
  89. package/man/mend-uninstall.1 +1 -1
  90. package/man/mend-version.1 +1 -1
  91. package/man/mend-wait.1 +1 -1
  92. package/man/mend-workspace-replace.1 +1 -1
  93. package/man/mend-worktrees-rm.1 +1 -1
  94. package/man/mend-worktrees.1 +1 -1
  95. package/man/mend.1 +1 -1
  96. package/package.json +2 -2
@@ -2014,7 +2014,96 @@ var filter2 = /* @__PURE__ */ dual(2, (self, predicate) => ({
2014
2014
  }));
2015
2015
 
2016
2016
  // ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/Record.js
2017
+ var Record_exports = {};
2018
+ __export(Record_exports, {
2019
+ assignProperty: () => assignProperty2,
2020
+ collect: () => collect,
2021
+ difference: () => difference,
2022
+ empty: () => empty2,
2023
+ every: () => every,
2024
+ filter: () => filter3,
2025
+ filterMap: () => filterMap2,
2026
+ findFirst: () => findFirst2,
2027
+ fromEntries: () => fromEntries,
2028
+ fromIterableBy: () => fromIterableBy,
2029
+ fromIterableWith: () => fromIterableWith,
2030
+ get: () => get2,
2031
+ getFailures: () => getFailures,
2032
+ getSomes: () => getSomes,
2033
+ getSuccesses: () => getSuccesses,
2034
+ has: () => has,
2035
+ intersection: () => intersection,
2036
+ isEmptyReadonlyRecord: () => isEmptyReadonlyRecord,
2037
+ isEmptyRecord: () => isEmptyRecord,
2038
+ isSubrecord: () => isSubrecord,
2039
+ isSubrecordBy: () => isSubrecordBy,
2040
+ keys: () => keys,
2041
+ makeEquivalence: () => makeEquivalence3,
2042
+ makeReducerIntersection: () => makeReducerIntersection,
2043
+ makeReducerUnion: () => makeReducerUnion,
2044
+ map: () => map3,
2045
+ mapEntries: () => mapEntries,
2046
+ mapKeys: () => mapKeys,
2047
+ modify: () => modify,
2048
+ partition: () => partition,
2049
+ pop: () => pop,
2050
+ reduce: () => reduce,
2051
+ remove: () => remove,
2052
+ replace: () => replace,
2053
+ separate: () => separate,
2054
+ set: () => set,
2055
+ singleton: () => singleton,
2056
+ size: () => size,
2057
+ some: () => some3,
2058
+ toEntries: () => toEntries,
2059
+ union: () => union,
2060
+ values: () => values
2061
+ });
2062
+ var empty2 = () => ({});
2063
+ var isEmptyRecord = (self) => Object.keys(self).length === 0;
2064
+ var isEmptyReadonlyRecord = isEmptyRecord;
2065
+ var fromIterableWith = /* @__PURE__ */ dual(2, (self, f) => {
2066
+ const out = empty2();
2067
+ for (const a of self) {
2068
+ const [k, b] = f(a);
2069
+ assignProperty(out, k, b);
2070
+ }
2071
+ return out;
2072
+ });
2073
+ var fromIterableBy = /* @__PURE__ */ dual(2, (items, f) => fromIterableWith(items, (a) => [f(a), a]));
2074
+ var fromEntries = Object.fromEntries;
2075
+ var collect = /* @__PURE__ */ dual(2, (self, f) => {
2076
+ const out = [];
2077
+ for (const key of keys(self)) {
2078
+ out.push(f(key, self[key]));
2079
+ }
2080
+ return out;
2081
+ });
2082
+ var toEntries = /* @__PURE__ */ collect((key, value3) => [key, value3]);
2083
+ var size = (self) => keys(self).length;
2017
2084
  var has = /* @__PURE__ */ dual(2, (self, key) => Object.hasOwn(self, key));
2085
+ var get2 = /* @__PURE__ */ dual(2, (self, key) => Object.hasOwn(self, key) ? some2(self[key]) : none2());
2086
+ var modify = /* @__PURE__ */ dual(3, (self, key, f) => {
2087
+ if (!has(self, key)) return none2();
2088
+ return some2({
2089
+ ...self,
2090
+ [key]: f(self[key])
2091
+ });
2092
+ });
2093
+ var replace = /* @__PURE__ */ dual(3, (self, key, b) => modify(self, key, () => b));
2094
+ var remove = /* @__PURE__ */ dual(2, (self, key) => {
2095
+ if (!has(self, key)) {
2096
+ return {
2097
+ ...self
2098
+ };
2099
+ }
2100
+ const out = {
2101
+ ...self
2102
+ };
2103
+ delete out[key];
2104
+ return out;
2105
+ });
2106
+ var pop = /* @__PURE__ */ dual(2, (self, key) => has(self, key) ? some2([self[key], remove(self, key)]) : none2());
2018
2107
  var map3 = /* @__PURE__ */ dual(2, (self, f) => {
2019
2108
  const out = {
2020
2109
  ...self
@@ -2024,7 +2113,94 @@ var map3 = /* @__PURE__ */ dual(2, (self, f) => {
2024
2113
  }
2025
2114
  return out;
2026
2115
  });
2116
+ var mapKeys = /* @__PURE__ */ dual(2, (self, f) => {
2117
+ const out = {};
2118
+ for (const key of keys(self)) {
2119
+ const a = self[key];
2120
+ assignProperty(out, f(key, a), a);
2121
+ }
2122
+ return out;
2123
+ });
2124
+ var mapEntries = /* @__PURE__ */ dual(2, (self, f) => {
2125
+ const out = {};
2126
+ for (const key of keys(self)) {
2127
+ const [k, b] = f(self[key], key);
2128
+ assignProperty(out, k, b);
2129
+ }
2130
+ return out;
2131
+ });
2132
+ var filterMap2 = /* @__PURE__ */ dual(2, (self, f) => {
2133
+ const out = empty2();
2134
+ for (const key of keys(self)) {
2135
+ const result3 = f(self[key], key);
2136
+ if (isSuccess2(result3)) {
2137
+ assignProperty(out, key, result3.success);
2138
+ }
2139
+ }
2140
+ return out;
2141
+ });
2142
+ var filter3 = /* @__PURE__ */ dual(2, (self, predicate) => {
2143
+ const out = empty2();
2144
+ for (const key of keys(self)) {
2145
+ if (predicate(self[key], key)) {
2146
+ assignProperty(out, key, self[key]);
2147
+ }
2148
+ }
2149
+ return out;
2150
+ });
2151
+ var getSomes = (self) => {
2152
+ const out = empty2();
2153
+ for (const key of keys(self)) {
2154
+ const option3 = self[key];
2155
+ if (isSome2(option3)) {
2156
+ assignProperty(out, key, option3.value);
2157
+ }
2158
+ }
2159
+ return out;
2160
+ };
2161
+ var getFailures = (self) => {
2162
+ const out = empty2();
2163
+ for (const key of keys(self)) {
2164
+ const value3 = self[key];
2165
+ if (isFailure2(value3)) {
2166
+ assignProperty(out, key, value3.failure);
2167
+ }
2168
+ }
2169
+ return out;
2170
+ };
2171
+ var getSuccesses = (self) => {
2172
+ const out = empty2();
2173
+ for (const key of keys(self)) {
2174
+ const value3 = self[key];
2175
+ if (isSuccess2(value3)) {
2176
+ assignProperty(out, key, value3.success);
2177
+ }
2178
+ }
2179
+ return out;
2180
+ };
2181
+ var partition = /* @__PURE__ */ dual(2, (self, f) => {
2182
+ const passes = empty2();
2183
+ const fails = empty2();
2184
+ for (const key of keys(self)) {
2185
+ const e = f(self[key], key);
2186
+ if (isFailure2(e)) {
2187
+ assignProperty(fails, key, e.failure);
2188
+ } else {
2189
+ assignProperty(passes, key, e.success);
2190
+ }
2191
+ }
2192
+ return [passes, fails];
2193
+ });
2194
+ var separate = /* @__PURE__ */ partition(identity);
2027
2195
  var keys = (self) => Object.keys(self);
2196
+ var values = (self) => collect(self, (_, a) => a);
2197
+ var set = /* @__PURE__ */ dual(3, (self, key, value3) => {
2198
+ return {
2199
+ ...self,
2200
+ [key]: value3
2201
+ };
2202
+ });
2203
+ var assignProperty2 = assignProperty;
2028
2204
  var isSubrecordBy = (equivalence) => dual(2, (self, that) => {
2029
2205
  for (const key of keys(self)) {
2030
2206
  if (!has(that, key) || !equivalence(self[key], that[key])) {
@@ -2033,10 +2209,115 @@ var isSubrecordBy = (equivalence) => dual(2, (self, that) => {
2033
2209
  }
2034
2210
  return true;
2035
2211
  });
2212
+ var isSubrecord = /* @__PURE__ */ isSubrecordBy(/* @__PURE__ */ asEquivalence());
2213
+ var reduce = /* @__PURE__ */ dual(3, (self, zero3, f) => {
2214
+ let out = zero3;
2215
+ for (const key of keys(self)) {
2216
+ out = f(out, self[key], key);
2217
+ }
2218
+ return out;
2219
+ });
2220
+ var every = /* @__PURE__ */ dual(2, (self, refinement) => {
2221
+ for (const key of keys(self)) {
2222
+ if (!refinement(self[key], key)) {
2223
+ return false;
2224
+ }
2225
+ }
2226
+ return true;
2227
+ });
2228
+ var some3 = /* @__PURE__ */ dual(2, (self, predicate) => {
2229
+ for (const key of keys(self)) {
2230
+ if (predicate(self[key], key)) {
2231
+ return true;
2232
+ }
2233
+ }
2234
+ return false;
2235
+ });
2236
+ var union = /* @__PURE__ */ dual(3, (self, that, combine2) => {
2237
+ if (isEmptyRecord(self)) {
2238
+ return {
2239
+ ...that
2240
+ };
2241
+ }
2242
+ if (isEmptyRecord(that)) {
2243
+ return {
2244
+ ...self
2245
+ };
2246
+ }
2247
+ const out = empty2();
2248
+ for (const key of keys(self)) {
2249
+ if (has(that, key)) {
2250
+ assignProperty(out, key, combine2(self[key], that[key]));
2251
+ } else {
2252
+ assignProperty(out, key, self[key]);
2253
+ }
2254
+ }
2255
+ for (const key of keys(that)) {
2256
+ if (!has(out, key)) {
2257
+ assignProperty(out, key, that[key]);
2258
+ }
2259
+ }
2260
+ return out;
2261
+ });
2262
+ var intersection = /* @__PURE__ */ dual(3, (self, that, combine2) => {
2263
+ const out = empty2();
2264
+ if (isEmptyRecord(self) || isEmptyRecord(that)) {
2265
+ return out;
2266
+ }
2267
+ for (const key of keys(self)) {
2268
+ if (has(that, key)) {
2269
+ assignProperty(out, key, combine2(self[key], that[key]));
2270
+ }
2271
+ }
2272
+ return out;
2273
+ });
2274
+ var difference = /* @__PURE__ */ dual(2, (self, that) => {
2275
+ if (isEmptyRecord(self)) {
2276
+ return {
2277
+ ...that
2278
+ };
2279
+ }
2280
+ if (isEmptyRecord(that)) {
2281
+ return {
2282
+ ...self
2283
+ };
2284
+ }
2285
+ const out = {};
2286
+ for (const key of keys(self)) {
2287
+ if (!has(that, key)) {
2288
+ assignProperty(out, key, self[key]);
2289
+ }
2290
+ }
2291
+ for (const key of keys(that)) {
2292
+ if (!has(self, key)) {
2293
+ assignProperty(out, key, that[key]);
2294
+ }
2295
+ }
2296
+ return out;
2297
+ });
2036
2298
  var makeEquivalence3 = (equivalence) => {
2037
2299
  const is3 = isSubrecordBy(equivalence);
2038
2300
  return (self, that) => is3(self, that) && is3(that, self);
2039
2301
  };
2302
+ var singleton = (key, value3) => ({
2303
+ [key]: value3
2304
+ });
2305
+ function makeReducerUnion(combiner) {
2306
+ return make2((self, that) => union(self, that, combiner.combine), {});
2307
+ }
2308
+ function makeReducerIntersection(combiner) {
2309
+ return make2((self, that) => intersection(self, that, combiner.combine), {});
2310
+ }
2311
+ var findFirst2 = /* @__PURE__ */ dual(2, (self, f) => {
2312
+ const k = keys(self);
2313
+ for (let i = 0; i < k.length; i++) {
2314
+ const key = k[i];
2315
+ if (f(self[key], key)) {
2316
+ return some2([key, self[key]]);
2317
+ }
2318
+ }
2319
+ return none2();
2320
+ });
2040
2321
 
2041
2322
  // ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/Array.js
2042
2323
  var Array2 = globalThis.Array;
@@ -2049,7 +2330,7 @@ function isCanonicalArrayIndex(key) {
2049
2330
  const index2 = Number(key);
2050
2331
  return String(index2) === key && Number.isInteger(index2) && index2 >= 0 && index2 < 2 ** 32 - 1;
2051
2332
  }
2052
- var findFirst2 = findFirst;
2333
+ var findFirst3 = findFirst;
2053
2334
  var hashBucketsAdd = (buckets, value3) => {
2054
2335
  const hash2 = hash(value3);
2055
2336
  const bucket = buckets.get(hash2);
@@ -2065,9 +2346,9 @@ var hashBucketsAdd = (buckets, value3) => {
2065
2346
  bucket.push(value3);
2066
2347
  return true;
2067
2348
  };
2068
- var empty2 = () => [];
2349
+ var empty3 = () => [];
2069
2350
  var map4 = /* @__PURE__ */ dual(2, (self, f) => self.map(f));
2070
- var partition = /* @__PURE__ */ dual(2, (self, f) => {
2351
+ var partition2 = /* @__PURE__ */ dual(2, (self, f) => {
2071
2352
  const passes = [];
2072
2353
  const fails = [];
2073
2354
  let i = 0;
@@ -3445,7 +3726,7 @@ var fiberInterruptAs = /* @__PURE__ */ dual((args2) => hasProperty(args2[0], Fib
3445
3726
  }));
3446
3727
  var fiberInterruptAll = (fibers) => withFiber((parent) => {
3447
3728
  const annotations = fiberStackAnnotations(parent);
3448
- let fiberArr = empty2();
3729
+ let fiberArr = empty3();
3449
3730
  for (const fiber3 of fibers) {
3450
3731
  fiber3.interruptUnsafe(parent.id, annotations);
3451
3732
  fiberArr.push(fiber3);
@@ -4000,8 +4281,8 @@ var catchCauseIf = /* @__PURE__ */ dual(3, (self, predicate, f) => catchCause(se
4000
4281
  }
4001
4282
  return f(cause);
4002
4283
  }));
4003
- var catchCauseFilter = /* @__PURE__ */ dual(3, (self, filter8, f) => catchCause(self, (cause) => {
4004
- const eb = filter8(cause);
4284
+ var catchCauseFilter = /* @__PURE__ */ dual(3, (self, filter9, f) => catchCause(self, (cause) => {
4285
+ const eb = filter9(cause);
4005
4286
  return isFailure2(eb) ? failCause(eb.failure) : f(eb.success, cause);
4006
4287
  }));
4007
4288
  var catch_ = /* @__PURE__ */ dual(2, (self, f) => catchCauseFilter(self, findError, (e) => f(e)));
@@ -4012,8 +4293,8 @@ var catchNoSuchElement = (self) => matchEffect(self, {
4012
4293
  var catchDefect = /* @__PURE__ */ dual(2, (self, f) => catchCauseFilter(self, findDefect, f));
4013
4294
  var tapCause = /* @__PURE__ */ dual(2, (self, f) => catchCause(self, (cause) => andThen2(f(cause), failCause(cause))));
4014
4295
  var tapCauseIf = /* @__PURE__ */ dual(3, (self, predicate, f) => catchCauseIf(self, predicate, (cause) => andThen2(f(cause), failCause(cause))));
4015
- var tapCauseFilter = /* @__PURE__ */ dual(3, (self, filter8, f) => catchCause(self, (cause) => {
4016
- const result3 = filter8(cause);
4296
+ var tapCauseFilter = /* @__PURE__ */ dual(3, (self, filter9, f) => catchCause(self, (cause) => {
4297
+ const result3 = filter9(cause);
4017
4298
  if (isFailure2(result3)) {
4018
4299
  return failCause(cause);
4019
4300
  }
@@ -4033,10 +4314,10 @@ var catchIf = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, predica
4033
4314
  }
4034
4315
  return f(error.success);
4035
4316
  }));
4036
- var catchFilter = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, filter8, f, orElse2) => catchCause(self, (cause) => {
4317
+ var catchFilter = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, filter9, f, orElse2) => catchCause(self, (cause) => {
4037
4318
  const error = findError(cause);
4038
4319
  if (isFailure2(error)) return failCause(error.failure);
4039
- const result3 = filter8(error.success);
4320
+ const result3 = filter9(error.success);
4040
4321
  if (isFailure2(result3)) {
4041
4322
  return orElse2 ? orElse2(result3.failure) : failCause(cause);
4042
4323
  }
@@ -4420,8 +4701,8 @@ var onExitIf = /* @__PURE__ */ dual(3, (self, predicate, f) => onExit(self, (exi
4420
4701
  }
4421
4702
  return f(exit3);
4422
4703
  }));
4423
- var onExitFilter = /* @__PURE__ */ dual(3, (self, filter8, f) => onExit(self, (exit3) => {
4424
- const b = filter8(exit3);
4704
+ var onExitFilter = /* @__PURE__ */ dual(3, (self, filter9, f) => onExit(self, (exit3) => {
4705
+ const b = filter9(exit3);
4425
4706
  return isFailure2(b) ? void_2 : f(b.success, exit3);
4426
4707
  }));
4427
4708
  var onError = /* @__PURE__ */ dual(2, (self, f) => onExitFilter(self, exitFilterCause, f));
@@ -4431,11 +4712,11 @@ var onErrorIf = /* @__PURE__ */ dual(3, (self, predicate, f) => onExitIf(self, (
4431
4712
  }
4432
4713
  return predicate(exit3.cause);
4433
4714
  }, (exit3) => f(exit3.cause)));
4434
- var onErrorFilter = /* @__PURE__ */ dual(3, (self, filter8, f) => onExit(self, (exit3) => {
4715
+ var onErrorFilter = /* @__PURE__ */ dual(3, (self, filter9, f) => onExit(self, (exit3) => {
4435
4716
  if (exit3._tag !== "Failure") {
4436
4717
  return void_2;
4437
4718
  }
4438
- const result3 = filter8(exit3.cause);
4719
+ const result3 = filter9(exit3.cause);
4439
4720
  return isFailure2(result3) ? void_2 : f(result3.success, exit3.cause);
4440
4721
  }));
4441
4722
  var onInterrupt = /* @__PURE__ */ dual(2, (self, finalizer) => onErrorFilter(causeFilterInterruptors, finalizer)(self));
@@ -4548,8 +4829,8 @@ var all2 = (arg, options) => {
4548
4829
  }), out);
4549
4830
  });
4550
4831
  };
4551
- var partition2 = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, f, options) => map5(forEach(elements, (a, i) => result(f(a, i)), options), (results2) => partition(results2, identity)));
4552
- var reduce = /* @__PURE__ */ dual(3, (elements, zero3, f) => {
4832
+ var partition3 = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, f, options) => map5(forEach(elements, (a, i) => result(f(a, i)), options), (results2) => partition2(results2, identity)));
4833
+ var reduce2 = /* @__PURE__ */ dual(3, (elements, zero3, f) => {
4553
4834
  const arr = fromIterable2(elements);
4554
4835
  if (arr.length === 0) return sync(zero3);
4555
4836
  return suspend(() => {
@@ -4565,7 +4846,7 @@ var reduce = /* @__PURE__ */ dual(3, (elements, zero3, f) => {
4565
4846
  }), () => state);
4566
4847
  });
4567
4848
  });
4568
- var validate = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, f, options) => flatMap3(partition2(elements, f, {
4849
+ var validate = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, f, options) => flatMap3(partition3(elements, f, {
4569
4850
  concurrency: options?.concurrency
4570
4851
  }), ([passes, fails]) => {
4571
4852
  if (isArrayNonEmpty2(fails)) {
@@ -4573,7 +4854,7 @@ var validate = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect
4573
4854
  }
4574
4855
  return options?.discard ? void_2 : succeed3(passes);
4575
4856
  }));
4576
- var findFirst3 = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, predicate) => suspend(() => {
4857
+ var findFirst4 = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, predicate) => suspend(() => {
4577
4858
  const iterator = elements[Symbol.iterator]();
4578
4859
  const next = iterator.next();
4579
4860
  if (!next.done) {
@@ -4591,21 +4872,21 @@ var findFirstLoop = (iterator, index2, predicate, value3) => flatMap3(predicate(
4591
4872
  }
4592
4873
  return succeed3(none2());
4593
4874
  });
4594
- var findFirstFilter = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, filter8) => suspend(() => {
4875
+ var findFirstFilter = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, filter9) => suspend(() => {
4595
4876
  const iterator = elements[Symbol.iterator]();
4596
4877
  const next = iterator.next();
4597
4878
  if (!next.done) {
4598
- return findFirstFilterLoop(iterator, 0, filter8, next.value);
4879
+ return findFirstFilterLoop(iterator, 0, filter9, next.value);
4599
4880
  }
4600
4881
  return succeed3(none2());
4601
4882
  }));
4602
- var findFirstFilterLoop = (iterator, index2, filter8, value3) => flatMap3(filter8(value3, index2), (result3) => {
4883
+ var findFirstFilterLoop = (iterator, index2, filter9, value3) => flatMap3(filter9(value3, index2), (result3) => {
4603
4884
  if (isSuccess2(result3)) {
4604
4885
  return succeed3(some2(result3.success));
4605
4886
  }
4606
4887
  const next = iterator.next();
4607
4888
  if (!next.done) {
4608
- return findFirstFilterLoop(iterator, index2 + 1, filter8, next.value);
4889
+ return findFirstFilterLoop(iterator, index2 + 1, filter9, next.value);
4609
4890
  }
4610
4891
  return succeed3(none2());
4611
4892
  });
@@ -4805,12 +5086,12 @@ var forEachConcurrent = /* @__PURE__ */ iterateConcurrentImpl({
4805
5086
  }
4806
5087
  });
4807
5088
  var filterOrElse = /* @__PURE__ */ dual(3, (self, predicate, orElse2) => flatMap3(self, (a) => predicate(a) ? succeed3(a) : orElse2(a)));
4808
- var filterMapOrElse = /* @__PURE__ */ dual(3, (self, filter8, orElse2) => flatMap3(self, (a) => {
4809
- const result3 = filter8(a);
5089
+ var filterMapOrElse = /* @__PURE__ */ dual(3, (self, filter9, orElse2) => flatMap3(self, (a) => {
5090
+ const result3 = filter9(a);
4810
5091
  return isFailure2(result3) ? orElse2(result3.failure) : succeed3(result3.success);
4811
5092
  }));
4812
- var filterMapOrFail = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, filter8, orFailWith) => filterMapOrElse(self, filter8, orFailWith ? (x) => fail3(orFailWith(x)) : () => fail3(new NoSuchElementError())));
4813
- var filter3 = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, predicate, options) => suspend(() => {
5093
+ var filterMapOrFail = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, filter9, orFailWith) => filterMapOrElse(self, filter9, orFailWith ? (x) => fail3(orFailWith(x)) : () => fail3(new NoSuchElementError())));
5094
+ var filter4 = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, predicate, options) => suspend(() => {
4814
5095
  const out = [];
4815
5096
  return as2(forEach(elements, (a, i) => {
4816
5097
  const result3 = predicate(a, i);
@@ -4828,19 +5109,19 @@ var filter3 = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(
4828
5109
  concurrency: options?.concurrency
4829
5110
  }), out);
4830
5111
  }));
4831
- var filterMap2 = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, filter8) => suspend(() => {
5112
+ var filterMap3 = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, filter9) => suspend(() => {
4832
5113
  const out = [];
4833
5114
  for (const a of elements) {
4834
- const result3 = filter8(a);
5115
+ const result3 = filter9(a);
4835
5116
  if (isSuccess2(result3)) {
4836
5117
  out.push(result3.success);
4837
5118
  }
4838
5119
  }
4839
5120
  return succeed3(out);
4840
5121
  }));
4841
- var filterMapEffect = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, filter8, options) => suspend(() => {
5122
+ var filterMapEffect = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, filter9, options) => suspend(() => {
4842
5123
  const out = [];
4843
- return as2(forEach(elements, (a) => map5(filter8(a), (result3) => {
5124
+ return as2(forEach(elements, (a) => map5(filter9(a), (result3) => {
4844
5125
  if (isSuccess2(result3)) {
4845
5126
  out.push(result3.success);
4846
5127
  }
@@ -5560,14 +5841,14 @@ __export(Effect_exports, {
5560
5841
  failSync: () => failSync2,
5561
5842
  fiber: () => fiber2,
5562
5843
  fiberId: () => fiberId2,
5563
- filter: () => filter4,
5564
- filterMap: () => filterMap3,
5844
+ filter: () => filter5,
5845
+ filterMap: () => filterMap4,
5565
5846
  filterMapEffect: () => filterMapEffect2,
5566
5847
  filterMapOrElse: () => filterMapOrElse2,
5567
5848
  filterMapOrFail: () => filterMapOrFail2,
5568
5849
  filterOrElse: () => filterOrElse2,
5569
5850
  filterOrFail: () => filterOrFail2,
5570
- findFirst: () => findFirst4,
5851
+ findFirst: () => findFirst5,
5571
5852
  findFirstFilter: () => findFirstFilter2,
5572
5853
  firstSuccessOf: () => firstSuccessOf2,
5573
5854
  flatMap: () => flatMap4,
@@ -5633,7 +5914,7 @@ __export(Effect_exports, {
5633
5914
  option: () => option2,
5634
5915
  orDie: () => orDie2,
5635
5916
  orElseSucceed: () => orElseSucceed2,
5636
- partition: () => partition3,
5917
+ partition: () => partition4,
5637
5918
  promise: () => promise2,
5638
5919
  provide: () => provide4,
5639
5920
  provideContext: () => provideContext2,
@@ -5643,7 +5924,7 @@ __export(Effect_exports, {
5643
5924
  raceAll: () => raceAll2,
5644
5925
  raceAllFirst: () => raceAllFirst2,
5645
5926
  raceFirst: () => raceFirst2,
5646
- reduce: () => reduce2,
5927
+ reduce: () => reduce3,
5647
5928
  repeat: () => repeat2,
5648
5929
  repeatOrElse: () => repeatOrElse2,
5649
5930
  replicate: () => replicate2,
@@ -6673,13 +6954,13 @@ var MutableHashMapProto = {
6673
6954
  return pipeArguments(this, arguments);
6674
6955
  }
6675
6956
  };
6676
- var empty3 = () => {
6957
+ var empty4 = () => {
6677
6958
  const self = Object.create(MutableHashMapProto);
6678
6959
  self.backing = /* @__PURE__ */ new Map();
6679
6960
  self.buckets = /* @__PURE__ */ new Map();
6680
6961
  return self;
6681
6962
  };
6682
- var get2 = /* @__PURE__ */ dual(2, (self, key) => {
6963
+ var get3 = /* @__PURE__ */ dual(2, (self, key) => {
6683
6964
  if (self.backing.has(key)) {
6684
6965
  return some2(self.backing.get(key));
6685
6966
  } else if (isSimpleKey(key)) {
@@ -6702,8 +6983,8 @@ var getFromBucket = (self, bucket, key) => {
6702
6983
  }
6703
6984
  return none2();
6704
6985
  };
6705
- var has2 = /* @__PURE__ */ dual(2, (self, key) => isSome2(get2(self, key)));
6706
- var set = /* @__PURE__ */ dual(3, (self, key, value3) => {
6986
+ var has2 = /* @__PURE__ */ dual(2, (self, key) => isSome2(get3(self, key)));
6987
+ var set2 = /* @__PURE__ */ dual(3, (self, key, value3) => {
6707
6988
  if (self.backing.has(key) || isSimpleKey(key)) {
6708
6989
  self.backing.set(key, value3);
6709
6990
  return self;
@@ -6730,7 +7011,7 @@ var getRefKey = (bucket, key) => {
6730
7011
  }
6731
7012
  }
6732
7013
  };
6733
- var remove = /* @__PURE__ */ dual(2, (self, key_) => {
7014
+ var remove2 = /* @__PURE__ */ dual(2, (self, key_) => {
6734
7015
  if (isSimpleKey(key_)) {
6735
7016
  self.backing.delete(key_);
6736
7017
  return self;
@@ -6790,12 +7071,12 @@ var requestUnsafe = (self, options) => {
6790
7071
  var equalBatchKeys = /* @__PURE__ */ new WeakSet();
6791
7072
  var makeBatchMap = (resolver) => {
6792
7073
  if (!equalBatchKeys.has(resolver.batchKey)) return /* @__PURE__ */ new Map();
6793
- const map10 = empty3();
7074
+ const map10 = empty4();
6794
7075
  return {
6795
- get: (key) => getOrUndefined(get2(map10, key)),
7076
+ get: (key) => getOrUndefined(get3(map10, key)),
6796
7077
  has: (key) => has2(map10, key),
6797
- set: (key, batch) => set(map10, key, batch),
6798
- delete: (key) => remove(map10, key)
7078
+ set: (key, batch) => set2(map10, key, batch),
7079
+ delete: (key) => remove2(map10, key)
6799
7080
  };
6800
7081
  };
6801
7082
  var batchPool = [];
@@ -6976,10 +7257,10 @@ function attributesToRecord(attributes) {
6976
7257
  var TypeId13 = EffectTypeId;
6977
7258
  var isEffect2 = isEffect;
6978
7259
  var all3 = all2;
6979
- var partition3 = partition2;
6980
- var reduce2 = reduce;
7260
+ var partition4 = partition3;
7261
+ var reduce3 = reduce2;
6981
7262
  var validate2 = validate;
6982
- var findFirst4 = findFirst3;
7263
+ var findFirst5 = findFirst4;
6983
7264
  var findFirstFilter2 = findFirstFilter;
6984
7265
  var forEach2 = forEach;
6985
7266
  var head2 = head;
@@ -7070,8 +7351,8 @@ var raceAll2 = raceAll;
7070
7351
  var raceAllFirst2 = raceAllFirst;
7071
7352
  var race2 = race;
7072
7353
  var raceFirst2 = raceFirst;
7073
- var filter4 = filter3;
7074
- var filterMap3 = filterMap2;
7354
+ var filter5 = filter4;
7355
+ var filterMap4 = filterMap3;
7075
7356
  var filterMapEffect2 = filterMapEffect;
7076
7357
  var filterOrElse2 = filterOrElse;
7077
7358
  var filterMapOrElse2 = filterMapOrElse;
@@ -8129,7 +8410,7 @@ var isChunk = (u) => hasProperty(u, TypeId15);
8129
8410
  var _empty = /* @__PURE__ */ makeChunk({
8130
8411
  _tag: "IEmpty"
8131
8412
  });
8132
- var empty4 = () => _empty;
8413
+ var empty5 = () => _empty;
8133
8414
  var of = (a) => makeChunk({
8134
8415
  _tag: "ISingleton",
8135
8416
  a
@@ -8179,11 +8460,11 @@ var toReadonlyArray_ = (self) => {
8179
8460
  }
8180
8461
  };
8181
8462
  var toReadonlyArray = toReadonlyArray_;
8182
- var fromArrayUnsafe = (self) => self.length === 0 ? empty4() : self.length === 1 ? of(self[0]) : makeChunk({
8463
+ var fromArrayUnsafe = (self) => self.length === 0 ? empty5() : self.length === 1 ? of(self[0]) : makeChunk({
8183
8464
  _tag: "IArray",
8184
8465
  array: self
8185
8466
  });
8186
- var size = (self) => self.length;
8467
+ var size2 = (self) => self.length;
8187
8468
 
8188
8469
  // ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/DateTime.js
8189
8470
  var isDateTime2 = isDateTime;
@@ -8822,11 +9103,11 @@ var HashMapImpl = class {
8822
9103
  _edit;
8823
9104
  _root;
8824
9105
  _size;
8825
- constructor(editable, edit, root, size6) {
9106
+ constructor(editable, edit, root, size7) {
8826
9107
  this._editable = editable;
8827
9108
  this._edit = edit;
8828
9109
  this._root = root;
8829
- this._size = size6;
9110
+ this._size = size7;
8830
9111
  }
8831
9112
  get size() {
8832
9113
  return this._size;
@@ -8841,7 +9122,7 @@ var HashMapImpl = class {
8841
9122
  return false;
8842
9123
  }
8843
9124
  for (const [key, value3] of this) {
8844
- const otherValue = pipe(that, get3(key));
9125
+ const otherValue = pipe(that, get4(key));
8845
9126
  if (isNone2(otherValue) || !equals(value3, otherValue.value)) {
8846
9127
  return false;
8847
9128
  }
@@ -8871,10 +9152,10 @@ var HashMapImpl = class {
8871
9152
  };
8872
9153
  var emptyNode = /* @__PURE__ */ new EmptyNode();
8873
9154
  var isHashMap = (u) => hasProperty(u, HashMapTypeId);
8874
- var empty5 = () => new HashMapImpl(false, 0, emptyNode, 0);
9155
+ var empty6 = () => new HashMapImpl(false, 0, emptyNode, 0);
8875
9156
  var fromIterable4 = (entries3) => {
8876
9157
  let root = emptyNode;
8877
- let size6 = 0;
9158
+ let size7 = 0;
8878
9159
  const added = {
8879
9160
  value: false
8880
9161
  };
@@ -8883,12 +9164,12 @@ var fromIterable4 = (entries3) => {
8883
9164
  added.value = false;
8884
9165
  root = root.set(NaN, 0, hash2, key, value3, added);
8885
9166
  if (added.value) {
8886
- size6++;
9167
+ size7++;
8887
9168
  }
8888
9169
  }
8889
- return new HashMapImpl(false, 0, root, size6);
9170
+ return new HashMapImpl(false, 0, root, size7);
8890
9171
  };
8891
- var get3 = /* @__PURE__ */ dual(2, (self, key) => {
9172
+ var get4 = /* @__PURE__ */ dual(2, (self, key) => {
8892
9173
  const impl = self;
8893
9174
  return impl._root.get(0, hash(key), key);
8894
9175
  });
@@ -8915,19 +9196,19 @@ var setHash = (self, key, hash2, value3) => {
8915
9196
  }
8916
9197
  return new HashMapImpl(false, impl._edit, newRoot, impl._size + (added.value ? 1 : 0));
8917
9198
  };
8918
- var set2 = /* @__PURE__ */ dual(3, (self, key, value3) => {
9199
+ var set3 = /* @__PURE__ */ dual(3, (self, key, value3) => {
8919
9200
  return setHash(self, key, hash(key), value3);
8920
9201
  });
8921
9202
  var keys2 = (self) => new HashMapIterator(self._root, identity);
8922
9203
  var entries = (self) => self[Symbol.iterator]();
8923
- var size2 = (self) => self.size;
9204
+ var size3 = (self) => self.size;
8924
9205
 
8925
9206
  // ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/HashMap.js
8926
9207
  var isHashMap2 = isHashMap;
8927
9208
  var fromIterable5 = fromIterable4;
8928
9209
  var entries2 = entries;
8929
- var toEntries = (self) => Array.from(entries2(self));
8930
- var size3 = size2;
9210
+ var toEntries2 = (self) => Array.from(entries2(self));
9211
+ var size4 = size3;
8931
9212
 
8932
9213
  // ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/hashSet.js
8933
9214
  var HashSetTypeId = "~effect/HashSet";
@@ -8937,7 +9218,7 @@ var HashSetProto = {
8937
9218
  return optimize(combine(hashSetSeed, hash(keyMap(this))));
8938
9219
  },
8939
9220
  [symbol2](that) {
8940
- return isHashSet(that) && size4(this) === size4(that) && every2(this, (value3) => has4(that, value3));
9221
+ return isHashSet(that) && size5(this) === size5(that) && every3(this, (value3) => has4(that, value3));
8941
9222
  },
8942
9223
  [Symbol.iterator]() {
8943
9224
  return keys2(keyMap(this));
@@ -8966,16 +9247,16 @@ var makeImpl2 = (keyMap2) => {
8966
9247
  };
8967
9248
  var isHashSet = (u) => hasProperty(u, HashSetTypeId);
8968
9249
  var keyMap = (self) => self.keyMap;
8969
- var fromIterable6 = (values2) => {
8970
- let map10 = empty5();
8971
- for (const value3 of values2) {
8972
- map10 = set2(map10, value3, true);
9250
+ var fromIterable6 = (values3) => {
9251
+ let map10 = empty6();
9252
+ for (const value3 of values3) {
9253
+ map10 = set3(map10, value3, true);
8973
9254
  }
8974
9255
  return makeImpl2(map10);
8975
9256
  };
8976
9257
  var has4 = (self, value3) => has3(keyMap(self), value3);
8977
- var size4 = (self) => size2(keyMap(self));
8978
- var every2 = (self, predicate) => {
9258
+ var size5 = (self) => size3(keyMap(self));
9259
+ var every3 = (self, predicate) => {
8979
9260
  for (const value3 of self) {
8980
9261
  if (!predicate(value3)) {
8981
9262
  return false;
@@ -8987,7 +9268,7 @@ var every2 = (self, predicate) => {
8987
9268
  // ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/HashSet.js
8988
9269
  var fromIterable7 = fromIterable6;
8989
9270
  var isHashSet2 = isHashSet;
8990
- var size5 = size4;
9271
+ var size6 = size5;
8991
9272
 
8992
9273
  // ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/http/Cookies.js
8993
9274
  var TypeId16 = "~effect/http/Cookies";
@@ -9391,10 +9672,10 @@ var Proto6 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
9391
9672
  }
9392
9673
  });
9393
9674
  var Equivalence5 = /* @__PURE__ */ makeEquivalence3(/* @__PURE__ */ strictEqual());
9394
- var empty7 = /* @__PURE__ */ Object.create(Proto6);
9675
+ var empty8 = /* @__PURE__ */ Object.create(Proto6);
9395
9676
  var fromInput3 = (input) => {
9396
9677
  if (input === void 0) {
9397
- return empty7;
9678
+ return empty8;
9398
9679
  } else if (Symbol.iterator in input) {
9399
9680
  const out2 = Object.create(Proto6);
9400
9681
  for (const [k, v] of input) {
@@ -9416,7 +9697,7 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
9416
9697
  const out = {
9417
9698
  ...self
9418
9699
  };
9419
- const modify3 = (key2) => {
9700
+ const modify4 = (key2) => {
9420
9701
  if (typeof key2 === "string") {
9421
9702
  const k = key2.toLowerCase();
9422
9703
  if (k in self) {
@@ -9432,10 +9713,10 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
9432
9713
  };
9433
9714
  if (Array.isArray(key)) {
9434
9715
  for (let i = 0; i < key.length; i++) {
9435
- modify3(key[i]);
9716
+ modify4(key[i]);
9436
9717
  }
9437
9718
  } else {
9438
- modify3(key);
9719
+ modify4(key);
9439
9720
  }
9440
9721
  return out;
9441
9722
  });
@@ -9530,7 +9811,7 @@ var fromInputNested = (input) => {
9530
9811
  var coerce = (value3) => isRedacted(value3) ? value3 : String(value3);
9531
9812
  var Equivalence6 = /* @__PURE__ */ make3((a, b) => arrayEquivalence(a.params, b.params));
9532
9813
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence4(/* @__PURE__ */ makeEquivalence2([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
9533
- var getFirst = /* @__PURE__ */ dual(2, (self, key) => findFirst2(self.params, ([k]) => k === key).pipe(map(([, value3]) => unwrap(value3))));
9814
+ var getFirst = /* @__PURE__ */ dual(2, (self, key) => findFirst3(self.params, ([k]) => k === key).pipe(map(([, value3]) => unwrap(value3))));
9534
9815
  var toRecord2 = (self) => {
9535
9816
  const out = {};
9536
9817
  for (const [k, v] of self.params) {
@@ -9738,9 +10019,9 @@ var Filter = class extends IssueNodeImpl {
9738
10019
  * The issue that occurred.
9739
10020
  */
9740
10021
  issue;
9741
- constructor(filter8, issue, input, options) {
10022
+ constructor(filter9, issue, input, options) {
9742
10023
  super(input, options);
9743
- this.filter = filter8;
10024
+ this.filter = filter9;
9744
10025
  this.issue = issue;
9745
10026
  }
9746
10027
  };
@@ -10323,9 +10604,9 @@ function makeTreeRecord(bracketPathEntries) {
10323
10604
  } else if (duplicates.has(current)) {
10324
10605
  current.push(value3);
10325
10606
  } else if (hasOwn) {
10326
- const values2 = [current, value3];
10327
- duplicates.add(values2);
10328
- assignProperty(cur, token, values2);
10607
+ const values3 = [current, value3];
10608
+ duplicates.add(values3);
10609
+ assignProperty(cur, token, values3);
10329
10610
  } else {
10330
10611
  assignProperty(cur, token, value3);
10331
10612
  }
@@ -10787,8 +11068,8 @@ var Enum = class extends ASTNodeImpl {
10787
11068
  }
10788
11069
  /** @internal */
10789
11070
  getParser() {
10790
- const values2 = new Set(this.enums.map(([, v]) => v));
10791
- return fromRefinement(this, (input) => values2.has(input));
11071
+ const values3 = new Set(this.enums.map(([, v]) => v));
11072
+ return fromRefinement(this, (input) => values3.has(input));
10792
11073
  }
10793
11074
  /** @internal */
10794
11075
  toCodecStringTree() {
@@ -11478,7 +11759,7 @@ var Objects = class extends ASTNodeImpl {
11478
11759
  }
11479
11760
  }
11480
11761
  } else if (parseIndexes) {
11481
- const keyPairs = empty2();
11762
+ const keyPairs = empty3();
11482
11763
  for (let i = 0; i < indexCount; i++) {
11483
11764
  const index2 = indexes[i];
11484
11765
  const keys3 = indexKeys?.[i] ?? (index2.is.parameter === string2 ? Object.keys(record2) : getIndexSignatureKeys(record2, index2.is.parameter, options));
@@ -11627,7 +11908,7 @@ function getAST(self) {
11627
11908
  function tuple(elements, checks = void 0) {
11628
11909
  return new Arrays(false, elements.map((e) => e.ast), [], void 0, checks);
11629
11910
  }
11630
- function union4(members, options, checks) {
11911
+ function union5(members, options, checks) {
11631
11912
  return new Union(members.map(getAST), options, void 0, checks);
11632
11913
  }
11633
11914
  function structWithRest(ast, records) {
@@ -12111,8 +12392,8 @@ var FilterGroup = class extends Class {
12111
12392
  return new FilterGroup([this, other], annotations);
12112
12393
  }
12113
12394
  };
12114
- function makeFilter(filter8, annotations, aborted = false) {
12115
- return new Filter2((input, ast, options) => normalizeFilterOutput(ast, filter8(input, ast, options), input, options), annotations, aborted);
12395
+ function makeFilter(filter9, annotations, aborted = false) {
12396
+ return new Filter2((input, ast, options) => normalizeFilterOutput(ast, filter9(input, ast, options), input, options), annotations, aborted);
12116
12397
  }
12117
12398
  function makeFilterByGuard(is3, annotations) {
12118
12399
  return new Filter2(
@@ -12599,9 +12880,9 @@ function collectIssues(checks, value3, issues, ast, options) {
12599
12880
  } else {
12600
12881
  const issue = check2.run(value3, ast, options);
12601
12882
  if (issue) {
12602
- const filter8 = new Filter(check2, issue, value3, options);
12603
- if (issues) issues.push(filter8);
12604
- else issues = [filter8];
12883
+ const filter9 = new Filter(check2, issue, value3, options);
12884
+ if (issues) issues.push(filter9);
12885
+ else issues = [filter9];
12605
12886
  if (options.errors !== "all" || check2.aborted) {
12606
12887
  return issues;
12607
12888
  }
@@ -14503,7 +14784,7 @@ function isJsonSchemaType(input) {
14503
14784
  }
14504
14785
  function compactEnums(schemas) {
14505
14786
  let sharedType = void 0;
14506
- const values2 = [];
14787
+ const values3 = [];
14507
14788
  for (const schema of schemas) {
14508
14789
  const keys3 = Object.keys(schema);
14509
14790
  if (keys3.length !== 2 || schema.type === void 0 || !Array.isArray(schema.enum) || schema.enum.length === 0) {
@@ -14512,13 +14793,13 @@ function compactEnums(schemas) {
14512
14793
  if (sharedType === void 0) sharedType = schema.type;
14513
14794
  else if (schema.type !== sharedType) return void 0;
14514
14795
  for (const value3 of schema.enum) {
14515
- if (values2.includes(value3)) return void 0;
14516
- values2.push(value3);
14796
+ if (values3.includes(value3)) return void 0;
14797
+ values3.push(value3);
14517
14798
  }
14518
14799
  }
14519
14800
  return {
14520
14801
  type: sharedType,
14521
- enum: values2
14802
+ enum: values3
14522
14803
  };
14523
14804
  }
14524
14805
  function getPartPattern(part) {
@@ -14964,7 +15245,7 @@ function toStandardJSONSchemaV1(self) {
14964
15245
  }
14965
15246
 
14966
15247
  // ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/JsonPatch.js
14967
- function get4(oldValue, newValue) {
15248
+ function get5(oldValue, newValue) {
14968
15249
  const patches = [];
14969
15250
  getLoop(oldValue, newValue, "", patches);
14970
15251
  return patches;
@@ -15147,14 +15428,14 @@ function rebuildFromStack(stack, newParent) {
15147
15428
  // ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/internal/schema/toDifferJsonPatch.js
15148
15429
  function toDifferJsonPatch(schema) {
15149
15430
  const serializer = toCodecJson(schema);
15150
- const get5 = encodeSync(serializer);
15431
+ const get6 = encodeSync(serializer);
15151
15432
  const set4 = decodeSync(serializer);
15152
15433
  return {
15153
15434
  empty: [],
15154
- diff: (oldValue, newValue) => get4(get5(oldValue), get5(newValue)),
15435
+ diff: (oldValue, newValue) => get5(get6(oldValue), get6(newValue)),
15155
15436
  combine: (first, second) => [...first, ...second],
15156
15437
  patch: (oldValue, patch) => {
15157
- const value3 = get5(oldValue);
15438
+ const value3 = get6(oldValue);
15158
15439
  const patched = apply(patch, value3);
15159
15440
  return Object.is(patched, value3) ? oldValue : set4(patched);
15160
15441
  }
@@ -15531,46 +15812,46 @@ function toFormatter(ast, options) {
15531
15812
  case "effect/schema/ReadonlyMap": {
15532
15813
  const [key, value3] = typeParameters;
15533
15814
  return (map10) => {
15534
- const size6 = map10.size;
15535
- if (size6 === 0) return "ReadonlyMap(0) {}";
15815
+ const size7 = map10.size;
15816
+ if (size7 === 0) return "ReadonlyMap(0) {}";
15536
15817
  const entries3 = globalThis.Array.from(map10.entries()).sort().map(([key_, value_]) => `${key(key_)} => ${value3(value_)}`);
15537
- return `ReadonlyMap(${size6}) { ${entries3.join(", ")} }`;
15818
+ return `ReadonlyMap(${size7}) { ${entries3.join(", ")} }`;
15538
15819
  };
15539
15820
  }
15540
15821
  case "effect/schema/HashMap": {
15541
15822
  const [key, value3] = typeParameters;
15542
15823
  return (map10) => {
15543
- const size6 = size3(map10);
15544
- if (size6 === 0) return "HashMap(0) {}";
15545
- const entries3 = toEntries(map10).sort().map(([key_, value_]) => `${key(key_)} => ${value3(value_)}`);
15546
- return `HashMap(${size6}) { ${entries3.join(", ")} }`;
15824
+ const size7 = size4(map10);
15825
+ if (size7 === 0) return "HashMap(0) {}";
15826
+ const entries3 = toEntries2(map10).sort().map(([key_, value_]) => `${key(key_)} => ${value3(value_)}`);
15827
+ return `HashMap(${size7}) { ${entries3.join(", ")} }`;
15547
15828
  };
15548
15829
  }
15549
15830
  case "effect/schema/ReadonlySet": {
15550
15831
  const [value3] = typeParameters;
15551
15832
  return (set4) => {
15552
- const size6 = set4.size;
15553
- if (size6 === 0) return "ReadonlySet(0) {}";
15554
- const values2 = globalThis.Array.from(set4.values()).sort().map((item) => `${value3(item)}`);
15555
- return `ReadonlySet(${size6}) { ${values2.join(", ")} }`;
15833
+ const size7 = set4.size;
15834
+ if (size7 === 0) return "ReadonlySet(0) {}";
15835
+ const values3 = globalThis.Array.from(set4.values()).sort().map((item) => `${value3(item)}`);
15836
+ return `ReadonlySet(${size7}) { ${values3.join(", ")} }`;
15556
15837
  };
15557
15838
  }
15558
15839
  case "effect/schema/HashSet": {
15559
15840
  const [value3] = typeParameters;
15560
15841
  return (set4) => {
15561
- const size6 = size5(set4);
15562
- if (size6 === 0) return "HashSet(0) {}";
15563
- const values2 = globalThis.Array.from(set4).sort().map((item) => `${value3(item)}`);
15564
- return `HashSet(${size6}) { ${values2.join(", ")} }`;
15842
+ const size7 = size6(set4);
15843
+ if (size7 === 0) return "HashSet(0) {}";
15844
+ const values3 = globalThis.Array.from(set4).sort().map((item) => `${value3(item)}`);
15845
+ return `HashSet(${size7}) { ${values3.join(", ")} }`;
15565
15846
  };
15566
15847
  }
15567
15848
  case "effect/schema/Chunk": {
15568
15849
  const [value3] = typeParameters;
15569
15850
  return (chunk) => {
15570
- const size6 = size(chunk);
15571
- if (size6 === 0) return "Chunk(0) {}";
15572
- const values2 = globalThis.Array.from(chunk).sort().map((item) => `${value3(item)}`);
15573
- return `Chunk(${size6}) { ${values2.join(", ")} }`;
15851
+ const size7 = size2(chunk);
15852
+ if (size7 === 0) return "Chunk(0) {}";
15853
+ const values3 = globalThis.Array.from(chunk).sort().map((item) => `${value3(item)}`);
15854
+ return `Chunk(${size7}) { ${values3.join(", ")} }`;
15574
15855
  };
15575
15856
  }
15576
15857
  default:
@@ -15693,17 +15974,17 @@ function buildStruct(source, f) {
15693
15974
  }
15694
15975
 
15695
15976
  // ../../node_modules/.pnpm/effect@4.0.5/node_modules/effect/dist/Optic.js
15696
- function makeIso(get5, set4) {
15697
- return make19(primitiveNode("Iso", get5, set4));
15977
+ function makeIso(get6, set4) {
15978
+ return make19(primitiveNode("Iso", get6, set4));
15698
15979
  }
15699
- function makeLens(get5, replace) {
15700
- return make19(primitiveNode("Lens", get5, replace));
15980
+ function makeLens(get6, replace2) {
15981
+ return make19(primitiveNode("Lens", get6, replace2));
15701
15982
  }
15702
- function primitiveNode(kind, get5, set4) {
15983
+ function primitiveNode(kind, get6, set4) {
15703
15984
  return [{
15704
15985
  _tag: "PrimitiveNode",
15705
15986
  kind,
15706
- get: get5,
15987
+ get: get6,
15707
15988
  set: set4
15708
15989
  }];
15709
15990
  }
@@ -15893,9 +16174,9 @@ var OptionalImpl = class {
15893
16174
  var IsoImpl = class extends OptionalImpl {
15894
16175
  get;
15895
16176
  set;
15896
- constructor(node, get5, set4) {
15897
- super(node, (s) => succeed2(get5(s)), (a) => succeed2(set4(a)));
15898
- this.get = get5;
16177
+ constructor(node, get6, set4) {
16178
+ super(node, (s) => succeed2(get6(s)), (a) => succeed2(set4(a)));
16179
+ this.get = get6;
15899
16180
  this.set = set4;
15900
16181
  }
15901
16182
  replace(a, _) {
@@ -15907,10 +16188,10 @@ var IsoImpl = class extends OptionalImpl {
15907
16188
  };
15908
16189
  var LensImpl = class extends OptionalImpl {
15909
16190
  get;
15910
- constructor(node, get5, replace) {
15911
- super(node, (s) => succeed2(get5(s)), (a, s) => succeed2(replace(a, s)));
15912
- this.get = get5;
15913
- this.replace = replace;
16191
+ constructor(node, get6, replace2) {
16192
+ super(node, (s) => succeed2(get6(s)), (a, s) => succeed2(replace2(a, s)));
16193
+ this.get = get6;
16194
+ this.replace = replace2;
15914
16195
  }
15915
16196
  modify(f) {
15916
16197
  return (s) => this.replace(f(this.get(s)), s);
@@ -16167,9 +16448,9 @@ var addressError = (input, message) => fail2(new NetAddressError({
16167
16448
  input,
16168
16449
  message
16169
16450
  }));
16170
- var allIntegersInRange = (values2, max5) => {
16171
- for (let i = 0; i < values2.length; i++) {
16172
- const n = values2[i];
16451
+ var allIntegersInRange = (values3, max5) => {
16452
+ for (let i = 0; i < values3.length; i++) {
16453
+ const n = values3[i];
16173
16454
  if (!Number.isInteger(n) || n < 0 || n > max5) return false;
16174
16455
  }
16175
16456
  return true;
@@ -17320,16 +17601,16 @@ function makeUnion(ast, members) {
17320
17601
  members,
17321
17602
  mapMembers(f, options) {
17322
17603
  const members2 = f(this.members);
17323
- return makeUnion(union4(members2, this.ast.options, options?.unsafePreserveChecks ? this.ast.checks : void 0), members2);
17604
+ return makeUnion(union5(members2, this.ast.options, options?.unsafePreserveChecks ? this.ast.checks : void 0), members2);
17324
17605
  }
17325
17606
  });
17326
17607
  }
17327
17608
  function Union2(members, options) {
17328
- return makeUnion(union4(members, options, void 0), members);
17609
+ return makeUnion(union5(members, options, void 0), members);
17329
17610
  }
17330
17611
  function Literals(literals) {
17331
17612
  const members = literals.map(Literal2);
17332
- return make22(union4(members, void 0, void 0), {
17613
+ return make22(union5(members, void 0, void 0), {
17333
17614
  literals,
17334
17615
  members,
17335
17616
  mapMembers(f) {
@@ -17560,15 +17841,15 @@ function TaggedUnion(casesByTag) {
17560
17841
  assignProperty(cases, key, member);
17561
17842
  members.push(member);
17562
17843
  }
17563
- const union5 = Union2(members);
17844
+ const union6 = Union2(members);
17564
17845
  const {
17565
17846
  tag: tag2,
17566
17847
  guards,
17567
17848
  isAnyOf,
17568
17849
  match: match7,
17569
17850
  matchOrElse
17570
- } = toTaggedUnion("_tag")(union5);
17571
- return make22(union5.ast, {
17851
+ } = toTaggedUnion("_tag")(union6);
17852
+ return make22(union6.ast, {
17572
17853
  tag: tag2,
17573
17854
  cases,
17574
17855
  isAnyOf,
@@ -18944,7 +19225,7 @@ function ReadonlySet(value3) {
18944
19225
  }),
18945
19226
  expected: "ReadonlySet",
18946
19227
  toCodec: ([value4]) => link()(ArraySchema(value4), transform2({
18947
- decode: (values2) => new globalThis.Set(values2),
19228
+ decode: (values3) => new globalThis.Set(values3),
18948
19229
  encode: (set4) => [...set4.values()]
18949
19230
  }))
18950
19231
  });
@@ -19378,18 +19659,18 @@ function Cause(error, defect) {
19378
19659
  defect
19379
19660
  });
19380
19661
  }
19381
- function chunkLink(values2) {
19382
- return link()(values2, transform2({
19662
+ function chunkLink(values3) {
19663
+ return link()(values3, transform2({
19383
19664
  decode: fromIterable3,
19384
19665
  encode: fromIterable2
19385
19666
  }));
19386
19667
  }
19387
19668
  function Chunk(value3) {
19388
19669
  const schema = declareConstructor()([value3], ([value4]) => {
19389
- const values2 = ArraySchema(value4);
19670
+ const values3 = ArraySchema(value4);
19390
19671
  return (input, ast, options) => {
19391
19672
  if (isChunk(input)) {
19392
- return mapBothEager2(decodeUnknownEffect(values2)(fromIterable2(input), options), {
19673
+ return mapBothEager2(decodeUnknownEffect(values3)(fromIterable2(input), options), {
19393
19674
  onSuccess: fromIterable3,
19394
19675
  onFailure: (issue) => makeCompositeAtKey(ast, "values", issue, input, options)
19395
19676
  });
@@ -20141,7 +20422,7 @@ function Graph(type, node, edge) {
20141
20422
  function hashMapLink(entries3) {
20142
20423
  return link()(entries3, transform2({
20143
20424
  decode: fromIterable5,
20144
- encode: toEntries
20425
+ encode: toEntries2
20145
20426
  }));
20146
20427
  }
20147
20428
  function HashMap(key, value3) {
@@ -20149,7 +20430,7 @@ function HashMap(key, value3) {
20149
20430
  const entries3 = ArraySchema(Tuple2([key2, value4]));
20150
20431
  return (input, ast, options) => {
20151
20432
  if (isHashMap2(input)) {
20152
- return mapBothEager2(decodeUnknownEffect(entries3)(toEntries(input), options), {
20433
+ return mapBothEager2(decodeUnknownEffect(entries3)(toEntries2(input), options), {
20153
20434
  onSuccess: fromIterable5,
20154
20435
  onFailure: (issue) => makeCompositeAtKey(ast, "entries", issue, input, options)
20155
20436
  });
@@ -20181,18 +20462,18 @@ function HashMap(key, value3) {
20181
20462
  value: value3
20182
20463
  });
20183
20464
  }
20184
- function hashSetLink(values2) {
20185
- return link()(values2, transform2({
20465
+ function hashSetLink(values3) {
20466
+ return link()(values3, transform2({
20186
20467
  decode: fromIterable7,
20187
20468
  encode: fromIterable2
20188
20469
  }));
20189
20470
  }
20190
20471
  function HashSet(value3) {
20191
20472
  const schema = declareConstructor()([value3], ([value4]) => {
20192
- const values2 = ArraySchema(value4);
20473
+ const values3 = ArraySchema(value4);
20193
20474
  return (input, ast, options) => {
20194
20475
  if (isHashSet2(input)) {
20195
- return mapBothEager2(decodeUnknownEffect(values2)(fromIterable2(input), options), {
20476
+ return mapBothEager2(decodeUnknownEffect(values3)(fromIterable2(input), options), {
20196
20477
  onSuccess: fromIterable7,
20197
20478
  onFailure: (issue) => makeCompositeAtKey(ast, "values", issue, input, options)
20198
20479
  });
@@ -20735,6 +21016,12 @@ var BriefCommentId = Schema_exports.String.pipe(Schema_exports.brand("BriefComme
20735
21016
  var ProjectId = Schema_exports.String.pipe(Schema_exports.brand("ProjectId"));
20736
21017
  var SessionId = Schema_exports.String.pipe(Schema_exports.brand("SessionId"));
20737
21018
  var WorktreeId = Schema_exports.String.pipe(Schema_exports.brand("WorktreeId"));
21019
+ var PreviewId = Schema_exports.String.pipe(Schema_exports.brand("PreviewId"));
21020
+ var base32 = "abcdefghijklmnopqrstuvwxyz234567";
21021
+ var lastOf128Bits = [...base32].filter((_, value3) => value3 % 4 === 0).join("");
21022
+ var PreviewLabel = Schema_exports.String.check(
21023
+ Schema_exports.isPattern(new RegExp(`^[${base32}]{25}[${lastOf128Bits}]$`))
21024
+ ).pipe(Schema_exports.brand("PreviewLabel"));
20738
21025
  var CheckpointId = Schema_exports.String.pipe(Schema_exports.brand("CheckpointId"));
20739
21026
  var ReviewCommentId = Schema_exports.String.pipe(Schema_exports.brand("ReviewCommentId"));
20740
21027
  var ReviewSliceId = Schema_exports.String.pipe(Schema_exports.brand("ReviewSliceId"));
@@ -21341,6 +21628,46 @@ var sameGrant = (left, right) => {
21341
21628
  return a !== null && b !== null && a === b;
21342
21629
  };
21343
21630
 
21631
+ // ../../packages/domain/src/workbench/default-login.ts
21632
+ var loginChoiceOf = (accounts, provider) => {
21633
+ const held = accounts.filter(
21634
+ (account) => account.provider === provider && account.status !== "archived"
21635
+ );
21636
+ const chosen = held.find((account) => account.isDefault);
21637
+ if (chosen !== void 0) return { _tag: "chosen", account: chosen };
21638
+ const [first, ...rest] = held;
21639
+ return first === void 0 ? { _tag: "none" } : { _tag: "unchosen", accounts: [first, ...rest] };
21640
+ };
21641
+ var isChosenDefault = (account) => account.isDefault ?? account.name === "default";
21642
+ var CREDENTIAL_PROVIDER_LABELS = {
21643
+ claude: "Claude",
21644
+ codex: "Codex",
21645
+ github: "GitHub"
21646
+ };
21647
+ var unchosenLoginSummary = (provider, heldUnchosen) => {
21648
+ const label = CREDENTIAL_PROVIDER_LABELS[provider];
21649
+ const words = `No ${label} login chosen`;
21650
+ const wordsAndSessionUse = `${words}: Mend holds ${heldUnchosen} of yours, and sessions use only the chosen one.`;
21651
+ if (heldUnchosen === 1) {
21652
+ const firstCommand2 = `mend connect ${provider}`;
21653
+ return {
21654
+ words,
21655
+ count: heldUnchosen,
21656
+ wordsAndSessionUse,
21657
+ firstCommand: firstCommand2,
21658
+ remedy: `Connect ${label} again to choose it: run ${firstCommand2}, or Connect in Settings \u2192 Connected accounts.`
21659
+ };
21660
+ }
21661
+ const firstCommand = `mend connect ${provider} --remove <name>`;
21662
+ return {
21663
+ words,
21664
+ count: heldUnchosen,
21665
+ wordsAndSessionUse,
21666
+ firstCommand,
21667
+ remedy: `Remove the others with ${firstCommand}, or Disconnect them in Settings \u2192 Connected accounts, then connect the one left again to choose it.`
21668
+ };
21669
+ };
21670
+
21344
21671
  // ../../packages/domain/src/workbench/launch-phase.ts
21345
21672
  var LAUNCH_WAITING_PREFIX = "waiting \xB7 the previous session in this worktree";
21346
21673
  var LAUNCH_WAITING_SAVING = `${LAUNCH_WAITING_PREFIX} is saving`;
@@ -21500,6 +21827,174 @@ var validatePiProfile = (files) => {
21500
21827
  return null;
21501
21828
  };
21502
21829
 
21830
+ // ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.763_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/workspace-environment.js
21831
+ var WORKSPACE_ENV_NAME_PATTERN = /^[A-Za-z_][A-Za-z0-9_]*$/u;
21832
+ var WORKSPACE_ENV_MAX_NAME_LENGTH = 128;
21833
+ var RESERVED_PREFIXES = [
21834
+ ["SEALANT_", "platform-prefix"],
21835
+ ["LD_", "dynamic-loader"],
21836
+ ["DYLD_", "dynamic-loader"],
21837
+ ["GIT_CONFIG_KEY_", "git-ssh"],
21838
+ ["GIT_CONFIG_VALUE_", "git-ssh"]
21839
+ ];
21840
+ var RESERVED_NAMES = new Map([
21841
+ // Identity/process roots the daemon and shells own.
21842
+ ...[
21843
+ "HOME",
21844
+ "PATH",
21845
+ "USER",
21846
+ "LOGNAME",
21847
+ "SHELL",
21848
+ "PWD",
21849
+ "OLDPWD",
21850
+ "SHLVL",
21851
+ "TERM",
21852
+ "COLORTERM",
21853
+ "_"
21854
+ ].map((name) => [name, "process-identity"]),
21855
+ // Runtime/network ownership (lowercase variants are caught by the uppercase comparison).
21856
+ ...[
21857
+ "DOCKER_HOST",
21858
+ "DOCKER_TLS_CERTDIR",
21859
+ "HTTP_PROXY",
21860
+ "HTTPS_PROXY",
21861
+ "ALL_PROXY",
21862
+ "NO_PROXY"
21863
+ ].map((name) => [name, "runtime-network"]),
21864
+ // Connected-account identity and config-lookup roots.
21865
+ ...[
21866
+ "CLAUDE_CODE_OAUTH_TOKEN",
21867
+ "GITHUB_TOKEN",
21868
+ "GH_TOKEN",
21869
+ "XDG_CONFIG_HOME",
21870
+ "CLAUDE_CONFIG_DIR",
21871
+ "CODEX_HOME"
21872
+ ].map((name) => [name, "account-lookup"]),
21873
+ ["GLIBC_TUNABLES", "dynamic-loader"],
21874
+ // Shell startup/control.
21875
+ ...["BASH_ENV", "ENV", "ZDOTDIR", "PROMPT_COMMAND", "PS4", "SHELLOPTS"].map((name) => [name, "shell-startup"]),
21876
+ // Runtime-wide code injection.
21877
+ ...[
21878
+ "NODE_OPTIONS",
21879
+ "PYTHONPATH",
21880
+ "PYTHONSTARTUP",
21881
+ "RUBYOPT",
21882
+ "PERL5OPT",
21883
+ "JAVA_TOOL_OPTIONS"
21884
+ ].map((name) => [name, "runtime-injection"]),
21885
+ // Git/SSH identity and config controls.
21886
+ ...[
21887
+ "SSH_AUTH_SOCK",
21888
+ "GIT_SSH",
21889
+ "GIT_SSH_COMMAND",
21890
+ "GIT_CONFIG_GLOBAL",
21891
+ "GIT_CONFIG_SYSTEM",
21892
+ "GIT_CONFIG_NOSYSTEM",
21893
+ "GIT_CONFIG_COUNT"
21894
+ ].map((name) => [name, "git-ssh"])
21895
+ ]);
21896
+ var WORKSPACE_ENV_SECRET_MARKERS = [
21897
+ "TOKEN",
21898
+ "SECRET",
21899
+ "PASSWORD",
21900
+ "PASSWD",
21901
+ "CREDENTIAL",
21902
+ "APIKEY"
21903
+ ];
21904
+ var toAsciiUpper = (name) => name.replace(/[a-z]/g, (char) => String.fromCharCode(char.charCodeAt(0) - 32));
21905
+ var findWorkspaceEnvReservedRule = (name) => {
21906
+ const upper = toAsciiUpper(name);
21907
+ for (const [prefix, rule] of RESERVED_PREFIXES) {
21908
+ if (upper.startsWith(prefix)) {
21909
+ return rule;
21910
+ }
21911
+ }
21912
+ const exact = RESERVED_NAMES.get(upper);
21913
+ if (exact !== void 0) {
21914
+ return exact;
21915
+ }
21916
+ if (WORKSPACE_ENV_SECRET_MARKERS.some((marker) => upper.includes(marker))) {
21917
+ return "secret-marker";
21918
+ }
21919
+ if (upper === "KEY" || upper.endsWith("_KEY")) {
21920
+ return "secret-marker";
21921
+ }
21922
+ return void 0;
21923
+ };
21924
+ var findWorkspaceSecretEnvReservedRule = (name) => {
21925
+ const rule = findWorkspaceEnvReservedRule(name);
21926
+ return rule === "secret-marker" ? void 0 : rule;
21927
+ };
21928
+ var providerLoginEnvNames = {
21929
+ claude: ["ANTHROPIC_API_KEY", "ANTHROPIC_AUTH_TOKEN", "CLAUDE_CODE_OAUTH_TOKEN"],
21930
+ codex: ["OPENAI_API_KEY", "CODEX_API_KEY"]
21931
+ };
21932
+
21933
+ // ../../packages/domain/src/workbench/project-environment.ts
21934
+ var ProjectEnvironmentVariable = class extends Schema_exports.Class(
21935
+ "ProjectEnvironmentVariable"
21936
+ )({
21937
+ id: ProjectEnvironmentVariableId,
21938
+ projectId: ProjectId,
21939
+ name: Schema_exports.String,
21940
+ value: Schema_exports.String,
21941
+ /** Integer row revision; stale-write checks compare against it, timestamps are display-only. */
21942
+ revision: Schema_exports.Int,
21943
+ createdAt: Timestamp,
21944
+ updatedAt: Timestamp
21945
+ }) {
21946
+ };
21947
+ var ProjectEnvironmentSnapshot = class extends Schema_exports.Class(
21948
+ "ProjectEnvironmentSnapshot"
21949
+ )({
21950
+ revision: Schema_exports.Int,
21951
+ variables: Schema_exports.Array(ProjectEnvironmentVariable)
21952
+ }) {
21953
+ };
21954
+ var PROJECT_ENV_NAME_PATTERN = WORKSPACE_ENV_NAME_PATTERN;
21955
+ var PROJECT_ENV_MAX_NAME_LENGTH = WORKSPACE_ENV_MAX_NAME_LENGTH;
21956
+
21957
+ // ../../packages/domain/src/workbench/project-secret.ts
21958
+ var ProjectSecret = class extends Schema_exports.Class("ProjectSecret")({
21959
+ id: ProjectSecretId,
21960
+ projectId: ProjectId,
21961
+ name: Schema_exports.String,
21962
+ /** Integer row revision; stale-write checks compare against it. The value never appears. */
21963
+ revision: Schema_exports.Int,
21964
+ createdAt: Timestamp,
21965
+ updatedAt: Timestamp
21966
+ }) {
21967
+ };
21968
+ var ProjectSecretsSnapshot = class extends Schema_exports.Class(
21969
+ "ProjectSecretsSnapshot"
21970
+ )({
21971
+ revision: Schema_exports.Int,
21972
+ secrets: Schema_exports.Array(ProjectSecret)
21973
+ }) {
21974
+ };
21975
+ var providerLoginByName = new Map(
21976
+ Record_exports.toEntries(providerLoginEnvNames).flatMap(
21977
+ ([provider, names]) => names.map((name) => [name, provider])
21978
+ )
21979
+ );
21980
+ var validateProjectSecretName = (name) => {
21981
+ if (!PROJECT_ENV_NAME_PATTERN.test(name)) return { rule: "name-grammar" };
21982
+ if (name.length > PROJECT_ENV_MAX_NAME_LENGTH) return { rule: "name-length" };
21983
+ const upper = name.toUpperCase();
21984
+ if (upper.startsWith("MEND_")) return { rule: "name-mend-prefix" };
21985
+ const provider = providerLoginByName.get(upper);
21986
+ if (provider !== void 0) return { rule: "name-provider-login", name, provider };
21987
+ const reservedRule = findWorkspaceSecretEnvReservedRule(name);
21988
+ if (reservedRule !== void 0) return { rule: "name-reserved", reservedRule };
21989
+ return null;
21990
+ };
21991
+ var storedSecretNameRefusal = (name) => {
21992
+ const issue = validateProjectSecretName(name);
21993
+ if (issue === null || issue.rule !== "name-provider-login") return null;
21994
+ const label = CREDENTIAL_PROVIDER_LABELS[issue.provider];
21995
+ return `${issue.name} is a ${label} login, and Mend no longer takes it as a project secret. This one was stored before; rename or remove it, and connect your ${label} login in Settings \u2192 Connected accounts.`;
21996
+ };
21997
+
21503
21998
  // ../../packages/domain/src/workbench/audit.ts
21504
21999
  var AuditAction = Schema_exports.Literals([
21505
22000
  "invitation.created",
@@ -22075,7 +22570,14 @@ var AgentEvent = Schema_exports.Union([
22075
22570
  delta: Schema_exports.String
22076
22571
  }),
22077
22572
  Schema_exports.TaggedStruct("request.opened", { request: AgentEventRequest }),
22078
- Schema_exports.TaggedStruct("request.resolved", { providerRequestId: Schema_exports.String }),
22573
+ /**
22574
+ * A provider request closed. `cancelled` means the harness dropped it (a steered Claude turn
22575
+ * aborted the tool asking); absent means it was answered.
22576
+ */
22577
+ Schema_exports.TaggedStruct("request.resolved", {
22578
+ providerRequestId: Schema_exports.String,
22579
+ disposition: Schema_exports.optional(Schema_exports.Literal("cancelled"))
22580
+ }),
22079
22581
  Schema_exports.TaggedStruct("runtime.warning", { message: Schema_exports.String }),
22080
22582
  Schema_exports.TaggedStruct("runtime.error", { message: Schema_exports.String })
22081
22583
  ]);
@@ -23230,105 +23732,6 @@ var ProjectClusterBindingsSnapshot = class extends Schema_exports.Class(
23230
23732
  }) {
23231
23733
  };
23232
23734
 
23233
- // ../../node_modules/.pnpm/@sealant+api-contracts@0.39.0_effect@4.0.5/node_modules/@sealant/api-contracts/dist/workspace-environment.js
23234
- var RESERVED_NAMES = new Map([
23235
- // Identity/process roots the daemon and shells own.
23236
- ...[
23237
- "HOME",
23238
- "PATH",
23239
- "USER",
23240
- "LOGNAME",
23241
- "SHELL",
23242
- "PWD",
23243
- "OLDPWD",
23244
- "SHLVL",
23245
- "TERM",
23246
- "COLORTERM",
23247
- "_"
23248
- ].map((name) => [name, "process-identity"]),
23249
- // Runtime/network ownership (lowercase variants are caught by the uppercase comparison).
23250
- ...[
23251
- "DOCKER_HOST",
23252
- "DOCKER_TLS_CERTDIR",
23253
- "HTTP_PROXY",
23254
- "HTTPS_PROXY",
23255
- "ALL_PROXY",
23256
- "NO_PROXY"
23257
- ].map((name) => [name, "runtime-network"]),
23258
- // Connected-account identity and config-lookup roots.
23259
- ...[
23260
- "CLAUDE_CODE_OAUTH_TOKEN",
23261
- "GITHUB_TOKEN",
23262
- "GH_TOKEN",
23263
- "XDG_CONFIG_HOME",
23264
- "CLAUDE_CONFIG_DIR",
23265
- "CODEX_HOME"
23266
- ].map((name) => [name, "account-lookup"]),
23267
- ["GLIBC_TUNABLES", "dynamic-loader"],
23268
- // Shell startup/control.
23269
- ...["BASH_ENV", "ENV", "ZDOTDIR", "PROMPT_COMMAND", "PS4", "SHELLOPTS"].map((name) => [name, "shell-startup"]),
23270
- // Runtime-wide code injection.
23271
- ...[
23272
- "NODE_OPTIONS",
23273
- "PYTHONPATH",
23274
- "PYTHONSTARTUP",
23275
- "RUBYOPT",
23276
- "PERL5OPT",
23277
- "JAVA_TOOL_OPTIONS"
23278
- ].map((name) => [name, "runtime-injection"]),
23279
- // Git/SSH identity and config controls.
23280
- ...[
23281
- "SSH_AUTH_SOCK",
23282
- "GIT_SSH",
23283
- "GIT_SSH_COMMAND",
23284
- "GIT_CONFIG_GLOBAL",
23285
- "GIT_CONFIG_SYSTEM",
23286
- "GIT_CONFIG_NOSYSTEM",
23287
- "GIT_CONFIG_COUNT"
23288
- ].map((name) => [name, "git-ssh"])
23289
- ]);
23290
-
23291
- // ../../packages/domain/src/workbench/project-environment.ts
23292
- var ProjectEnvironmentVariable = class extends Schema_exports.Class(
23293
- "ProjectEnvironmentVariable"
23294
- )({
23295
- id: ProjectEnvironmentVariableId,
23296
- projectId: ProjectId,
23297
- name: Schema_exports.String,
23298
- value: Schema_exports.String,
23299
- /** Integer row revision; stale-write checks compare against it, timestamps are display-only. */
23300
- revision: Schema_exports.Int,
23301
- createdAt: Timestamp,
23302
- updatedAt: Timestamp
23303
- }) {
23304
- };
23305
- var ProjectEnvironmentSnapshot = class extends Schema_exports.Class(
23306
- "ProjectEnvironmentSnapshot"
23307
- )({
23308
- revision: Schema_exports.Int,
23309
- variables: Schema_exports.Array(ProjectEnvironmentVariable)
23310
- }) {
23311
- };
23312
-
23313
- // ../../packages/domain/src/workbench/project-secret.ts
23314
- var ProjectSecret = class extends Schema_exports.Class("ProjectSecret")({
23315
- id: ProjectSecretId,
23316
- projectId: ProjectId,
23317
- name: Schema_exports.String,
23318
- /** Integer row revision; stale-write checks compare against it. The value never appears. */
23319
- revision: Schema_exports.Int,
23320
- createdAt: Timestamp,
23321
- updatedAt: Timestamp
23322
- }) {
23323
- };
23324
- var ProjectSecretsSnapshot = class extends Schema_exports.Class(
23325
- "ProjectSecretsSnapshot"
23326
- )({
23327
- revision: Schema_exports.Int,
23328
- secrets: Schema_exports.Array(ProjectSecret)
23329
- }) {
23330
- };
23331
-
23332
23735
  // ../../packages/domain/src/workbench/session-process.ts
23333
23736
  var SessionProcessKind = Schema_exports.Literals([
23334
23737
  "shell",
@@ -23431,6 +23834,40 @@ var servicesHoldLine = (input) => {
23431
23834
  return input.agentOutcome === null ? hold : `agent ${input.agentOutcome} \xB7 ${hold}`;
23432
23835
  };
23433
23836
 
23837
+ // ../../packages/domain/src/workbench/preview.ts
23838
+ var identity2 = {
23839
+ id: PreviewId,
23840
+ serviceName: Schema_exports.String,
23841
+ label: PreviewLabel
23842
+ };
23843
+ var Preview = Schema_exports.Union([
23844
+ Schema_exports.Struct({
23845
+ ...identity2,
23846
+ projectId: ProjectId,
23847
+ worktreeId: WorktreeId,
23848
+ state: Schema_exports.Literal("kept")
23849
+ }),
23850
+ Schema_exports.Struct({
23851
+ ...identity2,
23852
+ projectId: Schema_exports.NullOr(ProjectId),
23853
+ worktreeId: Schema_exports.Null,
23854
+ state: Schema_exports.Literal("removed")
23855
+ })
23856
+ ]);
23857
+ var PreviewUnboundReason = Schema_exports.Literals([
23858
+ "removed",
23859
+ "service-missing",
23860
+ "not-browser-service",
23861
+ "no-live-attempt",
23862
+ "no-recorded-command",
23863
+ "https-unsupported"
23864
+ ]);
23865
+ var PreviewBinding = Schema_exports.Union([
23866
+ Schema_exports.TaggedStruct("Unbound", { reason: PreviewUnboundReason }),
23867
+ Schema_exports.TaggedStruct("Bound", { serviceId: ServiceId, attemptId: SessionProcessId })
23868
+ ]);
23869
+ var PreviewView = Schema_exports.Struct({ preview: Preview, binding: PreviewBinding });
23870
+
23434
23871
  // ../../packages/domain/src/workbench/repository.ts
23435
23872
  var SessionRepositoryState = Schema_exports.Literals(["adding", "ready", "failed", "missing"]);
23436
23873
  var SessionRepositoryCapture = Schema_exports.Literals(["nested", "own"]);
@@ -24650,6 +25087,9 @@ export {
24650
25087
  narrowCredential,
24651
25088
  claudeGrantFacts,
24652
25089
  sameGrant,
25090
+ loginChoiceOf,
25091
+ isChosenDefault,
25092
+ unchosenLoginSummary,
24653
25093
  normalizeGitAuthor,
24654
25094
  gitAuthorIssue,
24655
25095
  HANDOFF_SNAPSHOT_REF,
@@ -24680,6 +25120,7 @@ export {
24680
25120
  PI_PROFILE_LOCAL_PACKAGES,
24681
25121
  PI_PROFILE_MAX_FILE_BYTES,
24682
25122
  validatePiProfile,
25123
+ storedSecretNameRefusal,
24683
25124
  servicesHoldLine,
24684
25125
  validateSecretFilePath,
24685
25126
  serviceStartCorrelation,