@eliya-oss/agent-diff 0.1.0-alpha.79 → 0.1.0-alpha.80
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/CHANGELOG.md +6 -0
- package/dist/main.js +104 -17
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @eliya-oss/agent-diff
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.80
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- A review opened on a named branch waits for that branch rather than for every worktree on the machine, and reads what the branch is made of at once. On a branch of 131 files that is 2.8 seconds down to 1.8.
|
|
8
|
+
|
|
3
9
|
## 0.1.0-alpha.79
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/main.js
CHANGED
|
@@ -465,6 +465,35 @@ function isUnknown(_) {
|
|
|
465
465
|
function isObjectKeyword(input) {
|
|
466
466
|
return typeof input === "object" && input !== null || isFunction(input);
|
|
467
467
|
}
|
|
468
|
+
/**
|
|
469
|
+
* Checks whether a value is iterable.
|
|
470
|
+
*
|
|
471
|
+
* **When to use**
|
|
472
|
+
*
|
|
473
|
+
* Use when you need a `Predicate` guard before iterating an unknown value.
|
|
474
|
+
*
|
|
475
|
+
* **Details**
|
|
476
|
+
*
|
|
477
|
+
* Accepts strings as iterable and uses `hasProperty` for `Symbol.iterator`.
|
|
478
|
+
*
|
|
479
|
+
* **Example** (Guarding iterables)
|
|
480
|
+
*
|
|
481
|
+
* ```ts import.meta.vitest
|
|
482
|
+
* import { Predicate } from "effect"
|
|
483
|
+
*
|
|
484
|
+
* const data: unknown = [1, 2, 3]
|
|
485
|
+
*
|
|
486
|
+
* Predicate.isIterable(data) // => true
|
|
487
|
+
* ```
|
|
488
|
+
*
|
|
489
|
+
* @see {@link isSet}
|
|
490
|
+
* @see {@link isMap}
|
|
491
|
+
* @category guards
|
|
492
|
+
* @since 2.0.0
|
|
493
|
+
*/
|
|
494
|
+
function isIterable(input) {
|
|
495
|
+
return hasProperty(input, Symbol.iterator) || isString(input);
|
|
496
|
+
}
|
|
468
497
|
var hasProperty, isTagged;
|
|
469
498
|
var init_Predicate = __esmMin((() => {
|
|
470
499
|
init_Function();
|
|
@@ -2565,7 +2594,7 @@ var CurrentStackFrame, TracerEnabled, TracerTimingEnabled, TracerSpanAnnotations
|
|
|
2565
2594
|
};
|
|
2566
2595
|
};
|
|
2567
2596
|
spanCleaner = /*#__PURE__*/ makeStackCleaner(3);
|
|
2568
|
-
})), Interrupt, causeInterrupt, findFail, findError$1, hasInterrupts, causeFilterInterruptors, causeCombine, causeMap, causePartition, causeSquash, causePrettyErrors, causePrettyError, causePrettyMessage, locationRegExp, cleanErrorStack, addStackAnnotations, interruptCauseStack, currentStackTrace, causePretty, renderPrettyError, renderErrorCause, FiberTypeId, fiberVariance, fiberIdStore, getCurrentFiber, FiberImpl, deferredInterruptCont, fiberMiddleware, fiberStackAnnotations, fiberAwait, fiberAwaitAll, fiberInterrupt, fiberInterruptAs, fiberInterruptAll, succeed$5, failCause$3, fail$2, sync$2, suspend$1, yieldNowWith, yieldNow, succeedNone$1, failCauseSync$1, die, failSync, void_$2, try_$1, promise$1, tryPromise$1, withFiberId, callbackOptions, asyncFinalizer, callback$2, never, gen$1, fnUntraced$1, defineFunctionLength, fnStackCleaner, fn$1, makeFn, fnUntracedEager$1, fromIteratorEagerUnsafe, fromIteratorUnsafe, as$1, asSome, andThen$1, tap$1, asVoid$1, raceAllFirst, raceFirst$1, flatMap$1, OnSuccessProto, effectIsExit, flatMapEager$1, map$2, mapEager$1, exitInterrupt$1, exitIsSuccess, exitFilterCause, exitVoid, exitMap, exitAsVoidAll, updateContext, updateService, contextWith$1, provideContext, provideService, provideServiceImpl, when$1, forever$1, catchCause$1, OnFailureProto, catchCauseFilter, catch_, catchIf, catchTag$1, mapError$1, orElseSucceed$1, ignore$1, option$2, matchCauseEffect, OnSuccessAndFailureProto, matchEffect, match, exit$1, exitPrimitive, ScopeTypeId, ScopeCloseableTypeId, scopeTag, scopeClose, scopeCloseUnsafe, scopeCloseFinalizers, scopeForkUnsafe, scopeAddFinalizerExit, scopeAddFinalizer, scopeAddFinalizerUnsafe, scopeRemoveFinalizerUnsafe, scopeMakeUnsafe, constScopeEmpty, scope, provideScope, scopedWith, acquireRelease$1, onExitPrimitive, onExit$1, ensuring$1, onExitFilter, onError$1, onErrorFilter, onInterrupt$1, interrupt$2, uninterruptible$1, setInterruptible, setInterruptibleTrue, setInterruptibleFalse, setFiberInterruptible, interruptible, uninterruptibleMask, whileLoop$1, forEach$1, forEachSequential, iterateEagerImpl, iterateEager, forEachConcurrent, forkUnsafe$1, forkDetach$1, forkIn$1, runForkWith, runFork$1, runPromiseExitWith, runPromiseWith, runPromise$1, runSyncExitWith, runSyncExit$1, runSyncWith, runSync$1, succeedTrue, succeedFalse, Latch, makeLatchUnsafe, bigint0, NoopSpanProto, noopSpan, filterDisablePropagation, makeSpanUnsafe, provideSpanStackFrame, endSpan, useSpan, provideParentSpan, withParentSpan, withSpan$1, ClockRef, MAX_TIMER_MILLIS, ClockImpl, nanosPerMilli, monotonicNowNanos, wallTimeNanos, clockWith, sleep$1, AsyncFiberErrorTypeId, AsyncFiberError, UnknownErrorTypeId, UnknownError, ConsoleRef, logLevelToOrder, LogLevelOrder, isLogLevelGreaterThan, CurrentLoggers, LogToStderr, LoggerTypeId, LoggerProto, loggerMake, formatLabel, formatLogSpan, logWithLevel, colors, defaultDateFormat, defaultLogger, tracerLogger, init_effect = __esmMin((() => {
|
|
2597
|
+
})), Interrupt, causeInterrupt, findFail, findError$1, hasInterrupts, causeFilterInterruptors, causeCombine, causeMap, causePartition, causeSquash, causePrettyErrors, causePrettyError, causePrettyMessage, locationRegExp, cleanErrorStack, addStackAnnotations, interruptCauseStack, currentStackTrace, causePretty, renderPrettyError, renderErrorCause, FiberTypeId, fiberVariance, fiberIdStore, getCurrentFiber, FiberImpl, deferredInterruptCont, fiberMiddleware, fiberStackAnnotations, fiberAwait, fiberAwaitAll, fiberInterrupt, fiberInterruptAs, fiberInterruptAll, succeed$5, failCause$3, fail$2, sync$2, suspend$1, yieldNowWith, yieldNow, succeedNone$1, failCauseSync$1, die, failSync, void_$2, try_$1, promise$1, tryPromise$1, withFiberId, callbackOptions, asyncFinalizer, callback$2, never, gen$1, fnUntraced$1, defineFunctionLength, fnStackCleaner, fn$1, makeFn, fnUntracedEager$1, fromIteratorEagerUnsafe, fromIteratorUnsafe, as$1, asSome, andThen$1, tap$1, asVoid$1, raceAllFirst, raceFirst$1, flatMap$1, OnSuccessProto, effectIsExit, flatMapEager$1, map$2, mapEager$1, exitInterrupt$1, exitIsSuccess, exitFilterCause, exitVoid, exitMap, exitAsVoidAll, updateContext, updateService, contextWith$1, provideContext, provideService, provideServiceImpl, when$1, forever$1, catchCause$1, OnFailureProto, catchCauseFilter, catch_, catchIf, catchTag$1, mapError$1, orElseSucceed$1, ignore$1, option$2, result, matchCauseEffect, OnSuccessAndFailureProto, matchEffect, match, matchEager, exit$1, exitPrimitive, ScopeTypeId, ScopeCloseableTypeId, scopeTag, scopeClose, scopeCloseUnsafe, scopeCloseFinalizers, scopeForkUnsafe, scopeAddFinalizerExit, scopeAddFinalizer, scopeAddFinalizerUnsafe, scopeRemoveFinalizerUnsafe, scopeMakeUnsafe, constScopeEmpty, scope, provideScope, scopedWith, acquireRelease$1, onExitPrimitive, onExit$1, ensuring$1, onExitFilter, onError$1, onErrorFilter, onInterrupt$1, interrupt$2, uninterruptible$1, setInterruptible, setInterruptibleTrue, setInterruptibleFalse, setFiberInterruptible, interruptible, uninterruptibleMask, all$1, whileLoop$1, forEach$1, forEachSequential, iterateEagerImpl, iterateEager, forEachConcurrent, forkUnsafe$1, forkDetach$1, forkIn$1, runForkWith, runFork$1, runPromiseExitWith, runPromiseWith, runPromise$1, runSyncExitWith, runSyncExit$1, runSyncWith, runSync$1, succeedTrue, succeedFalse, Latch, makeLatchUnsafe, bigint0, NoopSpanProto, noopSpan, filterDisablePropagation, makeSpanUnsafe, provideSpanStackFrame, endSpan, useSpan, provideParentSpan, withParentSpan, withSpan$1, ClockRef, MAX_TIMER_MILLIS, ClockImpl, nanosPerMilli, monotonicNowNanos, wallTimeNanos, clockWith, sleep$1, AsyncFiberErrorTypeId, AsyncFiberError, UnknownErrorTypeId, UnknownError, ConsoleRef, logLevelToOrder, LogLevelOrder, isLogLevelGreaterThan, CurrentLoggers, LogToStderr, LoggerTypeId, LoggerProto, loggerMake, formatLabel, formatLogSpan, logWithLevel, colors, defaultDateFormat, defaultLogger, tracerLogger, init_effect = __esmMin((() => {
|
|
2569
2598
|
init_Array();
|
|
2570
2599
|
init_Context();
|
|
2571
2600
|
init_Duration();
|
|
@@ -3377,6 +3406,10 @@ var CurrentStackFrame, TracerEnabled, TracerTimingEnabled, TracerSpanAnnotations
|
|
|
3377
3406
|
onFailure: none,
|
|
3378
3407
|
onSuccess: some
|
|
3379
3408
|
});
|
|
3409
|
+
result = (self) => matchEager(self, {
|
|
3410
|
+
onFailure: fail$3,
|
|
3411
|
+
onSuccess: succeed$6
|
|
3412
|
+
});
|
|
3380
3413
|
matchCauseEffect = /*#__PURE__*/ dual(2, (self, options) => {
|
|
3381
3414
|
const primitive = Object.create(OnSuccessAndFailureProto);
|
|
3382
3415
|
primitive[args] = self;
|
|
@@ -3402,6 +3435,15 @@ var CurrentStackFrame, TracerEnabled, TracerTimingEnabled, TracerSpanAnnotations
|
|
|
3402
3435
|
onFailure: (error) => sync$2(() => options.onFailure(error)),
|
|
3403
3436
|
onSuccess: (value) => sync$2(() => options.onSuccess(value))
|
|
3404
3437
|
}));
|
|
3438
|
+
matchEager = /*#__PURE__*/ dual(2, (self, options) => {
|
|
3439
|
+
if (effectIsExit(self)) {
|
|
3440
|
+
if (self._tag === "Success") return exitSucceed(options.onSuccess(self.value));
|
|
3441
|
+
const error = findError$1(self.cause);
|
|
3442
|
+
if (isFailure(error)) return self;
|
|
3443
|
+
return exitSucceed(options.onFailure(error.success));
|
|
3444
|
+
}
|
|
3445
|
+
return match(self, options);
|
|
3446
|
+
});
|
|
3405
3447
|
exit$1 = (self) => effectIsExit(self) ? exitSucceed(self) : exitPrimitive(self);
|
|
3406
3448
|
exitPrimitive = /*#__PURE__*/ makePrimitive({
|
|
3407
3449
|
op: "Exit",
|
|
@@ -3560,6 +3602,19 @@ var CurrentStackFrame, TracerEnabled, TracerTimingEnabled, TracerSpanAnnotations
|
|
|
3560
3602
|
fiber._stack.push(setInterruptibleTrue);
|
|
3561
3603
|
return f(interruptible);
|
|
3562
3604
|
});
|
|
3605
|
+
all$1 = (arg, options) => {
|
|
3606
|
+
if (isIterable(arg)) return options?.mode === "result" ? forEach$1(arg, result, options) : forEach$1(arg, identity, options);
|
|
3607
|
+
else if (options?.discard) return options.mode === "result" ? forEach$1(Object.values(arg), result, options) : forEach$1(Object.values(arg), identity, options);
|
|
3608
|
+
return suspend$1(() => {
|
|
3609
|
+
const out = {};
|
|
3610
|
+
return as$1(forEach$1(Object.entries(arg), ([key, effect]) => map$2(options?.mode === "result" ? result(effect) : effect, (value) => {
|
|
3611
|
+
assignProperty(out, key, value);
|
|
3612
|
+
}), {
|
|
3613
|
+
discard: true,
|
|
3614
|
+
concurrency: options?.concurrency
|
|
3615
|
+
}), out);
|
|
3616
|
+
});
|
|
3617
|
+
};
|
|
3563
3618
|
whileLoop$1 = /*#__PURE__*/ makePrimitive({
|
|
3564
3619
|
op: "While",
|
|
3565
3620
|
[contA](value, fiber) {
|
|
@@ -4415,12 +4470,13 @@ var init_Pull = __esmMin((() => {
|
|
|
4415
4470
|
init_effect();
|
|
4416
4471
|
provideLayer = (self, layer, options) => scopedWith((scope) => flatMap$1(options?.local ? buildWithMemoMap(layer, makeMemoMapUnsafe(), scope) : buildWithScope(layer, scope), (context) => provideContext(self, context)));
|
|
4417
4472
|
provide$1 = /*#__PURE__*/ dual((args) => isEffect(args[0]), (self, source, options) => isContext(source) ? provideContext(self, source) : provideLayer(self, Array.isArray(source) ? mergeAll(...source) : source, options));
|
|
4418
|
-
})), forEach, whileLoop, promise, tryPromise, succeed$1, suspend, sync, void_, callback$1, gen, fail, failCause, failCauseSync, try_, withFiber, flatMap, andThen, tap, option$1, exit, map, as, asVoid, catchTag, catchCause, mapError, ignore, orElseSucceed, sleep, raceFirst, when, contextWith, provide, acquireRelease, ensuring, onError, onExit, interrupt$1, onInterrupt, uninterruptible, forever, withSpan, forkIn, forkDetach, runFork, runPromise, runSync, runSyncExit, fnUntraced, fn, mapEager, flatMapEager, fnUntracedEager;
|
|
4473
|
+
})), all, forEach, whileLoop, promise, tryPromise, succeed$1, suspend, sync, void_, callback$1, gen, fail, failCause, failCauseSync, try_, withFiber, flatMap, andThen, tap, option$1, exit, map, as, asVoid, catchTag, catchCause, mapError, ignore, orElseSucceed, sleep, raceFirst, when, contextWith, provide, acquireRelease, ensuring, onError, onExit, interrupt$1, onInterrupt, uninterruptible, forever, withSpan, forkIn, forkDetach, runFork, runPromise, runSync, runSyncExit, fnUntraced, fn, mapEager, flatMapEager, fnUntracedEager;
|
|
4419
4474
|
var init_Effect = __esmMin((() => {
|
|
4420
4475
|
init_Context();
|
|
4421
4476
|
init_core();
|
|
4422
4477
|
init_effect();
|
|
4423
4478
|
init_layer();
|
|
4479
|
+
all = all$1;
|
|
4424
4480
|
forEach = forEach$1;
|
|
4425
4481
|
whileLoop = whileLoop$1;
|
|
4426
4482
|
promise = promise$1;
|
|
@@ -9051,7 +9107,7 @@ var init_error$1 = __esmMin((() => {
|
|
|
9051
9107
|
}));
|
|
9052
9108
|
//#endregion
|
|
9053
9109
|
//#region src/cli/commands.ts
|
|
9054
|
-
var CONTEXT, WHOLE_FILE$1, POLL, AUTO, askedFor, basedOn, worktreeNamed, findBranch, baseFor, patchesOf, findPatch, rowsCovering, waitingOn, AT_ONCE, summaryOf, listBranches, blobOf, toggleVouch, reviewProgress, bodyOf, sentOf, listSent, submitComment, listPatches, flatten, takeComments, repoOf$1, worktreeOf$1, branchAt, awaitComments, saveReport, fileSource, fileBefore, saveWrap, saveSticky, setBase, clearBase, markRead;
|
|
9110
|
+
var CONTEXT, WHOLE_FILE$1, POLL, AUTO, askedFor, basedOn, worktreeNamed, findBranch, baseFor, patchesOf, findPatch, rowsCovering, waitingOn, AT_ONCE, summaryOf, summaryFor, listBranches, blobOf, toggleVouch, reviewProgress, bodyOf, sentOf, listSent, submitComment, listPatches, flatten, takeComments, repoOf$1, worktreeOf$1, branchAt, awaitComments, saveReport, fileSource, fileBefore, saveWrap, saveSticky, setBase, clearBase, markRead;
|
|
9055
9111
|
var init_commands = __esmMin((() => {
|
|
9056
9112
|
init_dist();
|
|
9057
9113
|
init_patch();
|
|
@@ -9181,6 +9237,10 @@ var init_commands = __esmMin((() => {
|
|
|
9181
9237
|
basis: based.basis
|
|
9182
9238
|
};
|
|
9183
9239
|
});
|
|
9240
|
+
summaryFor = fn("Cli.summaryFor")(function* (repo, branch, base) {
|
|
9241
|
+
const worktree = yield* findBranch(repo, branch, base);
|
|
9242
|
+
return yield* summaryOf(repo, worktree, base);
|
|
9243
|
+
});
|
|
9184
9244
|
listBranches = fn("Cli.listBranches")(function* (repo, base) {
|
|
9185
9245
|
const worktrees = yield* (yield* Git).worktrees(repo);
|
|
9186
9246
|
return (yield* forEach(worktrees, (found) => summaryOf(repo, found, base), { concurrency: AT_ONCE })).filter((summary) => summary.files > 0);
|
|
@@ -9663,7 +9723,7 @@ var init_pane = __esmMin((() => {
|
|
|
9663
9723
|
init_commands();
|
|
9664
9724
|
init_init();
|
|
9665
9725
|
init_pane();
|
|
9666
|
-
var version$1 = "0.1.0-alpha.
|
|
9726
|
+
var version$1 = "0.1.0-alpha.80";
|
|
9667
9727
|
//#endregion
|
|
9668
9728
|
//#region src/cli/upgrade.ts
|
|
9669
9729
|
var PACKAGE, TAG, RELEASES, REGISTRY, ASK_MS, RUN_MS, CELLAR, COMPILED, INSTALLED, BUN_GLOBAL, routeOf, ROUTES, asRoute, checkoutOf, assetOf, commandFor, NOTES, RUNNABLE, NUMBERS, numbersIn, compare$1, partsOf, newer, tagIn, fetched, askLatest, here, findUpgrade, willUpgrade, runUpgrade, statusOf$1, sayFound, sayDone, attempted, REFRESH_MS, refreshSkills, updatedIn, sayRefreshed, upgradeReport;
|
|
@@ -15565,7 +15625,7 @@ var init_upgrade = __esmMin((() => {
|
|
|
15565
15625
|
return due ? `adiff ${latest} is out · adiff upgrade` : "";
|
|
15566
15626
|
}).pipe(withSpan("Tui.upgradeHint"));
|
|
15567
15627
|
upgradeHint = worded.pipe(orElseSucceed(() => ""));
|
|
15568
|
-
})), KEY_HISTORY, DRAIN_PASSES, TRAIL_HISTORY, clockOf, momentOf, noticeOf, COPIERS, wayland, handOver, throughMultiplexer, copyToClipboard, lineUnder, asKey, openedPull, LISTENS, WRITES, writesInto, listens, laidOut, ARROWS, keyName, App, turnedOver, settledPath, missing, openingOn, launch, told, untilDestroyed, runOn, runTui;
|
|
15628
|
+
})), KEY_HISTORY, DRAIN_PASSES, TRAIL_HISTORY, clockOf, momentOf, noticeOf, COPIERS, wayland, handOver, throughMultiplexer, copyToClipboard, lineUnder, asKey, openedPull, LISTENS, WRITES, writesInto, listens, laidOut, ARROWS, keyName, App, turnedOver, settledPath, settingsHeld, firstBranches, missing, openingOn, launch, told, untilDestroyed, runOn, runTui;
|
|
15569
15629
|
var init_app = __esmMin((() => {
|
|
15570
15630
|
init_dist();
|
|
15571
15631
|
init_report();
|
|
@@ -15724,6 +15784,7 @@ var init_app = __esmMin((() => {
|
|
|
15724
15784
|
const resume = options.resume;
|
|
15725
15785
|
this.dispatchTask(this.loadPulls());
|
|
15726
15786
|
if (resume !== void 0) this.dispatchTask(this.resume(resume));
|
|
15787
|
+
if (options.partial === true) this.dispatchTask(this.fillBranches());
|
|
15727
15788
|
}
|
|
15728
15789
|
listen(fiber) {
|
|
15729
15790
|
this.listening = fiber;
|
|
@@ -16097,10 +16158,12 @@ var init_app = __esmMin((() => {
|
|
|
16097
16158
|
}
|
|
16098
16159
|
readBranch(name) {
|
|
16099
16160
|
return gen({ self: this }, function* () {
|
|
16100
|
-
const patches = yield*
|
|
16101
|
-
|
|
16102
|
-
|
|
16103
|
-
|
|
16161
|
+
const [patches, progress, layers, sent] = yield* all([
|
|
16162
|
+
listPatches(this.repo, name),
|
|
16163
|
+
reviewProgress(this.repo, name),
|
|
16164
|
+
listLayers(this.repo, name),
|
|
16165
|
+
this.loadSent(name)
|
|
16166
|
+
], { concurrency: "unbounded" });
|
|
16104
16167
|
const opened = withVouched(withPatches(this.state, patches), progress.vouched);
|
|
16105
16168
|
return withLayers(withSent(opened, sent), layers);
|
|
16106
16169
|
});
|
|
@@ -16299,6 +16362,19 @@ var init_app = __esmMin((() => {
|
|
|
16299
16362
|
this.commit(withNotice(held, "removed, restore it with comment restore"));
|
|
16300
16363
|
});
|
|
16301
16364
|
}
|
|
16365
|
+
fillBranches() {
|
|
16366
|
+
return gen({ self: this }, function* () {
|
|
16367
|
+
const here = selectedBranch(this.state)?.branch;
|
|
16368
|
+
const branches = yield* listBranches(this.repo);
|
|
16369
|
+
const read = withBranches(this.state, branches);
|
|
16370
|
+
const at = branches.findIndex((candidate) => candidate.branch === here);
|
|
16371
|
+
this.commit(at === -1 ? read : {
|
|
16372
|
+
...read,
|
|
16373
|
+
branchIndex: at
|
|
16374
|
+
});
|
|
16375
|
+
this.dispatchTask(this.loadPulls());
|
|
16376
|
+
});
|
|
16377
|
+
}
|
|
16302
16378
|
reloadList() {
|
|
16303
16379
|
return gen({ self: this }, function* () {
|
|
16304
16380
|
const here = selectedBranch(this.state)?.branch;
|
|
@@ -16550,6 +16626,18 @@ var init_app = __esmMin((() => {
|
|
|
16550
16626
|
anchorRow: state.cursor
|
|
16551
16627
|
});
|
|
16552
16628
|
settledPath = (path) => promise(() => realpath(path).catch(() => resolve(path)));
|
|
16629
|
+
settingsHeld = gen(function* () {
|
|
16630
|
+
const settings = yield* (yield* Store).settings;
|
|
16631
|
+
return {
|
|
16632
|
+
wrap: settings.wrap === true,
|
|
16633
|
+
sticky: settings.sticky !== false
|
|
16634
|
+
};
|
|
16635
|
+
});
|
|
16636
|
+
firstBranches = fn("Tui.firstBranches")(function* (repo, branch) {
|
|
16637
|
+
if (branch === void 0) return yield* listBranches(repo);
|
|
16638
|
+
const only = yield* summaryFor(repo, branch).pipe(orElseSucceed(() => void 0));
|
|
16639
|
+
return only === void 0 ? yield* listBranches(repo) : [only];
|
|
16640
|
+
});
|
|
16553
16641
|
missing = (branch, found) => branch !== void 0 && isNone(found) ? `no worktree here is on ${branch}` : "";
|
|
16554
16642
|
openingOn = (branches, branch) => {
|
|
16555
16643
|
if (branch === void 0) return none();
|
|
@@ -16564,24 +16652,22 @@ var init_app = __esmMin((() => {
|
|
|
16564
16652
|
launch = fn("Tui.launch")(function* (asked, renderer, options = {}) {
|
|
16565
16653
|
const { noticeMs, sessionPath } = options;
|
|
16566
16654
|
const repo = yield* settledPath(asked);
|
|
16567
|
-
const branches = yield*
|
|
16655
|
+
const branches = yield* firstBranches(repo, options.branch);
|
|
16568
16656
|
const asOpened = openingOn(branches, options.branch);
|
|
16569
16657
|
const missed = missing(options.branch, asOpened);
|
|
16570
16658
|
const resume = isSome(asOpened) ? asOpened : sessionPath === void 0 ? none() : yield* readSession(sessionPath);
|
|
16571
16659
|
const store = yield* Store;
|
|
16572
|
-
const
|
|
16573
|
-
const wrap = settings.wrap === true;
|
|
16574
|
-
const sticky = settings.sticky !== false;
|
|
16660
|
+
const kept = yield* settingsHeld;
|
|
16575
16661
|
const display = yield* Display.pipe(provide(displayOn(renderer, repo)));
|
|
16576
16662
|
const waiting = yield* upgradeHint;
|
|
16577
16663
|
const state = yield* make({
|
|
16578
16664
|
...initialState(branches),
|
|
16579
|
-
|
|
16580
|
-
sticky,
|
|
16665
|
+
...kept,
|
|
16581
16666
|
waiting,
|
|
16582
16667
|
notice: missed
|
|
16583
16668
|
});
|
|
16584
16669
|
const painting = yield* forkDetach(runForEach(changes(state), display.paint));
|
|
16670
|
+
const partial = options.branch !== void 0 && branches.length === 1;
|
|
16585
16671
|
const intents = yield* unbounded();
|
|
16586
16672
|
const app = new App({
|
|
16587
16673
|
renderer,
|
|
@@ -16592,8 +16678,9 @@ var init_app = __esmMin((() => {
|
|
|
16592
16678
|
noticeMs,
|
|
16593
16679
|
sessionPath,
|
|
16594
16680
|
resume: getOrUndefined$1(resume),
|
|
16595
|
-
wrap,
|
|
16596
|
-
sticky,
|
|
16681
|
+
wrap: kept.wrap,
|
|
16682
|
+
sticky: kept.sticky,
|
|
16683
|
+
partial,
|
|
16597
16684
|
intents
|
|
16598
16685
|
});
|
|
16599
16686
|
app.watch(yield* forkDetach(app.consume()));
|
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"bin": {
|
|
24
24
|
"adiff": "./bin/adiff.js"
|
|
25
25
|
},
|
|
26
|
-
"version": "0.1.0-alpha.
|
|
26
|
+
"version": "0.1.0-alpha.80",
|
|
27
27
|
"description": "Review the work an agent left you without losing the thread: comments live on the lines, the agent answers them, and each point stays open until you settle it.",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"repository": {
|