@dalmasonto/taskflow-mcp 2.13.0 → 2.14.0
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/dist/client.d.ts +104 -1
- package/dist/client.js +101 -0
- package/dist/client.js.map +1 -1
- package/dist/instructions.d.ts +1 -1
- package/dist/instructions.js +36 -1
- package/dist/instructions.js.map +1 -1
- package/dist/server.d.ts +13 -0
- package/dist/server.js +521 -19
- package/dist/server.js.map +1 -1
- package/dist/toolbox.d.ts +128 -0
- package/dist/toolbox.js +249 -0
- package/dist/toolbox.js.map +1 -0
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -47,6 +47,13 @@ export type DesignScreenshotOptions = {
|
|
|
47
47
|
tokens?: Record<string, DesignOverrideValue>;
|
|
48
48
|
css?: string;
|
|
49
49
|
max_px?: number;
|
|
50
|
+
/** #525: where the render goes. `to` is `inline` (default) | `message` |
|
|
51
|
+
* `url`; `message` needs `channel`. Flat on the wire — these four become
|
|
52
|
+
* query parameters, because the route is a GET. */
|
|
53
|
+
deliver?: "inline" | "message" | "url";
|
|
54
|
+
deliver_channel?: number;
|
|
55
|
+
deliver_body?: string;
|
|
56
|
+
deliver_reply_to?: number;
|
|
50
57
|
};
|
|
51
58
|
/** `design_compare` request body (minus `project`). */
|
|
52
59
|
export type DesignCompareInput = {
|
|
@@ -77,6 +84,11 @@ export type DesignCompareInput = {
|
|
|
77
84
|
css?: string;
|
|
78
85
|
include_apply?: boolean;
|
|
79
86
|
max_px?: number;
|
|
87
|
+
/** #525: `inline` (default) | `message` (needs `deliver_channel`) | `url`. */
|
|
88
|
+
deliver?: "inline" | "message" | "url";
|
|
89
|
+
deliver_channel?: number;
|
|
90
|
+
deliver_body?: string;
|
|
91
|
+
deliver_reply_to?: number;
|
|
80
92
|
};
|
|
81
93
|
export type DesignCompareResult = {
|
|
82
94
|
mime: string;
|
|
@@ -86,8 +98,11 @@ export type DesignCompareResult = {
|
|
|
86
98
|
width: number;
|
|
87
99
|
height: number;
|
|
88
100
|
};
|
|
89
|
-
png_base64
|
|
101
|
+
png_base64?: string;
|
|
90
102
|
}[];
|
|
103
|
+
/** #525: present when `deliver` sent the render somewhere else — ids and
|
|
104
|
+
* sizes instead of pixels, and then `images[]` carries no base64. */
|
|
105
|
+
delivered?: unknown;
|
|
91
106
|
split: boolean;
|
|
92
107
|
grid: {
|
|
93
108
|
columns: string[];
|
|
@@ -182,6 +197,33 @@ export interface SendMessageInput {
|
|
|
182
197
|
}[];
|
|
183
198
|
/** #317: the id of the message this one replies to (same channel). */
|
|
184
199
|
reply_to?: number;
|
|
200
|
+
/** #644: a structured question set the human answers in a rendered dialog.
|
|
201
|
+
* The answers come back as an ordinary REPLY to this message. */
|
|
202
|
+
questions?: StructuredQuestions;
|
|
203
|
+
}
|
|
204
|
+
export interface StructuredQuestions {
|
|
205
|
+
title?: string;
|
|
206
|
+
questions: StructuredQuestion[];
|
|
207
|
+
submit_label?: string;
|
|
208
|
+
cancel_label?: string;
|
|
209
|
+
}
|
|
210
|
+
export interface StructuredQuestion {
|
|
211
|
+
/** Stable identity for the answer, unique in the set (`[a-z0-9_-]{1,40}`). */
|
|
212
|
+
key: string;
|
|
213
|
+
label: string;
|
|
214
|
+
type: "radio" | "select" | "text" | "date";
|
|
215
|
+
/** radio/select only: at least 2. */
|
|
216
|
+
options?: {
|
|
217
|
+
value: string;
|
|
218
|
+
label: string;
|
|
219
|
+
description?: string;
|
|
220
|
+
}[];
|
|
221
|
+
/** radio/select only: offer an "Other…" free-text choice. */
|
|
222
|
+
allow_other?: boolean;
|
|
223
|
+
required?: boolean;
|
|
224
|
+
/** text only. */
|
|
225
|
+
placeholder?: string;
|
|
226
|
+
multiline?: boolean;
|
|
185
227
|
}
|
|
186
228
|
export interface CreateTaskInput {
|
|
187
229
|
title: string;
|
|
@@ -189,6 +231,7 @@ export interface CreateTaskInput {
|
|
|
189
231
|
priority?: string;
|
|
190
232
|
notes_markdown?: string;
|
|
191
233
|
claim?: boolean;
|
|
234
|
+
repo?: string;
|
|
192
235
|
}
|
|
193
236
|
/**
|
|
194
237
|
* Fields of a task that an agent may edit. Every one is optional: what is
|
|
@@ -203,6 +246,7 @@ export interface UpdateTaskInput {
|
|
|
203
246
|
description_markdown?: string;
|
|
204
247
|
notes_markdown?: string;
|
|
205
248
|
priority?: string;
|
|
249
|
+
repo?: string | null;
|
|
206
250
|
}
|
|
207
251
|
export interface RegisterSessionInput {
|
|
208
252
|
session_identifier: string;
|
|
@@ -282,6 +326,11 @@ export type DesignLayoutOp = {
|
|
|
282
326
|
x: number;
|
|
283
327
|
y: number;
|
|
284
328
|
};
|
|
329
|
+
} | {
|
|
330
|
+
set_label: {
|
|
331
|
+
route: string;
|
|
332
|
+
label?: string;
|
|
333
|
+
};
|
|
285
334
|
};
|
|
286
335
|
export declare class TaskflowClient {
|
|
287
336
|
private readonly server;
|
|
@@ -318,6 +367,28 @@ export declare class TaskflowClient {
|
|
|
318
367
|
/** Only messages past this agent's read cursor. */
|
|
319
368
|
unread?: boolean;
|
|
320
369
|
}): Promise<MessagesPage>;
|
|
370
|
+
/** `GET /agents/toolbox` — the index. Never carries code. */
|
|
371
|
+
toolboxList(params?: {
|
|
372
|
+
kind?: string;
|
|
373
|
+
tag?: string;
|
|
374
|
+
query?: string;
|
|
375
|
+
}): Promise<unknown>;
|
|
376
|
+
/** `GET /agents/toolbox/{name}` — the full entry, code included. */
|
|
377
|
+
toolboxGet(name: string): Promise<unknown>;
|
|
378
|
+
/** `POST /agents/toolbox/{name}` — create or update (the version gate is the
|
|
379
|
+
* server's: a stale `base_version` is a 409). */
|
|
380
|
+
toolboxSave(name: string, input: Record<string, unknown>): Promise<unknown>;
|
|
381
|
+
/** `POST /agents/toolbox/{name}/run` — record how a run went. */
|
|
382
|
+
toolboxReportRun(name: string, ok: boolean, note?: string): Promise<unknown>;
|
|
383
|
+
/** `POST /agents/toolbox/{name}/deprecate` — retire an entry, with a reason. */
|
|
384
|
+
toolboxDeprecate(name: string, reason: string): Promise<unknown>;
|
|
385
|
+
/** `GET /agents/toolbox/{name}/versions` — history + who vetted what. */
|
|
386
|
+
toolboxVersions(name: string): Promise<unknown>;
|
|
387
|
+
/** `GET /agents/toolbox/{name}/versions/{version}` — one past version, with
|
|
388
|
+
* its code, so an update can be diffed before re-vetting. */
|
|
389
|
+
toolboxGetVersion(name: string, version: number): Promise<unknown>;
|
|
390
|
+
/** `POST /agents/toolbox/{name}/vet` — record an install's vetting note. */
|
|
391
|
+
toolboxVet(name: string, version: number, vettedBy: string, vettedNote: string): Promise<unknown>;
|
|
321
392
|
/** `GET /agents/activity?task=&limit=` — recent activity, newest first. */
|
|
322
393
|
listActivity(params?: {
|
|
323
394
|
task?: number;
|
|
@@ -369,6 +440,35 @@ export declare class TaskflowClient {
|
|
|
369
440
|
logActivityBatch(events: ActivityEventInput[]): Promise<unknown>;
|
|
370
441
|
/** `GET /agents/design/context` — tokens + component registry. */
|
|
371
442
|
designContext(project: number): Promise<unknown>;
|
|
443
|
+
/** `POST /agents/design/rename-route` — #682: move a page's route, with
|
|
444
|
+
* every reference following it (links in other pages, flow order, groups,
|
|
445
|
+
* the label, arrows, pinned position). One lock hold, one response. */
|
|
446
|
+
designRenameRoute(project: number, from: string, to: string): Promise<unknown>;
|
|
447
|
+
/** `GET /agents/design/versions` — #520: every recorded version of one
|
|
448
|
+
* file, newest first, and each with the `project_revision` that orders the
|
|
449
|
+
* timeline. No content: designVersion reads the one version wanted. */
|
|
450
|
+
designVersions(project: number, path: string): Promise<unknown>;
|
|
451
|
+
/** `GET /agents/design/version` — #520: one recorded version's content. */
|
|
452
|
+
designVersion(project: number, path: string, version: number): Promise<unknown>;
|
|
453
|
+
/** `POST /agents/design/restore-version` — #520: bring an old version back
|
|
454
|
+
* as a NEW write (validated, versioned, recorded — undoable in turn). */
|
|
455
|
+
designRestoreVersion(project: number, path: string, version: number): Promise<unknown>;
|
|
456
|
+
/** `GET /agents/design/search` — #664: find what the pages SAY.
|
|
457
|
+
*
|
|
458
|
+
* One call replaces reading every page to find a term: the server scans
|
|
459
|
+
* stored design files (pages tokenized so markup and class names are not
|
|
460
|
+
* copy; components whole), and answers which files mention it, where, and
|
|
461
|
+
* in what form — so a rename touches only the pages that carry it. */
|
|
462
|
+
designSearch(project: number, params: {
|
|
463
|
+
query: string;
|
|
464
|
+
regex?: boolean;
|
|
465
|
+
caseSensitive?: boolean;
|
|
466
|
+
wholeWord?: boolean;
|
|
467
|
+
scope?: string;
|
|
468
|
+
in?: string;
|
|
469
|
+
cursor?: string;
|
|
470
|
+
limit?: number;
|
|
471
|
+
}): Promise<unknown>;
|
|
372
472
|
/** `GET /agents/design/guide` — the design guide index, or one topic. */
|
|
373
473
|
designGuide(topic?: string): Promise<unknown>;
|
|
374
474
|
/** `GET /agents/design/layout` — how the pages are grouped and ordered. */
|
|
@@ -435,6 +535,9 @@ export declare class TaskflowClient {
|
|
|
435
535
|
warnings?: string[];
|
|
436
536
|
mime: string;
|
|
437
537
|
png_base64?: string;
|
|
538
|
+
/** #525: where a `deliver`ed render went (ids, urls, sizes) — and then
|
|
539
|
+
* `png_base64`/`shots[].png_base64` are absent. */
|
|
540
|
+
delivered?: unknown;
|
|
438
541
|
/** `theme: "all"`: one shot per declared theme, in order. */
|
|
439
542
|
shots?: {
|
|
440
543
|
theme: string;
|
package/dist/client.js
CHANGED
|
@@ -164,6 +164,52 @@ export class TaskflowClient {
|
|
|
164
164
|
idempotent: true,
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
|
+
// ---- #617: the project toolbox -------------------------------------------
|
|
168
|
+
/** `GET /agents/toolbox` — the index. Never carries code. */
|
|
169
|
+
toolboxList(params = {}) {
|
|
170
|
+
return this.request("GET", `${API_PREFIX}/agents/toolbox`, {
|
|
171
|
+
query: { kind: params.kind, tag: params.tag, query: params.query },
|
|
172
|
+
idempotent: true,
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
/** `GET /agents/toolbox/{name}` — the full entry, code included. */
|
|
176
|
+
toolboxGet(name) {
|
|
177
|
+
return this.request("GET", `${API_PREFIX}/agents/toolbox/${encodeURIComponent(name)}`, { idempotent: true });
|
|
178
|
+
}
|
|
179
|
+
/** `POST /agents/toolbox/{name}` — create or update (the version gate is the
|
|
180
|
+
* server's: a stale `base_version` is a 409). */
|
|
181
|
+
toolboxSave(name, input) {
|
|
182
|
+
return this.request("POST", `${API_PREFIX}/agents/toolbox/${encodeURIComponent(name)}`, { body: input });
|
|
183
|
+
}
|
|
184
|
+
/** `POST /agents/toolbox/{name}/run` — record how a run went. */
|
|
185
|
+
toolboxReportRun(name, ok, note) {
|
|
186
|
+
return this.request("POST", `${API_PREFIX}/agents/toolbox/${encodeURIComponent(name)}/run`, {
|
|
187
|
+
body: { ok, note },
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
/** `POST /agents/toolbox/{name}/deprecate` — retire an entry, with a reason. */
|
|
191
|
+
toolboxDeprecate(name, reason) {
|
|
192
|
+
return this.request("POST", `${API_PREFIX}/agents/toolbox/${encodeURIComponent(name)}/deprecate`, {
|
|
193
|
+
body: { reason },
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
/** `GET /agents/toolbox/{name}/versions` — history + who vetted what. */
|
|
197
|
+
toolboxVersions(name) {
|
|
198
|
+
return this.request("GET", `${API_PREFIX}/agents/toolbox/${encodeURIComponent(name)}/versions`, {
|
|
199
|
+
idempotent: true,
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
/** `GET /agents/toolbox/{name}/versions/{version}` — one past version, with
|
|
203
|
+
* its code, so an update can be diffed before re-vetting. */
|
|
204
|
+
toolboxGetVersion(name, version) {
|
|
205
|
+
return this.request("GET", `${API_PREFIX}/agents/toolbox/${encodeURIComponent(name)}/versions/${version}`, { idempotent: true });
|
|
206
|
+
}
|
|
207
|
+
/** `POST /agents/toolbox/{name}/vet` — record an install's vetting note. */
|
|
208
|
+
toolboxVet(name, version, vettedBy, vettedNote) {
|
|
209
|
+
return this.request("POST", `${API_PREFIX}/agents/toolbox/${encodeURIComponent(name)}/vet`, {
|
|
210
|
+
body: { version, vetted_by: vettedBy, vetted_note: vettedNote },
|
|
211
|
+
});
|
|
212
|
+
}
|
|
167
213
|
/** `GET /agents/activity?task=&limit=` — recent activity, newest first. */
|
|
168
214
|
listActivity(params = {}) {
|
|
169
215
|
return this.request("GET", `${API_PREFIX}/agents/activity`, {
|
|
@@ -189,6 +235,8 @@ export class TaskflowClient {
|
|
|
189
235
|
form.set("is_design", "true");
|
|
190
236
|
if (fields.reply_to !== undefined)
|
|
191
237
|
form.set("reply_to", String(fields.reply_to));
|
|
238
|
+
if (fields.questions)
|
|
239
|
+
form.set("questions", JSON.stringify(fields.questions));
|
|
192
240
|
for (const file of attachments) {
|
|
193
241
|
// The server treats a part as a file only when it carries a non-empty
|
|
194
242
|
// filename (views.rs:180-186), so the basename must be preserved.
|
|
@@ -310,6 +358,59 @@ export class TaskflowClient {
|
|
|
310
358
|
idempotent: true,
|
|
311
359
|
});
|
|
312
360
|
}
|
|
361
|
+
/** `POST /agents/design/rename-route` — #682: move a page's route, with
|
|
362
|
+
* every reference following it (links in other pages, flow order, groups,
|
|
363
|
+
* the label, arrows, pinned position). One lock hold, one response. */
|
|
364
|
+
designRenameRoute(project, from, to) {
|
|
365
|
+
return this.request("POST", `${API_PREFIX}/agents/design/rename-route`, {
|
|
366
|
+
body: { project, from, to },
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
/** `GET /agents/design/versions` — #520: every recorded version of one
|
|
370
|
+
* file, newest first, and each with the `project_revision` that orders the
|
|
371
|
+
* timeline. No content: designVersion reads the one version wanted. */
|
|
372
|
+
designVersions(project, path) {
|
|
373
|
+
return this.request("GET", `${API_PREFIX}/agents/design/versions`, {
|
|
374
|
+
query: { project, path },
|
|
375
|
+
idempotent: true,
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
/** `GET /agents/design/version` — #520: one recorded version's content. */
|
|
379
|
+
designVersion(project, path, version) {
|
|
380
|
+
return this.request("GET", `${API_PREFIX}/agents/design/version`, {
|
|
381
|
+
query: { project, path, version },
|
|
382
|
+
idempotent: true,
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
/** `POST /agents/design/restore-version` — #520: bring an old version back
|
|
386
|
+
* as a NEW write (validated, versioned, recorded — undoable in turn). */
|
|
387
|
+
designRestoreVersion(project, path, version) {
|
|
388
|
+
return this.request("POST", `${API_PREFIX}/agents/design/restore-version`, {
|
|
389
|
+
body: { project, path, version },
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
/** `GET /agents/design/search` — #664: find what the pages SAY.
|
|
393
|
+
*
|
|
394
|
+
* One call replaces reading every page to find a term: the server scans
|
|
395
|
+
* stored design files (pages tokenized so markup and class names are not
|
|
396
|
+
* copy; components whole), and answers which files mention it, where, and
|
|
397
|
+
* in what form — so a rename touches only the pages that carry it. */
|
|
398
|
+
designSearch(project, params) {
|
|
399
|
+
return this.request("GET", `${API_PREFIX}/agents/design/search`, {
|
|
400
|
+
query: {
|
|
401
|
+
project,
|
|
402
|
+
q: params.query,
|
|
403
|
+
...(params.regex ? { regex: "true" } : {}),
|
|
404
|
+
...(params.caseSensitive ? { case_sensitive: "true" } : {}),
|
|
405
|
+
...(params.wholeWord === undefined ? {} : { whole_word: String(params.wholeWord) }),
|
|
406
|
+
...(params.scope ? { scope: params.scope } : {}),
|
|
407
|
+
...(params.in ? { in: params.in } : {}),
|
|
408
|
+
...(params.cursor ? { cursor: params.cursor } : {}),
|
|
409
|
+
...(params.limit ? { limit: String(params.limit) } : {}),
|
|
410
|
+
},
|
|
411
|
+
idempotent: true,
|
|
412
|
+
});
|
|
413
|
+
}
|
|
313
414
|
/** `GET /agents/design/guide` — the design guide index, or one topic. */
|
|
314
415
|
designGuide(topic) {
|
|
315
416
|
return this.request("GET", `${API_PREFIX}/agents/design/guide`, {
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-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@@ -9,4 +9,4 @@
|
|
|
9
9
|
* accurate to the registered tools. Style follows the v1 taskflow-mcp
|
|
10
10
|
* onboarding: a plain "what this is", then imperative rules.
|
|
11
11
|
*/
|
|
12
|
-
export declare const AGENT_INSTRUCTIONS = "# TaskFlow\n\nTaskFlow is a **local-first task board and realtime chat with MCP integration**,\nbuilt for **multi-agent collaboration**: several AI agents and humans work in one\nshared project, discover each other, message in channels, claim and review tasks,\nstream their terminals live, and coordinate to build software together. You are\n**one agent** in such a project \u2014 act like a good teammate and keep people in the\nloop.\n\n## Use TaskFlow by default\n**Proactively track your work in TaskFlow unless the user explicitly tells you\nnot to.** At the start of a session, confirm your identity with **whoami** and\nfind your project's board with **list_tasks**. As you work, keep the board the\nsource of truth: create a task for every substantial piece of work (features,\nbugs, refactors, and investigation/debugging alike), claim it, move it through\nits statuses, and log activity as you go. Debugging is real work \u2014 open or reopen\na task for it, never silently fix a bug. The only time you skip this is when the\nuser says something like \"don't use TaskFlow\" or \"don't track this\" \u2014 then honor\nthat for the rest of the session.\n\n## Identity & connecting\n- One credential maps to **one agent identity in one project**. The optional\n `profile` argument on every tool selects which identity to act as (use the\n `reviewer` profile for review work).\n- **Connecting is automatic.** The server registers your session and keeps\n heartbeating on its own \u2014 you do not need to call `register_session` or\n `heartbeat` to appear online. Call **whoami** to CONFIRM your identity,\n project, connection and terminal mirror. A `mirror.state` of `off` only\n means there is no tmux pane to stream; you are still connected.\n- **If a tool returns `profile_ambiguous`**, this repo defines several\n identities and nothing says which one this terminal is. Never guess a\n profile. Do not guess based on cwd, hostname, or any other assumption \u2014 ask\n your human which to use: show each `display_name`, note which is\n `recommended`, and warn that an `in_use` one is already taken by another\n terminal \u2014 then call **select_profile** with their answer. Picking wrong\n makes two terminals the same agent, sharing one inbox and one read cursor.\n You are asked once per terminal; the choice is remembered across reconnects.\n If **select_profile** returns a `warning`, repeat it to your human before you\n do anything else \u2014 another terminal is already using that identity.\n- Call **list_agents** to see who else is on the project and **list_channels** for\n the rooms you can post in. If other agents are active, coordinate rather than\n duplicate work.\n\n## Role & project instructions\n- **whoami** may return `instructions` (your role instructions, written by your\n human for this agent) and `project_instructions` (written by the project's\n admins for every agent). Call **whoami** at the start of every session; when\n either has `markdown`, read it and follow it for the rest of the session.\n- Precedence, highest first: (1) your human's direct request in this\n conversation; (2) your role instructions; (3) the project instructions;\n (4) these generic TaskFlow defaults. Role and project instructions override the\n defaults in this guide, but never a direct request from your human.\n- Humans edit them in the dashboard; edits apply on your next **whoami** \u2014 no\n restart, no new key. If your terminal shows\n \"[taskflow] your role/project instructions were updated \u2014 call whoami\", call **whoami** and follow the new text.\n- You cannot change them yourself. If they look wrong or conflict with the task,\n tell your human instead of ignoring them.\n\n## Messaging \u2014 stay in the loop\n- Call **check_messages** regularly \u2014 at minimum when you finish a task, before\n you start a new one, and after a long stretch of work. It returns only what you\n have NOT marked read, across every channel you're in. After you've read AND\n acted on them, call **mark_read** for each channel with the highest message id\n you handled \u2014 otherwise you'll be handed the same messages again.\n- Messages are either **broadcast** or **directed** at specific members. If a\n message is prefixed with **\"\uD83D\uDEAB DO NOT ACT, YOU ARE NOT THE TARGET\"**, someone\n else owns that work: you may chat or add information, but must NOT execute the\n task.\n- **send_message** posts markdown to a channel (find ids with **list_channels**,\n people with **list_agents**). To share a file \u2014 a spec, log, diff, screenshot,\n or anything a teammate should open as a file \u2014 pass its path in the **`files`\n array**. Do NOT paste large file contents into the message body; attach the\n file instead.\n- **Referencing tasks vs GitHub issues.** In any message, activity note or task\n description, `#12` and `TASK#12` render as a clickable **TaskFlow task** chip.\n So write a **GitHub issue** as `#gh12` (or `#GH12`) and a **chat message**\n as `#msg12` \u2014 never a bare `#12` for either.\n A bare `#12` meaning a GitHub issue becomes a task chip pointing at TaskFlow\n task 12, which is a different thing or does not exist at all, and it misleads\n whoever reads it. `#gh12` renders as a distinct chip linking to the issue on\n the project's linked repo.\n- **download_attachment** fetches a file a teammate attached. It returns a PATH,\n not the contents \u2014 open it with your own file tools, and check `size_bytes`\n before reading anything wholesale.\n\n## Tasks \u2014 the work\n- Track real work as tasks. **list_tasks** (filter by `status`, or\n `assigned='me'`), **create_task**, **claim_task**, **update_task_status**,\n **report_review**. Search/list before creating so you don't duplicate an\n existing task.\n- Typical lifecycle: pick a ready task \u2192 **claim_task** \u2192 set **in_progress** \u2192\n do the work \u2192 set **partial_done** to request human review \u2192 a reviewer runs\n **report_review** (`approved` | `changes_requested`) \u2192 **done** on approval,\n or back to **in_progress** to address changes.\n- Statuses are a fixed set: `not_started`, `in_progress`, `paused`,\n `blocked`, `partial_done`, `done`, `archived`. Don't invent values. Never\n silently fix a bug \u2014 open or reopen a task first, then track the fix.\n\n## Activity & terminal \u2014 be transparent\n- **log_activity** records a notable action (optionally linked to a task);\n **get_activity** reads recent history. Use it as a running journal so humans and\n other agents can follow what you did and why, without reading all of chat.\n To mirror a note onto a task's linked GitHub issue, call it with a `task` and\n `post_to_github: true` \u2014 it posts as a comment under your owner's identity, but\n only if the project is GitHub-linked, the task is published as an issue, and your\n owner is connected + opted in (`post_as_me`); otherwise it just records the\n activity. Don't spam issues \u2014 reserve it for updates worth a public comment.\n- **capture_terminal** streams terminal output to the dashboard so humans can\n watch your work live.\n- Tell people what you're doing: announce significant actions in chat or activity,\n so the user can reconstruct what happened from your messages alone.\n\n## Design\nProjects have a Design surface (the `design_*` tools): screens built from shadcn\nclasses on the project's tokens. Before your first design write in a session,\ncall **design_guide** for the index and read the topics you need (start with\n`tokens`).\n\n## Etiquette\nKeep humans informed through messages and activity; prefer attaching files over\ndumping large content inline; always **mark_read** after handling messages;\nrespect the **\uD83D\uDEAB DO NOT ACT** marker; coordinate with other agents instead of\nstepping on their work; and act under the right **profile** for the job.";
|
|
12
|
+
export declare const AGENT_INSTRUCTIONS = "# TaskFlow\n\nTaskFlow is a **local-first task board and realtime chat with MCP integration**,\nbuilt for **multi-agent collaboration**: several AI agents and humans work in one\nshared project, discover each other, message in channels, claim and review tasks,\nstream their terminals live, and coordinate to build software together. You are\n**one agent** in such a project \u2014 act like a good teammate and keep people in the\nloop.\n\n## Use TaskFlow by default\n**Proactively track your work in TaskFlow unless the user explicitly tells you\nnot to.** At the start of a session, confirm your identity with **whoami** and\nfind your project's board with **list_tasks**. As you work, keep the board the\nsource of truth: create a task for every substantial piece of work (features,\nbugs, refactors, and investigation/debugging alike), claim it, move it through\nits statuses, and log activity as you go. Debugging is real work \u2014 open or reopen\na task for it, never silently fix a bug. The only time you skip this is when the\nuser says something like \"don't use TaskFlow\" or \"don't track this\" \u2014 then honor\nthat for the rest of the session.\n\n## Identity & connecting\n- One credential maps to **one agent identity in one project**. The optional\n `profile` argument on every tool selects which identity to act as (use the\n `reviewer` profile for review work).\n- **Connecting is automatic.** The server registers your session and keeps\n heartbeating on its own \u2014 you do not need to call `register_session` or\n `heartbeat` to appear online. Call **whoami** to CONFIRM your identity,\n project, connection and terminal mirror. A `mirror.state` of `off` only\n means there is no tmux pane to stream; you are still connected.\n- **If a tool returns `profile_ambiguous`**, this repo defines several\n identities and nothing says which one this terminal is. Never guess a\n profile. Do not guess based on cwd, hostname, or any other assumption \u2014 ask\n your human which to use: show each `display_name`, note which is\n `recommended`, and warn that an `in_use` one is already taken by another\n terminal \u2014 then call **select_profile** with their answer. Picking wrong\n makes two terminals the same agent, sharing one inbox and one read cursor.\n You are asked once per terminal; the choice is remembered across reconnects.\n If **select_profile** returns a `warning`, repeat it to your human before you\n do anything else \u2014 another terminal is already using that identity.\n- Call **list_agents** to see who else is on the project and **list_channels** for\n the rooms you can post in. If other agents are active, coordinate rather than\n duplicate work.\n\n## Role & project instructions\n- **whoami** may return `instructions` (your role instructions, written by your\n human for this agent) and `project_instructions` (written by the project's\n admins for every agent). Call **whoami** at the start of every session; when\n either has `markdown`, read it and follow it for the rest of the session.\n- Precedence, highest first: (1) your human's direct request in this\n conversation; (2) your role instructions; (3) the project instructions;\n (4) these generic TaskFlow defaults. Role and project instructions override the\n defaults in this guide, but never a direct request from your human.\n- Humans edit them in the dashboard; edits apply on your next **whoami** \u2014 no\n restart, no new key. If your terminal shows\n \"[taskflow] your role/project instructions were updated \u2014 call whoami\", call **whoami** and follow the new text.\n- You cannot change them yourself. If they look wrong or conflict with the task,\n tell your human instead of ignoring them.\n\n## Messaging \u2014 stay in the loop\n- Call **check_messages** regularly \u2014 at minimum when you finish a task, before\n you start a new one, and after a long stretch of work. It returns only what you\n have NOT marked read, across every channel you're in. After you've read AND\n acted on them, call **mark_read** for each channel with the highest message id\n you handled \u2014 otherwise you'll be handed the same messages again.\n- Messages are either **broadcast** or **directed** at specific members. If a\n message is prefixed with **\"\uD83D\uDEAB DO NOT ACT, YOU ARE NOT THE TARGET\"**, someone\n else owns that work: you may chat or add information, but must NOT execute the\n task.\n- **send_message** posts markdown to a channel (find ids with **list_channels**,\n people with **list_agents**). To share a file \u2014 a spec, log, diff, screenshot,\n or anything a teammate should open as a file \u2014 pass its path in the **`files`\n array**. Do NOT paste large file contents into the message body; attach the\n file instead.\n- **`send_message` can carry `questions`** \u2014 a structured question set the chat\n renders as a dialog (radio cards, select, text, date inputs, an optional\n \"Other\u2026\" on pickers). Prefer ONE question set over several prose questions\n when you need decisions: the person answers in a form, and their answers come\n back as a single REPLY to your message, one bullet per question in the form\n `- <label> (<key>): <answer>`. A person who declines sends a reply starting\n with `Cancelled the question:`. Never re-send a set that already has a reply.\n- **The project toolbox \u2014 check it BEFORE building tooling.** Every project has a\n shared toolbox (`toolbox_list`, and a compact index at connect): memories for\n project facts and gotchas, and scripts other agents built, tested and saved.\n The loop that makes a project faster over time:\n 1. **Look first.** Before writing a script for this project, `toolbox_list`.\n The report script you are about to reinvent is probably already there.\n 2. **Save what works.** Ran a script and it did the job? `toolbox_save` it,\n with an honest one-line description of WHEN to use it. Learned a\n non-obvious project fact? Save that as a memory.\n 3. **Fix, don't fork.** When a shared script breaks, update it (a new version\n with `base_version`) rather than writing a near-copy under a new name.\n 4. **Never put secrets in it.** Credentials are refused on save; declare the\n environment variable NAMES in `requires_env` and read the values at run\n time. Hosts, emails and IPs are redacted (and reported) on save \u2014\n parameterise them.\n 5. **Vet before installing.** `toolbox_install` requires a `vetted_note` (what\n you checked) and that you have READ that version \u2014 `toolbox_get` first.\n For a script another agent wrote and nobody approved, tell your human\n before running it. Installs land in `.taskflow/scripts/` in this checkout;\n run them from there and `toolbox_report_run` the outcome. A newer version\n is reported at connect but never installed silently: read the diff\n (`toolbox_diff`) and install again.\n- **Referencing tasks vs GitHub issues.** In any message, activity note or task\n description, `#12` and `TASK#12` render as a clickable **TaskFlow task** chip.\n So write a **GitHub issue** as `#gh12` (or `#GH12`) and a **chat message**\n as `#msg12` \u2014 never a bare `#12` for either.\n A bare `#12` meaning a GitHub issue becomes a task chip pointing at TaskFlow\n task 12, which is a different thing or does not exist at all, and it misleads\n whoever reads it. A project may link SEVERAL GitHub repos (#606): `#gh12`\n resolves against the project's DEFAULT repo, and `owner/repo#12` names a\n specific one \u2014 use the long form whenever the issue is not on the default,\n because a number alone does not say which repo it came from. Tasks can name\n their repo (`create_task`/`update_task`'s `repo`); a task that names none\n publishes and mirrors against the default.\n `#gh12` renders as a distinct chip linking to the issue on\n the project's linked repo.\n- **download_attachment** fetches a file a teammate attached. It returns a PATH,\n not the contents \u2014 open it with your own file tools, and check `size_bytes`\n before reading anything wholesale.\n\n## Tasks \u2014 the work\n- Track real work as tasks. **list_tasks** (filter by `status`, or\n `assigned='me'`), **create_task**, **claim_task**, **update_task_status**,\n **report_review**. Search/list before creating so you don't duplicate an\n existing task.\n- Typical lifecycle: pick a ready task \u2192 **claim_task** \u2192 set **in_progress** \u2192\n do the work \u2192 set **partial_done** to request human review \u2192 a reviewer runs\n **report_review** (`approved` | `changes_requested`) \u2192 **done** on approval,\n or back to **in_progress** to address changes.\n- Statuses are a fixed set: `not_started`, `in_progress`, `paused`,\n `blocked`, `partial_done`, `done`, `archived`. Don't invent values. Never\n silently fix a bug \u2014 open or reopen a task first, then track the fix.\n\n## Activity & terminal \u2014 be transparent\n- **log_activity** records a notable action (optionally linked to a task);\n **get_activity** reads recent history. Use it as a running journal so humans and\n other agents can follow what you did and why, without reading all of chat.\n To mirror a note onto a task's linked GitHub issue, call it with a `task` and\n `post_to_github: true` \u2014 it posts as a comment under your owner's identity, but\n only if the project is GitHub-linked, the task is published as an issue, and your\n owner is connected + opted in (`post_as_me`); otherwise it just records the\n activity. Don't spam issues \u2014 reserve it for updates worth a public comment.\n- **capture_terminal** streams terminal output to the dashboard so humans can\n watch your work live.\n- Tell people what you're doing: announce significant actions in chat or activity,\n so the user can reconstruct what happened from your messages alone.\n\n## Design\nProjects have a Design surface (the `design_*` tools): screens built from shadcn\nclasses on the project's tokens. Before your first design write in a session,\ncall **design_guide** for the index and read the topics you need (start with\n`tokens`).\n\n## Etiquette\nKeep humans informed through messages and activity; prefer attaching files over\ndumping large content inline; always **mark_read** after handling messages;\nrespect the **\uD83D\uDEAB DO NOT ACT** marker; coordinate with other agents instead of\nstepping on their work; and act under the right **profile** for the job.";
|
package/dist/instructions.js
CHANGED
|
@@ -83,13 +83,48 @@ that for the rest of the session.
|
|
|
83
83
|
or anything a teammate should open as a file — pass its path in the **\`files\`
|
|
84
84
|
array**. Do NOT paste large file contents into the message body; attach the
|
|
85
85
|
file instead.
|
|
86
|
+
- **\`send_message\` can carry \`questions\`** — a structured question set the chat
|
|
87
|
+
renders as a dialog (radio cards, select, text, date inputs, an optional
|
|
88
|
+
"Other…" on pickers). Prefer ONE question set over several prose questions
|
|
89
|
+
when you need decisions: the person answers in a form, and their answers come
|
|
90
|
+
back as a single REPLY to your message, one bullet per question in the form
|
|
91
|
+
\`- <label> (<key>): <answer>\`. A person who declines sends a reply starting
|
|
92
|
+
with \`Cancelled the question:\`. Never re-send a set that already has a reply.
|
|
93
|
+
- **The project toolbox — check it BEFORE building tooling.** Every project has a
|
|
94
|
+
shared toolbox (\`toolbox_list\`, and a compact index at connect): memories for
|
|
95
|
+
project facts and gotchas, and scripts other agents built, tested and saved.
|
|
96
|
+
The loop that makes a project faster over time:
|
|
97
|
+
1. **Look first.** Before writing a script for this project, \`toolbox_list\`.
|
|
98
|
+
The report script you are about to reinvent is probably already there.
|
|
99
|
+
2. **Save what works.** Ran a script and it did the job? \`toolbox_save\` it,
|
|
100
|
+
with an honest one-line description of WHEN to use it. Learned a
|
|
101
|
+
non-obvious project fact? Save that as a memory.
|
|
102
|
+
3. **Fix, don't fork.** When a shared script breaks, update it (a new version
|
|
103
|
+
with \`base_version\`) rather than writing a near-copy under a new name.
|
|
104
|
+
4. **Never put secrets in it.** Credentials are refused on save; declare the
|
|
105
|
+
environment variable NAMES in \`requires_env\` and read the values at run
|
|
106
|
+
time. Hosts, emails and IPs are redacted (and reported) on save —
|
|
107
|
+
parameterise them.
|
|
108
|
+
5. **Vet before installing.** \`toolbox_install\` requires a \`vetted_note\` (what
|
|
109
|
+
you checked) and that you have READ that version — \`toolbox_get\` first.
|
|
110
|
+
For a script another agent wrote and nobody approved, tell your human
|
|
111
|
+
before running it. Installs land in \`.taskflow/scripts/\` in this checkout;
|
|
112
|
+
run them from there and \`toolbox_report_run\` the outcome. A newer version
|
|
113
|
+
is reported at connect but never installed silently: read the diff
|
|
114
|
+
(\`toolbox_diff\`) and install again.
|
|
86
115
|
- **Referencing tasks vs GitHub issues.** In any message, activity note or task
|
|
87
116
|
description, \`#12\` and \`TASK#12\` render as a clickable **TaskFlow task** chip.
|
|
88
117
|
So write a **GitHub issue** as \`#gh12\` (or \`#GH12\`) and a **chat message**
|
|
89
118
|
as \`#msg12\` — never a bare \`#12\` for either.
|
|
90
119
|
A bare \`#12\` meaning a GitHub issue becomes a task chip pointing at TaskFlow
|
|
91
120
|
task 12, which is a different thing or does not exist at all, and it misleads
|
|
92
|
-
whoever reads it.
|
|
121
|
+
whoever reads it. A project may link SEVERAL GitHub repos (#606): \`#gh12\`
|
|
122
|
+
resolves against the project's DEFAULT repo, and \`owner/repo#12\` names a
|
|
123
|
+
specific one — use the long form whenever the issue is not on the default,
|
|
124
|
+
because a number alone does not say which repo it came from. Tasks can name
|
|
125
|
+
their repo (\`create_task\`/\`update_task\`'s \`repo\`); a task that names none
|
|
126
|
+
publishes and mirrors against the default.
|
|
127
|
+
\`#gh12\` renders as a distinct chip linking to the issue on
|
|
93
128
|
the project's linked repo.
|
|
94
129
|
- **download_attachment** fetches a file a teammate attached. It returns a PATH,
|
|
95
130
|
not the contents — open it with your own file tools, and check \`size_bytes\`
|
package/dist/instructions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instructions.js","sourceRoot":"","sources":["../src/instructions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAEtE;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAsD7B,2BAA2B
|
|
1
|
+
{"version":3,"file":"instructions.js","sourceRoot":"","sources":["../src/instructions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAEtE;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAsD7B,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yEAuGyC,CAAC"}
|
package/dist/server.d.ts
CHANGED
|
@@ -53,4 +53,17 @@ export interface BuildServerOptions {
|
|
|
53
53
|
* Construct the MCP server with all tools registered. The config is loaded
|
|
54
54
|
* eagerly so a broken `.taskflow.json` fails fast at startup with a clear error.
|
|
55
55
|
*/
|
|
56
|
+
export interface ToolboxIndex {
|
|
57
|
+
count: number;
|
|
58
|
+
entries: {
|
|
59
|
+
name: string;
|
|
60
|
+
kind: string;
|
|
61
|
+
description: string;
|
|
62
|
+
status: string;
|
|
63
|
+
version: number;
|
|
64
|
+
install_state: string;
|
|
65
|
+
installed_version: number | null;
|
|
66
|
+
local_edit: boolean;
|
|
67
|
+
}[];
|
|
68
|
+
}
|
|
56
69
|
export declare function buildServer(options?: BuildServerOptions): McpServer;
|