MCPcopy Create free account

hub / github.com/GoogleCloudPlatform/scion / functions

Functions37,088 in github.com/GoogleCloudPlatform/scion

↓ 30 callersMethodName
Name returns the dialect name (e.g., "claude", "gemini")
pkg/sciontool/hooks/types.go:110
↓ 30 callersMethodProvider
Provider returns the storage provider type.
pkg/storage/storage.go:144
↓ 30 callersMethodSetCreatedBy
SetCreatedBy sets the "created_by" field.
pkg/ent/mutation.go:1854
↓ 30 callersMethodSetUpdated
SetUpdated sets the "updated" field.
pkg/ent/mutation.go:3044
↓ 30 callersFunctionUnauthorized
Unauthorized writes a 401 Unauthorized response.
pkg/hub/errors.go:184
↓ 30 callersMethodadd
(category: DebugCategory, label: string, subject?: string, data?: unknown, direction?: DebugDirection)
web/src/client/debug-log.ts:60
↓ 30 callersFunctionnewTestServer
(t *testing.T)
pkg/runtimebroker/handlers_test.go:99
↓ 29 callersFunctionConfirmAction
ConfirmAction prompts user for Y/n confirmation. Returns true if confirmed, false otherwise. If autoConfirm is true, always confirms Yes (proceeds wit
pkg/hubsync/prompt.go:30
↓ 29 callersMethodDB
DB returns the underlying *sql.DB, or nil if the client is not backed by a database/sql driver. It is an escape hatch for diagnostics and tests that n
pkg/store/entadapter/composite.go:180
↓ 29 callersMethodDelete
Delete deletes the object at the specified path.
pkg/storage/storage.go:158
↓ 29 callersFunctionGetAgentIdentityFromContext
GetAgentIdentityFromContext returns the agent identity if present.
pkg/hub/identity.go:179
↓ 29 callersFunctionInfo
Info logs an informational message.
pkg/sciontool/log/log.go:86
↓ 29 callersMethodInt
Int returns a single int from a selector. It is only allowed when selecting one field.
pkg/ent/ent.go:448
↓ 29 callersMethodMkdir
(ctx context.Context, name string, perm os.FileMode)
pkg/hub/project_webdav.go:238
↓ 29 callersFunctionNewCompositeStore
NewCompositeStore creates a store.Store backed entirely by the given Ent client. Each domain sub-store shares the same client and therefore the same u
pkg/store/entadapter/composite.go:70
↓ 29 callersFunctionNewNotification
NewNotification creates a new notification message (state-change or input-needed).
pkg/messages/types.go:189
↓ 29 callersMethodRename
(ctx context.Context, oldName, newName string)
pkg/hub/project_webdav.go:271
↓ 29 callersMethodWriteHeader
(code int)
pkg/runtimebroker/server.go:1699
↓ 29 callersMethodlog
()
web/src/client/debug-log.ts:48
↓ 29 callersFunctionmakeAgent
makeAgent builds a minimal valid agent for the seeded project.
pkg/store/entadapter/agent_store_test.go:51
↓ 29 callersFunctionnewTestStore
(t *testing.T)
extras/scion-discord/internal/discord/store_test.go:13
↓ 29 callersMethodreply
--- Helper methods --- reply sends a text message back to the space where the event originated. Used by non-command handlers (actions, messages, etc.)
extras/scion-chat-app/internal/chatapp/commands.go:1258
↓ 29 callersFunctionwriteJSON
Helper functions writeJSON writes a JSON response.
pkg/runtimebroker/server.go:1707
↓ 28 callersMethodBucket
Bucket returns the bucket name.
pkg/storage/storage.go:141
↓ 28 callersFunctionCheckHubAvailabilityWithOptions
CheckHubAvailabilityWithOptions is like CheckHubAvailability but allows skipping sync.
cmd/common.go:213
↓ 28 callersMethodCreateHarnessConfig
CreateHarnessConfig creates a new harness config record.
pkg/store/store.go:456
↓ 28 callersFunctionGetRuntime
GetRuntime returns the appropriate Runtime implementation based on environment, agent configuration (if available via GetAgentSettings), and project/g
pkg/runtime/factory.go:31
↓ 28 callersMethodHarnessConfigs
HarnessConfigs returns the harness config operations interface.
pkg/hubclient/client.go:55
↓ 28 callersMethodIsConfigured
IsConfigured returns true if the client is properly configured. Requires hubURL, token, and agentID to all be set.
pkg/sciontool/hub/client.go:230
↓ 28 callersMethodResolve
Resolve collects and merges secrets from all applicable scopes for an agent. Scopes are resolved in order: user < project < runtime_broker (later over
pkg/secret/secret.go:131
↓ 28 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the LifecycleHookCreate.OnConflict documentation for more info.
pkg/ent/lifecyclehook_create.go:625
↓ 28 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the LifecycleHookCreateBulk.OnConflict documentation for more info.
pkg/ent/lifecyclehook_create.go:1039
↓ 28 callersMethodload
Public method to refresh the list.
web/src/components/shared/resource-list.ts:317
↓ 28 callersFunctionnewStubEventBus
()
pkg/eventbus/fanout_test.go:41
↓ 28 callersMethodrespondUpdate
respondUpdate edits the deferred interaction response to update the message. This is used after the broker has already acknowledged with InteractionRe
extras/scion-discord/internal/discord/callbacks.go:212
↓ 28 callersFunctionseedHookAgent
seedHookAgent creates an agent in the store and returns it.
pkg/hub/lifecycle_hook_evaluator_test.go:168
↓ 28 callersFunctionseedSecret
seedSecret inserts a secret directly into the store for testing read operations.
pkg/secret/localbackend_test.go:45
↓ 28 callersFunctiontid
tid deterministically maps a human-readable test identifier (e.g. "user-1") to a stable UUID string. The Ent-backed store uses UUID primary keys, so t
pkg/secret/teststore_test.go:35
↓ 27 callersMethodCreateMessage
CreateMessage persists a new message.
pkg/store/store.go:1130
↓ 27 callersMethodCreateNotificationSubscription
CreateNotificationSubscription creates a new notification subscription.
pkg/store/store.go:903
↓ 27 callersMethodGetGroupLink
(ctx context.Context, chatID int64)
extras/scion-telegram/internal/telegram/store.go:31
↓ 27 callersFunctionNewMultiStore
NewMultiStore creates a new multi-credential store at the given directory. If dir is empty, DefaultMultiDir() is used.
pkg/brokercredentials/multistore.go:59
↓ 27 callersFunctionProvisionShared
ProvisionShared is the universal, vendor-agnostic workspace provisioning function (Tier 1). It ensures the workspace directory exists and is ready for
pkg/provision/provision.go:153
↓ 27 callersMethodRead
Read returns the value of the "read" field in the mutation.
pkg/ent/mutation.go:21293
↓ 27 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the SkillRegistryCreate.OnConflict documentation for more info.
pkg/ent/skillregistry_create.go:652
↓ 27 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the SkillRegistryCreateBulk.OnConflict documentation for more info.
pkg/ent/skillregistry_create.go:1059
↓ 27 callersMethodbuildStartContext
buildStartContext unifies the common startup logic shared by createAgent, startAgent, restartAgent, and finalizeEnv: - Hub-managed project path resolu
pkg/runtimebroker/start_context.go:103
↓ 27 callersFunctionrunSimpleCommand
(ctx context.Context, command string, args ...string)
pkg/runtime/common.go:519
↓ 26 callersFunctionCheckHubAvailability
CheckHubAvailability checks if Hub integration is enabled and returns a ready-to-use Hub context if available. Returns nil if Hub should not be used (
cmd/common.go:208
↓ 26 callersFunctionDefaultServerConfig
DefaultServerConfig returns the default server configuration.
pkg/hub/server.go:229
↓ 26 callersMethodDisplayName
()
pkg/hub/identity.go:34
↓ 26 callersMethodModTime
ModTime returns the modification time of the credentials file. Returns zero time if the file doesn't exist or can't be stat'd.
pkg/brokercredentials/store.go:221
↓ 26 callersFunctionNewTelemetryHandler
NewTelemetryHandler creates a new telemetry handler. If tp is nil, a noop tracer will be used. If lp is non-nil, correlated log records will be emitte
pkg/sciontool/hooks/handlers/telemetry.go:75
↓ 26 callersMethodParse
Parse converts Claude Code event format to normalized Event. Claude Code sends events with the following format: { "hook_event_name": "PreToolUs
pkg/sciontool/hooks/dialects/claude.go:41
↓ 26 callersFunctionProvisionShared
ProvisionShared delegates to provision.ProvisionShared.
pkg/runtime/workspace_provision.go:30
↓ 26 callersMethodSubscribe
Subscribe returns a channel that receives events matching the given patterns, and an unsubscribe function. The channel is buffered with capacity 64. P
pkg/hub/events.go:261
↓ 26 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the GroupCreate.OnConflict documentation for more info.
pkg/ent/group_create.go:725
↓ 26 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the GroupCreateBulk.OnConflict documentation for more info.
pkg/ent/group_create.go:1125
↓ 26 callersMethodVisibility
Visibility returns the value of the "visibility" field in the mutation.
pkg/ent/mutation.go:1993
↓ 26 callersFunctionagentResource
agentResource constructs a Resource from a store.Agent for capability computation.
pkg/hub/capabilities.go:57
↓ 26 callersFunctionbuildCommonRunArgs
buildCommonRunArgs constructs the common arguments for 'run' command across different runtimes.
pkg/runtime/common.go:98
↓ 26 callersFunctionnewCapturingAuditLogger
()
pkg/hub/lifecycle_hook_executor_test.go:89
↓ 26 callersFunctionnewDevAuthWebServer
newDevAuthWebServer creates a web server with dev-auth enabled for testing authenticated routes without requiring OAuth.
pkg/hub/web_test.go:109
↓ 26 callersFunctionnewLifecycleTestBridge
newLifecycleTestBridge creates a Bridge with a real SQLite store for lifecycle tests. The broker worker and janitor goroutines are started; callers mu
extras/scion-a2a-bridge/internal/bridge/lifecycle_test.go:36
↓ 26 callersFunctionnewPostgresTestStore
(t *testing.T)
extras/scion-telegram/internal/telegram/store_postgres_test.go:29
↓ 26 callersFunctionnewTestAPIClient
newTestAPIClient creates a TelegramAPIClient pointed at the given httptest server.
extras/scion-telegram/internal/telegram/api_test.go:31
↓ 26 callersFunctionnewTestCompositeStore
newTestCompositeStore creates a CompositeStore backed by a single in-memory Ent database, matching the production single-database layout.
pkg/store/entadapter/composite_test.go:34
↓ 26 callersFunctionnewTestExecutor
newTestExecutor creates an HTTPExecutor with a test-friendly HTTP client that allows loopback connections (httptest servers bind to 127.0.0.1). The cl
pkg/hub/lifecycle_hook_executor_test.go:192
↓ 26 callersMethodpublishStatus
publishStatus publishes an agent status event via the event publisher.
pkg/hub/notifications_test.go:236
↓ 26 callersMethodrestore
()
cmd/hub_env_test.go:52
↓ 26 callersFunctionseedHookProject
seedHookProject creates a project in the store and returns its ID.
pkg/hub/lifecycle_hook_evaluator_test.go:153
↓ 25 callersMethodCircuitOpen
CircuitOpen returns true if the circuit breaker is currently open. Exposed for observability and testing.
pkg/util/logging/resilient_cloud_handler.go:227
↓ 25 callersFunctionComputeContentHash
ComputeContentHash computes the overall content hash from a list of file hashes. Files are sorted by path for deterministic ordering before hash compu
pkg/transfer/hash.go:56
↓ 25 callersMethodCreateEnvVar
CreateEnvVar creates a new environment variable. Returns ErrAlreadyExists if an env var with the same key+scope+scopeId exists.
pkg/store/store.go:585
↓ 25 callersMethodGetPendingAskUser
(ctx context.Context, requestID string)
extras/scion-telegram/internal/telegram/store.go:56
↓ 25 callersMethodHandleCommand
HandleCommand dispatches an incoming message to the appropriate command handler based on the command text. Returns true if the message was a recognize
extras/scion-telegram/internal/telegram/commands.go:76
↓ 25 callersFunctionInitMachine
InitMachine performs full global/machine-level setup: creates ~/.scion/, seeds settings, harness-configs, and the default agnostic template.
pkg/config/init.go:554
↓ 25 callersFunctionNewTestClient
(dyn dynamic.Interface, cs kubernetes.Interface)
pkg/k8s/client.go:260
↓ 25 callersMethodRollback
(context.Context, *Tx)
pkg/ent/tx.go:161
↓ 25 callersMethodSecrets
Secrets returns the secret operations interface.
pkg/hubclient/client.go:67
↓ 25 callersMethodSetProjectID
SetProjectID sets the "project_id" field.
pkg/ent/mutation.go:1782
↓ 25 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the ProjectContributorCreate.OnConflict documentation for more info.
pkg/ent/projectcontributor_create.go:547
↓ 25 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the ProjectContributorCreateBulk.OnConflict documentation for more info.
pkg/ent/projectcontributor_create.go:937
↓ 25 callersMethodValue
Value returns the ent.Value that was dynamically selected and assigned to the User. This includes values selected through modifiers, order, etc.
pkg/ent/user.go:188
↓ 25 callersMethodWorkspace
Workspace returns the workspace sync operations interface.
pkg/hubclient/client.go:58
↓ 25 callersFunctionclearTelemetryEnv
()
pkg/sciontool/telemetry/config_test.go:561
↓ 25 callersFunctionmaintenanceLogAttrs
maintenanceLogAttrs returns common slog attributes for maintenance operation logging.
pkg/hub/admin_maintenance.go:32
↓ 25 callersFunctionscrubHubEnv
scrubHubEnv clears all Hub-related environment variables for the duration of the test, preventing accidental communication with a real Hub when tests
pkg/sciontool/hooks/handlers/hub_test.go:22
↓ 24 callersMethodCommit
(context.Context, *Tx)
pkg/ent/tx.go:105
↓ 24 callersMethodDispatchAgentStart
DispatchAgentStart resumes a stopped agent on the runtime broker. task is an optional task string to pass to the agent on start. resume requests harne
pkg/hub/server.go:266
↓ 24 callersMethodHandle
Handle processes a hook event and emits a corresponding span.
pkg/sciontool/hooks/handlers/telemetry.go:179
↓ 24 callersMethodHandleBrokerMessage
HandleBrokerMessage enqueues a broker message for async dispatch, keeping the broker's Publish RPC non-blocking. Returns an error only if the queue is
extras/scion-a2a-bridge/internal/bridge/bridge.go:602
↓ 24 callersFunctionInitProject
(targetDir string, harnesses []api.Harness, opts ...InitProjectOpts)
pkg/config/init.go:238
↓ 24 callersMethodLimit
Limit the number of records to be returned by this query.
pkg/ent/user_query.go:47
↓ 24 callersFunctionNewKubernetesRuntime
(client *k8s.Client)
pkg/runtime/k8s_runtime.go:66
↓ 24 callersFunctionNewUserTokenService
NewUserTokenService creates a new user token service. If signingKey is empty, a random key is generated (suitable for development).
pkg/hub/usertoken.go:107
↓ 24 callersMethodStrings
Strings returns list of strings from a selector. It is only allowed when selecting one field.
pkg/ent/ent.go:380
↓ 24 callersFunctionTaggedInfo
TaggedInfo logs an informational message with an additional tag.
pkg/sciontool/log/log.go:91
↓ 24 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the SkillVersionCreate.OnConflict documentation for more info.
pkg/ent/skillversion_create.go:566
↓ 24 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the SkillVersionCreateBulk.OnConflict documentation for more info.
pkg/ent/skillversion_create.go:952
← previousnext →301–400 of 37,088, ranked by callers