Earlier quoted context omitted.
They're searching for multiple substrings in a single pass, regexes are the optimal solution for that.
The issue isn't that regex are a solution to find a substring. The issue is that you shouldn't be looking for substrings in the first place. This has buttbuttin energy. Welcome to the 80s I guess.
Claude Code's source code has been leaked via a map file in their NPM registry
151–160 of 1001 posts
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#152Can we stop referring to source maps as leaks? It was packaged in a way that wasn’t even obfuscated. Same as websites - it’s not a “leak” that you can read or inspect the source code.
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#153Is that correct ? The weights of the LLMs are _not_ in this repo, right ?
It sure sucks for anthropic to get pawned like this, but it should not affect their bottom line much ?
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#154Earlier quoted context omitted.
They're searching for multiple substrings in a single pass, regexes are the optimal solution for that.
The issue isn't that regex are a solution to find a substring. The issue is that you shouldn't be looking for substrings in the first place. This has buttbuttin energy. Welcome to the 80s I guess.
I've seen Claude Code went with a regex approach for a similar sentiment-related task.
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#155Would be interesting to run this through Malus [1] or literally just Claude Code and get open source Claude Code out of it. I jest, but in a world where these models have been trained on gigatons of open source I don't even see the moral problem. IANAL, don't actually do this. https://malus.sh/
Oh god, I was so close to believing Malus was a real product and not satire.
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#156Re: Claude Code's source code has been leaked via a map file in their NPM registry
#157Is there anything special here vs. OpenCode or Codex? There were/are a lot of discussions on how the harness can affect the output.
(I work on OpenCode)
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#158Like KAIROS which seems to be like an inbuilt ai assistant and Ultraplan which seems to enable remote planning workflows, where a separate environment explores a problem, generates a plan, and then pauses for user approval before execution.
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#159Finally all spinner verbs revealed: https://github.com/instructkr/claude-code/blob/main/src/cons...
Random aside: I've seen a 2015 game be accused of AI slop on Steam because it used a similar concept... And mind you, there's probably thousands of games that do this. First it was punctuation and grammar, then linguistic coherence, and now it's tiny bits of whimsy that are falling victim to AI accusations. Good fucking grief
But AI is causing such visceral reactions that it's bleeding into other areas. People are so averse to AI they don't mind a few false positives.
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#160Why is Claude Code, a desktop tool, written in JS? Is the future of all software JS or Typescript?