@eliya-oss/agent-diff 0.1.0-alpha.145 → 0.1.0-alpha.147

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 CHANGED
@@ -1,5 +1,84 @@
1
1
  # @eliya-oss/agent-diff
2
2
 
3
+ ## 0.1.0-alpha.147
4
+
5
+ ### Patch Changes
6
+
7
+ - breaking(CLI): `adiff skill refresh` is gone, and `npx skills update adiff` updates the skill instead.
8
+
9
+ <details><summary>What changed</summary>
10
+
11
+ `skill refresh` looked in `.claude/skills/adiff/SKILL.md` and nowhere else. On Codex, Cursor,
12
+ OpenCode or anything else it found nothing and reported no changes rather than saying it had not
13
+ looked. The skills CLI also installs a symlink by default, so on an ordinary install there was
14
+ nothing there to rewrite that the next `skills update` would not undo.
15
+
16
+ Keeping a second updater working meant matching a registry of seventy-seven agent directories that
17
+ the skills CLI already maintains. `npx skills update adiff` works for every agent and every install.
18
+ An agent holding a skill a version behind gets a refused command with a `suggestion` naming the fix,
19
+ which is what `describe` is for.
20
+
21
+ </details>
22
+
23
+ fix(upgrade): an upgrade names the command that brings the skill up with it.
24
+
25
+ <details><summary>What was wrong</summary>
26
+
27
+ Upgrading adiff left the skill describing the older build, and the line that used to say otherwise
28
+ only ever appeared for a Claude Code install that had been copied rather than linked. The version
29
+ installed is still the second-to-last line; under it sits the one thing left to do.
30
+
31
+ </details>
32
+
33
+ fix(README): the install command no longer picks an agent for you.
34
+
35
+ <details><summary>What was wrong</summary>
36
+
37
+ The documented command was `npx skills add … -g -y -a claude-code`, which installed the skill for
38
+ Claude Code whatever agent the reader actually used, and `-y` suppressed the question that would
39
+ have asked them. The question is the agent picker. `--agent codex`, repeated, or `--agent '*'`
40
+ answers it up front.
41
+
42
+ </details>
43
+
44
+ ## 0.1.0-alpha.146
45
+
46
+ ### Patch Changes
47
+
48
+ - fix(CLI): `adiff skill refresh` works on the Homebrew install, where it used to fail every time.
49
+
50
+ <details><summary>What was wrong</summary>
51
+
52
+ `skill refresh` found the skill it ships by walking up from its own module until it saw
53
+ `skills/adiff/SKILL.md` on disk. That file is in the npm package and in a checkout, and it is not in
54
+ the compiled binary Homebrew installs, so the command failed with "not found beside this build" and
55
+ a suggestion that blamed the directory it was writing to. The skill now travels inside the build.
56
+
57
+ This was the mechanism that answers a skill drifting from the adiff beside it, and it did not work on
58
+ the route the README leads with.
59
+
60
+ </details>
61
+
62
+ fix(upgrade): `adiff upgrade` says when it could not rewrite the installed skill.
63
+
64
+ <details><summary>What was wrong</summary>
65
+
66
+ `upgrade` ran `skill refresh` and mapped any failure to "nothing was refreshed", so an upgrade whose
67
+ skill refresh failed read exactly like one with no skill installed. That is why the Homebrew failure
68
+ above went unnoticed.
69
+
70
+ </details>
71
+
72
+ fix(CLI): `skill refresh` leaves a skill the skills CLI owns alone, and reports it as linked.
73
+
74
+ <details><summary>What was wrong</summary>
75
+
76
+ `npx skills add` installs a symlink by default. `skill refresh` wrote straight through it, editing a
77
+ clone inside that tool's cache — which the next `npx skills update` silently reverted. Two tools were
78
+ overwriting one file in turn. A link is now reported and left as it is.
79
+
80
+ </details>
81
+
3
82
  ## 0.1.0-alpha.145
4
83
 
5
84
  ### Patch Changes
package/README.md CHANGED
@@ -21,11 +21,17 @@ pick up your comments:
21
21
 
22
22
  ```bash
23
23
  brew install Newbie012/tap/adiff
24
- npx skills add Newbie012/agent-diff --skill adiff
24
+ npx skills add Newbie012/agent-diff --skill adiff -g
25
25
  ```
26
26
 
27
- adiff writes nothing into your repository — no `AGENTS.md`, no `CLAUDE.md`. Your agent finds the
28
- skill on its own.
27
+ It asks which agent you use — Claude Code, Codex, Cursor, OpenCode and seventy-odd others — or you
28
+ can name it up front with `--agent codex`, more than once for more than one, or `--agent '*'` for all
29
+ of them. `-g` is the flag worth keeping: it puts the skill in your home directory rather than in the
30
+ repository you are standing in, and a skill written into the repository is invisible to an agent
31
+ working in a worktree of it unless you commit it. Drop `-g` if your team has adopted adiff and wants
32
+ it committed.
33
+
34
+ Your agent finds the skill on its own from there.
29
35
 
30
36
  Then ask it to walk you through it:
31
37
 
package/dist/main.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { randomUUID } from "node:crypto";
2
2
  import { appendFile, mkdir, readFile, realpath, rename, rm, stat, writeFile } from "node:fs/promises";
3
- import { homedir, hostname, platform } from "node:os";
4
3
  import { text } from "node:stream/consumers";
5
4
  import { execFile, spawn } from "node:child_process";
6
- import { dirname, join, resolve } from "node:path";
5
+ import { join, resolve } from "node:path";
6
+ import { homedir, hostname, platform } from "node:os";
7
7
  import { promisify } from "node:util";
8
- import { existsSync, mkdirSync, readFileSync, realpathSync, watch } from "node:fs";
9
8
  import { fileURLToPath } from "node:url";
10
9
  import { ASCIIFontRenderable, BoxRenderable, CodeRenderable, LineNumberRenderable, RGBA, StyledText, SyntaxStyle, TextRenderable, TextareaRenderable, bg, createCliRenderer, defaultTextareaKeyBindings, fg, getTreeSitterClient, pathToFiletype, stripAnsiSequences, t } from "@opentui/core";
10
+ import { mkdirSync, watch } from "node:fs";
11
11
  //#region \0rolldown/runtime.js
12
12
  var __defProp = Object.defineProperty;
13
13
  var __esmMin = (fn, res, err) => () => {
@@ -2647,7 +2647,7 @@ var CurrentStackFrame, TracerEnabled, TracerTimingEnabled, TracerSpanAnnotations
2647
2647
  };
2648
2648
  };
2649
2649
  spanCleaner = /*#__PURE__*/ makeStackCleaner(3);
2650
- })), 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, fiberJoin, 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, exitHasInterrupts, exitVoid, exitMap, exitAsVoidAll, updateContext, updateService, contextWith$1, provideContext, provideService, provideServiceImpl, when$1, forever$2, catchCause$1, OnFailureProto, catchCauseFilter, catch_, catchIf, catchTag$1, mapError$1, orElseSucceed$1, ignore$1, option$2, result, matchCauseEffect, OnSuccessAndFailureProto, matchEffect$1, 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, acquireUseRelease$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((() => {
2650
+ })), 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, fiberJoin, 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, exitHasInterrupts, exitVoid, exitMap, exitAsVoidAll, updateContext, updateService, contextWith$1, provideContext, provideService, provideServiceImpl, when$1, forever$2, catchCause$1, OnFailureProto, catchCauseFilter, catch_, catchIf, catchTag$1, mapError$1, orElseSucceed$1, ignore$1, result, matchCauseEffect, OnSuccessAndFailureProto, matchEffect$1, 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, acquireUseRelease$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((() => {
2651
2651
  init_Array();
2652
2652
  init_Context();
2653
2653
  init_Duration();
@@ -3464,10 +3464,6 @@ var CurrentStackFrame, TracerEnabled, TracerTimingEnabled, TracerSpanAnnotations
3464
3464
  onSuccess: (_) => void_$2
3465
3465
  });
3466
3466
  });
3467
- option$2 = (self) => match(self, {
3468
- onFailure: none,
3469
- onSuccess: some
3470
- });
3471
3467
  result = (self) => matchEager(self, {
3472
3468
  onFailure: fail$3,
3473
3469
  onSuccess: succeed$6
@@ -4690,7 +4686,7 @@ var retryOrElse, retry$1, passthroughForever, buildFromOptions, init_schedule =
4690
4686
  if (options.times !== void 0) schedule = while_(schedule, ({ attempt }) => succeed$5(attempt <= options.times));
4691
4687
  return schedule;
4692
4688
  };
4693
- })), all, forEach, whileLoop, promise, tryPromise, succeed$1, succeedNone, suspend, sync, void_, callback$1, gen, fail, failCause, failCauseSync, try_, withFiber, flatMap, andThen, tap, option$1, exit, map, as, asVoid, catchTag, catchCause, mapError, retry, ignore, orElseSucceed, sleep, raceFirst, when, contextWith, provide, acquireRelease, acquireUseRelease, ensuring, onError, onExit, interrupt$1, onInterrupt, uninterruptible, forever, withSpan, forkIn, forkDetach, runFork, runPromise, runSync, runSyncExit, fnUntraced, fn, mapEager, flatMapEager, fnUntracedEager;
4689
+ })), all, forEach, whileLoop, promise, tryPromise, succeed$1, succeedNone, suspend, sync, void_, callback$1, gen, fail, failCause, failCauseSync, try_, withFiber, flatMap, andThen, tap, exit, map, as, asVoid, catchTag, catchCause, mapError, retry, ignore, orElseSucceed, sleep, raceFirst, when, contextWith, provide, acquireRelease, acquireUseRelease, ensuring, onError, onExit, interrupt$1, onInterrupt, uninterruptible, forever, withSpan, forkIn, forkDetach, runFork, runPromise, runSync, runSyncExit, fnUntraced, fn, mapEager, flatMapEager, fnUntracedEager;
4694
4690
  var init_Effect = __esmMin((() => {
4695
4691
  init_Context();
4696
4692
  init_core();
@@ -4717,7 +4713,6 @@ var init_Effect = __esmMin((() => {
4717
4713
  flatMap = flatMap$1;
4718
4714
  andThen = andThen$1;
4719
4715
  tap = tap$1;
4720
- option$1 = option$2;
4721
4716
  exit = exit$1;
4722
4717
  map = map$2;
4723
4718
  as = as$1;
@@ -10265,10 +10260,7 @@ var init_model$2 = __esmMin((() => {
10265
10260
  //#region src/domain/preferences/index.ts
10266
10261
  var init_preferences = __esmMin((() => {
10267
10262
  init_model$2();
10268
- }));
10269
- //#endregion
10270
- //#region src/cli/error.ts
10271
- var UnknownBranch, UnknownBase, UnknownFile, UnknownComment, UnknownPreference, UnknownPreferenceValue, UnselectableRange, UnknownCommand, MissingOption, UnknownWorktree, MalformedLayers, UnknownField, UnknownOption, BadOption, UnknownDraft, NothingDrafted, PartlySent, PullMoved, NoLayers, InitUnwritable;
10263
+ })), UnknownBranch, UnknownBase, UnknownFile, UnknownComment, UnknownPreference, UnknownPreferenceValue, UnselectableRange, UnknownCommand, MissingOption, UnknownWorktree, MalformedLayers, UnknownField, UnknownOption, BadOption, UnknownDraft, NothingDrafted, PartlySent, PullMoved, NoLayers;
10272
10264
  var init_error = __esmMin((() => {
10273
10265
  init_dist();
10274
10266
  UnknownBranch = class extends TaggedError("UnknownBranch") {};
@@ -10290,7 +10282,7 @@ var init_error = __esmMin((() => {
10290
10282
  PartlySent = class extends TaggedError("PartlySent") {};
10291
10283
  PullMoved = class extends TaggedError("PullMoved") {};
10292
10284
  NoLayers = class extends TaggedError("NoLayers") {};
10293
- InitUnwritable = class extends TaggedError("InitUnwritable") {};
10285
+ TaggedError("InitUnwritable");
10294
10286
  }));
10295
10287
  //#endregion
10296
10288
  //#region src/cli/commands.ts
@@ -10936,72 +10928,6 @@ var init_drafts = __esmMin((() => {
10936
10928
  });
10937
10929
  }));
10938
10930
  //#endregion
10939
- //#region src/cli/skill.ts
10940
- var REACH, readAt, writeAt, skillSource, shippedSkill, SKILL_AT, refreshAt, settledRoot, refreshSkill;
10941
- var init_skill = __esmMin((() => {
10942
- init_dist();
10943
- init_error();
10944
- REACH = 5;
10945
- readAt = fn("Cli.readAt")(function* (path) {
10946
- return yield* tryPromise({
10947
- try: () => readFile(path, "utf8"),
10948
- catch: () => new InitUnwritable({
10949
- path,
10950
- reason: "unreadable"
10951
- })
10952
- }).pipe(option$1);
10953
- });
10954
- writeAt = fn("Cli.writeAt")(function* (path, text) {
10955
- yield* tryPromise({
10956
- try: () => mkdir(dirname(path), { recursive: true }).then(() => writeFile(path, text, "utf8")),
10957
- catch: (cause) => new InitUnwritable({
10958
- path,
10959
- reason: String(cause)
10960
- })
10961
- });
10962
- });
10963
- skillSource = () => {
10964
- const here = dirname(fileURLToPath(import.meta.url));
10965
- return Array.from({ length: REACH }, (_, layer) => join(here, ...Array(layer).fill(".."))).map((at) => join(at, "skills", "adiff", "SKILL.md")).find((path) => existsSync(path));
10966
- };
10967
- shippedSkill = fn("Cli.shippedSkill")(function* () {
10968
- const source = skillSource();
10969
- return yield* source === void 0 ? new InitUnwritable({
10970
- path: "skills/adiff/SKILL.md",
10971
- reason: "not found beside this build"
10972
- }) : sync(() => readFileSync(source, "utf8"));
10973
- });
10974
- SKILL_AT = join(".claude", "skills", "adiff", "SKILL.md");
10975
- refreshAt = fn("Cli.refreshAt")(function* (root, wanted) {
10976
- const path = join(root, SKILL_AT);
10977
- if (!existsSync(path)) return [];
10978
- const current = yield* readAt(path);
10979
- if (getOrUndefined$1(current) === wanted) return [{
10980
- path,
10981
- action: "unchanged"
10982
- }];
10983
- yield* writeAt(path, wanted);
10984
- return [{
10985
- path,
10986
- action: "update"
10987
- }];
10988
- });
10989
- settledRoot = (root) => {
10990
- try {
10991
- return realpathSync(root);
10992
- } catch {
10993
- return root;
10994
- }
10995
- };
10996
- refreshSkill = fn("Cli.refreshSkill")(function* (roots) {
10997
- const wanted = yield* shippedSkill();
10998
- const seen = [...new Set(roots.map(settledRoot))];
10999
- const found = [];
11000
- for (const root of seen) found.push(...yield* refreshAt(root, wanted));
11001
- return { changes: found };
11002
- });
11003
- }));
11004
- //#endregion
11005
10931
  //#region src/cli/pane.ts
11006
10932
  var TIMEOUT_MS, set, splitters, named, selfInvocation, ran, split, openPane;
11007
10933
  var init_pane = __esmMin((() => {
@@ -11107,12 +11033,11 @@ var init_pane = __esmMin((() => {
11107
11033
  //#endregion
11108
11034
  //#region package.json
11109
11035
  init_drafts();
11110
- init_skill();
11111
11036
  init_pane();
11112
- var version$1 = "0.1.0-alpha.145";
11037
+ var version$1 = "0.1.0-alpha.147";
11113
11038
  //#endregion
11114
11039
  //#region src/cli/upgrade.ts
11115
- 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, ranChild, runUpgrade, statusOf$1, sayFound, sayDone, attempted, REFRESH_MS, refreshSkills, updatedIn, sayRefreshed, upgradeReport;
11040
+ 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, ranChild, runUpgrade, statusOf$1, sayFound, sayDone, attempted, SAY_SKILL_TOO, upgradeReport;
11116
11041
  var init_upgrade$1 = __esmMin((() => {
11117
11042
  init_dist();
11118
11043
  PACKAGE = "@eliya-oss/agent-diff";
@@ -11269,30 +11194,7 @@ var init_upgrade$1 = __esmMin((() => {
11269
11194
  if (found.latest === void 0) return `Ran \`${found.command}\`. Run \`adiff --version\` to see which build you have now.`;
11270
11195
  return `Ran \`${found.command}\`, and adiff ${found.latest} is installed now.`;
11271
11196
  };
11272
- REFRESH_MS = 1e4;
11273
- refreshSkills = ranChild({
11274
- command: "adiff",
11275
- args: [
11276
- "skill",
11277
- "refresh",
11278
- "--json"
11279
- ],
11280
- timeout: REFRESH_MS,
11281
- stdio: [
11282
- "ignore",
11283
- "pipe",
11284
- "ignore"
11285
- ]
11286
- }, (code, said) => code === 0 ? updatedIn(said) : [], []).pipe(withSpan("Cli.refreshedSkill"));
11287
- updatedIn = (said) => {
11288
- return (runSync(try_(() => JSON.parse(said)).pipe(orElseSucceed(() => ({})))).changes ?? []).filter((change) => change.action === "update").flatMap((change) => change.path === void 0 ? [] : [change.path]);
11289
- };
11290
- sayRefreshed = (paths) => {
11291
- const first = paths[0];
11292
- if (first === void 0) return void 0;
11293
- const rest = paths.length - 1;
11294
- return rest === 0 ? `The skill at ${first} is the newest one too.` : `The skill at ${first} and ${rest} more is the newest one too.`;
11295
- };
11197
+ SAY_SKILL_TOO = "Run `npx skills update adiff` to bring the skill up with it.";
11296
11198
  upgradeReport = (found, ran, check) => {
11297
11199
  const note = found.current === true ? statusOf$1(found) : willUpgrade(found, check) ? `${statusOf$1(found)} ${attempted(found, ran)}` : `${statusOf$1(found)} ${NOTES[found.route]} Run \`${found.command}\` to upgrade.`;
11298
11200
  return {
@@ -12383,16 +12285,6 @@ var init_catalog = __esmMin((() => {
12383
12285
  dataKey: "preference",
12384
12286
  example: "adiff config set --name hold --value on"
12385
12287
  },
12386
- {
12387
- name: "skill refresh",
12388
- about: "Rewrite the adiff skill wherever it is already installed, in this directory and in your home directory. Installs nothing that is not already there",
12389
- group: SET_UP,
12390
- addresses: "none",
12391
- safety: "write",
12392
- options: [],
12393
- dataKey: "changes",
12394
- example: "adiff skill refresh"
12395
- },
12396
12288
  {
12397
12289
  name: "upgrade",
12398
12290
  about: "Upgrade this install to the newest build, using whatever installed it. Answers a person in plain text, and a caller in JSON with --json",
@@ -20046,10 +19938,6 @@ const layersShow = fn("Main.layersShow")(function* (options) {
20046
19938
  const layers = yield* showLayers(yield* required(options, "worktree"));
20047
19939
  yield* answer(options, { layers });
20048
19940
  });
20049
- const skillRefresh = fn("Main.skillRefresh")(function* (options) {
20050
- const report = yield* refreshSkill([process.cwd(), homedir()]);
20051
- yield* answer(options, { changes: report.changes });
20052
- });
20053
19941
  const configList = fn("Main.configList")(function* (options) {
20054
19942
  yield* answer(options, { preferences: yield* readPreferences() });
20055
19943
  });
@@ -20075,10 +19963,9 @@ const settledUpgrade = (found, check, ran) => sync(() => {
20075
19963
  if (check || found.current === true || ran) return;
20076
19964
  process.exitCode = 1;
20077
19965
  });
20078
- const saidUpgrade = fn("Main.saidUpgrade")(function* (found, ran, skills) {
19966
+ const saidUpgrade = fn("Main.saidUpgrade")(function* (found, ran) {
20079
19967
  yield* say(`\n${sayDone(found, ran)}\n`);
20080
- const also = sayRefreshed(skills);
20081
- if (also !== void 0) yield* say(`${also}\n`);
19968
+ yield* say(`${SAY_SKILL_TOO}\n`);
20082
19969
  });
20083
19970
  const routes = {
20084
19971
  "branch list": branchList,
@@ -20104,7 +19991,6 @@ const routes = {
20104
19991
  "review progress": reviewStatus,
20105
19992
  "layers set": layersSet,
20106
19993
  "layers show": layersShow,
20107
- "skill refresh": skillRefresh,
20108
19994
  upgrade: fn("Main.upgrade")(function* (options) {
20109
19995
  const check = options["check"] !== void 0;
20110
19996
  const quiet = options["json"] !== void 0;
@@ -20112,15 +19998,8 @@ const routes = {
20112
19998
  const upgrading = willUpgrade(found, check);
20113
19999
  if (!quiet) yield* say(`${sayFound(found, check)}\n${upgrading ? "\n" : ""}`);
20114
20000
  const ran = upgrading ? yield* runUpgrade(found, quiet) : false;
20115
- const skills = ran ? yield* refreshSkills : [];
20116
- if (quiet) {
20117
- const also = skills.length === 0 ? {} : { skills };
20118
- return yield* answer(options, {
20119
- upgrade: upgradeReport(found, ran, check),
20120
- ...also
20121
- });
20122
- }
20123
- if (upgrading) yield* saidUpgrade(found, ran, skills);
20001
+ if (quiet) return yield* answer(options, { upgrade: upgradeReport(found, ran, check) });
20002
+ if (upgrading) yield* saidUpgrade(found, ran);
20124
20003
  return yield* settledUpgrade(found, check, ran);
20125
20004
  }),
20126
20005
  describe: fn("Main.describe")(function* (options) {
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.145",
26
+ "version": "0.1.0-alpha.147",
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": {