Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoogleCloudPlatform/scion
/ functions
Functions
37,088 in github.com/GoogleCloudPlatform/scion
⨍
Functions
37,088
◇
Types & classes
3,520
↓ 16 callers
Method
GetHarnessConfigBySlug
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 callers
Method
GetMeta
GetMeta retrieves secret metadata without the value.
pkg/secret/secret.go:124
↓ 16 callers
Method
GetProjectProviders
GetProjectProviders returns all providers to a project.
pkg/store/store.go:572
↓ 16 callers
Method
GetUserMappingByEmail
(ctx context.Context, email string)
extras/scion-telegram/internal/telegram/store.go:48
↓ 16 callers
Method
HealthCheck
HealthCheck retrieves health status.
pkg/plugin/config.go:144
↓ 16 callers
Method
Labels
Labels returns the value of the "labels" field in the mutation.
pkg/ent/mutation.go:2029
↓ 16 callers
Method
ListAgents
ListAgents returns agents in a project.
pkg/hubclient/projects.go:48
↓ 16 callers
Method
ListSecrets
ListSecrets returns secret metadata matching the filter criteria. Note: EncryptedValue is NOT populated in the returned secrets.
pkg/store/store.go:648
↓ 16 callers
Function
LoadSingleFileVersioned
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 callers
Function
NewControlChannelManager
NewControlChannelManager creates a new control channel manager.
pkg/hub/controlchannel.go:72
↓ 16 callers
Function
NewHeartbeatService
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 callers
Function
NewHubHandler
NewHubHandler creates a new hub handler. Returns nil if the Hub client is not configured.
pkg/sciontool/hooks/handlers/hub.go:27
↓ 16 callers
Method
OwnerID
OwnerID returns the value of the "owner_id" field in the mutation.
pkg/ent/mutation.go:1908
↓ 16 callers
Method
Parse
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 callers
Method
Put
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 callers
Function
ReadProjectMarker
ReadProjectMarker reads and parses a .scion marker file.
pkg/config/project_marker.go:105
↓ 16 callers
Method
Revoked
Revoked returns the value of the "revoked" field in the mutation.
pkg/ent/mutation.go:5420
↓ 16 callers
Method
ScopeType
ScopeType returns the value of the "scope_type" field in the mutation.
pkg/ent/mutation.go:335
↓ 16 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the ProjectSyncStateCreate.OnConflict documentation for more info.
pkg/ent/projectsyncstate_create.go:433
↓ 16 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the ProjectSyncStateCreateBulk.OnConflict documentation for more info.
pkg/ent/projectsyncstate_create.go:760
↓ 16 callers
Method
UpdateTaskState
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 callers
Method
UpdatedBy
UpdatedBy returns the value of the "updated_by" field in the mutation.
pkg/ent/mutation.go:33545
↓ 16 callers
Method
Version
Version returns the value of the "version" field in the mutation.
pkg/ent/mutation.go:32187
↓ 16 callers
Method
WriteJSON
WriteJSON marshals v to JSON and writes it to the WebSocket connection. This method is thread-safe.
pkg/wsprotocol/connection.go:141
↓ 16 callers
Function
errForTest
(msg string)
pkg/util/logging/resilient_cloud_handler_test.go:618
↓ 16 callers
Method
gcpSecretName
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 callers
Function
getAgentDisplayStatus
(agent: Agent)
web/src/shared/types.ts:238
↓ 16 callers
Method
getEvent
getEvent returns an event by ID (test helper, no error).
pkg/hub/scheduler_test.go:459
↓ 16 callers
Function
makeTestJWT
makeTestJWT builds a minimal JWT with the given expiry for testing.
pkg/sciontool/hub/oidc_test.go:34
↓ 16 callers
Function
marshalRawJSON
============================================================================= JSON helpers Several columns are stored as raw JSON strings (matching t
pkg/store/entadapter/project_store.go:68
↓ 16 callers
Method
methodURL
methodURL constructs the full URL for a Telegram Bot API method.
extras/scion-telegram/internal/telegram/api.go:310
↓ 16 callers
Function
newFollowUpTestBridge
--- 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 callers
Function
newMockMountChecker
()
pkg/runtimebroker/nfs_mount_test.go:51
↓ 16 callers
Function
newStore
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 callers
Function
newTestAgentStore
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 callers
Function
newTestBroker
(t *testing.T, tgSrv *fakeTelegramServer)
extras/scion-telegram/internal/telegram/telegram_test.go:126
↓ 16 callers
Function
newTestBrokerWithRegistration
(t *testing.T, tgSrv *fakeTelegramServer)
extras/scion-telegram/internal/telegram/register_test.go:116
↓ 16 callers
Function
resolveTargetAgents
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 callers
Method
route
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 callers
Function
sessionString
sessionString is a helper to safely extract a string from session values.
pkg/hub/web.go:1871
↓ 16 callers
Function
setupIntegrationTest
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 callers
Function
stripMentions
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 callers
Function
validHTTPHook
validHTTPHook returns a minimal valid http hook for test setup.
pkg/lifecyclehooks/validate_test.go:89
↓ 16 callers
Function
writeError
writeError writes a JSON error response.
pkg/runtimebroker/errors.go:52
↓ 15 callers
Method
Annotations
Annotations of the Skill.
pkg/ent/schema/skill.go:87
↓ 15 callers
Method
ApplyAuth
ApplyAuth adds HMAC authentication headers to the request.
pkg/apiclient/hmac.go:49
↓ 15 callers
Method
BootstrapHarnessConfigsFromDir
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 callers
Method
BootstrapTemplatesFromDir
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 callers
Method
ClaimRuntimeBrokerConnection
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 callers
Function
DefaultControlChannelConfig
DefaultControlChannelConfig returns the default control channel configuration.
pkg/hub/controlchannel.go:50
↓ 15 callers
Method
EventType
EventType returns the value of the "event_type" field in the mutation.
pkg/ent/mutation.go:29744
↓ 15 callers
Method
GetConversationContext
(ctx context.Context, telegramUserID string, projectID string, agentSlug string)
extras/scion-telegram/internal/telegram/store.go:38
↓ 15 callers
Function
GetGitProjectExternalAgentsDir
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 callers
Method
GetProjectAgents
(ctx context.Context, projectID string)
extras/scion-telegram/internal/telegram/store.go:43
↓ 15 callers
Method
Integration
Integration returns the value of the "integration" field in the mutation.
pkg/ent/mutation.go:15599
↓ 15 callers
Method
IsSharedWorkspace
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 callers
Method
IsValid
IsValid reports whether p is one of the defined Phase constants.
pkg/agent/state/state.go:100
↓ 15 callers
Method
KeyHash
KeyHash returns the value of the "key_hash" field in the mutation.
pkg/ent/mutation.go:5335
↓ 15 callers
Function
ListSharers
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 callers
Method
Middleware
Middleware returns an HTTP middleware handler that validates HMAC signatures.
pkg/runtimebroker/brokerauth.go:63
↓ 15 callers
Function
New
New creates a new Supervisor with the given configuration.
pkg/sciontool/supervisor/supervisor.go:74
↓ 15 callers
Function
NewAPIClient
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 callers
Function
NewAgentTokenService
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 callers
Function
NewOAuthService
NewOAuthService creates a new OAuth service.
pkg/hub/oauth.go:116
↓ 15 callers
Method
Resolve
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 callers
Function
ResolveHarnessConfigName
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 callers
Function
ResourceStoragePath
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 callers
Method
Save
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 callers
Method
SavePendingAskUser
PendingAskUser
extras/scion-telegram/internal/telegram/store.go:55
↓ 15 callers
Method
Signal
Signal sends a signal to the child process.
pkg/sciontool/supervisor/supervisor.go:190
↓ 15 callers
Method
Skills
Skills returns the skill operations interface.
pkg/hubclient/client.go:46
↓ 15 callers
Method
Start
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 callers
Method
Status
Status returns a snapshot of the scheduler's current state.
pkg/hub/scheduler.go:482
↓ 15 callers
Method
SubscriberID
SubscriberID returns the value of the "subscriber_id" field in the mutation.
pkg/ent/mutation.go:22340
↓ 15 callers
Method
ToQuery
ToQuery adds pagination parameters to a URL query.
pkg/apiclient/pagination.go:40
↓ 15 callers
Method
TriggerActivities
TriggerActivities returns the value of the "trigger_activities" field in the mutation.
pkg/ent/mutation.go:36362
↓ 15 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the MaintenanceOperationRunCreate.OnConflict documentation for more info.
pkg/ent/maintenanceoperationrun_create.go:453
↓ 15 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the MaintenanceOperationRunCreateBulk.OnConflict documentation for more info.
pkg/ent/maintenanceoperationrun_create.go:776
↓ 15 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the IntegrationUpdateCreate.OnConflict documentation for more info.
pkg/ent/integrationupdate_create.go:458
↓ 15 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the IntegrationUpdateCreateBulk.OnConflict documentation for more info.
pkg/ent/integrationupdate_create.go:781
↓ 15 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the NotificationSubscriptionCreate.OnConflict documentation for more info.
pkg/ent/notificationsubscription_create.go:466
↓ 15 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the NotificationSubscriptionCreateBulk.OnConflict documentation for more info.
pkg/ent/notificationsubscription_create.go:789
↓ 15 callers
Method
UpdateTime
UpdateTime returns the value of the "update_time" field in the mutation.
pkg/ent/mutation.go:15792
↓ 15 callers
Method
UpdatedAt
UpdatedAt returns the value of the "updated_at" field in the mutation.
pkg/ent/mutation.go:6612
↓ 15 callers
Method
ValidateAgentToken
ValidateAgentToken validates a JWT and returns the claims if valid.
pkg/hub/agenttoken.go:150
↓ 15 callers
Method
ValidateUserToken
ValidateUserToken validates a JWT and returns the claims if valid.
pkg/hub/usertoken.go:221
↓ 15 callers
Function
agentKey
agentKey returns a composite key for project-scoped agent isolation.
extras/scion-a2a-bridge/internal/bridge/bridge.go:242
↓ 15 callers
Method
buildCreateRequest
buildCreateRequest builds a RemoteCreateAgentRequest from the agent's store record. This is shared between DispatchAgentCreate and DispatchAgentProvis
pkg/hub/httpdispatcher.go:251
↓ 15 callers
Method
clear
()
web/src/client/debug-log.ts:79
↓ 15 callers
Method
createProjectMembersGroupAndPolicy
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 callers
Function
createTestTemplate
createTestTemplate creates a template in the store with the given files pre-populated in storage.
pkg/hub/template_file_handlers_test.go:118
↓ 15 callers
Function
defaultResolver
defaultResolver returns a resolver with a single verified hub SA.
pkg/lifecyclehooks/validate_test.go:78
↓ 15 callers
Function
doBootstrapRequest
doBootstrapRequest performs an authenticated HTTP request for bootstrap tests.
pkg/hub/bootstrap_test.go:239
↓ 15 callers
Method
getCalls
()
pkg/hub/user_activity_test.go:48
↓ 15 callers
Function
groveChannel
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 callers
Method
handleGroupMessage
handleGroupMessage processes a group message through @-mention routing.
extras/scion-telegram/internal/telegram/broker_v2.go:1636
↓ 15 callers
Function
hasNonBotUserMention
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 callers
Function
interactionUserID
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 callers
Function
isPartialMentionEntity
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 callers
Function
mergeMaps
(base, override map[string]string)
pkg/config/settings.go:248
← previous
next →
601–700 of 37,088, ranked by callers