MCPcopy Create free account
hub / github.com/RioArisk/claudecode_api_RemoteControl / toClaudeAtPath

Function toClaudeAtPath

lib/image-upload.js:60–66  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

58// Linux Clipboard Utilities
59// ============================================================
60function toClaudeAtPath(filePath) {
61 const normalized = path.normalize(String(filePath || ''));
62 const rel = path.relative(state.CWD, normalized);
63 const inProject = rel && !rel.startsWith('..') && !path.isAbsolute(rel);
64 const target = inProject ? rel : normalized;
65 return target.split(path.sep).join('/');
66}
67
68function buildLinuxImagePrompt(text, tmpFile) {
69 const trimmedText = String(text || '').trim();

Callers 1

buildLinuxImagePromptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected