semiotic 3.9.2 → 3.10.1
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.
- package/README.md +97 -76
- package/agent-skill/semiotic-charts/SKILL.md +13 -7
- package/ai/artifact-contract-reference.md +408 -0
- package/ai/artifact-surface-inventory.json +5586 -0
- package/ai/behaviorContracts.cjs +24 -2
- package/ai/cli.js +480 -56
- package/ai/componentMetadata.cjs +3 -1
- package/ai/dist/mcp-server.js +68 -68
- package/ai/examples.md +68 -1
- package/ai/reference.md +105 -14
- package/ai/schema.json +6646 -18
- package/ai/surface-manifest.json +34 -6
- package/ai/system-prompt.md +2 -0
- package/ai/task-packets/compare-category-totals.json +301 -0
- package/ai/task-packets/compare-category-totals.md +188 -0
- package/ai/task-packets/correct-published-chart.json +271 -0
- package/ai/task-packets/correct-published-chart.md +597 -0
- package/ai/task-packets/index.json +40 -0
- package/ai/task-packets/update-live-chart.json +289 -0
- package/ai/task-packets/update-live-chart.md +424 -0
- package/dist/c-2N7IU2NY.min.js +1 -0
- package/dist/c-2RL2QPZJ.min.js +1 -0
- package/dist/c-2WK7YJLL.min.js +1 -0
- package/dist/c-42PLDTX7.min.js +1 -0
- package/dist/c-45CQWZZ6.min.js +1 -0
- package/dist/c-4BRHKVKV.min.js +1 -0
- package/dist/c-7242NXSG.min.js +1 -0
- package/dist/c-7DVPSB5C.min.js +1 -0
- package/dist/c-7EGHJU2F.min.js +1 -0
- package/dist/c-A7OGOFSL.min.js +1 -0
- package/dist/c-AFBSWT77.min.js +1 -0
- package/dist/c-AH5HWZWS.min.js +1 -0
- package/dist/c-AJ7EC32V.min.js +1 -0
- package/dist/c-AQADQNY7.min.js +1 -0
- package/dist/c-ATM475SA.min.js +1 -0
- package/dist/c-AVO3Q7T7.min.js +1 -0
- package/dist/c-B7GW7IHJ.min.js +1 -0
- package/dist/c-BNFJMDHN.min.js +1 -0
- package/dist/c-BOHCQILI.min.js +1 -0
- package/dist/c-C3TZLTZK.min.js +1 -0
- package/dist/c-CGQAQWBV.min.js +1 -0
- package/dist/c-CPV4N35K.min.js +1 -0
- package/dist/c-D6HAAPTX.min.js +1 -0
- package/dist/c-DIPEYUOW.min.js +1 -0
- package/dist/c-E4JDJH4I.min.js +1 -0
- package/dist/c-E72OTUZU.min.js +1 -0
- package/dist/c-E7I2L7CU.min.js +1 -0
- package/dist/c-ELDWAO2V.min.js +1 -0
- package/dist/c-EUBTECGM.min.js +1 -0
- package/dist/c-EUMPMDCS.min.js +1 -0
- package/dist/c-EZZT2WAE.min.js +1 -0
- package/dist/c-FHBVFCQB.min.js +1 -0
- package/dist/c-G4HCO2IQ.min.js +1 -0
- package/dist/c-G5VIJEOK.min.js +1 -0
- package/dist/c-GHVOXAYH.min.js +1 -0
- package/dist/c-GNTXRXRN.min.js +1 -0
- package/dist/c-GXV3C3MO.min.js +1 -0
- package/dist/c-HHTK2R75.min.js +1 -0
- package/dist/c-HLLFJYTY.min.js +1 -0
- package/dist/c-HP4ZFM47.min.js +1 -0
- package/dist/c-HPOYKCCG.min.js +1 -0
- package/dist/c-HYDTS5OP.min.js +1 -0
- package/dist/c-I4QJ6YLM.min.js +1 -0
- package/dist/c-IK33LNZ6.min.js +1 -0
- package/dist/c-IK3PZHRY.min.js +1 -0
- package/dist/c-J6DVC236.min.js +1 -0
- package/dist/c-JIMJF6F6.min.js +1 -0
- package/dist/c-JUKIWTBJ.min.js +1 -0
- package/dist/c-KKPMHAZC.min.js +1 -0
- package/dist/c-L6WNDBHV.min.js +1 -0
- package/dist/c-LDEX5OFW.min.js +1 -0
- package/dist/c-LESEUVC5.min.js +1 -0
- package/dist/c-LYQMZMZQ.min.js +1 -0
- package/dist/c-MB6CV5NC.min.js +1 -0
- package/dist/c-MOKJOIPE.min.js +1 -0
- package/dist/c-MVR3RWF3.min.js +1 -0
- package/dist/c-N3FXLRNT.min.js +1 -0
- package/dist/c-N5NPTJVJ.min.js +1 -0
- package/dist/c-NHBL4J67.min.js +1 -0
- package/dist/c-ODG6TFSY.min.js +1 -0
- package/dist/c-ORLEBW72.min.js +1 -0
- package/dist/c-P65V6HLO.min.js +1 -0
- package/dist/c-PRIKOLTE.min.js +1 -0
- package/dist/c-PSKKFZNP.min.js +1 -0
- package/dist/c-PSNI6KAZ.min.js +1 -0
- package/dist/c-QA3HMQJP.min.js +1 -0
- package/dist/c-R2P4RR7Q.min.js +1 -0
- package/dist/c-RFC7UAG7.min.js +1 -0
- package/dist/c-S3AZX5PP.min.js +1 -0
- package/dist/c-SGAURYHG.min.js +1 -0
- package/dist/c-SJMWU6UX.min.js +1 -0
- package/dist/c-STIIGQOD.min.js +1 -0
- package/dist/c-T2ASIJVZ.min.js +1 -0
- package/dist/c-T2V7O2LO.min.js +1 -0
- package/dist/c-TKG2NP7G.min.js +1 -0
- package/dist/c-TX3THUTO.min.js +1 -0
- package/dist/c-TX7XJM3Z.min.js +1 -0
- package/dist/c-UC7SIU2W.min.js +1 -0
- package/dist/c-UMXSJIOV.min.js +1 -0
- package/dist/c-VJTDST2R.min.js +1 -0
- package/dist/c-VRSXMLYF.min.js +1 -0
- package/dist/c-VSLWSAN2.min.js +1 -0
- package/dist/c-VXLOLYTO.min.js +1 -0
- package/dist/c-W4ZUKSEQ.min.js +1 -0
- package/dist/c-WCBRPILW.min.js +1 -0
- package/dist/c-WGHT7OCY.min.js +1 -0
- package/dist/c-WUWXGQYA.min.js +1 -0
- package/dist/c-WWCW3APR.min.js +1 -0
- package/dist/{c-CKLIFCGN.min.js → c-XSB27XPS.min.js} +1 -1
- package/dist/c-Y6PYUMFU.min.js +1 -0
- package/dist/c-YDECTEUW.min.js +1 -0
- package/dist/c-YF3YKVQI.min.js +1 -0
- package/dist/c-YLZIV3VS.min.js +1 -0
- package/dist/c-ZIVPFTOC.min.js +1 -0
- package/dist/components/Annotation.d.ts +2 -1
- package/dist/components/ai/chartRecipeRegistry.d.ts +6 -1
- package/dist/components/ai/chartRecipes.d.ts +4 -0
- package/dist/components/ai/describePhysicsProjection.d.ts +18 -0
- package/dist/components/ai/describePhysicsSource.d.ts +13 -0
- package/dist/components/artifact/ArtifactInspector.d.ts +26 -0
- package/dist/components/artifact/ArtifactInspectorContextSections.d.ts +18 -0
- package/dist/components/artifact/artifactContractDiff.d.ts +8 -0
- package/dist/components/artifact/artifactInspectorSummary.d.ts +53 -0
- package/dist/components/artifact/artifactRevision.d.ts +54 -0
- package/dist/components/artifact/artifactTestFixtures.d.ts +17 -0
- package/dist/components/artifact/attachmentAudit.d.ts +13 -0
- package/dist/components/artifact/claimCorrections.d.ts +3 -0
- package/dist/components/artifact/claimGraph.d.ts +5 -0
- package/dist/components/artifact/claimLifecycle.d.ts +32 -0
- package/dist/components/artifact/claims.d.ts +24 -0
- package/dist/components/artifact/collection.d.ts +10 -0
- package/dist/components/artifact/collectionCorrectionScope.d.ts +4 -0
- package/dist/components/artifact/collectionImpact.d.ts +11 -0
- package/dist/components/artifact/collectionLineage.d.ts +3 -0
- package/dist/components/artifact/collectionOperations.d.ts +8 -0
- package/dist/components/artifact/collectionPolicy.d.ts +22 -0
- package/dist/components/artifact/collectionTypes.d.ts +117 -0
- package/dist/components/artifact/configurationRepair.d.ts +8 -0
- package/dist/components/artifact/contract.d.ts +30 -0
- package/dist/components/artifact/evaluateArtifact.d.ts +12 -0
- package/dist/components/artifact/evaluateArtifactTypes.d.ts +78 -0
- package/dist/components/artifact/evaluationPresentation.d.ts +9 -0
- package/dist/components/artifact/evidenceSample.d.ts +8 -0
- package/dist/components/artifact/exportPaths.d.ts +8 -0
- package/dist/components/artifact/fieldPolicies.d.ts +12 -0
- package/dist/components/artifact/fingerprint.d.ts +36 -0
- package/dist/components/artifact/grounding.d.ts +51 -0
- package/dist/components/artifact/groundingBudget.d.ts +38 -0
- package/dist/components/artifact/hostTransfer.d.ts +13 -0
- package/dist/components/artifact/identity.d.ts +19 -0
- package/dist/components/artifact/inheritance.d.ts +48 -0
- package/dist/components/artifact/inheritanceIntegrity.d.ts +3 -0
- package/dist/components/artifact/jsonCompatibility.d.ts +2 -0
- package/dist/components/artifact/obligations.d.ts +3 -0
- package/dist/components/artifact/policies.d.ts +45 -0
- package/dist/components/artifact/policyRelations.d.ts +3 -0
- package/dist/components/artifact/recordProjection.d.ts +7 -0
- package/dist/components/artifact/representation.d.ts +50 -0
- package/dist/components/artifact/serialization.d.ts +40 -0
- package/dist/components/artifact/temporal.d.ts +32 -0
- package/dist/components/artifact/temporalAdapters.d.ts +75 -0
- package/dist/components/artifact/temporalAuditHelpers.d.ts +12 -0
- package/dist/components/artifact/temporalPresentation.d.ts +8 -0
- package/dist/components/artifact/types.d.ts +341 -0
- package/dist/components/artifact/validation.d.ts +13 -0
- package/dist/components/artifact/validationFieldStatus.d.ts +7 -0
- package/dist/components/artifact/validationPrimitives.d.ts +24 -0
- package/dist/components/artifact/validationSurfaces.d.ts +7 -0
- package/dist/components/artifact/validationTemporal.d.ts +3 -0
- package/dist/components/charts/geo/FlowMap.d.ts +7 -0
- package/dist/components/charts/geo/flowMapLineStyle.d.ts +18 -0
- package/dist/components/charts/ordinal/DonutChart.d.ts +2 -0
- package/dist/components/charts/ordinal/FunnelChart.d.ts +2 -0
- package/dist/components/charts/ordinal/GroupedBarChart.d.ts +6 -0
- package/dist/components/charts/ordinal/PieChart.d.ts +2 -0
- package/dist/components/charts/ordinal/RadarChart.d.ts +2 -0
- package/dist/components/charts/ordinal/StackedBarChart.d.ts +6 -0
- package/dist/components/charts/physics/CollisionSwarmChart.d.ts +1 -1
- package/dist/components/charts/physics/EventDropChart.d.ts +3 -1
- package/dist/components/charts/physics/GaltonBoardChart.d.ts +4 -2
- package/dist/components/charts/physics/ProcessFlowChart.d.ts +6 -0
- package/dist/components/charts/physics/UnitPileChart.d.ts +2 -1
- package/dist/components/charts/physics/collisionSwarmPacking.d.ts +14 -0
- package/dist/components/charts/physics/collisionSwarmPhysics.d.ts +1 -0
- package/dist/components/charts/physics/eventDropAdmission.d.ts +32 -0
- package/dist/components/charts/physics/eventDropPhysics.d.ts +22 -1
- package/dist/components/charts/physics/galtonBoardPhysics.d.ts +2 -9
- package/dist/components/charts/physics/physicsChartReconcile.d.ts +4 -0
- package/dist/components/charts/physics/physicsChartUtils.d.ts +1 -1
- package/dist/components/charts/physics/physicsGaltonData.d.ts +10 -0
- package/dist/components/charts/physics/physicsHocHandle.d.ts +2 -0
- package/dist/components/charts/physics/physicsPileData.d.ts +11 -0
- package/dist/components/charts/physics/physicsPilePhysics.d.ts +5 -12
- package/dist/components/charts/physics/physicsProjectionOverlays.d.ts +1 -1
- package/dist/components/charts/physics/physicsSourceRows.d.ts +8 -0
- package/dist/components/charts/physics/usePhysicsChartData.d.ts +19 -0
- package/dist/components/charts/realtime/RealtimeHeatmap.d.ts +4 -0
- package/dist/components/charts/realtime/RealtimeHistogram.d.ts +14 -6
- package/dist/components/charts/realtime/RealtimeLineChart.d.ts +4 -0
- package/dist/components/charts/realtime/RealtimeSwarmChart.d.ts +4 -0
- package/dist/components/charts/realtime/RealtimeWaterfallChart.d.ts +4 -0
- package/dist/components/charts/realtime/realtimeAccessors.d.ts +4 -0
- package/dist/components/charts/realtime/realtimeChartRuntime.d.ts +8 -7
- package/dist/components/charts/realtime/realtimeChartTypes.d.ts +7 -0
- package/dist/components/charts/realtime/temporalHistogramConfig.d.ts +17 -11
- package/dist/components/charts/shared/GaugeReadout.d.ts +9 -0
- package/dist/components/charts/shared/ThresholdAnnotation.d.ts +18 -0
- package/dist/components/charts/shared/ThresholdEndCap.d.ts +7 -0
- package/dist/components/charts/shared/auditAccessibilityText.d.ts +4 -2
- package/dist/components/charts/shared/chartDataProps.d.ts +3 -0
- package/dist/components/charts/shared/chartSpecAtlasSchemas.d.ts +5 -0
- package/dist/components/charts/shared/chartSpecCore.d.ts +4 -0
- package/dist/components/charts/shared/chartSpecsAtlas.d.ts +2 -0
- package/dist/components/charts/shared/hooks.d.ts +3 -1
- package/dist/components/charts/shared/knownChartComponents.d.ts +1 -1
- package/dist/components/charts/shared/numericTickFormatter.d.ts +2 -0
- package/dist/components/charts/shared/radialCenterContent.d.ts +10 -0
- package/dist/components/charts/shared/tooltipUtils.d.ts +1 -1
- package/dist/components/charts/shared/useChartLegend.d.ts +4 -0
- package/dist/components/charts/shared/useXYPointStyle.d.ts +2 -0
- package/dist/components/charts/xy/BubbleChart.d.ts +7 -0
- package/dist/components/charts/xy/CandlestickChart.d.ts +7 -0
- package/dist/components/charts/xy/DifferenceChart.d.ts +7 -0
- package/dist/components/charts/xy/MinimapChart.d.ts +7 -0
- package/dist/components/charts/xy/MultiAxisLineChart.d.ts +7 -0
- package/dist/components/charts/xy/ScatterplotMatrix.d.ts +6 -0
- package/dist/components/charts/xy/WaterfallChart.d.ts +8 -0
- package/dist/components/charts/xy/differenceMarkStyle.d.ts +28 -0
- package/dist/components/charts/xy/multiAxisFields.d.ts +23 -0
- package/dist/components/charts/xy/scatterplotMatrixCells.d.ts +50 -0
- package/dist/components/evidence/chartEvidenceEnvelope.d.ts +16 -8
- package/dist/components/evidence/evidenceEnvelopeInput.d.ts +8 -0
- package/dist/components/evidence/evidenceEnvelopeValidation.d.ts +11 -0
- package/dist/components/evidence/evidenceGate.d.ts +3 -1
- package/dist/components/evidence/renderedSceneHash.d.ts +23 -0
- package/dist/components/evidence/stableJsonHash.d.ts +4 -0
- package/dist/components/export/chartConfig.d.ts +40 -5
- package/dist/components/export/chartConfigArtifact.d.ts +6 -0
- package/dist/components/legendLayout.d.ts +18 -0
- package/dist/components/legendStyles.d.ts +4 -0
- package/dist/components/recipes/atlas/DependencyForestChart.d.ts +20 -0
- package/dist/components/recipes/atlas/DependencyMatrix.d.ts +7 -0
- package/dist/components/recipes/atlas/FlowCircuitChart.d.ts +20 -0
- package/dist/components/recipes/atlas/MotifBraidChart.d.ts +17 -0
- package/dist/components/recipes/atlas/atlasChartOptions.d.ts +11 -0
- package/dist/components/recipes/atlas/braid.d.ts +62 -0
- package/dist/components/recipes/atlas/capsules.d.ts +18 -0
- package/dist/components/recipes/atlas/compare.d.ts +4 -0
- package/dist/components/recipes/atlas/completeness.d.ts +2 -0
- package/dist/components/recipes/atlas/dependencyForest.d.ts +32 -0
- package/dist/components/recipes/atlas/dependencyForestChartProps.d.ts +58 -0
- package/dist/components/recipes/atlas/dependencyForestLayout.d.ts +17 -0
- package/dist/components/recipes/atlas/dependencyQueries.d.ts +20 -0
- package/dist/components/recipes/atlas/dependencyTypes.d.ts +21 -0
- package/dist/components/recipes/atlas/directedGraph.d.ts +9 -0
- package/dist/components/recipes/atlas/entityCounts.d.ts +3 -0
- package/dist/components/recipes/atlas/flowCircuit.d.ts +32 -0
- package/dist/components/recipes/atlas/flowCircuitChartProps.d.ts +72 -0
- package/dist/components/recipes/atlas/flowCircuitChrome.d.ts +18 -0
- package/dist/components/recipes/atlas/flowCircuitGeometry.d.ts +11 -0
- package/dist/components/recipes/atlas/flowCircuitLayout.d.ts +20 -0
- package/dist/components/recipes/atlas/flowCircuitSemantics.d.ts +26 -0
- package/dist/components/recipes/atlas/flowCircuitTape.d.ts +22 -0
- package/dist/components/recipes/atlas/flowCircuitTypes.d.ts +144 -0
- package/dist/components/recipes/atlas/forests.d.ts +11 -0
- package/dist/components/recipes/atlas/ids.d.ts +6 -0
- package/dist/components/recipes/atlas/index.d.ts +26 -0
- package/dist/components/recipes/atlas/ledger.d.ts +7 -0
- package/dist/components/recipes/atlas/motifBraidChartProps.d.ts +51 -0
- package/dist/components/recipes/atlas/motifBraidGeometry.d.ts +5 -0
- package/dist/components/recipes/atlas/motifBraidLayout.d.ts +11 -0
- package/dist/components/recipes/atlas/motifs.d.ts +3 -0
- package/dist/components/recipes/atlas/prefixForest.d.ts +9 -0
- package/dist/components/recipes/atlas/prepare.d.ts +14 -0
- package/dist/components/recipes/atlas/prepareAsync.d.ts +7 -0
- package/dist/components/recipes/atlas/profile.d.ts +19 -0
- package/dist/components/recipes/atlas/publish.d.ts +10 -0
- package/dist/components/recipes/atlas/queries.d.ts +34 -0
- package/dist/components/recipes/atlas/requiredPaths.d.ts +9 -0
- package/dist/components/recipes/atlas/rootedForest.d.ts +4 -0
- package/dist/components/recipes/atlas/sections.d.ts +3 -0
- package/dist/components/recipes/atlas/support.d.ts +7 -0
- package/dist/components/recipes/atlas/types.d.ts +278 -0
- package/dist/components/recipes/atlas/validate.d.ts +12 -0
- package/dist/components/recipes/firstAvailableTrack.d.ts +17 -0
- package/dist/components/recipes/intervals.d.ts +1 -1
- package/dist/components/semiotic-ai-core.d.ts +33 -22
- package/dist/components/semiotic-ai.d.ts +15 -3
- package/dist/components/semiotic-artifact-react.d.ts +10 -0
- package/dist/components/semiotic-artifact.d.ts +23 -0
- package/dist/components/semiotic-atlas-core.d.ts +20 -0
- package/dist/components/semiotic-atlas.d.ts +8 -0
- package/dist/components/semiotic-experimental.d.ts +1 -1
- package/dist/components/semiotic-physics.d.ts +4 -4
- package/dist/components/semiotic-recipes-core.d.ts +9 -0
- package/dist/components/semiotic-text.d.ts +2 -0
- package/dist/components/semiotic-utils-core.d.ts +18 -18
- package/dist/components/semiotic.d.ts +3 -3
- package/dist/components/server/renderEvidence.d.ts +12 -0
- package/dist/components/server/renderToStaticSVG.d.ts +3 -0
- package/dist/components/server/serverChartConfigs.d.ts +3 -0
- package/dist/components/server/serverChartConfigsAtlas.d.ts +4 -0
- package/dist/components/server/staticSVGChrome.d.ts +1 -4
- package/dist/components/server/staticXYAxisTicks.d.ts +2 -38
- package/dist/components/server/staticXYGrid.d.ts +1 -1
- package/dist/components/server/svgSizing.d.ts +6 -0
- package/dist/components/shared/svgRoot.d.ts +17 -0
- package/dist/components/store/selectionProvenance.d.ts +6 -0
- package/dist/components/stream/GeoSVGOverlay.d.ts +4 -0
- package/dist/components/stream/NetworkPipelineStore.d.ts +1 -0
- package/dist/components/stream/NetworkSVGOverlay.d.ts +4 -0
- package/dist/components/stream/OrdinalSVGOverlay.d.ts +4 -0
- package/dist/components/stream/SVGOverlay.d.ts +4 -0
- package/dist/components/stream/SceneToSVG.d.ts +4 -19
- package/dist/components/stream/SceneToSVGXY.d.ts +13 -0
- package/dist/components/stream/StreamGeoFrame.d.ts +1 -2
- package/dist/components/stream/StreamOrdinalFrame.d.ts +1 -2
- package/dist/components/stream/XYGrid.d.ts +11 -0
- package/dist/components/stream/axisTickUtils.d.ts +0 -1
- package/dist/components/stream/canvasSetup.d.ts +1 -2
- package/dist/components/stream/fontLoading.d.ts +4 -0
- package/dist/components/stream/hitTestUtils.d.ts +2 -0
- package/dist/components/stream/networkCustomLayout.d.ts +8 -0
- package/dist/components/stream/networkCustomLayoutCache.d.ts +12 -0
- package/dist/components/stream/networkPipelineConfig.d.ts +0 -7
- package/dist/components/stream/overlayAccessibleText.d.ts +18 -0
- package/dist/components/stream/physics/PhysicsControllers.d.ts +1 -1
- package/dist/components/stream/physics/PhysicsKernel.d.ts +9 -0
- package/dist/components/stream/physics/PhysicsPipelineStore.d.ts +5 -4
- package/dist/components/stream/physics/PhysicsPipelineTypes.d.ts +9 -0
- package/dist/components/stream/physics/StreamPhysicsTypes.d.ts +3 -0
- package/dist/components/stream/physics/physicsCanvasCoordinates.d.ts +5 -0
- package/dist/components/stream/physics/physicsFixedPosition.d.ts +16 -0
- package/dist/components/stream/physics/physicsKernelCloning.d.ts +6 -0
- package/dist/components/stream/physics/physicsPipelineObservations.d.ts +2 -0
- package/dist/components/stream/physics/physicsPipelineSettle.d.ts +15 -9
- package/dist/components/stream/physics/physicsRegionRuntime.d.ts +8 -17
- package/dist/components/stream/physics/physicsSemanticUI.d.ts +11 -0
- package/dist/components/stream/physics/usePhysicsCanvasPointer.d.ts +3 -1
- package/dist/components/stream/physics/usePhysicsSemanticNavigation.d.ts +2 -0
- package/dist/components/stream/pipelineConfig.d.ts +4 -0
- package/dist/components/stream/pipelineStoreUpdateResults.d.ts +1 -1
- package/dist/components/stream/resolveXYAxes.d.ts +13 -0
- package/dist/components/stream/sceneToSVGShared.d.ts +2 -1
- package/dist/components/stream/seriesGeometry.d.ts +13 -0
- package/dist/components/stream/shallowEqual.d.ts +2 -0
- package/dist/components/stream/streamEncodingTypes.d.ts +53 -0
- package/dist/components/stream/types.d.ts +4 -53
- package/dist/components/stream/useEnsureCustomXYRenderers.d.ts +4 -2
- package/dist/components/stream/useGeoFrameHandle.d.ts +16 -0
- package/dist/components/stream/useOrdinalFrameHandle.d.ts +15 -0
- package/dist/components/stream/useXYFrameHandle.d.ts +15 -0
- package/dist/components/stream/xyAxisTicks.d.ts +25 -0
- package/dist/components/stream/xyDateTicks.d.ts +3 -2
- package/dist/components/stream/xyFrameAxisTypes.d.ts +2 -0
- package/dist/components/stream/xySceneBuilders/ribbonScene.d.ts +1 -1
- package/dist/components/stream/xySceneBuilders/types.d.ts +1 -0
- package/dist/components/text/annotationTextLayout.d.ts +28 -0
- package/dist/components/text/pretextAnnotationLayout.d.ts +29 -0
- package/dist/components/text/usePretextAnnotations.d.ts +12 -0
- package/dist/controls.module.min.js +1 -1
- package/dist/geo.min.js +1 -1
- package/dist/geo.module.min.js +1 -1
- package/dist/network.module.min.js +1 -1
- package/dist/ordinal.module.min.js +1 -1
- package/dist/physics-matter.min.js +1 -1
- package/dist/physics-matter.module.min.js +1 -1
- package/dist/physics-rapier.min.js +1 -1
- package/dist/physics-rapier.module.min.js +1 -1
- package/dist/physics.module.min.js +1 -1
- package/dist/physicsWorker.js +1 -1
- package/dist/processSankeyLayoutWorker.js +1 -1
- package/dist/rough.min.js +1 -1
- package/dist/rough.module.min.js +1 -1
- package/dist/semiotic-access.module.min.js +1 -1
- package/dist/semiotic-ai-artifact-policy-constants.module.min.js +2 -0
- package/dist/semiotic-ai-core.d.ts +33 -22
- package/dist/semiotic-ai-core.min.js +1 -1
- package/dist/semiotic-ai-core.module.min.js +1 -1
- package/dist/semiotic-ai-hash-primitives.module.min.js +2 -0
- package/dist/semiotic-ai.d.ts +15 -3
- package/dist/semiotic-ai.module.min.js +1 -1
- package/dist/semiotic-artifact-react.d.ts +10 -0
- package/dist/semiotic-artifact-react.min.js +2 -0
- package/dist/semiotic-artifact-react.module.min.js +2 -0
- package/dist/semiotic-artifact.d.ts +23 -0
- package/dist/semiotic-artifact.min.js +1 -0
- package/dist/semiotic-artifact.module.min.js +1 -0
- package/dist/semiotic-atlas-core.d.ts +20 -0
- package/dist/semiotic-atlas-core.min.js +1 -0
- package/dist/semiotic-atlas-core.module.min.js +1 -0
- package/dist/semiotic-atlas-selection.module.min.js +2 -0
- package/dist/semiotic-atlas.d.ts +8 -0
- package/dist/semiotic-atlas.min.js +2 -0
- package/dist/semiotic-atlas.module.min.js +2 -0
- package/dist/semiotic-client-cjs-shared.min.js +1 -1
- package/dist/semiotic-client-glyph.module.min.js +1 -1
- package/dist/semiotic-client-responsive.module.min.js +1 -1
- package/dist/semiotic-client-shared.module.min.js +1 -1
- package/dist/semiotic-custom-layout-selection-cjs-shared.min.js +1 -1
- package/dist/semiotic-data.min.js +1 -1
- package/dist/semiotic-data.module.min.js +1 -1
- package/dist/semiotic-evidence.min.js +1 -1
- package/dist/semiotic-evidence.module.min.js +1 -1
- package/dist/semiotic-experimental-auxiliary.module.min.js +1 -1
- package/dist/semiotic-experimental-node-auxiliary.module.min.js +1 -1
- package/dist/semiotic-experimental-react-shared.module.min.js +1 -1
- package/dist/semiotic-experimental-vacp.min.js +1 -1
- package/dist/semiotic-experimental-vacp.module.min.js +1 -1
- package/dist/semiotic-experimental.d.ts +1 -1
- package/dist/semiotic-line.module.min.js +1 -1
- package/dist/semiotic-physics.d.ts +4 -4
- package/dist/semiotic-realtime-core.module.min.js +1 -1
- package/dist/semiotic-realtime-react.module.min.js +1 -1
- package/dist/semiotic-recipes-core-cjs-base.min.js +1 -1
- package/dist/semiotic-recipes-core.d.ts +9 -0
- package/dist/semiotic-recipes-core.module.min.js +1 -1
- package/dist/semiotic-recipes-geo-cjs.min.js +1 -1
- package/dist/semiotic-recipes-react.min.js +1 -1
- package/dist/semiotic-server-edge-node.module.min.js +1 -1
- package/dist/semiotic-server-edge.min.js +1 -1
- package/dist/semiotic-server-edge.module.min.js +1 -1
- package/dist/semiotic-server-node.min.js +1 -1
- package/dist/semiotic-server-node.module.min.js +1 -1
- package/dist/semiotic-text.d.ts +2 -0
- package/dist/semiotic-text.min.js +2 -0
- package/dist/semiotic-text.module.min.js +2 -0
- package/dist/semiotic-themes-core.min.js +1 -1
- package/dist/semiotic-themes-core.module.min.js +1 -1
- package/dist/semiotic-themes.min.js +1 -1
- package/dist/semiotic-themes.module.min.js +1 -1
- package/dist/semiotic-utils-core.d.ts +18 -18
- package/dist/semiotic-utils-core.min.js +1 -1
- package/dist/semiotic-utils-core.module.min.js +1 -1
- package/dist/semiotic-value.module.min.js +1 -1
- package/dist/semiotic.d.ts +3 -3
- package/dist/semiotic.module.min.js +1 -1
- package/dist/server.min.js +1 -1
- package/dist/server.module.min.js +1 -1
- package/dist/xy.module.min.js +1 -1
- package/package.json +70 -14
- package/spec/README.md +8 -3
- package/spec/v0.1/artifact-contract.schema.json +2299 -0
- package/spec/v0.1/examples/artifact-contract-full.json +369 -0
- package/spec/v0.1/examples/artifact-contract-unknown-state.json +46 -0
- package/dist/c-3BLJEQNG.min.js +0 -1
- package/dist/c-3SCUN5HI.min.js +0 -1
- package/dist/c-3VVKFA4M.min.js +0 -1
- package/dist/c-43TJZS3F.min.js +0 -1
- package/dist/c-4DTZPSUD.min.js +0 -1
- package/dist/c-4ES5367Y.min.js +0 -1
- package/dist/c-52TEGIUJ.min.js +0 -1
- package/dist/c-54IRWOGM.min.js +0 -1
- package/dist/c-5D2S4RMI.min.js +0 -1
- package/dist/c-5JWCTX3G.min.js +0 -1
- package/dist/c-6CMMSN6N.min.js +0 -1
- package/dist/c-6HRB2L7H.min.js +0 -1
- package/dist/c-6O5EVOPH.min.js +0 -1
- package/dist/c-7W4SV36A.min.js +0 -1
- package/dist/c-A4WRGZFX.min.js +0 -1
- package/dist/c-AG7WWVIH.min.js +0 -1
- package/dist/c-AH6J4MTN.min.js +0 -1
- package/dist/c-AKAF6JAD.min.js +0 -1
- package/dist/c-ALYR5LKK.min.js +0 -1
- package/dist/c-BBKITSXB.min.js +0 -1
- package/dist/c-BYDPC44I.min.js +0 -1
- package/dist/c-CFFIU2MW.min.js +0 -1
- package/dist/c-CGNHBHCE.min.js +0 -1
- package/dist/c-CJYSXIFV.min.js +0 -1
- package/dist/c-CZF7MV67.min.js +0 -1
- package/dist/c-D53OKBSY.min.js +0 -1
- package/dist/c-DADXPJXV.min.js +0 -1
- package/dist/c-DBQ2V7CH.min.js +0 -1
- package/dist/c-DPMVAUAW.min.js +0 -1
- package/dist/c-ECJCKLYY.min.js +0 -1
- package/dist/c-EGATGOWJ.min.js +0 -1
- package/dist/c-EGR6VYBW.min.js +0 -1
- package/dist/c-ESNR43AN.min.js +0 -1
- package/dist/c-F3LIKINL.min.js +0 -1
- package/dist/c-F5ZB5GJ6.min.js +0 -1
- package/dist/c-G36WS6LN.min.js +0 -1
- package/dist/c-G3VYMHKE.min.js +0 -1
- package/dist/c-GGISSW5E.min.js +0 -1
- package/dist/c-GR6MOEQC.min.js +0 -1
- package/dist/c-GSVCN34B.min.js +0 -1
- package/dist/c-GYOQCEFP.min.js +0 -1
- package/dist/c-H3DNMTCC.min.js +0 -1
- package/dist/c-I6J3FEZE.min.js +0 -1
- package/dist/c-IGH6MGJ5.min.js +0 -1
- package/dist/c-II2EEAJN.min.js +0 -1
- package/dist/c-IUHFPMHD.min.js +0 -1
- package/dist/c-J6M4JHRS.min.js +0 -1
- package/dist/c-JM3MGLQV.min.js +0 -1
- package/dist/c-KM3N7F7R.min.js +0 -1
- package/dist/c-LF5BZFNC.min.js +0 -1
- package/dist/c-LKBSGFQC.min.js +0 -1
- package/dist/c-MNF2S4AA.min.js +0 -1
- package/dist/c-MT3WBK7M.min.js +0 -1
- package/dist/c-NDJADPIF.min.js +0 -1
- package/dist/c-NVPQCIL5.min.js +0 -1
- package/dist/c-NY3JWV2K.min.js +0 -1
- package/dist/c-OFWJBEE5.min.js +0 -1
- package/dist/c-OYFHP5F5.min.js +0 -1
- package/dist/c-PGKQGGQ2.min.js +0 -1
- package/dist/c-PPWDL5ZI.min.js +0 -1
- package/dist/c-Q2IPZ3MU.min.js +0 -1
- package/dist/c-QKHMBE2E.min.js +0 -1
- package/dist/c-QMVM3AY6.min.js +0 -1
- package/dist/c-QSGWX53A.min.js +0 -1
- package/dist/c-RJKEKZOO.min.js +0 -1
- package/dist/c-RSVIHIQ4.min.js +0 -1
- package/dist/c-S6U5CGT5.min.js +0 -1
- package/dist/c-SFDIIU5G.min.js +0 -1
- package/dist/c-SLGMUBUL.min.js +0 -1
- package/dist/c-SRTBCRVE.min.js +0 -1
- package/dist/c-T6UAIKBH.min.js +0 -1
- package/dist/c-TMCTEVVW.min.js +0 -1
- package/dist/c-TMOSJLT3.min.js +0 -1
- package/dist/c-TZW3JGJ5.min.js +0 -1
- package/dist/c-U6ESPM7V.min.js +0 -1
- package/dist/c-UC5PTTFI.min.js +0 -1
- package/dist/c-USFMFKIH.min.js +0 -1
- package/dist/c-VGKUEZBC.min.js +0 -1
- package/dist/c-VGW3VG3I.min.js +0 -1
- package/dist/c-VN2HG5BS.min.js +0 -1
- package/dist/c-VPZDY5Q4.min.js +0 -1
- package/dist/c-VRXUB2F2.min.js +0 -1
- package/dist/c-VUBQNQJH.min.js +0 -1
- package/dist/c-VUH4PGZY.min.js +0 -1
- package/dist/c-W3CE4A4S.min.js +0 -1
- package/dist/c-X5UBGU2V.min.js +0 -1
- package/dist/c-XDRV7RKW.min.js +0 -1
- package/dist/c-YGZHURXZ.min.js +0 -1
- package/dist/c-YZVRZGX2.min.js +0 -1
- /package/dist/{c-N4G2L7ID.min.js → c-HYW2XA4Q.min.js} +0 -0
- /package/dist/{c-ENF72HU5.min.js → c-QAVFOEUY.min.js} +0 -0
- /package/dist/{c-OCI56QF2.min.js → c-V4XMSLC3.min.js} +0 -0
package/ai/surface-manifest.json
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
"src/components/semiotic-ai.ts",
|
|
8
8
|
"ai/mcp-server.ts"
|
|
9
9
|
],
|
|
10
|
-
"version": "3.
|
|
10
|
+
"version": "3.10.1",
|
|
11
11
|
"components": {
|
|
12
|
-
"schema":
|
|
12
|
+
"schema": 64,
|
|
13
13
|
"aiChartExports": 56,
|
|
14
|
-
"mcpRenderable":
|
|
14
|
+
"mcpRenderable": 59,
|
|
15
15
|
"browserOnly": 5,
|
|
16
16
|
"requiresLiveData": [
|
|
17
17
|
"RealtimeHeatmap",
|
|
@@ -59,7 +59,9 @@
|
|
|
59
59
|
"network": [
|
|
60
60
|
"ChordDiagram",
|
|
61
61
|
"CirclePack",
|
|
62
|
+
"DependencyForestChart",
|
|
62
63
|
"ForceDirectedGraph",
|
|
64
|
+
"MotifBraidChart",
|
|
63
65
|
"OrbitDiagram",
|
|
64
66
|
"ProcessSankey",
|
|
65
67
|
"SankeyDiagram",
|
|
@@ -85,6 +87,7 @@
|
|
|
85
87
|
"CollisionSwarmChart",
|
|
86
88
|
"CrucibleChart",
|
|
87
89
|
"EventDropChart",
|
|
90
|
+
"FlowCircuitChart",
|
|
88
91
|
"GaltonBoardChart",
|
|
89
92
|
"GauntletChart",
|
|
90
93
|
"PacketFlowChart",
|
|
@@ -260,6 +263,12 @@
|
|
|
260
263
|
"mobile"
|
|
261
264
|
]
|
|
262
265
|
},
|
|
266
|
+
"DependencyForestChart": {
|
|
267
|
+
"componentKind": "chart-hoc",
|
|
268
|
+
"commonChartProps": "supported",
|
|
269
|
+
"headingProp": "title",
|
|
270
|
+
"modeValues": []
|
|
271
|
+
},
|
|
263
272
|
"DifferenceChart": {
|
|
264
273
|
"componentKind": "chart-hoc",
|
|
265
274
|
"commonChartProps": "supported",
|
|
@@ -315,6 +324,12 @@
|
|
|
315
324
|
"mobile"
|
|
316
325
|
]
|
|
317
326
|
},
|
|
327
|
+
"FlowCircuitChart": {
|
|
328
|
+
"componentKind": "chart-hoc",
|
|
329
|
+
"commonChartProps": "supported",
|
|
330
|
+
"headingProp": "title",
|
|
331
|
+
"modeValues": []
|
|
332
|
+
},
|
|
318
333
|
"FlowMap": {
|
|
319
334
|
"componentKind": "chart-hoc",
|
|
320
335
|
"commonChartProps": "supported",
|
|
@@ -449,6 +464,12 @@
|
|
|
449
464
|
"mobile"
|
|
450
465
|
]
|
|
451
466
|
},
|
|
467
|
+
"MotifBraidChart": {
|
|
468
|
+
"componentKind": "chart-hoc",
|
|
469
|
+
"commonChartProps": "supported",
|
|
470
|
+
"headingProp": "title",
|
|
471
|
+
"modeValues": []
|
|
472
|
+
},
|
|
452
473
|
"MultiAxisLineChart": {
|
|
453
474
|
"componentKind": "chart-hoc",
|
|
454
475
|
"commonChartProps": "supported",
|
|
@@ -832,24 +853,28 @@
|
|
|
832
853
|
]
|
|
833
854
|
},
|
|
834
855
|
"mcp": {
|
|
835
|
-
"toolCount":
|
|
856
|
+
"toolCount": 28,
|
|
836
857
|
"tools": [
|
|
837
858
|
"applyTheme",
|
|
838
859
|
"auditAccessibility",
|
|
860
|
+
"auditArtifact",
|
|
839
861
|
"auditChart",
|
|
840
862
|
"auditMobileVisualization",
|
|
841
863
|
"createChart",
|
|
842
864
|
"diagnoseConfig",
|
|
843
865
|
"evaluateChart",
|
|
844
866
|
"explainChart",
|
|
867
|
+
"explainRefusal",
|
|
845
868
|
"getChartSchema",
|
|
846
869
|
"getSchema",
|
|
847
870
|
"groundChart",
|
|
848
871
|
"improveChart",
|
|
849
872
|
"interrogateChart",
|
|
850
873
|
"proposeChartVariants",
|
|
874
|
+
"recommendRepresentation",
|
|
851
875
|
"renderChart",
|
|
852
876
|
"renderInteractiveChart",
|
|
877
|
+
"repairArtifact",
|
|
853
878
|
"repairChartConfig",
|
|
854
879
|
"reportIssue",
|
|
855
880
|
"suggestChart",
|
|
@@ -870,8 +895,9 @@
|
|
|
870
895
|
],
|
|
871
896
|
"activation": "semiotic-mcp --profile public or MCP_TOOL_PROFILE=public"
|
|
872
897
|
},
|
|
873
|
-
"resourceCount":
|
|
898
|
+
"resourceCount": 13,
|
|
874
899
|
"resources": [
|
|
900
|
+
"semiotic-artifact-contract-schema",
|
|
875
901
|
"semiotic-behavior-contracts",
|
|
876
902
|
"semiotic-build-info",
|
|
877
903
|
"semiotic-chatgpt-chart-widget",
|
|
@@ -881,7 +907,9 @@
|
|
|
881
907
|
"semiotic-schema",
|
|
882
908
|
"semiotic-schema-index",
|
|
883
909
|
"semiotic-surface-manifest",
|
|
884
|
-
"semiotic-system-prompt"
|
|
910
|
+
"semiotic-system-prompt",
|
|
911
|
+
"semiotic-task-index",
|
|
912
|
+
"semiotic-task-packet"
|
|
885
913
|
],
|
|
886
914
|
"promptCount": 2,
|
|
887
915
|
"prompts": [
|
package/ai/system-prompt.md
CHANGED
|
@@ -125,6 +125,8 @@ These rules are generated from `ai/behaviorContracts.cjs` and are consumed by `s
|
|
|
125
125
|
- **Proportional symbol maps use geographic props** (`geo.proportional-symbol-wire-shape`): ProportionalSymbolMap reads point rows from points, longitude from xAccessor (default lon), latitude from yAccessor (default lat), and radius from sizeBy. sizeRange is the two-number pixel-radius range.
|
|
126
126
|
- **Physics charts separate chart mode from simulation input** (`physics.sample-and-mechanical-inputs`): Sample simulations use data plus the chart's accessors. Seeded no-data demonstrations use simulationMode="mechanical" (legacy mode="mechanical" remains accepted); mode otherwise carries chart display modes such as primary or sparkline.
|
|
127
127
|
- **Physics push methods ingest source records** (`physics.push-uses-source-records`): Physics HOC refs push source records through the chart's accessors. pushRows and dataIdAccessor are not component props; stable source id fields are retained on spawned bodies without an invented accessor.
|
|
128
|
+
- **Distribution physics charts update bodies and projections together** (`physics.live-source-reconciliation`): Bodies, categories, domains, and totals update together without changing React keys. getData() returns source rows. New data replaces live rows; rerunMS restores the seed.
|
|
129
|
+
- **EventDrop distinguishes admission history from current closure** (`physics.event-admission-history`): Arrival order determines historical lateness with a delay/function watermark. Equal arrival times keep source order. A window is closed when its end is at or below the watermark; previously accepted events stay accepted as later events advance it. An explicit watermark.value instead tests one fixed policy.
|
|
128
130
|
|
|
129
131
|
<!-- semiotic-behavior-contracts:end -->
|
|
130
132
|
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"generatedBy": "scripts/generate-ai-task-packets.mjs",
|
|
4
|
+
"id": "compare-category-totals",
|
|
5
|
+
"title": "Compare category totals you can check",
|
|
6
|
+
"summary": "Compare three totals in React, inspect their exact values, and verify the server-rendered bar geometry.",
|
|
7
|
+
"route": "/tasks/compare-category-totals",
|
|
8
|
+
"identity": {
|
|
9
|
+
"packageName": "semiotic",
|
|
10
|
+
"packageVersion": "3.10.1",
|
|
11
|
+
"channel": "source",
|
|
12
|
+
"sourceRevision": "sha256:7ad6c1544d38a6665b3c8eccf4dc03e3575667b01ebf5c89b39a49188a796145",
|
|
13
|
+
"revisionKind": "content-digest",
|
|
14
|
+
"runtime": {
|
|
15
|
+
"digest": "sha256:a63286038ab7c071eadd7634dc7e0b57b05cc029a70fdc2fc3ce66217a1172e3",
|
|
16
|
+
"fileCount": 1135
|
|
17
|
+
},
|
|
18
|
+
"taskSources": {
|
|
19
|
+
"digest": "sha256:0a9aacd44c3750f785b385664bd873a92648e8b0ea581f0b485eb8fe1ca5037f",
|
|
20
|
+
"fileCount": 36
|
|
21
|
+
},
|
|
22
|
+
"availability": "Verified source checkout guidance; npm package, hosted site and MCP deployment identities require separate checks."
|
|
23
|
+
},
|
|
24
|
+
"job": "Compare categories and keep a usable route to the values when the picture is unavailable.",
|
|
25
|
+
"dataShape": "One already aggregated, nonnegative total per category, all in the same unit. The synthetic fixture is North 12, South 30, West 18.",
|
|
26
|
+
"fit": [
|
|
27
|
+
"Use in an existing Semiotic React application or when structured chart access and schema-guided validation meet an explicit project requirement."
|
|
28
|
+
],
|
|
29
|
+
"exclusions": [
|
|
30
|
+
"A small chart change alone need not justify replacing a working visualization library.",
|
|
31
|
+
"This fixture does not establish that an external source is accurate or that every reader can use the result."
|
|
32
|
+
],
|
|
33
|
+
"api": {
|
|
34
|
+
"name": "BarChart",
|
|
35
|
+
"category": "ordinal",
|
|
36
|
+
"importPath": "semiotic/ordinal",
|
|
37
|
+
"schemaResourceUri": "semiotic://schema/BarChart",
|
|
38
|
+
"renderable": true,
|
|
39
|
+
"requiresLiveData": false,
|
|
40
|
+
"description": "Vertical or horizontal bars for categorical comparisons.",
|
|
41
|
+
"component": "BarChart",
|
|
42
|
+
"usageMode": "static",
|
|
43
|
+
"dataRequired": true,
|
|
44
|
+
"schema": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"properties": {
|
|
47
|
+
"data": {
|
|
48
|
+
"type": "array",
|
|
49
|
+
"description": "Array of data objects"
|
|
50
|
+
},
|
|
51
|
+
"categoryAccessor": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"description": "Key for category labels",
|
|
54
|
+
"default": "category",
|
|
55
|
+
"x-semiotic-runtime-types": [
|
|
56
|
+
"string",
|
|
57
|
+
"function"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"valueAccessor": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"description": "Key for bar values",
|
|
63
|
+
"default": "value",
|
|
64
|
+
"x-semiotic-runtime-types": [
|
|
65
|
+
"string",
|
|
66
|
+
"function"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"sort": {
|
|
70
|
+
"type": [
|
|
71
|
+
"boolean",
|
|
72
|
+
"string"
|
|
73
|
+
],
|
|
74
|
+
"description": "Sort bars: false, true, 'asc', 'desc', or comparator function",
|
|
75
|
+
"default": false,
|
|
76
|
+
"x-semiotic-runtime-types": [
|
|
77
|
+
"boolean",
|
|
78
|
+
"string",
|
|
79
|
+
"function"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
"orientation": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"enum": [
|
|
85
|
+
"vertical",
|
|
86
|
+
"horizontal"
|
|
87
|
+
],
|
|
88
|
+
"default": "vertical"
|
|
89
|
+
},
|
|
90
|
+
"title": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"description": "Visible chart title and the chart's accessible name."
|
|
93
|
+
},
|
|
94
|
+
"description": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"description": "Concise accessible description that overrides the chart's generated aria-label."
|
|
97
|
+
},
|
|
98
|
+
"summary": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"description": "Screen-reader-only summary of the chart's key takeaway; include keyboard interaction guidance when relevant."
|
|
101
|
+
},
|
|
102
|
+
"accessibleTable": {
|
|
103
|
+
"type": [
|
|
104
|
+
"boolean",
|
|
105
|
+
"object"
|
|
106
|
+
],
|
|
107
|
+
"description": "Expose the chart data through Semiotic's screen-reader data table. Object form `{ portalTarget: string }` relocates its interactive UI to the DOM element with that ID.",
|
|
108
|
+
"default": true,
|
|
109
|
+
"oneOf": [
|
|
110
|
+
{
|
|
111
|
+
"type": "boolean"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"type": "object",
|
|
115
|
+
"additionalProperties": false,
|
|
116
|
+
"required": [
|
|
117
|
+
"portalTarget"
|
|
118
|
+
],
|
|
119
|
+
"properties": {
|
|
120
|
+
"portalTarget": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"description": "ID of a DOM element outside any consumer-owned role=img wrapper. React callers may also pass an Element or a callback through the typed API."
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
"height": {
|
|
129
|
+
"type": "number",
|
|
130
|
+
"default": 400
|
|
131
|
+
},
|
|
132
|
+
"responsiveWidth": {
|
|
133
|
+
"type": "boolean"
|
|
134
|
+
},
|
|
135
|
+
"valueLabel": {
|
|
136
|
+
"type": "string"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"requiredForStatic": [
|
|
140
|
+
"data"
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
"schemaScope": "Selected properties copied from ai/schema.json; retrieve the component resource for the full schema. React push mode follows the included behavior contracts.",
|
|
144
|
+
"contracts": [
|
|
145
|
+
{
|
|
146
|
+
"id": "accessibility.description-props",
|
|
147
|
+
"title": "Accessible chart text uses direct chart props",
|
|
148
|
+
"summary": "High-level charts expose title for the visible name, description for a concise accessible description, summary for a screen-reader-only takeaway and interaction guidance, and accessibleTable for the data-table fallback.",
|
|
149
|
+
"action": "Put title, description, summary, and accessibleTable directly on the chart component when they appear in its schema. If a consumer-owned role=img wraps the chart, use accessibleTable: { portalTarget: \"element-id\" } and render that target outside the image. For generated L1–L3 description or a navigable chart tree, use ChartContainer with chartConfig plus describe and/or navigable; do not invent frameProps fields."
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"id": "props.data-required-by-usage-mode",
|
|
153
|
+
"title": "Data required by usage mode",
|
|
154
|
+
"summary": "Static usage (`renderChart`, MCP previews, SSR snapshots, and copy/paste examples with immediate data) requires data in props. React push mode selects live ingestion by omitting data and mutating through a ref.",
|
|
155
|
+
"action": "Pass usageMode=\"push\" to `semiotic-ai --doctor` when validating ref-based JSX with no data prop. Keep usageMode=\"static\" or omit it for renderChart/MCP/static configs where data must be present."
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"id": "rendering.renderchart-static-props",
|
|
159
|
+
"title": "renderChart uses static props only",
|
|
160
|
+
"summary": "MCP renderChart and semiotic/server renderChart render a single static SVG/PNG snapshot. Browser-only realtime components and future ref pushes are not renderable through that path.",
|
|
161
|
+
"action": "Use renderChart only with renderable HOC components and complete static data. For live behavior, return React code with a ref and do not promise MCP-rendered output."
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"id": "serialization.formatters-are-react-callbacks",
|
|
165
|
+
"title": "Axis formatters are React callbacks",
|
|
166
|
+
"summary": "xFormat, yFormat, categoryFormat, and valueFormat are callback props, not d3 format strings or axis-title strings. They are intentionally absent from JSON/MCP schemas and string values fail validation.",
|
|
167
|
+
"action": "In serialized props, omit formatter callbacks and use xLabel, yLabel, categoryLabel, or valueLabel for axis titles. In React JSX, pass a function such as xFormat={value => formatAxis(value)}."
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
"examples": [
|
|
172
|
+
{
|
|
173
|
+
"title": "React component",
|
|
174
|
+
"environment": "React browser",
|
|
175
|
+
"path": "docs/src/pages/tasks/examples/CategoryComparisonExample.tsx",
|
|
176
|
+
"source": "import { useState } from \"react\"\nimport { BarChart } from \"semiotic/ordinal\"\nimport { categoryComparisonProps } from \"./category-comparison\"\n\nexport default function CategoryComparisonExample() {\n const [orientation, setOrientation] = useState<\"vertical\" | \"horizontal\">(\"vertical\")\n return (\n <section aria-label=\"Category comparison example\" className=\"task-example\">\n <p>Synthetic fixture: three already aggregated regional totals, all measured in units.</p>\n <label>\n Bar direction{\" \"}\n <select\n value={orientation}\n onChange={(event) => setOrientation(event.target.value as typeof orientation)}\n >\n <option value=\"vertical\">Vertical</option>\n <option value=\"horizontal\">Horizontal</option>\n </select>\n </label>\n <BarChart {...categoryComparisonProps} orientation={orientation} responsiveWidth />\n <p>\n South accounts for 30 of the 60 units. Changing direction preserves the values and category\n order.\n </p>\n </section>\n )\n}\n",
|
|
177
|
+
"digest": "sha256:1cbc3f7dc27a4114e0b1b208c4eab532230ef5fda623116f5c734a51582f764b"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"title": "Shared fixture and chart props",
|
|
181
|
+
"environment": "Browser and server",
|
|
182
|
+
"path": "docs/src/pages/tasks/examples/category-comparison.ts",
|
|
183
|
+
"source": "import type { BarChartProps } from \"semiotic/ordinal\"\n\nexport const regionalTotals = [\n { region: \"North\", total: 12 },\n { region: \"South\", total: 30 },\n { region: \"West\", total: 18 },\n]\n\nexport const categoryComparisonProps = {\n data: regionalTotals,\n categoryAccessor: \"region\",\n valueAccessor: \"total\",\n sort: false,\n title: \"Regional totals\",\n description: \"Synthetic regional totals in the same unit: North 12, South 30, West 18.\",\n summary:\n \"South has the largest total, 30. The three regions total 60 units. Open the data table for exact values.\",\n accessibleTable: true,\n valueLabel: \"Units\",\n height: 300,\n} satisfies BarChartProps<(typeof regionalTotals)[number]>\n",
|
|
184
|
+
"digest": "sha256:385eb02b937bced7c4a7d6bbf88232ace90c56a7e06bb7935fdba37f0ee30c53"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"title": "Optional server verification",
|
|
188
|
+
"environment": "Node authoring only",
|
|
189
|
+
"path": "docs/src/pages/tasks/examples/check-category-comparison.ts",
|
|
190
|
+
"source": "// Server-side authoring only: keep validation and SVG rendering out of the React route.\nimport { prepareChart } from \"semiotic/ai/core\"\nimport { renderChartWithEvidence } from \"semiotic/server\"\nimport { categoryComparisonProps } from \"./category-comparison\"\n\nexport function checkCategoryComparison() {\n const result = prepareChart(\n { component: \"BarChart\", props: categoryComparisonProps },\n { render: renderChartWithEvidence },\n )\n if (!result.ok || !result.evidence || !result.svg) {\n throw new Error(result.reasons.join(\"; \") || \"Render evidence is unavailable\")\n }\n return result\n}\n",
|
|
191
|
+
"digest": "sha256:a0e2cfe29c1985899f360b447b9bc223026d9954e26790adf30a5bf4473da56b"
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
"evidence": {
|
|
195
|
+
"claimId": "task.compare-category-totals",
|
|
196
|
+
"statement": "Compare three totals in React, inspect their exact values, and verify the server-rendered bar geometry.",
|
|
197
|
+
"owner": "Semiotic repository maintainers",
|
|
198
|
+
"status": "supported-in-scope",
|
|
199
|
+
"observed": {
|
|
200
|
+
"verifiedAt": "2026-09-15T00:29:02.031Z",
|
|
201
|
+
"environment": {
|
|
202
|
+
"node": "v22.22.1",
|
|
203
|
+
"platform": "darwin",
|
|
204
|
+
"architecture": "arm64",
|
|
205
|
+
"browser": "Playwright Chromium"
|
|
206
|
+
},
|
|
207
|
+
"runs": [
|
|
208
|
+
{
|
|
209
|
+
"kind": "unit",
|
|
210
|
+
"targets": [
|
|
211
|
+
"docs/src/pages/tasks/examples/category-comparison.test.ts",
|
|
212
|
+
"docs/src/pages/tasks/examples/live-chart.test.tsx",
|
|
213
|
+
"docs/src/pages/tasks/examples/source-correction.test.ts"
|
|
214
|
+
],
|
|
215
|
+
"name": "Task source units",
|
|
216
|
+
"command": "node node_modules/vitest/vitest.mjs run ./docs/src/pages/tasks/examples/category-comparison.test.ts ./docs/src/pages/tasks/examples/live-chart.test.tsx ./docs/src/pages/tasks/examples/source-correction.test.ts --reporter=default --reporter=json --outputFile=<temporary-report-directory>/unit.json --allowOnly=false",
|
|
217
|
+
"exitCode": 0,
|
|
218
|
+
"passed": 14,
|
|
219
|
+
"skipped": 0,
|
|
220
|
+
"passedByFile": {
|
|
221
|
+
"docs/src/pages/tasks/examples/category-comparison.test.ts": 4,
|
|
222
|
+
"docs/src/pages/tasks/examples/live-chart.test.tsx": 5,
|
|
223
|
+
"docs/src/pages/tasks/examples/source-correction.test.ts": 5
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"kind": "browser",
|
|
228
|
+
"targets": [
|
|
229
|
+
"integration-tests/docs-examples-task-live.spec.ts",
|
|
230
|
+
"integration-tests/docs-examples-tasks.spec.ts"
|
|
231
|
+
],
|
|
232
|
+
"name": "Task browser behavior",
|
|
233
|
+
"command": "node node_modules/@playwright/test/cli.js test --config playwright.docs-examples.config.ts ./integration-tests/docs-examples-task-live.spec.ts ./integration-tests/docs-examples-tasks.spec.ts --reporter=list,json --forbid-only",
|
|
234
|
+
"exitCode": 0,
|
|
235
|
+
"passed": 6,
|
|
236
|
+
"skipped": 0,
|
|
237
|
+
"passedByFile": {
|
|
238
|
+
"integration-tests/docs-examples-task-live.spec.ts": 2,
|
|
239
|
+
"integration-tests/docs-examples-tasks.spec.ts": 4
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"record": "ai/tasks/verification.json",
|
|
244
|
+
"authorship": "Agent-observed execution of repository tests; independent review is not recorded."
|
|
245
|
+
},
|
|
246
|
+
"validity": "Only the content digests and environment recorded here; not a release range or an adoption result.",
|
|
247
|
+
"invalidation": "Changes to runtime source, schemas, manifests, task examples, tests, verification tooling or this task definition invalidate the recorded result.",
|
|
248
|
+
"commands": [
|
|
249
|
+
"npx vitest run docs/src/pages/tasks/examples/category-comparison.test.ts",
|
|
250
|
+
"npx playwright test --config playwright.docs-examples.config.ts integration-tests/docs-examples-tasks.spec.ts"
|
|
251
|
+
],
|
|
252
|
+
"checks": {
|
|
253
|
+
"unit": "docs/src/pages/tasks/examples/category-comparison.test.ts",
|
|
254
|
+
"browser": "integration-tests/docs-examples-tasks.spec.ts"
|
|
255
|
+
},
|
|
256
|
+
"expected": [
|
|
257
|
+
"North 12, South 30, West 18; total 60, with South largest.",
|
|
258
|
+
"Three SVG bars retain 12:30:18 proportions and insertion order in both orientations.",
|
|
259
|
+
"The browser data table retains the exact category/value mapping.",
|
|
260
|
+
"An invalid value accessor is refused; the repaired configuration preserves the rows."
|
|
261
|
+
],
|
|
262
|
+
"unassessed": [
|
|
263
|
+
"Underlying source accuracy: this is a synthetic fixture.",
|
|
264
|
+
"Assistive-technology reception and usability with actual readers.",
|
|
265
|
+
"Organic discovery, model preference, and published-package parity."
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
"recovery": [
|
|
269
|
+
{
|
|
270
|
+
"symptom": "The chart has no useful values after a field was renamed.",
|
|
271
|
+
"contractId": "props.data-required-by-usage-mode",
|
|
272
|
+
"action": "Set valueAccessor to the actual numeric field, total, while preserving data. Run the server check and inspect the exact-value table.",
|
|
273
|
+
"recheck": "The bars must encode 12, 30 and 18; a nonempty scene alone is insufficient."
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"symptom": "prepareChart returned ok, but there is no SVG.",
|
|
277
|
+
"contractId": "rendering.renderchart-static-props",
|
|
278
|
+
"action": "Inject renderChartWithEvidence from semiotic/server in Node authoring code when rendered evidence is required.",
|
|
279
|
+
"recheck": "Inspect evidence and svg explicitly. Without a renderer, ok covers a different set of checks."
|
|
280
|
+
}
|
|
281
|
+
],
|
|
282
|
+
"continuation": {
|
|
283
|
+
"rationale": "This project needs React rendering with inspectable category values.",
|
|
284
|
+
"recheck": [
|
|
285
|
+
"Category/value mapping, units, order, summary and the accessible table after source or dependency changes."
|
|
286
|
+
],
|
|
287
|
+
"loss": "An image alone omits the source rows and verification context. Keep the config and fixture when the next reader needs exact values."
|
|
288
|
+
},
|
|
289
|
+
"update": {
|
|
290
|
+
"status": "source-only",
|
|
291
|
+
"introducedIn": null,
|
|
292
|
+
"previousAssumption": "A valid configuration or a nonempty render establishes that the values are mapped correctly.",
|
|
293
|
+
"action": "Run configuration checks, inspect the rendered geometry and compare the category/value table with independent fixture facts.",
|
|
294
|
+
"recheck": [
|
|
295
|
+
"Rendering evidence must be present when a render is claimed.",
|
|
296
|
+
"An installed package version different from the packet's packageVersion needs matching guidance."
|
|
297
|
+
],
|
|
298
|
+
"remaining": "Source truth and usability with actual readers remain separate obligations."
|
|
299
|
+
},
|
|
300
|
+
"definition": "ai/tasks/compare-category-totals.json"
|
|
301
|
+
}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
<!-- Generated by scripts/generate-ai-task-packets.mjs; edit ai/tasks/compare-category-totals.json. -->
|
|
2
|
+
|
|
3
|
+
# Compare category totals you can check
|
|
4
|
+
|
|
5
|
+
Compare three totals in React, inspect their exact values, and verify the server-rendered bar geometry.
|
|
6
|
+
|
|
7
|
+
Source package: semiotic@3.10.1. Channel: source.
|
|
8
|
+
Source revision: sha256:7ad6c1544d38a6665b3c8eccf4dc03e3575667b01ebf5c89b39a49188a796145. Verified source checkout guidance; npm package, hosted site and MCP deployment identities require separate checks.
|
|
9
|
+
|
|
10
|
+
## The job
|
|
11
|
+
|
|
12
|
+
Compare categories and keep a usable route to the values when the picture is unavailable.
|
|
13
|
+
|
|
14
|
+
Data: One already aggregated, nonnegative total per category, all in the same unit. The synthetic fixture is North 12, South 30, West 18.
|
|
15
|
+
|
|
16
|
+
## Fit and constraints
|
|
17
|
+
|
|
18
|
+
- Use in an existing Semiotic React application or when structured chart access and schema-guided validation meet an explicit project requirement.
|
|
19
|
+
|
|
20
|
+
- A small chart change alone need not justify replacing a working visualization library.
|
|
21
|
+
- This fixture does not establish that an external source is accurate or that every reader can use the result.
|
|
22
|
+
|
|
23
|
+
## Smallest working path
|
|
24
|
+
|
|
25
|
+
Component: BarChart from `semiotic/ordinal`. Usage: static. Data prop required in this mode: true.
|
|
26
|
+
|
|
27
|
+
### React component
|
|
28
|
+
|
|
29
|
+
React browser; source: docs/src/pages/tasks/examples/CategoryComparisonExample.tsx.
|
|
30
|
+
|
|
31
|
+
```tsx
|
|
32
|
+
import { useState } from "react"
|
|
33
|
+
import { BarChart } from "semiotic/ordinal"
|
|
34
|
+
import { categoryComparisonProps } from "./category-comparison"
|
|
35
|
+
|
|
36
|
+
export default function CategoryComparisonExample() {
|
|
37
|
+
const [orientation, setOrientation] = useState<"vertical" | "horizontal">("vertical")
|
|
38
|
+
return (
|
|
39
|
+
<section aria-label="Category comparison example" className="task-example">
|
|
40
|
+
<p>Synthetic fixture: three already aggregated regional totals, all measured in units.</p>
|
|
41
|
+
<label>
|
|
42
|
+
Bar direction{" "}
|
|
43
|
+
<select
|
|
44
|
+
value={orientation}
|
|
45
|
+
onChange={(event) => setOrientation(event.target.value as typeof orientation)}
|
|
46
|
+
>
|
|
47
|
+
<option value="vertical">Vertical</option>
|
|
48
|
+
<option value="horizontal">Horizontal</option>
|
|
49
|
+
</select>
|
|
50
|
+
</label>
|
|
51
|
+
<BarChart {...categoryComparisonProps} orientation={orientation} responsiveWidth />
|
|
52
|
+
<p>
|
|
53
|
+
South accounts for 30 of the 60 units. Changing direction preserves the values and category
|
|
54
|
+
order.
|
|
55
|
+
</p>
|
|
56
|
+
</section>
|
|
57
|
+
)
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Shared fixture and chart props
|
|
62
|
+
|
|
63
|
+
Browser and server; source: docs/src/pages/tasks/examples/category-comparison.ts.
|
|
64
|
+
|
|
65
|
+
```ts
|
|
66
|
+
import type { BarChartProps } from "semiotic/ordinal"
|
|
67
|
+
|
|
68
|
+
export const regionalTotals = [
|
|
69
|
+
{ region: "North", total: 12 },
|
|
70
|
+
{ region: "South", total: 30 },
|
|
71
|
+
{ region: "West", total: 18 },
|
|
72
|
+
]
|
|
73
|
+
|
|
74
|
+
export const categoryComparisonProps = {
|
|
75
|
+
data: regionalTotals,
|
|
76
|
+
categoryAccessor: "region",
|
|
77
|
+
valueAccessor: "total",
|
|
78
|
+
sort: false,
|
|
79
|
+
title: "Regional totals",
|
|
80
|
+
description: "Synthetic regional totals in the same unit: North 12, South 30, West 18.",
|
|
81
|
+
summary:
|
|
82
|
+
"South has the largest total, 30. The three regions total 60 units. Open the data table for exact values.",
|
|
83
|
+
accessibleTable: true,
|
|
84
|
+
valueLabel: "Units",
|
|
85
|
+
height: 300,
|
|
86
|
+
} satisfies BarChartProps<(typeof regionalTotals)[number]>
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Optional server verification
|
|
90
|
+
|
|
91
|
+
Node authoring only; source: docs/src/pages/tasks/examples/check-category-comparison.ts.
|
|
92
|
+
|
|
93
|
+
```ts
|
|
94
|
+
// Server-side authoring only: keep validation and SVG rendering out of the React route.
|
|
95
|
+
import { prepareChart } from "semiotic/ai/core"
|
|
96
|
+
import { renderChartWithEvidence } from "semiotic/server"
|
|
97
|
+
import { categoryComparisonProps } from "./category-comparison"
|
|
98
|
+
|
|
99
|
+
export function checkCategoryComparison() {
|
|
100
|
+
const result = prepareChart(
|
|
101
|
+
{ component: "BarChart", props: categoryComparisonProps },
|
|
102
|
+
{ render: renderChartWithEvidence },
|
|
103
|
+
)
|
|
104
|
+
if (!result.ok || !result.evidence || !result.svg) {
|
|
105
|
+
throw new Error(result.reasons.join("; ") || "Render evidence is unavailable")
|
|
106
|
+
}
|
|
107
|
+
return result
|
|
108
|
+
}
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## Check the result
|
|
112
|
+
|
|
113
|
+
Evidence state: supported-in-scope. Only the content digests and environment recorded here; not a release range or an adoption result.
|
|
114
|
+
|
|
115
|
+
- North 12, South 30, West 18; total 60, with South largest.
|
|
116
|
+
- Three SVG bars retain 12:30:18 proportions and insertion order in both orientations.
|
|
117
|
+
- The browser data table retains the exact category/value mapping.
|
|
118
|
+
- An invalid value accessor is refused; the repaired configuration preserves the rows.
|
|
119
|
+
|
|
120
|
+
Run:
|
|
121
|
+
|
|
122
|
+
```sh
|
|
123
|
+
npx vitest run docs/src/pages/tasks/examples/category-comparison.test.ts
|
|
124
|
+
npx playwright test --config playwright.docs-examples.config.ts integration-tests/docs-examples-tasks.spec.ts
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Recorded execution: 2026-09-15T00:29:02.031Z. Agent-observed execution of repository tests; independent review is not recorded.
|
|
128
|
+
|
|
129
|
+
Not assessed:
|
|
130
|
+
|
|
131
|
+
- Underlying source accuracy: this is a synthetic fixture.
|
|
132
|
+
- Assistive-technology reception and usability with actual readers.
|
|
133
|
+
- Organic discovery, model preference, and published-package parity.
|
|
134
|
+
|
|
135
|
+
## Repair and recheck
|
|
136
|
+
|
|
137
|
+
### The chart has no useful values after a field was renamed.
|
|
138
|
+
|
|
139
|
+
Set valueAccessor to the actual numeric field, total, while preserving data. Run the server check and inspect the exact-value table.
|
|
140
|
+
|
|
141
|
+
Recheck: The bars must encode 12, 30 and 18; a nonempty scene alone is insufficient.
|
|
142
|
+
|
|
143
|
+
Contract: props.data-required-by-usage-mode.
|
|
144
|
+
|
|
145
|
+
### prepareChart returned ok, but there is no SVG.
|
|
146
|
+
|
|
147
|
+
Inject renderChartWithEvidence from semiotic/server in Node authoring code when rendered evidence is required.
|
|
148
|
+
|
|
149
|
+
Recheck: Inspect evidence and svg explicitly. Without a renderer, ok covers a different set of checks.
|
|
150
|
+
|
|
151
|
+
Contract: rendering.renderchart-static-props.
|
|
152
|
+
|
|
153
|
+
## Exact API and mode guidance
|
|
154
|
+
|
|
155
|
+
Selected properties copied from ai/schema.json; retrieve the component resource for the full schema. React push mode follows the included behavior contracts.
|
|
156
|
+
|
|
157
|
+
Full component resource: semiotic://schema/BarChart. Machine packet: /tasks/compare-category-totals.json.
|
|
158
|
+
|
|
159
|
+
- **accessibility.description-props:** High-level charts expose title for the visible name, description for a concise accessible description, summary for a screen-reader-only takeaway and interaction guidance, and accessibleTable for the data-table fallback. Put title, description, summary, and accessibleTable directly on the chart component when they appear in its schema. If a consumer-owned role=img wraps the chart, use accessibleTable: { portalTarget: "element-id" } and render that target outside the image. For generated L1–L3 description or a navigable chart tree, use ChartContainer with chartConfig plus describe and/or navigable; do not invent frameProps fields.
|
|
160
|
+
|
|
161
|
+
- **props.data-required-by-usage-mode:** Static usage (`renderChart`, MCP previews, SSR snapshots, and copy/paste examples with immediate data) requires data in props. React push mode selects live ingestion by omitting data and mutating through a ref. Pass usageMode="push" to `semiotic-ai --doctor` when validating ref-based JSX with no data prop. Keep usageMode="static" or omit it for renderChart/MCP/static configs where data must be present.
|
|
162
|
+
|
|
163
|
+
- **rendering.renderchart-static-props:** MCP renderChart and semiotic/server renderChart render a single static SVG/PNG snapshot. Browser-only realtime components and future ref pushes are not renderable through that path. Use renderChart only with renderable HOC components and complete static data. For live behavior, return React code with a ref and do not promise MCP-rendered output.
|
|
164
|
+
|
|
165
|
+
- **serialization.formatters-are-react-callbacks:** xFormat, yFormat, categoryFormat, and valueFormat are callback props, not d3 format strings or axis-title strings. They are intentionally absent from JSON/MCP schemas and string values fail validation. In serialized props, omit formatter callbacks and use xLabel, yLabel, categoryLabel, or valueLabel for axis titles. In React JSX, pass a function such as xFormat={value => formatAxis(value)}.
|
|
166
|
+
|
|
167
|
+
## Maintenance context
|
|
168
|
+
|
|
169
|
+
This project needs React rendering with inspectable category values.
|
|
170
|
+
|
|
171
|
+
- Category/value mapping, units, order, summary and the accessible table after source or dependency changes.
|
|
172
|
+
|
|
173
|
+
An image alone omits the source rows and verification context. Keep the config and fixture when the next reader needs exact values.
|
|
174
|
+
|
|
175
|
+
Read the installed package and lockfile before applying source guidance. A matching version string alone does not establish deployed parity. These notes are removable project context, subordinate to the current task and dependency policy.
|
|
176
|
+
|
|
177
|
+
## Behavioral update
|
|
178
|
+
|
|
179
|
+
Status: source-only. Released introduction: not established.
|
|
180
|
+
|
|
181
|
+
Assumption to revisit: A valid configuration or a nonempty render establishes that the values are mapped correctly.
|
|
182
|
+
|
|
183
|
+
Run configuration checks, inspect the rendered geometry and compare the category/value table with independent fixture facts.
|
|
184
|
+
|
|
185
|
+
- Rendering evidence must be present when a render is claimed.
|
|
186
|
+
- An installed package version different from the packet's packageVersion needs matching guidance.
|
|
187
|
+
|
|
188
|
+
Source truth and usability with actual readers remain separate obligations.
|