release: ship v1.5.0 with on-device writing suggestions
Some checks failed
deploy-site / deploy (push) Failing after 33s
portable-unsigned / portable-windows (push) Failing after 4m7s
release / release-windows (push) Failing after 3m16s

Adds next-sentence suggestions while typing, weekly input insights and a
personal phrase memory to the desktop app, and fixes custom instructions so
they process the text instead of inserting the instruction's own wording.
Local model requests are now bounded and individually cancellable.

Bumps the product version to 1.5.0 (Android/iOS build 1050000), refreshes the
landing and web download links, and records the new INPUT feature rows and the
open verification gaps in the infrastructure map.
This commit is contained in:
Yun Chan 2026-09-23 16:04:27 +09:00
parent 99f06c253c
commit 5c11ee2fde
104 changed files with 14410 additions and 174 deletions

View file

@ -5,6 +5,7 @@ import { BrowserWindow, shell, screen, ipcMain, Menu, clipboard } from 'electron
import { join } from 'path'
import { is } from '@electron-toolkit/utils'
import { WINDOW_SIZE } from '@d3ro/core/constants'
import { anchorFloatingPanel } from '@d3ro/core/input-intelligence'
import { IPC_CHANNELS } from '@d3ro/core/ipc-channels'
import { getLogger } from '../services/LoggerService'
import { getIsQuitting } from '../lifecycle'
@ -59,6 +60,19 @@ function getPopupI18nStrings(): Record<string, string> {
errorDefault: t('popup.error.default'),
// caption-overlay
captionLoading: t('popup.caption.loading'),
// suggestion-overlay
suggestionHintAccept: t('popup.suggestion.hintAccept'),
suggestionHintNext: t('popup.suggestion.hintNext'),
suggestionHintDismiss: t('popup.suggestion.hintDismiss'),
suggestionWarming: t('popup.suggestion.warming'),
suggestionHintGenerating: t('popup.suggestion.hintGenerating'),
suggestionLoading: t('popup.suggestion.loading'),
suggestionSourceModel: t('popup.suggestion.sourceModel'),
suggestionSourceMemory: t('popup.suggestion.sourceMemory'),
suggestionContinuations: t('popup.suggestion.continuations'),
suggestionRelated: t('popup.suggestion.related'),
suggestionPhrases: t('popup.suggestion.phrases'),
suggestionAppPhrases: t('popup.suggestion.appPhrases'),
}
}
@ -163,6 +177,7 @@ let resultPopupWindow: BrowserWindow | null = null
let historyPopupWindow: BrowserWindow | null = null
let commandPopupWindow: BrowserWindow | null = null
let captionOverlayWindow: BrowserWindow | null = null
let suggestionOverlayWindow: BrowserWindow | null = null
// ── 메인 윈도우 ───────────────────────────────────────
@ -706,7 +721,177 @@ export function sendToCaptionOverlay(channel: string, data: unknown): void {
}
}
// ── 프리로딩 ──────────────────────────────────────────
// ── SuggestionOverlay 업 (입력 인텔리전스) ──────────
/**
* 다음 문장 제안 ghost text 오버레이.
*
* IME 후보창과 같은 관례를 따른다: 케어/포커스 요소 바로 아래에 붙고,
* 포커스를 막지 않으며(focusable:false) 기본은 클릭 통과다.
* (KeyType.Windows 의 WS_EX_TRANSPARENT|WS_EX_NOACTIVATE 오버레이와 동일한 전략)
*/
const SUGGESTION_OVERLAY_WIDTH = 460
/** 후보 5개 + 스크롤을 담을 높이 (목록은 내부 스크롤) */
const SUGGESTION_OVERLAY_HEIGHT = 258
function applySuggestionOverlayMouseMode(win: BrowserWindow): void {
const interactive = configGet('suggestionOverlayInteractive') !== false
try {
if (interactive) {
// 클릭을 받아 수락할 수 있게 한다. focusable:false 라 대상 앱 포커스는 유지된다.
win.setIgnoreMouseEvents(false)
} else {
win.setIgnoreMouseEvents(true, { forward: true })
}
} catch (err) {
logger.warn(
`SuggestionOverlay 마우스 모드 적용 실패: ${err instanceof Error ? err.message : String(err)}`
)
}
}
function createSuggestionOverlayWindow(): BrowserWindow {
const win = new BrowserWindow({
width: SUGGESTION_OVERLAY_WIDTH,
height: SUGGESTION_OVERLAY_HEIGHT,
show: false,
frame: false,
transparent: true,
resizable: false,
alwaysOnTop: true,
skipTaskbar: true,
focusable: false,
webPreferences: {
preload: join(__dirname, '../preload/popup.js'),
sandbox: false,
contextIsolation: true,
nodeIntegration: false,
backgroundThrottling: false
}
})
applySuggestionOverlayMouseMode(win)
if (is.dev && process.env['ELECTRON_RENDERER_URL']) {
win.loadURL(`${process.env['ELECTRON_RENDERER_URL']}/popups/suggestion-overlay/index.html`)
} else {
win.loadFile(join(__dirname, '../renderer/popups/suggestion-overlay/index.html'))
}
attachPopupLifecycle(win, 'suggestion-overlay')
win.on('closed', () => {
suggestionOverlayWindow = null
})
return win
}
export function getSuggestionOverlayWindow(): BrowserWindow {
if (!suggestionOverlayWindow || suggestionOverlayWindow.isDestroyed()) {
suggestionOverlayWindow = createSuggestionOverlayWindow()
logger.info('SuggestionOverlay window created')
}
return suggestionOverlayWindow
}
/** 제안 오버레이 표시 — 커(케어 → 요소 → 커서) 기준 배치. */
export function showSuggestionOverlay(payload: {
candidates: Array<{ text: string; rank: number }>
activeIndex: number
/** 후보 도착 전(생성 중) — 팝업이 로딩 행을 보여준다 */
generating?: boolean
/** 모델 적재 중 — 팝업이 "준비 중" 을 보여준다 */
warmingUp?: boolean
/** 스트리밍 중 부분 텍스트 */
partialText?: string | null
provenance?: {
mode: 'local-model' | 'local-memory'
continuationCount: number
relatedCount: number
phraseCount: number
appPhraseCount: number
} | null
anchor: { x: number; y: number; width: number; height: number } | null
appName: string | null
}): void {
const win = getSuggestionOverlayWindow()
const cursor = screen.getCursorScreenPoint()
const anchorPoint = payload.anchor
? { x: payload.anchor.x, y: payload.anchor.y + payload.anchor.height }
: cursor
const display = screen.getDisplayNearestPoint(anchorPoint)
const position = anchorFloatingPanel(
payload.anchor,
cursor,
{ width: SUGGESTION_OVERLAY_WIDTH, height: SUGGESTION_OVERLAY_HEIGHT },
display.workArea
)
win.setBounds({
x: position.x,
y: position.y,
width: SUGGESTION_OVERLAY_WIDTH,
height: SUGGESTION_OVERLAY_HEIGHT
})
sendToPopupWindow(win, IPC_CHANNELS.POPUP_SUGGESTION.SHOW, {
candidates: payload.candidates,
activeIndex: payload.activeIndex,
generating: payload.generating === true,
warmingUp: payload.warmingUp === true,
partialText: payload.partialText ?? null,
appName: payload.appName,
provenance: payload.provenance ?? null,
_i18n: getPopupI18nStrings()
})
presentPopup(win, 'screen-saver')
}
export function updateSuggestionOverlay(payload: {
candidates: Array<{ text: string; rank: number }>
activeIndex: number
generating?: boolean
warmingUp?: boolean
partialText?: string | null
provenance?: {
mode: 'local-model' | 'local-memory'
continuationCount: number
relatedCount: number
phraseCount: number
appPhraseCount: number
} | null
}): void {
if (suggestionOverlayWindow && !suggestionOverlayWindow.isDestroyed()) {
sendToPopupWindow(suggestionOverlayWindow, IPC_CHANNELS.POPUP_SUGGESTION.UPDATE, payload)
}
}
export function hideSuggestionOverlay(): void {
if (suggestionOverlayWindow && !suggestionOverlayWindow.isDestroyed()) {
sendToPopupWindow(suggestionOverlayWindow, IPC_CHANNELS.POPUP_SUGGESTION.HIDE, {})
suggestionOverlayWindow.hide()
}
}
export function isSuggestionOverlayVisible(): boolean {
return !!(
suggestionOverlayWindow &&
!suggestionOverlayWindow.isDestroyed() &&
suggestionOverlayWindow.isVisible()
)
}
/** 설정(클릭 허용) 변경 시 즉시 반영. */
export function applySuggestionOverlayConfig(): void {
if (suggestionOverlayWindow && !suggestionOverlayWindow.isDestroyed()) {
applySuggestionOverlayMouseMode(suggestionOverlayWindow)
}
}
// ─ 프리로딩 ──────────────────────────────────────────
export function preloadPopupWindows(): void {
getRecordingTipWindow()
@ -716,7 +901,7 @@ export function preloadPopupWindows(): void {
logger.info('Popup windows preloaded')
}
// ── 테마 재주입 (설정에서 테마 변경 시 호출) ──────────
// ── 테마 재주입 (설정에서 테마 변경 시 호출) ───────────
/**
* 현재 살아있는 팝업 윈도우에 테마 CSS를 재주입.
@ -729,6 +914,7 @@ export function reapplyThemeToAllPopups(): void {
historyPopupWindow,
commandPopupWindow,
captionOverlayWindow,
suggestionOverlayWindow,
]
for (const win of popupWindows) {
if (win && !win.isDestroyed()) {