AI Draft
AI-assisted orientation for the root package. Verify behavior against
src/and the human guide before repeating details elsewhere.
Summary
Section titled “Summary”@lastshotlabs/slingshot is the framework entry point. It owns app assembly, plugin
orchestration, server bootstrap, and the public convenience exports that most Slingshot
applications import first. The canonical authoring path is app.config.ts exporting
defineApp({ ... }).
Quick Map
Section titled “Quick Map”- Package kind: Root package
- Public exports:
.,./mongo,./queue,./redis,./testing - API reference: /api/slingshot/
- defineApp helper:
src/defineApp.ts - App bootstrap:
src/app.ts - Server bootstrap:
src/server.ts - CLI entry:
src/cli/commands/start.ts
Capability Routing
Section titled “Capability Routing”- Identity and access:
packages/slingshot-auth/,packages/slingshot-permissions/,packages/slingshot-organizations/,packages/slingshot-oauth/,packages/slingshot-oidc/,packages/slingshot-scim/,packages/slingshot-m2m/ - Community and realtime collaboration:
packages/slingshot-community/,packages/slingshot-chat/,packages/slingshot-notifications/,packages/slingshot-polls/,packages/slingshot-push/ - Search:
packages/slingshot-search/ - Rendering:
packages/slingshot-ssr/,packages/slingshot-ssg/,packages/runtime-bun/,packages/runtime-node/,packages/runtime-edge/ - Assets and media:
packages/slingshot-assets/,packages/slingshot-image/,packages/slingshot-emoji/,packages/slingshot-embeds/,packages/slingshot-gifs/,packages/slingshot-deep-links/ - Integrations and operations:
packages/slingshot-webhooks/,packages/slingshot-interactions/,packages/slingshot-mail/,packages/slingshot-admin/,packages/slingshot-infra/
Common Agent Tasks
Section titled “Common Agent Tasks”- For app config shape, read
src/defineApp.tsand the typed config sections undersrc/config/types/. - For plugin lifecycle issues, read
src/app.tspluspackages/slingshot-core/src/plugin.ts. - For runtime host behavior, read
src/server.tsand the matching package underpackages/runtime-*. - For docs drift, update JSDoc, impacted guides in
packages/docs/src/content/docs/, and any mapped surface inslingshot-specs/documentation-impact-map.json.
Minimal Context Recipe
Section titled “Minimal Context Recipe”Read only enough to identify the owning files and the real behavior:
- Read root
CLAUDE.mdfor package map and task routing. - Read the owning package
CLAUDE.md. - Read the package
src/index.tsto see the public surface. - Read one config/schema file and one primary runtime/plugin file.
- Read 1-2 tests only if behavior is still unclear.
Use the doc lanes intentionally:
docs/generated/for inventories and export factsdocs/human/for architecture, invariants, and integration guidancedocs/notes/for active maintenance breadcrumbsdocs/ai/for orientation only, not final authority
Do not scan the entire docs tree for every task. Stop once you can name the owning package, the main code path, and the doc surfaces that must change.