@clawos-dev/clawd 0.2.680 → 0.2.681

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/cli.cjs +1 -14
  2. package/package.json +1 -1
package/dist/cli.cjs CHANGED
@@ -47952,7 +47952,6 @@ function cloneState(s2) {
47952
47952
  bufferStartSeq: s2.bufferStartSeq,
47953
47953
  turnOpen: s2.turnOpen,
47954
47954
  turnStartedAt: s2.turnStartedAt,
47955
- turnSelfWoke: s2.turnSelfWoke,
47956
47955
  pendingPermissions: s2.pendingPermissions,
47957
47956
  pendingQuestions: s2.pendingQuestions,
47958
47957
  freshSpawn: s2.freshSpawn,
@@ -47975,14 +47974,6 @@ function idleKillDelayOf(state) {
47975
47974
  const ms = state.subSessionMeta?.idleKillDelayMs;
47976
47975
  return ms !== void 0 && ms > 0 ? ms : void 0;
47977
47976
  }
47978
- var STALE_TURN_END_TOLERANCE_MS = 2e3;
47979
- function isLateTurnEnd(event, turnStartedAt, now) {
47980
- if (event.kind !== "turn_end") return false;
47981
- const durationMs = event.durationMs;
47982
- if (typeof durationMs !== "number" || typeof turnStartedAt !== "number") return false;
47983
- const elapsed = now - turnStartedAt;
47984
- return durationMs > elapsed + STALE_TURN_END_TOLERANCE_MS;
47985
- }
47986
47977
  function tryFlushPending(state, deps) {
47987
47978
  if (!state.readyForSend || state.pendingSend.length === 0) return [];
47988
47979
  const text = state.pendingSend.shift();
@@ -48350,9 +48341,6 @@ function pushEventToBufferInPlace(next, event, deps) {
48350
48341
  next.pendingBgTasks = [...pending, bg.agentId];
48351
48342
  }
48352
48343
  }
48353
- if (isTurnEnd && next.turnOpen && !next.turnSelfWoke && isLateTurnEnd(withSeq, next.turnStartedAt, deps.now())) {
48354
- return [emitSessionEvent(next.file.sessionId, withSeq)];
48355
- }
48356
48344
  if (isTurnEnd) {
48357
48345
  const te2 = withSeq;
48358
48346
  if (te2.durationMs === void 0 && typeof next.turnStartedAt === "number") {
@@ -48363,7 +48351,6 @@ function pushEventToBufferInPlace(next, event, deps) {
48363
48351
  } else if (!isBackgroundEvent && !isSessionInit && !next.turnOpen) {
48364
48352
  next.turnOpen = true;
48365
48353
  next.turnStartedAt = deps.now();
48366
- next.turnSelfWoke = next.status === "running-idle";
48367
48354
  }
48368
48355
  if (!next.turnOpen && next.buffer.length > deps.bufferCap) {
48369
48356
  const remove = next.buffer.length - deps.bufferCap;
@@ -75336,7 +75323,7 @@ function computeMethodAccess(args) {
75336
75323
  }
75337
75324
 
75338
75325
  // src/version.ts
75339
- var version = "0.2.680".length > 0 ? "0.2.680" : "dev";
75326
+ var version = "0.2.681".length > 0 ? "0.2.681" : "dev";
75340
75327
 
75341
75328
  // src/cli-probe/probe.ts
75342
75329
  var fs86 = __toESM(require("fs"), 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawos-dev/clawd",
3
- "version": "0.2.680",
3
+ "version": "0.2.681",
4
4
  "description": "Standalone clawd daemon — Claude Code (and future Codex) session server over WebSocket",
5
5
  "type": "module",
6
6
  "license": "MIT",