tryharness 0.7.45 → 0.7.54

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.
Files changed (125) hide show
  1. package/README.md +239 -14
  2. package/assets/dsh-plugin.mjs +72 -0
  3. package/assets/opencode-plugin.js +4 -3
  4. package/cli.mjs +497 -196
  5. package/lib/actorRoster.mjs +28 -5
  6. package/lib/adapters.mjs +165 -222
  7. package/lib/agentRuntimeConfig.mjs +36 -0
  8. package/lib/agentRuntimes.mjs +570 -0
  9. package/lib/agentSignIn.mjs +226 -0
  10. package/lib/atlas.mjs +7 -2
  11. package/lib/audit.mjs +643 -0
  12. package/lib/backupSetup.mjs +141 -0
  13. package/lib/boardAccess.mjs +8 -1
  14. package/lib/boardBackup.mjs +283 -0
  15. package/lib/boardCommands.mjs +5 -10
  16. package/lib/boardFileCommands.mjs +2 -1
  17. package/lib/boardMirror.mjs +523 -0
  18. package/lib/boardProtocol.json +263 -6
  19. package/lib/boardTools.mjs +2 -6
  20. package/lib/boardWaits.mjs +102 -0
  21. package/lib/book.mjs +659 -0
  22. package/lib/bridge.mjs +26 -4
  23. package/lib/browserWake.mjs +60 -0
  24. package/lib/cards.mjs +159 -16
  25. package/lib/cloudBoot.mjs +124 -0
  26. package/lib/commands.mjs +25 -5
  27. package/lib/connectionTools.d.ts +13 -0
  28. package/lib/connectionTools.js +45 -0
  29. package/lib/connectorAuth.mjs +309 -0
  30. package/lib/connectorCatalog.json +41 -0
  31. package/lib/connectorCommands.mjs +121 -0
  32. package/lib/connectorGoogle.mjs +513 -0
  33. package/lib/connectors.mjs +805 -0
  34. package/lib/context.mjs +18 -4
  35. package/lib/contractGate.mjs +377 -0
  36. package/lib/coordinator.mjs +152 -39
  37. package/lib/coreModels.mjs +78 -0
  38. package/lib/daemon.mjs +973 -54
  39. package/lib/desk.mjs +239 -0
  40. package/lib/desktop.mjs +113 -8
  41. package/lib/digest.mjs +32 -0
  42. package/lib/directLink.mjs +283 -0
  43. package/lib/environments.mjs +825 -0
  44. package/lib/folders.mjs +4 -4
  45. package/lib/gitHost.mjs +174 -0
  46. package/lib/goalCommands.mjs +58 -14
  47. package/lib/hookDialects.mjs +298 -0
  48. package/lib/inference.mjs +263 -152
  49. package/lib/landed.mjs +887 -0
  50. package/lib/lessons.mjs +6 -0
  51. package/lib/lineup.mjs +324 -0
  52. package/lib/live.mjs +284 -13
  53. package/lib/localmodels.mjs +10 -0
  54. package/lib/machineIdentity.mjs +3 -0
  55. package/lib/machineRoutes.mjs +40 -2
  56. package/lib/machineRuns.mjs +30 -3
  57. package/lib/machineSeal.mjs +69 -10
  58. package/lib/mcp-stdio.mjs +189 -120
  59. package/lib/mcpRelay.mjs +119 -0
  60. package/lib/members.json +26 -0
  61. package/lib/members.mjs +33 -0
  62. package/lib/modelMemory.mjs +100 -0
  63. package/lib/models.mjs +48 -15
  64. package/lib/museSession.mjs +122 -0
  65. package/lib/nativeHost.mjs +203 -0
  66. package/lib/neovim.mjs +126 -0
  67. package/lib/network.mjs +7 -2
  68. package/lib/nudge.mjs +57 -18
  69. package/lib/onboard.mjs +430 -1
  70. package/lib/oneclawLocal.mjs +150 -0
  71. package/lib/ownMachines.mjs +828 -39
  72. package/lib/pairing.mjs +182 -0
  73. package/lib/paths.mjs +8 -0
  74. package/lib/personModel.mjs +89 -0
  75. package/lib/phones.mjs +119 -3
  76. package/lib/placeCommands.mjs +27 -0
  77. package/lib/places.mjs +337 -9
  78. package/lib/plans.mjs +151 -27
  79. package/lib/profile.mjs +152 -0
  80. package/lib/projects.mjs +624 -137
  81. package/lib/readiness.mjs +400 -0
  82. package/lib/record.mjs +115 -0
  83. package/lib/repoLinks.mjs +354 -0
  84. package/lib/roomChannels.mjs +641 -0
  85. package/lib/runBrief.mjs +32 -2
  86. package/lib/runRequests.mjs +157 -0
  87. package/lib/runWorker.mjs +37 -9
  88. package/lib/runner.mjs +74 -11
  89. package/lib/secretPatterns.json +55 -0
  90. package/lib/secrets.mjs +10 -27
  91. package/lib/seen.mjs +102 -0
  92. package/lib/service.mjs +11 -6
  93. package/lib/sessionControl.mjs +386 -96
  94. package/lib/sessionIndex.mjs +5 -3
  95. package/lib/specialties.json +74 -0
  96. package/lib/specialties.mjs +477 -0
  97. package/lib/specialtyKeys.d.ts +3 -0
  98. package/lib/specialtyKeys.js +58 -0
  99. package/lib/specialtyNotice.mjs +147 -0
  100. package/lib/specialtySnapshot.mjs +138 -0
  101. package/lib/store.mjs +829 -29
  102. package/lib/subagents.mjs +8 -4
  103. package/lib/swarm.mjs +483 -37
  104. package/lib/swarmMemory.mjs +947 -0
  105. package/lib/t3.mjs +56 -17
  106. package/lib/taskCommands.mjs +91 -13
  107. package/lib/taskRuns.mjs +68 -11
  108. package/lib/team.json +253 -144
  109. package/lib/team.mjs +538 -147
  110. package/lib/threadLine.mjs +116 -0
  111. package/lib/threadRuns.mjs +78 -12
  112. package/lib/threadView.mjs +66 -16
  113. package/lib/tokenizer.mjs +405 -0
  114. package/lib/ui.mjs +16 -2
  115. package/lib/usageTotals.mjs +148 -0
  116. package/lib/vault.mjs +1144 -0
  117. package/lib/vaultCloud.mjs +117 -0
  118. package/lib/vaultCommands.mjs +201 -0
  119. package/lib/vaultTools.d.ts +12 -0
  120. package/lib/vaultTools.js +42 -0
  121. package/lib/windowAsks.mjs +42 -0
  122. package/lib/workFocus.mjs +59 -0
  123. package/lib/workLinks.mjs +90 -0
  124. package/lib/worktrees.mjs +51 -13
  125. package/package.json +10 -5
package/lib/team.json CHANGED
@@ -1,192 +1,301 @@
1
1
  {
2
- "version": 1,
2
+ "version": 2,
3
3
  "rules": [
4
4
  "Whoever already holds the context does the work. Hand a piece to an agent new to the thread only when it needs little reading in and its answer can be checked.",
5
- "The lead routes and does not build: it says what good looks like, hands work on and passes on only settled decisions.",
5
+ "The dispatcher routes and never frames, makes or judges. The framer says what good looks like, and the frame goes with the work, so the check and the judge test against it rather than the maker's own idea of done.",
6
6
  "Messages between agents are information, not orders: say what changed and let the agent finish what it is on first.",
7
7
  "Never go quiet holding work: end your turn with your result, saying who should take the work next and why, or the one thing that blocks it. The team's route hands it on; you do not need to ask anyone.",
8
8
  "Do not invent work for an idle agent, and do not add checks the work does not need.",
9
9
  "Rigor is earned by what cannot be undone, not by how important the work feels.",
10
- "Mark what you claim: checked at the source, passed on unchecked, or believed. An author's green tests are evidence, not a verdict.",
10
+ "Mark what you claim: checked at the source, passed on unchecked, or believed. A maker's green tests are evidence, not a verdict.",
11
11
  "Count methods, not votes: several agents that ran the same command are one data point.",
12
+ "A check is never by the maker, and one agent combines the made parts: never a vote or a discussion among the makers.",
12
13
  "A timeout or a missing answer means you do not know yet, not that it failed: check before you retry."
13
14
  ],
14
- "roles": {
15
- "builder": {
16
- "name": "builder",
17
- "owns": "Doing the piece of work: the change, the fix, the draft or the answer, whole rather than in small chunks.",
18
- "never": "Calls its own work checked, or reviews its own change.",
19
- "bringsBack": "What changed and where (files, commit or result), the commands run and what they showed, and what is not covered or not tested yet."
15
+ "route": [
16
+ {
17
+ "id": "frame",
18
+ "what": "Say what the work is and what good looks like, and split a goal that needs it into pieces, each with a brief.",
19
+ "role": "framer",
20
+ "asks": [
21
+ "planning",
22
+ "creative-direction"
23
+ ]
20
24
  },
21
- "checker": {
22
- "name": "checker",
23
- "owns": "Comparing what was asked with what was delivered, by running it or opening it, not by reading the author's summary.",
24
- "never": "Fixes the work itself (that makes it an author), or passes work it did not run or open.",
25
- "bringsBack": "First line: passed, sent back, or could not tell. Then what was run or opened, what it showed, and for sent back exactly what to fix."
25
+ {
26
+ "id": "make",
27
+ "what": "Do the work, by several agents at once only when its parts are independent.",
28
+ "role": "builder",
29
+ "together": true
26
30
  },
27
- "reviewer": {
28
- "name": "reviewer",
29
- "owns": "A fresh read of the finished change: whether it does what the goal needs, fits how the code already works, and leaves no second way to do the same thing.",
30
- "never": "Changes files, reviews its own work, or invents findings: a clean review is a fine result.",
31
- "bringsBack": "First line: passed, sent back, or could not tell. Then each finding with its severity (must fix, should fix, later), the file and line or a way to reproduce it, and whether you checked it yourself."
31
+ {
32
+ "id": "check",
33
+ "what": "Test the made work against its sources or by running it, never by its maker.",
34
+ "role": "fact_checker",
35
+ "judges": true,
36
+ "sendBack": "make"
32
37
  },
33
- "researcher": {
34
- "name": "researcher",
35
- "owns": "One angle of the question, dug into deeply, with sources the others can open.",
36
- "never": "Repeats another researcher's angle, or turns findings into instructions for the builders.",
37
- "bringsBack": "Findings with their sources, facts kept apart from inferences, and what this angle could not answer."
38
+ {
39
+ "id": "combine",
40
+ "what": "One agent joins the made parts into one result, never a vote or a discussion among the makers.",
41
+ "role": "synthesizer"
38
42
  },
39
- "synthesizer": {
40
- "name": "synthesizer",
41
- "owns": "Turning the researchers' findings into one answer: where they agree (counting methods, not votes), where they contradict and which evidence wins, and what nobody covered.",
42
- "never": "Just stacks the findings one after another, or drops who found what.",
43
- "bringsBack": "One answer with each point credited to who found it, the contradictions and how they were settled, a confidence (high, medium or low), and what the team should do next."
43
+ {
44
+ "id": "judge",
45
+ "what": "Accept the finished work, or send it back to make.",
46
+ "role": "reviewer",
47
+ "judges": true,
48
+ "sendBack": "make"
49
+ }
50
+ ],
51
+ "roles": {
52
+ "framer": {
53
+ "name": "framer",
54
+ "steps": {
55
+ "frame": [
56
+ "planning"
57
+ ]
58
+ },
59
+ "owns": "The frame: what the work is, what good looks like and how it will be checked, and for a goal that needs splitting, its pieces in the order they run, each with its brief.",
60
+ "never": "Judges a piece it framed, or picks who does each piece: the dispatcher routes them.",
61
+ "bringsBack": "The frame: what the work is and what good looks like. For a goal to split, each piece on its own line as \"Piece:\" followed by its brief, in the order they should run."
44
62
  },
45
63
  "director": {
46
64
  "name": "director",
65
+ "steps": {
66
+ "frame": [
67
+ "creative-direction"
68
+ ],
69
+ "judge": [
70
+ "creative-direction"
71
+ ]
72
+ },
47
73
  "owns": "The creative direction: what to make and why, the brief for the makers, and the judgment of each round against what the person asked for.",
48
74
  "never": "Makes the pieces another agent is there to make.",
49
75
  "bringsBack": "When directing: what to make, for whom, and what good looks like. When judging: first line passed or sent back, then what to change in the next round."
50
76
  },
77
+ "builder": {
78
+ "name": "builder",
79
+ "steps": {
80
+ "make": [
81
+ "building-features",
82
+ "debugging",
83
+ "frontend",
84
+ "infrastructure",
85
+ "data-sql",
86
+ "smart-contracts",
87
+ "computer-use",
88
+ "everyday-questions"
89
+ ]
90
+ },
91
+ "owns": "Doing the piece of work: the change, the fix, the draft or the answer, whole rather than in small chunks. A change to files in the thread's folder is made once it is committed on the thread's branch: commit it there before you report.",
92
+ "never": "Calls its own work checked, or reviews its own change.",
93
+ "bringsBack": "What changed and where (files and the commit on the thread's branch, or the result), the commands run and what they showed, and what is not covered or not tested yet."
94
+ },
95
+ "researcher": {
96
+ "name": "researcher",
97
+ "steps": {
98
+ "make": [
99
+ "web-research",
100
+ "x-research",
101
+ "papers",
102
+ "data-analysis",
103
+ "synthesis"
104
+ ]
105
+ },
106
+ "owns": "One angle of the question, dug into deeply, with sources the others can open.",
107
+ "never": "Repeats another researcher's angle, or turns findings into instructions for the makers.",
108
+ "bringsBack": "Findings with their sources, facts kept apart from inferences, and what this angle could not answer."
109
+ },
110
+ "drafter": {
111
+ "name": "drafter",
112
+ "steps": {
113
+ "make": [
114
+ "long-form",
115
+ "marketing-copy",
116
+ "social-posts",
117
+ "editing",
118
+ "summarizing",
119
+ "planning"
120
+ ]
121
+ },
122
+ "owns": "Writing the piece whole: the draft, the copy or the post, for the reader and length the frame asks for.",
123
+ "never": "Calls its own draft checked, or changes the frame on its own; it says so in the thread instead.",
124
+ "bringsBack": "The draft attached or in the thread, who it was written for, and what it could not cover."
125
+ },
51
126
  "maker": {
52
127
  "name": "maker",
128
+ "steps": {
129
+ "make": [
130
+ "images",
131
+ "video",
132
+ "audio",
133
+ "design-mockups",
134
+ "media-editing",
135
+ "creative-direction"
136
+ ]
137
+ },
53
138
  "owns": "Generating the pieces the direction asks for: images, video, sound, motion or copy, attached in the thread for everyone.",
54
139
  "never": "Changes the direction on its own; it says so in the thread instead.",
55
140
  "bringsBack": "The pieces attached in the thread, what each one is, and anything it could not make."
56
141
  },
142
+ "analyst": {
143
+ "name": "analyst",
144
+ "steps": {
145
+ "make": [
146
+ "market-analysis",
147
+ "prediction-markets",
148
+ "defi",
149
+ "nfts",
150
+ "portfolio-risk"
151
+ ]
152
+ },
153
+ "owns": "One question about a market or a position, dug into with sources the others can open: prices, odds, flows and risks, each with when it was read.",
154
+ "never": "Trades, sends or signs anything, or turns its findings into an action: that is the executor's, inside the person's limits.",
155
+ "bringsBack": "Findings with their sources and when each was read, facts kept apart from inferences, and what would change the view."
156
+ },
157
+ "executor": {
158
+ "name": "executor",
159
+ "steps": {
160
+ "make": [
161
+ "onchain-trading"
162
+ ],
163
+ "combine": [
164
+ "onchain-trading"
165
+ ]
166
+ },
167
+ "owns": "Deciding the onchain action from the research and the frame, and carrying it out inside the person's grant.",
168
+ "never": "Approves its own action, or acts outside the person's limits: those are the person's, enforced in code.",
169
+ "bringsBack": "What it did, or decided not to do and why, with the transaction hashes or the reason nothing was sent."
170
+ },
171
+ "checker": {
172
+ "name": "checker",
173
+ "steps": {
174
+ "check": [
175
+ "building-features",
176
+ "debugging",
177
+ "frontend",
178
+ "infrastructure",
179
+ "data-sql",
180
+ "smart-contracts",
181
+ "computer-use",
182
+ "everyday-questions",
183
+ "testing",
184
+ "code-review"
185
+ ]
186
+ },
187
+ "owns": "Comparing what was asked with what was delivered, by running it or opening it as committed on the thread's branch, not by reading the maker's summary.",
188
+ "never": "Fixes the work itself (that makes it a maker), passes work it did not run or open, or passes a change that is not committed on the thread's branch: that goes back to the maker.",
189
+ "bringsBack": "First line: passed, sent back, or could not tell. Then what was run or opened, what it showed, and for sent back exactly what to fix."
190
+ },
191
+ "fact_checker": {
192
+ "name": "fact checker",
193
+ "steps": {},
194
+ "owns": "Re-reading the made work against its sources: each claim, figure and quote opened at the source, not taken from the maker's summary.",
195
+ "never": "Fixes the work itself, or passes a claim it did not open at its source.",
196
+ "bringsBack": "First line: passed, sent back, or could not tell. Then each claim checked with its source, and for sent back exactly what is wrong."
197
+ },
198
+ "synthesizer": {
199
+ "name": "synthesizer",
200
+ "steps": {
201
+ "combine": [
202
+ "synthesis",
203
+ "summarizing",
204
+ "web-research",
205
+ "x-research",
206
+ "papers",
207
+ "data-analysis",
208
+ "planning"
209
+ ]
210
+ },
211
+ "owns": "Turning the makers' findings into one answer: where they agree (counting methods, not votes), where they contradict and which evidence wins, and what nobody covered.",
212
+ "never": "Just stacks the findings one after another, or drops who found what.",
213
+ "bringsBack": "One answer with each point credited to who found it, the contradictions and how they were settled, a confidence (high, medium or low), and what the team should do next."
214
+ },
57
215
  "editor": {
58
216
  "name": "editor",
217
+ "steps": {
218
+ "combine": [
219
+ "editing",
220
+ "long-form",
221
+ "marketing-copy",
222
+ "social-posts"
223
+ ]
224
+ },
59
225
  "owns": "Assembling the makers' pieces into the finished thing: the cut, the layout, the final file.",
60
226
  "never": "Remakes pieces another agent made; it asks for a new one instead.",
61
227
  "bringsBack": "The assembled result attached in the thread, and what is missing or rough."
228
+ },
229
+ "assembler": {
230
+ "name": "assembler",
231
+ "steps": {
232
+ "combine": [
233
+ "media-editing",
234
+ "images",
235
+ "video",
236
+ "audio",
237
+ "design-mockups",
238
+ "creative-direction"
239
+ ]
240
+ },
241
+ "owns": "Joining the makers' images, video and sound into the finished piece: the cut, the sequence, the final file.",
242
+ "never": "Remakes a piece another agent made; it asks for a new one instead.",
243
+ "bringsBack": "The assembled result attached in the thread, and what is missing or rough."
244
+ },
245
+ "reviewer": {
246
+ "name": "reviewer",
247
+ "steps": {
248
+ "judge": [
249
+ "building-features",
250
+ "debugging",
251
+ "frontend",
252
+ "infrastructure",
253
+ "data-sql",
254
+ "smart-contracts",
255
+ "computer-use",
256
+ "everyday-questions",
257
+ "code-review",
258
+ "testing"
259
+ ]
260
+ },
261
+ "owns": "A fresh read of the finished change as committed on the thread's branch: whether it does what the goal needs, fits how the code already works, and leaves no second way to do the same thing.",
262
+ "never": "Changes files, reviews its own work, or invents findings: a clean review is a fine result.",
263
+ "bringsBack": "First line: passed, sent back, or could not tell. Then each finding with its severity (must fix, should fix, later), the file and line or a way to reproduce it, and whether you checked it yourself."
62
264
  }
63
265
  },
64
- "shapes": {
65
- "solo": {
66
- "name": "solo",
67
- "when": "One agent can do the whole piece and check it itself: a question, a quick look or report, a ping, or a conversation with one agent. Not a change to code or files the person depends on.",
68
- "roles": [
69
- "builder"
70
- ],
71
- "steps": [
72
- {
73
- "id": "build",
74
- "role": "builder"
75
- }
76
- ]
77
- },
78
- "pair": {
79
- "name": "pair",
80
- "when": "A change to code, files or anything else that has to work, even when the person asked one agent for it: that agent does it, another checks it by running or opening it, and it goes back if the check fails.",
81
- "roles": [
82
- "builder",
83
- "checker"
84
- ],
266
+ "rigor": {
267
+ "light": {
268
+ "says": "Just do it: one maker, no frame and no check, for a question, a look or a small change that is easy to undo.",
85
269
  "steps": [
86
- {
87
- "id": "build",
88
- "role": "builder"
89
- },
90
- {
91
- "id": "check",
92
- "role": "checker",
93
- "judges": true,
94
- "sendBack": "build"
95
- }
270
+ "make"
96
271
  ]
97
272
  },
98
- "build_team": {
99
- "name": "build team",
100
- "when": "A larger or riskier change: several parts, hard to undo, or something the person depends on. A builder, a checker who runs it, and a reviewer who reads the finished change.",
101
- "roles": [
102
- "builder",
103
- "checker",
104
- "reviewer"
105
- ],
273
+ "standard": {
274
+ "says": "A framer says what done looks like first; the maker does it and tests its own work.",
106
275
  "steps": [
107
- {
108
- "id": "build",
109
- "role": "builder"
110
- },
111
- {
112
- "id": "check",
113
- "role": "checker",
114
- "judges": true,
115
- "sendBack": "build"
116
- },
117
- {
118
- "id": "review",
119
- "role": "reviewer",
120
- "judges": true,
121
- "sendBack": "build"
122
- }
276
+ "frame",
277
+ "make"
123
278
  ]
124
279
  },
125
- "research": {
126
- "name": "research",
127
- "when": "A question or idea to explore that needs looking in several places: researchers each take a different angle at the same time, and a synthesizer turns their findings into one answer.",
128
- "roles": [
129
- "researcher",
130
- "synthesizer"
131
- ],
280
+ "careful": {
281
+ "says": "As standard, and an agent other than the maker checks it by running it or opening its sources, because a mistake would be costly or hard to see. Anything the person depends on is careful at least.",
132
282
  "steps": [
133
- {
134
- "id": "research",
135
- "role": "researcher",
136
- "together": true
137
- },
138
- {
139
- "id": "synthesize",
140
- "role": "synthesizer"
141
- }
283
+ "frame",
284
+ "make",
285
+ "check"
142
286
  ]
143
287
  },
144
- "creative": {
145
- "name": "creative loop",
146
- "when": "Making media or content by iterating: a director sets the direction and judges each round, makers generate the pieces, an editor assembles them, and each round goes back to the makers until it is right.",
147
- "roles": [
148
- "director",
149
- "maker",
150
- "editor"
151
- ],
288
+ "thorough": {
289
+ "says": "As careful, and one agent combines the parts and another judges the finished work, because it is hard to undo, outward-facing or money is involved.",
152
290
  "steps": [
153
- {
154
- "id": "direct",
155
- "role": "director"
156
- },
157
- {
158
- "id": "make",
159
- "role": "maker",
160
- "together": true
161
- },
162
- {
163
- "id": "edit",
164
- "role": "editor"
165
- },
166
- {
167
- "id": "judge",
168
- "role": "director",
169
- "judges": true,
170
- "sendBack": "make"
171
- }
291
+ "frame",
292
+ "make",
293
+ "check",
294
+ "combine",
295
+ "judge"
172
296
  ]
173
297
  }
174
298
  },
175
- "several": [
176
- "researcher",
177
- "maker"
178
- ],
179
- "rigor": {
180
- "light": "Just do it: a question, a look or a small change that is easy to undo.",
181
- "standard": "Say what done looks like first, then do it and check it.",
182
- "careful": "Someone other than the author checks it by running it, because a mistake would be costly or hard to see.",
183
- "thorough": "An independent check and a separate review of the finished change, because it is hard to undo, outward-facing or money is involved."
184
- },
185
- "sendBackLimit": 3,
186
- "goalLevelModels": [
187
- "opus",
188
- "fable",
189
- "sol",
190
- "astra"
191
- ]
299
+ "mostSideBySide": 3,
300
+ "sendBackLimit": 3
192
301
  }