Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SethGammon/Citadel
/ functions
Functions
1,589 in github.com/SethGammon/Citadel
⨍
Functions
1,589
◇
Types & classes
2
↓ 527 callers
Function
assert
(condition, message)
scripts/test-security.js:48
↓ 105 callers
Function
el
(tag, className, text)
dashboard/app.js:28
↓ 88 callers
Function
test
(name, fn)
scripts/verify-hooks.js:100
↓ 87 callers
Function
run
(label, scriptPath, extraArgs = [])
scripts/test-all.js:92
↓ 72 callers
Function
fireHook
* Fire a hook script with a synthetic payload. * Returns { exitCode, stdout, stderr, timedOut }
scripts/verify-hooks.js:53
↓ 48 callers
Function
countLines
(sandboxDir, relPath)
scripts/verify-hooks.js:92
↓ 41 callers
Function
assert
(condition, message)
scripts/test-state-hygiene.js:51
↓ 35 callers
Function
assert
(condition, label)
scripts/test-permission-audit.js:32
↓ 34 callers
Function
collectDashboard
(options = {})
scripts/dashboard.js:930
↓ 33 callers
Function
writeFile
(sandboxDir, relPath, content)
scripts/test-organize-enforce.js:51
↓ 29 callers
Function
fireHook
(payload, sandboxDir)
scripts/test-organize-enforce.js:57
↓ 28 callers
Function
assert
(condition, message)
scripts/test-postedit-typecheck.js:53
↓ 28 callers
Function
test
(name, fn)
scripts/test-organize-enforce.js:97
↓ 28 callers
Function
writeConfig
(sandboxDir, config)
scripts/test-organize-enforce.js:44
↓ 27 callers
Function
check
(label, fn)
scripts/test-backward-compat.js:27
↓ 26 callers
Function
test
(name, fn)
scripts/test-security.js:35
↓ 25 callers
Function
editEvent
(sandboxDir, relPath)
scripts/test-organize-enforce.js:78
↓ 23 callers
Function
test
(name, fn)
scripts/test-state-hygiene.js:38
↓ 22 callers
Function
add
(id, pass, detail)
core/codex/native-integrations.js:654
↓ 22 callers
Function
withTempProject
(run)
scripts/test-dashboard.js:12
↓ 22 callers
Function
write
(filePath, content)
scripts/test-dashboard.js:21
↓ 21 callers
Function
assert
(condition, message)
scripts/test-secrets-lens.js:58
↓ 21 callers
Method
put
(x, y, char)
scripts/grid.cjs:51
↓ 20 callers
Function
arg
(name, fallback = null)
scripts/loops.js:16
↓ 20 callers
Function
check
(label, ok, detail)
scripts/test-dashboard-web.js:21
↓ 20 callers
Function
sequence
(name, fn, sandbox)
scripts/integration-test.js:218
↓ 19 callers
Function
renderDashboard
(snapshot)
scripts/dashboard.js:1161
↓ 19 callers
Function
source
(projectRoot, relativePath, reason)
core/memory/blocks.js:64
↓ 17 callers
Function
exists
(f)
hooks_src/harness-health-util.js:261
↓ 16 callers
Function
arg
(name, fallback = null)
scripts/codex-pr-review.js:12
↓ 16 callers
Function
profileForFiles
(changedFiles, scripts = {})
core/verification/profiles.js:86
↓ 15 callers
Function
preToolUse
* Dispatch all PreToolUse hooks for a tool. * Returns { blocked, blockMessage, script } — first exit-2 stops dispatch.
scripts/integration-test.js:108
↓ 15 callers
Function
test
(name, fn)
scripts/test-secrets-lens.js:45
↓ 15 callers
Function
unsupported
(providerId, operation)
core/sandbox/providers.js:15
↓ 14 callers
Function
countJsonlLines
(sandbox, relPath)
scripts/integration-test.js:166
↓ 14 callers
Function
dedupe
(values)
core/map/index.js:264
↓ 14 callers
Function
evt
(ts, tool, target, decision)
scripts/test-permission-audit.js:61
↓ 14 callers
Function
section
(title)
dashboard/app.js:54
↓ 14 callers
Function
write
(filePath, text)
scripts/test-memory-blocks.js:18
↓ 14 callers
Function
write
(filePath, content)
scripts/test-pr-ready.js:15
↓ 13 callers
Function
log
(msg)
scripts/local-daemon.js:55
↓ 13 callers
Function
stat
(value, label, kind, note)
dashboard/app.js:39
↓ 13 callers
Function
truncate
(value, max)
scripts/dashboard.js:111
↓ 12 callers
Function
action
({ label, command, why, confidence = 'medium', repairAvailable = false, runbook = null })
scripts/dashboard.js:996
↓ 12 callers
Function
arg
(name, fallback = null)
scripts/codex-app-artifacts.js:11
↓ 12 callers
Function
arg
(name, fallback = null)
scripts/codex-app-server-capture.js:15
↓ 12 callers
Function
fail
(message)
scripts/test-hook-events.js:10
↓ 12 callers
Function
pointsOf
(payload, name)
scripts/test-telemetry-otlp.js:65
↓ 12 callers
Function
tailJsonl
(filePath, limit)
scripts/dashboard.js:92
↓ 12 callers
Function
writeFile
(filePath, content)
scripts/codex-compat.js:46
↓ 11 callers
Function
git
(args, cwd)
scripts/live-github-steward-proof.js:71
↓ 11 callers
Function
hookOutput
(hookName, action, message, data = {})
hooks_src/post-edit.js:34
↓ 10 callers
Function
appendJsonl
(filePath, entries)
scripts/test-dashboard.js:26
↓ 10 callers
Function
arg
(name, fallback = null)
scripts/codex-automation.js:10
↓ 10 callers
Function
badge
(text, kind)
dashboard/app.js:35
↓ 10 callers
Function
capability
(supported, note)
core/sandbox/providers.js:21
↓ 10 callers
Function
check
(label, condition, detail)
scripts/test-watch-dedup.js:29
↓ 10 callers
Function
exists
(entry)
core/worktree/readiness.js:82
↓ 10 callers
Function
normalizeToolName
(toolName)
core/hooks/normalize-event.js:64
↓ 10 callers
Function
parseCampaignContent
(content, options = {})
core/campaigns/parse-campaign.js:85
↓ 10 callers
Function
paths
(projectRoot)
core/deploy-steward/steward.js:44
↓ 10 callers
Function
percentile
* Nearest-rank percentile on a pre-sorted ascending array. * Returns null for empty input.
scripts/dashboard.js:568
↓ 10 callers
Function
selectRoute
(input)
scripts/route-preview.js:204
↓ 10 callers
Function
set
(key, value)
scripts/loops.js:111
↓ 9 callers
Function
check
(name, fn)
hooks_src/smoke-test.js:32
↓ 9 callers
Function
detectExternalAction
(command, policy)
core/policy/external-actions.js:116
↓ 9 callers
Function
eventTimestamp
(entry)
scripts/dashboard.js:507
↓ 9 callers
Function
getCoordinationPaths
(projectRoot)
core/coordination/io.js:13
↓ 9 callers
Function
has
(flag)
scripts/claude-install.js:11
↓ 9 callers
Function
hasAny
(files, predicate)
core/verification/profiles.js:82
↓ 9 callers
Function
nowIso
(options = {})
core/codex/native-integrations.js:22
↓ 9 callers
Function
parseProjectSpec
(text)
core/project/load-project-spec.js:53
↓ 9 callers
Function
planningDir
(projectRoot, ...parts)
core/codex/native-integrations.js:26
↓ 9 callers
Function
readJsonlDetailed
(filePath, options = {})
core/telemetry/io.js:16
↓ 9 callers
Function
runExporter
(tmpRoot, extraArgs)
scripts/test-telemetry-otlp.js:38
↓ 9 callers
Function
summarizeSnapshot
(snapshot)
scripts/next-action.js:98
↓ 9 callers
Function
write
(filePath, content)
scripts/test-operating-proof.js:12
↓ 9 callers
Function
writeFile
(filePath, content)
scripts/live-github-steward-proof.js:75
↓ 9 callers
Function
writeJson
(filePath, value)
core/codex/native-integrations.js:30
↓ 8 callers
Function
attrValue
(point, key)
scripts/test-telemetry-otlp.js:73
↓ 8 callers
Function
buildConsole
(projectRoot, options = {})
scripts/operator-console.js:261
↓ 8 callers
Function
detectRuntime
(projectRoot)
core/runtime/detect-runtime.js:12
↓ 8 callers
Function
emptyState
(message, command)
dashboard/app.js:47
↓ 8 callers
Function
ensureIndex
(forceRebuild = false)
mcp-servers/codebase-memory/index.js:38
↓ 8 callers
Function
fail
(message)
scripts/test-runtime-registry.js:9
↓ 8 callers
Function
getArgValue
(flag)
scripts/skill-bench.js:54
↓ 8 callers
Function
has
(flag)
scripts/codex-install.js:11
↓ 8 callers
Function
normalizeStatus
(value, fallback = 'planned')
core/loops/status.js:30
↓ 8 callers
Function
readJsonl
(file)
scripts/telemetry-stats.js:36
↓ 8 callers
Function
readText
(filePath)
scripts/dashboard.js:63
↓ 8 callers
Function
renderConsole
(consoleState)
scripts/operator-console.js:314
↓ 8 callers
Function
runTest
(label, fn)
scripts/test-deploy-steward.js:105
↓ 8 callers
Function
synth
(seed, length, charset)
scripts/test-secrets-lens.js:68
↓ 7 callers
Function
blockOutput
(hookName, action, message, data = {})
hooks_src/protect-files.js:67
↓ 7 callers
Function
charAt
(lines, x, y)
scripts/verify.cjs:32
↓ 7 callers
Function
check
(label, ok, detail)
scripts/test-doc-surfaces.js:33
↓ 7 callers
Function
check
(label, fn)
scripts/test-compat-fixtures.js:35
↓ 7 callers
Function
cleanup
(dir)
scripts/test-cost-tracker.js:50
↓ 7 callers
Function
createLoopContract
(options = {})
core/loops/contract.js:42
↓ 7 callers
Function
fail
(name, msg)
scripts/test-cost-tracker.js:24
next →
1–100 of 1,589, ranked by callers