Automatically scanned data. Review the source before installing. Levels describe capabilities, not a safety certification.
Incomplete scan.External dependency not scanned: <package>/dist/index.js The level shown is a lower bound; parts that could not be resolved may need higher permissions.
View matches (97)
Execute commands · line510 linedesk-look/hooks/register.tsxconst inside = await $.process.run(['git', 'rev-parse', '--is-inside-work-tree'], opts)
Execute commands · line518 linedesk-look/hooks/register.tsx$.process.run(['git', 'rev-parse', '--show-toplevel'], opts),
Execute commands · line519 linedesk-look/hooks/register.tsx$.process.run(['git', 'rev-parse', '--abbrev-ref', 'HEAD'], opts),
Execute commands · line520 linedesk-look/hooks/register.tsx$.process.run(['git', 'diff', 'HEAD', '--no-color', '--no-ext-diff', '--src-prefix=a/', '--dst-prefix=b/'], opts).then(ran => (ran.exitCode === 0 ? ran : $.process.run(['git', 'diff', '--no-color', '-
Execute commands · line521 linedesk-look/hooks/register.tsx$.process.run(['git', 'ls-files', '--others', '--exclude-standard'], opts),
Execute commands · line525 linedesk-look/hooks/register.tsxconst freshDiffs = await Promise.all(fresh.map(path => $.process.run(['git', 'diff', '--no-index', '--no-color', '--no-ext-diff', '--src-prefix=a/', '--dst-prefix=b/', '--', '/dev/null', path], opts))
Execute commands · line533 linedesk-look/hooks/register.tsxconst ignored = inRepo.length ? (await $.process.run(['git', 'check-ignore', '--stdin'], { ...opts, stdin: `${inRepo.join('\n')}\n` })).stdout.split('\n').filter(Boolean) : []
Execute commands · line555 linedesk-look/hooks/register.tsxconst top = await $.process.run(['git', 'rev-parse', '--show-toplevel'], { timeoutMs: 5000 })
Execute commands · line556 linedesk-look/hooks/register.tsxconst ran = await $.process.run(['git', 'restore', '--source=HEAD', '--staged', '--worktree', '--', path], {
Read files · line589 linedesk-look/hooks/register.tsxconst path = await $.fs.stat(asked, { resolve: true }).then(
Read files · line593 linedesk-look/hooks/register.tsxconst file: PreviewFile = await $.fs.read(path).then(
Read files · line611 linedesk-look/hooks/register.tsxconst real = await $.fs.stat(path, { resolve: true }).then(
Execute commands · line676 linedesk-look/hooks/register.tsx$.process.run(['git', 'rev-parse', '--abbrev-ref', 'HEAD'], { timeoutMs: 5000 }).catch(() => null),
Execute commands · line751 linedesk-look/hooks/register.tsxconst commit = /^c:([^:]+):$/.exec(prefix)
Execute commands · line789 linedesk-look/hooks/register.tsxconst [originHead, state] = await Promise.all([$.process.run(['git', 'symbolic-ref', '--quiet', '--short', 'refs/remotes/origin/HEAD'], opts), read($, pr)])
Execute commands · line792 linedesk-look/hooks/register.tsxconst found = await $.process.run(['git', 'rev-parse', '--verify', '--quiet', `${ref}^{commit}`], opts)
Execute commands · line794 linedesk-look/hooks/register.tsxconst base = await $.process.run(['git', 'merge-base', 'HEAD', ref], opts)
Execute commands · line812 linedesk-look/hooks/register.tsxconst ran = base ? await $.process.run(['git', 'diff', base.sha, '--no-color', '--no-ext-diff', '--src-prefix=a/', '--dst-prefix=b/'], opts) : null
Execute commands · line820 linedesk-look/hooks/register.tsx? await $.process.run(['git', 'log', LOG_FORMAT, `-n${MAX_COMMITS}`, `${base.sha}..HEAD`], opts)
Execute commands · line821 linedesk-look/hooks/register.tsx: await $.process.run(['git', 'log', LOG_FORMAT, `-n${MAX_COMMITS}`], opts)
Execute commands · line837 linedesk-look/hooks/register.tsxconst ran = await $.process.run(['git', 'show', '--stdin', '--format=%x1e%H', '--no-color', '--no-ext-diff', '--src-prefix=a/', '--dst-prefix=b/'], { timeoutMs: 8000, stdin }).catch(() => ({ exitCode:
Environment variables · line875 linedesk-look/hooks/register.tsxconst home = await $.env.get('HOME')
Read files · line876 linedesk-look/hooks/register.tsxconst toml = home ? await $.fs.read(`${home}/${OMARCHY_COLORS}`).catch(() => null) : null
Environment variables · line878 linedesk-look/hooks/register.tsxconst [colorterm, tmux] = await Promise.all([$.env.get('COLORTERM').catch(() => undefined), $.env.get('TMUX').catch(() => undefined)])
Environment variables · line887 linedesk-look/hooks/register.tsxconst [xdg, home] = await Promise.all([$.env.get('XDG_CONFIG_HOME'), $.env.get('HOME')])
Read files · line889 linedesk-look/hooks/register.tsxreturn base ? $.fs.read(`${base}/herdr/config.toml`).catch(() => '') : ''
Execute commands · line905 linedesk-look/hooks/register.tsxconst ran = await $.process.run(['id', '-u'], { timeoutMs: 3000 })
Read files · line911 linedesk-look/hooks/register.tsxfor (const project of await $.fs.list(root).catch(() => [])) {
Read files · line923 linedesk-look/hooks/register.tsxfor (const file of await $.fs.list(dir)) {
Execute commands · line930 linedesk-look/hooks/register.tsxconst ran = await $.process.run(['od', '-An', '-tu1', '-N', '24', path], { timeoutMs: 3000 }).catch(() => null)
Environment variables · line948 linedesk-look/hooks/register.tsxconst home = await $.env.get('HOME')
Read files · line951 linedesk-look/hooks/register.tsxconst folders = (await $.fs.list(root)).filter(entry => entry.kind === 'dir')
Read files · line955 linedesk-look/hooks/register.tsx(await $.fs.list(`${root}/${folder.name}`).catch(() => []))
Read files · line967 linedesk-look/hooks/register.tsxconst text = await $.fs.read(file.path).catch(() => '')
Execute commands · line971 linedesk-look/hooks/register.tsx$.process.run(['head', '-c', '262144', file.path], { timeoutMs: 5000 }).catch(() => ({ stdout: '' })),
Execute commands · line972 linedesk-look/hooks/register.tsx$.process.run(['tail', '-c', '262144', file.path], { timeoutMs: 5000 }).catch(() => ({ stdout: '' })),
Execute commands · line996 linedesk-look/hooks/register.tsxconst copied = await $.process.run(['wl-copy', '--', shell], { timeoutMs: 2000 }).catch(() => null)
Read files · line1067 linedesk-look/hooks/register.tsxconst raw = task.outputFile ? await $.fs.read(task.outputFile).catch(() => null) : null
Intercept tool calls · line1100 linedesk-look/hooks/register.tsxconst ran = await $.tool.call({ tool: 'TaskStop', task_id: task.id } as never).catch((error: unknown) => ({ deny: String(error) }))
Register tools · line1657 linedesk-look/hooks/register.tsxawait $.tool.register(previewTool(isPreviewAuto)).catch(() => undefined)
Environment variables · line1698 linedesk-look/hooks/register.tsx$.env.get('TMUX'),
Environment variables · line1699 linedesk-look/hooks/register.tsx$.env.get('ZELLIJ'),
Environment variables · line1700 linedesk-look/hooks/register.tsx$.env.get('HERDR_ENV'),
Environment variables · line1701 linedesk-look/hooks/register.tsx$.env.get('TERM'),
Environment variables · line1702 linedesk-look/hooks/register.tsx$.env.get('TERM_PROGRAM'),
Environment variables · line1703 linedesk-look/hooks/register.tsx$.env.get('CLAUDE_CODE_FORCE_TERMINAL_IMAGES'),
Execute commands · line1810 linedesk-look/hooks/register.tsxconst market = await $.process.run(['claude', 'plugin', 'marketplace', 'update', 'cc-desktop-mod'], { timeoutMs: 150_000 })
Execute commands · line1812 linedesk-look/hooks/register.tsxconst ran = await $.process.run(['claude', 'plugin', 'update', 'desk-look@cc-desktop-mod', '--json'], { timeoutMs: 150_000 })
Intercept tool calls · line1823 linedesk-look/hooks/register.tsxon('tool.call', { tool: PREVIEW_TOOL }, async ($, e) => {
Intercept tool calls · line1885 linedesk-look/hooks/register.tsxon('tool.call', async ($, e, next) => {
Environment variables · line2235 linedesk-look/hooks/register.tsx$.env.get('HOME'),
Environment variables · line2580 linedesk-look/hooks/register.tsx$.env.get('HOME').catch(() => undefined),
Execute commands · line3009 linedesk-look/hooks/register.tsxawait $.process.run(['tee', `${dir}/answer`], { stdin: JSON.stringify(payload), timeoutMs: 3000 })
Execute commands · line3015 linedesk-look/hooks/register.tsxvoid $.process.run(['tee', `${dir}/touched`], { stdin: String(++askTouches), timeoutMs: 3000 }).catch(() => undefined)
Execute commands · line3495 linedesk-look/hooks/register.tsxconst view = await $.process.run(['gh', 'pr', 'view', '--json', PR_FIELDS], { timeoutMs: READ_MS }).catch(error => ({ exitCode: 127, stdout: '', stderr: String(error) }))
Execute commands · line3511 linedesk-look/hooks/register.tsxconst ran = await $.process.run(
Execute commands · line3545 linedesk-look/hooks/register.tsxconst list = await $.process.run(['glab', 'mr', 'list', '--source-branch', branch, '--output', 'json'], { timeoutMs: READ_MS }).catch(failed)
Execute commands · line3554 linedesk-look/hooks/register.tsxconst view = await $.process.run(['glab', 'mr', 'view', String(iid), '--output', 'json'], { timeoutMs: READ_MS }).catch(failed)
Execute commands · line3563 linedesk-look/hooks/register.tsxconst host = /^https?:\/\/([^/]+)\//.exec(webUrl)?.[1]
Execute commands · line3565 linedesk-look/hooks/register.tsx(host ? $.process.run(['glab', 'api', '--hostname', host, path], { timeoutMs: READ_MS }) : $.process.run(['glab', 'api', path], { timeoutMs: READ_MS }))
Execute commands · line3574 linedesk-look/hooks/register.tsx? $.process.run(['git', 'diff', '--shortstat', refs.base_sha, refs.head_sha], { timeoutMs: READ_MS })
Execute commands · line3595 linedesk-look/hooks/register.tsxconst host = /^https?:\/\/([^/]+)\//.exec(pr.url)?.[1]
Execute commands · line3603 linedesk-look/hooks/register.tsx? $.process.run(['glab', 'api', '--hostname', host, '-X', 'PUT', path, '-f', sha, '-F', 'should_remove_source_branch=true', '-F', whenPipeline, '-F', autoMerge], { timeoutMs: MERGE_MS })
Execute commands · line3604 linedesk-look/hooks/register.tsx: $.process.run(['glab', 'api', '-X', 'PUT', path, '-f', sha, '-F', 'should_remove_source_branch=true', '-F', whenPipeline, '-F', autoMerge], { timeoutMs: MERGE_MS })
Execute commands · line3618 linedesk-look/hooks/register.tsxconst settings = await $.process.run(['gh', 'repo', 'view', repo, '--json', 'mergeCommitAllowed,squashMergeAllowed,rebaseMergeAllowed,deleteBranchOnMerge'], { timeoutMs: MERGE_MS }).catch(failed)
Execute commands · line3629 linedesk-look/hooks/register.tsx? $.process.run(['gh', 'pr', 'merge', String(pr.number), '-R', repo, how, '--match-head-commit', pr.headSha, '--auto'], { timeoutMs: MERGE_MS })
Execute commands · line3630 linedesk-look/hooks/register.tsx: $.process.run(['gh', 'pr', 'merge', String(pr.number), '-R', repo, how, '--match-head-commit', pr.headSha], { timeoutMs: MERGE_MS })
Execute commands · line3635 linedesk-look/hooks/register.tsxconst removed = await $.process.run(['gh', 'api', '--hostname', where.host, '-X', 'DELETE', `repos/${where.owner}/${where.name}/git/refs/heads/${pr.head}`], { timeoutMs: MERGE_MS }).catch(failed)
Execute commands · line4 linedesk-look/hooks/images.tsreturn /^(\d+)\.png$/.exec(name)?.[1] ?? null
Execute commands · line48 linedesk-look/hooks/images.tsconst value = parseInt(/^#?([0-9a-f]{6})$/i.exec(color.trim())?.[1] ?? '000000', 16)
Execute commands · line81 linedesk-look/hooks/markdown.tsxconst fence = FENCE.exec(line)
Execute commands · line99 linedesk-look/hooks/markdown.tsxconst heading = HEADING.exec(line)
Execute commands · line143 linedesk-look/hooks/markdown.tsxconst item = LIST_ITEM.exec(current)
Execute commands · line185 linedesk-look/hooks/markdown.tsxconst match = INLINE.exec(rest)
Execute commands · line277 linedesk-look/hooks/markdown.tsx.map(line => /^([^\s:#][^:]*):\s*(.*)$/.exec(line))
Execute commands · line435 linedesk-look/hooks/markdown.tsxconst alert = ALERT.exec(block.raw)
Execute commands · line3235 linedesk-look/hooks/vendor/lovely-mermaid.jsconst labeled = /^(\S+?)\[(.+)\](:::\S+)?$/.exec(name);
Execute commands · line52 linedesk-look/hooks/diffview.tsxconst header = HEADER.exec(raw)
Execute commands · line5 linedesk-look/hooks/theme.tsconst match = /^#?([0-9a-f]{6})$/i.exec(value.trim())
Execute commands · line21 linedesk-look/hooks/theme.tsconst field = (key: string) => new RegExp(`^\\s*${key}\\s*=\\s*"([^"]*)"`, 'm').exec(toml)?.[1]
Execute commands · line95 linedesk-look/hooks/runs.tsconst approved = /##\s*Approved Plan[^\n]*\n([\s\S]+)$/.exec(output)
Execute commands · line18 linedesk-look/hooks/agents.tsconst match = /^claude-([a-z]+)-(\d+)(?:-(\d{1,2}))?(?:-\d{8})?(\[1m\])?$/.exec(model)
Execute commands · line147 linedesk-look/hooks/agents.tsconst tag = (block: string, name: string) => new RegExp(`<${name}>([\\s\\S]*?)</${name}>`).exec(block)?.[1]?.trim()
Execute commands · line13 linedesk-look/hooks/sessions.tsreturn { id, updatedAt, cwd: field('cwd').exec(head)?.[1] ?? '', title }
Execute commands · line89 linedesk-look/hooks/ask.tsxawait $.process.run(['tee', `${dir}/answer`], { stdin: JSON.stringify(payload), timeoutMs: 3000 })
Environment variables · line93 linedesk-look/hooks/ask.tsxconst [configDir, home] = await Promise.all([$.env.get('CLAUDE_CONFIG_DIR'), $.env.get('HOME')])
Read files · line96 linedesk-look/hooks/ask.tsxfor (const entry of await $.fs.list(`${base}/sessions`).catch(() => [])) {
Read files · line98 linedesk-look/hooks/ask.tsxif (isBridgedRecord(await $.fs.read(`${base}/sessions/${entry.name}`).catch(() => ''), sessionId)) return true
Intercept tool calls · line109 linedesk-look/hooks/ask.tsxon('tool.call', { tool: 'AskUserQuestion' }, async ($, e, next) => {
Execute commands · line119 linedesk-look/hooks/ask.tsxconst made = await $.process.run(['mktemp', '-d'], { timeoutMs: 3000 }).catch(() => null)
Execute commands · line122 linedesk-look/hooks/ask.tsxconst piped = await $.process.run(['mkfifo', `${dir}/answer`], { timeoutMs: 3000 }).catch(() => null)
Execute commands · line124 linedesk-look/hooks/ask.tsxawait $.process.run(['rm', '-rf', dir], { timeoutMs: 3000 }).catch(() => undefined)
Execute commands · line145 linedesk-look/hooks/ask.tsxconst ran = await $.process.run(['cat', `${dir}/answer`], { timeoutMs: roundS * 1000 }).catch(() => null)
Read files · line157 linedesk-look/hooks/ask.tsxconst touched = await $.fs.read(`${dir}/touched`).catch(() => '')
Execute commands · line168 linedesk-look/hooks/ask.tsxawait $.process.run(['rm', '-rf', dir], { timeoutMs: 3000 }).catch(() => undefined)
Execute commands · line87 linedesk-look/hooks/pr.tsconst match = /^https?:\/\/([^/]+)\/([^/]+)\/([^/]+)\/pull\/\d+/.exec(url)
Execute commands · line208 linedesk-look/hooks/pr.tsreturn { added: Number(/(\d+) insertion/.exec(text)?.[1] ?? 0), removed: Number(/(\d+) deletion/.exec(text)?.[1] ?? 0) }