pinglet-cli 0.4.0 → 0.4.1
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/LICENSE +21 -0
- package/dist/adapters/claude.js +10 -1
- package/dist/commands/statusline.js +4 -3
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 mabyko
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/adapters/claude.js
CHANGED
|
@@ -73,6 +73,11 @@ function detectClaude() {
|
|
|
73
73
|
function statusLineCommand() {
|
|
74
74
|
return `node "${(0, config_1.cliPath)()}" statusline`;
|
|
75
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* statusline 이벤트 트리거는 유휴 세션에서 멈추므로(새 메시지가 있어야 재실행),
|
|
78
|
+
* 유휴 pane이 옛 온라인 터미널 수를 계속 표시하지 않게 고정 주기(초)로도 재실행한다.
|
|
79
|
+
*/
|
|
80
|
+
const STATUSLINE_REFRESH_INTERVAL_S = 30;
|
|
76
81
|
/** 예전 버전이 등록한 hook entry인지 식별 (command에 hook-prompt 포함 여부). */
|
|
77
82
|
function isPingletHookEntry(entry) {
|
|
78
83
|
return (entry.hooks?.some((h) => typeof h.command === "string" && h.command.includes("hook-prompt")) ?? false);
|
|
@@ -336,7 +341,11 @@ function installClaudeIntegration(config, options = {}) {
|
|
|
336
341
|
...(existing && !isOurs && { statusLineBackup: existing }),
|
|
337
342
|
};
|
|
338
343
|
(0, config_1.saveConfig)(config);
|
|
339
|
-
settings.statusLine = {
|
|
344
|
+
settings.statusLine = {
|
|
345
|
+
type: "command",
|
|
346
|
+
command: statusLineCommand(),
|
|
347
|
+
refreshInterval: STATUSLINE_REFRESH_INTERVAL_S,
|
|
348
|
+
};
|
|
340
349
|
uninstallPromptHook(settings); // 구버전 hook 방식 흔적 정리
|
|
341
350
|
// /pinglet 인라인 bash가 auto 모드 분류기에 막히지 않도록 allow 규칙 등록.
|
|
342
351
|
// 경로가 바뀐(예: node 버전 업) 옛 규칙은 정리하고 현재 규칙 하나만 둔다.
|
|
@@ -43,10 +43,11 @@ const queue_1 = require("../queue");
|
|
|
43
43
|
const claude_1 = require("../adapters/claude");
|
|
44
44
|
const runtime_1 = require("../runtime");
|
|
45
45
|
/**
|
|
46
|
-
* online 캐시 유효 기간 — refresh(≈5분)
|
|
47
|
-
*
|
|
46
|
+
* online 캐시 유효 기간 — refresh(≈5분) 2주기. 서버의 온라인 판정 창
|
|
47
|
+
* (ONLINE_WINDOW_MS 10분)과 정렬해, 서버가 이미 오프라인으로 세는 시점에
|
|
48
|
+
* 클라이언트가 옛 숫자를 "지금"이라고 보여주지 않게 한다.
|
|
48
49
|
*/
|
|
49
|
-
const ONLINE_STALE_MS =
|
|
50
|
+
const ONLINE_STALE_MS = 10 * 60_000;
|
|
50
51
|
/** 신선한 online 캐시가 있을 때, 나를 제외한 켜진 터미널 수 (없거나 혼자면 null). */
|
|
51
52
|
function onlineOthers(now) {
|
|
52
53
|
const cache = (0, cache_1.loadOnline)();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pinglet-cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Short messages from other developers shown in your Claude Code spinner while the AI thinks — zero tokens, never reads your code. Claude Code / Codex integration",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|