copilot-operator 0.1.51 → 0.1.53
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.
- package/README.md +24 -3
- package/dist/src/api/operator.controller.js +55 -71
- package/dist/src/api/operator.service.js +243 -109
- package/dist/src/config/schema.js +45 -0
- package/dist/src/exec/policy.js +11 -1
- package/dist/src/exec/scriptFiles.js +108 -2
- package/dist/src/orchestrator/leadRunner.js +605 -0
- package/dist/src/orchestrator/review.js +9 -3
- package/dist/src/orchestrator/taskRunner.js +110 -20
- package/dist/src/plan/kerrigan.js +203 -47
- package/dist/src/plan/systemGuide.js +555 -499
- package/dist/src/protocol/leadSchema.js +156 -0
- package/dist/src/protocol/parser.js +1 -1
- package/dist/src/session/chatNotice.js +115 -0
- package/dist/src/session/checkpoint.js +19 -0
- package/dist/src/session/compose.js +17 -5
- package/dist/src/session/store.js +21 -72
- package/dist/src/transport/copilotTransport.js +2 -0
- package/dist/src/util/pacing.js +33 -2
- package/dist/src/vcs/git.js +11 -1
- package/dist/src/vcs/referenceGuard.js +299 -0
- package/dist/web/404.html +14 -18
- package/dist/web/_next/static/FGzV3mVZpXRCVjiw1diNu/_buildManifest.js +1 -0
- package/dist/web/_next/static/chunks/163.980c5145848efbdf.js +1 -0
- package/dist/web/_next/static/chunks/220.447d1d8624d4644c.js +1 -0
- package/dist/web/_next/static/chunks/500-34d01f8d8d73eb2c.js +1 -0
- package/dist/web/_next/static/chunks/548.c6dfd1cb270f3c93.js +1 -0
- package/dist/web/_next/static/chunks/584.fc9e061dd4069406.js +1 -0
- package/dist/web/_next/static/chunks/67.1a3ca07919abce27.js +1 -0
- package/dist/web/_next/static/chunks/714.5b2e291a430adc9c.js +1 -0
- package/dist/web/_next/static/chunks/747.157732b5b3f3c435.js +1 -0
- package/dist/web/_next/static/chunks/77.d478a6f2eafe31e3.js +1 -0
- package/dist/web/_next/static/chunks/921-b2219533c5a6e38f.js +1 -0
- package/dist/web/_next/static/chunks/app/defaults/page-b7e4e94a55e65806.js +1 -0
- package/dist/web/_next/static/chunks/app/layout-2b3718748721c1ac.js +1 -0
- package/dist/web/_next/static/chunks/app/page-59b9867b52914a6c.js +1 -0
- package/dist/web/_next/static/chunks/app/system/page-1cf9e75e76da59ed.js +1 -0
- package/dist/web/_next/static/chunks/webpack-0c3cad1f3181d857.js +1 -0
- package/dist/web/_next/static/css/06f314fa5fccd68d.css +1 -0
- package/dist/web/defaults.html +14 -18
- package/dist/web/defaults.txt +9 -9
- package/dist/web/index.html +14 -18
- package/dist/web/index.txt +9 -9
- package/dist/web/system.html +14 -18
- package/dist/web/system.txt +9 -9
- package/package.json +8 -5
- package/prompts/lead1.md +116 -0
- package/prompts/level1.md +32 -12
- package/prompts/review1.md +287 -286
- package/dist/src/vcs/prepareFromRemote.js +0 -288
- package/dist/src/vcs/remoteAuth.js +0 -117
- package/dist/src/vcs/syncCommand.js +0 -97
- package/dist/web/_next/static/chunks/190-70555f20dd0da19b.js +0 -1
- package/dist/web/_next/static/chunks/643-e85d221d57900ed7.js +0 -1
- package/dist/web/_next/static/chunks/867-869900ec999e6345.js +0 -1
- package/dist/web/_next/static/chunks/app/appearance/page-cdef33c421397cbe.js +0 -1
- package/dist/web/_next/static/chunks/app/defaults/page-e0a2b8f9a41a94c4.js +0 -1
- package/dist/web/_next/static/chunks/app/layout-b4fc21e26e1bad95.js +0 -1
- package/dist/web/_next/static/chunks/app/level1/page-31b74cae86d960d8.js +0 -1
- package/dist/web/_next/static/chunks/app/page-1075921d44db3e4d.js +0 -1
- package/dist/web/_next/static/chunks/app/presets/page-f8abdd83cdf468f7.js +0 -1
- package/dist/web/_next/static/chunks/app/system/page-2a270bb885885821.js +0 -1
- package/dist/web/_next/static/chunks/webpack-0f31b926d9a9c5a4.js +0 -1
- package/dist/web/_next/static/css/8b14cb3cf0051138.css +0 -1
- package/dist/web/_next/static/eqTUTH_SJtBgNgq8Zzy3n/_buildManifest.js +0 -1
- package/dist/web/appearance.html +0 -18
- package/dist/web/appearance.txt +0 -25
- package/dist/web/level1.html +0 -18
- package/dist/web/level1.txt +0 -25
- package/dist/web/presets.html +0 -21
- package/dist/web/presets.txt +0 -25
- /package/dist/web/_next/static/{eqTUTH_SJtBgNgq8Zzy3n → FGzV3mVZpXRCVjiw1diNu}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[77],{1077:(e,a,t)=>{t.r(a),t.d(a,{ja:()=>o});let o={"nav.label":"メイン","nav.live":"ライブ","nav.liveTitle":"チャットは現在作業中です。開いて様子を確認できます。","nav.system":"システム","nav.workbench":"チャット","nav.appearance":"外観","chat.askRun":"実行","chat.askRunAll":"これと残りを実行","chat.askSkip":"スキップ","chat.askTitle":"このコマンドを実行しますか?","chat.changed":"{n} 個のファイルが変更されました:","chat.example1":"このプロジェクトの構成と、テストの実行方法を説明してください。","chat.example2":"テストを実行して、失敗したものを修正してください。","chat.example3":"プロジェクトをローカルで起動する方法を説明するセクションを README に追加してください。","chat.exit":"終了コード {code}","chat.input":"チャットへのメッセージ","chat.lookAbove":"上部のカードで応答を待っています。","chat.mode":"コマンドの実行方法","chat.modeAsk":"コマンドごとに確認","chat.modeAuto":"確認せずにコマンドを実行","chat.modeWhy":"チャットから送られる各コマンドがあなたの確認を待つか、すぐに実行されるかを指定します。どちらの場合も禁止コマンドの一覧が適用されます。","chat.skill":"スキル","chat.skillNone":"スキルなし","chat.skillWhy":"スキルは、この種類のタスク向けのあなたの指示 (「設定 → スキル」で書いたもの) をメッセージに追加します。メッセージを /名前 で始めても同じです。","chat.skillUsed":"スキル: /{name}","chat.skillUnknown":"このフォルダーにはスキル /{name} がありません。使えるスキル: {names}。","chat.skillNoText":"/{name} の後に、どのようなタスクかをメッセージとして書いてください。","git.title":"Git","git.refresh":"フォルダーの git を再読み込み","git.noFolder":"プロジェクト フォルダーが開かれていません。","git.notRepo":"プロジェクト フォルダーは git リポジトリではありません。","git.upstream":"{name}: {ahead} 件先行、{behind} 件遅れ","git.staged":"ステージされた変更","git.changes":"変更","git.noChanges":"前回のコミット以降、変更はありません。","git.commits":"コミット","git.noCommits":"まだコミットがありません。","git.commitFiles":"{sha} のファイル","git.more":"最新の {n} 件を表示しています。","git.workingTree":"作業ツリー","git.index":"インデックス","git.status.M":"変更","git.status.A":"追加","git.status.D":"削除","git.status.R":"名前変更","git.status.C":"コピー","git.status.T":"種類の変更","git.status.U":"未追跡","git.status.conflict":"競合","copy.copy":"コピー","copy.copied":"コピーしました","copy.failed":"コピーできませんでした","chat.foldOpen":"メッセージ全体を表示","chat.foldClose":"メッセージを最初の数行に折りたたむ","chat.copyMessage":"自分のメッセージをコピー","chat.copyReply":"チャットの応答をコピー","chat.copySummary":"終了時の結果をコピー","chat.copyCommand":"コマンドとその出力をコピー","chat.newChat":"新しいチャット","chat.newChatWhy":"次のメッセージで、この会話の内容を一切含まない新しい会話が Copilot で始まります。この会話は一覧に残り、後から戻ることができます。","chat.newChatRunning":"タスクを実行中です。「新しいチャット」はタスクが止まると使えるようになります。「停止」を押すか、Copilot のブラウザー ウィンドウを閉じてください。","chat.newChatFresh":"これはすでに新しいチャットです。下に最初のメッセージを書くと始まります。","chat.exchange":"⤓ JSON","chat.exchangeWhy":"このメッセージについてボットと Copilot の間で交わされたすべての内容 (JSON ファイル): 送信されたすべてのメッセージ、すべての応答、実行されたすべてのコマンドとその出力全体および終了コード。","chat.newThread":"新しい会話","chat.notStarted":"開始されませんでした: {reason}","chat.notStartedYet":"開始されていません。メッセージは会話に残っています。別のメッセージを送るか、そのセッションから開始してください。","chat.noted":"進行中の作業に追加しました。次の報告時に渡されます。","chat.openFolder":"フォルダーを開く","chat.placeholder":"{folder} での変更を依頼… (Enter で送信、Shift+Enter で改行)","chat.placeholderNoFolder":"先にフォルダーを開いてください","chat.placeholderRunning":"進行中の作業に追加… 次の報告時に渡されます","chat.queued":"開始を待っています。","chat.running":"実行中…","chat.send":"送信","chat.sendNote":"追加","chat.sendWhy":"Enter","chat.stop":"停止","chat.review":"レビュー","chat.reviewWhy":"Copilot が作業の完了を告げると、専用の会話がそれをチェックします。変更を読み、チェックを実行し、見つかった内容を送り返します。これは合格するか、設定のレビュー ラウンド数を使い切るまで続きます。チェックを外さない限りオンです。この会話、または次の会話に適用されます。","chat.lead":"2 つのチャット","chat.leadWhy":"一度にこなすには大きすぎるタスク向けの、リーダーとワーカーによる方式です。あなたのメッセージはリーダーに送られます。リーダーはそれを言い直して理解できているかを確かめ、ワーカーにプロジェクトを調べさせ、プランを作成し、ワーカーにサブタスクを 1 つずつ渡してその報告を評価します。これを、依頼した形式で結果ができあがるまで続けます。コマンドを実行するのはワーカーです。どちらも同じ Copilot のウィンドウ内の会話です。何を求めているのか、結果をどの形式で受け取りたいのかを、はっきり書いてください。新しい会話に適用されます。すでに開始した会話は、開始時の方式を保持します。","chat.leadModel":"リーダー","chat.workerModel":"ワーカー","chat.workerSameModel":"リーダーのモデル","lead.who":"リーダー","lead.understood":"リーダーはタスクを次のように理解しています","lead.plan":"リーダーのプラン (バージョン {v})","lead.subtask":"サブタスク {n}: {title}","lead.readOnly":"読み取りのみ","lead.fresh":"新しいワーカー","lead.thinking":"リーダーが次のステップを決めています…","lead.working":"ワーカーがサブタスク {n} に取り組んでいます…","lead.subtasks":"サブタスク {n}/{max}","lead.question":"リーダーがあなたに質問しています","lead.answer":"あなたの回答","lead.answerPlaceholder":"回答を書くか、上の選択肢から 1 つを選んでください。","lead.send":"回答を送信","lead.stop":"タスクを停止","lead.stopConfirm":"リーダーの質問の時点でこのタスクを停止しますか? タスクは停止として終了し、ここまでに行われた作業は残ります。","lead.answered":"あなたは次のように回答しました","lead.evidence":"それを示す根拠","lead.messages":"メッセージ: リーダー {lead} \xb7 ワーカー {worker} \xb7 合計 {total}","chat.pause":"一時停止","chat.pauseWhy":"作業をその場で保留します。Copilot が書いている途中の応答と実行中のコマンドは最後まで終わらせ、その後は「続行」を押すまで Copilot に何も送らず、ほかのコマンドも実行しません。会話とブラウザー ウィンドウはそのまま残り、一時停止中の時間は制限時間に含まれません。","chat.resume":"続行","chat.resumeWhy":"一時停止した所から作業を続けます。","chat.pausedNote":"一時停止中: 「続行」を押すまで、Copilot には何も送られず、何も実行されません。","chat.stopping":"停止しています… Copilot が書いている応答をまず待ち、その後は何も送りません。","chat.rewind":"このメッセージの前に戻る","chat.rewindConfirm":"フォルダーをこのメッセージの前とまったく同じ状態に戻し、このメッセージとそれ以降を会話から取り除きますか ({n} 件のメッセージ)? 現在のフォルダーの状態は、git の安全用コピーに保存されます。","chat.rewound":"そのメッセージの前に戻りました。フォルダーは当時の状態になり、メッセージは入力欄に戻っているので、もう一度送信することも変更することもできます。","chat.model":"モデル","chat.modelDefault":"設定どおり ({model})","chat.modelByHand":"モデルを手動で設定","chat.readModels":"Copilot から最新のモデルを読み取る","chat.modelsReading":"Copilot からモデルを読み取っています… (ブラウザーが一時的に開きます)","chat.modelsRead":"モデルの一覧は、Copilot が現在提供しているものです。","chat.thread":"会話","chat.turn":"メッセージ: {text}","chat.waitingTurn":"前のメッセージが終わるのを待っています。","chat.welcome":"{folder} での変更を依頼","chat.welcomeWhy":"Copilot はコマンドで応答します。コマンドはここ {dir} で、現在のブランチ ({branch}) 上で実行され、その出力は作業が完了するまで Copilot に返されます。フォルダーは各メッセージの前に保存されるので、どのメッセージの前にも戻ることができます。","chat.working":"作業中… メッセージ {n}","wb.fileOnDisk":"{path} — ディスク上の内容、読み取り専用","wb.welcomeChat":"開いているフォルダーは {dir} です。チャットに変更内容を書いてください。Copilot は完了するまでここでコマンドを実行します。","wb.binary":"バイナリ","wb.chatPanel":"チャット","theme.system":"システム","wb.appearance":"外観: テーマとテキスト","ap.smaller":"文字を小さく","ap.larger":"文字を大きく","wb.terminalInfoLabel":"ターミナルに表示される内容","wb.terminalInfo":"チャットで開いている会話の最新メッセージについて Copilot が実行したすべてのコマンドを、実行した順に表示します。コマンド、その終わり方 (終了コード)、出力されたすべての内容です。メッセージの作業中は、最新のコマンドを追います。\n\nここには何も入力しません。このマシンの開いているフォルダーで実行された内容を表示します。新しいチャットでは空の状態から始まります。","wb.problemsInfoLabel":"問題に表示される内容","wb.problemsInfo":"チャットで開いている会話でうまくいかなかったことを表示します。未完了のまま終わった、停止した、または上限に達したメッセージとその理由、合格しなかったチェックなどです。項目を押すと、そのメッセージがチャットに表示されます。\n\n「確認済み」を押すと、その問題が一覧と件数から外れます (このブラウザーのみ)。メッセージ自体には残ります。タブの数字は、まだ確認していない問題の数です。","wb.outputInfoLabel":"出力に表示される内容","wb.outputInfo":"チャットで開いている会話についてのボット自身のログです。最新の行が一番下にあり、各行に時刻が付きます。ブラウザーの起動とサインイン、モデル、Copilot に送信した各メッセージとその応答の到着、要求されたコマンドと実行されたコマンド、停止、エラーなどです。\n\n赤い行はエラー、黄色い行は警告です。想定どおりに進まなかったときに読むものです。","wb.pickChat":"チャットにメッセージを書いてください。実行された内容がここに表示されます。","wb.problemShow":"そのメッセージをチャットに表示","wb.cmdThread":"会話「{name}」をチャットで開く","kerrigan.button":"Kerrigan","kerrigan.menu":"Kerrigan: 保存またはコピー","kerrigan.save":"ファイルとして保存","kerrigan.copy":"クリップボードにコピー","kerrigan.saved":"{name} として保存しました。会話の最初にチャットに渡してください。","kerrigan.copied":"コピーしました ({n} 文字)。お好きなチャットとの会話の最初に貼り付けてください。","kerrigan.copyFailed":"ブラウザーがコピーを許可しませんでした。代わりに「ファイルとして保存」を使ってください。","kerrigan.failed":"Kerrigan を読み取れませんでした: {reason}","kerrigan.infoLabel":"Kerrigan とは?","kerrigan.info":"Kerrigan は、使っても使わなくてもよいヘルパーです。このボタンで得られるテキスト (ペルソナ) を、Microsoft Copilot、ChatGPT など、お好きなチャットとの会話の最初に貼り付けます。すると、そのチャットは copilot-operator が何であり、どのように動作するかを理解し、設定で各プロジェクトに書いたレベル 2 を通してあなたのプロジェクトを把握し、このプログラム向けのタスクを書く手助けをします。1 つのメッセージで何を依頼するか、どのファイルやフォルダーを挙げるか、「完了」がどのような状態でそれをどう確認するか、何に手を付けないか、などです。プログラムでわかりにくい点があれば説明し、タスクが完了するまで案内します。\n\nその後、手伝ってもらって書いたメッセージを、ここのチャットにコピーします。ここのチャットは Kerrigan を必要とせず、Kerrigan がなくても同じように動作します。このボタンはどこにも何も送信しません。","ap.night":"夜間モード","ap.systemCursor":"システム標準のカーソル","chat.planMode":"プラン モード","chat.planModeWhy":"Copilot はまず何も変更せずにプロジェクトを調べ、プランを提案します。ここでプランを承認すると作業が始まります。","chat.planShown":"承認されたプラン (バージョン {v})","ed.save":"保存","ed.revert":"自分の変更を元に戻す","ed.saved":"保存しました。","ed.clean":"変更なし","ed.unsaved":"未保存","ed.language":"言語","ed.langAuto":"自動 ({name})","ed.label":"{path} のテキスト","ed.changedOnDisk":"ファイルを開いた後に、ディスク上のファイルが変更されました (チャットまたは別のプログラムが変更しました)。","ed.reload":"再読み込み (自分の変更は失われます)","ed.saveOver":"上書き保存","ed.closeUnsaved":"「{name}」には保存されていない変更があります。閉じて変更を破棄しますか?","wb.chatTab":"チャット","wb.closeTab":"{name} を閉じる","wb.cmdChat":"チャットに書き込む","wb.cmdCommits":"Git を表示: 変更とコミット","wb.cmdFiles":"リポジトリのファイルを表示","wb.cmdGo":"移動: {page}","wb.cmdPanel":"パネルの表示/非表示","wb.cmdResetLayout":"パネルを元の位置に戻す","wb.cmdProblems":"問題を表示","wb.cmdSide":"エクスプローラーの表示/非表示","wb.editor":"エディター","wb.explorer":"エクスプローラー","wb.files":"ファイル","wb.idle":"何も実行されていません","wb.keys":"Ctrl+K: すべてを検索 \xb7 Ctrl+B: エクスプローラー \xb7 Ctrl+J: パネル \xb7 Ctrl+L: チャットに書き込む","wb.loading":"読み込んでいます…","wb.modelDefault":"チャットの既定のモデル","wb.modelNow":"セッションが使用しているモデル","wb.noEvents":"このセッションではまだ何も起きていません。","wb.noProblems":"このセッションに問題はありません。","wb.problemSeen":"確認済み","wb.problemSeenWhy":"このブラウザーで、一覧と件数から外します。タスクには残っており、後のタスク実行で同じ問題が再び起きると、もう一度表示されます。","wb.problemsAllSeen":"すべて確認済み","wb.problemsShowSeen":"確認済みの {n} 件を表示","wb.problemsHideSeen":"確認済みを非表示","wb.problemsNoneNew":"新しい問題はありません。ここにある問題はすべて確認済みです。","wb.newChatTerminal":"新しいチャットです。実行が始まると、そのコマンドがここに表示されます。","wb.newChatProblems":"新しいチャットです。まだ何も問題は起きていません。","wb.newChatOutput":"新しいチャットです。実行が始まると、その動作がここに表示されます。","wb.noSteps":"このタスクはまだコマンドを実行していません。","wb.noTabs":"エクスプローラーからファイルを開いてください。","wb.openRunning":"実行中の会話をチャットに表示","wb.openTabs":"開いているタブ","wb.output":"出力","wb.palette":"コマンド、ページ、会話を検索","wb.paletteNone":"見つかりませんでした。","wb.palettePlaceholder":"入力して検索…","wb.paletteWhy":"チャットのすべてのコマンド、ページ、会話を数文字で検索 (Ctrl+K)","wb.panel":"パネル","wb.problems":"問題","wb.refresh":"再読み込み","wb.resize":"ドラッグしてサイズを変更","wb.move":"{name} を移動","wb.moveWhy":"ドラッグして別のパネルの上にドロップすると、2 つの位置が入れ替わります。クリックすると、移動先を選べます。","wb.moveLeft":"左へ","wb.moveCenter":"中央へ","wb.moveRight":"右へ","wb.dropHere":"ここにドロップ: 2 つの位置が入れ替わります","wb.runningLine":"{session} › {task} \xb7 メッセージ {n}/{max} \xb7 {m}/{maxm} 分","wb.runningLineTwo":"{session} › {task} \xb7 メッセージ: リーダー {lead}、ワーカー {worker}、合計 {total} \xb7 {m}/{maxm} 分","wb.pausedTag":"一時停止中","wb.runningNow":"実行中…","wb.status":"状態","wb.terminal":"ターミナル","wb.toggleChat":"チャットの表示/非表示","wb.tooLarge":"大きすぎて表示できません。","wb.viewCommits":"Git","wb.viewFiles":"ファイル","wb.views":"ビュー","wb.waiting":"{n} 件があなたを待っています","wb.welcome":"ようこそ","wb.welcomeWhy":"フォルダーを開いてください。チャットはそのフォルダーで作業し、そのファイルと git はエクスプローラーに表示されます。","dialog.confirmTitle":"よろしいですか?","dialog.noticeTitle":"お知らせ","dialog.ok":"OK","dialog.cancel":"キャンセル","exec.title":"実行","exec.intro":"タスクの実行方法: どれだけ続けてよいか、上限に達したときに何が起きるか、あなたがいなくても何を実行してよいか。data/settings.json に保存され、今後開始するタスクに適用されます。","exec.maxIterations":"1 つのタスクでチャットに送るメッセージの最大数","exec.maxIterationsUnit":"メッセージ。その後、タスクは「上限到達」として停止します","exec.maxIterationsWhy":"各メッセージが 1 ラウンドです。チャットがステップを送り、ランナーがそれを実行して結果を報告します。これは堂々巡りになったタスクを止めるためのもので、通信量を制限するものではありません。通信量を制限するのは 1 時間あたりの上限で、こちらは停止せずに待機します。ここで停止したタスクは、同じチャットで続行できます。","exec.maxSubtasks":"リーダーが渡せるサブタスクの最大数","exec.maxSubtasksUnit":"サブタスク (2 つのチャットを使うメッセージ 1 つあたり)","exec.maxSubtasksWhy":"2 つのチャットを使う会話では、リーダーがワーカーにサブタスクを 1 つずつ渡します。各サブタスクはワーカーのタスクの 1 つであり、上記の上限が適用されます。これはメッセージ全体に対する上限です。サブタスクを使い切ると、リーダーはその時点で手元にあるものを提出するよう指示されます。今後開始するメッセージに適用されます。","exec.maxRunMinutes":"タスクの最長実行時間","exec.maxRunMinutesUnit":"分","exec.maxRunMinutesWhy":"タスクの最初のメッセージから数え、1 時間あたりの上限による待機時間も含みます。ここで停止したタスクは、同じチャットで続行できます。","exec.replyTimeout":"チャットの応答を待つ時間","exec.replyTimeoutUnit":"秒 (900 = 15 分)","exec.replyTimeoutWhy":"メッセージを送信してから応答が完了するまでの時間です。それまでに完了しない応答は、タスクを失敗として終了させます (「Copilot did not finish a reply within …」)。その際、チャットのスクリーンショットが実行フォルダーに保存されます。遅いモデルや長い応答では数分かかることがあります。今後開始する実行に適用されます。","exec.gap":"メッセージの間に間隔を空ける","exec.gapWhy":"チェックすると、Copilot へのメッセージは、直前のメッセージから下の時間が経過するまで待ちます。リーダー宛てでもワーカー宛てでも、どの会話でも同じです。メッセージが続けざまに送られないようにしたい場合に使います。","exec.gapSec":"最短","exec.gapSecWhy":"2 つのメッセージの間の最短時間です。60 にすると、メッセージは多くても 1 分に 1 件になります。","exec.gapUnit":"秒","exec.gapRandom":"ランダムな時間","exec.gapRandomWhy":"チェックすると、間隔は毎回、上の「最短」と下の「最長」の間で新たに選ばれます (たとえば 60 秒から 90 秒の間)。メッセージが一定のリズムで送られないようにするためです。","exec.gapMax":"最長","exec.gapMaxWhy":"最長の間隔 (秒) です。「最短」より短くなることはありません。","startdlg.title":"作業の開始地点","pm.copyPlan":"プランをコピー","pm.cardTitle":"「{title}」のプラン (承認待ち)","pm.cardWhy":"まだ何も変更されていません。このプランを承認すると作業が始まります。","pm.note":"チャットへのメモ (承認時は省略可。別のプランを依頼するときは、何を変えるかを書きます)","pm.notePlaceholder":"例: 古いエンドポイントは動作したままにすること。マイグレーションには手を付けないこと。","pm.approve":"承認して作業を開始","pm.revise":"別のプランを依頼","pm.reviseWhy":"チャットがメモに基づいて新しいプランを作成し、同じカードがそのプランとともに戻ってきます。","pm.reviseNeedsNote":"新しいプランで何を変えるべきかをメモに書いてください。","pm.stop":"タスクを停止","pm.stopConfirm":"作業をせずにこのタスクを停止しますか? タスクは停止として終了し、再実行できます。","pm.version":"プラン バージョン {n}、{at}","pm.approvedByOperator":"オペレーターが承認しました ({at})。","pm.approvedAuto":"ランナーが承認しました ({at})。","pm.approvedNote":"メモ: {note}","pm.existing":"既存の内容","pm.approach":"アプローチ","pm.steps":"ステップ","pm.files":"変更される見込みのファイル","pm.verification":"作業の完了をどう示すか","pm.risks":"リスク","pm.revisions":"以前のバージョンと、変更を依頼された点","pm.revision":"バージョン {n} ({at}):","startfail.laterSession":"進行中の実行のセッションを開始できませんでした:","startdlg.goStep":"開始 (コマンドごとに確認)","startdlg.goUnattended":"確認せずに開始","startfail.title":"作業が開始されませんでした","startfail.where":"停止した場所: {stage}。","startfail.stage.refused":"開始の受け付け (何かが開く前に拒否されました)","startfail.stage.branch":"開始元として選んだブランチ","startfail.stage.preflight":"バージョン管理のチェック (ブラウザーが開く前)","startfail.stage.browser":"ブラウザー (Edge)、そのプロファイル、またはチャットを開く処理","startfail.stage.run":"実行 (最初のタスクが始まる前)","startfail.stage.at-turn":"実行内でのこのセッションの順番 (最初のタスクの前)","startfail.stage.error":"開始中のボット自体","startfail.when":"{when}、実行 {run}","startfail.whenNoRun":"{when}","startfail.download":"発生した内容をダウンロード (エラー、実行記録、ターミナル)","startfail.terminal":"ターミナルの表示内容をダウンロード","startfail.downloadWhy":"エラー、停止した場所、実行自体の記録、セッションのイベント、そしてボタンを押してから数秒後までにボットのコンソールが出力したすべての行を含むテキスト ファイルです。シークレットのように見えるテキストは除去されます。","startfail.dismiss":"このお知らせを閉じる","startfail.later":"この実行は受け付けられましたが、その後開始できませんでした:","sys.terminalWhy":"ボットのコンソール (npm start または cop start が出力した内容) をテキスト ファイルとして取得します。最新の行で、各行に時刻が付き、シークレットのように見えるテキストは除去されます。ボットの起動以降のすべての内容は、データ フォルダーの logs\\terminal.log にもあります。","exec.autoContinue":"上限に達した後も続行","exec.autoContinueUnit":"回 (タスクごと)。その後は「続行」を待ちます (0 = 上限で停止)","exec.autoContinueWhy":"下記のいずれかの上限 (メッセージ数、分数、応答の待機、形式の誤った応答、失敗したチェックやレビューの指摘事項を修正するラウンド) で停止したタスクを、「続行」と同じように、そのタスク自身のチャットで到達した所からすぐに続けます。これをこの回数まで行います。こうして作業はタスクが完了するまで続き、それでも上限が作業を制限します。タスクが受けられる各上限は、最大でこの数に 1 を足した回数です。ブロックしたタスク (チャットが何かが必要だと告げた場合) は新しいチャットに移り、その後あなたを待ちます。あなたが停止したタスクが続行されることはありません。","exec.maxReviewRounds":"レビュー不合格後の修正ラウンド数","exec.maxReviewRoundsUnit":"ラウンド。その後、タスクはレビューの指摘事項とともに「ブロック」で終了します","exec.maxReviewRoundsWhy":"独立したレビューで作業が不合格になると、その指摘事項が修正のためにチャットに戻され、作業が再びレビューされます。その回数です。上記のアプローチ数とは別の上限です。あちらはチャットがどう諦めるかを数え、こちらはレビューを数えます。3 か 4 にすると、作業にあと 1、2 回のチャンスが与えられます。それ以上増やしても役立つことはまれです。何度修正しても残る指摘事項は、たいていタスク自体の書き方を変える必要があることを意味します。","exec.minApproaches":"チャットが諦める前に試すべきアプローチの数","exec.minApproachesUnit":"種類の異なるアプローチ。その後「ブロック」が受け入れられます","exec.minApproachesWhy":"チャットが完了できないと告げ、試したことを列挙すると、タスクは「ブロック」で終了します。試したアプローチがこの数より少ない場合、ランナーは別の異なるアプローチを求めてチャットに差し戻します。形式自体の最小値は 2 です。新しいことを何も試さずに「ブロック」の応答が 3 回続いた場合は、それでも受け入れられます。","exec.retryBlocked":"タスクがブロックで終了したら、新しい会話で再実行","exec.retryBlockedTimes":"回。その後は結果を受け入れます","exec.retryBlockedWhy":"ランナーには、タスクがブロックした理由がプロンプトなのか、マシンなのか、チャット自体 (Copilot が序盤のやり取りを参照できなくなった長い会話) なのかを判別できません。契約を再送した新しいチャットで解消できるのは、チャット側の原因だけです。完了して戻ってきたタスクはチャットが原因でブロックしていたことになり、再びブロックしたタスクはそうではありません。どちらの試行もタスクの記録に残ります。0 にするとこの機能はオフになります。","exec.isolation":"ボットの実行場所","exec.isolationNone":"特に指定なし — このアカウント","exec.isolationNoneAccepted":"このアカウント — 分離なしの無人実行を受け入れます","exec.isolationAccount":"権限の低い別の Windows アカウント","exec.isolationSandbox":"Windows Sandbox","exec.isolationVm":"仮想マシン","exec.isolationWhy":"モデルが書いたコマンドは、このプロセスを実行しているユーザーとして実行されます。ここでそれを申告することで、実行を無人で行えるようになります。「特に指定なし」を選ぶと、人が見ていない実行は拒否されます。誰も見ておらず何も分離していないという組み合わせは許可しないためです。ただし「分離なしの無人実行を受け入れます」を選んだ場合は、あなたの責任で許可され、すべての実行にまさにそのとおり記録されます。これはあなたの申告であってチェックではありません。ランナーはそれを記録し、実際に動作しているアカウントを書き留め、両者が一致しない場合はそのことを示します。","exec.startMode":"無人実行の開始","exec.startModeAsk":"毎回「よろしいですか?」と確認する","exec.startModeAuto":"確認せずに開始する","exec.startModeWhy":"チャットの入力欄の下で「確認せずにコマンドを実行」を選んでいる場合、会話の最初のメッセージは開始前に「よろしいですか?」と確認します。「確認せずに開始する」を選ぶと、そのまま開始します。ここで一度決めたことになります。禁止コマンドの一覧は引き続き適用され、このマシンでの実行を無人で行えるのは、上の「ボットの実行場所」がそれを許可している場合だけです。","exec.networkFetch":"無人実行でダウンロードを行うコマンド","exec.networkFetchAsk":"承認画面で私を待つ","exec.networkFetchRefuse":"拒否してチャットに理由を伝える — 実行は待機しない","exec.networkFetchRun":"確認せずに実行する","exec.networkFetchWhy":"Invoke-WebRequest、curl、wget などです。あなたを待つことは、無人実行でも行われる唯一の停止です。拒否すると、チャットに理由と代わりの方法 (プロジェクトのパッケージ マネージャー、またはステップでファイルを書くこと) が送られるため、実行はあなたなしで続きます。実行を選ぶと、届いたものを誰も読まないまま後のステップが実行できることになります。それが許容されるマシンでのみ選んでください。どのタスクにもこの選択が記録されます。npm、dotnet、pip、git が保留されることはなく、ステップごとの実行では、ここでの選択に関係なくすべてのコマンドが表示されます。","exec.saved":"保存しました。今後開始する実行に適用されます。","diff.open":"変更を表示 ({n} 個のファイル)","diff.openWhy":"この試行で変更されたすべてのファイルを、左に変更前、右に変更後で表示し、差分を示します。","diff.title":"「{title}」の変更","diff.summary":"{n} 個のファイル、+{a} −{r}","diff.keys":"n / p: 次と前の変更 \xb7 ] / [: 次と前のファイル \xb7 Esc: 閉じる","diff.close":"閉じる","diff.loading":"読み込んでいます…","diff.nothing":"このコミットで変更されたファイルはありません。","diff.files":"変更されたファイル","diff.binaryShort":"バイナリ","diff.added":"新しいファイル","diff.deleted":"削除","diff.renamed":"名前変更","diff.prevChange":"前の変更","diff.nextChange":"次の変更","diff.changeN":"変更 {i}/{n}","diff.prevFile":"前のファイル","diff.nextFile":"次のファイル","diff.whole":"ファイル全体を表示","diff.wrap":"長い行を折り返す","diff.binary":"バイナリ ファイルのため、内容は表示されません。","diff.tooLarge":"2 MB を超えているため、ここには表示できません。","diff.eol":"改行コードが変更されました ({from} → {to})。行自体は改行コードを除いて比較されます。","diff.sameText":"テキストは同じです。ファイル モードまたは改行コードだけが変更されました。","diff.before":"変更前","diff.after":"変更後","diff.gap":"⋯ 変更のない {n} 行 — 表示する","scroll.top":"ページの先頭へ","scroll.bottom":"ページの末尾へ","sys.profileBot":"現在ボット自身の実行で使用中です ({n} 個の Edge プロセス)。セッションの実行中は想定どおりの状態です。","lang.label":"Language","lang.menu":"インターフェイスの言語","a11y.skip":"コンテンツへスキップ","theme.light":"ライト","theme.dark":"ダーク","status.queued":"待機中","status.running":"実行中","status.waiting-approval":"承認待ち","status.done":"完了","status.blocked":"未完了","status.failed":"失敗","status.aborted":"中止","status.limit-reached":"上限到達","session.unattendedConfirm":"これは自動で実行されます。Copilot が書いたコマンドは、キューが終わるまで確認なしで実行されます。禁止コマンドの一覧は引き続き適用されます。開始しますか?","approval.title":"ステップ {n} があなたを待っています","approval.modelTitle":"モデルを選んでください — ボットは選択できませんでした","approval.manualTitle":"この実行のモデルを選んでください","approval.reviewModelTitle":"これは【レビュー】用のモデルです","approval.reviewModelWhy":"今度は専用の会話が作業をチェックします。作業に使ったモデルとは別のモデルを、できればより強力なものを選んでください。2 人目の目は、1 人目と同じ考え方をしないほど多くの誤りを見つけます。","approval.leadModelTitle":"これは【リーダー】用のモデルです","approval.leadModelWhy":"リーダーはタスクを理解し、プランを作成し、ワーカーを指揮し、その報告を評価します。利用できるモデルの中で、推論能力が最も高いものを選んでください。","approval.workerModelTitle":"これは【ワーカー】用のモデルです","approval.workerModelWhy":"ワーカーは各サブタスクのコマンドを実行し、結果を報告します。コードに強く、指示に従うのが得意なモデルを選んでください。","approval.manualAsk":"Copilot のウィンドウでモデル選択メニューを開き、「{model}」を選んでください。その後、「準備完了 — 続行」を押してください。","approval.manualAskAny":"Copilot のウィンドウでモデル選択メニューを開き、使いたいモデルを選んでください。その後、「準備完了 — 続行」を押してください。","approval.manualReady":"準備完了 — 続行","def.manualModel":"実行開始ごとにモデルを手動で選択","def.manualModelWhy":"ボットはモデル選択メニューに触れません。実行の開始時とレビューの開始時に、ここにカードが表示され、Copilot のウィンドウでモデルを選んで「準備完了」を押すよう求めます。ボットはそれを確認して先に進みます。すでにそのモデルになっている会話には確認しません。チャットはそのモデルを保持します。既定でオンです。オフにすると、ボットがモデルを自分で選びます。","approval.modelAsk":"Copilot のウィンドウでモデル選択メニューを開き、「{model}」を選んでください。その後、下のボタンを押してください。ボットがメニューを確認して先に進みます。","approval.modelShown":"現在メニューに表示されているモデル: {shown}","approval.modelWhy":"ボットが選択できなかった理由: {why} ({tries} 回試行)","approval.modelChosen":"選択しました — 確認して続行","approval.modelAsItIs":"現在のモデルのまま続行","approval.modelStop":"停止","approval.run":"実行","approval.runAll":"これと残りを確認せずに実行","approval.runAllWhy":"このステップに「実行」で応答し、この実行の残りの間、以降のすべてのステップで確認しなくなります。禁止コマンドの一覧にあるコマンドは引き続き拒否され、インターネットからダウンロードするコマンドは「設定 → 実行」の指定に従います (既定では引き続き確認します)。","approval.runAllConfirm":"これ以降、Copilot が書いたコマンドは、この実行が終わるまで確認なしで実行されます。禁止コマンドの一覧にあるコマンドは引き続き拒否され、インターネットからダウンロードするコマンドは「設定 → 実行」の指定に従います (既定では引き続き確認します)。続行しますか?","approval.network":"このコマンドはインターネットからダウンロードします。確認しない実行でも、このコマンドでは停止します (「設定 → 実行」で別の指定がない限り)。後のステップが届いたものを実行する可能性があるためです。何をなぜ取得するのかわかっている場合にのみ実行してください。","approval.skip":"スキップ","approval.abort":"タスクを中止","model.refresh":"Copilot から一覧を読み取る","model.refreshConfirm":"ボットの Edge ウィンドウを開き、モデル選択メニューを読み取ってから再び閉じます。セッションの実行中は実行できません。続行しますか?","model.refreshing":"チャットを開いてメニューを読み取っています…","model.refreshed":"チャットから {n} 個のモデルを読み取りました","model.readAt":"{t} に読み取り: {n} 個の選択肢。","model.neverRead":"このマシンでは一覧がまだ読み取られていません。ボタンを押してチャットから読み取ってください。","model.none":"チャットにモデル選択メニューがありませんでした。","model.notInList":"{name} (保存済み、読み取った一覧にはありません)","model.unavailable":"利用できません","vcs.commit":"タスクの完了時にコミット","mirror.browse":"参照…","checks.kind.exit-zero":"コマンドが成功する","sys.machine":"このマシン","sys.loading":"読み込んでいます…","sys.version":"copilot-operator のバージョン","sys.node":"Node","sys.edge":"Edge","sys.edgeMissing":"見つかりません","sys.profile":"ボット プロファイル","sys.profileMissing":"(まだ作成されていません: cop login を実行してください)","sys.profileInUse":"使用中のプロファイル","sys.profileHeld":"Edge がプロファイルを使用しています (PID {pids})。実行は失敗します。その Edge ウィンドウを閉じてください。","sys.profileUnknown":"確認できませんでした","sys.profileFree":"未使用","sys.desktop":"デスクトップ","sys.desktopSynced":"(OneDrive でバックアップされています)","sys.desktopLocal":"(OneDrive でバックアップされていません。保存した内容はローカルに残ります)","sys.cwd":"コマンドの予備フォルダー (セッションは自身のプロジェクト フォルダーで実行されます)","sys.runs":"実行フォルダー","sys.data":"データ フォルダー","sys.mode":"既定のモード","sys.settings":"設定","sys.settingsHint":"プロジェクトの隣にある {file} から読み取られます。形式は {example} と同じで、記載のない項目は既定値になります。ファイルを編集して API を再起動してください。","sys.asSaved":"保存されている内容","sys.resolved":"解決されたパス","sys.signin":"サインイン","sys.signinHint":"ボットが資格情報を扱うことがないよう、サインインはターミナルから一度だけ行います:","ap.theme":"テーマ","ap.size":"文字サイズ","ap.sizeSmall":"小","ap.sizeNormal":"標準","ap.sizeLarge":"大","ap.sizeHuge":"さらに大","ap.sizeGiant":"最大","ap.contrast":"コントラストを高く","ap.motion":"動きを減らす","ap.links":"すべてのリンクに下線を引く","ap.focus":"太いフォーカス枠","ap.reset":"既定値に戻す","nav.defaults":"設定","def.title":"設定","def.intro":"チャットが作業するフォルダー、Copilot へのサインイン、モデル、タスクの実行方法。各フィールドの名前の横にある ⓘ で、その目的と役立つ点を確認できます。","def.autoSave":"このページの内容は、変更するとすべて自動で保存されます。押すものはありません。","def.savedAutomatically":"入力すると保存されます","def.saveAnyway":"保存","def.saveAnywayWhy":"すでに保存されています。このボタンは、押すと安心できるように置いてあります。","info.about":"「{name}」について","l1.title":"基本プロンプト (レベル 1)","l1.readOnly":"読み取り専用","l1.what":"このテキストは読むためのものです。チャットで Copilot がなるエージェントについて説明しています。エージェントはコマンドを使ってタスクを一歩ずつ進め、各コマンドの結果を報告し、すべてのタスクを最後まで、つまり完了するか、必要なものを示してブロックするまでやり遂げます。このテキストはボットに付属しており、ボットの更新時にのみ変わります。チャットについてわかりにくい点があれば、Kerrigan (チャットのホーム画面にあるボタン) がタスクの完了まで案内できます。","l1.show":"テキスト全体を表示","l1.failed":"基本プロンプトを読み取れませんでした: {reason}","proj.namePlaceholder":"フォルダー自体の名前","proj.nameSaved":"名前を保存しました。","def.reviewTitle":"レビュー用のモデル","def.reviewIntro":"Copilot がタスクの完了を告げると、チャットの入力欄の下にある「レビュー」のチェックが外されていない限り、専用の会話が作業をレビューします。変更を読み、チェックを実行し、見つかった内容を送り返します。","def.reviewInfo":"レビューの会話に設定するモデルです。作業に使ったものとは別の、より強力なモデルが最適です。2 人目の目は、1 人目と同じ考え方をしないほど多くの誤りを見つけます。モデルを手動で選ぶ場合は、モデルを求めるカードに、それがレビュー用であることが示されます。","def.reviewField":"レビュー モデル","def.reviewNone":"ここでは未選択","def.reviewSaved":"レビューは {name} で実行されます。","def.reviewCleared":"クリアしました。レビューには専用のモデルが設定されません。","def.reviewSame":"これは作業を行うモデルと同じです。別のモデルのほうが多くの問題を見つけられます。","login.title":"Copilot にサインイン","login.intro":"ボットは専用の Edge プロファイルで動作します。チャットを動作させたりモデルを読み取ったりする前に、このプロファイルで Microsoft 365 Copilot にサインインしておく必要があります。これはターミナルで「cop login」が行うことと同じです。ウィンドウが開いたら、そこでご自身でサインインしてください。ボットがパスワードを入力することはありません。チャットが表示されるとウィンドウは閉じます。","login.account":"アカウント (省略可)","login.accountWhy":"空欄の場合: サインインしたアカウントが使われます。アドレスを入力すると、まずプロファイルがサインアウトされ、Microsoft にそのアカウントが要求されます。そうしないと、職場のマシンの Edge は Windows が認識しているいずれかのアカウントでサインインしてしまうためです。","login.button":"Copilot にサインイン","login.busy":"サインインを待っています…","login.waiting":"Edge ウィンドウが開きました。そこでサインインしてください。このページはチャットが表示されるまで待機します。","def.modelTitle":"新しい会話のモデル","def.modelIntro":"チャットの入力欄の下でモデルが選ばれていない場合に、新しいチャットの会話が開始時に使うモデルです。","def.modelInfo":"Copilot 自身のモデル選択メニューに表示される正確な名前で、最後に読み取った一覧 (「Copilot から一覧を読み取る」) から選びます。一覧は Microsoft のもので、テナントごとに異なります。チャットの入力欄の下で独自のモデルを選んだ会話は、そのモデルを保持します。「実行開始ごとにモデルを手動で選択」にチェックを入れている場合は、何も自動では選ばれず、カードが Copilot のウィンドウでモデルを選ぶよう求めます。","def.modelField":"モデル","def.modelNone":"チャットの現在の設定のままにする","def.modelSaved":"新しい会話は {name} で開始されます。","def.modelCleared":"クリアしました。新しい会話では、チャットは現在の設定のままになります。","proj.title":"プロジェクト","proj.intro":"最初のプロジェクトは、チャットが作業するフォルダーです。チャットの画面の「フォルダーを開く」でも変更できます。その他は、あなたが作業しているほかのリポジトリです。Kerrigan は、各プロジェクトのレベル 2 に書いた内容とともに、そのすべてを把握しています。","proj.saved":"チャットは {dir} で作業します。","proj.clear":"クリア","proj.cleared":"クリアしました。チャット用に開いているフォルダーはありません。","proj.none":"チャット用のフォルダーが設定されていません。ここに入力するか、チャットの画面から開いてください。","proj.isRepo":"このフォルダーは git リポジトリです。各メッセージを元に戻したり、その変更を表示したりできます。","proj.notRepoWhy":"それでもプロジェクトとして使えます。ファイルはそこにあり、チャットはそこで作業できます。ただし git がないと、メッセージを元に戻すことも、その変更を表示することもできません。フォルダーで「git init」を実行すると解決します。","proj.isDefault":"チャットのフォルダー","proj.isDefaultWhy":"チャットはこのフォルダーで作業します。コマンドはここで実行され、エクスプローラーにはこのフォルダーが表示されます。","proj.entryName":"名前","proj.entryDir":"フォルダー","proj.nameInfo":"プロジェクトの呼び名です。Kerrigan と一覧で使われます。空欄の場合は、フォルダー自体の名前になります。","proj.dirInfo":"このマシン上のプロジェクトのフォルダーです。最初のプロジェクトでは、チャットのコマンドが実行される場所であり、エクスプローラーに表示される内容です。git リポジトリが最適です。そうすれば、各メッセージを元に戻したり、その変更を表示したりできます。","proj.level2":"レベル 2 テンプレート (Kerrigan 用)","proj.level2Info":"このプロジェクトについてのメモを、自分の言葉で書きます。プロジェクトの概要、スタックとバージョン、規約、ビルド方法とテストの実行方法、手を付けてはいけない部分などです。これは Kerrigan の一部になります。Kerrigan を保存またはコピーすると、Kerrigan はこのプロジェクトを把握し、プロジェクトに合ったタスクを書く手助けをします。ボットがこれを自らどこかに送ることはありません。最大 {n} 文字です。","proj.level2Placeholder":"例: /web に React フロントエンドを持つ .NET 8 Web API。ビルド: dotnet build。テスト: dotnet test。/db のマイグレーションは絶対に編集しないこと。","proj.level2Saved":"{name} のレベル 2 を保存しました。Kerrigan に反映されています。","proj.readOnly":"参照専用 (変更しない)","proj.readOnlyInfo":"チェックすると、ボットはこのプロジェクトを読み、読むだけのコマンドを実行できますが、中身は何も変更しません。コマンドのたびにタスク開始時の状態と比べ、変わったもの (ファイル、ブランチ、ステージした内容) をすべて元に戻し、チャットに伝えます。チャットが作業するフォルダーの場合、各メッセージは読んで報告することしかできません。git が無視するファイル (node_modules、ビルド出力) は監視されません。","proj.readOnlyBadge":"参照専用","proj.readOnlyOn":"{name} は参照専用です。中身は変更されません。","proj.readOnlyOff":"{name} は再び作業できるようになりました。","proj.level2Count":"{n} / {max} 文字","proj.branch":"ブランチ: {name}","proj.detached":"ブランチなし (デタッチされた HEAD)","proj.branchInfo":"このフォルダーで現在チェックアウトされているブランチです。ページを開くたびに git から読み取られます。チャットはチェックアウトされているブランチで作業し、独自のブランチは作成しません。作業を別の場所で行いたい場合は、git でブランチを切り替えてください。","proj.addTitle":"別のプロジェクトを追加","proj.othersIntro":"あなたが作業している別のリポジトリ (フロントエンド、バックエンド、テストなど) と、その短い名前です。Kerrigan は、そのレベル 2 とともにそれを把握します。","proj.otherAdd":"追加","proj.otherRemove":"削除","proj.othersSaved":"保存しました: ほかのプロジェクト {n} 件。","proj.otherRepo":"git リポジトリ","proj.otherNotRepo":"git リポジトリではありません","skills.title":"スキル","skills.intro":"何度も繰り返し発生する種類のタスク (自動テストの追加、新しいエンティティ、データベースのマイグレーションなど) のための指示です。チャットの入力欄の下で選ぶか、メッセージを /名前 で始めると、その指示がメッセージとともにチャットに送られます。スキルは 1 つのプロジェクト用にも、すべてのプロジェクト用にもできます。","skills.none":"まだスキルがありません。","skills.name":"名前","skills.nameInfo":"短い小文字の名前で、単語はハイフンでつなぎます (例: new-test、new-entity、db-migration)。メッセージの先頭で / の後に入力すると、そのスキルが選ばれます。","skills.description":"用途","skills.descriptionInfo":"どのタスク向けかを 1 行で書きます。チャットの一覧に表示され、Kerrigan もこれを読みます。","skills.project":"プロジェクト","skills.projectInfo":"対象のプロジェクト、またはすべてのプロジェクトです。チャットでは、開いているフォルダー用のスキルと、すべてのプロジェクト用のスキルだけが選択肢に表示されます。","skills.allProjects":"すべてのプロジェクト","skills.text":"指示","skills.textInfo":"この種類のタスクについて、チャットが知っておくべきことと行うべきことです。ファイルの置き場所、従うべき規約、手順、結果の確認方法、手を付けてはいけないものなどです。書いたとおりにメッセージとともに送信されます。最大 {n} 文字です。","skills.textPlaceholder":"例: テストは tests/e2e にあり、ページごとに 1 ファイルで、名前は <ページ>.spec.ts。tests/support のフィクスチャを使うこと。npm run test:e2e -- <ファイル> を実行し、合格することを示すこと。","skills.count":"{n} / {max} 文字","skills.addTitle":"スキルを追加","skills.add":"このスキルを追加","skills.remove":"削除","skills.removeConfirm":"スキル /{name} を削除しますか? このスキルを使ってすでに送信したメッセージには、そのまま残ります。","skills.saved":"保存しました: スキル {n} 件。","approval.tabTitle":"あなたを待っています","approval.waitingHere":"ステップがあなたの判断を待っています","approval.waitingHereWhy":"ステップが待機している間はすべてのページに表示されます。確認を求めているページが開かれていないために、実行が止まっているように見えることを防ぐためです。"}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[921],{5549:(e,t,o)=>{o.d(t,{FH:()=>h});let a="/api",n="cop-api-token";function s(){try{let e=/(?:^#|&)token=([0-9a-f]{16,})/i.exec(window.location.hash);if(e)return window.localStorage.setItem(n,e[1]),window.history.replaceState(null,"",window.location.pathname+window.location.search),e[1];return window.localStorage.getItem(n)||""}catch(e){return""}}function i(e){let t=s();return t?"".concat(e).concat(e.includes("?")?"&":"?","token=").concat(encodeURIComponent(t)):e}async function r(e,t){let o,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=void 0===n.timeoutMs?3e4:n.timeoutMs;try{var r;o=await fetch("".concat(a).concat(e),{...t,...null!==i&&!(null==t?void 0:t.signal)?{signal:AbortSignal.timeout(i)}:{},headers:{"content-type":"application/json",...s()?{"x-cop-token":s()}:{},...null!=(r=null==t?void 0:t.headers)?r:{}}})}catch(t){if("TimeoutError"===t.name)throw Error("The API did not answer within ".concat(Math.round((null!=i?i:0)/1e3)," s (").concat(e.split("?")[0],"). It may be busy; try again."));throw t}if(!o.ok){let e="".concat(o.status," ").concat(o.statusText);try{let t=await o.json();(null==t?void 0:t.message)&&(e=Array.isArray(t.message)?t.message.join("; "):t.message)}catch(e){}throw Object.assign(Error(e),{status:o.status})}let h=await o.text();return h?JSON.parse(h):void 0}let h={doctor:()=>r("/doctor"),settings:()=>r("/settings"),saveSettings:e=>r("/settings",{method:"PUT",body:JSON.stringify(e)}),level1:()=>r("/level1"),sessions:()=>r("/sessions"),session:e=>r("/sessions/".concat(e)),updateSession:(e,t)=>r("/sessions/".concat(e),{method:"PUT",body:JSON.stringify(t)}),taskChanges:(e,t,o)=>r("/sessions/".concat(e,"/tasks/").concat(t,"/changes").concat(o?"?run=".concat(encodeURIComponent(o)):"")),taskChangeFile:(e,t,o,a)=>r("/sessions/".concat(e,"/tasks/").concat(t,"/changes/file?path=").concat(encodeURIComponent(o)).concat(a?"&run=".concat(encodeURIComponent(a)):"")),taskStory:(e,t,o)=>r("/sessions/".concat(e,"/tasks/").concat(t,"/story").concat(o?"?run=".concat(encodeURIComponent(o)):"")),start:(e,t)=>r("/sessions/".concat(e,"/start"),{method:"POST",body:JSON.stringify({mode:t})},{timeoutMs:12e4}),startFailures:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r("/start/failures".concat(e?"?unanswered=1":""))},startFailureUrl:e=>i("".concat(a,"/start/failures/").concat(encodeURIComponent(e),"/report")),terminalUrl:()=>i("".concat(a,"/terminal")),stop:e=>r("/sessions/".concat(e,"/stop"),{method:"POST",body:"{}"}),pause:e=>r("/sessions/".concat(e,"/pause"),{method:"POST",body:"{}"}),resume:e=>r("/sessions/".concat(e,"/resume"),{method:"POST",body:"{}"}),approvals:e=>r("/approvals".concat(e?"?session=".concat(encodeURIComponent(e)):"")),workspace:()=>r("/workspace"),workspaceFiles:()=>r("/workspace/files"),workspaceFile:e=>r("/workspace/file?path=".concat(encodeURIComponent(e))),saveWorkspaceFile:(e,t,o)=>r("/workspace/file",{method:"PUT",body:JSON.stringify({path:e,text:t,...o?{base:o}:{}})}),workspaceGit:()=>r("/workspace/git"),workspaceCommit:e=>r("/workspace/git/commit?sha=".concat(encodeURIComponent(e))),workspaceGitFile:(e,t,o)=>r("/workspace/git/file?area=".concat(e,"&path=").concat(encodeURIComponent(t)).concat(o?"&commit=".concat(encodeURIComponent(o)):"")),chatThreads:()=>r("/chat/threads"),chatSend:(e,t,o,a,n,s,i,h,l)=>r("/chat",{method:"POST",body:JSON.stringify({text:e,...t?{threadId:t}:{},...o?{model:o}:{},...a?{manualModel:!0}:{},...n?{lang:n}:{},...s?{planMode:!0}:{},...void 0!==i?{review:i}:{},...h?{lead:!0,...h.workerManualModel?{workerManualModel:!0}:h.workerModel?{workerModel:h.workerModel}:{}}:{},...l?{skill:l}:{}})}),answerQuestion:(e,t)=>r("/approvals/".concat(e,"/answer"),{method:"POST",body:JSON.stringify({text:t})}),chatRewind:(e,t)=>r("/chat/".concat(e,"/rewind"),{method:"POST",body:JSON.stringify({taskId:t})}),sessionEvents:e=>r("/sessions/".concat(e,"/events")),decidePlan:(e,t,o)=>r("/approvals/".concat(e,"/plan"),{method:"POST",body:JSON.stringify({action:t,...(null==o?void 0:o.trim())?{note:o}:{}})}),decide:(e,t)=>r("/approvals/".concat(e),{method:"POST",body:JSON.stringify({action:t})}),browseFolder:e=>r("/browse-folder",{method:"POST",body:JSON.stringify({start:e})},{timeoutMs:null}),activity:()=>r("/activity"),kerrigan:e=>r("/kerrigan?lang=".concat(encodeURIComponent(e))),taskExchangeUrl:(e,t)=>i("".concat(a,"/sessions/").concat(encodeURIComponent(e),"/tasks/").concat(encodeURIComponent(t),"/exchange")),project:()=>r("/project"),setProject:e=>r("/project",{method:"PUT",body:JSON.stringify(e)}),skills:()=>r("/skills"),setSkills:e=>r("/skills",{method:"PUT",body:JSON.stringify({skills:e})}),models:()=>r("/models"),setDefaultModel:e=>r("/models/default",{method:"PUT",body:JSON.stringify({model:e})}),setDefaultReviewModel:e=>r("/models/review-default",{method:"PUT",body:JSON.stringify({model:e})}),refreshModels:()=>r("/models/refresh",{method:"POST",body:"{}"},{timeoutMs:null}),login:e=>r("/login",{method:"POST",body:JSON.stringify({account:(null==e?void 0:e.trim())||void 0})},{timeoutMs:null})}},8205:(e,t,o)=>{o.d(t,{LanguageProvider:()=>c,W3:()=>m,Ym:()=>w,kj:()=>p});var a=o(3365),n=o(1521),s=o(9051),i=o(9755);let r={en:()=>Promise.resolve().then(o.bind(o,9051)).then(e=>e.en),bg:()=>o.e(747).then(o.bind(o,9747)).then(e=>e.bg),de:()=>o.e(163).then(o.bind(o,2163)).then(e=>e.de),es:()=>o.e(548).then(o.bind(o,1548)).then(e=>e.es),fr:()=>o.e(584).then(o.bind(o,8584)).then(e=>e.fr),pt:()=>o.e(220).then(o.bind(o,7220)).then(e=>e.pt),ja:()=>o.e(77).then(o.bind(o,1077)).then(e=>e.ja),ko:()=>o.e(714).then(o.bind(o,714)).then(e=>e.ko),ar:()=>o.e(67).then(o.bind(o,9067)).then(e=>e.ar)},h="cop.locale",l=s.en,d=(0,n.createContext)({locale:"en",setLocale:()=>void 0,table:l});function c(e){let{children:t}=e,[o,s]=(0,n.useState)("en"),[c,p]=(0,n.useState)(l),w=(0,n.useRef)({en:l}),m=(0,n.useRef)("en"),u=(0,n.useCallback)(async e=>{var t,o,a;m.current=e;let n=w.current[e];if(!n)try{n=await (null!=(t=r[e])?t:r.en)(),w.current[e]=n}catch(e){return}m.current===e&&(p(n),s(e),document.documentElement.lang=e,document.documentElement.dir=null!=(a=null==(o=(0,i.eX)(e))?void 0:o.dir)?a:"ltr")},[]);return(0,n.useEffect)(()=>{var e,t,o;let a="en";try{let o=window.localStorage.getItem(h);a=null!=(t=null!=(e=(0,i.Od)(o))?e:(0,i.Od)(navigator.language))?t:"en"}catch(e){a=null!=(o=(0,i.Od)(navigator.language))?o:"en"}u(a)},[u]),(0,a.jsx)(d.Provider,{value:{locale:o,setLocale:e=>{try{window.localStorage.setItem(h,e)}catch(e){}u(e)},table:c},children:t})}function p(){let{locale:e,table:t}=(0,n.useContext)(d);return{t:function(e){var o,a;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=null!=(a=null!=(o=t[e])?o:l[e])?a:e;for(let[e,t]of Object.entries(n))s=s.split("{".concat(e,"}")).join(String(t));return s},locale:e}}function w(){return(0,n.useContext)(d)}function m(){let{locale:e}=(0,n.useContext)(d);return t=>{var o;return t?new Date(t).toLocaleString(null==(o=(0,i.eX)(e))?void 0:o.dateLocale,{hour12:!1}):""}}},9051:(e,t,o)=>{o.r(t),o.d(t,{en:()=>a});let a={"nav.label":"Main","nav.live":"live","nav.liveTitle":"The chat is working right now. Open it to watch.","nav.system":"System","nav.workbench":"Chat","chat.askRun":"Run","chat.askRunAll":"Run this and the rest","chat.askSkip":"Skip","chat.askTitle":"Run this command?","chat.changed":"{n} file(s) changed:","chat.example1":"Explain how this project is laid out and how to run its tests.","chat.example2":"Run the tests and fix what fails.","chat.example3":"Add a README section that says how to start the project locally.","chat.exit":"exit {code}","chat.input":"Message to the chat","chat.lookAbove":"Waiting for an answer on the card at the top.","chat.mode":"How commands run","chat.modeAsk":"Ask before each command","chat.modeAuto":"Run commands without asking","chat.modeWhy":"Whether each command the chat sends waits for you, or runs at once; the list of forbidden commands applies either way.","git.title":"Git","git.refresh":"Read the folder's git again","git.noFolder":"No project folder is open.","git.notRepo":"The project folder is not a git repository.","git.upstream":"{name}: {ahead} ahead, {behind} behind","git.staged":"Staged changes","git.changes":"Changes","git.noChanges":"Nothing has changed since the last commit.","git.commits":"Commits","git.noCommits":"No commits yet.","git.commitFiles":"The files of {sha}","git.more":"The newest {n} are shown.","git.workingTree":"Working tree","git.index":"Index","git.status.M":"modified","git.status.A":"added","git.status.D":"deleted","git.status.R":"renamed","git.status.C":"copied","git.status.T":"type changed","git.status.U":"untracked","git.status.conflict":"in conflict","copy.copy":"Copy","copy.copied":"Copied","copy.failed":"Not copied","chat.foldOpen":"Show the whole message","chat.foldClose":"Fold the message to its first lines","chat.copyMessage":"Copy your message","chat.copyReply":"Copy what the chat said","chat.copySummary":"Copy how it ended","chat.copyCommand":"Copy the command and what it printed","chat.newChat":"New chat","chat.newChatWhy":"The next message starts a new conversation in Copilot, with nothing of this one in it. This one stays in the list, to go back to.","chat.newChatRunning":'A task is running. "New chat" comes on once it stops: press "Stop", or close the Copilot browser window.',"chat.newChatFresh":"This is a new chat already: write the first message below and it begins.","chat.exchange":"⤓ JSON","chat.exchangeWhy":"Everything between the bot and Copilot for this message, as a JSON file: every message sent, every reply, every command that ran with its whole output and exit code.","chat.newThread":"New conversation","chat.notStarted":"It did not start: {reason}","chat.notStartedYet":"Not started. The message is kept in the conversation; send another or start it from its session.","chat.noted":"Added to what it is doing: it gets this with its next report.","chat.openFolder":"Open a folder","chat.placeholder":"Ask for a change in {folder}… (Enter sends, Shift+Enter a new line)","chat.placeholderNoFolder":"Open a folder first","chat.placeholderRunning":"Add to what it is doing… it gets this with its next report","chat.queued":"Waiting to start.","chat.running":"running…","chat.send":"Send","chat.sendNote":"Add to it","chat.sendWhy":"Enter","chat.stop":"Stop","chat.review":"Review","chat.reviewWhy":"When Copilot says the work is done, a conversation of its own checks it — reads the changes, runs the checks — and sends back what it finds, until it passes or the review rounds in Settings are spent. On unless you untick it. Of this conversation, or of the next one.","chat.lead":"Two chats","chat.leadWhy":"A lead and a worker, for a task too big for one go: your message goes to a lead, which restates it to check it understands it, has a worker look at the project, plans, gives the worker one subtask at a time and judges what it reports, until the result is ready in the form you asked for. The worker runs the commands. Both are conversations in the same Copilot window. Say clearly what you want, and in which form you want the result. For a new conversation; a started one keeps how it began.","chat.leadModel":"Lead","chat.workerModel":"Worker","chat.workerSameModel":"The lead's model","lead.who":"The lead","lead.understood":"The lead understands the task as","lead.plan":"The lead's plan (version {v})","lead.subtask":"Subtask {n}: {title}","lead.readOnly":"reads only","lead.fresh":"a new worker","lead.thinking":"The lead is deciding the next step…","lead.working":"The worker is on subtask {n}…","lead.subtasks":"{n} of {max} subtasks","lead.question":"The lead asks you","lead.answer":"Your answer","lead.answerPlaceholder":"Write your answer, or choose one of the options above.","lead.send":"Send the answer","lead.stop":"Stop the task","lead.stopConfirm":"Stop this task at the lead's question? It ends as stopped; what was done so far stays.","lead.answered":"You answered","lead.evidence":"What shows it","chat.pause":"Pause","chat.pauseWhy":"Holds the work where it is: a reply Copilot is writing and a command that is running are let finish, then nothing more is sent to Copilot and no other command runs until you press Continue. The conversation and the browser window stay as they are, and the time paused does not count against the time limit.","chat.resume":"Continue","chat.resumeWhy":"Goes on with the work from where it was paused.","chat.pausedNote":"Paused: nothing is sent to Copilot and nothing runs until you press Continue.","chat.stopping":"Stopping… An answer Copilot is writing is waited for first; then nothing more is sent.","chat.rewind":"Go back to before this message","chat.rewindConfirm":"Put the folder back exactly as it was before this message, and take it and what came after it out of the conversation ({n} message(s))? The folder as it is now is kept in a safety copy in git.","chat.rewound":"Back to before that message: the folder is as it was then, and the message is in the box to send again or change.","chat.model":"Model","chat.modelDefault":"As in Settings ({model})","chat.modelByHand":"Set the model by hand","chat.readModels":"Read the latest models from Copilot","chat.modelsReading":"Reading the models from Copilot… (the browser opens for a moment)","chat.modelsRead":"The list of models is the one Copilot offers now.","chat.thread":"Conversation","chat.turn":"Message: {text}","chat.waitingTurn":"Waiting for the message before it to finish.","chat.welcome":"Ask for a change in {folder}","chat.welcomeWhy":"Copilot answers with commands; they run here in {dir}, on the branch it is on ({branch}), and their output goes back to it, until it is done. The folder is kept before each message: you can go back to any of them.","chat.working":"Working… message {n}","wb.fileOnDisk":"{path} — as it is on disk, read-only","wb.welcomeChat":"The open folder is {dir}. Write in the chat what to change: Copilot runs commands here until it is done.","wb.binary":"binary","wb.chatPanel":"Chat","theme.system":"System","wb.appearance":"Appearance: theme and text","ap.smaller":"Smaller text","ap.larger":"Larger text","wb.terminalInfoLabel":"What the Terminal shows","wb.terminalInfo":"Every command Copilot had run for the latest message of the conversation open in the chat, in the order they ran: the command, how it ended (its exit code) and everything it printed. While the message is being worked on, it follows the newest command.\n\nNothing is typed here: it shows what ran on this machine, in the open folder. A new chat starts it empty.","wb.problemsInfoLabel":"What the Problems show","wb.problemsInfo":'What did not go well in the conversation open in the chat: a message that ended unfinished, stopped or at a limit, and why; a check that did not pass. Press one to bring its message into view in the chat.\n\n"Seen" takes a problem off the list and the count, in this browser only; the message itself keeps it. The number on the tab counts the ones not seen yet.',"wb.outputInfoLabel":"What the Output shows","wb.outputInfo":"The bot's own log of the conversation open in the chat, newest at the bottom, each line with its time: the browser opening and the sign-in, the model, each message sent to Copilot and its answer arriving, the commands asked for and run, a stop, an error.\n\nRed lines are errors, yellow ones warnings. It is what to read when something did not go as expected.","wb.pickChat":"Write a message in the chat: what it runs shows here.","wb.problemShow":"Show its message in the chat","wb.cmdThread":"Open the conversation “{name}” in the chat","kerrigan.button":"Kerrigan","kerrigan.menu":"Kerrigan: save or copy","kerrigan.save":"Save as a file","kerrigan.copy":"Copy to the clipboard","kerrigan.saved":"Saved as {name}. Give it to a chat at the start of a conversation.","kerrigan.copied":"Copied ({n} characters). Paste it at the start of a conversation with a chat of your choice.","kerrigan.copyFailed":'The browser would not copy it. Use "Save as a file" instead.',"kerrigan.failed":"Kerrigan could not be read: {reason}","kerrigan.infoLabel":"What is Kerrigan?","kerrigan.info":'Kerrigan is a helper you may use or not. The button gives you a text — a persona — to paste at the start of a conversation with any chat you like: Microsoft Copilot, ChatGPT or another. With it, that chat knows what copilot-operator is and how it works, knows your projects with the level 2 you write for each in Settings, and helps you write a task for it: what to ask for in one message, which files and folders to name, how to say what "done" looks like and how to check it, what to leave alone. When something in the program is unclear, it explains it and leads you through it until the task is done.\n\nYou then copy the message it helped you write into the chat here. The chat here does not need Kerrigan and works just as well without her; this button sends nothing anywhere.',"nav.appearance":"Appearance","ap.systemCursor":"The system's cursor","ap.night":"Night light","chat.planMode":"Plan mode","chat.planModeWhy":"Copilot first looks at the project without changing anything and proposes a plan; the work starts once you approve it here.","chat.planShown":"The approved plan (version {v})","ed.save":"Save","ed.revert":"Undo my changes","ed.saved":"Saved.","ed.clean":"No changes","ed.unsaved":"Not saved","ed.language":"Language","ed.langAuto":"Automatic ({name})","ed.label":"The text of {path}","ed.changedOnDisk":"The file changed on disk after you opened it (the chat, or another program, changed it).","ed.reload":"Read it again (my changes are lost)","ed.saveOver":"Save over it","ed.closeUnsaved":'"{name}" has changes that are not saved. Close it and lose them?',"wb.chatTab":"Chat","wb.closeTab":"Close {name}","wb.cmdChat":"Write in the chat","wb.cmdCommits":"Show Git: the changes and the commits","wb.cmdFiles":"Show the repository’s files","wb.cmdGo":"Go to: {page}","wb.cmdPanel":"Show or hide the panel","wb.cmdProblems":"Show the problems","wb.cmdSide":"Show or hide the explorer","wb.editor":"Editor","wb.explorer":"Explorer","wb.files":"Files","wb.idle":"Nothing is running","wb.keys":"Ctrl+K: find anything \xb7 Ctrl+B: explorer \xb7 Ctrl+J: panel \xb7 Ctrl+L: write to the chat","wb.loading":"Reading…","wb.modelDefault":"the chat’s default model","wb.modelNow":"The model the session runs on","wb.noEvents":"Nothing has happened in this session yet.","wb.noProblems":"No problems in this session.","wb.problemSeen":"Seen","wb.problemSeenWhy":"Takes it off the list and the count, in this browser. It is still on its task, and shows again if a later run of the task has it again.","wb.problemsAllSeen":"Seen all","wb.problemsShowSeen":"Show the {n} seen","wb.problemsHideSeen":"Hide the seen","wb.problemsNoneNew":"Nothing new: every problem here has been seen.","wb.newChatTerminal":"A new chat: its commands show here once it runs.","wb.newChatProblems":"A new chat: nothing has gone wrong in it.","wb.newChatOutput":"A new chat: what it does shows here once it runs.","wb.noSteps":"This task ran no commands yet.","wb.noTabs":"Open a file from the explorer.","wb.openRunning":"Show the conversation that is running in the chat","wb.openTabs":"Open tabs","wb.output":"Output","wb.palette":"Find a command, a page or a conversation","wb.paletteNone":"Nothing found.","wb.palettePlaceholder":"Type to find…","wb.paletteWhy":"Every command, page and conversation of the chat, by a few letters (Ctrl+K)","wb.panel":"Panel","wb.problems":"Problems","wb.refresh":"Read again","wb.resize":"Drag to resize","wb.runningLine":"{session} › {task} \xb7 message {n}/{max} \xb7 {m}/{maxm} min","wb.pausedTag":"paused","wb.runningNow":"running…","wb.status":"Status","wb.terminal":"Terminal","wb.move":"Move {name}","wb.moveWhy":"Drag it onto another panel and the two swap places, or click to choose where it goes.","wb.moveLeft":"To the left","wb.moveCenter":"To the middle","wb.moveRight":"To the right","wb.dropHere":"Drop here: the two swap places","wb.cmdResetLayout":"Put the panels back where they were","wb.toggleChat":"Show or hide the chat","wb.tooLarge":"Too large to show.","wb.viewCommits":"Git","wb.viewFiles":"Files","wb.views":"Views","wb.waiting":"{n} waiting for you","wb.welcome":"Welcome","wb.welcomeWhy":"Open a folder: the chat works in it, and its files and git are in the explorer.","dialog.confirmTitle":"Are you sure?","dialog.noticeTitle":"Notice","dialog.ok":"OK","dialog.cancel":"Cancel","exec.title":"Execution","exec.intro":"How a task runs: how long it may go on, what happens at a limit, and what may run without you. Saved in data/settings.json; applies to tasks started from now on.","exec.maxIterations":"Most messages to the chat in one task","exec.maxIterationsUnit":'messages, then the task stops as "limit reached"',"exec.maxIterationsWhy":"Each message is one round: the chat sends steps, the runner runs them and reports back. This stops a task that goes round in circles; it is not what limits traffic — that is the hourly cap, which waits instead of stopping. A task that stops here can be continued in the same chat.","exec.maxSubtasks":"Most subtasks the lead may give","wb.runningLineTwo":"{session} › {task} \xb7 messages: lead {lead}, worker {worker}, {total} in all \xb7 {m}/{maxm} min","lead.messages":"Messages: lead {lead} \xb7 worker {worker} \xb7 {total} in all","exec.gap":"Pause between messages","exec.gapWhy":"Ticked, a message to Copilot waits until the time below has passed since the one before it — to the lead or to the worker, in any conversation. For when messages should not come too fast.","exec.gapSec":"At least","exec.gapSecWhy":"The shortest time between two messages: 60 means one a minute at most.","exec.gapUnit":"seconds","exec.gapRandom":"Random time","exec.gapRandomWhy":"Ticked, each pause is drawn anew between the shortest time above and the longest below — between 60 and 90 seconds, say — so the messages do not come on a beat.","exec.gapMax":"At most","exec.gapMaxWhy":"The longest pause, in seconds; never less than the shortest.","exec.maxSubtasksUnit":"subtasks for one message with two chats","exec.maxSubtasksWhy":"In a conversation with two chats, the lead gives the worker one subtask at a time; each is a task of the worker's, with the limits above. This bounds the whole message: when they run out, the lead is told to deliver what it has. Applies to messages started from now on.","exec.maxRunMinutes":"Longest a task may run","exec.maxRunMinutesUnit":"minutes","exec.maxRunMinutesWhy":"Counted from the task's first message, waits for the hourly cap included. A task that stops here can be continued in the same chat.","exec.replyTimeout":"How long to wait for a reply from the chat","exec.replyTimeoutUnit":"seconds (900 = 15 minutes)","exec.replyTimeoutWhy":'From sending a message to the reply having finished. A reply not finished by then ends the task as failed — "Copilot did not finish a reply within …" — with a screenshot of the chat in the run folder. The slower models and long answers can take several minutes. Applies to runs started from now on.',"startdlg.title":"Where the work starts","pm.copyPlan":"Copy the plan","pm.cardTitle":"Plan for “{title}”, waiting for approval","pm.cardWhy":"Nothing has been changed yet. The work starts once you approve this plan.","pm.note":"Note for the chat (optional when approving; says what to change when asking for another plan)","pm.notePlaceholder":"e.g. Keep the old endpoint working; do not touch the migrations.","pm.approve":"Approve and start the work","pm.revise":"Ask for another plan","pm.reviseWhy":"The chat makes a new plan with your note; the same card comes back with it.","pm.reviseNeedsNote":"Say in the note what the new plan should change.","pm.stop":"Stop the task","pm.stopConfirm":"Stop this task without doing the work? It ends as stopped and can be run again.","pm.version":"Plan version {n}, {at}","pm.approvedByOperator":"Approved by the operator, {at}.","pm.approvedAuto":"Approved by the runner, {at}.","pm.approvedNote":"Note: {note}","pm.existing":"Already there","pm.approach":"Approach","pm.steps":"Steps","pm.files":"Files it expects to change","pm.verification":"How it will show the work is done","pm.risks":"Risks","pm.revisions":"Earlier versions, and what was asked to change","pm.revision":"Version {n} ({at}):","startfail.laterSession":"A session of a run that was going could not begin:","startdlg.goStep":"Start, asking before each command","startdlg.goUnattended":"Start without asking","startfail.title":"The work did not start","startfail.where":"Where it stopped: {stage}.","startfail.stage.refused":"the start was not let in, before anything opened","startfail.stage.branch":"the branch chosen to start from","startfail.stage.preflight":"the version control check, before the browser opened","startfail.stage.browser":"opening the browser (Edge), its profile or the chat","startfail.stage.run":"the run, before its first task began","startfail.stage.at-turn":"this session's turn in the run, before its first task","startfail.stage.error":"the bot itself, while starting","startfail.when":"{when}, run {run}","startfail.whenNoRun":"{when}","startfail.download":"Download what happened (error, run record and terminal)","startfail.terminal":"Download what the terminal showed","startfail.downloadWhy":"A text file with the error, where it stopped, the run's own record, the sessions' events and every line the bot's console printed from the press to a few seconds after. Secret-shaped text is taken out.","startfail.dismiss":"Close this notice","startfail.later":"This run was accepted and then could not begin:","sys.terminalWhy":"The bot's console — what npm start or cop start printed — as a text file: the latest lines, each with its time, secret-shaped text taken out. Everything since the bot started is also in the data folder, logs\\terminal.log.","exec.autoContinue":"Keep going after a limit","exec.autoContinueUnit":"times per task, then it waits for “Continue” (0 = stop at the limit)","exec.autoContinueWhy":"A task stopped by a limit below — messages, minutes, the wait for a reply, replies in the wrong shape, rounds of fixing failed checks or review findings — is carried on at once in its own chat, from where it got to, as “Continue” would, this many times. So the work goes on until the task is done, and the limits still bound it: a task gets at most this number plus one of each. A task that blocked (the chat says it needs something) goes to a fresh chat, then waits for you; a task you stopped is never carried on.","exec.maxReviewRounds":"Rounds of fixing after a failed review","exec.maxReviewRoundsUnit":'rounds, then the task ends "blocked" with the review\'s findings',"exec.maxReviewRoundsWhy":"When the independent review fails the work, its findings go back to the chat to fix, and the work is reviewed again. This is how many times. It is a separate limit from the approaches above: those count how the chat gives up, these count reviews. 3 or 4 gives the work one or two more chances; more rarely helps — a finding that survives several fixes usually means the task itself has to be worded differently.","exec.minApproaches":"Approaches the chat must try before it may give up","exec.minApproachesUnit":'different approaches, then "blocked" is accepted',"exec.minApproachesWhy":'A task ends "blocked" when the chat says it cannot finish and lists what it tried. With fewer approaches than this, the runner sends it back asking for another, different one. The format\'s own minimum is 2. Three "blocked" replies in a row with nothing new tried are accepted anyway.',"exec.retryBlocked":"When a task ends blocked, run it again in a fresh conversation","exec.retryBlockedTimes":"times, then accept the verdict","exec.retryBlockedWhy":"The runner cannot tell why a task blocked: the prompt, the machine, or the chat itself — a long conversation whose early turns Copilot can no longer see. A fresh chat, with the contract sent again, cures a cause in the chat and nothing else. A task that comes back done was blocked by the chat; one that blocks again was not, and both attempts stay on its record. 0 turns this off.","exec.isolation":"Where the bot runs","exec.isolationNone":"Nowhere in particular — this account","exec.isolationNoneAccepted":"This account — I accept unattended runs without isolation","exec.isolationAccount":"A separate low-privilege Windows account","exec.isolationSandbox":"Windows Sandbox","exec.isolationVm":"A virtual machine","exec.isolationWhy":'Commands written by the model run as whoever this process is. Saying so here is what lets a run go unattended: with "nowhere in particular" chosen, a run without a person watching is refused, because nobody watching and nothing containing is the combination this will not be — unless you choose "I accept unattended runs without isolation", which allows it on your responsibility and is recorded with every run as exactly that. It is your statement, not a check — the runner records it, notes the account it actually holds, and says so when the two disagree.',"exec.startMode":"Starting a run without supervision","exec.startModeAsk":'Ask "are you sure" every time',"exec.startModeAuto":"Start it without asking","exec.startModeWhy":'With "Run commands without asking" chosen under the chat\'s box, the first message of a conversation asks "are you sure" before it starts. Choose "Start it without asking" and it simply starts — you decided once, here. The list of forbidden commands still applies, and a run on this machine can only go without supervision if "Where the bot runs" above allows it.',"exec.networkFetch":"A command that downloads, in a run without supervision","exec.networkFetchAsk":"Wait for me on the approval screen","exec.networkFetchRefuse":"Refuse it and tell the chat why — the run never waits","exec.networkFetchRun":"Run it without asking","exec.networkFetchWhy":"Invoke-WebRequest, curl, wget and the like. Waiting for you is the one stop a run without supervision still makes. Refusing sends the chat the reason and what to do instead (the project’s package manager, or writing the file with a step), so the run goes on without you. Running it means a later step can run what arrived without anyone having read it — choose it only on a machine where that is acceptable; every task records the choice. npm, dotnet, pip and git are never held, and a step-by-step run shows every command whatever is chosen here.","exec.saved":"Saved. Applies to runs started from now on.","diff.open":"See the changes ({n} file(s))","diff.openWhy":"Every file this attempt changed, before on the left and after on the right, with the differences marked.","diff.title":'Changes in "{title}"',"diff.summary":"{n} file(s), +{a} −{r}","diff.keys":"n / p: next and previous change \xb7 ] / [: next and previous file \xb7 Esc: close","diff.close":"Close","diff.loading":"reading…","diff.nothing":"The commit changed no file.","diff.files":"Changed files","diff.binaryShort":"binary","diff.added":"new file","diff.deleted":"deleted","diff.renamed":"renamed","diff.prevChange":"Previous change","diff.nextChange":"Next change","diff.changeN":"change {i} of {n}","diff.prevFile":"Previous file","diff.nextFile":"Next file","diff.whole":"Show the whole file","diff.wrap":"Wrap long lines","diff.binary":"A binary file: its contents are not shown.","diff.tooLarge":"Over 2 MB: too large to show here.","diff.eol":"The line endings changed ({from} → {to}); the lines themselves are compared without them.","diff.sameText":"The text is the same; only the file mode or the line endings changed.","diff.before":"Before","diff.after":"After","diff.gap":"⋯ {n} unchanged line(s) — show them","scroll.top":"To the top of the page","scroll.bottom":"To the bottom of the page","sys.profileBot":"In use by the bot's own run right now ({n} Edge process(es)). That is expected while a session runs.","lang.label":"Language","lang.menu":"The language of the interface","a11y.skip":"Skip to the content","theme.light":"Light","theme.dark":"Dark","status.queued":"queued","status.running":"running","status.waiting-approval":"waiting for approval","status.done":"done","status.blocked":"not done","status.failed":"failed","status.aborted":"aborted","status.limit-reached":"limit reached","session.unattendedConfirm":"This runs on its own: the commands Copilot writes will be executed without asking you, until the queue is finished. The list of forbidden commands still applies. Start it?","approval.title":"Step {n} is waiting for you","approval.modelTitle":"Choose the model — the bot could not","approval.manualTitle":"Choose the model for this run","approval.reviewModelTitle":"This is the model for the REVIEW","approval.reviewModelWhy":"A conversation of its own now checks the work. Choose a model different from the one the work was done with — a stronger one if you can: a second pair of eyes catches more mistakes when it does not think like the first.","approval.leadModelTitle":"This is the model for the LEAD","approval.leadModelWhy":"The lead understands the task, plans, directs the worker and judges what it reports: choose the strongest reasoning model you have.","approval.workerModelTitle":"This is the model for the WORKER","approval.workerModelWhy":"The worker runs the commands of each subtask and reports back: choose a model good at code and at following instructions.","approval.manualAsk":'In the Copilot window, open the model picker and choose "{model}". Then press "Ready — continue".',"approval.manualAskAny":'In the Copilot window, open the model picker and choose the model you want. Then press "Ready — continue".',"approval.manualReady":"Ready — continue","def.manualModel":"Choose the model by hand at the start of each run","def.manualModelWhy":'The bot leaves the model picker alone. At the start of a run, and of a review, a card appears here asking you to choose the model in the Copilot window and press "Ready"; the bot checks it and goes on. A conversation already on the model is not asked about — the chat keeps its model. On by default: turn it off to let the bot choose the model itself.',"approval.modelAsk":'In the Copilot window, open the model picker and choose "{model}". Then press the button below: the bot checks the picker and goes on.',"approval.modelShown":"The picker shows now: {shown}","approval.modelWhy":"Why the bot could not: {why} (asked {tries} time(s))","approval.modelChosen":"I chose it — check and continue","approval.modelAsItIs":"Continue on the model it is on","approval.modelStop":"Stop","approval.run":"Run","approval.runAll":"Run this and the rest without asking","approval.runAllWhy":"Answers this step with Run and stops asking for every step after it, for the rest of this run. Commands on the deny list are still refused, and a command that downloads from the internet does what Settings → Execution says (by default it still asks).","approval.runAllConfirm":"From here on, commands written by Copilot will run without asking, until this run ends. Commands on the deny list are still refused, and a command that downloads from the internet does what Settings → Execution says (by default it still asks). Continue?","approval.network":"This command downloads from the internet. A run that does not ask still stops for this one (unless Settings → Execution says otherwise), because a later step could run what arrived. Run it only if you know what it fetches and why.","approval.skip":"Skip","approval.abort":"Abort task","model.refresh":"Read the list from Copilot","model.refreshConfirm":"This opens the bot’s Edge window, reads the model picker and closes it again. It cannot run while a session is running. Continue?","model.refreshing":"opening the chat and reading the picker…","model.refreshed":"read {n} model(s) from the chat","model.readAt":"Read {t}: {n} option(s).","model.neverRead":"The list has never been read on this machine. Press the button to read it from the chat.","model.none":"The chat did not offer a model picker.","model.notInList":"{name} (saved, not in the list that was read)","model.unavailable":"not available","vcs.commit":"Commit when a task finishes","mirror.browse":"Browse…","checks.kind.exit-zero":"the command succeeds","sys.machine":"This machine","sys.loading":"Loading…","sys.version":"copilot-operator version","sys.node":"Node","sys.edge":"Edge","sys.edgeMissing":"not found","sys.profile":"Bot profile","sys.profileMissing":"(not created yet: run cop login)","sys.profileInUse":"Profile in use","sys.profileHeld":"Edge is holding the profile (pids {pids}). A run would fail. Close that Edge window.","sys.profileUnknown":"could not check","sys.profileFree":"free","sys.desktop":"Desktop","sys.desktopSynced":"(backed up by OneDrive)","sys.desktopLocal":"(not backed up by OneDrive; what is saved there stays local)","sys.cwd":"Fallback folder for commands (a session runs in its own project folder)","sys.runs":"Runs folder","sys.data":"Data folder","sys.mode":"Default mode","sys.settings":"Settings","sys.settingsHint":"Read from {file} next to the project. It has the same shape as {example}; anything missing takes the default. Edit the file and restart the API.","sys.asSaved":"As saved","sys.resolved":"Resolved paths","sys.signin":"Sign-in","sys.signinHint":"Signing in is done once, from the terminal, so that the bot never handles credentials:","ap.theme":"Theme","ap.size":"Text size","ap.sizeSmall":"Small","ap.sizeNormal":"Normal","ap.sizeLarge":"Large","ap.sizeHuge":"Larger","ap.sizeGiant":"Largest","ap.contrast":"Higher contrast","ap.motion":"Less motion","ap.links":"Underline every link","ap.focus":"Thick focus outline","ap.reset":"Back to the defaults","nav.defaults":"Settings","def.title":"Settings","def.intro":"The folders the chat works in, the sign-in to Copilot, the models, and how a task runs. Each field has an ⓘ beside its name that says what it is for and how it helps.","def.autoSave":"Everything on this page saves itself as you change it. There is nothing to press.","def.savedAutomatically":"saved as you type","def.saveAnyway":"Save","def.saveAnywayWhy":"It is already saved. This button exists for the comfort of pressing one.","info.about":"About “{name}”","l1.title":"The base prompt (level 1)","l1.readOnly":"read only","l1.what":"This text is for reading. It describes the agent Copilot becomes in the chat: it works through a task step by step with commands, reports what each one did, and takes every task to its end — done, or blocked with what it needs. It comes with the bot and changes only when the bot is updated. If something about the chat is unclear, Kerrigan (the button on the chat's home screen) can guide you through it until the task is done.","l1.show":"Show the whole text","l1.failed":"The base prompt could not be read: {reason}","proj.namePlaceholder":"the folder's own name","proj.nameSaved":"Name saved.","def.reviewTitle":"Model for the review","def.reviewIntro":'When Copilot says a task is done, a conversation of its own reviews the work, unless "Review" under the chat\'s box is unticked. It reads the changes, runs the checks and sends back what it finds.',"def.reviewInfo":"The model the review's conversation is put on. Best a different one from the work's, and a stronger one: a second pair of eyes catches more mistakes when it does not think like the first. With the model chosen by hand, the card that asks for it says it is the review's.","def.reviewField":"Review model","def.reviewNone":"None chosen here","def.reviewSaved":"The review will run on {name}.","def.reviewCleared":"Cleared: the review is not put on a model of its own.","def.reviewSame":"This is the same model as the one doing the work. A different one would catch more.","login.title":"Sign in to Copilot","login.intro":'The bot works in an Edge profile of its own, which has to be signed in to Microsoft 365 Copilot before the chat can work or the models can be read — what "cop login" does in a terminal. The window opens and you sign in there yourself; the bot never types a password. It closes when the chat appears.',"login.account":"Account (optional)","login.accountWhy":"Empty: whatever account you sign in with. With an address, the profile is signed out first and Microsoft is asked for that account, because Edge on a work machine otherwise signs in with whichever account Windows knows.","login.button":"Sign in to Copilot","login.busy":"Waiting for you to sign in…","login.waiting":"An Edge window has opened. Sign in there; this page waits until the chat appears.","def.modelTitle":"Model for new conversations","def.modelIntro":"The model a new chat conversation starts on, unless one is chosen under the chat's box.","def.modelInfo":'Chosen by the exact name Copilot\'s own picker shows, from the list read from it last ("Read the list from Copilot"); the list belongs to Microsoft and differs per tenant. A conversation that chose its own under the chat\'s box keeps it. With "Choose the model by hand at the start of each run" ticked, nothing is chosen for you: a card asks you to choose it in the Copilot window.',"def.modelField":"Model","def.modelNone":"Leave the chat on whatever it is set to","def.modelSaved":"New conversations will start on {name}.","def.modelCleared":"Cleared. New conversations leave the chat on whatever it is set to.","proj.title":"Projects","proj.intro":'The first project is the folder the chat works in; "Open a folder" on the chat\'s screen changes it too. The others are the rest of the repositories you work in. Kerrigan knows every one of them, with what you write in its level 2.',"proj.saved":"The chat works in {dir}.","proj.clear":"Clear","proj.cleared":"Cleared. No folder is open for the chat.","proj.none":"No folder is set for the chat: type one here or open one from the chat's screen.","proj.isRepo":"This folder is a git repository: each message can be undone, and its changes shown.","proj.notRepoWhy":'It can still be a project: the files are there and the chat can work in it. Without git, though, a message cannot be undone and its changes cannot be shown; "git init" in the folder fixes that.',"proj.isDefault":"the chat's folder","proj.isDefaultWhy":"The chat works in this one: its commands run here, and the explorer shows it.","proj.entryName":"Name","proj.entryDir":"Folder","proj.nameInfo":"What you call the project. Kerrigan and the lists use it. Left empty, it is the folder's own name.","proj.dirInfo":"The project's folder on this machine. For the first project, it is where the chat's commands run and what the explorer shows. Best a git repository: then each message can be undone and its changes shown.","proj.level2":"Level 2 template (for Kerrigan)","proj.level2Info":"Notes about this project, in your own words: what it is, its stack and versions, its conventions, how it is built and how its tests run, what must not be touched. They become part of Kerrigan: when you save or copy her, she knows this project and helps you write tasks that fit it. The bot sends them nowhere by itself. Up to {n} characters.","proj.level2Placeholder":"e.g. A .NET 8 web API with a React front end in /web. Build: dotnet build. Tests: dotnet test. Never edit the migrations in /db.","proj.level2Saved":"Level 2 of {name} saved: Kerrigan has it.","chat.skill":"Skill","chat.skillNone":"No skill","chat.skillWhy":"A skill adds your instructions for this kind of task — written in Settings → Skills — to the message. Starting the message with /its-name does the same.","chat.skillUsed":"Skill: /{name}","chat.skillUnknown":"There is no skill /{name} for this folder. The ones there are: {names}.","chat.skillNoText":"Write the message after /{name}: what this task is.","skills.title":"Skills","skills.intro":"Instructions for a kind of task that comes back again and again — adding an automated test, a new entity, a database migration. Choose one under the chat's box, or start a message with /its-name: its instructions go to the chat with that message. A skill can be for one project or for every project.","skills.none":"No skills yet.","skills.name":"Name","skills.nameInfo":"Short, lowercase, with hyphens — new-test, new-entity, db-migration. Typed after / at the start of a message, it chooses the skill.","skills.description":"What it is for","skills.descriptionInfo":"One line: which tasks it is for. The chat's list shows it, and Kerrigan reads it.","skills.project":"Project","skills.projectInfo":"The project it is for, or every project. In the chat, only the skills for the open folder and the ones for every project are offered.","skills.allProjects":"Every project","skills.text":"Instructions","skills.textInfo":"What the chat should know and do for this kind of task: where the files go, the conventions to follow, the steps, how to check the result, what to leave alone. Sent with the message as written. Up to {n} characters.","skills.textPlaceholder":"e.g. Tests live in tests/e2e, one file per page, named <page>.spec.ts. Use the fixtures in tests/support. Run npm run test:e2e -- <file> and show it passing.","skills.count":"{n} / {max} characters","skills.addTitle":"Add a skill","skills.add":"Add the skill","skills.remove":"Remove","skills.removeConfirm":"Remove the skill /{name}? Messages already sent with it keep it.","skills.saved":"Skills saved: {n}.","proj.readOnly":"For reference only (no changes)","proj.readOnlyInfo":"Ticked, the bot may read this project and run what only reads it, but it changes nothing in it. After every command it compares the project with how it was when the task began, puts back whatever changed — files, branches, what is staged — and tells the chat. On the folder the chat works in, every message can then only read and report. Files git ignores (node_modules, build output) are not watched.","proj.readOnlyBadge":"reference only","proj.readOnlyOn":"{name} is for reference only: nothing in it will be changed.","proj.readOnlyOff":"{name} is open for work again.","proj.level2Count":"{n} / {max} characters","proj.branch":"Branch: {name}","proj.detached":"No branch (a detached HEAD)","proj.branchInfo":"The branch checked out in this folder right now, read from git each time the page opens. The chat works on whatever is checked out and makes no branch of its own: switch it in git when you want the work elsewhere.","proj.addTitle":"Add another project","proj.othersIntro":"Another repository you work in — a front end, a back end, the tests — with a short name. Kerrigan knows it, with its level 2.","proj.otherAdd":"Add","proj.otherRemove":"Remove","proj.othersSaved":"Saved: {n} other project(s).","proj.otherRepo":"git repository","proj.otherNotRepo":"not a git repository","approval.tabTitle":"waiting for you","approval.waitingHere":"A step is waiting for your decision","approval.waitingHereWhy":"Shown on every page while a step waits, so a run never looks stuck because the page that asks is not the one open."}},9755:(e,t,o)=>{o.d(t,{Od:()=>s,Yj:()=>a,eX:()=>n});let a=[{code:"en",english:"English",native:"English",flag:"gb",dir:"ltr",dateLocale:"en-GB"},{code:"bg",english:"Bulgarian",native:"Български",flag:"bg",dir:"ltr",dateLocale:"bg-BG"},{code:"de",english:"German",native:"Deutsch",flag:"de",dir:"ltr",dateLocale:"de-DE"},{code:"es",english:"Spanish",native:"Espa\xf1ol",flag:"es",dir:"ltr",dateLocale:"es-ES"},{code:"fr",english:"French",native:"Fran\xe7ais",flag:"fr",dir:"ltr",dateLocale:"fr-FR"},{code:"pt",english:"Portuguese",native:"Portugu\xeas",flag:"pt",dir:"ltr",dateLocale:"pt-PT"},{code:"ja",english:"Japanese",native:"日本語",flag:"jp",dir:"ltr",dateLocale:"ja-JP"},{code:"ko",english:"Korean",native:"한국어",flag:"kr",dir:"ltr",dateLocale:"ko-KR"},{code:"ar",english:"Arabic",native:"العربية",flag:"sa",dir:"rtl",dateLocale:"ar"}],n=e=>a.find(t=>t.code===e);function s(e){var t,o,a;return null!=(a=null==(t=n(null!=(o=(null!=e?e:"").toLowerCase().split(/[-_]/)[0])?o:""))?void 0:t.code)?a:null}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[189],{1035:(e,l,t)=>{"use strict";t.d(l,{DialogHost:()=>d,Z:()=>c});var a=t(3365),n=t(1521),i=t(8205),s=t(4969);let r=null,o=[];function c(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(t=>{var a;return a={kind:"confirm",message:e,...l,resolve:t},void(r?r(a):o.push(a))})}function d(e){var l,t;let{children:c}=e,{t:d}=(0,i.kj)(),[u,m]=(0,n.useState)([]),h=(0,n.useRef)(null),x=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(r=e=>m(l=>[...l,e]),o.length>0){let e=o.splice(0,o.length);m(l=>[...l,...e])}return()=>{r=null}},[]);let p=u[0],j=(0,n.useCallback)(e=>{p&&(p.resolve(e),m(e=>e.slice(1)))},[p]);return(0,s.V)(x,!!p,h),(0,n.useEffect)(()=>{if(!p)return;let e=e=>{"Escape"===e.key&&(e.preventDefault(),j(!1))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[p,j]),(0,a.jsxs)(a.Fragment,{children:[c,p&&(0,a.jsx)("div",{className:"modal-backdrop",onClick:()=>j(!1),role:"presentation",children:(0,a.jsxs)("div",{ref:x,className:"modal".concat(p.danger?" danger":""),role:"confirm"===p.kind?"alertdialog":"dialog","aria-modal":"true","aria-labelledby":"modal-title","aria-describedby":"modal-body",onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("h2",{id:"modal-title",children:null!=(l=p.title)?l:d("confirm"===p.kind?"dialog.confirmTitle":"dialog.noticeTitle")}),(0,a.jsx)("div",{id:"modal-body",className:"modal-body",children:p.message}),(0,a.jsxs)("div",{className:"row modal-actions",children:["confirm"===p.kind&&(0,a.jsx)("button",{type:"button",className:"quiet",onClick:()=>j(!1),children:d("dialog.cancel")}),(0,a.jsx)("button",{ref:h,type:"button",className:p.danger?"danger":"primary",onClick:()=>j(!0),children:null!=(t=p.okLabel)?t:d("dialog.ok")})]})]})})]})}},1272:(e,l,t)=>{"use strict";t.d(l,{O:()=>n});var a=t(3365);function n(){return(0,a.jsxs)("svg",{className:"branch-ico",viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false",children:[(0,a.jsx)("path",{d:"M4.5 3.5v9M4.5 10c0-3 7-2.5 7-5.5",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,a.jsx)("circle",{cx:"4.5",cy:"3",r:"1.7",fill:"currentColor"}),(0,a.jsx)("circle",{cx:"4.5",cy:"13",r:"1.7",fill:"currentColor"}),(0,a.jsx)("circle",{cx:"11.5",cy:"4.2",r:"1.7",fill:"currentColor"})]})}},1896:(e,l,t)=>{Promise.resolve().then(t.bind(t,3197))},3197:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>u});var a=t(3365),n=t(1521),i=t(5549),s=t(8205),r=t(1035),o=t(4784),c=t(5462),d=t(1272);function u(){let{t:e}=(0,s.kj)(),[l,t]=(0,n.useState)(null),[o,c]=(0,n.useState)(!1),[d,u]=(0,n.useState)("");(0,n.useEffect)(()=>{i.FH.models().then(t).catch(()=>void 0)},[]);let m=async()=>{if(await (0,r.Z)(e("model.refreshConfirm"))){c(!0),u(e("model.refreshing"));try{var l;let a=await i.FH.models().then(()=>i.FH.refreshModels());t(a),u(0===a.options.length?null!=(l=a.note)?l:e("model.none"):e("model.refreshed",{n:a.options.length}))}catch(e){u(e.message)}finally{c(!1)}}},h={catalogue:l,setCatalogue:t,refreshModels:m,refreshing:o,refreshMsg:d};return(0,a.jsxs)("div",{className:"settings",children:[(0,a.jsxs)("div",{className:"panel",children:[(0,a.jsx)("h2",{children:e("def.title")}),(0,a.jsx)("p",{className:"muted small",children:e("def.intro")}),(0,a.jsx)("p",{className:"why",children:e("def.autoSave")})]}),(0,a.jsx)(y,{}),(0,a.jsx)(k,{}),(0,a.jsx)(b,{}),(0,a.jsx)(N,{}),(0,a.jsx)(S,{...h}),(0,a.jsx)(R,{...h}),(0,a.jsx)(F,{})]})}function m(e){let{htmlFor:l,label:t,info:n,as:i="label"}=e,{t:r}=(0,s.kj)();return(0,a.jsxs)("div",{className:"field-label",children:["label"===i?(0,a.jsx)("label",{htmlFor:l,children:t}):(0,a.jsx)("span",{className:"field-name",children:t}),(0,a.jsx)(c.q,{label:r("info.about",{name:t}),text:n})]})}function h(e){let{id:l,label:t,info:n,unit:i,children:s}=e;return(0,a.jsxs)("div",{className:"settings-field",children:[(0,a.jsx)(m,{htmlFor:l,label:t,info:n}),(0,a.jsxs)("div",{className:"field-control",children:[s,i&&(0,a.jsx)("span",{className:"unit",children:i})]})]})}function x(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:900,t=(0,n.useRef)(null),a=(0,n.useRef)(null),i=(0,n.useRef)(e);return i.current=e,(0,n.useEffect)(()=>()=>{t.current&&clearTimeout(t.current),a.current&&i.current(a.current.value)},[]),e=>{t.current&&clearTimeout(t.current),a.current={value:e},t.current=setTimeout(()=>{a.current=null,i.current(e)},l)}}function p(e){let{id:l,value:t,min:i,max:s,onChange:r,disabled:o}=e,[c,d]=(0,n.useState)(String(t));return(0,n.useEffect)(()=>d(e=>j(e)===t?e:String(t)),[t]),(0,a.jsx)("input",{id:l,type:"number",className:"number",min:i,max:s,step:1,value:c,onChange:e=>{d(e.target.value);let l=j(e.target.value);null!==l&&l>=i&&l<=s&&r(l)},onBlur:()=>{let e=j(c),l=null===e?t:Math.max(i,Math.min(s,e));d(String(l)),l!==t&&r(l)},disabled:o})}function j(e){if(""===e.trim())return null;let l=Number(e);return Number.isInteger(l)?l:null}function v(e){let{msg:l,onSave:t}=e,{t:n}=(0,s.kj)();return(0,a.jsxs)("div",{className:"row saved-note",children:[t&&(0,a.jsx)("button",{className:"quiet",onClick:t,title:n("def.saveAnywayWhy"),children:n("def.saveAnyway")}),(0,a.jsx)("span",{className:"muted small",role:"status",children:l||n("def.savedAutomatically")})]})}let f={name:"",description:"",text:"",projectDir:""};function b(){let{t:e}=(0,s.kj)(),[l,t]=(0,n.useState)(null),[o,c]=(0,n.useState)({maxText:8e3,maxDescription:300}),[d,u]=(0,n.useState)([]),[m,h]=(0,n.useState)(""),[x,p]=(0,n.useState)(""),[j,b]=(0,n.useState)(!1),[y,k]=(0,n.useState)(f);(0,n.useEffect)(()=>{i.FH.skills().then(e=>{t(e.skills),c({maxText:e.maxText,maxDescription:e.maxDescription})}).catch(e=>p(e.message)),i.FH.project().then(e=>u([...e.rootDir?[{name:e.name||e.rootDir,dir:e.rootDir}]:[],...e.others.map(e=>({name:e.name,dir:e.rootDir}))])).catch(()=>void 0)},[]);let w=async l=>{b(!0),p("");try{let a=await i.FH.setSkills(l);return t(a.skills),h(e("skills.saved",{n:a.skills.length})),!0}catch(e){return p(e.message),!1}finally{b(!1)}},N=null!=l?l:[],S=async()=>{await w([...N,{...y,name:y.name.trim().toLowerCase()}])&&k(f)},C=async l=>{await (0,r.Z)(e("skills.removeConfirm",{name:N[l].name}))&&await w(N.filter((e,t)=>t!==l))};return(0,a.jsxs)("section",{className:"panel",id:"skills","aria-labelledby":"skills-title",children:[(0,a.jsx)("h2",{id:"skills-title",children:e("skills.title")}),(0,a.jsx)("p",{className:"muted small",children:e("skills.intro")}),x&&(0,a.jsx)("div",{className:"err",children:x}),l&&0===l.length&&(0,a.jsx)("p",{className:"muted small",children:e("skills.none")}),N.map((e,l)=>(0,a.jsx)(g,{skill:e,projects:d,limits:o,onChange:e=>w(N.map((t,a)=>a===l?e:t)),onRemove:()=>void C(l),busy:j},"skill-".concat(l))),(0,a.jsx)(v,{msg:m}),(0,a.jsx)("h3",{id:"skills-add",children:e("skills.addTitle")}),(0,a.jsx)(g,{skill:y,projects:d,limits:o,onDraft:k,busy:j}),(0,a.jsx)("div",{className:"row",children:(0,a.jsx)("button",{className:"primary",onClick:()=>void S(),disabled:j||!y.name.trim()||!y.text.trim(),children:e("skills.add")})})]})}function g(e){let{skill:l,projects:t,limits:i,onChange:r,onDraft:o,onRemove:c,busy:d}=e,{t:u}=(0,s.kj)(),h=(0,n.useId)(),[p,j]=(0,n.useState)(l),v=(0,n.useRef)(!1);(0,n.useEffect)(()=>{v.current||j(l)},[l]);let f=e=>{let l={...p,...e};return j(l),null==o||o(l),l},b=x(async e=>{v.current=!1,r&&e.text!==l.text&&await r(e)},1200),g=()=>{r&&(p.name!==l.name||p.description!==l.description)&&r(p)};return(0,a.jsxs)("div",{className:"panel inner skill-entry".concat(r?"":" skill-new"),children:[(0,a.jsxs)("div",{className:"project-fields",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(m,{htmlFor:"".concat(h,"-name"),label:u("skills.name"),info:u("skills.nameInfo")}),(0,a.jsxs)("div",{className:"input-with-buttons",children:[(0,a.jsx)("span",{className:"skill-slash","aria-hidden":"true",children:"/"}),(0,a.jsx)("input",{id:"".concat(h,"-name"),type:"text",value:p.name,onChange:e=>f({name:e.target.value}),onBlur:g,placeholder:"new-test",spellCheck:!1})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(m,{htmlFor:"".concat(h,"-description"),label:u("skills.description"),info:u("skills.descriptionInfo")}),(0,a.jsx)("input",{id:"".concat(h,"-description"),type:"text",value:p.description,maxLength:i.maxDescription,onChange:e=>f({description:e.target.value}),onBlur:g})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(m,{htmlFor:"".concat(h,"-project"),label:u("skills.project"),info:u("skills.projectInfo")}),(0,a.jsxs)("div",{className:"input-with-buttons",children:[(0,a.jsxs)("select",{id:"".concat(h,"-project"),value:p.projectDir,onChange:e=>{let l=f({projectDir:e.target.value});r&&r(l)},children:[(0,a.jsx)("option",{value:"",children:u("skills.allProjects")}),t.map(e=>(0,a.jsx)("option",{value:e.dir,children:e.name},e.dir))]}),c&&(0,a.jsx)("button",{className:"quiet",onClick:c,disabled:d,children:u("skills.remove")})]})]})]}),(0,a.jsxs)("div",{className:"project-level2",children:[(0,a.jsx)(m,{htmlFor:"".concat(h,"-text"),label:u("skills.text"),info:u("skills.textInfo",{n:i.maxText.toLocaleString()})}),(0,a.jsx)("textarea",{id:"".concat(h,"-text"),className:"prose",rows:5,maxLength:i.maxText,value:p.text,onChange:e=>{let l=f({text:e.target.value});r&&(v.current=!0,b(l))},placeholder:u("skills.textPlaceholder")}),(0,a.jsx)("span",{className:"muted small",children:u("skills.count",{n:p.text.length.toLocaleString(),max:i.maxText.toLocaleString()})})]})]})}function y(){let{t:e}=(0,s.kj)(),[l,t]=(0,n.useState)(null),[r,o]=(0,n.useState)("");return(0,n.useEffect)(()=>{i.FH.level1().then(e=>t(e.content)).catch(l=>o(e("l1.failed",{reason:l.message})))},[]),(0,a.jsxs)("section",{className:"panel",id:"level1","aria-labelledby":"level1-title",children:[(0,a.jsxs)("div",{className:"row section-title",children:[(0,a.jsx)("h2",{id:"level1-title",children:e("l1.title")}),(0,a.jsx)("span",{className:"badge",children:e("l1.readOnly")})]}),(0,a.jsx)("div",{className:"callout",role:"note",children:e("l1.what")}),r&&(0,a.jsx)("div",{className:"err",children:r}),(0,a.jsxs)("details",{className:"l1-text",children:[(0,a.jsx)("summary",{children:e("l1.show")}),(0,a.jsx)("pre",{className:"l1-pre",children:null!=l?l:"…"})]})]})}function k(){var e,l;let{t}=(0,s.kj)(),[r,o]=(0,n.useState)(null),[c,d]=(0,n.useState)(""),[u,h]=(0,n.useState)(""),[p,j]=(0,n.useState)(""),[f,b]=(0,n.useState)(""),[g,y]=(0,n.useState)(!1),[k,N]=(0,n.useState)(""),[S,C]=(0,n.useState)(""),R=(0,n.useCallback)(async()=>{try{let e=await i.FH.project();o(e),d(e.rootDir),h(e.name),b("")}catch(e){b(e.message)}},[]);(0,n.useEffect)(()=>{R()},[R]);let F=async(e,l)=>{y(!0),j("");try{let t=await i.FH.setProject(e);return o(t),d(t.rootDir),j(l(t)),b(""),!0}catch(e){return b(e.message),!1}finally{y(!1)}},M=e=>F({rootDir:e},e=>e.rootDir?t("proj.saved",{dir:e.rootDir}):t("proj.cleared")),E=e=>F({name:e},()=>t("proj.nameSaved")),D=x(M),I=x(E),O=async(e,l)=>{y(!0);try{var t;let a=await i.FH.browseFolder(l.trim()||void 0);a.ok?e(a.path):a.cancelled||b(null!=(t=a.reason)?t:"")}catch(e){b(e.message)}finally{y(!1)}},L=null!=(e=null==r?void 0:r.others)?e:[],H=e=>e.map(e=>({name:e.name,rootDir:e.rootDir,level2:e.level2,readOnly:e.readOnly})),W=(e,l,t)=>F({others:H(L.map(t=>t.name===e.name?{...t,...l}:t))},t),T=async()=>{await F({others:[...H(L),{name:k.trim(),rootDir:S.trim(),level2:"",readOnly:!1}]},e=>t("proj.othersSaved",{n:e.others.length}))&&(N(""),C(""))};return(0,a.jsxs)("section",{className:"panel",id:"project","aria-labelledby":"project-title",children:[(0,a.jsx)("h2",{id:"project-title",children:t("proj.title")}),(0,a.jsx)("p",{className:"muted small",children:t("proj.intro")}),f&&(0,a.jsx)("div",{className:"err",children:f}),(0,a.jsx)(w,{name:u,dir:c,repoOk:!!(null==r?void 0:r.repoOk),repoProblem:null==r?void 0:r.repoProblem,branch:null==r?void 0:r.branch,level2:null!=(l=null==r?void 0:r.level2)?l:"",readOnly:(null==r?void 0:r.readOnly)===!0,onReadOnly:e=>F({readOnly:e},()=>t(e?"proj.readOnlyOn":"proj.readOnlyOff",{name:u||c})),isDefault:!0,busy:g,onNameInput:e=>{h(e),I(e)},onName:e=>void E(e),onDirInput:e=>{d(e),D(e)},onDir:e=>void M(e),onBrowse:()=>void O(e=>void M(e),c),onLevel2:e=>F({level2:e},()=>t("proj.level2Saved",{name:u||c})),onRemove:(null==r?void 0:r.rootDir)?()=>void M(""):void 0,removeLabel:t("proj.clear")}),r&&!r.rootDir&&(0,a.jsx)("p",{className:"muted small",children:t("proj.none")}),L.map((e,l)=>(0,a.jsx)(w,{name:e.name,dir:e.rootDir,repoOk:e.repoOk,repoProblem:e.repoProblem,branch:e.branch,level2:e.level2,readOnly:!0===e.readOnly,onReadOnly:l=>W(e,{readOnly:l},()=>t(l?"proj.readOnlyOn":"proj.readOnlyOff",{name:e.name})),busy:g,onName:l=>void W(e,{name:l},()=>t("proj.nameSaved")),onDir:l=>void W(e,{rootDir:l},()=>t("proj.othersSaved",{n:L.length})),onBrowse:()=>void O(l=>void W(e,{rootDir:l},()=>t("proj.othersSaved",{n:L.length})),e.rootDir),onLevel2:l=>W(e,{level2:l},()=>t("proj.level2Saved",{name:e.name})),onRemove:()=>{let l;l=e.name,F({others:H(L.filter(e=>e.name!==l))},e=>t("proj.othersSaved",{n:e.others.length}))},removeLabel:t("proj.otherRemove")},"other-".concat(l))),(0,a.jsx)(v,{msg:p}),(0,a.jsx)("h3",{id:"others",children:t("proj.addTitle")}),(0,a.jsx)("p",{className:"muted small",children:t("proj.othersIntro")}),(0,a.jsxs)("div",{className:"project-fields add-project",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(m,{htmlFor:"new-project-name",label:t("proj.entryName"),info:t("proj.nameInfo")}),(0,a.jsx)("input",{id:"new-project-name",type:"text",value:k,onChange:e=>N(e.target.value),placeholder:t("proj.entryName"),disabled:g})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(m,{htmlFor:"new-project-dir",label:t("proj.entryDir"),info:t("proj.dirInfo")}),(0,a.jsxs)("div",{className:"input-with-buttons",children:[(0,a.jsx)("input",{id:"new-project-dir",type:"text",value:S,onChange:e=>C(e.target.value),placeholder:"C:\\Projects\\my-app-tests",disabled:g}),(0,a.jsx)("button",{onClick:()=>void O(e=>C(e),S),disabled:g,children:t("mirror.browse")}),(0,a.jsx)("button",{className:"primary",onClick:()=>void T(),disabled:g||!k.trim()||!S.trim(),children:t("proj.otherAdd")})]})]})]})]})}function w(e){var l;let{name:t,dir:i,repoOk:r,repoProblem:o,branch:u,level2:h,readOnly:p,onReadOnly:j,isDefault:v=!1,busy:f,onNameInput:b,onName:g,onDirInput:y,onDir:k,onBrowse:w,onLevel2:N,onRemove:S,removeLabel:C}=e,{t:R}=(0,s.kj)(),F=(0,n.useId)(),[M,E]=(0,n.useState)(t),[D,I]=(0,n.useState)(i),[O,L]=(0,n.useState)(h),H=(0,n.useRef)(!1),[W,T]=(0,n.useState)(p);(0,n.useEffect)(()=>T(p),[p]),(0,n.useEffect)(()=>E(t),[t]),(0,n.useEffect)(()=>I(i),[i]),(0,n.useEffect)(()=>{H.current||L(h)},[h]);let B=x(async e=>{H.current=!1,e!==h&&await N(e)},1200);return(0,a.jsxs)("div",{className:"panel inner project-entry",children:[(0,a.jsxs)("div",{className:"row project-tags",children:[v&&(0,a.jsx)("span",{className:"chip",title:R("proj.isDefaultWhy"),children:R("proj.isDefault")}),W&&(0,a.jsx)("span",{className:"badge reference",title:R("proj.readOnlyInfo"),children:R("proj.readOnlyBadge")}),i&&(0,a.jsx)("span",{className:"badge ".concat(r?"done":""),title:r?R("proj.isRepo"):o,children:R(r?"proj.otherRepo":"proj.otherNotRepo")}),i&&r&&u&&(0,a.jsxs)("span",{className:"branch-tag",children:[(0,a.jsxs)("span",{className:"badge branch",children:[(0,a.jsx)(d.O,{})," ","HEAD"===u?R("proj.detached"):R("proj.branch",{name:u})]}),(0,a.jsx)(c.q,{label:R("info.about",{name:R("proj.branch",{name:u})}),text:R("proj.branchInfo")})]})]}),i&&!r&&(0,a.jsx)("p",{className:"muted small",children:o||R("proj.notRepoWhy")}),(0,a.jsxs)("div",{className:"field-label check-label project-readonly",children:[(0,a.jsx)("input",{id:"".concat(F,"-readonly"),type:"checkbox",checked:W,onChange:e=>{let l=e.target.checked;T(l),j(l).then(e=>{!1===e&&T(!l)})}}),(0,a.jsx)("label",{htmlFor:"".concat(F,"-readonly"),children:R("proj.readOnly")}),(0,a.jsx)(c.q,{label:R("info.about",{name:R("proj.readOnly")}),text:R("proj.readOnlyInfo")})]}),(0,a.jsxs)("div",{className:"project-fields",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(m,{htmlFor:"".concat(F,"-name"),label:R("proj.entryName"),info:R("proj.nameInfo")}),(0,a.jsx)("input",{id:"".concat(F,"-name"),type:"text",value:M,onChange:e=>{E(e.target.value),null==b||b(e.target.value)},onBlur:()=>{(M!==t||b)&&g(M)},placeholder:i?null!=(l=i.replace(/[\\/]+$/,"").split(/[\\/]/).pop())?l:"":R("proj.namePlaceholder")})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(m,{htmlFor:"".concat(F,"-dir"),label:R("proj.entryDir"),info:R("proj.dirInfo")}),(0,a.jsxs)("div",{className:"input-with-buttons",children:[(0,a.jsx)("input",{id:"".concat(F,"-dir"),type:"text",value:D,onChange:e=>{I(e.target.value),null==y||y(e.target.value)},onBlur:()=>{(D!==i||y)&&k(D)},placeholder:"C:\\Projects\\my-app"}),(0,a.jsx)("button",{onClick:w,disabled:f,children:R("mirror.browse")}),S&&(0,a.jsx)("button",{className:"quiet",onClick:S,disabled:f,children:C})]})]})]}),(0,a.jsxs)("div",{className:"project-level2",children:[(0,a.jsx)(m,{htmlFor:"".concat(F,"-level2"),label:R("proj.level2"),info:R("proj.level2Info",{n:8e3.toLocaleString()})}),(0,a.jsx)("textarea",{id:"".concat(F,"-level2"),className:"prose",rows:4,maxLength:8e3,value:O,onChange:e=>{H.current=!0,L(e.target.value),B(e.target.value)},placeholder:R("proj.level2Placeholder")}),(0,a.jsx)("span",{className:"muted small",children:R("proj.level2Count",{n:O.length.toLocaleString(),max:8e3.toLocaleString()})})]})]})}function N(){let{t:e}=(0,s.kj)(),[l,t]=(0,n.useState)(""),[r,o]=(0,n.useState)(!1),[c,d]=(0,n.useState)(""),[u,m]=(0,n.useState)(""),x=async()=>{o(!0),m(""),d(e("login.waiting"));try{let e=await i.FH.login(l);e.ok?d(e.message):(d(""),m(e.message))}catch(e){d(""),m(e.message)}finally{o(!1)}};return(0,a.jsxs)("section",{className:"panel",id:"login","aria-labelledby":"login-title",children:[(0,a.jsx)("h2",{id:"login-title",children:e("login.title")}),(0,a.jsx)("p",{className:"muted small",children:e("login.intro")}),u&&(0,a.jsx)("div",{className:"err",children:u}),(0,a.jsxs)(h,{id:"login-account",label:e("login.account"),info:e("login.accountWhy"),children:[(0,a.jsx)("input",{id:"login-account",type:"email",value:l,onChange:e=>t(e.target.value),placeholder:"name@company.com",disabled:r}),(0,a.jsx)("button",{className:"primary",onClick:()=>void x(),disabled:r,children:r?e("login.busy"):e("login.button")})]}),c&&(0,a.jsx)("div",{className:"small",role:"status",children:c})]})}function S(e){var l;let{catalogue:t,setCatalogue:r,refreshModels:c,refreshing:d,refreshMsg:u}=e,{t:m}=(0,s.kj)(),x=(0,s.W3)(),[p,j]=(0,n.useState)(""),[f,b]=(0,n.useState)(""),[g,y]=(0,n.useState)(!1),k=null!=(l=null==t?void 0:t.defaultModel)?l:"",w=async e=>{y(!0),j("");try{let l=await i.FH.setDefaultModel(e);t&&r({...t,defaultModel:l.defaultModel}),j(l.defaultModel?m("def.modelSaved",{name:l.defaultModel}):m("def.modelCleared")),b("")}catch(e){b(e.message)}finally{y(!1)}};return(0,a.jsxs)("section",{className:"panel",id:"model","aria-labelledby":"model-title",children:[(0,a.jsx)("h2",{id:"model-title",children:m("def.modelTitle")}),(0,a.jsx)("p",{className:"muted small",children:m("def.modelIntro")}),f&&(0,a.jsx)("div",{className:"err",children:f}),(0,a.jsxs)(h,{id:"default-model",label:m("def.modelField"),info:m("def.modelInfo"),children:[(0,a.jsx)(o.Yb,{id:"default-model",chosen:k,onChange:e=>void w(e),none:m("def.modelNone"),catalogue:t,disabled:g||d}),(0,a.jsx)("button",{className:"quiet",onClick:()=>void w(""),disabled:g||!k,children:m("proj.clear")}),(0,a.jsx)("button",{onClick:()=>void c(),disabled:g||d,children:m("model.refresh")})]}),(0,a.jsx)("p",{className:"muted small field-after",children:(null==t?void 0:t.readAt)?m("model.readAt",{t:x(t.readAt),n:t.options.length}):m("model.neverRead")}),(0,a.jsx)(C,{}),(0,a.jsx)(v,{msg:p||u})]})}function C(){let{t:e}=(0,s.kj)(),[l,t]=(0,n.useState)(null),[r,o]=(0,n.useState)("");(0,n.useEffect)(()=>{i.FH.settings().then(e=>{var l,a,n;let i=null==(l=e.raw.copilot)?void 0:l.manualModel,s=null==(n=e.defaults)||null==(a=n.copilot)?void 0:a.manualModel;t("boolean"==typeof i?i:!1!==s)}).catch(e=>o(e.message))},[]);let d=async e=>{t(e);try{var l;let t=await i.FH.settings();await i.FH.saveSettings({...t.raw,copilot:{...null!=(l=t.raw.copilot)?l:{},manualModel:e}}),o("")}catch(e){o(e.message)}};return(0,a.jsxs)("div",{className:"settings-field",children:[(0,a.jsxs)("div",{className:"field-label check-label",children:[(0,a.jsx)("input",{id:"manual-model",type:"checkbox",checked:!0===l,disabled:null===l,onChange:e=>void d(e.target.checked)}),(0,a.jsx)("label",{htmlFor:"manual-model",children:e("def.manualModel")}),(0,a.jsx)(c.q,{label:e("info.about",{name:e("def.manualModel")}),text:e("def.manualModelWhy")})]}),r&&(0,a.jsx)("div",{className:"err",children:r})]})}function R(e){var l,t;let{catalogue:r,setCatalogue:c,refreshModels:d,refreshing:u,refreshMsg:m}=e,{t:x}=(0,s.kj)(),[p,j]=(0,n.useState)(""),[f,b]=(0,n.useState)(""),[g,y]=(0,n.useState)(!1),k=null!=(l=null==r?void 0:r.defaultReviewModel)?l:"",w=async e=>{y(!0),j("");try{let l=await i.FH.setDefaultReviewModel(e);r&&c({...r,defaultReviewModel:l.defaultReviewModel}),j(l.defaultReviewModel?x("def.reviewSaved",{name:l.defaultReviewModel}):x("def.reviewCleared")),b("")}catch(e){b(e.message)}finally{y(!1)}},N=""!==k&&k===(null!=(t=null==r?void 0:r.defaultModel)?t:"");return(0,a.jsxs)("section",{className:"panel",id:"review","aria-labelledby":"review-title",children:[(0,a.jsx)("h2",{id:"review-title",children:x("def.reviewTitle")}),(0,a.jsx)("p",{className:"muted small",children:x("def.reviewIntro")}),f&&(0,a.jsx)("div",{className:"err",children:f}),(0,a.jsxs)(h,{id:"default-review-model",label:x("def.reviewField"),info:x("def.reviewInfo"),children:[(0,a.jsx)(o.Yb,{id:"default-review-model",chosen:k,onChange:e=>void w(e),none:x("def.reviewNone"),catalogue:r,disabled:g||u}),(0,a.jsx)("button",{className:"quiet",onClick:()=>void w(""),disabled:g||!k,children:x("proj.clear")}),(0,a.jsx)("button",{onClick:()=>void d(),disabled:g||u,children:x("model.refresh")})]}),N&&(0,a.jsx)("p",{className:"why field-after warned-text",children:x("def.reviewSame")}),(0,a.jsx)(v,{msg:p||m})]})}function F(){let{t:e}=(0,s.kj)(),[l,t]=(0,n.useState)(null),r=(0,n.useRef)(null),o=(0,n.useRef)(Promise.resolve()),[d,u]=(0,n.useState)(2),[m,j]=(0,n.useState)(3),[f,b]=(0,n.useState)(2),[g,y]=(0,n.useState)(2),[k,w]=(0,n.useState)(60),[N,S]=(0,n.useState)(240),[C,R]=(0,n.useState)(20),[F,M]=(0,n.useState)(900),[E,D]=(0,n.useState)(!1),[I,O]=(0,n.useState)(60),[L,H]=(0,n.useState)(!1),[W,T]=(0,n.useState)(90),[B,A]=(0,n.useState)("none"),[P,q]=(0,n.useState)("confirm"),[U,_]=(0,n.useState)("ask"),[V,Y]=(0,n.useState)(""),[Z,z]=(0,n.useState)("");(0,n.useEffect)(()=>{i.FH.settings().then(e=>{var l,a,n,i,s,o,c;r.current=e.raw,t(e.raw);let d=null!=(l=e.raw.limits)?l:{};j("number"==typeof d.autoContinue?d.autoContinue:3),u("number"==typeof d.retryBlockedInFreshChat?d.retryBlockedInFreshChat:2),b("number"==typeof d.minApproachesBeforeBlocked?d.minApproachesBeforeBlocked:2),y("number"==typeof d.maxReviewRounds?d.maxReviewRounds:2),w("number"==typeof d.maxIterations?d.maxIterations:60),S("number"==typeof d.maxRunMinutes?d.maxRunMinutes:240),R("number"==typeof d.maxSubtasks?d.maxSubtasks:20);let m=null!=(a=e.raw.pacing)?a:{};D(!0===m.gapEnabled),O("number"==typeof m.gapSec?m.gapSec:60),H(!0===m.gapRandom),T("number"==typeof m.gapMaxSec?m.gapMaxSec:90);let h=null!=(n=e.raw.copilot)?n:{};M("number"==typeof h.replyTimeoutSec?h.replyTimeoutSec:900);let x=null!=(i=e.raw.execution)?i:{};A(null!=(s=x.isolation)?s:"none"),q(null!=(o=x.mode)?o:"confirm"),_(null!=(c=x.networkFetch)?c:"ask")}).catch(e=>z(e.message))},[]);let K=(l,a,n)=>{let s=async()=>{var s;if(!r.current)return;let o=await i.FH.settings().then(e=>e.raw).catch(()=>r.current),c={...o,[l]:{...null!=(s=o[l])?s:{},[a]:n}};Y("");try{await i.FH.saveSettings(c),r.current=c,t(c),Y(e("exec.saved")),z("")}catch(e){z(e.message)}},c=o.current.then(s);return o.current=c.catch(()=>void 0),c},$=x(e=>K("limits","retryBlockedInFreshChat",e)),G=x(e=>K("limits","autoContinue",e)),J=x(e=>K("limits","minApproachesBeforeBlocked",e)),Q=x(e=>K("limits","maxReviewRounds",e)),X=x(e=>K("limits","maxIterations",e)),ee=x(e=>K("limits","maxRunMinutes",e)),el=x(e=>K("limits","maxSubtasks",e)),et=x(e=>K("copilot","replyTimeoutSec",e)),ea=x(e=>K("pacing","gapSec",e)),en=x(e=>K("pacing","gapMaxSec",e)),ei=(e,l)=>K("execution",e,l),es=[{id:"auto-continue",label:e("exec.autoContinue"),info:e("exec.autoContinueWhy"),unit:e("exec.autoContinueUnit"),value:m,min:0,max:20,set:j,later:G},{id:"min-approaches",label:e("exec.minApproaches"),info:e("exec.minApproachesWhy"),unit:e("exec.minApproachesUnit"),value:f,min:2,max:20,set:b,later:J},{id:"max-review-rounds",label:e("exec.maxReviewRounds"),info:e("exec.maxReviewRoundsWhy"),unit:e("exec.maxReviewRoundsUnit"),value:g,min:1,max:6,set:y,later:Q},{id:"retry-blocked",label:e("exec.retryBlocked"),info:e("exec.retryBlockedWhy"),unit:e("exec.retryBlockedTimes"),value:d,min:0,max:5,set:u,later:$},{id:"max-iterations",label:e("exec.maxIterations"),info:e("exec.maxIterationsWhy"),unit:e("exec.maxIterationsUnit"),value:k,min:5,max:200,set:w,later:X},{id:"max-minutes",label:e("exec.maxRunMinutes"),info:e("exec.maxRunMinutesWhy"),unit:e("exec.maxRunMinutesUnit"),value:N,min:10,max:1440,set:S,later:ee},{id:"max-subtasks",label:e("exec.maxSubtasks"),info:e("exec.maxSubtasksWhy"),unit:e("exec.maxSubtasksUnit"),value:C,min:1,max:100,set:R,later:el},{id:"reply-timeout",label:e("exec.replyTimeout"),info:e("exec.replyTimeoutWhy"),unit:e("exec.replyTimeoutUnit"),value:F,min:60,max:10800,set:M,later:et}];return(0,a.jsxs)("section",{className:"panel",id:"execution","aria-labelledby":"execution-title",children:[(0,a.jsx)("h2",{id:"execution-title",children:e("exec.title")}),(0,a.jsx)("p",{className:"muted small",children:e("exec.intro")}),Z&&(0,a.jsx)("div",{className:"err",children:Z}),es.map(e=>(0,a.jsx)(h,{id:e.id,label:e.label,info:e.info,unit:e.unit,children:(0,a.jsx)(p,{id:e.id,value:e.value,min:e.min,max:e.max,onChange:l=>{e.set(l),e.later(l)},disabled:!l})},e.id)),(0,a.jsx)("div",{className:"settings-field",children:(0,a.jsxs)("div",{className:"field-label check-label",children:[(0,a.jsx)("input",{id:"gap-on",type:"checkbox",checked:E,disabled:!l,onChange:e=>{D(e.target.checked),K("pacing","gapEnabled",e.target.checked)}}),(0,a.jsx)("label",{htmlFor:"gap-on",children:e("exec.gap")}),(0,a.jsx)(c.q,{label:e("info.about",{name:e("exec.gap")}),text:e("exec.gapWhy")})]})}),E&&(0,a.jsx)(h,{id:"gap-sec",label:e("exec.gapSec"),info:e("exec.gapSecWhy"),unit:e("exec.gapUnit"),children:(0,a.jsx)(p,{id:"gap-sec",value:I,min:1,max:3600,onChange:e=>{O(e),ea(e)},disabled:!l})}),E&&(0,a.jsx)("div",{className:"settings-field gap-random",children:(0,a.jsxs)("div",{className:"field-label check-label",children:[(0,a.jsx)("input",{id:"gap-random",type:"checkbox",checked:L,disabled:!l,onChange:e=>{H(e.target.checked),K("pacing","gapRandom",e.target.checked),e.target.checked&&W<I&&(T(I),en(I))}}),(0,a.jsx)("label",{htmlFor:"gap-random",children:e("exec.gapRandom")}),(0,a.jsx)(c.q,{label:e("info.about",{name:e("exec.gapRandom")}),text:e("exec.gapRandomWhy")})]})}),E&&L&&(0,a.jsx)(h,{id:"gap-max",label:e("exec.gapMax"),info:e("exec.gapMaxWhy"),unit:e("exec.gapUnit"),children:(0,a.jsx)(p,{id:"gap-max",value:W,min:I,max:3600,onChange:e=>{T(e),en(e)},disabled:!l})}),(0,a.jsx)(h,{id:"isolation",label:e("exec.isolation"),info:e("exec.isolationWhy"),children:(0,a.jsxs)("select",{id:"isolation",value:B,onChange:e=>{let l=e.target.value;A(l),ei("isolation",l)},disabled:!l,children:[(0,a.jsx)("option",{value:"none",children:e("exec.isolationNone")}),(0,a.jsx)("option",{value:"none-accepted",children:e("exec.isolationNoneAccepted")}),(0,a.jsx)("option",{value:"separate-account",children:e("exec.isolationAccount")}),(0,a.jsx)("option",{value:"sandbox",children:e("exec.isolationSandbox")}),(0,a.jsx)("option",{value:"vm",children:e("exec.isolationVm")})]})}),(0,a.jsx)(h,{id:"start-mode",label:e("exec.startMode"),info:e("exec.startModeWhy"),children:(0,a.jsxs)("select",{id:"start-mode",value:P,onChange:e=>{let l=e.target.value;q(l),ei("mode",l)},disabled:!l,children:[(0,a.jsx)("option",{value:"confirm",children:e("exec.startModeAsk")}),(0,a.jsx)("option",{value:"unattended",children:e("exec.startModeAuto")})]})}),(0,a.jsx)(h,{id:"network-fetch",label:e("exec.networkFetch"),info:e("exec.networkFetchWhy"),children:(0,a.jsxs)("select",{id:"network-fetch",value:U,onChange:e=>{let l=e.target.value;_(l),ei("networkFetch",l)},disabled:!l,children:[(0,a.jsx)("option",{value:"ask",children:e("exec.networkFetchAsk")}),(0,a.jsx)("option",{value:"refuse",children:e("exec.networkFetchRefuse")}),(0,a.jsx)("option",{value:"run",children:e("exec.networkFetchRun")})]})}),(0,a.jsx)(v,{msg:V})]})}},4784:(e,l,t)=>{"use strict";t.d(l,{Yb:()=>o,u:()=>r});var a=t(3365),n=t(1521),i=t(5549),s=t(8205);let r="::by-hand::";function o(e){var l,t,o;let{id:c,chosen:d,onChange:u,none:m,byHand:h,catalogue:x,disabled:p=!1,style:j}=e,{t:v}=(0,s.kj)(),f=function(e){let[l,t]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(void 0!==e)return;let l=!0;return i.FH.models().then(e=>{l&&t(e)}).catch(()=>void 0),()=>{l=!1}},[e]),void 0!==e?e:l}(x),b=null!=(l=null==f?void 0:f.options)?l:[],g=e=>e.toLowerCase().replace(/[-‐‑‒–—_]+/g," ").replace(/\s+/g," ").trim(),y=d&&d!==r?b.find(e=>g(e.name)===g(d)):void 0,k=null!=(t=null==y?void 0:y.name)?t:d,w=!!y||d===r&&void 0!==h,N=b.filter(e=>!e.group),S=new Map;for(let e of b)e.group&&S.set(e.group,[...null!=(o=S.get(e.group))?o:[],e]);return(0,a.jsxs)("select",{id:c,value:k,onChange:e=>u(e.target.value),disabled:p,style:{width:"auto",minWidth:280,...j},children:[void 0!==h&&(0,a.jsx)("option",{value:r,children:h}),void 0!==m&&(0,a.jsx)("option",{value:"",children:m}),d&&!w&&(0,a.jsx)("option",{value:d,children:v("model.notInList",{name:d})}),N.map(e=>(0,a.jsxs)("option",{value:e.name,disabled:e.disabled,children:[e.name,e.disabled?" — ".concat(v("model.unavailable")):""]},e.name)),[...S.entries()].map(e=>{let[l,t]=e;return(0,a.jsx)("optgroup",{label:l,children:t.map(e=>(0,a.jsxs)("option",{value:e.name,disabled:e.disabled,children:[e.name,e.disabled?" — ".concat(v("model.unavailable")):""]},e.name))},l)})]})}},4969:(e,l,t)=>{"use strict";t.d(l,{V:()=>i});var a=t(1521);let n='a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';function i(e,l,t){(0,a.useEffect)(()=>{var a,i;if(!l)return;let s=document.activeElement instanceof HTMLElement?document.activeElement:null,r=e.current,o=null!=(i=null!=(a=null==t?void 0:t.current)?a:null==r?void 0:r.querySelector(n))?i:null;null==o||o.focus();let c=e=>{if("Tab"!==e.key||!r)return;let l=Array.from(r.querySelectorAll(n)).filter(e=>null!==e.offsetParent);if(0===l.length)return;let t=l[0],a=l[l.length-1],i=r.contains(document.activeElement);e.shiftKey&&(document.activeElement===t||!i)?(e.preventDefault(),a.focus()):e.shiftKey||document.activeElement!==a&&i||(e.preventDefault(),t.focus())};return document.addEventListener("keydown",c),()=>{document.removeEventListener("keydown",c),s&&document.contains(s)&&s.focus()}},[e,l,t])}},5462:(e,l,t)=>{"use strict";t.d(l,{f:()=>i,q:()=>s});var a=t(3365),n=t(1521);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"below",[l,t]=(0,n.useState)(!1),a=(0,n.useRef)(null),i=(0,n.useRef)(null),s=(0,n.useId)(),[r,o]=(0,n.useState)({visibility:"hidden"}),c=(0,n.useCallback)(()=>t(!1),[]),d=(0,n.useCallback)(()=>t(e=>!e),[]);return(0,n.useLayoutEffect)(()=>{var t;let n,s;if(!l)return void o({visibility:"hidden"});let r=null==(t=a.current)?void 0:t.getBoundingClientRect(),c=i.current;if(!r||!c)return;let d=c.offsetWidth,u=c.offsetHeight;"right"===e?(n=r.right+6,s=Math.min(r.top,window.innerHeight-u-8)):(n=Math.min(r.left,window.innerWidth-d-8),s=r.bottom+6+u>window.innerHeight-8?r.top-6-u:r.bottom+6),o({left:Math.max(8,n),top:Math.max(8,s)})},[l,e]),(0,n.useEffect)(()=>{if(!l)return;let e=e=>{var l,n;let s=e.target;(null==(l=i.current)?void 0:l.contains(s))||(null==(n=a.current)?void 0:n.contains(s))||t(!1)},n=e=>{var l;"Escape"===e.key&&(t(!1),null==(l=a.current)||l.focus())},s=()=>t(!1);return document.addEventListener("pointerdown",e,!0),document.addEventListener("keydown",n),window.addEventListener("resize",s),()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("keydown",n),window.removeEventListener("resize",s)}},[l]),{open:l,setOpen:t,toggle:d,close:c,anchor:a,panel:i,style:r,id:s}}function s(e){let{label:l,text:t}=e,n=i("below");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{ref:n.anchor,type:"button",className:"info-btn","aria-label":l,title:l,"aria-expanded":n.open,"aria-controls":n.open?n.id:void 0,onClick:n.toggle,children:"i"}),n.open&&(0,a.jsxs)("div",{ref:n.panel,id:n.id,role:"dialog","aria-label":l,className:"pop info-pop",style:n.style,children:[(0,a.jsx)("p",{className:"pop-title",children:l}),t.split(/\n\s*\n/).map(e=>(0,a.jsx)("p",{children:e},e))]})]})}}},e=>{e.O(0,[921,347,131,358],()=>e(e.s=1896)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{952:()=>{},4529:(e,t,s)=>{Promise.resolve().then(s.bind(s,1035)),Promise.resolve().then(s.t.bind(s,952,23)),Promise.resolve().then(s.bind(s,8214)),Promise.resolve().then(s.bind(s,7712)),Promise.resolve().then(s.bind(s,8300)),Promise.resolve().then(s.bind(s,8078)),Promise.resolve().then(s.bind(s,8205))},7712:(e,t,s)=>{"use strict";s.d(t,{ScrollJump:()=>a});var l=s(3365),n=s(1521),r=s(8205);function a(){let{t:e}=(0,r.kj)(),[t,s]=(0,n.useState)({long:!1,atTop:!0,atBottom:!1});return((0,n.useEffect)(()=>{let e=()=>{let e=document.documentElement;s({long:e.scrollHeight>2*window.innerHeight,atTop:window.scrollY<200,atBottom:window.innerHeight+window.scrollY>=e.scrollHeight-200})};e(),window.addEventListener("scroll",e,{passive:!0}),window.addEventListener("resize",e);let t=new ResizeObserver(e);return t.observe(document.body),()=>{window.removeEventListener("scroll",e),window.removeEventListener("resize",e),t.disconnect()}},[]),t.long)?(0,l.jsxs)("div",{className:"scroll-jump",children:[!t.atTop&&(0,l.jsx)("button",{type:"button","aria-label":e("scroll.top"),title:e("scroll.top"),onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:"↑"}),!t.atBottom&&(0,l.jsx)("button",{type:"button","aria-label":e("scroll.bottom"),title:e("scroll.bottom"),onClick:()=>window.scrollTo({top:document.documentElement.scrollHeight,behavior:"smooth"}),children:"↓"})]}):null}},8214:(e,t,s)=>{"use strict";s.d(t,{SkipLink:()=>v,s:()=>j});var l=s(3365),n=s(1521),r=s(8197),a=s.n(r),i=s(1702),o=s(5549),c=s(7527),d=s(8205),h=s(6575),u=s(1758);let m={workbench:(0,l.jsx)("path",{d:"M4 5h16v11H9l-5 4zM8 9h8M8 12h5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),defaults:(0,l.jsx)("path",{d:"M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm8.5 4 1.5 1-1.6 2.8-1.8-.4a7 7 0 0 1-1.5 1.5l.4 1.8L14.7 21l-1-1.5a7 7 0 0 1-3.4 0l-1 1.5-2.8-1.6.4-1.8A7 7 0 0 1 5.4 16l-1.8.4L2 13.6 3.5 12.6V11.4L2 10.4l1.6-2.8 1.8.4A7 7 0 0 1 6.9 6.5l-.4-1.8L9.3 3l1 1.5a7 7 0 0 1 3.4 0l1-1.5 2.8 1.6-.4 1.8a7 7 0 0 1 1.5 1.5l1.8-.4L22 10.4l-1.5 1z"}),system:(0,l.jsx)("path",{d:"M4 5h16v10H4zM2 19h20M9 15v4M15 15v4",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"})},f=[{href:"/",label:"nav.workbench",icon:"workbench"},{href:"/defaults",label:"nav.defaults",icon:"defaults"},{href:"/system",label:"nav.system",icon:"system"}];function v(){let{t:e}=(0,d.kj)();return(0,l.jsx)("a",{className:"skip-link",href:"#main",children:e("a11y.skip")})}function j(){let{t:e}=(0,d.kj)(),t=(0,i.usePathname)(),s=function(){let[e,t]=(0,n.useState)(0);return(0,c.z)(()=>o.FH.activity().then(e=>t(e.sessions)).catch(()=>void 0),4e3),e}();return(0,l.jsxs)("nav",{"aria-label":e("nav.label"),children:[f.flatMap(n=>[(0,l.jsxs)(a(),{href:n.href,"aria-current":t===n.href?"page":void 0,children:[(0,l.jsx)("svg",{className:"nav-icon",viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor","aria-hidden":"true",children:m[n.icon]}),(0,l.jsx)("span",{children:e(n.label)}),"/"===n.href&&s>0&&(0,l.jsxs)("span",{className:"live",title:e("nav.liveTitle",{n:s}),children:[(0,l.jsx)("span",{className:"dot","aria-hidden":"true"}),e("nav.live")]})]},n.href),..."/defaults"===n.href?[(0,l.jsx)(u.y,{},"appearance")]:[]]),(0,l.jsx)(h.c,{})]})}},8300:(e,t,s)=>{"use strict";s.d(t,{Shell:()=>p});var l=s(3365),n=s(8197),r=s.n(n),a=s(1702),i=s(8214),o=s(6657),c=s(1521),d=s(5549),h=s(8205),u=s(7527);function m(e){var t,s;let{failure:n,reason:r,onDismiss:a,intro:i,children:o}=e,{t:c}=(0,h.kj)(),u=(0,h.W3)(),m=null!=(s=null!=(t=null==n?void 0:n.message)?t:r)?s:"";return(0,l.jsxs)("div",{className:"notice caution start-failure",role:"alert",style:{overflowWrap:"anywhere"},children:[i&&(0,l.jsx)("p",{className:"small",style:{marginTop:0},children:i}),(0,l.jsx)("strong",{children:c("startfail.title")}),n&&(0,l.jsx)("p",{className:"small",style:{margin:"4px 0"},children:c("startfail.where",{stage:c("startfail.stage.".concat(n.stage))})}),(0,l.jsx)("pre",{className:"sync-cmd small",style:{margin:"6px 0"},children:m}),o,n&&(0,l.jsxs)("p",{className:"muted small",style:{margin:"4px 0"},children:[n.runId?c("startfail.when",{when:u(n.at),run:n.runId}):c("startfail.whenNoRun",{when:u(n.at)}),n.sessions.length>0?" \xb7 ".concat(n.sessions.map(e=>'"'.concat(e,'"')).join(", ")):""]}),(0,l.jsxs)("div",{className:"row",style:{marginTop:6},children:[n&&(0,l.jsx)("a",{className:"button-link",href:d.FH.startFailureUrl(n.id),download:!0,children:c("startfail.download")}),(0,l.jsx)("a",{className:n?"button-link":"button-link plain",href:d.FH.terminalUrl(),download:!0,children:c("startfail.terminal")}),a&&(0,l.jsx)("button",{type:"button",className:"quiet",onClick:a,children:c("startfail.dismiss")})]}),(0,l.jsx)("p",{className:"why",children:c("startfail.downloadWhy")})]})}let f="cop.startFailure.dismissed";function v(){try{var e;let t=JSON.parse(null!=(e=window.localStorage.getItem(f))?e:"[]");return Array.isArray(t)?t.filter(e=>"string"==typeof e):[]}catch(e){return[]}}function j(){let{t:e}=(0,h.kj)(),[t,s]=(0,c.useState)([]),[n,r]=(0,c.useState)([]);(0,u.z)(()=>d.FH.startFailures(!0).then(e=>{s(e),r(v())}).catch(()=>void 0),5e3);let a=t.find(e=>!n.includes(e.id));return a?(0,l.jsx)("div",{style:{marginBottom:12},children:(0,l.jsx)(m,{failure:a,intro:e("at-turn"===a.stage?"startfail.laterSession":"startfail.later"),onDismiss:()=>{let e=[...new Set([...v(),a.id])].slice(-50);try{window.localStorage.setItem(f,JSON.stringify(e))}catch(e){}r(e)}})}):null}function p(e){let{children:t}=e;return"/"===(0,a.usePathname)()?(0,l.jsxs)("div",{className:"wb-root",children:[(0,l.jsx)(o.U,{}),(0,l.jsx)(j,{}),(0,l.jsx)("main",{id:"main",className:"wb-main",children:t})]}):(0,l.jsxs)("div",{className:"wrap",children:[(0,l.jsxs)("header",{className:"top",children:[(0,l.jsx)("h1",{children:(0,l.jsx)(r(),{href:"/",children:"copilot-operator"})}),(0,l.jsx)(i.s,{})]}),(0,l.jsx)(o.U,{}),(0,l.jsx)(j,{}),(0,l.jsx)("main",{id:"main",children:t})]})}}},e=>{e.O(0,[353,134,921,500,347,131,358],()=>e(e.s=4529)),_N_E=e.O()}]);
|