You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/image-url.jpg?q=fetch&page=4&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=fetch
Returns an array of strings in format "username" or "username/projectName"
Found 15238 results for "fetch"(4306ms)
136console.log(`[SkillRegistry] Copying skill file from user namespace ${userNamespace}`);
137
138// Create a temporary auth context for the original user to fetch their file
139const originalUserAuthContext = { namespace: userNamespace, isDemo: false };
140const originalUserFilesStore = new (filesStore.constructor)(originalUserAuthContext, filesStore.s3Client, filesStore.bucketName);
264console.log(`[SkillRegistry] Updating skill file from user namespace ${systemSkill.promotedFrom}`);
265
266// Create a temporary auth context for the original user to fetch their file
267const originalUserAuthContext = { namespace: systemSkill.promotedFrom, isDemo: false };
268const originalUserFilesStore = new (filesStore.constructor)(originalUserAuthContext, filesStore.s3Client, filesStore.bucketName);
184. Another user tries to execute the system skill
195. Skill execution calls `handleCodeExec({ key: skill.fileKey, input: args }, authContext)`
206. File retrieval fails because it tries to fetch `"my-skill.js"` from the current user's namespace, not the original user's namespace where the file actually exists
217. Files handler returns `"File not found"` as the content
228. Code execution tries to execute the string `"File not found"` as JavaScript code
2425### The Core Issue:
26System skills store the original user's `fileKey`, but when executed, they try to fetch the file from the current user's namespace instead of the original user's namespace.
2728## Implemented Solution