@graphif/ui
B建立于 shadcn/ui 之上的附加 UI 组件
Install
agr install @graphif/ui --target claudeWrites 1 file into .claude/skills/, pinned to git-1a718ee1.
- .claude/skills/ui/SKILL.md
Document
name: ui description: 建立于 shadcn/ui 之上的附加 UI 组件
ui
Dialog (app/src/components/ui/dialog.tsx)
Dialog.confirm: 显示一个确认对话框,返回一个 Promise,用户点击确认时 resolve,点击取消时 reject。Dialog.input: 显示一个输入对话框,返回一个 Promise,用户输入内容并点击确认时 resolve,点击取消时 reject。Dialog.copy: 显示一个复制对话框,返回一个 Promise,用户关闭对话框时 resolve。Dialog.buttons: 显示一个带有自定义按钮的对话框,返回一个 Promise,用户点击任意按钮时 resolve,参数为被点击按钮的id。
toast() (import { toast } from "sonner")
toast: 显示一个通用的、info 类型的 toast 消息,参数为消息内容,尽量不要使用此函数,推荐使用下面的toast.success()等方法。toast.success: 显示一个成功类型的 toast 消息,参数为消息内容。toast.error: 显示一个错误类型的 toast 消息,参数为消息内容。toast.warning: 显示一个警告类型的 toast 消息,参数为消息内容。toast.promise: 见下面的示例代码。
await toast
.promise(
async () => {
// 异步操作
},
{
loading: "promise进行中的提示",
success: "resolve后的提示",
error: "reject后的提示",
},
)
// unwrap方法会直接把传入的promise返回出来
.unwrap();
Repository README
Describes graphif/project-graph as a whole, which may contain artifacts other than this one. Where this artifact had no useful description of its own, its summary was taken from here.
./app/README.md
Trustgrade B
- passBody integrity
Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.
- passType matchnot applicable to this artifact type
Whether the artifact is really the kind of thing its metadata claims it is.
- passFreshness
How long since the source repository was last pushed to.
- passPrompt injection
Scans the artifact's own text for instructions aimed at your agent rather than at you.
- warnLicenseno SPDX license detected
Whether the source repository declares an SPDX license permissive enough to redistribute.
How the grade is calculated
Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:
- Aevery check passed
- Bone warning
- Ctwo warnings
- Dprompt injection or body integrity failed, or three warnings
- Fone of those failed, and something else is wrong
These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.
Versions
git-1a718ee1f8842026-07-31