@kitman-sh/go-to-market 0.11.5 → 0.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +400 -188
- package/dist/declarations.json +1 -1
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -2397,6 +2397,7 @@ var Equivalence = (self, that) => matchPair(self, that, {
|
|
|
2397
2397
|
onInfinity: (self, that) => self.value._tag === that.value._tag
|
|
2398
2398
|
});
|
|
2399
2399
|
var min2 = /* @__PURE__ */ min(Order);
|
|
2400
|
+
var isLessThanOrEqualTo2 = /* @__PURE__ */ isLessThanOrEqualTo(Order);
|
|
2400
2401
|
var equals2 = /* @__PURE__ */ dual(2, (self, that) => Equivalence(self, that));
|
|
2401
2402
|
var parts = (self) => {
|
|
2402
2403
|
if (self.value._tag === "Infinity") {
|
|
@@ -3710,6 +3711,7 @@ var asSome = (self) => map5(self, some2);
|
|
|
3710
3711
|
var andThen = /* @__PURE__ */ dual(2, (self, f) => new ContImpl(self, isEffect(f) ? returnPayload : andThenCont, f));
|
|
3711
3712
|
var tap = /* @__PURE__ */ dual(2, (self, f) => new ContImpl(self, isEffect(f) ? tapEffectCont : tapCont, f));
|
|
3712
3713
|
var asVoid = (self) => new ContImpl(self, returnPayload, exitVoid);
|
|
3714
|
+
var sandbox = (self) => catchCause(self, fail3);
|
|
3713
3715
|
var raceAllFirst = (all, options) => withFiber((parent) => {
|
|
3714
3716
|
const fibers = new Set;
|
|
3715
3717
|
onExitUnsafe(parent, () => fibers.size === 0 ? undefined : fiberInterruptAll(fibers));
|
|
@@ -5401,6 +5403,7 @@ var ScheduleProto = {
|
|
|
5401
5403
|
return pipeArguments(this, arguments);
|
|
5402
5404
|
}
|
|
5403
5405
|
};
|
|
5406
|
+
var isSchedule = (u) => hasProperty(u, TypeId7);
|
|
5404
5407
|
var fromStep = (step) => {
|
|
5405
5408
|
const self = Object.create(ScheduleProto);
|
|
5406
5409
|
self.step = step;
|
|
@@ -5472,10 +5475,29 @@ var exponential = (base, factor = 2) => {
|
|
|
5472
5475
|
return succeed3([duration, duration]);
|
|
5473
5476
|
}));
|
|
5474
5477
|
};
|
|
5478
|
+
var passthrough = (self) => fromStep(map5(toStep(self), (step) => (now, input) => matchEffect2(step(now, input), {
|
|
5479
|
+
onSuccess: (result) => succeed3([input, result[1]]),
|
|
5480
|
+
onFailure: failCause,
|
|
5481
|
+
onDone: () => done2(input)
|
|
5482
|
+
})));
|
|
5475
5483
|
var spaced = (duration) => {
|
|
5476
5484
|
const decoded = fromInputUnsafe2(duration);
|
|
5477
5485
|
return fromStepWithMetadata(succeed3((meta) => succeed3([meta.attempt - 1, decoded])));
|
|
5478
5486
|
};
|
|
5487
|
+
var while_ = /* @__PURE__ */ dual(2, (self, predicate) => fromStep(map5(toStep(self), (step) => {
|
|
5488
|
+
const meta = metadataFn();
|
|
5489
|
+
return (now, input) => flatMap2(step(now, input), (result) => {
|
|
5490
|
+
const [output, duration] = result;
|
|
5491
|
+
const eff = predicate({
|
|
5492
|
+
...meta(now, input),
|
|
5493
|
+
output,
|
|
5494
|
+
duration
|
|
5495
|
+
});
|
|
5496
|
+
return flatMap2(isEffect(eff) ? eff : succeed3(eff), (check) => check ? succeed3(result) : done2(output));
|
|
5497
|
+
});
|
|
5498
|
+
})));
|
|
5499
|
+
var forever2 = /* @__PURE__ */ spaced(zero);
|
|
5500
|
+
var setInputType = () => (self) => self;
|
|
5479
5501
|
|
|
5480
5502
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/layer.js
|
|
5481
5503
|
var provideLayer = (self, layer, options) => scopedWith((scope) => flatMap2(options?.local ? buildWithMemoMap(layer, makeMemoMapUnsafe(), scope) : buildWithScope(layer, scope), (context) => provideContext(self, context)));
|
|
@@ -5494,6 +5516,36 @@ var retryOrElse = /* @__PURE__ */ dual(3, (self, policy, orElse) => flatMap2(toS
|
|
|
5494
5516
|
});
|
|
5495
5517
|
return catchDone(loop, (out) => internalCall(() => orElse(lastError, out)));
|
|
5496
5518
|
}));
|
|
5519
|
+
var retry = /* @__PURE__ */ dual(2, (self, options) => {
|
|
5520
|
+
const schedule = typeof options === "function" ? options(identity) : isSchedule(options) ? options : buildFromOptions(options);
|
|
5521
|
+
return retryOrElse(self, schedule, fail3);
|
|
5522
|
+
});
|
|
5523
|
+
var passthroughForever = /* @__PURE__ */ passthrough(forever2);
|
|
5524
|
+
var buildFromOptions = (options) => {
|
|
5525
|
+
let schedule = options.schedule ? passthrough(options.schedule) : passthroughForever;
|
|
5526
|
+
if (options.while) {
|
|
5527
|
+
schedule = while_(schedule, ({
|
|
5528
|
+
input
|
|
5529
|
+
}) => {
|
|
5530
|
+
const applied = options.while(input);
|
|
5531
|
+
return isEffect(applied) ? applied : succeed3(applied);
|
|
5532
|
+
});
|
|
5533
|
+
}
|
|
5534
|
+
if (options.until) {
|
|
5535
|
+
schedule = while_(schedule, ({
|
|
5536
|
+
input
|
|
5537
|
+
}) => {
|
|
5538
|
+
const applied = options.until(input);
|
|
5539
|
+
return isEffect(applied) ? map5(applied, (b) => !b) : succeed3(!applied);
|
|
5540
|
+
});
|
|
5541
|
+
}
|
|
5542
|
+
if (options.times !== undefined) {
|
|
5543
|
+
schedule = while_(schedule, ({
|
|
5544
|
+
attempt
|
|
5545
|
+
}) => succeed3(attempt <= options.times));
|
|
5546
|
+
}
|
|
5547
|
+
return schedule;
|
|
5548
|
+
};
|
|
5497
5549
|
|
|
5498
5550
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableHashMap.js
|
|
5499
5551
|
var TypeId8 = "~effect/MutableHashMap";
|
|
@@ -5646,7 +5698,9 @@ var mapError3 = mapError2;
|
|
|
5646
5698
|
var orDie2 = orDie;
|
|
5647
5699
|
var tapError2 = tapError;
|
|
5648
5700
|
var tapCause2 = tapCause;
|
|
5701
|
+
var retry2 = retry;
|
|
5649
5702
|
var retryOrElse2 = retryOrElse;
|
|
5703
|
+
var sandbox2 = sandbox;
|
|
5650
5704
|
var ignore2 = ignore;
|
|
5651
5705
|
var ignoreCause2 = ignoreCause;
|
|
5652
5706
|
var timeout2 = timeout;
|
|
@@ -14997,9 +15051,25 @@ var make14 = (name, options) => {
|
|
|
14997
15051
|
};
|
|
14998
15052
|
};
|
|
14999
15053
|
var EngineTag2 = /* @__PURE__ */ Service("effect/workflow/WorkflowEngine");
|
|
15054
|
+
var InstanceTag2 = /* @__PURE__ */ Service("effect/workflow/WorkflowEngine/WorkflowInstance");
|
|
15000
15055
|
var CurrentAttempt = /* @__PURE__ */ Reference("effect/workflow/Activity/CurrentAttempt", {
|
|
15001
15056
|
defaultValue: () => 1
|
|
15002
15057
|
});
|
|
15058
|
+
var awaitOwners = /* @__PURE__ */ new WeakMap;
|
|
15059
|
+
var registerAwait = (instance, name) => {
|
|
15060
|
+
instance.awaitedDeferreds.set(name, (instance.awaitedDeferreds.get(name) ?? 0) + 1);
|
|
15061
|
+
awaitOwners.get(instance)?.push(name);
|
|
15062
|
+
};
|
|
15063
|
+
var await_2 = /* @__PURE__ */ fnUntraced2(function* (self) {
|
|
15064
|
+
const engine = yield* EngineTag2;
|
|
15065
|
+
const instance = yield* InstanceTag2;
|
|
15066
|
+
registerAwait(instance, self.name);
|
|
15067
|
+
const exit = yield* wrapActivityResult(engine.deferredResult(self), isNone2);
|
|
15068
|
+
if (isNone2(exit)) {
|
|
15069
|
+
return yield* suspend4(instance);
|
|
15070
|
+
}
|
|
15071
|
+
return yield* exit.value;
|
|
15072
|
+
});
|
|
15003
15073
|
class TokenParsed extends (/* @__PURE__ */ Class4("effect/workflow/DurableDeferred/TokenParsed")({
|
|
15004
15074
|
workflowName: String5,
|
|
15005
15075
|
executionId: String5,
|
|
@@ -15032,10 +15102,114 @@ var done4 = /* @__PURE__ */ dual(2, /* @__PURE__ */ fnUntraced2(function* (self,
|
|
|
15032
15102
|
exit: options.exit
|
|
15033
15103
|
});
|
|
15034
15104
|
}));
|
|
15105
|
+
|
|
15106
|
+
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/workflow/Activity.js
|
|
15107
|
+
var TypeId20 = "~effect/workflow/Activity";
|
|
15108
|
+
var make15 = (options) => {
|
|
15109
|
+
const successSchema = options.success ?? Void2;
|
|
15110
|
+
const errorSchema = options.error ?? Never2;
|
|
15111
|
+
const successSchemaJson = toCodecJson2(successSchema);
|
|
15112
|
+
const errorSchemaJson = toCodecJson2(errorSchema);
|
|
15113
|
+
let execute;
|
|
15114
|
+
const executeWithoutInterrupt = retryOnInterrupt(options.name, options.interruptRetryPolicy)(options.execute);
|
|
15115
|
+
const self = {
|
|
15116
|
+
...Prototype2({
|
|
15117
|
+
label: "Activity",
|
|
15118
|
+
evaluate(_) {
|
|
15119
|
+
return execute;
|
|
15120
|
+
}
|
|
15121
|
+
}),
|
|
15122
|
+
[TypeId20]: TypeId20,
|
|
15123
|
+
name: options.name,
|
|
15124
|
+
successSchema,
|
|
15125
|
+
errorSchema,
|
|
15126
|
+
exitSchema: Exit(successSchemaJson, errorSchemaJson, Defect()),
|
|
15127
|
+
exitSchemaPartial: Exit(successSchemaJson, errorSchemaJson, Unknown2),
|
|
15128
|
+
annotations: options.annotations ?? empty3(),
|
|
15129
|
+
annotate(tag, value) {
|
|
15130
|
+
return make15({
|
|
15131
|
+
...options,
|
|
15132
|
+
annotations: add(self.annotations, tag, value)
|
|
15133
|
+
});
|
|
15134
|
+
},
|
|
15135
|
+
annotateMerge(context) {
|
|
15136
|
+
return make15({
|
|
15137
|
+
...options,
|
|
15138
|
+
annotations: merge(self.annotations, context)
|
|
15139
|
+
});
|
|
15140
|
+
},
|
|
15141
|
+
execute: executeWithoutInterrupt,
|
|
15142
|
+
executeEncoded: matchEffect3(executeWithoutInterrupt, {
|
|
15143
|
+
onFailure: (error) => flatMap3(orDie2(encodeEffect(errorSchemaJson)(error)), fail7),
|
|
15144
|
+
onSuccess: (value) => orDie2(encodeEffect(successSchemaJson)(value))
|
|
15145
|
+
})
|
|
15146
|
+
};
|
|
15147
|
+
execute = makeExecute(self);
|
|
15148
|
+
return self;
|
|
15149
|
+
};
|
|
15150
|
+
var interruptRetryPolicy = /* @__PURE__ */ min3([exponential(400, 1.5), spaced("10 seconds")]).pipe(/* @__PURE__ */ setInputType(), /* @__PURE__ */ while_((meta) => meta.attempt <= 10 && hasInterrupts2(meta.input)));
|
|
15151
|
+
var retryOnInterrupt = (name, policy = interruptRetryPolicy) => (effect) => flatMap3(InstanceTag3, (instance) => effect.pipe(sandbox2, retry2({
|
|
15152
|
+
schedule: policy,
|
|
15153
|
+
while: () => !instance.suspended
|
|
15154
|
+
}), catch_2((cause) => hasInterrupts2(cause) && !instance.suspended ? die4(`Activity "${name}" interrupted and retry attempts exhausted`) : failCause3(cause))));
|
|
15155
|
+
var CurrentAttempt2 = /* @__PURE__ */ Reference("effect/workflow/Activity/CurrentAttempt", {
|
|
15156
|
+
defaultValue: () => 1
|
|
15157
|
+
});
|
|
15158
|
+
var EngineTag3 = /* @__PURE__ */ Service("effect/workflow/WorkflowEngine");
|
|
15159
|
+
var InstanceTag3 = /* @__PURE__ */ Service("effect/workflow/WorkflowEngine/WorkflowInstance");
|
|
15160
|
+
var makeExecute = /* @__PURE__ */ fnUntraced2(function* (activity) {
|
|
15161
|
+
const engine = yield* EngineTag3;
|
|
15162
|
+
const instance = yield* InstanceTag3;
|
|
15163
|
+
const attempt = yield* CurrentAttempt2;
|
|
15164
|
+
yield* annotateCurrentSpan2({
|
|
15165
|
+
executionId: instance.executionId
|
|
15166
|
+
});
|
|
15167
|
+
const result = yield* wrapActivityResult(engine.activityExecute(activity, attempt), (_) => _._tag === "Suspended");
|
|
15168
|
+
if (result._tag === "Suspended") {
|
|
15169
|
+
if (result.failed)
|
|
15170
|
+
instance.failed = true;
|
|
15171
|
+
return yield* suspend4(instance);
|
|
15172
|
+
}
|
|
15173
|
+
return yield* result.exit;
|
|
15174
|
+
}, (effect, activity) => withSpan2(effect, activity.name, {
|
|
15175
|
+
captureStackTrace: false
|
|
15176
|
+
}));
|
|
15177
|
+
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/workflow/DurableClock.js
|
|
15178
|
+
var TypeId21 = "~effect/workflow/DurableClock";
|
|
15179
|
+
var make16 = (options) => ({
|
|
15180
|
+
[TypeId21]: TypeId21,
|
|
15181
|
+
name: options.name,
|
|
15182
|
+
duration: fromInputUnsafe2(options.duration),
|
|
15183
|
+
deferred: make14(`DurableClock/${options.name}`)
|
|
15184
|
+
});
|
|
15185
|
+
var EngineTag4 = /* @__PURE__ */ Service("effect/workflow/WorkflowEngine");
|
|
15186
|
+
var InstanceTag4 = /* @__PURE__ */ Service("effect/workflow/WorkflowEngine/WorkflowInstance");
|
|
15187
|
+
var sleep3 = /* @__PURE__ */ fnUntraced2(function* (options) {
|
|
15188
|
+
const duration = fromInputUnsafe2(options.duration);
|
|
15189
|
+
if (isZero(duration)) {
|
|
15190
|
+
return;
|
|
15191
|
+
}
|
|
15192
|
+
const inMemoryThreshold = options.inMemoryThreshold !== undefined ? fromInputUnsafe2(options.inMemoryThreshold) : defaultInMemoryThreshold;
|
|
15193
|
+
if (isLessThanOrEqualTo2(duration, inMemoryThreshold)) {
|
|
15194
|
+
return yield* make15({
|
|
15195
|
+
name: `DurableClock/${options.name}`,
|
|
15196
|
+
execute: sleep2(duration)
|
|
15197
|
+
});
|
|
15198
|
+
}
|
|
15199
|
+
const engine = yield* EngineTag4;
|
|
15200
|
+
const instance = yield* InstanceTag4;
|
|
15201
|
+
const clock = make16(options);
|
|
15202
|
+
yield* engine.scheduleClock(instance.workflow, {
|
|
15203
|
+
executionId: instance.executionId,
|
|
15204
|
+
clock
|
|
15205
|
+
});
|
|
15206
|
+
return yield* await_2(clock.deferred);
|
|
15207
|
+
});
|
|
15208
|
+
var defaultInMemoryThreshold = /* @__PURE__ */ seconds(60);
|
|
15035
15209
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableRef.js
|
|
15036
|
-
var
|
|
15210
|
+
var TypeId22 = "~effect/MutableRef";
|
|
15037
15211
|
var MutableRefProto = {
|
|
15038
|
-
[
|
|
15212
|
+
[TypeId22]: TypeId22,
|
|
15039
15213
|
...PipeInspectableProto,
|
|
15040
15214
|
toJSON() {
|
|
15041
15215
|
return {
|
|
@@ -15044,7 +15218,7 @@ var MutableRefProto = {
|
|
|
15044
15218
|
};
|
|
15045
15219
|
}
|
|
15046
15220
|
};
|
|
15047
|
-
var
|
|
15221
|
+
var make17 = (value) => {
|
|
15048
15222
|
const ref = Object.create(MutableRefProto);
|
|
15049
15223
|
ref.current = value;
|
|
15050
15224
|
return ref;
|
|
@@ -15052,7 +15226,7 @@ var make15 = (value) => {
|
|
|
15052
15226
|
|
|
15053
15227
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableList.js
|
|
15054
15228
|
var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
|
|
15055
|
-
var
|
|
15229
|
+
var make18 = () => ({
|
|
15056
15230
|
head: undefined,
|
|
15057
15231
|
tail: undefined,
|
|
15058
15232
|
length: 0
|
|
@@ -15162,7 +15336,7 @@ var take = (self) => {
|
|
|
15162
15336
|
};
|
|
15163
15337
|
|
|
15164
15338
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Queue.js
|
|
15165
|
-
var
|
|
15339
|
+
var TypeId23 = "~effect/Queue";
|
|
15166
15340
|
var EnqueueTypeId = "~effect/Queue/Enqueue";
|
|
15167
15341
|
var DequeueTypeId = "~effect/Queue/Dequeue";
|
|
15168
15342
|
var variance = {
|
|
@@ -15170,7 +15344,7 @@ var variance = {
|
|
|
15170
15344
|
_E: identity
|
|
15171
15345
|
};
|
|
15172
15346
|
var QueueProto = {
|
|
15173
|
-
[
|
|
15347
|
+
[TypeId23]: variance,
|
|
15174
15348
|
[EnqueueTypeId]: variance,
|
|
15175
15349
|
[DequeueTypeId]: variance,
|
|
15176
15350
|
...PipeInspectableProto,
|
|
@@ -15182,12 +15356,12 @@ var QueueProto = {
|
|
|
15182
15356
|
};
|
|
15183
15357
|
}
|
|
15184
15358
|
};
|
|
15185
|
-
var
|
|
15359
|
+
var make19 = (options) => withFiber((fiber) => {
|
|
15186
15360
|
const self = Object.create(QueueProto);
|
|
15187
15361
|
self.dispatcher = fiber.currentDispatcher;
|
|
15188
15362
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
15189
15363
|
self.strategy = options?.strategy ?? "suspend";
|
|
15190
|
-
self.messages =
|
|
15364
|
+
self.messages = make18();
|
|
15191
15365
|
self.scheduleRunning = false;
|
|
15192
15366
|
self.state = {
|
|
15193
15367
|
_tag: "Open",
|
|
@@ -15197,10 +15371,10 @@ var make17 = (options) => withFiber((fiber) => {
|
|
|
15197
15371
|
};
|
|
15198
15372
|
return succeed3(self);
|
|
15199
15373
|
});
|
|
15200
|
-
var bounded = (capacity) =>
|
|
15374
|
+
var bounded = (capacity) => make19({
|
|
15201
15375
|
capacity
|
|
15202
15376
|
});
|
|
15203
|
-
var sliding = (capacity) =>
|
|
15377
|
+
var sliding = (capacity) => make19({
|
|
15204
15378
|
capacity,
|
|
15205
15379
|
strategy: "sliding"
|
|
15206
15380
|
});
|
|
@@ -15483,10 +15657,10 @@ var finalize = (self, exit) => {
|
|
|
15483
15657
|
};
|
|
15484
15658
|
|
|
15485
15659
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Channel.js
|
|
15486
|
-
var
|
|
15487
|
-
var isChannel = (u) => hasProperty(u,
|
|
15660
|
+
var TypeId24 = "~effect/Channel";
|
|
15661
|
+
var isChannel = (u) => hasProperty(u, TypeId24);
|
|
15488
15662
|
var ChannelProto = {
|
|
15489
|
-
[
|
|
15663
|
+
[TypeId24]: {
|
|
15490
15664
|
_Env: identity,
|
|
15491
15665
|
_InErr: identity,
|
|
15492
15666
|
_InElem: identity,
|
|
@@ -15511,7 +15685,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced2(function* (upstream,
|
|
|
15511
15685
|
return onError2(pull, onCause);
|
|
15512
15686
|
}));
|
|
15513
15687
|
var toTransform = (channel) => channel.transform;
|
|
15514
|
-
var asyncQueue = (scope, f, options) =>
|
|
15688
|
+
var asyncQueue = (scope, f, options) => make19({
|
|
15515
15689
|
capacity: options?.bufferSize,
|
|
15516
15690
|
strategy: options?.strategy
|
|
15517
15691
|
}).pipe(tap2((queue) => addFinalizer2(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause4(queue, cause)), forkIn2(scope, {
|
|
@@ -15531,7 +15705,7 @@ var fromReadableStream = (options) => fromTransform((_, scope) => readableStream
|
|
|
15531
15705
|
}));
|
|
15532
15706
|
var readableStreamToPullUnsafe = (options) => {
|
|
15533
15707
|
const reader = options.readable.getReader();
|
|
15534
|
-
const exit = options.exit ??
|
|
15708
|
+
const exit = options.exit ?? make17(undefined);
|
|
15535
15709
|
const pull = suspend2(() => {
|
|
15536
15710
|
if (exit.current)
|
|
15537
15711
|
return exit.current;
|
|
@@ -15746,7 +15920,7 @@ var runFold = /* @__PURE__ */ dual(3, (self, initial, f) => suspend2(() => {
|
|
|
15746
15920
|
var toPullScoped = (self, scope) => toTransform(self)(done2(), scope);
|
|
15747
15921
|
|
|
15748
15922
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/stream.js
|
|
15749
|
-
var
|
|
15923
|
+
var TypeId25 = "~effect/Stream";
|
|
15750
15924
|
var streamVariance = {
|
|
15751
15925
|
_R: identity,
|
|
15752
15926
|
_E: identity,
|
|
@@ -15756,7 +15930,7 @@ var Stream = function(channel) {
|
|
|
15756
15930
|
this.channel = channel;
|
|
15757
15931
|
};
|
|
15758
15932
|
Stream.prototype = {
|
|
15759
|
-
[
|
|
15933
|
+
[TypeId25]: streamVariance,
|
|
15760
15934
|
pipe() {
|
|
15761
15935
|
return pipeArguments(this, arguments);
|
|
15762
15936
|
}
|
|
@@ -15764,7 +15938,7 @@ Stream.prototype = {
|
|
|
15764
15938
|
var fromChannel = (channel) => new Stream(channel);
|
|
15765
15939
|
|
|
15766
15940
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
|
|
15767
|
-
var
|
|
15941
|
+
var TypeId26 = "~effect/RcRef";
|
|
15768
15942
|
var stateEmpty = {
|
|
15769
15943
|
_tag: "Empty"
|
|
15770
15944
|
};
|
|
@@ -15777,7 +15951,7 @@ var variance2 = {
|
|
|
15777
15951
|
};
|
|
15778
15952
|
|
|
15779
15953
|
class RcRefImpl {
|
|
15780
|
-
[
|
|
15954
|
+
[TypeId26] = variance2;
|
|
15781
15955
|
pipe() {
|
|
15782
15956
|
return pipeArguments(this, arguments);
|
|
15783
15957
|
}
|
|
@@ -15793,7 +15967,7 @@ class RcRefImpl {
|
|
|
15793
15967
|
this.idleTimeToLive = idleTimeToLive;
|
|
15794
15968
|
}
|
|
15795
15969
|
}
|
|
15796
|
-
var
|
|
15970
|
+
var make20 = (options) => withFiber2((fiber) => {
|
|
15797
15971
|
const context = fiber.context;
|
|
15798
15972
|
const scope = get(context, Scope);
|
|
15799
15973
|
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe2(options.idleTimeToLive) : undefined);
|
|
@@ -15902,11 +16076,11 @@ var release = (self, state) => {
|
|
|
15902
16076
|
};
|
|
15903
16077
|
|
|
15904
16078
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
15905
|
-
var
|
|
16079
|
+
var make21 = make20;
|
|
15906
16080
|
var get4 = get3;
|
|
15907
16081
|
|
|
15908
16082
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Sink.js
|
|
15909
|
-
var
|
|
16083
|
+
var TypeId27 = "~effect/Sink";
|
|
15910
16084
|
var endVoid = /* @__PURE__ */ succeed7([undefined]);
|
|
15911
16085
|
var sinkVariance = {
|
|
15912
16086
|
_A: identity,
|
|
@@ -15916,12 +16090,12 @@ var sinkVariance = {
|
|
|
15916
16090
|
_R: identity
|
|
15917
16091
|
};
|
|
15918
16092
|
var SinkProto = {
|
|
15919
|
-
[
|
|
16093
|
+
[TypeId27]: sinkVariance,
|
|
15920
16094
|
pipe() {
|
|
15921
16095
|
return pipeArguments(this, arguments);
|
|
15922
16096
|
}
|
|
15923
16097
|
};
|
|
15924
|
-
var isSink = (u) => hasProperty(u,
|
|
16098
|
+
var isSink = (u) => hasProperty(u, TypeId27);
|
|
15925
16099
|
var fromChannel2 = (channel) => fromTransform2((upstream, scope) => toTransform(channel)(upstream, scope).pipe(flatMap3(forever3({
|
|
15926
16100
|
disableYield: true
|
|
15927
16101
|
})), catchDone(succeed7)));
|
|
@@ -15943,8 +16117,8 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
|
|
|
15943
16117
|
var unwrap3 = (effect) => fromChannel2(unwrap2(map8(effect, toChannel)));
|
|
15944
16118
|
|
|
15945
16119
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
15946
|
-
var
|
|
15947
|
-
var isStream = (u) => hasProperty(u,
|
|
16120
|
+
var TypeId28 = "~effect/Stream";
|
|
16121
|
+
var isStream = (u) => hasProperty(u, TypeId28);
|
|
15948
16122
|
var fromChannel3 = fromChannel;
|
|
15949
16123
|
var fromPull2 = (pull) => fromChannel3(fromPull(pull));
|
|
15950
16124
|
var transformPull2 = (self, f) => fromChannel3(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
|
|
@@ -16061,10 +16235,10 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
|
|
|
16061
16235
|
});
|
|
16062
16236
|
var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map8(context2(), (context) => toReadableStreamWith(self, context, options)));
|
|
16063
16237
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FiberMap.js
|
|
16064
|
-
var
|
|
16065
|
-
var isFiberMap = (u) => hasProperty(u,
|
|
16238
|
+
var TypeId29 = "~effect/FiberMap";
|
|
16239
|
+
var isFiberMap = (u) => hasProperty(u, TypeId29);
|
|
16066
16240
|
var Proto7 = {
|
|
16067
|
-
[
|
|
16241
|
+
[TypeId29]: TypeId29,
|
|
16068
16242
|
[Symbol.iterator]() {
|
|
16069
16243
|
if (this.state._tag === "Closed") {
|
|
16070
16244
|
return empty();
|
|
@@ -16089,7 +16263,7 @@ var makeUnsafe5 = (backing, deferred) => {
|
|
|
16089
16263
|
self.deferred = deferred;
|
|
16090
16264
|
return self;
|
|
16091
16265
|
};
|
|
16092
|
-
var
|
|
16266
|
+
var make22 = () => acquireRelease2(sync2(() => makeUnsafe5(empty4(), makeUnsafe2())), (map) => suspend2(() => {
|
|
16093
16267
|
const state = map.state;
|
|
16094
16268
|
if (state._tag === "Closed")
|
|
16095
16269
|
return void_3;
|
|
@@ -16382,7 +16556,7 @@ var layerMemory = /* @__PURE__ */ effect(WorkflowEngine)(/* @__PURE__ */ gen2(fu
|
|
|
16382
16556
|
}), forkIn2(entry.scope));
|
|
16383
16557
|
});
|
|
16384
16558
|
const deferredResults = new Map;
|
|
16385
|
-
const clocks = yield*
|
|
16559
|
+
const clocks = yield* make22();
|
|
16386
16560
|
const engine = makeUnsafe6({
|
|
16387
16561
|
register: fnUntraced2(function* (workflow, execute) {
|
|
16388
16562
|
workflows.set(workflow._tag, {
|
|
@@ -17059,7 +17233,7 @@ var isIgnorable = (error) => isMissing(error) || error.reason._tag === "Permissi
|
|
|
17059
17233
|
var isNotLink = (error) => isIgnorable(error) || error.reason._tag === "Unknown";
|
|
17060
17234
|
var DIRECTORY_CONCURRENCY = 16;
|
|
17061
17235
|
var byName = /* @__PURE__ */ mapInput(String2, (entry) => entry.name);
|
|
17062
|
-
var
|
|
17236
|
+
var make23 = (fs) => (pattern, options) => walk(fs, compile2([pattern], options?.dot ?? false), options);
|
|
17063
17237
|
var walk = /* @__PURE__ */ fnUntraced2(function* (fs, compiled, options) {
|
|
17064
17238
|
if (compiled.initial.size === 0) {
|
|
17065
17239
|
return [];
|
|
@@ -17200,7 +17374,7 @@ var walk = /* @__PURE__ */ fnUntraced2(function* (fs, compiled, options) {
|
|
|
17200
17374
|
});
|
|
17201
17375
|
|
|
17202
17376
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PlatformError.js
|
|
17203
|
-
var
|
|
17377
|
+
var TypeId30 = "~effect/PlatformError";
|
|
17204
17378
|
|
|
17205
17379
|
class BadArgument extends (/* @__PURE__ */ TaggedError2("BadArgument")) {
|
|
17206
17380
|
get message() {
|
|
@@ -17227,22 +17401,22 @@ class PlatformError extends (/* @__PURE__ */ TaggedError2("PlatformError")) {
|
|
|
17227
17401
|
});
|
|
17228
17402
|
}
|
|
17229
17403
|
}
|
|
17230
|
-
[
|
|
17404
|
+
[TypeId30] = TypeId30;
|
|
17231
17405
|
get message() {
|
|
17232
17406
|
return this.reason.message;
|
|
17233
17407
|
}
|
|
17234
17408
|
}
|
|
17235
|
-
var isPlatformError = (u) => hasProperty(u,
|
|
17409
|
+
var isPlatformError = (u) => hasProperty(u, TypeId30);
|
|
17236
17410
|
var systemError = (options) => new PlatformError(new SystemError(options));
|
|
17237
17411
|
var badArgument = (options) => new PlatformError(new BadArgument(options));
|
|
17238
17412
|
|
|
17239
17413
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
17240
|
-
var
|
|
17414
|
+
var TypeId31 = "~effect/FileSystem";
|
|
17241
17415
|
var FileSystem = /* @__PURE__ */ Service("effect/FileSystem");
|
|
17242
|
-
var
|
|
17416
|
+
var make24 = (impl) => FileSystem.of({
|
|
17243
17417
|
...impl,
|
|
17244
|
-
[
|
|
17245
|
-
glob:
|
|
17418
|
+
[TypeId31]: TypeId31,
|
|
17419
|
+
glob: make23(impl),
|
|
17246
17420
|
exists: (path) => pipe(impl.access(path), as2(true), catchTag2("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed7(false) : fail7(e))),
|
|
17247
17421
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_3({
|
|
17248
17422
|
try: () => new TextDecoder(encoding).decode(_),
|
|
@@ -17297,11 +17471,11 @@ class WatchBackend extends (/* @__PURE__ */ Service()("effect/FileSystem/WatchBa
|
|
|
17297
17471
|
}
|
|
17298
17472
|
|
|
17299
17473
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
|
|
17300
|
-
var
|
|
17474
|
+
var TypeId32 = "~effect/http/HttpBody";
|
|
17301
17475
|
class Proto8 {
|
|
17302
|
-
[
|
|
17476
|
+
[TypeId32];
|
|
17303
17477
|
constructor() {
|
|
17304
|
-
this[
|
|
17478
|
+
this[TypeId32] = TypeId32;
|
|
17305
17479
|
}
|
|
17306
17480
|
[NodeInspectSymbol]() {
|
|
17307
17481
|
return this.toJSON();
|
|
@@ -17356,7 +17530,7 @@ var buffer2 = globalThis.Buffer;
|
|
|
17356
17530
|
var encodeText = buffer2 !== undefined ? (body) => buffer2.from(body, "utf8") : (body) => encoder4.encode(body);
|
|
17357
17531
|
|
|
17358
17532
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
|
|
17359
|
-
var
|
|
17533
|
+
var TypeId33 = "~effect/http/HttpClientError";
|
|
17360
17534
|
class HttpClientError extends (/* @__PURE__ */ TaggedError2("HttpClientError")) {
|
|
17361
17535
|
constructor(props) {
|
|
17362
17536
|
if ("cause" in props.reason) {
|
|
@@ -17368,7 +17542,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError2("HttpClientError"))
|
|
|
17368
17542
|
super(props);
|
|
17369
17543
|
}
|
|
17370
17544
|
}
|
|
17371
|
-
[
|
|
17545
|
+
[TypeId33] = TypeId33;
|
|
17372
17546
|
get request() {
|
|
17373
17547
|
return this.reason.request;
|
|
17374
17548
|
}
|
|
@@ -17472,7 +17646,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError2("EmptyBodyError")) {
|
|
|
17472
17646
|
}
|
|
17473
17647
|
}
|
|
17474
17648
|
|
|
17475
|
-
class HttpClientErrorSchema extends (/* @__PURE__ */ Error4(
|
|
17649
|
+
class HttpClientErrorSchema extends (/* @__PURE__ */ Error4(TypeId33)({
|
|
17476
17650
|
_tag: /* @__PURE__ */ tag("HttpError"),
|
|
17477
17651
|
kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
|
|
17478
17652
|
cause: /* @__PURE__ */ optional2(/* @__PURE__ */ Defect())
|
|
@@ -17502,7 +17676,7 @@ var updateContentLength = (headers, body) => {
|
|
|
17502
17676
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
|
|
17503
17677
|
class UrlError extends (/* @__PURE__ */ TaggedError2("UrlError")) {
|
|
17504
17678
|
}
|
|
17505
|
-
var
|
|
17679
|
+
var make25 = (url, params, hash) => try_({
|
|
17506
17680
|
try: () => {
|
|
17507
17681
|
const urlInstance = new URL(url, baseUrl());
|
|
17508
17682
|
for (let i = 0;i < params.params.length; i++) {
|
|
@@ -17533,10 +17707,10 @@ var baseUrl = () => {
|
|
|
17533
17707
|
};
|
|
17534
17708
|
|
|
17535
17709
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
|
|
17536
|
-
var
|
|
17537
|
-
var isHttpClientRequest = (u) => hasProperty(u,
|
|
17710
|
+
var TypeId34 = "~effect/http/HttpClientRequest";
|
|
17711
|
+
var isHttpClientRequest = (u) => hasProperty(u, TypeId34);
|
|
17538
17712
|
var Proto9 = {
|
|
17539
|
-
[
|
|
17713
|
+
[TypeId34]: TypeId34,
|
|
17540
17714
|
...BaseProto,
|
|
17541
17715
|
toJSON() {
|
|
17542
17716
|
return {
|
|
@@ -17564,12 +17738,12 @@ function makeWith(method, url, urlParams, hash, headers, body) {
|
|
|
17564
17738
|
return self;
|
|
17565
17739
|
}
|
|
17566
17740
|
var empty10 = /* @__PURE__ */ makeWith("GET", "", empty6, /* @__PURE__ */ none2(), empty5, empty9);
|
|
17567
|
-
var
|
|
17741
|
+
var make26 = (method) => (url, options) => modify(empty10, {
|
|
17568
17742
|
method,
|
|
17569
17743
|
url,
|
|
17570
17744
|
...options ?? undefined
|
|
17571
17745
|
});
|
|
17572
|
-
var put = /* @__PURE__ */
|
|
17746
|
+
var put = /* @__PURE__ */ make26("PUT");
|
|
17573
17747
|
var modify = /* @__PURE__ */ dual(2, (self, options) => {
|
|
17574
17748
|
let result = self;
|
|
17575
17749
|
if (options.method) {
|
|
@@ -17621,7 +17795,7 @@ var setBody = /* @__PURE__ */ dual(2, (self, body) => {
|
|
|
17621
17795
|
});
|
|
17622
17796
|
var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0]), (self, body, contentType) => setBody(self, uint8Array(body, contentType)));
|
|
17623
17797
|
function toUrl(self) {
|
|
17624
|
-
const r =
|
|
17798
|
+
const r = make25(self.url, self.urlParams, getOrUndefined(self.hash));
|
|
17625
17799
|
if (isSuccess2(r)) {
|
|
17626
17800
|
return some2(r.success);
|
|
17627
17801
|
}
|
|
@@ -17629,7 +17803,7 @@ function toUrl(self) {
|
|
|
17629
17803
|
}
|
|
17630
17804
|
|
|
17631
17805
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
|
|
17632
|
-
var
|
|
17806
|
+
var TypeId35 = "~effect/http/HttpIncomingMessage";
|
|
17633
17807
|
var inspect = (self, that) => {
|
|
17634
17808
|
return {
|
|
17635
17809
|
...that,
|
|
@@ -17643,7 +17817,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
|
|
|
17643
17817
|
var getWebSource = (self) => self[WebSourceSymbol]?.();
|
|
17644
17818
|
|
|
17645
17819
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
|
|
17646
|
-
var
|
|
17820
|
+
var TypeId36 = "~effect/http/HttpClientResponse";
|
|
17647
17821
|
var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
|
|
17648
17822
|
var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed7(self) : fail7(new HttpClientError({
|
|
17649
17823
|
reason: new StatusCodeError({
|
|
@@ -17654,16 +17828,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
|
|
|
17654
17828
|
}));
|
|
17655
17829
|
|
|
17656
17830
|
class WebHttpClientResponse extends Class2 {
|
|
17657
|
-
[
|
|
17658
|
-
[
|
|
17831
|
+
[TypeId35];
|
|
17832
|
+
[TypeId36];
|
|
17659
17833
|
request;
|
|
17660
17834
|
source;
|
|
17661
17835
|
constructor(request, source) {
|
|
17662
17836
|
super();
|
|
17663
17837
|
this.request = request;
|
|
17664
17838
|
this.source = source;
|
|
17665
|
-
this[
|
|
17666
|
-
this[
|
|
17839
|
+
this[TypeId35] = TypeId35;
|
|
17840
|
+
this[TypeId36] = TypeId36;
|
|
17667
17841
|
}
|
|
17668
17842
|
toJSON() {
|
|
17669
17843
|
return inspect(this, {
|
|
@@ -17791,10 +17965,10 @@ class WebHttpClientResponse extends Class2 {
|
|
|
17791
17965
|
}
|
|
17792
17966
|
|
|
17793
17967
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
|
|
17794
|
-
var
|
|
17968
|
+
var TypeId37 = "~effect/socket/Socket";
|
|
17795
17969
|
var Socket = /* @__PURE__ */ Service("effect/socket/Socket");
|
|
17796
|
-
var
|
|
17797
|
-
[
|
|
17970
|
+
var make27 = (options) => Socket.of({
|
|
17971
|
+
[TypeId37]: TypeId37,
|
|
17798
17972
|
reader: options.reader,
|
|
17799
17973
|
writer: options.writer
|
|
17800
17974
|
});
|
|
@@ -18117,7 +18291,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
|
|
|
18117
18291
|
write,
|
|
18118
18292
|
writeAll
|
|
18119
18293
|
});
|
|
18120
|
-
return succeed7(
|
|
18294
|
+
return succeed7(make27({
|
|
18121
18295
|
reader,
|
|
18122
18296
|
writer
|
|
18123
18297
|
}));
|
|
@@ -18126,11 +18300,11 @@ var defaultHighWaterMark = 64 * 1024;
|
|
|
18126
18300
|
var layerWebSocket = /* @__PURE__ */ flow(makeWebSocket, /* @__PURE__ */ effect(Socket));
|
|
18127
18301
|
|
|
18128
18302
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
18129
|
-
var
|
|
18303
|
+
var TypeId38 = "~effect/Path";
|
|
18130
18304
|
var Path2 = /* @__PURE__ */ Service("effect/Path");
|
|
18131
|
-
var
|
|
18305
|
+
var make28 = (impl) => Path2.of({
|
|
18132
18306
|
...impl,
|
|
18133
|
-
[
|
|
18307
|
+
[TypeId38]: TypeId38,
|
|
18134
18308
|
resolveWithin(root, input) {
|
|
18135
18309
|
if (impl.parse(input).root !== "")
|
|
18136
18310
|
return none2();
|
|
@@ -18186,7 +18360,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
|
|
|
18186
18360
|
};
|
|
18187
18361
|
|
|
18188
18362
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
|
|
18189
|
-
var
|
|
18363
|
+
var TypeId39 = "~effect/http/HttpClient";
|
|
18190
18364
|
var HttpClient = /* @__PURE__ */ Service("effect/HttpClient");
|
|
18191
18365
|
var transformResponse = /* @__PURE__ */ dual(2, (self, f) => makeWith2((request) => f(self.postprocess(request)), self.preprocess));
|
|
18192
18366
|
var makeWith2 = (postprocess, preprocess) => {
|
|
@@ -18199,7 +18373,7 @@ var makeWith2 = (postprocess, preprocess) => {
|
|
|
18199
18373
|
return self;
|
|
18200
18374
|
};
|
|
18201
18375
|
var Proto10 = {
|
|
18202
|
-
[
|
|
18376
|
+
[TypeId39]: TypeId39,
|
|
18203
18377
|
pipe() {
|
|
18204
18378
|
return pipeArguments(this, arguments);
|
|
18205
18379
|
},
|
|
@@ -18210,13 +18384,13 @@ var Proto10 = {
|
|
|
18210
18384
|
};
|
|
18211
18385
|
},
|
|
18212
18386
|
.../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
|
|
18213
|
-
return this.execute(
|
|
18387
|
+
return this.execute(make26(fullMethod)(url, options));
|
|
18214
18388
|
}]))
|
|
18215
18389
|
};
|
|
18216
|
-
var
|
|
18390
|
+
var make29 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
|
|
18217
18391
|
const scopedController = scopedRequests.get(request);
|
|
18218
18392
|
const controller = scopedController ?? new AbortController;
|
|
18219
|
-
const urlResult =
|
|
18393
|
+
const urlResult = make25(request.url, request.urlParams, getOrUndefined(request.hash));
|
|
18220
18394
|
if (isFailure2(urlResult)) {
|
|
18221
18395
|
return fail7(new HttpClientError({
|
|
18222
18396
|
reason: new InvalidUrlError({
|
|
@@ -18350,8 +18524,8 @@ class InterruptibleResponse {
|
|
|
18350
18524
|
this.original = original;
|
|
18351
18525
|
this.controller = controller;
|
|
18352
18526
|
}
|
|
18353
|
-
[
|
|
18354
|
-
[
|
|
18527
|
+
[TypeId36] = TypeId36;
|
|
18528
|
+
[TypeId35] = TypeId35;
|
|
18355
18529
|
applyInterrupt(effect) {
|
|
18356
18530
|
return suspend2(() => {
|
|
18357
18531
|
responseRegistry.unregister(this.original);
|
|
@@ -18445,9 +18619,9 @@ function Stream2(success, error) {
|
|
|
18445
18619
|
}
|
|
18446
18620
|
|
|
18447
18621
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
|
|
18448
|
-
var
|
|
18622
|
+
var TypeId40 = "~effect/rpc/Rpc";
|
|
18449
18623
|
var Proto11 = {
|
|
18450
|
-
[
|
|
18624
|
+
[TypeId40]: TypeId40,
|
|
18451
18625
|
pipe() {
|
|
18452
18626
|
return pipeArguments(this, arguments);
|
|
18453
18627
|
},
|
|
@@ -18536,7 +18710,7 @@ var makeProto2 = (options) => {
|
|
|
18536
18710
|
Rpc.key = `effect/rpc/Rpc/${options._tag}`;
|
|
18537
18711
|
return Rpc;
|
|
18538
18712
|
};
|
|
18539
|
-
var
|
|
18713
|
+
var make30 = (tag, options) => {
|
|
18540
18714
|
const successSchema = options?.success ?? Void2;
|
|
18541
18715
|
const errorSchema = options?.error ?? Never2;
|
|
18542
18716
|
const defectSchema = options?.defect ?? Defect();
|
|
@@ -18722,7 +18896,7 @@ var makeProto3 = (options) => Object.assign(function() {}, RpcGroupProto, {
|
|
|
18722
18896
|
requests: options.requests,
|
|
18723
18897
|
annotations: options.annotations
|
|
18724
18898
|
});
|
|
18725
|
-
var
|
|
18899
|
+
var make31 = (...rpcs) => makeProto3({
|
|
18726
18900
|
requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
|
|
18727
18901
|
annotations: empty3()
|
|
18728
18902
|
});
|
|
@@ -18765,6 +18939,7 @@ class StepFailed extends TaggedError3()("StepFailed", {
|
|
|
18765
18939
|
return `Step "${this.step}" failed: ${this.reason}`;
|
|
18766
18940
|
}
|
|
18767
18941
|
}
|
|
18942
|
+
var effectUnconfirmed = "effect_unconfirmed";
|
|
18768
18943
|
|
|
18769
18944
|
class OutputInvalid extends TaggedError3()("OutputInvalid", {
|
|
18770
18945
|
step: String5,
|
|
@@ -19228,12 +19403,12 @@ function makeProvider(load, mapInput) {
|
|
|
19228
19403
|
function makeSource(get, transform) {
|
|
19229
19404
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
19230
19405
|
}
|
|
19231
|
-
function
|
|
19406
|
+
function make32(get) {
|
|
19232
19407
|
return makeSource(get, identityPath);
|
|
19233
19408
|
}
|
|
19234
19409
|
function fromUnknown(root, options) {
|
|
19235
19410
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
19236
|
-
return
|
|
19411
|
+
return make32((path) => succeed7(nodeAtJson(root, path, preserveEmptyStrings)));
|
|
19237
19412
|
}
|
|
19238
19413
|
function nodeAtJson(root, path, preserveEmptyStrings) {
|
|
19239
19414
|
let cur = root;
|
|
@@ -19283,7 +19458,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
19283
19458
|
function fromEnvRecord(env, options) {
|
|
19284
19459
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
19285
19460
|
const trie = buildEnvTrie(env);
|
|
19286
|
-
return
|
|
19461
|
+
return make32((path) => succeed7(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
19287
19462
|
}
|
|
19288
19463
|
function fromEnv(options) {
|
|
19289
19464
|
const env = options?.env ?? {
|
|
@@ -20818,7 +20993,7 @@ var TranscriptSearchResult = Struct({
|
|
|
20818
20993
|
});
|
|
20819
20994
|
|
|
20820
20995
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
|
|
20821
|
-
var
|
|
20996
|
+
var TypeId41 = "~effect/Config";
|
|
20822
20997
|
class ConfigError {
|
|
20823
20998
|
_tag = "ConfigError";
|
|
20824
20999
|
name = "ConfigError";
|
|
@@ -20840,14 +21015,14 @@ var Proto13 = {
|
|
|
20840
21015
|
return this.parse(fiber.getRef(ConfigProvider));
|
|
20841
21016
|
}
|
|
20842
21017
|
}),
|
|
20843
|
-
[
|
|
21018
|
+
[TypeId41]: TypeId41,
|
|
20844
21019
|
toJSON() {
|
|
20845
21020
|
return {
|
|
20846
21021
|
_id: "Config"
|
|
20847
21022
|
};
|
|
20848
21023
|
}
|
|
20849
21024
|
};
|
|
20850
|
-
function
|
|
21025
|
+
function make33(evaluator) {
|
|
20851
21026
|
const self = Object.create(Proto13);
|
|
20852
21027
|
self.evaluator = evaluator;
|
|
20853
21028
|
self.parse = (provider) => flatMapEager2(evaluator(provider, []), fromResult2);
|
|
@@ -20855,10 +21030,10 @@ function make31(evaluator) {
|
|
|
20855
21030
|
}
|
|
20856
21031
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
20857
21032
|
var map11 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
20858
|
-
return
|
|
21033
|
+
return make33((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map2(f)));
|
|
20859
21034
|
});
|
|
20860
21035
|
var withDefault3 = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
20861
|
-
return
|
|
21036
|
+
return make33((provider, pathPrefix) => mapEager2(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure2(resolution) ? succeed2(defaultValue) : resolution));
|
|
20862
21037
|
});
|
|
20863
21038
|
var option3 = (self) => self.pipe(map11(some2), withDefault3(none2()));
|
|
20864
21039
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -20977,7 +21152,7 @@ function schema2(codec, path) {
|
|
|
20977
21152
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
20978
21153
|
const decodeCursor = decodeUnknownEffect(make12(toConfigCursorAST(codecStringTree.ast)));
|
|
20979
21154
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
20980
|
-
return
|
|
21155
|
+
return make33((provider, pathPrefix) => {
|
|
20981
21156
|
const fullPath = [...pathPrefix, ...localPath];
|
|
20982
21157
|
return loadCursor(provider, fullPath).pipe(flatMapEager2((cursor) => decodeCursor(cursor).pipe(mapEager2(succeed2), catchEager2((issue) => {
|
|
20983
21158
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -21023,7 +21198,7 @@ var detectStreamBodySupport = () => {
|
|
|
21023
21198
|
return false;
|
|
21024
21199
|
}
|
|
21025
21200
|
};
|
|
21026
|
-
var fetch = /* @__PURE__ */
|
|
21201
|
+
var fetch = /* @__PURE__ */ make29((request, url, signal, fiber) => {
|
|
21027
21202
|
if (request.headers.upgrade !== undefined) {
|
|
21028
21203
|
return fail7(new HttpClientError({
|
|
21029
21204
|
reason: new TransportError({
|
|
@@ -21201,7 +21376,7 @@ var spanAttributes = (tag, attributes) => ({
|
|
|
21201
21376
|
});
|
|
21202
21377
|
|
|
21203
21378
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
|
|
21204
|
-
var
|
|
21379
|
+
var TypeId42 = "~effect/rpc/RpcClientError";
|
|
21205
21380
|
|
|
21206
21381
|
class RpcClientDefect extends (/* @__PURE__ */ Error4("effect/rpc/RpcClientError/RpcClientDefect")({
|
|
21207
21382
|
_tag: /* @__PURE__ */ tag("RpcClientDefect"),
|
|
@@ -21210,11 +21385,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error4("effect/rpc/RpcClientError
|
|
|
21210
21385
|
})) {
|
|
21211
21386
|
}
|
|
21212
21387
|
|
|
21213
|
-
class RpcClientError extends (/* @__PURE__ */ Error4(
|
|
21388
|
+
class RpcClientError extends (/* @__PURE__ */ Error4(TypeId42)({
|
|
21214
21389
|
_tag: /* @__PURE__ */ tag("RpcClientError"),
|
|
21215
21390
|
reason: /* @__PURE__ */ Union2([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
|
|
21216
21391
|
})) {
|
|
21217
|
-
[
|
|
21392
|
+
[TypeId42] = TypeId42;
|
|
21218
21393
|
get message() {
|
|
21219
21394
|
return `${this.reason._tag}: ${this.reason.message}`;
|
|
21220
21395
|
}
|
|
@@ -21546,7 +21721,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced2(function* (group, options)
|
|
|
21546
21721
|
};
|
|
21547
21722
|
});
|
|
21548
21723
|
var clientIdCounter = 0;
|
|
21549
|
-
var
|
|
21724
|
+
var make34 = /* @__PURE__ */ fnUntraced2(function* (group, options) {
|
|
21550
21725
|
const clientId = clientIdCounter++;
|
|
21551
21726
|
const {
|
|
21552
21727
|
codecFor,
|
|
@@ -21892,7 +22067,7 @@ var layerProtocolSocket = (options) => effect(Protocol)(makeProtocolSocket(optio
|
|
|
21892
22067
|
class ConnectionHooks extends (/* @__PURE__ */ Service()("effect/rpc/RpcClient/ConnectionHooks")) {
|
|
21893
22068
|
}
|
|
21894
22069
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
|
|
21895
|
-
var
|
|
22070
|
+
var TypeId43 = "~effect/rpc/RpcMiddleware";
|
|
21896
22071
|
var Service2 = () => (id, options) => {
|
|
21897
22072
|
const limit = getStackTraceLimit();
|
|
21898
22073
|
let creationError;
|
|
@@ -21910,16 +22085,16 @@ var Service2 = () => (id, options) => {
|
|
|
21910
22085
|
return creationError?.stack;
|
|
21911
22086
|
}
|
|
21912
22087
|
});
|
|
21913
|
-
ServiceClass_[
|
|
22088
|
+
ServiceClass_[TypeId43] = TypeId43;
|
|
21914
22089
|
ServiceClass_.error = options?.error ?? Never2;
|
|
21915
22090
|
ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
|
|
21916
22091
|
return ServiceClass;
|
|
21917
22092
|
};
|
|
21918
22093
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
|
|
21919
|
-
var
|
|
21920
|
-
var Stdio = /* @__PURE__ */ Service(
|
|
21921
|
-
var
|
|
21922
|
-
[
|
|
22094
|
+
var TypeId44 = "~effect/Stdio";
|
|
22095
|
+
var Stdio = /* @__PURE__ */ Service(TypeId44);
|
|
22096
|
+
var make35 = (options) => ({
|
|
22097
|
+
[TypeId44]: TypeId44,
|
|
21923
22098
|
stdinIsTerminal: succeed7(false),
|
|
21924
22099
|
stdoutIsTerminal: succeed7(false),
|
|
21925
22100
|
stderrIsTerminal: succeed7(false),
|
|
@@ -22003,96 +22178,96 @@ var ProgramOutcome = Union2([
|
|
|
22003
22178
|
Struct({ status: Literal2("failed"), failureSummary: String5 })
|
|
22004
22179
|
]);
|
|
22005
22180
|
|
|
22006
|
-
class RunnerReplicaRpcs extends
|
|
22181
|
+
class RunnerReplicaRpcs extends make31(make30("Claim", {
|
|
22007
22182
|
payload: WorkUnitClaimInput,
|
|
22008
22183
|
success: WorkUnitClaimResult,
|
|
22009
22184
|
error: RunnerRpcError
|
|
22010
|
-
}),
|
|
22185
|
+
}), make30("Heartbeat", {
|
|
22011
22186
|
payload: WorkUnitHeartbeatInput,
|
|
22012
22187
|
success: WorkUnitHeartbeatResult,
|
|
22013
22188
|
error: RunnerRpcError
|
|
22014
|
-
}),
|
|
22189
|
+
}), make30("Complete", {
|
|
22015
22190
|
payload: WorkUnitCompletion,
|
|
22016
22191
|
error: RunnerRpcError
|
|
22017
|
-
}),
|
|
22192
|
+
}), make30("Release", {
|
|
22018
22193
|
payload: WorkUnitReleaseInput,
|
|
22019
22194
|
error: RunnerRpcError
|
|
22020
|
-
}),
|
|
22195
|
+
}), make30("Signals", {
|
|
22021
22196
|
payload: { runnerReplicaId: String5 },
|
|
22022
22197
|
success: RunnerSignal,
|
|
22023
22198
|
error: RunnerRpcError,
|
|
22024
22199
|
stream: true
|
|
22025
|
-
}),
|
|
22200
|
+
}), make30("ReportSteer", {
|
|
22026
22201
|
payload: { workUnitId: String5, messageId: String5, delivered: Boolean3 },
|
|
22027
22202
|
success: Void2,
|
|
22028
22203
|
error: RunnerRpcError
|
|
22029
|
-
}),
|
|
22204
|
+
}), make30("AppendTranscript", {
|
|
22030
22205
|
payload: { workUnitId: String5, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
|
|
22031
22206
|
success: Void2,
|
|
22032
22207
|
error: RunnerRpcError
|
|
22033
|
-
}),
|
|
22208
|
+
}), make30("CreateCheckpointFile", {
|
|
22034
22209
|
payload: { lease: ProgramLease, byteSize: Int, sha256: String5 },
|
|
22035
22210
|
success: Struct({ file: RunFileRecord, upload: optional2(RunFileUpload) }),
|
|
22036
22211
|
error: Union2([RunnerRpcError, RunFileRefused])
|
|
22037
|
-
}),
|
|
22212
|
+
}), make30("CheckpointFileParts", {
|
|
22038
22213
|
payload: { lease: ProgramLease, fileId: String5, partNumbers: ArraySchema(Int) },
|
|
22039
22214
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
22040
22215
|
error: RunnerRpcError
|
|
22041
|
-
}),
|
|
22216
|
+
}), make30("CompleteCheckpointFile", {
|
|
22042
22217
|
payload: { lease: ProgramLease, fileId: String5, parts: optional2(ArraySchema(UploadedRunFilePart)) },
|
|
22043
22218
|
success: RunFileRecord,
|
|
22044
22219
|
error: RunnerRpcError
|
|
22045
|
-
}),
|
|
22220
|
+
}), make30("SaveCheckpoint", {
|
|
22046
22221
|
payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
|
|
22047
22222
|
success: Void2,
|
|
22048
22223
|
error: RunnerRpcError
|
|
22049
|
-
}),
|
|
22224
|
+
}), make30("ResumeCheckpoint", {
|
|
22050
22225
|
payload: { lease: ProgramLease },
|
|
22051
22226
|
success: UndefinedOr(ResumedCheckpoint),
|
|
22052
22227
|
error: RunnerRpcError
|
|
22053
|
-
}),
|
|
22228
|
+
}), make30("SettledCheckpoints", {
|
|
22054
22229
|
success: ArraySchema(Struct({
|
|
22055
22230
|
stepAttemptId: String5,
|
|
22056
22231
|
ref: optionalKey2(String5),
|
|
22057
22232
|
repoBinding: optionalKey2(WorkUnitRepoBinding)
|
|
22058
22233
|
})),
|
|
22059
22234
|
error: RunnerRpcError
|
|
22060
|
-
}),
|
|
22235
|
+
}), make30("ForgetCheckpoints", {
|
|
22061
22236
|
payload: { stepAttemptIds: ArraySchema(String5) },
|
|
22062
22237
|
success: Void2,
|
|
22063
22238
|
error: RunnerRpcError
|
|
22064
|
-
}),
|
|
22239
|
+
}), make30("GitCredential", {
|
|
22065
22240
|
payload: { repoBindingId: String5 },
|
|
22066
22241
|
success: UndefinedOr(Struct({ username: String5, password: String5 })),
|
|
22067
22242
|
error: RunnerRpcError
|
|
22068
|
-
}),
|
|
22243
|
+
}), make30("Bundle", {
|
|
22069
22244
|
payload: { digest: String5 },
|
|
22070
22245
|
success: Struct({ bundle: String5 }),
|
|
22071
22246
|
error: RunnerRpcError
|
|
22072
|
-
}),
|
|
22247
|
+
}), make30("SettledRuns", {
|
|
22073
22248
|
payload: { runIds: ArraySchema(String5) },
|
|
22074
22249
|
success: ArraySchema(String5),
|
|
22075
22250
|
error: RunnerRpcError
|
|
22076
|
-
}),
|
|
22251
|
+
}), make30("KnownEvidence", {
|
|
22077
22252
|
payload: { lease: ProgramLease, trees: ArraySchema(String5) },
|
|
22078
22253
|
success: ArraySchema(Struct({ tree: String5, name: String5, command: String5 })),
|
|
22079
22254
|
error: RunnerRpcError
|
|
22080
22255
|
})).middleware(RunnerAuthentication) {
|
|
22081
22256
|
}
|
|
22082
22257
|
|
|
22083
|
-
class RunnerJournalRpcs extends
|
|
22258
|
+
class RunnerJournalRpcs extends make31(make30("RecordActivity", {
|
|
22084
22259
|
payload: { lease: ProgramLease, name: String5, attempt: Int, exit: Json2 },
|
|
22085
22260
|
error: RunnerRpcError
|
|
22086
|
-
}),
|
|
22261
|
+
}), make30("DeferredDone", {
|
|
22087
22262
|
payload: { lease: ProgramLease, name: String5, exit: Json2 },
|
|
22088
22263
|
error: RunnerRpcError
|
|
22089
|
-
}),
|
|
22264
|
+
}), make30("ScheduleClock", {
|
|
22090
22265
|
payload: { lease: ProgramLease, name: String5, deferredName: String5, durationMillis: Int },
|
|
22091
22266
|
error: RunnerRpcError
|
|
22092
|
-
}),
|
|
22267
|
+
}), make30("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make30("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
|
|
22093
22268
|
}
|
|
22094
22269
|
|
|
22095
|
-
class RunnerCapabilityRpcs extends
|
|
22270
|
+
class RunnerCapabilityRpcs extends make31(make30("PutQuestion", {
|
|
22096
22271
|
payload: {
|
|
22097
22272
|
lease: ProgramLease,
|
|
22098
22273
|
step: String5,
|
|
@@ -22112,7 +22287,7 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
22112
22287
|
},
|
|
22113
22288
|
success: Struct({ questionId: String5 }),
|
|
22114
22289
|
error: RunnerRpcError
|
|
22115
|
-
}),
|
|
22290
|
+
}), make30("StartAgentStep", {
|
|
22116
22291
|
payload: {
|
|
22117
22292
|
lease: ProgramLease,
|
|
22118
22293
|
step: String5,
|
|
@@ -22128,7 +22303,7 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
22128
22303
|
},
|
|
22129
22304
|
success: Struct({ stepAttemptId: String5 }),
|
|
22130
22305
|
error: RunnerRpcError
|
|
22131
|
-
}),
|
|
22306
|
+
}), make30("StartVerification", {
|
|
22132
22307
|
payload: {
|
|
22133
22308
|
lease: ProgramLease,
|
|
22134
22309
|
step: String5,
|
|
@@ -22148,7 +22323,7 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
22148
22323
|
},
|
|
22149
22324
|
success: Struct({ verificationId: String5 }),
|
|
22150
22325
|
error: RunnerRpcError
|
|
22151
|
-
}),
|
|
22326
|
+
}), make30("AwaitEvent", {
|
|
22152
22327
|
payload: {
|
|
22153
22328
|
lease: ProgramLease,
|
|
22154
22329
|
step: String5,
|
|
@@ -22164,7 +22339,7 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
22164
22339
|
})))
|
|
22165
22340
|
},
|
|
22166
22341
|
error: RunnerRpcError
|
|
22167
|
-
}),
|
|
22342
|
+
}), make30("ClaimResource", {
|
|
22168
22343
|
payload: {
|
|
22169
22344
|
lease: ProgramLease,
|
|
22170
22345
|
step: String5,
|
|
@@ -22173,7 +22348,7 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
22173
22348
|
action: Literals(["claim", "take_over", "let_go"])
|
|
22174
22349
|
},
|
|
22175
22350
|
error: RunnerRpcError
|
|
22176
|
-
}),
|
|
22351
|
+
}), make30("AdmitChild", {
|
|
22177
22352
|
payload: {
|
|
22178
22353
|
lease: ProgramLease,
|
|
22179
22354
|
step: String5,
|
|
@@ -22184,7 +22359,7 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
22184
22359
|
},
|
|
22185
22360
|
success: Struct({ runId: String5 }),
|
|
22186
22361
|
error: RunnerRpcError
|
|
22187
|
-
}),
|
|
22362
|
+
}), make30("StoreArtifact", {
|
|
22188
22363
|
payload: {
|
|
22189
22364
|
lease: ProgramLease,
|
|
22190
22365
|
step: String5,
|
|
@@ -22196,7 +22371,7 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
22196
22371
|
},
|
|
22197
22372
|
success: Struct({ artifactId: String5 }),
|
|
22198
22373
|
error: RunnerRpcError
|
|
22199
|
-
}),
|
|
22374
|
+
}), make30("RecordNote", {
|
|
22200
22375
|
payload: {
|
|
22201
22376
|
lease: ProgramLease,
|
|
22202
22377
|
step: String5,
|
|
@@ -22205,10 +22380,11 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
22205
22380
|
kind: optional2(Literals(["note", "blocker"]))
|
|
22206
22381
|
},
|
|
22207
22382
|
error: RunnerRpcError
|
|
22208
|
-
}),
|
|
22383
|
+
}), make30("PerformHostEffect", {
|
|
22209
22384
|
payload: {
|
|
22210
22385
|
lease: ProgramLease,
|
|
22211
22386
|
step: String5,
|
|
22387
|
+
waitsWhenUnconfirmed: optionalKey2(Boolean3),
|
|
22212
22388
|
effect: Union2([
|
|
22213
22389
|
Struct({
|
|
22214
22390
|
kind: Literal2("post_comment"),
|
|
@@ -22233,7 +22409,7 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
22233
22409
|
},
|
|
22234
22410
|
success: UndefinedOr(Struct({ id: String5, number: String5, url: String5 })),
|
|
22235
22411
|
error: RunnerRpcError
|
|
22236
|
-
}),
|
|
22412
|
+
}), make30("AlertTask", {
|
|
22237
22413
|
payload: {
|
|
22238
22414
|
lease: ProgramLease,
|
|
22239
22415
|
step: String5,
|
|
@@ -22250,7 +22426,7 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
22250
22426
|
joined: optionalKey2(Struct({ kind: Literals(["run", "recent"]), runId: String5 }))
|
|
22251
22427
|
}),
|
|
22252
22428
|
error: RunnerRpcError
|
|
22253
|
-
}),
|
|
22429
|
+
}), make30("ReadTranscripts", {
|
|
22254
22430
|
payload: {
|
|
22255
22431
|
lease: ProgramLease,
|
|
22256
22432
|
step: String5,
|
|
@@ -22285,7 +22461,7 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
22285
22461
|
})))
|
|
22286
22462
|
}),
|
|
22287
22463
|
error: RunnerRpcError
|
|
22288
|
-
}),
|
|
22464
|
+
}), make30("PipelineStatus", {
|
|
22289
22465
|
payload: { lease: ProgramLease, step: String5, changeRequestId: String5 },
|
|
22290
22466
|
success: Struct({
|
|
22291
22467
|
head: String5,
|
|
@@ -22318,11 +22494,11 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
22318
22494
|
}))
|
|
22319
22495
|
}),
|
|
22320
22496
|
error: RunnerRpcError
|
|
22321
|
-
}),
|
|
22497
|
+
}), make30("ReportPipeline", {
|
|
22322
22498
|
payload: { lease: ProgramLease, step: String5, changeRequestId: String5, verification: String5 },
|
|
22323
22499
|
success: Struct({ head: String5, status: Literals(["success", "failed"]) }),
|
|
22324
22500
|
error: RunnerRpcError
|
|
22325
|
-
}),
|
|
22501
|
+
}), make30("ReviewThreads", {
|
|
22326
22502
|
payload: { lease: ProgramLease, step: String5, changeRequestId: String5 },
|
|
22327
22503
|
success: Struct({
|
|
22328
22504
|
threads: ArraySchema(Struct({
|
|
@@ -22334,7 +22510,7 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
22334
22510
|
}))
|
|
22335
22511
|
}),
|
|
22336
22512
|
error: RunnerRpcError
|
|
22337
|
-
}),
|
|
22513
|
+
}), make30("OpenChangeRequests", {
|
|
22338
22514
|
payload: { lease: ProgramLease, step: String5, authors: NonEmptyArray(String5) },
|
|
22339
22515
|
success: Struct({
|
|
22340
22516
|
changeRequests: ArraySchema(Struct({
|
|
@@ -22348,7 +22524,7 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
22348
22524
|
}))
|
|
22349
22525
|
}),
|
|
22350
22526
|
error: RunnerRpcError
|
|
22351
|
-
}),
|
|
22527
|
+
}), make30("OwnChangeRequests", {
|
|
22352
22528
|
payload: { lease: ProgramLease, step: String5 },
|
|
22353
22529
|
success: Struct({
|
|
22354
22530
|
changeRequests: ArraySchema(Struct({
|
|
@@ -22361,7 +22537,7 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
22361
22537
|
}))
|
|
22362
22538
|
}),
|
|
22363
22539
|
error: RunnerRpcError
|
|
22364
|
-
}),
|
|
22540
|
+
}), make30("Propose", {
|
|
22365
22541
|
payload: {
|
|
22366
22542
|
lease: ProgramLease,
|
|
22367
22543
|
step: String5,
|
|
@@ -22390,7 +22566,7 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
22390
22566
|
task: optionalKey2(Struct({ id: String5, active: Boolean3 }))
|
|
22391
22567
|
}),
|
|
22392
22568
|
error: RunnerRpcError
|
|
22393
|
-
}),
|
|
22569
|
+
}), make30("ReadProject", {
|
|
22394
22570
|
payload: { lease: ProgramLease, step: String5, projectId: String5 },
|
|
22395
22571
|
success: Struct({
|
|
22396
22572
|
project: Struct({ id: String5, name: String5 }),
|
|
@@ -22413,7 +22589,7 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
22413
22589
|
taskChanges: ArraySchema(Struct({ taskKey: String5, title: String5, change: String5, at: String5 }))
|
|
22414
22590
|
}),
|
|
22415
22591
|
error: RunnerRpcError
|
|
22416
|
-
}),
|
|
22592
|
+
}), make30("DraftUpdate", {
|
|
22417
22593
|
payload: {
|
|
22418
22594
|
lease: ProgramLease,
|
|
22419
22595
|
step: String5,
|
|
@@ -22428,7 +22604,7 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
22428
22604
|
},
|
|
22429
22605
|
success: Struct({ id: String5 }),
|
|
22430
22606
|
error: RunnerRpcError
|
|
22431
|
-
}),
|
|
22607
|
+
}), make30("CreatePlanTasks", {
|
|
22432
22608
|
payload: {
|
|
22433
22609
|
lease: ProgramLease,
|
|
22434
22610
|
projectId: optionalKey2(String5),
|
|
@@ -22443,18 +22619,19 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
22443
22619
|
},
|
|
22444
22620
|
success: ArraySchema(Struct({ key: String5, taskId: String5 })),
|
|
22445
22621
|
error: RunnerRpcError
|
|
22446
|
-
}),
|
|
22622
|
+
}), make30("IntegrationBranch", {
|
|
22447
22623
|
payload: { lease: ProgramLease, repoBindingId: optionalKey2(String5) },
|
|
22448
22624
|
success: Struct({ repoBindingId: String5, branch: String5, revision: String5 }),
|
|
22449
22625
|
error: RunnerRpcError
|
|
22450
|
-
}),
|
|
22626
|
+
}), make30("DeliveryBase", {
|
|
22451
22627
|
payload: { lease: ProgramLease },
|
|
22452
22628
|
success: Struct({ repoBindingId: String5, branch: String5, revision: String5 }),
|
|
22453
22629
|
error: RunnerRpcError
|
|
22454
|
-
}),
|
|
22630
|
+
}), make30("MergeChangeRequest", {
|
|
22455
22631
|
payload: {
|
|
22456
22632
|
lease: ProgramLease,
|
|
22457
22633
|
step: String5,
|
|
22634
|
+
waitsWhenUnconfirmed: optionalKey2(Boolean3),
|
|
22458
22635
|
changeRequestId: String5,
|
|
22459
22636
|
head: optionalKey2(String5),
|
|
22460
22637
|
rebase: optionalKey2(Boolean3)
|
|
@@ -22468,7 +22645,7 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
22468
22645
|
Struct({ status: Literal2("moved"), head: String5 })
|
|
22469
22646
|
]),
|
|
22470
22647
|
error: RunnerRpcError
|
|
22471
|
-
}),
|
|
22648
|
+
}), make30("ApproveChangeRequest", {
|
|
22472
22649
|
payload: {
|
|
22473
22650
|
lease: ProgramLease,
|
|
22474
22651
|
step: String5,
|
|
@@ -22483,7 +22660,7 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
22483
22660
|
Struct({ approved: Literal2(false), reason: String5 })
|
|
22484
22661
|
]),
|
|
22485
22662
|
error: RunnerRpcError
|
|
22486
|
-
}),
|
|
22663
|
+
}), make30("CloseChangeRequest", {
|
|
22487
22664
|
payload: {
|
|
22488
22665
|
lease: ProgramLease,
|
|
22489
22666
|
step: String5,
|
|
@@ -22493,7 +22670,7 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
22493
22670
|
},
|
|
22494
22671
|
success: Struct({ closed: Boolean3, head: optionalKey2(String5) }),
|
|
22495
22672
|
error: RunnerRpcError
|
|
22496
|
-
}),
|
|
22673
|
+
}), make30("RerunPipeline", {
|
|
22497
22674
|
payload: {
|
|
22498
22675
|
lease: ProgramLease,
|
|
22499
22676
|
step: String5,
|
|
@@ -22503,10 +22680,11 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
22503
22680
|
},
|
|
22504
22681
|
success: Struct({ head: String5, pipelines: Int }),
|
|
22505
22682
|
error: RunnerRpcError
|
|
22506
|
-
}),
|
|
22683
|
+
}), make30("PublishRelease", {
|
|
22507
22684
|
payload: {
|
|
22508
22685
|
lease: ProgramLease,
|
|
22509
22686
|
step: String5,
|
|
22687
|
+
waitsWhenUnconfirmed: optionalKey2(Boolean3),
|
|
22510
22688
|
tag: String5,
|
|
22511
22689
|
revision: optionalKey2(String5),
|
|
22512
22690
|
title: String5,
|
|
@@ -22514,14 +22692,14 @@ class RunnerCapabilityRpcs extends make29(make28("PutQuestion", {
|
|
|
22514
22692
|
},
|
|
22515
22693
|
success: Struct({ tag: String5, revision: String5, url: String5 }),
|
|
22516
22694
|
error: RunnerRpcError
|
|
22517
|
-
}),
|
|
22695
|
+
}), make30("ProgramSecrets", {
|
|
22518
22696
|
payload: { lease: ProgramLease },
|
|
22519
22697
|
success: Record(String5, String5),
|
|
22520
22698
|
error: RunnerRpcError
|
|
22521
22699
|
})).middleware(RunnerAuthentication) {
|
|
22522
22700
|
}
|
|
22523
22701
|
|
|
22524
|
-
class RunnerRunFileRpcs extends
|
|
22702
|
+
class RunnerRunFileRpcs extends make31(make30("CreateRunFile", {
|
|
22525
22703
|
payload: {
|
|
22526
22704
|
lease: ProgramLease,
|
|
22527
22705
|
step: String5,
|
|
@@ -22533,11 +22711,11 @@ class RunnerRunFileRpcs extends make29(make28("CreateRunFile", {
|
|
|
22533
22711
|
},
|
|
22534
22712
|
success: Struct({ file: RunFileRecord, upload: optional2(RunFileUpload) }),
|
|
22535
22713
|
error: Union2([RunnerRpcError, RunFileRefused])
|
|
22536
|
-
}),
|
|
22714
|
+
}), make30("RunFileParts", {
|
|
22537
22715
|
payload: { lease: ProgramLease, fileId: String5, partNumbers: ArraySchema(Int) },
|
|
22538
22716
|
success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
|
|
22539
22717
|
error: RunnerRpcError
|
|
22540
|
-
}),
|
|
22718
|
+
}), make30("CompleteRunFile", {
|
|
22541
22719
|
payload: { lease: ProgramLease, fileId: String5, parts: optional2(ArraySchema(UploadedRunFilePart)) },
|
|
22542
22720
|
success: RunFileRecord,
|
|
22543
22721
|
error: RunnerRpcError
|
|
@@ -22646,6 +22824,7 @@ var isRunnerRpcError = is2(RunnerRpcError);
|
|
|
22646
22824
|
var isRunFileRefused = is2(RunFileRefused);
|
|
22647
22825
|
var issues = makeFormatterStandardSchemaV1();
|
|
22648
22826
|
var refusedFields = (issue) => [...new Set(issues(issue).issues.map(({ path }) => (path ?? []).map(String).join(".")))].join(", ");
|
|
22827
|
+
var unconfirmedEffect = (cause) => ("code" in cause) && cause.code === effectUnconfirmed;
|
|
22649
22828
|
var refusedStep = (cause) => {
|
|
22650
22829
|
if (isRunFileRefused(cause))
|
|
22651
22830
|
return true;
|
|
@@ -22653,14 +22832,47 @@ var refusedStep = (cause) => {
|
|
|
22653
22832
|
return true;
|
|
22654
22833
|
return isRunnerRpcError(cause) && cause.status >= 400 && cause.status < 500 && !replayStatuses.has(cause.status);
|
|
22655
22834
|
};
|
|
22656
|
-
var
|
|
22657
|
-
|
|
22658
|
-
|
|
22659
|
-
|
|
22660
|
-
|
|
22661
|
-
|
|
22662
|
-
|
|
22663
|
-
|
|
22835
|
+
var unconfirmedWaits = [1, 2, 4, 8, 15, 30, 30, 30, 30, 30];
|
|
22836
|
+
var unconfirmedClocks = (step) => unconfirmedWaits.map((minutes, wait) => make16({ name: `${step}/unconfirmed/${wait + 1}`, duration: `${minutes} minutes` }));
|
|
22837
|
+
var unconfirmedWaiting = (step) => gen2(function* () {
|
|
22838
|
+
const engine = yield* serviceOption2(WorkflowEngine);
|
|
22839
|
+
const instance = yield* serviceOption2(WorkflowInstance);
|
|
22840
|
+
if (isNone2(engine) || isNone2(instance))
|
|
22841
|
+
return {
|
|
22842
|
+
over: 0,
|
|
22843
|
+
wait: () => die4(new Error(`Step "${step}" asked Kitman outside its Activity`))
|
|
22844
|
+
};
|
|
22845
|
+
const inWorkflow = (effect) => effect.pipe(provideService2(WorkflowEngine, engine.value), provideService2(WorkflowInstance, instance.value));
|
|
22846
|
+
const clocks = unconfirmedClocks(step);
|
|
22847
|
+
let over = 0;
|
|
22848
|
+
for (const clock of clocks) {
|
|
22849
|
+
if (isNone2(yield* inWorkflow(engine.value.deferredResult(clock.deferred))))
|
|
22850
|
+
break;
|
|
22851
|
+
over++;
|
|
22852
|
+
}
|
|
22853
|
+
return {
|
|
22854
|
+
over,
|
|
22855
|
+
wait: (wait) => {
|
|
22856
|
+
const clock = clocks[wait];
|
|
22857
|
+
return clock === undefined ? undefined : inWorkflow(sleep3({ name: clock.name, duration: clock.duration, inMemoryThreshold: 0 }));
|
|
22858
|
+
}
|
|
22859
|
+
};
|
|
22860
|
+
});
|
|
22861
|
+
var requested = (step, request) => {
|
|
22862
|
+
const ask = (waiting, wait) => request.pipe(catch_2((cause) => unconfirmedEffect(cause) ? askAfterWait(waiting, wait, cause) : refusedStep(cause) ? fail7(new StepFailed({
|
|
22863
|
+
step,
|
|
22864
|
+
reason: cause.message,
|
|
22865
|
+
...isRunnerRpcError(cause) ? { code: cause.code } : undefined
|
|
22866
|
+
})) : die4(new JournalWriteFailed({ cause }))));
|
|
22867
|
+
const askAfterWait = (waiting, wait, cause) => {
|
|
22868
|
+
const waited = waiting.wait(wait);
|
|
22869
|
+
return waited === undefined ? fail7(new StepFailed({ step, reason: cause.message, code: effectUnconfirmed })) : andThen2(waited, suspend2(() => ask(waiting, wait + 1)));
|
|
22870
|
+
};
|
|
22871
|
+
return flatMap3(unconfirmedWaiting(step), (waiting) => ask(waiting, waiting.over)).pipe(catchDefect2((defect) => defect instanceof Error && isIssue(defect.cause) ? fail7(new StepFailed({
|
|
22872
|
+
step,
|
|
22873
|
+
reason: `Kitman cannot take this Step's request: invalid ${refusedFields(defect.cause)}`
|
|
22874
|
+
})) : die4(defect)));
|
|
22875
|
+
};
|
|
22664
22876
|
var runnerHost = (capabilities) => ({
|
|
22665
22877
|
putQuestion: (launch) => requested(launch.step, capabilities.putQuestion({
|
|
22666
22878
|
step: launch.step,
|
|
@@ -22926,7 +23138,7 @@ var rpcProgramPorts = (rpc, work) => {
|
|
|
22926
23138
|
storeArtifact: ({ fileIds, ...artifact }) => rpc.storeArtifact({ lease, ...artifact, ...fileIds === undefined ? undefined : { fileIds: [...fileIds] } }),
|
|
22927
23139
|
...rpcRunFiles(rpc, lease),
|
|
22928
23140
|
recordNote: (note) => rpc.recordNote({ lease, ...note }),
|
|
22929
|
-
performHostEffect: (request) => rpc.performHostEffect({ lease, ...request }),
|
|
23141
|
+
performHostEffect: (request) => rpc.performHostEffect({ lease, ...request, waitsWhenUnconfirmed: true }),
|
|
22930
23142
|
createPlanTasks: (tickets, projectId) => rpc.createPlanTasks({
|
|
22931
23143
|
lease,
|
|
22932
23144
|
...projectId === undefined ? undefined : { projectId },
|
|
@@ -22970,11 +23182,11 @@ var rpcProgramPorts = (rpc, work) => {
|
|
|
22970
23182
|
...writtenFrom.since === undefined ? undefined : { since: writtenFrom.since }
|
|
22971
23183
|
}
|
|
22972
23184
|
}),
|
|
22973
|
-
mergeChangeRequest: (request) => rpc.mergeChangeRequest({ lease, ...request }),
|
|
23185
|
+
mergeChangeRequest: (request) => rpc.mergeChangeRequest({ lease, ...request, waitsWhenUnconfirmed: true }),
|
|
22974
23186
|
closeChangeRequest: (request) => rpc.closeChangeRequest({ lease, ...request }),
|
|
22975
23187
|
approveChangeRequest: (request) => rpc.approveChangeRequest({ lease, ...request }),
|
|
22976
23188
|
rerunPipeline: (request) => rpc.rerunPipeline({ lease, ...request }),
|
|
22977
|
-
publishRelease: (request) => rpc.publishRelease({ lease, ...request })
|
|
23189
|
+
publishRelease: (request) => rpc.publishRelease({ lease, ...request, waitsWhenUnconfirmed: true })
|
|
22978
23190
|
};
|
|
22979
23191
|
return { journal, capabilities };
|
|
22980
23192
|
};
|
|
@@ -22997,7 +23209,7 @@ var authorizer = (options) => (call) => flatMap3(options.bearer, (token) => with
|
|
|
22997
23209
|
var RunnerProcessRpcs = RunnerReplicaRpcs.merge(RunnerRunFileRpcs);
|
|
22998
23210
|
var makeProgramRpcClient = (options) => gen2(function* () {
|
|
22999
23211
|
const protocol = yield* build(options.protocol);
|
|
23000
|
-
const client = yield*
|
|
23212
|
+
const client = yield* make34(ProgramRpcs).pipe(provideContext2(protocol));
|
|
23001
23213
|
const authorized = authorizer(options);
|
|
23002
23214
|
return {
|
|
23003
23215
|
recordActivity: (input) => authorized(client.RecordActivity(input)),
|
|
@@ -23142,7 +23354,7 @@ var HandleProto = {
|
|
|
23142
23354
|
var makeHandle = (params) => Object.setPrototypeOf({
|
|
23143
23355
|
...params
|
|
23144
23356
|
}, HandleProto);
|
|
23145
|
-
var
|
|
23357
|
+
var make36 = (spawn) => {
|
|
23146
23358
|
const streamString = (command, options) => spawn(command).pipe(map8((handle) => decodeText2(options?.includeStderr === true ? handle.all : drainFork(handle.stdout, handle.stderr))), unwrap4);
|
|
23147
23359
|
const streamLines = (command, options) => splitLines2(streamString(command, options));
|
|
23148
23360
|
return ChildProcessSpawner.of({
|
|
@@ -23353,7 +23565,7 @@ var parseTemplate = (texts, values) => {
|
|
|
23353
23565
|
};
|
|
23354
23566
|
|
|
23355
23567
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/process/ChildProcess.js
|
|
23356
|
-
var
|
|
23568
|
+
var TypeId45 = "~effect/process/ChildProcess";
|
|
23357
23569
|
var Proto14 = {
|
|
23358
23570
|
.../* @__PURE__ */ Prototype2({
|
|
23359
23571
|
label: "Command",
|
|
@@ -23361,7 +23573,7 @@ var Proto14 = {
|
|
|
23361
23573
|
return getUnsafe(fiber.context, ChildProcessSpawner).spawn(this);
|
|
23362
23574
|
}
|
|
23363
23575
|
}),
|
|
23364
|
-
[
|
|
23576
|
+
[TypeId45]: TypeId45
|
|
23365
23577
|
};
|
|
23366
23578
|
var makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto14), {
|
|
23367
23579
|
_tag: "StandardCommand",
|
|
@@ -23369,7 +23581,7 @@ var makeStandardCommand = (command, args, options) => Object.assign(Object.creat
|
|
|
23369
23581
|
args,
|
|
23370
23582
|
options
|
|
23371
23583
|
});
|
|
23372
|
-
var
|
|
23584
|
+
var make37 = function make(...args) {
|
|
23373
23585
|
if (isTemplateString(args[0])) {
|
|
23374
23586
|
const [templates, ...expressions] = args;
|
|
23375
23587
|
const [command, cmdArgs] = parseTemplate2(templates, expressions);
|
|
@@ -23636,7 +23848,7 @@ var readableToPullUnsafe = (options) => {
|
|
|
23636
23848
|
const readable = options.readable;
|
|
23637
23849
|
const chunkSize = options.chunkSize ?? 4096;
|
|
23638
23850
|
const closeOnDone = options.closeOnDone ?? true;
|
|
23639
|
-
const exit = options.exit ??
|
|
23851
|
+
const exit = options.exit ?? make17(undefined);
|
|
23640
23852
|
const latch = options.latch ?? makeUnsafe4(false);
|
|
23641
23853
|
function onReadable() {
|
|
23642
23854
|
latch.openUnsafe();
|
|
@@ -23740,7 +23952,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
|
|
|
23740
23952
|
windowsHide: true
|
|
23741
23953
|
}, onExit);
|
|
23742
23954
|
};
|
|
23743
|
-
var
|
|
23955
|
+
var make38 = /* @__PURE__ */ gen2(function* () {
|
|
23744
23956
|
const fs = yield* FileSystem;
|
|
23745
23957
|
const path = yield* Path2;
|
|
23746
23958
|
const resolveWorkingDirectory = fnUntraced2(function* (options) {
|
|
@@ -24200,7 +24412,7 @@ var make36 = /* @__PURE__ */ gen2(function* () {
|
|
|
24200
24412
|
const sourceStream = unwrap4(succeed7(getSourceStream(handles[handles.length - 1], options.from)));
|
|
24201
24413
|
const toOption = options.to ?? "stdin";
|
|
24202
24414
|
if (toOption === "stdin") {
|
|
24203
|
-
handles.push(yield* spawnCommand(
|
|
24415
|
+
handles.push(yield* spawnCommand(make37(command.command, command.args, {
|
|
24204
24416
|
...command.options,
|
|
24205
24417
|
stdin: {
|
|
24206
24418
|
...stdinConfig,
|
|
@@ -24220,7 +24432,7 @@ var make36 = /* @__PURE__ */ gen2(function* () {
|
|
|
24220
24432
|
type: "input",
|
|
24221
24433
|
stream: sourceStream
|
|
24222
24434
|
};
|
|
24223
|
-
handles.push(yield* spawnCommand(
|
|
24435
|
+
handles.push(yield* spawnCommand(make37(command.command, command.args, {
|
|
24224
24436
|
...command.options,
|
|
24225
24437
|
additionalFds: {
|
|
24226
24438
|
...existingFds,
|
|
@@ -24228,7 +24440,7 @@ var make36 = /* @__PURE__ */ gen2(function* () {
|
|
|
24228
24440
|
}
|
|
24229
24441
|
})));
|
|
24230
24442
|
} else {
|
|
24231
|
-
handles.push(yield* spawnCommand(
|
|
24443
|
+
handles.push(yield* spawnCommand(make37(command.command, command.args, {
|
|
24232
24444
|
...command.options,
|
|
24233
24445
|
stdin: {
|
|
24234
24446
|
...stdinConfig,
|
|
@@ -24267,9 +24479,9 @@ var make36 = /* @__PURE__ */ gen2(function* () {
|
|
|
24267
24479
|
}
|
|
24268
24480
|
}
|
|
24269
24481
|
});
|
|
24270
|
-
return
|
|
24482
|
+
return make36(spawnCommand);
|
|
24271
24483
|
});
|
|
24272
|
-
var layer2 = /* @__PURE__ */ effect(ChildProcessSpawner,
|
|
24484
|
+
var layer2 = /* @__PURE__ */ effect(ChildProcessSpawner, make38);
|
|
24273
24485
|
var flattenCommand = (command) => {
|
|
24274
24486
|
const commands = [];
|
|
24275
24487
|
const pipeOptions = [];
|
|
@@ -24753,7 +24965,7 @@ var writeFile2 = (path, data, options) => callback2((resume, signal) => {
|
|
|
24753
24965
|
resume(fail7(handleBadArgument("writeFile")(err)));
|
|
24754
24966
|
}
|
|
24755
24967
|
});
|
|
24756
|
-
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption2(WatchBackend), (backend) =>
|
|
24968
|
+
var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption2(WatchBackend), (backend) => make24({
|
|
24757
24969
|
access: access2,
|
|
24758
24970
|
chmod: chmod2,
|
|
24759
24971
|
chown: chown2,
|
|
@@ -24813,15 +25025,15 @@ var fileUrlOps = (windows) => ({
|
|
|
24813
25025
|
})
|
|
24814
25026
|
})
|
|
24815
25027
|
});
|
|
24816
|
-
var layerPosix = /* @__PURE__ */ succeed6(Path2)(/* @__PURE__ */
|
|
25028
|
+
var layerPosix = /* @__PURE__ */ succeed6(Path2)(/* @__PURE__ */ make28({
|
|
24817
25029
|
...NodePath.posix,
|
|
24818
25030
|
.../* @__PURE__ */ fileUrlOps(false)
|
|
24819
25031
|
}));
|
|
24820
|
-
var layerWin32 = /* @__PURE__ */ succeed6(Path2)(/* @__PURE__ */
|
|
25032
|
+
var layerWin32 = /* @__PURE__ */ succeed6(Path2)(/* @__PURE__ */ make28({
|
|
24821
25033
|
...NodePath.win32,
|
|
24822
25034
|
.../* @__PURE__ */ fileUrlOps(true)
|
|
24823
25035
|
}));
|
|
24824
|
-
var layer5 = /* @__PURE__ */ succeed6(Path2)(/* @__PURE__ */
|
|
25036
|
+
var layer5 = /* @__PURE__ */ succeed6(Path2)(/* @__PURE__ */ make28({
|
|
24825
25037
|
...NodePath,
|
|
24826
25038
|
.../* @__PURE__ */ fileUrlOps(undefined)
|
|
24827
25039
|
}));
|
|
@@ -24830,7 +25042,7 @@ var layer5 = /* @__PURE__ */ succeed6(Path2)(/* @__PURE__ */ make26({
|
|
|
24830
25042
|
var layer6 = layer5;
|
|
24831
25043
|
|
|
24832
25044
|
// ../../node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
|
|
24833
|
-
var layer7 = /* @__PURE__ */ succeed6(Stdio, /* @__PURE__ */
|
|
25045
|
+
var layer7 = /* @__PURE__ */ succeed6(Stdio, /* @__PURE__ */ make35({
|
|
24834
25046
|
args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
|
|
24835
25047
|
stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
|
|
24836
25048
|
stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
|
|
@@ -24871,7 +25083,7 @@ var layer7 = /* @__PURE__ */ succeed6(Stdio, /* @__PURE__ */ make33({
|
|
|
24871
25083
|
var layer8 = layer7;
|
|
24872
25084
|
|
|
24873
25085
|
// ../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
|
|
24874
|
-
var
|
|
25086
|
+
var TypeId46 = "~effect/Terminal";
|
|
24875
25087
|
var QuitErrorTypeId = "~effect/Terminal/QuitError";
|
|
24876
25088
|
|
|
24877
25089
|
class QuitError extends (/* @__PURE__ */ Error4("QuitError")({
|
|
@@ -24880,17 +25092,17 @@ class QuitError extends (/* @__PURE__ */ Error4("QuitError")({
|
|
|
24880
25092
|
[QuitErrorTypeId] = QuitErrorTypeId;
|
|
24881
25093
|
}
|
|
24882
25094
|
var Terminal = /* @__PURE__ */ Service("effect/Terminal");
|
|
24883
|
-
var
|
|
25095
|
+
var make39 = (impl) => Terminal.of({
|
|
24884
25096
|
...impl,
|
|
24885
|
-
[
|
|
25097
|
+
[TypeId46]: TypeId46
|
|
24886
25098
|
});
|
|
24887
25099
|
|
|
24888
25100
|
// ../../node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
|
|
24889
25101
|
import * as readline from "readline";
|
|
24890
|
-
var
|
|
25102
|
+
var make40 = /* @__PURE__ */ fnUntraced2(function* (shouldQuit = defaultShouldQuit) {
|
|
24891
25103
|
const stdin = process.stdin;
|
|
24892
25104
|
const stdout = process.stdout;
|
|
24893
|
-
const lines = yield*
|
|
25105
|
+
const lines = yield* make19();
|
|
24894
25106
|
let inputEnded = stdin.readableEnded;
|
|
24895
25107
|
let readlineActive = false;
|
|
24896
25108
|
const onStdinEnd = () => {
|
|
@@ -24901,7 +25113,7 @@ var make38 = /* @__PURE__ */ fnUntraced2(function* (shouldQuit = defaultShouldQu
|
|
|
24901
25113
|
};
|
|
24902
25114
|
stdin.once("end", onStdinEnd);
|
|
24903
25115
|
yield* addFinalizer3(() => sync2(() => stdin.off("end", onStdinEnd)));
|
|
24904
|
-
const rlRef = yield*
|
|
25116
|
+
const rlRef = yield* make21({
|
|
24905
25117
|
acquire: acquireRelease2(sync2(() => {
|
|
24906
25118
|
const rl = readline.createInterface({
|
|
24907
25119
|
input: stdin,
|
|
@@ -24940,7 +25152,7 @@ var make38 = /* @__PURE__ */ fnUntraced2(function* (shouldQuit = defaultShouldQu
|
|
|
24940
25152
|
if (stdin.isTTY)
|
|
24941
25153
|
stdin.setRawMode(enabled);
|
|
24942
25154
|
});
|
|
24943
|
-
const rawModeRef = yield*
|
|
25155
|
+
const rawModeRef = yield* make21({
|
|
24944
25156
|
acquire: acquireRelease2(setRawMode(true), () => setRawMode(false)),
|
|
24945
25157
|
idleTimeToLive: "10 millis"
|
|
24946
25158
|
});
|
|
@@ -24961,7 +25173,7 @@ var make38 = /* @__PURE__ */ fnUntraced2(function* (shouldQuit = defaultShouldQu
|
|
|
24961
25173
|
return queue;
|
|
24962
25174
|
});
|
|
24963
25175
|
const readInput = gen2(function* () {
|
|
24964
|
-
const queue = yield*
|
|
25176
|
+
const queue = yield* make19();
|
|
24965
25177
|
const handleKeypress = (s, k) => {
|
|
24966
25178
|
const userInput = {
|
|
24967
25179
|
input: fromUndefinedOr(s),
|
|
@@ -25009,7 +25221,7 @@ var make38 = /* @__PURE__ */ fnUntraced2(function* (shouldQuit = defaultShouldQu
|
|
|
25009
25221
|
cause: err
|
|
25010
25222
|
}))));
|
|
25011
25223
|
}));
|
|
25012
|
-
return
|
|
25224
|
+
return make39({
|
|
25013
25225
|
columns,
|
|
25014
25226
|
rows,
|
|
25015
25227
|
size,
|
|
@@ -25018,7 +25230,7 @@ var make38 = /* @__PURE__ */ fnUntraced2(function* (shouldQuit = defaultShouldQu
|
|
|
25018
25230
|
display
|
|
25019
25231
|
});
|
|
25020
25232
|
});
|
|
25021
|
-
var layer9 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */
|
|
25233
|
+
var layer9 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make40(defaultShouldQuit));
|
|
25022
25234
|
function defaultShouldQuit(input) {
|
|
25023
25235
|
const key = input.key;
|
|
25024
25236
|
return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
|
|
@@ -25211,4 +25423,4 @@ var runKit = (config, identity, packages) => {
|
|
|
25211
25423
|
runMain2(program.pipe(flatMap3((code) => sync2(() => process.exit(code)))));
|
|
25212
25424
|
};
|
|
25213
25425
|
// .kitman-build-entry.ts
|
|
25214
|
-
runKit(kitman_config_default, { name: "@kitman-sh/go-to-market", version: "0.11.
|
|
25426
|
+
runKit(kitman_config_default, { name: "@kitman-sh/go-to-market", version: "0.11.6" }, []);
|