Add the Update dependencies skill

AI Assisted
This commit is contained in:
jparkerweb committed 2026-11-13 23:28:59 -08:00
1 parent 5679101487
commit de8a05b958
99 files changed
+9496 -12

No files matched your search

+33 -1
View File
@@ -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",
+2
View File
@@ -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"),
+67
View File
@@ -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);
+16
View File
@@ -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; }