@eve/board 0.1.0 → 0.2.1
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/extension/_manifest.json +1 -1
- package/dist/extension/extension.d.ts +32 -4
- package/dist/extension/extension.mjs +73 -4
- package/dist/extension/instructions/boards.d.ts +2 -0
- package/dist/extension/instructions/boards.mjs +14 -0
- package/dist/extension/lib/authorize.d.ts +27 -0
- package/dist/extension/lib/authorize.mjs +7 -0
- package/dist/extension/lib/board-channel.d.ts +13 -1
- package/dist/extension/lib/board-channel.mjs +84 -34
- package/dist/extension/lib/boards.d.ts +28 -0
- package/dist/extension/lib/boards.mjs +103 -0
- package/dist/extension/lib/channel.d.ts +1 -0
- package/dist/extension/lib/client.d.ts +5 -1
- package/dist/extension/lib/client.mjs +25 -11
- package/dist/extension/lib/inbound.d.ts +9 -7
- package/dist/extension/lib/inbound.mjs +43 -15
- package/dist/extension/lib/route.d.ts +5 -0
- package/dist/extension/lib/route.mjs +23 -0
- package/dist/extension/lib/tools.d.ts +45 -1
- package/dist/extension/lib/tools.mjs +173 -65
- package/dist/extension/lib/watches.d.ts +11 -5
- package/dist/extension/lib/watches.mjs +62 -28
- package/dist/extension/skills/collaborate/SKILL.md +16 -5
- package/dist/extension/tools/actors.d.ts +1 -0
- package/dist/extension/tools/block_task.d.ts +1 -1
- package/dist/extension/tools/cancel_schedule.d.ts +1 -0
- package/dist/extension/tools/channels.d.ts +3 -1
- package/dist/extension/tools/complete_task.d.ts +1 -1
- package/dist/extension/tools/create_task.d.ts +1 -0
- package/dist/extension/tools/fail_task.d.ts +1 -1
- package/dist/extension/tools/label.d.ts +1 -0
- package/dist/extension/tools/note.d.ts +1 -0
- package/dist/extension/tools/post.d.ts +2 -0
- package/dist/extension/tools/react.d.ts +2 -0
- package/dist/extension/tools/read.d.ts +8 -0
- package/dist/extension/tools/reply.d.ts +2 -0
- package/dist/extension/tools/schedule.d.ts +1 -0
- package/dist/extension/tools/schedules.d.ts +1 -0
- package/dist/extension/tools/unwatch.d.ts +1 -0
- package/dist/extension/tools/watch.d.ts +7 -0
- package/dist/extension/tools/watches.d.ts +13 -0
- package/package.json +4 -4
|
@@ -4,15 +4,16 @@ import { createRequire as __eveCreateRequire } from "node:module";
|
|
|
4
4
|
const __filename = __eveFileURLToPath(import.meta.url);
|
|
5
5
|
__eveDirname(__filename);
|
|
6
6
|
__eveCreateRequire(import.meta.url);
|
|
7
|
+
import { DEFAULT_WATCH_CHANNEL } from "./boards.mjs";
|
|
7
8
|
import { BOARD_CHANNEL_SELECTOR, BOARD_NAME_PATTERN, BOARD_TAIL_LIMIT, BOARD_TEXT_LIMIT, boardAllows, boardErrorCode, createBoardClient } from "./client.mjs";
|
|
9
|
+
import { BOARD_WAKE_ROUTE, DEFAULT_BOARD_ROUTE_BASE, LEGACY_BOARD_WAKE_ROUTE, normalizeBoardRouteBase } from "./route.mjs";
|
|
8
10
|
import { createHash } from "node:crypto";
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
const BOARD_WAKE_ROUTE = `${BOARD_ROUTE_BASE}/wake`;
|
|
12
|
-
const MAX_WATCHES = 32;
|
|
11
|
+
import { publicRoutePath } from "eve/channels";
|
|
12
|
+
const MAX_WATCHES = 64;
|
|
13
13
|
const WATCH_LABEL = "eve-watch";
|
|
14
14
|
const STATE_LABEL = "eve-watch-state";
|
|
15
15
|
const LOCK_LABEL = "eve-lock";
|
|
16
|
+
const LOCK_CLIENT_ID = "eve-watch-lock";
|
|
16
17
|
const LOCK_LEASE_SECONDS = 30;
|
|
17
18
|
const LOCK_WAIT_MS = 3e4;
|
|
18
19
|
var BoardWatchConfigError = class extends Error {
|
|
@@ -130,12 +131,11 @@ async function findWatchRecord(input) {
|
|
|
130
131
|
retired: message.labels[STATE_LABEL] === "retired"
|
|
131
132
|
};
|
|
132
133
|
}
|
|
133
|
-
function registrationWhere(discovery) {
|
|
134
|
+
function registrationWhere(discovery, routeBase = DEFAULT_BOARD_ROUTE_BASE) {
|
|
134
135
|
const { env } = process;
|
|
135
136
|
const environment = env.VERCEL_ENV;
|
|
136
137
|
if (environment !== "production" && environment !== "preview") return { url: null };
|
|
137
|
-
const
|
|
138
|
-
const base = `${prefix === "" || prefix.startsWith("/") ? prefix : `/${prefix}`}${BOARD_ROUTE_BASE}`;
|
|
138
|
+
const base = publicRoutePath(normalizeBoardRouteBase(routeBase));
|
|
139
139
|
if (discovery.wake_by_path === true) return {
|
|
140
140
|
branch: environment === "preview" ? env.VERCEL_GIT_COMMIT_REF ?? null : null,
|
|
141
141
|
path: base,
|
|
@@ -150,8 +150,8 @@ async function heldRegistration(client) {
|
|
|
150
150
|
return registrations.find((registration) => registration.owner === me.principal);
|
|
151
151
|
}
|
|
152
152
|
const localLocks = new Map();
|
|
153
|
-
async function withRegistrationLock(client, watchChannel, run) {
|
|
154
|
-
const key = `${
|
|
153
|
+
async function withRegistrationLock(client, watchChannel, boardKey, run) {
|
|
154
|
+
const key = `${boardKey}\n${client.profile}`;
|
|
155
155
|
const turn = (localLocks.get(key) ?? Promise.resolve()).catch(() => {}).then(async () => {
|
|
156
156
|
const claim = await claimLock(client, await lockTask(client, watchChannel));
|
|
157
157
|
try {
|
|
@@ -167,20 +167,33 @@ async function withRegistrationLock(client, watchChannel, run) {
|
|
|
167
167
|
if (localLocks.get(key) === turn) localLocks.delete(key);
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
+
const REUSED_CLIENT_ID = new Set(["client_id_taken", "duplicate_id"]);
|
|
170
171
|
async function lockTask(client, watchChannel) {
|
|
171
|
-
const
|
|
172
|
-
const
|
|
173
|
-
if (
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
172
|
+
const lock = await existingLock(client) ?? await createLock(client, watchChannel);
|
|
173
|
+
const state = lock.task?.state;
|
|
174
|
+
if (state !== "ready" && state !== "claimed") throw new Error(`The board task that serializes this agent's watch changes, #${lock.id} in "${lock.channel}", is ${state ?? "not a task"}. Reopen it so watches can change again.`);
|
|
175
|
+
return lock.id;
|
|
176
|
+
}
|
|
177
|
+
async function existingLock(client) {
|
|
178
|
+
try {
|
|
179
|
+
return await client.posted(LOCK_CLIENT_ID);
|
|
180
|
+
} catch (error) {
|
|
181
|
+
if (boardErrorCode(error) !== "post_not_found") throw error;
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
async function createLock(client, watchChannel) {
|
|
186
|
+
try {
|
|
187
|
+
return await client.createTask(watchChannel, {
|
|
188
|
+
id: LOCK_CLIENT_ID,
|
|
189
|
+
labels: { [LOCK_LABEL]: "registration" },
|
|
190
|
+
noSync: true,
|
|
191
|
+
text: "eve holds this task while it changes its board watches, so two changes never overwrite each other. Leave it open."
|
|
192
|
+
});
|
|
193
|
+
} catch (error) {
|
|
194
|
+
if (!REUSED_CLIENT_ID.has(boardErrorCode(error) ?? "")) throw error;
|
|
195
|
+
return await client.posted(LOCK_CLIENT_ID);
|
|
177
196
|
}
|
|
178
|
-
return (await client.createTask(watchChannel, {
|
|
179
|
-
id: "eve-watch-lock",
|
|
180
|
-
labels: { [LOCK_LABEL]: "registration" },
|
|
181
|
-
noSync: true,
|
|
182
|
-
text: "eve holds this task while it changes its board watches, so two changes never overwrite each other. Leave it open."
|
|
183
|
-
})).id;
|
|
184
197
|
}
|
|
185
198
|
async function claimLock(client, taskId) {
|
|
186
199
|
const deadline = Date.now() + LOCK_WAIT_MS;
|
|
@@ -192,15 +205,32 @@ async function claimLock(client, taskId) {
|
|
|
192
205
|
await new Promise((resolve) => setTimeout(resolve, 200 + Math.random() * 600));
|
|
193
206
|
}
|
|
194
207
|
}
|
|
208
|
+
function isVercelDeployment() {
|
|
209
|
+
const environment = process.env.VERCEL_ENV;
|
|
210
|
+
return environment === "production" || environment === "preview";
|
|
211
|
+
}
|
|
212
|
+
function registrationDestinationChanged(held, desired) {
|
|
213
|
+
if (held === void 0) return false;
|
|
214
|
+
return (held.path ?? null) !== (desired.path ?? null) || (held.branch ?? null) !== (desired.branch ?? null) || (held.url ?? null) !== (desired.url ?? null);
|
|
215
|
+
}
|
|
195
216
|
async function updateRegistration(input) {
|
|
196
217
|
const { client } = input;
|
|
197
|
-
return await withRegistrationLock(client, input.watchChannel, async () => {
|
|
218
|
+
return await withRegistrationLock(client, input.watchChannel, input.boardKey ?? "default", async () => {
|
|
198
219
|
const held = await heldRegistration(client);
|
|
199
220
|
const watch = { ...held?.watch };
|
|
200
|
-
|
|
221
|
+
const watchChanged = input.change(watch);
|
|
222
|
+
const desired = isVercelDeployment() ? registrationWhere(await client.discovery(), input.routeBase) : void 0;
|
|
223
|
+
const destinationChanged = desired !== void 0 && registrationDestinationChanged(held, desired);
|
|
224
|
+
if (!watchChanged && !destinationChanged) return held;
|
|
225
|
+
const where = desired ?? (held !== void 0 ? {
|
|
226
|
+
branch: held.branch ?? null,
|
|
227
|
+
path: held.path ?? null,
|
|
228
|
+
url: held.url ?? null
|
|
229
|
+
} : registrationWhere(await client.discovery(), input.routeBase));
|
|
201
230
|
try {
|
|
202
231
|
return await client.register({
|
|
203
|
-
...
|
|
232
|
+
...where,
|
|
233
|
+
...held?.sync !== void 0 && { sync: held.sync },
|
|
204
234
|
watch
|
|
205
235
|
});
|
|
206
236
|
} catch (error) {
|
|
@@ -215,7 +245,7 @@ async function createWatch(input) {
|
|
|
215
245
|
if (text.length > 1e4) throw new Error(`These watch instructions are too long to store: shorten them by ${text.length - BOARD_TEXT_LIMIT} characters.`);
|
|
216
246
|
if (tail.length > 1e3) throw new Error(`This watch's filters are too long for the board: shorten them by ${tail.length - BOARD_TAIL_LIMIT} characters.`);
|
|
217
247
|
const held = await heldRegistration(client);
|
|
218
|
-
if (held?.watch[id] === void 0 && Object.keys(held?.watch ?? {}).length >=
|
|
248
|
+
if (held?.watch[id] === void 0 && Object.keys(held?.watch ?? {}).length >= 64) throw tooManyWatches();
|
|
219
249
|
const record = await client.post(input.watchChannel, {
|
|
220
250
|
id: `eve-watch-${id}`,
|
|
221
251
|
labels: { [WATCH_LABEL]: id },
|
|
@@ -224,10 +254,12 @@ async function createWatch(input) {
|
|
|
224
254
|
});
|
|
225
255
|
try {
|
|
226
256
|
await updateRegistration({
|
|
257
|
+
boardKey: input.boardKey,
|
|
227
258
|
client,
|
|
259
|
+
routeBase: input.routeBase,
|
|
228
260
|
watchChannel: input.watchChannel,
|
|
229
261
|
change(watch) {
|
|
230
|
-
if (watch[id] === void 0 && Object.keys(watch).length >=
|
|
262
|
+
if (watch[id] === void 0 && Object.keys(watch).length >= 64) throw tooManyWatches();
|
|
231
263
|
watch[id] = { tail };
|
|
232
264
|
return true;
|
|
233
265
|
}
|
|
@@ -245,7 +277,7 @@ async function createWatch(input) {
|
|
|
245
277
|
};
|
|
246
278
|
}
|
|
247
279
|
function tooManyWatches() {
|
|
248
|
-
return new Error(`This agent already has
|
|
280
|
+
return new Error(`This agent already has 64 board watches, the most one deployment can register. Remove one first.`);
|
|
249
281
|
}
|
|
250
282
|
async function listWatches(input) {
|
|
251
283
|
const { client } = input;
|
|
@@ -289,7 +321,9 @@ async function removeWatch(input) {
|
|
|
289
321
|
assertWatchId(id);
|
|
290
322
|
let removed = false;
|
|
291
323
|
await updateRegistration({
|
|
324
|
+
boardKey: input.boardKey,
|
|
292
325
|
client,
|
|
326
|
+
routeBase: input.routeBase,
|
|
293
327
|
watchChannel: input.watchChannel,
|
|
294
328
|
change(watch) {
|
|
295
329
|
removed = watch[id] !== void 0;
|
|
@@ -307,4 +341,4 @@ async function removeWatch(input) {
|
|
|
307
341
|
removed
|
|
308
342
|
};
|
|
309
343
|
}
|
|
310
|
-
export { BOARD_WAKE_ROUTE, BoardWatchConfigError, DEFAULT_WATCH_CHANNEL, MAX_WATCHES, assertWatchId, boardClients, checkQueueScope, checkWatchScope, coversChannel, createWatch, findWatchRecord, heldRegistration, listWatches, registrationWhere, removeWatch, tailOf, watchIdOf, watchRecordText };
|
|
344
|
+
export { BOARD_WAKE_ROUTE, BoardWatchConfigError, DEFAULT_BOARD_ROUTE_BASE, DEFAULT_WATCH_CHANNEL, LEGACY_BOARD_WAKE_ROUTE, MAX_WATCHES, assertWatchId, boardClients, checkQueueScope, checkWatchScope, coversChannel, createWatch, findWatchRecord, heldRegistration, listWatches, registrationWhere, removeWatch, tailOf, watchIdOf, watchRecordText };
|
|
@@ -7,6 +7,14 @@ description: How to work on a shared team board, which may sync to Slack, GitHub
|
|
|
7
7
|
|
|
8
8
|
The board is where your team, and other agents, discuss work in channels and threads and hand each other tasks. What you post there can sync to Slack, GitHub, or Linear threads, so people outside the board may read it.
|
|
9
9
|
|
|
10
|
+
## Multiple boards
|
|
11
|
+
|
|
12
|
+
When this agent is configured with multiple boards, your instructions list their keys and names:
|
|
13
|
+
|
|
14
|
+
- Inside a session a board started, your replies stay on that board and every board tool (including `watches`) defaults to it.
|
|
15
|
+
- Outside a board session, pass `board` with the board's key to pick which board to read, post to, watch, or manage.
|
|
16
|
+
- Outside a board session, call `watches` with no `board` to list every authorized board's watches grouped by board, or pass `board` for one board's watches.
|
|
17
|
+
|
|
10
18
|
## Before you post
|
|
11
19
|
|
|
12
20
|
- Read before you join. Use `read` with `id` for a whole thread, with `link` when someone shares a Slack or GitHub link, or with `channel` to find the discussion that fits. The board has no search, so read the channel something would be in, and pass a read's `cursor` back as `after` to see only what's new. Don't repeat what a thread already says.
|
|
@@ -27,13 +35,16 @@ The board is where your team, and other agents, discuss work in channels and thr
|
|
|
27
35
|
|
|
28
36
|
## Watch the board
|
|
29
37
|
|
|
30
|
-
You wake only for your watches. When someone asks you to keep an eye on a channel and act on what's posted there,
|
|
38
|
+
You wake only for your watches. When someone asks you to keep an eye on a channel and act on what's posted there, prepare the watch before calling `watch`:
|
|
39
|
+
|
|
40
|
+
1. **Check what exists:** list `channels` if you're unsure of the channel path, and check `watches` so you don't duplicate an existing watch.
|
|
41
|
+
2. **Confirm mode when unclear:** if the request doesn't say, ask whether this is a **conversational watch** (reply in matching threads) or a **task-claim watch** (`claim`, taking ready tasks from a queue and settling them).
|
|
42
|
+
3. **Confirm scope and owners:** narrow `channel` (one channel such as `incidents`, or a subtree such as `work/`) with `label`, `by`, or `text` as far as the request allows. For a `claim` watch, explicitly confirm whose tasks to accept (`claim.from` principal IDs, looked up via `actors`—omitting `from` claims only this deployment's own tasks).
|
|
43
|
+
4. **Write self-contained standing instructions:** write `instructions` for a reader who remembers nothing of this conversation—what to act on vs. skip with `no_reply`, the concrete steps and checks to run, what to post, and for task queues what counts as `complete_task`, `block_task`, or `fail_task`. Keep watch instructions focused on the trigger and outcome, and reference a skill for longer repo or team conventions.
|
|
31
44
|
|
|
32
|
-
|
|
33
|
-
- `instructions` is what you'll do each time it matches. Write it for a reader who remembers nothing of this conversation: what to look for, what to do, and what to post.
|
|
34
|
-
- To work a task queue, add `claim` with the queue's channel, labels, and the owners whose tasks you take. Each match then claims one ready task, and you work it in the task's thread.
|
|
45
|
+
Both `watch` and `unwatch` ask the caller to approve the exact parameters before applying the change. Don't over-interrogate when the request already answers the points above—ask only for what is genuinely ambiguous, then call `watch` so the approval prompt serves as the final review.
|
|
35
46
|
|
|
36
|
-
Tell the person the watch's ID. List your watches with `watches`, with `details` to see what each does, and stop one with `unwatch`.
|
|
47
|
+
Tell the person the watch's ID once created. List your watches with `watches`, with `details` to see what each does, and stop one with `unwatch`.
|
|
37
48
|
|
|
38
49
|
## Come back later
|
|
39
50
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** Holds the task the session claimed for a person, with the one question they must answer. Offered only while the session holds a task. */
|
|
2
|
-
declare const _default: import("eve/
|
|
2
|
+
declare const _default: import("eve/instructions").DynamicSentinel<import("eve/tools").DynamicToolResult, import("eve/instructions").DynamicContext>;
|
|
3
3
|
export default _default;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** Lists the board channels the agent can read. */
|
|
2
|
-
declare const _default: import("eve/tools").ToolDefinition<
|
|
2
|
+
declare const _default: import("eve/tools").ToolDefinition<{
|
|
3
|
+
board?: string | undefined;
|
|
4
|
+
}, {
|
|
3
5
|
channels: readonly import("../lib/client.ts").BoardChannelSummary[];
|
|
4
6
|
}>;
|
|
5
7
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** Completes the task the session claimed, with the result. Offered only while the session holds a task. */
|
|
2
|
-
declare const _default: import("eve/
|
|
2
|
+
declare const _default: import("eve/instructions").DynamicSentinel<import("eve/tools").DynamicToolResult, import("eve/instructions").DynamicContext>;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** Gives up on the task the session claimed, with why. Offered only while the session holds a task. */
|
|
2
|
-
declare const _default: import("eve/
|
|
2
|
+
declare const _default: import("eve/instructions").DynamicSentinel<import("eve/tools").DynamicToolResult, import("eve/instructions").DynamicContext>;
|
|
3
3
|
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** Starts a board thread in a channel. */
|
|
2
2
|
declare const _default: import("eve/tools").ToolDefinition<{
|
|
3
|
+
board?: string | undefined;
|
|
3
4
|
channel: string;
|
|
4
5
|
text?: string | undefined;
|
|
5
6
|
attach?: string[] | undefined;
|
|
@@ -26,6 +27,7 @@ declare const _default: import("eve/tools").ToolDefinition<{
|
|
|
26
27
|
} | undefined;
|
|
27
28
|
}> & {
|
|
28
29
|
execute(input: {
|
|
30
|
+
board?: string | undefined;
|
|
29
31
|
channel: string;
|
|
30
32
|
text?: string | undefined;
|
|
31
33
|
attach?: string[] | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** Adds or removes a reaction on a board message. */
|
|
2
2
|
declare const _default: import("eve/tools").ToolDefinition<{
|
|
3
|
+
board?: string | undefined;
|
|
3
4
|
id: string;
|
|
4
5
|
emoji: string;
|
|
5
6
|
remove?: boolean | undefined;
|
|
@@ -7,6 +8,7 @@ declare const _default: import("eve/tools").ToolDefinition<{
|
|
|
7
8
|
ok: boolean;
|
|
8
9
|
}> & {
|
|
9
10
|
execute(input: {
|
|
11
|
+
board?: string | undefined;
|
|
10
12
|
id: string;
|
|
11
13
|
emoji: string;
|
|
12
14
|
remove?: boolean | undefined;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
/** Reads a board thread, or lists a channel's threads. */
|
|
2
2
|
declare const _default: import("eve/tools").ToolDefinition<{
|
|
3
|
+
board?: string | undefined;
|
|
3
4
|
id?: string | undefined;
|
|
4
5
|
link?: string | undefined;
|
|
5
6
|
channel?: string | undefined;
|
|
6
7
|
label?: string[] | undefined;
|
|
8
|
+
text?: string | undefined;
|
|
9
|
+
mentions?: string | undefined;
|
|
7
10
|
after?: string | undefined;
|
|
8
11
|
before?: string | undefined;
|
|
9
12
|
limit?: number | undefined;
|
|
@@ -49,6 +52,7 @@ declare const _default: import("eve/tools").ToolDefinition<{
|
|
|
49
52
|
} | {
|
|
50
53
|
cursor: string;
|
|
51
54
|
older: string | null;
|
|
55
|
+
scanned?: number | undefined;
|
|
52
56
|
threads: {
|
|
53
57
|
last: {
|
|
54
58
|
attachments: string[];
|
|
@@ -92,10 +96,13 @@ declare const _default: import("eve/tools").ToolDefinition<{
|
|
|
92
96
|
}[];
|
|
93
97
|
}> & {
|
|
94
98
|
execute(input: {
|
|
99
|
+
board?: string | undefined;
|
|
95
100
|
id?: string | undefined;
|
|
96
101
|
link?: string | undefined;
|
|
97
102
|
channel?: string | undefined;
|
|
98
103
|
label?: string[] | undefined;
|
|
104
|
+
text?: string | undefined;
|
|
105
|
+
mentions?: string | undefined;
|
|
99
106
|
after?: string | undefined;
|
|
100
107
|
before?: string | undefined;
|
|
101
108
|
limit?: number | undefined;
|
|
@@ -141,6 +148,7 @@ declare const _default: import("eve/tools").ToolDefinition<{
|
|
|
141
148
|
} | {
|
|
142
149
|
cursor: string;
|
|
143
150
|
older: string | null;
|
|
151
|
+
scanned?: number | undefined;
|
|
144
152
|
threads: {
|
|
145
153
|
last: {
|
|
146
154
|
attachments: string[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** Replies in a board thread. */
|
|
2
2
|
declare const _default: import("eve/tools").ToolDefinition<{
|
|
3
|
+
board?: string | undefined;
|
|
3
4
|
id?: string | undefined;
|
|
4
5
|
text?: string | undefined;
|
|
5
6
|
attach?: string[] | undefined;
|
|
@@ -26,6 +27,7 @@ declare const _default: import("eve/tools").ToolDefinition<{
|
|
|
26
27
|
} | undefined;
|
|
27
28
|
}> & {
|
|
28
29
|
execute(input: {
|
|
30
|
+
board?: string | undefined;
|
|
29
31
|
id?: string | undefined;
|
|
30
32
|
text?: string | undefined;
|
|
31
33
|
attach?: string[] | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** Creates a board watch: matching events wake the agent with the watch's instructions. */
|
|
2
2
|
declare const _default: import("eve/tools").ToolDefinition<{
|
|
3
|
+
board?: string | undefined;
|
|
3
4
|
channel: string;
|
|
4
5
|
label?: string[] | undefined;
|
|
5
6
|
by?: string | undefined;
|
|
@@ -14,5 +15,11 @@ declare const _default: import("eve/tools").ToolDefinition<{
|
|
|
14
15
|
action: import("../lib/watches.ts").BoardWatchAction | undefined;
|
|
15
16
|
id: string;
|
|
16
17
|
tail: string;
|
|
18
|
+
board?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
action: import("../lib/watches.ts").BoardWatchAction | undefined;
|
|
21
|
+
board: string;
|
|
22
|
+
id: string;
|
|
23
|
+
tail: string;
|
|
17
24
|
}>;
|
|
18
25
|
export default _default;
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
/** Lists the agent's board watches. */
|
|
2
2
|
declare const _default: import("eve/tools").ToolDefinition<{
|
|
3
|
+
board?: string | undefined;
|
|
3
4
|
details?: boolean | undefined;
|
|
4
5
|
}, {
|
|
5
6
|
watches: import("../lib/watches.ts").BoardWatch[];
|
|
7
|
+
board?: undefined;
|
|
8
|
+
boards?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
board: string;
|
|
11
|
+
watches: import("../lib/watches.ts").BoardWatch[];
|
|
12
|
+
boards?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
board?: undefined;
|
|
15
|
+
watches?: undefined;
|
|
16
|
+
boards: {
|
|
17
|
+
[k: string]: import("../lib/watches.ts").BoardWatch[];
|
|
18
|
+
};
|
|
6
19
|
}>;
|
|
7
20
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eve/board",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Vercel Board for eve agents: a channel that wakes the agent for watches it manages with tools, claims tasks, and replies in board threads",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eve",
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@vercel/board": "0.
|
|
47
|
+
"@vercel/board": "0.56.1",
|
|
48
48
|
"zod": "4.6.7"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/node": "26.6.6",
|
|
52
|
-
"eve": "1.
|
|
52
|
+
"eve": "1.6.0",
|
|
53
53
|
"typescript": "7.0.2"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"eve": ">=1.
|
|
56
|
+
"eve": ">=1.5.0"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">=24"
|