mirror of
https://github.com/anomalyco/opencode.git
synced 2026-03-14 10:44:21 +00:00
Compare commits
4 Commits
v1.2.26
...
copilot-co
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1bde2187c6 | ||
|
|
f5755ffd6b | ||
|
|
d9dca9d1b3 | ||
|
|
f54abe58cf |
@@ -309,6 +309,24 @@ export async function CopilotAuthPlugin(input: PluginInput): Promise<Hooks> {
|
||||
output.headers["anthropic-beta"] = "interleaved-thinking-2025-05-14"
|
||||
}
|
||||
|
||||
const parts = await sdk.session
|
||||
.message({
|
||||
path: {
|
||||
id: incoming.message.sessionID,
|
||||
messageID: incoming.message.id,
|
||||
},
|
||||
query: {
|
||||
directory: input.directory,
|
||||
},
|
||||
throwOnError: true,
|
||||
})
|
||||
.catch(() => undefined)
|
||||
|
||||
if (parts?.data.parts?.some((part) => part.type === "compaction")) {
|
||||
output.headers["x-initiator"] = "agent"
|
||||
return
|
||||
}
|
||||
|
||||
const session = await sdk.session
|
||||
.get({
|
||||
path: {
|
||||
|
||||
@@ -60,7 +60,7 @@ export const dict = {
|
||||
"ui.sessionTurn.status.consideringNextSteps": "النظر في الخطوات التالية",
|
||||
|
||||
"ui.messagePart.questions.dismissed": "تم رفض الأسئلة",
|
||||
"ui.messagePart.compaction": "تم ضغط السجل",
|
||||
"ui.messagePart.compaction": "تم ضغط الجلسة",
|
||||
"ui.messagePart.context.read.one": "{{count}} قراءة",
|
||||
"ui.messagePart.context.read.other": "{{count}} قراءات",
|
||||
"ui.messagePart.context.search.one": "{{count}} بحث",
|
||||
|
||||
@@ -60,7 +60,7 @@ export const dict = {
|
||||
"ui.sessionTurn.status.consideringNextSteps": "Considerando próximos passos",
|
||||
|
||||
"ui.messagePart.questions.dismissed": "Perguntas descartadas",
|
||||
"ui.messagePart.compaction": "Histórico compactado",
|
||||
"ui.messagePart.compaction": "Sessão compactada",
|
||||
"ui.messagePart.context.read.one": "{{count}} leitura",
|
||||
"ui.messagePart.context.read.other": "{{count}} leituras",
|
||||
"ui.messagePart.context.search.one": "{{count}} pesquisa",
|
||||
|
||||
@@ -64,7 +64,7 @@ export const dict = {
|
||||
"ui.sessionTurn.status.consideringNextSteps": "Razmatranje sljedećih koraka",
|
||||
|
||||
"ui.messagePart.questions.dismissed": "Pitanja odbačena",
|
||||
"ui.messagePart.compaction": "Historija sažeta",
|
||||
"ui.messagePart.compaction": "Sesija sažeta",
|
||||
"ui.messagePart.context.read.one": "{{count}} čitanje",
|
||||
"ui.messagePart.context.read.other": "{{count}} čitanja",
|
||||
"ui.messagePart.context.search.one": "{{count}} pretraga",
|
||||
|
||||
@@ -59,7 +59,7 @@ export const dict = {
|
||||
"ui.sessionTurn.status.consideringNextSteps": "Overvejer næste skridt",
|
||||
|
||||
"ui.messagePart.questions.dismissed": "Spørgsmål afvist",
|
||||
"ui.messagePart.compaction": "Historik komprimeret",
|
||||
"ui.messagePart.compaction": "Session komprimeret",
|
||||
"ui.messagePart.context.read.one": "{{count}} læsning",
|
||||
"ui.messagePart.context.read.other": "{{count}} læsninger",
|
||||
"ui.messagePart.context.search.one": "{{count}} søgning",
|
||||
|
||||
@@ -65,7 +65,7 @@ export const dict = {
|
||||
"ui.sessionTurn.status.consideringNextSteps": "Nächste Schritte erwägen",
|
||||
|
||||
"ui.messagePart.questions.dismissed": "Fragen verworfen",
|
||||
"ui.messagePart.compaction": "Verlauf komprimiert",
|
||||
"ui.messagePart.compaction": "Sitzung komprimiert",
|
||||
"ui.messagePart.context.read.one": "{{count}} Lesevorgang",
|
||||
"ui.messagePart.context.read.other": "{{count}} Lesevorgänge",
|
||||
"ui.messagePart.context.search.one": "{{count}} Suche",
|
||||
|
||||
@@ -66,7 +66,7 @@ export const dict: Record<string, string> = {
|
||||
"ui.messagePart.option.typeOwnAnswer": "Type your own answer",
|
||||
"ui.messagePart.review.title": "Review your answers",
|
||||
"ui.messagePart.questions.dismissed": "Questions dismissed",
|
||||
"ui.messagePart.compaction": "History compacted",
|
||||
"ui.messagePart.compaction": "Session compacted",
|
||||
"ui.messagePart.context.read.one": "{{count}} read",
|
||||
"ui.messagePart.context.read.other": "{{count}} reads",
|
||||
"ui.messagePart.context.search.one": "{{count}} search",
|
||||
|
||||
@@ -60,7 +60,7 @@ export const dict = {
|
||||
"ui.sessionTurn.status.consideringNextSteps": "Considerando siguientes pasos",
|
||||
|
||||
"ui.messagePart.questions.dismissed": "Preguntas descartadas",
|
||||
"ui.messagePart.compaction": "Historial compactado",
|
||||
"ui.messagePart.compaction": "Sesión compactada",
|
||||
"ui.messagePart.context.read.one": "{{count}} lectura",
|
||||
"ui.messagePart.context.read.other": "{{count}} lecturas",
|
||||
"ui.messagePart.context.search.one": "{{count}} búsqueda",
|
||||
|
||||
@@ -60,7 +60,7 @@ export const dict = {
|
||||
"ui.sessionTurn.status.consideringNextSteps": "Examen des prochaines étapes",
|
||||
|
||||
"ui.messagePart.questions.dismissed": "Questions ignorées",
|
||||
"ui.messagePart.compaction": "Historique compacté",
|
||||
"ui.messagePart.compaction": "Session compactée",
|
||||
"ui.messagePart.context.read.one": "{{count}} lecture",
|
||||
"ui.messagePart.context.read.other": "{{count}} lectures",
|
||||
"ui.messagePart.context.search.one": "{{count}} recherche",
|
||||
|
||||
@@ -59,7 +59,7 @@ export const dict = {
|
||||
"ui.sessionTurn.status.consideringNextSteps": "次のステップを検討中",
|
||||
|
||||
"ui.messagePart.questions.dismissed": "質問をスキップしました",
|
||||
"ui.messagePart.compaction": "履歴を圧縮しました",
|
||||
"ui.messagePart.compaction": "セッションを圧縮しました",
|
||||
"ui.messagePart.context.read.one": "{{count}} 件の読み取り",
|
||||
"ui.messagePart.context.read.other": "{{count}} 件の読み取り",
|
||||
"ui.messagePart.context.search.one": "{{count}} 件の検索",
|
||||
|
||||
@@ -60,7 +60,7 @@ export const dict = {
|
||||
"ui.sessionTurn.status.consideringNextSteps": "다음 단계 고려 중",
|
||||
|
||||
"ui.messagePart.questions.dismissed": "질문 무시됨",
|
||||
"ui.messagePart.compaction": "기록이 압축됨",
|
||||
"ui.messagePart.compaction": "세션 압축됨",
|
||||
"ui.messagePart.context.read.one": "{{count}}개 읽음",
|
||||
"ui.messagePart.context.read.other": "{{count}}개 읽음",
|
||||
"ui.messagePart.context.search.one": "{{count}}개 검색",
|
||||
|
||||
@@ -63,7 +63,7 @@ export const dict: Record<Keys, string> = {
|
||||
"ui.sessionTurn.status.consideringNextSteps": "Vurderer neste trinn",
|
||||
|
||||
"ui.messagePart.questions.dismissed": "Spørsmål avvist",
|
||||
"ui.messagePart.compaction": "Historikk komprimert",
|
||||
"ui.messagePart.compaction": "Økt komprimert",
|
||||
"ui.messagePart.context.read.one": "{{count}} lest",
|
||||
"ui.messagePart.context.read.other": "{{count}} lest",
|
||||
"ui.messagePart.context.search.one": "{{count}} søk",
|
||||
|
||||
@@ -59,7 +59,7 @@ export const dict = {
|
||||
"ui.sessionTurn.status.consideringNextSteps": "Rozważanie kolejnych kroków",
|
||||
|
||||
"ui.messagePart.questions.dismissed": "Pytania odrzucone",
|
||||
"ui.messagePart.compaction": "Historia skompaktowana",
|
||||
"ui.messagePart.compaction": "Sesja skompaktowana",
|
||||
"ui.messagePart.context.read.one": "{{count}} odczyt",
|
||||
"ui.messagePart.context.read.other": "{{count}} odczyty",
|
||||
"ui.messagePart.context.search.one": "{{count}} wyszukiwanie",
|
||||
|
||||
@@ -59,7 +59,7 @@ export const dict = {
|
||||
"ui.sessionTurn.status.consideringNextSteps": "Рассмотрение следующих шагов",
|
||||
|
||||
"ui.messagePart.questions.dismissed": "Вопросы отклонены",
|
||||
"ui.messagePart.compaction": "История сжата",
|
||||
"ui.messagePart.compaction": "Сессия сжата",
|
||||
"ui.messagePart.context.read.one": "{{count}} чтение",
|
||||
"ui.messagePart.context.read.other": "{{count}} чтений",
|
||||
"ui.messagePart.context.search.one": "{{count}} поиск",
|
||||
|
||||
@@ -61,7 +61,7 @@ export const dict = {
|
||||
"ui.sessionTurn.status.consideringNextSteps": "พิจารณาขั้นตอนถัดไป",
|
||||
|
||||
"ui.messagePart.questions.dismissed": "ละทิ้งคำถามแล้ว",
|
||||
"ui.messagePart.compaction": "ประวัติถูกบีบอัด",
|
||||
"ui.messagePart.compaction": "บีบอัดเซสชันแล้ว",
|
||||
"ui.messagePart.context.read.one": "อ่าน {{count}} รายการ",
|
||||
"ui.messagePart.context.read.other": "อ่าน {{count}} รายการ",
|
||||
"ui.messagePart.context.search.one": "ค้นหา {{count}} รายการ",
|
||||
|
||||
@@ -66,7 +66,7 @@ export const dict = {
|
||||
"ui.sessionTurn.status.consideringNextSteps": "Sonraki adımlar değerlendiriliyor",
|
||||
|
||||
"ui.messagePart.questions.dismissed": "Sorular reddedildi",
|
||||
"ui.messagePart.compaction": "Geçmiş sıkıştırıldı",
|
||||
"ui.messagePart.compaction": "Oturum sıkıştırıldı",
|
||||
"ui.messagePart.context.read.one": "{{count}} okuma",
|
||||
"ui.messagePart.context.read.other": "{{count}} okuma",
|
||||
"ui.messagePart.context.search.one": "{{count}} arama",
|
||||
|
||||
@@ -64,7 +64,7 @@ export const dict = {
|
||||
"ui.sessionTurn.status.consideringNextSteps": "正在考虑下一步",
|
||||
|
||||
"ui.messagePart.questions.dismissed": "问题已忽略",
|
||||
"ui.messagePart.compaction": "历史已压缩",
|
||||
"ui.messagePart.compaction": "会话已压缩",
|
||||
"ui.messagePart.context.read.one": "{{count}} 次读取",
|
||||
"ui.messagePart.context.read.other": "{{count}} 次读取",
|
||||
"ui.messagePart.context.search.one": "{{count}} 次搜索",
|
||||
|
||||
@@ -64,7 +64,7 @@ export const dict = {
|
||||
"ui.sessionTurn.status.consideringNextSteps": "正在考慮下一步",
|
||||
|
||||
"ui.messagePart.questions.dismissed": "問題已略過",
|
||||
"ui.messagePart.compaction": "歷史已壓縮",
|
||||
"ui.messagePart.compaction": "工作階段已壓縮",
|
||||
"ui.messagePart.context.read.one": "{{count}} 次讀取",
|
||||
"ui.messagePart.context.read.other": "{{count}} 次讀取",
|
||||
"ui.messagePart.context.search.one": "{{count}} 次搜尋",
|
||||
|
||||
Reference in New Issue
Block a user