MCPcopy Create free account

hub / github.com/SethGammon/Citadel / functions

Functions1,589 in github.com/SethGammon/Citadel

FunctiondebugLog
* 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
Functiondeploy
(item, detail, command)
core/deploy-steward/steward.js:496
Functiondeploy
(item)
scripts/test-deploy-steward.js:78
FunctiondetectStack
* 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
FunctionenqueueMergeQueue
(item, detail)
core/deploy-steward/steward.js:490
FunctionenqueueMergeQueue
(item)
scripts/test-deploy-steward.js:75
FunctionescapeRegExp
(value)
scripts/generate-routing.js:109
FunctionestimateSessionCost
* 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
Functionexec
()
core/sandbox/providers.js:63
FunctionexplainRuntimeProviderCompatibility
(runtimeId, providerId, accessMode)
core/contracts/provider.js:90
Functionfork
()
core/sandbox/providers.js:64
FunctiongenerateClaudeGuidance
()
scripts/generate-fixtures.js:62
FunctiongenerateClaudeSettings
()
scripts/generate-fixtures.js:36
FunctiongenerateCodexGuidance
()
scripts/generate-fixtures.js:69
FunctiongenerateCodexHooks
()
scripts/generate-fixtures.js:55
FunctiongenerateCodexTranslationMeta
()
scripts/generate-fixtures.js:76
Functionget
()
scripts/dashboard-server.js:134
FunctiongetCurrentSessionId
()
runtimes/claude-code/adapters/session-tokens.js:221
FunctiongetRuntimeAdapterMatrix
(runtimeId = null)
core/contracts/runtime.js:136
FunctiongetTypecheckConfig
* 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
FunctionglobToRegex
(glob)
core/map/index.js:52
FunctiongrantOneTimeAllow
* 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
FunctiongrantSessionAllow
* Grant a session-scoped allow for a category. * @param {string} category
hooks_src/harness-health-util.js:559
Functioninvalidate
()
scripts/dashboard-server.js:143
FunctionisAccessMode
(value)
core/contracts/provider.js:69
FunctionisAdapterLevel
(value)
core/contracts/runtime.js:132
FunctionisDenial
(e)
scripts/permission-audit.js:102
FunctionisGitBash
* 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
FunctionisKnownCitadelEvent
(eventId)
core/contracts/events.js:77
FunctionisProviderId
(value)
core/contracts/provider.js:65
FunctionisRuntimeProviderCompatible
(runtimeId, providerId, accessMode)
core/contracts/provider.js:77
FunctionlintSkill
(skillName)
scripts/skill-lint.js:256
FunctionlistFiles
(dir, ext)
scripts/telemetry-stats.js:45
FunctionloadReadinessProfile
(projectRoot)
core/worktree/readiness.js:69
FunctionlogBlock
* 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
FunctionlogTiming
* 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
FunctionmapAgentRun
(record, metrics)
scripts/telemetry-otlp-export.js:176
FunctionmapHookTiming
(record, metrics)
scripts/telemetry-otlp-export.js:159
FunctionmapSessionCost
(record, metrics)
scripts/telemetry-otlp-export.js:104
Functionmerge
(item, detail)
core/deploy-steward/steward.js:482
Functionmerge
(item)
scripts/test-deploy-steward.js:72
FunctionnormalizeCheck
(entry)
core/deploy-steward/steward.js:388
FunctionnormalizeHeader
(value)
core/fleet/session.js:10
FunctionnormalizeHeader
(value)
core/evidence/contracts.js:30
FunctionparseArgs
(argv)
core/fleet/compress-discovery.js:7
FunctionparseArgs
(argv)
core/fleet/discovery-writer.js:18
FunctionreadAllSessions
(opts = {})
runtimes/claude-code/adapters/session-tokens.js:226
FunctionreadCampaignStats
(projectRoot)
core/campaigns/load-campaign.js:62
FunctionreadCitadelValueMetrics
* 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
FunctionreadJson
(filePath, fallback = {})
core/hooks/install.js:10
FunctionreadJsonl
(filePath, options = {})
core/telemetry/io.js:75
FunctionreadTrustLevel
* Compute the trust level from harness config counters. * @returns {{ level: 'novice'|'familiar'|'trusted', trust: object }}
hooks_src/harness-health-util.js:369
Functionreadiness
(args = {})
core/sandbox/providers.js:103
Functionrefresh
(item)
core/deploy-steward/steward.js:458
Functionrefresh
(item)
scripts/test-deploy-steward.js:62
FunctionrenderCampaigns
(data)
dashboard/app.js:147
FunctionrenderCost
(data)
dashboard/app.js:276
FunctionrenderFleet
(data)
dashboard/app.js:196
FunctionrenderHandoffs
(data)
dashboard/app.js:399
FunctionrenderHooks
(data)
dashboard/app.js:329
FunctionrenderLoops
(data)
dashboard/app.js:229
FunctionrenderOverview
(data)
dashboard/app.js:77
Functionrun
()
scripts/compat-tests/compat-16-size-limit.js:14
Functionrun
()
scripts/compat-tests/compat-04-hook-adapter.js:11
Functionrun
()
scripts/compat-tests/compat-15-config-generation.js:13
Functionrun
()
scripts/compat-tests/compat-05-mcp-translation.js:13
Functionrun
()
scripts/compat-tests/compat-11-telemetry-portability.js:11
Functionrun
()
scripts/compat-tests/compat-14-runtime-detection.js:12
Functionrun
()
scripts/compat-tests/compat-10-campaign-portability.js:11
Functionrun
()
scripts/compat-tests/compat-07-agent-translation.js:13
FunctionsecurityWarning
(hook, message)
hooks_src/harness-health-util.js:435
Functionsend
(event)
packages/client/index.js:12
Functionslug
(value)
scripts/stack-plan.js:41
Functionsnapshot
(args = {})
core/sandbox/providers.js:94
Functionstart
()
core/sandbox/providers.js:62
Functionstatus
(args = {})
core/sandbox/providers.js:77
Functionstop
()
core/sandbox/providers.js:65
FunctionsummarizeSession
(content)
core/fleet/session.js:277
FunctiontoNative
* 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
FunctiontoUniversal
* 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
FunctionupdateBranch
(item, detail)
core/deploy-steward/steward.js:474
FunctionupdateBranch
(item)
scripts/test-deploy-steward.js:69
FunctionvalidateCommand
(command)
hooks_src/harness-health-util.js:433
FunctionvalidatePath
(filePath)
hooks_src/harness-health-util.js:432
FunctionvalidateRuntimeContract
(contract)
core/contracts/runtime.js:73
FunctionvalidateTrustObject
(trust)
core/telemetry/schema.js:146
FunctionverifyAuditIntegrity
* 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
FunctionwriteAuditLog
* 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
FunctionwriteConsent
* 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
← previous1,501–1,589 of 1,589, ranked by callers