@atolis-hq/wake 0.3.112 → 0.3.113

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.
@@ -108,4 +108,4 @@ export function resolveWakeVersion(options = {}) {
108
108
  return `g${headHash.slice(0, 7)}`;
109
109
  return '0.1.0-dev';
110
110
  }
111
- export const wakeVersion = "gadbb014";
111
+ export const wakeVersion = "g8a24705";
@@ -180,6 +180,8 @@ function recordToolOutput(payload, telemetry) {
180
180
  function recordExecOutput(call, result, telemetry) {
181
181
  if (call.spawnsBackgroundJob === true && result.exitCode === undefined && result.pendingCellId)
182
182
  telemetry.pendingCells.add(result.pendingCellId);
183
+ if (call.writeStdinSessionId !== undefined && result.pendingCellId !== undefined)
184
+ telemetry.sessionsByCell.set(result.pendingCellId, call.writeStdinSessionId);
183
185
  if (call.writeStdinSessionId === undefined || result.jsonExitCode === undefined)
184
186
  return;
185
187
  resolveSession(call.writeStdinSessionId, telemetry);
@@ -193,8 +195,12 @@ function resolveSession(sessionId, telemetry) {
193
195
  function recordWaitOutput(call, result, telemetry) {
194
196
  if (call.cellId === undefined)
195
197
  return;
196
- if (result.exitCode !== undefined)
198
+ if (result.exitCode !== undefined) {
197
199
  telemetry.resolvedCells.add(call.cellId);
200
+ const sessionId = telemetry.sessionsByCell.get(call.cellId);
201
+ if (sessionId !== undefined && result.jsonExitCode !== undefined)
202
+ resolveSession(sessionId, telemetry);
203
+ }
198
204
  if (result.sessionId !== undefined)
199
205
  telemetry.sessionsByCell.set(call.cellId, result.sessionId);
200
206
  if (result.notFoundCellId === call.cellId)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atolis-hq/wake",
3
- "version": "0.3.112",
3
+ "version": "0.3.113",
4
4
  "description": "Local autonomous agent control plane for software development",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {