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
@@ -47,6 +47,7 @@ import { serverWorkspace } from "./workspace.mjs";
|
||||
import { serverSubagents } from "./settings.mjs";
|
||||
import { inAppSignal } from "./in-app.mjs";
|
||||
import { chatAnswering, chatOffline } from "./public/chat.js";
|
||||
import { isAgentless } from "./public/skills.js";
|
||||
import { meterView } from "./public/meter.js";
|
||||
import { SERVABLE, asset } from "./static.mjs";
|
||||
import { handle } from "./routes.mjs";
|
||||
@@ -185,6 +186,7 @@ function chatOfflineNow(state, chat = chatNow(state)) {
|
||||
agentLastSeenMs: agentSeenAt,
|
||||
now: Date.now(),
|
||||
answering: chatAnswering(chat),
|
||||
agentless: isAgentless(state && state.workflow),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -250,7 +252,9 @@ function stateFrame(state) {
|
||||
const chat = chatNow(state);
|
||||
return {
|
||||
rev,
|
||||
state,
|
||||
// The setup hand-over token is for the launcher only: the page gets
|
||||
// forCli, which is all the setup screen reads.
|
||||
state: state.setup ? { ...state, setup: { forCli: state.setup.forCli || null } } : state,
|
||||
agentLastSeen: agentLastSeen(),
|
||||
pendingResult: pending,
|
||||
pendingStop: stop,
|
||||
|
||||
Reference in new issue
Block a user