dsh-collab-pair 1.2.0 → 1.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/index.js +19 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -497,6 +497,7 @@ export function apply(ctx, rawConfig) {
|
|
|
497
497
|
})
|
|
498
498
|
if (cfg.autoNudge) watchdogTimer = setInterval(() => { void runWatchdog() }, 60000)
|
|
499
499
|
setTimeout(() => { void recoverPendingLinks() }, 5000)
|
|
500
|
+
setTimeout(() => { void backfillProjects() }, 3000)
|
|
500
501
|
|
|
501
502
|
registerTools()
|
|
502
503
|
registerCommand()
|
|
@@ -1234,6 +1235,24 @@ export function apply(ctx, rawConfig) {
|
|
|
1234
1235
|
}
|
|
1235
1236
|
}
|
|
1236
1237
|
|
|
1238
|
+
/**
|
|
1239
|
+
* Name links created before the project field existed: derive the project
|
|
1240
|
+
* from the manager conversation title once, then persist it.
|
|
1241
|
+
*/
|
|
1242
|
+
async function backfillProjects() {
|
|
1243
|
+
if (!alive) return
|
|
1244
|
+
for (const link of [...links.values()]) {
|
|
1245
|
+
if (!alive) return
|
|
1246
|
+
if (typeof link.project === 'string' && link.project !== '') continue
|
|
1247
|
+
const title = await titleOf(link.manager)
|
|
1248
|
+
const name = typeof title === 'string' ? stripKnownPrefix(title) : ''
|
|
1249
|
+
if (name === '') continue
|
|
1250
|
+
link.project = name
|
|
1251
|
+
link.updatedAt = Date.now()
|
|
1252
|
+
await persist(link)
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1237
1256
|
/** Serialize relays per link so one turn cannot relay twice. */
|
|
1238
1257
|
function enqueueRelay(linkId, run) { const previous = relays.get(linkId) ?? Promise.resolve()
|
|
1239
1258
|
const next = previous.then(run, run).catch((error) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-collab-pair",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "For large projects: link a project-manager conversation with one or more worker conversations (temporary links unbind when done, permanent links stay until unlinked), group managers and workers by project, dispatch each round from the manager instead of repeating prompts, relay results automatically, and keep unattended runs moving with a visual task board.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|