@detergent-software/conductor 2.2.0-dev.1 → 2.2.0-dev.3
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/CHANGELOG.md +23 -0
- package/README.md +9 -5
- package/build/code-host.js +11 -0
- package/build/code-host.js.map +1 -1
- package/build/daemon.js +5 -3
- package/build/daemon.js.map +1 -1
- package/build/follow-ups.js +0 -3
- package/build/follow-ups.js.map +1 -1
- package/build/notes.js +1 -0
- package/build/notes.js.map +1 -1
- package/build/profile.js +11 -3
- package/build/profile.js.map +1 -1
- package/build/queue.js +25 -2
- package/build/queue.js.map +1 -1
- package/build/scheduler.js +85 -27
- package/build/scheduler.js.map +1 -1
- package/build/store.js +7 -3
- package/build/store.js.map +1 -1
- package/build/watchers/boards-queue.js +43 -2
- package/build/watchers/boards-queue.js.map +1 -1
- package/build/watchers/boards-writes.js +6 -2
- package/build/watchers/boards-writes.js.map +1 -1
- package/build/watchers/boards.js +15 -6
- package/build/watchers/boards.js.map +1 -1
- package/build/watchers/issues-queue.js +47 -5
- package/build/watchers/issues-queue.js.map +1 -1
- package/build/watchers/issues-writes.js +21 -2
- package/build/watchers/issues-writes.js.map +1 -1
- package/build/watchers/issues.js +6 -5
- package/build/watchers/issues.js.map +1 -1
- package/build/watchers/linear-queue.js +6 -20
- package/build/watchers/linear-queue.js.map +1 -1
- package/build/watchers/release-wait.js +30 -0
- package/build/watchers/release-wait.js.map +1 -0
- package/mod/README.md +2 -0
- package/mod/hooks/model.ts +284 -281
- package/mod/hooks/register.tsx +266 -265
- package/mod/types/index.d.ts +26 -26
- package/package.json +4 -4
package/mod/types/index.d.ts
CHANGED
|
@@ -1,28 +1,11 @@
|
|
|
1
|
-
// The daemon's answers as the mod reads them: GET /fleet's workers and GET /inbox's items, with
|
|
2
|
-
// only the fields the mod draws.
|
|
3
|
-
export type ConductorWorker = {
|
|
4
|
-
activity: string;
|
|
5
|
-
id: number;
|
|
6
|
-
item: string;
|
|
7
|
-
name: string;
|
|
8
|
-
phase: string | null;
|
|
9
|
-
// Its PR as the daemon spells it, such as `ado:Emergent.AgenticToolkit#1850`; null before it has one.
|
|
10
|
-
pr: string | null;
|
|
11
|
-
project: string;
|
|
12
|
-
spendToday: number;
|
|
13
|
-
status: string;
|
|
14
|
-
updatedAt: string;
|
|
15
|
-
waits: string[];
|
|
16
|
-
};
|
|
17
|
-
|
|
18
1
|
export type ConductorInboxItem = {
|
|
19
2
|
commands: string[];
|
|
20
3
|
id: number;
|
|
21
|
-
item:
|
|
4
|
+
item: null | string;
|
|
22
5
|
kind: string;
|
|
23
6
|
// Each named by the daemon (ATK-509), such as { label: 'PR 2078', href: 'https://…' }.
|
|
24
7
|
links: ConductorLink[];
|
|
25
|
-
project:
|
|
8
|
+
project: null | string;
|
|
26
9
|
raisedAt: string;
|
|
27
10
|
text: string;
|
|
28
11
|
};
|
|
@@ -37,7 +20,7 @@ export type ConductorNotify = {
|
|
|
37
20
|
held: number;
|
|
38
21
|
profile: string;
|
|
39
22
|
profiles: string[];
|
|
40
|
-
profileUntil:
|
|
23
|
+
profileUntil: null | string;
|
|
41
24
|
quietNow: boolean;
|
|
42
25
|
remoteControl: string;
|
|
43
26
|
};
|
|
@@ -45,26 +28,43 @@ export type ConductorNotify = {
|
|
|
45
28
|
// What the mod last read from the daemon; `error` set (and the lists empty) when none answered.
|
|
46
29
|
// `notify` is null from a daemon older than the notifier.
|
|
47
30
|
export type ConductorSnapshot = {
|
|
48
|
-
error:
|
|
31
|
+
error: null | string;
|
|
49
32
|
inbox: ConductorInboxItem[];
|
|
50
33
|
notify: ConductorNotify | null;
|
|
51
34
|
readAt: number;
|
|
52
35
|
workers: ConductorWorker[];
|
|
53
36
|
};
|
|
54
37
|
|
|
38
|
+
// The daemon's answers as the mod reads them: GET /fleet's workers and GET /inbox's items, with
|
|
39
|
+
// only the fields the mod draws.
|
|
40
|
+
export type ConductorWorker = {
|
|
41
|
+
activity: string;
|
|
42
|
+
id: number;
|
|
43
|
+
item: string;
|
|
44
|
+
name: string;
|
|
45
|
+
phase: null | string;
|
|
46
|
+
// Its PR as the daemon spells it, such as `ado:Emergent.AgenticToolkit#1850`; null before it has one.
|
|
47
|
+
pr: null | string;
|
|
48
|
+
project: string;
|
|
49
|
+
spendToday: number;
|
|
50
|
+
status: string;
|
|
51
|
+
updatedAt: string;
|
|
52
|
+
waits: string[];
|
|
53
|
+
};
|
|
54
|
+
|
|
55
55
|
declare module 'claude-code' {
|
|
56
56
|
interface PluginState {
|
|
57
57
|
conductor: {
|
|
58
|
+
// Why the mod last cleared the idle console (ATK-386), until /conductor-console runs again;
|
|
59
|
+
// null when it didn't. The band says so in place of the no-skill warning.
|
|
60
|
+
cleared: null | string;
|
|
58
61
|
// The inbox id whose approve waits on a second press in the band.
|
|
59
|
-
confirming:
|
|
62
|
+
confirming: null | number;
|
|
60
63
|
// The worker whose row the pane shows expanded, by name.
|
|
61
|
-
expanded:
|
|
64
|
+
expanded: null | string;
|
|
62
65
|
// Whether /conductor-console ran in this conversation (ATK-385). Kept in $.state, so a reload
|
|
63
66
|
// of the mod doesn't forget it; a /clear or a resume (session.end) sets it back to false.
|
|
64
67
|
hasSkill: boolean;
|
|
65
|
-
// Why the mod last cleared the idle console (ATK-386), until /conductor-console runs again;
|
|
66
|
-
// null when it didn't. The band says so in place of the no-skill warning.
|
|
67
|
-
cleared: string | null;
|
|
68
68
|
snapshot: ConductorSnapshot | null;
|
|
69
69
|
};
|
|
70
70
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@detergent-software/conductor",
|
|
3
|
-
"version": "2.2.0-dev.
|
|
3
|
+
"version": "2.2.0-dev.3",
|
|
4
4
|
"description": "Conductor: the local daemon that runs conducted projects' work loops (conduct serve) and its conduct CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"dev": "tsc --watch",
|
|
21
21
|
"format": "prettier --write \"src/**/*.{ts,tsx}\" \"mod/**/*.{ts,tsx}\" \"scripts/**/*.mjs\"",
|
|
22
22
|
"format:check": "prettier --check \"src/**/*.{ts,tsx}\" \"mod/**/*.{ts,tsx}\" \"scripts/**/*.mjs\"",
|
|
23
|
-
"lint": "eslint src/",
|
|
24
|
-
"lint:fix": "eslint src/ --fix --cache",
|
|
23
|
+
"lint": "eslint src/ mod/",
|
|
24
|
+
"lint:fix": "eslint src/ mod/ --fix --cache",
|
|
25
25
|
"test": "vitest run",
|
|
26
26
|
"test:watch": "vitest",
|
|
27
|
-
"typecheck": "tsc --noEmit"
|
|
27
|
+
"typecheck": "tsc --noEmit && tsc -p tsconfig.mod.json && tsc -p tsconfig.mod-specs.json"
|
|
28
28
|
},
|
|
29
29
|
"repository": {
|
|
30
30
|
"type": "git",
|