@c4a/context-cli 0.7.101 → 0.7.102

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/cli.js CHANGED
@@ -79260,8 +79260,8 @@ async function readGitHead(cwd) {
79260
79260
  async function ensureMaterializedSymlink(input) {
79261
79261
  const linkPath = join24(input.projectRoot, input.materializedAt);
79262
79262
  await mkdir14(dirname18(linkPath), { recursive: true });
79263
- if (existsSync8(linkPath)) {
79264
- const stats = await lstat6(linkPath);
79263
+ const stats = await lstat6(linkPath).catch(() => null);
79264
+ if (stats !== null) {
79265
79265
  if (!stats.isSymbolicLink()) {
79266
79266
  input.diagnostics.push(`materialized path exists and is not a symlink: ${input.materializedAt}`);
79267
79267
  return false;
@@ -110975,6 +110975,9 @@ async function completeCurrentIndexerActionInternal(input) {
110975
110975
  ...await readApprovedRevision(found.projectRoot) ? {
110976
110976
  expected_stage: "approved-revision",
110977
110977
  hint: "Submit the active revision with stage: approved-revision and its current revision token. Do not clear the task or remove sources to repair a payload."
110978
+ } : await readKnowledgeUpdate(found.projectRoot) ? {
110979
+ expected_stage: "source-update",
110980
+ hint: "Submit the source update decision with stage: source-update, decisions, scope_summary and new_topics, as in the Route's output schema."
110978
110981
  } : {},
110979
110982
  next_action: { command: "context status --format json" }
110980
110983
  });