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
Function
debugLog
* Emit a debug line to stderr when CITADEL_DEBUG=true. * Uses stderr (not stdout) so it doesn't interfere with hook exit codes or * structured JSON
hooks_src/harness-health-util.js:108
Function
deploy
(item, detail, command)
core/deploy-steward/steward.js:496
Function
deploy
(item)
scripts/test-deploy-steward.js:78
Function
detectStack
* Detect the project language from files in the project root. * @returns {{ language: string, framework: string|null, packageManager: string }}
hooks_src/harness-health-util.js:260
Function
enqueueMergeQueue
(item, detail)
core/deploy-steward/steward.js:490
Function
enqueueMergeQueue
(item)
scripts/test-deploy-steward.js:75
Function
escapeRegExp
(value)
scripts/generate-routing.js:109
Function
estimateSessionCost
* Compute estimated cost for a single session based on agent activity. * Used as fallback when real token data is not available. * * @param {number
scripts/telemetry-stats.js:222
Function
exec
()
core/sandbox/providers.js:63
Function
explainRuntimeProviderCompatibility
(runtimeId, providerId, accessMode)
core/contracts/provider.js:90
Function
fork
()
core/sandbox/providers.js:64
Function
generateClaudeGuidance
()
scripts/generate-fixtures.js:62
Function
generateClaudeSettings
()
scripts/generate-fixtures.js:36
Function
generateCodexGuidance
()
scripts/generate-fixtures.js:69
Function
generateCodexHooks
()
scripts/generate-fixtures.js:55
Function
generateCodexTranslationMeta
()
scripts/generate-fixtures.js:76
Function
get
()
scripts/dashboard-server.js:134
Function
getCurrentSessionId
()
runtimes/claude-code/adapters/session-tokens.js:221
Function
getRuntimeAdapterMatrix
(runtimeId = null)
core/contracts/runtime.js:136
Function
getTypecheckConfig
* Get the typecheck command for a given language. * @param {string} language * @param {boolean} perFile - Whether to check a single file * @returns
hooks_src/harness-health-util.js:314
Function
globToRegex
(glob)
core/map/index.js:52
Function
grantOneTimeAllow
* Grant a one-time approval for a specific action. * Consumed on read (single-use). Expires after 120 seconds. * Used by "always-ask" consent: hook
hooks_src/harness-health-util.js:573
Function
grantSessionAllow
* Grant a session-scoped allow for a category. * @param {string} category
hooks_src/harness-health-util.js:559
Function
invalidate
()
scripts/dashboard-server.js:143
Function
isAccessMode
(value)
core/contracts/provider.js:69
Function
isAdapterLevel
(value)
core/contracts/runtime.js:132
Function
isDenial
(e)
scripts/permission-audit.js:102
Function
isGitBash
* Detect whether the current process is running inside Git Bash / MSYS2. * Git Bash sets MSYSTEM to 'MINGW64', 'MINGW32', or 'MSYS'. * Native Window
core/utils/path-helpers.js:49
Function
isKnownCitadelEvent
(eventId)
core/contracts/events.js:77
Function
isProviderId
(value)
core/contracts/provider.js:65
Function
isRuntimeProviderCompatible
(runtimeId, providerId, accessMode)
core/contracts/provider.js:77
Function
lintSkill
(skillName)
scripts/skill-lint.js:256
Function
listFiles
(dir, ext)
scripts/telemetry-stats.js:45
Function
loadReadinessProfile
(projectRoot)
core/worktree/readiness.js:69
Function
logBlock
* Log a hook block or error event to hook-errors.jsonl. * @param {string} hook - Hook name * @param {string} action - What happened ('blocked', 'err
hooks_src/harness-health-util.js:351
Function
logTiming
* Log a timed event (start/end of a hook execution). * @param {string} hook - Hook name * @param {number} durationMs - Execution time in millisecond
hooks_src/harness-health-util.js:158
Function
mapAgentRun
(record, metrics)
scripts/telemetry-otlp-export.js:176
Function
mapHookTiming
(record, metrics)
scripts/telemetry-otlp-export.js:159
Function
mapSessionCost
(record, metrics)
scripts/telemetry-otlp-export.js:104
Function
merge
(item, detail)
core/deploy-steward/steward.js:482
Function
merge
(item)
scripts/test-deploy-steward.js:72
Function
normalizeCheck
(entry)
core/deploy-steward/steward.js:388
Function
normalizeHeader
(value)
core/fleet/session.js:10
Function
normalizeHeader
(value)
core/evidence/contracts.js:30
Function
parseArgs
(argv)
core/fleet/compress-discovery.js:7
Function
parseArgs
(argv)
core/fleet/discovery-writer.js:18
Function
readAllSessions
(opts = {})
runtimes/claude-code/adapters/session-tokens.js:226
Function
readCampaignStats
(projectRoot)
core/campaigns/load-campaign.js:62
Function
readCitadelValueMetrics
* Compute a comprehensive "Citadel value" report. * Combines token economics (what Citadel caught/saved) with real cost data * to tell the full stor
scripts/telemetry-stats.js:357
Function
readJson
(filePath, fallback = {})
core/hooks/install.js:10
Function
readJsonl
(filePath, options = {})
core/telemetry/io.js:75
Function
readTrustLevel
* Compute the trust level from harness config counters. * @returns {{ level: 'novice'|'familiar'|'trusted', trust: object }}
hooks_src/harness-health-util.js:369
Function
readiness
(args = {})
core/sandbox/providers.js:103
Function
refresh
(item)
core/deploy-steward/steward.js:458
Function
refresh
(item)
scripts/test-deploy-steward.js:62
Function
renderCampaigns
(data)
dashboard/app.js:147
Function
renderCost
(data)
dashboard/app.js:276
Function
renderFleet
(data)
dashboard/app.js:196
Function
renderHandoffs
(data)
dashboard/app.js:399
Function
renderHooks
(data)
dashboard/app.js:329
Function
renderLoops
(data)
dashboard/app.js:229
Function
renderOverview
(data)
dashboard/app.js:77
Function
run
()
scripts/compat-tests/compat-16-size-limit.js:14
Function
run
()
scripts/compat-tests/compat-04-hook-adapter.js:11
Function
run
()
scripts/compat-tests/compat-15-config-generation.js:13
Function
run
()
scripts/compat-tests/compat-05-mcp-translation.js:13
Function
run
()
scripts/compat-tests/compat-11-telemetry-portability.js:11
Function
run
()
scripts/compat-tests/compat-14-runtime-detection.js:12
Function
run
()
scripts/compat-tests/compat-10-campaign-portability.js:11
Function
run
()
scripts/compat-tests/compat-07-agent-translation.js:13
Function
securityWarning
(hook, message)
hooks_src/harness-health-util.js:435
Function
send
(event)
packages/client/index.js:12
Function
slug
(value)
scripts/stack-plan.js:41
Function
snapshot
(args = {})
core/sandbox/providers.js:94
Function
start
()
core/sandbox/providers.js:62
Function
status
(args = {})
core/sandbox/providers.js:77
Function
stop
()
core/sandbox/providers.js:65
Function
summarizeSession
(content)
core/fleet/session.js:277
Function
toNative
* Normalize a path to the OS-native separator. * Use when constructing paths for shell subprocesses or legacy tools that * do not accept forward sla
core/utils/path-helpers.js:38
Function
toUniversal
* Normalize a path to forward-slash form. * Use when storing paths in JSON, JSONL, markdown tables, or log lines, * and when comparing two paths as
core/utils/path-helpers.js:26
Function
updateBranch
(item, detail)
core/deploy-steward/steward.js:474
Function
updateBranch
(item)
scripts/test-deploy-steward.js:69
Function
validateCommand
(command)
hooks_src/harness-health-util.js:433
Function
validatePath
(filePath)
hooks_src/harness-health-util.js:432
Function
validateRuntimeContract
(contract)
core/contracts/runtime.js:73
Function
validateTrustObject
(trust)
core/telemetry/schema.js:146
Function
verifyAuditIntegrity
* Verify the integrity of a telemetry JSONL file. * Checks each record's _hash field by recomputing the hash from the record body. * * @param {stri
hooks_src/harness-health-util.js:65
Function
writeAuditLog
* Append an entry to the immutable audit log. * The audit log is append-only — never truncated, never overwritten. * Records significant agent actio
hooks_src/harness-health-util.js:459
Function
writeConsent
* Write a consent preference for a category to harness.json. * Creates harness.json if it doesn't exist. * @param {string} category * @param {'alwa
hooks_src/harness-health-util.js:516
← previous
1,501–1,589 of 1,589, ranked by callers