tryharness 0.7.68 → 0.7.69

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.
@@ -17,6 +17,22 @@
17
17
  "board.answer": "task",
18
18
  "board.audio.listen": "tools",
19
19
  "board.children": "task",
20
+ "board.dispatch.scope.create": "task",
21
+ "board.dispatch.scope.read": "task",
22
+ "board.dispatch.scope.list": "task",
23
+ "board.dispatch.scope.revoke": "task",
24
+ "board.dispatch.propose": "task",
25
+ "board.dispatch.prompt": "task",
26
+ "board.prompt.start": "task",
27
+ "board.prompt.status": "task",
28
+ "board.prompt.cancel": "task",
29
+ "board.prompt.receipt": "task",
30
+ "board.dispatch.workspace": "task",
31
+ "board.dispatch.view": "task",
32
+ "board.dispatch.apply": "task",
33
+ "board.dispatch.advisory": "task",
34
+ "board.dispatch.advisories": "task",
35
+ "board.dispatch.revoke": "task",
20
36
  "board.claim": "task",
21
37
  "board.code.search": "tools",
22
38
  "board.context.add": "task",
@@ -203,101 +219,67 @@
203
219
  "families": [
204
220
  {
205
221
  "owner": "goals",
206
- "prefixes": [
207
- "board.goal.",
208
- "board.room."
209
- ]
222
+ "prefixes": ["board.goal.", "board.room."]
210
223
  },
211
224
  {
212
225
  "owner": "swarm",
213
- "prefixes": [
214
- "board.swarm."
215
- ]
226
+ "prefixes": ["board.swarm."]
216
227
  },
217
228
  {
218
229
  "owner": "landed",
219
- "prefixes": [
220
- "board.landed."
221
- ]
230
+ "prefixes": ["board.landed."]
222
231
  },
223
232
  {
224
233
  "owner": "relay",
225
- "prefixes": [
226
- "board.relay."
227
- ]
234
+ "prefixes": ["board.relay."]
228
235
  },
229
236
  {
230
237
  "owner": "place",
231
- "prefixes": [
232
- "board.place."
233
- ]
238
+ "prefixes": ["board.place."]
234
239
  },
235
240
  {
236
241
  "owner": "live",
237
- "prefixes": [
238
- "board.live"
239
- ]
242
+ "prefixes": ["board.live"]
240
243
  },
241
244
  {
242
245
  "owner": "watch",
243
- "prefixes": [
244
- "board.watch."
245
- ]
246
+ "prefixes": ["board.watch."]
246
247
  },
247
248
  {
248
249
  "owner": "thread",
249
- "prefixes": [
250
- "board.thread."
251
- ]
250
+ "prefixes": ["board.thread."]
252
251
  },
253
252
  {
254
253
  "owner": "file",
255
- "prefixes": [
256
- "board.file."
257
- ]
254
+ "prefixes": ["board.file."]
258
255
  },
259
256
  {
260
257
  "owner": "plans",
261
- "prefixes": [
262
- "board.plan.",
263
- "board.template."
264
- ]
258
+ "prefixes": ["board.plan.", "board.template."]
265
259
  },
266
260
  {
267
261
  "owner": "projects",
268
- "prefixes": [
269
- "board.project."
270
- ]
262
+ "prefixes": ["board.project."]
271
263
  },
272
264
  {
273
265
  "owner": "environments",
274
- "prefixes": [
275
- "board.environments."
276
- ]
266
+ "prefixes": ["board.environments."]
277
267
  },
278
268
  {
279
269
  "owner": "nativeRequests",
280
- "prefixes": [
281
- "board.native."
282
- ]
270
+ "prefixes": ["board.native."]
283
271
  },
284
272
  {
285
273
  "owner": "vault",
286
- "prefixes": [
287
- "board.vault."
288
- ]
274
+ "prefixes": ["board.vault."]
289
275
  },
290
276
  {
291
277
  "owner": "desk",
292
- "prefixes": [
293
- "board.desk."
294
- ]
278
+ "prefixes": ["board.desk."]
295
279
  },
296
280
  {
297
281
  "owner": "audit",
298
- "prefixes": [
299
- "board.audit."
300
- ]
282
+ "prefixes": ["board.audit."]
301
283
  }
302
284
  ],
303
285
  "access": {
@@ -394,7 +376,10 @@
394
376
  "board.swarm.specialty",
395
377
  "board.swarm.pin",
396
378
  "board.swarm.offices",
397
- "board.swarm.office"
379
+ "board.swarm.office",
380
+ "board.prompt.start",
381
+ "board.prompt.status",
382
+ "board.prompt.cancel"
398
383
  ],
399
384
  "browserPerson": [
400
385
  "board.list",
@@ -516,7 +501,10 @@
516
501
  "board.vault.share",
517
502
  "board.vault.unshare",
518
503
  "board.vault.import",
519
- "board.vault.allow"
504
+ "board.vault.allow",
505
+ "board.prompt.start",
506
+ "board.prompt.status",
507
+ "board.prompt.cancel"
520
508
  ],
521
509
  "harnessBrowser": [
522
510
  "board.list",
@@ -775,11 +763,12 @@
775
763
  "board.wait",
776
764
  "board.landed.thread",
777
765
  "board.landed.folder",
778
- "board.landed.open"
779
- ],
780
- "plainPerson": [
781
- "board.standing.off"
766
+ "board.landed.open",
767
+ "board.prompt.start",
768
+ "board.prompt.status",
769
+ "board.prompt.cancel"
782
770
  ],
771
+ "plainPerson": ["board.standing.off"],
783
772
  "plainHarnessReads": [
784
773
  "board.list",
785
774
  "board.get",
@@ -815,14 +804,8 @@
815
804
  "agents.models",
816
805
  "agents.model"
817
806
  ],
818
- "browserLinks": [
819
- "links.allow",
820
- "links.list",
821
- "links.forget"
822
- ],
823
- "browserSsh": [
824
- "ssh.allow"
825
- ]
807
+ "browserLinks": ["links.allow", "links.list", "links.forget"],
808
+ "browserSsh": ["ssh.allow"]
826
809
  },
827
810
  "metadata": {
828
811
  "task": [
package/lib/cards.mjs CHANGED
@@ -92,7 +92,12 @@ export const roundFields = (card) => ({
92
92
  // `lessons`: what the person has said about each agent (lessons.mjs), left off a card going to a caller off this computer.
93
93
  export function swarmCards(store, entries, { home, lessons = true } = {}) {
94
94
  const work = new Map();
95
- for (const row of store.agentWork()) {
95
+ const rows = store.agentWork();
96
+ const recent = rows
97
+ .slice()
98
+ .sort((a, b) => Date.parse(b.started_at) - Date.parse(a.started_at))
99
+ .slice(0, RECENT);
100
+ for (const row of rows) {
96
101
  const entry = work.get(row.agent) ?? {
97
102
  done: 0,
98
103
  failed: 0,
@@ -146,6 +151,13 @@ export function swarmCards(store, entries, { home, lessons = true } = {}) {
146
151
  about: roster.about ?? "",
147
152
  limits: roster.limits ?? null,
148
153
  where: roster.where ?? null,
154
+ editsFiles: roster.runs === "machine",
155
+ recentSelections: {
156
+ count: recent.filter((row) => row.agent === entry.id).length,
157
+ outOf: recent.length,
158
+ lastAt:
159
+ recent.find((row) => row.agent === entry.id)?.started_at ?? null,
160
+ },
149
161
  ...(roster.runs === "machine"
150
162
  ? {
151
163
  review: roster.review === true,