MCPcopy Create free account
hub / github.com/arctic-cli/interface / environment

Function environment

packages/arctic/src/session/system.ts:38–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 }
37
38 export async function environment() {
39 const project = Instance.project
40 return [
41 [
42 `Here is some useful information about the environment you are running in:`,
43 `<env>`,
44 ` Working directory: ${Instance.directory}`,
45 ` Is directory a git repo: ${project.vcs === "git" ? "yes" : "no"}`,
46 ` Platform: ${process.platform}`,
47 ` Today's date: ${new Date().toDateString()}`,
48 `</env>`,
49 `<files>`,
50 ` ${
51 project.vcs === "git"
52 ? await Ripgrep.tree({
53 cwd: Instance.directory,
54 limit: 200,
55 })
56 : ""
57 }`,
58 `</files>`,
59 ].join("\n"),
60 ]
61 }
62
63 const LOCAL_RULE_FILES = [
64 "ARCTIC.md",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected