@rallycry/conveyor-agent 9.1.0 → 10.0.0

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/dist/cli.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  loadForwardPorts,
10
10
  runSetupCommand,
11
11
  runStartCommand
12
- } from "./chunk-P3QCTUHC.js";
12
+ } from "./chunk-34NA4BCK.js";
13
13
 
14
14
  // src/cli.ts
15
15
  import { readFileSync } from "fs";
package/dist/index.d.ts CHANGED
@@ -3,15 +3,6 @@ import { AgentSessionServiceMethods, AgentMode, AgentQuestion, AgentRunnerStatus
3
3
  export * from '@project/shared';
4
4
  import { ChildProcess } from 'node:child_process';
5
5
 
6
- interface ModelUsageEntry {
7
- model: string;
8
- inputTokens: number;
9
- outputTokens: number;
10
- cacheReadInputTokens: number;
11
- cacheCreationInputTokens: number;
12
- costUSD: number;
13
- }
14
-
15
6
  interface AgentConnectionConfig {
16
7
  apiUrl: string;
17
8
  taskToken: string;
@@ -84,6 +75,14 @@ declare class AgentConnection {
84
75
  private static readonly RECONNECT_MAX_DELAY_MS;
85
76
  private static readonly RECONNECT_STATUS_EVERY_N;
86
77
  private isReconnecting;
78
+ /**
79
+ * Invoked after every successful session reconnect (the `connectAgent` RPC
80
+ * re-established the session room). The runner uses this to force a TUI
81
+ * repaint: the reconnect may have landed on a different/restarted API
82
+ * process whose PTY scrollback ring is empty, and a quiet terminal would
83
+ * otherwise never re-seed it.
84
+ */
85
+ onReconnected?: () => void;
87
86
  private reconnectToSession;
88
87
  private looksLikeAuthError;
89
88
  private startProactiveTokenRefresh;
@@ -132,13 +131,6 @@ declare class AgentConnection {
132
131
  storeSessionId(sdkSessionId: string): void;
133
132
  sendTypingStart(): void;
134
133
  sendTypingStop(): void;
135
- trackSpending(params: {
136
- agentId: string;
137
- sessionId: string;
138
- totalCostUsd: number;
139
- onSubscription: boolean;
140
- modelUsage?: ModelUsageEntry[];
141
- }): void;
142
134
  emitRateLimitPause(resetsAt: string): void;
143
135
  updateStatus(status: string): void;
144
136
  emitCodeReviewResult(content: string, approved: boolean): void;
@@ -151,10 +143,6 @@ declare class AgentConnection {
151
143
  triggerIdentification(): Promise<{
152
144
  identified: boolean;
153
145
  }>;
154
- getCumulativeSpending(): Promise<{
155
- totalCostUsd: number;
156
- modelUsage: ModelUsageEntry[];
157
- }>;
158
146
  refreshAuthToken(): Promise<boolean>;
159
147
  /**
160
148
  * Refresh the in-process `CONVEYOR_TASK_TOKEN` from the bootstrap endpoint.
@@ -436,12 +424,6 @@ declare class SessionRunner {
436
424
  private buildFullContext;
437
425
  private createQueryBridge;
438
426
  private wireConnectionCallbacks;
439
- /**
440
- * Rehydrate CostTracker from server. Caps at 3s so a slow API call never
441
- * blocks agent startup — on timeout/error we fall through with a $0 tracker
442
- * (the existing behavior before this rehydration path was added).
443
- */
444
- private seedCostTrackerFromServer;
445
427
  /** Proactively refresh the GitHub token before the 1-hour expiry. */
446
428
  private refreshGithubToken;
447
429
  /** Re-fetch task context to pick up a newly created branch and check it out. */
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  stageAndCommit,
16
16
  unshallowRepo,
17
17
  updateRemoteToken
18
- } from "./chunk-P3QCTUHC.js";
18
+ } from "./chunk-34NA4BCK.js";
19
19
 
20
20
  // src/runner/worktree.ts
21
21
  import { execSync } from "child_process";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rallycry/conveyor-agent",
3
- "version": "9.1.0",
3
+ "version": "10.0.0",
4
4
  "description": "Conveyor Agent Runner v8 - PTY harness for the task chat (SDK harness for audit/project-chat). Agent-as-User architecture with BaseService patterns. Works locally too.",
5
5
  "keywords": [
6
6
  "agent",