// @bun
import {
  cacheKeys,
  init_fileStateCache
} from "./chunk-24kv69g3.js";
import"./chunk-e3j7m7k2.js";
import {
  getCwd,
  init_cwd
} from "./chunk-pdvg91cg.js";
import"./chunk-9h9k5vz3.js";
import"./chunk-xmpgmeb8.js";
import {
  __esm
} from "./chunk-hhsxm2yr.js";

// src/commands/files/files.ts
import { relative } from "path";
async function call(_args, context) {
  const files = context.readFileState ? cacheKeys(context.readFileState) : [];
  if (files.length === 0) {
    return { type: "text", value: "No files in context" };
  }
  const fileList = files.map((file) => relative(getCwd(), file)).join(`
`);
  return { type: "text", value: `Files in context:
${fileList}` };
}
var init_files = __esm(() => {
  init_cwd();
  init_fileStateCache();
});
init_files();

export {
  call
};
