ContractSpec docs

OSS-first docs

These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.

learning-journey-platform-tour

Platform primitives tour journey for exploring ContractSpec core features

  • Type: feature
  • Version: 1.0.0
  • Stability: experimental
  • Owners: @examples.learning-journey.platform-tour
  • Tags: learning, platform, tour, journey
  • field.key.label
    learning-journey-platform-tour
    field.version.label
    1.0.0
    field.type.label
    feature
    field.title.label
    learning-journey-platform-tour
    field.description.label

    Platform primitives tour journey for exploring ContractSpec core features

  • Type: feature
  • Version: 1.0.0
  • Stability: experimental
  • Owners: @examples.learning-journey.platform-tour
  • Tags: learning, platform, tour, journey
  • field.tags.label
    learning,platform,tour,journey
    field.owners.label
    @examples.learning-journey.platform-tour
    field.stability.label
    experimental

    Platform primitives tour journey for exploring ContractSpec core features

    Operations (2)

    `learningJourney.platformTour.recordEvent` (v1.0.0)

    `learningJourney.platformTour.getTrack` (v1.0.0)

    Presentations (2)

    `learning.journey.platform.track` (v1.0.0)

    `learning.journey.platform.widget` (v1.0.0)

    Source Definition

    /**
     * Learning Journey Platform Tour Feature Module Specification
     *
     * Defines the feature module for platform primitives tour journey.
     */
    import { defineFeature } from '@lssm-tech/lib.contracts-spec';
    
    /**
     * Learning Journey Platform Tour feature module that bundles
     * platform-specific tour track operations and presentations.
     */
    export const LearningJourneyPlatformTourFeature = defineFeature({
    	meta: {
    		key: 'learning-journey-platform-tour',
    		version: '1.0.0',
    		title: 'Learning Journey: Platform Tour',
    		description:
    			'Platform primitives tour journey for exploring ContractSpec core features',
    		domain: 'learning-journey',
    		owners: ['@examples.learning-journey.platform-tour'],
    		tags: ['learning', 'platform', 'tour', 'journey'],
    		stability: 'experimental',
    	},
    
    	// All contract operations included in this feature
    	operations: [
    		{ key: 'learningJourney.platformTour.recordEvent', version: '1.0.0' },
    		{ key: 'learningJourney.platformTour.getTrack', version: '1.0.0' },
    	],
    
    	// Events emitted by this feature
    	events: [],
    
    	// Presentations associated with this feature
    	presentations: [
    		{ key: 'learning.journey.platform.track', version: '1.0.0' },
    		{ key: 'learning.journey.platform.widget', version: '1.0.0' },
    	],
    
    	// Link operations to their primary presentations
    	opToPresentation: [
    		{
    			op: { key: 'learningJourney.platformTour.getTrack', version: '1.0.0' },
    			pres: { key: 'learning.journey.platform.track', version: '1.0.0' },
    		},
    	],
    
    	// Target requirements for multi-surface rendering
    	presentationsTargets: [
    		{
    			key: 'learning.journey.platform.track',
    			version: '1.0.0',
    			targets: ['react', 'markdown', 'application/json'],
    		},
    		{
    			key: 'learning.journey.platform.widget',
    			version: '1.0.0',
    			targets: ['react'],
    		},
    	],
    
    	// Capability requirements
    	capabilities: {
    		requires: [{ key: 'identity', version: '1.0.0' }],
    	},
    
    	docs: ['docs.learning-journey.platform-tour'],
    });