Amusingly, they deprecated it with a message of "Unpublished" instead of actually unpublishing it [1]. When you use npm unpublish it removes the package version from the registry, when you use npm deprecate it leaves it there and simply marks the package as deprecated with your message. I have to imagine the point was to make it harder for people to download the source map, so to deprecate it with this message gives…
Commit Message: undo undo unpublish ctrl-z ctrl-c No, stop, don’t commit tha
Claude Code's source code has been leaked via a map file in their NPM registry
951–960 of 1001 posts
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#952Earlier quoted context omitted.
Relieved to know I'm not the only one who grepped for that. Thank you for making me feel sane, friend.
is it a reference to something?
It became a bit of a meme in the years since.
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#953Earlier quoted context omitted.
here's another gem. src/ink/termio/osc.ts:192–210 void execFileNoThrow('wl-copy', [], opts).then(r => { if (r.code === 0) { linuxCopy = 'wl-copy'; return } void execFileNoThrow('xclip', ...).then(r2 => { if (r2.code === 0) { linuxCopy = 'xclip'; return } void execFileNoThrow('xsel', ...).then(r3 => { linuxCopy = r3.code === 0 ? 'xsel' : null }) }) }) are we doing async or not?
what does that even do?
Can't tell if that obfuscated code works though.
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#954Re: Claude Code's source code has been leaked via a map file in their NPM registry
#955Re: Claude Code's source code has been leaked via a map file in their NPM registry
#956Re: Claude Code's source code has been leaked via a map file in their NPM registry
#957Re: Claude Code's source code has been leaked via a map file in their NPM registry
#958Earlier quoted context omitted.
Great! Lets do the CAPTCHA-test: Will I, as a 100% blind user, be able to complete your process?
I think so? Can you use a smartphone? edit: can't reply, the rate-limiting is such an awful UX
I might reply with a similarily useless question: Can you write accessible smartphone apps?
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#959Earlier quoted context omitted.
That's already the case I think, you just have to change a bunch of env vars.
No it isn't? Are you an AI?
There was a recent post on HN describing how to use local models with claude code by changing some env vars. Also some tools let you run Claude Code with other models conveniently (see: https://docs.ollama.com/integrations/claude-code).
> Are you an AI?
If I were one, I would not admit it!
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#960Earlier quoted context omitted.
I like these guys less every day. The rate limits are so low they are close to not even useful as a provider.
It made me raise my eyebrows when everyone was rushing to jump to Claude because OpenAI agreed to work with the DoW. Both companies are just as shitty as each other and will resort to underhanded tactics to stay on top. Go China to be honest. They're the most committed to open AI research and they have more interesting constraints to work under, like restricted access to NVIDIA hardware.