facade-siting-optional-chain.ts 451 B

12345678
  1. // Optional-chain call forms should still SITE (the callee is a PropertyAccess with a
  2. // question-dot). `files.read?.(p)` and `planner?.ask?.(p)` are direct calls. Expected:
  3. // world-read#1 and ask#2 sited normally; seed flows into both. No diagnostic.
  4. const seed = await agent("seed").ask<string>("seed");
  5. const c = await files.read?.(`ws/${seed}`);
  6. const planner = agent("planner");
  7. const out = await planner?.ask?.<string>(`use ${c}`);
  8. return out;