@pushpalsdev/cli 1.1.42 → 1.1.43

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": "@pushpalsdev/cli",
3
- "version": "1.1.42",
3
+ "version": "1.1.43",
4
4
  "description": "PushPals terminal CLI for LocalBuddy -> RemoteBuddy orchestration",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -7773,20 +7773,29 @@ ${JSON.stringify(input.messages ?? [])}`),
7773
7773
  return;
7774
7774
  }
7775
7775
  this.setPhase("scoring");
7776
- const scoringPhase = await this.llmPhase("scoring", runId, snapshot.snapshot_id, {
7777
- system: SCORING_SYSTEM_PROMPT,
7778
- json: true,
7779
- maxTokens: 1400,
7780
- temperature: 0.1,
7781
- messages: [
7782
- {
7783
- role: "user",
7784
- content: JSON.stringify({ candidates: normalizedCandidates, top_k: this.cfg.topK })
7785
- }
7786
- ]
7787
- });
7788
- llmCalls.push(scoringPhase.llmCall);
7789
- const scoringJson = scoringPhase.json;
7776
+ let scoringJson = { scores: [] };
7777
+ try {
7778
+ const scoringPhase = await this.llmPhase("scoring", runId, snapshot.snapshot_id, {
7779
+ system: SCORING_SYSTEM_PROMPT,
7780
+ json: true,
7781
+ maxTokens: 1400,
7782
+ temperature: 0.1,
7783
+ messages: [
7784
+ {
7785
+ role: "user",
7786
+ content: JSON.stringify({ candidates: normalizedCandidates, top_k: this.cfg.topK })
7787
+ }
7788
+ ]
7789
+ });
7790
+ llmCalls.push(scoringPhase.llmCall);
7791
+ scoringJson = scoringPhase.json;
7792
+ } catch (error) {
7793
+ if (error instanceof Error && error.message === "autonomy scoring phase timeout") {
7794
+ console.warn(`[RemoteBuddyAutonomousEngine] tick ${runId}: scoring timed out; continuing with deterministic candidate scoring.`);
7795
+ } else {
7796
+ throw error;
7797
+ }
7798
+ }
7790
7799
  if (this.isSnapshotExpired(snapshot) || Date.now() > cycleDeadline) {
7791
7800
  this.setPhase("record_snapshot_expired");
7792
7801
  await this.recordSnapshotExpired(runId, snapshot.snapshot_id, llmCalls, candidatesPayload);