thuthi-plugin 0.0.0-stage → 0.1.0
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/.claude-plugin/marketplace.json +55 -0
- package/README.md +13 -2
- package/bin/parallel-browser.js +109 -0
- package/extension/background.js +1329 -0
- package/extension/config.json +1 -0
- package/extension/guard.js +44 -0
- package/extension/manifest.json +10 -0
- package/extension/overlay.js +104 -0
- package/extension/popup.html +34 -0
- package/extension/popup.js +39 -0
- package/extension-reloader/manifest.json +13 -0
- package/extension-reloader/sw.js +17 -0
- package/package.json +13 -4
- package/plugins/thuthi/.claude-plugin/plugin.json +8 -0
- package/plugins/thuthi/context.md +3 -0
- package/plugins/thuthi/hooks/hooks.json +15 -0
- package/plugins/thuthi/skills/setup/SKILL.md +55 -0
- package/plugins/thuthi/skills/setup/scripts/doctor.py +249 -0
- package/plugins/thuthi/skills/setup/scripts/selftest.py +188 -0
- package/plugins/thuthi/tools/claude-switch/claude_switch.py +8 -0
- package/plugins/thuthi/tools/legacy_launcher.py +65 -0
- package/plugins/thuthi/tools/statusline/statusline.py +8 -0
- package/plugins/thuthi-accounts/.claude-plugin/plugin.json +9 -0
- package/plugins/thuthi-accounts/bin/claude-switch +5 -0
- package/plugins/thuthi-accounts/bin/claude-switch.cmd +4 -0
- package/plugins/thuthi-accounts/hooks/hooks.json +15 -0
- package/plugins/thuthi-accounts/lib/tls.py +68 -0
- package/plugins/thuthi-accounts/lib/usage_store.py +150 -0
- package/plugins/thuthi-accounts/setup_check.py +21 -0
- package/plugins/thuthi-accounts/skills/claude-switch/SKILL.md +48 -0
- package/plugins/thuthi-accounts/tools/claude-switch/claude-switch-tui.py +397 -0
- package/plugins/thuthi-accounts/tools/claude-switch/claude_switch.py +1204 -0
- package/plugins/thuthi-accounts/tools/claude-switch/credstore.py +417 -0
- package/plugins/thuthi-accounts/tools/claude-switch/install.py +301 -0
- package/plugins/thuthi-accounts/tools/claude-switch/tests/selftest.py +491 -0
- package/plugins/thuthi-accounts/tools/statusline/statusline.py +212 -0
- package/plugins/thuthi-agenda-picker/.claude-plugin/plugin.json +9 -0
- package/plugins/thuthi-agenda-picker/context.md +3 -0
- package/plugins/thuthi-agenda-picker/hooks/hooks.json +15 -0
- package/plugins/thuthi-agenda-picker/lib/pbpage.py +397 -0
- package/plugins/thuthi-agenda-picker/setup_check.py +18 -0
- package/plugins/thuthi-agenda-picker/skills/agenda-picker/SKILL.md +280 -0
- package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/design-rules.md +110 -0
- package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/diagram/base.css +33 -0
- package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/example/agenda.json +146 -0
- package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/example/shots/A-dark.svg +5 -0
- package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/example/shots/A-light.svg +5 -0
- package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/example/shots/B-dark.svg +5 -0
- package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/example/shots/B-light.svg +5 -0
- package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/example/shots/C-dark.svg +5 -0
- package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/example/shots/C-light.svg +5 -0
- package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/example/shots/base.css +33 -0
- package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/example/shots/name-B.html +15 -0
- package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/example/shots/now-dark.svg +5 -0
- package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/example/shots/now-light.svg +5 -0
- package/plugins/thuthi-agenda-picker/skills/agenda-picker/scripts/picker.py +1286 -0
- package/plugins/thuthi-agenda-picker/skills/agenda-picker/scripts/selftest.py +771 -0
- package/plugins/thuthi-agenda-picker/skills/agenda-picker/scripts/shot.py +117 -0
- package/plugins/thuthi-agenda-picker/skills/agenda-picker/scripts/template.html +1029 -0
- package/plugins/thuthi-arch-diagram/.claude-plugin/plugin.json +9 -0
- package/plugins/thuthi-arch-diagram/lib/pbpage.py +397 -0
- package/plugins/thuthi-arch-diagram/lib/tls.py +68 -0
- package/plugins/thuthi-arch-diagram/setup_check.py +10 -0
- package/plugins/thuthi-arch-diagram/skills/arch-diagram/SKILL.md +125 -0
- package/plugins/thuthi-arch-diagram/skills/arch-diagram/references/design-rules.md +110 -0
- package/plugins/thuthi-arch-diagram/skills/arch-diagram/references/example-shop.py +167 -0
- package/plugins/thuthi-arch-diagram/skills/arch-diagram/scripts/check.py +194 -0
- package/plugins/thuthi-arch-diagram/skills/arch-diagram/scripts/diagramkit.py +682 -0
- package/plugins/thuthi-arch-diagram/skills/arch-diagram/scripts/interact_test.py +115 -0
- package/plugins/thuthi-arch-diagram/skills/arch-diagram/scripts/render.py +113 -0
- package/plugins/thuthi-browser/.claude-plugin/plugin.json +9 -0
- package/plugins/thuthi-browser/context.md +3 -0
- package/plugins/thuthi-browser/hooks/hooks.json +15 -0
- package/plugins/thuthi-browser/lib/pbpage.py +397 -0
- package/plugins/thuthi-browser/setup_check.py +93 -0
- package/plugins/thuthi-browser/skills/parallel-browser/SKILL.md +271 -0
- package/plugins/thuthi-browser/skills/parallel-browser/references/api.md +243 -0
- package/plugins/thuthi-browser/skills/parallel-browser/references/install.md +106 -0
- package/plugins/thuthi-demo-video/.claude-plugin/plugin.json +9 -0
- package/plugins/thuthi-demo-video/lib/pbpage.py +397 -0
- package/plugins/thuthi-demo-video/setup_check.py +14 -0
- package/plugins/thuthi-demo-video/skills/demo-video/SKILL.md +261 -0
- package/plugins/thuthi-demo-video/skills/demo-video/scripts/caption.html +16 -0
- package/plugins/thuthi-demo-video/skills/demo-video/scripts/cursor.js +132 -0
- package/plugins/thuthi-demo-video/skills/demo-video/scripts/demo_video.py +2416 -0
- package/plugins/thuthi-demo-video/skills/demo-video/scripts/example_scenario.py +97 -0
- package/plugins/thuthi-demo-video/skills/demo-video/scripts/frame.html +95 -0
- package/plugins/thuthi-demo-video/skills/demo-video/scripts/overlay.js +129 -0
- package/plugins/thuthi-demo-video/skills/demo-video/scripts/title.html +30 -0
- package/plugins/thuthi-no-more-slop/.claude-plugin/plugin.json +9 -0
- package/plugins/thuthi-no-more-slop/setup_check.py +10 -0
- package/plugins/thuthi-no-more-slop/skills/no-more-slop/LICENSE +21 -0
- package/plugins/thuthi-no-more-slop/skills/no-more-slop/SKILL.md +235 -0
- package/plugins/thuthi-no-more-slop/skills/no-more-slop/SOURCE.txt +1 -0
- package/plugins/thuthi-no-more-slop/skills/no-more-slop/agents/openai.yaml +6 -0
- package/plugins/thuthi-no-more-slop/skills/no-more-slop/references/examples.md +289 -0
- package/plugins/thuthi-no-more-slop/skills/no-more-slop/references/tokens.md +46 -0
- package/plugins/thuthi-no-more-slop/skills/no-more-slop/references/unslop-fallback.md +36 -0
- package/plugins/thuthi-no-more-slop/skills/no-more-slop/scripts/count_tells.py +426 -0
- package/plugins/thuthi-orca/.claude-plugin/plugin.json +9 -0
- package/plugins/thuthi-orca/context.md +5 -0
- package/plugins/thuthi-orca/hooks/hooks.json +18 -0
- package/plugins/thuthi-orca/hooks/orca-team-grid.ts +21 -0
- package/plugins/thuthi-orca/setup_check.py +12 -0
- package/plugins/thuthi-orca/skills/orca-new-work/SKILL.md +492 -0
- package/plugins/thuthi-orca/tools/orca-team-grid/bin/tmux +338 -0
- package/plugins/thuthi-orca/tools/orca-team-grid/tests/selftest.py +299 -0
- package/runtime/client.js +69 -0
- package/runtime/daemon.js +503 -0
- package/runtime/focus-monitor.js +53 -0
- package/runtime/keys.js +86 -0
- package/runtime/owner.js +64 -0
- package/runtime/recorder.js +267 -0
- package/runtime/relay.js +95 -0
- package/runtime/session.js +1599 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/claude-code-marketplace.json",
|
|
3
|
+
"name": "thuthi-plugin",
|
|
4
|
+
"description": "thuthi 의 개인 Claude Code 플러그인 마켓플레이스. 기능마다 플러그인 하나 (thuthi-*), 필요한 것만 골라 켠다. 바탕 플러그인 thuthi (setup) 는 어느 것을 켜든 같이 켜진다.",
|
|
5
|
+
"owner": {
|
|
6
|
+
"name": "thuthi",
|
|
7
|
+
"email": "buildcenter.ag11@gmail.com"
|
|
8
|
+
},
|
|
9
|
+
"metadata": {
|
|
10
|
+
"pluginRoot": "./plugins",
|
|
11
|
+
"version": "0.1.0"
|
|
12
|
+
},
|
|
13
|
+
"plugins": [
|
|
14
|
+
{
|
|
15
|
+
"name": "thuthi",
|
|
16
|
+
"source": "./plugins/thuthi",
|
|
17
|
+
"description": "바탕: setup 스킬 (켜진 thuthi-* 플러그인이 쓰는 도구만 점검 · 설치). 기능 플러그인이 모두 이것에 의존한다"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "thuthi-browser",
|
|
21
|
+
"source": "./plugins/thuthi-browser",
|
|
22
|
+
"description": "parallel-browser: 사용자 Chrome · Edge 의 에이전트 전용 창에서 웹 조작 · 스크린샷 · 녹화"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "thuthi-agenda-picker",
|
|
26
|
+
"source": "./plugins/thuthi-agenda-picker",
|
|
27
|
+
"description": "agenda-picker: 고를 안건을 HTML 로 띄우고 고른 결과를 세션으로 받는다 (thuthi-browser 같이 켜짐)"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "thuthi-demo-video",
|
|
31
|
+
"source": "./plugins/thuthi-demo-video",
|
|
32
|
+
"description": "demo-video: 웹 앱 시연 영상(mp4) 만들기 (thuthi-browser 같이 켜짐)"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "thuthi-arch-diagram",
|
|
36
|
+
"source": "./plugins/thuthi-arch-diagram",
|
|
37
|
+
"description": "arch-diagram: Overview + 클릭 팝업 상세 HTML 다이어그램 (thuthi-browser 같이 켜짐)"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "thuthi-orca",
|
|
41
|
+
"source": "./plugins/thuthi-orca",
|
|
42
|
+
"description": "Orca: orca-new-work 스킬 · 팀원 칸 격자 배치 · orca CLI 상시 지시"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "thuthi-accounts",
|
|
46
|
+
"source": "./plugins/thuthi-accounts",
|
|
47
|
+
"description": "claude-switch + statusline: 구독 계정 여러 개의 사용량 보기 · 전환"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "thuthi-no-more-slop",
|
|
51
|
+
"source": "./plugins/thuthi-no-more-slop",
|
|
52
|
+
"description": "no-more-slop: 화면 · 차트 문구와 장식에서 AI 티를 지운다 (/no-more-slop 으로 부를 때만)"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
package/README.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
#
|
|
1
|
+
# thuthi-plugin
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
thuthi 의 개인 Claude Code 플러그인 마켓플레이스를 npm 으로 받는 판이다. 알림 플러그인(thuthi-notify)은 들어 있지 않다.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm i -g thuthi-plugin
|
|
7
|
+
claude plugin marketplace add "$(npm root -g)/thuthi-plugin"
|
|
8
|
+
claude plugin install <플러그인>@thuthi-plugin # 예: thuthi-no-more-slop, thuthi-browser
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
업데이트는 `npm i -g thuthi-plugin@latest` 뒤 새 세션. 로컬 폴더 마켓플레이스라 Claude 는 그 폴더를 바로 읽는다.
|
|
12
|
+
node 버전 관리자(mise · nvm)를 쓰면 `npm root -g` 가 node 버전마다 달라서, node 를 바꾸면 다시 깔고 등록한다.
|
|
13
|
+
|
|
14
|
+
플러그인 목록과 설명은 `.claude-plugin/marketplace.json` 에 있다.
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// parallel-browser CLI
|
|
3
|
+
// parallel-browser nodejs [-e code] run a script (stdin or -e) with session helpers injected
|
|
4
|
+
// parallel-browser status daemon + browser connection
|
|
5
|
+
// parallel-browser stop <handle> close one of your own sessions
|
|
6
|
+
// parallel-browser daemon [stop] run the daemon in the foreground / stop it
|
|
7
|
+
import { readFileSync } from 'node:fs';
|
|
8
|
+
import { createRequire } from 'node:module';
|
|
9
|
+
import { join } from 'node:path';
|
|
10
|
+
import { DaemonClient } from '../runtime/client.js';
|
|
11
|
+
import { Session, Snapshot, SESSION_HANDLE } from '../runtime/session.js';
|
|
12
|
+
import { startDaemon } from '../runtime/daemon.js';
|
|
13
|
+
import { resolveOwner } from '../runtime/owner.js';
|
|
14
|
+
|
|
15
|
+
const [cmd, ...rest] = process.argv.slice(2);
|
|
16
|
+
// Fixed sleeps are tallied: agents reach for them to wait for the page (2026-10 transcripts: 6,263
|
|
17
|
+
// sleeps, about 4 hours), where a wait returns the moment the page is ready.
|
|
18
|
+
const slept = { n: 0, ms: 0 };
|
|
19
|
+
const sleep = (ms) => { slept.n++; slept.ms += Number(ms) || 0; return new Promise((r) => setTimeout(r, ms)); };
|
|
20
|
+
const out = (obj) => console.log(typeof obj === 'string' || obj instanceof Snapshot ? String(obj) : JSON.stringify(obj, null, 2));
|
|
21
|
+
|
|
22
|
+
async function withClient(fn) {
|
|
23
|
+
const client = await DaemonClient.connect();
|
|
24
|
+
try {
|
|
25
|
+
const st = await client.call('daemon.status');
|
|
26
|
+
// The daemon reloads the extension by itself when its files change; this is only when it can't.
|
|
27
|
+
if (st.extension?.note) console.error(`note: the browser runs an older parallel-browser extension (${st.extension.note})`);
|
|
28
|
+
if (!st.connected) {
|
|
29
|
+
try { await client.call('daemon.waitForBrowser', { timeout: 5000 }, { timeout: 8000 }); }
|
|
30
|
+
catch { throw new Error('browser not connected: load extension/ in your Chrome/Edge (chrome://extensions → Load unpacked) and keep the browser open'); }
|
|
31
|
+
}
|
|
32
|
+
return await fn(client);
|
|
33
|
+
} finally { client.close(); }
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const AsyncFunction = Object.getPrototypeOf(async function () {}).constructor;
|
|
37
|
+
|
|
38
|
+
try {
|
|
39
|
+
switch (cmd) {
|
|
40
|
+
case 'nodejs': {
|
|
41
|
+
const eIdx = rest.indexOf('-e');
|
|
42
|
+
const script = eIdx >= 0 ? rest[eIdx + 1] : readFileSync(0, 'utf8');
|
|
43
|
+
if (!script?.trim()) throw new Error('no script: pipe JavaScript on stdin or pass -e');
|
|
44
|
+
await withClient(async (client) => {
|
|
45
|
+
const opened = [];
|
|
46
|
+
const helpers = {
|
|
47
|
+
// session('label') always makes a NEW session and prints its handle; only that handle
|
|
48
|
+
// resumes it. The handle is printed once, to this process — that is what keeps two
|
|
49
|
+
// agents sharing this browser out of each other's tabs.
|
|
50
|
+
// The session also gets an owner: the process whose exit closes it (runtime/owner.js),
|
|
51
|
+
// so tabs an agent forgot — or never got to close because it was killed — go away.
|
|
52
|
+
session: async (handleOrName, opts = {}) => {
|
|
53
|
+
const { owner: ownerOpt, ...rest } = opts || {};
|
|
54
|
+
const owner = resolveOwner(ownerOpt);
|
|
55
|
+
const s = await Session.open(client, handleOrName, rest);
|
|
56
|
+
opened.push(s);
|
|
57
|
+
if (owner !== null) {
|
|
58
|
+
try { await s.setOwner(owner); }
|
|
59
|
+
catch (e) { console.error(`warning: could not register the session owner (${e.message}). The daemon is probably older than this CLI: run \`parallel-browser daemon stop\`; the next call starts a new one.`); }
|
|
60
|
+
}
|
|
61
|
+
if (!SESSION_HANDLE.test(String(handleOrName || ''))) {
|
|
62
|
+
const closes = owner ? ` It closes by itself within seconds of process ${owner} exiting.` : '';
|
|
63
|
+
console.error(`session ${s.id} (${s.name}) — pass "${s.handle}" to session() to continue this one. Keep the handle; it is not listed anywhere.${closes}`);
|
|
64
|
+
}
|
|
65
|
+
return s;
|
|
66
|
+
},
|
|
67
|
+
sleep, out, console,
|
|
68
|
+
// Scripts run as ES modules' neighbours but often reach for CommonJS (require('fs')).
|
|
69
|
+
// Resolved from the working directory, so the project's own packages load too.
|
|
70
|
+
require: createRequire(join(process.cwd(), 'noop.js')),
|
|
71
|
+
};
|
|
72
|
+
const fn = new AsyncFunction(...Object.keys(helpers), script);
|
|
73
|
+
try {
|
|
74
|
+
await fn(...Object.values(helpers));
|
|
75
|
+
} finally {
|
|
76
|
+
if (slept.ms >= 5000) {
|
|
77
|
+
console.error(`hint: this script slept ${(slept.ms / 1000).toFixed(1)}s in ${slept.n} sleep() call${slept.n === 1 ? '' : 's'}. To wait for the page, waitFor(selector) / waitForURL / waitForFunction / waitForNetworkIdle return as soon as it is ready.`);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
case 'status': await withClient(async (c) => out({ daemon: await c.call('daemon.status') })); break;
|
|
84
|
+
// Deliberately gone. Sessions are not enumerable: every agent sees only what it created, so
|
|
85
|
+
// there is nothing here that could list them all. The whole roster — with pause, resume and
|
|
86
|
+
// stop — is in the extension dashboard, which is the user's surface, not a script's.
|
|
87
|
+
case 'sessions': out('sessions are private to the agent that created them; open the extension dashboard to see them all'); break;
|
|
88
|
+
// Closing takes the same handle as driving: an id you happened to read somewhere is not
|
|
89
|
+
// enough. Nothing is lost by that — a session the user wants gone can be closed from the
|
|
90
|
+
// dashboard, or by simply closing its tabs.
|
|
91
|
+
case 'stop': await withClient(async (c) => {
|
|
92
|
+
const arg = rest[0];
|
|
93
|
+
if (!SESSION_HANDLE.test(arg || '')) throw new Error('stop needs the full session handle (pb-xxxxxxxx-…) that was printed when the session was created; close other sessions from the extension dashboard');
|
|
94
|
+
const [, id, key] = arg.match(/^(pb-[0-9a-f]{8})-([0-9a-f]{32})$/);
|
|
95
|
+
out(await c.call('session.close', { sessionId: id, key }));
|
|
96
|
+
}); break;
|
|
97
|
+
case 'daemon':
|
|
98
|
+
if (rest[0] === 'stop') { const c = await DaemonClient.connect({ autoSpawn: false }); out(await c.call('daemon.stop')); c.close(); }
|
|
99
|
+
else { await startDaemon({ log: console.error }); await new Promise(() => {}); }
|
|
100
|
+
break;
|
|
101
|
+
default:
|
|
102
|
+
out('usage: parallel-browser <nodejs [-e code] | status | stop <handle> | daemon [stop]>');
|
|
103
|
+
process.exit(cmd ? 1 : 0);
|
|
104
|
+
}
|
|
105
|
+
process.exit(0);
|
|
106
|
+
} catch (e) {
|
|
107
|
+
console.error(`error: ${e.message}`);
|
|
108
|
+
process.exit(1);
|
|
109
|
+
}
|