@better_openclaw/betterclaw 2.2.1 → 2.2.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better_openclaw/betterclaw",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "Intelligent event filtering, context tracking, and proactive triggers for BetterClaw",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
package/src/index.ts CHANGED
@@ -116,7 +116,7 @@ export default {
116
116
  })();
117
117
 
118
118
  // Ping health check
119
- api.registerGatewayMethod("betterclaw.ping", async ({ params, respond }) => {
119
+ api.registerGatewayMethod("betterclaw.ping", async ({ params, respond, context }) => {
120
120
  const validTiers: Array<"free" | "premium" | "premium+"> = ["free", "premium", "premium+"];
121
121
  const rawTier = (params as Record<string, unknown>)?.tier as string;
122
122
  const tier = validTiers.includes(rawTier as any) ? (rawTier as "free" | "premium" | "premium+") : "free";
@@ -142,6 +142,7 @@ export default {
142
142
  initialized,
143
143
  pushesToday: meta.pushesToday,
144
144
  budgetRemaining: Math.max(0, effectiveBudget - meta.pushesToday),
145
+ nodeConnected: context.hasConnectedMobileNode(),
145
146
  });
146
147
  });
147
148
 
package/src/triage.ts CHANGED
@@ -74,7 +74,7 @@ export async function triageEvent(
74
74
  const prompt = buildTriagePrompt(event, context, profile);
75
75
 
76
76
  try {
77
- const apiKey = process.env.BETTERCLAW_TRIAGE_API_KEY ?? (await resolveApiKey());
77
+ const apiKey = await resolveApiKey();
78
78
  if (!apiKey) {
79
79
  return { push: true, reason: "no API key for triage — defaulting to push" };
80
80
  }