MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,743 in github.com/PerpetualSoftware/pad

↓ 7 callersMethodrowExists
(t *testing.T, id string)
internal/store/attachments_gc_claim_test.go:75
↓ 7 callersFunctionrunItemBacklinks
(t *testing.T, format string, args ...string)
cmd/pad/bug4026_history_backlinks_json_test.go:239
↓ 7 callersMethodrunOpLogGCTick
runOpLogGCTick is one tick of the periodic loop. No outer timeout because PruneSweep itself is bounded by the size of the candidate list (one DB query
internal/server/oplog_gc.go:129
↓ 7 callersFunctionrunPidFileRefresh
runPidFileRefresh runs the real script against a stub on the test's own port and returns the pad.pid path and the fixture bytes written to it.
internal/buildtools/bug4068_pidfile_test.go:45
↓ 7 callersFunctionsameTimes
(a, b []time.Time)
internal/schedule/bounds_test.go:33
↓ 7 callersFunctionsameTitles
(t *testing.T, what string, got []string, want ...string)
internal/store/items_field_range_test.go:106
↓ 7 callersFunctionscanCollectionDoneFilters
scanCollectionDoneFilters consumes rows yielding (id, schema, settings) and resolves each into a collectionDoneFilter. When a collection's schema fai
internal/store/items.go:5323
↓ 7 callersFunctionscanRequestBody
scanRequestBody reads the whole body once. A body that is not exactly one well-formed JSON value reports nothing: the caller's own decode reports the
internal/server/middleware_request_text.go:542
↓ 7 callersMethodscheduleChangesQ
(q Queryer, workspaceID, scheduleID string)
internal/store/schedule_carry_v2.go:185
↓ 7 callersFunctionscheduleItemAction
(t *testing.T, name string)
internal/mcp/task4105_schedule_test.go:60
↓ 7 callersFunctionscriptEnvHazard
scriptEnvHazard reports why env is unsafe for an install-refresh run: - no port the script would resolve without falling back to its default (PAD_PORT
internal/buildtools/bug4066_harness_guard_test.go:133
↓ 7 callersFunctionseedAccess
seedAccess inserts an access-token row in the chain identified by requestID. ts is the requested_at timestamp; sessionData + scopes land on the row. R
internal/store/connected_apps_test.go:77
↓ 7 callersFunctionseedDormantCorpusLog
TASK-3531 U3/U4: the op-log GC tick compacts a dormant, flushed op-log into one snapshot instead of letting the sweep delete it; the sweep keeps it; a
internal/server/task3531_compaction_test.go:27
↓ 7 callersMethodseedGrantee
seedGrantee creates a throwaway user to be the recipient of a grant, for tests that need a real grant/link ID on a hidden or visible resource (BUG-192
internal/server/handlers_grant_visibility_test.go:128
↓ 7 callersFunctionseedSearchFiller
(t *testing.T, s *Store, wsID, colID string, n int, ts time.Time)
internal/store/search_rank_test.go:19
↓ 7 callersMethodseedSetAside
BUG-3244 ruling 2: rows a schema rebuild set aside refuse EVERY content write, token or not, unless it sends overwrite_pending_edits, which discards t
internal/server/bug3244_set_aside_guard_test.go:20
↓ 7 callersFunctionselectSortCollection
BUG-4400: sorting on a select field ordered by the option TEXT, so `priority:desc` put every medium before every low before every high. Property: prio
internal/store/bug4400_select_sort_test.go:18
↓ 7 callersFunctionsendSync
(t *testing.T, c *websocket.Conn, payload byte)
internal/collab/manager_test.go:494
↓ 7 callersFunctionseqPtr
(v int64)
internal/store/item_workspace_moves_test.go:68
↓ 7 callersFunctionserve
(t *testing.T, h http.HandlerFunc)
internal/notify/gateway_test.go:27
↓ 7 callersMethodserverHonorsKeys
serverHonorsKeys reports whether this server replays a keyed retry (TASK-3585). An older server ignores op_key, so retrying there could apply a write
internal/cli/client.go:1394
↓ 7 callersMethodsession
(t *testing.T, u *models.User)
internal/server/bug3687_activity_visible_page_test.go:61
↓ 7 callersFunctionsetUmask022
(t *testing.T)
internal/config/perms_unix_test.go:12
↓ 7 callersFunctionsettle
()
web/src/routes/(console)/needs/needsPage.svelte.test.ts:102
↓ 7 callersFunctionsetupSkillTest
BUG-3466: pad init used to rewrite every installed skill file that differed from the running binary's, so a team's edit was lost and an older pad rewr
cmd/pad/bug3466_skill_overwrite_test.go:20
↓ 7 callersFunctionsha256Hex
sha256Hex returns the hex-encoded sha256 of b. The FS storage backend keys blobs by this exact form, so the value also serves as the storage_key suffi
internal/server/handlers_attachments_thumbnails.go:406
↓ 7 callersFunctionshiftDay
(dateISO: string, days: number)
web/src/lib/calendar/presentation.ts:20
↓ 7 callersFunctionshow
(page: Page, username: string, slug: string, count: number)
web/e2e/lib/workspace-tabs.ts:84
↓ 7 callersMethodsince
since returns all buffered events with ID > sinceID, in chronological order. Returns nil when this buffer cannot vouch for completeness across the req
internal/events/bus.go:505
↓ 7 callersFunctionskipUnlessSQLite
(t *testing.T, s *Store)
internal/store/import_fts_test.go:53
↓ 7 callersFunctionsortOrderOf
(t *testing.T, s *Store, id string)
internal/store/items_new_item_top_test.go:35
↓ 7 callersFunctionstamp
* The server time to vouch for a full reload with. Take it BEFORE the reload * reads, and hand it to `markSynced` once they succeed (BUG-3207). *
web/src/lib/services/sync.svelte.ts:355
↓ 7 callersMethodstamp
(t *testing.T, body map[string]any)
internal/server/bug3124_watermark_stamp_test.go:49
↓ 7 callersMethodstart
(ctx context.Context, agent string, ensure func(context.Context, string) error)
cmd/pad/cmd_watch_chat_ensure.go:37
↓ 7 callersFunctionstillThere
BUG-3336: account deletion is irreversible and soft-deletes every owned workspace. Confirm-only (no password) is for the one account that has no passw
internal/server/bug3336_account_delete_test.go:19
↓ 7 callersMethodstop
stop ends the worker, cancelling a publish it is blocked in (a stalled transport otherwise kept its worker and queue alive after being replaced).
internal/server/access_kick.go:199
↓ 7 callersFunctionstripReservedUnparentedViewFilter
(config string)
internal/server/handlers_views.go:321
↓ 7 callersFunctionstripV2
(b *models.WorkspaceExport)
internal/store/commitment_bundle_v2_test.go:75
↓ 7 callersFunctionstubReaderNS
stubReaderNS pins the reader's PID namespace for one test.
internal/cli/session_owner_pidns_linux_test.go:213
↓ 7 callersFunctionstubs
()
web/src/lib/components/items/itemDetailIdentityLoad.svelte.test.ts:189
↓ 7 callersFunctionswapApplierTimeouts
(first, retry time.Duration)
internal/collab/applier_test.go:685
↓ 7 callersMethodtake
()
cmd/pad/chatgpt_catalog_test.go:90
↓ 7 callersFunctiontask3389Block
(t *testing.T, ev pendingEvent)
internal/store/task3389_app_projection_test.go:45
↓ 7 callersFunctiontask3392Member
(t *testing.T, s *Store, workspaceID, botID, role string)
internal/store/task3392_bot_principal_test.go:68
↓ 7 callersFunctiontask3397Plan
(inst *InstallUpgradeState)
internal/store/task3397_upgrade_test.go:36
↓ 7 callersFunctiontask3462Update
(srv *Server, ws, ref string, body any)
internal/server/task3462_builtin_update_test.go:66
↓ 7 callersFunctiontask3617Path
(slug string, item models.Item)
internal/server/task3617_verifications_test.go:25
↓ 7 callersFunctiontestTempScope
(t *testing.T)
internal/buildtools/bug4066_harness_guard_test.go:71
↓ 7 callersFunctiontextResult
textResult is a successful result carrying plain text.
internal/mcp/result.go:17
↓ 7 callersMethodtitles
(t *testing.T, p models.ItemListParams)
internal/store/items_field_range_test.go:91
↓ 7 callersFunctiontodayIn
(zone: string, now = new Date(Date.now()))
web/src/lib/calendar/presentation.ts:16
↓ 7 callersMethodtouch
touch inserts or refreshes an entry. No-op on empty id (defensive: callers pre-filter, but a missing header should never bump anything). Fires onChang
internal/server/middleware_mcp_session.go:137
↓ 7 callersMethodtrackMCPSession
(reqHeader, respHeader func(string) string, method string, httpStatus int, userID string)
internal/server/middleware_mcp_session.go:369
↓ 7 callersFunctionunescapeDocLinks
(markdown: string)
web/src/lib/utils/markdown.ts:725
↓ 7 callersFunctionupdateFrame
(update: Uint8Array)
web/src/lib/collab/materializer/replay.ts:59
↓ 7 callersFunctionupdatedRowsFor
updatedRowsFor returns the "updated" activity rows on the document, as ListDocumentActivity reports them — which means a default page of 20, ordered b
internal/store/activities_debounce_race_test.go:52
↓ 7 callersFunctionuploadDistinctPNGs
(t *testing.T, srv *Server, slug string, filenames []string)
internal/server/task4844_export_entry_limit_test.go:57
↓ 7 callersMethodvalid
()
internal/store/fenced_items.go:45
↓ 7 callersFunctionvalidSchedExport
validSchedExport is a schedule that imports, for the malformed cases to break one field of.
internal/store/schedule_carry_test.go:240
↓ 7 callersFunctionvalidateConversationID
TASK-4038 r6: malformed ids name no conversation; reject them before SQL.
internal/store/conversations.go:88
↓ 7 callersMethodvalidateSessionCookie
validateSessionCookie validates a session cookie and returns the user if valid, nil otherwise. A User-Agent change is logged but NOT rejected — this m
internal/server/handlers_auth.go:313
↓ 7 callersFunctionverifyShareAsset
verifyShareAsset returns true iff sig is a currently-valid signature for (linkID, attachmentID, exp) — constant-time compared and not yet expired. Any
internal/server/handlers_share_attachments.go:103
↓ 7 callersFunctionwalk
(cur, root *cobra.Command, doc *Document, depth, maxDepth int)
internal/cmdhelp/json.go:111
↓ 7 callersFunctionwallToInstant
(wall: string, zone: string)
web/src/lib/calendar/presentation.ts:27
↓ 7 callersFunctionwithClosedStdin
withClosedStdin replaces os.Stdin with a pipe whose write end is already closed, so term.IsTerminal(stdin) is false and any read hits EOF immediately
cmd/pad/workspace_init_noninteractive_test.go:46
↓ 7 callersMethodwithTokenPin
withTokenPin confines ctx to the workspace a user-owned token is pinned to. It records the pin, and sets the one-slug allow-list [workspace slug] that
internal/server/pinned_token.go:40
↓ 7 callersFunctionwithUndecodableManifest
BUG-2709 (the parent filing of the husk class): the bundle import's mid-stream KEEP path. When a plain, non-validation error fires after pad-export.js
internal/server/handlers_import_bundle_partial_test.go:46
↓ 7 callersFunctionwrapItemNotFound
wrapItemNotFound rewrites a bare "not_found" APIError from the item-by-ref endpoints into a message that echoes the failing ref and workspace, so `pad
internal/cli/client.go:727
↓ 7 callersFunctionwriteAppNotFound
(w http.ResponseWriter, what string)
internal/server/app_api_read.go:135
↓ 7 callersFunctionwriteAppUnauthorized
(w http.ResponseWriter)
internal/server/app_api.go:252
↓ 7 callersFunctionwriteAttachmentNotFound
writeAttachmentNotFound is the single denial writer for the blob read path. Every authorization-dependent refusal — attachment missing, wrong workspac
internal/server/handlers_attachments.go:569
↓ 7 callersFunctionwriteBusy
writeBusy answers a request the database was too busy for (a statement, lock or idle timeout, a deadlock: store.IsDBBusy; or a client-side interruptio
internal/server/server.go:3052
↓ 7 callersFunctionwriteReminderManaged
writeReminderManaged answers 409 reminder_managed. scheduleID is "" when the caller only has the store's refusal (a caller that skipped the door).
internal/server/handlers_reminders.go:454
↓ 7 callersFunctionwriteSkill
writeSkill writes a tool's /pad skill through cli.WriteSkill, the one door that keeps an edited skill and refuses to downgrade a newer one (BUG-3466),
cmd/pad/skill_write.go:17
↓ 7 callersFunctionwriteWorkspaceGroupError
(w http.ResponseWriter, err error)
internal/server/handlers_workspace_groups.go:48
↓ 6 callersMethod#cancelRetry
()
web/src/lib/stores/chat.svelte.ts:159
↓ 6 callersMethod#enqueue
(current: () => boolean, run: () => Promise<void>)
web/src/lib/stores/chatThread.svelte.ts:297
↓ 6 callersMethod#list
* Every list read goes through here. The page's refs are absorbed only while * `current` holds, so a page that resolves after a reopen, a dispose or
web/src/lib/stores/chatThread.svelte.ts:214
↓ 6 callersMethodAdoptLegacyBuiltins
AdoptLegacyBuiltins gives items made before built-in origins were recorded (TASK-3462 U4) the origin their exact title names, with no seed version, so
internal/store/builtin_legacy.go:44
↓ 6 callersMethodAllowedAudience
AllowedAudience returns the canonical resource URL the server is configured to accept. Sub-PR C's /authorize handler reads this to reject mismatched `
internal/oauth/server.go:327
↓ 6 callersMethodAppPrincipalForInstall
AppPrincipalForInstall returns the install's bot: the kind='app' user at the address CreateAppUserTx gave it, or nil when there is none.
internal/store/install_clients.go:553
↓ 6 callersFunctionApply
Apply runs edits in order against body, each against the result of the ones before it, and returns the new body. All or nothing: the first edit that c
internal/bodypatch/bodypatch.go:59
↓ 6 callersFunctionApplyWithContext
ApplyWithContext is Apply, also returning each edit with its context. The context of edit i is read from the body as it stood right after edit i, whic
internal/bodypatch/bodypatch.go:151
↓ 6 callersMethodAssertUnchanged
(t *testing.T, before string)
internal/store/storetest/ref_prefix.go:85
↓ 6 callersMethodAttachAttachmentToItem
AttachAttachmentToItem binds an UNATTACHED attachment (item_id NULL, as `pad attachment upload -` leaves it) to a live item in the same workspace, and
internal/store/attachments.go:330
↓ 6 callersMethodBackfillRelationLinks
BackfillRelationLinks derives `item_relation_links` for every live item. Called from server startup after migrations. ITS GUARD IS A COMPLETION MARKE
internal/store/relation_links_backfill.go:75
↓ 6 callersMethodBaseURL
BaseURL returns the base URL for the API. If URL is set (via config, --url flag, or PAD_URL), it takes precedence. Otherwise, constructs from host and
internal/config/config.go:1047
↓ 6 callersFunctionBoundRuntimePool
BoundRuntimePool is boundRuntimePool as a package function. It is not a method on purpose: scripts/ci-web-census treats an exported *Store method that
internal/store/runtime_limits.go:79
↓ 6 callersFunctionBuildCommentState
BuildCommentState builds and serialises one comment's state.
internal/decision/comment_state.go:30
↓ 6 callersMethodCancelCustomer
CancelCustomer asks pad-cloud to cancel every active Stripe subscription for customerID and then delete the Stripe customer object. Used by handleDele
internal/server/server.go:1052
↓ 6 callersMethodClaimSoftDeletedAttachment
ClaimSoftDeletedAttachment is the orphan GC's atomic claim for a soft-deleted row past its grace window (BUG-2415): the DELETE re-asserts deleted_at i
internal/store/attachments.go:1269
↓ 6 callersMethodClose
Close stops every renewal goroutine and waits for them. It is NOT part of the SessionPresence interface — MemorySessionPresence has nothing to shut do
internal/server/session_presence_redis.go:815
↓ 6 callersFunctionCollectionAwaitsHumanJSON
IDEA-3906 / TASK-3919: an awaits_human collection holds ASKS of a person (a human-tasks or asks collection). The needs-you router treats an open, assi
internal/models/awaits_human.go:24
↓ 6 callersFunctionCollectionCompletedWorkValues
CollectionCompletedWorkValues unmarshals a collection's persisted schema and settings JSON (best-effort; parse failures fall back the same way Termina
internal/models/terminal.go:345
↓ 6 callersMethodCompactItemOpLog
CompactItemOpLog replaces the op-log rows the snapshot was built from (ids, every row the job read, oldest first) with the single snapshot frame, in o
internal/store/yjs_compaction.go:61
↓ 6 callersFunctionConvertGeneric
ConvertGeneric converts an HTML document into markdown by first running go-readability to strip chrome, navigation, and ads, then piping the cleaned H
internal/urlimport/generic.go:37
↓ 6 callersMethodCountPendingContentRowsTx
CountPendingContentRowsTx counts the item's content-bearing op-log rows above its flush watermark, inside tx. Zero means content_state would read clea
internal/store/content_pending_guard.go:59
↓ 6 callersMethodCreateInstallClientTx
CreateInstallClientTx creates the install's one confidential client and returns its id and secret. The secret is returned here only; its hash is store
internal/store/install_clients.go:201
↓ 6 callersMethodCreatePKCERequest
============================================================ PKCE request sessions (handler/pkce/storage.go PKCERequestStorage) ======================
internal/store/oauth.go:645
↓ 6 callersFunctionDecideSkillWrite
DecideSkillWrite decides what to do with a tool's skill file. expected is FormatForTool's unstamped output for this pad; running is this pad's version
internal/cli/skillstamp.go:106
← previousnext →2,601–2,700 of 31,743, ranked by callers