diff --git a/README.ja.md b/README.ja.md new file mode 100644 index 00000000..cdf2e820 --- /dev/null +++ b/README.ja.md @@ -0,0 +1,1322 @@ +
+
+
+ Claude Code • OpenCode • Codex • Antigravity • Gemini • Pi • Grok • DeepSeek • OMP • Copilot • jcode • Terminal - ひとつのダッシュボード • あらゆるデバイス +
+ +
+
+
+ ネイティブMacアプリ:署名・公証済み、Apple SiliconとIntelに対応、macOS 11.3以降。できること
+
+
+
+
+
![]() |
+![]() |
+
| タッチでプロンプトに回答 | +アクセサリバー + 専用のEnterボタン | +
| ターミナルアプリ | +Codeman Mobile | +
|---|---|
| リモート経由で200〜300msの入力遅延 | ローカルエコー — 即座にフィードバック |
| 小さな文字、コンテキストなし | 完全なxterm.jsターミナル |
| セッション管理なし | スワイプでセッションを切り替え |
| 通知なし | 承認待ちとアイドル時のプッシュ通知 |
| 手動で再接続 | tmuxによる永続化 |
| エージェントの状況が見えない | バックグラウンドエージェントをリアルタイム表示 |
| スラッシュコマンドをコピー&ペースト | ワンタップで/init、/clear、/compact |
| スマートフォンでパスワード入力 | QRコードスキャン — 即座に認証 |
+
+
+
+
+
+
+
+
+
+
+
+
+ セッションを追跡。エージェントを可視化。リスポーンを制御。眠っている間も動かし続けましょう。 +
+ +
+ Codemanで時間を節約できたなら、スターをいただけると他の人が見つけやすくなります。
+ バグ報告や機能のアイデアはIssuesで歓迎しています。
+
- English • 简体中文 + English • 简体中文 • 日本語
diff --git a/README.zh-CN.md b/README.zh-CN.md index b7e5d2cd..507e3c2c 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -15,7 +15,7 @@
- English • 简体中文 + English • 简体中文 • 日本語
diff --git a/scripts/npm-release.mjs b/scripts/npm-release.mjs index a27282c0..890accc3 100644 --- a/scripts/npm-release.mjs +++ b/scripts/npm-release.mjs @@ -1,20 +1,21 @@ #!/usr/bin/env node /** - * @fileoverview `npm run release`: `changeset publish` with `README.zh-CN.md` moved aside. + * @fileoverview `npm run release`: `changeset publish` with the translated READMEs moved aside. * * npmjs.com renders the package's top-level `readme`, and npm picks it at publish time: * @npmcli/package-json's normalize globs `{README,README.*}` in the package root UNSORTED and * keeps the first `.md` it sees. With `README.zh-CN.md` next to `README.md` that was the * Chinese one on this machine and on CI, so npmjs.com showed the Chinese README for months. + * Every translated root README (`README.zh-CN.md`, `README.ja.md`) is moved aside the same way. * `files` cannot help: npm-packlist always includes every root `README.*`. * - * Renaming the file would break every link to it, so for the length of the publish only it + * Renaming the files would break every link to them, so for the length of the publish only each * moves to a name npm does not treat as a readme (a leading dot), and is put back afterwards, * whatever the publish did. The move happens HERE, inside the publish command, never as a * step before `changesets/action` in release.yml: that action also runs the version path and * commits the working tree into its version PR, which would commit the deletion. * - * A previous run killed between the move and the restore leaves the aside copy behind; the + * A previous run killed between the move and the restore leaves an aside copy behind; the * next run puts it back first. `xterm-zerolag-input` (packages/) has only a README.md. * * node scripts/npm-release.mjs what the Release workflow runs (via `npm run release`) @@ -24,34 +25,40 @@ import { spawnSync } from 'node:child_process'; import { join } from 'node:path'; import { fileURLToPath } from 'node:url'; -export const HIDDEN_README = 'README.zh-CN.md'; -export const ASIDE_NAME = '.README.zh-CN.md.release-aside'; +export const HIDDEN_READMES = ['README.zh-CN.md', 'README.ja.md']; +/** @param {string} name */ +export const asideName = (name) => `.${name}.release-aside`; +export const HIDDEN_README = HIDDEN_READMES[0]; +export const ASIDE_NAME = asideName(HIDDEN_README); /** - * Runs `publish` with `HIDDEN_README` moved aside in `root`, restoring it afterwards, also - * when `publish` fails or throws. Returns the exit code `publish` returned. + * Runs `publish` with every `HIDDEN_READMES` file moved aside in `root`, restoring them + * afterwards, also when `publish` fails or throws. Returns the exit code `publish` returned. * * @param {{ root: string, publish: () => number, log?: (msg: string) => void }} opts * @returns {number} */ export function publishWithReadmeAside({ root, publish, log = (msg) => console.log(msg) }) { - const original = join(root, HIDDEN_README); - const aside = join(root, ASIDE_NAME); - if (existsSync(aside) && !existsSync(original)) { - renameSync(aside, original); - log(`npm-release: restored ${HIDDEN_README} left aside by an earlier run`); - } - const moved = existsSync(original); - if (moved) { - renameSync(original, aside); - log(`npm-release: ${HIDDEN_README} moved aside so npm picks README.md as the readme`); - } + const moved = []; try { + for (const name of HIDDEN_READMES) { + const original = join(root, name); + const aside = join(root, asideName(name)); + if (existsSync(aside) && !existsSync(original)) { + renameSync(aside, original); + log(`npm-release: restored ${name} left aside by an earlier run`); + } + if (existsSync(original)) { + renameSync(original, aside); + moved.push(name); + log(`npm-release: ${name} moved aside so npm picks README.md as the readme`); + } + } return publish(); } finally { - if (moved) { - renameSync(aside, original); - log(`npm-release: ${HIDDEN_README} restored`); + for (const name of moved) { + renameSync(join(root, asideName(name)), join(root, name)); + log(`npm-release: ${name} restored`); } } } diff --git a/test/npm-release.test.ts b/test/npm-release.test.ts index 4b389368..c74bd78f 100644 --- a/test/npm-release.test.ts +++ b/test/npm-release.test.ts @@ -1,6 +1,7 @@ /** - * @fileoverview `npm run release` moves README.zh-CN.md aside for the publish, so npmjs.com - * renders README.md, and always puts it back (scripts/npm-release.mjs). + * @fileoverview `npm run release` moves the translated READMEs (README.zh-CN.md, README.ja.md) + * aside for the publish, so npmjs.com renders README.md, and always puts them back + * (scripts/npm-release.mjs). * * Port: N/A (no server). */ @@ -8,7 +9,13 @@ import { existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'no import { tmpdir } from 'node:os'; import { join } from 'node:path'; import { afterEach, describe, expect, it } from 'vitest'; -import { ASIDE_NAME, HIDDEN_README, publishWithReadmeAside } from '../scripts/npm-release.mjs'; +import { + ASIDE_NAME, + HIDDEN_README, + HIDDEN_READMES, + asideName, + publishWithReadmeAside, +} from '../scripts/npm-release.mjs'; const roots: string[] = []; function fixture(): string { @@ -96,6 +103,30 @@ describe('publishWithReadmeAside', () => { expect(existsSync(join(root, HIDDEN_README))).toBe(false); }); + it('hides the Japanese README too and restores every translation after the publish', () => { + const root = fixture(); + writeFileSync(join(root, 'README.ja.md'), 'japanese\n'); + let present: string[] = []; + const code = publishWithReadmeAside({ + root, + log: quiet, + publish: () => { + present = ['README.md', ...HIDDEN_READMES].filter((name) => existsSync(join(root, name))); + return 0; + }, + }); + expect(code).toBe(0); + expect(HIDDEN_READMES).toContain('README.ja.md'); + expect(present).toEqual(['README.md']); + expect(readFileSync(join(root, HIDDEN_README), 'utf8')).toBe('chinese\n'); + expect(readFileSync(join(root, 'README.ja.md'), 'utf8')).toBe('japanese\n'); + for (const name of HIDDEN_READMES) expect(existsSync(join(root, asideName(name)))).toBe(false); + }); + + it('no aside name is one npm treats as a readme', () => { + for (const name of HIDDEN_READMES) expect(/^readme/i.test(asideName(name))).toBe(false); + }); + it('package.json routes npm run release through the wrapper', () => { const pkg = JSON.parse(readFileSync(join(import.meta.dirname, '..', 'package.json'), 'utf8')); expect(pkg.scripts.release).toBe('node scripts/npm-release.mjs');