@oddessentials/agent-guild 1.14.0 → 1.14.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/bin/agent-guild-report.mjs +0 -5
- package/docs/api.md +850 -0
- package/examples/claude-code-settings.json +4 -0
- package/node_modules/node-pty/prebuilds/win32-arm64/conpty.node +0 -0
- package/node_modules/node-pty/prebuilds/win32-arm64/conpty_console_list.node +0 -0
- package/node_modules/node-pty/prebuilds/win32-x64/conpty.node +0 -0
- package/node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.node +0 -0
- package/package.json +3 -2
- package/src/manager/server.mjs +5 -3
- package/src/manager/session-hooks.mjs +3 -4
- package/src/manager/session-manager.mjs +0 -8
- package/src/manager/session.mjs +4 -106
- package/src/report/hooks.mjs +0 -24
- package/web/api-doc.js +30 -0
- package/web/api-explorer.js +164 -0
- package/web/api.html +40 -0
- package/web/yard/art.json +1 -1
|
@@ -69,8 +69,6 @@ function readStdin() {
|
|
|
69
69
|
function send(report, kind = report.compaction !== undefined ? 'context'
|
|
70
70
|
: report.reply !== undefined ? 'reply'
|
|
71
71
|
: report.shell !== undefined ? 'shells'
|
|
72
|
-
: report.permission !== undefined ? 'permission'
|
|
73
|
-
: report.turn !== undefined ? 'turn'
|
|
74
72
|
: report.agentId !== undefined || report.finishForeground === true ? 'agents'
|
|
75
73
|
: report.hello === true ? 'reporting'
|
|
76
74
|
: report.toolSessionId !== undefined ? 'tool-session' : 'model') {
|
|
@@ -203,9 +201,6 @@ async function main() {
|
|
|
203
201
|
// Antigravity CLI runs the hook in its sub-agents too, each a conversation of its own.
|
|
204
202
|
if (typeof input.conversationId === 'string' && !antigravityUserConversation(firstRecord(input.transcriptPath))) return;
|
|
205
203
|
for (const report of hookToReports(input)) {
|
|
206
|
-
// Each hook runs in a process of its own, and Claude Code's arrive in any order: the time this one started
|
|
207
|
-
// orders its event among the others.
|
|
208
|
-
if (report.permission !== undefined || report.turn !== undefined || report.reply !== undefined || report.status === 'done') report.at = performance.timeOrigin;
|
|
209
204
|
if (report.transcript === undefined) await sendQuietly(report);
|
|
210
205
|
else {
|
|
211
206
|
const key = await claudeCompaction(report.transcript, performance.timeOrigin - 2000);
|