@phnx-labs/agents-cli 1.23.35 → 1.23.36
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 +7 -0
- package/dist/commands/config.js +9 -7
- package/dist/commands/feed-watch.js +2 -1
- package/dist/commands/lead.js +65 -13
- package/dist/commands/projects.js +34 -2
- package/dist/lib/config-keys.d.ts +1 -1
- package/dist/lib/config-keys.js +6 -4
- package/dist/lib/device-config.js +9 -0
- package/dist/lib/github/project-prs.d.ts +7 -0
- package/dist/lib/github/project-prs.js +22 -0
- package/dist/lib/lead/act.d.ts +10 -0
- package/dist/lib/lead/act.js +119 -0
- package/dist/lib/lead/brief.d.ts +2 -0
- package/dist/lib/lead/brief.js +16 -5
- package/dist/lib/lead/client.d.ts +0 -3
- package/dist/lib/lead/client.js +1 -50
- package/dist/lib/lead/confirm.d.ts +12 -10
- package/dist/lib/lead/confirm.js +1 -0
- package/dist/lib/lead/events.d.ts +4 -2
- package/dist/lib/lead/events.js +5 -3
- package/dist/lib/lead/harness.d.ts +2 -3
- package/dist/lib/lead/harness.js +4 -4
- package/dist/lib/lead/host.d.ts +15 -8
- package/dist/lib/lead/host.js +63 -35
- package/dist/lib/lead/roster.d.ts +18 -0
- package/dist/lib/lead/roster.js +75 -0
- package/dist/lib/lead/shapes.d.ts +42 -0
- package/dist/lib/lead/shapes.js +202 -1
- package/dist/lib/lead/speak.d.ts +35 -0
- package/dist/lib/lead/speak.js +165 -0
- package/dist/lib/lead/store.d.ts +1 -0
- package/dist/lib/lead/tools.d.ts +11 -0
- package/dist/lib/lead/tools.js +98 -37
- package/dist/lib/lead/visibility.d.ts +1 -1
- package/dist/lib/lead/visibility.js +14 -4
- package/dist/lib/session/touched.js +1 -0
- package/package.json +1 -1
|
@@ -57,21 +57,31 @@ export function hideLeadInSessionEnvelope(event, hostSessionIds) {
|
|
|
57
57
|
}
|
|
58
58
|
return event;
|
|
59
59
|
}
|
|
60
|
-
export function hideLeadInFeedEnvelope(event, hostSessionIds) {
|
|
60
|
+
export function hideLeadInFeedEnvelope(event, hostSessionIds, hidden = new Set()) {
|
|
61
61
|
const e = event;
|
|
62
|
+
const isHiddenAsk = (a) => !!a.sessionId && (hidden.has(a.sessionId) || hostSessionIds.has(a.sessionId));
|
|
62
63
|
if (e.type === 'reset') {
|
|
63
64
|
const agents = e.agents ?? [];
|
|
64
65
|
const attention = e.attention ?? [];
|
|
65
|
-
|
|
66
|
+
for (const a of agents)
|
|
67
|
+
if (a.sessionId && isLeadSession(a, hostSessionIds))
|
|
68
|
+
hidden.add(a.sessionId);
|
|
66
69
|
return {
|
|
67
70
|
...event,
|
|
68
71
|
agents: agents.filter((a) => !isLeadSession(a, hostSessionIds)),
|
|
69
|
-
attention: attention.filter((a) => !
|
|
72
|
+
attention: attention.filter((a) => !isHiddenAsk(a)),
|
|
70
73
|
};
|
|
71
74
|
}
|
|
72
75
|
if (e.type === 'agent.upsert' && isLeadSession(e.agent, hostSessionIds)) {
|
|
73
|
-
const { agent
|
|
76
|
+
const { agent, ...rest } = e;
|
|
77
|
+
const id = agent.sessionId;
|
|
78
|
+
if (id)
|
|
79
|
+
hidden.add(id);
|
|
74
80
|
return { ...rest, type: 'agent.remove' };
|
|
75
81
|
}
|
|
82
|
+
if (e.type === 'attention.upsert' && isHiddenAsk((e.attention ?? {}))) {
|
|
83
|
+
const { attention: _attention, ...rest } = e;
|
|
84
|
+
return { ...rest, type: 'attention.remove' };
|
|
85
|
+
}
|
|
76
86
|
return event;
|
|
77
87
|
}
|
|
@@ -24,6 +24,7 @@ const AGENTS_PRS_ACTIONS = {
|
|
|
24
24
|
merge: 'merged',
|
|
25
25
|
review: 'reviewed',
|
|
26
26
|
comment: 'commented',
|
|
27
|
+
close: 'closed',
|
|
27
28
|
};
|
|
28
29
|
const LINEAR_UPDATE_VALUE_FLAGS = new Set([
|
|
29
30
|
'--status', '--comment', '--proof', '--label', '--unlabel', '--priority', '--assign', '--delegate',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phnx-labs/agents-cli",
|
|
3
|
-
"version": "1.23.
|
|
3
|
+
"version": "1.23.36",
|
|
4
4
|
"description": "One CLI for all your AI coding agents - versions, config, cloud dispatch, sessions, and teams (now with first-class Grok Build CLI support)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|