@awak-app/simy-cli 0.6.20 → 0.6.21

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": "@awak-app/simy-cli",
3
- "version": "0.6.20",
3
+ "version": "0.6.21",
4
4
  "description": "Local SIMY executor for non-coding Local Tasks and Agentic Loop runs.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -13,7 +13,7 @@ import {
13
13
  } from "./durable-local-task-steps-contract.js";
14
14
  import { buildExecutionCapabilityContract } from "./execution-capability-contract.js";
15
15
 
16
- export const CLI_VERSION = "0.6.20";
16
+ export const CLI_VERSION = "0.6.21";
17
17
  export const CLI_API_CONTRACT_VERSION = 10;
18
18
 
19
19
  export function withCliContract(
@@ -72,7 +72,8 @@ function metadataFromPrefix(bytes, id) {
72
72
  if (item.isSidechain === true) return null;
73
73
  if (typeof item.cwd !== 'string' || !isAbsolute(item.cwd)) continue;
74
74
  if (!cwd) cwd = resolve(item.cwd);
75
- if (cwd !== resolve(item.cwd)) return null;
75
+ // A conversation can cd into a child directory without changing identity.
76
+ if (!within(cwd, resolve(item.cwd))) return null;
76
77
  if (!title) title = sessionTitle(item.slug);
77
78
  found = true;
78
79
  }
@@ -233,7 +234,7 @@ async function conversationFromHandle(handle, opened, session, cwd) {
233
234
  if (unscopedFileHistory(item)) continue;
234
235
  if (item.sessionId !== session || item.isSidechain === true) { incomplete = true; continue; }
235
236
  if (!['user', 'assistant'].includes(item.type) || item.isMeta === true) continue;
236
- if (typeof item.cwd !== 'string' || resolve(item.cwd) !== cwd) { incomplete = true; continue; }
237
+ if (typeof item.cwd !== 'string' || !isAbsolute(item.cwd) || !within(cwd, resolve(item.cwd))) { incomplete = true; continue; }
237
238
  const text = textContent(item.message?.content);
238
239
  // User tool_result envelopes are not a new human request. A missing
239
240
  // human message/attachment-only request cannot silently reuse an old goal.