libraryPackage manifestv2.1.4

lib.growth-runtime

Pure deterministic runtime for GrowthOS referral, affiliate, reward, and payout lifecycles.

@lssm-tech/lib.growth-runtime
Source, release and verification context

Source snapshot bcc79fcc · Declared package version 2.1.4. This page combines the checked-in package guide and manifest; commands and runtime behavior were not executed in this review.

Package source ↗ Manifest ↗
servernode
EXPLORE THE PACKAGE

See where this package fits.

Follow a declared connection, inspect an import, then open the source guide when you need the detail.

THIS PACKAGElib.growth-runtimedomains

Arrows point from a package to its direct dependency. Each count is derived from the captured manifests.

5 déclarationsSELECT TO INSPECT

@lssm-tech/lib.growth-runtime

Pure, provider-neutral GrowthOS lifecycle logic for referral and affiliate programs.

./marketing/forms owns the existing demo-request form and registry using the canonical Growth operation schemas. ./operations/marketing.handlers retains the deterministic sample catalog handlers and synthetic authenticated demo booking behavior; it does not contact a real booking service. Handler signatures use the complete canonical RuntimeCore installation types.

It selects one prioritized, non-stackable attribution winner, enforces consent and identity/organization loop boundaries, projects fixed or BillingOS commission-based rewards, applies approval, maturity, and compensating ledger transitions, builds homogeneous payout batches, validates payout readiness, and signs short-lived acquisition context. Persistence and provider SDK calls belong to integrations.

Marketing and editorial runtime

The optional ./marketing subpath adds MarketingExecutor, EditorialService, EditorialPublicationService, source-aware measurement reconciliation and review-only experiment assessment. Supply current authorization, durable CAS storage, provider, clock and ID ports. No provider effects are available by default. Concurrent workers share durable reservations and publication intents; ambiguous outcomes require reconciliation rather than blind redispatch.

Editorial edits invalidate previous approvals and scheduling. Reviews bind to the exact content digest. Published content requires a separate withdrawal workflow; archiving cannot silently remove a live publication.

Commandes

  • bun run test
  • bun run typecheck
  • bun run lint:check
  • bun run build

MarketingConversionService reserves conversion identity before dispatch, rechecks current consent and retains uncertain outcomes for read-only reconciliation. Corrections require the accepted predecessor; retractions are terminal. Host authority governs data egress and may independently authorize a retraction after consent revocation.

MarketingObservationService authorizes refresh/read scopes, rejects substituted provider requests and persists observations. marketingObservedStateDigest excludes timestamps and evidence references while retaining scoped resource states for execution planning.

marketing/planning-approval supplies MarketingPlanningApprovalService. Inject current pricing/brand authorization, human-review verification and durable storage. The service issues the existing OperationApprovalReceipt format, bound to exact parsed input and maximum cost. Configure its verifyEvidence callback on createOperationApprovalPort with a durable nonce store; omitting evidence verification is not a supported setup. Issuance returns the persisted receipt, so concurrent calls and replay agree.

marketing/measurement-report sums explicitly requested reporting buckets after source reconciliation. It preserves campaign/creative/creator, currency, timezone and attribution dimensions; missing, partial, stale or future observations keep totals unavailable. Overlapping periods and duplicate authoritative buckets are rejected. These numeric analytics totals do not replace exact-money settlement calculations.

Published builds keep workspace package imports external so dependencies resolve through their owning package manifests rather than being silently inlined across package boundaries.

EditorialService.recovery authorizes scope and each record, validates claim/digest/status/age, and returns a bounded oldest-first batch. It never dispatches publication.

verifyEditorialDeployment checks exact release SHA, ready state, receipt digest, locale coverage and expected canonical URL before returning verified evidence. Hosts must obtain observations from an authorized deployment origin and bind the compiler expectation to the persisted publication claim. This pure verifier does not publish or fetch.

GitEditorialPublisher persists an immutable compiled artifact before its sole Git write attempt. Existing claims reconcile through read-only transport recovery; committed artifacts still require exact deployment proof. The host must implement current authority and native compiler validation.

Git compiler/artifact/authority rejections before dispatch can now return a durable failed-publication receipt when the store supports preparation failures. Existing stores without the capability retain conservative unknown behavior. A failure never supersedes an existing Git attempt, and raw error text is not recorded.

Qualified publishers may implement resumePreparation. The publication service preserves the claim ID, rechecks review/content/current publish authority and claims the expected revision before invoking it. Git resumes reconcile existing attempts and honor preparation-failure fences.

Editorial discovery validates page bounds, UTF-8 ID ordering, scope and all filter bindings before returning summary-schema projections. Scope and every row, including lookahead, require read authorization; denied rows fail the request.

compareEditorialIds exposes the same UTF-8 ordering used by SQL-backed listing so clients can reject non-advancing pages.

readEditorialHistory requires current scope/record authorization and separate authorization for every historical revision. It verifies identity, scope, content digest and ordering before returning historical content.

Editorial history requires contiguous revisions and detects incomplete pages before the observed current revision. Corrupt audit trails fail explicitly.

Declared capabilities.

Lib Growth Runtime

Pure deterministic runtime for GrowthOS referral, affiliate, reward, and payout lifecycles.

Use it to

  • Adopt pure deterministic runtime for growthos referral, affiliate, reward, and payout lifecycles

Requires

  • TypeScript

Choose another boundary when

  • The @lssm-tech/lib.growth-runtime package constraints do not match the target runtime or platform.

@lssm-tech/lib.growth-runtime

@lssm-tech/lib.growth-runtime/acquisition-token

@lssm-tech/lib.growth-runtime/attribution

@lssm-tech/lib.growth-runtime/ledger

@lssm-tech/lib.growth-runtime/payouts

@lssm-tech/lib.growth-runtime/rewards

Imports and export paths.

30 entries

These are package-manifest entry points. Named symbols listed above come from the capability catalogue; this is not an exhaustive TypeScript symbol reference.

30 imports

Dependencies and related packages.

Runtime dependencies 5
Development dependencies 3
typescript
catalog:

Package scripts.

Commands declared by this package. Review its setup requirements before running them; no command here was executed by this review.

publish:pkgbun publish --tolerate-republish --ignore-scripts --verbose
publish:pkg:canarybun publish:pkg --tag canary
buildcontractspec-bun-build build
build:bundlecontractspec-bun-build transpile
build:typescontractspec-bun-build types
devcontractspec-bun-build dev
cleanrimraf dist .turbo
lintbun lint:fix
lint:fixnode ../../../../scripts/biome.cjs check --write .
lint:checknode ../../../../scripts/biome.cjs check .
testbun test
prebuildcontractspec-bun-build prebuild
typechecktsgo --noEmit
Votre vue

Make room for your context.

Shape the presentation around this moment. You can change it whenever you need.

Votre contexte

The different parts of you

Choose a starting point

Un mélange utile de contexte, de visuels et de guidage discret.

Tune each dimension
Each dimension can change independently. Product permissions and available actions stay unchanged.

Support the way you begin and return

Tune your support

Confort de lecture

Choisir votre langue

La langue de l’interface change uniquement le texte. Les marchés, les prix et les parcours conservent leurs propres paramètres.

Couverture des traductions

Une partie du contenu est affichée en anglais.

Navigation151
Graphe616
Catégories378
Portfolio833
Exemples2 035
Aperçu de la source1 542

D’autres traductions seront ajoutées à mesure que le contenu sera relu.

Cette préférence est enregistrée dans ce navigateur.

Rechercher sur le site

Des points de départ utiles

Aucun résultat. Essayez une expression plus courte, un nom d’opération ou un autre périmètre de recherche.

UN PEU DE PLACE POUR EXPLORER

Trouvez quelque chose à explorer.

Ouvrez un aperçu détaillé sur cette page, essayez une autre perspective ou suivez le détail vers sa propre page.

Fonctionnement des aperçus et des commandes
01

Regarder avant de partir

Survolez un lien ou sélectionnez-le avec Tab pour voir un aperçu. Cliquer sur le lien d’origine ou appuyer sur Entrée ouvre toujours sa destination.

02

Rester dans le contexte

Entrez dans l’aperçu pour explorer ses sections. Depuis un lien sélectionné, utilisez Alt + ↓ pour y entrer au clavier. Échap le ferme.

03

Ouvrir les possibilités

Les lignes dépliables, les choix de perspective et les commandes mises en évidence révèlent davantage. Votre vue adapte le confort de lecture et le contexte exploré.

Un bouton séparé pour voir de plus près

Affichez de petits boutons d’aperçu à côté des liens quand l’espace le permet. Touchez l’œil pour examiner ou le lien pour y aller directement. Ce choix reste dans cet onglet.

Aucun historique de navigation n’est collecté. La réduction des animations suit votre appareil et Votre vue.