@eyeclaw/eyeclaw 2.0.9 → 2.0.11
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/package.json +1 -1
- package/src/channel.ts +2 -2
- package/src/client.ts +3 -0
package/package.json
CHANGED
package/src/channel.ts
CHANGED
|
@@ -12,11 +12,11 @@ let _runtime: any = null
|
|
|
12
12
|
/**
|
|
13
13
|
* Set the plugin runtime (called during plugin registration)
|
|
14
14
|
*/
|
|
15
|
-
function setRuntime(runtime: any) {
|
|
15
|
+
export function setRuntime(runtime: any) {
|
|
16
16
|
_runtime = runtime
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
function getRuntime() {
|
|
19
|
+
export function getRuntime() {
|
|
20
20
|
return _runtime
|
|
21
21
|
}
|
|
22
22
|
|
package/src/client.ts
CHANGED
|
@@ -87,6 +87,9 @@ export class EyeClawClient {
|
|
|
87
87
|
private handleChannelMessage(message: Record<string, unknown>): void {
|
|
88
88
|
const { type } = message
|
|
89
89
|
|
|
90
|
+
// Debug: log all message types
|
|
91
|
+
this.logger.debug(`📩 Channel message: ${JSON.stringify(message)}`)
|
|
92
|
+
|
|
90
93
|
switch (type) {
|
|
91
94
|
case 'connected':
|
|
92
95
|
this.sessionId = message.session_id as string
|