@lssm/lib.personalization 0.0.0-canary-20251212230121 → 0.0.0-canary-20251215220103

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{docBlockToPresentationSpec as e,docBlockToPresentationV2 as t,docBlocksToPresentationRoutes as n}from"./presentations.js";import{DocRegistry as r,defaultDocRegistry as i,registerDocBlocks as a}from"./registry.js";import"./PUBLISHING.docblock.js";import"./accessibility_wcag_compliance_specs.docblock.js";import"./tech/PHASE_1_QUICKSTART.docblock.js";import"./tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js";import"./tech/PHASE_3_AUTO_EVOLUTION.docblock.js";import"./tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js";import"./tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js";import"./tech/lifecycle-stage-system.docblock.js";import"./tech/presentation-runtime.docblock.js";import"./tech/schema/README.docblock.js";import"./tech/templates/runtime.docblock.js";import"./tech/workflows/overview.docblock.js";import"./tech/mcp-endpoints.docblock.js";
1
+ import{docBlockToPresentationSpec as e,docBlockToPresentationV2 as t,docBlocksToPresentationRoutes as n}from"./presentations.js";import{DocRegistry as r,defaultDocRegistry as i,registerDocBlocks as a}from"./registry.js";import"./PUBLISHING.docblock.js";import"./accessibility_wcag_compliance_specs.docblock.js";import"./tech/PHASE_1_QUICKSTART.docblock.js";import"./tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js";import"./tech/PHASE_3_AUTO_EVOLUTION.docblock.js";import"./tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js";import"./tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js";import"./tech/lifecycle-stage-system.docblock.js";import"./tech/presentation-runtime.docblock.js";import"./tech/auth/better-auth-nextjs.docblock.js";import"./tech/schema/README.docblock.js";import"./tech/templates/runtime.docblock.js";import"./tech/workflows/overview.docblock.js";import"./tech/mcp-endpoints.docblock.js";import"./tech/vscode-extension.docblock.js";import"./tech/telemetry-ingest.docblock.js";import"./tech/contracts/openapi-export.docblock.js";import"./tech/studio/workspaces.docblock.js";import"./tech/studio/sandbox-unlogged.docblock.js";import"./tech/studio/workspace-ops.docblock.js";import"./tech/studio/project-routing.docblock.js";import"./tech/studio/platform-admin-panel.docblock.js";import"./tech/studio/learning-events.docblock.js";import"./tech/studio/learning-journeys.docblock.js";import"./tech/studio/project-access-teams.docblock.js";import"./tech/studio/team-invitations.docblock.js";
@@ -0,0 +1,58 @@
1
+ import{registerDocBlocks as e}from"../../registry.js";e([{id:`docs.tech.auth.better-auth-nextjs`,title:`Better Auth + Next.js integration (ContractSpec)`,summary:`How ContractSpec wires Better Auth into Next.js (server config, client singleton, and proxy cookie-only redirects).`,kind:`reference`,visibility:`public`,route:`/docs/tech/auth/better-auth-nextjs`,tags:[`auth`,`better-auth`,`nextjs`,`cookies`,`proxy`,`hmr`],body:`# Better Auth + Next.js integration (ContractSpec)
2
+
3
+ This repo uses Better Auth as the primary auth layer (sessions, organizations, teams, API keys, and OAuth).
4
+
5
+ ## Server config (Better Auth)
6
+
7
+ - Source: \`packages/bundles/contractspec-studio/src/application/services/auth.ts\`
8
+ - Important: \`nextCookies()\` must be the **last** plugin in the Better Auth plugin list so \`Set-Cookie\` is applied correctly in Next.js environments.
9
+
10
+ ## Better Auth Admin plugin
11
+
12
+ ContractSpec Studio enables the Better Auth **Admin plugin** to support platform-admin user operations (list users, impersonation, etc.).
13
+
14
+ - Server: \`admin()\` plugin in \`packages/bundles/contractspec-studio/src/application/services/auth.ts\`
15
+ - Client: \`adminClient()\` in \`packages/bundles/contractspec-studio/src/presentation/providers/auth/client.ts\`
16
+
17
+ ### PLATFORM_ADMIN ⇒ Better Auth admin role
18
+
19
+ Better Auth Admin endpoints authorize via \`user.role\`. ContractSpec enforces an org-driven rule:
20
+
21
+ - If the **active organization** has \`type = PLATFORM_ADMIN\`, the signed-in user is ensured to have \`User.role\` containing \`admin\`.
22
+ - This is applied in the session creation hook and re-checked in \`assertsPlatformAdmin()\`.
23
+
24
+ This keeps admin enablement deterministic and avoids manual role backfills.
25
+
26
+ ## Client config (React web + Expo)
27
+
28
+ To avoid duplicate background refresh/polling loops in dev (Fast Refresh/HMR), the Better Auth client is implemented as a singleton cached on \`globalThis\`.
29
+
30
+ - Web client: \`packages/bundles/contractspec-studio/src/presentation/providers/auth/client.ts\`
31
+ - Native client: \`packages/bundles/contractspec-studio/src/presentation/providers/auth/client.native.ts\`
32
+
33
+ Import guidance:
34
+
35
+ - If you only need the context/hook, prefer importing from \`@lssm/bundle.contractspec-studio/presentation/providers/auth\`.
36
+ - If you explicitly need the Better Auth client instance (e.g. admin impersonation, direct API calls), import from \`@lssm/bundle.contractspec-studio/presentation/providers/auth/client\`.
37
+
38
+ ## Public routes (login / signup)
39
+
40
+ Public auth pages should avoid eager \`authClient\` initialization.
41
+
42
+ Pattern used:
43
+
44
+ - In the submit handler, dynamically import \`@lssm/bundle.contractspec-studio/presentation/providers/auth/index.web\` and call \`authClient.signIn.*\` / \`authClient.signUp.*\`.
45
+
46
+ This prevents session refresh behavior from starting just because a public page rendered.
47
+
48
+ ## Next.js proxy auth (web-landing)
49
+
50
+ The Next.js proxy/middleware is used for **redirect decisions only**. It must not perform DB-backed session reads on every request.
51
+
52
+ - Source: \`packages/apps/web-landing/src/proxy.ts\`
53
+ - Approach: cookie-only checks via Better Auth cookies helpers:
54
+ - \`getSessionCookie(request)\`
55
+ - \`getCookieCache(request)\`
56
+
57
+ These checks are intentionally optimistic and should only gate routing. Full authorization must still be enforced on server-side actions/routes and GraphQL resolvers.
58
+ `}]);
@@ -0,0 +1,38 @@
1
+ import{registerDocBlocks as e}from"../../registry.js";e([{id:`docs.tech.contracts.openapi-export`,title:`OpenAPI export (OpenAPI 3.1) from SpecRegistry`,summary:`Generate a deterministic OpenAPI document from a SpecRegistry using jsonSchemaForSpec + REST transport metadata.`,kind:`reference`,visibility:`public`,route:`/docs/tech/contracts/openapi-export`,tags:[`contracts`,`openapi`,`rest`],body:`## OpenAPI export (OpenAPI 3.1) from SpecRegistry
2
+
3
+ ### Purpose
4
+
5
+ ContractSpec specs can be exported into an **OpenAPI 3.1** document for tooling (SDK generation, docs, gateways).
6
+
7
+ The export is **spec-first**:
8
+
9
+ - Uses \`jsonSchemaForSpec(spec)\` for input/output JSON Schema (from SchemaModel → zod → JSON Schema)
10
+ - Uses \`spec.transport.rest.method/path\` when present
11
+ - Falls back to deterministic defaults:
12
+ - Method: \`POST\` for commands, \`GET\` for queries
13
+ - Path: \`defaultRestPath(name, version)\` → \`/<dot/name>/v<version>\`
14
+
15
+ ### Library API
16
+
17
+ - Function: \`openApiForRegistry(registry, options?)\`
18
+ - Location: \`@lssm/lib.contracts/openapi\`
19
+
20
+ ### CLI
21
+
22
+ Export OpenAPI from a registry module:
23
+
24
+ \`\`\`bash
25
+ contractspec openapi --registry ./src/registry.ts --out ./openapi.json
26
+ \`\`\`
27
+
28
+ The registry module must export one of:
29
+
30
+ - \`registry: SpecRegistry\`
31
+ - \`default(): SpecRegistry | Promise<SpecRegistry>\`
32
+ - \`createRegistry(): SpecRegistry | Promise<SpecRegistry>\`
33
+
34
+ ### Notes / limitations (current)
35
+
36
+ - Responses are generated as a basic \`200\` response (plus schemas when available).
37
+ - Query (GET) inputs are currently represented as a JSON request body when an input schema exists.
38
+ - Errors are not yet expanded into OpenAPI responses; that will be added when we standardize error envelopes.`}]);
@@ -1 +1 @@
1
- import{registerDocBlocks as e}from"../registry.js";e([{id:`docs.tech.mcp.endpoints`,title:`ContractSpec MCP endpoints`,summary:`Dedicated MCP servers for docs, CLI usage, and internal development.`,kind:`reference`,visibility:`mixed`,route:`/docs/tech/mcp/endpoints`,tags:[`mcp`,`docs`,`cli`,`internal`],body:"# ContractSpec MCP endpoints\n\nThree dedicated MCP servers keep AI agents efficient and scoped:\n\n- **Docs MCP**: `/api/mcp/docs` — exposes DocBlocks as resources + presentations. Tool: `docs.search`.\n- **CLI MCP**: `/api/mcp/cli` — surfaces CLI quickstart/reference/README and suggests commands. Tool: `cli.suggestCommand`.\n- **Internal MCP**: `/api/mcp/internal` — internal routing hints and playbook. Tool: `internal.describe`.\n\n### Usage notes\n- Transports are HTTP POST (streamable HTTP); SSE is disabled.\n- Resources are namespaced (`docs://*`, `cli://*`, `internal://*`) and are read-only.\n- Prompts mirror each surface (navigator, usage, bootstrap) for quick agent onboarding.\n- GraphQL remains at `/graphql`; health at `/health`.\n"}]);
1
+ import{registerDocBlocks as e}from"../registry.js";e([{id:`docs.tech.mcp.endpoints`,title:`ContractSpec MCP endpoints`,summary:`Dedicated MCP servers for docs, CLI usage, and internal development.`,kind:`reference`,visibility:`mixed`,route:`/docs/tech/mcp/endpoints`,tags:[`mcp`,`docs`,`cli`,`internal`],body:"# ContractSpec MCP endpoints\n\nThree dedicated MCP servers keep AI agents efficient and scoped:\n\n- **Docs MCP**: `/api/mcp/docs` — exposes DocBlocks as resources + presentations. Tool: `docs.search`.\n- **CLI MCP**: `/api/mcp/cli` — surfaces CLI quickstart/reference/README and suggests commands. Tool: `cli.suggestCommand`.\n- **Internal MCP**: `/api/mcp/internal` — internal routing hints, playbook, and example registry access. Tool: `internal.describe`.\n\n### Usage notes\n- Transports are HTTP POST (streamable HTTP); SSE is disabled.\n- Resources are namespaced (`docs://*`, `cli://*`, `internal://*`) and are read-only.\n- Internal MCP also exposes the examples registry via `examples://*` resources:\n - `examples://list?q=<query>`\n - `examples://example/<id>`\n- Prompts mirror each surface (navigator, usage, bootstrap) for quick agent onboarding.\n- GraphQL remains at `/graphql`; health at `/health`.\n"}]);
@@ -0,0 +1 @@
1
+ import{registerDocBlocks as e}from"../../registry.js";e([{id:`docs.tech.studio.learning-events`,title:`Studio Learning Events`,summary:`Studio persists learning/activity events to the database; Sandbox keeps learning local-first and unlogged.`,kind:`reference`,visibility:`public`,route:`/docs/tech/studio/learning-events`,tags:[`studio`,`learning`,`events`,`analytics`,`sandbox`],body:"# Studio Learning Events\n\nStudio emits lightweight **learning/activity events** to support onboarding, ambient coaching, and learning journeys.\n\n## Persistence model\n\n- **Studio**: events are persisted to the database in `StudioLearningEvent` and are organization-scoped (optionally project-scoped).\n- **Sandbox**: events remain **local-only** (unlogged); they must never be sent to backend services.\n\n## GraphQL API\n\n- `recordLearningEvent(input: { name, projectId?, payload? })`\n- `myLearningEvents(projectId?, limit?)`\n- `myOnboardingTracks(productId?, includeProgress?)`\n- `myOnboardingProgress(trackKey)`\n- `dismissOnboardingTrack(trackKey)`\n\n## Common event names (convention)\n\n- `module.navigated` — user navigated to a Studio module (payload at minimum: `{ moduleId }`).\n- `studio.template.instantiated` — created a new Studio project (starter template). Payload commonly includes `{ templateId, projectSlug }`.\n- `spec.changed` — created or updated a Studio spec. Payload may include `{ action: 'create' | 'update', specId?, specType? }`.\n- `regeneration.completed` — finished a “regen/deploy” action (currently emitted on successful Studio deploy actions).\n- `studio.evolution.applied` — completed an Evolution session (payload commonly includes `{ evolutionSessionId }`).\n\nThese events are intentionally minimal and must avoid PII/secrets in payloads.\n"}]);
@@ -0,0 +1,57 @@
1
+ import{registerDocBlocks as e}from"../../registry.js";e([{id:`docs.tech.studio.learning-journeys`,title:`Studio learning journeys (onboarding + coach)`,summary:`DB-backed learning journeys tracked per organization: seeded tracks/steps, event-driven progress, XP/streaks, and a Studio coach surface.`,kind:`reference`,visibility:`public`,route:`/docs/tech/studio/learning-journeys`,tags:[`studio`,`learning`,`onboarding`,`journey`,`graphql`,`database`],body:`# Studio learning journeys
2
+
3
+ Studio supports **DB-backed learning journeys** (onboarding tracks + ambient coach tips) that are advanced by **recorded learning events**.
4
+
5
+ > See also: \`/docs/tech/studio/learning-events\` for event naming + payload guardrails.
6
+
7
+ ## Scope (multi-tenancy)
8
+
9
+ - Progress is tracked **per organization** (tenant/workspace), via a \`Learner\` record keyed by \`(userId, organizationId)\`.
10
+ - Learning events are stored as \`StudioLearningEvent\` under the Studio DB schema, scoped to an organization (optionally a project).
11
+
12
+ ## Persistence model (Prisma)
13
+
14
+ Learning journey progress lives in the \`lssm_learning\` schema:
15
+
16
+ - \`Learner\` — one per \`(userId, organizationId)\`
17
+ - \`OnboardingTrack\` — seeded track definitions (trackKey, name, metadata)
18
+ - \`OnboardingStep\` — seeded step definitions (stepKey, completionCondition, xpReward, metadata)
19
+ - \`OnboardingProgress\` — learner × track progress (progress %, xpEarned, completedAt, dismissedAt)
20
+ - \`OnboardingStepCompletion\` — append-only completion records (stepKey, status, xpEarned, completedAt)
21
+
22
+ ## Track definition source (spec-first)
23
+
24
+ - Canonical track specs live in \`@lssm/example.learning-journey-registry\`.
25
+ - The Studio API seeds/updates the DB definitions via an idempotent “ensure tracks” routine.
26
+ - The DB is kept aligned with track specs (stale steps are removed) to prevent drift and unblock completion.
27
+
28
+ ## Progress advancement (event-driven)
29
+
30
+ 1) UI records an event via GraphQL \`recordLearningEvent\`
31
+ 2) Backend creates \`StudioLearningEvent\`
32
+ 3) Backend advances onboarding by matching the new event against step completion conditions
33
+ 4) Backend persists step completions and recomputes:
34
+ - \`progress\` percentage
35
+ - \`xpEarned\` (including streak/completion bonuses when configured)
36
+ - track completion state (\`completedAt\`)
37
+
38
+ ## GraphQL API (Studio)
39
+
40
+ - \`myOnboardingTracks(productId?, includeProgress?)\`
41
+ - returns all tracks + optional progress for the current learner
42
+ - \`myOnboardingProgress(trackKey)\`
43
+ - returns progress + step completion list for a single track
44
+ - \`dismissOnboardingTrack(trackKey)\`
45
+ - marks a track dismissed for the learner (prevents auto-coach)
46
+
47
+ ## UI routes/surfaces (web)
48
+
49
+ - \`/studio/learning\` — learning hub (track list + progress widget)
50
+ - \`/studio/learning/{trackKey}\` — track detail (steps + map)
51
+ - Studio shell mounts a **coach sheet** that can auto-open for incomplete, non-dismissed onboarding.
52
+
53
+ ## Security + data hygiene
54
+
55
+ - Do not put secrets/PII in \`payload\` fields of learning events.
56
+ - Prefer shallow payload filters (small, stable keys).
57
+ `}]);
@@ -0,0 +1,63 @@
1
+ import{registerDocBlocks as e}from"../../registry.js";e([{id:`docs.tech.studio.platform-admin-panel`,title:`Studio Platform Admin Panel`,summary:`How PLATFORM_ADMIN organizations manage tenant orgs and integration connections without session switching.`,kind:`reference`,visibility:`public`,route:`/docs/tech/studio/platform-admin-panel`,tags:[`studio`,`admin`,`multi-tenancy`,`integrations`,`better-auth`],body:`# Studio Platform Admin Panel
2
+
3
+ ContractSpec Studio exposes a dedicated **Platform Admin Panel** for users whose **active organization** has:
4
+
5
+ - \`Organization.type = PLATFORM_ADMIN\`
6
+
7
+ The UI route is:
8
+
9
+ - \`/studio/admin\`
10
+
11
+ ## Authorization model (no org switching)
12
+
13
+ Platform admins **remain in their own organization**. Cross-tenant actions are always explicit and scoped:
14
+
15
+ - Admin operations require an explicit \`targetOrganizationId\`.
16
+ - No session / activeOrganizationId switching is performed as part of admin operations.
17
+
18
+ ## Integrations management
19
+
20
+ The admin panel manages the full ContractSpec Integrations system:
21
+
22
+ - Lists all shipped \`IntegrationSpec\` entries (registry built via \`createDefaultIntegrationSpecRegistry()\`).
23
+ - CRUD \`IntegrationConnection\` records for a selected tenant org.
24
+
25
+ ### Secrets (reference-only + write-only)
26
+
27
+ The admin UI supports two modes:
28
+
29
+ - **Reference-only (BYOK)**: store only \`secretProvider\` + \`secretRef\`.
30
+ - **Write-only provisioning/rotation**: paste a raw secret payload; server writes to the selected backend and stores the resulting reference. The secret value is **never returned or displayed**.
31
+
32
+ Supported backends:
33
+
34
+ - Env overrides (\`env://...\`)
35
+ - Google Cloud Secret Manager (\`gcp://...\`)
36
+ - AWS Secrets Manager (\`aws://secretsmanager/...\`)
37
+ - Scaleway Secret Manager (\`scw://secret-manager/...\`)
38
+
39
+ ## Better Auth Admin plugin
40
+
41
+ The panel uses the Better Auth **Admin plugin** for user operations (list users, impersonation):
42
+
43
+ - Client calls use \`authClient.admin.*\`.
44
+ - Server-side, ContractSpec enforces that users in a PLATFORM_ADMIN active org have \`User.role\` containing \`admin\` so Better Auth Admin endpoints authorize.
45
+
46
+ ## GraphQL surface
47
+
48
+ The platform-admin GraphQL operations are guarded by the active org type and include:
49
+
50
+ - \`platformAdminOrganizations(search, limit, offset)\`
51
+ - \`platformAdminIntegrationSpecs\`
52
+ - \`platformAdminIntegrationConnections(input: { targetOrganizationId, category?, status? })\`
53
+ - \`platformAdminIntegrationConnectionCreate(input)\`
54
+ - \`platformAdminIntegrationConnectionUpdate(input)\`
55
+ - \`platformAdminIntegrationConnectionDelete(targetOrganizationId, connectionId)\`
56
+
57
+ ## Key implementation files
58
+
59
+ - Auth + role enforcement: \`packages/bundles/contractspec-studio/src/application/services/auth.ts\`
60
+ - Admin GraphQL module: \`packages/bundles/contractspec-studio/src/infrastructure/graphql/modules/platform-admin.ts\`
61
+ - Integrations admin service: \`packages/bundles/contractspec-studio/src/modules/platform-integrations/index.ts\`
62
+ - Web route: \`packages/apps/web-landing/src/app/(app-customer)/studio/admin/*\`
63
+ `}]);
@@ -0,0 +1,36 @@
1
+ import{registerDocBlocks as e}from"../../registry.js";e([{id:`docs.tech.studio.project-access-teams`,title:`Studio Project Access via Teams`,summary:`Projects live under organizations; team sharing refines access with an admin/owner override.`,kind:`reference`,visibility:`public`,route:`/docs/tech/studio/project-access-teams`,tags:[`studio`,`projects`,`teams`,`rbac`,`access-control`],body:`# Studio Project Access via Teams
2
+
3
+ Studio access control is **organization-first** with optional **team-based sharing**.
4
+
5
+ ## Data model
6
+
7
+ - \`Team\` and \`TeamMember\` define team membership inside an organization.
8
+ - \`StudioProject\` is owned by an organization.
9
+ - \`StudioProjectTeam\` links projects to 0..N teams.
10
+
11
+ ## Access rules
12
+
13
+ - **Admins/owners**: always have access to all projects in the organization.
14
+ - **Org-wide projects**: if a project has **no team links**, all organization members can access it.
15
+ - **Team-scoped projects**: if a project has **one or more team links**, a user must be a member of at least one linked team.
16
+
17
+ ## GraphQL surfaces
18
+
19
+ - Read:
20
+ - \`myStudioProjects\` (returns only projects you can access)
21
+ - \`studioProjectBySlug(slug)\` (enforces the same access rules)
22
+ - \`myTeams\`
23
+ - \`projectTeams(projectId)\`
24
+
25
+ - Write:
26
+ - \`createStudioProject(input.teamIds?)\` (teamIds optional)
27
+ - \`setProjectTeams(projectId, teamIds)\` (admin-only)
28
+
29
+ ## Related
30
+ +
31
+ +- Team administration + invitations: see \`/docs/tech/studio/team-invitations\`.
32
+ +
33
+ ## Notes
34
+
35
+ Payloads and events must avoid secrets/PII. For Sandbox, the model remains local-first and unlogged.
36
+ `}]);
@@ -0,0 +1 @@
1
+ import{registerDocBlocks as e}from"../../registry.js";e([{id:`docs.tech.studio.project-routing`,title:`Studio Project Routing`,summary:`Studio uses slugged, project-first routes: /studio/{projectSlug}/* with canonical slug redirects and soft-deleted projects hidden.`,kind:`reference`,visibility:`public`,route:`/docs/tech/studio/project-routing`,tags:[`studio`,`routing`,`projects`,`slug`,`redirects`],body:"# Studio Project Routing\n\nContractSpec Studio uses a **project-first URL scheme**:\n\n- `/studio/projects` — create, select, and delete projects.\n- `/studio/{projectSlug}/*` — project modules (canvas/specs/deploy/integrations/evolution/learning).\n- `/studio/learning` — learning hub that does not require selecting a project.\n\n## Studio layout shell\n\nStudio routes are wrapped in a dedicated **Studio app shell** (header + footer) that provides in-app navigation (Projects/Learning/Teams), organization switching, and account actions.\n\nProject module routes (`/studio/{projectSlug}/*`) render their own module shell (`WorkspaceProjectShellLayout`). When combined with the global Studio header, the project shell uses a **sticky header offset** to avoid overlapping sticky headers.\n\n## Slug behavior (rename-safe)\n\n- Each project has a `slug` stored in the database (`StudioProject.slug`).\n- When a project name changes, Studio **updates the slug** and stores the previous slug as an alias (`StudioProjectSlugAlias`).\n- Requests to an alias slug are **redirected to the canonical slug**.\n\nGraphQL entrypoint:\n\n- `studioProjectBySlug(slug: String!)` returns:\n - `project`\n - `canonicalSlug`\n - `wasRedirect`\n\n## Deletion behavior (soft delete)\n\nProjects are **soft-deleted**:\n\n- `deleteStudioProject(id: String!)` sets `StudioProject.deletedAt`.\n- All listings and access checks filter `deletedAt = null`.\n- Soft-deleted projects are treated as “not found” in Studio routes and GraphQL access checks.\n\n## Available modules for a selected project\n\nThe following project modules are expected under `/studio/{projectSlug}`:\n\n- `/canvas` — Visual builder canvas (stored via overlays and canvas versions).\n- `/specs` — Spec editor (stored as `StudioSpec`).\n- `/deploy` — Deployments history + triggers (stored as `StudioDeployment`).\n- `/integrations` — Integrations scoped to project (stored as `StudioIntegration`).\n- `/evolution` — Evolution sessions (stored as `EvolutionSession`).\n- `/learning` — Project learning activity.\n"}]);
@@ -0,0 +1,20 @@
1
+ import{registerDocBlocks as e}from"../../registry.js";e([{id:`docs.tech.studio.sandbox.unlogged`,title:`Sandbox (unlogged) vs Studio (authenticated)`,summary:`The sandbox is a lightweight, unlogged surface that mirrors Studio navigation without auth or analytics.`,kind:`reference`,visibility:`public`,route:`/docs/tech/studio/sandbox-unlogged`,tags:[`studio`,`sandbox`,`privacy`,`analytics`],body:`## Sandbox guarantees
2
+
3
+ - Route: \`/sandbox\`
4
+ - **No auth requirement**
5
+ - **No PostHog init**
6
+ - **No Vercel Analytics**
7
+ - Local-only state (in-browser runtime + localStorage where needed)
8
+
9
+ ## What Sandbox is for
10
+
11
+ - Try templates and feature modules safely
12
+ - Preview specs/builder/evolution/learning
13
+ - Produce copyable CLI commands (no side effects)
14
+
15
+ ## What Sandbox is *not* for
16
+
17
+ - Persisted projects/workspaces
18
+ - Real deployments
19
+ - Organization-scoped integrations (unless explicitly enabled later)
20
+ `}]);
@@ -0,0 +1,65 @@
1
+ import{registerDocBlocks as e}from"../../registry.js";e([{id:`docs.tech.studio.team-invitations`,title:`Studio Teams & Invitations`,summary:`Admin-only team management and email invitation flow to join an organization and optionally a team.`,kind:`reference`,visibility:`public`,route:`/docs/tech/studio/team-invitations`,tags:[`studio`,`teams`,`invitations`,`access-control`,`onboarding`],body:`# Studio Teams & Invitations
2
+
3
+ Studio uses **organization membership** as the base access model. Teams are optional and used to refine access to projects.
4
+
5
+ ## Who can manage teams?
6
+
7
+ - **Admins/owners only**: create, rename, delete teams; manage project team access; issue invitations.
8
+
9
+ ## Invitation data model
10
+
11
+ - \`Invitation\` rows are stored under an organization and target an **email** address.
12
+
13
+ - An invitation can optionally target a \`teamId\`, which will grant the user membership in that team upon acceptance.
14
+
15
+ Key fields:
16
+ - \`email\`: invited address (must match the accepting user's account email)
17
+
18
+ - \`status\`: \`pending | accepted | declined | expired\`
19
+
20
+ - \`teamId?\`: optional team to join
21
+
22
+ - \`inviterId\`: user who issued the invitation
23
+
24
+ ## GraphQL surfaces
25
+
26
+ - Team CRUD (admin-only):
27
+
28
+ - \`createTeam(name)\`
29
+
30
+ - \`renameTeam(teamId, name)\`
31
+
32
+ - \`deleteTeam(teamId)\`
33
+
34
+
35
+ - Invitations (admin-only):
36
+
37
+ - \`organizationInvitations\`
38
+
39
+ - \`inviteToOrganization(email, role?, teamId?)\` → returns \`inviteUrl\` and whether an email was sent
40
+
41
+ ## Accepting an invitation
42
+
43
+ The invite link is served as:
44
+
45
+ - \`/invite/{invitationId}\`
46
+
47
+ Acceptance rules:
48
+ - The user must be authenticated.
49
+
50
+ - The authenticated user’s email must match \`Invitation.email\`.
51
+
52
+ - If not already a member, create \`Member(userId, organizationId, role)\`.
53
+
54
+ - If \`teamId\` is present, ensure \`TeamMember(teamId, userId)\`.
55
+
56
+ - Mark invitation \`status='accepted'\` and set \`acceptedAt\`.
57
+
58
+ - Set \`activeOrganizationId\` for the session so \`/studio/*\` routes work immediately.
59
+
60
+ ## Email delivery
61
+
62
+ - If \`RESEND_API_KEY\` is set, the system attempts to send an email.
63
+
64
+ - Otherwise, the UI uses the returned \`inviteUrl\` for manual copy/share.
65
+ `}]);
@@ -0,0 +1 @@
1
+ import{registerDocBlocks as e}from"../../registry.js";e([{id:`docs.tech.studio.workspace_ops`,title:`Workspace ops (repo-linked): list / validate / deps / diff`,summary:`Read-only repo operations used by Studio to inspect and validate a linked ContractSpec workspace.`,kind:`reference`,visibility:`mixed`,route:`/docs/tech/studio/workspace-ops`,tags:[`studio`,`repo`,`workspace`,`validate`,`diff`],body:"## API surface (api-contractspec)\n\nBase: `/api/workspace-ops`\n\nThese endpoints are **read-only** in v1 and never push to git:\n\n- `GET /api/workspace-ops/:integrationId/config?organizationId=`\n- `GET /api/workspace-ops/:integrationId/specs?organizationId=`\n- `POST /api/workspace-ops/:integrationId/validate` (body: organizationId, files?, pattern?)\n- `POST /api/workspace-ops/:integrationId/deps` (body: organizationId, pattern?)\n- `POST /api/workspace-ops/:integrationId/diff` (body: organizationId, specPath, baseline?, breakingOnly?)\n\n## Repo resolution\n\n- The repo root is resolved from the Studio Integration (`IntegrationProvider.GITHUB`) config:\n - `config.repoCachePath` (preferred) or `config.localPath`\n- Resolution is constrained to `CONTRACTSPEC_REPO_CACHE_DIR` (default: `/tmp/contractspec-repos`)\n\n## Intended UX\n\n- Studio Assistant can run these checks and present results as suggestions.\n- Users can copy equivalent CLI commands for local runs:\n - `contractspec validate`\n - `contractspec deps`\n - `contractspec diff --baseline <ref>`\n"}]);
@@ -0,0 +1,41 @@
1
+ import{registerDocBlocks as e}from"../../registry.js";e([{id:`docs.tech.studio.workspaces`,title:`Studio projects, teams, environments`,summary:`Organization-first Studio: projects live under an organization; teams refine access; projects deploy to multiple environments.`,kind:`reference`,visibility:`mixed`,route:`/docs/tech/studio/workspaces`,tags:[`studio`,`projects`,`teams`,`rbac`,`environments`],body:`## Concepts
2
+
3
+ - **Organization**: the primary grouping boundary for Studio projects.
4
+ - **Project**: one application (specs, overlays, deployments, integrations, evolution, learning).
5
+ - **Team**: refines who can see/edit a project within an organization.
6
+ - **Environment**: deployment target (Development / Staging / Production).
7
+
8
+ ## Project access (teams + admin override)
9
+
10
+ Studio uses multi-team sharing to refine access:
11
+
12
+ - **Admins/owners** can access all projects.
13
+ - If a project is shared with **no teams**, it is **org-wide** (all org members).
14
+ - If a project is shared with **one or more teams**, it is visible to:
15
+ - admins/owners, and
16
+ - members of any linked team.
17
+
18
+ ## Current persistence (DB + GraphQL)
19
+
20
+ - DB (Prisma): \`StudioProject\`, \`Team\`, \`TeamMember\`, \`StudioProjectTeam\`
21
+ - GraphQL:
22
+ - \`myStudioProjects\`
23
+ - \`createStudioProject(input.teamIds?)\`
24
+ - \`myTeams\`
25
+ - \`projectTeams(projectId)\`
26
+ - \`setProjectTeams(projectId, teamIds)\`
27
+
28
+ ## UI shell behavior
29
+
30
+ Studio and Sandbox both use a shared shell:
31
+
32
+ - Project selector → Module navigation → Environment selector
33
+ - Always-on Assistant button (floating)
34
+ - Learning journey progress (Studio persists learning events; Sandbox stays local-only)
35
+
36
+ ## Routing
37
+
38
+ - \`/studio/projects\`: create/select/delete projects (organization-first).
39
+ - \`/studio/{projectSlug}/*\`: project modules (canvas/specs/deploy/integrations/evolution/learning).
40
+ - \`/studio/learning\`: learning hub without selecting a project.
41
+ `}]);
@@ -0,0 +1,122 @@
1
+ import{registerDocBlocks as e}from"../registry.js";e([{id:`docs.tech.telemetry.ingest`,title:`Telemetry Ingest Endpoint`,summary:`Server-side telemetry ingestion for ContractSpec clients (VS Code extension, CLI, etc.).`,kind:`reference`,visibility:`internal`,route:`/docs/tech/telemetry/ingest`,tags:[`telemetry`,`api`,`posthog`,`analytics`],body:`# Telemetry Ingest Endpoint
2
+
3
+ The ContractSpec API provides a telemetry ingest endpoint for clients to send product analytics events.
4
+
5
+ ## Endpoint
6
+
7
+ \`\`\`
8
+ POST /api/telemetry/ingest
9
+ \`\`\`
10
+
11
+ ## Request
12
+
13
+ \`\`\`json
14
+ {
15
+ "event": "contractspec.vscode.command_run",
16
+ "distinct_id": "client-uuid",
17
+ "properties": {
18
+ "command": "validate"
19
+ },
20
+ "timestamp": "2024-01-15T10:30:00.000Z"
21
+ }
22
+ \`\`\`
23
+
24
+ ### Headers
25
+
26
+ | Header | Description |
27
+ |--------|-------------|
28
+ | \`x-contractspec-client-id\` | Optional client identifier (used as fallback for distinct_id) |
29
+ | \`Content-Type\` | Must be \`application/json\` |
30
+
31
+ ### Body
32
+
33
+ | Field | Type | Required | Description |
34
+ |-------|------|----------|-------------|
35
+ | \`event\` | string | Yes | Event name (e.g., \`contractspec.vscode.activated\`) |
36
+ | \`distinct_id\` | string | Yes | Anonymous client identifier |
37
+ | \`properties\` | object | No | Event properties |
38
+ | \`timestamp\` | string | No | ISO 8601 timestamp |
39
+
40
+ ## Response
41
+
42
+ \`\`\`json
43
+ {
44
+ "success": true
45
+ }
46
+ \`\`\`
47
+
48
+ ## Configuration
49
+
50
+ The endpoint requires \`POSTHOG_PROJECT_KEY\` environment variable to be set. If not configured, events are accepted but not forwarded.
51
+
52
+ | Environment Variable | Description | Default |
53
+ |---------------------|-------------|---------|
54
+ | \`POSTHOG_HOST\` | PostHog host URL | \`https://eu.posthog.com\` |
55
+ | \`POSTHOG_PROJECT_KEY\` | PostHog project API key | (required) |
56
+
57
+ ## Privacy
58
+
59
+ - No PII is collected or stored
60
+ - \`distinct_id\` is an anonymous client-generated UUID
61
+ - File paths and source code are never included in events
62
+ - Respects VS Code telemetry settings on the client side
63
+
64
+ ## Events
65
+
66
+ ### Extension Events
67
+
68
+ | Event | Description | Properties |
69
+ |-------|-------------|------------|
70
+ | \`contractspec.vscode.activated\` | Extension activated | \`version\` |
71
+ | \`contractspec.vscode.command_run\` | Command executed | \`command\` |
72
+ | \`contractspec.vscode.mcp_call\` | MCP call made | \`endpoint\`, \`tool\` |
73
+
74
+ ### API Events
75
+
76
+ | Event | Description | Properties |
77
+ |-------|-------------|------------|
78
+ | \`contractspec.api.mcp_request\` | MCP request processed | \`endpoint\`, \`method\`, \`success\`, \`duration_ms\` |
79
+ `},{id:`docs.tech.telemetry.hybrid`,title:`Hybrid Telemetry Model`,summary:`How ContractSpec clients choose between direct PostHog and API-routed telemetry.`,kind:`usage`,visibility:`internal`,route:`/docs/tech/telemetry/hybrid`,tags:[`telemetry`,`architecture`,`posthog`],body:`# Hybrid Telemetry Model
80
+
81
+ ContractSpec uses a hybrid telemetry model where clients can send events either directly to PostHog or via the API server.
82
+
83
+ ## Decision Flow
84
+
85
+ \`\`\`
86
+ Is contractspec.api.baseUrl configured?
87
+ ├── Yes → Send via /api/telemetry/ingest
88
+ └── No → Is posthogProjectKey configured?
89
+ ├── Yes → Send directly to PostHog
90
+ └── No → Telemetry disabled
91
+ \`\`\`
92
+
93
+ ## Benefits
94
+
95
+ ### Direct PostHog
96
+ - No server dependency
97
+ - Works offline (with batching)
98
+ - Lower latency
99
+
100
+ ### Via API
101
+ - Centralized key management (no client-side keys)
102
+ - Server-side enrichment and validation
103
+ - Rate limiting and abuse prevention
104
+ - Easier migration to other providers
105
+
106
+ ## Recommendation
107
+
108
+ - **Development**: Use direct PostHog with a dev project key
109
+ - **Production**: Route via API for better governance
110
+
111
+ ## Future: OpenTelemetry
112
+
113
+ The current PostHog implementation is behind a simple interface that can be swapped for OpenTelemetry:
114
+
115
+ \`\`\`typescript
116
+ interface TelemetryClient {
117
+ send(event: TelemetryEvent): Promise<void>;
118
+ }
119
+ \`\`\`
120
+
121
+ This allows future migration without changing client code.
122
+ `}]);
@@ -0,0 +1,68 @@
1
+ import{registerDocBlocks as e}from"../registry.js";e([{id:`docs.tech.vscode.extension`,title:`ContractSpec VS Code Extension`,summary:`VS Code extension for spec-first development with validation, scaffolding, and MCP integration.`,kind:`reference`,visibility:`public`,route:`/docs/tech/vscode/extension`,tags:[`vscode`,`extension`,`tooling`,`dx`],body:`# ContractSpec VS Code Extension
2
+
3
+ The ContractSpec VS Code extension provides spec-first development tooling directly in your editor.
4
+
5
+ ## Features
6
+
7
+ - **Real-time Validation**: Get instant feedback on spec errors and warnings as you save files
8
+ - **Build/Scaffold**: Generate handler and component skeletons from specs (no AI required)
9
+ - **Spec Explorer**: List and navigate all specs in your workspace
10
+ - **Dependency Analysis**: Visualize spec dependencies and detect cycles
11
+ - **MCP Integration**: Search ContractSpec documentation via Model Context Protocol
12
+ - **Snippets**: Code snippets for common ContractSpec patterns
13
+
14
+ ## Commands
15
+
16
+ | Command | Description |
17
+ |---------|-------------|
18
+ | \`ContractSpec: Validate Current Spec\` | Validate the currently open spec file |
19
+ | \`ContractSpec: Validate All Specs\` | Validate all spec files in the workspace |
20
+ | \`ContractSpec: Build/Scaffold\` | Generate handler/component from the current spec |
21
+ | \`ContractSpec: List All Specs\` | Show all specs in the workspace |
22
+ | \`ContractSpec: Analyze Dependencies\` | Analyze and visualize spec dependencies |
23
+ | \`ContractSpec: Search Docs (MCP)\` | Search documentation via MCP |
24
+
25
+ ## Configuration
26
+
27
+ | Setting | Description | Default |
28
+ |---------|-------------|---------|
29
+ | \`contractspec.api.baseUrl\` | Base URL for ContractSpec API (enables MCP + remote telemetry) | \`""\` |
30
+ | \`contractspec.telemetry.posthogHost\` | PostHog host URL for direct telemetry | \`"https://eu.posthog.com"\` |
31
+ | \`contractspec.telemetry.posthogProjectKey\` | PostHog project key for direct telemetry | \`""\` |
32
+ | \`contractspec.validation.onSave\` | Run validation on save | \`true\` |
33
+ | \`contractspec.validation.onOpen\` | Run validation on open | \`true\` |
34
+
35
+ ## Architecture
36
+
37
+ The extension uses:
38
+ - \`@lssm/module.contractspec-workspace\` for pure analysis + templates
39
+ - \`@lssm/bundle.contractspec-workspace\` for workspace services + adapters
40
+
41
+ This allows the extension to work without requiring the CLI to be installed.
42
+
43
+ ## Telemetry
44
+
45
+ The extension uses a hybrid telemetry approach:
46
+ 1. If \`contractspec.api.baseUrl\` is configured → send to API \`/api/telemetry/ingest\`
47
+ 2. Otherwise → send directly to PostHog (if project key configured)
48
+
49
+ Telemetry respects VS Code's telemetry settings. No file paths, source code, or PII is collected.
50
+ `},{id:`docs.tech.vscode.snippets`,title:`ContractSpec Snippets`,summary:`Code snippets for common ContractSpec patterns in VS Code.`,kind:`reference`,visibility:`public`,route:`/docs/tech/vscode/snippets`,tags:[`vscode`,`snippets`,`dx`],body:`# ContractSpec Snippets
51
+
52
+ The VS Code extension includes snippets for common ContractSpec patterns.
53
+
54
+ ## Available Snippets
55
+
56
+ | Prefix | Description |
57
+ |--------|-------------|
58
+ | \`contractspec-command\` | Create a new command (write operation) |
59
+ | \`contractspec-query\` | Create a new query (read-only operation) |
60
+ | \`contractspec-event\` | Create a new event |
61
+ | \`contractspec-docblock\` | Create a new DocBlock |
62
+ | \`contractspec-telemetry\` | Create a new TelemetrySpec |
63
+ | \`contractspec-presentation\` | Create a new Presentation |
64
+
65
+ ## Usage
66
+
67
+ Type the prefix in a TypeScript file and press Tab to expand the snippet. Tab through the placeholders to fill in your values.
68
+ `}]);
@@ -1,4 +1,4 @@
1
- import{registerDocBlocks as e}from"../contracts/src/docs/registry.js";import"../contracts/src/docs/index.js";e([{id:`docs.personalization.behavior-tracking`,title:`Behavior Tracking`,summary:"`@lssm/lib.personalization` provides primitives to observe how tenants/users interact with specs and turn that telemetry into personalization insights.",kind:`reference`,visibility:`public`,route:`/docs/personalization/behavior-tracking`,tags:[`personalization`,`behavior-tracking`],body:`# Behavior Tracking
1
+ import{registerDocBlocks as e}from"../contracts/src/docs/registry.js";import"../contracts/src/docs/index.js";const t=[{id:`docs.personalization.behavior-tracking`,title:`Behavior Tracking`,summary:"`@lssm/lib.personalization` provides primitives to observe how tenants/users interact with specs and turn that telemetry into personalization insights.",kind:`reference`,visibility:`public`,route:`/docs/personalization/behavior-tracking`,tags:[`personalization`,`behavior-tracking`],body:`# Behavior Tracking
2
2
 
3
3
  \`@lssm/lib.personalization\` provides primitives to observe how tenants/users interact with specs and turn that telemetry into personalization insights.
4
4
 
@@ -77,4 +77,4 @@ When the adapter returns an overlay spec, pass it to the overlay engine to regis
77
77
 
78
78
 
79
79
 
80
- `}]);
80
+ `}];e(t);export{t as personalization_behavior_tracking_DocBlocks};
@@ -1,4 +1,4 @@
1
- import{registerDocBlocks as e}from"../contracts/src/docs/registry.js";import"../contracts/src/docs/index.js";e([{id:`docs.personalization.overlay-engine`,title:`Overlay Engine`,summary:"`@lssm/lib.overlay-engine` is the canonical runtime for OverlaySpecs. It validates specs, tracks scope precedence, and exposes hooks for React renderers.",kind:`reference`,visibility:`public`,route:`/docs/personalization/overlay-engine`,tags:[`personalization`,`overlay-engine`],body:`# Overlay Engine
1
+ import{registerDocBlocks as e}from"../contracts/src/docs/registry.js";import"../contracts/src/docs/index.js";const t=[{id:`docs.personalization.overlay-engine`,title:`Overlay Engine`,summary:"`@lssm/lib.overlay-engine` is the canonical runtime for OverlaySpecs. It validates specs, tracks scope precedence, and exposes hooks for React renderers.",kind:`reference`,visibility:`public`,route:`/docs/personalization/overlay-engine`,tags:[`personalization`,`overlay-engine`],body:`# Overlay Engine
2
2
 
3
3
  \`@lssm/lib.overlay-engine\` is the canonical runtime for OverlaySpecs. It validates specs, tracks scope precedence, and exposes hooks for React renderers.
4
4
 
@@ -78,4 +78,4 @@ const result = engine.apply({
78
78
 
79
79
 
80
80
 
81
- `}]);
81
+ `}];e(t);export{t as personalization_overlay_engine_DocBlocks};
@@ -1,4 +1,4 @@
1
- import{registerDocBlocks as e}from"../contracts/src/docs/registry.js";import"../contracts/src/docs/index.js";e([{id:`docs.personalization.workflow-composition`,title:`Workflow Composition`,summary:"`@lssm/lib.workflow-composer` composes base WorkflowSpecs with tenant/role/device-specific extensions.",kind:`reference`,visibility:`public`,route:`/docs/personalization/workflow-composition`,tags:[`personalization`,`workflow-composition`],body:`# Workflow Composition
1
+ import{registerDocBlocks as e}from"../contracts/src/docs/registry.js";import"../contracts/src/docs/index.js";const t=[{id:`docs.personalization.workflow-composition`,title:`Workflow Composition`,summary:"`@lssm/lib.workflow-composer` composes base WorkflowSpecs with tenant/role/device-specific extensions.",kind:`reference`,visibility:`public`,route:`/docs/personalization/workflow-composition`,tags:[`personalization`,`workflow-composition`],body:`# Workflow Composition
2
2
 
3
3
  \`@lssm/lib.workflow-composer\` composes base WorkflowSpecs with tenant/role/device-specific extensions.
4
4
 
@@ -63,4 +63,4 @@ The composer uses anchor references (\`after\`/\`before\`) to place injected ste
63
63
 
64
64
 
65
65
 
66
- `}]);
66
+ `}];e(t);export{t as personalization_workflow_composition_DocBlocks};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{InMemoryBehaviorStore as e}from"./store.js";import{BehaviorTracker as t,createBehaviorTracker as n}from"./tracker.js";import{BehaviorAnalyzer as r}from"./analyzer.js";import{insightsToOverlaySuggestion as i,insightsToWorkflowAdaptations as a}from"./adapter.js";import"./docs/index.js";export{r as BehaviorAnalyzer,t as BehaviorTracker,e as InMemoryBehaviorStore,n as createBehaviorTracker,i as insightsToOverlaySuggestion,a as insightsToWorkflowAdaptations};
1
+ import{insightsToOverlaySuggestion as e,insightsToWorkflowAdaptations as t}from"./adapter.js";import{BehaviorAnalyzer as n}from"./analyzer.js";import{InMemoryBehaviorStore as r}from"./store.js";import{BehaviorTracker as i,createBehaviorTracker as a}from"./tracker.js";import"./docs/index.js";export{n as BehaviorAnalyzer,i as BehaviorTracker,r as InMemoryBehaviorStore,a as createBehaviorTracker,e as insightsToOverlaySuggestion,t as insightsToWorkflowAdaptations};
package/dist/types.js ADDED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/lib.personalization",
3
- "version": "0.0.0-canary-20251212230121",
3
+ "version": "0.0.0-canary-20251215220103",
4
4
  "description": "Behavior tracking, analysis, and adaptation helpers for ContractSpec personalization.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -33,17 +33,35 @@
33
33
  "devDependencies": {
34
34
  "@lssm/tool.tsdown": "workspace:*",
35
35
  "@lssm/tool.typescript": "workspace:*",
36
- "tsdown": "^0.17.0",
36
+ "tsdown": "^0.17.4",
37
37
  "typescript": "^5.9.3"
38
38
  },
39
39
  "exports": {
40
40
  ".": "./src/index.ts",
41
+ "./adapter": "./src/adapter.ts",
42
+ "./analyzer": "./src/analyzer.ts",
43
+ "./docs": "./src/docs/index.ts",
44
+ "./docs/behavior-tracking.docblock": "./src/docs/behavior-tracking.docblock.ts",
45
+ "./docs/overlay-engine.docblock": "./src/docs/overlay-engine.docblock.ts",
46
+ "./docs/workflow-composition.docblock": "./src/docs/workflow-composition.docblock.ts",
47
+ "./store": "./src/store.ts",
48
+ "./tracker": "./src/tracker.ts",
49
+ "./types": "./src/types.ts",
41
50
  "./*": "./*"
42
51
  },
43
52
  "publishConfig": {
44
53
  "access": "public",
45
54
  "exports": {
46
55
  ".": "./dist/index.js",
56
+ "./adapter": "./dist/adapter.js",
57
+ "./analyzer": "./dist/analyzer.js",
58
+ "./docs": "./dist/docs/index.js",
59
+ "./docs/behavior-tracking.docblock": "./dist/docs/behavior-tracking.docblock.js",
60
+ "./docs/overlay-engine.docblock": "./dist/docs/overlay-engine.docblock.js",
61
+ "./docs/workflow-composition.docblock": "./dist/docs/workflow-composition.docblock.js",
62
+ "./store": "./dist/store.js",
63
+ "./tracker": "./dist/tracker.js",
64
+ "./types": "./dist/types.js",
47
65
  "./*": "./*"
48
66
  }
49
67
  }