(state, threadId, options = {})
| 221 | } |
| 222 | |
| 223 | function registerThread(state, threadId, options = {}) { |
| 224 | if (!threadId) { |
| 225 | return; |
| 226 | } |
| 227 | |
| 228 | state.threadIds.add(threadId); |
| 229 | const label = |
| 230 | options.threadName ?? |
| 231 | options.name ?? |
| 232 | options.agentNickname ?? |
| 233 | options.agentRole ?? |
| 234 | state.threadLabels.get(threadId) ?? |
| 235 | null; |
| 236 | if (label) { |
| 237 | state.threadLabels.set(threadId, label); |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | function describeStartedItem(state, item) { |
| 242 | switch (item.type) { |
no outgoing calls
no test coverage detected