mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-16 20:45:33 -08:00
Add the agent-less setup page, a shared agent list and the split Agents & models tab
AI Assisted
This commit is contained in:
1 parent
c122332657
commit
33f1783979
55 files changed
+5453
-1345
No files matched your search
@@ -4,7 +4,7 @@ import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
|
||||
import { HERE } from "./files.mjs";
|
||||
import { WORKFLOWS, isBuild } from "./public/skills.js";
|
||||
import { WORKFLOWS, isBuild, isAgentless } from "./public/skills.js";
|
||||
|
||||
// The CLI's own pieces, handed over by console.mjs through useCli() before
|
||||
// any command runs: console.mjs runs on import, so it cannot be imported back.
|
||||
@@ -22,8 +22,11 @@ function workflowLines(width = 78) {
|
||||
const pad = " ".repeat(lead.length);
|
||||
const lines = [];
|
||||
let line = "";
|
||||
WORKFLOWS.forEach((w, i) => {
|
||||
const piece = i < WORKFLOWS.length - 1 ? `${w} ·` : w;
|
||||
// Agent-less modes are opened by the launcher or the app, never by an agent
|
||||
// typing --workflow, so they stay off the usage list (spec phase-2 note).
|
||||
const listed = WORKFLOWS.filter((w) => !isAgentless(w));
|
||||
listed.forEach((w, i) => {
|
||||
const piece = i < listed.length - 1 ? `${w} ·` : w;
|
||||
const start = lines.length ? pad : lead;
|
||||
if (line && (start + line + " " + piece).length > width) {
|
||||
lines.push(start + line);
|
||||
|
||||
Reference in new issue
Block a user