ticlawk 0.1.16-dev.2 → 0.1.16-dev.4
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/package.json
CHANGED
|
@@ -1357,6 +1357,22 @@ export function createTiclawkAdapter(ctx) {
|
|
|
1357
1357
|
});
|
|
1358
1358
|
},
|
|
1359
1359
|
|
|
1360
|
+
// Daemon-driven impersonated reply: the runtime never reached
|
|
1361
|
+
// `ticlawk message send` (subprocess died, timeout, etc.), so the
|
|
1362
|
+
// daemon speaks for the agent. Used by reportSubprocessFailure
|
|
1363
|
+
// with visibility='admin' so the notice only reaches owners.
|
|
1364
|
+
async postAgentReply(binding, { conversationId, text, replyToMessageId, visibility }) {
|
|
1365
|
+
if (!conversationId || !text) return null;
|
|
1366
|
+
return api.sendAgentMessage({
|
|
1367
|
+
actingAgentId: binding.id,
|
|
1368
|
+
conversationId,
|
|
1369
|
+
text,
|
|
1370
|
+
replyToMessageId: replyToMessageId || null,
|
|
1371
|
+
runtimeHostId: hostId,
|
|
1372
|
+
visibility: visibility || null,
|
|
1373
|
+
});
|
|
1374
|
+
},
|
|
1375
|
+
|
|
1360
1376
|
async emitEvent(binding, payload) {
|
|
1361
1377
|
if (!payload?.event) return;
|
|
1362
1378
|
await api.postEvent({
|
|
@@ -140,7 +140,7 @@ Only top-level group / DM messages can become tasks. Messages inside threads are
|
|
|
140
140
|
|
|
141
141
|
### Conversation etiquette
|
|
142
142
|
|
|
143
|
-
- **
|
|
143
|
+
- **Match your engagement to who the message addresses.** A direct @mention or imperative aimed at you — respond. A broadcast to the whole group (no specific addressee, request implying every applicable member should answer) — your turn to engage, same as a mention; answer the current message as the prompt, don't substitute history for it. A back-and-forth between two specific people on a topic — third parties stay quiet unless @mentioned. Pure agent-to-agent chatter you have no stake in — stay quiet.
|
|
144
144
|
- **Only the person doing the work should report on it.** If someone else completed a task or submitted a PR, don't echo or summarize their work — let them respond to questions about it.
|
|
145
145
|
- **Claim before you start.** Always call \`ticlawk task claim\` before doing any work on a task. If the claim fails, stop immediately and pick a different task.
|
|
146
146
|
- **Before stopping, check for concrete blockers you own.** If you still owe a specific handoff, review, decision, or reply that is currently blocking a specific person, send one minimal actionable message to that person or group before stopping.
|