Skip to content

Commit 20cea6a

Browse files
authored
Merge pull request #64 from nkmr-jp/develop
Release: merge develop to main
2 parents c3082cb + 379cd34 commit 20cea6a

File tree

6 files changed

+20
-62
lines changed

6 files changed

+20
-62
lines changed

.releaserc.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,20 @@
77
}
88
],
99
"plugins": [
10-
"@semantic-release/commit-analyzer",
10+
[
11+
"@semantic-release/commit-analyzer",
12+
{
13+
"preset": "angular",
14+
"releaseRules": [
15+
{"type": "fix", "release": "patch"},
16+
{"type": "style", "release": "patch"},
17+
{"type": "refactor", "release": "patch"},
18+
{"type": "perf", "release": "patch"},
19+
{"type": "test", "release": "patch"},
20+
{"type": "chore", "release": "patch"}
21+
]
22+
}
23+
],
1124
"@semantic-release/release-notes-generator",
1225
"@semantic-release/changelog",
1326
[

README.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
1-
<!-- Keep these links. Translations will automatically update with the README. -->
2-
English |
3-
[日本語](README_ja.md) |
4-
[Deutsch](https://readme-i18n.com/nkmr-jp/prompt-line?lang=de) |
5-
[Español](https://readme-i18n.com/nkmr-jp/prompt-line?lang=es) |
6-
[français](https://readme-i18n.com/nkmr-jp/prompt-line?lang=fr) |
7-
[한국어](https://readme-i18n.com/nkmr-jp/prompt-line?lang=ko) |
8-
[Português](https://readme-i18n.com/nkmr-jp/prompt-line?lang=pt) |
9-
[Русский](https://readme-i18n.com/nkmr-jp/prompt-line?lang=ru) |
10-
[中文](https://readme-i18n.com/nkmr-jp/prompt-line?lang=zh)
11-
121
# 🧑‍💻 Prompt Line
132
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/nkmr-jp/prompt-line)
143

15-
macOS floating text input tool that enables quick text entry across any application.
4+
<!-- Keep these links. Translations will automatically update with the README. -->
5+
English |
6+
[日本語](README_ja.md)
167

178
## Overview
189

README_ja.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
<!-- Keep these links. Translations will automatically update with the README. -->
2-
[English](README.md) |
3-
日本語
4-
51
# 🧑‍💻 Prompt Line
62
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/nkmr-jp/prompt-line)
73

8-
macOS用フローティングテキスト入力ツール。あらゆるアプリケーションで素早くテキスト入力が可能です。
4+
[English](README.md) |
5+
日本語
96

107
## 概要
118

src/handlers/CLAUDE.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,13 @@ import {
5656
- **`remove-history-item`**: Removes specific item with ID format validation
5757
- Regex validation: `/^[a-z0-9]+$/` (coupled with utils.generateId())
5858
- **`search-history`**: Full-text search with configurable result limits
59-
- **`get-history-stats`**: Returns HistoryStats object with metadata
6059

6160
### Draft Management
6261
- **`save-draft`**: Draft persistence with debouncing control
6362
- Supports immediate mode for explicit saves
6463
- Uses DraftManager's debounced or immediate save methods
6564
- **`clear-draft`**: Explicit draft removal
6665
- **`get-draft`**: Current draft content retrieval
67-
- **`get-draft-stats`**: Draft metadata and statistics
6866

6967
### Window Management
7068
- **`show-window`**: Window display with optional WindowData context

src/main.ts

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import DraftManager from './managers/draft-manager';
2323
import SettingsManager from './managers/settings-manager';
2424
import IPCHandlers from './handlers/ipc-handlers';
2525
import { logger, ensureDir } from './utils/utils';
26-
import type { AppStats, HistoryStats, WindowData, DraftStats } from './types';
26+
import type { WindowData } from './types';
2727

2828
class PromptLineApp {
2929
private windowManager: WindowManager | null = null;
@@ -318,31 +318,6 @@ class PromptLineApp {
318318
}
319319
}
320320

321-
getAppStats(): AppStats {
322-
const defaultDraftStats: DraftStats = {
323-
hasData: false,
324-
length: 0,
325-
lastSaved: null,
326-
autoSaveEnabled: false
327-
};
328-
329-
const draftStats = this.draftManager ? this.draftManager.getDraftStats() : defaultDraftStats;
330-
331-
return {
332-
isInitialized: this.isInitialized,
333-
historyStats: this.historyManager ? this.historyManager.getHistoryStats() : {} as HistoryStats,
334-
draftStats: {
335-
hasData: 'hasContent' in draftStats ? draftStats.hasContent || false : false,
336-
length: draftStats.length || 0,
337-
lastSaved: null,
338-
autoSaveEnabled: false
339-
},
340-
windowVisible: this.windowManager ? this.windowManager.isVisible() : false,
341-
platform: process.platform,
342-
version: config.app.version
343-
};
344-
}
345-
346321
private async cleanup(): Promise<void> {
347322
try {
348323
logger.info('Cleaning up application resources...');

src/types/index.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,6 @@ export interface HistoryStats {
4646
newestTimestamp: number | null;
4747
}
4848

49-
export interface DraftStats {
50-
hasData: boolean;
51-
length: number;
52-
lastSaved: number | null;
53-
autoSaveEnabled: boolean;
54-
}
55-
56-
export interface AppStats {
57-
isInitialized: boolean;
58-
historyStats: HistoryStats;
59-
draftStats: DraftStats;
60-
windowVisible: boolean;
61-
platform: string;
62-
version: string;
63-
}
64-
6549
export interface PlatformConfig {
6650
isMac: boolean;
6751
isWindows: boolean;

0 commit comments

Comments
 (0)