Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/paperclipai/paperclip
/ functions
Functions
13,941 in github.com/paperclipai/paperclip
⨍
Functions
13,941
◇
Types & classes
1,968
↓ 2,338 callers
Method
get
* Read a state value. * * Returns the stored JSON value as-is, or `null` if no entry has been set * for this scope+key combination. Falsy val
packages/plugins/sdk/src/types.ts:767
↓ 1,544 callers
Method
set
* Write a state value. Creates the row if it does not exist; replaces it * atomically (upsert) if it does. Safe to call concurrently. * * Any
packages/plugins/sdk/src/types.ts:779
↓ 1,344 callers
Method
delete
* Delete a state value. No-ops silently if the entry does not exist * (idempotent by design — safe to call without prior `get()`). * * @param
packages/plugins/sdk/src/types.ts:787
↓ 1,009 callers
Function
request
(path: string, init?: RequestInit)
ui/src/api/client.ts:15
↓ 897 callers
Method
post
(path: string, body?: unknown, opts?: RequestOptions)
cli/src/client/http.ts:70
↓ 852 callers
Method
update
( goalId: string, patch: Partial<Pick< Goal, "title" | "description" | "level" | "status"
packages/plugins/sdk/src/types.ts:1595
↓ 838 callers
Function
cn
(...inputs: ClassValue[])
ui/src/lib/utils.ts:6
↓ 772 callers
Method
send
(data: string)
server/src/realtime/live-events-ws.ts:16
↓ 727 callers
Method
status
Check the stored folder readiness for a company and folder key.
packages/plugins/sdk/src/types.ts:505
↓ 673 callers
Function
act
(callback: () => void | Promise<void>)
ui/src/components/Layout.test.tsx:214
↓ 669 callers
Method
parse
* Try to parse `input` as a plugin manifest. * * Returns a {@link ManifestParseSuccess} when the input passes all * validation rules, or a {@
server/src/services/plugin-manifest-validator.ts:72
↓ 634 callers
Method
registerPath
(pathRegistration: OpenApiPathRegistration)
server/src/routes/openapi.ts:358
↓ 623 callers
Method
list
(input: { companyId: string; level?: Goal["level"]; status?: Goal["status"]; limit?: number;
packages/plugins/sdk/src/types.ts:1578
↓ 586 callers
Function
text
(testId)
scripts/measure-issue-chat-long-thread.mjs:59
↓ 533 callers
Method
render
(_url: string)
server/src/vite-html-renderer.ts:14
↓ 478 callers
Method
log
* Write an activity log entry attributed to this plugin. * * The host writes the entry with `actor_type = plugin` and * `actor_id = <pluginId
packages/plugins/sdk/src/types.ts:700
↓ 478 callers
Method
resolve
* Resolve a secret reference to its current value. * * The reference is a string identifier pointing to a secret configured * in the Papercli
packages/plugins/sdk/src/types.ts:663
↓ 473 callers
Function
uuid
()
ui/src/lib/issue-output.test.ts:38
↓ 453 callers
Method
on
* Subscribe to a core Paperclip domain event or a plugin-namespaced event. * * @param name - Event type, e.g. `"issue.created"` or `"plugin.@acm
packages/plugins/sdk/src/types.ts:536
↓ 447 callers
Function
unprocessable
(message: string, details?: unknown)
server/src/errors.ts:32
↓ 402 callers
Function
asString
(value: unknown, fallback: string)
packages/adapter-utils/src/server-utils.ts:316
↓ 401 callers
Method
writeFile
(remotePath: string, bytes: ArrayBuffer, options?: SandboxTransferProgressOptions)
packages/adapter-utils/src/sandbox-managed-runtime.ts:76
↓ 390 callers
Method
resolve
(input: { companyId: string; object: ExternalObjectRecord; })
server/src/services/external-objects.ts:83
↓ 366 callers
Method
now
()
packages/adapters/codex-local/src/server/output-inactivity-monitor.test.ts:15
↓ 348 callers
Function
printOutput
(data: unknown, opts: { json?: boolean; label?: string } = {})
cli/src/commands/client/common.ts:193
↓ 327 callers
Function
notFound
(message = "Not found")
server/src/errors.ts:24
↓ 313 callers
Function
timestamp
(date: Date = new Date())
packages/db/src/backup-lib.ts:90
↓ 298 callers
Function
resolveCommandContext
( options: BaseClientOptions, opts?: { requireCompany?: boolean }, )
cli/src/commands/client/common.ts:48
↓ 293 callers
Function
addCommonClientOptions
(command: Command, opts?: { includeCompany?: boolean })
cli/src/commands/client/common.ts:30
↓ 293 callers
Function
handleCommandError
(error: unknown)
cli/src/commands/client/common.ts:288
↓ 284 callers
Method
warn
Log a warning.
packages/plugins/sdk/src/types.ts:1009
↓ 283 callers
Method
patch
(path: string, body?: unknown, opts?: RequestOptions)
cli/src/client/http.ts:77
↓ 269 callers
Function
logActivity
(db: Db, input: LogActivityInput)
server/src/services/activity-log.ts:65
↓ 257 callers
Function
apiPath
(strings: TemplateStringsArray, ...values: Array<string | number | boolean | null | undefined>)
cli/src/commands/client/common.ts:124
↓ 248 callers
Function
assertCompanyAccess
(req: Request, companyId: string)
server/src/routes/authz.ts:53
↓ 237 callers
Method
readFile
( remotePath: string, options?: SandboxTransferProgressOptions, )
packages/adapter-utils/src/sandbox-managed-runtime.ts:77
↓ 229 callers
Method
create
(input: { companyId: string; title: string; description?: string; level?: Goal["level"]; s
packages/plugins/sdk/src/types.ts:1586
↓ 210 callers
Function
act
(callback: () => void | Promise<void>)
ui/src/pages/Auth.test.tsx:57
↓ 205 callers
Method
remove
(remotePath: string)
packages/adapter-utils/src/sandbox-managed-runtime.ts:82
↓ 199 callers
Function
readNonEmptyString
(value: unknown)
server/src/services/heartbeat.ts:1746
↓ 191 callers
Function
stringField
(value: unknown)
packages/plugins/plugin-llm-wiki/src/worker.ts:64
↓ 175 callers
Function
conflict
(message: string, details?: unknown)
server/src/errors.ts:28
↓ 159 callers
Method
error
Log an error.
packages/plugins/sdk/src/types.ts:1011
↓ 155 callers
Function
heartbeatService
(db: Db, options: HeartbeatServiceOptions = {})
server/src/services/heartbeat.ts:3518
↓ 154 callers
Method
call
* Send a typed host→worker RPC call. * * @param method - The RPC method name * @param params - Method parameters * @param timeoutMs - Opti
server/src/services/plugin-worker-manager.ts:260
↓ 151 callers
Method
info
Log an informational message.
packages/plugins/sdk/src/types.ts:1007
↓ 150 callers
Method
cleanup
()
packages/adapter-utils/src/sandbox-callback-bridge.ts:132
↓ 148 callers
Function
validate
(schema: ZodSchema)
server/src/middleware/validate.ts:4
↓ 140 callers
Function
getActorInfo
(req: Request)
server/src/routes/authz.ts:77
↓ 139 callers
Function
parseObject
(value: unknown)
server/src/services/workspace-realization.ts:10
↓ 136 callers
Function
asString
(value: unknown)
server/src/services/company-portability.ts:711
↓ 130 callers
Function
recent
(minutesAgo: number)
ui/storybook/fixtures/paperclipData.ts:28
↓ 121 callers
Method
clear
* Remove all subscriptions registered by this plugin.
server/src/services/plugin-event-bus.ts:411
↓ 119 callers
Function
createDb
(url: string)
packages/db/src/client.ts:48
↓ 119 callers
Function
parseObject
(value: unknown)
packages/adapter-utils/src/server-utils.ts:309
↓ 117 callers
Method
register
* Register a handler for a scheduled job. * * The `key` must match a `jobKey` declared in the plugin manifest. * The host calls this handler
packages/plugins/sdk/src/types.ts:584
↓ 116 callers
Function
writeFile
(target: string, content: string)
packages/plugins/create-paperclip-plugin/src/index.ts:51
↓ 114 callers
Function
forbidden
(message = "Forbidden")
server/src/errors.ts:20
↓ 113 callers
Function
jsonBody
(schema: z.ZodTypeAny)
server/src/routes/openapi.ts:444
↓ 112 callers
Method
write
* Write a numeric metric data point. * * @param name - Metric name (plugin-namespaced by the host) * @param value - Numeric value * @param
packages/plugins/sdk/src/types.ts:1035
↓ 108 callers
Function
onLog
(stream: "stdout" | "stderr", chunk: string)
server/src/routes/projects.ts:539
↓ 107 callers
Function
jsonBody
(schema: z.ZodTypeAny)
doc/plans/2026-05-23-cli-api-parity-openapi-reference.ts:154
↓ 104 callers
Function
readFile
(companyId: string, skillId: string, relativePath: string)
server/src/services/company-skills.ts:2949
↓ 103 callers
Function
startEmbeddedPostgresTestDatabase
( tempDirPrefix: string, )
packages/db/src/test-embedded-postgres.ts:146
↓ 95 callers
Function
asNumber
(value: unknown, fallback: number)
packages/adapter-utils/src/server-utils.ts:320
↓ 95 callers
Function
useCompany
()
ui/src/context/CompanyContext.tsx:172
↓ 94 callers
Function
callHost
* Send a typed JSON-RPC request to the host and await the response.
packages/plugins/sdk/src/worker-rpc-host.ts:331
↓ 93 callers
Method
end
(chunk?: string)
server/src/__tests__/live-events-ws.test.ts:23
↓ 93 callers
Function
gated
* Create a capability-gated proxy handler for a method. * * @param method - The RPC method name (used for capability lookup) * @param handler
packages/plugins/sdk/src/host-client-factory.ts:613
↓ 93 callers
Function
getEmbeddedPostgresTestSupport
()
packages/db/src/test-embedded-postgres.ts:139
↓ 90 callers
Function
asString
(value)
packages/adapters/hermes/gateway-ui-parser.cjs:16
↓ 90 callers
Function
isPlainRecord
(value: unknown)
server/src/services/company-portability.ts:707
↓ 90 callers
Function
onChange
(event: MediaQueryListEvent)
ui/src/components/SidebarProjects.tsx:104
↓ 89 callers
Function
secretService
(db: Db)
server/src/services/secrets.ts:358
↓ 88 callers
Method
execute
(input: SandboxExecuteInput)
server/src/services/sandbox-provider-runtime.ts:94
↓ 86 callers
Function
asString
(value: unknown)
server/src/services/company-skills.ts:374
↓ 85 callers
Function
badRequest
(message: string, details?: unknown)
server/src/errors.ts:12
↓ 85 callers
Function
resolve
(params)
server/src/services/plugin-host-services.ts:1241
↓ 83 callers
Method
decide
* Inspect a single shell command (the literal argument to `sh -c <cmd>`). * Returns the action the plugin should take.
packages/plugins/sandbox-providers/kubernetes/src/upload-interceptor.ts:70
↓ 82 callers
Function
requireCapability
(manifest: PaperclipPluginManifestV1, allowed: Set<PluginCapability>, capability: PluginCapability)
packages/plugins/sdk/src/testing.ts:420
↓ 80 callers
Function
nonEmpty
(value: unknown)
packages/adapters/openclaw-gateway/src/server/execute.ts:106
↓ 78 callers
Method
post
(path: string, body: unknown)
cli/src/commands/client/cloud-transfer.ts:181
↓ 77 callers
Method
on
(event: "pong", listener: () => void)
server/src/realtime/live-events-ws.ts:19
↓ 76 callers
Function
act
(callback: () => void | Promise<void>)
ui/src/components/IssueProperties.test.tsx:136
↓ 76 callers
Function
createTestHarness
(options: TestHarnessOptions)
packages/plugins/sdk/src/testing.ts:443
↓ 75 callers
Function
execute
(ctx: AdapterExecutionContext)
server/src/adapters/http/execute.ts:4
↓ 75 callers
Function
makeIssue
(status: "todo" | "done" | "blocked" | "cancelled" | "in_progress")
server/src/__tests__/issue-comment-reopen-routes.test.ts:206
↓ 73 callers
Function
assertBoard
(req: Request)
server/src/routes/authz.ts:10
↓ 72 callers
Function
ensureCompanyId
(companyId?: string)
server/src/services/plugin-host-services.ts:552
↓ 72 callers
Function
ensurePluginAvailableForCompany
(_companyId: string)
server/src/services/plugin-host-services.ts:593
↓ 70 callers
Function
flushReact
()
ui/src/pages/IssueDetail.test.tsx:885
↓ 69 callers
Function
shellQuote
(value: string)
packages/adapter-utils/src/ssh.ts:149
↓ 68 callers
Method
close
(code?: number, reason?: string)
server/src/realtime/live-events-ws.ts:18
↓ 68 callers
Method
query
Run a restricted SELECT against the plugin namespace and whitelisted core tables.
packages/plugins/sdk/src/types.ts:611
↓ 68 callers
Function
resolve
(secretRef)
packages/plugins/sdk/src/testing.ts:849
↓ 66 callers
Function
runGit
(cwd: string, args: string[])
server/src/__tests__/workspace-runtime.test.ts:73
↓ 66 callers
Method
setup
* Called once when the plugin worker starts up, after `initialize` completes. * * This is where the plugin registers all its handlers: event sub
packages/plugins/sdk/src/define-plugin.ts:183
↓ 65 callers
Function
eff
Read effective value: overlay if dirty, else original
ui/src/components/AgentConfigForm.tsx:296
↓ 65 callers
Function
readString
(value: unknown)
ui/src/context/LiveUpdatesProvider.tsx:35
↓ 64 callers
Function
usePluginAction
(key: string)
packages/plugins/sdk/src/ui/hooks.ts:87
next →
1–100 of 13,941, ranked by callers