mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-19 05:11:18 -08:00
Add the Update dependencies skill
AI Assisted
This commit is contained in:
1 parent
5679101487
commit
de8a05b958
99 files changed
+9496
-12
No files matched your search
@@ -6,7 +6,7 @@ The meter is advice and never blocks. The console scores these launches itself w
|
||||
|
||||
Per-unit work is yours: `{"run":{"event":"implement-phase","id":"phase-2","tasks":9}}`, one `run` per post, never reaching the page state.
|
||||
|
||||
- `event`: `pathfinder-chart`, `pathfinder-question` (scores nothing now), `pathfinder-research`, `plan`, `revise-plan`, `document`, `implement-phase`, `implement-review-phase`, `review`, `quick-task`, `init`, `init-update`, `finalize`, `handoff`, `git`, `changelog`, `xray`, `diagnose`, `pr-prep`, `test`, `dead-code`, `git-commits`, `git-conflict`, `ui-prototype-round`. An unknown event is exit 3. Post only the events your notes name: a launch the console scores already has its points.
|
||||
- `event`: `pathfinder-chart`, `pathfinder-question` (scores nothing now), `pathfinder-research`, `plan`, `revise-plan`, `document`, `implement-phase`, `implement-review-phase`, `review`, `quick-task`, `init`, `init-update`, `finalize`, `handoff`, `git`, `changelog`, `xray`, `diagnose`, `pr-prep`, `test`, `dead-code`, `deps`, `git-commits`, `git-conflict`, `ui-prototype-round`. An unknown event is exit 3. Post only the events your notes name: a launch the console scores already has its points.
|
||||
- `id`: the unit (a question's slug, `phase-N`, `map`), non-empty. The same id in the same skill run is ignored.
|
||||
- `tasks`: only with `implement-phase` and `implement-review-phase`; the tasks completed (`[x]`, not blocked), a whole number 1 to 999. A phase scores one point per 3 tasks rounded up (Implement + Review one more for the review); without it, a flat 2 (or 3). It takes over the count from `headline.cleared`, never adding to it.
|
||||
- `commits`: only with `git-commits`; commits made, 1 to 999, one point per 2 rounded down.
|
||||
@@ -1,6 +1,6 @@
|
||||
# Helpers (Subagents)
|
||||
|
||||
The console points here when a `Subagents:` block reaches you. On the skills that offer it (`init`, `init-update`, `pathfinder`, `plan`, `revise-plan`, `document`, `implement`, `implement-review`, `quick-task`, `review`, `finalize`, `xray`, `diagnose`, `pr-prep`, `test`, `dead-code`) the person turns helpers on or off from the top bar's Subagents button, per project and skill. It reaches you as a standing instruction, only when it changes.
|
||||
The console points here when a `Subagents:` block reaches you. On the skills that offer it (`init`, `init-update`, `pathfinder`, `plan`, `revise-plan`, `document`, `implement`, `implement-review`, `quick-task`, `review`, `finalize`, `xray`, `diagnose`, `pr-prep`, `test`, `dead-code`, `deps`) the person turns helpers on or off from the top bar's Subagents button, per project and skill. It reaches you as a standing instruction, only when it changes.
|
||||
|
||||
## What arrives
|
||||
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
# Update Dependencies
|
||||
|
||||
## Start screen
|
||||
|
||||
One `--wait` batch after `detect`. The notes box is a `choice`, on as the recommended option; leave out the dirty confirm when no lockfile has `dirty` files. Missing tools, no-lockfile manifests, ecosystems not covered and untracked lockfiles go in `body` lines, one each:
|
||||
|
||||
```jsonc
|
||||
{"title":"Update dependencies","headline":{"stage":"Start","cleared":0,"total":4},"items":[{"id":"notes","kind":"choice","title":"Release notes","allowOther":false,"body":"Safe needs the notes read. 3 other changed files stay as they are.\n\n- cargo is not on this machine: `plan2code-app` is not scanned.","options":[{"text":"Read each update's release notes","recommended":true},{"text":"Skip the notes","detail":"Every row counts as notes not read: nothing can be Safe."}]},{"id":"dirty","kind":"confirm","title":"Already changed","body":"`package.json` already has changes. They are backed up as found and put back as found.","yesLabel":"Carry on","noLabel":"Stop"}]}
|
||||
```
|
||||
|
||||
## The folder card
|
||||
|
||||
One `multi`, `--wait`: one option per folder holding a lockfile, `text` the folder, `detail` the ecosystem and the quick count. All are suggested: preset `All folders` with every key. A send with none ticked means every folder.
|
||||
|
||||
## Not scanned, no registry
|
||||
|
||||
`scan` exit 3: a `confirm` "No registry answered", `body` with the sign-in command, `"yesLabel":"Scan again","noLabel":"Stop"`.
|
||||
|
||||
## Checks
|
||||
|
||||
For lockfiles with no test map row: one `confirm` listing each discovered command and the folder it runs in, `"yesLabel":"Use these","noLabel":"Not right"`; a "Not right" note replaces what was found. No checks anywhere: a `text` card for a command (`required:false`), then, left empty, a `confirm` "Apply unchecked" (`"yesLabel":"Apply unchecked","noLabel":"Stop"`).
|
||||
|
||||
## The pick list
|
||||
|
||||
One `multi`, `--wait`, `required:false`. Options in five groups, in order: Safe, Check first, Warning, Held back, Not scanned; `security` rows first in their group. `k` is a number in order; keep a key-to-row-id map in the run folder. `text` is `package current → target`; `detail` the jump, folder and reasons; `more` the notes link and source, quoted breaking lines, call sites and newer versions the runtime holds back. `batch` is `safe:<lockfile>` for a Safe row, the row id (or its pair's first id) otherwise. Held back and Not scanned rows are `locked`. Rows cannot open ticked, so `All Safe` is the suggested pick; leave it out with no Safe rows. `body` also lists missing scan plugins with their `install` lines and `stillOpen` with reasons.
|
||||
|
||||
```jsonc
|
||||
{"headline":{"stage":"Pick list","cleared":2},"items":[{"id":"picks","kind":"multi","title":"What to update","required":false,"body":"- Safe: 2 (the suggested pick: press All Safe)\n- Check first: 1\n- Warning: 1\n- Held back: 1\n\nNothing is updated until you send.","counter":{"rounds":"check rounds"},"options":[{"k":"1","group":"Safe","text":"vite 7.1.2 → 7.1.9","detail":"patch · plan2code-app · in range","batch":"safe:plan2code-app/package-lock.json","more":"Notes: [GitHub releases](https://github.com/vitejs/vite/releases), no breaking lines."},{"k":"2","group":"Safe","text":"tsup 8.3.0 → 8.5.1","detail":"minor · plan2code-metrics · in range","batch":"safe:plan2code-metrics/package-lock.json"},{"k":"3","group":"Check first","text":"eslint 9.6.1 → 10.2.1","detail":"major · plan2code-bot · range ^9.6.1 → ^10.2.1","batch":"plan2code-bot/package-lock.json#eslint"},{"k":"4","group":"Warning","text":"commander 12.1.0 → 14.0.0","detail":"major · plan2code-metrics · the code calls a changed API in 3 files","batch":"plan2code-metrics/package-lock.json#commander","more":"> Removed `program.storeOptionsAsProperties()`\n\n- src/cli.ts:14"},{"k":"5","group":"Held back","text":"glob 10.4.5","detail":"held by `overrides` in package.json","locked":true}],"presets":[{"label":"All Safe","ks":["1","2"]}]}]}
|
||||
```
|
||||
|
||||
## Progress
|
||||
|
||||
One post per install and check, no `--wait`: `headline.stage` `Batch 2 of 5`, `activity` naming the batch and the command (`Installing for plan2code-app`, then `Running npm test in plan2code-app`), `quietMinutes` sized to the timeout plus a margin. After the first batch, `activity` ends with the time left. A put-back says so: `Putting back eslint`.
|
||||
|
||||
The first batch that stays with a pick updated posts `{"run":{"event":"deps","id":"apply"}}`, once per run.
|
||||
|
||||
Helpers are reported as `helpers`, each `done` or `failed`, before the pick list goes up.
|
||||
|
||||
## Stop
|
||||
|
||||
On `__stop`: a `confirm` "Stop the run", `"yesLabel":"Stop","noLabel":"Keep going"`, `body` naming what stays and what is put back. Yes: put back the live batch, then the report and the finish.
|
||||
|
||||
## The hand-off card
|
||||
|
||||
One `multi`, `--wait`, `required:false`, after the last batch: every Warning row and every Check first major that failed and was put back, nothing ticked, `detail` what blocks it.
|
||||
|
||||
## The report
|
||||
|
||||
Doc `report`: one `md` block, the headline first (Complete, Narrowed or Stopped), then the folders scanned, the rows table with each label, reasons and outcome, still-open vulnerabilities, missing tools with install lines, folders the test map lacks (point to PR Prep or Test), changes already there before the run, and each brief written. After an unfinished put-back: the mismatched files or the hand-run command, and `<run>/backups/<b>/files/`.
|
||||
|
||||
## The finish
|
||||
|
||||
`headline` the counts updated, failed and not tried; `body` the summary and any brief written; `"dashboard":true`; `command` `/plan2code-git` when something changed; never `commit`. A stop before any apply: `body` says nothing changed, `"command":"/plan2code-deps"`. An unfinished put-back: no `command`; `body` names what the report does.
|
||||
@@ -29,8 +29,9 @@ Read `building.md` first.
|
||||
|
||||
A step that cannot be done is `- [!]` with the reason, not counted in `cleared`. A step added mid-build raises `headline.total` in the same post. Tick Verify boxes in the post that reports the checks. Do not `wait` until the build is done.
|
||||
- **See it running, before the finish:** once built, post `review` "See it running" (`"doc":"plan"`, verdicts `show` ("Show me it working"), `fine` ("No need, finish up"), tokens `show me` / `no`) with `--wait`. On `show`, see `notes/implement.md` → Show me it working; its one line goes in the finish `body`. `fine` settles the card in the finish post. After `show`, settle it in the post that shows it, then post `review` "Does it look right?" (`"doc":"shown"`, verdicts `fine` ("Looks right, finish up"), `changes` ("I want changes"), tokens `approved` / `needs changes`) with `--wait`. `changes`: make it, reshow if visible, reopen with a `thread` reply, wait again. Only `fine` leads to the finish.
|
||||
- **Archive a fixed bug or a built prototype:** launched on a diagnosed folder and now Fixed with nothing past the diagnosis, or on a folder of only prototypes now built, post `confirm` "Archive this bug?" (or "Archive this prototype?") in the same post as "See it running": dry run's `files` in `body`, with any prototype not built named there, `yesLabel` "Archive it", `noLabel` "Keep it in specs/", `consequences` naming `specs--completed/<name>/`. Yes: `node "<S>/specs.mjs" archive <spec>`, and say where it went in the finish `body`.
|
||||
- **Archive a finished folder:** launched on a diagnosed folder now Fixed or an upgrade folder now Done, with nothing past the diagnosis or brief, or on a folder of only prototypes now built, post `confirm` "Archive this bug?" ("Archive this upgrade?", "Archive this prototype?") in the same post as "See it running": dry run's `files` in `body`, with any prototype not built named there, `yesLabel` "Archive it", `noLabel` "Keep it in specs/", `consequences` naming `specs--completed/<name>/`. Yes: `node "<S>/specs.mjs" archive <spec>`, and say where it went in the finish `body`.
|
||||
- **Finish after the build:** `command` is the filled-in commit command in the project's format (AGENTS.md), `"where":"When you are happy with it, commit it from your terminal:"`, with `review` (**Review it now**), `"commit":true`, `"changelog":true` and `"dashboard":true`. Review and dashboard are required. Whichever button is pressed, what follows is `building-review.md`.
|
||||
- **Lessons first:** with lessons to offer (`references/lessons.md`, End), post its `card` as one `lessons` item with `--wait` before the finish.
|
||||
- **Escalated / aborted:** settle the verdict in the finish post: `"command":"/plan2code-1-plan"` with the PLAN-DRAFT's path in `body`, no review; or `"command":"/plan2code-quick-task"`. Both `"dashboard":true`.
|
||||
|
||||
Stop requests during a build: `building.md`.
|
||||
|
||||
@@ -57,6 +57,11 @@ const BUILD_HELPERS =
|
||||
// Pathfinder's and Plan's reason on a finished spec (a fixed bug).
|
||||
export const FIXED_REASON = "This bug is fixed. Delete it with the Delete button on its chip, or move it to specs--completed/.";
|
||||
|
||||
// Pathfinder's and Plan's reason on a finished upgrade brief, and Pathfinder's
|
||||
// on one still waiting (Plan takes it).
|
||||
export const UPGRADED_REASON = "This upgrade is done. Delete it with the Delete button on its chip, or move it to specs--completed/.";
|
||||
const UPGRADE_REASON = "An upgrade brief. Apply it in a quick task, or plan it.";
|
||||
|
||||
// Shared by Implement and Implement + Review.
|
||||
const BUILD_GREYED = { default: "Needs the phase checklists written up first", built: "All tasks are already done" };
|
||||
|
||||
@@ -123,6 +128,8 @@ export const SKILLS = Object.freeze([
|
||||
greyed: {
|
||||
default: "This spec is already past the questions",
|
||||
diagnosed: "The cause is found. Fix it in a quick task, or plan it.",
|
||||
upgrade: UPGRADE_REASON,
|
||||
upgraded: UPGRADED_REASON,
|
||||
finished: FIXED_REASON,
|
||||
},
|
||||
card: {
|
||||
@@ -145,10 +152,11 @@ export const SKILLS = Object.freeze([
|
||||
builds: false, phased: false, metered: true, templates: true,
|
||||
weight: 2, started: "Plan started", ran: "Plan drafted", resume: null,
|
||||
subagents: "Use helpers for research and recon beside the conversation: reading the files and references the person points you to, mapping separate areas of the codebase in Phase 2, and gathering evidence on each open tech choice in Phase 4. In Phase 7, one fresh helper may cross-check the PLAN-DRAFT against the PLAN-CONVERSATION; confirm each gap it finds yourself. Keep every question, decision and sign-off, and the writing of the PLAN-DRAFT, with you. Recon and lookups at light strength, the cross-check at standard.",
|
||||
states: ["none", "unrecognized", "diagnosed", "mapped", "planned"], marksNext: true,
|
||||
states: ["none", "unrecognized", "diagnosed", "upgrade", "mapped", "planned"], marksNext: true,
|
||||
greyed: {
|
||||
default: "The plan is written. Revise it instead if it moved.",
|
||||
exploring: "Pathfinder is not finished with this spec yet",
|
||||
upgraded: UPGRADED_REASON,
|
||||
finished: FIXED_REASON,
|
||||
},
|
||||
card: {
|
||||
@@ -448,6 +456,30 @@ export const SKILLS = Object.freeze([
|
||||
"For code nothing calls anymore. Dead Code uses the project's own dead-code tool when there is one (Knip, vulture, cargo check and others), or searches by itself when there is not, then checks every item for callers across the whole project. Each one gets a label: Safe to remove, Check first or Warning, with the reason. It removes only what you pick, runs the tests and build, and puts back anything that breaks them. It never commits and never installs anything.",
|
||||
},
|
||||
}),
|
||||
skill({
|
||||
skill: "plan2code-deps",
|
||||
workflow: "deps",
|
||||
label: "Update dependencies",
|
||||
name: "Update Dependencies",
|
||||
pose: "deps",
|
||||
// Not metered: the launch scores nothing, and the `deps` run event scores
|
||||
// `weight` once, posted only by a run that applies something.
|
||||
builds: false, phased: false, metered: false, templates: false,
|
||||
weight: 1, started: "Update Dependencies started", ran: "Update Dependencies run", resume: null,
|
||||
subagents: "Use helpers for the assess step, one batch of up to 8 packages of one ecosystem each (packages that move together in the same batch), reading the release notes and searching for callers, each returning one record per package, never a label. Keep the labels, the pick list, every apply, every check and every question with you. Light strength, medium effort.",
|
||||
states: "any",
|
||||
greyed: null,
|
||||
card: {
|
||||
group: "extra",
|
||||
chip: "Utility",
|
||||
title: "Update dependencies",
|
||||
icon: "deps",
|
||||
blurb: "Finds outdated packages, says how safe each update is, and applies only what you pick.",
|
||||
help: "Finds outdated dependencies, labels each update Safe, Check first or Warning, applies only what you pick in batches, then runs the install and checks.",
|
||||
about:
|
||||
"For a dependency backlog. Update dependencies scans every manifest in the project (npm, pnpm and Yarn, Cargo, pip and uv, Go and .NET), reads the release notes and checks which changed APIs your code calls. Each update gets a label: Safe, Check first or Warning, with the reason. It applies only what you pick, in batches, runs the install and your checks after each one, and puts back anything that breaks them. Updates that need code changes become a brief for Quick Task or Plan. It never commits, never edits source code and never installs a tool.",
|
||||
},
|
||||
}),
|
||||
skill({
|
||||
skill: "plan2code-ui-prototype",
|
||||
workflow: "ui-prototype",
|
||||
|
||||
@@ -24,6 +24,8 @@ function state(label, next, finished = false) {
|
||||
export const SPEC_STATES = Object.freeze({
|
||||
diagnosed: state("Bug diagnosed", "plan2code-quick-task"),
|
||||
fixed: state("Bug fixed", null, true),
|
||||
upgrade: state("Upgrade ready", "plan2code-quick-task"),
|
||||
upgraded: state("Upgrade done", null, true),
|
||||
exploring: state("Exploring", "plan2code-0-pathfinder"),
|
||||
mapped: state("Ready to plan", "plan2code-1-plan"),
|
||||
planned: state("Ready to document", "plan2code-2-document"),
|
||||
|
||||
@@ -145,6 +145,64 @@
|
||||
}
|
||||
.option-detail { color: var(--ink-2); font-size: 13.5px; margin-top: 4px; }
|
||||
|
||||
/* A long pick list (Update dependencies): group headings, rows that open, rows
|
||||
shown but never picked, and the live pick and round count. Every piece is
|
||||
optional, so a plain multi draws as it always has. */
|
||||
.option-group-row { list-style: none; margin: 10px 0 -2px; }
|
||||
.option-group-row:first-child { margin-top: 0; }
|
||||
.option-group {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.05em;
|
||||
text-transform: uppercase;
|
||||
color: var(--ink-3);
|
||||
}
|
||||
.option.has-more { flex-wrap: wrap; }
|
||||
.option-more-btn {
|
||||
flex: none;
|
||||
align-self: flex-start;
|
||||
font: inherit;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: var(--accent);
|
||||
background: transparent;
|
||||
border: 1px solid var(--rule-2);
|
||||
border-radius: 99px;
|
||||
padding: 2px 9px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.option-more-btn:hover { border-color: var(--accent-line); background: var(--panel-2); }
|
||||
.option-more-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
|
||||
.option-more-btn[aria-expanded="true"] { background: var(--panel-2); }
|
||||
.option-more {
|
||||
flex-basis: 100%;
|
||||
min-width: 0;
|
||||
margin: 2px 0 0 29px;
|
||||
padding-top: 9px;
|
||||
border-top: 1px solid var(--rule);
|
||||
color: var(--ink-2);
|
||||
font-size: 13.5px;
|
||||
cursor: default;
|
||||
}
|
||||
.option.is-held { cursor: default; background: var(--panel-2); border-color: var(--rule); }
|
||||
.option.is-held .option-body { opacity: 0.6; }
|
||||
.option.is-held input { cursor: not-allowed; opacity: 0.6; }
|
||||
.option.is-held:hover { border-color: var(--rule); background: var(--panel-2); }
|
||||
.option-counter { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
|
||||
/* The counter's spoken twin: one fixed node, read by screen readers only. */
|
||||
.pick-count-live {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
clip-path: inset(50%);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.pill {
|
||||
font-size: 10.5px;
|
||||
font-weight: 700;
|
||||
@@ -611,6 +669,15 @@ h4.md-h, h5.md-h, h6.md-h { font-size: 15px; }
|
||||
margin: 0 0 11px; padding: 2px 0 2px 15px;
|
||||
border-left: 3px solid var(--rule-2); color: var(--ink-2);
|
||||
}
|
||||
/* `> [!CAUTION]` and `> [!TIP]`: the stop report's reason and advice boxes. */
|
||||
.md-alert {
|
||||
padding: 10px 14px; border-left-width: 4px; border-radius: 0 6px 6px 0; color: var(--ink);
|
||||
}
|
||||
.md-alert > .md-p:last-child { margin-bottom: 0; }
|
||||
.md-alert-caution { background: var(--warn-soft); border-left-color: var(--warn); }
|
||||
.md-alert-caution strong:first-child { color: var(--warn); }
|
||||
.md-alert-tip { background: var(--accent-soft); border-left-color: var(--accent); }
|
||||
.md-alert-tip strong:first-child { color: var(--accent); }
|
||||
.md-code {
|
||||
font: 0.88em var(--mono);
|
||||
background: var(--panel-2);
|
||||
|
||||
@@ -488,6 +488,22 @@
|
||||
14%, 56% { transform: translate(5px, -2px); }
|
||||
}
|
||||
|
||||
/* Update dependencies: he holds up a package box, and an arrow rises out
|
||||
of it and fades, over and over, as one version gives way to the next;
|
||||
his star follows it up. */
|
||||
.pose .dp-box { fill: var(--panel-2); stroke: var(--ink-2); stroke-width: 4; stroke-linejoin: round; }
|
||||
.pose .dp-arrow { animation: dp-arrow 3.2s ease-in-out infinite; }
|
||||
@keyframes dp-arrow {
|
||||
0%, 15% { transform: translateY(10px); opacity: 0; }
|
||||
40%, 70% { transform: translateY(0); opacity: 1; }
|
||||
100% { transform: translateY(-8px); opacity: 0; }
|
||||
}
|
||||
.pose .dp-look { animation: dp-look 3.2s ease-in-out infinite; }
|
||||
@keyframes dp-look {
|
||||
0%, 20%, 100% { transform: translate(3px, 0); }
|
||||
45%, 75% { transform: translate(4px, -3px); }
|
||||
}
|
||||
|
||||
/* UI Prototype -- he holds a screen up, and its three dials slide one after
|
||||
another, as if he were tuning it. */
|
||||
.pose .up-knob { animation: up-knob 4.2s ease-in-out infinite; }
|
||||
|
||||
@@ -29,6 +29,10 @@ export { TASK_LINE_RE } from "./spec-files.mjs";
|
||||
// wrote up and nobody has fixed or planned yet: it lights Quick Task and Plan.
|
||||
// "fixed" is that bug once Quick Task marked it Fixed: finished, so the
|
||||
// dashboard never picks or suggests it, and Quick Task offers to archive it.
|
||||
// "upgrade" is a dependency upgrade brief (UPGRADE-*.md) Update dependencies
|
||||
// wrote for a ticked Warning: like "diagnosed", it lights Quick Task and Plan.
|
||||
// "upgraded" is that brief once Quick Task marked it Done: finished, archived
|
||||
// the same way as "fixed".
|
||||
// The states themselves, with their labels and flags, are public/spec-states.js.
|
||||
export const SPEC_STATES = new Set(Object.keys(STATE_TABLE));
|
||||
|
||||
@@ -152,6 +156,12 @@ function specPosition(dir, names) {
|
||||
return /^fixed/i.test(diagnosisStatus)
|
||||
? { state: "fixed", detail: "bug fixed" }
|
||||
: { state: "diagnosed", detail: "bug diagnosed, not fixed" };
|
||||
// An upgrade brief Update dependencies wrote, read the same way: planning
|
||||
// wins over it, and Quick Task marks it Done once the upgrade is applied.
|
||||
const upgrade = names.filter((n) => /^UPGRADE-.*\.md$/i.test(n)).sort().reverse()[0];
|
||||
const upgradeStatus = upgrade ? (statusOf(readText(path.join(dir, upgrade))) || "").replace(/\*+/g, "").trim() : "";
|
||||
if (upgrade && !planConv && !fs.existsSync(path.join(pfDir, "map.md")))
|
||||
return /^done/i.test(upgradeStatus) ? { state: "upgraded", detail: "upgrade done" } : { state: "upgrade", detail: "upgrade ready" };
|
||||
if (isDir(pfDir)) {
|
||||
const mapText = readText(path.join(pfDir, "map.md"));
|
||||
const status = (statusOf(mapText) || "").replace(/\*+/g, "").trim();
|
||||
|
||||
Reference in new issue
Block a user