@orchbee/cli-win32-x64 0.0.0-stage → 0.1.0-beta.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.
Files changed (44) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +4 -2
  3. package/package.json +22 -5
  4. package/release/agent-observation-adapters/.agents/plugins/marketplace.json +12 -0
  5. package/release/agent-observation-adapters/.claude-plugin/marketplace.json +13 -0
  6. package/release/agent-observation-adapters/README.md +363 -0
  7. package/release/agent-observation-adapters/bundle/.claude-plugin/plugin.json +8 -0
  8. package/release/agent-observation-adapters/bundle/.codex-plugin/plugin.json +7 -0
  9. package/release/agent-observation-adapters/bundle/.grok-plugin/plugin.json +7 -0
  10. package/release/agent-observation-adapters/bundle/.plugin/plugin.json +7 -0
  11. package/release/agent-observation-adapters/bundle/cline/orchbee-agent-observation.js +187 -0
  12. package/release/agent-observation-adapters/bundle/gemini/gemini-extension.json +5 -0
  13. package/release/agent-observation-adapters/bundle/gemini/hooks/hooks.json +118 -0
  14. package/release/agent-observation-adapters/bundle/hermes/plugin.py +40 -0
  15. package/release/agent-observation-adapters/bundle/hooks/codex.json +142 -0
  16. package/release/agent-observation-adapters/bundle/hooks/copilot.json +114 -0
  17. package/release/agent-observation-adapters/bundle/hooks/grok.json +170 -0
  18. package/release/agent-observation-adapters/bundle/hooks/hooks.json +244 -0
  19. package/release/agent-observation-adapters/bundle/kilo/orchbee-agent-observation.mjs +3 -0
  20. package/release/agent-observation-adapters/bundle/omp/orchbee-agent-observation.cjs +4 -0
  21. package/release/agent-observation-adapters/bundle/omp/orchbee-agent-observation.mjs +117 -0
  22. package/release/agent-observation-adapters/bundle/opencode/orchbee-agent-observation.mjs +13 -0
  23. package/release/agent-observation-adapters/bundle/package.json +25 -0
  24. package/release/agent-observation-adapters/bundle/pi/orchbee-agent-observation.cjs +4 -0
  25. package/release/agent-observation-adapters/bundle/pi/orchbee-agent-observation.mjs +112 -0
  26. package/release/agent-observation-adapters/bundle/qwen-code/qwen-extension.json +232 -0
  27. package/release/agent-observation-adapters/bundle/scripts/forward-hook.mjs +33 -0
  28. package/release/agent-observation-adapters/bundle/scripts/hook-sanitizers.mjs +571 -0
  29. package/release/agent-observation-adapters/bundle/scripts/observation-transport.mjs +549 -0
  30. package/release/agent-observation-adapters/bundle/scripts/opencode-family-observation.mjs +350 -0
  31. package/release/agent-observation-adapters/capsule.json +4 -0
  32. package/release/cohort.json +1 -0
  33. package/release/conpty/Microsoft.ConPTY-LICENSE.txt +21 -0
  34. package/release/conpty/OpenConsole.exe +0 -0
  35. package/release/conpty/conpty.dll +0 -0
  36. package/release/licenses/agent-detection/LICENSE +201 -0
  37. package/release/licenses/agent-detection/NOTICE +20 -0
  38. package/release/orchbee-launcher.exe +0 -0
  39. package/release/orchbee-server.exe +0 -0
  40. package/release/orchbee-terminal-host.exe +0 -0
  41. package/release/orchbee-worker.exe +0 -0
  42. package/release/orchbee.exe +4 -0
  43. package/release/release.json +1 -0
  44. package/release/release.json.sig +1 -0
@@ -0,0 +1,170 @@
1
+ {
2
+ "hooks": {
3
+ "SessionStart": [
4
+ {
5
+ "hooks": [
6
+ {
7
+ "type": "command",
8
+ "command": "node -e \"eval(Buffer.from('KGFzeW5jKCk9Pnt0cnl7Y29uc3QgcD1hd2FpdCBpbXBvcnQoJ25vZGU6cGF0aCcpO2NvbnN0IHI9cHJvY2Vzcy5lbnYuR1JPS19QTFVHSU5fUk9PVDtpZih0eXBlb2Ygcj09PSdzdHJpbmcnJiZwLmlzQWJzb2x1dGUocikpe2NvbnN0IHM9cC5qb2luKHIsJ3NjcmlwdHMnLCdmb3J3YXJkLWhvb2subWpzJyk7cHJvY2Vzcy5hcmd2PVtwcm9jZXNzLmFyZ3ZbMF0scywnZ3JvayddO2F3YWl0IGltcG9ydCgoYXdhaXQgaW1wb3J0KCdub2RlOnVybCcpKS5wYXRoVG9GaWxlVVJMKHMpLmhyZWYpfX1jYXRjaHt9fSkoKQ==','base64').toString('utf8'))\"",
9
+ "timeout": 2
10
+ }
11
+ ]
12
+ }
13
+ ],
14
+ "UserPromptSubmit": [
15
+ {
16
+ "hooks": [
17
+ {
18
+ "type": "command",
19
+ "command": "node -e \"eval(Buffer.from('KGFzeW5jKCk9Pnt0cnl7Y29uc3QgcD1hd2FpdCBpbXBvcnQoJ25vZGU6cGF0aCcpO2NvbnN0IHI9cHJvY2Vzcy5lbnYuR1JPS19QTFVHSU5fUk9PVDtpZih0eXBlb2Ygcj09PSdzdHJpbmcnJiZwLmlzQWJzb2x1dGUocikpe2NvbnN0IHM9cC5qb2luKHIsJ3NjcmlwdHMnLCdmb3J3YXJkLWhvb2subWpzJyk7cHJvY2Vzcy5hcmd2PVtwcm9jZXNzLmFyZ3ZbMF0scywnZ3JvayddO2F3YWl0IGltcG9ydCgoYXdhaXQgaW1wb3J0KCdub2RlOnVybCcpKS5wYXRoVG9GaWxlVVJMKHMpLmhyZWYpfX1jYXRjaHt9fSkoKQ==','base64').toString('utf8'))\"",
20
+ "timeout": 2
21
+ }
22
+ ]
23
+ }
24
+ ],
25
+ "PreToolUse": [
26
+ {
27
+ "hooks": [
28
+ {
29
+ "type": "command",
30
+ "command": "node -e \"eval(Buffer.from('KGFzeW5jKCk9Pnt0cnl7Y29uc3QgcD1hd2FpdCBpbXBvcnQoJ25vZGU6cGF0aCcpO2NvbnN0IHI9cHJvY2Vzcy5lbnYuR1JPS19QTFVHSU5fUk9PVDtpZih0eXBlb2Ygcj09PSdzdHJpbmcnJiZwLmlzQWJzb2x1dGUocikpe2NvbnN0IHM9cC5qb2luKHIsJ3NjcmlwdHMnLCdmb3J3YXJkLWhvb2subWpzJyk7cHJvY2Vzcy5hcmd2PVtwcm9jZXNzLmFyZ3ZbMF0scywnZ3JvayddO2F3YWl0IGltcG9ydCgoYXdhaXQgaW1wb3J0KCdub2RlOnVybCcpKS5wYXRoVG9GaWxlVVJMKHMpLmhyZWYpfX1jYXRjaHt9fSkoKQ==','base64').toString('utf8'))\"",
31
+ "timeout": 2
32
+ }
33
+ ]
34
+ }
35
+ ],
36
+ "PostToolUse": [
37
+ {
38
+ "hooks": [
39
+ {
40
+ "type": "command",
41
+ "command": "node -e \"eval(Buffer.from('KGFzeW5jKCk9Pnt0cnl7Y29uc3QgcD1hd2FpdCBpbXBvcnQoJ25vZGU6cGF0aCcpO2NvbnN0IHI9cHJvY2Vzcy5lbnYuR1JPS19QTFVHSU5fUk9PVDtpZih0eXBlb2Ygcj09PSdzdHJpbmcnJiZwLmlzQWJzb2x1dGUocikpe2NvbnN0IHM9cC5qb2luKHIsJ3NjcmlwdHMnLCdmb3J3YXJkLWhvb2subWpzJyk7cHJvY2Vzcy5hcmd2PVtwcm9jZXNzLmFyZ3ZbMF0scywnZ3JvayddO2F3YWl0IGltcG9ydCgoYXdhaXQgaW1wb3J0KCdub2RlOnVybCcpKS5wYXRoVG9GaWxlVVJMKHMpLmhyZWYpfX1jYXRjaHt9fSkoKQ==','base64').toString('utf8'))\"",
42
+ "timeout": 2
43
+ }
44
+ ]
45
+ }
46
+ ],
47
+ "PostToolUseFailure": [
48
+ {
49
+ "hooks": [
50
+ {
51
+ "type": "command",
52
+ "command": "node -e \"eval(Buffer.from('KGFzeW5jKCk9Pnt0cnl7Y29uc3QgcD1hd2FpdCBpbXBvcnQoJ25vZGU6cGF0aCcpO2NvbnN0IHI9cHJvY2Vzcy5lbnYuR1JPS19QTFVHSU5fUk9PVDtpZih0eXBlb2Ygcj09PSdzdHJpbmcnJiZwLmlzQWJzb2x1dGUocikpe2NvbnN0IHM9cC5qb2luKHIsJ3NjcmlwdHMnLCdmb3J3YXJkLWhvb2subWpzJyk7cHJvY2Vzcy5hcmd2PVtwcm9jZXNzLmFyZ3ZbMF0scywnZ3JvayddO2F3YWl0IGltcG9ydCgoYXdhaXQgaW1wb3J0KCdub2RlOnVybCcpKS5wYXRoVG9GaWxlVVJMKHMpLmhyZWYpfX1jYXRjaHt9fSkoKQ==','base64').toString('utf8'))\"",
53
+ "timeout": 2
54
+ }
55
+ ]
56
+ }
57
+ ],
58
+ "PermissionDenied": [
59
+ {
60
+ "hooks": [
61
+ {
62
+ "type": "command",
63
+ "command": "node -e \"eval(Buffer.from('KGFzeW5jKCk9Pnt0cnl7Y29uc3QgcD1hd2FpdCBpbXBvcnQoJ25vZGU6cGF0aCcpO2NvbnN0IHI9cHJvY2Vzcy5lbnYuR1JPS19QTFVHSU5fUk9PVDtpZih0eXBlb2Ygcj09PSdzdHJpbmcnJiZwLmlzQWJzb2x1dGUocikpe2NvbnN0IHM9cC5qb2luKHIsJ3NjcmlwdHMnLCdmb3J3YXJkLWhvb2subWpzJyk7cHJvY2Vzcy5hcmd2PVtwcm9jZXNzLmFyZ3ZbMF0scywnZ3JvayddO2F3YWl0IGltcG9ydCgoYXdhaXQgaW1wb3J0KCdub2RlOnVybCcpKS5wYXRoVG9GaWxlVVJMKHMpLmhyZWYpfX1jYXRjaHt9fSkoKQ==','base64').toString('utf8'))\"",
64
+ "timeout": 2
65
+ }
66
+ ]
67
+ }
68
+ ],
69
+ "Notification": [
70
+ {
71
+ "matcher": "idle_prompt|permission_prompt|task_complete",
72
+ "hooks": [
73
+ {
74
+ "type": "command",
75
+ "command": "node -e \"eval(Buffer.from('KGFzeW5jKCk9Pnt0cnl7Y29uc3QgcD1hd2FpdCBpbXBvcnQoJ25vZGU6cGF0aCcpO2NvbnN0IHI9cHJvY2Vzcy5lbnYuR1JPS19QTFVHSU5fUk9PVDtpZih0eXBlb2Ygcj09PSdzdHJpbmcnJiZwLmlzQWJzb2x1dGUocikpe2NvbnN0IHM9cC5qb2luKHIsJ3NjcmlwdHMnLCdmb3J3YXJkLWhvb2subWpzJyk7cHJvY2Vzcy5hcmd2PVtwcm9jZXNzLmFyZ3ZbMF0scywnZ3JvayddO2F3YWl0IGltcG9ydCgoYXdhaXQgaW1wb3J0KCdub2RlOnVybCcpKS5wYXRoVG9GaWxlVVJMKHMpLmhyZWYpfX1jYXRjaHt9fSkoKQ==','base64').toString('utf8'))\"",
76
+ "timeout": 2
77
+ }
78
+ ]
79
+ }
80
+ ],
81
+ "SubagentStart": [
82
+ {
83
+ "hooks": [
84
+ {
85
+ "type": "command",
86
+ "command": "node -e \"eval(Buffer.from('KGFzeW5jKCk9Pnt0cnl7Y29uc3QgcD1hd2FpdCBpbXBvcnQoJ25vZGU6cGF0aCcpO2NvbnN0IHI9cHJvY2Vzcy5lbnYuR1JPS19QTFVHSU5fUk9PVDtpZih0eXBlb2Ygcj09PSdzdHJpbmcnJiZwLmlzQWJzb2x1dGUocikpe2NvbnN0IHM9cC5qb2luKHIsJ3NjcmlwdHMnLCdmb3J3YXJkLWhvb2subWpzJyk7cHJvY2Vzcy5hcmd2PVtwcm9jZXNzLmFyZ3ZbMF0scywnZ3JvayddO2F3YWl0IGltcG9ydCgoYXdhaXQgaW1wb3J0KCdub2RlOnVybCcpKS5wYXRoVG9GaWxlVVJMKHMpLmhyZWYpfX1jYXRjaHt9fSkoKQ==','base64').toString('utf8'))\"",
87
+ "timeout": 2
88
+ }
89
+ ]
90
+ }
91
+ ],
92
+ "SubagentStop": [
93
+ {
94
+ "hooks": [
95
+ {
96
+ "type": "command",
97
+ "command": "node -e \"eval(Buffer.from('KGFzeW5jKCk9Pnt0cnl7Y29uc3QgcD1hd2FpdCBpbXBvcnQoJ25vZGU6cGF0aCcpO2NvbnN0IHI9cHJvY2Vzcy5lbnYuR1JPS19QTFVHSU5fUk9PVDtpZih0eXBlb2Ygcj09PSdzdHJpbmcnJiZwLmlzQWJzb2x1dGUocikpe2NvbnN0IHM9cC5qb2luKHIsJ3NjcmlwdHMnLCdmb3J3YXJkLWhvb2subWpzJyk7cHJvY2Vzcy5hcmd2PVtwcm9jZXNzLmFyZ3ZbMF0scywnZ3JvayddO2F3YWl0IGltcG9ydCgoYXdhaXQgaW1wb3J0KCdub2RlOnVybCcpKS5wYXRoVG9GaWxlVVJMKHMpLmhyZWYpfX1jYXRjaHt9fSkoKQ==','base64').toString('utf8'))\"",
98
+ "timeout": 2
99
+ }
100
+ ]
101
+ }
102
+ ],
103
+ "PreCompact": [
104
+ {
105
+ "hooks": [
106
+ {
107
+ "type": "command",
108
+ "command": "node -e \"eval(Buffer.from('KGFzeW5jKCk9Pnt0cnl7Y29uc3QgcD1hd2FpdCBpbXBvcnQoJ25vZGU6cGF0aCcpO2NvbnN0IHI9cHJvY2Vzcy5lbnYuR1JPS19QTFVHSU5fUk9PVDtpZih0eXBlb2Ygcj09PSdzdHJpbmcnJiZwLmlzQWJzb2x1dGUocikpe2NvbnN0IHM9cC5qb2luKHIsJ3NjcmlwdHMnLCdmb3J3YXJkLWhvb2subWpzJyk7cHJvY2Vzcy5hcmd2PVtwcm9jZXNzLmFyZ3ZbMF0scywnZ3JvayddO2F3YWl0IGltcG9ydCgoYXdhaXQgaW1wb3J0KCdub2RlOnVybCcpKS5wYXRoVG9GaWxlVVJMKHMpLmhyZWYpfX1jYXRjaHt9fSkoKQ==','base64').toString('utf8'))\"",
109
+ "timeout": 2
110
+ }
111
+ ]
112
+ }
113
+ ],
114
+ "PostCompact": [
115
+ {
116
+ "hooks": [
117
+ {
118
+ "type": "command",
119
+ "command": "node -e \"eval(Buffer.from('KGFzeW5jKCk9Pnt0cnl7Y29uc3QgcD1hd2FpdCBpbXBvcnQoJ25vZGU6cGF0aCcpO2NvbnN0IHI9cHJvY2Vzcy5lbnYuR1JPS19QTFVHSU5fUk9PVDtpZih0eXBlb2Ygcj09PSdzdHJpbmcnJiZwLmlzQWJzb2x1dGUocikpe2NvbnN0IHM9cC5qb2luKHIsJ3NjcmlwdHMnLCdmb3J3YXJkLWhvb2subWpzJyk7cHJvY2Vzcy5hcmd2PVtwcm9jZXNzLmFyZ3ZbMF0scywnZ3JvayddO2F3YWl0IGltcG9ydCgoYXdhaXQgaW1wb3J0KCdub2RlOnVybCcpKS5wYXRoVG9GaWxlVVJMKHMpLmhyZWYpfX1jYXRjaHt9fSkoKQ==','base64').toString('utf8'))\"",
120
+ "timeout": 2
121
+ }
122
+ ]
123
+ }
124
+ ],
125
+ "Stop": [
126
+ {
127
+ "hooks": [
128
+ {
129
+ "type": "command",
130
+ "command": "node -e \"eval(Buffer.from('KGFzeW5jKCk9Pnt0cnl7Y29uc3QgcD1hd2FpdCBpbXBvcnQoJ25vZGU6cGF0aCcpO2NvbnN0IHI9cHJvY2Vzcy5lbnYuR1JPS19QTFVHSU5fUk9PVDtpZih0eXBlb2Ygcj09PSdzdHJpbmcnJiZwLmlzQWJzb2x1dGUocikpe2NvbnN0IHM9cC5qb2luKHIsJ3NjcmlwdHMnLCdmb3J3YXJkLWhvb2subWpzJyk7cHJvY2Vzcy5hcmd2PVtwcm9jZXNzLmFyZ3ZbMF0scywnZ3JvayddO2F3YWl0IGltcG9ydCgoYXdhaXQgaW1wb3J0KCdub2RlOnVybCcpKS5wYXRoVG9GaWxlVVJMKHMpLmhyZWYpfX1jYXRjaHt9fSkoKQ==','base64').toString('utf8'))\"",
131
+ "timeout": 2
132
+ }
133
+ ]
134
+ }
135
+ ],
136
+ "StopFailure": [
137
+ {
138
+ "hooks": [
139
+ {
140
+ "type": "command",
141
+ "command": "node -e \"eval(Buffer.from('KGFzeW5jKCk9Pnt0cnl7Y29uc3QgcD1hd2FpdCBpbXBvcnQoJ25vZGU6cGF0aCcpO2NvbnN0IHI9cHJvY2Vzcy5lbnYuR1JPS19QTFVHSU5fUk9PVDtpZih0eXBlb2Ygcj09PSdzdHJpbmcnJiZwLmlzQWJzb2x1dGUocikpe2NvbnN0IHM9cC5qb2luKHIsJ3NjcmlwdHMnLCdmb3J3YXJkLWhvb2subWpzJyk7cHJvY2Vzcy5hcmd2PVtwcm9jZXNzLmFyZ3ZbMF0scywnZ3JvayddO2F3YWl0IGltcG9ydCgoYXdhaXQgaW1wb3J0KCdub2RlOnVybCcpKS5wYXRoVG9GaWxlVVJMKHMpLmhyZWYpfX1jYXRjaHt9fSkoKQ==','base64').toString('utf8'))\"",
142
+ "timeout": 2
143
+ }
144
+ ]
145
+ }
146
+ ],
147
+ "StopCancelled": [
148
+ {
149
+ "hooks": [
150
+ {
151
+ "type": "command",
152
+ "command": "node -e \"eval(Buffer.from('KGFzeW5jKCk9Pnt0cnl7Y29uc3QgcD1hd2FpdCBpbXBvcnQoJ25vZGU6cGF0aCcpO2NvbnN0IHI9cHJvY2Vzcy5lbnYuR1JPS19QTFVHSU5fUk9PVDtpZih0eXBlb2Ygcj09PSdzdHJpbmcnJiZwLmlzQWJzb2x1dGUocikpe2NvbnN0IHM9cC5qb2luKHIsJ3NjcmlwdHMnLCdmb3J3YXJkLWhvb2subWpzJyk7cHJvY2Vzcy5hcmd2PVtwcm9jZXNzLmFyZ3ZbMF0scywnZ3JvayddO2F3YWl0IGltcG9ydCgoYXdhaXQgaW1wb3J0KCdub2RlOnVybCcpKS5wYXRoVG9GaWxlVVJMKHMpLmhyZWYpfX1jYXRjaHt9fSkoKQ==','base64').toString('utf8'))\"",
153
+ "timeout": 2
154
+ }
155
+ ]
156
+ }
157
+ ],
158
+ "SessionEnd": [
159
+ {
160
+ "hooks": [
161
+ {
162
+ "type": "command",
163
+ "command": "node -e \"eval(Buffer.from('KGFzeW5jKCk9Pnt0cnl7Y29uc3QgcD1hd2FpdCBpbXBvcnQoJ25vZGU6cGF0aCcpO2NvbnN0IHI9cHJvY2Vzcy5lbnYuR1JPS19QTFVHSU5fUk9PVDtpZih0eXBlb2Ygcj09PSdzdHJpbmcnJiZwLmlzQWJzb2x1dGUocikpe2NvbnN0IHM9cC5qb2luKHIsJ3NjcmlwdHMnLCdmb3J3YXJkLWhvb2subWpzJyk7cHJvY2Vzcy5hcmd2PVtwcm9jZXNzLmFyZ3ZbMF0scywnZ3JvayddO2F3YWl0IGltcG9ydCgoYXdhaXQgaW1wb3J0KCdub2RlOnVybCcpKS5wYXRoVG9GaWxlVVJMKHMpLmhyZWYpfX1jYXRjaHt9fSkoKQ==','base64').toString('utf8'))\"",
164
+ "timeout": 2
165
+ }
166
+ ]
167
+ }
168
+ ]
169
+ }
170
+ }
@@ -0,0 +1,244 @@
1
+ {
2
+ "hooks": {
3
+ "SessionStart": [
4
+ {
5
+ "hooks": [
6
+ {
7
+ "type": "command",
8
+ "command": "node",
9
+ "args": [
10
+ "--input-type=module",
11
+ "-e",
12
+ "try { await import((await import('node:url')).pathToFileURL(process.argv[1]).href); } catch {}",
13
+ "${CLAUDE_PLUGIN_ROOT}/scripts/forward-hook.mjs",
14
+ "claude-code"
15
+ ],
16
+ "timeout": 2
17
+ }
18
+ ]
19
+ }
20
+ ],
21
+ "UserPromptSubmit": [
22
+ {
23
+ "hooks": [
24
+ {
25
+ "type": "command",
26
+ "command": "node",
27
+ "args": [
28
+ "--input-type=module",
29
+ "-e",
30
+ "try { await import((await import('node:url')).pathToFileURL(process.argv[1]).href); } catch {}",
31
+ "${CLAUDE_PLUGIN_ROOT}/scripts/forward-hook.mjs",
32
+ "claude-code"
33
+ ],
34
+ "timeout": 2
35
+ }
36
+ ]
37
+ }
38
+ ],
39
+ "PreToolUse": [
40
+ {
41
+ "matcher": "*",
42
+ "hooks": [
43
+ {
44
+ "type": "command",
45
+ "command": "node",
46
+ "args": [
47
+ "--input-type=module",
48
+ "-e",
49
+ "try { await import((await import('node:url')).pathToFileURL(process.argv[1]).href); } catch {}",
50
+ "${CLAUDE_PLUGIN_ROOT}/scripts/forward-hook.mjs",
51
+ "claude-code"
52
+ ],
53
+ "timeout": 2
54
+ }
55
+ ]
56
+ }
57
+ ],
58
+ "PermissionRequest": [
59
+ {
60
+ "matcher": "*",
61
+ "hooks": [
62
+ {
63
+ "type": "command",
64
+ "command": "node",
65
+ "args": [
66
+ "--input-type=module",
67
+ "-e",
68
+ "try { await import((await import('node:url')).pathToFileURL(process.argv[1]).href); } catch {}",
69
+ "${CLAUDE_PLUGIN_ROOT}/scripts/forward-hook.mjs",
70
+ "claude-code"
71
+ ],
72
+ "timeout": 2
73
+ }
74
+ ]
75
+ }
76
+ ],
77
+ "PostToolUse": [
78
+ {
79
+ "matcher": "*",
80
+ "hooks": [
81
+ {
82
+ "type": "command",
83
+ "command": "node",
84
+ "args": [
85
+ "--input-type=module",
86
+ "-e",
87
+ "try { await import((await import('node:url')).pathToFileURL(process.argv[1]).href); } catch {}",
88
+ "${CLAUDE_PLUGIN_ROOT}/scripts/forward-hook.mjs",
89
+ "claude-code"
90
+ ],
91
+ "timeout": 2
92
+ }
93
+ ]
94
+ }
95
+ ],
96
+ "PostToolUseFailure": [
97
+ {
98
+ "matcher": "*",
99
+ "hooks": [
100
+ {
101
+ "type": "command",
102
+ "command": "node",
103
+ "args": [
104
+ "--input-type=module",
105
+ "-e",
106
+ "try { await import((await import('node:url')).pathToFileURL(process.argv[1]).href); } catch {}",
107
+ "${CLAUDE_PLUGIN_ROOT}/scripts/forward-hook.mjs",
108
+ "claude-code"
109
+ ],
110
+ "timeout": 2
111
+ }
112
+ ]
113
+ }
114
+ ],
115
+ "PreCompact": [
116
+ {
117
+ "hooks": [
118
+ {
119
+ "type": "command",
120
+ "command": "node",
121
+ "args": [
122
+ "--input-type=module",
123
+ "-e",
124
+ "try { await import((await import('node:url')).pathToFileURL(process.argv[1]).href); } catch {}",
125
+ "${CLAUDE_PLUGIN_ROOT}/scripts/forward-hook.mjs",
126
+ "claude-code"
127
+ ],
128
+ "timeout": 2
129
+ }
130
+ ]
131
+ }
132
+ ],
133
+ "PostCompact": [
134
+ {
135
+ "hooks": [
136
+ {
137
+ "type": "command",
138
+ "command": "node",
139
+ "args": [
140
+ "--input-type=module",
141
+ "-e",
142
+ "try { await import((await import('node:url')).pathToFileURL(process.argv[1]).href); } catch {}",
143
+ "${CLAUDE_PLUGIN_ROOT}/scripts/forward-hook.mjs",
144
+ "claude-code"
145
+ ],
146
+ "timeout": 2
147
+ }
148
+ ]
149
+ }
150
+ ],
151
+ "SubagentStart": [
152
+ {
153
+ "matcher": "*",
154
+ "hooks": [
155
+ {
156
+ "type": "command",
157
+ "command": "node",
158
+ "args": [
159
+ "--input-type=module",
160
+ "-e",
161
+ "try { await import((await import('node:url')).pathToFileURL(process.argv[1]).href); } catch {}",
162
+ "${CLAUDE_PLUGIN_ROOT}/scripts/forward-hook.mjs",
163
+ "claude-code"
164
+ ],
165
+ "timeout": 2
166
+ }
167
+ ]
168
+ }
169
+ ],
170
+ "SubagentStop": [
171
+ {
172
+ "matcher": "*",
173
+ "hooks": [
174
+ {
175
+ "type": "command",
176
+ "command": "node",
177
+ "args": [
178
+ "--input-type=module",
179
+ "-e",
180
+ "try { await import((await import('node:url')).pathToFileURL(process.argv[1]).href); } catch {}",
181
+ "${CLAUDE_PLUGIN_ROOT}/scripts/forward-hook.mjs",
182
+ "claude-code"
183
+ ],
184
+ "timeout": 2
185
+ }
186
+ ]
187
+ }
188
+ ],
189
+ "Stop": [
190
+ {
191
+ "hooks": [
192
+ {
193
+ "type": "command",
194
+ "command": "node",
195
+ "args": [
196
+ "--input-type=module",
197
+ "-e",
198
+ "try { await import((await import('node:url')).pathToFileURL(process.argv[1]).href); } catch {}",
199
+ "${CLAUDE_PLUGIN_ROOT}/scripts/forward-hook.mjs",
200
+ "claude-code"
201
+ ],
202
+ "timeout": 2
203
+ }
204
+ ]
205
+ }
206
+ ],
207
+ "StopFailure": [
208
+ {
209
+ "hooks": [
210
+ {
211
+ "type": "command",
212
+ "command": "node",
213
+ "args": [
214
+ "--input-type=module",
215
+ "-e",
216
+ "try { await import((await import('node:url')).pathToFileURL(process.argv[1]).href); } catch {}",
217
+ "${CLAUDE_PLUGIN_ROOT}/scripts/forward-hook.mjs",
218
+ "claude-code"
219
+ ],
220
+ "timeout": 2
221
+ }
222
+ ]
223
+ }
224
+ ],
225
+ "SessionEnd": [
226
+ {
227
+ "hooks": [
228
+ {
229
+ "type": "command",
230
+ "command": "node",
231
+ "args": [
232
+ "--input-type=module",
233
+ "-e",
234
+ "try { await import((await import('node:url')).pathToFileURL(process.argv[1]).href); } catch {}",
235
+ "${CLAUDE_PLUGIN_ROOT}/scripts/forward-hook.mjs",
236
+ "claude-code"
237
+ ],
238
+ "timeout": 2
239
+ }
240
+ ]
241
+ }
242
+ ]
243
+ }
244
+ }
@@ -0,0 +1,3 @@
1
+ import { openCodeFamilyPlugin } from '../scripts/opencode-family-observation.mjs';
2
+
3
+ export const orchbeeAgentObservationPlugin = openCodeFamilyPlugin('kilo');
@@ -0,0 +1,4 @@
1
+ module.exports = async function orchbeeAgentObservation(omp) {
2
+ const extension = await import('./orchbee-agent-observation.mjs');
3
+ await extension.orchbeeAgentObservation(omp);
4
+ };
@@ -0,0 +1,117 @@
1
+ import { forwardSanitizedObservation } from '../scripts/observation-transport.mjs';
2
+
3
+ export function orchbeeAgentObservation(omp) {
4
+ registerOmpAgentObservation(omp, orderedDelivery('omp'));
5
+ }
6
+
7
+ export function registerOmpAgentObservation(omp, deliver) {
8
+ const activeTurns = new Map();
9
+ let identitySequence = 0;
10
+
11
+ const send = (context, event, fields = {}) => {
12
+ const sessionKey = context.sessionManager.getSessionId();
13
+ if (!identity(sessionKey)) return;
14
+ deliver(observation(sessionKey, event, fields));
15
+ };
16
+
17
+ omp.on('session_start', (_event, context) => send(context, 'session-started'));
18
+ omp.on('agent_start', (_event, context) => {
19
+ const sessionKey = context.sessionManager.getSessionId();
20
+ const turnKey = `turn:${++identitySequence}`;
21
+ activeTurns.set(sessionKey, turnKey);
22
+ send(context, 'turn-started', { activity: 'thinking', turnKey });
23
+ });
24
+ omp.on('agent_end', (event, context) => {
25
+ if (event.willContinue === true) return;
26
+ const sessionKey = context.sessionManager.getSessionId();
27
+ send(context, 'session-idle', { turnKey: activeTurns.get(sessionKey) ?? null });
28
+ activeTurns.delete(sessionKey);
29
+ });
30
+ omp.on('tool_approval_requested', (event, context) => {
31
+ const sessionKey = context.sessionManager.getSessionId();
32
+ send(context, 'approval-requested', {
33
+ operationKey: event.toolCallId,
34
+ turnKey: activeTurns.get(sessionKey) ?? null,
35
+ });
36
+ });
37
+ omp.on('tool_approval_resolved', (event, context) => {
38
+ const sessionKey = context.sessionManager.getSessionId();
39
+ send(context, 'attention-resolved', {
40
+ operationKey: event.toolCallId,
41
+ turnKey: activeTurns.get(sessionKey) ?? null,
42
+ });
43
+ });
44
+ omp.on('tool_execution_start', (event, context) => {
45
+ const sessionKey = context.sessionManager.getSessionId();
46
+ const question = event.toolName.toLowerCase() === 'ask';
47
+ send(context, question ? 'question-requested' : 'tool-started', {
48
+ activity: question ? null : ompToolActivity(event.toolName),
49
+ operationKey: event.toolCallId,
50
+ turnKey: activeTurns.get(sessionKey) ?? null,
51
+ });
52
+ });
53
+ omp.on('tool_execution_end', (event, context) => {
54
+ const sessionKey = context.sessionManager.getSessionId();
55
+ const question = event.toolName.toLowerCase() === 'ask';
56
+ const toolEvent = event.isError ? 'tool-failed' : 'tool-finished';
57
+ send(context, question ? 'attention-resolved' : toolEvent, {
58
+ operationKey: event.toolCallId,
59
+ turnKey: activeTurns.get(sessionKey) ?? null,
60
+ });
61
+ });
62
+ omp.on('auto_compaction_start', (_event, context) => {
63
+ const sessionKey = context.sessionManager.getSessionId();
64
+ send(context, 'compaction-started', { turnKey: activeTurns.get(sessionKey) ?? null });
65
+ });
66
+ omp.on('auto_compaction_end', (_event, context) => {
67
+ const sessionKey = context.sessionManager.getSessionId();
68
+ send(context, 'compaction-finished', { turnKey: activeTurns.get(sessionKey) ?? null });
69
+ });
70
+ omp.on('auto_retry_start', (_event, context) => {
71
+ const sessionKey = context.sessionManager.getSessionId();
72
+ send(context, 'tool-started', {
73
+ activity: 'retrying',
74
+ turnKey: activeTurns.get(sessionKey) ?? null,
75
+ });
76
+ });
77
+ omp.on('auto_retry_end', (event, context) => {
78
+ const sessionKey = context.sessionManager.getSessionId();
79
+ send(context, event.success ? 'tool-finished' : 'tool-failed', {
80
+ turnKey: activeTurns.get(sessionKey) ?? null,
81
+ });
82
+ });
83
+ omp.on('session_shutdown', (_event, context) => {
84
+ const sessionKey = context.sessionManager.getSessionId();
85
+ send(context, 'session-ended', { turnKey: activeTurns.get(sessionKey) ?? null });
86
+ activeTurns.delete(sessionKey);
87
+ });
88
+ }
89
+
90
+ export function ompToolActivity(toolName) {
91
+ if (toolName === 'bash' || toolName === 'powershell') return 'command';
92
+ if (toolName === 'edit' || toolName === 'write' || toolName === 'apply_patch') return 'editing';
93
+ return 'tool';
94
+ }
95
+
96
+ function observation(sessionKey, event, fields = {}) {
97
+ return {
98
+ activity: fields.activity ?? null,
99
+ agentKey: null,
100
+ event,
101
+ operationKey: fields.operationKey ?? null,
102
+ sessionKey,
103
+ turnKey: fields.turnKey ?? null,
104
+ version: 1,
105
+ };
106
+ }
107
+
108
+ function orderedDelivery(adapterId) {
109
+ let pending = Promise.resolve();
110
+ return (value) => {
111
+ pending = pending.then(() => forwardSanitizedObservation(adapterId, value));
112
+ };
113
+ }
114
+
115
+ function identity(value) {
116
+ return typeof value === 'string' && /^[A-Za-z0-9._:-]{1,128}$/u.test(value);
117
+ }
@@ -0,0 +1,13 @@
1
+ import {
2
+ openCodeClientPlugin,
3
+ openCodeFamilyPlugin,
4
+ sanitizeOpenCodeFamilyEvent,
5
+ } from '../scripts/opencode-family-observation.mjs';
6
+
7
+ export const orchbeeAgentObservationPlugin = openCodeFamilyPlugin('opencode');
8
+
9
+ export const orchbeeAgentObservationClientPlugin = openCodeClientPlugin();
10
+
11
+ export function sanitizeOpenCodeEvent(value) {
12
+ return sanitizeOpenCodeFamilyEvent('opencode', value);
13
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "orchbee-agent-observation",
3
+ "version": "0.4.17",
4
+ "private": true,
5
+ "description": "Locally sanitizes Cline lifecycle events for Orchbee Agent status observation",
6
+ "type": "module",
7
+ "exports": {
8
+ ".": "./cline/orchbee-agent-observation.js"
9
+ },
10
+ "cline": {
11
+ "plugins": [
12
+ {
13
+ "paths": [
14
+ "./cline/orchbee-agent-observation.js"
15
+ ],
16
+ "capabilities": [
17
+ "hooks"
18
+ ]
19
+ }
20
+ ]
21
+ },
22
+ "orchbeeAgentObservation": {
23
+ "contractVersion": 1
24
+ }
25
+ }
@@ -0,0 +1,4 @@
1
+ module.exports = async function orchbeeAgentObservation(pi) {
2
+ const extension = await import('./orchbee-agent-observation.mjs');
3
+ await extension.orchbeeAgentObservation(pi);
4
+ };