@open-document/core 0.13.3 → 0.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/{build-CvsOak5B.js → build-I0cgoERP.js} +1 -1
  2. package/dist/{check-CbUBwYmf.js → check-Dys96QSL.js} +3 -3
  3. package/dist/cli/bin.js +10 -21
  4. package/dist/{config-BWtOZ1jc.d.ts → config-cAV1OCuY.d.ts} +9 -1
  5. package/dist/{context-CWgfsHoE.js → context-C-osJW5f.js} +1 -1
  6. package/dist/{dev-B8H2qT6G.js → dev-CC4PrIOC.js} +1 -1
  7. package/dist/{diff-BvIjjgnc.js → diff-DhutD4TJ.js} +2 -2
  8. package/dist/{export-DX30_s2q.js → export-KrajVJO7.js} +3 -3
  9. package/dist/{import-DgsdJT5e.js → import-Yv34za3L.js} +3 -2
  10. package/dist/index.d.ts +2 -2
  11. package/dist/ops/index.d.ts +3 -1
  12. package/dist/ops/index.js +2 -2
  13. package/dist/ops-Dux5HlkH.js +401 -0
  14. package/dist/{preview-DYMUNjXL.js → preview-7eqn9Wzf.js} +1 -1
  15. package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
  16. package/dist/{config-CltJJVsw.js → session-BSbrC5gK.js} +3268 -385
  17. package/dist/{templates-B5Tz0AKb.js → templates-s-VLTSRc.js} +3 -3
  18. package/dist/vite/index.d.ts +1 -1
  19. package/dist/vite/index.js +1 -1
  20. package/package.json +1 -1
  21. package/skills/create-doc/SKILL.md +1 -1
  22. package/skills/doc-authoring/SKILL.md +6 -0
  23. package/src/app/app.tsx +2 -0
  24. package/src/app/components/agent/agent-dock.tsx +75 -0
  25. package/src/app/components/agent/agent-markdown.tsx +45 -0
  26. package/src/app/components/agent/agent-panel.tsx +695 -0
  27. package/src/app/components/agent/agent-presence.tsx +74 -0
  28. package/src/app/components/agent/composer.tsx +120 -0
  29. package/src/app/components/agent/connect-view.tsx +183 -0
  30. package/src/app/components/agent/history-view.tsx +134 -0
  31. package/src/app/components/agent/provider-logo.tsx +23 -0
  32. package/src/app/components/agent/transcript.tsx +717 -0
  33. package/src/app/components/comments/comments-panel.tsx +26 -2
  34. package/src/app/components/inspector/inspector.tsx +17 -0
  35. package/src/app/components/note-markdown.tsx +85 -0
  36. package/src/app/components/page-error-boundary.tsx +84 -0
  37. package/src/app/components/page-frame.tsx +2 -1
  38. package/src/app/components/panel/resize-handle.tsx +129 -0
  39. package/src/app/components/ui/button.tsx +97 -0
  40. package/src/app/components/ui/popover.tsx +144 -0
  41. package/src/app/components/ui/tooltip.tsx +123 -0
  42. package/src/app/lib/agent/use-agent.ts +543 -0
  43. package/src/app/lib/diagnostics.ts +13 -0
  44. package/src/app/lib/export-dom.ts +2 -1
  45. package/src/app/lib/export-pdf.ts +2 -1
  46. package/src/app/lib/i18n-ja/agent-panel.ts +115 -0
  47. package/src/app/lib/i18n-ja/agent.ts +9 -0
  48. package/src/app/lib/i18n-ja/index.ts +9 -1
  49. package/src/app/lib/i18n-ko/agent-panel.ts +114 -0
  50. package/src/app/lib/i18n-ko/agent.ts +9 -0
  51. package/src/app/lib/i18n-ko/index.ts +9 -1
  52. package/src/app/lib/i18n-zh-cn/agent-panel.ts +113 -0
  53. package/src/app/lib/i18n-zh-cn/agent.ts +9 -0
  54. package/src/app/lib/i18n-zh-cn/index.ts +9 -1
  55. package/src/app/lib/i18n-zh-tw/agent-panel.ts +113 -0
  56. package/src/app/lib/i18n-zh-tw/agent.ts +9 -0
  57. package/src/app/lib/i18n-zh-tw/index.ts +9 -1
  58. package/src/app/lib/note-markdown.ts +116 -0
  59. package/src/app/lib/toast.ts +50 -0
  60. package/src/app/lib/use-auto-grow.ts +15 -0
  61. package/src/app/lib/use-doc-titles.ts +28 -0
  62. package/src/app/lib/use-locale.ts +151 -0
  63. package/src/app/lib/utils.ts +4 -0
  64. package/src/app/routes/doc-preview.tsx +103 -0
  65. package/src/app/routes/doc.tsx +118 -11
  66. package/src/app/routes/home.tsx +43 -8
  67. package/src/app/styles.css +193 -0
  68. package/dist/ops-CSR5RlrE.js +0 -1673
@@ -1,5 +1,6 @@
1
1
  import { createElement } from 'react';
2
2
  import { createRoot, type Root } from 'react-dom/client';
3
+ import { PageErrorBoundary } from '../components/page-error-boundary';
3
4
  import { SheetWatermark } from '../components/page-frame';
4
5
  import { designToCssVars } from './design';
5
6
  import { PAGE_ATTR, PAGE_INDEX_ATTR } from './outline';
@@ -129,7 +130,7 @@ export async function mountPrintCopy(
129
130
  createElement(
130
131
  DocPageProvider,
131
132
  { index: i, total },
132
- page.content,
133
+ createElement(PageErrorBoundary, { index: i }, page.content),
133
134
  createElement(SheetWatermark, { text: doc.meta?.watermark }),
134
135
  ),
135
136
  );
@@ -0,0 +1,115 @@
1
+ // The agent panel's strings, keyed by the English text in `use-locale.ts`.
2
+ export const AGENT_PANEL: Record<string, string> = {
3
+ Agent: 'エージェント',
4
+ Beta: 'Beta',
5
+ 'Early preview': 'プレビュー版',
6
+ 'Replies, edits and tool calls can occasionally fail or do something unexpected.':
7
+ '返答・編集・ツール実行が失敗したり、思わぬ動作をしたりすることがあります。',
8
+ 'Open the agent panel': 'エージェントパネルを開く',
9
+ 'Close agent panel': 'エージェントパネルを閉じる',
10
+ 'New chat': '新しいチャット',
11
+ History: '履歴',
12
+ 'No conversations yet.': 'まだ会話はありません。',
13
+ 'Delete conversation': '会話を削除',
14
+ 'Other documents': '他のドキュメント',
15
+ 'Chats you start in this panel show up here.': 'このパネルで始めた会話がここに表示されます。',
16
+ Working: '実行中',
17
+ 'Ask {provider} to create or edit documents…': '{provider} にドキュメントの作成や編集を依頼…',
18
+ Send: '送信',
19
+ Stop: '停止',
20
+ 'Page {n}': '{n} ページ目',
21
+ Selection: '選択中',
22
+ '{count} comment': '{count} 件のコメント',
23
+ '{count} comments': '{count} 件のコメント',
24
+ 'Apply comments': 'コメントを適用',
25
+ 'Apply with {provider}': '{provider} で適用',
26
+ 'Create a document with {provider}': '{provider} でドキュメントを作成',
27
+ 'Draft a new document': '新しいドキュメントを下書き',
28
+ 'Opens a blank document; describe it and the agent drafts it section by section.':
29
+ '空のドキュメントを開きます。内容を説明すると、エージェントがセクションごとに下書きします。',
30
+ 'Apply pending comments': '未処理のコメントを適用',
31
+ 'Resolves every @doc-comment marker in this document.':
32
+ 'このドキュメントのすべての @doc-comment マーカーを解決します。',
33
+ 'Create a theme': 'テーマを作成',
34
+ 'Extracts or designs a reusable theme under themes/.':
35
+ 'themes/ に再利用できるテーマを抽出・設計します。',
36
+ 'Edit this page': 'このページを編集',
37
+ 'Describe a change to the page you are viewing.': '表示中のページへの変更内容を書いてください。',
38
+ 'What should we build?': '何を作りますか?',
39
+ 'Describe a document, or pick a starting point.':
40
+ 'ドキュメントを説明するか、出発点を選んでください。',
41
+ Continue: '続ける',
42
+ Other: 'その他',
43
+ 'Type your own answer': '自由に入力',
44
+ Dismissed: 'スキップ',
45
+ 'Needs approval': '承認が必要です',
46
+ Allow: '許可',
47
+ Deny: '拒否',
48
+ Allowed: '許可済み',
49
+ Denied: '拒否済み',
50
+ 'Auto-approve': '自動承認',
51
+ 'Run commands without asking. Edits inside the workspace are always allowed.':
52
+ '確認なしでコマンドを実行します。ワークスペース内の編集は常に許可されます。',
53
+ Stopped: '停止',
54
+ '{seconds}s': '{seconds} 秒',
55
+ Error: 'エラー',
56
+ 'Checking agents': 'エージェントを確認中',
57
+ 'The agent panel is disabled in open-doc.config.ts.':
58
+ 'エージェントパネルは open-doc.config.ts で無効化されています。',
59
+ 'Connect an agent': 'エージェントを接続',
60
+ 'Drive your coding agent from here instead of a terminal. Agents installed on this machine connect automatically and reuse their sign-in.':
61
+ 'ターミナルの代わりにここからコーディングエージェントを操作できます。このマシンにインストール済みのエージェントは自動で接続され、そのログインを再利用します。',
62
+ Connect: '接続',
63
+ Connecting: '接続中',
64
+ Connected: '接続済み',
65
+ 'Adds {pkg} to this workspace with {pm}.': '{pm} で {pkg} をこのワークスペースに追加します。',
66
+ 'CLI found · v{version}': 'CLI を検出 · v{version}',
67
+ 'CLI found': 'CLI を検出',
68
+ 'CLI not found on PATH': 'PATH に CLI が見つかりません',
69
+ 'Install the {name} CLI and sign in once; the panel reuses its login.':
70
+ '{name} CLI をインストールして一度ログインしてください。パネルはそのログインを再利用します。',
71
+ 'Install Codex first': '先に Codex をインストールしてください',
72
+ 'The panel drives the Codex CLI on this machine, and it was not found on your PATH. Install it, sign in once in a terminal with `codex`, then check again.':
73
+ 'エージェントパネルはこのコンピューターの Codex CLI を使いますが、PATH に見つかりませんでした。インストールしてターミナルで `codex` に一度サインインしてから、もう一度確認してください。',
74
+ 'Check again': 'もう一度確認',
75
+ Retry: '再試行',
76
+ '{name} connected': '{name} を接続しました',
77
+ 'Could not install {pkg}': '{pkg} をインストールできませんでした',
78
+ 'Manage agents': 'エージェントを管理',
79
+ Back: '戻る',
80
+ 'Could not send message': 'メッセージを送信できませんでした',
81
+ "What's this document about?": 'どんなドキュメントにしますか?',
82
+ 'Describe the topic, audience and tone. {provider} drafts it section by section while you watch.':
83
+ 'テーマ・読者・トーンを説明してください。{provider} がセクションごとに下書きする様子を見られます。',
84
+ 'A two-page project brief on…': '…についての2ページの企画書',
85
+ 'Could not create a document': 'ドキュメントを作成できませんでした',
86
+ '{count} step': '{count} ステップ',
87
+ '{count} steps': '{count} ステップ',
88
+ Skip: 'スキップ',
89
+ Copy: 'コピー',
90
+ Cancel: 'キャンセル',
91
+ 'Sending replaces the conversation after this message. Edits already made to files stay.':
92
+ '送信すると、このメッセージ以降の会話が置き換わります。ファイルへの変更は元に戻りません。',
93
+ Default: 'デフォルト',
94
+ Reasoning: '推論',
95
+ Auto: '自動',
96
+ Minimal: '最小',
97
+ Low: '低',
98
+ Medium: '中',
99
+ High: '高',
100
+ 'Extra high': '最高',
101
+ Max: '最大',
102
+ '{provider} is editing': '{provider} が編集中',
103
+ Thinking: '考え中',
104
+ 'Waiting for you': 'あなたの回答待ち',
105
+ 'Draft with agent': 'エージェントで下書き',
106
+ 'Resize the agent panel': 'エージェントパネルの幅を変更',
107
+ 'Checking the document…': 'ドキュメントをチェック中…',
108
+ 'Could not check the document': 'ドキュメントをチェックできませんでした',
109
+ 'Checked · no problems': 'チェック済み · 問題なし',
110
+ 'Checked · no problems · {count} pages': 'チェック済み · 問題なし · {count} ページ',
111
+ 'The check found {count} problem': 'チェックで {count} 件の問題が見つかりました',
112
+ 'The check found {count} problems': 'チェックで {count} 件の問題が見つかりました',
113
+ '+{count} more': 'ほか {count} 件',
114
+ 'Ask the agent to fix': 'エージェントに修正を依頼',
115
+ };
@@ -0,0 +1,9 @@
1
+ export const AGENT: Record<string, string> = {
2
+ Agent: 'エージェント',
3
+ 'Close the agent panel': 'エージェントパネルを閉じる',
4
+ 'Ask the agent': 'エージェントに依頼',
5
+ Ran: '実行',
6
+ 'This page could not be drawn': 'このページを表示できません',
7
+ 'It is drawn again as soon as the source is saved.': 'ソースを保存すると再描画されます。',
8
+ 'Apply with {agent}': '{agent} で反映',
9
+ };
@@ -1,5 +1,13 @@
1
+ import { AGENT } from './agent';
2
+ import { AGENT_PANEL } from './agent-panel';
1
3
  import { BROWSER } from './browser';
2
4
  import { DOC } from './doc';
3
5
  import { PANELS } from './panels';
4
6
 
5
- export const JA: Record<string, string> = { ...BROWSER, ...DOC, ...PANELS };
7
+ export const JA: Record<string, string> = {
8
+ ...BROWSER,
9
+ ...DOC,
10
+ ...PANELS,
11
+ ...AGENT,
12
+ ...AGENT_PANEL,
13
+ };
@@ -0,0 +1,114 @@
1
+ // The agent panel's strings, keyed by the English text in `use-locale.ts`.
2
+ export const AGENT_PANEL: Record<string, string> = {
3
+ Agent: '에이전트',
4
+ Beta: '베타',
5
+ 'Early preview': '초기 미리보기',
6
+ 'Replies, edits and tool calls can occasionally fail or do something unexpected.':
7
+ '답변, 편집, 도구 호출이 가끔 실패하거나 예상과 다르게 동작할 수 있습니다.',
8
+ 'Open the agent panel': '에이전트 패널 열기',
9
+ 'Close agent panel': '에이전트 패널 닫기',
10
+ 'New chat': '새 채팅',
11
+ History: '기록',
12
+ 'No conversations yet.': '아직 대화가 없습니다.',
13
+ 'Delete conversation': '대화 삭제',
14
+ 'Other documents': '다른 문서',
15
+ 'Chats you start in this panel show up here.': '이 패널에서 시작한 채팅이 여기에 표시됩니다.',
16
+ Working: '작업 중',
17
+ 'Ask {provider} to create or edit documents…': '{provider}에게 문서 작성이나 편집을 요청하세요…',
18
+ Send: '보내기',
19
+ Stop: '중지',
20
+ 'Page {n}': '{n}쪽',
21
+ Selection: '선택 항목',
22
+ '{count} comment': '댓글 {count}개',
23
+ '{count} comments': '댓글 {count}개',
24
+ 'Apply comments': '댓글 반영',
25
+ 'Apply with {provider}': '{provider}로 반영',
26
+ 'Create a document with {provider}': '{provider}로 문서 만들기',
27
+ 'Draft a new document': '새 문서 초안 작성',
28
+ 'Opens a blank document; describe it and the agent drafts it section by section.':
29
+ '빈 문서를 엽니다. 내용을 설명하면 에이전트가 섹션별로 초안을 작성합니다.',
30
+ 'Apply pending comments': '남은 댓글 반영',
31
+ 'Resolves every @doc-comment marker in this document.':
32
+ '이 문서의 모든 @doc-comment 마커를 처리합니다.',
33
+ 'Create a theme': '테마 만들기',
34
+ 'Extracts or designs a reusable theme under themes/.':
35
+ 'themes/ 아래에 재사용할 테마를 추출하거나 디자인합니다.',
36
+ 'Edit this page': '이 페이지 편집',
37
+ 'Describe a change to the page you are viewing.': '보고 있는 페이지의 변경 사항을 설명하세요.',
38
+ 'What should we build?': '무엇을 만들까요?',
39
+ 'Describe a document, or pick a starting point.': '문서를 설명하거나 시작점을 고르세요.',
40
+ Continue: '계속',
41
+ Other: '기타',
42
+ 'Type your own answer': '직접 답변 입력',
43
+ Dismissed: '닫음',
44
+ 'Needs approval': '승인 필요',
45
+ Allow: '허용',
46
+ Deny: '거부',
47
+ Allowed: '허용됨',
48
+ Denied: '거부됨',
49
+ 'Auto-approve': '자동 승인',
50
+ 'Run commands without asking. Edits inside the workspace are always allowed.':
51
+ '묻지 않고 명령을 실행합니다. 작업 공간 안의 편집은 항상 허용됩니다.',
52
+ Stopped: '중지됨',
53
+ '{seconds}s': '{seconds}초',
54
+ Error: '오류',
55
+ 'Checking agents': '에이전트 확인 중',
56
+ 'The agent panel is disabled in open-doc.config.ts.':
57
+ 'open-doc.config.ts에서 에이전트 패널이 꺼져 있습니다.',
58
+ 'Connect an agent': '에이전트 연결',
59
+ 'Drive your coding agent from here instead of a terminal. Agents installed on this machine connect automatically and reuse their sign-in.':
60
+ '터미널 대신 여기에서 코딩 에이전트를 사용하세요. 이 컴퓨터에 설치된 에이전트는 자동으로 연결되고 기존 로그인을 그대로 씁니다.',
61
+ Connect: '연결',
62
+ Connecting: '연결 중',
63
+ Connected: '연결됨',
64
+ 'Adds {pkg} to this workspace with {pm}.': '{pm}로 이 작업 공간에 {pkg}을(를) 추가합니다.',
65
+ 'CLI found · v{version}': 'CLI 있음 · v{version}',
66
+ 'CLI found': 'CLI 있음',
67
+ 'CLI not found on PATH': 'PATH에서 CLI를 찾을 수 없음',
68
+ 'Install the {name} CLI and sign in once; the panel reuses its login.':
69
+ '{name} CLI를 설치하고 한 번 로그인하세요. 패널이 그 로그인을 그대로 씁니다.',
70
+ 'Install Codex first': '먼저 Codex를 설치하세요',
71
+ 'The panel drives the Codex CLI on this machine, and it was not found on your PATH. Install it, sign in once in a terminal with `codex`, then check again.':
72
+ '에이전트 패널은 이 컴퓨터의 Codex CLI를 사용하는데 PATH에서 찾지 못했습니다. 설치하고 터미널에서 `codex`로 한 번 로그인한 뒤 다시 확인하세요.',
73
+ 'Check again': '다시 확인',
74
+ Retry: '다시 시도',
75
+ '{name} connected': '{name} 연결됨',
76
+ 'Could not install {pkg}': '{pkg}을(를) 설치할 수 없습니다',
77
+ 'Manage agents': '에이전트 관리',
78
+ Back: '뒤로',
79
+ 'Could not send message': '메시지를 보낼 수 없습니다',
80
+ "What's this document about?": '어떤 문서인가요?',
81
+ 'Describe the topic, audience and tone. {provider} drafts it section by section while you watch.':
82
+ '주제, 독자, 어조를 설명하세요. {provider}가 섹션별로 작성하는 모습을 볼 수 있습니다.',
83
+ 'A two-page project brief on…': '…에 관한 두 쪽짜리 기획서',
84
+ 'Could not create a document': '문서를 만들 수 없습니다',
85
+ '{count} step': '{count}단계',
86
+ '{count} steps': '{count}단계',
87
+ Skip: '건너뛰기',
88
+ Copy: '복사',
89
+ Cancel: '취소',
90
+ 'Sending replaces the conversation after this message. Edits already made to files stay.':
91
+ '보내면 이 메시지 이후의 대화가 바뀝니다. 파일에 이미 적용된 편집은 그대로 남습니다.',
92
+ Default: '기본값',
93
+ Reasoning: '추론',
94
+ Auto: '자동',
95
+ Minimal: '최소',
96
+ Low: '낮음',
97
+ Medium: '보통',
98
+ High: '높음',
99
+ 'Extra high': '매우 높음',
100
+ Max: '최대',
101
+ '{provider} is editing': '{provider}가 편집 중',
102
+ Thinking: '생각 중',
103
+ 'Waiting for you': '입력을 기다리는 중',
104
+ 'Draft with agent': '에이전트로 초안 작성',
105
+ 'Resize the agent panel': '에이전트 패널 너비 조절',
106
+ 'Checking the document…': '문서를 검사하는 중…',
107
+ 'Could not check the document': '문서를 검사할 수 없습니다',
108
+ 'Checked · no problems': '검사 완료 · 문제 없음',
109
+ 'Checked · no problems · {count} pages': '검사 완료 · 문제 없음 · {count}쪽',
110
+ 'The check found {count} problem': '검사에서 문제 {count}개를 찾았습니다',
111
+ 'The check found {count} problems': '검사에서 문제 {count}개를 찾았습니다',
112
+ '+{count} more': '그 외 {count}개',
113
+ 'Ask the agent to fix': '에이전트에게 수정 요청',
114
+ };
@@ -0,0 +1,9 @@
1
+ export const AGENT: Record<string, string> = {
2
+ Agent: '에이전트',
3
+ 'Close the agent panel': '에이전트 패널 닫기',
4
+ 'Ask the agent': '에이전트에게 요청',
5
+ Ran: '실행',
6
+ 'This page could not be drawn': '이 페이지를 표시할 수 없습니다',
7
+ 'It is drawn again as soon as the source is saved.': '소스를 저장하면 다시 그려집니다.',
8
+ 'Apply with {agent}': '{agent}로 반영',
9
+ };
@@ -1,5 +1,13 @@
1
+ import { AGENT } from './agent';
2
+ import { AGENT_PANEL } from './agent-panel';
1
3
  import { BROWSER } from './browser';
2
4
  import { DOC } from './doc';
3
5
  import { PANELS } from './panels';
4
6
 
5
- export const KO: Record<string, string> = { ...BROWSER, ...DOC, ...PANELS };
7
+ export const KO: Record<string, string> = {
8
+ ...BROWSER,
9
+ ...DOC,
10
+ ...PANELS,
11
+ ...AGENT,
12
+ ...AGENT_PANEL,
13
+ };
@@ -0,0 +1,113 @@
1
+ // The agent panel's strings, keyed by the English text in `use-locale.ts`.
2
+ export const AGENT_PANEL: Record<string, string> = {
3
+ Agent: 'Agent',
4
+ Beta: 'Beta',
5
+ 'Early preview': '抢先体验版',
6
+ 'Replies, edits and tool calls can occasionally fail or do something unexpected.':
7
+ '回复、编辑或工具调用偶尔可能失败,或出现预期之外的结果。',
8
+ 'Open the agent panel': '打开 agent 面板',
9
+ 'Close agent panel': '关闭 agent 面板',
10
+ 'New chat': '新对话',
11
+ History: '对话记录',
12
+ 'No conversations yet.': '还没有任何对话。',
13
+ 'Delete conversation': '删除对话',
14
+ 'Other documents': '其他文档',
15
+ 'Chats you start in this panel show up here.': '在这个面板开始的对话会列在这里。',
16
+ Working: '进行中',
17
+ 'Ask {provider} to create or edit documents…': '请 {provider} 创建或编辑文档…',
18
+ Send: '发送',
19
+ Stop: '停止',
20
+ 'Page {n}': '第 {n} 页',
21
+ Selection: '选中元素',
22
+ '{count} comment': '{count} 条评论',
23
+ '{count} comments': '{count} 条评论',
24
+ 'Apply comments': '应用评论',
25
+ 'Apply with {provider}': '用 {provider} 应用',
26
+ 'Create a document with {provider}': '用 {provider} 创建文档',
27
+ 'Draft a new document': '起草一份新文档',
28
+ 'Opens a blank document; describe it and the agent drafts it section by section.':
29
+ '打开一份空白文档;描述内容后,agent 会一段一段写出来。',
30
+ 'Apply pending comments': '应用待处理的评论',
31
+ 'Resolves every @doc-comment marker in this document.':
32
+ '处理这份文档中所有的 @doc-comment 标记。',
33
+ 'Create a theme': '创建主题',
34
+ 'Extracts or designs a reusable theme under themes/.': '在 themes/ 下提取或设计可复用的主题。',
35
+ 'Edit this page': '编辑当前页',
36
+ 'Describe a change to the page you are viewing.': '描述你想对当前页面做的修改。',
37
+ 'What should we build?': '想做什么?',
38
+ 'Describe a document, or pick a starting point.': '描述一份文档,或选一个起点。',
39
+ Continue: '继续',
40
+ Other: '其他',
41
+ 'Type your own answer': '输入你自己的答案',
42
+ Dismissed: '已跳过',
43
+ 'Needs approval': '需要批准',
44
+ Allow: '允许',
45
+ Deny: '拒绝',
46
+ Allowed: '已允许',
47
+ Denied: '已拒绝',
48
+ 'Auto-approve': '自动批准',
49
+ 'Run commands without asking. Edits inside the workspace are always allowed.':
50
+ '不询问直接执行命令。工作区内的文件编辑始终允许。',
51
+ Stopped: '已停止',
52
+ '{seconds}s': '{seconds} 秒',
53
+ Error: '错误',
54
+ 'Checking agents': '正在检查 agent',
55
+ 'The agent panel is disabled in open-doc.config.ts.':
56
+ 'agent 面板已在 open-doc.config.ts 中禁用。',
57
+ 'Connect an agent': '连接 agent',
58
+ 'Drive your coding agent from here instead of a terminal. Agents installed on this machine connect automatically and reuse their sign-in.':
59
+ '直接在这里驱动你的 coding agent,无需切换到终端。这台电脑上已安装的 agent 会自动连接,并复用它的登录状态。',
60
+ Connect: '连接',
61
+ Connecting: '连接中',
62
+ Connected: '已连接',
63
+ 'Adds {pkg} to this workspace with {pm}.': '会用 {pm} 把 {pkg} 添加到这个工作区。',
64
+ 'CLI found · v{version}': '已找到 CLI · v{version}',
65
+ 'CLI found': '已找到 CLI',
66
+ 'CLI not found on PATH': 'PATH 中找不到 CLI',
67
+ 'Install the {name} CLI and sign in once; the panel reuses its login.':
68
+ '请安装 {name} CLI 并登录一次;面板会复用它的登录状态。',
69
+ 'Install Codex first': '请先安装 Codex',
70
+ 'The panel drives the Codex CLI on this machine, and it was not found on your PATH. Install it, sign in once in a terminal with `codex`, then check again.':
71
+ 'Agent 面板使用这台电脑上的 Codex CLI,但在 PATH 上找不到它。请先安装,并在终端用 `codex` 登录一次,再重新检查。',
72
+ 'Check again': '重新检查',
73
+ Retry: '重试',
74
+ '{name} connected': '{name} 已连接',
75
+ 'Could not install {pkg}': '无法安装 {pkg}',
76
+ 'Manage agents': '管理 agent',
77
+ Back: '返回',
78
+ 'Could not send message': '消息发送失败',
79
+ "What's this document about?": '这份文档要写什么?',
80
+ 'Describe the topic, audience and tone. {provider} drafts it section by section while you watch.':
81
+ '描述主题、读者和语气,{provider} 会一段一段写给你看。',
82
+ 'A two-page project brief on…': '一份两页的项目简介,主题是…',
83
+ 'Could not create a document': '无法创建文档',
84
+ '{count} step': '{count} 个步骤',
85
+ '{count} steps': '{count} 个步骤',
86
+ Skip: '跳过',
87
+ Copy: '复制',
88
+ Cancel: '取消',
89
+ 'Sending replaces the conversation after this message. Edits already made to files stay.':
90
+ '发送后会替换这条消息之后的对话,已改动的文件不会还原。',
91
+ Default: '默认',
92
+ Reasoning: '推理强度',
93
+ Auto: '自动',
94
+ Minimal: '最低',
95
+ Low: '低',
96
+ Medium: '中',
97
+ High: '高',
98
+ 'Extra high': '超高',
99
+ Max: '最高',
100
+ '{provider} is editing': '{provider} 正在编辑',
101
+ Thinking: '思考中',
102
+ 'Waiting for you': '等待你的回复',
103
+ 'Draft with agent': '用 Agent 起草',
104
+ 'Resize the agent panel': '调整 Agent 面板宽度',
105
+ 'Checking the document…': '正在检查文档…',
106
+ 'Could not check the document': '无法检查文档',
107
+ 'Checked · no problems': '已检查 · 没有问题',
108
+ 'Checked · no problems · {count} pages': '已检查 · 没有问题 · 共 {count} 页',
109
+ 'The check found {count} problem': '检查发现 {count} 个问题',
110
+ 'The check found {count} problems': '检查发现 {count} 个问题',
111
+ '+{count} more': '还有 {count} 个',
112
+ 'Ask the agent to fix': '请 agent 修正',
113
+ };
@@ -0,0 +1,9 @@
1
+ export const AGENT: Record<string, string> = {
2
+ Agent: 'Agent',
3
+ 'Close the agent panel': '关闭 Agent 面板',
4
+ 'Ask the agent': '询问 Agent',
5
+ Ran: '运行',
6
+ 'This page could not be drawn': '这一页无法显示',
7
+ 'It is drawn again as soon as the source is saved.': '保存后就会重新绘制。',
8
+ 'Apply with {agent}': '交给 {agent} 处理',
9
+ };
@@ -1,5 +1,13 @@
1
+ import { AGENT } from './agent';
2
+ import { AGENT_PANEL } from './agent-panel';
1
3
  import { BROWSER } from './browser';
2
4
  import { DOC } from './doc';
3
5
  import { PANELS } from './panels';
4
6
 
5
- export const ZH_CN: Record<string, string> = { ...BROWSER, ...DOC, ...PANELS };
7
+ export const ZH_CN: Record<string, string> = {
8
+ ...BROWSER,
9
+ ...DOC,
10
+ ...PANELS,
11
+ ...AGENT,
12
+ ...AGENT_PANEL,
13
+ };
@@ -0,0 +1,113 @@
1
+ // The agent panel's strings, keyed by the English text in `use-locale.ts`.
2
+ export const AGENT_PANEL: Record<string, string> = {
3
+ Agent: 'Agent',
4
+ Beta: 'Beta',
5
+ 'Early preview': '搶先體驗版',
6
+ 'Replies, edits and tool calls can occasionally fail or do something unexpected.':
7
+ '回覆、編輯或工具呼叫偶爾可能失敗,或出現預期之外的結果。',
8
+ 'Open the agent panel': '開啟 agent 面板',
9
+ 'Close agent panel': '關閉 agent 面板',
10
+ 'New chat': '新對話',
11
+ History: '對話紀錄',
12
+ 'No conversations yet.': '還沒有任何對話。',
13
+ 'Delete conversation': '刪除對話',
14
+ 'Other documents': '其他文件',
15
+ 'Chats you start in this panel show up here.': '在這個面板開始的對話會列在這裡。',
16
+ Working: '進行中',
17
+ 'Ask {provider} to create or edit documents…': '請 {provider} 建立或編輯文件…',
18
+ Send: '送出',
19
+ Stop: '停止',
20
+ 'Page {n}': '第 {n} 頁',
21
+ Selection: '選取元件',
22
+ '{count} comment': '{count} 則留言',
23
+ '{count} comments': '{count} 則留言',
24
+ 'Apply comments': '套用留言',
25
+ 'Apply with {provider}': '用 {provider} 套用',
26
+ 'Create a document with {provider}': '用 {provider} 建立文件',
27
+ 'Draft a new document': '起草一份新文件',
28
+ 'Opens a blank document; describe it and the agent drafts it section by section.':
29
+ '開啟一份空白文件;描述內容後,agent 會一段一段寫出來。',
30
+ 'Apply pending comments': '套用待處理的留言',
31
+ 'Resolves every @doc-comment marker in this document.':
32
+ '處理這份文件中所有的 @doc-comment 標記。',
33
+ 'Create a theme': '建立主題',
34
+ 'Extracts or designs a reusable theme under themes/.': '在 themes/ 下萃取或設計可重用的主題。',
35
+ 'Edit this page': '編輯這一頁',
36
+ 'Describe a change to the page you are viewing.': '描述你想對目前頁面做的修改。',
37
+ 'What should we build?': '想做什麼?',
38
+ 'Describe a document, or pick a starting point.': '描述一份文件,或選一個起點。',
39
+ Continue: '繼續',
40
+ Other: '其他',
41
+ 'Type your own answer': '輸入你自己的答案',
42
+ Dismissed: '已略過',
43
+ 'Needs approval': '需要核准',
44
+ Allow: '允許',
45
+ Deny: '拒絕',
46
+ Allowed: '已允許',
47
+ Denied: '已拒絕',
48
+ 'Auto-approve': '自動核准',
49
+ 'Run commands without asking. Edits inside the workspace are always allowed.':
50
+ '不詢問就執行指令。工作區內的檔案編輯一律允許。',
51
+ Stopped: '已停止',
52
+ '{seconds}s': '{seconds} 秒',
53
+ Error: '錯誤',
54
+ 'Checking agents': '正在檢查 agent',
55
+ 'The agent panel is disabled in open-doc.config.ts.':
56
+ 'agent 面板已在 open-doc.config.ts 中停用。',
57
+ 'Connect an agent': '連接 agent',
58
+ 'Drive your coding agent from here instead of a terminal. Agents installed on this machine connect automatically and reuse their sign-in.':
59
+ '直接在這裡操作你的 coding agent,不用再切到終端機。這台電腦上已安裝的 agent 會自動連接,並沿用它的登入狀態。',
60
+ Connect: '連接',
61
+ Connecting: '連接中',
62
+ Connected: '已連接',
63
+ 'Adds {pkg} to this workspace with {pm}.': '會用 {pm} 把 {pkg} 加進這個工作區。',
64
+ 'CLI found · v{version}': '已找到 CLI · v{version}',
65
+ 'CLI found': '已找到 CLI',
66
+ 'CLI not found on PATH': 'PATH 中找不到 CLI',
67
+ 'Install the {name} CLI and sign in once; the panel reuses its login.':
68
+ '請安裝 {name} CLI 並登入一次;面板會沿用它的登入狀態。',
69
+ 'Install Codex first': '請先安裝 Codex',
70
+ 'The panel drives the Codex CLI on this machine, and it was not found on your PATH. Install it, sign in once in a terminal with `codex`, then check again.':
71
+ 'Agent 面板使用這台電腦上的 Codex CLI,但在 PATH 上找不到它。請先安裝,並在終端機用 `codex` 登入一次,再重新檢查。',
72
+ 'Check again': '重新檢查',
73
+ Retry: '重試',
74
+ '{name} connected': '{name} 已連接',
75
+ 'Could not install {pkg}': '無法安裝 {pkg}',
76
+ 'Manage agents': '管理 agent',
77
+ Back: '返回',
78
+ 'Could not send message': '訊息送出失敗',
79
+ "What's this document about?": '這份文件要寫什麼?',
80
+ 'Describe the topic, audience and tone. {provider} drafts it section by section while you watch.':
81
+ '描述主題、讀者和語氣,{provider} 會一段一段寫給你看。',
82
+ 'A two-page project brief on…': '一份兩頁的專案簡介,主題是…',
83
+ 'Could not create a document': '無法建立文件',
84
+ '{count} step': '{count} 個步驟',
85
+ '{count} steps': '{count} 個步驟',
86
+ Skip: '略過',
87
+ Copy: '複製',
88
+ Cancel: '取消',
89
+ 'Sending replaces the conversation after this message. Edits already made to files stay.':
90
+ '送出後會取代這則訊息之後的對話,已改動的檔案不會還原。',
91
+ Default: '預設',
92
+ Reasoning: '推理強度',
93
+ Auto: '自動',
94
+ Minimal: '最低',
95
+ Low: '低',
96
+ Medium: '中',
97
+ High: '高',
98
+ 'Extra high': '超高',
99
+ Max: '最高',
100
+ '{provider} is editing': '{provider} 正在編輯',
101
+ Thinking: '思考中',
102
+ 'Waiting for you': '等待你的回覆',
103
+ 'Draft with agent': '用 Agent 起草',
104
+ 'Resize the agent panel': '調整 Agent 面板寬度',
105
+ 'Checking the document…': '正在檢查文件…',
106
+ 'Could not check the document': '無法檢查文件',
107
+ 'Checked · no problems': '已檢查 · 沒有問題',
108
+ 'Checked · no problems · {count} pages': '已檢查 · 沒有問題 · 共 {count} 頁',
109
+ 'The check found {count} problem': '檢查發現 {count} 個問題',
110
+ 'The check found {count} problems': '檢查發現 {count} 個問題',
111
+ '+{count} more': '還有 {count} 個',
112
+ 'Ask the agent to fix': '請 agent 修正',
113
+ };
@@ -0,0 +1,9 @@
1
+ export const AGENT: Record<string, string> = {
2
+ Agent: 'Agent',
3
+ 'Close the agent panel': '關閉 Agent 面板',
4
+ 'Ask the agent': '詢問 Agent',
5
+ Ran: '執行',
6
+ 'This page could not be drawn': '這一頁無法顯示',
7
+ 'It is drawn again as soon as the source is saved.': '存檔後就會重新繪製。',
8
+ 'Apply with {agent}': '交給 {agent} 處理',
9
+ };
@@ -1,5 +1,13 @@
1
+ import { AGENT } from './agent';
2
+ import { AGENT_PANEL } from './agent-panel';
1
3
  import { BROWSER } from './browser';
2
4
  import { DOC } from './doc';
3
5
  import { PANELS } from './panels';
4
6
 
5
- export const ZH_TW: Record<string, string> = { ...BROWSER, ...DOC, ...PANELS };
7
+ export const ZH_TW: Record<string, string> = {
8
+ ...BROWSER,
9
+ ...DOC,
10
+ ...PANELS,
11
+ ...AGENT,
12
+ ...AGENT_PANEL,
13
+ };