Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions src/llmsContext.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import fs from 'fs';
import path from 'pathe';
import { platform } from 'process';
import type { Context } from './context';
import { PluginHookType } from './plugin';
import { getLlmsRules } from './rules';
import { createLSTool } from './tools/ls';
import { getTerminal } from './utils/env';
import { getGitStatus, getLlmGitStatus } from './utils/git';
import { isProjectDirectory } from './utils/project';

Expand Down Expand Up @@ -89,7 +89,16 @@ ${Object.entries(llmsContext)
opts.additionalDirectories.join(', '),
}),
'Is directory a git repo': gitStatus ? 'YES' : 'NO',
Platform: platform,
Platform:
process.platform === 'win32'
? 'windows'
: process.platform === 'darwin'
? 'macos'
: 'linux',
Terminal: getTerminal() || 'unknown',
Shell: process.platform === 'win32' ? 'PowerShell' : 'Bash',
'Node Version': process.version,
Architecture: process.arch,
"Today's date": new Date().toLocaleDateString(),
};
llmsEnv = await opts.context.apply({
Expand Down
2 changes: 1 addition & 1 deletion src/utils/env.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function getTerminal() {
export function getTerminal() {
if (process.env.CURSOR_TRACE_ID) return 'cursor';
if (process.env.VSCODE_GIT_ASKPASS_MAIN?.includes('/.cursor-server/bin/'))
return 'cursor';
Expand Down
Loading