release: ship v1.5.0 with on-device writing suggestions
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:
parent
99f06c253c
commit
5c11ee2fde
104 changed files with 14410 additions and 174 deletions
|
|
@ -246,6 +246,99 @@ function applySchema(s: Database.Database): void {
|
|||
CREATE INDEX IF NOT EXISTS idx_meeting_documents_session_id ON meeting_documents(session_id);
|
||||
`)
|
||||
|
||||
// 입력 인텔리전스: 텔레메트리 집계 / 학습 문장 / 개인 문구 / 제안 이력
|
||||
s.exec(`
|
||||
CREATE TABLE IF NOT EXISTS input_activity (
|
||||
id TEXT PRIMARY KEY,
|
||||
date TEXT NOT NULL,
|
||||
hour INTEGER NOT NULL,
|
||||
app_name TEXT NOT NULL DEFAULT '',
|
||||
keystrokes INTEGER NOT NULL DEFAULT 0,
|
||||
shortcuts INTEGER NOT NULL DEFAULT 0,
|
||||
backspaces INTEGER NOT NULL DEFAULT 0,
|
||||
clicks INTEGER NOT NULL DEFAULT 0,
|
||||
double_clicks INTEGER NOT NULL DEFAULT 0,
|
||||
scroll_ticks INTEGER NOT NULL DEFAULT 0,
|
||||
mouse_distance_px INTEGER NOT NULL DEFAULT 0,
|
||||
chars INTEGER NOT NULL DEFAULT 0,
|
||||
words INTEGER NOT NULL DEFAULT 0,
|
||||
sentences INTEGER NOT NULL DEFAULT 0,
|
||||
active_ms INTEGER NOT NULL DEFAULT 0,
|
||||
updated_at INTEGER NOT NULL
|
||||
);
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS idx_input_activity_bucket
|
||||
ON input_activity(date, hour, app_name);
|
||||
CREATE INDEX IF NOT EXISTS idx_input_activity_date ON input_activity(date);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS typing_samples (
|
||||
id TEXT PRIMARY KEY,
|
||||
text TEXT NOT NULL,
|
||||
word_count INTEGER NOT NULL DEFAULT 0,
|
||||
char_count INTEGER NOT NULL DEFAULT 0,
|
||||
app_name TEXT,
|
||||
window_title TEXT,
|
||||
source TEXT NOT NULL DEFAULT 'typed',
|
||||
created_at INTEGER NOT NULL
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS idx_typing_samples_created_at ON typing_samples(created_at DESC);
|
||||
CREATE INDEX IF NOT EXISTS idx_typing_samples_source ON typing_samples(source);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS personal_phrases (
|
||||
id TEXT PRIMARY KEY,
|
||||
phrase TEXT NOT NULL,
|
||||
count INTEGER NOT NULL DEFAULT 1,
|
||||
source TEXT NOT NULL DEFAULT 'typed',
|
||||
last_used_at INTEGER,
|
||||
created_at INTEGER NOT NULL
|
||||
);
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS idx_personal_phrases_phrase ON personal_phrases(phrase);
|
||||
CREATE INDEX IF NOT EXISTS idx_personal_phrases_count ON personal_phrases(count DESC);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS suggestions (
|
||||
id TEXT PRIMARY KEY,
|
||||
app_name TEXT,
|
||||
prefix_text TEXT NOT NULL DEFAULT '',
|
||||
suggestion_text TEXT NOT NULL,
|
||||
candidate_count INTEGER NOT NULL DEFAULT 1,
|
||||
model TEXT,
|
||||
latency_ms INTEGER,
|
||||
accepted INTEGER NOT NULL DEFAULT 0,
|
||||
created_at INTEGER NOT NULL
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS idx_suggestions_created_at ON suggestions(created_at DESC);
|
||||
CREATE INDEX IF NOT EXISTS idx_suggestions_accepted ON suggestions(accepted);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS phrase_edges (
|
||||
id TEXT PRIMARY KEY,
|
||||
from_phrase TEXT NOT NULL,
|
||||
to_phrase TEXT NOT NULL,
|
||||
kind TEXT NOT NULL DEFAULT 'follows',
|
||||
weight INTEGER NOT NULL DEFAULT 1,
|
||||
updated_at INTEGER NOT NULL
|
||||
);
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS idx_phrase_edges_unique
|
||||
ON phrase_edges(from_phrase, to_phrase, kind);
|
||||
CREATE INDEX IF NOT EXISTS idx_phrase_edges_from ON phrase_edges(from_phrase);
|
||||
CREATE INDEX IF NOT EXISTS idx_phrase_edges_weight ON phrase_edges(weight DESC);
|
||||
`)
|
||||
|
||||
// 개인 그래프: personal_phrases 에 terms/app_name 컬럼 (기존 DB 마이그레이션)
|
||||
try {
|
||||
const phraseCols = s.pragma('table_info(personal_phrases)') as Array<{ name: string }>
|
||||
if (!phraseCols.some((c) => c.name === 'terms')) {
|
||||
s.exec('ALTER TABLE personal_phrases ADD COLUMN terms TEXT')
|
||||
logger.info('Migrated: added terms column to personal_phrases')
|
||||
}
|
||||
if (!phraseCols.some((c) => c.name === 'app_name')) {
|
||||
s.exec('ALTER TABLE personal_phrases ADD COLUMN app_name TEXT')
|
||||
logger.info('Migrated: added app_name column to personal_phrases')
|
||||
}
|
||||
} catch (err) {
|
||||
logger.warn(
|
||||
`personal_phrases graph migration failed: ${err instanceof Error ? err.message : String(err)}`
|
||||
)
|
||||
}
|
||||
|
||||
// Phase 14.5: meeting_sessions에 edited_transcript 컬럼
|
||||
try {
|
||||
const msCols = s.pragma('table_info(meeting_sessions)') as Array<{ name: string }>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue