mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-15 21:05:51 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9bfa868e61 | ||
|
|
f6dcf63902 | ||
|
|
5957e26d9b |
9
.github/workflows/publish-npm.yml
vendored
9
.github/workflows/publish-npm.yml
vendored
@@ -24,6 +24,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: ${{ github.event.inputs.version || github.ref }}
|
ref: ${{ github.event.inputs.version || github.ref }}
|
||||||
|
|
||||||
|
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6, 2026-04-25
|
||||||
|
with:
|
||||||
|
node-version: "24"
|
||||||
|
registry-url: "https://registry.npmjs.org"
|
||||||
|
|
||||||
- name: Setup Bun
|
- name: Setup Bun
|
||||||
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2, 2026-04-25
|
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2, 2026-04-25
|
||||||
with:
|
with:
|
||||||
@@ -38,9 +43,9 @@ jobs:
|
|||||||
run: bun test
|
run: bun test
|
||||||
|
|
||||||
- name: Publish to npm
|
- name: Publish to npm
|
||||||
run: bun publish -p --access public
|
run: npm publish --provenance --access public
|
||||||
env:
|
env:
|
||||||
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
- name: Generate changelog
|
- name: Generate changelog
|
||||||
id: changelog
|
id: changelog
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "claude-code-best",
|
"name": "claude-code-best",
|
||||||
"version": "2.4.5",
|
"version": "2.4.4",
|
||||||
"description": "Reverse-engineered Anthropic Claude Code CLI — interactive AI coding assistant in the terminal",
|
"description": "Reverse-engineered Anthropic Claude Code CLI — interactive AI coding assistant in the terminal",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"author": "claude-code-best <claude-code-best@proton.me>",
|
"author": "claude-code-best <claude-code-best@proton.me>",
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
"format": "biome format --write .",
|
"format": "biome format --write .",
|
||||||
"check": "biome check .",
|
"check": "biome check .",
|
||||||
"check:fix": "biome check --fix .",
|
"check:fix": "biome check --fix .",
|
||||||
"prepare": "bunx husky",
|
"prepare": "husky",
|
||||||
"test": "bun test",
|
"test": "bun test",
|
||||||
"test:production": "bun run scripts/production-test.ts",
|
"test:production": "bun run scripts/production-test.ts",
|
||||||
"test:production:offline": "bun run scripts/production-test.ts --offline",
|
"test:production:offline": "bun run scripts/production-test.ts --offline",
|
||||||
|
|||||||
@@ -798,9 +798,7 @@ const MessagesImpl = ({
|
|||||||
|
|
||||||
// Collapse diffs for messages beyond the latest N messages.
|
// Collapse diffs for messages beyond the latest N messages.
|
||||||
// verbose (ctrl+o) overrides and always shows full diffs.
|
// verbose (ctrl+o) overrides and always shows full diffs.
|
||||||
// 0 was too aggressive — tool results are never the last message (assistant
|
const DIFF_COLLAPSE_DISTANCE = 0;
|
||||||
// text follows), so diffs were always collapsed. 3 keeps recent edits visible.
|
|
||||||
const DIFF_COLLAPSE_DISTANCE = 3;
|
|
||||||
const shouldCollapseDiffs = renderableMessages.length - 1 - index > DIFF_COLLAPSE_DISTANCE;
|
const shouldCollapseDiffs = renderableMessages.length - 1 - index > DIFF_COLLAPSE_DISTANCE;
|
||||||
|
|
||||||
const k = messageKey(msg);
|
const k = messageKey(msg);
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ const DEFAULT_STATE: VoiceState = {
|
|||||||
|
|
||||||
type VoiceStore = Store<VoiceState>;
|
type VoiceStore = Store<VoiceState>;
|
||||||
|
|
||||||
export const VoiceContext = createContext<VoiceStore | null>(null);
|
const VoiceContext = createContext<VoiceStore | null>(null);
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
|
|||||||
Reference in New Issue
Block a user