teamshift 0.1.3 → 0.1.4

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 (2) hide show
  1. package/dist/run.js +9 -4
  2. package/package.json +1 -1
package/dist/run.js CHANGED
@@ -72,14 +72,19 @@ export async function runBatch(client, kind, id, prompts, options = {}) {
72
72
  try {
73
73
  const result = await waitForRunResult(client, runId);
74
74
  output = result.text ?? result.document;
75
- // The result endpoint opens only after terminal reconciliation has
76
- // settled; refresh so the printed charge is the reconciled cost,
77
- // not the dispatch-time estimate that briefly shares its status.
78
- summary = await client.getRun(runId);
79
75
  }
80
76
  catch (error) {
81
77
  resultError = `result unavailable: ${error instanceof Error ? error.message : String(error)}`;
82
78
  }
79
+ try {
80
+ // Refresh even when the deliverable read failed: reconciliation may
81
+ // still have replaced the dispatch-time estimate with the real cost.
82
+ summary = await client.getRun(runId);
83
+ }
84
+ catch {
85
+ // Keep the terminal summary already obtained; a secondary read must
86
+ // not erase a completed deliverable or its actionable result error.
87
+ }
83
88
  }
84
89
  else {
85
90
  resultError = `run ended with status ${summary.status ?? 'unknown'}`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "teamshift",
3
3
  "private": false,
4
- "version": "0.1.3",
4
+ "version": "0.1.4",
5
5
  "description": "Run TeamShift agent teams from your terminal. Metered by usage \u2014 no model key of your own required.",
6
6
  "type": "module",
7
7
  "bin": {