MCPcopy Create free account

hub / github.com/GoogleCloudPlatform/scion / functions

Functions37,088 in github.com/GoogleCloudPlatform/scion

↓ 16 callersMethodGetHarnessConfigBySlug
GetHarnessConfigBySlug retrieves a harness config by its slug and scope. Returns ErrNotFound if the harness config doesn't exist.
pkg/store/store.go:464
↓ 16 callersMethodGetMeta
GetMeta retrieves secret metadata without the value.
pkg/secret/secret.go:124
↓ 16 callersMethodGetProjectProviders
GetProjectProviders returns all providers to a project.
pkg/store/store.go:572
↓ 16 callersMethodGetUserMappingByEmail
(ctx context.Context, email string)
extras/scion-telegram/internal/telegram/store.go:48
↓ 16 callersMethodHealthCheck
HealthCheck retrieves health status.
pkg/plugin/config.go:144
↓ 16 callersMethodLabels
Labels returns the value of the "labels" field in the mutation.
pkg/ent/mutation.go:2029
↓ 16 callersMethodListAgents
ListAgents returns agents in a project.
pkg/hubclient/projects.go:48
↓ 16 callersMethodListSecrets
ListSecrets returns secret metadata matching the filter criteria. Note: EncryptedValue is NOT populated in the returned secrets.
pkg/store/store.go:648
↓ 16 callersFunctionLoadSingleFileVersioned
loadSingleFileVersioned loads a single settings file from dir into a VersionedSettings struct. Unlike LoadVersionedSettings, this does NOT merge defau
pkg/config/settings_v1.go:1940
↓ 16 callersFunctionNewControlChannelManager
NewControlChannelManager creates a new control channel manager.
pkg/hub/controlchannel.go:72
↓ 16 callersFunctionNewHeartbeatService
NewHeartbeatService creates a new heartbeat service. The client must be an authenticated hubclient.RuntimeBrokerService. The manager is used to gather
pkg/runtimebroker/heartbeat.go:87
↓ 16 callersFunctionNewHubHandler
NewHubHandler creates a new hub handler. Returns nil if the Hub client is not configured.
pkg/sciontool/hooks/handlers/hub.go:27
↓ 16 callersMethodOwnerID
OwnerID returns the value of the "owner_id" field in the mutation.
pkg/ent/mutation.go:1908
↓ 16 callersMethodParse
Parse converts a harness event payload into a normalized Event using the mapping spec. Common fields (prompt, tool_name, message, etc.) are always ext
pkg/sciontool/hooks/dialects/mapping.go:53
↓ 16 callersMethodPut
Put stores template files in the cache under their content hash. files maps relative file paths to their content. It returns the path to the stored di
pkg/templatecache/cache.go:145
↓ 16 callersFunctionReadProjectMarker
ReadProjectMarker reads and parses a .scion marker file.
pkg/config/project_marker.go:105
↓ 16 callersMethodRevoked
Revoked returns the value of the "revoked" field in the mutation.
pkg/ent/mutation.go:5420
↓ 16 callersMethodScopeType
ScopeType returns the value of the "scope_type" field in the mutation.
pkg/ent/mutation.go:335
↓ 16 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the ProjectSyncStateCreate.OnConflict documentation for more info.
pkg/ent/projectsyncstate_create.go:433
↓ 16 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the ProjectSyncStateCreateBulk.OnConflict documentation for more info.
pkg/ent/projectsyncstate_create.go:760
↓ 16 callersMethodUpdateTaskState
UpdateTaskState updates a task's state and updated_at timestamp. Terminal states (completed, failed, canceled, rejected) are protected: once a task re
extras/scion-a2a-bridge/internal/state/state.go:196
↓ 16 callersMethodUpdatedBy
UpdatedBy returns the value of the "updated_by" field in the mutation.
pkg/ent/mutation.go:33545
↓ 16 callersMethodVersion
Version returns the value of the "version" field in the mutation.
pkg/ent/mutation.go:32187
↓ 16 callersMethodWriteJSON
WriteJSON marshals v to JSON and writes it to the WebSocket connection. This method is thread-safe.
pkg/wsprotocol/connection.go:141
↓ 16 callersFunctionerrForTest
(msg string)
pkg/util/logging/resilient_cloud_handler_test.go:618
↓ 16 callersMethodgcpSecretName
gcpSecretName builds a sanitized GCP SM secret ID from the scion secret identity. Format: scion-{scope}-{sha256(hubID:scopeID)[:12]}-{name} The hubID
pkg/secret/gcpbackend.go:433
↓ 16 callersFunctiongetAgentDisplayStatus
(agent: Agent)
web/src/shared/types.ts:238
↓ 16 callersMethodgetEvent
getEvent returns an event by ID (test helper, no error).
pkg/hub/scheduler_test.go:459
↓ 16 callersFunctionmakeTestJWT
makeTestJWT builds a minimal JWT with the given expiry for testing.
pkg/sciontool/hub/oidc_test.go:34
↓ 16 callersFunctionmarshalRawJSON
============================================================================= JSON helpers Several columns are stored as raw JSON strings (matching t
pkg/store/entadapter/project_store.go:68
↓ 16 callersMethodmethodURL
methodURL constructs the full URL for a Telegram Bot API method.
extras/scion-telegram/internal/telegram/api.go:310
↓ 16 callersFunctionnewFollowUpTestBridge
--- Test helpers --- newFollowUpTestBridge creates a Bridge wired to a mock hub client and real SQLite store.
extras/scion-a2a-bridge/internal/bridge/followup_test.go:151
↓ 16 callersFunctionnewMockMountChecker
()
pkg/runtimebroker/nfs_mount_test.go:51
↓ 16 callersFunctionnewStore
newStore returns a CompositeStore backed by a fresh, isolated Postgres schema with a pool large enough that the suite's concurrent writers genuinely o
pkg/store/integrationtest/harness_test.go:72
↓ 16 callersFunctionnewTestAgentStore
newTestAgentStore returns a fresh Ent-backed AgentStore with a single project seeded to satisfy the required project FK. MaxOpenConns is pinned to 1 s
pkg/store/entadapter/agent_store_test.go:36
↓ 16 callersFunctionnewTestBroker
(t *testing.T, tgSrv *fakeTelegramServer)
extras/scion-telegram/internal/telegram/telegram_test.go:126
↓ 16 callersFunctionnewTestBrokerWithRegistration
(t *testing.T, tgSrv *fakeTelegramServer)
extras/scion-telegram/internal/telegram/register_test.go:116
↓ 16 callersFunctionresolveTargetAgents
resolveTargetAgents determines which agents a message should be routed to. Returns a deduplicated list of agent slugs and whether @all was used. Thre
extras/scion-discord/internal/discord/mentions.go:21
↓ 16 callersMethodroute
route decides how to deliver a dispatch for brokerID. Stateless local broker identities represent a shared, replica-independent runtime capability and
pkg/hub/broker_routing.go:83
↓ 16 callersFunctionsessionString
sessionString is a helper to safely extract a string from session values.
pkg/hub/web.go:1871
↓ 16 callersFunctionsetupIntegrationTest
setupIntegrationTest creates a test environment with: - An in-memory SQLite store with migrations applied - A Hub test server with dev auth - A Channe
pkg/hub/notifications_integration_test.go:56
↓ 16 callersFunctionstripMentions
stripMentions removes @botUsername and @agentSlug mentions from text, returning clean content. Uses regex-based matching to preserve all whitespace an
extras/scion-telegram/internal/telegram/mentions.go:240
↓ 16 callersFunctionvalidHTTPHook
validHTTPHook returns a minimal valid http hook for test setup.
pkg/lifecyclehooks/validate_test.go:89
↓ 16 callersFunctionwriteError
writeError writes a JSON error response.
pkg/runtimebroker/errors.go:52
↓ 15 callersMethodAnnotations
Annotations of the Skill.
pkg/ent/schema/skill.go:87
↓ 15 callersMethodApplyAuth
ApplyAuth adds HMAC authentication headers to the request.
pkg/apiclient/hmac.go:49
↓ 15 callersMethodBootstrapHarnessConfigsFromDir
BootstrapHarnessConfigsFromDir imports or updates local harness configs from a directory into the Hub's database and storage. On first run it imports
pkg/hub/harness_config_bootstrap.go:32
↓ 15 callersMethodBootstrapTemplatesFromDir
BootstrapTemplatesFromDir imports or updates local templates from a directory into the Hub's database and storage. On first run it imports all templat
pkg/hub/template_bootstrap.go:32
↓ 15 callersMethodClaimRuntimeBrokerConnection
ClaimRuntimeBrokerConnection records this hub instance as the owner of the broker's live control-channel socket. The newest connection wins (unconditi
pkg/store/store.go:327
↓ 15 callersFunctionDefaultControlChannelConfig
DefaultControlChannelConfig returns the default control channel configuration.
pkg/hub/controlchannel.go:50
↓ 15 callersMethodEventType
EventType returns the value of the "event_type" field in the mutation.
pkg/ent/mutation.go:29744
↓ 15 callersMethodGetConversationContext
(ctx context.Context, telegramUserID string, projectID string, agentSlug string)
extras/scion-telegram/internal/telegram/store.go:38
↓ 15 callersFunctionGetGitProjectExternalAgentsDir
GetGitProjectExternalAgentsDir returns the external agents directory for a git project. Git projects store agent homes externally at ~/.scion/project-
pkg/config/project_marker.go:272
↓ 15 callersMethodGetProjectAgents
(ctx context.Context, projectID string)
extras/scion-telegram/internal/telegram/store.go:43
↓ 15 callersMethodIntegration
Integration returns the value of the "integration" field in the mutation.
pkg/ent/mutation.go:15599
↓ 15 callersMethodIsSharedWorkspace
IsSharedWorkspace returns true if this is a git project configured to use a single shared workspace clone instead of per-agent clones.
pkg/store/models.go:329
↓ 15 callersMethodIsValid
IsValid reports whether p is one of the defined Phase constants.
pkg/agent/state/state.go:100
↓ 15 callersMethodKeyHash
KeyHash returns the value of the "key_hash" field in the mutation.
pkg/ent/mutation.go:5335
↓ 15 callersFunctionListSharers
ListSharers returns the current sharer agent IDs and worktreePath for a branch. If no marker exists, sharers is nil and worktreePath is "".
pkg/provision/sharers.go:143
↓ 15 callersMethodMiddleware
Middleware returns an HTTP middleware handler that validates HMAC signatures.
pkg/runtimebroker/brokerauth.go:63
↓ 15 callersFunctionNew
New creates a new Supervisor with the given configuration.
pkg/sciontool/supervisor/supervisor.go:74
↓ 15 callersFunctionNewAPIClient
NewAPIClient creates a new Telegram API client. The baseURL parameter allows overriding the API URL for testing.
extras/scion-telegram/internal/telegram/api.go:297
↓ 15 callersFunctionNewAgentTokenService
NewAgentTokenService creates a new agent token service. If signingKey is empty, a random key is generated (suitable for development).
pkg/hub/agenttoken.go:88
↓ 15 callersFunctionNewOAuthService
NewOAuthService creates a new OAuth service.
pkg/hub/oauth.go:116
↓ 15 callersMethodResolve
Resolve takes a batch of skill references and returns resolved skills. Errors for individual skills are returned per-skill, not as a single error, so
pkg/agent/skill_resolver.go:48
↓ 15 callersFunctionResolveHarnessConfigName
ResolveHarnessConfigName determines which harness-config to use for an agent. Resolution priority chain (first non-empty wins): 1. CLIFlag (--harness-
pkg/config/resolve_harness_config.go:48
↓ 15 callersFunctionResourceStoragePath
ResourceStoragePath returns the storage path for a file-based resource of the given kind, organized by scope. This is the single source of truth for t
pkg/storage/storage.go:234
↓ 15 callersMethodSave
Save writes credentials to a named file in the store directory. It enforces the dev-auth limit: only one dev-auth connection is allowed at a time.
pkg/brokercredentials/multistore.go:83
↓ 15 callersMethodSavePendingAskUser
PendingAskUser
extras/scion-telegram/internal/telegram/store.go:55
↓ 15 callersMethodSignal
Signal sends a signal to the child process.
pkg/sciontool/supervisor/supervisor.go:190
↓ 15 callersMethodSkills
Skills returns the skill operations interface.
pkg/hubclient/client.go:46
↓ 15 callersMethodStart
Start subscribes to agent status events and spawns a goroutine to process them. It is safe to call multiple times; only the first call has an effect.
pkg/hub/lifecycle_hook_evaluator.go:300
↓ 15 callersMethodStatus
Status returns a snapshot of the scheduler's current state.
pkg/hub/scheduler.go:482
↓ 15 callersMethodSubscriberID
SubscriberID returns the value of the "subscriber_id" field in the mutation.
pkg/ent/mutation.go:22340
↓ 15 callersMethodToQuery
ToQuery adds pagination parameters to a URL query.
pkg/apiclient/pagination.go:40
↓ 15 callersMethodTriggerActivities
TriggerActivities returns the value of the "trigger_activities" field in the mutation.
pkg/ent/mutation.go:36362
↓ 15 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the MaintenanceOperationRunCreate.OnConflict documentation for more info.
pkg/ent/maintenanceoperationrun_create.go:453
↓ 15 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the MaintenanceOperationRunCreateBulk.OnConflict documentation for more info.
pkg/ent/maintenanceoperationrun_create.go:776
↓ 15 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the IntegrationUpdateCreate.OnConflict documentation for more info.
pkg/ent/integrationupdate_create.go:458
↓ 15 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the IntegrationUpdateCreateBulk.OnConflict documentation for more info.
pkg/ent/integrationupdate_create.go:781
↓ 15 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the NotificationSubscriptionCreate.OnConflict documentation for more info.
pkg/ent/notificationsubscription_create.go:466
↓ 15 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the NotificationSubscriptionCreateBulk.OnConflict documentation for more info.
pkg/ent/notificationsubscription_create.go:789
↓ 15 callersMethodUpdateTime
UpdateTime returns the value of the "update_time" field in the mutation.
pkg/ent/mutation.go:15792
↓ 15 callersMethodUpdatedAt
UpdatedAt returns the value of the "updated_at" field in the mutation.
pkg/ent/mutation.go:6612
↓ 15 callersMethodValidateAgentToken
ValidateAgentToken validates a JWT and returns the claims if valid.
pkg/hub/agenttoken.go:150
↓ 15 callersMethodValidateUserToken
ValidateUserToken validates a JWT and returns the claims if valid.
pkg/hub/usertoken.go:221
↓ 15 callersFunctionagentKey
agentKey returns a composite key for project-scoped agent isolation.
extras/scion-a2a-bridge/internal/bridge/bridge.go:242
↓ 15 callersMethodbuildCreateRequest
buildCreateRequest builds a RemoteCreateAgentRequest from the agent's store record. This is shared between DispatchAgentCreate and DispatchAgentProvis
pkg/hub/httpdispatcher.go:251
↓ 15 callersMethodclear
()
web/src/client/debug-log.ts:79
↓ 15 callersMethodcreateProjectMembersGroupAndPolicy
createProjectMembersGroupAndPolicy creates an explicit members group for a project and a policy allowing members to create agents. Best-effort; failur
pkg/hub/handlers_projects_core.go:479
↓ 15 callersFunctioncreateTestTemplate
createTestTemplate creates a template in the store with the given files pre-populated in storage.
pkg/hub/template_file_handlers_test.go:118
↓ 15 callersFunctiondefaultResolver
defaultResolver returns a resolver with a single verified hub SA.
pkg/lifecyclehooks/validate_test.go:78
↓ 15 callersFunctiondoBootstrapRequest
doBootstrapRequest performs an authenticated HTTP request for bootstrap tests.
pkg/hub/bootstrap_test.go:239
↓ 15 callersMethodgetCalls
()
pkg/hub/user_activity_test.go:48
↓ 15 callersFunctiongroveChannel
groveChannel builds the Postgres channel name for a grove id, hashing the id if the resulting identifier would exceed the Postgres length limit.
pkg/hub/events_postgres.go:697
↓ 15 callersMethodhandleGroupMessage
handleGroupMessage processes a group message through @-mention routing.
extras/scion-telegram/internal/telegram/broker_v2.go:1636
↓ 15 callersFunctionhasNonBotUserMention
hasNonBotUserMention returns true if the message starts with (offset=0) a mention or text_mention entity pointing to a Telegram user who is neither th
extras/scion-telegram/internal/telegram/mentions.go:318
↓ 15 callersFunctioninteractionUserID
interactionUserID extracts the Discord user ID from an interaction, handling both guild (Member) and DM (User) contexts.
extras/scion-discord/internal/discord/commands.go:1007
↓ 15 callersFunctionisPartialMentionEntity
isPartialMentionEntity checks whether a Telegram mention entity covers only part of a longer token in the message text. This happens when agent names
extras/scion-telegram/internal/telegram/mentions.go:148
↓ 15 callersFunctionmergeMaps
(base, override map[string]string)
pkg/config/settings.go:248
← previousnext →601–700 of 37,088, ranked by callers