@lensmcp/protocol-types 1.25.34 → 1.25.36
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/lib/team-library.d.ts +6 -0
- package/lib/team.d.ts +107 -0
- package/package.json +1 -1
package/lib/team-library.d.ts
CHANGED
|
@@ -138,6 +138,9 @@ export interface DashTeamMember {
|
|
|
138
138
|
has: number;
|
|
139
139
|
listening: number;
|
|
140
140
|
};
|
|
141
|
+
/** The model and reasoning effort its file names for its agents (the manager spawns them with these) — none: the spawner's. */
|
|
142
|
+
model?: string;
|
|
143
|
+
effort?: string;
|
|
141
144
|
/** The repository's own rules for it, as tagged sections — empty when it has none. */
|
|
142
145
|
rules: string;
|
|
143
146
|
/** `default`: no file — LensMCP's default (built on its library role); `file`: the repository's file; `design`: a file an accepted team design wrote. */
|
|
@@ -199,6 +202,9 @@ export interface DashTeamMemberEdit {
|
|
|
199
202
|
worktree?: DashTeamWorktreePolicy;
|
|
200
203
|
agents?: number;
|
|
201
204
|
start?: 'now' | 'later';
|
|
205
|
+
/** The model (at most 80 characters) and effort (at most 40) its agents run on, in their client's words — empty or left out: none. */
|
|
206
|
+
model?: string;
|
|
207
|
+
effort?: string;
|
|
202
208
|
/** Tools added to the base's (one the base has, named again, takes this when). */
|
|
203
209
|
tools?: DashTeamRoleTool[];
|
|
204
210
|
/** Skills added to the base's. */
|
package/lib/team.d.ts
CHANGED
|
@@ -124,6 +124,9 @@ export interface DashTeamRole {
|
|
|
124
124
|
listening: number;
|
|
125
125
|
/** The most agents it takes at once (its role file's `agents`): agent_join refuses one more. None: no limit. */
|
|
126
126
|
cap?: number;
|
|
127
|
+
/** The model and reasoning effort its role file asks for — the manager spawns its agents with them (planning/team/03). */
|
|
128
|
+
model?: string;
|
|
129
|
+
effort?: string;
|
|
127
130
|
/** Claimable now (blocked ones not counted). */
|
|
128
131
|
open: number;
|
|
129
132
|
claimed: number;
|
|
@@ -207,3 +210,107 @@ export interface DashTeamMessage {
|
|
|
207
210
|
kind: 'message' | 'note';
|
|
208
211
|
to?: string;
|
|
209
212
|
}
|
|
213
|
+
/**
|
|
214
|
+
* What an agent's OWN transcript says (planning/team/03-agent-transcripts.md) — the Codex rollout or the Claude Code
|
|
215
|
+
* transcript its coordination session is linked to: by its hooks' native key, or by the `agent_join` answer that names
|
|
216
|
+
* the session in the transcript's own part (a Codex subagent's hooks carry its parent's id).
|
|
217
|
+
*/
|
|
218
|
+
export type DashTeamAgentClient = 'codex' | 'claude';
|
|
219
|
+
/** A model the agent ran, from the turn it switched to it — its own turns only, not a fork's inherited history. */
|
|
220
|
+
export interface DashTeamAgentModel {
|
|
221
|
+
model: string;
|
|
222
|
+
effort?: string;
|
|
223
|
+
/** When it first ran it (epoch ms). */
|
|
224
|
+
from: number;
|
|
225
|
+
turns: number;
|
|
226
|
+
}
|
|
227
|
+
/** An MCP server: the calls the agent made to it, and whether its client is configured with it. */
|
|
228
|
+
export interface DashTeamAgentMcp {
|
|
229
|
+
server: string;
|
|
230
|
+
/** The plugin that brings it (`openviking-memory`), when one does. */
|
|
231
|
+
plugin?: string;
|
|
232
|
+
calls: number;
|
|
233
|
+
tools: Array<{
|
|
234
|
+
tool: string;
|
|
235
|
+
calls: number;
|
|
236
|
+
}>;
|
|
237
|
+
/** In the client's configuration (Codex `config.toml` or an enabled plugin) — absent: not known (Claude Code). */
|
|
238
|
+
configured?: boolean;
|
|
239
|
+
}
|
|
240
|
+
/** One line of the transcript's tail, as the drawer shows it. */
|
|
241
|
+
export interface DashTeamAgentLine {
|
|
242
|
+
at?: number;
|
|
243
|
+
/** `message`: to or from another agent; `model`: the turn switched model or effort. */
|
|
244
|
+
kind: 'user' | 'agent' | 'tool' | 'output' | 'message' | 'model';
|
|
245
|
+
text: string;
|
|
246
|
+
/** For `tool`: the tool (`mcp__lensmcp__agent_task_claim`, `exec_command`, `Bash`). */
|
|
247
|
+
tool?: string;
|
|
248
|
+
}
|
|
249
|
+
/** `GET /api/team/agents` — each live session's agent, small: what the rail shows. */
|
|
250
|
+
export interface DashTeamAgentBrief {
|
|
251
|
+
sessionId: string;
|
|
252
|
+
found: boolean;
|
|
253
|
+
/** How the transcript was linked to the session. */
|
|
254
|
+
how?: 'hooks' | 'join';
|
|
255
|
+
client?: DashTeamAgentClient;
|
|
256
|
+
/** The model and effort of its newest turn. */
|
|
257
|
+
model?: string;
|
|
258
|
+
effort?: string;
|
|
259
|
+
/** A Codex subagent's name and task path (`Socrates`, `/root/flow_catalog`). */
|
|
260
|
+
nickname?: string;
|
|
261
|
+
agentPath?: string;
|
|
262
|
+
/** The coordination session of the agent that spawned it, when that one is on the team too. */
|
|
263
|
+
parentSessionId?: string;
|
|
264
|
+
/** Its newest transcript line's time. */
|
|
265
|
+
lastAt?: number;
|
|
266
|
+
}
|
|
267
|
+
export interface DashTeamAgentsAnswer {
|
|
268
|
+
agents: DashTeamAgentBrief[];
|
|
269
|
+
}
|
|
270
|
+
/** `GET /api/team/agent?id=` — one agent whole. */
|
|
271
|
+
export interface DashTeamAgentDetail extends DashTeamAgentBrief {
|
|
272
|
+
/** Not found: why, and where it looked. */
|
|
273
|
+
why?: string;
|
|
274
|
+
/** The transcript file (absolute). */
|
|
275
|
+
file?: string;
|
|
276
|
+
bytes?: number;
|
|
277
|
+
threadId?: string;
|
|
278
|
+
parentThreadId?: string;
|
|
279
|
+
/** How it was started: `cli`, `vscode`, `exec`, `subagent` (Codex); the entrypoint (Claude Code). */
|
|
280
|
+
origin?: string;
|
|
281
|
+
cliVersion?: string;
|
|
282
|
+
cwd?: string;
|
|
283
|
+
startedAt?: number;
|
|
284
|
+
models: DashTeamAgentModel[];
|
|
285
|
+
/** Used servers first (most calls), then configured ones it never called. */
|
|
286
|
+
mcp: DashTeamAgentMcp[];
|
|
287
|
+
skills: Array<{
|
|
288
|
+
name: string;
|
|
289
|
+
uses: number;
|
|
290
|
+
}>;
|
|
291
|
+
openviking: {
|
|
292
|
+
/** Recall blocks its memory hook put in its turns, and the newest one's time. */
|
|
293
|
+
recalls: number;
|
|
294
|
+
lastRecallAt?: number;
|
|
295
|
+
/** Calls it made to an OpenViking tool. */
|
|
296
|
+
calls: number;
|
|
297
|
+
/** Its client has OpenViking configured — absent: not known. */
|
|
298
|
+
configured?: boolean;
|
|
299
|
+
};
|
|
300
|
+
tokens?: {
|
|
301
|
+
input: number;
|
|
302
|
+
output: number;
|
|
303
|
+
total: number;
|
|
304
|
+
};
|
|
305
|
+
/** Agents it spawned (Codex subagents; Claude Code subagents), newest last. */
|
|
306
|
+
spawned: Array<{
|
|
307
|
+
threadId: string;
|
|
308
|
+
nickname?: string;
|
|
309
|
+
agentPath?: string;
|
|
310
|
+
sessionId?: string;
|
|
311
|
+
model?: string;
|
|
312
|
+
effort?: string;
|
|
313
|
+
}>;
|
|
314
|
+
/** Its newest lines, oldest first. */
|
|
315
|
+
tail: DashTeamAgentLine[];
|
|
316
|
+
}
|