deploy-deck
Live deploy tracker for GitHub Actions and Deployments, Vercel, Cloudflare Pages and Workers, and Render: a stage pipeline above the prompt, a /deploys panel, toasts and a status line. Read-only.
何をするか
- プロンプトの上の帯・欄を描く
- prompt.submit・session.end・session.startにフックする
- ターンをまたいで自分の状態を持つ
- ネットワークに出る
- プロセスを起こす
良いところ
- TypeScript で書かれている
- デスクトップ専用の分岐がある
- エラーを扱う
- ファイルを書かない
作り始めるためのコード
2 種類あります。上のデザインから modscode が書いた雛形と、その Mod 自身のコードのうち描いている部分です。
雛形(register.tsx)
import type { Register } from 'claude-code'
// Drawn like deploy-deck by mrjk05 (pane, band, status, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/mrjk05-deploy-deck/
// Written by modscode from that reading, not copied from the mod: use it as you like.
// Each value below stands for one the mod works out at run time; put in your own.
export const register: Register = on => {
// the band above the prompt; what else goes there is drawn under it
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const { Box, Text } = $.ui.resolve(e)
const label = '…'
const elapsed = '…'
const label2 = '…'
const elapsed2 = '…'
const label3 = '…'
const elapsed3 = '…'
return (
<Box flexDirection="column">
<Box flexDirection="column">
<Box flexDirection="row">
<Text wrap="truncate">
{label}
{" "}
</Text>
<Text dimColor>
{" "}
{elapsed}
</Text>
</Box>
<Box flexDirection="row">
<Text wrap="truncate">
{label2}
{" "}
</Text>
<Text dimColor>
{" "}
{elapsed2}
</Text>
</Box>
<Box flexDirection="row">
<Text wrap="truncate">
{label3}
{" "}
</Text>
<Text dimColor>
{" "}
{elapsed3}
</Text>
</Box>
</Box>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "Deploys" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text } = $.ui.resolve(e)
const title = '…'
const auth = '…'
const error = '…'
const head = '…'
const facts = '…'
const joinLinks = '…'
const message = '…'
const head2 = '…'
const joinLinks2 = '…'
const message2 = '…'
const head3 = '…'
const joinLinks3 = '…'
const message3 = '…'
const title2 = '…'
const auth2 = '…'
const error2 = '…'
const head4 = '…'
const joinLinks4 = '…'
const message4 = '…'
const head5 = '…'
const joinLinks5 = '…'
const message5 = '…'
const head6 = '…'
const joinLinks6 = '…'
const message6 = '…'
const title3 = '…'
const auth3 = '…'
const error3 = '…'
const head7 = '…'
const joinLinks7 = '…'
const message7 = '…'
const head8 = '…'
const joinLinks8 = '…'
const message8 = '…'
const head9 = '…'
const joinLinks9 = '…'
const message9 = '…'
return (
<Box flexDirection="column" gap={1}>
<Box flexDirection="row" justifyContent="space-between">
<Text bold>
Deploys
</Text>
<Text dimColor>
stopped
</Text>
</Box>
<Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1}>
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Text bold wrap="truncate">
{title}
</Text>
<Text dimColor>
{auth}
</Text>
</Box>
<Text color="warning" wrap="wrap">
{"⚠ "}
{error}
</Text>
<Text dimColor>
not read yet
</Text>
<Box flexDirection="column">
<Text wrap="truncate">
<Text>
{head}
</Text>
<Text>
{` ${facts}`}
</Text>
</Text>
<Text wrap="truncate">
{" "}
{joinLinks}
<Text dimColor>
{" "}
{message}
</Text>
</Text>
</Box>
<Box flexDirection="column">
<Text wrap="truncate">
<Text>
{head2}
</Text>
<Text>
{` ${facts}`}
</Text>
</Text>
<Text wrap="truncate">
{" "}
{joinLinks2}
<Text dimColor>
{" "}
{message2}
</Text>
</Text>
</Box>
<Box flexDirection="column">
<Text wrap="truncate">
<Text>
{head3}
</Text>
<Text>
{` ${facts}`}
</Text>
</Text>
<Text wrap="truncate">
{" "}
{joinLinks3}
<Text dimColor>
{" "}
{message3}
</Text>
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1}>
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Text bold wrap="truncate">
{title2}
</Text>
<Text dimColor>
{auth2}
</Text>
</Box>
<Text color="warning" wrap="wrap">
{"⚠ "}
{error2}
</Text>
<Text dimColor>
not read yet
</Text>
<Box flexDirection="column">
<Text wrap="truncate">
<Text>
{head4}
</Text>
<Text>
{` ${facts}`}
</Text>
</Text>
<Text wrap="truncate">
{" "}
{joinLinks4}
<Text dimColor>
{" "}
{message4}
</Text>
</Text>
</Box>
<Box flexDirection="column">
<Text wrap="truncate">
<Text>
{head5}
</Text>
<Text>
{` ${facts}`}
</Text>
</Text>
<Text wrap="truncate">
{" "}
{joinLinks5}
<Text dimColor>
{" "}
{message5}
</Text>
</Text>
</Box>
<Box flexDirection="column">
<Text wrap="truncate">
<Text>
{head6}
</Text>
<Text>
{` ${facts}`}
</Text>
</Text>
<Text wrap="truncate">
{" "}
{joinLinks6}
<Text dimColor>
{" "}
{message6}
</Text>
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1}>
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Text bold wrap="truncate">
{title3}
</Text>
<Text dimColor>
{auth3}
</Text>
</Box>
<Text color="warning" wrap="wrap">
{"⚠ "}
{error3}
</Text>
<Text dimColor>
not read yet
</Text>
<Box flexDirection="column">
<Text wrap="truncate">
<Text>
{head7}
</Text>
<Text>
{` ${facts}`}
</Text>
</Text>
<Text wrap="truncate">
{" "}
{joinLinks7}
<Text dimColor>
{" "}
{message7}
</Text>
</Text>
</Box>
<Box flexDirection="column">
<Text wrap="truncate">
<Text>
{head8}
</Text>
<Text>
{` ${facts}`}
</Text>
</Text>
<Text wrap="truncate">
{" "}
{joinLinks8}
<Text dimColor>
{" "}
{message8}
</Text>
</Text>
</Box>
<Box flexDirection="column">
<Text wrap="truncate">
<Text>
{head9}
</Text>
<Text>
{` ${facts}`}
</Text>
</Text>
<Text wrap="truncate">
{" "}
{joinLinks9}
<Text dimColor>
{" "}
{message9}
</Text>
</Text>
</Box>
</Box>
</Box>
<Text dimColor wrap="truncate">
/deploys refresh · add · remove · status
</Text>
</Box>
)
})
}
Mod 自身のコード
Mod のライセンス(MIT)に従って載せています。全文は下にあります。写すときは著作権表示を残してください。
mods/deploy-deck/hooks/register.tsx 505〜570 行 · バンド
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const feeds = await read($, feedsAtom)
const finished = await read($, finishedAtom)
const now = await read($, nowAtom)
const shown = cfg.band && !e.props.hasSurvey ? bandDeploys(feeds, finished, now) : []
const below = await next(e)
if (shown.length === 0) return below
const { Box, Text } = $.ui.resolve(e)
const width = Math.max(10, e.props.bodyColumns)
const room = Math.max(1, e.props.maxRows - (drawsNothing(below) ? 0 : 1))
const visible = shown.length > room ? shown.slice(0, Math.max(0, room - 1)) : shown
const hidden = shown.length - visible.length
const styled = (run: Run) => (
<Text color={run.color} dimColor={run.dim} bold={run.bold}>
{run.text}
</Text>
)
const rows = visible.map(deploy => {
const elapsed = formatElapsed(elapsedOf(deploy, now))
const label = deployLabel(deploy)
const full = pipeline(deploy, false)
const compact = pipeline(deploy, true)
const fullLen = runsText(full).length
const word = stageWord(deploy)
let runs: Run[]
if (width >= fullLen + elapsed.length + 14) runs = full
else if (width >= runsText(compact).length + word.length + elapsed.length + 12) {
runs = [...compact, { text: ` ${word}`, color: stageColor(deploy.stage), bold: true }]
} else runs = [{ text: `${stageGlyph(deploy.stage)} ${word}`, color: stageColor(deploy.stage), bold: true }]
const used = runsText(runs).length + elapsed.length + 2
const labelRoom = Math.max(0, width - used - 1)
return (
<Box key={`band:${deploy.key}`} flexDirection="row">
<Text bold={isActive(deploy, now)} dimColor={!isActive(deploy, now)} wrap="truncate">
{truncate(label, labelRoom).padEnd(labelRoom)}{' '}
</Text>
{runs.map(styled)}
<Text dimColor>
{' '}
{elapsed}
</Text>
</Box>
)
})
if (hidden > 0) {
rows.push(
<Text key="band:more" dimColor>
{truncate(`+${hidden} more · /${COMMAND}`, width)}
</Text>,
)
}
const mine = (
<Box key="deploy-deck" flexDirection="column">
{rows}
</Box>
)
if (drawsNothing(below)) return mine
return (
<Box flexDirection="column">
{mine}
{below}
</Box>
)
})mods/deploy-deck/hooks/register.tsx 574〜685 行 · ペイン
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const { Box, Text, Link } = $.ui.resolve(e)
const targets = await read($, targetsAtom)
const feeds = await read($, feedsAtom)
const now = await read($, nowAtom)
const interval = await read($, intervalAtom)
const width = Math.max(20, e.props.bodyColumns)
const isDesktop = e.surface === 'desktop'
const inner = isDesktop ? width - 4 : width
const header = (
<Box flexDirection="row" justifyContent="space-between">
<Text bold>Deploys</Text>
<Text dimColor>{truncate(`${interval === 0 ? 'stopped' : `every ${Math.round(interval / 1000)}s`}`, Math.max(0, width - 9))}</Text>
</Box>
)
if (isUnconfigured(targets, cfg)) {
return (
<Box flexDirection="column" gap={1}>
{header}
<Text wrap="wrap">{targets.length === 0 ? 'No deploy targets found in this repo.' : 'No credentials for the detected targets.'}</Text>
<Text wrap="wrap" dimColor>
{setupText().replace(/`/g, '')}
</Text>
</Box>
)
}
const groups = targets.map(target =>
group({ key: `group:${targetKey(target)}`, target, feed: feeds[targetKey(target)], now, inner, isDesktop }),
)
return (
<Box flexDirection="column" gap={1}>
{header}
{groups}
<Text dimColor wrap="truncate">
{truncate(`/${COMMAND} refresh · add · remove · status`, width)}
</Text>
</Box>
)
function group(props: { key: string; target: DeployDeckTarget; feed: DeployDeckFeed | undefined; now: number; inner: number; isDesktop: boolean }) {
const { target, feed } = props
const provider = PROVIDER_OF[target.kind]
const kind = target.kind.startsWith('cloudflare-') ? ` (${target.kind.slice(11)})` : ''
const auth = feed === undefined ? '' : authLabel(feed.auth, provider)
const title = `${provider} · ${target.id}${kind}`
const body = (
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Text bold wrap="truncate">
{truncate(title, Math.max(4, props.inner - auth.length - 1))}
</Text>
<Text dimColor>{auth}</Text>
</Box>
{feed?.error !== undefined && (
<Text color="warning" wrap="wrap">
⚠ {feed.error}
</Text>
)}
{(feed === undefined || feed.deploys.length === 0) && feed?.error === undefined && (
<Text dimColor>{feed?.checkedAt === undefined ? 'not read yet' : 'no deploys'}</Text>
)}
{(feed?.deploys ?? []).slice(0, 3).map(deploy => deployRow(deploy, props.now, props.inner))}
</Box>
)
return props.isDesktop ? (
<Box key={props.key} flexDirection="column" borderStyle="round" borderDimColor paddingX={1}>
{body}
</Box>
) : (
<Box key={props.key} flexDirection="column">
{body}
</Box>
)
}
function deployRow(deploy: DeployDeckDeploy, at: number, room: number): RenderElement {
const age = isTerminal(deploy.stage)
? formatAge(at - (deploy.finishedAt ?? deploy.startedAt))
: formatElapsed(elapsedOf(deploy, at))
const head = `${stageGlyph(deploy.stage)} ${stageWord(deploy)}`
const facts = [deploy.env, versionLabel(deploy), deploy.branch, age].filter(
(part): part is string => part !== undefined && part !== '',
)
const rest = truncate(` ${facts.join(' · ')}`, Math.max(0, room - head.length))
const links: RenderElement[] = []
if (deploy.url !== undefined) links.push(<Link key={`url:${deploy.key}`} href={deploy.url} label="open" />)
if (deploy.logsUrl !== undefined) links.push(<Link key={`logs:${deploy.key}`} href={deploy.logsUrl} label="logs" />)
return (
<Box key={`row:${deploy.key}`} flexDirection="column">
<Text wrap="truncate">
<Text color={stageColor(deploy.stage)} bold={!isTerminal(deploy.stage)}>
{head}
</Text>
<Text dimColor={isTerminal(deploy.stage)}>{rest}</Text>
</Text>
{(deploy.message !== undefined || links.length > 0) && (
<Text wrap="truncate">
{' '}
{joinLinks(links)}
{deploy.message !== undefined && (
<Text dimColor>
{links.length > 0 ? ' ' : ''}
{truncate(deploy.message, Math.max(0, room - 4 - links.length * 7))}
</Text>
)}
</Text>
)}
</Box>
)
}
})ライセンスの全文(MIT)
MIT License Copyright (c) 2026 modemon contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
コードが呼ぶもの
通信プログラム起動ファイル読み取り保存
コードから読み取ったデザイン
読み取ったコミットのソースから描いたもので、動かした結果ではありません。一覧は 3 回描き、条件はデスクトップアプリで描く最初の分岐を取り、動かしたときにだけ決まる値は仮の例(点線の下線)にするか省きます。色と書体はこのサイトのものです。
コードから読めること
2026-10-06 に読んだコミット c14f77ca2a38 のソースから。最初のまとまりが載せる条件で、残りは自分で判断するための材料です。後のコミットは、次に読むまで見ていません。
| 載せる条件: 確かめやすいコード | |
|---|---|
| 入口を読んだ | hooks/hooks.json が名指すモジュールをすべて読んだ。mods/deploy-deck/hooks/register.tsx |
| 解析できる | すべてのファイルが TypeScript か JavaScript として解析できる。9 ファイルを解析 |
| コードが Mod の中で完結 | import は Mod 自身のファイルかエンジンのモジュールだけ。パッケージも require もない。コードはすべて Mod の中 |
| 読める | 圧縮した行・eval・new Function・計算した道の import()・符号化した塊がない。圧縮・eval・符号化した塊なし |
| 呼び出しが見える | 通信とプログラム起動はその場で $.http.fetch・$.process.run と書き、他へ渡さない。外への呼び出しはすべてその場の $ で |
| 入れる前に自分で判断する材料 | |
| 描く場所 | コードから読んだ、描く先。ターミナル・デスクトップアプリ・両方・何も描かない(フックだけ: 見張りやプロンプトの書き換え)のどれか。出すだけで、外す理由にはしない。ターミナルとデスクトップアプリに描く(デスクトップ用の分岐あり) |
| 入れる手順 | リポジトリ自身の .claude-plugin/marketplace.json にこの Mod が載っていて、ページに書いた手順でそのマーケットプレイスから入れられるか。リポジトリの .claude-plugin/marketplace.json に載っており、そこから入れられる |
| Windows のプログラム | $.process で起動するプログラムが Windows にあるか(tail・date・open・osascript・/usr/… などは無い)。Windows にないプログラムを使わない |
| 通信 | fetch の送り先(https のホスト)がコードに書いてあるか。mods/deploy-deck/hooks/register.tsx:197 fetch(url) |
| プログラム | 起動するプログラムの名前がコードに書いてあり、シェル・インタプリタ・通信用の道具でないか。mods/deploy-deck/hooks/register.tsx:198 実行時に決まるプログラム |
| 読んで送る | ファイルや環境変数を読み、かつ通信するか。読んだうえで通信する |
| ソースの鍵 | ソースに API キーや秘密鍵らしきものがあるか。ソースに鍵なし |
| ライセンス | オープンなライセンス(MIT・Apache-2.0・BSD・ISC・Unlicense・0BSD・CC0)で全文があれば、modscode にコードを載せる。違えばリンクだけ。MIT |
コードの文面を読んだだけで、安全の審査ではありません。動かしてはおらず、起動するプログラムの中で何が起きるかも見えません。入れる前の確認はあなたの役目です。 載せる条件
入れる
入れる前に、必ず自分で確かめてください。Mod はサンドボックスなしで、あなたの権限で動きます。modscode はこのコードの安全を保証しません。下のコードを読み(またはフォルダーで claude plugin validate .)、触るものを見て、読んだコミットを入れてください。
リポジトリがそのままマーケットプレイスです。このマーケットプレイスを足し(ターミナルでは次のコマンド、デスクトップアプリではプラグインの設定)、そこから Mod を入れます。
/plugin marketplace add mrjk05/modemon/plugin install deploy-deck@modemon入るのはマーケットプレイスの最新のコミットで、ここで読んだもの(c14f77ca2a38)と違うことがあります。入れる前に見比べてください。
Claude に聞く
modscode のコネクタを入れると、Claude がこのデザイン・コードが触るもの・コードを読んで、それをもとに作れます。たとえば:
modscode のデザイン「mrjk05-deploy-deck」をコードごと読んで、同じようなペインを作って似たデザイン
-
Claude に頼む…2h 10m · █████░░░✓ build ✓ build ✓ buildJavaKotlin3 Python■ ok 3 ■ ok 3 ■ ok 3 Razor proven 3 Razor proven 3 Razor proven 3Phases ──────── 3/3build Pythonbuild Pythonbuild Python… 3 more phasesLua ──────── 3/Kotlin■ the whole upgrade Ruby■ build build Ruby■ build build Ruby■ build build Ruby … 3 moreNext ──────── PythonRuby (by hand)Podsclick a button, or ctrl+x tab then Tab, EnterAttention ──────── 3! Scala ! Scala ! Scala … 3 moreSession ──────── okJava
-
Open a file first: /crit-tui file <path>Reopen this one in the crit browser view.Claude に頼む…
-
Claude に頼む…TodayOct 63 left · Mar overdueRemCTL: Sep✓ All done for today.● build3● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓● build3● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓● build3● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓Updated 14:32UndoRefresh
-
Claude に頼む…TO graph› Fix login › Fix login › Fix loginScopeThis featureWhole projectHide done stepsReconnect
-
Claude に頼む…InboxUntitled captureFinishing Open in localvoxtralUntitled captureFinishing Open in localvoxtralUntitled captureFinishing Open in localvoxtral
-
Claude に頼む…InboxUntitled captureFinishing Open in localvoxtralUntitled captureFinishing Open in localvoxtralUntitled captureFinishing Open in localvoxtral